adp-web-components 0.1.77 → 0.1.79
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/dist/cjs/dead-stock-lookup_3.cjs.entry.js +11 -11
- package/dist/cjs/decode-time-offset-CY6JVxX3.js +37 -0
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/form-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/form-dialog_13.cjs.entry.js +1351 -0
- package/dist/cjs/{form-input-C3gQ_Noj.js → form-input-DH-U4kEM.js} +8 -6
- package/dist/cjs/form-input_4.cjs.entry.js +15 -18
- package/dist/cjs/form-switch.cjs.entry.js +5 -5
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/general-form.cjs.entry.js +83 -0
- package/dist/cjs/general-inquiry-form.cjs.entry.js +19 -19
- package/dist/cjs/{get-language-from-url-Bqqqxz28.js → get-language-from-url-Cr3n1fd0.js} +13 -4
- package/dist/cjs/{get-local-language-BAmoMEw4.js → get-local-language-Ch0JsFp-.js} +2 -2
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/{esm/index-BILW0yP6.js → cjs/loader-icon-j5dMQ4bN.js} +16 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +6 -6
- package/dist/cjs/part-lookup.cjs.entry.js +5 -5
- package/dist/cjs/{loader-icon-OQu1-3ya.js → phone-validator-BUa89UAk.js} +23 -22
- package/dist/cjs/service-booking-form.cjs.entry.js +19 -19
- package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +9 -9
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +19 -19
- package/dist/cjs/{state-object-9UAuyk6N.js → state-object-DY2MVbpe.js} +21 -9
- package/dist/cjs/test-drive-form.cjs.entry.js +19 -19
- package/dist/cjs/{type-BSH0OxyO.js → type-BkehR16K.js} +1 -1
- package/dist/cjs/{type-BvWomz0N.js → type-CjTn3Uuy.js} +1 -1
- package/dist/cjs/{type-CFTS0FUJ.js → type-DhEJjKzj.js} +1 -1
- package/dist/cjs/{types-B3WMBBhs.js → types-DV_cOCRi.js} +18 -0
- package/dist/cjs/{validation-DEdJb-KL.js → validation-N-XMdEIM.js} +15 -2
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +17 -17
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +17 -17
- package/dist/cjs/{white-loader-55klC_ZH.js → white-loader-kSznMo_u.js} +4 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/components/empty.css +1 -1
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-file.js +605 -0
- package/dist/collection/components/form-elements/form-input.js +2 -2
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-phone-number.js +2 -2
- package/dist/collection/components/form-elements/form-picker-input.js +2 -2
- package/dist/collection/components/form-elements/form-select.js +1 -1
- package/dist/collection/components/form-elements/form-shadow-input.js +1 -1
- package/dist/collection/components/form-elements/form-stepper-control.js +2 -2
- package/dist/collection/components/form-elements/form-stepper-submit.js +2 -2
- package/dist/collection/components/form-elements/form-stepper.js +1 -1
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
- package/dist/collection/components/form-elements/form-vin-input.js +2 -2
- package/dist/collection/components/forms/defaults/mappers.js +13 -1
- package/dist/collection/components/forms/defaults/validation.js +9 -1
- package/dist/collection/components/forms/general-form.js +490 -0
- package/dist/collection/components/forms/general-inquiry.js +2 -2
- package/dist/collection/components/forms/service-booking.js +2 -2
- package/dist/collection/components/forms/ssc-lookup.js +2 -2
- package/dist/collection/components/forms/test-drive.js +2 -2
- package/dist/collection/components/forms/vehicle-quotation.js +2 -2
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +13 -4
- package/dist/collection/features/form-hook/functions.js +17 -4
- package/dist/collection/features/form-hook/inputs/form-input.js +7 -5
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-date-picker.js +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-file.d.ts +11 -0
- package/dist/components/form-file.js +5 -0
- package/dist/components/form-input-preview.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.js +1 -1
- package/dist/components/form-picker-input.js +1 -1
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.js +1 -1
- package/dist/components/form-stepper-control.js +1 -1
- package/dist/components/form-stepper-submit.js +1 -1
- package/dist/components/form-stepper.js +1 -1
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/form-time-picker.js +1 -1
- package/dist/components/form-vin-input.js +1 -1
- package/dist/components/general-form.d.ts +11 -0
- package/dist/components/general-form.js +5 -0
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/{p-7EgXGKIp.js → p-7Ml46qau.js} +1 -1
- package/dist/components/{p-B9DO0698.js → p-B-MZjoBg.js} +1 -1
- package/dist/components/{p-pM1_gpUu.js → p-B-XBWavF.js} +1 -1
- package/dist/components/p-B14TvlWp.js +5 -0
- package/dist/components/p-B1HbKT92.js +5 -0
- package/dist/components/p-B20yJV8N.js +5 -0
- package/dist/components/{p-CnU-FAvr.js → p-B74EVzB0.js} +1 -1
- package/dist/components/p-B882WrlQ.js +5 -0
- package/dist/components/{p-27kjA_Yu.js → p-BLhi8bD5.js} +1 -1
- package/dist/components/p-BN3IFAWI.js +5 -0
- package/dist/components/{p-C34ZMIUx.js → p-BWfCJC3Q.js} +1 -1
- package/dist/components/p-BeL46S5b.js +5 -0
- package/dist/components/p-Bsnu7u9K.js +5 -0
- package/dist/components/{p-CKmHT-QE.js → p-BxeKiQ5h.js} +1 -1
- package/dist/components/p-CEnsN9BF.js +5 -0
- package/dist/components/{p-CRhdQvF0.js → p-COS-bXsj.js} +1 -1
- package/dist/components/{p-Bbn0Tw-8.js → p-CQSAEcTB.js} +1 -1
- package/dist/components/{p-DLXbMIN9.js → p-Ch14UUZ8.js} +1 -1
- package/dist/components/{p-DAqyVen6.js → p-CjrMk4Te.js} +1 -1
- package/dist/components/{p-Bw_VvuFc.js → p-ClKZfnwN.js} +1 -1
- package/dist/components/p-D0oHH_yi.js +5 -0
- package/dist/components/{p-CYyIlZJC.js → p-D7IQ_tmq.js} +1 -1
- package/dist/components/{p-BmyNDE_E.js → p-DATl4ttx.js} +1 -1
- package/dist/components/{p-CWpqw5J1.js → p-DD8S-FqN.js} +1 -1
- package/dist/components/p-DIx4B8Yb.js +5 -0
- package/dist/components/p-DN4c_zdE.js +5 -0
- package/dist/components/p-DQqF8boi.js +5 -0
- package/dist/components/p-DSTKQdoW.js +5 -0
- package/dist/components/p-DT2OVZtH.js +5 -0
- package/dist/components/p-DY9gBU2J.js +5 -0
- package/dist/components/p-DldJIun-.js +5 -0
- package/dist/components/{p-H7Rx-uvh.js → p-DndpWsL0.js} +1 -1
- package/dist/components/p-DwyZCgYl.js +5 -0
- package/dist/components/p-JSG4fAIl.js +5 -0
- package/dist/components/{p-BG1Acvil.js → p-LsPt2IQQ.js} +1 -1
- package/dist/components/{p-DJaWpqrV.js → p-MJwr71KB.js} +1 -1
- package/dist/components/p-MdiEjk1X.js +5 -0
- package/dist/{shift-components/p-CWP4hZcw.js → components/p-YQJevg3-.js} +1 -1
- package/dist/components/p-aHqL2KKd.js +5 -0
- package/dist/components/{p--puhRiiY.js → p-aMPZ6-pL.js} +1 -1
- package/dist/components/{p-CIQ6QH_J.js → p-pckxVoM8.js} +1 -1
- package/dist/components/p-rvbbkr0i.js +5 -0
- package/dist/components/{p-BlA4goTb.js → p-uy_bFOsR.js} +1 -1
- package/dist/components/p-yQwcy8rT.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-checkbox.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-switch.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/ssc-lookup-form.js +1 -1
- package/dist/components/test-drive-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-sale-information.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +11 -11
- package/dist/esm/{decode-time-offset-Cfi43WoV.js → decode-time-offset-DFZOybyr.js} +1 -1
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +4 -4
- package/dist/esm/form-date-picker.entry.js +1 -1
- package/dist/esm/form-dialog_13.entry.js +1337 -0
- package/dist/esm/{form-input-C5O2h7ti.js → form-input-DKjuSVBS.js} +8 -6
- package/dist/esm/form-input_4.entry.js +14 -17
- package/dist/esm/form-switch.entry.js +5 -5
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/general-form.entry.js +81 -0
- package/dist/esm/general-inquiry-form.entry.js +11 -11
- package/dist/esm/{get-language-from-url-Ba709Um1.js → get-language-from-url-OJporG8v.js} +13 -4
- package/dist/esm/{get-local-language-BOhWqeWJ.js → get-local-language-Ce9BLJNB.js} +2 -2
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/{cjs/index-D5c513Xn.js → esm/loader-icon-DM4Vm5gX.js} +12 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +6 -6
- package/dist/esm/part-lookup.entry.js +5 -5
- package/dist/esm/{loader-icon-Dsip-ysn.js → phone-validator-DuWpgjxr.js} +22 -20
- package/dist/esm/service-booking-form.entry.js +10 -10
- package/dist/esm/shift-checkbox.entry.js +1 -1
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-switch.entry.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +9 -9
- package/dist/esm/ssc-lookup-form.entry.js +10 -10
- package/dist/esm/{state-object-DAThqvht.js → state-object-BYbNPk-P.js} +17 -5
- package/dist/esm/test-drive-form.entry.js +10 -10
- package/dist/esm/{type-DDlXvsYW.js → type-8o_W9bXK.js} +1 -1
- package/dist/esm/{type-Dw5qeiT3.js → type-C2SCytyp.js} +1 -1
- package/dist/esm/{type-DwvmWsdz.js → type-DCLi-Gh3.js} +1 -1
- package/dist/esm/{types-CWP4hZcw.js → types-BDhR4pDq.js} +18 -1
- package/dist/esm/{validation-iKTmTjB0.js → validation-CjIBF497.js} +11 -3
- package/dist/esm/vehicle-accessories_7.entry.js +17 -17
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +7 -7
- package/dist/esm/{white-loader-BpnYQ3A6.js → white-loader-CG4JPVdv.js} +4 -1
- package/dist/shift-components/{p-76fe6d18.entry.js → p-0174f4a6.entry.js} +1 -1
- package/dist/shift-components/{p-2fe3538e.entry.js → p-0ea039a0.entry.js} +1 -1
- package/dist/shift-components/{p-ca99ff7e.entry.js → p-19b5c5da.entry.js} +1 -1
- package/dist/shift-components/{p-389fbad6.entry.js → p-30d616e8.entry.js} +1 -1
- package/dist/shift-components/p-37bbc653.entry.js +5 -0
- package/dist/shift-components/{p-6b9cc078.entry.js → p-39128baf.entry.js} +1 -1
- package/dist/shift-components/p-3c5f015c.entry.js +5 -0
- package/dist/shift-components/{p-0d80679a.entry.js → p-45232ee9.entry.js} +1 -1
- package/dist/shift-components/p-600141c0.entry.js +5 -0
- package/dist/shift-components/p-6b9c8723.entry.js +5 -0
- package/dist/shift-components/p-6fca3b48.entry.js +5 -0
- package/dist/shift-components/p-74392ec2.entry.js +5 -0
- package/dist/shift-components/p-7PtHUjhE.js +5 -0
- package/dist/shift-components/{p-398ca2dd.entry.js → p-7ce7efb2.entry.js} +1 -1
- package/dist/shift-components/{p-f4914abc.entry.js → p-8049016c.entry.js} +1 -1
- package/dist/shift-components/{p-ad9a34aa.entry.js → p-8c4579f1.entry.js} +1 -1
- package/dist/shift-components/{p-8281a1ba.entry.js → p-9270fdea.entry.js} +1 -1
- package/dist/shift-components/p-95496452.entry.js +5 -0
- package/dist/shift-components/{p-69e9751f.entry.js → p-971f2432.entry.js} +1 -1
- package/dist/{components/p-DkIqSrtn.js → shift-components/p-BDhR4pDq.js} +1 -1
- package/dist/shift-components/p-BffuX06w.js +5 -0
- package/dist/shift-components/{p-Birh6Z1w.js → p-BrJd1o0-.js} +1 -1
- package/dist/shift-components/{p-D6pA5cwZ.js → p-CCt3VwsZ.js} +1 -1
- package/dist/shift-components/{p-XyQhTm0V.js → p-Cv7m_MLQ.js} +1 -1
- package/dist/shift-components/p-D-IGTVAo.js +5 -0
- package/dist/shift-components/p-Dfy8LG6W.js +5 -0
- package/dist/shift-components/p-DgArUiaY.js +5 -0
- package/dist/shift-components/{p-DJSST74z.js → p-DyLtxN1c.js} +1 -1
- package/dist/shift-components/{p-72fb32e6.entry.js → p-b58252b3.entry.js} +1 -1
- package/dist/shift-components/{p-61725969.entry.js → p-b73dc0eb.entry.js} +1 -1
- package/dist/shift-components/{p-969047f1.entry.js → p-d9491f0a.entry.js} +1 -1
- package/dist/shift-components/{p-48622d1c.entry.js → p-ea04ef58.entry.js} +1 -1
- package/dist/shift-components/{p-055c46ae.entry.js → p-fd8cce34.entry.js} +1 -1
- package/dist/shift-components/{p-BVrQRz1r.js → p-nGZ6Nphz.js} +1 -1
- package/dist/shift-components/p-yjI-v4gh.js +5 -0
- package/dist/shift-components/p-zqc-VRCh.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/form-elements/form-file.d.ts +51 -0
- package/dist/types/components/forms/defaults/mappers.d.ts +10 -0
- package/dist/types/components/forms/defaults/validation.d.ts +6 -0
- package/dist/types/components/forms/general-form.d.ts +40 -0
- package/dist/types/components.d.ts +136 -0
- package/dist/types/features/form-hook/form-hook.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/decode-time-offset-DqzP0mck.js +0 -37
- package/dist/cjs/form-dialog_12.cjs.entry.js +0 -1092
- package/dist/components/p-1rMNgTmN.js +0 -5
- package/dist/components/p-B4O925yv.js +0 -5
- package/dist/components/p-B7jki48I.js +0 -5
- package/dist/components/p-B9WVNn55.js +0 -5
- package/dist/components/p-BAXJUlT3.js +0 -5
- package/dist/components/p-BqEpcTHM.js +0 -5
- package/dist/components/p-BrYiFmwV.js +0 -5
- package/dist/components/p-Btio2HOp.js +0 -5
- package/dist/components/p-CGTnKwGx.js +0 -5
- package/dist/components/p-CHFEweyc.js +0 -5
- package/dist/components/p-CIpGuibo.js +0 -5
- package/dist/components/p-CsuuEdZV.js +0 -5
- package/dist/components/p-DBiatJcb.js +0 -5
- package/dist/components/p-DXTNpTRN.js +0 -5
- package/dist/components/p-RgH4pvBx.js +0 -5
- package/dist/components/p-aU8QeNSR.js +0 -5
- package/dist/components/p-bj5xjS7q.js +0 -5
- package/dist/components/p-oOwj68Rk.js +0 -5
- package/dist/components/p-rFExZsrl.js +0 -5
- package/dist/esm/form-dialog_12.entry.js +0 -1079
- package/dist/shift-components/p-56cb9747.entry.js +0 -5
- package/dist/shift-components/p-84b2e4ef.entry.js +0 -5
- package/dist/shift-components/p-9df9af1a.entry.js +0 -5
- package/dist/shift-components/p-BAltXAam.js +0 -5
- package/dist/shift-components/p-BILW0yP6.js +0 -5
- package/dist/shift-components/p-Bp-HDfJB.js +0 -5
- package/dist/shift-components/p-CK-8T86o.js +0 -5
- package/dist/shift-components/p-CfAzoJ2t.js +0 -5
- package/dist/shift-components/p-Cfs-79nK.js +0 -5
- package/dist/shift-components/p-CyHfimfF.js +0 -5
- package/dist/shift-components/p-ae6d8792.entry.js +0 -5
- package/dist/shift-components/p-c0db198d.entry.js +0 -5
- package/dist/shift-components/p-d5fed00e.entry.js +0 -5
|
@@ -2,25 +2,27 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import { y } from './validation-
|
|
5
|
+
import { y } from './validation-CjIBF497.js';
|
|
6
6
|
import { g as getNestedValue } from './get-nested-value-D0IHkGuC.js';
|
|
7
7
|
|
|
8
8
|
const getInputLocalization = (context, meta, errorMessage) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
10
10
|
const [locale, language] = (_a = context === null || context === void 0 ? void 0 : context.form) === null || _a === void 0 ? void 0 : _a.getFormLocale();
|
|
11
11
|
const label = ((_c = (_b = context === null || context === void 0 ? void 0 : context.localization) === null || _b === void 0 ? void 0 : _b[language]) === null || _c === void 0 ? void 0 : _c.label) || getNestedValue(locale, meta === null || meta === void 0 ? void 0 : meta.label) || (meta === null || meta === void 0 ? void 0 : meta.label);
|
|
12
12
|
const placeholder = ((_e = (_d = context === null || context === void 0 ? void 0 : context.localization) === null || _d === void 0 ? void 0 : _d[language]) === null || _e === void 0 ? void 0 : _e.placeholder) || getNestedValue(locale, meta === null || meta === void 0 ? void 0 : meta.placeholder) || (meta === null || meta === void 0 ? void 0 : meta.placeholder);
|
|
13
13
|
let localizationErrorMessage = '';
|
|
14
14
|
if (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.endsWith(y.format('')))
|
|
15
15
|
localizationErrorMessage = (_g = (_f = context === null || context === void 0 ? void 0 : context.localization) === null || _f === void 0 ? void 0 : _f[language]) === null || _g === void 0 ? void 0 : _g.format;
|
|
16
|
+
if (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.endsWith(y.size('')))
|
|
17
|
+
localizationErrorMessage = (_j = (_h = context === null || context === void 0 ? void 0 : context.localization) === null || _h === void 0 ? void 0 : _h[language]) === null || _j === void 0 ? void 0 : _j.size;
|
|
16
18
|
else if (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.endsWith(y.require('')))
|
|
17
|
-
localizationErrorMessage = (
|
|
19
|
+
localizationErrorMessage = (_l = (_k = context === null || context === void 0 ? void 0 : context.localization) === null || _k === void 0 ? void 0 : _k[language]) === null || _l === void 0 ? void 0 : _l.require;
|
|
18
20
|
else if (errorMessage === 'minMessage')
|
|
19
|
-
localizationErrorMessage = context === null || context === void 0 ? void 0 : context.withSlots(((
|
|
21
|
+
localizationErrorMessage = context === null || context === void 0 ? void 0 : context.withSlots(((_o = (_m = context === null || context === void 0 ? void 0 : context.localization) === null || _m === void 0 ? void 0 : _m[language]) === null || _o === void 0 ? void 0 : _o.minMessage) || 'Min date is $minDate$');
|
|
20
22
|
else if (errorMessage === 'maxMessage')
|
|
21
|
-
localizationErrorMessage = context === null || context === void 0 ? void 0 : context.withSlots(((
|
|
23
|
+
localizationErrorMessage = context === null || context === void 0 ? void 0 : context.withSlots(((_q = (_p = context === null || context === void 0 ? void 0 : context.localization) === null || _p === void 0 ? void 0 : _p[language]) === null || _q === void 0 ? void 0 : _q.maxMessage) || 'Max date is $maxDate$');
|
|
22
24
|
else if (errorMessage === 'betweenMessage')
|
|
23
|
-
localizationErrorMessage = context === null || context === void 0 ? void 0 : context.withSlots(((
|
|
25
|
+
localizationErrorMessage = context === null || context === void 0 ? void 0 : context.withSlots(((_s = (_r = context === null || context === void 0 ? void 0 : context.localization) === null || _r === void 0 ? void 0 : _r[language]) === null || _s === void 0 ? void 0 : _s.betweenMessage) || 'Must be between $minDate$ and $maxDate$');
|
|
24
26
|
const errorTextMessage = localizationErrorMessage || locale[errorMessage] || errorMessage;
|
|
25
27
|
return { label, placeholder, errorTextMessage };
|
|
26
28
|
};
|