adp-web-components 0.0.89 → 0.0.90
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/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 +15 -32
- package/dist/cjs/flexible-container.cjs.entry.js +134 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +44 -100
- package/dist/cjs/{get-local-language-e539cfdc.js → get-local-language-XsAJEAsO.js} +338 -295
- package/dist/cjs/{index-a8de3655.js → index-BjyafrBw.js} +525 -288
- package/dist/cjs/information-table.cjs.entry.js +40 -0
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loading-spinner.cjs.entry.js +6 -10
- package/dist/cjs/part-lookup.cjs.entry.js +14 -21
- 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_7.cjs.entry.js +1487 -0
- package/dist/cjs/shift-tabs_2.cjs.entry.js +301 -0
- package/dist/cjs/{type-3183db65.js → type-BAD2dFzP.js} +32 -123
- package/dist/cjs/{type-87edb16d.js → type-CCsnwaKp.js} +11 -8
- package/dist/cjs/{type-c576b922.js → type-DT5vXP0E.js} +4 -4
- package/dist/cjs/{type-3d22f1fc.js → vehicle-info-layout-BSAeLW7e.js} +11 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +60 -50
- package/dist/cjs/vin-extractor.cjs.entry.js +22 -32
- 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 +317 -0
- package/dist/collection/components/components/information-table.css +1 -0
- package/dist/collection/components/components/information-table.js +137 -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/components/vehicle-info-layout.js +7 -0
- package/dist/collection/components/form-elements/form-dialog.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +13 -9
- package/dist/collection/components/form-elements/form-input.css +1 -1
- package/dist/collection/components/form-elements/form-input.js +42 -26
- package/dist/collection/components/form-elements/form-select.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +54 -38
- 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 +4 -2
- package/dist/collection/components/form-elements/form-structure.css +1 -1
- package/dist/collection/components/form-elements/form-structure.js +29 -13
- package/dist/collection/components/form-elements/form-submit.css +1 -1
- package/dist/collection/components/form-elements/form-submit.js +15 -7
- package/dist/collection/components/form-elements/form-text-area.css +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +33 -20
- package/dist/collection/components/forms/contact-us/form.css +1 -1
- package/dist/collection/components/forms/contact-us-form.js +37 -22
- package/dist/collection/components/forms/service-booking-form.js +37 -22
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +40 -27
- package/dist/collection/components/part-lookup/distributor-lookup.js +46 -29
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +54 -35
- package/dist/collection/components/part-lookup/part-lookup.js +39 -23
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +5 -5
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +99 -47
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +959 -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 +590 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +123 -53
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -0
- package/dist/collection/components/vehicle-lookup/{paint-thickness.js → vehicle-paint-thickness.js} +99 -43
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +3 -0
- package/dist/collection/components/vehicle-lookup/{service-history.js → vehicle-service-history.js} +101 -38
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +3 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +66 -38
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +3 -0
- package/dist/collection/components/vehicle-lookup/{warranty-details.js → vehicle-warranty-details.js} +168 -54
- package/dist/collection/components/vin-extractor/vin-extractor.js +60 -39
- 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/get-local-language.js +15 -5
- package/dist/collection/global/lib/scroll-into-container-view.js +16 -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 +9 -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 +14 -14
- 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-1vy-Ba6r.js +5 -0
- package/dist/components/p-B6QhQCZi.js +5 -0
- package/dist/components/p-BDkK65_1.js +5 -0
- package/dist/components/p-BK16Cn81.js +5 -0
- package/dist/components/{p-c981ee34.js → p-BaJpYztb.js} +1 -1
- package/dist/components/p-C-4kx8qU.js +5 -0
- package/dist/components/p-C1F_f1WE.js +5 -0
- package/dist/components/p-CACnUI7c.js +5 -0
- package/dist/components/p-CDOvd2iD.js +5 -0
- package/dist/components/p-CGzOJT7g.js +5 -0
- package/dist/components/p-CINfIgzX.js +5 -0
- package/dist/components/p-CJpwqpuQ.js +5 -0
- package/dist/components/p-CK4E5G0i.js +5 -0
- package/dist/components/p-CUqXnLyM.js +5 -0
- package/dist/components/p-CjWDXQ_q.js +5 -0
- package/dist/components/p-Cl9ct-bZ.js +5 -0
- package/dist/components/p-CqGVdvFp.js +5 -0
- package/dist/components/p-D2bxjSGr.js +5 -0
- package/dist/components/p-D63WC2_Y.js +5 -0
- package/dist/components/p-D7yku_Qi.js +5 -0
- package/dist/components/p-DXHx6lre.js +5 -0
- package/dist/components/p-DXj5zsQK.js +5 -0
- package/dist/components/p-DsCtgcZn.js +5 -0
- package/dist/components/p-DxjQlmaz.js +5 -0
- package/dist/components/p-JtBlsz4j.js +5 -0
- package/dist/components/p-P3fAKtye.js +5 -0
- package/dist/components/p-nxlqujKv.js +5 -0
- package/dist/components/p-vvHN2Olh.js +5 -0
- package/dist/components/p-yQ70lKV2.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/cn-BK16Cn81.js +2595 -0
- package/dist/esm/contact-us-form.entry.js +11 -20
- package/dist/esm/dead-stock-lookup_3.entry.js +15 -30
- package/dist/esm/flexible-container.entry.js +132 -0
- package/dist/esm/form-dialog_8.entry.js +44 -98
- package/dist/esm/{get-local-language-e286080a.js → get-local-language-BPo-xYwK.js} +339 -296
- package/dist/esm/{index-3a623f7c.js → index-CikEOqe0.js} +524 -268
- package/dist/esm/information-table.entry.js +38 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loading-spinner.entry.js +6 -8
- package/dist/esm/part-lookup.entry.js +14 -19
- 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_7.entry.js +1479 -0
- package/dist/esm/shift-tabs_2.entry.js +298 -0
- package/dist/esm/{type-dc3e60a4.js → type-CfLRnI1J.js} +10 -7
- package/dist/esm/{type-1d1a2052.js → type-D9Rd8Kcd.js} +5 -5
- package/dist/esm/{type-68307857.js → type-DHujxJVp.js} +32 -123
- package/dist/esm/vehicle-info-layout-D1bvY1nt.js +43 -0
- package/dist/esm/vehicle-lookup.entry.js +55 -43
- package/dist/esm/vin-extractor.entry.js +22 -30
- 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 +6 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/en.json +4 -1
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ku.json +6 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ru.json +10 -7
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.ts +10 -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-0c8bbdd0.entry.js +5 -0
- package/dist/shift-components/p-238f5df0.entry.js +5 -0
- package/dist/shift-components/p-389f444c.entry.js +5 -0
- package/dist/shift-components/p-5dd208de.entry.js +5 -0
- package/dist/shift-components/p-5f91eb5f.entry.js +5 -0
- package/dist/shift-components/p-76dd44e9.entry.js +5 -0
- package/dist/shift-components/p-9a51dae0.entry.js +5 -0
- package/dist/shift-components/p-BAMA88Mr.js +5 -0
- package/dist/shift-components/p-BK16Cn81.js +5 -0
- package/dist/shift-components/p-Br0JD1CD.js +5 -0
- package/dist/shift-components/p-CIU9c3pi.js +5 -0
- package/dist/shift-components/p-CikEOqe0.js +6 -0
- package/dist/shift-components/p-CuQ84qxe.js +5 -0
- package/dist/shift-components/p-DHb8KxaG.js +5 -0
- package/dist/shift-components/p-af44ca99.entry.js +5 -0
- package/dist/shift-components/p-b6497f63.entry.js +5 -0
- package/dist/shift-components/p-d0e6cd78.entry.js +5 -0
- package/dist/shift-components/p-f1225504.entry.js +5 -0
- package/dist/shift-components/p-f282c740.entry.js +5 -0
- package/dist/shift-components/p-faabbd23.entry.js +5 -0
- package/dist/shift-components/p-ff0fec09.entry.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 +30 -0
- package/dist/types/components/components/information-table.d.ts +20 -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/components/vehicle-info-layout.d.ts +11 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +5 -5
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +5 -5
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +5 -5
- 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/vehicle-accessories.d.ts +6 -5
- package/dist/types/components/vehicle-lookup/{dynamic-claim.d.ts → vehicle-claimable-items.d.ts} +31 -22
- package/dist/types/components/vehicle-lookup/{dynamic-redeem.d.ts → vehicle-item-claim-form.d.ts} +34 -10
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +20 -16
- package/dist/types/components/vehicle-lookup/{paint-thickness.d.ts → vehicle-paint-thickness.d.ts} +8 -6
- package/dist/types/components/vehicle-lookup/{service-history.d.ts → vehicle-service-history.d.ts} +7 -6
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +6 -5
- package/dist/types/components/vehicle-lookup/{warranty-details.d.ts → vehicle-warranty-details.d.ts} +9 -8
- package/dist/types/components.d.ts +1060 -195
- package/dist/types/global/api/partInformation.d.ts +5 -5
- package/dist/types/global/api/vehicleInformation.d.ts +4 -4
- 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/scroll-into-container-view.d.ts +1 -0
- 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 +2 -2
- package/dist/types/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.d.ts +28 -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 +52 -44
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/package.json +10 -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/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/warranty-details.css +0 -1
- 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-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-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/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/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 → generated/part/branch-dead-stock-dto.js} +0 -0
- /package/dist/components/{p-00a27a58.js → p-B5YdqGVm.js} +0 -0
- /package/dist/components/{p-fab97ac7.js → p-BT4rhLRL.js} +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
|
@@ -9,6 +9,23 @@ const CAPTURE_INTERVAL = 2000;
|
|
|
9
9
|
const ACTIVE_CAMERA_ID_KEY = 'activeCameraId';
|
|
10
10
|
export class VinExtractor {
|
|
11
11
|
constructor() {
|
|
12
|
+
this.title = '';
|
|
13
|
+
this.captureInterval = CAPTURE_INTERVAL;
|
|
14
|
+
this.verbose = false;
|
|
15
|
+
this.useOcr = false;
|
|
16
|
+
this.readSticker = false;
|
|
17
|
+
// to explicitly opening camera instead of letting choose from files or new image from camera
|
|
18
|
+
this.captureEnvironment = false;
|
|
19
|
+
this.manualCapture = false;
|
|
20
|
+
this.skipValidation = false;
|
|
21
|
+
this.isOpen = false;
|
|
22
|
+
this.isAnimating = false;
|
|
23
|
+
this.isCameraReady = false;
|
|
24
|
+
this.switchRotateDegree = 0;
|
|
25
|
+
this.containerAnimation = '';
|
|
26
|
+
this.videoInputs = [];
|
|
27
|
+
this.manualCaptureLoading = false;
|
|
28
|
+
this.activeCameraId = localStorage.getItem(ACTIVE_CAMERA_ID_KEY) || '';
|
|
12
29
|
this.registerFileUploader = () => {
|
|
13
30
|
if (this.readSticker && !this.codeReader) {
|
|
14
31
|
setTimeout(() => {
|
|
@@ -236,30 +253,6 @@ export class VinExtractor {
|
|
|
236
253
|
this.switchRotateDegree += 90;
|
|
237
254
|
}
|
|
238
255
|
};
|
|
239
|
-
this.title = '';
|
|
240
|
-
this.captureInterval = CAPTURE_INTERVAL;
|
|
241
|
-
this.verbose = false;
|
|
242
|
-
this.useOcr = false;
|
|
243
|
-
this.readSticker = false;
|
|
244
|
-
this.uploaderButtonId = undefined;
|
|
245
|
-
this.captureEnvironment = false;
|
|
246
|
-
this.manualCapture = false;
|
|
247
|
-
this.skipValidation = false;
|
|
248
|
-
this.ocrEndpoint = undefined;
|
|
249
|
-
this.onExtract = undefined;
|
|
250
|
-
this.onError = undefined;
|
|
251
|
-
this.onProcessing = undefined;
|
|
252
|
-
this.onOpenChange = undefined;
|
|
253
|
-
this.streamRef = undefined;
|
|
254
|
-
this.isOpen = false;
|
|
255
|
-
this.isAnimating = false;
|
|
256
|
-
this.isCameraReady = false;
|
|
257
|
-
this.switchRotateDegree = 0;
|
|
258
|
-
this.containerAnimation = '';
|
|
259
|
-
this.blazorRef = undefined;
|
|
260
|
-
this.videoInputs = [];
|
|
261
|
-
this.manualCaptureLoading = false;
|
|
262
|
-
this.activeCameraId = localStorage.getItem(ACTIVE_CAMERA_ID_KEY) || '';
|
|
263
256
|
}
|
|
264
257
|
async componentDidLoad() {
|
|
265
258
|
this.videoPlayer = this.el.shadowRoot.querySelector('.video-player');
|
|
@@ -346,7 +339,7 @@ export class VinExtractor {
|
|
|
346
339
|
}
|
|
347
340
|
render() {
|
|
348
341
|
const ariaExpanded = this.isOpen && this.isCameraReady && (this.useOcr || this.readSticker);
|
|
349
|
-
return (h(Host, { key: '
|
|
342
|
+
return (h(Host, { key: '0e60885fc467cbe88cd61bd3aef83962b653fd43' }, h("slot", { key: 'edd8cc1babde718518bf7b4e5f733d20a08bf5ad' }), h("input", Object.assign({ key: 'ea285ef825d1f9364098281a2f2d7564ef657a7a', class: "vin-extractor-input", type: "file", accept: "image/*" }, (this.captureEnvironment ? { capture: 'environment' } : {}), { hidden: true })), h("canvas", { key: '88c7e49d51d5527916dd6591f3429848a2af6098', class: "video-canvas hidden" }), !this.uploaderButtonId && (h("div", { key: '4182dbdb753092b17340156216bd37ca0ef376ce', onClick: () => (this.isOpen = false), "aria-expanded": ariaExpanded.toString(), class: "vin-extractor-background md:transition-all md:duration-300 fixed flex items-center justify-center w-[100dvw] h-[100dvh] top-0 left-0 z-[9999]" }, h("div", { key: 'e92032dcf789f47d6c32dec88b55ea1bdc0bdea7', onClick: e => e.stopPropagation(), "aria-expanded": ariaExpanded.toString(), onAnimationEnd: () => (this.isAnimating = false), onAnimationStart: () => (this.isAnimating = true), class: cn('vin-extractor-container md:w-[600px] md:rounded-lg md:overflow-hidden opacity-0 md:h-auto w-full h-full relative transition-all duration-500', this.containerAnimation) }, h("div", { key: '1f4ccbd1212a35e9733128f275948257d84f7714', class: "vin-extractor-heading items-center md:py-[8px] w-full md:!opacity-100 md:!translate-x-0 p-[16px] md:bg-white bg-black/30 shadow-md z-10 md:relative absolute top-0 left-0 flex justify-between" }, this.videoInputs.length > 1 ? (h("button", { type: "button", onClick: this.switchCamera, class: "size-[32px] md:border-none md:bg-white md:hover:bg-slate-100 bg-slate-100 rounded-lg p-1 hover:text-slate-700 border transition-colors duration-300 hover:bg-slate-300 border-slate-600 text-slate-600 hover:border-slate-700" }, h("svg", { width: "24", height: "24", fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-full transition-all duration-300", style: { rotate: `${this.switchRotateDegree}deg` } }, h("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }), h("path", { d: "M21 3v5h-5" }), h("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }), h("path", { d: "M8 16H3v5" })))) : (h("div", { class: "size-8" })), h("h1", { key: '041e0e25e79314b2991a0724cdcb2ccabd889ffb', class: "text-center md:text-3xl md:text-black text-slate-100 text-xl" }, this.title), h("button", { key: '3124e163a89338bcc7d1a678443b9813cf9f5a55', type: "button", onClick: () => (this.isOpen = false), class: "size-[32px] md:border-none md:bg-white md:hover:bg-slate-100 bg-slate-100 rounded-lg p-1 hover:text-slate-700 border transition-colors duration-300 hover:bg-slate-300 border-slate-600 text-slate-600 hover:border-slate-700" }, h("svg", { key: '8deb949e3904a747999b55cf8ea32164de6b3924', fill: "none", "stroke-width": "2", class: "size-full", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '7c3e65764f8f196e045e3b501e6561bc14e86748', d: "M18 6 6 18" }), h("path", { key: 'c8fed962e953cd21d69ffedf4c13e0db0797c560', d: "m6 6 12 12" })))), this.manualCapture && (h("button", { key: '60f5a920a5858e89a28f4a14d4a5292b59a55c9a', type: "button", disabled: this.manualCaptureLoading, onClick: this.captureFrame.bind(this, true), class: "absolute disabled:bg-white/75 outline-none cursor-pointer left-1/2 -translate-x-1/2 flex justify-center items-center h-[60px] py-[10px] w-[100px] rounded-full shadow-lg border border-slate-500 text-slate-500 z-10 bg-white bottom-4" }, this.manualCaptureLoading ? (h("svg", { fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", class: "size-full animate-spin", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }))) : (h("svg", { fill: "none", "stroke-width": "2", class: "size-full", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z" }), h("circle", { cx: "12", cy: "13", r: "3" }))))), h("video", { key: '3b0be903b48e697bb9bec695d74c38002bb0f8a1', id: "video", autoPlay: true, playsInline: true, class: "video-player md:aspect-auto bg-black min-w-full min-h-full object-cover object-center" }))))));
|
|
350
343
|
}
|
|
351
344
|
static get is() { return "vin-extractor"; }
|
|
352
345
|
static get encapsulation() { return "shadow"; }
|
|
@@ -364,6 +357,7 @@ export class VinExtractor {
|
|
|
364
357
|
return {
|
|
365
358
|
"title": {
|
|
366
359
|
"type": "string",
|
|
360
|
+
"attribute": "title",
|
|
367
361
|
"mutable": false,
|
|
368
362
|
"complexType": {
|
|
369
363
|
"original": "string",
|
|
@@ -376,12 +370,14 @@ export class VinExtractor {
|
|
|
376
370
|
"tags": [],
|
|
377
371
|
"text": ""
|
|
378
372
|
},
|
|
379
|
-
"
|
|
373
|
+
"getter": false,
|
|
374
|
+
"setter": false,
|
|
380
375
|
"reflect": false,
|
|
381
376
|
"defaultValue": "''"
|
|
382
377
|
},
|
|
383
378
|
"captureInterval": {
|
|
384
379
|
"type": "number",
|
|
380
|
+
"attribute": "capture-interval",
|
|
385
381
|
"mutable": false,
|
|
386
382
|
"complexType": {
|
|
387
383
|
"original": "number",
|
|
@@ -394,12 +390,14 @@ export class VinExtractor {
|
|
|
394
390
|
"tags": [],
|
|
395
391
|
"text": ""
|
|
396
392
|
},
|
|
397
|
-
"
|
|
393
|
+
"getter": false,
|
|
394
|
+
"setter": false,
|
|
398
395
|
"reflect": false,
|
|
399
396
|
"defaultValue": "CAPTURE_INTERVAL"
|
|
400
397
|
},
|
|
401
398
|
"verbose": {
|
|
402
399
|
"type": "boolean",
|
|
400
|
+
"attribute": "verbose",
|
|
403
401
|
"mutable": false,
|
|
404
402
|
"complexType": {
|
|
405
403
|
"original": "boolean",
|
|
@@ -412,12 +410,14 @@ export class VinExtractor {
|
|
|
412
410
|
"tags": [],
|
|
413
411
|
"text": ""
|
|
414
412
|
},
|
|
415
|
-
"
|
|
413
|
+
"getter": false,
|
|
414
|
+
"setter": false,
|
|
416
415
|
"reflect": false,
|
|
417
416
|
"defaultValue": "false"
|
|
418
417
|
},
|
|
419
418
|
"useOcr": {
|
|
420
419
|
"type": "boolean",
|
|
420
|
+
"attribute": "use-ocr",
|
|
421
421
|
"mutable": false,
|
|
422
422
|
"complexType": {
|
|
423
423
|
"original": "boolean",
|
|
@@ -430,12 +430,14 @@ export class VinExtractor {
|
|
|
430
430
|
"tags": [],
|
|
431
431
|
"text": ""
|
|
432
432
|
},
|
|
433
|
-
"
|
|
433
|
+
"getter": false,
|
|
434
|
+
"setter": false,
|
|
434
435
|
"reflect": false,
|
|
435
436
|
"defaultValue": "false"
|
|
436
437
|
},
|
|
437
438
|
"readSticker": {
|
|
438
439
|
"type": "boolean",
|
|
440
|
+
"attribute": "read-sticker",
|
|
439
441
|
"mutable": false,
|
|
440
442
|
"complexType": {
|
|
441
443
|
"original": "boolean",
|
|
@@ -448,12 +450,14 @@ export class VinExtractor {
|
|
|
448
450
|
"tags": [],
|
|
449
451
|
"text": ""
|
|
450
452
|
},
|
|
451
|
-
"
|
|
453
|
+
"getter": false,
|
|
454
|
+
"setter": false,
|
|
452
455
|
"reflect": false,
|
|
453
456
|
"defaultValue": "false"
|
|
454
457
|
},
|
|
455
458
|
"uploaderButtonId": {
|
|
456
459
|
"type": "string",
|
|
460
|
+
"attribute": "uploader-button-id",
|
|
457
461
|
"mutable": false,
|
|
458
462
|
"complexType": {
|
|
459
463
|
"original": "string",
|
|
@@ -466,11 +470,13 @@ export class VinExtractor {
|
|
|
466
470
|
"tags": [],
|
|
467
471
|
"text": ""
|
|
468
472
|
},
|
|
469
|
-
"
|
|
473
|
+
"getter": false,
|
|
474
|
+
"setter": false,
|
|
470
475
|
"reflect": false
|
|
471
476
|
},
|
|
472
477
|
"captureEnvironment": {
|
|
473
478
|
"type": "boolean",
|
|
479
|
+
"attribute": "capture-environment",
|
|
474
480
|
"mutable": false,
|
|
475
481
|
"complexType": {
|
|
476
482
|
"original": "boolean",
|
|
@@ -483,12 +489,14 @@ export class VinExtractor {
|
|
|
483
489
|
"tags": [],
|
|
484
490
|
"text": ""
|
|
485
491
|
},
|
|
486
|
-
"
|
|
492
|
+
"getter": false,
|
|
493
|
+
"setter": false,
|
|
487
494
|
"reflect": false,
|
|
488
495
|
"defaultValue": "false"
|
|
489
496
|
},
|
|
490
497
|
"manualCapture": {
|
|
491
498
|
"type": "boolean",
|
|
499
|
+
"attribute": "manual-capture",
|
|
492
500
|
"mutable": false,
|
|
493
501
|
"complexType": {
|
|
494
502
|
"original": "boolean",
|
|
@@ -501,12 +509,14 @@ export class VinExtractor {
|
|
|
501
509
|
"tags": [],
|
|
502
510
|
"text": ""
|
|
503
511
|
},
|
|
504
|
-
"
|
|
512
|
+
"getter": false,
|
|
513
|
+
"setter": false,
|
|
505
514
|
"reflect": false,
|
|
506
515
|
"defaultValue": "false"
|
|
507
516
|
},
|
|
508
517
|
"skipValidation": {
|
|
509
518
|
"type": "boolean",
|
|
519
|
+
"attribute": "skip-validation",
|
|
510
520
|
"mutable": false,
|
|
511
521
|
"complexType": {
|
|
512
522
|
"original": "boolean",
|
|
@@ -519,12 +529,14 @@ export class VinExtractor {
|
|
|
519
529
|
"tags": [],
|
|
520
530
|
"text": ""
|
|
521
531
|
},
|
|
522
|
-
"
|
|
532
|
+
"getter": false,
|
|
533
|
+
"setter": false,
|
|
523
534
|
"reflect": false,
|
|
524
535
|
"defaultValue": "false"
|
|
525
536
|
},
|
|
526
537
|
"ocrEndpoint": {
|
|
527
538
|
"type": "string",
|
|
539
|
+
"attribute": "ocr-endpoint",
|
|
528
540
|
"mutable": false,
|
|
529
541
|
"complexType": {
|
|
530
542
|
"original": "string",
|
|
@@ -537,11 +549,13 @@ export class VinExtractor {
|
|
|
537
549
|
"tags": [],
|
|
538
550
|
"text": ""
|
|
539
551
|
},
|
|
540
|
-
"
|
|
552
|
+
"getter": false,
|
|
553
|
+
"setter": false,
|
|
541
554
|
"reflect": false
|
|
542
555
|
},
|
|
543
556
|
"onExtract": {
|
|
544
557
|
"type": "string",
|
|
558
|
+
"attribute": "on-extract",
|
|
545
559
|
"mutable": false,
|
|
546
560
|
"complexType": {
|
|
547
561
|
"original": "((vin: string) => void) | string",
|
|
@@ -554,11 +568,13 @@ export class VinExtractor {
|
|
|
554
568
|
"tags": [],
|
|
555
569
|
"text": ""
|
|
556
570
|
},
|
|
557
|
-
"
|
|
571
|
+
"getter": false,
|
|
572
|
+
"setter": false,
|
|
558
573
|
"reflect": false
|
|
559
574
|
},
|
|
560
575
|
"onError": {
|
|
561
576
|
"type": "string",
|
|
577
|
+
"attribute": "on-error",
|
|
562
578
|
"mutable": false,
|
|
563
579
|
"complexType": {
|
|
564
580
|
"original": "((newError: Error) => void) | string",
|
|
@@ -576,11 +592,13 @@ export class VinExtractor {
|
|
|
576
592
|
"tags": [],
|
|
577
593
|
"text": ""
|
|
578
594
|
},
|
|
579
|
-
"
|
|
595
|
+
"getter": false,
|
|
596
|
+
"setter": false,
|
|
580
597
|
"reflect": false
|
|
581
598
|
},
|
|
582
599
|
"onProcessing": {
|
|
583
600
|
"type": "string",
|
|
601
|
+
"attribute": "on-processing",
|
|
584
602
|
"mutable": false,
|
|
585
603
|
"complexType": {
|
|
586
604
|
"original": "((vin: string) => void) | string",
|
|
@@ -593,11 +611,13 @@ export class VinExtractor {
|
|
|
593
611
|
"tags": [],
|
|
594
612
|
"text": ""
|
|
595
613
|
},
|
|
596
|
-
"
|
|
614
|
+
"getter": false,
|
|
615
|
+
"setter": false,
|
|
597
616
|
"reflect": false
|
|
598
617
|
},
|
|
599
618
|
"onOpenChange": {
|
|
600
619
|
"type": "string",
|
|
620
|
+
"attribute": "on-open-change",
|
|
601
621
|
"mutable": false,
|
|
602
622
|
"complexType": {
|
|
603
623
|
"original": "((newError: boolean) => void) | string",
|
|
@@ -610,7 +630,8 @@ export class VinExtractor {
|
|
|
610
630
|
"tags": [],
|
|
611
631
|
"text": ""
|
|
612
632
|
},
|
|
613
|
-
"
|
|
633
|
+
"getter": false,
|
|
634
|
+
"setter": false,
|
|
614
635
|
"reflect": false
|
|
615
636
|
}
|
|
616
637
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
export default function childrenWithTag(root, tag) {
|
|
6
|
+
const matchedElements = [];
|
|
7
|
+
function traverse(node) {
|
|
8
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
9
|
+
const el = node;
|
|
10
|
+
if (el.tagName.toLowerCase().startsWith(tag) && root !== el) {
|
|
11
|
+
matchedElements.push(el);
|
|
12
|
+
}
|
|
13
|
+
const shadowRoot = el === null || el === void 0 ? void 0 : el.shadowRoot;
|
|
14
|
+
if (shadowRoot)
|
|
15
|
+
traverse(shadowRoot);
|
|
16
|
+
Array.from(el.children).forEach(traverse);
|
|
17
|
+
}
|
|
18
|
+
else if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
19
|
+
Array.from(node.children).forEach(traverse);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
traverse(root);
|
|
23
|
+
return matchedElements;
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
export default function containerHasTag(root, tag) {
|
|
6
|
+
/**
|
|
7
|
+
* Checks if the given root node or any of its descendants has an element with the specified tag.
|
|
8
|
+
* @param root - The root node to start the search from.
|
|
9
|
+
* @param tag - The tag name to search for (case-insensitive).
|
|
10
|
+
* @returns True if an element with the specified tag is found, otherwise false.
|
|
11
|
+
*/
|
|
12
|
+
function traverse(node) {
|
|
13
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
14
|
+
const el = node;
|
|
15
|
+
if (el.tagName.toLowerCase().startsWith(tag))
|
|
16
|
+
return true;
|
|
17
|
+
const shadowRoot = el === null || el === void 0 ? void 0 : el.shadowRoot;
|
|
18
|
+
if (shadowRoot)
|
|
19
|
+
return traverse(shadowRoot);
|
|
20
|
+
return Array.from(el.children).some(traverse);
|
|
21
|
+
}
|
|
22
|
+
else if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
23
|
+
return Array.from(node.children).some(traverse);
|
|
24
|
+
}
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
return traverse(root);
|
|
28
|
+
}
|
|
@@ -82,9 +82,19 @@ function recursiveParser(parents, bluePrint, parsedResponseMapper, languageFile)
|
|
|
82
82
|
async function requestLocaleFile(localeFile) {
|
|
83
83
|
if (cachedLocales[localeFile])
|
|
84
84
|
return await cachedLocales[localeFile];
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
try {
|
|
86
|
+
const fetchPromise = (Build.isDev ? fetch('http://localhost:3000/' + localeFile) : fetch(`https://cdn.jsdelivr.net/npm/adp-web-components@${version}/dist/${localeFile}`)).then(res => {
|
|
87
|
+
if (!res.ok)
|
|
88
|
+
delete cachedLocales[localeFile];
|
|
89
|
+
return res.json();
|
|
90
|
+
});
|
|
91
|
+
cachedLocales[localeFile] = fetchPromise;
|
|
92
|
+
const result = await fetchPromise;
|
|
93
|
+
cachedLocales[localeFile] = result;
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
delete cachedLocales[localeFile];
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
90
100
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
export function scrollIntoContainerView(item, container) {
|
|
6
|
+
const itemRect = item.getBoundingClientRect();
|
|
7
|
+
const containerRect = container.getBoundingClientRect();
|
|
8
|
+
const isPartiallyHidden = itemRect.left < containerRect.left || itemRect.right > containerRect.right;
|
|
9
|
+
if (isPartiallyHidden) {
|
|
10
|
+
const scrollLeft = item.offsetLeft - container.clientWidth / 2 + item.clientWidth / 2;
|
|
11
|
+
container.scrollTo({
|
|
12
|
+
left: scrollLeft,
|
|
13
|
+
behavior: 'smooth',
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/collection/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -44,14 +44,14 @@ const localeMapper = {
|
|
|
44
44
|
],
|
|
45
45
|
"vehicleLookup": [
|
|
46
46
|
"locales/vehicleLookup/accessories/",
|
|
47
|
-
"locales/vehicleLookup/
|
|
47
|
+
"locales/vehicleLookup/claimableItems/",
|
|
48
48
|
"locales/vehicleLookup/paintThickness/",
|
|
49
49
|
"locales/vehicleLookup/serviceHistory/",
|
|
50
50
|
"locales/vehicleLookup/specification/",
|
|
51
51
|
"locales/vehicleLookup/warranty/"
|
|
52
52
|
],
|
|
53
|
-
"vehicleLookup.
|
|
54
|
-
"locales/vehicleLookup/
|
|
53
|
+
"vehicleLookup.claimableItems": [
|
|
54
|
+
"locales/vehicleLookup/claimableItems/"
|
|
55
55
|
],
|
|
56
56
|
"vehicleLookup.paintThickness": [
|
|
57
57
|
"locales/vehicleLookup/paintThickness/"
|
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { object } from "yup";
|
|
6
6
|
import yupTypeMapper from "../../../global/lib/yup-type-mapper";
|
|
7
|
-
export const
|
|
7
|
+
export const claimFormSchema = yupTypeMapper([
|
|
8
|
+
'document',
|
|
8
9
|
'serviceType',
|
|
9
10
|
'name',
|
|
11
|
+
'documentLimitError',
|
|
12
|
+
'documentRequiredError',
|
|
10
13
|
'activationDate',
|
|
11
14
|
'expireDate',
|
|
12
15
|
'packageCode',
|
|
@@ -23,8 +26,8 @@ export const dynamicRedeemSchema = yupTypeMapper([
|
|
|
23
26
|
'jobNumber',
|
|
24
27
|
'claim',
|
|
25
28
|
]);
|
|
26
|
-
const
|
|
27
|
-
|
|
29
|
+
const claimableItemsSchema = object({
|
|
30
|
+
claimForm: claimFormSchema,
|
|
28
31
|
}).concat(yupTypeMapper([
|
|
29
32
|
'serviceType',
|
|
30
33
|
'activationDate',
|
|
@@ -41,9 +44,9 @@ const dynamicClaimSchema = object({
|
|
|
41
44
|
'pending',
|
|
42
45
|
'warning',
|
|
43
46
|
'activateNow',
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
'print',
|
|
48
|
+
'successFulClaimMessage',
|
|
46
49
|
'activationRequired',
|
|
47
50
|
'warrantyAndServicesNotActivated',
|
|
48
51
|
]));
|
|
49
|
-
export default
|
|
52
|
+
export default claimableItemsSchema;
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
import { object } from "yup";
|
|
6
6
|
import warrantySchema from "./warranty/type";
|
|
7
7
|
import accessoriesSchema from "./accessories/type";
|
|
8
|
-
import dynamicClaimSchema from "./dynamicClaim/type";
|
|
9
8
|
import specificationSchema from "./specification/type";
|
|
10
9
|
import paintThicknessSchema from "./paintThickness/type";
|
|
11
10
|
import ServiceHistorySchema from "./serviceHistory/type";
|
|
11
|
+
import claimableItemsSchema from "./claimableItems/type";
|
|
12
12
|
const vehicleLookupWrapperSchema = object({
|
|
13
13
|
warranty: warrantySchema,
|
|
14
14
|
accessories: accessoriesSchema,
|
|
15
|
-
dynamicClaim: dynamicClaimSchema,
|
|
16
15
|
specification: specificationSchema,
|
|
16
|
+
claimableItems: claimableItemsSchema,
|
|
17
17
|
paintThickness: paintThicknessSchema,
|
|
18
18
|
serviceHistory: ServiceHistorySchema,
|
|
19
19
|
});
|
|
@@ -3,18 +3,18 @@ const mockData = {
|
|
|
3
3
|
partNumber: 'SU00302474',
|
|
4
4
|
partDescription: 'CLAMP',
|
|
5
5
|
localDescription: 'Неприменимо',
|
|
6
|
-
|
|
6
|
+
productGroup: 'F',
|
|
7
7
|
pnc: '',
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
pnc: '',
|
|
9
|
+
binType: null,
|
|
10
|
+
length: 80,
|
|
11
|
+
width: 50,
|
|
12
|
+
height: 15,
|
|
13
13
|
netWeight: 250,
|
|
14
14
|
grossWeight: null,
|
|
15
15
|
cubicMeasure: 600,
|
|
16
16
|
hsCode: null,
|
|
17
|
-
|
|
17
|
+
hsCode: null,
|
|
18
18
|
origin: 'JP',
|
|
19
19
|
supersededTo: ['1110109263', '137410PH00', '138010PH00', '139350PH00'],
|
|
20
20
|
stockParts: [],
|
|
@@ -98,18 +98,18 @@ const mockData = {
|
|
|
98
98
|
partNumber: '0400007660',
|
|
99
99
|
partDescription: 'REPLACEMENT KIT,',
|
|
100
100
|
localDescription: 'Неприменимо',
|
|
101
|
-
|
|
101
|
+
productGroup: 'J',
|
|
102
102
|
pnc: '',
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
pnc: '',
|
|
104
|
+
binType: null,
|
|
105
|
+
length: 75,
|
|
106
|
+
width: 60,
|
|
107
|
+
height: 10,
|
|
108
108
|
netWeight: 226,
|
|
109
109
|
grossWeight: null,
|
|
110
110
|
cubicMeasure: 450,
|
|
111
111
|
hsCode: null,
|
|
112
|
-
|
|
112
|
+
hsCode: null,
|
|
113
113
|
origin: 'JP',
|
|
114
114
|
supersededTo: ['1110109263', '137410PH00', '138010PH00', '139350PH00'],
|
|
115
115
|
stockParts: [
|