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,57 @@
|
|
|
1
|
+
import { AnyObjectSchema } from 'yup';
|
|
2
|
+
import { LanguageKeys, MultiLingual, SharedFormLocales } from "../multi-lingual/index";
|
|
3
|
+
import { Field, FormElement, FormHookInterface, FormStateOptions, WatchCallback } from './interface';
|
|
4
|
+
import { FormStructure } from '../../components/form-elements/form-structure';
|
|
5
|
+
export declare class FormHook<T> {
|
|
6
|
+
haltValidation: boolean;
|
|
7
|
+
private isSubmitted;
|
|
8
|
+
private watchers;
|
|
9
|
+
private cachedValues;
|
|
10
|
+
private subscribers;
|
|
11
|
+
private schemaObject;
|
|
12
|
+
private onValuesUpdate;
|
|
13
|
+
private validationType;
|
|
14
|
+
private subscribedFields;
|
|
15
|
+
formErrors: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
formController: any;
|
|
19
|
+
formStructure?: FormStructure;
|
|
20
|
+
openDialog: () => void;
|
|
21
|
+
context: FormHookInterface<T> & MultiLingual;
|
|
22
|
+
constructor(context: FormHookInterface<T> & MultiLingual, schemaObject: AnyObjectSchema, formStateOptions?: FormStateOptions);
|
|
23
|
+
subscribe: (formName: string, formElement: FormElement) => number;
|
|
24
|
+
unsubscribe: (formName: string) => {
|
|
25
|
+
name: string;
|
|
26
|
+
context: FormElement;
|
|
27
|
+
}[];
|
|
28
|
+
reset(): void;
|
|
29
|
+
addWatcher: (key?: string, callback?: WatchCallback) => void;
|
|
30
|
+
removeWatcher: (key: string) => void;
|
|
31
|
+
onInput: (event: Event) => void;
|
|
32
|
+
resetFormErrorMessage: () => string;
|
|
33
|
+
getFormErrors: () => {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
36
|
+
getFormLocale: () => [SharedFormLocales, LanguageKeys];
|
|
37
|
+
setCachedValues: (newValues: Partial<T>) => void;
|
|
38
|
+
getValue: <T_1>(name: keyof T_1) => T_1[keyof T_1];
|
|
39
|
+
getValues: <T_1>() => T_1;
|
|
40
|
+
private focusFirstInput;
|
|
41
|
+
onSubmit: (formEvent: SubmitEvent) => void;
|
|
42
|
+
getInputState: <MetaType>(name: string) => Field<MetaType>;
|
|
43
|
+
private signal;
|
|
44
|
+
validateInput: (name: string) => {
|
|
45
|
+
isError: boolean;
|
|
46
|
+
errorMessage: any;
|
|
47
|
+
};
|
|
48
|
+
rerender: ({ inputName, rerenderAll, rerenderForm }: {
|
|
49
|
+
inputName?: string;
|
|
50
|
+
rerenderForm?: boolean;
|
|
51
|
+
rerenderAll?: boolean;
|
|
52
|
+
}) => void;
|
|
53
|
+
validateForm: (name: string, value: string | boolean, strict?: boolean) => {
|
|
54
|
+
isError: boolean;
|
|
55
|
+
errorMessage: any;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type FormSelectItem = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
meta?: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
type FormSelectFetcherProps<T> = {
|
|
7
|
+
locale: T;
|
|
8
|
+
language: string;
|
|
9
|
+
signal: AbortSignal;
|
|
10
|
+
};
|
|
11
|
+
export type FormSelectFetcher<T> = (props: FormSelectFetcherProps<T>) => Promise<FormSelectItem[]>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { JSX } from '../../stencil-public-runtime';
|
|
2
|
+
import { FormHook } from "./form-hook";
|
|
3
|
+
import formWrapperSchema from "../../locales/forms/wrapper-type";
|
|
4
|
+
import { LanguageKeys } from "../multi-lingual/index";
|
|
5
|
+
export type FormElementStructureComponents<T> = {
|
|
6
|
+
id?: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
children?: (FormElementStructureComponents<T> | T)[];
|
|
9
|
+
} & ({
|
|
10
|
+
tag?: string;
|
|
11
|
+
name: T;
|
|
12
|
+
} | {
|
|
13
|
+
tag: string;
|
|
14
|
+
name?: T;
|
|
15
|
+
});
|
|
16
|
+
export type FormElementStructure<T> = {
|
|
17
|
+
data?: Record<string, any>;
|
|
18
|
+
} & FormElementStructureComponents<T>;
|
|
19
|
+
export interface FormHookInterface<T> {
|
|
20
|
+
gistId?: string;
|
|
21
|
+
el: HTMLElement;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
errorMessage: string;
|
|
24
|
+
language: LanguageKeys;
|
|
25
|
+
structure: FormElementStructure<any>;
|
|
26
|
+
formSubmit: (formValues: T) => void;
|
|
27
|
+
errorCallback?: (error: any) => void;
|
|
28
|
+
successCallback?: (data: any) => void;
|
|
29
|
+
setErrorCallback: (error: any) => void;
|
|
30
|
+
setSuccessCallback: (data: any) => void;
|
|
31
|
+
setIsLoading: (loading: boolean) => void;
|
|
32
|
+
loadingChanges?: (loading: boolean) => void;
|
|
33
|
+
}
|
|
34
|
+
export type ValidationType = 'onSubmit' | 'always';
|
|
35
|
+
export interface Field<MetaType> {
|
|
36
|
+
name: string;
|
|
37
|
+
meta?: MetaType;
|
|
38
|
+
isError: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
isRequired: boolean;
|
|
41
|
+
errorMessage: string;
|
|
42
|
+
continuousValidation: boolean;
|
|
43
|
+
}
|
|
44
|
+
export type FieldControllers = Record<string, Field<any>>;
|
|
45
|
+
export interface FormStateOptions {
|
|
46
|
+
validationType?: ValidationType;
|
|
47
|
+
}
|
|
48
|
+
export type LocaleFormKeys = keyof typeof formWrapperSchema.fields;
|
|
49
|
+
export type Params = {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
formLocaleName: LocaleFormKeys;
|
|
52
|
+
};
|
|
53
|
+
export type FormFieldParams = Record<string, Params>;
|
|
54
|
+
export interface FormElement {
|
|
55
|
+
reset: (newValue?: unknown) => void;
|
|
56
|
+
}
|
|
57
|
+
export type Subscribers = {
|
|
58
|
+
name: string;
|
|
59
|
+
context: FormElement;
|
|
60
|
+
}[];
|
|
61
|
+
export type WatchCallback = (props: {
|
|
62
|
+
form: FormHook<any>;
|
|
63
|
+
values: Record<string, any>;
|
|
64
|
+
}) => void;
|
|
65
|
+
export type Watchers = Record<string, WatchCallback>;
|
|
66
|
+
export type FormElementMapperFunctionProps<T> = {
|
|
67
|
+
form: FormHook<any>;
|
|
68
|
+
isLoading: boolean;
|
|
69
|
+
props: any;
|
|
70
|
+
language: LanguageKeys;
|
|
71
|
+
locale: T;
|
|
72
|
+
};
|
|
73
|
+
type FormElementMapperFunction<T> = (ElementContext: FormElementMapperFunctionProps<T>) => JSX.Element;
|
|
74
|
+
export type FormElementMapper<T, FORM_LOCALE, Extra extends string = never> = {
|
|
75
|
+
[K in keyof T]: FormElementMapperFunction<FORM_LOCALE>;
|
|
76
|
+
} & {
|
|
77
|
+
[K in Extra]: FormElementMapperFunction<FORM_LOCALE>;
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { JSX } from '../../stencil-public-runtime';
|
|
2
|
+
import { FormElementStructure, FormElementMapper, FormElementMapperFunctionProps } from "./index";
|
|
3
|
+
export declare function renderStructure(structure: FormElementStructure<any> | string, elementMapper: FormElementMapper<any, any>, generaProps: FormElementMapperFunctionProps<any>): JSX.Element | false;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InferType, ObjectSchema } from 'yup';
|
|
2
|
-
import { LanguageKeys, LocaleKeyEntries, SharedLocales } from './types';
|
|
2
|
+
import { LanguageKeys, LocaleKeyEntries, SharedFormLocales, SharedLocales } from './types';
|
|
3
3
|
export declare function getSharedLocal(languageKey: LanguageKeys): Promise<SharedLocales>;
|
|
4
|
+
export declare function getSharedFormLocal(languageKey: LanguageKeys): Promise<SharedFormLocales>;
|
|
4
5
|
export declare function getLocaleLanguage<T extends ObjectSchema<any>>(languageKey: LanguageKeys, component: LocaleKeyEntries, schema: T): Promise<InferType<T>>;
|
|
@@ -43,6 +43,39 @@ export type SharedLocales = InferType<typeof sharedLocalesSchema>;
|
|
|
43
43
|
export type ComponentLocale<T extends AnyObjectSchema> = {
|
|
44
44
|
sharedLocales?: SharedLocales;
|
|
45
45
|
} & InferType<T>;
|
|
46
|
+
export declare const sharedFormLocalesSchema: import("yup").ObjectSchema<{
|
|
47
|
+
lang: string;
|
|
48
|
+
direction: string;
|
|
49
|
+
language: string;
|
|
50
|
+
noData: string;
|
|
51
|
+
} & {
|
|
52
|
+
errors: {
|
|
53
|
+
wildCard?: string;
|
|
54
|
+
};
|
|
55
|
+
} & {
|
|
56
|
+
close: string;
|
|
57
|
+
submit: string;
|
|
58
|
+
reCaptchaIsRequired: string;
|
|
59
|
+
noSelectOptions: string;
|
|
60
|
+
inputValueIsIncorrect: string;
|
|
61
|
+
}, import("yup").AnyObject, {
|
|
62
|
+
lang: undefined;
|
|
63
|
+
direction: undefined;
|
|
64
|
+
language: undefined;
|
|
65
|
+
noData: undefined;
|
|
66
|
+
errors: {
|
|
67
|
+
wildCard: undefined;
|
|
68
|
+
};
|
|
69
|
+
close: undefined;
|
|
70
|
+
submit: undefined;
|
|
71
|
+
reCaptchaIsRequired: undefined;
|
|
72
|
+
noSelectOptions: undefined;
|
|
73
|
+
inputValueIsIncorrect: undefined;
|
|
74
|
+
}, "">;
|
|
75
|
+
export type SharedFormLocales = InferType<typeof sharedFormLocalesSchema>;
|
|
76
|
+
export type FormLocale<T extends AnyObjectSchema> = {
|
|
77
|
+
sharedFormLocales?: SharedFormLocales;
|
|
78
|
+
} & InferType<T>;
|
|
46
79
|
export declare const ARABIC_JSON_FILE = "ar.json";
|
|
47
80
|
export declare const ENGLISH_JSON_FILE = "en.json";
|
|
48
81
|
export declare const KURDISH_JSON_FILE = "ku.json";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fetchJson<T>(url: string): Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getNestedValue(obj: any, path: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseLooseJson(loose: any): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VehicleIdentifiersDTO } from './vehicle-identifiers-dto';
|
|
2
2
|
import type { VehicleSaleInformation } from './vehicle-sale-information';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PaintThicknessInspectionDTO } from './paint-thickness-inspection-dto';
|
|
4
4
|
import type { VehicleWarrantyDTO } from './vehicle-warranty-dto';
|
|
5
5
|
import type { VehicleServiceHistoryDTO } from './vehicle-service-history-dto';
|
|
6
6
|
import type { SscDTO } from './ssc-dto';
|
|
@@ -12,7 +12,7 @@ export type VehicleLookupDTO = {
|
|
|
12
12
|
vin: string;
|
|
13
13
|
identifiers: VehicleIdentifiersDTO;
|
|
14
14
|
saleInformation: VehicleSaleInformation;
|
|
15
|
-
|
|
15
|
+
paintThicknessInspections: PaintThicknessInspectionDTO[];
|
|
16
16
|
isAuthorized: boolean;
|
|
17
17
|
warranty: VehicleWarrantyDTO;
|
|
18
18
|
nextServiceDate?: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare const localeMapper: {
|
|
2
2
|
readonly "-": readonly ["locales/"];
|
|
3
3
|
readonly errors: readonly ["locales/errors/"];
|
|
4
|
-
readonly forms: readonly ["locales/forms/", "locales/forms/contactUs/"];
|
|
4
|
+
readonly forms: readonly ["locales/forms/", "locales/forms/contactUs/", "locales/forms/demo/", "locales/forms/vehicleQuotation/"];
|
|
5
5
|
readonly "forms.contactUs": readonly ["locales/forms/contactUs/"];
|
|
6
|
+
readonly "forms.demo": readonly ["locales/forms/demo/"];
|
|
7
|
+
readonly "forms.vehicleQuotation": readonly ["locales/forms/vehicleQuotation/"];
|
|
6
8
|
readonly general: readonly ["locales/general/"];
|
|
7
9
|
readonly generalTicketTypes: readonly ["locales/generalTicketTypes/"];
|
|
8
10
|
readonly "partLookup.deadStock": readonly ["locales/partLookup/deadStock/"];
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
declare const contactUsSchema: import("yup").ObjectSchema<{
|
|
2
|
+
ticketTypes: {
|
|
3
|
+
complaint?: string;
|
|
4
|
+
generalInquiry?: string;
|
|
5
|
+
};
|
|
6
|
+
} & {
|
|
2
7
|
fullName: string;
|
|
3
8
|
fullNameIsRequired: string;
|
|
4
9
|
fullNameMinimum: string;
|
|
@@ -17,6 +22,10 @@ declare const contactUsSchema: import("yup").ObjectSchema<{
|
|
|
17
22
|
leaveUsMessage: string;
|
|
18
23
|
messageIsRequired: string;
|
|
19
24
|
}, import("yup").AnyObject, {
|
|
25
|
+
ticketTypes: {
|
|
26
|
+
complaint: undefined;
|
|
27
|
+
generalInquiry: undefined;
|
|
28
|
+
};
|
|
20
29
|
fullName: undefined;
|
|
21
30
|
fullNameIsRequired: undefined;
|
|
22
31
|
fullNameMinimum: undefined;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const demoSchema: import("yup").ObjectSchema<{
|
|
2
|
+
ticketTypes: {
|
|
3
|
+
complaint?: string;
|
|
4
|
+
generalInquiry?: string;
|
|
5
|
+
};
|
|
6
|
+
} & {
|
|
7
|
+
fullName: string;
|
|
8
|
+
fullNameIsRequired: string;
|
|
9
|
+
fullNameMinimum: string;
|
|
10
|
+
emailAddress: string;
|
|
11
|
+
emailAddressNotValid: string;
|
|
12
|
+
city: string;
|
|
13
|
+
selectCity: string;
|
|
14
|
+
cityIsRequired: string;
|
|
15
|
+
phoneNumber: string;
|
|
16
|
+
phoneNumberIsRequired: string;
|
|
17
|
+
phoneNumberFormatInvalid: string;
|
|
18
|
+
inquiryType: string;
|
|
19
|
+
selectInquiryType: string;
|
|
20
|
+
inquiryTypeIsRequired: string;
|
|
21
|
+
writeAMessage: string;
|
|
22
|
+
leaveUsMessage: string;
|
|
23
|
+
messageIsRequired: string;
|
|
24
|
+
confirmPolicy: string;
|
|
25
|
+
}, import("yup").AnyObject, {
|
|
26
|
+
ticketTypes: {
|
|
27
|
+
complaint: undefined;
|
|
28
|
+
generalInquiry: undefined;
|
|
29
|
+
};
|
|
30
|
+
fullName: undefined;
|
|
31
|
+
fullNameIsRequired: undefined;
|
|
32
|
+
fullNameMinimum: undefined;
|
|
33
|
+
emailAddress: undefined;
|
|
34
|
+
emailAddressNotValid: undefined;
|
|
35
|
+
city: undefined;
|
|
36
|
+
selectCity: undefined;
|
|
37
|
+
cityIsRequired: undefined;
|
|
38
|
+
phoneNumber: undefined;
|
|
39
|
+
phoneNumberIsRequired: undefined;
|
|
40
|
+
phoneNumberFormatInvalid: undefined;
|
|
41
|
+
inquiryType: undefined;
|
|
42
|
+
selectInquiryType: undefined;
|
|
43
|
+
inquiryTypeIsRequired: undefined;
|
|
44
|
+
writeAMessage: undefined;
|
|
45
|
+
leaveUsMessage: undefined;
|
|
46
|
+
messageIsRequired: undefined;
|
|
47
|
+
confirmPolicy: undefined;
|
|
48
|
+
}, "">;
|
|
49
|
+
export default demoSchema;
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
declare const formsSchema: import("yup").ObjectSchema<{
|
|
2
|
+
errors: {
|
|
3
|
+
wildCard?: string;
|
|
4
|
+
};
|
|
5
|
+
} & {
|
|
6
|
+
close: string;
|
|
7
|
+
submit: string;
|
|
2
8
|
reCaptchaIsRequired: string;
|
|
9
|
+
noSelectOptions: string;
|
|
3
10
|
inputValueIsIncorrect: string;
|
|
4
11
|
}, import("yup").AnyObject, {
|
|
12
|
+
errors: {
|
|
13
|
+
wildCard: undefined;
|
|
14
|
+
};
|
|
15
|
+
close: undefined;
|
|
16
|
+
submit: undefined;
|
|
5
17
|
reCaptchaIsRequired: undefined;
|
|
18
|
+
noSelectOptions: undefined;
|
|
6
19
|
inputValueIsIncorrect: undefined;
|
|
7
20
|
}, "">;
|
|
8
21
|
export default formsSchema;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const vehicleQuotationSchema: import("yup").ObjectSchema<{
|
|
2
|
+
Vehicle: string;
|
|
3
|
+
"Please select a Vehicle": string;
|
|
4
|
+
"This field is required.": string;
|
|
5
|
+
Choose: string;
|
|
6
|
+
"Contact Information": string;
|
|
7
|
+
"Full name": string;
|
|
8
|
+
"Full name is required": string;
|
|
9
|
+
"Full name minimum": string;
|
|
10
|
+
"Phone number": string;
|
|
11
|
+
"Phone number is required": string;
|
|
12
|
+
"Phone number format invalid": string;
|
|
13
|
+
Dealer: string;
|
|
14
|
+
"Select a dealer": string;
|
|
15
|
+
"Dealer is required": string;
|
|
16
|
+
"Preferred purchasing method": string;
|
|
17
|
+
"Select the purchasing method": string;
|
|
18
|
+
Cash: string;
|
|
19
|
+
Flexible: string;
|
|
20
|
+
"Your current car": string;
|
|
21
|
+
"Do you own a vehicle?": string;
|
|
22
|
+
"Please answer this field": string;
|
|
23
|
+
Yes: string;
|
|
24
|
+
No: string;
|
|
25
|
+
"Your current vehicle": string;
|
|
26
|
+
"Vehicle Model": string;
|
|
27
|
+
Others: string;
|
|
28
|
+
"Form submitted successfully.": string;
|
|
29
|
+
"Preferred contact time": string;
|
|
30
|
+
"Please select a time": string;
|
|
31
|
+
Morning: string;
|
|
32
|
+
Noon: string;
|
|
33
|
+
Afternoon: string;
|
|
34
|
+
}, import("yup").AnyObject, {
|
|
35
|
+
Vehicle: undefined;
|
|
36
|
+
"Please select a Vehicle": undefined;
|
|
37
|
+
"This field is required.": undefined;
|
|
38
|
+
Choose: undefined;
|
|
39
|
+
"Contact Information": undefined;
|
|
40
|
+
"Full name": undefined;
|
|
41
|
+
"Full name is required": undefined;
|
|
42
|
+
"Full name minimum": undefined;
|
|
43
|
+
"Phone number": undefined;
|
|
44
|
+
"Phone number is required": undefined;
|
|
45
|
+
"Phone number format invalid": undefined;
|
|
46
|
+
Dealer: undefined;
|
|
47
|
+
"Select a dealer": undefined;
|
|
48
|
+
"Dealer is required": undefined;
|
|
49
|
+
"Preferred purchasing method": undefined;
|
|
50
|
+
"Select the purchasing method": undefined;
|
|
51
|
+
Cash: undefined;
|
|
52
|
+
Flexible: undefined;
|
|
53
|
+
"Your current car": undefined;
|
|
54
|
+
"Do you own a vehicle?": undefined;
|
|
55
|
+
"Please answer this field": undefined;
|
|
56
|
+
Yes: undefined;
|
|
57
|
+
No: undefined;
|
|
58
|
+
"Your current vehicle": undefined;
|
|
59
|
+
"Vehicle Model": undefined;
|
|
60
|
+
Others: undefined;
|
|
61
|
+
"Form submitted successfully.": undefined;
|
|
62
|
+
"Preferred contact time": undefined;
|
|
63
|
+
"Please select a time": undefined;
|
|
64
|
+
Morning: undefined;
|
|
65
|
+
Noon: undefined;
|
|
66
|
+
Afternoon: undefined;
|
|
67
|
+
}, "">;
|
|
68
|
+
export default vehicleQuotationSchema;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
declare const formWrapperSchema: import("yup").ObjectSchema<{
|
|
2
2
|
contactUs: {
|
|
3
|
+
ticketTypes?: {
|
|
4
|
+
complaint?: string;
|
|
5
|
+
generalInquiry?: string;
|
|
6
|
+
};
|
|
3
7
|
fullName?: string;
|
|
4
8
|
fullNameIsRequired?: string;
|
|
5
9
|
fullNameMinimum?: string;
|
|
@@ -19,10 +23,21 @@ declare const formWrapperSchema: import("yup").ObjectSchema<{
|
|
|
19
23
|
messageIsRequired?: string;
|
|
20
24
|
};
|
|
21
25
|
} & {
|
|
26
|
+
errors: {
|
|
27
|
+
wildCard?: string;
|
|
28
|
+
};
|
|
29
|
+
} & {
|
|
30
|
+
close: string;
|
|
31
|
+
submit: string;
|
|
22
32
|
reCaptchaIsRequired: string;
|
|
33
|
+
noSelectOptions: string;
|
|
23
34
|
inputValueIsIncorrect: string;
|
|
24
35
|
}, import("yup").AnyObject, {
|
|
25
36
|
contactUs: {
|
|
37
|
+
ticketTypes: {
|
|
38
|
+
complaint: undefined;
|
|
39
|
+
generalInquiry: undefined;
|
|
40
|
+
};
|
|
26
41
|
fullName: undefined;
|
|
27
42
|
fullNameIsRequired: undefined;
|
|
28
43
|
fullNameMinimum: undefined;
|
|
@@ -41,7 +56,13 @@ declare const formWrapperSchema: import("yup").ObjectSchema<{
|
|
|
41
56
|
leaveUsMessage: undefined;
|
|
42
57
|
messageIsRequired: undefined;
|
|
43
58
|
};
|
|
59
|
+
errors: {
|
|
60
|
+
wildCard: undefined;
|
|
61
|
+
};
|
|
62
|
+
close: undefined;
|
|
63
|
+
submit: undefined;
|
|
44
64
|
reCaptchaIsRequired: undefined;
|
|
65
|
+
noSelectOptions: undefined;
|
|
45
66
|
inputValueIsIncorrect: undefined;
|
|
46
67
|
}, "">;
|
|
47
68
|
export default formWrapperSchema;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
declare const generalSchema: import("yup").ObjectSchema<{
|
|
2
2
|
close: string;
|
|
3
3
|
submit: string;
|
|
4
|
-
noSelectOptions: string;
|
|
5
4
|
formSubmittedSuccessfully: string;
|
|
6
5
|
}, import("yup").AnyObject, {
|
|
7
6
|
close: undefined;
|
|
8
7
|
submit: undefined;
|
|
9
|
-
noSelectOptions: undefined;
|
|
10
8
|
formSubmittedSuccessfully: undefined;
|
|
11
9
|
}, "">;
|
|
12
10
|
export default generalSchema;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
declare const generalTicketTypesSchema: import("yup").ObjectSchema<{
|
|
2
2
|
TLP: string;
|
|
3
|
-
Complaint: string;
|
|
4
3
|
PartInquiry: string;
|
|
5
4
|
SalesCampaign: string;
|
|
6
|
-
GeneralInquiry: string;
|
|
7
5
|
ServiceCampaign: string;
|
|
8
6
|
InstallmentPayment: string;
|
|
9
7
|
ServicePriceInquiry: string;
|
|
10
8
|
}, import("yup").AnyObject, {
|
|
11
9
|
TLP: undefined;
|
|
12
|
-
Complaint: undefined;
|
|
13
10
|
PartInquiry: undefined;
|
|
14
11
|
SalesCampaign: undefined;
|
|
15
|
-
GeneralInquiry: undefined;
|
|
16
12
|
ServiceCampaign: undefined;
|
|
17
13
|
InstallmentPayment: undefined;
|
|
18
14
|
ServicePriceInquiry: undefined;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare const ServiceHistorySchema: import("yup").ObjectSchema<{
|
|
2
2
|
noData: string;
|
|
3
|
+
dealer: string;
|
|
3
4
|
branch: string;
|
|
4
5
|
serviceType: string;
|
|
5
6
|
invoiceNumber: string;
|
|
6
|
-
dealer: string;
|
|
7
7
|
serviceHistory: string;
|
|
8
8
|
date: string;
|
|
9
9
|
odometer: string;
|
|
10
10
|
}, import("yup").AnyObject, {
|
|
11
11
|
noData: undefined;
|
|
12
|
+
dealer: undefined;
|
|
12
13
|
branch: undefined;
|
|
13
14
|
serviceType: undefined;
|
|
14
15
|
invoiceNumber: undefined;
|
|
15
|
-
dealer: undefined;
|
|
16
16
|
serviceHistory: undefined;
|
|
17
17
|
date: undefined;
|
|
18
18
|
odometer: undefined;
|
|
@@ -88,10 +88,10 @@ declare const vehicleLookupWrapperSchema: import("yup").ObjectSchema<{
|
|
|
88
88
|
};
|
|
89
89
|
serviceHistory: {
|
|
90
90
|
noData?: string;
|
|
91
|
+
dealer?: string;
|
|
91
92
|
branch?: string;
|
|
92
93
|
serviceType?: string;
|
|
93
94
|
invoiceNumber?: string;
|
|
94
|
-
dealer?: string;
|
|
95
95
|
serviceHistory?: string;
|
|
96
96
|
date?: string;
|
|
97
97
|
odometer?: string;
|
|
@@ -186,10 +186,10 @@ declare const vehicleLookupWrapperSchema: import("yup").ObjectSchema<{
|
|
|
186
186
|
};
|
|
187
187
|
serviceHistory: {
|
|
188
188
|
noData: undefined;
|
|
189
|
+
dealer: undefined;
|
|
189
190
|
branch: undefined;
|
|
190
191
|
serviceType: undefined;
|
|
191
192
|
invoiceNumber: undefined;
|
|
192
|
-
dealer: undefined;
|
|
193
193
|
serviceHistory: undefined;
|
|
194
194
|
date: undefined;
|
|
195
195
|
odometer: undefined;
|
|
@@ -846,7 +846,7 @@ export declare namespace JSXBase {
|
|
|
846
846
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
847
847
|
open?: boolean;
|
|
848
848
|
name?: string;
|
|
849
|
-
onToggle?: (event:
|
|
849
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
850
850
|
}
|
|
851
851
|
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
852
852
|
cite?: string;
|
|
@@ -1552,6 +1552,13 @@ export declare namespace JSXBase {
|
|
|
1552
1552
|
z?: number | string;
|
|
1553
1553
|
zoomAndPan?: string;
|
|
1554
1554
|
}
|
|
1555
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1556
|
+
interface ToggleEvent extends Event {
|
|
1557
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1558
|
+
readonly newState: string;
|
|
1559
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1560
|
+
readonly oldState: string;
|
|
1561
|
+
}
|
|
1555
1562
|
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1556
1563
|
slot?: string;
|
|
1557
1564
|
part?: string;
|
|
@@ -1568,6 +1575,10 @@ export declare namespace JSXBase {
|
|
|
1568
1575
|
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1569
1576
|
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1570
1577
|
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1578
|
+
onBeforeToggle?: (event: ToggleEvent) => void;
|
|
1579
|
+
onBeforeToggleCapture?: (event: ToggleEvent) => void;
|
|
1580
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
1581
|
+
onToggleCapture?: (event: ToggleEvent) => void;
|
|
1571
1582
|
onFocus?: (event: FocusEvent) => void;
|
|
1572
1583
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1573
1584
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1586,10 +1597,6 @@ export declare namespace JSXBase {
|
|
|
1586
1597
|
onSubmitCapture?: (event: Event) => void;
|
|
1587
1598
|
onInvalid?: (event: Event) => void;
|
|
1588
1599
|
onInvalidCapture?: (event: Event) => void;
|
|
1589
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1590
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1591
|
-
onToggle?: (event: Event) => void;
|
|
1592
|
-
onToggleCapture?: (event: Event) => void;
|
|
1593
1600
|
onLoad?: (event: Event) => void;
|
|
1594
1601
|
onLoadCapture?: (event: Event) => void;
|
|
1595
1602
|
onError?: (event: Event) => void;
|