@gusto/embedded-react-sdk 0.37.0 → 0.38.0-rc.1
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 +45 -0
- package/README.md +3 -0
- package/dist/UNSTABLE_Hooks.d.ts +1 -1
- package/dist/UNSTABLE_Hooks.js +34 -38
- package/dist/UNSTABLE_Hooks.js.map +1 -1
- package/dist/assets/icons/filter-funnel.svg.js +10 -0
- package/dist/assets/icons/filter-funnel.svg.js.map +1 -0
- package/dist/components/Base/Base.js +2 -3
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/createCompoundContext.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +42 -36
- 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 +77 -68
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +17 -0
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +100 -0
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -0
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +10 -0
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -0
- package/dist/components/Common/DetailViewLayout/DetailViewLayout.d.ts +2 -0
- package/dist/components/Common/DetailViewLayout/DetailViewLayoutTypes.d.ts +40 -0
- package/dist/components/Common/DetailViewLayout/index.d.ts +3 -0
- package/dist/components/Common/EmptyData/EmptyData.d.ts +2 -1
- package/dist/components/Common/EmptyData/EmptyData.js +15 -13
- package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
- package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -4
- package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +26 -24
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +40 -38
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
- package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
- package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
- package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +27 -25
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +34 -32
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.js +34 -32
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +26 -24
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
- package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -24
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
- package/dist/components/Common/Fields/hooks/useField.js +37 -33
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
- package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +21 -20
- package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
- package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +5 -0
- package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.d.ts +1 -1
- package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js +10 -8
- package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js.map +1 -1
- package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +17 -17
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +5 -0
- package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.js +33 -29
- package/dist/components/Common/UI/Button/Button.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
- package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
- package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
- package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/Common/UI/DatePicker/DatePicker.js +88 -69
- package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +13 -0
- package/dist/components/Common/UI/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +74 -0
- package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +30 -0
- package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js.map +1 -0
- package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +14 -0
- package/dist/components/Common/UI/DateRangePicker/index.d.ts +2 -0
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
- package/dist/components/Common/UI/Heading/Heading.d.ts +1 -1
- package/dist/components/Common/UI/Heading/Heading.js +11 -9
- package/dist/components/Common/UI/Heading/Heading.js.map +1 -1
- package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -1
- package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Common/index.d.ts +2 -0
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -5
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -7
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -5
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -5
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -5
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +8 -11
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +6 -8
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -10
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +8 -11
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -8
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +10 -14
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -5
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +17 -19
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -5
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -5
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +59 -59
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +16 -19
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +36 -33
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +2 -0
- package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -7
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -5
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +3 -7
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +6 -8
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +5 -7
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +33 -34
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -126
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +31 -30
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
- package/dist/components/Contractor/Profile/useContractorProfile.js +31 -31
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.d.ts +2 -2
- package/dist/components/Contractor/Submit/Submit.js +44 -46
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +12 -14
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Compensation.js +49 -49
- package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +27 -28
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +23 -25
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +57 -54
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +17 -19
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -13
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -5
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -5
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +2 -5
- package/dist/components/Employee/EmployeeList/EmployeeList.js +45 -95
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeListView.d.ts +15 -0
- package/dist/components/Employee/EmployeeList/EmployeeListView.js +130 -0
- package/dist/components/Employee/EmployeeList/EmployeeListView.js.map +1 -0
- package/dist/components/Employee/EmployeeList/ManagementEmployeeList.d.ts +9 -0
- package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js +81 -0
- package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js.map +1 -0
- package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.d.ts +17 -0
- package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js +193 -0
- package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js.map +1 -0
- package/dist/components/Employee/EmployeeList/index.d.ts +3 -0
- package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +36 -23
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +114 -19
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -5
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +14 -15
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js +4 -4
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +14 -8
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +10 -11
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +13 -14
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js +44 -43
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +9 -10
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +1 -0
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -7
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +8 -11
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +9 -10
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -13
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +3 -5
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +8 -11
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -5
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -11
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +10 -13
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +3 -5
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +48 -48
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +14 -17
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +37 -33
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +57 -45
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +8 -11
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
- package/dist/components/Employee/index.d.ts +1 -0
- package/dist/components/Employee/index.js +38 -36
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/Flow/Flow.js +20 -23
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequests.js +3 -4
- package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlow.js +14 -14
- package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +21 -20
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +2 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +57 -55
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -11
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +85 -75
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +7 -7
- package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +24 -18
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +2 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +28 -22
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +92 -84
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +18 -26
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +21 -21
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +3 -3
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +13 -13
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +194 -190
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +69 -69
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +102 -76
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -238
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +7 -7
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +11 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +63 -30
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -41
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +62 -51
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +13 -6
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +22 -20
- package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +35 -14
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +80 -69
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +0 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +59 -66
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +5 -4
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +96 -105
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +98 -64
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +9 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +223 -123
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +16 -12
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +106 -105
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +231 -222
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.d.ts +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +29 -27
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +67 -63
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +12 -14
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +5 -5
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -55
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/helpers.d.ts +5 -0
- package/dist/components/Payroll/helpers.js +81 -74
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +2 -4
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +2 -2
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +6 -9
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +1 -2
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.d.ts +48 -0
- package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js +94 -0
- package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +2 -2
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +3 -2
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +24 -24
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +3 -2
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +22 -17
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +3 -2
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +31 -31
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +3 -2
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +27 -27
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +3 -2
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +28 -28
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +3 -2
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +24 -24
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +5 -4
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +30 -30
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/index.d.ts +5 -2
- package/dist/components/UNSTABLE_Hooks/form/preprocessors.d.ts +3 -0
- package/dist/components/UNSTABLE_Hooks/form/preprocessors.js +15 -0
- package/dist/components/UNSTABLE_Hooks/form/preprocessors.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.d.ts +17 -0
- package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js +21 -0
- package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +6 -6
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +22 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +7 -9
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +48 -42
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +48 -79
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchemaParity.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +2 -2
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +2 -2
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +13 -15
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +109 -110
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +17 -19
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +13 -4
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +31 -25
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +5 -4
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +27 -27
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +8 -22
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +81 -84
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +16 -18
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +9 -10
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +85 -83
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +8 -4
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +18 -17
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/index.d.ts +7 -7
- package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +46 -0
- package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +46 -0
- package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +88 -0
- package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.d.ts +6 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js +50 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyDetailsForm/PolicyDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +73 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.d.ts +2 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +122 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js +8 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListTypes.d.ts +17 -0
- package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +46 -0
- package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.d.ts +2 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js +25 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +29 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +103 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/index.d.ts +3 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.d.ts +14 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +290 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/SelectHolidaysPresentation.d.ts +2 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/SelectHolidaysPresentation.js +55 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/SelectHolidaysPresentation.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/SelectHolidaysTypes.d.ts +25 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectHolidays/index.d.ts +3 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyType.d.ts +7 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyType.js +27 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyType.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypePresentation.d.ts +2 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypePresentation.js +66 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypePresentation.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/SelectPolicyTypeTypes.d.ts +6 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectPolicyType/index.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/shared/EmployeeTable/EmployeeTableTypes.d.ts +26 -0
- package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/shared/EmployeeTable/index.d.ts +4 -0
- package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +35 -0
- package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +35 -0
- package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +35 -0
- package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +5 -0
- package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +35 -0
- package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +1 -0
- package/dist/components/UNSTABLE_TimeOff/index.d.ts +25 -0
- package/dist/components/UNSTABLE_TimeOff/index.js +27 -0
- package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +48 -46
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -13
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
- package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
- package/dist/helpers/breadcrumbHelpers.d.ts +14 -0
- package/dist/helpers/breadcrumbHelpers.js +35 -26
- package/dist/helpers/breadcrumbHelpers.js.map +1 -1
- package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.d.ts +1 -1
- package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.js +1 -1
- package/dist/helpers/collectErrors.js.map +1 -0
- package/dist/hooks/useCompanyPaymentSpeed.d.ts +6 -0
- package/dist/hooks/useCompanyPaymentSpeed.js +19 -0
- package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -0
- package/dist/hooks/useCompanyPaymentSpeed.test.d.ts +1 -0
- package/dist/hooks/useDateRangeFilter/useDateRangeFilter.d.ts +20 -0
- package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js +38 -0
- package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js.map +1 -0
- package/dist/hooks/useDateRangeFilter/useDateRangeFilter.test.d.ts +1 -0
- package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.d.ts +2 -2
- package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.js +1 -1
- package/dist/hooks/useErrorHandling.js.map +1 -0
- package/dist/hooks/useErrorHandling.test.d.ts +1 -0
- package/dist/hooks/usePagination/usePagination.d.ts +2 -0
- package/dist/hooks/usePagination/usePagination.js +32 -29
- package/dist/hooks/usePagination/usePagination.js.map +1 -1
- package/dist/i18n/I18n.js +24 -24
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +6 -6
- package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +24 -0
- package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +32 -0
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +26 -0
- package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js +28 -0
- package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +38 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -34
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
- package/dist/i18n/en/Employee.EmployeeList.json.js +22 -20
- package/dist/i18n/en/Employee.EmployeeList.json.js.map +1 -1
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +40 -0
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -0
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.OffCycle.json.js +1 -1
- package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +5 -5
- package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +38 -34
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -25
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistory.json.js +12 -12
- package/dist/i18n/en/Payroll.PayrollList.json.js +28 -20
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +64 -58
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +9 -9
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +8 -8
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/shared/constants.d.ts +46 -0
- package/dist/shared/constants.js +99 -74
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +508 -12
- package/dist/{components/UNSTABLE_Hooks/types.d.ts → types/sdkHooks.d.ts} +28 -2
- package/docs/reference/endpoint-inventory.json +608 -418
- package/package.json +29 -20
- package/dist/components/Employee/EmployeeList/Actions.d.ts +0 -1
- package/dist/components/Employee/EmployeeList/Actions.js +0 -16
- package/dist/components/Employee/EmployeeList/Actions.js.map +0 -1
- package/dist/components/Employee/EmployeeList/Head.d.ts +0 -1
- package/dist/components/Employee/EmployeeList/Head.js +0 -15
- package/dist/components/Employee/EmployeeList/Head.js.map +0 -1
- package/dist/components/Employee/EmployeeList/List.d.ts +0 -2
- package/dist/components/Employee/EmployeeList/List.js +0 -125
- package/dist/components/Employee/EmployeeList/List.js.map +0 -1
- package/dist/components/Employee/EmployeeList/List.module.scss.js +0 -8
- package/dist/components/Employee/EmployeeList/List.module.scss.js.map +0 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js +0 -8
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js.map +0 -1
- package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +0 -1
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +0 -24
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +0 -1
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +0 -14
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +0 -1
- package/dist/components/UNSTABLE_Hooks/form/types.d.ts +0 -27
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +0 -4
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +0 -9
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +0 -1
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +0 -1
- package/dist/helpers/requiredIf.js +0 -8
- package/dist/helpers/requiredIf.js.map +0 -1
- /package/dist/components/UNSTABLE_Hooks/{useErrorHandling.test.d.ts → form/buildFormSchema.test.d.ts} +0 -0
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import "./types/i18next.d.ts"
|
|
2
|
-
export type { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata, ValidationMessages, BaseFieldProps, HookFieldProps, } from '
|
|
2
|
+
export type { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata, ValidationMessages, BaseFieldProps, HookFieldProps, } from '../../../types/sdkHooks';
|
|
3
3
|
export { withOptions } from './withOptions';
|
|
4
4
|
export type { FormFieldsMetadataContextValue } from './FormFieldsMetadataContext';
|
|
5
5
|
export { FormFieldsMetadataProvider } from './FormFieldsMetadataProvider';
|
|
6
6
|
export { SDKFormProvider } from './SDKFormProvider';
|
|
7
|
-
export {
|
|
7
|
+
export { useDeriveFieldsMetadata } from './useDeriveFieldsMetadata';
|
|
8
8
|
export { useFieldErrorMessage } from './useFieldErrorMessage';
|
|
9
|
+
export { resolveFieldError } from './resolveFieldError';
|
|
10
|
+
export { useHookFieldResolution } from './useHookFieldResolution';
|
|
9
11
|
export { deriveFieldsMetadata } from './deriveFieldsMetadata';
|
|
10
12
|
export { composeFormSchema } from './composeFormSchema';
|
|
11
13
|
export { resolveRequiredFields, filterRequiredFields, type RequiredFields, } from './resolveRequiredFields';
|
|
14
|
+
export type { FormMode, RequiredFieldRule, RequiredFieldConfig, OptionalFieldsToRequire, FieldsMetadataConfig, BuildFormSchemaResult, } from './buildFormSchema';
|
|
12
15
|
export { composeSubmitHandler } from './composeSubmitHandler';
|
|
13
16
|
export { createGetFormSubmissionValues } from './getFormSubmissionValues';
|
|
14
17
|
export { TextInputHookField, type TextInputHookFieldProps, SelectHookField, type SelectHookFieldProps, CheckboxHookField, type CheckboxHookFieldProps, NumberInputHookField, type NumberInputHookFieldProps, DatePickerHookField, type DatePickerHookFieldProps, RadioGroupHookField, type RadioGroupHookFieldProps, type TextInputProps, type SelectProps, type SelectOption, type CheckboxProps, type NumberInputProps, type DatePickerProps, type RadioGroupProps, type RadioGroupOption, SwitchHookField, type SwitchHookFieldProps, type SwitchProps, } from './fields';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function n(r) {
|
|
2
|
+
return (e) => e == null || typeof e == "number" && Number.isNaN(e) ? r : e;
|
|
3
|
+
}
|
|
4
|
+
function t(r) {
|
|
5
|
+
return r instanceof Date ? r.toISOString().split("T")[0] : r === null || r === "" || r === void 0 ? null : r;
|
|
6
|
+
}
|
|
7
|
+
function u(r) {
|
|
8
|
+
return typeof r == "string" ? r === "true" : r;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
n as coerceNaN,
|
|
12
|
+
u as coerceStringBoolean,
|
|
13
|
+
t as coerceToISODate
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=preprocessors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preprocessors.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/preprocessors.ts"],"sourcesContent":["export function coerceNaN(fallback: number) {\n return (val: unknown): number => {\n if (val === undefined || val === null) return fallback\n if (typeof val === 'number' && Number.isNaN(val)) return fallback\n return val as number\n }\n}\n\nexport function coerceToISODate(val: unknown): string | null {\n if (val instanceof Date) return val.toISOString().split('T')[0]!\n if (val === null || val === '' || val === undefined) return null\n return val as string\n}\n\nexport function coerceStringBoolean(val: unknown): boolean | undefined {\n if (typeof val === 'string') return val === 'true'\n return val as boolean | undefined\n}\n"],"names":["coerceNaN","fallback","val","coerceToISODate","coerceStringBoolean"],"mappings":"AAAO,SAASA,EAAUC,GAAkB;AAC1C,SAAO,CAACC,MACmBA,KAAQ,QAC7B,OAAOA,KAAQ,YAAY,OAAO,MAAMA,CAAG,IAAUD,IAClDC;AAEX;AAEO,SAASC,EAAgBD,GAA6B;AAC3D,SAAIA,aAAe,OAAaA,EAAI,cAAc,MAAM,GAAG,EAAE,CAAC,IAC1DA,MAAQ,QAAQA,MAAQ,MAAMA,MAAQ,SAAkB,OACrDA;AACT;AAEO,SAASE,EAAoBF,GAAmC;AACrE,SAAI,OAAOA,KAAQ,WAAiBA,MAAQ,SACrCA;AACT;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldErrors } from 'react-hook-form';
|
|
2
|
+
import { ValidationMessages } from '../../../types/sdkHooks';
|
|
3
|
+
import { SDKError } from '../../../types/sdkError';
|
|
4
|
+
export declare function resolveFieldError<TErrorCode extends string, TOptionalErrorCode extends string = never>(fieldName: string, formErrors: FieldErrors, sdkErrors: SDKError[], validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>): string | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function i(e, f, n, o) {
|
|
2
|
+
const r = f[e]?.message;
|
|
3
|
+
if (r && o?.[r])
|
|
4
|
+
return o[r];
|
|
5
|
+
for (const t of n) {
|
|
6
|
+
const s = t.fieldErrors.find((d) => d.field === e);
|
|
7
|
+
if (s?.message) return s.message;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
i as resolveFieldError
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=resolveFieldError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveFieldError.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/resolveFieldError.ts"],"sourcesContent":["import type { FieldErrors } from 'react-hook-form'\nimport type { ValidationMessages } from '@/types/sdkHooks'\nimport type { SDKError } from '@/types/sdkError'\n\nexport function resolveFieldError<\n TErrorCode extends string,\n TOptionalErrorCode extends string = never,\n>(\n fieldName: string,\n formErrors: FieldErrors,\n sdkErrors: SDKError[],\n validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>,\n): string | undefined {\n const errorCode = formErrors[fieldName]?.message as TErrorCode | undefined\n if (errorCode && validationMessages?.[errorCode]) {\n return validationMessages[errorCode]\n }\n\n for (const sdkError of sdkErrors) {\n const fieldError = sdkError.fieldErrors.find(fe => fe.field === fieldName)\n if (fieldError?.message) return fieldError.message\n }\n\n return undefined\n}\n"],"names":["resolveFieldError","fieldName","formErrors","sdkErrors","validationMessages","errorCode","sdkError","fieldError","fe"],"mappings":"AAIO,SAASA,EAIdC,GACAC,GACAC,GACAC,GACoB;AACpB,QAAMC,IAAYH,EAAWD,CAAS,GAAG;AACzC,MAAII,KAAaD,IAAqBC,CAAS;AAC7C,WAAOD,EAAmBC,CAAS;AAGrC,aAAWC,KAAYH,GAAW;AAChC,UAAMI,IAAaD,EAAS,YAAY,KAAK,CAAAE,MAAMA,EAAG,UAAUP,CAAS;AACzE,QAAIM,GAAY,QAAS,QAAOA,EAAW;AAAA,EAC7C;AAGF;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Control, FieldValues } from 'react-hook-form';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { FieldsMetadataConfig } from './buildFormSchema';
|
|
4
|
+
import { FieldMetadata } from '../../../types/sdkHooks';
|
|
5
|
+
/**
|
|
6
|
+
* Resolves dynamic field metadata (e.g. `isRequired` driven by predicate
|
|
7
|
+
* rules) by watching only the form fields that predicates actually read.
|
|
8
|
+
*
|
|
9
|
+
* `buildFormSchema` auto-detects predicate dependencies via a recording
|
|
10
|
+
* Proxy and exposes them as `predicateDeps`. This hook subscribes to only
|
|
11
|
+
* those fields, so typing into unrelated inputs does not trigger re-renders
|
|
12
|
+
* — preserving react-hook-form's per-field optimization.
|
|
13
|
+
*
|
|
14
|
+
* When no predicates exist (`predicateDeps` is empty), the hook skips
|
|
15
|
+
* `useWatch` entirely and returns static metadata.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useDeriveFieldsMetadata<T extends Record<string, z.ZodType>, TFormData extends FieldValues = FieldValues>(metadataConfig: FieldsMetadataConfig<T>, control: Control<TFormData>): Record<keyof T, FieldMetadata>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useMemo as o } from "react";
|
|
2
|
+
import { useWatch as c } from "react-hook-form";
|
|
3
|
+
function u(t, n) {
|
|
4
|
+
const { predicateDeps: e } = t, r = e.length > 0, s = c({
|
|
5
|
+
control: n,
|
|
6
|
+
name: r ? e : [],
|
|
7
|
+
disabled: !r
|
|
8
|
+
});
|
|
9
|
+
return o(() => {
|
|
10
|
+
if (!r)
|
|
11
|
+
return t.getFieldsMetadata();
|
|
12
|
+
const i = {};
|
|
13
|
+
for (let a = 0; a < e.length; a++)
|
|
14
|
+
i[e[a]] = Array.isArray(s) ? s[a] : s;
|
|
15
|
+
return t.getFieldsMetadata(i);
|
|
16
|
+
}, [t, r, e, s]);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
u as useDeriveFieldsMetadata
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useDeriveFieldsMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeriveFieldsMetadata.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport type { Control, FieldPath, FieldValues } from 'react-hook-form'\nimport { useWatch } from 'react-hook-form'\nimport type { z } from 'zod'\nimport type { FieldsMetadataConfig } from './buildFormSchema'\nimport type { FieldMetadata } from '@/types/sdkHooks'\n\n/**\n * Resolves dynamic field metadata (e.g. `isRequired` driven by predicate\n * rules) by watching only the form fields that predicates actually read.\n *\n * `buildFormSchema` auto-detects predicate dependencies via a recording\n * Proxy and exposes them as `predicateDeps`. This hook subscribes to only\n * those fields, so typing into unrelated inputs does not trigger re-renders\n * — preserving react-hook-form's per-field optimization.\n *\n * When no predicates exist (`predicateDeps` is empty), the hook skips\n * `useWatch` entirely and returns static metadata.\n */\nexport function useDeriveFieldsMetadata<\n T extends Record<string, z.ZodType>,\n TFormData extends FieldValues = FieldValues,\n>(\n metadataConfig: FieldsMetadataConfig<T>,\n control: Control<TFormData>,\n): Record<keyof T, FieldMetadata> {\n const { predicateDeps } = metadataConfig\n const hasDeps = predicateDeps.length > 0\n\n const watchedValues = useWatch({\n control,\n name: hasDeps ? (predicateDeps as FieldPath<TFormData>[]) : ([] as never[]),\n disabled: !hasDeps,\n })\n\n return useMemo(() => {\n if (!hasDeps) {\n return metadataConfig.getFieldsMetadata()\n }\n\n const data: Record<string, unknown> = {}\n for (let i = 0; i < predicateDeps.length; i++) {\n data[predicateDeps[i]!] = Array.isArray(watchedValues) ? watchedValues[i] : watchedValues\n }\n return metadataConfig.getFieldsMetadata(data)\n }, [metadataConfig, hasDeps, predicateDeps, watchedValues])\n}\n"],"names":["useDeriveFieldsMetadata","metadataConfig","control","predicateDeps","hasDeps","watchedValues","useWatch","useMemo","data","i"],"mappings":";;AAmBO,SAASA,EAIdC,GACAC,GACgC;AAChC,QAAM,EAAE,eAAAC,MAAkBF,GACpBG,IAAUD,EAAc,SAAS,GAEjCE,IAAgBC,EAAS;AAAA,IAC7B,SAAAJ;AAAA,IACA,MAAME,IAAWD,IAA4C,CAAA;AAAA,IAC7D,UAAU,CAACC;AAAA,EAAA,CACZ;AAED,SAAOG,EAAQ,MAAM;AACnB,QAAI,CAACH;AACH,aAAOH,EAAe,kBAAA;AAGxB,UAAMO,IAAgC,CAAA;AACtC,aAASC,IAAI,GAAGA,IAAIN,EAAc,QAAQM;AACxC,MAAAD,EAAKL,EAAcM,CAAC,CAAE,IAAI,MAAM,QAAQJ,CAAa,IAAIA,EAAcI,CAAC,IAAIJ;AAE9E,WAAOJ,EAAe,kBAAkBO,CAAI;AAAA,EAC9C,GAAG,CAACP,GAAgBG,GAASD,GAAeE,CAAa,CAAC;AAC5D;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidationMessages } from '
|
|
1
|
+
import { ValidationMessages } from '../../../types/sdkHooks';
|
|
2
2
|
export declare function useFieldErrorMessage<TErrorCode extends string>(fieldName: string, validationMessages?: ValidationMessages<TErrorCode>): string | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useFormContext as
|
|
2
|
-
import { useFormFieldsMetadataContext as
|
|
1
|
+
import { useFormContext as d } from "react-hook-form";
|
|
2
|
+
import { useFormFieldsMetadataContext as i } from "./FormFieldsMetadataContext.js";
|
|
3
3
|
function E(o, e) {
|
|
4
4
|
const {
|
|
5
|
-
formState: { errors:
|
|
6
|
-
} =
|
|
5
|
+
formState: { errors: s }
|
|
6
|
+
} = d(), n = i()?.errors ?? [], r = s[o]?.message;
|
|
7
7
|
if (r && e?.[r])
|
|
8
8
|
return e[r];
|
|
9
9
|
for (const f of n) {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
10
|
+
const t = f.fieldErrors.find((c) => c.field === o);
|
|
11
|
+
if (t?.message) return t.message;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldErrorMessage.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useFieldErrorMessage.ts"],"sourcesContent":["import { useFormContext } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport type { ValidationMessages } from '
|
|
1
|
+
{"version":3,"file":"useFieldErrorMessage.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useFieldErrorMessage.ts"],"sourcesContent":["import { useFormContext } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport type { ValidationMessages } from '@/types/sdkHooks'\n\nexport function useFieldErrorMessage<TErrorCode extends string>(\n fieldName: string,\n validationMessages?: ValidationMessages<TErrorCode>,\n): string | undefined {\n const {\n formState: { errors },\n } = useFormContext()\n const context = useFormFieldsMetadataContext()\n const sdkErrors = context?.errors ?? []\n\n const errorCode = errors[fieldName]?.message as TErrorCode | undefined\n if (errorCode && validationMessages?.[errorCode]) {\n return validationMessages[errorCode]\n }\n\n for (const sdkError of sdkErrors) {\n const fieldError = sdkError.fieldErrors.find(fe => fe.field === fieldName)\n if (fieldError?.message) return fieldError.message\n }\n\n return undefined\n}\n"],"names":["useFieldErrorMessage","fieldName","validationMessages","errors","useFormContext","sdkErrors","useFormFieldsMetadataContext","errorCode","sdkError","fieldError","fe"],"mappings":";;AAIO,SAASA,EACdC,GACAC,GACoB;AACpB,QAAM;AAAA,IACJ,WAAW,EAAE,QAAAC,EAAA;AAAA,EAAO,IAClBC,EAAA,GAEEC,IADUC,EAAA,GACW,UAAU,CAAA,GAE/BC,IAAYJ,EAAOF,CAAS,GAAG;AACrC,MAAIM,KAAaL,IAAqBK,CAAS;AAC7C,WAAOL,EAAmBK,CAAS;AAGrC,aAAWC,KAAYH,GAAW;AAChC,UAAMI,IAAaD,EAAS,YAAY,KAAK,CAAAE,MAAMA,EAAG,UAAUT,CAAS;AACzE,QAAIQ,GAAY,QAAS,QAAOA,EAAW;AAAA,EAC7C;AAGF;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Control } from 'react-hook-form';
|
|
2
|
+
import { FieldsMetadata, ValidationMessages, BaseFormHookReady } from '../../../types/sdkHooks';
|
|
3
|
+
interface HookFieldResolution {
|
|
4
|
+
metadata: FieldsMetadata;
|
|
5
|
+
control: Control | undefined;
|
|
6
|
+
errorMessage: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Resolves all data a HookField needs from either a `formHookResult` prop or
|
|
10
|
+
* the standard context providers (FormProvider + FormFieldsMetadataProvider).
|
|
11
|
+
*
|
|
12
|
+
* When `formHookResult` is provided, metadata/errors/control are read from
|
|
13
|
+
* the prop — no context providers required. When absent, falls back to the
|
|
14
|
+
* existing context-based path.
|
|
15
|
+
*
|
|
16
|
+
* Uses `useFormState` to establish a proper RHF subscription for error updates.
|
|
17
|
+
* When `control` is provided (prop path), useFormState subscribes directly via
|
|
18
|
+
* the control object. When absent (context path), it falls back to useFormContext
|
|
19
|
+
* internally. The `name` parameter scopes the subscription to this field.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useHookFieldResolution<TErrorCode extends string, TOptionalErrorCode extends string = never>(name: string, formHookResult: BaseFormHookReady | undefined, validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>): HookFieldResolution;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useFormState as i } from "react-hook-form";
|
|
2
|
+
import { useFormFieldsMetadataContext as c } from "./FormFieldsMetadataContext.js";
|
|
3
|
+
import { resolveFieldError as l } from "./resolveFieldError.js";
|
|
4
|
+
function M(o, r, s) {
|
|
5
|
+
const t = c(), a = r?.form.fieldsMetadata ?? t?.metadata ?? {}, e = r?.form.hookFormInternals.formMethods.control, { errors: n } = i({ control: e, name: o }), d = r ? r.errorHandling.errors : t?.errors ?? [], m = l(o, n, d, s);
|
|
6
|
+
return { metadata: a, control: e, errorMessage: m };
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
M as useHookFieldResolution
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useHookFieldResolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHookFieldResolution.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useHookFieldResolution.ts"],"sourcesContent":["import type { Control } from 'react-hook-form'\nimport { useFormState } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport { resolveFieldError } from './resolveFieldError'\nimport type { FieldsMetadata, ValidationMessages, BaseFormHookReady } from '@/types/sdkHooks'\n\ninterface HookFieldResolution {\n metadata: FieldsMetadata\n control: Control | undefined\n errorMessage: string | undefined\n}\n\n/**\n * Resolves all data a HookField needs from either a `formHookResult` prop or\n * the standard context providers (FormProvider + FormFieldsMetadataProvider).\n *\n * When `formHookResult` is provided, metadata/errors/control are read from\n * the prop — no context providers required. When absent, falls back to the\n * existing context-based path.\n *\n * Uses `useFormState` to establish a proper RHF subscription for error updates.\n * When `control` is provided (prop path), useFormState subscribes directly via\n * the control object. When absent (context path), it falls back to useFormContext\n * internally. The `name` parameter scopes the subscription to this field.\n */\nexport function useHookFieldResolution<\n TErrorCode extends string,\n TOptionalErrorCode extends string = never,\n>(\n name: string,\n formHookResult: BaseFormHookReady | undefined,\n validationMessages?: ValidationMessages<TErrorCode, TOptionalErrorCode>,\n): HookFieldResolution {\n const metadataContext = useFormFieldsMetadataContext()\n\n const metadata = formHookResult?.form.fieldsMetadata ?? metadataContext?.metadata ?? {}\n\n const control = formHookResult?.form.hookFormInternals.formMethods.control\n\n const { errors: formErrors } = useFormState({ control, name })\n\n const sdkErrors = formHookResult\n ? formHookResult.errorHandling.errors\n : (metadataContext?.errors ?? [])\n\n const errorMessage = resolveFieldError(name, formErrors, sdkErrors, validationMessages)\n\n return { metadata, control, errorMessage }\n}\n"],"names":["useHookFieldResolution","name","formHookResult","validationMessages","metadataContext","useFormFieldsMetadataContext","metadata","control","formErrors","useFormState","sdkErrors","errorMessage","resolveFieldError"],"mappings":";;;AAyBO,SAASA,EAIdC,GACAC,GACAC,GACqB;AACrB,QAAMC,IAAkBC,EAAA,GAElBC,IAAWJ,GAAgB,KAAK,kBAAkBE,GAAiB,YAAY,CAAA,GAE/EG,IAAUL,GAAgB,KAAK,kBAAkB,YAAY,SAE7D,EAAE,QAAQM,EAAA,IAAeC,EAAa,EAAE,SAAAF,GAAS,MAAAN,GAAM,GAEvDS,IAAYR,IACdA,EAAe,cAAc,SAC5BE,GAAiB,UAAU,CAAA,GAE1BO,IAAeC,EAAkBX,GAAMO,GAAYE,GAAWP,CAAkB;AAEtF,SAAO,EAAE,UAAAG,GAAU,SAAAC,GAAS,cAAAI,EAAA;AAC9B;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldMetadata, FieldMetadataWithOptions } from '
|
|
1
|
+
import { FieldMetadata, FieldMetadataWithOptions } from '../../../types/sdkHooks';
|
|
2
2
|
export declare function withOptions<TEntry = unknown>(base: FieldMetadata, options: Array<{
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/withOptions.ts"],"sourcesContent":["import type { FieldMetadata, FieldMetadataWithOptions } from '
|
|
1
|
+
{"version":3,"file":"withOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/withOptions.ts"],"sourcesContent":["import type { FieldMetadata, FieldMetadataWithOptions } from '@/types/sdkHooks'\n\nexport function withOptions<TEntry = unknown>(\n base: FieldMetadata,\n options: Array<{ label: string; value: string }>,\n entries?: TEntry[],\n): FieldMetadataWithOptions<TEntry> {\n if (entries !== undefined) {\n return { ...base, options, entries }\n }\n return { ...base, options }\n}\n"],"names":["withOptions","base","options","entries"],"mappings":"AAEO,SAASA,EACdC,GACAC,GACAC,GACkC;AAClC,SAAIA,MAAY,SACP,EAAE,GAAGF,GAAM,SAAAC,GAAS,SAAAC,EAAA,IAEtB,EAAE,GAAGF,GAAM,SAAAC,EAAA;AACpB;"}
|
|
@@ -6,10 +6,8 @@ import { useComponentContext as b } from "../../../../contexts/ComponentAdapter/
|
|
|
6
6
|
import { BaseBoundaries as L, BaseLayout as d } from "../../../Base/Base.js";
|
|
7
7
|
import "../../../Base/useBase.js";
|
|
8
8
|
import { Form as M } from "../../../Common/Form/Form.js";
|
|
9
|
-
import {
|
|
10
|
-
import "
|
|
11
|
-
import { ActionsLayout as T } from "../../../Common/ActionsLayout/ActionsLayout.js";
|
|
12
|
-
import "react";
|
|
9
|
+
import { ActionsLayout as U } from "../../../Common/ActionsLayout/ActionsLayout.js";
|
|
10
|
+
import { FLSA_OVERTIME_SALARY_LIMIT as T, componentEvents as r } from "../../../../shared/constants.js";
|
|
13
11
|
import { useI18n as I, useComponentDictionary as S } from "../../../../i18n/I18n.js";
|
|
14
12
|
import g from "../../../../hooks/useNumberFormatter.js";
|
|
15
13
|
function W({ onEvent: n, dictionary: l, ...E }) {
|
|
@@ -85,7 +83,7 @@ function W({ onEvent: n, dictionary: l, ...E }) {
|
|
|
85
83
|
REQUIRED: e("fieldValidations.rate.REQUIRED"),
|
|
86
84
|
RATE_MINIMUM: e("fieldValidations.rate.RATE_MINIMUM"),
|
|
87
85
|
RATE_EXEMPT_THRESHOLD: e("fieldValidations.rate.RATE_EXEMPT_THRESHOLD", {
|
|
88
|
-
limit: c(
|
|
86
|
+
limit: c(T)
|
|
89
87
|
})
|
|
90
88
|
}
|
|
91
89
|
}
|
|
@@ -124,7 +122,7 @@ function W({ onEvent: n, dictionary: l, ...E }) {
|
|
|
124
122
|
{
|
|
125
123
|
label: e("stateWcCoveredLabel"),
|
|
126
124
|
description: e("stateWcCoveredDescription"),
|
|
127
|
-
getOptionLabel: (o) => e(o
|
|
125
|
+
getOptionLabel: (o) => e(o ? "stateWcCoveredYes" : "stateWcCoveredNo")
|
|
128
126
|
}
|
|
129
127
|
),
|
|
130
128
|
i.StateWcClassCode && /* @__PURE__ */ t(
|
|
@@ -137,15 +135,15 @@ function W({ onEvent: n, dictionary: l, ...E }) {
|
|
|
137
135
|
}
|
|
138
136
|
}
|
|
139
137
|
),
|
|
140
|
-
/* @__PURE__ */ t(
|
|
138
|
+
/* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(m.Button, { type: "submit", isLoading: a.status.isPending, children: e("saveNewJobCta") }) })
|
|
141
139
|
]
|
|
142
140
|
}
|
|
143
141
|
) }) });
|
|
144
142
|
}
|
|
145
|
-
function
|
|
143
|
+
function j({ FallbackComponent: n, ...l }) {
|
|
146
144
|
return /* @__PURE__ */ t(L, { componentName: "UNSTABLE.CompensationForm", FallbackComponent: n, children: /* @__PURE__ */ t(W, { ...l }) });
|
|
147
145
|
}
|
|
148
146
|
export {
|
|
149
|
-
|
|
147
|
+
j as CompensationForm
|
|
150
148
|
};
|
|
151
149
|
//# sourceMappingURL=CompensationForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompensationForm.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { SDKFormProvider } from '../../form/SDKFormProvider'\nimport { useCompensationForm } from './useCompensationForm'\nimport type { UseCompensationFormProps } from './useCompensationForm'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { componentEvents, FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\nexport interface CompensationFormProps\n extends UseCompensationFormProps, Omit<BaseComponentInterface, 'defaultValues'> {}\n\nfunction CompensationFormRoot({ onEvent, dictionary, ...hookProps }: CompensationFormProps) {\n useI18n('UNSTABLE.CompensationForm')\n useComponentDictionary('UNSTABLE.CompensationForm', dictionary)\n const { t } = useTranslation('UNSTABLE.CompensationForm')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const compensation = useCompensationForm(hookProps)\n\n if (compensation.isLoading) {\n return <BaseLayout isLoading error={compensation.errorHandling.errors} />\n }\n\n const { Fields } = compensation.form\n\n const handleSubmit = async () => {\n const result = await compensation.actions.onSubmit({\n onJobCreated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_CREATED, job)\n },\n onJobUpdated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_UPDATED, job)\n },\n onCompensationUpdated: comp => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, comp)\n },\n })\n if (result) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE, result.data)\n }\n }\n\n return (\n <BaseLayout error={compensation.errorHandling.errors}>\n <SDKFormProvider formHookResult={compensation}>\n <Form\n onSubmit={e => {\n e.preventDefault()\n void handleSubmit()\n }}\n >\n <Components.Heading as=\"h2\">\n {compensation.status.mode === 'create' ? t('addTitle') : t('editTitle')}\n </Components.Heading>\n\n {Fields.StartDate && (\n <Fields.StartDate\n label={t('startDateLabel')}\n validationMessages={{\n REQUIRED: t('fieldValidations.startDate.REQUIRED'),\n }}\n />\n )}\n\n <Fields.JobTitle\n label={t('jobTitle')}\n validationMessages={{\n REQUIRED: t('fieldValidations.jobTitle.REQUIRED'),\n }}\n />\n\n {Fields.FlsaStatus && (\n <Fields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{\n ClassificationLink: <Components.Link />,\n }}\n />\n }\n getOptionLabel={status => t(`flsaStatusLabels.${status}`, status)}\n validationMessages={{\n REQUIRED: t('fieldValidations.flsaStatus.REQUIRED'),\n }}\n />\n )}\n\n <Fields.Rate\n label={t('amount')}\n validationMessages={{\n REQUIRED: t('fieldValidations.rate.REQUIRED'),\n RATE_MINIMUM: t('fieldValidations.rate.RATE_MINIMUM'),\n RATE_EXEMPT_THRESHOLD: t('fieldValidations.rate.RATE_EXEMPT_THRESHOLD', {\n limit: formatCurrency(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n />\n\n <Fields.PaymentUnit\n label={t('paymentUnitLabel')}\n description={t('paymentUnitDescription')}\n getOptionLabel={unit => t(`paymentUnitOptions.${unit}`, unit)}\n validationMessages={{\n REQUIRED: t('fieldValidations.paymentUnit.REQUIRED'),\n }}\n />\n\n {Fields.AdjustForMinimumWage && (\n <Fields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n />\n )}\n\n {Fields.MinimumWageId && (\n <Fields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.minimumWageId.REQUIRED'),\n }}\n />\n )}\n\n {Fields.TwoPercentShareholder && (\n <Fields.TwoPercentShareholder label={t('twoPercentStakeholderLabel')} />\n )}\n\n {Fields.StateWcCovered && (\n <Fields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={t('stateWcCoveredDescription')}\n getOptionLabel={key =>\n key === 'yes' ? t('stateWcCoveredYes') : t('stateWcCoveredNo')\n }\n />\n )}\n\n {Fields.StateWcClassCode && (\n <Fields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.stateWcClassCode.REQUIRED'),\n }}\n />\n )}\n\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={compensation.status.isPending}>\n {t('saveNewJobCta')}\n </Components.Button>\n </ActionsLayout>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n\nexport function CompensationForm({ FallbackComponent, ...props }: CompensationFormProps) {\n return (\n <BaseBoundaries componentName=\"UNSTABLE.CompensationForm\" FallbackComponent={FallbackComponent}>\n <CompensationFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["CompensationFormRoot","onEvent","dictionary","hookProps","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","compensation","useCompensationForm","BaseLayout","Fields","handleSubmit","result","job","componentEvents","comp","jsx","SDKFormProvider","jsxs","Form","e","Trans","status","FLSA_OVERTIME_SALARY_LIMIT","unit","key","ActionsLayout","CompensationForm","FallbackComponent","props","BaseBoundaries"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"CompensationForm.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { SDKFormProvider } from '../../form/SDKFormProvider'\nimport { useCompensationForm } from './useCompensationForm'\nimport type { UseCompensationFormProps } from './useCompensationForm'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { componentEvents, FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\nexport interface CompensationFormProps\n extends UseCompensationFormProps, Omit<BaseComponentInterface, 'defaultValues'> {}\n\nfunction CompensationFormRoot({ onEvent, dictionary, ...hookProps }: CompensationFormProps) {\n useI18n('UNSTABLE.CompensationForm')\n useComponentDictionary('UNSTABLE.CompensationForm', dictionary)\n const { t } = useTranslation('UNSTABLE.CompensationForm')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const compensation = useCompensationForm(hookProps)\n\n if (compensation.isLoading) {\n return <BaseLayout isLoading error={compensation.errorHandling.errors} />\n }\n\n const { Fields } = compensation.form\n\n const handleSubmit = async () => {\n const result = await compensation.actions.onSubmit({\n onJobCreated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_CREATED, job)\n },\n onJobUpdated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_UPDATED, job)\n },\n onCompensationUpdated: comp => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, comp)\n },\n })\n if (result) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE, result.data)\n }\n }\n\n return (\n <BaseLayout error={compensation.errorHandling.errors}>\n <SDKFormProvider formHookResult={compensation}>\n <Form\n onSubmit={e => {\n e.preventDefault()\n void handleSubmit()\n }}\n >\n <Components.Heading as=\"h2\">\n {compensation.status.mode === 'create' ? t('addTitle') : t('editTitle')}\n </Components.Heading>\n\n {Fields.StartDate && (\n <Fields.StartDate\n label={t('startDateLabel')}\n validationMessages={{\n REQUIRED: t('fieldValidations.startDate.REQUIRED'),\n }}\n />\n )}\n\n <Fields.JobTitle\n label={t('jobTitle')}\n validationMessages={{\n REQUIRED: t('fieldValidations.jobTitle.REQUIRED'),\n }}\n />\n\n {Fields.FlsaStatus && (\n <Fields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{\n ClassificationLink: <Components.Link />,\n }}\n />\n }\n getOptionLabel={status => t(`flsaStatusLabels.${status}`, status)}\n validationMessages={{\n REQUIRED: t('fieldValidations.flsaStatus.REQUIRED'),\n }}\n />\n )}\n\n <Fields.Rate\n label={t('amount')}\n validationMessages={{\n REQUIRED: t('fieldValidations.rate.REQUIRED'),\n RATE_MINIMUM: t('fieldValidations.rate.RATE_MINIMUM'),\n RATE_EXEMPT_THRESHOLD: t('fieldValidations.rate.RATE_EXEMPT_THRESHOLD', {\n limit: formatCurrency(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n />\n\n <Fields.PaymentUnit\n label={t('paymentUnitLabel')}\n description={t('paymentUnitDescription')}\n getOptionLabel={unit => t(`paymentUnitOptions.${unit}`, unit)}\n validationMessages={{\n REQUIRED: t('fieldValidations.paymentUnit.REQUIRED'),\n }}\n />\n\n {Fields.AdjustForMinimumWage && (\n <Fields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n />\n )}\n\n {Fields.MinimumWageId && (\n <Fields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.minimumWageId.REQUIRED'),\n }}\n />\n )}\n\n {Fields.TwoPercentShareholder && (\n <Fields.TwoPercentShareholder label={t('twoPercentStakeholderLabel')} />\n )}\n\n {Fields.StateWcCovered && (\n <Fields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={t('stateWcCoveredDescription')}\n getOptionLabel={key => (key ? t('stateWcCoveredYes') : t('stateWcCoveredNo'))}\n />\n )}\n\n {Fields.StateWcClassCode && (\n <Fields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.stateWcClassCode.REQUIRED'),\n }}\n />\n )}\n\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={compensation.status.isPending}>\n {t('saveNewJobCta')}\n </Components.Button>\n </ActionsLayout>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n\nexport function CompensationForm({ FallbackComponent, ...props }: CompensationFormProps) {\n return (\n <BaseBoundaries componentName=\"UNSTABLE.CompensationForm\" FallbackComponent={FallbackComponent}>\n <CompensationFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["CompensationFormRoot","onEvent","dictionary","hookProps","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","compensation","useCompensationForm","BaseLayout","Fields","handleSubmit","result","job","componentEvents","comp","jsx","SDKFormProvider","jsxs","Form","e","Trans","status","FLSA_OVERTIME_SALARY_LIMIT","unit","key","ActionsLayout","CompensationForm","FallbackComponent","props","BaseBoundaries"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { OptionalFieldsToRequire } from '../../form/buildFormSchema';
|
|
3
3
|
export declare const CompensationErrorCodes: {
|
|
4
4
|
readonly REQUIRED: "REQUIRED";
|
|
5
5
|
readonly RATE_MINIMUM: "RATE_MINIMUM";
|
|
@@ -26,53 +26,56 @@ declare const fieldValidators: {
|
|
|
26
26
|
Year: "Year";
|
|
27
27
|
Paycheck: "Paycheck";
|
|
28
28
|
}>;
|
|
29
|
-
rate: z.
|
|
30
|
-
startDate: z.
|
|
29
|
+
rate: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
|
|
30
|
+
startDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
|
|
31
31
|
adjustForMinimumWage: z.ZodBoolean;
|
|
32
|
-
minimumWageId: z.
|
|
33
|
-
stateWcCovered: z.
|
|
34
|
-
stateWcClassCode: z.
|
|
35
|
-
twoPercentShareholder: z.
|
|
32
|
+
minimumWageId: z.ZodString;
|
|
33
|
+
stateWcCovered: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
|
|
34
|
+
stateWcClassCode: z.ZodString;
|
|
35
|
+
twoPercentShareholder: z.ZodBoolean;
|
|
36
36
|
};
|
|
37
|
-
export type CompensationField = Exclude<keyof typeof fieldValidators, 'adjustForMinimumWage' | 'minimumWageId' | 'stateWcCovered' | 'stateWcClassCode' | 'twoPercentShareholder'>;
|
|
38
37
|
export type CompensationFormData = {
|
|
39
38
|
[K in keyof typeof fieldValidators]: z.infer<(typeof fieldValidators)[K]>;
|
|
40
39
|
};
|
|
40
|
+
declare const requiredFieldsConfig: {
|
|
41
|
+
jobTitle: "create";
|
|
42
|
+
flsaStatus: "create";
|
|
43
|
+
paymentUnit: "create";
|
|
44
|
+
rate: "create";
|
|
45
|
+
startDate: "create";
|
|
46
|
+
minimumWageId: (data: {
|
|
47
|
+
jobTitle: string;
|
|
48
|
+
flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt" | "Owner" | "Commission Only Exempt" | "Commission Only Nonexempt";
|
|
49
|
+
paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck";
|
|
50
|
+
rate: number;
|
|
51
|
+
startDate: string | null;
|
|
52
|
+
adjustForMinimumWage: boolean;
|
|
53
|
+
minimumWageId: string;
|
|
54
|
+
stateWcCovered: boolean;
|
|
55
|
+
stateWcClassCode: string;
|
|
56
|
+
twoPercentShareholder: boolean;
|
|
57
|
+
}) => boolean;
|
|
58
|
+
stateWcClassCode: (data: {
|
|
59
|
+
jobTitle: string;
|
|
60
|
+
flsaStatus: "Exempt" | "Salaried Nonexempt" | "Nonexempt" | "Owner" | "Commission Only Exempt" | "Commission Only Nonexempt";
|
|
61
|
+
paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck";
|
|
62
|
+
rate: number;
|
|
63
|
+
startDate: string | null;
|
|
64
|
+
adjustForMinimumWage: boolean;
|
|
65
|
+
minimumWageId: string;
|
|
66
|
+
stateWcCovered: boolean;
|
|
67
|
+
stateWcClassCode: string;
|
|
68
|
+
twoPercentShareholder: boolean;
|
|
69
|
+
}) => boolean;
|
|
70
|
+
};
|
|
71
|
+
export type CompensationOptionalFieldsToRequire = OptionalFieldsToRequire<typeof requiredFieldsConfig>;
|
|
41
72
|
export type CompensationFormOutputs = CompensationFormData;
|
|
42
73
|
interface CompensationSchemaOptions {
|
|
43
74
|
mode?: 'create' | 'update';
|
|
44
|
-
|
|
75
|
+
optionalFieldsToRequire?: CompensationOptionalFieldsToRequire;
|
|
45
76
|
withStartDateField?: boolean;
|
|
46
77
|
}
|
|
47
|
-
export declare function createCompensationSchema(options?: CompensationSchemaOptions):
|
|
48
|
-
rate: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNumber>;
|
|
49
|
-
startDate: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodISODate>;
|
|
50
|
-
stateWcCovered: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
51
|
-
jobTitle: z.ZodString;
|
|
52
|
-
flsaStatus: z.ZodEnum<{
|
|
53
|
-
Exempt: "Exempt";
|
|
54
|
-
"Salaried Nonexempt": "Salaried Nonexempt";
|
|
55
|
-
Nonexempt: "Nonexempt";
|
|
56
|
-
Owner: "Owner";
|
|
57
|
-
"Commission Only Exempt": "Commission Only Exempt";
|
|
58
|
-
"Commission Only Nonexempt": "Commission Only Nonexempt";
|
|
59
|
-
}>;
|
|
60
|
-
paymentUnit: z.ZodEnum<{
|
|
61
|
-
Hour: "Hour";
|
|
62
|
-
Week: "Week";
|
|
63
|
-
Month: "Month";
|
|
64
|
-
Year: "Year";
|
|
65
|
-
Paycheck: "Paycheck";
|
|
66
|
-
}>;
|
|
67
|
-
adjustForMinimumWage: z.ZodBoolean;
|
|
68
|
-
minimumWageId: z.ZodOptional<z.ZodString>;
|
|
69
|
-
stateWcClassCode: z.ZodOptional<z.ZodString>;
|
|
70
|
-
twoPercentShareholder: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
export declare const CompensationSchema: z.ZodObject<{
|
|
73
|
-
rate: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNumber>;
|
|
74
|
-
startDate: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodISODate>;
|
|
75
|
-
stateWcCovered: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
78
|
+
export declare function createCompensationSchema(options?: CompensationSchemaOptions): import('../../form').BuildFormSchemaResult<{
|
|
76
79
|
jobTitle: z.ZodString;
|
|
77
80
|
flsaStatus: z.ZodEnum<{
|
|
78
81
|
Exempt: "Exempt";
|
|
@@ -89,9 +92,12 @@ export declare const CompensationSchema: z.ZodObject<{
|
|
|
89
92
|
Year: "Year";
|
|
90
93
|
Paycheck: "Paycheck";
|
|
91
94
|
}>;
|
|
95
|
+
rate: z.ZodPipe<z.ZodTransform<number, unknown>, z.ZodNumber>;
|
|
96
|
+
startDate: z.ZodPipe<z.ZodTransform<string | null, unknown>, z.ZodNullable<z.ZodISODate>>;
|
|
92
97
|
adjustForMinimumWage: z.ZodBoolean;
|
|
93
|
-
minimumWageId: z.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
minimumWageId: z.ZodString;
|
|
99
|
+
stateWcCovered: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodBoolean>;
|
|
100
|
+
stateWcClassCode: z.ZodString;
|
|
101
|
+
twoPercentShareholder: z.ZodBoolean;
|
|
102
|
+
}>;
|
|
97
103
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { yearlyRate as
|
|
6
|
-
const
|
|
2
|
+
import { buildFormSchema as d } from "../../form/buildFormSchema.js";
|
|
3
|
+
import { coerceStringBoolean as i, coerceToISODate as N, coerceNaN as m } from "../../form/preprocessors.js";
|
|
4
|
+
import { PAY_PERIODS as r, FlsaStatus as t, FLSA_OVERTIME_SALARY_LIMIT as O } from "../../../../shared/constants.js";
|
|
5
|
+
import { yearlyRate as T } from "../../../../helpers/payRateCalculator.js";
|
|
6
|
+
const E = {
|
|
7
7
|
REQUIRED: "REQUIRED",
|
|
8
8
|
RATE_MINIMUM: "RATE_MINIMUM",
|
|
9
9
|
RATE_EXEMPT_THRESHOLD: "RATE_EXEMPT_THRESHOLD",
|
|
10
10
|
PAYMENT_UNIT_OWNER: "PAYMENT_UNIT_OWNER",
|
|
11
11
|
PAYMENT_UNIT_COMMISSION: "PAYMENT_UNIT_COMMISSION",
|
|
12
12
|
RATE_COMMISSION_ZERO: "RATE_COMMISSION_ZERO"
|
|
13
|
-
},
|
|
14
|
-
jobTitle: e.string()
|
|
13
|
+
}, n = {
|
|
14
|
+
jobTitle: e.string(),
|
|
15
15
|
flsaStatus: e.enum([
|
|
16
16
|
t.EXEMPT,
|
|
17
17
|
t.SALARIED_NONEXEMPT,
|
|
@@ -27,95 +27,64 @@ const a = {
|
|
|
27
27
|
r.YEAR,
|
|
28
28
|
r.PAYCHECK
|
|
29
29
|
]),
|
|
30
|
-
rate: e.
|
|
31
|
-
startDate: e.iso.date().nullable()
|
|
30
|
+
rate: e.preprocess(m(0), e.number()),
|
|
31
|
+
startDate: e.preprocess(N, e.iso.date().nullable()),
|
|
32
32
|
adjustForMinimumWage: e.boolean(),
|
|
33
|
-
minimumWageId: e.string()
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, e.iso.date()),
|
|
51
|
-
stateWcCovered: e.preprocess((s) => typeof s == "string" ? s === "true" : s, e.boolean()).optional()
|
|
52
|
-
}, T = /* @__PURE__ */ new Set([
|
|
53
|
-
"jobTitle",
|
|
54
|
-
"flsaStatus",
|
|
55
|
-
"rate",
|
|
56
|
-
"paymentUnit"
|
|
57
|
-
]), _ = /* @__PURE__ */ new Set([]);
|
|
58
|
-
function C(s, o) {
|
|
59
|
-
s.adjustForMinimumWage && (!s.minimumWageId || s.minimumWageId.trim() === "") && o.addIssue({
|
|
60
|
-
code: e.ZodIssueCode.custom,
|
|
61
|
-
path: ["minimumWageId"],
|
|
62
|
-
message: a.REQUIRED
|
|
63
|
-
}), s.stateWcCovered === !0 && (!s.stateWcClassCode || s.stateWcClassCode.trim() === "") && o.addIssue({
|
|
64
|
-
code: e.ZodIssueCode.custom,
|
|
65
|
-
path: ["stateWcClassCode"],
|
|
66
|
-
message: a.REQUIRED
|
|
67
|
-
});
|
|
68
|
-
const { flsaStatus: i, paymentUnit: E, rate: d } = s;
|
|
69
|
-
i === t.EXEMPT || i === t.SALARIED_NONEXEMPT || i === t.NONEXEMPT ? (i === t.EXEMPT && d !== void 0 && N(d, E) < R && o.addIssue({
|
|
70
|
-
code: e.ZodIssueCode.custom,
|
|
71
|
-
path: ["rate"],
|
|
72
|
-
message: a.RATE_EXEMPT_THRESHOLD
|
|
73
|
-
}), d === void 0 ? o.addIssue({
|
|
33
|
+
minimumWageId: e.string(),
|
|
34
|
+
// Radio group delivers 'true'/'false' strings; coerceStringBoolean converts to boolean
|
|
35
|
+
stateWcCovered: e.preprocess(i, e.boolean()),
|
|
36
|
+
stateWcClassCode: e.string(),
|
|
37
|
+
twoPercentShareholder: e.boolean()
|
|
38
|
+
}, u = {
|
|
39
|
+
jobTitle: "create",
|
|
40
|
+
flsaStatus: "create",
|
|
41
|
+
paymentUnit: "create",
|
|
42
|
+
rate: "create",
|
|
43
|
+
startDate: "create",
|
|
44
|
+
minimumWageId: (o) => o.adjustForMinimumWage,
|
|
45
|
+
stateWcClassCode: (o) => String(o.stateWcCovered) === "true"
|
|
46
|
+
};
|
|
47
|
+
function _(o, a) {
|
|
48
|
+
const { flsaStatus: s, paymentUnit: I, rate: M } = o;
|
|
49
|
+
s === t.EXEMPT || s === t.SALARIED_NONEXEMPT || s === t.NONEXEMPT ? M < 1 ? a.addIssue({
|
|
74
50
|
code: e.ZodIssueCode.custom,
|
|
75
51
|
path: ["rate"],
|
|
76
|
-
message:
|
|
77
|
-
}) :
|
|
52
|
+
message: E.RATE_MINIMUM
|
|
53
|
+
}) : s === t.EXEMPT && T(M, I) < O && a.addIssue({
|
|
78
54
|
code: e.ZodIssueCode.custom,
|
|
79
55
|
path: ["rate"],
|
|
80
|
-
message:
|
|
81
|
-
})
|
|
56
|
+
message: E.RATE_EXEMPT_THRESHOLD
|
|
57
|
+
}) : s === t.OWNER ? (I !== r.PAYCHECK && a.addIssue({
|
|
82
58
|
code: e.ZodIssueCode.custom,
|
|
83
59
|
path: ["paymentUnit"],
|
|
84
|
-
message:
|
|
85
|
-
}),
|
|
86
|
-
code: e.ZodIssueCode.custom,
|
|
87
|
-
path: ["rate"],
|
|
88
|
-
message: a.REQUIRED
|
|
89
|
-
}) : d < 1 && o.addIssue({
|
|
60
|
+
message: E.PAYMENT_UNIT_OWNER
|
|
61
|
+
}), M < 1 && a.addIssue({
|
|
90
62
|
code: e.ZodIssueCode.custom,
|
|
91
63
|
path: ["rate"],
|
|
92
|
-
message:
|
|
93
|
-
})) :
|
|
64
|
+
message: E.RATE_MINIMUM
|
|
65
|
+
})) : (s === t.COMMISSION_ONLY_EXEMPT || s === t.COMMISSION_ONLY_NONEXEMPT) && (I !== r.YEAR && a.addIssue({
|
|
94
66
|
code: e.ZodIssueCode.custom,
|
|
95
67
|
path: ["paymentUnit"],
|
|
96
|
-
message:
|
|
97
|
-
}),
|
|
68
|
+
message: E.PAYMENT_UNIT_COMMISSION
|
|
69
|
+
}), M !== 0 && a.addIssue({
|
|
98
70
|
code: e.ZodIssueCode.custom,
|
|
99
71
|
path: ["rate"],
|
|
100
|
-
message:
|
|
72
|
+
message: E.RATE_COMMISSION_ZERO
|
|
101
73
|
}));
|
|
102
74
|
}
|
|
103
|
-
function
|
|
104
|
-
const { mode:
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}).superRefine((I, m) => {
|
|
113
|
-
C(I, m);
|
|
75
|
+
function A(o = {}) {
|
|
76
|
+
const { mode: a = "create", optionalFieldsToRequire: s, withStartDateField: I = !0 } = o;
|
|
77
|
+
return d(n, {
|
|
78
|
+
requiredFieldsConfig: u,
|
|
79
|
+
requiredErrorCode: E.REQUIRED,
|
|
80
|
+
mode: a,
|
|
81
|
+
optionalFieldsToRequire: s,
|
|
82
|
+
excludeFields: I ? [] : ["startDate"],
|
|
83
|
+
superRefine: _
|
|
114
84
|
});
|
|
115
85
|
}
|
|
116
|
-
p();
|
|
117
86
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
87
|
+
E as CompensationErrorCodes,
|
|
88
|
+
A as createCompensationSchema
|
|
120
89
|
};
|
|
121
90
|
//# sourceMappingURL=compensationSchema.js.map
|