adp-web-components 0.1.71 → 0.1.72
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 +8 -8
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/form-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/{form-dialog_8.cjs.entry.js → form-dialog_9.cjs.entry.js} +67 -28
- package/dist/cjs/form-input_4.cjs.entry.js +8 -10
- package/dist/cjs/form-stepper-control.cjs.entry.js +37 -0
- package/dist/cjs/form-switch.cjs.entry.js +2 -2
- package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/general-inquiry-form.cjs.entry.js +6 -6
- package/dist/cjs/{get-language-from-url-DSzX4HQt.js → get-language-from-url-BDxORAGO.js} +32 -2
- package/dist/cjs/{get-local-language-CrGMNJyx.js → get-local-language-BHgGjV5c.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/{loader-icon-BTRe-EkU.js → loader-icon-C4vy1OWp.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +4 -4
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +6 -6
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +9 -9
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +6 -6
- package/dist/cjs/{state-object-DC2JjJcf.js → state-object-Cgz5J2Ur.js} +12 -12
- package/dist/cjs/test-drive-form.cjs.entry.js +6 -6
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +23 -16
- package/dist/cjs/vehicle-lookup.cjs.entry.js +9 -8
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +5 -5
- package/dist/cjs/white-loader-55klC_ZH.js +21 -0
- package/dist/collection/collection-manifest.json +2 -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/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-step-control.js +207 -0
- package/dist/collection/components/form-elements/form-stepper-submit.js +210 -0
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-structure.js +13 -4
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
- package/dist/collection/components/form-elements/form-vin-input.js +2 -2
- package/dist/collection/components/forms/defaults/mappers.js +11 -11
- package/dist/collection/components/forms/general-inquiry.js +21 -3
- package/dist/collection/components/forms/service-booking.js +21 -3
- package/dist/collection/components/forms/ssc-lookup.js +21 -3
- package/dist/collection/components/forms/test-drive.js +21 -3
- package/dist/collection/components/forms/vehicle-quotation.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +23 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +25 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +28 -7
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +21 -0
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +23 -2
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +22 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +22 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +25 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +32 -2
- package/dist/collection/features/form-hook/render-structure.js +8 -5
- package/dist/collection/features/vehicle-lookup-component/vehicle-lookup-api-integration.js +1 -1
- 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-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.d.ts +11 -0
- package/dist/components/form-stepper-control.js +5 -0
- package/dist/components/form-stepper-submit.d.ts +11 -0
- package/dist/components/form-stepper-submit.js +5 -0
- 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-inquiry-form.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/{p-Db4o0Qpx.js → p--jlw5opz.js} +1 -1
- package/dist/components/{p-DWuvZsGI.js → p-41x6KvGr.js} +1 -1
- package/dist/components/p-6cUFg2fc.js +5 -0
- package/dist/components/{p-DWWN4ooP.js → p-7KNE1-Ri.js} +1 -1
- package/dist/components/p-ArbH-E30.js +5 -0
- package/dist/components/p-B72Jlkwt.js +5 -0
- package/dist/components/{p-B9DO0698.js → p-BGq7d7YN.js} +1 -1
- package/dist/components/p-BOVPfFLJ.js +5 -0
- package/dist/components/{p-CWVjZ_Vg.js → p-BWbMTRSS.js} +1 -1
- package/dist/components/{p-CVR4TrpD.js → p-Bb9raR6p.js} +1 -1
- package/dist/components/{p-0xcR950E.js → p-BcI0oj-h.js} +1 -1
- package/dist/components/{p-CEOpVFS4.js → p-BcmcPyEi.js} +1 -1
- package/dist/components/p-BoER4BnX.js +5 -0
- package/dist/components/{p-DpbkJnGN.js → p-BvLuD0Kf.js} +1 -1
- package/dist/components/{p-DRqirHEl.js → p-BvnhLOCg.js} +1 -1
- package/dist/components/{p-TR2srg3G.js → p-C-bOO9_K.js} +1 -1
- package/dist/components/{p-DTSxLKHX.js → p-CF8TtBlc.js} +1 -1
- package/dist/components/p-CGDBCNyc.js +5 -0
- package/dist/components/p-CjJcK_hB.js +5 -0
- package/dist/components/{p-D5TUOBeG.js → p-CrouRVEx.js} +1 -1
- package/dist/components/p-CthTWUyd.js +5 -0
- package/dist/components/p-CxmOqH7E.js +5 -0
- package/dist/components/p-DJReNlr5.js +5 -0
- package/dist/components/{p-BmyNDE_E.js → p-DOvlk8Mh.js} +1 -1
- package/dist/components/p-DRkoUgc-.js +5 -0
- package/dist/components/{p-h28ATSQb.js → p-DRypfOfG.js} +1 -1
- package/dist/components/{p-BlGKvTMT.js → p-DThFNBwH.js} +1 -1
- package/dist/components/{p-Uit3uqMQ.js → p-DWUC1sOH.js} +1 -1
- package/dist/components/p-DdT53TtQ.js +5 -0
- package/dist/components/p-Dolx9bDW.js +5 -0
- package/dist/components/{p-c05QCGD9.js → p-Donjg6jl.js} +1 -1
- package/dist/components/p-IDZdaLqR.js +5 -0
- package/dist/components/p-RsS4xQTn.js +5 -0
- package/dist/components/p-S8knoRzN.js +5 -0
- package/dist/components/p-bjIWj3pr.js +5 -0
- package/dist/components/{p-2CMkowBx.js → p-vub3oOr-.js} +1 -1
- 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-slider.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 +8 -8
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +1 -1
- package/dist/esm/form-date-picker.entry.js +1 -1
- package/dist/esm/{form-dialog_8.entry.js → form-dialog_9.entry.js} +65 -27
- package/dist/esm/form-input_4.entry.js +7 -9
- package/dist/esm/form-stepper-control.entry.js +35 -0
- package/dist/esm/form-switch.entry.js +2 -2
- package/dist/esm/form-time-picker.entry.js +6 -6
- package/dist/esm/general-inquiry-form.entry.js +6 -6
- package/dist/esm/{get-language-from-url-WEiw5juk.js → get-language-from-url-CZmiCAsd.js} +32 -2
- package/dist/esm/{get-local-language-CDa5dIz4.js → get-local-language-BF0xL8aw.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/{loader-icon-DEUB-nef.js → loader-icon-DibQkdwl.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +4 -4
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +6 -6
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +9 -9
- package/dist/esm/ssc-lookup-form.entry.js +6 -6
- package/dist/esm/{state-object-Ogxin4e1.js → state-object-5qgRIr3a.js} +12 -12
- package/dist/esm/test-drive-form.entry.js +6 -6
- package/dist/esm/vehicle-accessories_7.entry.js +23 -16
- package/dist/esm/vehicle-lookup.entry.js +9 -8
- package/dist/esm/vehicle-quotation-form.entry.js +5 -5
- package/dist/esm/white-loader-BpnYQ3A6.js +18 -0
- package/dist/shift-components/p-0de56f81.entry.js +5 -0
- package/dist/shift-components/p-35f3ee2d.entry.js +5 -0
- package/dist/shift-components/{p-b90e8298.entry.js → p-41d29e7e.entry.js} +1 -1
- package/dist/shift-components/p-42fd030e.entry.js +5 -0
- package/dist/shift-components/p-5398e145.entry.js +5 -0
- package/dist/shift-components/{p-c342b9d1.entry.js → p-56ca3239.entry.js} +1 -1
- package/dist/shift-components/{p-ba2b46c2.entry.js → p-597791f0.entry.js} +1 -1
- package/dist/shift-components/p-5e1fc9f1.entry.js +5 -0
- package/dist/shift-components/p-78478bd7.entry.js +5 -0
- package/dist/shift-components/p-96aec9cb.entry.js +5 -0
- package/dist/shift-components/{p-4238fe6e.entry.js → p-96fcaa2f.entry.js} +1 -1
- package/dist/shift-components/{p-rMLckxTx.js → p-CLiT06E6.js} +1 -1
- package/dist/shift-components/p-CyHfimfF.js +5 -0
- package/dist/shift-components/p-DcKddZmi.js +5 -0
- package/dist/shift-components/p-DzDhhYba.js +5 -0
- package/dist/shift-components/{p-CpPMv1bM.js → p-RWnI27dq.js} +1 -1
- package/dist/shift-components/{p-e962f341.entry.js → p-a0439790.entry.js} +1 -1
- package/dist/shift-components/{p-15e10305.entry.js → p-a516df62.entry.js} +1 -1
- package/dist/shift-components/{p-76fe6d18.entry.js → p-a91a7901.entry.js} +1 -1
- package/dist/shift-components/p-aba8e38a.entry.js +5 -0
- package/dist/shift-components/{p-d637c69b.entry.js → p-b1b6c27b.entry.js} +1 -1
- package/dist/shift-components/p-ba1c87fe.entry.js +5 -0
- package/dist/shift-components/{p-623d5c3d.entry.js → p-cf55db99.entry.js} +1 -1
- package/dist/shift-components/{p-b2721d2b.entry.js → p-cf92576f.entry.js} +1 -1
- package/dist/shift-components/p-dfcdbab3.entry.js +5 -0
- package/dist/shift-components/{p-66ef506a.entry.js → p-f7abcdc8.entry.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/form-elements/form-step-control.d.ts +15 -0
- package/dist/types/components/form-elements/form-stepper-submit.d.ts +15 -0
- package/dist/types/components/form-elements/form-structure.d.ts +1 -0
- package/dist/types/components/forms/defaults/mappers.d.ts +3 -0
- package/dist/types/components/forms/general-inquiry.d.ts +1 -0
- package/dist/types/components/forms/service-booking.d.ts +1 -0
- package/dist/types/components/forms/ssc-lookup.d.ts +1 -0
- package/dist/types/components/forms/test-drive.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-sale-information.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +1 -0
- package/dist/types/components/vehicle-lookup/vehicle-warranty-details.d.ts +1 -0
- package/dist/types/components.d.ts +154 -0
- package/dist/types/features/form-hook/form-hook.d.ts +3 -1
- package/dist/types/features/form-hook/interface.d.ts +11 -0
- package/dist/types/features/form-hook/render-structure.d.ts +1 -1
- package/dist/types/features/vehicle-lookup-component/interface.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/form-input-prefix-RFgXEC1Q.js +0 -18
- package/dist/components/p-B5f2dpEy.js +0 -5
- package/dist/components/p-BBYPaQBK.js +0 -5
- package/dist/components/p-BGzp0k11.js +0 -5
- package/dist/components/p-BLFDdJWV.js +0 -5
- package/dist/components/p-Bw_VvuFc.js +0 -5
- package/dist/components/p-BxuggWJc.js +0 -5
- package/dist/components/p-CDTvzwTY.js +0 -5
- package/dist/components/p-CZzCbI9_.js +0 -5
- package/dist/components/p-C_xCz80J.js +0 -5
- package/dist/components/p-CnU-FAvr.js +0 -5
- package/dist/components/p-Ctn6qJSb.js +0 -5
- package/dist/components/p-DL1ZwCZy.js +0 -5
- package/dist/components/p-DbcLXe18.js +0 -5
- package/dist/components/p-DiqiT5wD.js +0 -5
- package/dist/components/p-DyNlA71C.js +0 -5
- package/dist/esm/form-input-prefix-C48SfAOK.js +0 -16
- package/dist/shift-components/p-0e27b251.entry.js +0 -5
- package/dist/shift-components/p-2c5165b8.entry.js +0 -5
- package/dist/shift-components/p-398ca2dd.entry.js +0 -5
- package/dist/shift-components/p-4461d611.entry.js +0 -5
- package/dist/shift-components/p-6433c2ae.entry.js +0 -5
- package/dist/shift-components/p-C5yZUyec.js +0 -5
- package/dist/shift-components/p-DXZTo2xz.js +0 -5
- package/dist/shift-components/p-ad9a34aa.entry.js +0 -5
- package/dist/shift-components/p-c0758cce.entry.js +0 -5
- package/dist/shift-components/p-c2f8916b.entry.js +0 -5
- package/dist/shift-components/p-da9862ea.entry.js +0 -5
- package/dist/shift-components/p-no7IC1jn.js +0 -5
|
@@ -25,6 +25,7 @@ export class VehicleLookup {
|
|
|
25
25
|
this.activeElement = '';
|
|
26
26
|
this.baseUrl = '';
|
|
27
27
|
this.isDev = false;
|
|
28
|
+
this.disableVinValidation = false;
|
|
28
29
|
this.queryString = '';
|
|
29
30
|
this.blazorErrorStateListener = '';
|
|
30
31
|
this.blazorOnLoadingStateChange = '';
|
|
@@ -146,13 +147,13 @@ export class VehicleLookup {
|
|
|
146
147
|
if (!Object.values(componentTags).includes(this.activeElement))
|
|
147
148
|
return h("div", { class: "w-full h-[200px] text-[26px] text-red-600 flex items-center justify-center" }, "Invalid tag");
|
|
148
149
|
const componentList = {
|
|
149
|
-
'vehicle-specification': (h("vehicle-specification", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSpecification }, props[componentTags.vehicleSpecification]))),
|
|
150
|
-
'vehicle-accessories': (h("vehicle-accessories", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleAccessories }, props[componentTags.vehicleAccessories]))),
|
|
151
|
-
'vehicle-sale-information': (h("vehicle-sale-information", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSaleInformation }, props[componentTags.vehicleSaleInformation]))),
|
|
152
|
-
'vehicle-warranty-details': (h("vehicle-warranty-details", Object.assign({ coreOnly: true, "show-ssc": "true", isDev: this.isDev, "show-warranty": "true", "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleWarrantyDetails }, props[componentTags.vehicleWarrantyDetails]))),
|
|
153
|
-
'vehicle-service-history': (h("vehicle-service-history", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleServiceHistory }, props[componentTags.vehicleServiceHistory]))),
|
|
154
|
-
'vehicle-paint-thickness': (h("vehicle-paint-thickness", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehiclePaintThickness }, props[componentTags.vehiclePaintThickness]))),
|
|
155
|
-
'vehicle-claimable-items': (h("vehicle-claimable-items", Object.assign({ coreOnly: true, isDev: this.isDev, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleClaimableItems }, props[componentTags.vehicleClaimableItems]))),
|
|
150
|
+
'vehicle-specification': (h("vehicle-specification", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSpecification }, props[componentTags.vehicleSpecification]))),
|
|
151
|
+
'vehicle-accessories': (h("vehicle-accessories", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleAccessories }, props[componentTags.vehicleAccessories]))),
|
|
152
|
+
'vehicle-sale-information': (h("vehicle-sale-information", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleSaleInformation }, props[componentTags.vehicleSaleInformation]))),
|
|
153
|
+
'vehicle-warranty-details': (h("vehicle-warranty-details", Object.assign({ coreOnly: true, "show-ssc": "true", isDev: this.isDev, disableVinValidation: this.disableVinValidation, "show-warranty": "true", "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleWarrantyDetails }, props[componentTags.vehicleWarrantyDetails]))),
|
|
154
|
+
'vehicle-service-history': (h("vehicle-service-history", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleServiceHistory }, props[componentTags.vehicleServiceHistory]))),
|
|
155
|
+
'vehicle-paint-thickness': (h("vehicle-paint-thickness", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehiclePaintThickness }, props[componentTags.vehiclePaintThickness]))),
|
|
156
|
+
'vehicle-claimable-items': (h("vehicle-claimable-items", Object.assign({ coreOnly: true, isDev: this.isDev, disableVinValidation: this.disableVinValidation, "base-url": this.baseUrl, language: this.language, "query-string": this.queryString, id: componentTags.vehicleClaimableItems }, props[componentTags.vehicleClaimableItems]))),
|
|
156
157
|
};
|
|
157
158
|
return (h(Host, null, h(VehicleInfoLayout, { isError: this.isError, header: this.currentVin, isLoading: this.isLoading, direction: this.locale.direction, errorMessage: this.errorMessage || this.locale.errors.wildCard }, h("shift-tab-content", { components: componentList, activeComponent: this.activeElement }))));
|
|
158
159
|
}
|
|
@@ -262,6 +263,26 @@ export class VehicleLookup {
|
|
|
262
263
|
"reflect": false,
|
|
263
264
|
"defaultValue": "false"
|
|
264
265
|
},
|
|
266
|
+
"disableVinValidation": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"attribute": "disable-vin-validation",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "boolean",
|
|
272
|
+
"resolved": "boolean",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": ""
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"defaultValue": "false"
|
|
285
|
+
},
|
|
265
286
|
"queryString": {
|
|
266
287
|
"type": "string",
|
|
267
288
|
"attribute": "query-string",
|
|
@@ -23,6 +23,7 @@ export class VehiclePaintThickness {
|
|
|
23
23
|
// #endregion
|
|
24
24
|
// #region Image Viewer Logic
|
|
25
25
|
this.expandedImage = '';
|
|
26
|
+
this.disableVinValidation = false;
|
|
26
27
|
this.headers = {};
|
|
27
28
|
this.queryString = '';
|
|
28
29
|
this.isError = false;
|
|
@@ -180,6 +181,26 @@ export class VehiclePaintThickness {
|
|
|
180
181
|
"setter": false,
|
|
181
182
|
"reflect": false
|
|
182
183
|
},
|
|
184
|
+
"disableVinValidation": {
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"attribute": "disable-vin-validation",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "boolean",
|
|
190
|
+
"resolved": "boolean",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": ""
|
|
198
|
+
},
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"defaultValue": "false"
|
|
203
|
+
},
|
|
183
204
|
"baseUrl": {
|
|
184
205
|
"type": "string",
|
|
185
206
|
"attribute": "base-url",
|
|
@@ -22,6 +22,7 @@ export class VehicleSaleInformation {
|
|
|
22
22
|
// #endregion
|
|
23
23
|
// #region Vehicle info layout prop
|
|
24
24
|
this.coreOnly = false;
|
|
25
|
+
this.disableVinValidation = false;
|
|
25
26
|
this.headers = {};
|
|
26
27
|
this.queryString = '';
|
|
27
28
|
this.isError = false;
|
|
@@ -148,11 +149,11 @@ export class VehicleSaleInformation {
|
|
|
148
149
|
];
|
|
149
150
|
const filteredFields = FIELDS.filter(field => !hiddenFields.includes(field.fieldName));
|
|
150
151
|
const filteredEndCustomerFields = END_CUSTOMER_FIELDS.filter(field => !hiddenFields.includes(field.fieldName));
|
|
151
|
-
return (h(Host, { key: '
|
|
152
|
+
return (h(Host, { key: '1792db8359fb482cd9402307c8ea3b965e967c2b' }, h(VehicleInfoLayout, { key: '1301f626e8b221fd189ef9d5872a7d26fe6aa08b', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_m = this.vehicleLookup) === null || _m === void 0 ? void 0 : _m.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("flexible-container", { key: '29d448a1fde8622d58e38b94b84805a63bffbbd8' }, h("flexible-container", { key: '0e06fbb1d419efcf5ae4fc1dcd6d61a5b13cdd0f', classes: cn({ loading: this.isLoading || this.isError || !this.vehicleLookup }), isOpened: !!this.vehicleLookup && !this.isError }, h("div", { key: '5b1aabd4b1fb05f29b80b24266d3f7c1e848c441', class: "p-[16px] mx-auto !pb-0 max-w-[520px]" }, h("div", { key: 'd87d0bdcd14e050c115c5cfd4a750e5ff99e23ed', class: cn('relative shift-skeleton !rounded-[12px] shift-card', { 'shift-card-warning': !hasEndCustomer }) }, h("div", { key: 'aded893bc8dcce34b667c1335b8aaf056baffaa9', class: cn('absolute flex size-full left-0 top-0 px-[12px] items-center justify-center p-[12px] transition-opacity', !hasEndCustomer ? 'opacity-100' : 'opacity-0 pointer-events-none select-none') }, h("div", { key: '310f7fef4b58444796d45599239672a4a447efeb', class: "w-full max-w-[460px] rounded-[14px] px-[14px] py-[12px]" }, h("div", { key: '78c8c795a11789be2c2e92c8f37ed233d95eb466', class: "size-full flex flex-col justify-start gap-[12px] items-center" }, h("span", { key: 'd360df4b6b9c1d6b30d01b610ad8a1346858d42a', class: "shift-card-icon", "aria-hidden": "true" }, h(TriangleAlertIcon, { key: '178100a9bba082d07062f807cb64d54838907b86' })), h("p", { key: 'b62d2ae4246c8028b33769a9ad88f1586d2b5c9e', class: "mt-[4px] text-[13.5px] text-center text-amber-900/90 leading-[1.35]" }, texts['Vehicle has no end customer.'] || '')))), h("div", { key: '2b0d7a818bbad3dc39a4a1ab827eaa8a35cf7d55', class: cn('transition-opacity', !hasEndCustomer ? 'opacity-0 pointer-events-none select-none' : 'opacity-100') }, h("h2", { key: '5381cb5ed01ce112fe7c2dc2903452db0d01d98a', class: "shift-card-header" }, texts.customerInformation), h("div", { key: 'af03fffa1d7d00cff4cacca30e056957679151a5', class: "flex flex-col gap-[2px]" }, filteredEndCustomerFields.map(field => {
|
|
152
153
|
const value = field.value || '';
|
|
153
154
|
const Icon = field.Icon;
|
|
154
155
|
return (h("div", { class: "flex gap-[12px] items-start" }, h("span", { class: "shift-card-icon", "aria-hidden": "true" }, h(Icon, null)), h("div", { class: "flex flex-col translate-y-[-4px]" }, h("div", { class: "shift-card-seconary-text" }, field.title, ":"), h("div", { class: cn('shift-card-primary-text translate-y-[-4px]', { 'shift-card-empty-text': !value }) }, value || '—'))));
|
|
155
|
-
})))))), h("div", { key: '
|
|
156
|
+
})))))), h("div", { key: '6a4ba29d1514264830536770e55f79dbc1df0b46', class: "flex p-[16px] [&>div]:grow overflow-auto gap-[16px] items-stretch justify-center md:justify-between flex-wrap" }, filteredFields.map(field => (h(MaterialCard, { title: field.title, desc: field.value, minWidth: "250px" }))))))));
|
|
156
157
|
}
|
|
157
158
|
static get is() { return "vehicle-sale-information"; }
|
|
158
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -233,6 +234,26 @@ export class VehicleSaleInformation {
|
|
|
233
234
|
"setter": false,
|
|
234
235
|
"reflect": false
|
|
235
236
|
},
|
|
237
|
+
"disableVinValidation": {
|
|
238
|
+
"type": "boolean",
|
|
239
|
+
"attribute": "disable-vin-validation",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "boolean",
|
|
243
|
+
"resolved": "boolean",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": false,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": ""
|
|
251
|
+
},
|
|
252
|
+
"getter": false,
|
|
253
|
+
"setter": false,
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"defaultValue": "false"
|
|
256
|
+
},
|
|
236
257
|
"baseUrl": {
|
|
237
258
|
"type": "string",
|
|
238
259
|
"attribute": "base-url",
|
|
@@ -17,6 +17,7 @@ export class VehicleServiceHistory {
|
|
|
17
17
|
// #endregion
|
|
18
18
|
// #region Vehicle info layout prop
|
|
19
19
|
this.coreOnly = false;
|
|
20
|
+
this.disableVinValidation = false;
|
|
20
21
|
this.headers = {};
|
|
21
22
|
this.queryString = '';
|
|
22
23
|
this.isError = false;
|
|
@@ -79,7 +80,7 @@ export class VehicleServiceHistory {
|
|
|
79
80
|
label: this.locale.odometer,
|
|
80
81
|
},
|
|
81
82
|
];
|
|
82
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '0dacd0b8cc5b61bf80d8a7b0dd06462cd4659a4e' }, h(VehicleInfoLayout, { key: '62e2df88b68e958173d133eb5d4fa04430dafde4', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: 'a7fe94878f5423aa06b91af9da9a8ea771c03bfd', class: "overflow-x-auto" }, h("information-table", { key: '90f0dec8face331a94eaee75259086da583bab8f', expandUsingEntireRow: true, allowMultipleExpanded: true, headers: tableHeaders, isLoading: this.isLoading, rows: ((_b = this.vehicleLookup) === null || _b === void 0 ? void 0 : _b.serviceHistory) || [], subRowRenderer: (row) => h(ServiceHistorySubRow, { row: row, locale: this.locale }) })))));
|
|
83
84
|
}
|
|
84
85
|
static get is() { return "vehicle-service-history"; }
|
|
85
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,6 +161,26 @@ export class VehicleServiceHistory {
|
|
|
160
161
|
"setter": false,
|
|
161
162
|
"reflect": false
|
|
162
163
|
},
|
|
164
|
+
"disableVinValidation": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"attribute": "disable-vin-validation",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "boolean",
|
|
170
|
+
"resolved": "boolean",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": ""
|
|
178
|
+
},
|
|
179
|
+
"getter": false,
|
|
180
|
+
"setter": false,
|
|
181
|
+
"reflect": false,
|
|
182
|
+
"defaultValue": "false"
|
|
183
|
+
},
|
|
163
184
|
"baseUrl": {
|
|
164
185
|
"type": "string",
|
|
165
186
|
"attribute": "base-url",
|
|
@@ -17,6 +17,7 @@ export class VehicleSpecification {
|
|
|
17
17
|
// #endregion
|
|
18
18
|
// #region Vehicle info layout prop
|
|
19
19
|
this.coreOnly = false;
|
|
20
|
+
this.disableVinValidation = false;
|
|
20
21
|
this.headers = {};
|
|
21
22
|
this.queryString = '';
|
|
22
23
|
this.isError = false;
|
|
@@ -61,7 +62,7 @@ export class VehicleSpecification {
|
|
|
61
62
|
catch (error) {
|
|
62
63
|
productionDate = null;
|
|
63
64
|
}
|
|
64
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '8c5dca562c2826e1248edebdc97fdb95dc854385' }, h(VehicleInfoLayout, { key: 'f00362dbe4928f50a3e17c453ecd202caffb6cc6', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_e = this.vehicleLookup) === null || _e === void 0 ? void 0 : _e.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("flexible-container", { key: '3d8656a2a321fc59b178e1c55819da23a0eeab2e' }, h("div", { key: '886ca9ac98d86c73b6e75bd291ca2b1b4febaf2b', class: "flex p-[16px] [&>div]:grow overflow-auto gap-[16px] items-stretch justify-center md:justify-between flex-wrap" }, h(MaterialCard, { key: '0774eda8e1134c45e978571f5f2f48c5a64ecf55', class: "grow", title: texts === null || texts === void 0 ? void 0 : texts.model, minWidth: "300px" }, h(MaterialCardChildren, { key: '4ab9ea61f992251f494f19f0b57c36c6e952f56d', class: "text-center", hidden: !((_h = (_g = (_f = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _f === void 0 ? void 0 : _f.vehicleVariantInfo) === null || _g === void 0 ? void 0 : _g.modelCode) === null || _h === void 0 ? void 0 : _h.trim()) && !((_l = (_k = (_j = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _j === void 0 ? void 0 : _j.vehicleSpecification) === null || _k === void 0 ? void 0 : _k.modelDescription) === null || _l === void 0 ? void 0 : _l.trim()) }, ((_p = (_o = (_m = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _m === void 0 ? void 0 : _m.vehicleVariantInfo) === null || _o === void 0 ? void 0 : _o.modelCode) === null || _p === void 0 ? void 0 : _p.trim()) || '', " ", h("br", { key: 'fdec8723785d02d85b07f77b09fa2090ed93743a', class: "my-2" }), ((_s = (_r = (_q = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _q === void 0 ? void 0 : _q.vehicleSpecification) === null || _r === void 0 ? void 0 : _r.modelDescription) === null || _s === void 0 ? void 0 : _s.trim()) || '')), h(MaterialCard, { key: '0d4e8247c8cbb757cbaee3d1eda901453be18743', class: "grow", title: texts === null || texts === void 0 ? void 0 : texts.variant, minWidth: "300px" }, h(MaterialCardChildren, { key: 'f4b55cb0081b938a6d8b8c6366aec8554dca9d13', class: "text-center", hidden: !((_v = (_u = (_t = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _t === void 0 ? void 0 : _t.identifiers) === null || _u === void 0 ? void 0 : _u.variant) === null || _v === void 0 ? void 0 : _v.trim()) && !((_y = (_x = (_w = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _w === void 0 ? void 0 : _w.vehicleSpecification) === null || _x === void 0 ? void 0 : _x.variantDescription) === null || _y === void 0 ? void 0 : _y.trim()) }, ((_1 = (_0 = (_z = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _z === void 0 ? void 0 : _z.identifiers) === null || _0 === void 0 ? void 0 : _0.variant) === null || _1 === void 0 ? void 0 : _1.trim()) || '', " ", h("br", { key: '54268c1e00d19d5fec31da7f973012d12f87b4c8' }), ((_4 = (_3 = (_2 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _2 === void 0 ? void 0 : _2.vehicleSpecification) === null || _3 === void 0 ? void 0 : _3.variantDescription) === null || _4 === void 0 ? void 0 : _4.trim()) || '')), h(MaterialCard, { key: '0d051dc747e0e209ad8391620854ebcc35b83c38', desc: ((_7 = (_6 = (_5 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _5 === void 0 ? void 0 : _5.identifiers) === null || _6 === void 0 ? void 0 : _6.katashiki) === null || _7 === void 0 ? void 0 : _7.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.katashiki, minWidth: "250px" }), h(MaterialCard, { key: '8610bdade3fca840b1206325ef3327fa6c0512e6', desc: ((_11 = (_10 = (_9 = (_8 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _8 === void 0 ? void 0 : _8.vehicleVariantInfo) === null || _9 === void 0 ? void 0 : _9.modelYear) === null || _10 === void 0 ? void 0 : _10.toString()) === null || _11 === void 0 ? void 0 : _11.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.modelYear, minWidth: "250px" }), h(MaterialCard, { key: 'c7ee11bde32c6a40a52da1534061532fa1baa1d9', desc: !!productionDate ? productionDate : '', title: texts === null || texts === void 0 ? void 0 : texts.productionDate, minWidth: "250px" }), h(MaterialCard, { key: '071d67873ababef3da11e032c08301463698279d', desc: ((_14 = (_13 = (_12 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _12 === void 0 ? void 0 : _12.vehicleVariantInfo) === null || _13 === void 0 ? void 0 : _13.sfx) === null || _14 === void 0 ? void 0 : _14.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.sfx, minWidth: "250px" }))))));
|
|
65
66
|
}
|
|
66
67
|
static get is() { return "vehicle-specification"; }
|
|
67
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -142,6 +143,26 @@ export class VehicleSpecification {
|
|
|
142
143
|
"setter": false,
|
|
143
144
|
"reflect": false
|
|
144
145
|
},
|
|
146
|
+
"disableVinValidation": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"attribute": "disable-vin-validation",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "boolean",
|
|
152
|
+
"resolved": "boolean",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": false,
|
|
164
|
+
"defaultValue": "false"
|
|
165
|
+
},
|
|
145
166
|
"baseUrl": {
|
|
146
167
|
"type": "string",
|
|
147
168
|
"attribute": "base-url",
|
|
@@ -20,6 +20,7 @@ export class VehicleWarrantyDetails {
|
|
|
20
20
|
// #endregion
|
|
21
21
|
// #region Vehicle info layout prop
|
|
22
22
|
this.coreOnly = false;
|
|
23
|
+
this.disableVinValidation = false;
|
|
23
24
|
this.headers = {};
|
|
24
25
|
this.queryString = '';
|
|
25
26
|
this.isError = false;
|
|
@@ -236,11 +237,11 @@ export class VehicleWarrantyDetails {
|
|
|
236
237
|
: '...')),
|
|
237
238
|
}));
|
|
238
239
|
const templateRow = {
|
|
239
|
-
sscTableOPCode: () => h("div", { key: '
|
|
240
|
-
sscTablePartNumber: () => h("div", { key: '
|
|
241
|
-
sscTableRepairStatus: () => h("div", { key: '
|
|
240
|
+
sscTableOPCode: () => h("div", { key: '0f594a93bb57e9701d3c9ef48196b3b180521453', class: "h-[25px]" }),
|
|
241
|
+
sscTablePartNumber: () => h("div", { key: '0f693418636f5fbb43cb82b457e777aae8ede256', class: "h-[25px]" }),
|
|
242
|
+
sscTableRepairStatus: () => h("div", { key: 'f912fd275f189281e386db08df2c1df5ff089e2f', class: "h-[25px]" }),
|
|
242
243
|
};
|
|
243
|
-
return (h(Host, { key: '
|
|
244
|
+
return (h(Host, { key: '5c203dec4d8ff899e39a16d5dcdadffa82378e3f' }, h(VehicleInfoLayout, { key: '994a309000e795347320a196958a262f5c8f89ac', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_c = this.vehicleLookup) === null || _c === void 0 ? void 0 : _c.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: '71232fa6456af6736b0583d25130ca385e8e6b05', class: "p-[16px]" }, this.showWarranty && (h(CardsContainer, { key: '884fc20a832ad641771b3204c0a8db956dc23d91', isLoading: this.isLoading, warrantyLocale: this.locale, vehicleInformation: this.vehicleLookup, isAuthorized: (_d = this.vehicleLookup) === null || _d === void 0 ? void 0 : _d.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName })), h("div", { key: '7cc300642d687eba3b7da4c179c53d72b452d38b', class: "h-[8px]" }), h("flexible-container", { key: '5f805d3fa83482026c9a186d4bc0144512d244d5', isOpened: this.showRecaptcha, classes: cn('w-fit mx-auto shift-skeleton', { loading: !this.showRecaptcha || this.isLoading }) }, h("div", { key: '7d3709ddf528445a104d6c62336884155b9b5b32', style: { height: 'auto' }, class: "recaptcha-container" }, h("div", { key: 'c0e543408d7ec003b94e028d509de24d751b6640', ref: el => (this.recaptchaPlaceholderRef = el), style: { minWidth: '302px', minHeight: '76px' } })), this.recaptchaRes && (h("div", { key: '91725072934ace20e725406f1e25e09ec6c128ec', class: cn('recaptcha-response', ((_e = this.recaptchaRes) === null || _e === void 0 ? void 0 : _e.status) === 'recallExists' ? 'reject-card ' : (((_f = this.recaptchaRes) === null || _f === void 0 ? void 0 : _f.status) === 'noRecall' ? 'success-card ' : 'warning-card ')) }, this.locale[(_g = this.recaptchaRes) === null || _g === void 0 ? void 0 : _g.status])))), h("flexible-container", { key: 'c5fbfdc87a45a37fef26584dd3f9ea106b065e37', isOpened: this.checkingUnauthorizedSSC, classes: "w-fit mx-auto" }, h("div", { key: 'c7cfcbeabde7fb7ba660ba44516651e9a120da64', class: "pt-[16px]" }, h("div", { key: '4c587133bba7c13b017e094ac00e5e3bb27583b1', class: "flex shift-skeleton flex-col gap-[8px]" }, h("strong", { key: 'f9753621e9518c8703f1256969ed003f03dd3bf9' }, this.locale.checkingTMC), h("div", { key: '93b39075a681369e91e9dc092613b1b3e2828479', class: "relative pt-[40px]" }, h("loading-spinner", { key: 'eaba439ebdb903576867bb4ef63f21a09581573e', isLoading: this.checkingUnauthorizedSSC }))))), h("div", { key: '9189f503b3505956059b2e0ee35f9cdcf05c8597', class: "mt-[32px] mx-auto w-fit max-w-full" }, h("div", { key: 'f65bd794f153ed5180a40e3d649660741d72062d', class: "bg-[#f6f6f6] h-[50px] flex items-center justify-center px-[16px] font-bold text-[18px]" }, this.locale.sscCampings), h("div", { key: '6c2af31696b01ed7e480398f5a7448448f179b74', class: "overflow-x-auto" }, h("information-table", { key: '6d1b59d89c46da69d0f6a57649bed703ff534e35', isLoading: this.isLoading, templateRow: templateRow, rows: rows, headers: tableHeaders }))))));
|
|
244
245
|
}
|
|
245
246
|
static get is() { return "vehicle-warranty-details"; }
|
|
246
247
|
static get encapsulation() { return "shadow"; }
|
|
@@ -321,6 +322,26 @@ export class VehicleWarrantyDetails {
|
|
|
321
322
|
"setter": false,
|
|
322
323
|
"reflect": false
|
|
323
324
|
},
|
|
325
|
+
"disableVinValidation": {
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"attribute": "disable-vin-validation",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "boolean",
|
|
331
|
+
"resolved": "boolean",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"getter": false,
|
|
341
|
+
"setter": false,
|
|
342
|
+
"reflect": false,
|
|
343
|
+
"defaultValue": "false"
|
|
344
|
+
},
|
|
324
345
|
"baseUrl": {
|
|
325
346
|
"type": "string",
|
|
326
347
|
"attribute": "base-url",
|
|
@@ -340,7 +340,7 @@ export class VinExtractor {
|
|
|
340
340
|
}
|
|
341
341
|
render() {
|
|
342
342
|
const ariaExpanded = this.isOpen && this.isCameraReady && (this.useOcr || this.readSticker);
|
|
343
|
-
return (h(Host, { key: '
|
|
343
|
+
return (h(Host, { key: '8e0ac1852ef140bf42a0c9008e15b38d1ff5f671' }, h("slot", { key: '3fa514b82115e1f03449cad9fbe47ed7fdd1da38' }), h("input", Object.assign({ key: 'f0ef76659c92d576cbeb9f91f2ef9d38b3ee098f', class: "vin-extractor-input", type: "file", accept: "image/*", "aria-label": "Upload VIN image" }, (this.captureEnvironment ? { capture: 'environment' } : {}), { hidden: true })), h("canvas", { key: 'ab42f7fc3f0aff61a675531b837b7025bf96dd5e', class: "video-canvas hidden", "aria-hidden": "true" }), !this.uploaderButtonId && (h("div", { key: 'a8448310522d71652b2bf891fb2dffa7fc0f65ad', onClick: () => (this.isOpen = false), role: "dialog", "aria-modal": ariaExpanded.toString(), "aria-label": this.title || 'VIN Scanner', "aria-hidden": (!ariaExpanded).toString(), class: "vin-extractor-background md:transition-all md:duration-300 fixed flex items-center justify-center w-[100dvw] h-[100dvh] top-0 left-0 z-[9999]" }, h("div", { key: '1e7d92f653a543b732e2bd3bb378fc3c5f44d193', role: "document", onClick: e => e.stopPropagation(), "aria-expanded": ariaExpanded.toString(), onAnimationEnd: () => (this.isAnimating = false), onAnimationStart: () => (this.isAnimating = true), class: cn('vin-extractor-container md:w-[600px] md:rounded-lg md:overflow-hidden opacity-0 md:h-auto w-full h-full relative transition-all duration-500', this.containerAnimation) }, h("div", { key: '6fcb3bbe32232eb5d382cf70019fd22ac259d902', class: "vin-extractor-heading items-center md:py-[8px] w-full md:!opacity-100 md:!translate-x-0 p-[16px] md:bg-white bg-black/30 shadow-md z-10 md:relative absolute top-0 left-0 flex justify-between" }, this.videoInputs.length > 1 ? (h("button", { type: "button", "aria-label": "Switch camera", onClick: this.switchCamera, class: "size-[32px] md:border-none md:bg-white md:hover:bg-slate-100 bg-slate-100 rounded-lg p-1 hover:text-slate-700 border transition-colors duration-300 hover:bg-slate-300 border-slate-600 text-slate-600 hover:border-slate-700" }, h("svg", { width: "24", height: "24", fill: "none", "stroke-width": "2", "aria-hidden": "true", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-full transition-all duration-300", style: { rotate: `${this.switchRotateDegree}deg` } }, h("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }), h("path", { d: "M21 3v5h-5" }), h("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }), h("path", { d: "M8 16H3v5" })))) : (h("div", { class: "size-8", "aria-hidden": "true" })), h("h1", { key: 'f15dd6acd28472f9d97a242108d61f607b44a3ec', class: "text-center text-[18px] md:text-[24px] md:text-black text-slate-100 form-input-label", part: "form-input-label" }, this.title), h("button", { key: '7c07b017de9f030b50f37baa0b7da2c6f91bc2f5', type: "button", "aria-label": "Close scanner", onClick: () => (this.isOpen = false), class: "size-[32px] md:border-none md:bg-white md:hover:bg-slate-100 bg-slate-100 rounded-lg p-1 hover:text-slate-700 border transition-colors duration-300 hover:bg-slate-300 border-slate-600 text-slate-600 hover:border-slate-700" }, h("svg", { key: '09f866a96566ea356a0e77091d8b33b0e7ab5104', fill: "none", "stroke-width": "2", class: "size-full", "aria-hidden": "true", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2c10a91fa915223e94251bc6b93631d850534686', d: "M18 6 6 18" }), h("path", { key: 'edbaa67fee5656f99a05a351d861043e276cb494', d: "m6 6 12 12" })))), this.manualCapture && (h("button", { key: '3b20be21b7dbefe10b387020aed6f24e8b870b74', type: "button", disabled: this.manualCaptureLoading, onClick: this.captureFrame.bind(this, true), "aria-label": this.manualCaptureLoading ? 'Capturing...' : 'Capture VIN', class: "absolute disabled:bg-white/75 outline-none cursor-pointer left-1/2 -translate-x-1/2 flex justify-center items-center h-[60px] py-[10px] w-[100px] rounded-full shadow-lg border border-slate-500 text-slate-500 z-10 bg-white bottom-4" }, this.manualCaptureLoading ? (h("svg", { fill: "none", "stroke-width": "2", "aria-hidden": "true", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-full animate-spin animate-spin-v" }, h("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }))) : (h("svg", { fill: "none", "stroke-width": "2", class: "size-full", "aria-hidden": "true", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z" }), h("circle", { cx: "12", cy: "13", r: "3" }))))), h("video", { key: '54a946768def81ca87cf9116355c9ba9b2f4fcfa', autoPlay: true, id: "video", playsInline: true, "aria-label": "Camera preview", class: "video-player aspect-video bg-black min-w-full min-h-full object-cover object-center" }))))));
|
|
344
344
|
}
|
|
345
345
|
static get is() { return "vin-extractor"; }
|
|
346
346
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,6 +7,7 @@ export class FormHook {
|
|
|
7
7
|
constructor(context, schemaObject, formStateOptions) {
|
|
8
8
|
this.haltValidation = false;
|
|
9
9
|
this.isSubmitted = false;
|
|
10
|
+
this.stepFormValues = {};
|
|
10
11
|
this.watchers = {};
|
|
11
12
|
this.cachedValues = {};
|
|
12
13
|
this.subscribers = [];
|
|
@@ -41,6 +42,23 @@ export class FormHook {
|
|
|
41
42
|
});
|
|
42
43
|
this.subscribers = this.subscribers.filter(({ name }) => name !== formName);
|
|
43
44
|
};
|
|
45
|
+
this.getStepLabels = (language = 'en', selectedStep) => {
|
|
46
|
+
var _a, _b, _c, _d;
|
|
47
|
+
if (!selectedStep)
|
|
48
|
+
selectedStep = (_a = this.formStructure) === null || _a === void 0 ? void 0 : _a.currentStep;
|
|
49
|
+
let step = {
|
|
50
|
+
back: '',
|
|
51
|
+
title: '',
|
|
52
|
+
stepCell: '',
|
|
53
|
+
stepTitle: '',
|
|
54
|
+
submitButton: '',
|
|
55
|
+
};
|
|
56
|
+
try {
|
|
57
|
+
step = (_d = (_c = (_b = this.context.structure) === null || _b === void 0 ? void 0 : _b.steps) === null || _c === void 0 ? void 0 : _c[selectedStep - 1]) === null || _d === void 0 ? void 0 : _d[language];
|
|
58
|
+
}
|
|
59
|
+
catch (error) { }
|
|
60
|
+
return step;
|
|
61
|
+
};
|
|
44
62
|
this.addWatcher = (key, callback) => {
|
|
45
63
|
if (this.watchers[key])
|
|
46
64
|
return;
|
|
@@ -112,12 +130,15 @@ export class FormHook {
|
|
|
112
130
|
}
|
|
113
131
|
};
|
|
114
132
|
this.hasItemInStructure = (target, structure = this.context.structure) => {
|
|
133
|
+
var _a;
|
|
115
134
|
if (!structure)
|
|
116
135
|
return true;
|
|
117
136
|
if (typeof structure === 'string') {
|
|
118
137
|
return structure === target;
|
|
119
138
|
}
|
|
120
|
-
const { tag, name, children, isHidden } = structure;
|
|
139
|
+
const { tag, name, children, isHidden, step } = structure;
|
|
140
|
+
if (!!step && step != ((_a = this.formStructure) === null || _a === void 0 ? void 0 : _a.currentStep))
|
|
141
|
+
return false;
|
|
121
142
|
if ((tag === target || name === target) && !isHidden)
|
|
122
143
|
return true;
|
|
123
144
|
if (Array.isArray(children)) {
|
|
@@ -126,6 +147,7 @@ export class FormHook {
|
|
|
126
147
|
return false;
|
|
127
148
|
};
|
|
128
149
|
this.submitForm = async () => {
|
|
150
|
+
var _a, _b, _c, _d, _e, _f;
|
|
129
151
|
try {
|
|
130
152
|
this.isSubmitted = true;
|
|
131
153
|
this.context.isLoading = true;
|
|
@@ -140,7 +162,15 @@ export class FormHook {
|
|
|
140
162
|
});
|
|
141
163
|
const excludedFields = Object.keys(this.schemaObject.fields).filter(key => !this.hasItemInStructure(key));
|
|
142
164
|
const values = await this.schemaObject.omit(excludedFields).validate(formObject, { abortEarly: false, context: this.requiredContext });
|
|
143
|
-
|
|
165
|
+
if ((_b = (_a = this.context) === null || _a === void 0 ? void 0 : _a.structure) === null || _b === void 0 ? void 0 : _b.steps) {
|
|
166
|
+
this.stepFormValues = Object.assign(Object.assign({}, this === null || this === void 0 ? void 0 : this.stepFormValues), values);
|
|
167
|
+
if (((_e = (_d = (_c = this.context) === null || _c === void 0 ? void 0 : _c.structure) === null || _d === void 0 ? void 0 : _d.steps) === null || _e === void 0 ? void 0 : _e.length) === ((_f = this.formStructure) === null || _f === void 0 ? void 0 : _f.currentStep) - 1)
|
|
168
|
+
await this.context.formSubmit(this.stepFormValues);
|
|
169
|
+
else
|
|
170
|
+
this.formStructure.currentStep += 1;
|
|
171
|
+
}
|
|
172
|
+
else
|
|
173
|
+
await this.context.formSubmit(values);
|
|
144
174
|
}
|
|
145
175
|
catch (error) {
|
|
146
176
|
if (error.name === 'ValidationError') {
|
|
@@ -16,7 +16,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
16
16
|
};
|
|
17
17
|
import { h } from "@stencil/core";
|
|
18
18
|
import cn from "../../global/lib/cn";
|
|
19
|
-
export function renderStructure(structure, elementMapper, generaProps, fields) {
|
|
19
|
+
export function renderStructure(structure, elementMapper, generaProps, fields, currentStep) {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
if (!!(structure === null || structure === void 0 ? void 0 : structure.step) && (structure === null || structure === void 0 ? void 0 : structure.step) !== currentStep)
|
|
22
|
+
return false;
|
|
20
23
|
if (typeof structure === 'string') {
|
|
21
24
|
if (typeof structure === 'string' && structure && elementMapper[structure]) {
|
|
22
25
|
generaProps.props['name'] = structure;
|
|
@@ -25,14 +28,14 @@ export function renderStructure(structure, elementMapper, generaProps, fields) {
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
else {
|
|
28
|
-
const { tag, name, children, data } = structure, props = __rest(structure, ["tag", "name", "children", "data"]);
|
|
31
|
+
const { tag, name, children, data, type } = structure, props = __rest(structure, ["tag", "name", "children", "data", "type"]);
|
|
29
32
|
if (tag) {
|
|
30
33
|
const Tag = tag;
|
|
31
|
-
return (h(Tag, Object.assign({}, props, { part: cn(props === null || props === void 0 ? void 0 : props.id, props === null || props === void 0 ? void 0 : props.class, `element-${tag}`, tag) }), Array.isArray(children) && children.map(child => renderStructure(child, elementMapper, Object.assign({}, generaProps), fields)), typeof children === 'object' && !Array.isArray(children) && children !== null && (children === null || children === void 0 ? void 0 : children[generaProps === null || generaProps === void 0 ? void 0 : generaProps.language])));
|
|
34
|
+
return (h(Tag, Object.assign({}, props, { part: cn(props === null || props === void 0 ? void 0 : props.id, props === null || props === void 0 ? void 0 : props.class, `element-${tag}`, tag) }), Array.isArray(children) && children.map(child => renderStructure(child, elementMapper, Object.assign({}, generaProps), fields, currentStep)), typeof children === 'object' && !Array.isArray(children) && children !== null && (children === null || children === void 0 ? void 0 : children[generaProps === null || generaProps === void 0 ? void 0 : generaProps.language])));
|
|
32
35
|
}
|
|
33
36
|
const newProps = Object.assign(Object.assign({}, generaProps), { props: Object.assign(Object.assign(Object.assign({}, props), (fields && fields[name] ? fields[name] : {})), { name, wrapperId: props === null || props === void 0 ? void 0 : props.id, form: generaProps.form, wrapperClass: props === null || props === void 0 ? void 0 : props.class, isLoading: generaProps.isLoading }) });
|
|
34
|
-
if (typeof name === 'string' && name && elementMapper[name])
|
|
35
|
-
return elementMapper[name](newProps);
|
|
37
|
+
if (((typeof name === 'string' && name) || (typeof type === 'string' && type)) && elementMapper[type || name])
|
|
38
|
+
return elementMapper[type || name](newProps);
|
|
36
39
|
}
|
|
37
40
|
return false;
|
|
38
41
|
}
|
|
@@ -31,7 +31,7 @@ export const setVehicleLookupData = async (context, newData, headers = {}, { bef
|
|
|
31
31
|
context.vehicleLookup = undefined;
|
|
32
32
|
throw new Error('vinNumberRequired');
|
|
33
33
|
}
|
|
34
|
-
if (!validateVin(vin) && !(context === null || context === void 0 ? void 0 : context.isDev))
|
|
34
|
+
if (!validateVin(vin) && !(context === null || context === void 0 ? void 0 : context.isDev) && !(context === null || context === void 0 ? void 0 : context.disableVinValidation))
|
|
35
35
|
throw new Error('invalidVin');
|
|
36
36
|
const vehicleResponse = isVinRequest ? await getVehicleLookup(context, { scopedTimeoutRef, vin }, headers) : newData;
|
|
37
37
|
if (context.networkTimeoutRef === scopedTimeoutRef) {
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{D as o,d as
|
|
5
|
+
import{D as o,d as r}from"./p-vub3oOr-.js";const s=o,p=r;export{s as DeadStockLookup,p as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{D as o,d as s}from"./p-
|
|
5
|
+
import{D as o,d as s}from"./p-DThFNBwH.js";const p=o,r=s;export{p as DistributorLookup,r as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{F as o,d as s}from"./p-
|
|
5
|
+
import{F as o,d as s}from"./p-BGq7d7YN.js";const p=o,r=s;export{p as FlexibleContainer,r as defineCustomElement}
|