adp-web-components 0.0.95 → 0.0.97
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/add-icon-BpfeU8T4.js +13 -0
- package/dist/cjs/app-globals-D2j2HjfX.js +11 -0
- package/dist/cjs/arrow-up-icon-B_nvUxUm.js +12 -0
- package/dist/cjs/check-icon-gbrTPAKV.js +12 -0
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +15 -17
- package/dist/cjs/demo-form.cjs.entry.js +214 -0
- package/dist/cjs/{empty-table-icon-PdTX6gpI.js → empty-table-icon-BKTk1lZZ.js} +1 -1
- package/dist/cjs/flexible-container.cjs.entry.js +2 -2
- package/dist/cjs/form-checkbox_3.cjs.entry.js +109 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +230 -287
- package/dist/cjs/form-input-label-B4EsaC9R.js +30 -0
- package/dist/cjs/{get-local-language-CCn1p4nM.js → get-local-language-C_B5UpUK.js} +233 -15
- package/dist/cjs/{index-BjyafrBw.js → index-CW-dkZVH.js} +185 -115
- package/dist/cjs/information-table.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/{material-card-Cd0L1Get.js → material-card-DFd5SQVC.js} +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +5 -5
- package/dist/cjs/{type-ZkbQVCRR.js → phone-validator-DI1aq9s6.js} +1637 -1837
- package/dist/cjs/{print-icon-C4ASnhAO.js → print-icon-CeXvXhF8.js} +1 -1
- package/dist/cjs/shift-accordion.cjs.entry.js +2 -2
- package/dist/cjs/shift-checkbox.cjs.entry.js +33 -0
- package/dist/cjs/shift-components.cjs.js +5 -4
- package/dist/cjs/shift-slider.cjs.entry.js +3 -3
- package/dist/cjs/shift-switch.cjs.entry.js +32 -0
- package/dist/cjs/shift-tab-content.cjs.entry.js +3 -3
- package/dist/cjs/shift-tabs_2.cjs.entry.js +19 -24
- package/dist/cjs/{type-D8rizwvZ.js → type-Bv0xlV1X.js} +1 -1
- package/dist/cjs/{type-CWFawTeP.js → type-ovX9euBp.js} +1 -1
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +30 -33
- package/dist/cjs/{vehicle-info-layout-Dp2Po_uc.js → vehicle-info-layout-CvgBHkXb.js} +1 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +5 -5
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +444 -0
- package/dist/cjs/vin-extractor.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +9 -4
- package/dist/collection/components/components/empty.css +1 -0
- 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/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-accordion.css +1 -1
- package/dist/collection/components/components/shift-checkbox.js +216 -0
- package/dist/collection/components/components/shift-slider.css +1 -1
- package/dist/collection/components/components/shift-slider.js +1 -1
- package/dist/collection/components/components/shift-switch.js +215 -0
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tab-content.js +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/components/shift-tabs.js +2 -2
- package/dist/collection/components/form-elements/components/form-error-message.js +9 -0
- package/dist/collection/components/form-elements/components/form-input-label.js +10 -0
- package/dist/collection/components/form-elements/components/form-input-prefix.js +10 -0
- package/dist/collection/components/form-elements/form-checkbox.js +188 -0
- package/dist/collection/components/form-elements/form-dialog.js +75 -51
- package/dist/collection/components/form-elements/form-input.js +43 -172
- package/dist/collection/components/form-elements/form-inputs.css +1 -0
- package/dist/collection/components/form-elements/form-phone-number.js +251 -0
- package/dist/collection/components/form-elements/form-select.js +152 -117
- package/dist/collection/components/form-elements/form-shadow-input.js +7 -5
- package/dist/collection/components/form-elements/form-structure-error.js +3 -3
- package/dist/collection/components/form-elements/form-structure.js +63 -110
- package/dist/collection/components/form-elements/form-submit.js +74 -63
- package/dist/collection/components/form-elements/form-switch.js +188 -0
- package/dist/collection/components/form-elements/form-text-area.js +27 -160
- package/dist/collection/components/forms/demo/element-mapper.js +41 -0
- package/dist/collection/components/forms/demo/structure.js +15 -0
- package/dist/collection/components/forms/demo/themes.css +1 -0
- package/dist/collection/components/forms/demo/validations.js +34 -0
- package/dist/collection/components/forms/{service-booking-form.js → demo-form.js} +164 -101
- package/dist/collection/components/forms/vehicle-quotation/VehicleImageViewer.js +50 -0
- package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +139 -0
- package/dist/collection/components/forms/vehicle-quotation/structure.js +34 -0
- package/dist/collection/components/forms/{service-booking/form.css → vehicle-quotation/themes.css} +1 -1
- package/dist/collection/components/forms/vehicle-quotation/validations.js +42 -0
- package/dist/collection/components/forms/vehicle-quotation.js +327 -0
- 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/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -11
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +5 -3
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.css +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/{global/lib → features/form-hook}/form-hook.js +72 -11
- package/dist/collection/features/form-hook/gist-loader.js +25 -0
- package/dist/collection/features/form-hook/index.js +11 -0
- package/dist/collection/features/form-hook/interface.js +1 -0
- package/dist/collection/features/form-hook/phone-validator.js +11 -0
- package/dist/collection/features/form-hook/render-structure.js +36 -0
- package/dist/collection/features/multi-lingual/get-local-language.js +5 -0
- package/dist/collection/features/multi-lingual/types.js +2 -0
- package/dist/collection/global/assets/add-icon.js +1 -1
- package/dist/collection/global/assets/loader-icon.js +6 -0
- package/dist/collection/global/assets/tick-icon.js +6 -0
- package/dist/collection/global/lib/fetch-json.js +12 -0
- package/dist/collection/global/lib/get-language-from-url.js +17 -0
- package/dist/collection/global/lib/get-nested-value.js +9 -0
- package/dist/collection/global/lib/parse-loose-json.js +23 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-inspection-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-inspection-panel-dto.js +1 -0
- package/dist/collection/locale-mapper.js +10 -2
- package/dist/collection/locales/forms/contactUs/type.js +6 -2
- package/dist/collection/locales/forms/demo/type.js +30 -0
- package/dist/collection/locales/forms/type.js +3 -1
- package/dist/collection/locales/forms/vehicleQuotation/type.js +40 -0
- package/dist/collection/locales/general/type.js +1 -1
- package/dist/collection/locales/generalTicketTypes/type.js +1 -10
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/{service-booking-form.d.ts → demo-form.d.ts} +4 -4
- package/dist/components/demo-form.js +5 -0
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.d.ts +11 -0
- package/dist/components/form-checkbox.js +5 -0
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.d.ts +11 -0
- package/dist/components/form-phone-number.js +5 -0
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.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.d.ts +11 -0
- package/dist/components/form-switch.js +5 -0
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/{p-B68G_Ld3.js → p-1_IG0jXf.js} +1 -1
- package/dist/components/p-B2MwZoPq.js +5 -0
- package/dist/components/p-B2beUAyz.js +5 -0
- package/dist/components/p-B3Uao1Ha.js +5 -0
- package/dist/components/p-BC0ykyCl.js +5 -0
- package/dist/components/p-BGTo_J4_.js +5 -0
- package/dist/components/{p-DOmV6aKY.js → p-BJ7Y_0HH.js} +1 -1
- package/dist/components/p-BXBJhfKx.js +5 -0
- package/dist/components/p-BXfdBBWy.js +5 -0
- package/dist/components/p-B_Awuajg.js +5 -0
- package/dist/components/p-BziBwpva.js +5 -0
- package/dist/components/p-C-I1G2GL.js +5 -0
- package/dist/components/p-CGKHe5aV.js +5 -0
- package/dist/components/p-CQnGszy6.js +5 -0
- package/dist/components/p-C_jDd3e_.js +5 -0
- package/dist/components/p-C_ozk0lR.js +5 -0
- package/dist/components/p-Cgt5s_xn.js +5 -0
- package/dist/components/p-Chfe8TId.js +5 -0
- package/dist/components/p-CnHfmo0x.js +5 -0
- package/dist/components/p-Cs2-cikp.js +5 -0
- package/dist/components/p-CtOrqs6B.js +5 -0
- package/dist/components/p-D0IHkGuC.js +5 -0
- package/dist/components/p-D3BMiplT.js +5 -0
- package/dist/components/p-D9VJI-bd.js +5 -0
- package/dist/components/p-DB29Litl.js +5 -0
- package/dist/components/p-DC7E4vgR.js +5 -0
- package/dist/components/p-DLNC6ubn.js +5 -0
- package/dist/components/p-DRK0oYuz.js +5 -0
- package/dist/components/p-DRnxC_Dv.js +5 -0
- package/dist/components/p-DW3sRsIe.js +5 -0
- package/dist/components/p-DijSwhFz.js +5 -0
- package/dist/components/p-DkCCdt6S.js +5 -0
- package/dist/components/p-Dn3zEIrl.js +5 -0
- package/dist/components/p-DvwR_CeT.js +5 -0
- package/dist/components/p-M7q3SKiP.js +5 -0
- package/dist/components/p-Xrfzb9z7.js +5 -0
- package/dist/components/p-nDe1Tx7N.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/{contact-us-form.d.ts → shift-checkbox.d.ts} +4 -4
- package/dist/components/shift-checkbox.js +5 -0
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-switch.d.ts +11 -0
- package/dist/components/shift-switch.js +5 -0
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.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.d.ts +11 -0
- package/dist/components/vehicle-quotation-form.js +5 -0
- 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/add-icon-BYuh_IBk.js +11 -0
- package/dist/esm/app-globals-FlE3HjBb.js +9 -0
- package/dist/esm/arrow-up-icon-DxOdc6k0.js +10 -0
- package/dist/esm/check-icon-DVWsrBK6.js +10 -0
- package/dist/esm/dead-stock-lookup_3.entry.js +14 -16
- package/dist/esm/demo-form.entry.js +212 -0
- package/dist/esm/{empty-table-icon-DvQk12N9.js → empty-table-icon-CBc6OV9P.js} +1 -1
- package/dist/esm/flexible-container.entry.js +2 -2
- package/dist/esm/form-checkbox_3.entry.js +105 -0
- package/dist/esm/form-dialog_8.entry.js +230 -287
- package/dist/esm/form-input-label-D5w5EH3F.js +26 -0
- package/dist/esm/{get-local-language-BOB5F5ZP.js → get-local-language-uS6vNigf.js} +231 -16
- package/dist/esm/{index-CikEOqe0.js → index-BnEa9hGL.js} +184 -114
- package/dist/esm/information-table.entry.js +2 -2
- package/dist/esm/loader.js +4 -3
- package/dist/esm/loading-spinner.entry.js +2 -2
- package/dist/esm/{material-card-DiAl-884.js → material-card-KRdYdM6Z.js} +1 -1
- package/dist/esm/part-lookup.entry.js +5 -5
- package/dist/esm/{type-DQUNYPN-.js → phone-validator-CDkKaNS8.js} +1635 -1834
- package/dist/esm/{print-icon-Dn5kQmLo.js → print-icon-FGeHkj8F.js} +1 -1
- package/dist/esm/shift-accordion.entry.js +2 -2
- package/dist/esm/shift-checkbox.entry.js +31 -0
- package/dist/esm/shift-components.js +5 -4
- package/dist/esm/shift-slider.entry.js +3 -3
- package/dist/esm/shift-switch.entry.js +30 -0
- package/dist/esm/shift-tab-content.entry.js +3 -3
- package/dist/esm/shift-tabs_2.entry.js +17 -22
- package/dist/esm/{type-CUrex2XJ.js → type-Ct-uDjGf.js} +1 -1
- package/dist/esm/{type-BfKkCp-Z.js → type-DmjYUDuJ.js} +1 -1
- package/dist/esm/vehicle-accessories_6.entry.js +30 -33
- package/dist/esm/{vehicle-info-layout-CNGGKAia.js → vehicle-info-layout-gB294hFH.js} +1 -1
- package/dist/esm/vehicle-lookup.entry.js +5 -5
- package/dist/esm/vehicle-quotation-form.entry.js +442 -0
- package/dist/esm/vin-extractor.entry.js +3 -3
- package/dist/locales/forms/ar.json +8 -1
- package/dist/locales/forms/contactUs/ar.json +5 -1
- package/dist/locales/forms/contactUs/en.json +5 -1
- package/dist/locales/forms/contactUs/ku.json +5 -1
- package/dist/locales/forms/contactUs/ru.json +5 -1
- package/dist/locales/forms/contactUs/type.ts +26 -19
- package/dist/locales/forms/demo/ar.json +24 -0
- package/dist/locales/forms/demo/en.json +24 -0
- package/dist/locales/forms/demo/ku.json +24 -0
- package/dist/locales/forms/demo/ru.json +24 -0
- package/dist/locales/forms/demo/type.ts +31 -0
- package/dist/locales/forms/en.json +8 -1
- package/dist/locales/forms/ku.json +8 -1
- package/dist/locales/forms/ru.json +5 -1
- package/dist/locales/forms/type.ts +4 -1
- package/dist/locales/forms/vehicleQuotation/ar.json +34 -0
- package/dist/locales/forms/vehicleQuotation/en.json +34 -0
- package/dist/locales/forms/vehicleQuotation/ku.json +34 -0
- package/dist/locales/forms/vehicleQuotation/ru.json +34 -0
- package/dist/locales/forms/vehicleQuotation/type.ts +38 -0
- package/dist/locales/general/ar.json +0 -1
- package/dist/locales/general/en.json +0 -1
- package/dist/locales/general/ku.json +0 -1
- package/dist/locales/general/ru.json +0 -1
- package/dist/locales/general/type.ts +1 -1
- package/dist/locales/generalTicketTypes/ar.json +0 -2
- package/dist/locales/generalTicketTypes/en.json +0 -2
- package/dist/locales/generalTicketTypes/ku.json +0 -2
- package/dist/locales/generalTicketTypes/ru.json +0 -2
- package/dist/locales/generalTicketTypes/type.ts +1 -10
- package/dist/shift-components/p-0788630d.entry.js +5 -0
- package/dist/shift-components/{p-0c8bbdd0.entry.js → p-087fef54.entry.js} +1 -1
- package/dist/shift-components/p-203a857e.entry.js +5 -0
- package/dist/shift-components/p-3901EPA-.js +5 -0
- package/dist/shift-components/p-540f78fd.entry.js +5 -0
- package/dist/shift-components/p-54d04a69.entry.js +5 -0
- package/dist/shift-components/p-5595a43e.entry.js +5 -0
- package/dist/shift-components/p-6153b149.entry.js +5 -0
- package/dist/shift-components/{p-277c8a5b.entry.js → p-82cd67f3.entry.js} +1 -1
- package/dist/shift-components/p-8d9be2dc.entry.js +5 -0
- package/dist/shift-components/p-9464bc69.entry.js +5 -0
- package/dist/shift-components/{p-B8ZR3r4y.js → p-B-n4m635.js} +1 -1
- package/dist/shift-components/{p-DzSZ47FV.js → p-BK6OxaNt.js} +1 -1
- package/dist/shift-components/{p-Wtw8qj6x.js → p-BWuXL_w2.js} +1 -1
- package/dist/shift-components/p-Beoi5LCx.js +5 -0
- package/dist/shift-components/p-BgARsXBh.js +5 -0
- package/dist/shift-components/p-BnEa9hGL.js +6 -0
- package/dist/shift-components/p-BuKksSjk.js +5 -0
- package/dist/shift-components/p-Bzq1Jrq5.js +5 -0
- package/dist/shift-components/p-DB9dXavJ.js +5 -0
- package/dist/shift-components/p-DL_G203I.js +5 -0
- package/dist/shift-components/{p-Bx6q5cq-.js → p-DpQp5gau.js} +1 -1
- package/dist/shift-components/p-acd07f69.entry.js +5 -0
- package/dist/shift-components/p-b0ebebd3.entry.js +5 -0
- package/dist/shift-components/p-b8ae2d0d.entry.js +5 -0
- package/dist/shift-components/p-bc10e8d1.entry.js +5 -0
- package/dist/shift-components/p-c46ecd64.entry.js +5 -0
- package/dist/shift-components/p-dec7a90a.entry.js +5 -0
- package/dist/shift-components/p-e298ef79.entry.js +5 -0
- package/dist/shift-components/{p-238f5df0.entry.js → p-e67ec123.entry.js} +1 -1
- package/dist/shift-components/p-eL99WkVm.js +5 -0
- package/dist/shift-components/p-jtkSIgt7.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/shift-checkbox.d.ts +15 -0
- package/dist/types/components/components/shift-switch.d.ts +15 -0
- package/dist/types/components/form-elements/components/form-error-message.d.ts +7 -0
- package/dist/types/components/form-elements/components/form-input-label.d.ts +7 -0
- package/dist/types/components/form-elements/components/form-input-prefix.d.ts +7 -0
- package/dist/types/components/form-elements/form-checkbox.d.ts +17 -0
- package/dist/types/components/form-elements/form-dialog.d.ts +7 -9
- package/dist/types/components/form-elements/form-input.d.ts +8 -19
- package/dist/types/components/form-elements/form-phone-number.d.ts +23 -0
- package/dist/types/components/form-elements/form-select.d.ts +19 -19
- package/dist/types/components/form-elements/form-shadow-input.d.ts +1 -1
- package/dist/types/components/form-elements/form-structure.d.ts +11 -19
- package/dist/types/components/form-elements/form-submit.d.ts +9 -10
- package/dist/types/components/form-elements/form-switch.d.ts +17 -0
- package/dist/types/components/form-elements/form-text-area.d.ts +5 -15
- package/dist/types/components/forms/demo/element-mapper.d.ts +6 -0
- package/dist/types/components/forms/demo/structure.d.ts +12 -0
- package/dist/types/components/forms/demo/validations.d.ts +32 -0
- package/dist/types/components/forms/demo-form.d.ts +41 -0
- package/dist/types/components/forms/vehicle-quotation/VehicleImageViewer.d.ts +8 -0
- package/dist/types/components/forms/vehicle-quotation/element-mapper.d.ts +6 -0
- package/dist/types/components/forms/vehicle-quotation/structure.d.ts +0 -0
- package/dist/types/components/forms/vehicle-quotation/validations.d.ts +34 -0
- package/dist/types/components/forms/vehicle-quotation.d.ts +38 -0
- package/dist/types/components.d.ts +321 -234
- package/dist/types/features/form-hook/form-hook.d.ts +57 -0
- package/dist/types/features/form-hook/gist-loader.d.ts +2 -0
- package/dist/types/features/form-hook/index.d.ts +7 -0
- package/dist/types/features/form-hook/inputs/form-input.d.ts +4 -0
- package/dist/types/features/form-hook/inputs/form-select.d.ts +12 -0
- package/dist/types/features/form-hook/interface.d.ts +79 -0
- package/dist/types/features/form-hook/phone-validator.d.ts +9 -0
- package/dist/types/features/form-hook/render-structure.d.ts +3 -0
- package/dist/types/features/multi-lingual/get-local-language.d.ts +2 -1
- package/dist/types/features/multi-lingual/types.d.ts +33 -0
- package/dist/types/global/assets/add-icon.d.ts +1 -0
- package/dist/types/global/assets/loader-icon.d.ts +6 -0
- package/dist/types/global/assets/tick-icon.d.ts +6 -0
- package/dist/types/global/lib/fetch-json.d.ts +1 -0
- package/dist/types/global/lib/get-language-from-url.d.ts +2 -0
- package/dist/types/global/lib/get-nested-value.d.ts +1 -0
- package/dist/types/global/lib/parse-loose-json.d.ts +1 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-inspection-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-inspection-panel-dto.d.ts +7 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +2 -2
- package/dist/types/locale-mapper.d.ts +3 -1
- package/dist/types/locales/forms/contactUs/type.d.ts +9 -0
- package/dist/types/locales/forms/demo/type.d.ts +49 -0
- package/dist/types/locales/forms/type.d.ts +13 -0
- package/dist/types/locales/forms/vehicleQuotation/type.d.ts +68 -0
- package/dist/types/locales/forms/wrapper-type.d.ts +21 -0
- package/dist/types/locales/general/type.d.ts +0 -2
- package/dist/types/locales/generalTicketTypes/type.d.ts +0 -4
- package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +5 -3
- package/dist/cjs/contact-us-form.cjs.entry.js +0 -198
- package/dist/cjs/service-booking-form.cjs.entry.js +0 -198
- package/dist/collection/components/form-elements/form-dialog.css +0 -1
- package/dist/collection/components/form-elements/form-input.css +0 -1
- package/dist/collection/components/form-elements/form-select.css +0 -1
- package/dist/collection/components/form-elements/form-shadow-input.css +0 -1
- package/dist/collection/components/form-elements/form-structure-error.css +0 -1
- package/dist/collection/components/form-elements/form-structure.css +0 -1
- package/dist/collection/components/form-elements/form-submit.css +0 -1
- package/dist/collection/components/form-elements/form-text-area.css +0 -1
- package/dist/collection/components/forms/contact-us/element-mapper.js +0 -88
- package/dist/collection/components/forms/contact-us/form.css +0 -1
- package/dist/collection/components/forms/contact-us/validations.js +0 -19
- package/dist/collection/components/forms/contact-us-form.js +0 -295
- package/dist/collection/components/forms/service-booking/element-mapper.js +0 -88
- package/dist/collection/components/forms/service-booking/validations.js +0 -19
- package/dist/collection/global/lib/validate-form-structure.js +0 -47
- package/dist/components/contact-us-form.js +0 -5
- package/dist/components/p-0PjZRWut.js +0 -5
- package/dist/components/p-11ylorNL.js +0 -5
- package/dist/components/p-B2qqkU3A.js +0 -5
- package/dist/components/p-B6j7vssc.js +0 -5
- package/dist/components/p-BF4ShuLZ.js +0 -5
- package/dist/components/p-BGe0MyLF.js +0 -5
- package/dist/components/p-BKq17ywX.js +0 -5
- package/dist/components/p-BSP1ayje.js +0 -5
- package/dist/components/p-BVPVJguA.js +0 -5
- package/dist/components/p-BhjL0HMA.js +0 -5
- package/dist/components/p-BjSLaXGX.js +0 -5
- package/dist/components/p-Bm8G-DAp.js +0 -5
- package/dist/components/p-CIaM3UPL.js +0 -5
- package/dist/components/p-CcP_EtCu.js +0 -5
- package/dist/components/p-CtpTKsfq.js +0 -5
- package/dist/components/p-D8xszt8E.js +0 -5
- package/dist/components/p-DXGHyX7G.js +0 -5
- package/dist/components/p-Di5SfFwc.js +0 -5
- package/dist/components/p-DyaIfEgq.js +0 -5
- package/dist/components/p-P3fAKtye.js +0 -5
- package/dist/components/p-QMinV6Ic.js +0 -5
- package/dist/components/p-TyreGxpg.js +0 -5
- package/dist/components/p-alw0x13e.js +0 -5
- package/dist/components/p-eQuyMB7o.js +0 -5
- package/dist/components/p-x0cm6Jgv.js +0 -5
- package/dist/components/service-booking-form.js +0 -5
- package/dist/esm/contact-us-form.entry.js +0 -196
- package/dist/esm/service-booking-form.entry.js +0 -196
- package/dist/shift-components/p-03f093e0.entry.js +0 -5
- package/dist/shift-components/p-077e4c82.entry.js +0 -5
- package/dist/shift-components/p-42218765.entry.js +0 -5
- package/dist/shift-components/p-43a8b998.entry.js +0 -5
- package/dist/shift-components/p-55558c0f.entry.js +0 -5
- package/dist/shift-components/p-55c5a5ea.entry.js +0 -5
- package/dist/shift-components/p-701e3fb0.entry.js +0 -5
- package/dist/shift-components/p-8d7b1edb.entry.js +0 -5
- package/dist/shift-components/p-BSpTbUWi.js +0 -5
- package/dist/shift-components/p-CTkDt6jM.js +0 -5
- package/dist/shift-components/p-CikEOqe0.js +0 -6
- package/dist/shift-components/p-DPgWys0Y.js +0 -5
- package/dist/shift-components/p-bc419485.entry.js +0 -5
- package/dist/shift-components/p-e8e37708.entry.js +0 -5
- package/dist/shift-components/p-f1181125.entry.js +0 -5
- package/dist/shift-components/p-f760aaa3.entry.js +0 -5
- package/dist/shift-components/p-fyqwD4fB.js +0 -5
- package/dist/types/components/forms/contact-us/element-mapper.d.ts +0 -3
- package/dist/types/components/forms/contact-us/validations.d.ts +0 -26
- package/dist/types/components/forms/contact-us-form.d.ts +0 -32
- package/dist/types/components/forms/service-booking/element-mapper.d.ts +0 -3
- package/dist/types/components/forms/service-booking/validations.d.ts +0 -26
- package/dist/types/components/forms/service-booking-form.d.ts +0 -32
- package/dist/types/global/lib/form-hook.d.ts +0 -47
- package/dist/types/global/lib/validate-form-structure.d.ts +0 -3
- package/dist/types/global/types/forms.d.ts +0 -64
- package/dist/types/global/types/general.d.ts +0 -23
- /package/dist/collection/{global/types/forms.js → features/form-hook/inputs/form-input.js} +0 -0
- /package/dist/collection/{global/types/general.js → features/form-hook/inputs/form-select.js} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { h } from './index-BnEa9hGL.js';
|
|
6
|
+
import { c as cn } from './cn-BK16Cn81.js';
|
|
7
|
+
|
|
8
|
+
function getNestedValue(obj, path) {
|
|
9
|
+
if (!path)
|
|
10
|
+
return undefined;
|
|
11
|
+
return path.split('.').reduce((acc, key) => acc === null || acc === void 0 ? void 0 : acc[key], obj);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const FormErrorMessage = ({ errorMessage, isError }) => (h("div", { part: "form-error-message", class: cn('error-message', {
|
|
15
|
+
'display-error-message': isError,
|
|
16
|
+
}) }, errorMessage));
|
|
17
|
+
|
|
18
|
+
const FormInputLabel = ({ label, isRequired }) => {
|
|
19
|
+
if (!label)
|
|
20
|
+
return false;
|
|
21
|
+
return (h("div", { part: "form-input-label", class: "form-input-label" },
|
|
22
|
+
label,
|
|
23
|
+
isRequired && (h("span", { part: "form-input-label-required-star", class: "form-input-label-required-star" }, "*"))));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { FormErrorMessage as F, FormInputLabel as a, getNestedValue as g };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-BnEa9hGL.js';
|
|
6
6
|
|
|
7
7
|
function getDefaultExportFromCjs (x) {
|
|
8
8
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -657,19 +657,20 @@ function createValidation(config) {
|
|
|
657
657
|
abortEarly = schema.spec.abortEarly,
|
|
658
658
|
disableStackTrace = schema.spec.disableStackTrace
|
|
659
659
|
} = options;
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
660
|
+
const resolveOptions = {
|
|
661
|
+
value,
|
|
662
|
+
parent,
|
|
663
|
+
context
|
|
664
|
+
};
|
|
663
665
|
function createError(overrides = {}) {
|
|
664
|
-
const nextParams = Object.assign({
|
|
666
|
+
const nextParams = resolveParams(Object.assign({
|
|
665
667
|
value,
|
|
666
668
|
originalValue,
|
|
667
669
|
label: schema.spec.label,
|
|
668
670
|
path: overrides.path || path,
|
|
669
671
|
spec: schema.spec,
|
|
670
672
|
disableStackTrace: overrides.disableStackTrace || disableStackTrace
|
|
671
|
-
}, params, overrides.params);
|
|
672
|
-
for (const key of Object.keys(nextParams)) nextParams[key] = resolve(nextParams[key]);
|
|
673
|
+
}, params, overrides.params), resolveOptions);
|
|
673
674
|
const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);
|
|
674
675
|
error.params = nextParams;
|
|
675
676
|
return error;
|
|
@@ -681,7 +682,9 @@ function createValidation(config) {
|
|
|
681
682
|
type: name,
|
|
682
683
|
from: options.from,
|
|
683
684
|
createError,
|
|
684
|
-
resolve
|
|
685
|
+
resolve(item) {
|
|
686
|
+
return resolveMaybeRef(item, resolveOptions);
|
|
687
|
+
},
|
|
685
688
|
options,
|
|
686
689
|
originalValue,
|
|
687
690
|
schema
|
|
@@ -716,6 +719,18 @@ function createValidation(config) {
|
|
|
716
719
|
return validate;
|
|
717
720
|
}
|
|
718
721
|
|
|
722
|
+
// Warning: mutates the input
|
|
723
|
+
function resolveParams(params, options) {
|
|
724
|
+
if (!params) return params;
|
|
725
|
+
for (const key of Object.keys(params)) {
|
|
726
|
+
params[key] = resolveMaybeRef(params[key], options);
|
|
727
|
+
}
|
|
728
|
+
return params;
|
|
729
|
+
}
|
|
730
|
+
function resolveMaybeRef(item, options) {
|
|
731
|
+
return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;
|
|
732
|
+
}
|
|
733
|
+
|
|
719
734
|
function getIn(schema, path, value, context = value) {
|
|
720
735
|
let parent, lastPart, lastPartDebug;
|
|
721
736
|
|
|
@@ -829,6 +844,87 @@ function clone(src, seen = new Map()) {
|
|
|
829
844
|
return copy;
|
|
830
845
|
}
|
|
831
846
|
|
|
847
|
+
/**
|
|
848
|
+
* Copied from @standard-schema/spec to avoid having a dependency on it.
|
|
849
|
+
* https://github.com/standard-schema/standard-schema/blob/main/packages/spec/src/index.ts
|
|
850
|
+
*/
|
|
851
|
+
|
|
852
|
+
function createStandardPath(path) {
|
|
853
|
+
if (!(path != null && path.length)) {
|
|
854
|
+
return undefined;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// Array to store the final path segments
|
|
858
|
+
const segments = [];
|
|
859
|
+
// Buffer for building the current segment
|
|
860
|
+
let currentSegment = '';
|
|
861
|
+
// Track if we're inside square brackets (array/property access)
|
|
862
|
+
let inBrackets = false;
|
|
863
|
+
// Track if we're inside quotes (for property names with special chars)
|
|
864
|
+
let inQuotes = false;
|
|
865
|
+
for (let i = 0; i < path.length; i++) {
|
|
866
|
+
const char = path[i];
|
|
867
|
+
if (char === '[' && !inQuotes) {
|
|
868
|
+
// When entering brackets, push any accumulated segment after splitting on dots
|
|
869
|
+
if (currentSegment) {
|
|
870
|
+
segments.push(...currentSegment.split('.').filter(Boolean));
|
|
871
|
+
currentSegment = '';
|
|
872
|
+
}
|
|
873
|
+
inBrackets = true;
|
|
874
|
+
continue;
|
|
875
|
+
}
|
|
876
|
+
if (char === ']' && !inQuotes) {
|
|
877
|
+
if (currentSegment) {
|
|
878
|
+
// Handle numeric indices (e.g. arr[0])
|
|
879
|
+
if (/^\d+$/.test(currentSegment)) {
|
|
880
|
+
segments.push(currentSegment);
|
|
881
|
+
} else {
|
|
882
|
+
// Handle quoted property names (e.g. obj["foo.bar"])
|
|
883
|
+
segments.push(currentSegment.replace(/^"|"$/g, ''));
|
|
884
|
+
}
|
|
885
|
+
currentSegment = '';
|
|
886
|
+
}
|
|
887
|
+
inBrackets = false;
|
|
888
|
+
continue;
|
|
889
|
+
}
|
|
890
|
+
if (char === '"') {
|
|
891
|
+
// Toggle quote state for handling quoted property names
|
|
892
|
+
inQuotes = !inQuotes;
|
|
893
|
+
continue;
|
|
894
|
+
}
|
|
895
|
+
if (char === '.' && !inBrackets && !inQuotes) {
|
|
896
|
+
// On dots outside brackets/quotes, push current segment
|
|
897
|
+
if (currentSegment) {
|
|
898
|
+
segments.push(currentSegment);
|
|
899
|
+
currentSegment = '';
|
|
900
|
+
}
|
|
901
|
+
continue;
|
|
902
|
+
}
|
|
903
|
+
currentSegment += char;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
// Push any remaining segment after splitting on dots
|
|
907
|
+
if (currentSegment) {
|
|
908
|
+
segments.push(...currentSegment.split('.').filter(Boolean));
|
|
909
|
+
}
|
|
910
|
+
return segments;
|
|
911
|
+
}
|
|
912
|
+
function createStandardIssues(error, parentPath) {
|
|
913
|
+
const path = parentPath ? `${parentPath}.${error.path}` : error.path;
|
|
914
|
+
return error.errors.map(err => ({
|
|
915
|
+
message: err,
|
|
916
|
+
path: createStandardPath(path)
|
|
917
|
+
}));
|
|
918
|
+
}
|
|
919
|
+
function issuesFromValidationError(error, parentPath) {
|
|
920
|
+
var _error$inner;
|
|
921
|
+
if (!((_error$inner = error.inner) != null && _error$inner.length) && error.errors.length) {
|
|
922
|
+
return createStandardIssues(error, parentPath);
|
|
923
|
+
}
|
|
924
|
+
const path = parentPath ? `${parentPath}.${error.path}` : error.path;
|
|
925
|
+
return error.inner.flatMap(err => issuesFromValidationError(err, path));
|
|
926
|
+
}
|
|
927
|
+
|
|
832
928
|
// If `CustomSchemaMeta` isn't extended with any keys, we'll fall back to a
|
|
833
929
|
// loose Record definition allowing free form usage.
|
|
834
930
|
class Schema {
|
|
@@ -1396,13 +1492,41 @@ class Schema {
|
|
|
1396
1492
|
type: next.type,
|
|
1397
1493
|
oneOf: next._whitelist.describe(),
|
|
1398
1494
|
notOneOf: next._blacklist.describe(),
|
|
1399
|
-
tests: next.tests.map(fn =>
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1495
|
+
tests: next.tests.filter((n, idx, list) => list.findIndex(c => c.OPTIONS.name === n.OPTIONS.name) === idx).map(fn => {
|
|
1496
|
+
const params = fn.OPTIONS.params && options ? resolveParams(Object.assign({}, fn.OPTIONS.params), options) : fn.OPTIONS.params;
|
|
1497
|
+
return {
|
|
1498
|
+
name: fn.OPTIONS.name,
|
|
1499
|
+
params
|
|
1500
|
+
};
|
|
1501
|
+
})
|
|
1403
1502
|
};
|
|
1404
1503
|
return description;
|
|
1405
1504
|
}
|
|
1505
|
+
get ['~standard']() {
|
|
1506
|
+
const schema = this;
|
|
1507
|
+
const standard = {
|
|
1508
|
+
version: 1,
|
|
1509
|
+
vendor: 'yup',
|
|
1510
|
+
async validate(value) {
|
|
1511
|
+
try {
|
|
1512
|
+
const result = await schema.validate(value, {
|
|
1513
|
+
abortEarly: false
|
|
1514
|
+
});
|
|
1515
|
+
return {
|
|
1516
|
+
value: result
|
|
1517
|
+
};
|
|
1518
|
+
} catch (err) {
|
|
1519
|
+
if (err instanceof ValidationError) {
|
|
1520
|
+
return {
|
|
1521
|
+
issues: issuesFromValidationError(err)
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
throw err;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
return standard;
|
|
1529
|
+
}
|
|
1406
1530
|
}
|
|
1407
1531
|
// @ts-expect-error
|
|
1408
1532
|
Schema.prototype.__isYupSchema__ = true;
|
|
@@ -1420,6 +1544,81 @@ for (const method of ['validate', 'validateSync']) Schema.prototype[`${method}At
|
|
|
1420
1544
|
for (const alias of ['equals', 'is']) Schema.prototype[alias] = Schema.prototype.oneOf;
|
|
1421
1545
|
for (const alias of ['not', 'nope']) Schema.prototype[alias] = Schema.prototype.notOneOf;
|
|
1422
1546
|
|
|
1547
|
+
function create$7() {
|
|
1548
|
+
return new BooleanSchema();
|
|
1549
|
+
}
|
|
1550
|
+
class BooleanSchema extends Schema {
|
|
1551
|
+
constructor() {
|
|
1552
|
+
super({
|
|
1553
|
+
type: 'boolean',
|
|
1554
|
+
check(v) {
|
|
1555
|
+
if (v instanceof Boolean) v = v.valueOf();
|
|
1556
|
+
return typeof v === 'boolean';
|
|
1557
|
+
}
|
|
1558
|
+
});
|
|
1559
|
+
this.withMutation(() => {
|
|
1560
|
+
this.transform((value, _raw, ctx) => {
|
|
1561
|
+
if (ctx.spec.coerce && !ctx.isType(value)) {
|
|
1562
|
+
if (/^(true|1)$/i.test(String(value))) return true;
|
|
1563
|
+
if (/^(false|0)$/i.test(String(value))) return false;
|
|
1564
|
+
}
|
|
1565
|
+
return value;
|
|
1566
|
+
});
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
isTrue(message = boolean.isValue) {
|
|
1570
|
+
return this.test({
|
|
1571
|
+
message,
|
|
1572
|
+
name: 'is-value',
|
|
1573
|
+
exclusive: true,
|
|
1574
|
+
params: {
|
|
1575
|
+
value: 'true'
|
|
1576
|
+
},
|
|
1577
|
+
test(value) {
|
|
1578
|
+
return isAbsent(value) || value === true;
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
isFalse(message = boolean.isValue) {
|
|
1583
|
+
return this.test({
|
|
1584
|
+
message,
|
|
1585
|
+
name: 'is-value',
|
|
1586
|
+
exclusive: true,
|
|
1587
|
+
params: {
|
|
1588
|
+
value: 'false'
|
|
1589
|
+
},
|
|
1590
|
+
test(value) {
|
|
1591
|
+
return isAbsent(value) || value === false;
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
default(def) {
|
|
1596
|
+
return super.default(def);
|
|
1597
|
+
}
|
|
1598
|
+
defined(msg) {
|
|
1599
|
+
return super.defined(msg);
|
|
1600
|
+
}
|
|
1601
|
+
optional() {
|
|
1602
|
+
return super.optional();
|
|
1603
|
+
}
|
|
1604
|
+
required(msg) {
|
|
1605
|
+
return super.required(msg);
|
|
1606
|
+
}
|
|
1607
|
+
notRequired() {
|
|
1608
|
+
return super.notRequired();
|
|
1609
|
+
}
|
|
1610
|
+
nullable() {
|
|
1611
|
+
return super.nullable();
|
|
1612
|
+
}
|
|
1613
|
+
nonNullable(msg) {
|
|
1614
|
+
return super.nonNullable(msg);
|
|
1615
|
+
}
|
|
1616
|
+
strip(v) {
|
|
1617
|
+
return super.strip(v);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
create$7.prototype = BooleanSchema.prototype;
|
|
1621
|
+
|
|
1423
1622
|
/**
|
|
1424
1623
|
* This file is a modified version of the file from the following repository:
|
|
1425
1624
|
* Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601>
|
|
@@ -2187,9 +2386,13 @@ const errorsSchema = yupTypeMapper([
|
|
|
2187
2386
|
'requestFailedPleaseTryAgainLater',
|
|
2188
2387
|
]);
|
|
2189
2388
|
|
|
2389
|
+
const errors = yupTypeMapper(['wildCard']);
|
|
2390
|
+
const formsSchema = create$3({ errors }).concat(yupTypeMapper(['reCaptchaIsRequired', 'noSelectOptions', 'close', 'inputValueIsIncorrect', 'submit']));
|
|
2391
|
+
|
|
2190
2392
|
const sharedLocalesSchema = create$3({
|
|
2191
2393
|
errors: errorsSchema,
|
|
2192
2394
|
}).concat(globalSchema);
|
|
2395
|
+
const sharedFormLocalesSchema = create$3({}).concat(globalSchema).concat(formsSchema);
|
|
2193
2396
|
const ARABIC_JSON_FILE = 'ar.json';
|
|
2194
2397
|
const ENGLISH_JSON_FILE = 'en.json';
|
|
2195
2398
|
const KURDISH_JSON_FILE = 'ku.json';
|
|
@@ -2201,10 +2404,10 @@ const languageMapper = {
|
|
|
2201
2404
|
ru: RUSSIAN_JSON_FILE,
|
|
2202
2405
|
};
|
|
2203
2406
|
|
|
2204
|
-
const version = "0.0.
|
|
2407
|
+
const version = "0.0.97";
|
|
2205
2408
|
|
|
2206
2409
|
// This file is auto-generated. Do not edit it manually.
|
|
2207
|
-
// Use command: yarn
|
|
2410
|
+
// Use command: yarn create:locale-mapper
|
|
2208
2411
|
// It is generated by the script located at: generate-locale-mapper.mjs
|
|
2209
2412
|
const localeMapper = {
|
|
2210
2413
|
"-": [
|
|
@@ -2215,11 +2418,19 @@ const localeMapper = {
|
|
|
2215
2418
|
],
|
|
2216
2419
|
"forms": [
|
|
2217
2420
|
"locales/forms/",
|
|
2218
|
-
"locales/forms/contactUs/"
|
|
2421
|
+
"locales/forms/contactUs/",
|
|
2422
|
+
"locales/forms/demo/",
|
|
2423
|
+
"locales/forms/vehicleQuotation/"
|
|
2219
2424
|
],
|
|
2220
2425
|
"forms.contactUs": [
|
|
2221
2426
|
"locales/forms/contactUs/"
|
|
2222
2427
|
],
|
|
2428
|
+
"forms.demo": [
|
|
2429
|
+
"locales/forms/demo/"
|
|
2430
|
+
],
|
|
2431
|
+
"forms.vehicleQuotation": [
|
|
2432
|
+
"locales/forms/vehicleQuotation/"
|
|
2433
|
+
],
|
|
2223
2434
|
"general": [
|
|
2224
2435
|
"locales/general/"
|
|
2225
2436
|
],
|
|
@@ -2276,6 +2487,10 @@ async function getSharedLocal(languageKey) {
|
|
|
2276
2487
|
const [errors, globalKeys] = await Promise.all([getLocaleLanguage(languageKey, 'errors', errorsSchema), getLocaleLanguage(languageKey, '-', globalSchema)]);
|
|
2277
2488
|
return Object.assign({ errors }, globalKeys);
|
|
2278
2489
|
}
|
|
2490
|
+
async function getSharedFormLocal(languageKey) {
|
|
2491
|
+
const [globalKeys, sharedFormKeys] = await Promise.all([getLocaleLanguage(languageKey, '-', globalSchema), getLocaleLanguage(languageKey, 'forms*', formsSchema)]);
|
|
2492
|
+
return Object.assign(Object.assign({}, globalKeys), sharedFormKeys);
|
|
2493
|
+
}
|
|
2279
2494
|
async function getLocaleLanguage(languageKey, component, schema) {
|
|
2280
2495
|
const languageFile = languageMapper[languageKey] || languageMapper.en;
|
|
2281
2496
|
const localeFiles = localeMapper[component];
|
|
@@ -2358,4 +2573,4 @@ async function requestLocaleFile(localeFile) {
|
|
|
2358
2573
|
}
|
|
2359
2574
|
}
|
|
2360
2575
|
|
|
2361
|
-
export { getSharedLocal as a, create$6 as b, create$3 as c, getLocaleLanguage as g, sharedLocalesSchema as s, yupTypeMapper as y };
|
|
2576
|
+
export { getSharedLocal as a, create$6 as b, create$3 as c, create$7 as d, sharedFormLocalesSchema as e, getSharedFormLocal as f, getLocaleLanguage as g, sharedLocalesSchema as s, yupTypeMapper as y };
|