@remoteoss/remote-flows 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/dist/ButtonDefault-A5JWQEZF.js +2 -0
- package/dist/CheckboxFieldDefault-2YCVL3MM.js +2 -0
- package/dist/CountryFieldDefault-IY664WKC.js +2 -0
- package/dist/DatePickerFieldDefault-UZ3W2B3R.js +2 -0
- package/dist/DrawerDefault-HQGPEMMY.js +2 -0
- package/dist/EmailFieldDefault-6GQMGBQV.js +2 -0
- package/dist/FieldsetToggleButtonDefault-NQCXWGRK.js +2 -0
- package/dist/FileUploadFieldDefault-L3LOK4A5.js +2 -0
- package/dist/MultiSelectFieldDefault-OE5NHM6A.js +2 -0
- package/dist/NumberFieldDefault-MV3FSZOG.js +2 -0
- package/dist/RadioGroupFieldDefault-J3ESFNPW.js +2 -0
- package/dist/SelectFieldDefault-F2MAJW7S.js +2 -0
- package/dist/StatementDefault-FTAOOAL4.js +2 -0
- package/dist/TableFieldDefault-LXHWAWPG.js +2 -0
- package/dist/TelFieldDefault-EHHOHIQD.js +2 -0
- package/dist/TextAreaFieldDefault-VXPH3YGT.js +2 -0
- package/dist/TextFieldDefault-QWGENVEE.js +2 -0
- package/dist/WorkScheduleFieldDefault-SJSAWRYV.js +2 -0
- package/dist/ZendeskDrawerDefault-SUUZWWY2.js +2 -0
- package/dist/ZendeskDrawerDefault-SUUZWWY2.js.map +1 -0
- package/dist/{chunk-L5DII4MV.js → chunk-237RQGWE.js} +2 -2
- package/dist/{chunk-6JTHV4QS.js → chunk-2Y7QAG2Q.js} +2 -2
- package/dist/{chunk-BNQFPYNQ.js → chunk-32M6SNGV.js} +2 -2
- package/dist/{chunk-T4QDKI7V.js → chunk-3BEEU2N4.js} +2 -2
- package/dist/{chunk-W5YNJOSB.js → chunk-3HAKPYWK.js} +2 -2
- package/dist/{chunk-FAIEJW57.js → chunk-3HZOTQHD.js} +2 -2
- package/dist/chunk-3HZOTQHD.js.map +1 -0
- package/dist/{chunk-OELREIVJ.js → chunk-3VALWCZ5.js} +2 -2
- package/dist/{chunk-547UHEDI.js → chunk-423VHE7M.js} +2 -2
- package/dist/{chunk-56UXOD27.js → chunk-43MCQDBU.js} +2 -2
- package/dist/{chunk-WRRTZ2AL.js → chunk-4Z2DLHAT.js} +2 -2
- package/dist/chunk-552XBDTE.js +2 -0
- package/dist/chunk-552XBDTE.js.map +1 -0
- package/dist/{chunk-MSBCYMSH.js → chunk-5BGETBLF.js} +2 -2
- package/dist/{chunk-2V4CTIAG.js → chunk-5EYREHAZ.js} +2 -2
- package/dist/{chunk-PZUCONZ4.js → chunk-5FOI6SK4.js} +2 -2
- package/dist/{chunk-S6IMK3LL.js → chunk-5ISPVKB4.js} +2 -2
- package/dist/{chunk-D7W4VBSV.js → chunk-5MJH36G3.js} +2 -2
- package/dist/chunk-5XNFVJNM.js +2 -0
- package/dist/chunk-5XNFVJNM.js.map +1 -0
- package/dist/chunk-626FTNKA.js +2 -0
- package/dist/chunk-626FTNKA.js.map +1 -0
- package/dist/{chunk-VFB3RR5I.js → chunk-65KMTRFL.js} +2 -2
- package/dist/{chunk-26IIK5U2.js → chunk-6PRPMEWS.js} +2 -2
- package/dist/{chunk-L3LOATSG.js → chunk-74U3UMRA.js} +2 -2
- package/dist/chunk-766AUWUO.js +2 -0
- package/dist/chunk-766AUWUO.js.map +1 -0
- package/dist/{chunk-T2KDFAAY.js → chunk-7NZH3TF3.js} +2 -2
- package/dist/{chunk-B2BH4JUO.js → chunk-7WV3GBEI.js} +2 -2
- package/dist/{chunk-H5QXOIKS.js → chunk-A3NABWR7.js} +2 -2
- package/dist/{chunk-SPQM2TCX.js → chunk-AEKGVWE5.js} +2 -2
- package/dist/{chunk-CKVI2UDU.js → chunk-AGZHFGBR.js} +2 -2
- package/dist/{chunk-BAMGHBLT.js → chunk-AVJEDFND.js} +2 -2
- package/dist/{chunk-RVADUHPA.js → chunk-BTGWCFHJ.js} +2 -2
- package/dist/chunk-CHRRWZHW.js +2 -0
- package/dist/chunk-CHRRWZHW.js.map +1 -0
- package/dist/{chunk-J7MCWMDD.js → chunk-COZWEBRG.js} +2 -2
- package/dist/chunk-D3EUFZXJ.js +2 -0
- package/dist/{chunk-M4TBX2FU.js.map → chunk-D3EUFZXJ.js.map} +1 -1
- package/dist/{chunk-IORVZBRC.js → chunk-DA3D7BEQ.js} +2 -2
- package/dist/{chunk-IORVZBRC.js.map → chunk-DA3D7BEQ.js.map} +1 -1
- package/dist/{chunk-7G5JSUZU.js → chunk-DJOLLEOJ.js} +2 -2
- package/dist/{chunk-MP3VDCI7.js → chunk-DJYO6IIO.js} +2 -2
- package/dist/{chunk-42R2H2DW.js → chunk-DN6BXTAC.js} +1 -1
- package/dist/chunk-DN6BXTAC.js.map +1 -0
- package/dist/{chunk-6ABCDOFB.js → chunk-DXHWEBVC.js} +2 -2
- package/dist/{chunk-IFX5XLPZ.js → chunk-E37JLKX4.js} +2 -2
- package/dist/chunk-E3HFSANG.js +2 -0
- package/dist/{chunk-BK44KHBJ.js.map → chunk-E3HFSANG.js.map} +1 -1
- package/dist/chunk-EARN6G25.js +2 -0
- package/dist/chunk-EARN6G25.js.map +1 -0
- package/dist/{chunk-RYVRMH6C.js → chunk-EJCCWBLQ.js} +2 -2
- package/dist/chunk-EVJ77XIZ.js +2 -0
- package/dist/{chunk-ZO34QFKD.js.map → chunk-EVJ77XIZ.js.map} +1 -1
- package/dist/{chunk-VB6KFDBL.js → chunk-FHGQELT7.js} +2 -2
- package/dist/{chunk-VRW22LTU.js → chunk-FUOTJMAO.js} +2 -2
- package/dist/{chunk-MGZWMJMP.js → chunk-FYBXLFMI.js} +2 -2
- package/dist/{chunk-O6H66UM2.js → chunk-FZVUO3UU.js} +2 -2
- package/dist/{chunk-RGRCYSYE.js → chunk-GBQPG5OU.js} +2 -2
- package/dist/{chunk-3BBQDNZD.js → chunk-GPXETIKG.js} +2 -2
- package/dist/{chunk-HYDNZQOV.js → chunk-HLR7IUW7.js} +2 -2
- package/dist/{chunk-YUJBCOLO.js → chunk-IFD3RW53.js} +2 -2
- package/dist/chunk-IJDBUKEM.js +2 -0
- package/dist/chunk-IJDBUKEM.js.map +1 -0
- package/dist/{chunk-6MJVXTLI.js → chunk-IKSPEKDA.js} +2 -2
- package/dist/chunk-JHH66SSM.js +2 -0
- package/dist/chunk-JHH66SSM.js.map +1 -0
- package/dist/{chunk-TNN3W5TU.js → chunk-JJDAJQG4.js} +2 -2
- package/dist/{chunk-UMVA4SIV.js → chunk-JOHNIKN6.js} +2 -2
- package/dist/chunk-K5XSOKKX.js +2 -0
- package/dist/{chunk-53KG3SOU.js.map → chunk-K5XSOKKX.js.map} +1 -1
- package/dist/chunk-KFYWUBRS.js +2 -0
- package/dist/{chunk-LNV36S6D.js.map → chunk-KFYWUBRS.js.map} +1 -1
- package/dist/chunk-KQUKUR4T.js +2 -0
- package/dist/chunk-KQUKUR4T.js.map +1 -0
- package/dist/{chunk-TQXCLXWH.js → chunk-L3XWJ35V.js} +2 -2
- package/dist/{chunk-4IE7XN74.js → chunk-LBGZYTNR.js} +2 -2
- package/dist/{chunk-KXT6ACFL.js → chunk-LBNA4RGS.js} +2 -2
- package/dist/{chunk-NLBQ7CZC.js → chunk-LRPDJWIO.js} +2 -2
- package/dist/{chunk-AR5X2YWE.js → chunk-LZL5KK3N.js} +2 -2
- package/dist/{chunk-BYDQHL6O.js → chunk-MEOD4UGO.js} +2 -2
- package/dist/{chunk-WQVZXTW3.js → chunk-MOM5PCKI.js} +2 -2
- package/dist/{chunk-EP6FL2L3.js → chunk-N4TAXXWW.js} +2 -2
- package/dist/{chunk-NAF6LRSS.js → chunk-NZ7BAZNH.js} +2 -2
- package/dist/{chunk-SNBAM7SA.js → chunk-OABRM5LK.js} +2 -2
- package/dist/{chunk-WD2JGIDK.js → chunk-OOEKN64P.js} +2 -2
- package/dist/{chunk-XRN6752K.js → chunk-OORPUQ3N.js} +2 -2
- package/dist/{chunk-3LCASKDS.js → chunk-OOSCL4WD.js} +2 -2
- package/dist/{chunk-NNFWLL7F.js → chunk-PSBC73OL.js} +2 -2
- package/dist/{chunk-IYL6TSUF.js → chunk-Q6NTGZUW.js} +2 -2
- package/dist/{chunk-NUID2T57.js → chunk-QEIHXZIK.js} +2 -2
- package/dist/{chunk-NUID2T57.js.map → chunk-QEIHXZIK.js.map} +1 -1
- package/dist/{chunk-3DMWQJ5W.js → chunk-QMPXBDDO.js} +2 -2
- package/dist/chunk-R3HLTYHX.js +2 -0
- package/dist/chunk-R3HLTYHX.js.map +1 -0
- package/dist/{chunk-AS6KFUXS.js → chunk-R3NDFTIM.js} +2 -2
- package/dist/chunk-R47Q7R6C.js +8 -0
- package/dist/chunk-R47Q7R6C.js.map +1 -0
- package/dist/{chunk-CHHHYLCB.js → chunk-R4F5WRKC.js} +2 -2
- package/dist/{chunk-NOTLTHHZ.js → chunk-R4PLUUI3.js} +2 -2
- package/dist/chunk-RAVJ3LMO.js +2 -0
- package/dist/{chunk-ECGWCDC3.js.map → chunk-RAVJ3LMO.js.map} +1 -1
- package/dist/{chunk-AYC6DTFV.js → chunk-RWMNB4RJ.js} +2 -2
- package/dist/chunk-RXNDKUY6.js +2 -0
- package/dist/chunk-RXNDKUY6.js.map +1 -0
- package/dist/{chunk-NAMR4DA5.js → chunk-S3YIFNST.js} +2 -2
- package/dist/{chunk-7ZFZYZSP.js → chunk-S62HZDF7.js} +2 -2
- package/dist/{chunk-CS5TJWQM.js → chunk-S6MU4NHQ.js} +2 -2
- package/dist/{chunk-PNEB74RP.js → chunk-SHXQGRNL.js} +2 -2
- package/dist/{chunk-6ZHKAS7X.js → chunk-SSBGIR74.js} +2 -2
- package/dist/{chunk-6ZHKAS7X.js.map → chunk-SSBGIR74.js.map} +1 -1
- package/dist/{chunk-YIOLMWB5.js → chunk-TFJOJCCS.js} +2 -2
- package/dist/{chunk-VPSESR6G.js → chunk-TPH6YQRJ.js} +2 -2
- package/dist/{chunk-OWUINMZP.js → chunk-U7S4TUFV.js} +2 -2
- package/dist/{chunk-SNECOPBD.js → chunk-UB5WD4YM.js} +2 -2
- package/dist/{chunk-R4X2WQXX.js → chunk-UFLWSKNE.js} +2 -2
- package/dist/chunk-UITO344H.js +2 -0
- package/dist/chunk-UITO344H.js.map +1 -0
- package/dist/{chunk-2JVZYQ6Z.js → chunk-UJJ5576U.js} +2 -2
- package/dist/{chunk-Z7J6NJY2.js → chunk-VJMCAVOL.js} +2 -2
- package/dist/chunk-VJNTRMOS.js +2 -0
- package/dist/chunk-VJNTRMOS.js.map +1 -0
- package/dist/{chunk-X3PUZFYX.js → chunk-VSBNYQZM.js} +2 -2
- package/dist/{chunk-UNKCOOE4.js → chunk-WI6ZYN4S.js} +2 -2
- package/dist/{chunk-DJPCJ3YR.js → chunk-WVND2FCE.js} +2 -2
- package/dist/{chunk-3C6N7DK6.js → chunk-X5TMQDWS.js} +2 -2
- package/dist/{chunk-D7CBR52B.js → chunk-XULW2ME7.js} +2 -2
- package/dist/{chunk-HIFEVMKP.js → chunk-Y4P3ZYQK.js} +2 -2
- package/dist/{chunk-N4IPXHFM.js → chunk-YNMQONDL.js} +2 -2
- package/dist/chunk-YNMQONDL.js.map +1 -0
- package/dist/{chunk-TVCIAQTC.js → chunk-YQMALPDQ.js} +2 -2
- package/dist/{chunk-YWOJ4NKF.js → chunk-YRAIYQ2K.js} +2 -2
- package/dist/{chunk-AXV7YMZ3.js → chunk-YTWEXSYT.js} +2 -2
- package/dist/chunk-YZKXKNDS.js +2 -0
- package/dist/chunk-YZKXKNDS.js.map +1 -0
- package/dist/chunk-ZAQUO2SM.js +2 -0
- package/dist/chunk-ZAQUO2SM.js.map +1 -0
- package/dist/{chunk-RAH453TV.js → chunk-ZBJ4VEDO.js} +2 -2
- package/dist/chunk-ZR6AKRA3.js +2 -0
- package/dist/{chunk-EIVCBH53.js.map → chunk-ZR6AKRA3.js.map} +1 -1
- package/dist/{chunk-DXIJUMLU.js → chunk-ZZPQGX7X.js} +2 -2
- package/dist/default-components.d.ts +2 -3
- package/dist/default-components.js +1 -1
- package/dist/default-components.js.map +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -4
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -4
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -4
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -4
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +2 -3
- package/dist/flows/ContractAmendment/utils.d.ts +2 -3
- package/dist/flows/ContractAmendment/utils.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -5
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -5
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +6 -7
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/utils.d.ts +4 -5
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -4
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -4
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -3
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -3
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +2 -3
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -3
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -4
- package/dist/flows/CostCalculator/hooks.d.ts +3 -4
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -4
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +2 -3
- package/dist/flows/CostCalculator/utils.d.ts +3 -4
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -5
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.d.ts +2 -3
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -5
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -5
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -3
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/context.d.ts +4 -5
- package/dist/flows/CreateCompany/hooks.d.ts +4 -5
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.d.ts +4 -5
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/CreateCompany/types.d.ts +4 -5
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -5
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +5 -9
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -3
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -5
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -4
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -5
- package/dist/flows/Onboarding/hooks.d.ts +4 -5
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -5
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -5
- package/dist/flows/Onboarding/utils.d.ts +4 -5
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -5
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -5
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -5
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -6
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -7
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -5
- package/dist/flows/Termination/hooks.d.ts +4 -5
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -7
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +7 -8
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -5
- package/dist/flows/Termination/utils.d.ts +4 -5
- package/dist/flows/Termination/utils.js +1 -1
- package/dist/flows/types.d.ts +2 -3
- package/dist/flows/utils.d.ts +6 -2
- package/dist/flows/utils.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +11 -12
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +6 -7
- package/dist/internals.js +1 -1
- package/dist/{mutations-BsydWn3-.d.ts → mutations-k1bkfjOU.d.ts} +1 -1
- package/dist/{remoteFlows-BVt9wH8Z.d.ts → remoteFlows-CizrXXw-.d.ts} +32 -4
- package/dist/styles.css +2 -2
- package/dist/styles.css.map +1 -1
- package/dist/{types-C0ri3b3L.d.ts → types-CRnEmzMD.d.ts} +1 -1
- package/dist/{types-BUI5G3ML.d.ts → types-Cg4eblxv.d.ts} +6 -6
- package/dist/{types-C0m9mu0v.d.ts → types-DWSLcaDI.d.ts} +3 -3
- package/dist/{types-uW0BsP56.d.ts → types-DoYYKUID.d.ts} +3 -3
- package/dist/{types-BfQMv-8p.d.ts → types-VJHlrVxd.d.ts} +2 -2
- package/dist/{types.gen-Oz2Tvvr6.d.ts → types.gen-Dgw1W-SB.d.ts} +74 -21
- package/dist/{utils-Db2G1Kxo.d.ts → utils-DaoVOrzw.d.ts} +1 -1
- package/package.json +35 -41
- package/dist/ButtonDefault-2YV2Z474.js +0 -2
- package/dist/CheckboxFieldDefault-XSBJF4HQ.js +0 -2
- package/dist/CountryFieldDefault-K5X6MFP3.js +0 -2
- package/dist/DatePickerFieldDefault-G6FWA64N.js +0 -2
- package/dist/DrawerDefault-AAUS7T5W.js +0 -2
- package/dist/EmailFieldDefault-TFQ5SQVC.js +0 -2
- package/dist/FieldsetToggleButtonDefault-MFLN2WWT.js +0 -2
- package/dist/FileUploadFieldDefault-7ETO2SEZ.js +0 -2
- package/dist/MultiSelectFieldDefault-5TL5SL7W.js +0 -2
- package/dist/NumberFieldDefault-L7J22NRQ.js +0 -2
- package/dist/RadioGroupFieldDefault-XSPBKOS6.js +0 -2
- package/dist/SelectFieldDefault-AT6LLZNX.js +0 -2
- package/dist/StatementDefault-DORMITL7.js +0 -2
- package/dist/TableFieldDefault-URJVK7YR.js +0 -2
- package/dist/TextAreaFieldDefault-2TV3WHKH.js +0 -2
- package/dist/TextFieldDefault-2GEILZPU.js +0 -2
- package/dist/WorkScheduleFieldDefault-XH4AEXSM.js +0 -2
- package/dist/ZendeskDrawerDefault-A5PVWI4R.js +0 -2
- package/dist/chunk-3NESYBEJ.js +0 -2
- package/dist/chunk-3NESYBEJ.js.map +0 -1
- package/dist/chunk-42R2H2DW.js.map +0 -1
- package/dist/chunk-53KG3SOU.js +0 -2
- package/dist/chunk-5CFU6XTU.js +0 -2
- package/dist/chunk-5CFU6XTU.js.map +0 -1
- package/dist/chunk-6H4634RG.js +0 -2
- package/dist/chunk-6H4634RG.js.map +0 -1
- package/dist/chunk-BK44KHBJ.js +0 -2
- package/dist/chunk-CWAFRJAQ.js +0 -2
- package/dist/chunk-CWAFRJAQ.js.map +0 -1
- package/dist/chunk-D5AO6SOM.js +0 -2
- package/dist/chunk-D5AO6SOM.js.map +0 -1
- package/dist/chunk-ECGWCDC3.js +0 -2
- package/dist/chunk-EIVCBH53.js +0 -2
- package/dist/chunk-FAIEJW57.js.map +0 -1
- package/dist/chunk-G3HUFVSG.js +0 -2
- package/dist/chunk-G3HUFVSG.js.map +0 -1
- package/dist/chunk-HLSQCUMS.js +0 -2
- package/dist/chunk-HLSQCUMS.js.map +0 -1
- package/dist/chunk-LNV36S6D.js +0 -2
- package/dist/chunk-M4TBX2FU.js +0 -2
- package/dist/chunk-MKPKDACH.js +0 -2
- package/dist/chunk-MKPKDACH.js.map +0 -1
- package/dist/chunk-N4IPXHFM.js.map +0 -1
- package/dist/chunk-OXKAGVWK.js +0 -2
- package/dist/chunk-OXKAGVWK.js.map +0 -1
- package/dist/chunk-QB6OI74K.js +0 -2
- package/dist/chunk-QB6OI74K.js.map +0 -1
- package/dist/chunk-VIGKOVHP.js +0 -2
- package/dist/chunk-VIGKOVHP.js.map +0 -1
- package/dist/chunk-VN535FEZ.js +0 -2
- package/dist/chunk-VN535FEZ.js.map +0 -1
- package/dist/chunk-VU6C3EU2.js +0 -2
- package/dist/chunk-VU6C3EU2.js.map +0 -1
- package/dist/chunk-WQ4H5V7U.js +0 -6
- package/dist/chunk-WQ4H5V7U.js.map +0 -1
- package/dist/chunk-X6ZAR7ZL.js +0 -2
- package/dist/chunk-X6ZAR7ZL.js.map +0 -1
- package/dist/chunk-Z5WMKCRJ.js +0 -2
- package/dist/chunk-Z5WMKCRJ.js.map +0 -1
- package/dist/chunk-ZO34QFKD.js +0 -2
- package/dist/types-ZWIpiFgj.d.ts +0 -4
- /package/dist/{ButtonDefault-2YV2Z474.js.map → ButtonDefault-A5JWQEZF.js.map} +0 -0
- /package/dist/{CheckboxFieldDefault-XSBJF4HQ.js.map → CheckboxFieldDefault-2YCVL3MM.js.map} +0 -0
- /package/dist/{CountryFieldDefault-K5X6MFP3.js.map → CountryFieldDefault-IY664WKC.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-G6FWA64N.js.map → DatePickerFieldDefault-UZ3W2B3R.js.map} +0 -0
- /package/dist/{DrawerDefault-AAUS7T5W.js.map → DrawerDefault-HQGPEMMY.js.map} +0 -0
- /package/dist/{EmailFieldDefault-TFQ5SQVC.js.map → EmailFieldDefault-6GQMGBQV.js.map} +0 -0
- /package/dist/{FieldsetToggleButtonDefault-MFLN2WWT.js.map → FieldsetToggleButtonDefault-NQCXWGRK.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-7ETO2SEZ.js.map → FileUploadFieldDefault-L3LOK4A5.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-5TL5SL7W.js.map → MultiSelectFieldDefault-OE5NHM6A.js.map} +0 -0
- /package/dist/{NumberFieldDefault-L7J22NRQ.js.map → NumberFieldDefault-MV3FSZOG.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-XSPBKOS6.js.map → RadioGroupFieldDefault-J3ESFNPW.js.map} +0 -0
- /package/dist/{SelectFieldDefault-AT6LLZNX.js.map → SelectFieldDefault-F2MAJW7S.js.map} +0 -0
- /package/dist/{StatementDefault-DORMITL7.js.map → StatementDefault-FTAOOAL4.js.map} +0 -0
- /package/dist/{TableFieldDefault-URJVK7YR.js.map → TableFieldDefault-LXHWAWPG.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-2TV3WHKH.js.map → TelFieldDefault-EHHOHIQD.js.map} +0 -0
- /package/dist/{TextFieldDefault-2GEILZPU.js.map → TextAreaFieldDefault-VXPH3YGT.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-XH4AEXSM.js.map → TextFieldDefault-QWGENVEE.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-A5PVWI4R.js.map → WorkScheduleFieldDefault-SJSAWRYV.js.map} +0 -0
- /package/dist/{chunk-L5DII4MV.js.map → chunk-237RQGWE.js.map} +0 -0
- /package/dist/{chunk-6JTHV4QS.js.map → chunk-2Y7QAG2Q.js.map} +0 -0
- /package/dist/{chunk-BNQFPYNQ.js.map → chunk-32M6SNGV.js.map} +0 -0
- /package/dist/{chunk-T4QDKI7V.js.map → chunk-3BEEU2N4.js.map} +0 -0
- /package/dist/{chunk-W5YNJOSB.js.map → chunk-3HAKPYWK.js.map} +0 -0
- /package/dist/{chunk-OELREIVJ.js.map → chunk-3VALWCZ5.js.map} +0 -0
- /package/dist/{chunk-547UHEDI.js.map → chunk-423VHE7M.js.map} +0 -0
- /package/dist/{chunk-56UXOD27.js.map → chunk-43MCQDBU.js.map} +0 -0
- /package/dist/{chunk-WRRTZ2AL.js.map → chunk-4Z2DLHAT.js.map} +0 -0
- /package/dist/{chunk-MSBCYMSH.js.map → chunk-5BGETBLF.js.map} +0 -0
- /package/dist/{chunk-2V4CTIAG.js.map → chunk-5EYREHAZ.js.map} +0 -0
- /package/dist/{chunk-PZUCONZ4.js.map → chunk-5FOI6SK4.js.map} +0 -0
- /package/dist/{chunk-S6IMK3LL.js.map → chunk-5ISPVKB4.js.map} +0 -0
- /package/dist/{chunk-D7W4VBSV.js.map → chunk-5MJH36G3.js.map} +0 -0
- /package/dist/{chunk-VFB3RR5I.js.map → chunk-65KMTRFL.js.map} +0 -0
- /package/dist/{chunk-26IIK5U2.js.map → chunk-6PRPMEWS.js.map} +0 -0
- /package/dist/{chunk-L3LOATSG.js.map → chunk-74U3UMRA.js.map} +0 -0
- /package/dist/{chunk-T2KDFAAY.js.map → chunk-7NZH3TF3.js.map} +0 -0
- /package/dist/{chunk-B2BH4JUO.js.map → chunk-7WV3GBEI.js.map} +0 -0
- /package/dist/{chunk-H5QXOIKS.js.map → chunk-A3NABWR7.js.map} +0 -0
- /package/dist/{chunk-SPQM2TCX.js.map → chunk-AEKGVWE5.js.map} +0 -0
- /package/dist/{chunk-CKVI2UDU.js.map → chunk-AGZHFGBR.js.map} +0 -0
- /package/dist/{chunk-BAMGHBLT.js.map → chunk-AVJEDFND.js.map} +0 -0
- /package/dist/{chunk-RVADUHPA.js.map → chunk-BTGWCFHJ.js.map} +0 -0
- /package/dist/{chunk-J7MCWMDD.js.map → chunk-COZWEBRG.js.map} +0 -0
- /package/dist/{chunk-7G5JSUZU.js.map → chunk-DJOLLEOJ.js.map} +0 -0
- /package/dist/{chunk-MP3VDCI7.js.map → chunk-DJYO6IIO.js.map} +0 -0
- /package/dist/{chunk-6ABCDOFB.js.map → chunk-DXHWEBVC.js.map} +0 -0
- /package/dist/{chunk-IFX5XLPZ.js.map → chunk-E37JLKX4.js.map} +0 -0
- /package/dist/{chunk-RYVRMH6C.js.map → chunk-EJCCWBLQ.js.map} +0 -0
- /package/dist/{chunk-VB6KFDBL.js.map → chunk-FHGQELT7.js.map} +0 -0
- /package/dist/{chunk-VRW22LTU.js.map → chunk-FUOTJMAO.js.map} +0 -0
- /package/dist/{chunk-MGZWMJMP.js.map → chunk-FYBXLFMI.js.map} +0 -0
- /package/dist/{chunk-O6H66UM2.js.map → chunk-FZVUO3UU.js.map} +0 -0
- /package/dist/{chunk-RGRCYSYE.js.map → chunk-GBQPG5OU.js.map} +0 -0
- /package/dist/{chunk-3BBQDNZD.js.map → chunk-GPXETIKG.js.map} +0 -0
- /package/dist/{chunk-HYDNZQOV.js.map → chunk-HLR7IUW7.js.map} +0 -0
- /package/dist/{chunk-YUJBCOLO.js.map → chunk-IFD3RW53.js.map} +0 -0
- /package/dist/{chunk-6MJVXTLI.js.map → chunk-IKSPEKDA.js.map} +0 -0
- /package/dist/{chunk-TNN3W5TU.js.map → chunk-JJDAJQG4.js.map} +0 -0
- /package/dist/{chunk-UMVA4SIV.js.map → chunk-JOHNIKN6.js.map} +0 -0
- /package/dist/{chunk-TQXCLXWH.js.map → chunk-L3XWJ35V.js.map} +0 -0
- /package/dist/{chunk-4IE7XN74.js.map → chunk-LBGZYTNR.js.map} +0 -0
- /package/dist/{chunk-KXT6ACFL.js.map → chunk-LBNA4RGS.js.map} +0 -0
- /package/dist/{chunk-NLBQ7CZC.js.map → chunk-LRPDJWIO.js.map} +0 -0
- /package/dist/{chunk-AR5X2YWE.js.map → chunk-LZL5KK3N.js.map} +0 -0
- /package/dist/{chunk-BYDQHL6O.js.map → chunk-MEOD4UGO.js.map} +0 -0
- /package/dist/{chunk-WQVZXTW3.js.map → chunk-MOM5PCKI.js.map} +0 -0
- /package/dist/{chunk-EP6FL2L3.js.map → chunk-N4TAXXWW.js.map} +0 -0
- /package/dist/{chunk-NAF6LRSS.js.map → chunk-NZ7BAZNH.js.map} +0 -0
- /package/dist/{chunk-SNBAM7SA.js.map → chunk-OABRM5LK.js.map} +0 -0
- /package/dist/{chunk-WD2JGIDK.js.map → chunk-OOEKN64P.js.map} +0 -0
- /package/dist/{chunk-XRN6752K.js.map → chunk-OORPUQ3N.js.map} +0 -0
- /package/dist/{chunk-3LCASKDS.js.map → chunk-OOSCL4WD.js.map} +0 -0
- /package/dist/{chunk-NNFWLL7F.js.map → chunk-PSBC73OL.js.map} +0 -0
- /package/dist/{chunk-IYL6TSUF.js.map → chunk-Q6NTGZUW.js.map} +0 -0
- /package/dist/{chunk-3DMWQJ5W.js.map → chunk-QMPXBDDO.js.map} +0 -0
- /package/dist/{chunk-AS6KFUXS.js.map → chunk-R3NDFTIM.js.map} +0 -0
- /package/dist/{chunk-CHHHYLCB.js.map → chunk-R4F5WRKC.js.map} +0 -0
- /package/dist/{chunk-NOTLTHHZ.js.map → chunk-R4PLUUI3.js.map} +0 -0
- /package/dist/{chunk-AYC6DTFV.js.map → chunk-RWMNB4RJ.js.map} +0 -0
- /package/dist/{chunk-NAMR4DA5.js.map → chunk-S3YIFNST.js.map} +0 -0
- /package/dist/{chunk-7ZFZYZSP.js.map → chunk-S62HZDF7.js.map} +0 -0
- /package/dist/{chunk-CS5TJWQM.js.map → chunk-S6MU4NHQ.js.map} +0 -0
- /package/dist/{chunk-PNEB74RP.js.map → chunk-SHXQGRNL.js.map} +0 -0
- /package/dist/{chunk-YIOLMWB5.js.map → chunk-TFJOJCCS.js.map} +0 -0
- /package/dist/{chunk-VPSESR6G.js.map → chunk-TPH6YQRJ.js.map} +0 -0
- /package/dist/{chunk-OWUINMZP.js.map → chunk-U7S4TUFV.js.map} +0 -0
- /package/dist/{chunk-SNECOPBD.js.map → chunk-UB5WD4YM.js.map} +0 -0
- /package/dist/{chunk-R4X2WQXX.js.map → chunk-UFLWSKNE.js.map} +0 -0
- /package/dist/{chunk-2JVZYQ6Z.js.map → chunk-UJJ5576U.js.map} +0 -0
- /package/dist/{chunk-Z7J6NJY2.js.map → chunk-VJMCAVOL.js.map} +0 -0
- /package/dist/{chunk-X3PUZFYX.js.map → chunk-VSBNYQZM.js.map} +0 -0
- /package/dist/{chunk-UNKCOOE4.js.map → chunk-WI6ZYN4S.js.map} +0 -0
- /package/dist/{chunk-DJPCJ3YR.js.map → chunk-WVND2FCE.js.map} +0 -0
- /package/dist/{chunk-3C6N7DK6.js.map → chunk-X5TMQDWS.js.map} +0 -0
- /package/dist/{chunk-D7CBR52B.js.map → chunk-XULW2ME7.js.map} +0 -0
- /package/dist/{chunk-HIFEVMKP.js.map → chunk-Y4P3ZYQK.js.map} +0 -0
- /package/dist/{chunk-TVCIAQTC.js.map → chunk-YQMALPDQ.js.map} +0 -0
- /package/dist/{chunk-YWOJ4NKF.js.map → chunk-YRAIYQ2K.js.map} +0 -0
- /package/dist/{chunk-AXV7YMZ3.js.map → chunk-YTWEXSYT.js.map} +0 -0
- /package/dist/{chunk-RAH453TV.js.map → chunk-ZBJ4VEDO.js.map} +0 -0
- /package/dist/{chunk-DXIJUMLU.js.map → chunk-ZZPQGX7X.js.map} +0 -0
|
@@ -87,6 +87,18 @@ type ConvertCurrency = {
|
|
|
87
87
|
target_amount: number;
|
|
88
88
|
target_currency: CurrencyDefinition;
|
|
89
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* SignatoryType
|
|
92
|
+
*
|
|
93
|
+
* The role of this signatory in the contract signing process
|
|
94
|
+
*/
|
|
95
|
+
type SignatoryType = 'company' | 'employee' | 'admin' | 'external' | 'unknown';
|
|
96
|
+
/**
|
|
97
|
+
* SignatoryStatus
|
|
98
|
+
*
|
|
99
|
+
* Current signing status of this signatory
|
|
100
|
+
*/
|
|
101
|
+
type SignatoryStatus = 'pending' | 'signed' | 'unassigned';
|
|
90
102
|
/**
|
|
91
103
|
* ResignationOrTerminationOffboarding
|
|
92
104
|
*/
|
|
@@ -455,6 +467,12 @@ type UserStatus = 'active' | 'created' | 'initiated' | 'cancelled' | 'inactive'
|
|
|
455
467
|
type CompanyCreationResponse = {
|
|
456
468
|
data?: CompanyResponse | CompanyWithTokensResponse;
|
|
457
469
|
};
|
|
470
|
+
/**
|
|
471
|
+
* ContractorContractDocumentStatus
|
|
472
|
+
*
|
|
473
|
+
* Contract document status.
|
|
474
|
+
*/
|
|
475
|
+
type ContractorContractDocumentStatus = 'draft' | 'awaiting_signatures' | 'finished';
|
|
458
476
|
/**
|
|
459
477
|
* CostCalculatorEstimateParams
|
|
460
478
|
*/
|
|
@@ -990,9 +1008,10 @@ type ContractDocumentItem = {
|
|
|
990
1008
|
*/
|
|
991
1009
|
name: string | null;
|
|
992
1010
|
/**
|
|
993
|
-
*
|
|
1011
|
+
* List of signatories for this contract document
|
|
994
1012
|
*/
|
|
995
|
-
|
|
1013
|
+
signatories: Array<ListSignatory>;
|
|
1014
|
+
status: ContractorContractDocumentStatus;
|
|
996
1015
|
/**
|
|
997
1016
|
* Contract document type
|
|
998
1017
|
*/
|
|
@@ -1108,21 +1127,31 @@ type ContractAmendmentAutomatableResponse = {
|
|
|
1108
1127
|
/**
|
|
1109
1128
|
* Signatory
|
|
1110
1129
|
*
|
|
1111
|
-
*
|
|
1130
|
+
* A signatory on a contract document. For company and employee signatories, `user_id` is provided. For other signatory types, `user_id` is null.
|
|
1112
1131
|
*/
|
|
1113
1132
|
type Signatory = {
|
|
1114
|
-
email: string | null;
|
|
1115
|
-
name: string | null;
|
|
1116
1133
|
/**
|
|
1117
|
-
*
|
|
1134
|
+
* Email address of the signatory
|
|
1118
1135
|
*/
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1136
|
+
email?: string | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Full name of the signatory
|
|
1139
|
+
*/
|
|
1140
|
+
name?: string | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Signature image as a data URI (e.g. `data:image/png;base64,...`), null if not yet signed
|
|
1143
|
+
*/
|
|
1144
|
+
signature?: string | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* Timestamp when the signatory signed the document, null if not yet signed
|
|
1147
|
+
*/
|
|
1148
|
+
signed_at?: string | null;
|
|
1149
|
+
status: SignatoryStatus;
|
|
1150
|
+
type: SignatoryType;
|
|
1151
|
+
/**
|
|
1152
|
+
* User identifier for internal signatories, null for external signatories
|
|
1153
|
+
*/
|
|
1154
|
+
user_id?: string | null;
|
|
1126
1155
|
};
|
|
1127
1156
|
/**
|
|
1128
1157
|
* NullableCountry
|
|
@@ -1365,6 +1394,8 @@ type CreateCompanyParams = {
|
|
|
1365
1394
|
};
|
|
1366
1395
|
/**
|
|
1367
1396
|
* UuidSlug
|
|
1397
|
+
*
|
|
1398
|
+
* Unique identifier of the termination request.
|
|
1368
1399
|
*/
|
|
1369
1400
|
type UuidSlug = string;
|
|
1370
1401
|
/**
|
|
@@ -1594,7 +1625,7 @@ type ContractorSubscriptionsSummary = {
|
|
|
1594
1625
|
slug?: UuidSlug;
|
|
1595
1626
|
};
|
|
1596
1627
|
company_product_discount: {
|
|
1597
|
-
expiration_date?:
|
|
1628
|
+
expiration_date?: Date;
|
|
1598
1629
|
percent?: Decimal;
|
|
1599
1630
|
};
|
|
1600
1631
|
currency: Currency;
|
|
@@ -1669,13 +1700,38 @@ type CurrencyDefinition = {
|
|
|
1669
1700
|
name: string;
|
|
1670
1701
|
symbol: string;
|
|
1671
1702
|
};
|
|
1703
|
+
/**
|
|
1704
|
+
* ListSignatory
|
|
1705
|
+
*
|
|
1706
|
+
* A signatory on a contract document. For company and employee signatories, `user_id` is provided. For other signatory types, `user_id` is null.
|
|
1707
|
+
*/
|
|
1708
|
+
type ListSignatory = {
|
|
1709
|
+
/**
|
|
1710
|
+
* Email address of the signatory
|
|
1711
|
+
*/
|
|
1712
|
+
email?: string | null;
|
|
1713
|
+
/**
|
|
1714
|
+
* Full name of the signatory
|
|
1715
|
+
*/
|
|
1716
|
+
name?: string | null;
|
|
1717
|
+
/**
|
|
1718
|
+
* Timestamp when the signatory signed the document, null if not yet signed
|
|
1719
|
+
*/
|
|
1720
|
+
signed_at?: string | null;
|
|
1721
|
+
status: SignatoryStatus;
|
|
1722
|
+
type: SignatoryType;
|
|
1723
|
+
/**
|
|
1724
|
+
* User identifier for internal signatories, null for external signatories
|
|
1725
|
+
*/
|
|
1726
|
+
user_id?: string | null;
|
|
1727
|
+
};
|
|
1672
1728
|
/**
|
|
1673
1729
|
* TimeoffDay
|
|
1674
1730
|
*
|
|
1675
1731
|
* TimeoffDay schema
|
|
1676
1732
|
*/
|
|
1677
1733
|
type TimeoffDay = {
|
|
1678
|
-
day:
|
|
1734
|
+
day: Date;
|
|
1679
1735
|
hours: number;
|
|
1680
1736
|
};
|
|
1681
1737
|
/**
|
|
@@ -1879,7 +1935,7 @@ type TerminationDetailsParams = {
|
|
|
1879
1935
|
*
|
|
1880
1936
|
* UTC date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
|
|
1881
1937
|
*/
|
|
1882
|
-
type
|
|
1938
|
+
type Date = string;
|
|
1883
1939
|
/**
|
|
1884
1940
|
* Cycle
|
|
1885
1941
|
*/
|
|
@@ -2095,10 +2151,7 @@ type EmploymentResponse = {
|
|
|
2095
2151
|
*/
|
|
2096
2152
|
type ContractDocument = {
|
|
2097
2153
|
id: string;
|
|
2098
|
-
|
|
2099
|
-
* Contract document status
|
|
2100
|
-
*/
|
|
2101
|
-
status: 'draft' | 'awaiting_signatures' | 'finished' | 'archived' | 'revised' | 'awaiting_customer_approval' | 'approved_by_customer' | 'rejected_by_customer';
|
|
2154
|
+
status: ContractorContractDocumentStatus;
|
|
2102
2155
|
};
|
|
2103
2156
|
/**
|
|
2104
2157
|
* ContractAmendmentResponse
|
|
@@ -2169,4 +2222,4 @@ type PostAutomatableContractAmendmentErrors = {
|
|
|
2169
2222
|
};
|
|
2170
2223
|
type PostAutomatableContractAmendmentError = PostAutomatableContractAmendmentErrors[keyof PostAutomatableContractAmendmentErrors];
|
|
2171
2224
|
|
|
2172
|
-
export type {
|
|
2225
|
+
export type { ContractDocumentItem as $, UnifiedEmploymentUpsertBenefitOffersRequest as A, BadRequestResponse as B, ContractAmendmentAutomatableResponse as C, ConvertCurrencyResponse as D, Employment as E, ForbiddenResponse as F, ConvertCurrencyParams as G, CreateContractEligibilityParams as H, TerminationDetailsParams as I, UploadFileResponse as J, FileParams as K, SignContractDocument as L, MinimalRegion as M, NotFoundResponse as N, OffboardingResponse as O, PostCreateContractAmendmentError as P, ContractorSubscriptionsSummary as Q, RequestError as R, SuccessResponse as S, TooManyRequestsResponse as T, UnprocessableEntityResponse as U, ValidationError as V, ManageContractorPlusSubscriptionOperationsParams as W, CreateContractDocument as X, Country as Y, File as Z, DateTimeIso8601 as _, UnauthorizedResponse as a, EligibilityQuestionnaireResponse as a0, ConflictErrorResponse as a1, SubmitEligibilityQuestionnaireRequest as a2, ListTimeoffResponse as a3, TimeoffStatus as a4, TimeoffType as a5, ListLeavePoliciesSummaryResponse as a6, CreateOffboardingParams as a7, MagicLinkResponse as a8, MagicLinkParams as a9, GetShowEmploymentResponse as aa, Currency as ab, PayrollCalendarEor as ac, HelpCenterArticle as ad, ContractAmendmentResponse as b, PostAutomatableContractAmendmentError as c, EmploymentCreationResponse as d, EmploymentResponse as e, CreateContractDocumentResponse as f, Signatory as g, ContractorContractDocumentStatus as h, CompanyLegalEntity as i, CostCalculatorEstimateResponse as j, CostCalculatorEstimatePdfResponse as k, CostCalculatorEstimateParams as l, CostCalculatorEstimateCsvResponse as m, MinimalCountry as n, EmploymentTermType as o, CostCalculatorEmployment as p, PostCreateEstimationError as q, CompanyCreationResponse as r, CompanyCreationConflictErrorResponse as s, CreateCompanyParams as t, CompanyResponse as u, UpdateCompanyParams as v, Company as w, ConflictResponse as x, EmploymentCreateParams as y, EmploymentFullParams as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { ValidationError } from 'yup';
|
|
3
|
-
import './remoteFlows-
|
|
3
|
+
import './remoteFlows-CizrXXw-.js';
|
|
4
4
|
|
|
5
5
|
declare function cn(...inputs: ClassValue[]): string;
|
|
6
6
|
type YupError = Pick<ValidationError, 'type' | 'errors'> & {
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remoteoss/remote-flows",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/remoteoss/remote-flows.git"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
+
"audit": "npm audit --audit-level=high",
|
|
9
10
|
"build": "NODE_ENV=production tsup",
|
|
10
11
|
"ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run type-check && npm run test",
|
|
11
12
|
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm --exclude-entrypoints index.css styles.css --profile node16",
|
|
12
|
-
"check-format": "
|
|
13
|
+
"check-format": "oxfmt --check",
|
|
13
14
|
"dev": "NODE_OPTIONS='--max-old-space-size=8192' NODE_ENV=development tsup --watch",
|
|
14
15
|
"build:reset": "postcss src/styles/reset.css -o ./example/src/css/reset.css",
|
|
15
|
-
"lint": "
|
|
16
|
-
"format": "
|
|
17
|
-
"openapi-ts": "openapi-ts",
|
|
16
|
+
"lint": "oxlint .",
|
|
17
|
+
"format": "oxfmt",
|
|
18
|
+
"openapi-ts": "openapi-ts && npm run format",
|
|
18
19
|
"test": "vitest",
|
|
19
20
|
"test:coverage": "vitest --coverage",
|
|
20
21
|
"coverage:extract": "tsx scripts/extract-coverage.ts",
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"react-dom": "^18.3.1"
|
|
87
88
|
},
|
|
88
89
|
"dependencies": {
|
|
89
|
-
"@hookform/resolvers": "^
|
|
90
|
+
"@hookform/resolvers": "^5.2.2",
|
|
90
91
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
91
92
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
92
93
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -95,66 +96,59 @@
|
|
|
95
96
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
96
97
|
"@radix-ui/react-select": "^2.2.6",
|
|
97
98
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
98
|
-
"@remoteoss/remote-json-schema-form-kit": "github:remoteoss/remote-json-schema-form-kit#v0.0.
|
|
99
|
-
"@tailwindcss/cli": "^4.
|
|
100
|
-
"@tailwindcss/postcss": "^4.
|
|
101
|
-
"@tanstack/react-query": "^5.
|
|
99
|
+
"@remoteoss/remote-json-schema-form-kit": "github:remoteoss/remote-json-schema-form-kit#v0.0.10",
|
|
100
|
+
"@tailwindcss/cli": "^4.2.2",
|
|
101
|
+
"@tailwindcss/postcss": "^4.2.2",
|
|
102
|
+
"@tanstack/react-query": "^5.96.2",
|
|
102
103
|
"class-variance-authority": "^0.7.1",
|
|
103
104
|
"clsx": "^2.1.1",
|
|
104
105
|
"cmdk": "^1.1.1",
|
|
105
|
-
"date-fns": "^
|
|
106
|
-
"dompurify": "^3.3.
|
|
106
|
+
"date-fns": "^4.1.0",
|
|
107
|
+
"dompurify": "^3.3.3",
|
|
108
|
+
"fast-deep-equal": "^3.1.3",
|
|
107
109
|
"lodash.capitalize": "^4.2.1",
|
|
108
|
-
"lodash.get": "^4.4.2",
|
|
109
110
|
"lodash.groupby": "^4.6.0",
|
|
110
|
-
"lodash.isequal": "^4.5.0",
|
|
111
111
|
"lodash.isnull": "^3.0.0",
|
|
112
112
|
"lodash.mergewith": "^4.6.2",
|
|
113
113
|
"lodash.omit": "^4.5.0",
|
|
114
114
|
"lodash.omitby": "^4.6.0",
|
|
115
|
-
"lucide-react": "
|
|
116
|
-
"postcss": "^8.5.
|
|
117
|
-
"react-day-picker": "^
|
|
115
|
+
"lucide-react": "^1.8.0",
|
|
116
|
+
"postcss": "^8.5.9",
|
|
117
|
+
"react-day-picker": "^9.14.0",
|
|
118
118
|
"react-flagpack": "^2.0.6",
|
|
119
|
-
"react-hook-form": "^7.
|
|
120
|
-
"tailwind-merge": "^3.0
|
|
121
|
-
"tailwindcss": "^4.
|
|
119
|
+
"react-hook-form": "^7.72.1",
|
|
120
|
+
"tailwind-merge": "^3.5.0",
|
|
121
|
+
"tailwindcss": "^4.2.2",
|
|
122
122
|
"tailwindcss-animate": "^1.0.7",
|
|
123
123
|
"vaul": "^1.1.2",
|
|
124
124
|
"yup": "^0.32.0"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
128
|
-
"@
|
|
129
|
-
"@hey-api/openapi-ts": "^0.88.0",
|
|
128
|
+
"@hey-api/openapi-ts": "^0.95.0",
|
|
130
129
|
"@testing-library/jest-dom": "^6.9.1",
|
|
131
|
-
"@testing-library/react": "^16.3.
|
|
130
|
+
"@testing-library/react": "^16.3.2",
|
|
132
131
|
"@testing-library/user-event": "^14.6.1",
|
|
133
|
-
"@types/jsdom": "^
|
|
132
|
+
"@types/jsdom": "^28.0.1",
|
|
134
133
|
"@types/lodash.capitalize": "^4.2.9",
|
|
135
|
-
"@types/lodash.get": "^4.4.9",
|
|
136
134
|
"@types/lodash.groupby": "^4.6.9",
|
|
137
|
-
"@types/lodash.isequal": "^4.5.8",
|
|
138
135
|
"@types/lodash.isnull": "^3.0.9",
|
|
139
136
|
"@types/lodash.mergewith": "^4.6.9",
|
|
140
137
|
"@types/lodash.omit": "^4.5.9",
|
|
141
138
|
"@types/lodash.omitby": "^4.6.9",
|
|
142
|
-
"@types/node": "^
|
|
143
|
-
"@types/react": "^19.2.
|
|
144
|
-
"@vitest/coverage-istanbul": "^4.
|
|
145
|
-
"chalk": "^5.
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"filesize": "^10.1.0",
|
|
149
|
-
"glob": "^10.3.0",
|
|
150
|
-
"globals": "^16.5.0",
|
|
139
|
+
"@types/node": "^24.12.2",
|
|
140
|
+
"@types/react": "^19.2.14",
|
|
141
|
+
"@vitest/coverage-istanbul": "^4.1.3",
|
|
142
|
+
"chalk": "^5.6.2",
|
|
143
|
+
"filesize": "^11.0.15",
|
|
144
|
+
"glob": "^13.0.6",
|
|
151
145
|
"gzip-size": "^7.0.0",
|
|
152
|
-
"jsdom": "^
|
|
153
|
-
"msw": "^2.
|
|
154
|
-
"
|
|
146
|
+
"jsdom": "^29.0.2",
|
|
147
|
+
"msw": "^2.13.2",
|
|
148
|
+
"oxfmt": "^0.44.0",
|
|
149
|
+
"oxlint": "^1.59.0",
|
|
155
150
|
"tsup": "^8.5.1",
|
|
156
|
-
"tsx": "^4.
|
|
157
|
-
"
|
|
158
|
-
"vitest": "^4.0.13"
|
|
151
|
+
"tsx": "^4.21.0",
|
|
152
|
+
"vitest": "^4.1.3"
|
|
159
153
|
}
|
|
160
154
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-S6IMK3LL.js";import"./chunk-T4QDKI7V.js";import"./chunk-R4X2WQXX.js";import"./chunk-YUJBCOLO.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-WQ4H5V7U.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
|
|
2
|
-
//# sourceMappingURL=CheckboxFieldDefault-XSBJF4HQ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-N4IPXHFM.js";import"./chunk-VPSESR6G.js";import"./chunk-T4QDKI7V.js";import"./chunk-MSBCYMSH.js";import"./chunk-6JTHV4QS.js";import"./chunk-547UHEDI.js";import"./chunk-MP3VDCI7.js";import"./chunk-YUJBCOLO.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-WQ4H5V7U.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
|
|
2
|
-
//# sourceMappingURL=CountryFieldDefault-K5X6MFP3.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-VN535FEZ.js";import"./chunk-T4QDKI7V.js";import"./chunk-MSBCYMSH.js";import"./chunk-MP3VDCI7.js";import"./chunk-YUJBCOLO.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-WQ4H5V7U.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
|
|
2
|
-
//# sourceMappingURL=DatePickerFieldDefault-G6FWA64N.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-HIFEVMKP.js";import"./chunk-6H4634RG.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as EmailFieldDefault};
|
|
2
|
-
//# sourceMappingURL=EmailFieldDefault-TFQ5SQVC.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-2V4CTIAG.js";import"./chunk-3NESYBEJ.js";import"./chunk-MP3VDCI7.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
|
|
2
|
-
//# sourceMappingURL=FileUploadFieldDefault-7ETO2SEZ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-FAIEJW57.js";import"./chunk-VPSESR6G.js";import"./chunk-MSBCYMSH.js";import"./chunk-6JTHV4QS.js";import"./chunk-547UHEDI.js";import"./chunk-MP3VDCI7.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
|
|
2
|
-
//# sourceMappingURL=MultiSelectFieldDefault-5TL5SL7W.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-NNFWLL7F.js";import"./chunk-6H4634RG.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as NumberFieldDefault};
|
|
2
|
-
//# sourceMappingURL=NumberFieldDefault-L7J22NRQ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-IYL6TSUF.js";import"./chunk-T4QDKI7V.js";import"./chunk-SNBAM7SA.js";import"./chunk-YUJBCOLO.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-WQ4H5V7U.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
|
|
2
|
-
//# sourceMappingURL=RadioGroupFieldDefault-XSPBKOS6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ECGWCDC3.js";import"./chunk-547UHEDI.js";import"./chunk-AS6KFUXS.js";import"./chunk-MP3VDCI7.js";import"./chunk-6H4634RG.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
|
|
2
|
-
//# sourceMappingURL=WorkScheduleFieldDefault-XH4AEXSM.js.map
|
package/dist/chunk-3NESYBEJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as p}from"./chunk-MP3VDCI7.js";import{a as g}from"./chunk-VIGKOVHP.js";import{a as n}from"./chunk-P37U34EQ.js";import{useState as y,useRef as E,useEffect as R}from"react";import{Upload as k,X as B}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var M=n(l=>l?l.split(",").map(m=>m.trim().toUpperCase()).join(", "):null,"getAcceptedFormats");function L({onChange:l,className:m,multiple:r,accept:f,files:i,id:h}){let[a,c]=y(i||[]),d=E(null);R(()=>{i&&i.length>0&&c(i)},[i]);let v=n(e=>{e.preventDefault(),d.current?.click()},"handleClick"),N=n(e=>{if(e.target.files&&e.target.files.length>0){let s=Array.from(e.target.files);c([...a,...s]),l([...a,...s])}},"handleChange"),F=n(e=>{c(s=>s.filter(C=>C.name!==e.name)),l(a.filter(s=>s.name!==e.name))},"onRemoveFile"),u=M(f);return o("div",{className:g("flex flex-col items-start gap-4",m),children:[t("input",{type:"file",ref:d,id:h,onChange:N,className:"hidden","aria-label":"File upload",multiple:r,accept:f}),o(p,{type:"button",onClick:v,className:"gap-2",children:[t(k,{className:"h-4 w-4"}),"Choose File"]}),u&&o("div",{className:"text-sm text-gray-600",children:["Accepted formats:"," ",t("span",{className:"font-medium",children:u})]}),a.length===0&&t("div",{className:"text-sm",children:r?t("span",{className:"font-medium",children:"No files selected. You can select multiple files"}):t("span",{className:"font-medium",children:"No file selected."})}),a.length>0&&a.map((e,s)=>o("div",{className:"text-sm flex items-center gap-2",children:["Selected file: ",t("span",{className:"font-medium",children:e.name})," (",Math.round(e.size/1024)," KB)",t(p,{type:"button",variant:"ghost",onClick:()=>F(e),children:t(B,{})})]},s))]})}n(L,"FileUploader");export{L as a};
|
|
2
|
-
//# sourceMappingURL=chunk-3NESYBEJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ui/file-uploader.tsx"],"sourcesContent":["import React, { useState, useRef, useEffect } from 'react';\nimport { Button } from '@/src/components/ui/button';\nimport { Upload, X } from 'lucide-react';\nimport { cn } from '@/src/lib/utils';\n\n// Convert accept string to readable format (e.g., \".pdf, .doc\" -> \"PDF, DOC\")\nconst getAcceptedFormats = (accept?: string) => {\n if (!accept) return null;\n return accept\n .split(',')\n .map((ext) => ext.trim().toUpperCase())\n .join(', ');\n};\n\ntype FileUploaderProps = {\n onChange: (files: File[]) => void;\n className?: string;\n multiple?: boolean;\n accept?: string;\n files?: File[];\n id?: string;\n};\n\nexport function FileUploader({\n onChange,\n className,\n multiple,\n accept,\n files: externalFiles,\n id,\n}: FileUploaderProps) {\n const [files, setFiles] = useState<File[]>(externalFiles || []);\n const inputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (externalFiles && externalFiles.length > 0) {\n setFiles(externalFiles);\n }\n }, [externalFiles]);\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n e.preventDefault();\n inputRef.current?.click();\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (e.target.files && e.target.files.length > 0) {\n const newFiles = Array.from(e.target.files);\n\n setFiles([...files, ...newFiles]);\n onChange([...files, ...newFiles]);\n }\n };\n\n const onRemoveFile = (file: File) => {\n setFiles((prevFiles) => prevFiles.filter((f) => f.name !== file.name));\n onChange(files.filter((f) => f.name !== file.name));\n };\n\n const acceptedFormats = getAcceptedFormats(accept);\n\n return (\n <div className={cn('flex flex-col items-start gap-4', className)}>\n <input\n type='file'\n ref={inputRef}\n id={id}\n onChange={handleChange}\n className='hidden'\n aria-label='File upload'\n multiple={multiple}\n accept={accept}\n />\n <Button type='button' onClick={handleClick} className='gap-2'>\n <Upload className='h-4 w-4' />\n Choose File\n </Button>\n {acceptedFormats && (\n <div className='text-sm text-gray-600'>\n Accepted formats:{' '}\n <span className='font-medium'>{acceptedFormats}</span>\n </div>\n )}\n {files.length === 0 && (\n <div className='text-sm'>\n {!multiple ? (\n <span className='font-medium'>No file selected.</span>\n ) : (\n <span className='font-medium'>\n No files selected. You can select multiple files\n </span>\n )}\n </div>\n )}\n {files.length > 0 &&\n files.map((file, index) => (\n <div key={index} className='text-sm flex items-center gap-2'>\n Selected file: <span className='font-medium'>{file.name}</span> (\n {Math.round(file.size / 1024)} KB)\n <Button\n type='button'\n variant='ghost'\n onClick={() => onRemoveFile(file)}\n >\n <X />\n </Button>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":"wHAAA,OAAgB,YAAAA,EAAU,UAAAC,EAAQ,aAAAC,MAAiB,QAEnD,OAAS,UAAAC,EAAQ,KAAAC,MAAS,eA6DpB,cAAAC,EAUA,QAAAC,MAVA,oBAzDN,IAAMC,EAAqBC,EAACC,GACrBA,EACEA,EACJ,MAAM,GAAG,EACT,IAAKC,GAAQA,EAAI,KAAK,EAAE,YAAY,CAAC,EACrC,KAAK,IAAI,EAJQ,KADK,sBAiBpB,SAASC,EAAa,CAC3B,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,OAAAL,EACA,MAAOM,EACP,GAAAC,CACF,EAAsB,CACpB,GAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAiBJ,GAAiB,CAAC,CAAC,EACxDK,EAAWC,EAAyB,IAAI,EAE9CC,EAAU,IAAM,CACVP,GAAiBA,EAAc,OAAS,GAC1CG,EAASH,CAAa,CAE1B,EAAG,CAACA,CAAa,CAAC,EAElB,IAAMQ,EAAcf,EAAC,GAA2C,CAC9D,EAAE,eAAe,EACjBY,EAAS,SAAS,MAAM,CAC1B,EAHoB,eAKdI,EAAehB,EAAC,GAA2C,CAC/D,GAAI,EAAE,OAAO,OAAS,EAAE,OAAO,MAAM,OAAS,EAAG,CAC/C,IAAMiB,EAAW,MAAM,KAAK,EAAE,OAAO,KAAK,EAE1CP,EAAS,CAAC,GAAGD,EAAO,GAAGQ,CAAQ,CAAC,EAChCb,EAAS,CAAC,GAAGK,EAAO,GAAGQ,CAAQ,CAAC,CAClC,CACF,EAPqB,gBASfC,EAAelB,EAACmB,GAAe,CACnCT,EAAUU,GAAcA,EAAU,OAAQC,GAAMA,EAAE,OAASF,EAAK,IAAI,CAAC,EACrEf,EAASK,EAAM,OAAQY,GAAMA,EAAE,OAASF,EAAK,IAAI,CAAC,CACpD,EAHqB,gBAKfG,EAAkBvB,EAAmBE,CAAM,EAEjD,OACEH,EAAC,OAAI,UAAWyB,EAAG,kCAAmClB,CAAS,EAC7D,UAAAR,EAAC,SACC,KAAK,OACL,IAAKe,EACL,GAAIJ,EACJ,SAAUQ,EACV,UAAU,SACV,aAAW,cACX,SAAUV,EACV,OAAQL,EACV,EACAH,EAAC0B,EAAA,CAAO,KAAK,SAAS,QAAST,EAAa,UAAU,QACpD,UAAAlB,EAAC4B,EAAA,CAAO,UAAU,UAAU,EAAE,eAEhC,EACCH,GACCxB,EAAC,OAAI,UAAU,wBAAwB,8BACnB,IAClBD,EAAC,QAAK,UAAU,cAAe,SAAAyB,EAAgB,GACjD,EAEDb,EAAM,SAAW,GAChBZ,EAAC,OAAI,UAAU,UACZ,SAACS,EAGAT,EAAC,QAAK,UAAU,cAAc,4DAE9B,EAJAA,EAAC,QAAK,UAAU,cAAc,6BAAiB,EAMnD,EAEDY,EAAM,OAAS,GACdA,EAAM,IAAI,CAACU,EAAMO,IACf5B,EAAC,OAAgB,UAAU,kCAAkC,4BAC5CD,EAAC,QAAK,UAAU,cAAe,SAAAsB,EAAK,KAAK,EAAO,KAC9D,KAAK,MAAMA,EAAK,KAAO,IAAI,EAAE,OAC9BtB,EAAC2B,EAAA,CACC,KAAK,SACL,QAAQ,QACR,QAAS,IAAMN,EAAaC,CAAI,EAEhC,SAAAtB,EAAC8B,EAAA,EAAE,EACL,IATQD,CAUV,CACD,GACL,CAEJ,CAvFgB1B,EAAAG,EAAA","names":["useState","useRef","useEffect","Upload","X","jsx","jsxs","getAcceptedFormats","__name","accept","ext","FileUploader","onChange","className","multiple","externalFiles","id","files","setFiles","useState","inputRef","useRef","useEffect","handleClick","handleChange","newFiles","onRemoveFile","file","prevFiles","f","acceptedFormats","cn","Button","Upload","index","X"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/Termination/json-schemas/schema.ts"],"sourcesContent":["import { additionalInformationSchema } from '@/src/flows/Termination/json-schemas/additionalInformation';\nimport { employeeComunicationSchema } from '@/src/flows/Termination/json-schemas/employeeComunication';\nimport { paidTimeOffSchema } from '@/src/flows/Termination/json-schemas/paidTimeOff';\nimport { terminationDetailsSchema } from '@/src/flows/Termination/json-schemas/terminationDetails';\nimport { StepTerminationKeys } from '@/src/flows/Termination/utils';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const schema: Record<StepTerminationKeys, Record<string, any>> = {\n employee_communication: employeeComunicationSchema,\n termination_details: terminationDetailsSchema,\n paid_time_off: paidTimeOffSchema,\n additional_information: additionalInformationSchema,\n};\n"],"mappings":"gKAOO,IAAMA,EAA2D,CACtE,uBAAwBC,EACxB,oBAAqBC,EACrB,cAAeC,EACf,uBAAwBC,CAC1B","names":["schema","employeeComunicationSchema","terminationDetailsSchema","paidTimeOffSchema","additionalInformationSchema"]}
|
package/dist/chunk-53KG3SOU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-G3HUFVSG.js";import{j as u}from"./chunk-VIGKOVHP.js";import{a as n}from"./chunk-X6ZAR7ZL.js";import{b as l}from"./chunk-KQPDXXG3.js";import{a as r}from"./chunk-P37U34EQ.js";import O from"lodash.omit";import{jsx as C}from"react/jsx-runtime";function T({onSubmit:f,onSuccess:i,onError:s,render:w,...o}){let{components:E}=l(),{contractorOnboardingBag:e}=y(),a=p(),m=v(),{mutateAsyncOrThrow:g}=n(a),{mutateAsyncOrThrow:I}=n(m),c=e.employment?.contractor_type==="cor"&&!e.isEmploymentReadOnly,R=r(async()=>{try{if(await f?.(),c&&e.employmentId){let t=await I({employment_slug:e.employmentId});if(t?.data){await i?.({data:t,employmentStatus:"created_awaiting_reserve"}),e.refetchEmployment();return}}else if(e.employmentId){let t=await g({employment_id:e.employmentId});t&&(await i?.({data:t,employmentStatus:"invited"}),e.refetchEmployment())}}catch(t){u(t)?s?.(O(t,"response")):s?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),d=E?.button;if(!d)throw new Error("Button component not found");let b=a.isPending||m.isPending||!e.canInvite||o.disabled;return C(d,{...o,disabled:b,onClick:t=>{R(),o.onClick?.(t)},children:w({status:c?"create_reserve":"invite"})})}r(T,"OnboardingInvite");export{T as a};
|
|
2
|
-
//# sourceMappingURL=chunk-53KG3SOU.js.map
|
package/dist/chunk-5CFU6XTU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as V,b as J,c as j,e as D}from"./chunk-H5QXOIKS.js";import{f as q}from"./chunk-G3HUFVSG.js";import{a as te}from"./chunk-O6H66UM2.js";import{a as ae}from"./chunk-QB6OI74K.js";import{a as P,c as E,d as M,e as I,f as _}from"./chunk-DXIJUMLU.js";import{f as X,g as R,h as Q}from"./chunk-CWAFRJAQ.js";import{a as S}from"./chunk-VIGKOVHP.js";import{d as ee}from"./chunk-KQPDXXG3.js";import{a as c}from"./chunk-P37U34EQ.js";import*as A from"@radix-ui/react-collapsible";var be=A.Root,fe=A.CollapsibleTrigger,ge=A.CollapsibleContent;import*as F from"@radix-ui/react-tabs";import{jsx as H}from"react/jsx-runtime";function G({className:e,...t}){return H(F.Root,{"data-slot":"tabs",className:S("flex flex-col gap-2",e),...t})}c(G,"Tabs");function Y({className:e,...t}){return H(F.List,{"data-slot":"tabs-list",className:S("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...t})}c(Y,"TabsList");function W({className:e,...t}){return H(F.Trigger,{"data-slot":"tabs-trigger",className:S("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}c(W,"TabsTrigger");function ye({className:e,...t}){return H(F.Content,{"data-slot":"tabs-content",className:S("flex-1 outline-none",e),...t})}c(ye,"TabsContent");import*as K from"react";import*as x from"@radix-ui/react-scroll-area";import{jsx as k,jsxs as he}from"react/jsx-runtime";var le=K.forwardRef(({className:e,children:t,...s},a)=>he(x.Root,{ref:a,className:S("relative overflow-hidden",e),...s,children:[k(x.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),k(se,{}),k(x.Corner,{})]}));le.displayName=x.Root.displayName;var se=K.forwardRef(({className:e,orientation:t="vertical",...s},a)=>k(x.ScrollAreaScrollbar,{ref:a,orientation:t,className:S("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...s,children:k(x.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));se.displayName=x.ScrollAreaScrollbar.displayName;import{useState as B,useEffect as Ce,useMemo as Fe}from"react";import{useQuery as we}from"@tanstack/react-query";import O from"lodash.isequal";var ne=c(e=>e.name?e.type?!0:(console.warn(`Field "${e.name}" missing required "type" property`),!1):(console.warn('Field missing required "name" property:',e),!1),"validateField"),Le=c((e,t)=>{if(O(e,t))return;let s=new Map((e||[]).map(l=>[l.value,l])),a=new Map((t||[]).map(l=>[l.value,l])),o=[],y=[],f=[];if(a.forEach((l,v)=>{s.has(v)||o.push({value:l.value,label:l.label})}),s.forEach((l,v)=>{if(!a.has(v))y.push({value:l.value,label:l.label});else{let r=a.get(v);if(!O(l,r)){let p={};l.label!==r.label&&(p.label={old:l.label,new:r.label}),Object.keys(p).length>0&&f.push({value:v,changes:p})}}}),!(o.length===0&&y.length===0&&f.length===0))return{added:o,removed:y,modified:f}},"compareOptions"),xe=c((e,t)=>{let s=e.fields,a=t.fields;if(!s&&!a)return;let o=U(s||[],a||[]);if(o.added.length>0||o.removed.length>0||o.modified.length>0||o.reordered.length>0)return Array.from(o.fieldDiffs.values())},"compareNestedFields"),re=c((e,t,s,a)=>{if(s!==a)return!0;let o={label:e.label!==t.label,required:e.required!==t.required,inputType:e.inputType!==t.inputType,type:e.type!==t.type,jsonType:!O(e.jsonType,t.jsonType),name:e.name!==t.name,defaultValue:e.defaultValue!==t.defaultValue,minDate:e.minDate!==t.minDate,maxDate:e.maxDate!==t.maxDate,maxLength:e.maxLength!==t.maxLength,multiple:e.multiple!==t.multiple,isVisible:e.isVisible!==t.isVisible,options:!O(e.options,t.options)},y=(()=>{let l=e.fields,v=t.fields;if(!l&&!v)return!1;if(!l||!v)return!0;let r=U(l,v);return r.added.length>0||r.removed.length>0||r.modified.length>0||r.reordered.length>0})();return Object.values(o).some(l=>l)||y},"isFieldModified"),Ne=c((e,t)=>{let s={};e.label!==t.label&&(s.label={old:e.label,new:t.label}),e.required!==t.required&&(s.required={old:e.required,new:t.required}),e.type!==t.type&&(s.type={old:e.type,new:t.type}),e.inputType!==t.inputType&&(s.inputType={old:e.inputType,new:t.inputType}),O(e.jsonType,t.jsonType)||(s.jsonType={old:e.jsonType,new:t.jsonType}),O(e.defaultValue,t.defaultValue)||(s.defaultValue={old:e.defaultValue,new:t.defaultValue}),e.minDate!==t.minDate&&(s.minDate={old:e.minDate||"",new:t.minDate||""}),e.maxDate!==t.maxDate&&(s.maxDate={old:e.maxDate||"",new:t.maxDate||""}),e.maxLength!==t.maxLength&&(s.maxLength={old:e.maxLength||0,new:t.maxLength||0}),e.multiple!==t.multiple&&(s.multiple={old:e.multiple||!1,new:t.multiple||!1}),e.isVisible!==t.isVisible&&(s.isVisible={old:e.isVisible,new:t.isVisible});let a=Le(e.options,t.options);a&&(s.options=a);let o=xe(e,t);return o&&(s.nestedFields=o),Object.keys(s).length>0?s:void 0},"getFieldChanges"),U=c((e=[],t=[])=>{let s=e.filter(ne),a=t.filter(ne),o=new Map(s.map((b,u)=>[b.name,{field:b,index:u}])),y=new Map(a.map((b,u)=>[b.name,{field:b,index:u}])),f=[],l=[],v=[],r=[],p=[],h=new Map;return y.forEach((b,u)=>{o.has(u)||(f.push(u),h.set(u,{fieldName:u,diffType:"added"}))}),o.forEach(({field:b,index:u},g)=>{if(!y.has(g))l.push(g),h.set(g,{fieldName:g,diffType:"removed"});else{let{field:T,index:N}=y.get(g);re(b,T,u,N)?u!==N&&!re(b,T,u,u)?(p.push(g),h.set(g,{fieldName:g,diffType:"unchanged",orderChanged:{oldIndex:u,newIndex:N}})):(v.push(g),h.set(g,{fieldName:g,diffType:"modified",orderChanged:u!==N?{oldIndex:u,newIndex:N}:void 0,changes:Ne(b,T)})):(r.push(g),h.set(g,{fieldName:g,diffType:"unchanged"}))}}),{added:f,removed:l,modified:v,unchanged:r,reordered:p,fieldDiffs:h}},"compareFormFields"),oe=c((e,t)=>{if(t&&e==="unchanged")return"bg-blue-50 border-l-4 border-blue-500";switch(e){case"added":return"bg-green-50 border-l-4 border-green-500";case"removed":return"bg-red-50 border-l-4 border-red-500";case"modified":return"bg-yellow-50 border-l-4 border-yellow-500";case"unchanged":default:return""}},"getDiffStyles");import{useMemo as de,useRef as $,useEffect as Se}from"react";import{jsx as n,jsxs as m}from"react/jsx-runtime";var Te=c(({children:e,diffType:t,orderChanged:s,changes:a})=>{let o=oe(t,!!s);if(t==="unchanged"&&!s)return n("div",{children:e});let l=s&&t==="unchanged"&&n("span",{className:"text-xs font-semibold text-blue-700 bg-blue-100 px-2 py-1 rounded",children:"MOVED"})||t!=="unchanged"&&{added:n("span",{className:"text-xs font-semibold text-green-700 bg-green-100 px-2 py-1 rounded",children:"NEW"}),removed:n("span",{className:"text-xs font-semibold text-red-700 bg-red-100 px-2 py-1 rounded",children:"REMOVED"}),modified:n("span",{className:"text-xs font-semibold text-yellow-700 bg-yellow-100 px-2 py-1 rounded",children:"MODIFIED"})}[t],v=c(()=>{if(!a||t!=="modified")return null;let r=[];if(a.label&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Label:"})," ",n("span",{className:"line-through text-red-600",children:a.label.old})," ","\u2192 ",n("span",{className:"text-green-600",children:a.label.new})]},"label")),a.required&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Required:"})," ",n("span",{className:"line-through text-red-600",children:a.required.old?"Yes":"No"})," ","\u2192"," ",n("span",{className:"text-green-600",children:a.required.new?"Yes":"No"})]},"required")),a.type&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Type:"})," ",n("span",{className:"line-through text-red-600",children:a.type.old})," ","\u2192 ",n("span",{className:"text-green-600",children:a.type.new})]},"type")),a.inputType&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Input Type:"})," ",n("span",{className:"line-through text-red-600",children:a.inputType.old})," ","\u2192 ",n("span",{className:"text-green-600",children:a.inputType.new})]},"inputType")),a.jsonType){let p=Array.isArray(a.jsonType.old)?a.jsonType.old.join(" | "):a.jsonType.old,h=Array.isArray(a.jsonType.new)?a.jsonType.new.join(" | "):a.jsonType.new;r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"JSON Type:"})," ",n("span",{className:"line-through text-red-600",children:p})," \u2192"," ",n("span",{className:"text-green-600",children:h})]},"jsonType"))}return a.defaultValue!==void 0&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Default Value:"})," ",n("span",{className:"line-through text-red-600",children:JSON.stringify(a.defaultValue.old)})," ","\u2192"," ",n("span",{className:"text-green-600",children:JSON.stringify(a.defaultValue.new)})]},"defaultValue")),a.options&&(a.options.added.length>0&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold text-green-700",children:"Options Added:"})," ",a.options.added.map(p=>p.label).join(", ")]},"options-added")),a.options.removed.length>0&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold text-red-700",children:"Options Removed:"})," ",a.options.removed.map(p=>p.label).join(", ")]},"options-removed")),a.options.modified.length>0&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Options Modified:"})," ",a.options.modified.length," option(s)"]},"options-modified"))),a.nestedFields&&a.nestedFields.length>0&&r.push(m("div",{className:"text-xs",children:[n("span",{className:"font-semibold",children:"Nested Fields:"})," ",a.nestedFields.length," field(s) changed"]},"nestedFields")),r.length===0?null:m("div",{className:"mt-2 p-2 bg-yellow-50 rounded border border-yellow-200 space-y-1",children:[n("div",{className:"text-xs font-semibold text-yellow-800 mb-1",children:"Changes:"}),r]})},"renderChanges");return m("div",{className:`p-3 mb-2 rounded ${o} relative`,children:[m("div",{className:"absolute top-2 right-2",children:[l,s&&t!=="unchanged"&&n("span",{className:"ml-2 text-xs text-gray-600",children:"(position changed)"})]}),e,v()]})},"FieldWrapper"),ie=c(({version:e,fields:t,fieldsets:s,diffMap:a,title:o,scrollRef:y})=>{let f=X({mode:"onBlur"}),l=de(()=>t.map(v=>{let r=a.get(v.name),p=r?.diffType||"unchanged",h=r?.orderChanged,b=r?.changes;return{...v,WrapperComponent:c(({children:u})=>n(Te,{diffType:p,fieldName:v.name,orderChanged:h,changes:b,children:u}),"WrapperComponent")}}),[t,a]);return m(V,{className:"h-full",children:[n(J,{children:m(j,{children:[o," - Version ",e]})}),n(D,{ref:y,className:"overflow-y-auto max-h-[600px]",children:n(Q,{...f,children:n("form",{className:"space-y-4",children:n(ae,{fields:l,fieldsets:s,fieldValues:{}})})})})]})},"FormPanel"),ue=c(({topVersion:e,bottomVersion:t,topFields:s,bottomFields:a,topFieldsets:o,bottomFieldsets:y,isLoading:f})=>{let l=de(()=>U(s,a),[s,a]),v=$(null),r=$(null),p=$(!1);if(Se(()=>{let b=v.current,u=r.current;if(!b||!u)return;let g=c(()=>{p.current||(p.current=!0,u.scrollTop=b.scrollTop,requestAnimationFrame(()=>{p.current=!1}))},"handleLeftScroll"),T=c(()=>{p.current||(p.current=!0,b.scrollTop=u.scrollTop,requestAnimationFrame(()=>{p.current=!1}))},"handleRightScroll");return b.addEventListener("scroll",g),u.addEventListener("scroll",T),()=>{b.removeEventListener("scroll",g),u.removeEventListener("scroll",T)}},[s,a]),f)return n("div",{className:"flex items-center justify-center h-96",children:m("div",{className:"text-center",children:[n("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"}),n("p",{className:"mt-4 text-gray-600",children:"Loading schemas..."})]})});let h=l.added.length===0&&l.removed.length===0&&l.modified.length===0&&l.reordered.length===0;return m("div",{className:"space-y-6",children:[n(V,{children:n(D,{className:"pt-6",children:h?n("p",{className:"text-center text-gray-600",children:"No differences detected between the two versions"}):m("div",{className:"flex gap-6 justify-center",children:[l.added.length>0&&m("div",{className:"flex items-center gap-2",children:[n("span",{className:"w-4 h-4 bg-green-500 rounded"}),m("span",{className:"text-sm",children:[l.added.length," field",l.added.length>1?"s":""," ","added"]})]}),l.removed.length>0&&m("div",{className:"flex items-center gap-2",children:[n("span",{className:"w-4 h-4 bg-red-500 rounded"}),m("span",{className:"text-sm",children:[l.removed.length," field",l.removed.length>1?"s":""," removed"]})]}),l.modified.length>0&&m("div",{className:"flex items-center gap-2",children:[n("span",{className:"w-4 h-4 bg-yellow-500 rounded"}),m("span",{className:"text-sm",children:[l.modified.length," field",l.modified.length>1?"s":""," modified"]})]}),l.reordered.length>0&&m("div",{className:"flex items-center gap-2",children:[n("span",{className:"w-4 h-4 bg-blue-500 rounded"}),m("span",{className:"text-sm",children:[l.reordered.length," field",l.reordered.length>1?"s":""," reordered"]})]})]})})}),m("div",{className:"grid grid-cols-2 gap-6",children:[n(ie,{version:e,fields:s,fieldsets:o,diffMap:l.fieldDiffs,title:"Left",scrollRef:v}),n(ie,{version:t,fields:a,fieldsets:y,diffMap:l.fieldDiffs,title:"Right",scrollRef:r})]})]})},"SchemaFormComparison");var me=[{value:1,label:"v1 (Legacy)"},{value:3,label:"v3 (Recommended)"},{value:"latest",label:"Latest"}],z={ALB:[{value:"latest",label:"Latest"}],ARE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],ARG:[{value:"latest",label:"Latest"}],ARM:[{value:"latest",label:"Latest"}],AUS:[{value:"latest",label:"Latest"}],AUT:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],BEL:[{value:"latest",label:"Latest"}],BGD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],BGR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],BIH:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],BLR:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],BOL:[{value:"latest",label:"Latest"}],BRA:[{value:"latest",label:"Latest"}],CAN:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],CHE:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],CHL:[{value:"latest",label:"Latest"}],CHN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],COL:[{value:"latest",label:"Latest"}],CRI:[{value:"latest",label:"Latest"}],CYP:[{value:"latest",label:"Latest"}],CZE:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],DEU:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],DNK:[{value:"latest",label:"Latest"}],DOM:[{value:"latest",label:"Latest"}],ECU:[{value:"latest",label:"Latest"}],EGY:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],ESP:[{value:"latest",label:"Latest"}],EST:[{value:"latest",label:"Latest"}],FIN:[{value:"latest",label:"Latest"}],FRA:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],FRA_SAS:[{value:"latest",label:"Latest"}],GBR:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],GEO:[{value:"latest",label:"Latest"}],GRC:[{value:"latest",label:"Latest"}],GTM:[{value:"latest",label:"Latest"}],HKG:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],HND:[{value:"latest",label:"Latest"}],HRV:[{value:"latest",label:"Latest"}],HUN:[{value:"latest",label:"Latest"}],IDN:[{value:"latest",label:"Latest"}],IND:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],IRL:[{value:"latest",label:"Latest"}],ISL:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],ISR:[{value:"latest",label:"Latest"}],ITA:[{value:"latest",label:"Latest"}],ITA_APL:[{value:"latest",label:"Latest"}],JAM:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],JPN:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],KEN:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],KGZ:[{value:"latest",label:"Latest"}],KHM:[{value:"latest",label:"Latest"}],KOR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],LBN:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],LKA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],LTU:[{value:"latest",label:"Latest"}],LUX:[{value:"latest",label:"Latest"}],LVA:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],MAR:[{value:"latest",label:"Latest"}],MDA:[{value:"latest",label:"Latest"}],MEX:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],MKD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],MLT:[{value:"latest",label:"Latest"}],MNG:[{value:"latest",label:"Latest"}],MUS:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],MYS:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],NGA:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],NIC:[{value:"latest",label:"Latest"}],NLD:[{value:"latest",label:"Latest"}],NOR:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],NZL:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],PAK:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],PAN:[{value:"latest",label:"Latest"}],PER:[{value:"latest",label:"Latest"}],PHL:[{value:"latest",label:"Latest"}],POL:[{value:"latest",label:"Latest"}],PRI:[{value:"latest",label:"Latest"}],PRT:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],PRY:[{value:"latest",label:"Latest"}],ROU:[{value:"latest",label:"Latest"}],SAU:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],SGP:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],SLV:[{value:"latest",label:"Latest"}],SRB:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],SVK:[{value:"latest",label:"Latest"}],SVN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],SWE:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],THA:[{value:1,label:"v1"},{value:"latest",label:"Latest"}],TUN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:"latest",label:"Latest"}],TUR:[{value:"latest",label:"Latest"}],TWN:[{value:"latest",label:"Latest"}],UGA:[{value:"latest",label:"Latest"}],UKR:[{value:"latest",label:"Latest"}],URY:[{value:"latest",label:"Latest"}],USA:[{value:"latest",label:"Latest"}],VNM:[{value:"latest",label:"Latest"}],XKX:[{value:"latest",label:"Latest"}],ZAF:[{value:"latest",label:"Latest"}],ZWE:[{value:"latest",label:"Latest"}]},pe=Object.fromEntries(Object.entries(z).filter(([,e])=>e.length>1)),ce=[{value:"employment_basic_information",label:"Basic Information"},{value:"contract_details",label:"Contract Details"}];import{jsx as i,jsxs as L}from"react/jsx-runtime";var ve=c(()=>{let[e,t]=B("employment_basic_information"),[s,a]=B(1),[o,y]=B(1),[f,l]=B("ARE"),{client:v}=ee(),{data:r}=we({...te(v,"schema-comparison"),select:c(d=>d.data?.data?.filter(C=>C.eor_onboarding).filter(C=>Object.keys(pe).includes(C.code)).map(C=>({label:C.name,value:C.code}))||[],"select")}),p=e==="contract_details",{data:h,isLoading:b}=q({countryCode:f,form:e,fieldValues:{},jsonSchemaVersion:s,options:{queryOptions:{enabled:!0}}}),{data:u,isLoading:g}=q({countryCode:f,form:e,fieldValues:{},jsonSchemaVersion:o,options:{queryOptions:{enabled:!0}}}),T=b||g,N=z[f],Z=N!==void 0,w=Fe(()=>e==="employment_basic_information"?me:N||[{value:"latest",label:"Latest"}],[e,N]);return Ce(()=>{let d=w.map(C=>C.value);d.includes(s)||a(w[0].value),d.includes(o)||y(w[0].value)},[e,f,w,s,o]),L("div",{className:"space-y-6",children:[L(V,{children:[i(J,{children:i(j,{children:"Configuration"})}),L(D,{className:"space-y-4",children:[L("div",{children:[i(R,{className:"mb-2 block",children:"Form Type"}),i(G,{value:e,onValueChange:d=>t(d),children:i(Y,{className:"grid w-full grid-cols-2",children:ce.map(d=>i(W,{value:d.value,children:d.label},d.value))})})]}),p&&!Z&&i("div",{className:"rounded-md bg-yellow-50 p-4 border border-yellow-200",children:L("div",{className:"flex",children:[i("div",{className:"flex-shrink-0",children:i("svg",{className:"h-5 w-5 text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:i("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})}),L("div",{className:"ml-3",children:[i("h3",{className:"text-sm font-medium text-yellow-800",children:"Version mappings not found"}),i("div",{className:"mt-2 text-sm text-yellow-700",children:L("p",{children:["Country"," ",i("span",{className:"font-semibold",children:f})," is not configured in COUNTRY_CONTRACT_VERSIONS. Using default (latest only)."]})})]})]})}),p&&L("div",{children:[i(R,{htmlFor:"country-select",className:"mb-2 block",children:"Country"}),L(P,{value:f,onValueChange:l,children:[i(M,{id:"country-select",children:i(E,{placeholder:"Select a country"})}),i(I,{children:r?.map(d=>i(_,{value:d.value,children:d.label},d.value))})]})]}),L("div",{className:"grid grid-cols-2 gap-4",children:[L("div",{children:[i(R,{htmlFor:"top-version",className:"mb-2 block",children:"Left Version"}),L(P,{value:String(s),onValueChange:d=>a(d==="latest"?"latest":Number(d)),children:[i(M,{id:"top-version",children:i(E,{placeholder:"Select version"})}),i(I,{children:w.map(d=>i(_,{value:String(d.value),children:d.label},String(d.value)))})]})]}),L("div",{children:[i(R,{htmlFor:"bottom-version",className:"mb-2 block",children:"Right Version"}),L(P,{value:String(o),onValueChange:d=>y(d==="latest"?"latest":Number(d)),children:[i(M,{id:"bottom-version",children:i(E,{placeholder:"Select version"})}),i(I,{children:w.map(d=>i(_,{value:String(d.value),children:d.label},String(d.value)))})]})]})]})]})]}),i(ue,{topVersion:s,bottomVersion:o,topFields:h?.fields||[],bottomFields:u?.fields||[],topFieldsets:h?.meta?.["x-jsf-fieldsets"],bottomFieldsets:u?.meta?.["x-jsf-fieldsets"],isLoading:T})]})},"JsonSchemaComparison");export{be as a,fe as b,ge as c,G as d,Y as e,W as f,ye as g,le as h,ve as i};
|
|
2
|
-
//# sourceMappingURL=chunk-5CFU6XTU.js.map
|