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
|
@@ -3,128 +3,80 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
|
-
import
|
|
7
|
-
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
|
|
8
|
-
import { getPartInformation } from "../../global/api/partInformation";
|
|
6
|
+
import { MaterialCard, MaterialCardChildren } from "../components/material-card";
|
|
9
7
|
import manufacturerSchema from "../../locales/partLookup/manufacturer/type";
|
|
10
|
-
|
|
8
|
+
import { VehicleInfoLayout } from "../../features/vehicle-info-layout/index";
|
|
9
|
+
import { setPartLookupData, setPartLookupErrorState } from "../../features/part-lookup-components/index";
|
|
10
|
+
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
11
11
|
export class ManufacturerLookup {
|
|
12
12
|
constructor() {
|
|
13
|
-
|
|
14
|
-
this.
|
|
13
|
+
// ====== Start Localization
|
|
14
|
+
this.language = 'en';
|
|
15
|
+
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, manufacturerSchema.getDefault());
|
|
16
|
+
// ====== End Localization
|
|
17
|
+
// ====== Start Vehicle info layout prop
|
|
18
|
+
this.coreOnly = false;
|
|
19
|
+
this.headers = {};
|
|
15
20
|
this.queryString = '';
|
|
21
|
+
this.isError = false;
|
|
22
|
+
this.isLoading = false;
|
|
23
|
+
// ====== End Part Lookup Component Shared Logic
|
|
24
|
+
// ====== Start Component Logic
|
|
16
25
|
this.hiddenFields = '';
|
|
17
|
-
this.language = 'en';
|
|
18
26
|
this.localizationName = '';
|
|
19
|
-
this.headerTitle = 'Manufacturer';
|
|
20
|
-
this.state = 'idle';
|
|
21
|
-
this.errorMessage = null;
|
|
22
|
-
this.externalPartNumber = null;
|
|
23
|
-
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
24
|
-
this.locale = manufacturerSchema.getDefault();
|
|
25
27
|
}
|
|
26
28
|
async componentWillLoad() {
|
|
27
29
|
await this.changeLanguage(this.language);
|
|
28
30
|
}
|
|
29
31
|
async changeLanguage(newLanguage) {
|
|
30
|
-
const
|
|
31
|
-
this.locale =
|
|
32
|
-
this.sharedLocales = localeResponses[1];
|
|
32
|
+
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'partLookup.manufacturer', manufacturerSchema)]);
|
|
33
|
+
this.locale = Object.assign({ sharedLocales }, locale);
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
this.
|
|
35
|
+
async setMockData(newMockData) {
|
|
36
|
+
this.mockData = newMockData;
|
|
36
37
|
}
|
|
37
|
-
async
|
|
38
|
-
|
|
39
|
-
if (this.abortController)
|
|
40
|
-
this.abortController.abort();
|
|
41
|
-
this.abortController = new AbortController();
|
|
42
|
-
let scopedTimeoutRef;
|
|
43
|
-
const isPartNumberRequest = typeof newData === 'string';
|
|
44
|
-
const partNumber = isPartNumberRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.partNumber;
|
|
45
|
-
this.externalPartNumber = partNumber;
|
|
46
|
-
try {
|
|
47
|
-
if (!partNumber || partNumber.trim().length === 0) {
|
|
48
|
-
this.state = 'idle';
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (this.state === 'data' || this.state === 'error') {
|
|
52
|
-
this.state = (this.state + '-loading');
|
|
53
|
-
}
|
|
54
|
-
else
|
|
55
|
-
this.state = 'loading';
|
|
56
|
-
await new Promise(r => {
|
|
57
|
-
scopedTimeoutRef = setTimeout(r, 700);
|
|
58
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
59
|
-
});
|
|
60
|
-
const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
|
|
61
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
62
|
-
if (!partResponse)
|
|
63
|
-
throw new Error('wrongResponseFormat');
|
|
64
|
-
this.handleSettingData(partResponse);
|
|
65
|
-
}
|
|
66
|
-
this.errorMessage = null;
|
|
67
|
-
this.state = 'data';
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
71
|
-
return;
|
|
72
|
-
if (this.errorCallback)
|
|
73
|
-
this.errorCallback(error.message);
|
|
74
|
-
console.error(error);
|
|
75
|
-
this.setErrorMessage(error.message);
|
|
76
|
-
}
|
|
38
|
+
async fetchData(newData, headers = {}) {
|
|
39
|
+
await setPartLookupData(this, newData, headers);
|
|
77
40
|
}
|
|
78
41
|
async setErrorMessage(message) {
|
|
79
|
-
this
|
|
80
|
-
this.partInformation = null;
|
|
81
|
-
this.errorMessage = message;
|
|
42
|
+
setPartLookupErrorState(this, message);
|
|
82
43
|
}
|
|
83
|
-
|
|
84
|
-
await this.setData(partNumber, headers);
|
|
85
|
-
}
|
|
86
|
-
async loadingListener() {
|
|
44
|
+
onLoadingChange(newValue) {
|
|
87
45
|
if (this.loadingStateChange)
|
|
88
|
-
this.loadingStateChange(
|
|
89
|
-
}
|
|
90
|
-
async setMockData(newMockData) {
|
|
91
|
-
mockData = newMockData;
|
|
46
|
+
this.loadingStateChange(newValue);
|
|
92
47
|
}
|
|
93
48
|
render() {
|
|
94
|
-
|
|
95
|
-
const localName = this.
|
|
96
|
-
const hiddenFields = this.
|
|
97
|
-
const manufacturerData =
|
|
98
|
-
?
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{ label: texts.uzHsCode, key: 'hsCode', value: this.partInformation.hsCode },
|
|
122
|
-
]
|
|
123
|
-
: [];
|
|
49
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
50
|
+
const localName = this.partLookup ? this.localizationName || 'russian' : 'russian';
|
|
51
|
+
const hiddenFields = ((_a = this.hiddenFields) === null || _a === void 0 ? void 0 : _a.split(',').map(field => field === null || field === void 0 ? void 0 : field.trim())) || [];
|
|
52
|
+
const manufacturerData = [
|
|
53
|
+
{ label: this.locale.origin, key: 'origin', value: (_b = this.partLookup) === null || _b === void 0 ? void 0 : _b.origin },
|
|
54
|
+
{
|
|
55
|
+
label: this.locale.warrantyPrice,
|
|
56
|
+
key: 'warrantyPrice',
|
|
57
|
+
values: (_c = this.partLookup) === null || _c === void 0 ? void 0 : _c.prices.map(price => {
|
|
58
|
+
var _a;
|
|
59
|
+
return { header: price === null || price === void 0 ? void 0 : price.countryName, body: (_a = price === null || price === void 0 ? void 0 : price.warrantyPrice) === null || _a === void 0 ? void 0 : _a.formattedValue };
|
|
60
|
+
}),
|
|
61
|
+
},
|
|
62
|
+
{ label: this.locale.specialPrice, key: 'specialPrice' },
|
|
63
|
+
{ label: this.locale.wholesalesPrice, key: 'salesPrice' },
|
|
64
|
+
{ label: this.locale.pnc, key: 'pnc', value: (_d = this.partLookup) === null || _d === void 0 ? void 0 : _d.pnc },
|
|
65
|
+
{ label: this.locale.pncName.replace('$', localName), key: 'pnc', value: (_e = this.partLookup) === null || _e === void 0 ? void 0 : _e.pnc },
|
|
66
|
+
{ label: this.locale.binCode, key: 'binType', value: (_f = this.partLookup) === null || _f === void 0 ? void 0 : _f.binType },
|
|
67
|
+
{ label: this.locale.length, key: 'length', value: (_g = this.partLookup) === null || _g === void 0 ? void 0 : _g.length },
|
|
68
|
+
{ label: this.locale.width, key: 'width', value: (_h = this.partLookup) === null || _h === void 0 ? void 0 : _h.width },
|
|
69
|
+
{ label: this.locale.height, key: 'height', value: (_j = this.partLookup) === null || _j === void 0 ? void 0 : _j.height },
|
|
70
|
+
{ label: this.locale.netWeight, key: 'netWeight', value: (_k = this.partLookup) === null || _k === void 0 ? void 0 : _k.netWeight },
|
|
71
|
+
{ label: this.locale.grossWeight, key: 'grossWeight', value: (_l = this.partLookup) === null || _l === void 0 ? void 0 : _l.grossWeight },
|
|
72
|
+
{ label: this.locale.cubicMeasure, key: 'cubicMeasure', value: (_m = this.partLookup) === null || _m === void 0 ? void 0 : _m.cubicMeasure },
|
|
73
|
+
{ label: this.locale.hsCode, key: 'hsCode', value: (_o = this.partLookup) === null || _o === void 0 ? void 0 : _o.hsCode },
|
|
74
|
+
{ label: this.locale.uzHsCode, key: 'hsCode', value: (_p = this.partLookup) === null || _p === void 0 ? void 0 : _p.hsCode },
|
|
75
|
+
];
|
|
124
76
|
const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
|
|
125
|
-
return (h(Host, null, h(
|
|
77
|
+
return (h(Host, null, h(VehicleInfoLayout, { isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_q = this.partLookup) === null || _q === void 0 ? void 0 : _q.partNumber, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("flexible-container", null, h("div", { class: "flex p-[16px] [&>div]:grow overflow-auto gap-[16px] items-stretch justify-center md:justify-between flex-wrap" }, displayedManufacturerData.map(({ label, value, values }) => values ? (h(MaterialCard, { title: label, minWidth: "250px" }, h(MaterialCardChildren, { class: "flex flex-wrap gap-[8px] p-[2px]" }, values
|
|
126
78
|
.filter(x => x.body)
|
|
127
|
-
.map(x => (h("span", {
|
|
79
|
+
.map(x => (h("span", { class: "inline-flex items-center bg-red-50 text-red-800 font-medium px-3 text-[16px] py-1 me-1 mt-2 rounded-lg border border-red-300" }, x.header && h("span", { class: "font-semibold" }, x.header, ":"), h("span", { class: "ml-1" }, x.body))))))) : (h(MaterialCard, { desc: (value === null || value === void 0 ? void 0 : value.toString()) || '', title: label, minWidth: "250px" }))))))));
|
|
128
80
|
}
|
|
129
81
|
static get is() { return "manufacturer-lookup"; }
|
|
130
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -140,14 +92,20 @@ export class ManufacturerLookup {
|
|
|
140
92
|
}
|
|
141
93
|
static get properties() {
|
|
142
94
|
return {
|
|
143
|
-
"
|
|
95
|
+
"language": {
|
|
144
96
|
"type": "string",
|
|
145
|
-
"attribute": "
|
|
97
|
+
"attribute": "language",
|
|
146
98
|
"mutable": false,
|
|
147
99
|
"complexType": {
|
|
148
|
-
"original": "
|
|
149
|
-
"resolved": "
|
|
150
|
-
"references": {
|
|
100
|
+
"original": "LanguageKeys",
|
|
101
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
102
|
+
"references": {
|
|
103
|
+
"LanguageKeys": {
|
|
104
|
+
"location": "import",
|
|
105
|
+
"path": "~features/multi-lingual",
|
|
106
|
+
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
151
109
|
},
|
|
152
110
|
"required": false,
|
|
153
111
|
"optional": false,
|
|
@@ -158,11 +116,11 @@ export class ManufacturerLookup {
|
|
|
158
116
|
"getter": false,
|
|
159
117
|
"setter": false,
|
|
160
118
|
"reflect": false,
|
|
161
|
-
"defaultValue": "''"
|
|
119
|
+
"defaultValue": "'en'"
|
|
162
120
|
},
|
|
163
|
-
"
|
|
121
|
+
"coreOnly": {
|
|
164
122
|
"type": "boolean",
|
|
165
|
-
"attribute": "
|
|
123
|
+
"attribute": "core-only",
|
|
166
124
|
"mutable": false,
|
|
167
125
|
"complexType": {
|
|
168
126
|
"original": "boolean",
|
|
@@ -180,13 +138,13 @@ export class ManufacturerLookup {
|
|
|
180
138
|
"reflect": false,
|
|
181
139
|
"defaultValue": "false"
|
|
182
140
|
},
|
|
183
|
-
"
|
|
184
|
-
"type": "
|
|
185
|
-
"attribute": "
|
|
141
|
+
"isDev": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"attribute": "is-dev",
|
|
186
144
|
"mutable": false,
|
|
187
145
|
"complexType": {
|
|
188
|
-
"original": "
|
|
189
|
-
"resolved": "
|
|
146
|
+
"original": "boolean",
|
|
147
|
+
"resolved": "boolean",
|
|
190
148
|
"references": {}
|
|
191
149
|
},
|
|
192
150
|
"required": false,
|
|
@@ -197,12 +155,11 @@ export class ManufacturerLookup {
|
|
|
197
155
|
},
|
|
198
156
|
"getter": false,
|
|
199
157
|
"setter": false,
|
|
200
|
-
"reflect": false
|
|
201
|
-
"defaultValue": "''"
|
|
158
|
+
"reflect": false
|
|
202
159
|
},
|
|
203
|
-
"
|
|
160
|
+
"baseUrl": {
|
|
204
161
|
"type": "string",
|
|
205
|
-
"attribute": "
|
|
162
|
+
"attribute": "base-url",
|
|
206
163
|
"mutable": false,
|
|
207
164
|
"complexType": {
|
|
208
165
|
"original": "string",
|
|
@@ -217,58 +174,30 @@ export class ManufacturerLookup {
|
|
|
217
174
|
},
|
|
218
175
|
"getter": false,
|
|
219
176
|
"setter": false,
|
|
220
|
-
"reflect": false
|
|
221
|
-
"defaultValue": "''"
|
|
222
|
-
},
|
|
223
|
-
"language": {
|
|
224
|
-
"type": "string",
|
|
225
|
-
"attribute": "language",
|
|
226
|
-
"mutable": false,
|
|
227
|
-
"complexType": {
|
|
228
|
-
"original": "LanguageKeys",
|
|
229
|
-
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
230
|
-
"references": {
|
|
231
|
-
"LanguageKeys": {
|
|
232
|
-
"location": "import",
|
|
233
|
-
"path": "~types/locale",
|
|
234
|
-
"id": "src/global/types/locale.ts::LanguageKeys"
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
"required": false,
|
|
239
|
-
"optional": false,
|
|
240
|
-
"docs": {
|
|
241
|
-
"tags": [],
|
|
242
|
-
"text": ""
|
|
243
|
-
},
|
|
244
|
-
"getter": false,
|
|
245
|
-
"setter": false,
|
|
246
|
-
"reflect": false,
|
|
247
|
-
"defaultValue": "'en'"
|
|
177
|
+
"reflect": false
|
|
248
178
|
},
|
|
249
|
-
"
|
|
250
|
-
"type": "
|
|
251
|
-
"attribute": "
|
|
179
|
+
"headers": {
|
|
180
|
+
"type": "unknown",
|
|
181
|
+
"attribute": "headers",
|
|
252
182
|
"mutable": false,
|
|
253
183
|
"complexType": {
|
|
254
|
-
"original": "
|
|
255
|
-
"resolved": "
|
|
184
|
+
"original": "object",
|
|
185
|
+
"resolved": "object",
|
|
256
186
|
"references": {}
|
|
257
187
|
},
|
|
258
188
|
"required": false,
|
|
259
|
-
"optional":
|
|
189
|
+
"optional": false,
|
|
260
190
|
"docs": {
|
|
261
191
|
"tags": [],
|
|
262
192
|
"text": ""
|
|
263
193
|
},
|
|
264
194
|
"getter": false,
|
|
265
195
|
"setter": false,
|
|
266
|
-
"
|
|
267
|
-
"defaultValue": "''"
|
|
196
|
+
"defaultValue": "{}"
|
|
268
197
|
},
|
|
269
|
-
"
|
|
198
|
+
"queryString": {
|
|
270
199
|
"type": "string",
|
|
271
|
-
"attribute": "
|
|
200
|
+
"attribute": "query-string",
|
|
272
201
|
"mutable": false,
|
|
273
202
|
"complexType": {
|
|
274
203
|
"original": "string",
|
|
@@ -284,19 +213,25 @@ export class ManufacturerLookup {
|
|
|
284
213
|
"getter": false,
|
|
285
214
|
"setter": false,
|
|
286
215
|
"reflect": false,
|
|
287
|
-
"defaultValue": "'
|
|
216
|
+
"defaultValue": "''"
|
|
288
217
|
},
|
|
289
218
|
"errorCallback": {
|
|
290
219
|
"type": "unknown",
|
|
291
220
|
"attribute": "error-callback",
|
|
292
221
|
"mutable": false,
|
|
293
222
|
"complexType": {
|
|
294
|
-
"original": "(errorMessage:
|
|
295
|
-
"resolved": "(errorMessage: string) => void",
|
|
296
|
-
"references": {
|
|
223
|
+
"original": "(errorMessage: ErrorKeys) => void",
|
|
224
|
+
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
225
|
+
"references": {
|
|
226
|
+
"ErrorKeys": {
|
|
227
|
+
"location": "import",
|
|
228
|
+
"path": "~features/multi-lingual",
|
|
229
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
297
232
|
},
|
|
298
233
|
"required": false,
|
|
299
|
-
"optional":
|
|
234
|
+
"optional": true,
|
|
300
235
|
"docs": {
|
|
301
236
|
"tags": [],
|
|
302
237
|
"text": ""
|
|
@@ -345,61 +280,67 @@ export class ManufacturerLookup {
|
|
|
345
280
|
},
|
|
346
281
|
"getter": false,
|
|
347
282
|
"setter": false
|
|
283
|
+
},
|
|
284
|
+
"hiddenFields": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"attribute": "hidden-fields",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "string",
|
|
290
|
+
"resolved": "string",
|
|
291
|
+
"references": {}
|
|
292
|
+
},
|
|
293
|
+
"required": false,
|
|
294
|
+
"optional": false,
|
|
295
|
+
"docs": {
|
|
296
|
+
"tags": [],
|
|
297
|
+
"text": ""
|
|
298
|
+
},
|
|
299
|
+
"getter": false,
|
|
300
|
+
"setter": false,
|
|
301
|
+
"reflect": false,
|
|
302
|
+
"defaultValue": "''"
|
|
303
|
+
},
|
|
304
|
+
"localizationName": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"attribute": "localization-name",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string",
|
|
310
|
+
"resolved": "string",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": true,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": ""
|
|
318
|
+
},
|
|
319
|
+
"getter": false,
|
|
320
|
+
"setter": false,
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"defaultValue": "''"
|
|
348
323
|
}
|
|
349
324
|
};
|
|
350
325
|
}
|
|
351
326
|
static get states() {
|
|
352
327
|
return {
|
|
353
|
-
"
|
|
328
|
+
"locale": {},
|
|
329
|
+
"searchString": {},
|
|
330
|
+
"isError": {},
|
|
354
331
|
"errorMessage": {},
|
|
355
|
-
"
|
|
356
|
-
"
|
|
357
|
-
"sharedLocales": {},
|
|
358
|
-
"locale": {}
|
|
332
|
+
"isLoading": {},
|
|
333
|
+
"partLookup": {}
|
|
359
334
|
};
|
|
360
335
|
}
|
|
361
336
|
static get methods() {
|
|
362
337
|
return {
|
|
363
|
-
"
|
|
364
|
-
"complexType": {
|
|
365
|
-
"signature": "(newData: PartLookupDTO | string, headers?: any) => Promise<void>",
|
|
366
|
-
"parameters": [{
|
|
367
|
-
"name": "newData",
|
|
368
|
-
"type": "string | PartLookupDTO",
|
|
369
|
-
"docs": ""
|
|
370
|
-
}, {
|
|
371
|
-
"name": "headers",
|
|
372
|
-
"type": "any",
|
|
373
|
-
"docs": ""
|
|
374
|
-
}],
|
|
375
|
-
"references": {
|
|
376
|
-
"Promise": {
|
|
377
|
-
"location": "global",
|
|
378
|
-
"id": "global::Promise"
|
|
379
|
-
},
|
|
380
|
-
"PartLookupDTO": {
|
|
381
|
-
"location": "import",
|
|
382
|
-
"path": "~types/generated/part/part-lookup-dto",
|
|
383
|
-
"id": "src/global/types/generated/part/part-lookup-dto.ts::PartLookupDTO"
|
|
384
|
-
},
|
|
385
|
-
"ReturnType": {
|
|
386
|
-
"location": "global",
|
|
387
|
-
"id": "global::ReturnType"
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
"return": "Promise<void>"
|
|
391
|
-
},
|
|
392
|
-
"docs": {
|
|
393
|
-
"text": "",
|
|
394
|
-
"tags": []
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"setErrorMessage": {
|
|
338
|
+
"setMockData": {
|
|
398
339
|
"complexType": {
|
|
399
|
-
"signature": "(
|
|
340
|
+
"signature": "(newMockData: PartLookupMock) => Promise<void>",
|
|
400
341
|
"parameters": [{
|
|
401
|
-
"name": "
|
|
402
|
-
"type": "
|
|
342
|
+
"name": "newMockData",
|
|
343
|
+
"type": "{ [key: string]: PartLookupDTO; }",
|
|
403
344
|
"docs": ""
|
|
404
345
|
}],
|
|
405
346
|
"references": {
|
|
@@ -407,10 +348,10 @@ export class ManufacturerLookup {
|
|
|
407
348
|
"location": "global",
|
|
408
349
|
"id": "global::Promise"
|
|
409
350
|
},
|
|
410
|
-
"
|
|
351
|
+
"PartLookupMock": {
|
|
411
352
|
"location": "import",
|
|
412
|
-
"path": "~
|
|
413
|
-
"id": "src/
|
|
353
|
+
"path": "~features/part-lookup-components",
|
|
354
|
+
"id": "src/features/part-lookup-components/index.ts::PartLookupMock"
|
|
414
355
|
}
|
|
415
356
|
},
|
|
416
357
|
"return": "Promise<void>"
|
|
@@ -422,10 +363,10 @@ export class ManufacturerLookup {
|
|
|
422
363
|
},
|
|
423
364
|
"fetchData": {
|
|
424
365
|
"complexType": {
|
|
425
|
-
"signature": "(
|
|
366
|
+
"signature": "(newData: PartLookupDTO | string, headers?: any) => Promise<void>",
|
|
426
367
|
"parameters": [{
|
|
427
|
-
"name": "
|
|
428
|
-
"type": "string",
|
|
368
|
+
"name": "newData",
|
|
369
|
+
"type": "string | PartLookupDTO",
|
|
429
370
|
"docs": ""
|
|
430
371
|
}, {
|
|
431
372
|
"name": "headers",
|
|
@@ -436,6 +377,11 @@ export class ManufacturerLookup {
|
|
|
436
377
|
"Promise": {
|
|
437
378
|
"location": "global",
|
|
438
379
|
"id": "global::Promise"
|
|
380
|
+
},
|
|
381
|
+
"PartLookupDTO": {
|
|
382
|
+
"location": "import",
|
|
383
|
+
"path": "~types/generated/part/part-lookup-dto",
|
|
384
|
+
"id": "src/global/types/generated/part/part-lookup-dto.ts::PartLookupDTO"
|
|
439
385
|
}
|
|
440
386
|
},
|
|
441
387
|
"return": "Promise<void>"
|
|
@@ -445,12 +391,12 @@ export class ManufacturerLookup {
|
|
|
445
391
|
"tags": []
|
|
446
392
|
}
|
|
447
393
|
},
|
|
448
|
-
"
|
|
394
|
+
"setErrorMessage": {
|
|
449
395
|
"complexType": {
|
|
450
|
-
"signature": "(
|
|
396
|
+
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
451
397
|
"parameters": [{
|
|
452
|
-
"name": "
|
|
453
|
-
"type": "
|
|
398
|
+
"name": "message",
|
|
399
|
+
"type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
|
|
454
400
|
"docs": ""
|
|
455
401
|
}],
|
|
456
402
|
"references": {
|
|
@@ -458,15 +404,10 @@ export class ManufacturerLookup {
|
|
|
458
404
|
"location": "global",
|
|
459
405
|
"id": "global::Promise"
|
|
460
406
|
},
|
|
461
|
-
"
|
|
462
|
-
"location": "import",
|
|
463
|
-
"path": "~types/components",
|
|
464
|
-
"id": "src/global/types/components.ts::MockJson"
|
|
465
|
-
},
|
|
466
|
-
"PartLookupDTO": {
|
|
407
|
+
"ErrorKeys": {
|
|
467
408
|
"location": "import",
|
|
468
|
-
"path": "~
|
|
469
|
-
"id": "src/
|
|
409
|
+
"path": "~features/multi-lingual",
|
|
410
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
470
411
|
}
|
|
471
412
|
},
|
|
472
413
|
"return": "Promise<void>"
|
|
@@ -484,8 +425,8 @@ export class ManufacturerLookup {
|
|
|
484
425
|
"propName": "language",
|
|
485
426
|
"methodName": "changeLanguage"
|
|
486
427
|
}, {
|
|
487
|
-
"propName": "
|
|
488
|
-
"methodName": "
|
|
428
|
+
"propName": "isLoading",
|
|
429
|
+
"methodName": "onLoadingChange"
|
|
489
430
|
}];
|
|
490
431
|
}
|
|
491
432
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{display:block}*{font-family:Arial}.static{position:static}.
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.absolute{position:absolute}.\!relative{position:relative!important}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.block{display:block}.flex{display:flex}.hidden{display:none}.origin-left{transform-origin:left}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\!overflow-hidden{overflow:hidden!important}.\!rounded-\[4px\]{border-radius:4px!important}.border{border-width:1px}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.shift-skeleton{border-radius:4px!important;position:relative!important}.loading .shift-skeleton,.loading.shift-skeleton{overflow:hidden!important;pointer-events:none!important;position:relative!important}.shift-skeleton:after{background:linear-gradient(-45deg,#d4d8de,#e2e5e9,#d4d8de);background-size:300% 300%;border-radius:4px!important;content:"";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transform-origin:left;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;z-index:10}.loading .shift-skeleton:after,.loading.shift-skeleton:after{--tw-scale-x:1;animation:shimmer 2s ease-in-out infinite;opacity:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes shimmer{0%{background-position:100% 0}50%{background-position:0 100%}to{background-position:100% 0}}.vehicle-info-container{background-color:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);overflow:hidden;padding:0;position:relative;transition-duration:.5s;transition-property:all}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#f6f6f6;border-radius:5px;border-top:1px solid #dcdcdc;border-top-left-radius:0;border-top-right-radius:0}::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.hide-scroll ::-webkit-scrollbar-thumb,.hide-scroll::-webkit-scrollbar-thumb,.loading ::-webkit-scrollbar-thumb{background:transparent}.vehicle-info-body{display:flex;flex-direction:column;overflow:hidden;position:relative;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out}.vehicle-info-content{transition-duration:.5s;transition-property:all;width:100%}.vehicle-info-header{align-items:center;background-color:#f6f6f6;border:1px solid #ededed;display:flex;height:54px;justify-content:center;text-align:center}.vehicle-info-header-vin{display:inline-block;font-size:16px;transition-duration:.5s;transition-property:all}.vehicle-info-header-vin span{color:#ef4444}.loading .vehicle-info-header-vin{opacity:0;transform:scale(1.5);visibility:hidden}:host{display:block}*{font-family:Arial}.static{position:static}.h-\[200px\]{height:200px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.text-\[26px\]{font-size:26px}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.\!pointer-events-none{pointer-events:none!important}.\!w-full{width:100%!important}.translate-x-\[-200\%\]{--tw-translate-x:-200%}.translate-x-\[-200\%\],.translate-y-\[200\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[200\%\]{--tw-translate-y:200%}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\!duration-0{transition-duration:0s!important}.\[\&_\*\]\:\!pointer-events-none *{pointer-events:none!important}
|