adp-web-components 0.1.84 → 0.1.86
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 +7 -7
- 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 +5 -5
- package/dist/cjs/form-dialog_13.cjs.entry.js +4568 -40
- package/dist/cjs/{form-input-CfVsbpFP.js → form-input-cvIkC0L1.js} +1 -1
- package/dist/cjs/form-input_5.cjs.entry.js +356 -0
- package/dist/cjs/form-switch.cjs.entry.js +4 -4
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/functions-D5J5cdK2.js +298 -0
- package/dist/cjs/general-form.cjs.entry.js +19 -20
- package/dist/cjs/general-inquiry-form.cjs.entry.js +19 -20
- package/dist/cjs/{get-language-from-url-DoohcPbK.js → get-language-from-url-Ct6kvnEu.js} +8 -5
- package/dist/cjs/{get-local-language-zK9ue0lN.js → get-local-language-CWfRQqOw.js} +1 -1
- package/dist/cjs/{get-mock-files-DRVrAMed.js → get-mock-files-DG4Nk29D.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +3 -3
- package/dist/cjs/{state-object-CX8v4Go5.js → mappers-C82gH1dw.js} +1 -11
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +19 -20
- package/dist/cjs/shift-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-slider.cjs.entry.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +2 -2
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +12 -12
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +19 -20
- package/dist/cjs/test-drive-form.cjs.entry.js +19 -20
- package/dist/cjs/{validation-BAHdEc4w.js → validation-jJwLyk27.js} +1 -7
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +19 -19
- package/dist/cjs/vehicle-lookup.cjs.entry.js +4 -4
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +17 -27
- package/dist/cjs/{white-loader-kSznMo_u.js → white-loader-D6sR0fOI.js} +3 -1
- package/dist/collection/collection-manifest.json +1 -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/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-checkbox.js +1 -1
- package/dist/collection/components/components/shift-select.css +1 -0
- package/dist/collection/components/components/shift-select.js +568 -0
- package/dist/collection/components/components/shift-slider.js +1 -1
- package/dist/collection/components/components/shift-switch.js +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-input-prefix.js +3 -1
- package/dist/collection/components/form-elements/form-checkbox.js +1 -1
- package/dist/collection/components/form-elements/form-date-picker-legacy.js +4 -4
- package/dist/collection/components/form-elements/form-dialog.js +3 -3
- package/dist/collection/components/form-elements/form-file.js +2 -2
- 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 +130 -30
- package/dist/collection/components/form-elements/form-picker-input.js +2 -2
- package/dist/collection/components/form-elements/form-select.js +12 -73
- 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-structure.js +1 -1
- 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 +1 -7
- package/dist/collection/components/forms/defaults/style.css +1 -1
- package/dist/collection/components/forms/defaults/validation.js +1 -7
- package/dist/collection/components/forms/general-form.js +4 -6
- package/dist/collection/components/forms/general-inquiry.js +4 -6
- package/dist/collection/components/forms/service-booking.js +4 -6
- package/dist/collection/components/forms/ssc-lookup.js +4 -6
- package/dist/collection/components/forms/test-drive.js +4 -6
- package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +1 -8
- package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation/validations.js +0 -5
- package/dist/collection/components/forms/vehicle-quotation.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +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.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- 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 +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +2 -2
- 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 +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +8 -5
- package/dist/collection/features/form-hook/functions.js +0 -1
- package/dist/collection/features/form-hook/phone-validator.js +1 -41
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/general-inquiry-form.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/manufacturer-part-lookup.js +1 -1
- package/dist/components/p-04wNXJ_q.js +5 -0
- package/dist/components/p-4n_cgPjf.js +5 -0
- package/dist/components/p-8XSbLgc1.js +5 -0
- package/dist/components/p-B8X9IaVO.js +5 -0
- package/dist/components/p-BDgNqOMe.js +5 -0
- package/dist/components/p-BFxBL1n-.js +5 -0
- package/dist/components/p-BUnCuQVo.js +5 -0
- package/dist/components/p-BV90NnNh.js +5 -0
- package/dist/components/p-BY5Ji84D.js +5 -0
- package/dist/components/{p-CNzel4L2.js → p-BgttkHzs.js} +1 -1
- package/dist/components/p-Bk0lC2Er.js +5 -0
- package/dist/components/p-C2TMzq3P.js +5 -0
- package/dist/components/p-C5obPa8c.js +5 -0
- package/dist/components/{p-BgC7TfjM.js → p-CAvWNw8_.js} +1 -1
- package/dist/components/{p-B9DO0698.js → p-CHjkTvcK.js} +1 -1
- package/dist/components/p-CJbV4CRN.js +5 -0
- package/dist/components/p-CKWUV8sc.js +5 -0
- package/dist/components/p-CO0Weo2C.js +5 -0
- package/dist/components/p-CQ1pe5_N.js +5 -0
- package/dist/components/p-CSltLdDZ.js +5 -0
- package/dist/components/p-CVP-Kfuq.js +5 -0
- package/dist/components/p-CX0MCoJm.js +5 -0
- package/dist/components/p-CZPaKPho.js +5 -0
- package/dist/components/p-CxL9hBt2.js +5 -0
- package/dist/components/p-D1sSrUE7.js +5 -0
- package/dist/components/p-D5Vp16LE.js +5 -0
- package/dist/components/p-DAOx9Qnb.js +5 -0
- package/dist/components/p-DEniRp-Y.js +5 -0
- package/dist/components/p-DNT9N8sa.js +5 -0
- package/dist/components/p-DdJblbUj.js +5 -0
- package/dist/components/{p-BV8ZkPEF.js → p-DqaISuxu.js} +1 -1
- package/dist/components/p-E1MRBxpY.js +5 -0
- package/dist/components/p-EVz2SQxD.js +5 -0
- package/dist/components/p-KlUIwQJ_.js +5 -0
- package/dist/components/p-NC__PzEk.js +5 -0
- package/dist/components/p-OMoAsmX4.js +5 -0
- package/dist/components/p-R9s5HIai.js +5 -0
- package/dist/components/p-Rs-gwVEC.js +5 -0
- package/dist/components/p-Toqpa7YK.js +5 -0
- package/dist/components/p-ZTF1sGMh.js +5 -0
- package/dist/components/p-ajNVZbZb.js +5 -0
- package/dist/components/p-lM8Wndby.js +5 -0
- package/dist/components/p-nzjwgyi2.js +5 -0
- package/dist/components/p-rgNGWak-.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-select.d.ts +11 -0
- package/dist/components/shift-select.js +5 -0
- 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 +7 -7
- 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 +5 -5
- package/dist/esm/form-dialog_13.entry.js +4569 -41
- package/dist/esm/{form-input-BZhw7_xV.js → form-input-Dcr-Pd8b.js} +1 -1
- package/dist/esm/form-input_5.entry.js +350 -0
- package/dist/esm/form-switch.entry.js +4 -4
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/functions-DtSiZ2w7.js +287 -0
- package/dist/esm/general-form.entry.js +10 -11
- package/dist/esm/general-inquiry-form.entry.js +10 -11
- package/dist/esm/{get-language-from-url-X9X1Ax8Z.js → get-language-from-url-C-Rb5RW0.js} +8 -5
- package/dist/esm/{get-local-language-CDB3-v5P.js → get-local-language-TggqJhkD.js} +1 -1
- package/dist/esm/{get-mock-files-CaGwKZM4.js → get-mock-files-CqnoWX3h.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +3 -3
- package/dist/esm/{state-object-YMqxT3DF.js → mappers-Bk5UgY3t.js} +2 -11
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +10 -11
- package/dist/esm/shift-checkbox.entry.js +2 -2
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-slider.entry.js +1 -1
- package/dist/esm/shift-switch.entry.js +2 -2
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +12 -12
- package/dist/esm/ssc-lookup-form.entry.js +10 -11
- package/dist/esm/test-drive-form.entry.js +10 -11
- package/dist/esm/{validation-DI1MnYKr.js → validation-oieVWBn1.js} +1 -7
- package/dist/esm/vehicle-accessories_7.entry.js +19 -19
- package/dist/esm/vehicle-lookup.entry.js +4 -4
- package/dist/esm/vehicle-quotation-form.entry.js +8 -18
- package/dist/esm/{white-loader-CG4JPVdv.js → white-loader-DG6pqLQw.js} +3 -1
- package/dist/mocks/generated/broker-dealer/part-lookup.json +127 -0
- package/dist/mocks/generated/broker-dealer/vehicle-lookup.json +275 -0
- package/dist/shift-components/p-0f6a4a2c.entry.js +5 -0
- package/dist/shift-components/p-1c18a25e.entry.js +5 -0
- package/dist/shift-components/p-29cb1041.entry.js +5 -0
- package/dist/shift-components/p-3123d3fd.entry.js +5 -0
- package/dist/shift-components/p-411f777f.entry.js +5 -0
- package/dist/shift-components/{p-3d1e5f22.entry.js → p-5ce126f7.entry.js} +1 -1
- package/dist/shift-components/p-5db9ae4b.entry.js +5 -0
- package/dist/shift-components/p-800d78fe.entry.js +5 -0
- package/dist/shift-components/p-8882ac0f.entry.js +5 -0
- package/dist/shift-components/{p-BJJ8dVwO.js → p-B8VkFyfR.js} +1 -1
- package/dist/shift-components/p-BuurMgGN.js +5 -0
- package/dist/shift-components/{p-Be3Jd2wI.js → p-Bvk_2TgY.js} +1 -1
- package/dist/shift-components/p-DQUCHNJ-.js +5 -0
- package/dist/shift-components/p-DlOwT0yg.js +5 -0
- package/dist/shift-components/{p-DT8y6uYH.js → p-EubhneKo.js} +1 -1
- package/dist/shift-components/p-YbxvNbN5.js +5 -0
- package/dist/shift-components/p-a4abc248.entry.js +5 -0
- package/dist/shift-components/p-a9f6c258.entry.js +5 -0
- package/dist/shift-components/p-adb7282c.entry.js +5 -0
- package/dist/shift-components/p-b6518621.entry.js +5 -0
- package/dist/shift-components/p-ca014643.entry.js +5 -0
- package/dist/shift-components/p-cc033f27.entry.js +5 -0
- package/dist/shift-components/p-ccb80e4d.entry.js +5 -0
- package/dist/shift-components/p-cf23180a.entry.js +5 -0
- package/dist/shift-components/p-d6619b20.entry.js +5 -0
- package/dist/shift-components/p-d6dfb9bd.entry.js +5 -0
- package/dist/shift-components/p-df8df3ab.entry.js +5 -0
- package/dist/shift-components/{p-76fe6d18.entry.js → p-e225d38c.entry.js} +1 -1
- package/dist/shift-components/p-e3252106.entry.js +5 -0
- package/dist/shift-components/p-f6b6e66e.entry.js +5 -0
- package/dist/shift-components/p-f6f9027f.entry.js +5 -0
- package/dist/shift-components/p-veklgezh.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/shift-select.d.ts +41 -0
- package/dist/types/components/form-elements/form-phone-number.d.ts +19 -3
- package/dist/types/components/form-elements/form-select.d.ts +3 -9
- package/dist/types/components/forms/defaults/mappers.d.ts +1 -1
- package/dist/types/components/forms/defaults/validation.d.ts +1 -3
- package/dist/types/components/forms/vehicle-quotation/element-mapper.d.ts +2 -3
- package/dist/types/components/forms/vehicle-quotation/validations.d.ts +3 -3
- package/dist/types/components.d.ts +123 -4
- package/dist/types/features/form-hook/interface.d.ts +1 -0
- package/dist/types/features/form-hook/phone-validator.d.ts +1 -2
- package/package.json +1 -1
- package/dist/cjs/form-input_4.cjs.entry.js +0 -319
- package/dist/cjs/phone-validator-Bi9emAzR.js +0 -4791
- package/dist/collection/components/forms/defaults/state-object.js +0 -5
- package/dist/components/p-3U517ERo.js +0 -5
- package/dist/components/p-9SYAxR5D.js +0 -5
- package/dist/components/p-B0MhGaG1.js +0 -5
- package/dist/components/p-B9pETmLI.js +0 -5
- package/dist/components/p-BJu-gvWT.js +0 -5
- package/dist/components/p-BSODiZ3e.js +0 -5
- package/dist/components/p-BYlmz8H8.js +0 -5
- package/dist/components/p-BaXSdgrz.js +0 -5
- package/dist/components/p-BbYlJcJL.js +0 -5
- package/dist/components/p-BbZZSs2z.js +0 -5
- package/dist/components/p-Be6aBWtX.js +0 -5
- package/dist/components/p-Bru6COhI.js +0 -5
- package/dist/components/p-BxeKiQ5h.js +0 -5
- package/dist/components/p-C0-JyFe2.js +0 -5
- package/dist/components/p-CDynFOo9.js +0 -5
- package/dist/components/p-CRB1QtlE.js +0 -5
- package/dist/components/p-CRuaQMX0.js +0 -5
- package/dist/components/p-CnzWHmTp.js +0 -5
- package/dist/components/p-Cr6RxvjN.js +0 -5
- package/dist/components/p-CvwANsMG.js +0 -5
- package/dist/components/p-D6G60Qle.js +0 -5
- package/dist/components/p-DNwpXqOm.js +0 -5
- package/dist/components/p-DYdL_Qjt.js +0 -5
- package/dist/components/p-D_aPhtf6.js +0 -5
- package/dist/components/p-DaR1VHdR.js +0 -5
- package/dist/components/p-DqPjMHKd.js +0 -5
- package/dist/components/p-DrRm2GeC.js +0 -5
- package/dist/components/p-JZv7UYk_.js +0 -5
- package/dist/components/p-MW_RDlUT.js +0 -5
- package/dist/components/p-Sl_Dlac0.js +0 -5
- package/dist/components/p-V4RS2bVl.js +0 -5
- package/dist/components/p-d53FlScY.js +0 -5
- package/dist/components/p-jy9nZx0Y.js +0 -5
- package/dist/components/p-l6FwCuo4.js +0 -5
- package/dist/components/p-nSzOFNku.js +0 -5
- package/dist/components/p-okkx_Dxf.js +0 -5
- package/dist/components/p-pgyBiEEk.js +0 -5
- package/dist/components/p-uERtY6Fc.js +0 -5
- package/dist/components/p-zPFPWP-C.js +0 -5
- package/dist/esm/form-input_4.entry.js +0 -314
- package/dist/esm/phone-validator-BtVkeXq8.js +0 -4779
- package/dist/shift-components/p-11d17669.entry.js +0 -5
- package/dist/shift-components/p-19ed338d.entry.js +0 -5
- package/dist/shift-components/p-3058431e.entry.js +0 -5
- package/dist/shift-components/p-342d0174.entry.js +0 -5
- package/dist/shift-components/p-3c9fc400.entry.js +0 -5
- package/dist/shift-components/p-3e83654e.entry.js +0 -5
- package/dist/shift-components/p-54f0635f.entry.js +0 -5
- package/dist/shift-components/p-58b67b80.entry.js +0 -5
- package/dist/shift-components/p-60e77a30.entry.js +0 -5
- package/dist/shift-components/p-676836bc.entry.js +0 -5
- package/dist/shift-components/p-73d4e1db.entry.js +0 -5
- package/dist/shift-components/p-78ebd5aa.entry.js +0 -5
- package/dist/shift-components/p-7PtHUjhE.js +0 -5
- package/dist/shift-components/p-7fd11913.entry.js +0 -5
- package/dist/shift-components/p-B1_PA5hq.js +0 -5
- package/dist/shift-components/p-CIoBnd96.js +0 -5
- package/dist/shift-components/p-CN6bh2lr.js +0 -5
- package/dist/shift-components/p-Cm_2J53u.js +0 -5
- package/dist/shift-components/p-b7ccfb5d.entry.js +0 -5
- package/dist/shift-components/p-c35b5c7e.entry.js +0 -5
- package/dist/shift-components/p-cdea798f.entry.js +0 -5
- package/dist/shift-components/p-e1994b6f.entry.js +0 -5
- package/dist/shift-components/p-e2ced3b0.entry.js +0 -5
- package/dist/shift-components/p-e42c0a58.entry.js +0 -5
- package/dist/shift-components/p-f4dbe8aa.entry.js +0 -5
- package/dist/shift-components/p-fb4a3ba5.entry.js +0 -5
- package/dist/shift-components/p-fe87b5dc.entry.js +0 -5
- package/dist/types/components/forms/defaults/state-object.d.ts +0 -6
|
@@ -5,24 +5,23 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
var index = require('./index-CmK48vN3.js');
|
|
8
|
-
var
|
|
8
|
+
var functions = require('./functions-D5J5cdK2.js');
|
|
9
9
|
var cn = require('./cn-BHnqYtun.js');
|
|
10
|
-
var validation$1 = require('./validation-
|
|
10
|
+
var validation$1 = require('./validation-jJwLyk27.js');
|
|
11
11
|
var types = require('./types-DV_cOCRi.js');
|
|
12
|
-
var getLanguageFromUrl = require('./get-language-from-url-
|
|
12
|
+
var getLanguageFromUrl = require('./get-language-from-url-Ct6kvnEu.js');
|
|
13
13
|
var loaderIcon = require('./loader-icon-j5dMQ4bN.js');
|
|
14
|
-
var
|
|
15
|
-
require('./get-local-language-
|
|
14
|
+
var mappers = require('./mappers-C82gH1dw.js');
|
|
15
|
+
require('./get-local-language-CWfRQqOw.js');
|
|
16
16
|
require('./validate-vin-CJDIXpJO.js');
|
|
17
17
|
require('./calendar-days-icon-C2lFWgOC.js');
|
|
18
18
|
require('./decode-time-offset-CY6JVxX3.js');
|
|
19
19
|
require('./get-nested-value-lW6t7V4I.js');
|
|
20
20
|
|
|
21
|
-
const styleCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.flex{display:flex}.grid{display:grid}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:host{all:initial!important;display:block;font-family:inherit!important}@keyframes form-loading-spin{to{transform:rotate(1turn)}}.form-loader-container .img{animation:form-loading-spin 2s linear infinite;height:32px;width:32px}*{-webkit-user-select:none;-moz-user-select:none;user-select:none}#vehicle-wrapper{display:flex;flex-direction:column}@media (min-width:640px){#vehicle-wrapper{align-items:center;display:grid;gap:24px;grid-template-columns:repeat(2,minmax(0,1fr))}}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.h-full{height:100%}.min-h-\\[150px\\]{min-height:150px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.\\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\!duration-0{transition-duration:0s!important}.\\!duration-500{transition-duration:.5s!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.bottom-4{bottom:1rem}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[9999\\]{z-index:9999}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.size-8{height:2rem;width:2rem}.size-\\[32px\\]{height:32px;width:32px}.size-full{height:100%;width:100%}.h-\\[100dvh\\]{height:100dvh}.h-\\[60px\\]{height:60px}.min-h-full{min-height:100%}.w-\\[100dvw\\]{width:100dvw}.w-\\[100px\\]{width:100px}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-spin{animation:spin 1s linear infinite}.
|
|
21
|
+
const styleCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.flex{display:flex}.grid{display:grid}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:host{all:initial!important;display:block;font-family:inherit!important}@keyframes form-loading-spin{to{transform:rotate(1turn)}}.form-loader-container .img{animation:form-loading-spin 2s linear infinite;height:32px;width:32px}*{-webkit-user-select:none;-moz-user-select:none;user-select:none}#vehicle-wrapper{display:flex;flex-direction:column}@media (min-width:640px){#vehicle-wrapper{align-items:center;display:grid;gap:24px;grid-template-columns:repeat(2,minmax(0,1fr))}}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.h-full{height:100%}.min-h-\\[150px\\]{min-height:150px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.\\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\!duration-0{transition-duration:0s!important}.\\!duration-500{transition-duration:.5s!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.cursor-pointer{cursor:pointer}.fixed{position:fixed}.bottom-4{bottom:1rem}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[9999\\]{z-index:9999}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.size-8{height:2rem;width:2rem}.size-\\[32px\\]{height:32px;width:32px}.size-full{height:100%;width:100%}.h-\\[100dvh\\]{height:100dvh}.h-\\[60px\\]{height:60px}.min-h-full{min-height:100%}.w-\\[100dvw\\]{width:100dvw}.w-\\[100px\\]{width:100px}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-spin{animation:spin 1s linear infinite}.justify-between{justify-content:space-between}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-slate-500{--tw-border-opacity:1;border-color:rgb(100 116 139/var(--tw-border-opacity,1))}.border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/30{background-color:rgba(0,0,0,.3)}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.object-cover{object-fit:cover}.object-center{object-position:center}.p-1{padding:.25rem}.p-\\[16px\\]{padding:16px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.hover\\:border-slate-700:hover{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.hover\\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.hover\\:text-slate-700:hover{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.disabled\\:bg-white\\/75:disabled{background-color:hsla(0,0%,100%,.75)}@media (min-width:768px){.md\\:relative{position:relative}.md\\:h-auto{height:auto}.md\\:w-\\[600px\\]{width:600px}.md\\:\\!translate-x-0{--tw-translate-x:0px!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.md\\:overflow-hidden{overflow:hidden}.md\\:rounded-lg{border-radius:.5rem}.md\\:border-none{border-style:none}.md\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.md\\:py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.md\\:text-\\[24px\\]{font-size:24px}.md\\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.md\\:\\!opacity-100{opacity:1!important}.md\\:transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.md\\:duration-300{transition-duration:.3s}.md\\:hover\\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}}";
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
const elementMapper = stateObject$1.getFormMappers(stateObject);
|
|
23
|
+
const validation = validation$1.getFormValidations();
|
|
24
|
+
const elementMapper = mappers.getFormMappers();
|
|
26
25
|
const TestDriveForm = class {
|
|
27
26
|
constructor(hostRef) {
|
|
28
27
|
index.registerInstance(this, hostRef);
|
|
@@ -33,44 +32,44 @@ const TestDriveForm = class {
|
|
|
33
32
|
this.isMobileForm = false;
|
|
34
33
|
}
|
|
35
34
|
async changeLanguage(newLanguage) {
|
|
36
|
-
await
|
|
35
|
+
await functions.functionHooks.formLanguageChange(this, newLanguage);
|
|
37
36
|
}
|
|
38
37
|
setIsLoading(isLoading) {
|
|
39
|
-
|
|
38
|
+
functions.functionHooks.formLoadingHandler(this, isLoading);
|
|
40
39
|
}
|
|
41
40
|
setErrorCallback(error) {
|
|
42
|
-
|
|
41
|
+
functions.functionHooks.formErrorHandler(this, error);
|
|
43
42
|
}
|
|
44
43
|
setSuccessCallback(data) {
|
|
45
|
-
|
|
44
|
+
functions.functionHooks.formSuccessHandler(this, data);
|
|
46
45
|
}
|
|
47
46
|
async componentWillLoad() {
|
|
48
47
|
if (!this.language)
|
|
49
48
|
this.language = getLanguageFromUrl.getLanguageFromUrl();
|
|
50
49
|
}
|
|
51
50
|
async formSubmit(formValues) {
|
|
52
|
-
await
|
|
51
|
+
await functions.functionHooks.onFormSubmit({ context: this, formValues });
|
|
53
52
|
}
|
|
54
53
|
// #endregion
|
|
55
54
|
// #region Component Logic
|
|
56
55
|
async componentDidLoad() {
|
|
57
|
-
await
|
|
56
|
+
await functions.functionHooks.formDidLoadHandler(this, validation);
|
|
58
57
|
}
|
|
59
58
|
async getForm() {
|
|
60
|
-
return await
|
|
59
|
+
return await functions.functionHooks.formGetFormHandler(this);
|
|
61
60
|
}
|
|
62
61
|
async submit() {
|
|
63
|
-
await
|
|
62
|
+
await functions.functionHooks.handleFormSubmit(this);
|
|
64
63
|
}
|
|
65
64
|
async structureChanged(isRendered) {
|
|
66
|
-
await
|
|
65
|
+
await functions.functionHooks.formStructureRenderedHandler(this, isRendered);
|
|
67
66
|
}
|
|
68
67
|
// #endregion
|
|
69
68
|
render() {
|
|
70
69
|
var _a, _b;
|
|
71
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: '30f38d5e5bddd165f40545860734738f29ae1d0f', translate: "no" }, index.h("div", { key: '614c1d4901cf2713bbcb745540678f951732e43a', part: cn.cn('shift-form', (_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme, this.theme) }, index.h("div", { key: '025dd58198caf0413d5fb894a337b8a4bba8d488', part: "form-container", class: "relative min-h-[150px]" }, index.h("div", { key: '7a34aed2fe944c4582a8817294ec456a239ea539', part: "form-loader-container", class: cn.cn('form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500', {
|
|
72
71
|
'opacity-0': this.structureRendered,
|
|
73
|
-
}) }, index.h(loaderIcon.LoaderIcon, { key: '
|
|
72
|
+
}) }, index.h(loaderIcon.LoaderIcon, { key: 'd6656d517dde4a6d278cbfdb17f79e398450c986', part: "form-loader-icon", class: "img" })), index.h("flexible-container", { key: '7aba61eac290029de1221f1981c5ee1be8da0da6', onlyForMounting: true, isOpened: this.structureRendered }, !!this.form && (index.h("form-structure", { key: 'e08bb193bccced62c8115df52da2ab630bf97d2c', form: this.form, fields: this.fields, formId: this.formId, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: elementMapper, successMessage: this.locale['Form submitted successfully.'] || 'Form submitted successfully.' }, index.h("slot", { key: 'ca9ea2eaf549a67e5c64b224e0ddd97ecf6057dc' }))))))));
|
|
74
73
|
}
|
|
75
74
|
get el() { return index.getElement(this); }
|
|
76
75
|
static get watchers() { return {
|
|
@@ -16,7 +16,7 @@ const placeholder = (name) => `${name}-placeholder`;
|
|
|
16
16
|
const meta = (name) => ({ label: label(name), placeholder: placeholder(name) });
|
|
17
17
|
const condition = (name) => `$${name}Required`;
|
|
18
18
|
const y = { label, format, require: require$1, condition, placeholder, meta, size, max };
|
|
19
|
-
const getFormValidations = (
|
|
19
|
+
const getFormValidations = (extraFields = {}) => {
|
|
20
20
|
return types.create$3(Object.assign({ name: types.create$6()
|
|
21
21
|
.meta(meta('name'))
|
|
22
22
|
.when(condition('name'), {
|
|
@@ -48,12 +48,6 @@ const getFormValidations = (stateObject, extraFields = {}) => {
|
|
|
48
48
|
is: true,
|
|
49
49
|
otherwise: schema => schema.optional(),
|
|
50
50
|
then: schema => schema.required(require$1('vin')).test(format('vin'), format('vin'), a => validateVin.validateVin(a === null || a === void 0 ? void 0 : a.toUpperCase())),
|
|
51
|
-
}), phone: types.create$6()
|
|
52
|
-
.meta(meta('phone'))
|
|
53
|
-
.when(condition('phone'), {
|
|
54
|
-
is: true,
|
|
55
|
-
otherwise: schema => schema.optional(),
|
|
56
|
-
then: schema => schema.required(require$1('phone')).test(format('phone'), format('phone'), () => { var _a; return (_a = stateObject === null || stateObject === void 0 ? void 0 : stateObject.phoneValidator) === null || _a === void 0 ? void 0 : _a.geIsValidPhoneNumber(); }),
|
|
57
51
|
}), vehicle: types.create$6()
|
|
58
52
|
.meta(meta('vehicle'))
|
|
59
53
|
.when(y.condition('vehicle'), {
|