adp-web-components 0.0.90 → 0.0.92
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/contact-us-form.cjs.entry.js +4 -4
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +282 -325
- package/dist/cjs/empty-table-icon-PdTX6gpI.js +16 -0
- package/dist/cjs/flexible-container.cjs.entry.js +43 -46
- package/dist/cjs/form-dialog_8.cjs.entry.js +12 -12
- package/dist/cjs/{get-local-language-XsAJEAsO.js → get-local-language-Ch7javM0.js} +38 -38
- package/dist/cjs/information-table.cjs.entry.js +6 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/material-card-Cd0L1Get.js +43 -0
- package/dist/cjs/part-lookup.cjs.entry.js +32 -11
- package/dist/cjs/print-icon-C4ASnhAO.js +106 -0
- package/dist/cjs/service-booking-form.cjs.entry.js +4 -4
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +42 -0
- package/dist/cjs/shift-tabs_2.cjs.entry.js +277 -234
- package/dist/cjs/{vehicle-info-layout-BSAeLW7e.js → type-BG4jir8r.js} +45 -9
- package/dist/cjs/{type-BAD2dFzP.js → type-BpPQE0Ww.js} +1 -1
- package/dist/cjs/{type-DT5vXP0E.js → type-DB__lcA9.js} +1 -1
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +1115 -0
- package/dist/cjs/vehicle-info-layout-Dp2Po_uc.js +16 -0
- package/dist/cjs/vehicle-lookup.cjs.entry.js +19 -16
- package/dist/cjs/vin-extractor.cjs.entry.js +3 -3
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/flexible-container.js +34 -36
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/information-table.js +45 -2
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/material-card.js +2 -2
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tab-content.js +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +6 -6
- package/dist/collection/components/form-elements/form-input.js +4 -4
- package/dist/collection/components/form-elements/form-select.js +6 -6
- package/dist/collection/components/form-elements/form-structure-error.js +4 -4
- package/dist/collection/components/form-elements/form-structure.js +3 -3
- package/dist/collection/components/form-elements/form-submit.js +5 -5
- package/dist/collection/components/form-elements/form-text-area.js +4 -4
- package/dist/collection/components/forms/contact-us/element-mapper.js +1 -1
- package/dist/collection/components/forms/contact-us-form.js +4 -4
- package/dist/collection/components/forms/service-booking/element-mapper.js +1 -1
- package/dist/collection/components/forms/service-booking-form.js +4 -4
- package/dist/collection/components/part-lookup/components/dead-stock-item.js +15 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +153 -175
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +192 -224
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +165 -224
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.js +127 -57
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +1 -1
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
- package/dist/collection/components/vehicle-lookup/components/claimable-item-popover.js +73 -0
- package/dist/collection/components/vehicle-lookup/components/claimable-item.js +27 -0
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +108 -187
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +369 -507
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +271 -345
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +59 -56
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +106 -192
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -3
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +106 -176
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -3
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +104 -168
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -3
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +198 -274
- package/dist/collection/components/vin-extractor/vin-extractor.js +13 -4
- package/dist/collection/{global/lib/image-expansion.js → features/image-viewer/image-viewer-logic.js} +15 -11
- package/dist/collection/features/image-viewer/image-viewer.js +9 -0
- package/dist/collection/features/image-viewer/index.js +7 -0
- package/dist/collection/features/image-viewer/interface.js +1 -0
- package/dist/collection/{global/lib → features/multi-lingual}/get-local-language.js +1 -5
- package/dist/collection/features/multi-lingual/index.js +7 -0
- package/dist/collection/features/multi-lingual/interface.js +1 -0
- package/dist/collection/{global/types/locale.js → features/multi-lingual/types.js} +6 -0
- package/dist/collection/features/part-lookup-components/index.js +7 -0
- package/dist/collection/features/part-lookup-components/interface.js +1 -0
- package/dist/collection/features/part-lookup-components/part-lookup-api-integration.js +84 -0
- package/dist/collection/features/part-lookup-components/types.js +1 -0
- package/dist/collection/features/vehicle-info-layout/index.js +6 -0
- package/dist/collection/features/vehicle-info-layout/interface.js +1 -0
- package/dist/collection/{components/components → features/vehicle-info-layout}/vehicle-info-layout.js +1 -1
- package/dist/collection/features/vehicle-lookup-component/index.js +7 -0
- package/dist/collection/features/vehicle-lookup-component/interface.js +1 -0
- package/dist/collection/features/vehicle-lookup-component/types.js +17 -0
- package/dist/collection/features/vehicle-lookup-component/vehicle-lookup-api-integration.js +87 -0
- package/dist/collection/global/assets/activation-icon.js +6 -0
- package/dist/collection/global/assets/add-icon.js +6 -0
- package/dist/collection/global/assets/alert-icon.js +6 -0
- package/dist/collection/global/assets/arrow-up-icon.js +6 -0
- package/dist/collection/global/assets/attach-icon.js +6 -0
- package/dist/collection/global/assets/check-icon.js +6 -0
- package/dist/collection/global/assets/empty-table-icon.js +6 -0
- package/dist/collection/global/assets/form-submit-svg.js +6 -0
- package/dist/collection/global/assets/print-icon.js +6 -0
- package/dist/collection/global/assets/question-mark.js +6 -0
- package/dist/collection/global/assets/triangle-icon.js +6 -0
- package/dist/collection/global/lib/parents-with-tag.js +22 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-item-warning.js +1 -0
- package/dist/collection/locales/vehicleLookup/claimableItems/type.js +4 -6
- package/dist/collection/templates/part-lookup/mock-data.js +85 -2
- package/dist/collection/templates/vehicle-lookup/mock-data.js +39 -0
- package/dist/components/contact-us-form.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-dialog.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-select.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-text-area.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-4O0gfpsm.js +5 -0
- package/dist/components/p-8hUwcL5D.js +5 -0
- package/dist/components/p-9BQXTBdQ.js +5 -0
- package/dist/components/p-B1fdQNyr.js +5 -0
- package/dist/components/p-B2EAhWbD.js +5 -0
- package/dist/components/p-B9RSECb0.js +5 -0
- package/dist/components/p-BDCoLRVe.js +5 -0
- package/dist/components/p-BG8YXzND.js +5 -0
- package/dist/components/p-BNhO80aE.js +5 -0
- package/dist/components/p-Be1vlY8X.js +5 -0
- package/dist/components/p-BhjL0HMA.js +5 -0
- package/dist/components/p-C4zpDhOi.js +5 -0
- package/dist/components/p-CHE0gMDU.js +5 -0
- package/dist/components/p-CMweaUDZ.js +5 -0
- package/dist/components/p-COU68JDH.js +5 -0
- package/dist/components/p-Ce4X3l8Z.js +5 -0
- package/dist/components/p-CeUz_77J.js +5 -0
- package/dist/components/{p-D7yku_Qi.js → p-CgRbul8P.js} +1 -1
- package/dist/components/{p-JtBlsz4j.js → p-CiosiH6q.js} +1 -1
- package/dist/components/p-CnCnKZ25.js +5 -0
- package/dist/components/{p-C-4kx8qU.js → p-CqvK2B_Z.js} +1 -1
- package/dist/components/{p-B6QhQCZi.js → p-D6AC01Wg.js} +1 -1
- package/dist/components/p-DOoqf10k.js +5 -0
- package/dist/components/{p-BaJpYztb.js → p-DRdEUWsa.js} +1 -1
- package/dist/components/p-DSNyMvnc.js +5 -0
- package/dist/components/{p-CjWDXQ_q.js → p-DhxirzfQ.js} +1 -1
- package/dist/components/p-DiG3vhi6.js +5 -0
- package/dist/{shift-components/p-CIU9c3pi.js → components/p-DnMCq3Mw.js} +1 -1
- package/dist/components/p-Dt-24vpn.js +5 -0
- package/dist/components/p-DxBcoZIg.js +5 -0
- package/dist/components/{p-D63WC2_Y.js → p-pYVYeitk.js} +1 -1
- package/dist/components/p-piZ41_ho.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-slider.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-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/contact-us-form.entry.js +4 -4
- package/dist/esm/dead-stock-lookup_3.entry.js +283 -326
- package/dist/esm/empty-table-icon-DvQk12N9.js +14 -0
- package/dist/esm/flexible-container.entry.js +43 -46
- package/dist/esm/form-dialog_8.entry.js +12 -12
- package/dist/esm/{get-local-language-BPo-xYwK.js → get-local-language-KsoLM3LI.js} +38 -38
- package/dist/esm/information-table.entry.js +6 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/material-card-DiAl-884.js +40 -0
- package/dist/esm/part-lookup.entry.js +32 -11
- package/dist/esm/print-icon-Dn5kQmLo.js +99 -0
- package/dist/esm/service-booking-form.entry.js +4 -4
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +40 -0
- package/dist/esm/shift-tabs_2.entry.js +277 -234
- package/dist/esm/type-BAXhU7Vq.js +79 -0
- package/dist/esm/{type-DHujxJVp.js → type-CAfIkrCW.js} +1 -1
- package/dist/esm/{type-D9Rd8Kcd.js → type-CoXoa4w8.js} +1 -1
- package/dist/esm/vehicle-accessories_6.entry.js +1108 -0
- package/dist/esm/vehicle-info-layout-CNGGKAia.js +14 -0
- package/dist/esm/vehicle-lookup.entry.js +14 -11
- package/dist/esm/vin-extractor.entry.js +3 -3
- package/dist/locales/vehicleLookup/claimableItems/ar.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/en.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/ku.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/ru.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/type.ts +4 -6
- package/dist/shift-components/p-03f093e0.entry.js +5 -0
- package/dist/shift-components/p-277c8a5b.entry.js +5 -0
- package/dist/shift-components/p-42218765.entry.js +5 -0
- package/dist/shift-components/p-55c5a5ea.entry.js +5 -0
- package/dist/shift-components/p-5906834e.entry.js +5 -0
- package/dist/shift-components/p-5bd460db.entry.js +5 -0
- package/dist/shift-components/p-701e3fb0.entry.js +5 -0
- package/dist/shift-components/p-98cb9ff7.entry.js +5 -0
- package/dist/{components/p-CK4E5G0i.js → shift-components/p-BBKhY55u.js} +1 -1
- package/dist/shift-components/{p-DHb8KxaG.js → p-BGyVhGdx.js} +1 -1
- package/dist/shift-components/p-BSpTbUWi.js +5 -0
- package/dist/shift-components/p-BnTnweSV.js +5 -0
- package/dist/shift-components/{p-CuQ84qxe.js → p-D7OEt6rC.js} +1 -1
- package/dist/shift-components/p-DzSZ47FV.js +5 -0
- package/dist/shift-components/p-Wtw8qj6x.js +5 -0
- package/dist/shift-components/p-a137e4bb.entry.js +5 -0
- package/dist/shift-components/{p-f282c740.entry.js → p-c4c88519.entry.js} +1 -1
- package/dist/shift-components/{p-b6497f63.entry.js → p-dee5dd04.entry.js} +1 -1
- package/dist/shift-components/p-e428aabb.entry.js +5 -0
- package/dist/shift-components/p-ff79b92b.entry.js +5 -0
- package/dist/shift-components/p-fyqwD4fB.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/flexible-container.d.ts +2 -5
- package/dist/types/components/components/information-table.d.ts +2 -0
- package/dist/types/components/components/material-card.d.ts +1 -1
- package/dist/types/components/form-elements/form-dialog.d.ts +1 -2
- package/dist/types/components/form-elements/form-input.d.ts +1 -2
- package/dist/types/components/form-elements/form-select.d.ts +1 -2
- package/dist/types/components/form-elements/form-structure-error.d.ts +1 -2
- package/dist/types/components/form-elements/form-structure.d.ts +2 -3
- package/dist/types/components/form-elements/form-submit.d.ts +1 -1
- package/dist/types/components/form-elements/form-text-area.d.ts +1 -1
- package/dist/types/components/forms/contact-us-form.d.ts +1 -1
- package/dist/types/components/forms/service-booking-form.d.ts +1 -1
- package/dist/types/components/part-lookup/components/dead-stock-item.d.ts +14 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +25 -23
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -24
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +23 -25
- package/dist/types/components/part-lookup/part-lookup.d.ts +17 -12
- package/dist/types/components/vehicle-lookup/components/claimable-item-popover.d.ts +17 -0
- package/dist/types/components/vehicle-lookup/components/claimable-item.d.ts +12 -0
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +23 -28
- package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +53 -55
- package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +39 -55
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +8 -9
- package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +23 -29
- package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +20 -23
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +20 -22
- package/dist/types/components/vehicle-lookup/vehicle-warranty-details.d.ts +27 -31
- package/dist/types/components/vin-extractor/vin-extractor.d.ts +2 -2
- package/dist/types/components.d.ts +143 -169
- package/dist/types/features/image-viewer/image-viewer-logic.d.ts +3 -0
- package/dist/types/features/image-viewer/image-viewer.d.ts +10 -0
- package/dist/types/features/image-viewer/index.d.ts +3 -0
- package/dist/types/features/image-viewer/interface.d.ts +5 -0
- package/dist/types/features/multi-lingual/get-local-language.d.ts +4 -0
- package/dist/types/features/multi-lingual/index.d.ts +3 -0
- package/dist/types/features/multi-lingual/interface.d.ts +8 -0
- package/dist/types/{global/lib/get-local-language.d.ts → features/multi-lingual/types.d.ts} +17 -6
- package/dist/types/features/part-lookup-components/index.d.ts +3 -0
- package/dist/types/features/part-lookup-components/interface.d.ts +25 -0
- package/dist/types/features/part-lookup-components/part-lookup-api-integration.d.ts +14 -0
- package/dist/types/features/part-lookup-components/types.d.ts +3 -0
- package/dist/types/features/vehicle-info-layout/index.d.ts +2 -0
- package/dist/types/features/vehicle-info-layout/interface.d.ts +3 -0
- package/dist/types/{components/components → features/vehicle-info-layout}/vehicle-info-layout.d.ts +3 -3
- package/dist/types/features/vehicle-lookup-component/index.d.ts +3 -0
- package/dist/types/features/vehicle-lookup-component/interface.d.ts +24 -0
- package/dist/types/features/vehicle-lookup-component/types.d.ts +17 -0
- package/dist/types/features/vehicle-lookup-component/vehicle-lookup-api-integration.d.ts +15 -0
- package/dist/types/global/assets/activation-icon.d.ts +6 -0
- package/dist/types/global/assets/add-icon.d.ts +6 -0
- package/dist/types/global/assets/alert-icon.d.ts +6 -0
- package/dist/types/global/assets/arrow-up-icon.d.ts +6 -0
- package/dist/types/global/assets/attach-icon.d.ts +6 -0
- package/dist/types/global/assets/check-icon.d.ts +6 -0
- package/dist/types/global/assets/empty-table-icon.d.ts +6 -0
- package/dist/types/global/assets/form-submit-svg.d.ts +6 -0
- package/dist/types/global/assets/print-icon.d.ts +6 -0
- package/dist/types/global/assets/question-mark.d.ts +6 -0
- package/dist/types/global/assets/triangle-icon.d.ts +6 -0
- package/dist/types/global/lib/parents-with-tag.d.ts +1 -0
- package/dist/types/global/lib/recaptcha.d.ts +1 -1
- package/dist/types/global/types/components.d.ts +0 -1
- package/dist/types/global/types/forms.d.ts +1 -1
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-item-warning.d.ts +7 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-dto.d.ts +3 -0
- package/dist/types/locales/vehicleLookup/accessories/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/claimableItems/type.d.ts +18 -26
- package/dist/types/locales/vehicleLookup/warranty/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +14 -18
- package/package.json +1 -2
- package/dist/cjs/shift-tab-content_7.cjs.entry.js +0 -1487
- package/dist/cjs/type-CCsnwaKp.js +0 -56
- package/dist/collection/global/api/partInformation.js +0 -32
- package/dist/collection/global/api/vehicleInformation.js +0 -48
- package/dist/components/p-1vy-Ba6r.js +0 -5
- package/dist/components/p-B5YdqGVm.js +0 -5
- package/dist/components/p-BDkK65_1.js +0 -5
- package/dist/components/p-BT4rhLRL.js +0 -5
- package/dist/components/p-C1F_f1WE.js +0 -5
- package/dist/components/p-CACnUI7c.js +0 -5
- package/dist/components/p-CDOvd2iD.js +0 -5
- package/dist/components/p-CGzOJT7g.js +0 -5
- package/dist/components/p-CINfIgzX.js +0 -5
- package/dist/components/p-CJpwqpuQ.js +0 -5
- package/dist/components/p-CUqXnLyM.js +0 -5
- package/dist/components/p-Cl9ct-bZ.js +0 -5
- package/dist/components/p-CqGVdvFp.js +0 -5
- package/dist/components/p-D2bxjSGr.js +0 -5
- package/dist/components/p-DXHx6lre.js +0 -5
- package/dist/components/p-DXj5zsQK.js +0 -5
- package/dist/components/p-DsCtgcZn.js +0 -5
- package/dist/components/p-DxjQlmaz.js +0 -5
- package/dist/components/p-nxlqujKv.js +0 -5
- package/dist/components/p-vvHN2Olh.js +0 -5
- package/dist/components/p-yQ70lKV2.js +0 -5
- package/dist/esm/shift-tab-content_7.entry.js +0 -1479
- package/dist/esm/type-CfLRnI1J.js +0 -53
- package/dist/esm/vehicle-info-layout-D1bvY1nt.js +0 -43
- package/dist/shift-components/p-389f444c.entry.js +0 -5
- package/dist/shift-components/p-5dd208de.entry.js +0 -5
- package/dist/shift-components/p-5f91eb5f.entry.js +0 -5
- package/dist/shift-components/p-76dd44e9.entry.js +0 -5
- package/dist/shift-components/p-9a51dae0.entry.js +0 -5
- package/dist/shift-components/p-BAMA88Mr.js +0 -5
- package/dist/shift-components/p-Br0JD1CD.js +0 -5
- package/dist/shift-components/p-af44ca99.entry.js +0 -5
- package/dist/shift-components/p-d0e6cd78.entry.js +0 -5
- package/dist/shift-components/p-f1225504.entry.js +0 -5
- package/dist/shift-components/p-faabbd23.entry.js +0 -5
- package/dist/shift-components/p-ff0fec09.entry.js +0 -5
- package/dist/types/global/api/partInformation.d.ts +0 -19
- package/dist/types/global/api/vehicleInformation.d.ts +0 -33
- package/dist/types/global/lib/image-expansion.d.ts +0 -9
- package/dist/types/global/types/locale.d.ts +0 -11
- /package/dist/collection/{components/vehicle-lookup → global}/assets/activationRequired.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/cancelled.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/check.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/expired.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/pending.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/processed.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/x-mark.svg +0 -0
|
@@ -4,23 +4,29 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
|
-
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
|
|
8
|
-
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
9
7
|
import warrantySchema from "../../locales/vehicleLookup/warranty/type";
|
|
10
8
|
import CardsContainer from "./components/CardsContainer";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
9
|
+
import XIcon from "~assets/x-mark.svg";
|
|
10
|
+
import CheckIcon from "~assets/check.svg";
|
|
11
|
+
import { VehicleInfoLayout } from "../../features/vehicle-info-layout/index";
|
|
12
|
+
import { setVehicleLookupData, setVehicleLookupErrorState } from "../../features/vehicle-lookup-component/vehicle-lookup-api-integration";
|
|
13
|
+
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
15
14
|
export class VehicleWarrantyDetails {
|
|
16
15
|
constructor() {
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
16
|
+
// ====== Start Localization
|
|
17
|
+
this.language = 'en';
|
|
18
|
+
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, warrantySchema.getDefault());
|
|
19
|
+
// ====== End Localization
|
|
20
|
+
// ====== Start Vehicle info layout prop
|
|
21
|
+
this.coreOnly = false;
|
|
22
|
+
this.headers = {};
|
|
20
23
|
this.queryString = '';
|
|
24
|
+
this.isError = false;
|
|
25
|
+
this.isLoading = false;
|
|
26
|
+
// ====== End Vehicle Lookup Component Shared Logic
|
|
27
|
+
// ====== Start Component Logic
|
|
28
|
+
this.showSsc = false;
|
|
21
29
|
this.recaptchaKey = '';
|
|
22
|
-
this.coreOnly = false;
|
|
23
|
-
this.language = 'en';
|
|
24
30
|
this.showWarranty = false;
|
|
25
31
|
this.unauthorizedSscLookupBaseUrl = '';
|
|
26
32
|
this.unauthorizedSscLookupQueryString = '';
|
|
@@ -35,50 +41,48 @@ export class VehicleWarrantyDetails {
|
|
|
35
41
|
this.customerName = null;
|
|
36
42
|
this.customerPhone = null;
|
|
37
43
|
this.customerEmail = null;
|
|
38
|
-
this.state = 'idle';
|
|
39
|
-
this.externalVin = null;
|
|
40
44
|
this.showRecaptcha = false;
|
|
41
|
-
this.errorMessage = null;
|
|
42
45
|
this.unInvoicedByBrokerName = null;
|
|
43
46
|
this.checkingUnauthorizedSSC = false;
|
|
44
47
|
this.recaptchaRes = null;
|
|
45
|
-
this.headers = {};
|
|
46
|
-
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
47
|
-
this.locale = warrantySchema.getDefault();
|
|
48
48
|
}
|
|
49
49
|
async componentWillLoad() {
|
|
50
50
|
await this.changeLanguage(this.language);
|
|
51
51
|
}
|
|
52
52
|
async changeLanguage(newLanguage) {
|
|
53
|
-
const
|
|
54
|
-
this.locale =
|
|
55
|
-
this.sharedLocales = localeResponses[1];
|
|
53
|
+
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'vehicleLookup.warranty', warrantySchema)]);
|
|
54
|
+
this.locale = Object.assign({ sharedLocales }, locale);
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if (response.warranty === null)
|
|
60
|
-
response.warranty = {
|
|
61
|
-
warrantyEndDate: '',
|
|
62
|
-
warrantyStartDate: '',
|
|
63
|
-
hasActiveWarranty: false,
|
|
64
|
-
hasExtendedWarranty: false,
|
|
65
|
-
extendedWarrantyEndDate: '',
|
|
66
|
-
extendedWarrantyStartDate: '',
|
|
67
|
-
};
|
|
68
|
-
if (response.ssc === null)
|
|
69
|
-
response.ssc = [];
|
|
70
|
-
this.unInvoicedByBrokerName = null;
|
|
71
|
-
if (((_a = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
|
|
72
|
-
this.unInvoicedByBrokerName = response.saleInformation.broker.brokerName;
|
|
73
|
-
this.vehicleInformation = response;
|
|
56
|
+
async setMockData(newMockData) {
|
|
57
|
+
this.mockData = newMockData;
|
|
74
58
|
}
|
|
75
|
-
async
|
|
76
|
-
|
|
77
|
-
|
|
59
|
+
async fetchData(newData, headers = {}) {
|
|
60
|
+
this.recaptchaRes = null;
|
|
61
|
+
clearInterval(this.recaptchaIntervalRef);
|
|
62
|
+
await setVehicleLookupData(this, newData, headers, {
|
|
63
|
+
beforeAssignment: async (response, { scopedTimeoutRef }) => {
|
|
64
|
+
var _a, _b, _c;
|
|
65
|
+
if (((_a = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
|
|
66
|
+
this.unInvoicedByBrokerName = response.saleInformation.broker.brokerName;
|
|
67
|
+
else
|
|
68
|
+
this.unInvoicedByBrokerName = null;
|
|
69
|
+
await this.handleInitializingRecaptcha(response, scopedTimeoutRef);
|
|
70
|
+
return response;
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
async setErrorMessage(message) {
|
|
75
|
+
setVehicleLookupErrorState(this, message);
|
|
76
|
+
}
|
|
77
|
+
onLoadingChange(newValue) {
|
|
78
|
+
if (this.loadingStateChange)
|
|
79
|
+
this.loadingStateChange(newValue);
|
|
80
|
+
}
|
|
81
|
+
async handleInitializingRecaptcha(newVehicleLookup, scopedTimeoutRef) {
|
|
82
|
+
if ((newVehicleLookup === null || newVehicleLookup === void 0 ? void 0 : newVehicleLookup.isAuthorized) === false && this.showSsc && this.recaptchaKey !== '') {
|
|
78
83
|
grecaptcha.reset();
|
|
79
84
|
// await new Promise(r => setTimeout(r, 400));
|
|
80
85
|
this.recaptchaIntervalRef = setInterval(async () => {
|
|
81
|
-
var _a;
|
|
82
86
|
const recaptchaResponse = grecaptcha.getResponse();
|
|
83
87
|
if (recaptchaResponse) {
|
|
84
88
|
clearInterval(this.recaptchaIntervalRef);
|
|
@@ -96,7 +100,7 @@ export class VehicleWarrantyDetails {
|
|
|
96
100
|
else {
|
|
97
101
|
this.checkingUnauthorizedSSC = true;
|
|
98
102
|
this.showRecaptcha = false;
|
|
99
|
-
const response = await fetch(`${this.unauthorizedSscLookupBaseUrl}${vin}/${
|
|
103
|
+
const response = await fetch(`${this.unauthorizedSscLookupBaseUrl}${newVehicleLookup === null || newVehicleLookup === void 0 ? void 0 : newVehicleLookup.vin}/${newVehicleLookup === null || newVehicleLookup === void 0 ? void 0 : newVehicleLookup.sscLogId}?${this.unauthorizedSscLookupQueryString}`, {
|
|
100
104
|
signal: this.abortController.signal,
|
|
101
105
|
headers: Object.assign(Object.assign({}, this.headers), { 'Ssc-Recaptcha-Token': recaptchaResponse }),
|
|
102
106
|
});
|
|
@@ -120,59 +124,6 @@ export class VehicleWarrantyDetails {
|
|
|
120
124
|
this.showRecaptcha = false;
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
|
-
async setData(newData, headers = {}) {
|
|
124
|
-
this.recaptchaRes = null;
|
|
125
|
-
this.headers = headers;
|
|
126
|
-
clearTimeout(this.networkTimeoutRef);
|
|
127
|
-
clearInterval(this.recaptchaIntervalRef);
|
|
128
|
-
if (this.abortController)
|
|
129
|
-
this.abortController.abort();
|
|
130
|
-
this.abortController = new AbortController();
|
|
131
|
-
let scopedTimeoutRef;
|
|
132
|
-
const isVinRequest = typeof newData === 'string';
|
|
133
|
-
const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
|
|
134
|
-
this.externalVin = vin;
|
|
135
|
-
try {
|
|
136
|
-
if (!vin || vin.trim().length === 0) {
|
|
137
|
-
this.state = 'idle';
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (this.state === 'data' || this.state === 'error') {
|
|
141
|
-
this.state = (this.state + '-loading');
|
|
142
|
-
}
|
|
143
|
-
else
|
|
144
|
-
this.state = 'loading';
|
|
145
|
-
await new Promise(r => {
|
|
146
|
-
scopedTimeoutRef = setTimeout(r, 600);
|
|
147
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
148
|
-
});
|
|
149
|
-
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
150
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
151
|
-
if (!vehicleResponse)
|
|
152
|
-
throw new Error('wrongResponseFormat');
|
|
153
|
-
this.handleSettingData(vehicleResponse);
|
|
154
|
-
this.handleInitializingRecaptcha(vin, scopedTimeoutRef);
|
|
155
|
-
}
|
|
156
|
-
this.errorMessage = null;
|
|
157
|
-
this.state = 'data';
|
|
158
|
-
}
|
|
159
|
-
catch (error) {
|
|
160
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
161
|
-
return;
|
|
162
|
-
if (this.errorCallback)
|
|
163
|
-
this.errorCallback(error.message);
|
|
164
|
-
console.error(error);
|
|
165
|
-
this.setErrorMessage(error.message);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
async setErrorMessage(message) {
|
|
169
|
-
this.state = 'error';
|
|
170
|
-
this.vehicleInformation = null;
|
|
171
|
-
this.errorMessage = message;
|
|
172
|
-
}
|
|
173
|
-
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
174
|
-
await this.setData(requestedVin, headers);
|
|
175
|
-
}
|
|
176
127
|
async componentDidLoad() {
|
|
177
128
|
if (this.recaptchaKey !== '') {
|
|
178
129
|
const script = document.createElement('script');
|
|
@@ -183,17 +134,9 @@ export class VehicleWarrantyDetails {
|
|
|
183
134
|
document.head.appendChild(script);
|
|
184
135
|
}
|
|
185
136
|
}
|
|
186
|
-
|
|
187
|
-
mockData = newMockData;
|
|
188
|
-
}
|
|
189
|
-
async loadingListener() {
|
|
190
|
-
if (this.loadingStateChange)
|
|
191
|
-
this.loadingStateChange(this.state.includes('loading'));
|
|
192
|
-
}
|
|
137
|
+
// ====== End Component Logic
|
|
193
138
|
render() {
|
|
194
139
|
var _a, _b, _c, _d, _e, _f;
|
|
195
|
-
const isLoading = this.state.includes('loading');
|
|
196
|
-
const isError = this.state.includes('error');
|
|
197
140
|
const tableHeaders = [
|
|
198
141
|
{
|
|
199
142
|
width: 200,
|
|
@@ -221,9 +164,9 @@ export class VehicleWarrantyDetails {
|
|
|
221
164
|
label: this.locale.sscTablePartNumber,
|
|
222
165
|
},
|
|
223
166
|
];
|
|
224
|
-
const rows = !((_a = this.
|
|
167
|
+
const rows = !((_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.ssc)
|
|
225
168
|
? []
|
|
226
|
-
: (_b = this.
|
|
169
|
+
: (_b = this.vehicleLookup) === null || _b === void 0 ? void 0 : _b.ssc.map(sscItem => ({
|
|
227
170
|
sscTableCode: sscItem === null || sscItem === void 0 ? void 0 : sscItem.sscCode,
|
|
228
171
|
sscTableDescription: sscItem === null || sscItem === void 0 ? void 0 : sscItem.description,
|
|
229
172
|
sscTableRepairStatus: () => (h("div", { class: "table-cell-container" }, h("img", { class: "table-status-icon", src: (sscItem === null || sscItem === void 0 ? void 0 : sscItem.repaired) ? CheckIcon : XIcon }), " ", sscItem === null || sscItem === void 0 ? void 0 :
|
|
@@ -236,11 +179,11 @@ export class VehicleWarrantyDetails {
|
|
|
236
179
|
: '...')),
|
|
237
180
|
}));
|
|
238
181
|
const templateRow = {
|
|
239
|
-
sscTableOPCode: () => h("div", { key: '
|
|
240
|
-
sscTablePartNumber: () => h("div", { key: '
|
|
241
|
-
sscTableRepairStatus: () => h("div", { key: '
|
|
182
|
+
sscTableOPCode: () => h("div", { key: 'b8a197e033a230ec753851967ed43814e2313cae', class: "h-[25px]" }),
|
|
183
|
+
sscTablePartNumber: () => h("div", { key: '13c05d882795a0bcea8d5e9c7b15d2824f9a0c0a', class: "h-[25px]" }),
|
|
184
|
+
sscTableRepairStatus: () => h("div", { key: 'f22522c910c61ece32cc67aecebd02bbda327a4b', class: "h-[25px]" }),
|
|
242
185
|
};
|
|
243
|
-
return (h(Host, { key: '
|
|
186
|
+
return (h(Host, { key: '3eb95d2db66dbcab08ad4e387b05785dbdb5c284' }, h(VehicleInfoLayout, { key: '64bed10321daf330f531118fe8bbe2513d373d64', 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: '0198287461a59215b410a7a829c5c1e21f732f2d', class: "p-[16px]" }, this.showWarranty && (h(CardsContainer, { key: '3bfbdd9b3c72bef3a5dcffe32ad8dee69e02725d', 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: 'a0a4a1d608578e6cd2b0051537d9221646c2c63e', class: "h-[8px]" }), h("flexible-container", { key: 'f7dc1a696ebb9ef8a2cfa756819b5403e187b8b7', isOpened: this.showRecaptcha, classes: cn('w-fit mx-auto shift-skeleton', { loading: !this.showRecaptcha || this.isLoading }) }, h("div", { key: 'a7092307e00235a4adf6de7520d50b9cee63f71d', style: { height: 'auto' }, class: "recaptcha-container" }, h("slot", { key: '250f7bf9c6265b54daa96cb73aeaafb8fb8018c5' })), this.recaptchaRes && (h("div", { key: '19ab692dfca27070fa1e77cc9b124c3ce5e3381a', class: cn('recaptcha-response', !((_e = this.recaptchaRes) === null || _e === void 0 ? void 0 : _e.hasSSC) ? 'success-card' : 'reject-card ') }, this.locale[(_f = this.recaptchaRes) === null || _f === void 0 ? void 0 : _f.message])))), h("flexible-container", { key: 'f691a176742706d0902e1b17171a547ac26929b1', isOpened: this.checkingUnauthorizedSSC, classes: "w-fit mx-auto" }, h("div", { key: '8bf02002b1daa150b7ba6fca697c8e68b5e6c5bb', class: "pt-[16px]" }, h("div", { key: 'd44544b0fc9c54518f5e94bfec3d48811653bd85', class: "flex shift-skeleton flex-col gap-[8px]" }, h("strong", { key: '80c4ec2cc5fff7dec34564a201b1c0b0d4342090' }, this.locale.checkingTMC), h("div", { key: '66489653e21de41525c13c86beb6bad1256b1bcf', class: "relative pt-[40px]" }, h("loading-spinner", { key: '5ee464b063f4d5a20dde455c52e8f306a22e2e92', isLoading: this.checkingUnauthorizedSSC }))))), h("div", { key: '3b38b2bfd17a10420b31e168c0f3688a20c34a8d', class: "mt-[32px] mx-auto w-fit max-w-full" }, h("div", { key: '498636da956c289d4926ac5dec4b6bffe8d21d1e', class: "bg-[#f6f6f6] h-[50px] flex items-center justify-center px-[16px] font-bold text-[18px]" }, this.locale.sscCampings), h("div", { key: 'a7e0ed5f3ce60e79d2bb71f808abceb04d93c938', class: "overflow-x-auto" }, h("information-table", { key: '63c8ae5d5395a4e5196ec809d3cc74f159f676ca', isLoading: this.isLoading, templateRow: templateRow, rows: rows, headers: tableHeaders }))))));
|
|
244
187
|
}
|
|
245
188
|
static get is() { return "vehicle-warranty-details"; }
|
|
246
189
|
static get encapsulation() { return "shadow"; }
|
|
@@ -256,14 +199,20 @@ export class VehicleWarrantyDetails {
|
|
|
256
199
|
}
|
|
257
200
|
static get properties() {
|
|
258
201
|
return {
|
|
259
|
-
"
|
|
202
|
+
"language": {
|
|
260
203
|
"type": "string",
|
|
261
|
-
"attribute": "
|
|
204
|
+
"attribute": "language",
|
|
262
205
|
"mutable": false,
|
|
263
206
|
"complexType": {
|
|
264
|
-
"original": "
|
|
265
|
-
"resolved": "
|
|
266
|
-
"references": {
|
|
207
|
+
"original": "LanguageKeys",
|
|
208
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
209
|
+
"references": {
|
|
210
|
+
"LanguageKeys": {
|
|
211
|
+
"location": "import",
|
|
212
|
+
"path": "~features/multi-lingual",
|
|
213
|
+
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
267
216
|
},
|
|
268
217
|
"required": false,
|
|
269
218
|
"optional": false,
|
|
@@ -274,11 +223,11 @@ export class VehicleWarrantyDetails {
|
|
|
274
223
|
"getter": false,
|
|
275
224
|
"setter": false,
|
|
276
225
|
"reflect": false,
|
|
277
|
-
"defaultValue": "''"
|
|
226
|
+
"defaultValue": "'en'"
|
|
278
227
|
},
|
|
279
|
-
"
|
|
228
|
+
"coreOnly": {
|
|
280
229
|
"type": "boolean",
|
|
281
|
-
"attribute": "
|
|
230
|
+
"attribute": "core-only",
|
|
282
231
|
"mutable": false,
|
|
283
232
|
"complexType": {
|
|
284
233
|
"original": "boolean",
|
|
@@ -296,9 +245,9 @@ export class VehicleWarrantyDetails {
|
|
|
296
245
|
"reflect": false,
|
|
297
246
|
"defaultValue": "false"
|
|
298
247
|
},
|
|
299
|
-
"
|
|
248
|
+
"isDev": {
|
|
300
249
|
"type": "boolean",
|
|
301
|
-
"attribute": "
|
|
250
|
+
"attribute": "is-dev",
|
|
302
251
|
"mutable": false,
|
|
303
252
|
"complexType": {
|
|
304
253
|
"original": "boolean",
|
|
@@ -313,12 +262,11 @@ export class VehicleWarrantyDetails {
|
|
|
313
262
|
},
|
|
314
263
|
"getter": false,
|
|
315
264
|
"setter": false,
|
|
316
|
-
"reflect": false
|
|
317
|
-
"defaultValue": "false"
|
|
265
|
+
"reflect": false
|
|
318
266
|
},
|
|
319
|
-
"
|
|
267
|
+
"baseUrl": {
|
|
320
268
|
"type": "string",
|
|
321
|
-
"attribute": "
|
|
269
|
+
"attribute": "base-url",
|
|
322
270
|
"mutable": false,
|
|
323
271
|
"complexType": {
|
|
324
272
|
"original": "string",
|
|
@@ -333,12 +281,30 @@ export class VehicleWarrantyDetails {
|
|
|
333
281
|
},
|
|
334
282
|
"getter": false,
|
|
335
283
|
"setter": false,
|
|
336
|
-
"reflect": false
|
|
337
|
-
"defaultValue": "''"
|
|
284
|
+
"reflect": false
|
|
338
285
|
},
|
|
339
|
-
"
|
|
286
|
+
"headers": {
|
|
287
|
+
"type": "unknown",
|
|
288
|
+
"attribute": "headers",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "object",
|
|
292
|
+
"resolved": "object",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": ""
|
|
300
|
+
},
|
|
301
|
+
"getter": false,
|
|
302
|
+
"setter": false,
|
|
303
|
+
"defaultValue": "{}"
|
|
304
|
+
},
|
|
305
|
+
"queryString": {
|
|
340
306
|
"type": "string",
|
|
341
|
-
"attribute": "
|
|
307
|
+
"attribute": "query-string",
|
|
342
308
|
"mutable": false,
|
|
343
309
|
"complexType": {
|
|
344
310
|
"original": "string",
|
|
@@ -356,9 +322,75 @@ export class VehicleWarrantyDetails {
|
|
|
356
322
|
"reflect": false,
|
|
357
323
|
"defaultValue": "''"
|
|
358
324
|
},
|
|
359
|
-
"
|
|
325
|
+
"errorCallback": {
|
|
326
|
+
"type": "unknown",
|
|
327
|
+
"attribute": "error-callback",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "(errorMessage: ErrorKeys) => void",
|
|
331
|
+
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
332
|
+
"references": {
|
|
333
|
+
"ErrorKeys": {
|
|
334
|
+
"location": "import",
|
|
335
|
+
"path": "~features/multi-lingual",
|
|
336
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": true,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": ""
|
|
345
|
+
},
|
|
346
|
+
"getter": false,
|
|
347
|
+
"setter": false
|
|
348
|
+
},
|
|
349
|
+
"loadingStateChange": {
|
|
350
|
+
"type": "unknown",
|
|
351
|
+
"attribute": "loading-state-change",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "(isLoading: boolean) => void",
|
|
355
|
+
"resolved": "(isLoading: boolean) => void",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": true,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"getter": false,
|
|
365
|
+
"setter": false
|
|
366
|
+
},
|
|
367
|
+
"loadedResponse": {
|
|
368
|
+
"type": "unknown",
|
|
369
|
+
"attribute": "loaded-response",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "(response: VehicleLookupDTO) => void",
|
|
373
|
+
"resolved": "(response: VehicleLookupDTO) => void",
|
|
374
|
+
"references": {
|
|
375
|
+
"VehicleLookupDTO": {
|
|
376
|
+
"location": "import",
|
|
377
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
378
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": true,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": ""
|
|
387
|
+
},
|
|
388
|
+
"getter": false,
|
|
389
|
+
"setter": false
|
|
390
|
+
},
|
|
391
|
+
"showSsc": {
|
|
360
392
|
"type": "boolean",
|
|
361
|
-
"attribute": "
|
|
393
|
+
"attribute": "show-ssc",
|
|
362
394
|
"mutable": false,
|
|
363
395
|
"complexType": {
|
|
364
396
|
"original": "boolean",
|
|
@@ -376,20 +408,14 @@ export class VehicleWarrantyDetails {
|
|
|
376
408
|
"reflect": false,
|
|
377
409
|
"defaultValue": "false"
|
|
378
410
|
},
|
|
379
|
-
"
|
|
411
|
+
"recaptchaKey": {
|
|
380
412
|
"type": "string",
|
|
381
|
-
"attribute": "
|
|
413
|
+
"attribute": "recaptcha-key",
|
|
382
414
|
"mutable": false,
|
|
383
415
|
"complexType": {
|
|
384
|
-
"original": "
|
|
385
|
-
"resolved": "
|
|
386
|
-
"references": {
|
|
387
|
-
"LanguageKeys": {
|
|
388
|
-
"location": "import",
|
|
389
|
-
"path": "~types/locale",
|
|
390
|
-
"id": "src/global/types/locale.ts::LanguageKeys"
|
|
391
|
-
}
|
|
392
|
-
}
|
|
416
|
+
"original": "string",
|
|
417
|
+
"resolved": "string",
|
|
418
|
+
"references": {}
|
|
393
419
|
},
|
|
394
420
|
"required": false,
|
|
395
421
|
"optional": false,
|
|
@@ -400,7 +426,7 @@ export class VehicleWarrantyDetails {
|
|
|
400
426
|
"getter": false,
|
|
401
427
|
"setter": false,
|
|
402
428
|
"reflect": false,
|
|
403
|
-
"defaultValue": "'
|
|
429
|
+
"defaultValue": "''"
|
|
404
430
|
},
|
|
405
431
|
"showWarranty": {
|
|
406
432
|
"type": "boolean",
|
|
@@ -681,132 +707,30 @@ export class VehicleWarrantyDetails {
|
|
|
681
707
|
"setter": false,
|
|
682
708
|
"reflect": false,
|
|
683
709
|
"defaultValue": "null"
|
|
684
|
-
},
|
|
685
|
-
"errorCallback": {
|
|
686
|
-
"type": "unknown",
|
|
687
|
-
"attribute": "error-callback",
|
|
688
|
-
"mutable": false,
|
|
689
|
-
"complexType": {
|
|
690
|
-
"original": "(errorMessage: ErrorKeys) => void",
|
|
691
|
-
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
692
|
-
"references": {
|
|
693
|
-
"ErrorKeys": {
|
|
694
|
-
"location": "import",
|
|
695
|
-
"path": "~lib/get-local-language",
|
|
696
|
-
"id": "src/global/lib/get-local-language.ts::ErrorKeys"
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
"required": false,
|
|
701
|
-
"optional": false,
|
|
702
|
-
"docs": {
|
|
703
|
-
"tags": [],
|
|
704
|
-
"text": ""
|
|
705
|
-
},
|
|
706
|
-
"getter": false,
|
|
707
|
-
"setter": false
|
|
708
|
-
},
|
|
709
|
-
"loadingStateChange": {
|
|
710
|
-
"type": "unknown",
|
|
711
|
-
"attribute": "loading-state-change",
|
|
712
|
-
"mutable": false,
|
|
713
|
-
"complexType": {
|
|
714
|
-
"original": "(isLoading: boolean) => void",
|
|
715
|
-
"resolved": "(isLoading: boolean) => void",
|
|
716
|
-
"references": {}
|
|
717
|
-
},
|
|
718
|
-
"required": false,
|
|
719
|
-
"optional": true,
|
|
720
|
-
"docs": {
|
|
721
|
-
"tags": [],
|
|
722
|
-
"text": ""
|
|
723
|
-
},
|
|
724
|
-
"getter": false,
|
|
725
|
-
"setter": false
|
|
726
|
-
},
|
|
727
|
-
"loadedResponse": {
|
|
728
|
-
"type": "unknown",
|
|
729
|
-
"attribute": "loaded-response",
|
|
730
|
-
"mutable": false,
|
|
731
|
-
"complexType": {
|
|
732
|
-
"original": "(response: VehicleLookupDTO) => void",
|
|
733
|
-
"resolved": "(response: VehicleLookupDTO) => void",
|
|
734
|
-
"references": {
|
|
735
|
-
"VehicleLookupDTO": {
|
|
736
|
-
"location": "import",
|
|
737
|
-
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
738
|
-
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
"required": false,
|
|
743
|
-
"optional": true,
|
|
744
|
-
"docs": {
|
|
745
|
-
"tags": [],
|
|
746
|
-
"text": ""
|
|
747
|
-
},
|
|
748
|
-
"getter": false,
|
|
749
|
-
"setter": false
|
|
750
710
|
}
|
|
751
711
|
};
|
|
752
712
|
}
|
|
753
713
|
static get states() {
|
|
754
714
|
return {
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
"showRecaptcha": {},
|
|
715
|
+
"locale": {},
|
|
716
|
+
"isError": {},
|
|
758
717
|
"errorMessage": {},
|
|
759
|
-
"
|
|
718
|
+
"isLoading": {},
|
|
719
|
+
"vehicleLookup": {},
|
|
720
|
+
"showRecaptcha": {},
|
|
760
721
|
"unInvoicedByBrokerName": {},
|
|
761
722
|
"checkingUnauthorizedSSC": {},
|
|
762
|
-
"recaptchaRes": {}
|
|
763
|
-
"headers": {},
|
|
764
|
-
"sharedLocales": {},
|
|
765
|
-
"locale": {}
|
|
723
|
+
"recaptchaRes": {}
|
|
766
724
|
};
|
|
767
725
|
}
|
|
768
726
|
static get methods() {
|
|
769
727
|
return {
|
|
770
|
-
"
|
|
771
|
-
"complexType": {
|
|
772
|
-
"signature": "(newData: VehicleLookupDTO | string, headers?: any) => Promise<void>",
|
|
773
|
-
"parameters": [{
|
|
774
|
-
"name": "newData",
|
|
775
|
-
"type": "string | VehicleLookupDTO",
|
|
776
|
-
"docs": ""
|
|
777
|
-
}, {
|
|
778
|
-
"name": "headers",
|
|
779
|
-
"type": "any",
|
|
780
|
-
"docs": ""
|
|
781
|
-
}],
|
|
782
|
-
"references": {
|
|
783
|
-
"Promise": {
|
|
784
|
-
"location": "global",
|
|
785
|
-
"id": "global::Promise"
|
|
786
|
-
},
|
|
787
|
-
"VehicleLookupDTO": {
|
|
788
|
-
"location": "import",
|
|
789
|
-
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
790
|
-
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
791
|
-
},
|
|
792
|
-
"ReturnType": {
|
|
793
|
-
"location": "global",
|
|
794
|
-
"id": "global::ReturnType"
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
"return": "Promise<void>"
|
|
798
|
-
},
|
|
799
|
-
"docs": {
|
|
800
|
-
"text": "",
|
|
801
|
-
"tags": []
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
"setErrorMessage": {
|
|
728
|
+
"setMockData": {
|
|
805
729
|
"complexType": {
|
|
806
|
-
"signature": "(
|
|
730
|
+
"signature": "(newMockData: VehicleLookupMock) => Promise<void>",
|
|
807
731
|
"parameters": [{
|
|
808
|
-
"name": "
|
|
809
|
-
"type": "
|
|
732
|
+
"name": "newMockData",
|
|
733
|
+
"type": "{ [key: string]: VehicleLookupDTO; }",
|
|
810
734
|
"docs": ""
|
|
811
735
|
}],
|
|
812
736
|
"references": {
|
|
@@ -814,10 +738,10 @@ export class VehicleWarrantyDetails {
|
|
|
814
738
|
"location": "global",
|
|
815
739
|
"id": "global::Promise"
|
|
816
740
|
},
|
|
817
|
-
"
|
|
741
|
+
"VehicleLookupMock": {
|
|
818
742
|
"location": "import",
|
|
819
|
-
"path": "~
|
|
820
|
-
"id": "src/
|
|
743
|
+
"path": "~features/vehicle-lookup-component",
|
|
744
|
+
"id": "src/features/vehicle-lookup-component/index.ts::VehicleLookupMock"
|
|
821
745
|
}
|
|
822
746
|
},
|
|
823
747
|
"return": "Promise<void>"
|
|
@@ -829,10 +753,10 @@ export class VehicleWarrantyDetails {
|
|
|
829
753
|
},
|
|
830
754
|
"fetchData": {
|
|
831
755
|
"complexType": {
|
|
832
|
-
"signature": "(
|
|
756
|
+
"signature": "(newData: VehicleLookupDTO | string, headers?: any) => Promise<void>",
|
|
833
757
|
"parameters": [{
|
|
834
|
-
"name": "
|
|
835
|
-
"type": "string",
|
|
758
|
+
"name": "newData",
|
|
759
|
+
"type": "string | VehicleLookupDTO",
|
|
836
760
|
"docs": ""
|
|
837
761
|
}, {
|
|
838
762
|
"name": "headers",
|
|
@@ -843,6 +767,11 @@ export class VehicleWarrantyDetails {
|
|
|
843
767
|
"Promise": {
|
|
844
768
|
"location": "global",
|
|
845
769
|
"id": "global::Promise"
|
|
770
|
+
},
|
|
771
|
+
"VehicleLookupDTO": {
|
|
772
|
+
"location": "import",
|
|
773
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
774
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
846
775
|
}
|
|
847
776
|
},
|
|
848
777
|
"return": "Promise<void>"
|
|
@@ -852,12 +781,12 @@ export class VehicleWarrantyDetails {
|
|
|
852
781
|
"tags": []
|
|
853
782
|
}
|
|
854
783
|
},
|
|
855
|
-
"
|
|
784
|
+
"setErrorMessage": {
|
|
856
785
|
"complexType": {
|
|
857
|
-
"signature": "(
|
|
786
|
+
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
858
787
|
"parameters": [{
|
|
859
|
-
"name": "
|
|
860
|
-
"type": "
|
|
788
|
+
"name": "message",
|
|
789
|
+
"type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
|
|
861
790
|
"docs": ""
|
|
862
791
|
}],
|
|
863
792
|
"references": {
|
|
@@ -865,15 +794,10 @@ export class VehicleWarrantyDetails {
|
|
|
865
794
|
"location": "global",
|
|
866
795
|
"id": "global::Promise"
|
|
867
796
|
},
|
|
868
|
-
"
|
|
869
|
-
"location": "import",
|
|
870
|
-
"path": "~types/components",
|
|
871
|
-
"id": "src/global/types/components.ts::MockJson"
|
|
872
|
-
},
|
|
873
|
-
"VehicleLookupDTO": {
|
|
797
|
+
"ErrorKeys": {
|
|
874
798
|
"location": "import",
|
|
875
|
-
"path": "~
|
|
876
|
-
"id": "src/
|
|
799
|
+
"path": "~features/multi-lingual",
|
|
800
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
877
801
|
}
|
|
878
802
|
},
|
|
879
803
|
"return": "Promise<void>"
|
|
@@ -891,8 +815,8 @@ export class VehicleWarrantyDetails {
|
|
|
891
815
|
"propName": "language",
|
|
892
816
|
"methodName": "changeLanguage"
|
|
893
817
|
}, {
|
|
894
|
-
"propName": "
|
|
895
|
-
"methodName": "
|
|
818
|
+
"propName": "isLoading",
|
|
819
|
+
"methodName": "onLoadingChange"
|
|
896
820
|
}];
|
|
897
821
|
}
|
|
898
822
|
}
|