adp-web-components 0.0.89 → 0.0.91
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/activation-icon-DEYW0itX.js +16 -0
- package/dist/cjs/cn-BHnqYtun.js +2597 -0
- package/dist/cjs/contact-us-form.cjs.entry.js +11 -22
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +287 -347
- package/dist/cjs/empty-table-icon-PdTX6gpI.js +16 -0
- package/dist/cjs/flexible-container.cjs.entry.js +131 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +44 -100
- package/dist/cjs/{get-local-language-e539cfdc.js → get-local-language-AedNCS4v.js} +375 -332
- package/dist/cjs/{index-a8de3655.js → index-BjyafrBw.js} +525 -288
- package/dist/cjs/information-table.cjs.entry.js +43 -0
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loading-spinner.cjs.entry.js +6 -10
- package/dist/cjs/material-card-Cd0L1Get.js +43 -0
- package/dist/cjs/part-lookup.cjs.entry.js +39 -25
- package/dist/cjs/service-booking-form.cjs.entry.js +10 -21
- package/dist/cjs/shift-accordion.cjs.entry.js +29 -0
- package/dist/cjs/shift-components.cjs.js +7 -8
- package/dist/cjs/shift-slider.cjs.entry.js +70 -0
- package/dist/cjs/shift-tab-content.cjs.entry.js +42 -0
- package/dist/cjs/shift-tabs_2.cjs.entry.js +332 -0
- package/dist/cjs/{type-3d22f1fc.js → type-A-Wi_ktA.js} +50 -1
- package/dist/cjs/{type-3183db65.js → type-Dm3JBAef.js} +32 -123
- package/dist/cjs/{type-c576b922.js → type-ooYU2cCM.js} +4 -4
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +1206 -0
- package/dist/cjs/vehicle-info-layout-Dp2Po_uc.js +16 -0
- package/dist/cjs/vehicle-lookup.cjs.entry.js +62 -49
- package/dist/cjs/vin-extractor.cjs.entry.js +24 -34
- package/dist/collection/collection-manifest.json +19 -13
- package/dist/collection/components/components/card-content.js +7 -0
- package/dist/collection/components/components/flexible-container.css +1 -0
- package/dist/collection/components/components/flexible-container.js +315 -0
- package/dist/collection/components/components/information-table.css +1 -0
- package/dist/collection/components/components/information-table.js +180 -0
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/loading-spinner.js +4 -5
- package/dist/collection/components/components/material-card.js +34 -0
- package/dist/collection/components/{vehicle-lookup/service-history.css → components/shift-accordion.css} +1 -1
- package/dist/collection/components/components/shift-accordion.js +102 -0
- package/dist/collection/components/components/shift-slider.css +1 -0
- package/dist/collection/components/components/shift-slider.js +95 -0
- package/dist/collection/components/components/shift-tab-content.css +1 -0
- package/dist/collection/components/components/shift-tab-content.js +98 -0
- package/dist/collection/components/components/shift-tabs.css +1 -0
- package/dist/collection/components/components/shift-tabs.js +140 -0
- package/dist/collection/components/form-elements/form-dialog.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +16 -12
- package/dist/collection/components/form-elements/form-input.css +1 -1
- package/dist/collection/components/form-elements/form-input.js +45 -29
- package/dist/collection/components/form-elements/form-select.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +57 -41
- package/dist/collection/components/form-elements/form-shadow-input.css +1 -1
- package/dist/collection/components/form-elements/form-shadow-input.js +11 -9
- package/dist/collection/components/form-elements/form-structure-error.css +1 -1
- package/dist/collection/components/form-elements/form-structure-error.js +7 -5
- package/dist/collection/components/form-elements/form-structure.css +1 -1
- package/dist/collection/components/form-elements/form-structure.js +32 -16
- package/dist/collection/components/form-elements/form-submit.css +1 -1
- package/dist/collection/components/form-elements/form-submit.js +18 -10
- package/dist/collection/components/form-elements/form-text-area.css +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +36 -23
- package/dist/collection/components/forms/contact-us/element-mapper.js +1 -1
- package/dist/collection/components/forms/contact-us/form.css +1 -1
- package/dist/collection/components/forms/contact-us-form.js +39 -24
- package/dist/collection/components/forms/service-booking/element-mapper.js +1 -1
- package/dist/collection/components/forms/service-booking-form.js +39 -24
- 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 +179 -188
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +221 -236
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +194 -234
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.js +152 -66
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +5 -5
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +4 -4
- 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 +170 -197
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +826 -0
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +542 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +171 -98
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +384 -0
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +390 -0
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +145 -181
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -0
- package/dist/collection/components/vehicle-lookup/{warranty-details.js → vehicle-warranty-details.js} +315 -277
- package/dist/collection/components/vin-extractor/vin-extractor.js +72 -42
- 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/{global/lib → features/multi-lingual}/get-local-language.js +16 -10
- 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/features/vehicle-info-layout/vehicle-info-layout.js +7 -0
- 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/triangle-icon.js +6 -0
- package/dist/collection/global/lib/children-with-tag.js +24 -0
- package/dist/collection/global/lib/container-has-tag.js +28 -0
- package/dist/collection/global/lib/parents-with-tag.js +22 -0
- package/dist/collection/global/lib/scroll-into-container-view.js +16 -0
- package/dist/collection/global/types/generated/part/branch-dead-stock-dto.js +1 -0
- package/dist/collection/global/types/generated/part/dead-stock-dto.js +1 -0
- package/dist/collection/global/types/generated/part/hs-code-dto.js +1 -0
- package/dist/collection/global/types/generated/part/part-lookup-dto.js +1 -0
- package/dist/collection/global/types/generated/part/part-price-dto.js +1 -0
- package/dist/collection/global/types/generated/part/price-dto.js +1 -0
- package/dist/collection/global/types/generated/part/stock-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/accessory-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-image-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/ssc-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/ssc-labor-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/ssc-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-labor-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-lookup-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-sale-information.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-history-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-group.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-specification-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-warranty-dto.js +1 -0
- package/dist/collection/locale-mapper.js +3 -3
- package/dist/collection/locales/partLookup/manufacturer/type.js +3 -3
- package/dist/collection/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.js +10 -6
- package/dist/collection/locales/vehicleLookup/warranty/type.js +1 -0
- package/dist/collection/locales/vehicleLookup/wrapper-type.js +2 -2
- package/dist/collection/templates/part-lookup/mock-data.js +99 -16
- package/dist/collection/templates/vehicle-lookup/mock-data.js +228 -191
- package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +45 -27
- 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.d.ts +11 -0
- package/dist/components/flexible-container.js +5 -0
- 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-shadow-input.js +1 -1
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{paint-thickness.d.ts → information-table.d.ts} +4 -4
- package/dist/components/information-table.js +5 -0
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-B1fdQNyr.js +5 -0
- package/dist/components/p-BK16Cn81.js +5 -0
- package/dist/components/p-BkfCVIF9.js +5 -0
- package/dist/components/p-BsHunqQT.js +5 -0
- package/dist/components/p-BwUMwWdE.js +5 -0
- package/dist/components/p-C4zpDhOi.js +5 -0
- package/dist/components/p-CHE0gMDU.js +5 -0
- package/dist/components/p-CRB_syll.js +5 -0
- package/dist/components/p-CV6-hCEd.js +5 -0
- package/dist/components/p-CYfVWbdE.js +5 -0
- package/dist/components/{p-c981ee34.js → p-CYs-Cfbz.js} +1 -1
- package/dist/components/p-Ce4X3l8Z.js +5 -0
- package/dist/components/p-CffGxxO4.js +5 -0
- package/dist/components/p-CgP_rdz5.js +5 -0
- package/dist/components/p-CmuF1zVa.js +5 -0
- package/dist/components/p-DPxUsrGL.js +5 -0
- package/dist/components/p-DSIG_p-W.js +5 -0
- package/dist/components/p-DXHFdZX_.js +5 -0
- package/dist/components/p-Dkva9a7P.js +5 -0
- package/dist/components/p-DrFf_ORZ.js +5 -0
- package/dist/components/p-DsfktPnM.js +5 -0
- package/dist/components/p-DyWp9Iox.js +5 -0
- package/dist/components/p-Fudjizxb.js +5 -0
- package/dist/components/p-P3fAKtye.js +5 -0
- package/dist/components/p-QtVWfPMe.js +5 -0
- package/dist/components/p-THNpWs_W.js +5 -0
- package/dist/components/p-gwgMa4kM.js +5 -0
- package/dist/components/p-iCYlD4i9.js +5 -0
- package/dist/components/p-kp6CyIhI.js +5 -0
- package/dist/components/p-nBbuIowK.js +5 -0
- package/dist/components/p-piZ41_ho.js +5 -0
- package/dist/components/p-qw7FLuM-.js +5 -0
- package/dist/components/p-vhsj8wEw.js +5 -0
- package/dist/components/p-zDS3r6-j.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/{service-history.d.ts → shift-accordion.d.ts} +4 -4
- package/dist/components/shift-accordion.js +5 -0
- package/dist/components/{dynamic-claim.d.ts → shift-slider.d.ts} +4 -4
- package/dist/components/shift-slider.js +5 -0
- package/dist/components/{warranty-details.d.ts → shift-tab-content.d.ts} +4 -4
- package/dist/components/shift-tab-content.js +5 -0
- package/dist/components/{dynamic-redeem.d.ts → shift-tabs.d.ts} +4 -4
- package/dist/components/shift-tabs.js +5 -0
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.d.ts +11 -0
- package/dist/components/vehicle-claimable-items.js +5 -0
- package/dist/components/vehicle-item-claim-form.d.ts +11 -0
- package/dist/components/vehicle-item-claim-form.js +5 -0
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.d.ts +11 -0
- package/dist/components/vehicle-paint-thickness.js +5 -0
- package/dist/components/vehicle-service-history.d.ts +11 -0
- package/dist/components/vehicle-service-history.js +5 -0
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.d.ts +11 -0
- package/dist/components/vehicle-warranty-details.js +5 -0
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/activation-icon-7GJaxZ20.js +14 -0
- package/dist/esm/cn-BK16Cn81.js +2595 -0
- package/dist/esm/contact-us-form.entry.js +11 -20
- package/dist/esm/dead-stock-lookup_3.entry.js +287 -345
- package/dist/esm/empty-table-icon-DvQk12N9.js +14 -0
- package/dist/esm/flexible-container.entry.js +129 -0
- package/dist/esm/form-dialog_8.entry.js +44 -98
- package/dist/esm/{get-local-language-e286080a.js → get-local-language-DuHpVAu5.js} +376 -333
- package/dist/esm/{index-3a623f7c.js → index-CikEOqe0.js} +524 -268
- package/dist/esm/information-table.entry.js +41 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loading-spinner.entry.js +6 -8
- package/dist/esm/material-card-DiAl-884.js +40 -0
- package/dist/esm/part-lookup.entry.js +39 -23
- package/dist/esm/service-booking-form.entry.js +10 -19
- package/dist/esm/shift-accordion.entry.js +27 -0
- package/dist/esm/shift-components.js +5 -5
- package/dist/esm/shift-slider.entry.js +68 -0
- package/dist/esm/shift-tab-content.entry.js +40 -0
- package/dist/esm/shift-tabs_2.entry.js +329 -0
- package/dist/esm/{type-68307857.js → type-B6613elJ.js} +32 -123
- package/dist/esm/{type-1d1a2052.js → type-CFBDfJID.js} +5 -5
- package/dist/esm/type-CnAEgqjH.js +82 -0
- package/dist/esm/vehicle-accessories_6.entry.js +1199 -0
- package/dist/esm/vehicle-info-layout-CNGGKAia.js +14 -0
- package/dist/esm/vehicle-lookup.entry.js +62 -47
- package/dist/esm/vin-extractor.entry.js +24 -32
- package/dist/locales/errors/ru.json +10 -10
- package/dist/locales/partLookup/deadStock/ru.json +3 -3
- package/dist/locales/partLookup/distributor/ru.json +14 -14
- package/dist/locales/partLookup/manufacturer/ar.json +3 -3
- package/dist/locales/partLookup/manufacturer/en.json +3 -3
- package/dist/locales/partLookup/manufacturer/ku.json +3 -3
- package/dist/locales/partLookup/manufacturer/ru.json +15 -15
- package/dist/locales/partLookup/manufacturer/type.ts +3 -3
- package/dist/locales/vehicleLookup/accessories/ru.json +6 -6
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ar.json +7 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/en.json +5 -1
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ku.json +7 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ru.json +11 -7
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.ts +11 -7
- package/dist/locales/vehicleLookup/paintThickness/ru.json +7 -7
- package/dist/locales/vehicleLookup/serviceHistory/ru.json +8 -8
- package/dist/locales/vehicleLookup/specification/ru.json +8 -8
- package/dist/locales/vehicleLookup/warranty/ar.json +1 -0
- package/dist/locales/vehicleLookup/warranty/en.json +1 -0
- package/dist/locales/vehicleLookup/warranty/ku.json +1 -0
- package/dist/locales/vehicleLookup/warranty/ru.json +17 -16
- package/dist/locales/vehicleLookup/warranty/type.ts +1 -0
- package/dist/locales/vehicleLookup/wrapper-type.ts +2 -2
- package/dist/shift-components/p-010b5793.entry.js +5 -0
- package/dist/shift-components/p-03483842.entry.js +5 -0
- package/dist/shift-components/p-0a55771f.entry.js +5 -0
- package/dist/shift-components/p-0c8bbdd0.entry.js +5 -0
- package/dist/shift-components/p-20bdbcb5.entry.js +5 -0
- package/dist/shift-components/p-238f5df0.entry.js +5 -0
- package/dist/shift-components/p-42218765.entry.js +5 -0
- package/dist/shift-components/p-526a4ff7.entry.js +5 -0
- package/dist/shift-components/p-701e3fb0.entry.js +5 -0
- package/dist/shift-components/p-7225e52b.entry.js +5 -0
- package/dist/shift-components/p-BK16Cn81.js +5 -0
- package/dist/shift-components/p-BSpTbUWi.js +5 -0
- package/dist/shift-components/p-CC-dsMaG.js +5 -0
- package/dist/shift-components/p-CikEOqe0.js +6 -0
- package/dist/shift-components/p-CsAICJSF.js +5 -0
- package/dist/shift-components/p-CxstRFDI.js +5 -0
- package/dist/shift-components/p-DF2jCW4D.js +5 -0
- package/dist/shift-components/p-DdH9nNoC.js +5 -0
- package/dist/shift-components/p-Wtw8qj6x.js +5 -0
- package/dist/shift-components/p-a76db330.entry.js +5 -0
- package/dist/shift-components/p-d46b0857.entry.js +5 -0
- package/dist/shift-components/p-d843769d.entry.js +5 -0
- package/dist/shift-components/p-ebc23eef.entry.js +5 -0
- package/dist/shift-components/p-ef9ad340.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/card-content.d.ts +10 -0
- package/dist/types/components/components/flexible-container.d.ts +27 -0
- package/dist/types/components/components/information-table.d.ts +22 -0
- package/dist/types/components/components/material-card.d.ts +16 -0
- package/dist/types/components/components/shift-accordion.d.ts +13 -0
- package/dist/types/components/components/shift-slider.d.ts +11 -0
- package/dist/types/components/components/shift-tab-content.d.ts +12 -0
- package/dist/types/components/components/shift-tabs.d.ts +12 -0
- 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 +26 -24
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +25 -26
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +25 -27
- package/dist/types/components/part-lookup/part-lookup.d.ts +17 -12
- package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +5 -4
- package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +4 -2
- 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 +25 -29
- package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +72 -0
- package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +54 -0
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +27 -24
- package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +35 -0
- package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +32 -0
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +22 -23
- package/dist/types/components/vehicle-lookup/{warranty-details.d.ts → vehicle-warranty-details.d.ts} +28 -31
- package/dist/types/components/vin-extractor/vin-extractor.d.ts +2 -2
- package/dist/types/components.d.ts +1068 -219
- package/dist/types/features/image-viewer/image-viewer-logic.d.ts +3 -0
- package/dist/types/features/image-viewer/image-viewer.d.ts +7 -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/features/vehicle-info-layout/vehicle-info-layout.d.ts +11 -0
- 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/triangle-icon.d.ts +6 -0
- package/dist/types/global/lib/children-with-tag.d.ts +1 -0
- package/dist/types/global/lib/container-has-tag.d.ts +1 -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/lib/scroll-into-container-view.d.ts +1 -0
- 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/part/branch-dead-stock-dto.d.ts +5 -0
- package/dist/types/global/types/generated/part/dead-stock-dto.d.ts +6 -0
- package/dist/types/global/types/generated/part/hs-code-dto.d.ts +5 -0
- package/dist/types/global/types/generated/part/part-lookup-dto.d.ts +27 -0
- package/dist/types/global/types/generated/part/part-price-dto.d.ts +10 -0
- package/dist/types/global/types/generated/part/price-dto.d.ts +6 -0
- package/dist/types/global/types/generated/part/stock-part-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/accessory-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-image-dto.d.ts +4 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-part-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/ssc-dto.d.ts +10 -0
- package/dist/types/global/types/generated/vehicle-lookup/ssc-labor-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/ssc-part-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.d.ts +7 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.d.ts +9 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-labor-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +27 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-part-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-sale-information.d.ts +16 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-history-dto.d.ts +16 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-dto.d.ts +34 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-group.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-specification-dto.d.ts +22 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-warranty-dto.d.ts +8 -0
- package/dist/types/locale-mapper.d.ts +2 -2
- package/dist/types/locales/partLookup/distributor/type.d.ts +2 -2
- package/dist/types/locales/partLookup/manufacturer/type.d.ts +6 -6
- package/dist/types/locales/partLookup/wrapper-type.d.ts +8 -8
- package/dist/types/locales/vehicleLookup/accessories/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.d.ts +32 -16
- package/dist/types/locales/vehicleLookup/paintThickness/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/warranty/type.d.ts +2 -0
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +56 -46
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/package.json +9 -8
- package/LICENSE +0 -21
- package/dist/cjs/app-globals-4aa8f46f.js +0 -46
- package/dist/cjs/cn-f559f9e5.js +0 -2588
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +0 -1224
- package/dist/cjs/dynamic-redeem.cjs.entry.js +0 -210
- package/dist/cjs/type-87edb16d.js +0 -53
- package/dist/collection/components/vehicle-lookup/components/SSCTable.js +0 -18
- package/dist/collection/components/vehicle-lookup/dynamic-claim.css +0 -1
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +0 -756
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +0 -1
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +0 -444
- package/dist/collection/components/vehicle-lookup/paint-thickness.css +0 -1
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +0 -414
- package/dist/collection/components/vehicle-lookup/service-history.js +0 -397
- package/dist/collection/components/vehicle-lookup/warranty-details.css +0 -1
- package/dist/collection/global/api/partInformation.js +0 -32
- package/dist/collection/global/api/vehicleInformation.js +0 -48
- package/dist/collection/global/types/vehicle-information.js +0 -5
- package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +0 -285
- package/dist/components/dynamic-claim.js +0 -5
- package/dist/components/dynamic-redeem.js +0 -5
- package/dist/components/p-00a27a58.js +0 -5
- package/dist/components/p-0aea36b4.js +0 -5
- package/dist/components/p-0fa9085a.js +0 -5
- package/dist/components/p-1c45c079.js +0 -5
- package/dist/components/p-28cf4dbe.js +0 -5
- package/dist/components/p-29a57e34.js +0 -5
- package/dist/components/p-2c893802.js +0 -5
- package/dist/components/p-3a216a1c.js +0 -5
- package/dist/components/p-48a28736.js +0 -5
- package/dist/components/p-48a9b8e5.js +0 -5
- package/dist/components/p-4ddb3435.js +0 -5
- package/dist/components/p-5709db05.js +0 -5
- package/dist/components/p-5afcb14f.js +0 -5
- package/dist/components/p-7a1dd4fc.js +0 -5
- package/dist/components/p-7d3dd7c2.js +0 -5
- package/dist/components/p-8b1d90d7.js +0 -5
- package/dist/components/p-8cd53e18.js +0 -5
- package/dist/components/p-98d9e7ab.js +0 -5
- package/dist/components/p-aacd560d.js +0 -5
- package/dist/components/p-c4f620e9.js +0 -5
- package/dist/components/p-ca0bda87.js +0 -5
- package/dist/components/p-d3f029ed.js +0 -5
- package/dist/components/p-dfb3925b.js +0 -5
- package/dist/components/p-ec493f9b.js +0 -5
- package/dist/components/p-f437e795.js +0 -5
- package/dist/components/p-fab97ac7.js +0 -5
- package/dist/components/p-ffad35ad.js +0 -5
- package/dist/components/paint-thickness.js +0 -5
- package/dist/components/service-history.js +0 -5
- package/dist/components/warranty-details.js +0 -5
- package/dist/esm/app-globals-68faa233.js +0 -44
- package/dist/esm/cn-cc419b94.js +0 -2586
- package/dist/esm/dynamic-claim_6.entry.js +0 -1215
- package/dist/esm/dynamic-redeem.entry.js +0 -206
- package/dist/esm/type-885c56ae.js +0 -34
- package/dist/esm/type-dc3e60a4.js +0 -50
- package/dist/shift-components/p-025b3a45.entry.js +0 -5
- package/dist/shift-components/p-07ee30c6.js +0 -5
- package/dist/shift-components/p-232a8be0.entry.js +0 -5
- package/dist/shift-components/p-40e52936.entry.js +0 -5
- package/dist/shift-components/p-446d908d.js +0 -5
- package/dist/shift-components/p-50d68cc4.entry.js +0 -5
- package/dist/shift-components/p-67d3532e.js +0 -5
- package/dist/shift-components/p-69f1a7ff.entry.js +0 -5
- package/dist/shift-components/p-6b3651bd.js +0 -5
- package/dist/shift-components/p-6ec0650f.js +0 -5
- package/dist/shift-components/p-83b755da.entry.js +0 -5
- package/dist/shift-components/p-90bf4148.entry.js +0 -5
- package/dist/shift-components/p-9474a4da.js +0 -6
- package/dist/shift-components/p-98d9e7ab.js +0 -5
- package/dist/shift-components/p-997b9bfb.entry.js +0 -5
- package/dist/shift-components/p-9e11eb3e.entry.js +0 -5
- package/dist/shift-components/p-ab79b6e8.entry.js +0 -5
- package/dist/shift-components/p-c802d527.js +0 -5
- package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +0 -9
- package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +0 -65
- package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +0 -48
- package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +0 -39
- package/dist/types/components/vehicle-lookup/service-history.d.ts +0 -34
- 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/types/global/types/part-information.d.ts +0 -53
- package/dist/types/global/types/vehicle-information.d.ts +0 -182
- package/loader/package.json +0 -11
- package/readme.md +0 -15
- /package/dist/cjs/{loader-baf2418b.js → loader-jtAYWeFG.js} +0 -0
- /package/dist/cjs/{validate-vin-32e95695.js → validate-vin-CJDIXpJO.js} +0 -0
- /package/dist/collection/{global/types/part-information.js → features/image-viewer/interface.js} +0 -0
- /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
- /package/dist/components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
- /package/dist/components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
- /package/dist/esm/{loader-027b88af.js → loader-C-EQDloC.js} +0 -0
- /package/dist/esm/{validate-vin-f4d23a44.js → validate-vin-CUREVASG.js} +0 -0
- /package/dist/shift-components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
- /package/dist/shift-components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
|
@@ -3,132 +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.errorCallback = undefined;
|
|
21
|
-
this.loadingStateChange = undefined;
|
|
22
|
-
this.loadedResponse = undefined;
|
|
23
|
-
this.state = 'idle';
|
|
24
|
-
this.errorMessage = null;
|
|
25
|
-
this.partInformation = undefined;
|
|
26
|
-
this.externalPartNumber = null;
|
|
27
|
-
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
28
|
-
this.locale = manufacturerSchema.getDefault();
|
|
29
27
|
}
|
|
30
28
|
async componentWillLoad() {
|
|
31
29
|
await this.changeLanguage(this.language);
|
|
32
30
|
}
|
|
33
31
|
async changeLanguage(newLanguage) {
|
|
34
|
-
const
|
|
35
|
-
this.locale =
|
|
36
|
-
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);
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
this.
|
|
35
|
+
async setMockData(newMockData) {
|
|
36
|
+
this.mockData = newMockData;
|
|
40
37
|
}
|
|
41
|
-
async
|
|
42
|
-
|
|
43
|
-
if (this.abortController)
|
|
44
|
-
this.abortController.abort();
|
|
45
|
-
this.abortController = new AbortController();
|
|
46
|
-
let scopedTimeoutRef;
|
|
47
|
-
const isPartNumberRequest = typeof newData === 'string';
|
|
48
|
-
const partNumber = isPartNumberRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.partNumber;
|
|
49
|
-
this.externalPartNumber = partNumber;
|
|
50
|
-
try {
|
|
51
|
-
if (!partNumber || partNumber.trim().length === 0) {
|
|
52
|
-
this.state = 'idle';
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (this.state === 'data' || this.state === 'error') {
|
|
56
|
-
this.state = (this.state + '-loading');
|
|
57
|
-
}
|
|
58
|
-
else
|
|
59
|
-
this.state = 'loading';
|
|
60
|
-
await new Promise(r => {
|
|
61
|
-
scopedTimeoutRef = setTimeout(r, 700);
|
|
62
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
63
|
-
});
|
|
64
|
-
const partResponse = isPartNumberRequest ? await getPartInformation(this, { scopedTimeoutRef, partNumber, mockData }, headers) : newData;
|
|
65
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
66
|
-
if (!partResponse)
|
|
67
|
-
throw new Error('wrongResponseFormat');
|
|
68
|
-
this.handleSettingData(partResponse);
|
|
69
|
-
}
|
|
70
|
-
this.errorMessage = null;
|
|
71
|
-
this.state = 'data';
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
75
|
-
return;
|
|
76
|
-
if (this.errorCallback)
|
|
77
|
-
this.errorCallback(error.message);
|
|
78
|
-
console.error(error);
|
|
79
|
-
this.setErrorMessage(error.message);
|
|
80
|
-
}
|
|
38
|
+
async fetchData(newData, headers = {}) {
|
|
39
|
+
await setPartLookupData(this, newData, headers);
|
|
81
40
|
}
|
|
82
41
|
async setErrorMessage(message) {
|
|
83
|
-
this
|
|
84
|
-
this.partInformation = null;
|
|
85
|
-
this.errorMessage = message;
|
|
42
|
+
setPartLookupErrorState(this, message);
|
|
86
43
|
}
|
|
87
|
-
|
|
88
|
-
await this.setData(partNumber, headers);
|
|
89
|
-
}
|
|
90
|
-
async loadingListener() {
|
|
44
|
+
onLoadingChange(newValue) {
|
|
91
45
|
if (this.loadingStateChange)
|
|
92
|
-
this.loadingStateChange(
|
|
93
|
-
}
|
|
94
|
-
async setMockData(newMockData) {
|
|
95
|
-
mockData = newMockData;
|
|
46
|
+
this.loadingStateChange(newValue);
|
|
96
47
|
}
|
|
97
48
|
render() {
|
|
98
|
-
|
|
99
|
-
const localName = this.
|
|
100
|
-
const hiddenFields = this.
|
|
101
|
-
const manufacturerData =
|
|
102
|
-
?
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
{ label: texts.uzHsCode, key: 'uzHsCode', value: this.partInformation.uzHsCode },
|
|
126
|
-
]
|
|
127
|
-
: [];
|
|
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
|
+
];
|
|
128
76
|
const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
|
|
129
|
-
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
|
|
130
78
|
.filter(x => x.body)
|
|
131
|
-
.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" }))))))));
|
|
132
80
|
}
|
|
133
81
|
static get is() { return "manufacturer-lookup"; }
|
|
134
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -144,13 +92,20 @@ export class ManufacturerLookup {
|
|
|
144
92
|
}
|
|
145
93
|
static get properties() {
|
|
146
94
|
return {
|
|
147
|
-
"
|
|
95
|
+
"language": {
|
|
148
96
|
"type": "string",
|
|
97
|
+
"attribute": "language",
|
|
149
98
|
"mutable": false,
|
|
150
99
|
"complexType": {
|
|
151
|
-
"original": "
|
|
152
|
-
"resolved": "
|
|
153
|
-
"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
|
+
}
|
|
154
109
|
},
|
|
155
110
|
"required": false,
|
|
156
111
|
"optional": false,
|
|
@@ -158,12 +113,14 @@ export class ManufacturerLookup {
|
|
|
158
113
|
"tags": [],
|
|
159
114
|
"text": ""
|
|
160
115
|
},
|
|
161
|
-
"
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
162
118
|
"reflect": false,
|
|
163
|
-
"defaultValue": "''"
|
|
119
|
+
"defaultValue": "'en'"
|
|
164
120
|
},
|
|
165
|
-
"
|
|
121
|
+
"coreOnly": {
|
|
166
122
|
"type": "boolean",
|
|
123
|
+
"attribute": "core-only",
|
|
167
124
|
"mutable": false,
|
|
168
125
|
"complexType": {
|
|
169
126
|
"original": "boolean",
|
|
@@ -176,16 +133,18 @@ export class ManufacturerLookup {
|
|
|
176
133
|
"tags": [],
|
|
177
134
|
"text": ""
|
|
178
135
|
},
|
|
179
|
-
"
|
|
136
|
+
"getter": false,
|
|
137
|
+
"setter": false,
|
|
180
138
|
"reflect": false,
|
|
181
139
|
"defaultValue": "false"
|
|
182
140
|
},
|
|
183
|
-
"
|
|
184
|
-
"type": "
|
|
141
|
+
"isDev": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"attribute": "is-dev",
|
|
185
144
|
"mutable": false,
|
|
186
145
|
"complexType": {
|
|
187
|
-
"original": "
|
|
188
|
-
"resolved": "
|
|
146
|
+
"original": "boolean",
|
|
147
|
+
"resolved": "boolean",
|
|
189
148
|
"references": {}
|
|
190
149
|
},
|
|
191
150
|
"required": false,
|
|
@@ -194,12 +153,13 @@ export class ManufacturerLookup {
|
|
|
194
153
|
"tags": [],
|
|
195
154
|
"text": ""
|
|
196
155
|
},
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
158
|
+
"reflect": false
|
|
200
159
|
},
|
|
201
|
-
"
|
|
160
|
+
"baseUrl": {
|
|
202
161
|
"type": "string",
|
|
162
|
+
"attribute": "base-url",
|
|
203
163
|
"mutable": false,
|
|
204
164
|
"complexType": {
|
|
205
165
|
"original": "string",
|
|
@@ -212,54 +172,32 @@ export class ManufacturerLookup {
|
|
|
212
172
|
"tags": [],
|
|
213
173
|
"text": ""
|
|
214
174
|
},
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
},
|
|
219
|
-
"language": {
|
|
220
|
-
"type": "string",
|
|
221
|
-
"mutable": false,
|
|
222
|
-
"complexType": {
|
|
223
|
-
"original": "LanguageKeys",
|
|
224
|
-
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
225
|
-
"references": {
|
|
226
|
-
"LanguageKeys": {
|
|
227
|
-
"location": "import",
|
|
228
|
-
"path": "~types/locale",
|
|
229
|
-
"id": "src/global/types/locale.ts::LanguageKeys"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"required": false,
|
|
234
|
-
"optional": false,
|
|
235
|
-
"docs": {
|
|
236
|
-
"tags": [],
|
|
237
|
-
"text": ""
|
|
238
|
-
},
|
|
239
|
-
"attribute": "language",
|
|
240
|
-
"reflect": false,
|
|
241
|
-
"defaultValue": "'en'"
|
|
175
|
+
"getter": false,
|
|
176
|
+
"setter": false,
|
|
177
|
+
"reflect": false
|
|
242
178
|
},
|
|
243
|
-
"
|
|
244
|
-
"type": "
|
|
179
|
+
"headers": {
|
|
180
|
+
"type": "unknown",
|
|
181
|
+
"attribute": "headers",
|
|
245
182
|
"mutable": false,
|
|
246
183
|
"complexType": {
|
|
247
|
-
"original": "
|
|
248
|
-
"resolved": "
|
|
184
|
+
"original": "object",
|
|
185
|
+
"resolved": "object",
|
|
249
186
|
"references": {}
|
|
250
187
|
},
|
|
251
188
|
"required": false,
|
|
252
|
-
"optional":
|
|
189
|
+
"optional": false,
|
|
253
190
|
"docs": {
|
|
254
191
|
"tags": [],
|
|
255
192
|
"text": ""
|
|
256
193
|
},
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"defaultValue": "
|
|
194
|
+
"getter": false,
|
|
195
|
+
"setter": false,
|
|
196
|
+
"defaultValue": "{}"
|
|
260
197
|
},
|
|
261
|
-
"
|
|
198
|
+
"queryString": {
|
|
262
199
|
"type": "string",
|
|
200
|
+
"attribute": "query-string",
|
|
263
201
|
"mutable": false,
|
|
264
202
|
"complexType": {
|
|
265
203
|
"original": "string",
|
|
@@ -272,27 +210,38 @@ export class ManufacturerLookup {
|
|
|
272
210
|
"tags": [],
|
|
273
211
|
"text": ""
|
|
274
212
|
},
|
|
275
|
-
"
|
|
213
|
+
"getter": false,
|
|
214
|
+
"setter": false,
|
|
276
215
|
"reflect": false,
|
|
277
|
-
"defaultValue": "'
|
|
216
|
+
"defaultValue": "''"
|
|
278
217
|
},
|
|
279
218
|
"errorCallback": {
|
|
280
219
|
"type": "unknown",
|
|
220
|
+
"attribute": "error-callback",
|
|
281
221
|
"mutable": false,
|
|
282
222
|
"complexType": {
|
|
283
|
-
"original": "(errorMessage:
|
|
284
|
-
"resolved": "(errorMessage: string) => void",
|
|
285
|
-
"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
|
+
}
|
|
286
232
|
},
|
|
287
233
|
"required": false,
|
|
288
|
-
"optional":
|
|
234
|
+
"optional": true,
|
|
289
235
|
"docs": {
|
|
290
236
|
"tags": [],
|
|
291
237
|
"text": ""
|
|
292
|
-
}
|
|
238
|
+
},
|
|
239
|
+
"getter": false,
|
|
240
|
+
"setter": false
|
|
293
241
|
},
|
|
294
242
|
"loadingStateChange": {
|
|
295
243
|
"type": "unknown",
|
|
244
|
+
"attribute": "loading-state-change",
|
|
296
245
|
"mutable": false,
|
|
297
246
|
"complexType": {
|
|
298
247
|
"original": "(isLoading: boolean) => void",
|
|
@@ -304,19 +253,22 @@ export class ManufacturerLookup {
|
|
|
304
253
|
"docs": {
|
|
305
254
|
"tags": [],
|
|
306
255
|
"text": ""
|
|
307
|
-
}
|
|
256
|
+
},
|
|
257
|
+
"getter": false,
|
|
258
|
+
"setter": false
|
|
308
259
|
},
|
|
309
260
|
"loadedResponse": {
|
|
310
261
|
"type": "unknown",
|
|
262
|
+
"attribute": "loaded-response",
|
|
311
263
|
"mutable": false,
|
|
312
264
|
"complexType": {
|
|
313
|
-
"original": "(response:
|
|
314
|
-
"resolved": "(response:
|
|
265
|
+
"original": "(response: PartLookupDTO) => void",
|
|
266
|
+
"resolved": "(response: PartLookupDTO) => void",
|
|
315
267
|
"references": {
|
|
316
|
-
"
|
|
268
|
+
"PartLookupDTO": {
|
|
317
269
|
"location": "import",
|
|
318
|
-
"path": "~types/part-
|
|
319
|
-
"id": "src/global/types/part-
|
|
270
|
+
"path": "~types/generated/part/part-lookup-dto",
|
|
271
|
+
"id": "src/global/types/generated/part/part-lookup-dto.ts::PartLookupDTO"
|
|
320
272
|
}
|
|
321
273
|
}
|
|
322
274
|
},
|
|
@@ -325,62 +277,70 @@ export class ManufacturerLookup {
|
|
|
325
277
|
"docs": {
|
|
326
278
|
"tags": [],
|
|
327
279
|
"text": ""
|
|
328
|
-
}
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
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": "''"
|
|
329
323
|
}
|
|
330
324
|
};
|
|
331
325
|
}
|
|
332
326
|
static get states() {
|
|
333
327
|
return {
|
|
334
|
-
"
|
|
328
|
+
"locale": {},
|
|
329
|
+
"searchString": {},
|
|
330
|
+
"isError": {},
|
|
335
331
|
"errorMessage": {},
|
|
336
|
-
"
|
|
337
|
-
"
|
|
338
|
-
"sharedLocales": {},
|
|
339
|
-
"locale": {}
|
|
332
|
+
"isLoading": {},
|
|
333
|
+
"partLookup": {}
|
|
340
334
|
};
|
|
341
335
|
}
|
|
342
336
|
static get methods() {
|
|
343
337
|
return {
|
|
344
|
-
"
|
|
345
|
-
"complexType": {
|
|
346
|
-
"signature": "(newData: PartInformation | string, headers?: any) => Promise<void>",
|
|
347
|
-
"parameters": [{
|
|
348
|
-
"name": "newData",
|
|
349
|
-
"type": "string | PartInformation",
|
|
350
|
-
"docs": ""
|
|
351
|
-
}, {
|
|
352
|
-
"name": "headers",
|
|
353
|
-
"type": "any",
|
|
354
|
-
"docs": ""
|
|
355
|
-
}],
|
|
356
|
-
"references": {
|
|
357
|
-
"Promise": {
|
|
358
|
-
"location": "global",
|
|
359
|
-
"id": "global::Promise"
|
|
360
|
-
},
|
|
361
|
-
"PartInformation": {
|
|
362
|
-
"location": "import",
|
|
363
|
-
"path": "~types/part-information",
|
|
364
|
-
"id": "src/global/types/part-information.ts::PartInformation"
|
|
365
|
-
},
|
|
366
|
-
"ReturnType": {
|
|
367
|
-
"location": "global",
|
|
368
|
-
"id": "global::ReturnType"
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
"return": "Promise<void>"
|
|
372
|
-
},
|
|
373
|
-
"docs": {
|
|
374
|
-
"text": "",
|
|
375
|
-
"tags": []
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
"setErrorMessage": {
|
|
338
|
+
"setMockData": {
|
|
379
339
|
"complexType": {
|
|
380
|
-
"signature": "(
|
|
340
|
+
"signature": "(newMockData: PartLookupMock) => Promise<void>",
|
|
381
341
|
"parameters": [{
|
|
382
|
-
"name": "
|
|
383
|
-
"type": "
|
|
342
|
+
"name": "newMockData",
|
|
343
|
+
"type": "{ [key: string]: PartLookupDTO; }",
|
|
384
344
|
"docs": ""
|
|
385
345
|
}],
|
|
386
346
|
"references": {
|
|
@@ -388,10 +348,10 @@ export class ManufacturerLookup {
|
|
|
388
348
|
"location": "global",
|
|
389
349
|
"id": "global::Promise"
|
|
390
350
|
},
|
|
391
|
-
"
|
|
351
|
+
"PartLookupMock": {
|
|
392
352
|
"location": "import",
|
|
393
|
-
"path": "~
|
|
394
|
-
"id": "src/
|
|
353
|
+
"path": "~features/part-lookup-components",
|
|
354
|
+
"id": "src/features/part-lookup-components/index.ts::PartLookupMock"
|
|
395
355
|
}
|
|
396
356
|
},
|
|
397
357
|
"return": "Promise<void>"
|
|
@@ -403,10 +363,10 @@ export class ManufacturerLookup {
|
|
|
403
363
|
},
|
|
404
364
|
"fetchData": {
|
|
405
365
|
"complexType": {
|
|
406
|
-
"signature": "(
|
|
366
|
+
"signature": "(newData: PartLookupDTO | string, headers?: any) => Promise<void>",
|
|
407
367
|
"parameters": [{
|
|
408
|
-
"name": "
|
|
409
|
-
"type": "string",
|
|
368
|
+
"name": "newData",
|
|
369
|
+
"type": "string | PartLookupDTO",
|
|
410
370
|
"docs": ""
|
|
411
371
|
}, {
|
|
412
372
|
"name": "headers",
|
|
@@ -417,6 +377,11 @@ export class ManufacturerLookup {
|
|
|
417
377
|
"Promise": {
|
|
418
378
|
"location": "global",
|
|
419
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"
|
|
420
385
|
}
|
|
421
386
|
},
|
|
422
387
|
"return": "Promise<void>"
|
|
@@ -426,12 +391,12 @@ export class ManufacturerLookup {
|
|
|
426
391
|
"tags": []
|
|
427
392
|
}
|
|
428
393
|
},
|
|
429
|
-
"
|
|
394
|
+
"setErrorMessage": {
|
|
430
395
|
"complexType": {
|
|
431
|
-
"signature": "(
|
|
396
|
+
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
432
397
|
"parameters": [{
|
|
433
|
-
"name": "
|
|
434
|
-
"type": "
|
|
398
|
+
"name": "message",
|
|
399
|
+
"type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
|
|
435
400
|
"docs": ""
|
|
436
401
|
}],
|
|
437
402
|
"references": {
|
|
@@ -439,15 +404,10 @@ export class ManufacturerLookup {
|
|
|
439
404
|
"location": "global",
|
|
440
405
|
"id": "global::Promise"
|
|
441
406
|
},
|
|
442
|
-
"
|
|
443
|
-
"location": "import",
|
|
444
|
-
"path": "~types/components",
|
|
445
|
-
"id": "src/global/types/components.ts::MockJson"
|
|
446
|
-
},
|
|
447
|
-
"PartInformation": {
|
|
407
|
+
"ErrorKeys": {
|
|
448
408
|
"location": "import",
|
|
449
|
-
"path": "~
|
|
450
|
-
"id": "src/
|
|
409
|
+
"path": "~features/multi-lingual",
|
|
410
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
451
411
|
}
|
|
452
412
|
},
|
|
453
413
|
"return": "Promise<void>"
|
|
@@ -465,8 +425,8 @@ export class ManufacturerLookup {
|
|
|
465
425
|
"propName": "language",
|
|
466
426
|
"methodName": "changeLanguage"
|
|
467
427
|
}, {
|
|
468
|
-
"propName": "
|
|
469
|
-
"methodName": "
|
|
428
|
+
"propName": "isLoading",
|
|
429
|
+
"methodName": "onLoadingChange"
|
|
470
430
|
}];
|
|
471
431
|
}
|
|
472
432
|
}
|