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
|
@@ -0,0 +1,826 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
6
|
+
var t = {};
|
|
7
|
+
for (var p in s)
|
|
8
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
9
|
+
t[p] = s[p];
|
|
10
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
11
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
13
|
+
t[p[i]] = s[p[i]];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
import { Host, h } from "@stencil/core";
|
|
18
|
+
import cn from "../../global/lib/cn";
|
|
19
|
+
import { scrollIntoContainerView } from "../../global/lib/scroll-into-container-view";
|
|
20
|
+
import { VehicleInfoLayout } from "../../features/vehicle-info-layout/index";
|
|
21
|
+
import { setVehicleLookupData, setVehicleLookupErrorState } from "../../features/vehicle-lookup-component/index";
|
|
22
|
+
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
23
|
+
import { ClaimableItem } from "./components/claimable-item";
|
|
24
|
+
import { ClaimableItemPopover } from "./components/claimable-item-popover";
|
|
25
|
+
import dynamicClaimSchema from "../../locales/vehicleLookup/claimableItems/type";
|
|
26
|
+
import { PrintIcon } from "../../global/assets/print-icon";
|
|
27
|
+
import { ActivationIcon } from "../../global/assets/activation-icon";
|
|
28
|
+
import { EmptyTableIcon } from "../../global/assets/empty-table-icon";
|
|
29
|
+
export class VehicleClaimableItems {
|
|
30
|
+
constructor() {
|
|
31
|
+
// ====== Start Localization
|
|
32
|
+
this.language = 'en';
|
|
33
|
+
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, dynamicClaimSchema.getDefault());
|
|
34
|
+
// ====== End Localization
|
|
35
|
+
// ====== Start Vehicle info layout prop
|
|
36
|
+
this.coreOnly = false;
|
|
37
|
+
this.headers = {};
|
|
38
|
+
this.queryString = '';
|
|
39
|
+
this.uploadMultipleDocumentsAtTheForm = true;
|
|
40
|
+
this.isError = false;
|
|
41
|
+
this.isLoading = false;
|
|
42
|
+
this.maximumDocumentFileSizeInMb = 30;
|
|
43
|
+
this.claimEndPoint = 'api/vehicle/swift-claim';
|
|
44
|
+
this.activeTab = '';
|
|
45
|
+
this.showPrintBox = false;
|
|
46
|
+
this.tabAnimationLoading = false;
|
|
47
|
+
this.lastSuccessfulClaimResponse = null;
|
|
48
|
+
this.showClaimableItemPopover = false;
|
|
49
|
+
this.tabs = [];
|
|
50
|
+
this.popoverTargetLocation = { left: 0, bottom: 0, top: 0 };
|
|
51
|
+
this.getServiceItems = () => {
|
|
52
|
+
var _a, _b, _c, _d, _e;
|
|
53
|
+
if (!((_b = (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.serviceItems) === null || _b === void 0 ? void 0 : _b.length))
|
|
54
|
+
return [];
|
|
55
|
+
if (!((_c = this.tabs) === null || _c === void 0 ? void 0 : _c.length))
|
|
56
|
+
return (_d = this.vehicleLookup) === null || _d === void 0 ? void 0 : _d.serviceItems;
|
|
57
|
+
return (_e = this.vehicleLookup) === null || _e === void 0 ? void 0 : _e.serviceItems.filter(serviceItem => { var _a; return ((_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.group) === null || _a === void 0 ? void 0 : _a.name) === this.activeTab; });
|
|
58
|
+
};
|
|
59
|
+
this.parseGroupData = (vehicleLookup) => {
|
|
60
|
+
var _a;
|
|
61
|
+
if ((_a = vehicleLookup === null || vehicleLookup === void 0 ? void 0 : vehicleLookup.serviceItems) === null || _a === void 0 ? void 0 : _a.length) {
|
|
62
|
+
let orderedGroups = [];
|
|
63
|
+
const unOrderedGroups = [];
|
|
64
|
+
vehicleLookup.serviceItems.forEach(({ group }) => {
|
|
65
|
+
if (!(group === null || group === void 0 ? void 0 : group.name))
|
|
66
|
+
return;
|
|
67
|
+
if ([...orderedGroups, ...unOrderedGroups].find(g => (g === null || g === void 0 ? void 0 : g.name) === (group === null || group === void 0 ? void 0 : group.name)))
|
|
68
|
+
return;
|
|
69
|
+
if (group === null || group === void 0 ? void 0 : group.isDefault)
|
|
70
|
+
this.activeTab = group === null || group === void 0 ? void 0 : group.name;
|
|
71
|
+
if (typeof (group === null || group === void 0 ? void 0 : group.tabOrder) === 'number')
|
|
72
|
+
orderedGroups.push(group);
|
|
73
|
+
else
|
|
74
|
+
unOrderedGroups.push(group);
|
|
75
|
+
});
|
|
76
|
+
if (!!unOrderedGroups.length || !!orderedGroups.length) {
|
|
77
|
+
orderedGroups = orderedGroups.sort((a, b) => a.tabOrder - b.tabOrder);
|
|
78
|
+
this.tabs = [...orderedGroups, ...unOrderedGroups];
|
|
79
|
+
if (!this.activeTab)
|
|
80
|
+
this.activeTab = this.tabs[0].name;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this.tabs = [];
|
|
84
|
+
this.activeTab = '';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
this.tabs = [];
|
|
89
|
+
this.activeTab = '';
|
|
90
|
+
}
|
|
91
|
+
return vehicleLookup;
|
|
92
|
+
};
|
|
93
|
+
this.updateProgressBar = async (payload) => {
|
|
94
|
+
var _a, _b;
|
|
95
|
+
// payload indicates its not a fresh list rather it is an update to current one
|
|
96
|
+
if (!payload) {
|
|
97
|
+
// hard reset of the bar
|
|
98
|
+
this.progressBar.style.transitionDuration = '0s';
|
|
99
|
+
this.progressBar.style.opacity = '0';
|
|
100
|
+
this.progressBar.style.width = '0%';
|
|
101
|
+
// apply changes
|
|
102
|
+
await new Promise(r => setTimeout(r, 10));
|
|
103
|
+
}
|
|
104
|
+
this.progressBar.style.transitionDuration = '1s';
|
|
105
|
+
this.progressBar.style.opacity = '1';
|
|
106
|
+
if (!this.vehicleLookup)
|
|
107
|
+
return;
|
|
108
|
+
if (!!((_a = this.tabs) === null || _a === void 0 ? void 0 : _a.length) && this.tabs.find(tab => tab.name === this.activeTab) && !((_b = this.tabs.find(tab => tab.name === this.activeTab)) === null || _b === void 0 ? void 0 : _b.isSequential))
|
|
109
|
+
return;
|
|
110
|
+
const serviceItems = this.getServiceItems();
|
|
111
|
+
const firstPendingItemIndex = serviceItems.findIndex(x => x.status === 'pending');
|
|
112
|
+
if (firstPendingItemIndex !== -1) {
|
|
113
|
+
const pendingItemRef = this.el.shadowRoot.querySelectorAll('.claimable-item')[firstPendingItemIndex];
|
|
114
|
+
const progressLaneRef = this.el.shadowRoot.querySelector('.progress-lane');
|
|
115
|
+
const { left: pendingItemLeftOffset } = pendingItemRef.getBoundingClientRect();
|
|
116
|
+
const { width: progressLaneWidth, left: progressLeftOffset } = progressLaneRef.getBoundingClientRect();
|
|
117
|
+
const offsetToLeftRatio = ((pendingItemLeftOffset - progressLeftOffset) / progressLaneWidth) * 100;
|
|
118
|
+
this.progressBar.style.width = `${offsetToLeftRatio.toFixed(2)}%`;
|
|
119
|
+
if (firstPendingItemIndex === serviceItems.length - 1)
|
|
120
|
+
this.claimableItemsBox.scrollTo({
|
|
121
|
+
left: this.claimableItemsBox.scrollWidth,
|
|
122
|
+
behavior: 'smooth',
|
|
123
|
+
});
|
|
124
|
+
else
|
|
125
|
+
scrollIntoContainerView(pendingItemRef, this.claimableItemsBox);
|
|
126
|
+
}
|
|
127
|
+
else if (!(serviceItems.length === 0 || serviceItems.filter(x => x.status === 'activationRequired').length === serviceItems.length)) {
|
|
128
|
+
this.progressBar.style.width = '100%';
|
|
129
|
+
this.claimableItemsBox.scrollTo({
|
|
130
|
+
left: this.claimableItemsBox.scrollWidth,
|
|
131
|
+
behavior: 'smooth',
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
this.onActiveTabChange = ({ label }) => {
|
|
136
|
+
this.tabAnimationLoading = true;
|
|
137
|
+
clearTimeout(this.tabAnimationTimeoutRef);
|
|
138
|
+
this.tabAnimationTimeoutRef = setTimeout(() => {
|
|
139
|
+
this.activeTab = label;
|
|
140
|
+
// wait for jsx update
|
|
141
|
+
setTimeout(() => {
|
|
142
|
+
this.tabAnimationLoading = false;
|
|
143
|
+
this.updateProgressBar();
|
|
144
|
+
}, 50);
|
|
145
|
+
}, 750);
|
|
146
|
+
};
|
|
147
|
+
this.activateClaimItem = () => {
|
|
148
|
+
if (this.activate)
|
|
149
|
+
this.activate(this.vehicleLookup);
|
|
150
|
+
};
|
|
151
|
+
this.printLastClaimResponse = () => {
|
|
152
|
+
if (this.print) {
|
|
153
|
+
this.print(this.lastSuccessfulClaimResponse);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
if (this.lastSuccessfulClaimResponse.PrintURL) {
|
|
157
|
+
window.open(this.lastSuccessfulClaimResponse.PrintURL, '_blank').focus();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
this.updatePopoverLocation = () => {
|
|
162
|
+
if (!this.claimableItemPopoverRef)
|
|
163
|
+
return;
|
|
164
|
+
const { left, bottom, width, top } = this.claimableItemPopoverRef.getBoundingClientRect();
|
|
165
|
+
this.popoverTargetLocation = { left: left + width / 2, bottom, top };
|
|
166
|
+
};
|
|
167
|
+
this.setClaimableItemPopover = (showPopover, claimableItem, claimableItemPopoverRef) => {
|
|
168
|
+
if (showPopover) {
|
|
169
|
+
this.claimableItemPopoverRef = claimableItemPopoverRef;
|
|
170
|
+
this.updatePopoverLocation();
|
|
171
|
+
this.selectedClaimItem = claimableItem;
|
|
172
|
+
this.showClaimableItemPopover = true;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
this.showClaimableItemPopover = false;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
this.handleClaim = async (_a) => {
|
|
179
|
+
var { documents } = _a, payload = __rest(_a, ["documents"]);
|
|
180
|
+
try {
|
|
181
|
+
const formData = new FormData();
|
|
182
|
+
formData.append('payload', JSON.stringify(Object.assign(Object.assign({}, payload), { vin: this.vehicleLookup.vin, serviceItem: this.claimForm.item, saleInformation: this.vehicleLookup.saleInformation, cancelledServiceItems: this.claimForm.canceledItems })));
|
|
183
|
+
if (documents && documents.length > 0) {
|
|
184
|
+
documents.forEach(doc => {
|
|
185
|
+
formData.append('document', doc);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
await new Promise((resolve, reject) => {
|
|
189
|
+
const xhr = new XMLHttpRequest();
|
|
190
|
+
xhr.open('POST', this.claimEndPoint);
|
|
191
|
+
Object.entries(this.headers || {}).forEach(([key, value]) => {
|
|
192
|
+
xhr.setRequestHeader(key, value);
|
|
193
|
+
});
|
|
194
|
+
xhr.upload.onprogress = e => {
|
|
195
|
+
if (e.lengthComputable)
|
|
196
|
+
this.claimForm.setFileUploadProgression(Math.round((e.loaded / e.total) * 100));
|
|
197
|
+
};
|
|
198
|
+
xhr.onload = () => {
|
|
199
|
+
if (xhr.status === 200) {
|
|
200
|
+
try {
|
|
201
|
+
const responseData = JSON.parse(xhr.responseText);
|
|
202
|
+
this.completeClaim(responseData);
|
|
203
|
+
resolve();
|
|
204
|
+
}
|
|
205
|
+
catch (parseError) {
|
|
206
|
+
console.error('Response is not valid JSON', {
|
|
207
|
+
rawResponse: xhr.responseText,
|
|
208
|
+
error: parseError,
|
|
209
|
+
});
|
|
210
|
+
reject(new Error('Upload succeeded but response is not valid JSON'));
|
|
211
|
+
}
|
|
212
|
+
resolve();
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
try {
|
|
216
|
+
const responseData = JSON.parse(xhr.responseText);
|
|
217
|
+
alert(responseData.Message);
|
|
218
|
+
}
|
|
219
|
+
catch (_a) {
|
|
220
|
+
reject(new Error(`Upload failed with status ${xhr.status}`));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
xhr.onerror = e => {
|
|
225
|
+
console.log(e);
|
|
226
|
+
reject(new Error('Network error'));
|
|
227
|
+
};
|
|
228
|
+
xhr.send(formData);
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
console.error(error);
|
|
233
|
+
alert(this.locale.sharedLocales.errors.requestFailedPleaseTryAgainLater);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
this.handleDevClaim = async ({ documents }) => {
|
|
237
|
+
if (documents && documents.length > 0) {
|
|
238
|
+
this.claimForm.setFileUploadProgression(0);
|
|
239
|
+
let uploadChunks = 20;
|
|
240
|
+
for (let index = 0; index < uploadChunks; index++) {
|
|
241
|
+
const uploadPercentage = Math.round(((index + 1) / uploadChunks) * 100);
|
|
242
|
+
await new Promise(r => setTimeout(r, 200));
|
|
243
|
+
this.claimForm.setFileUploadProgression(uploadPercentage);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
await new Promise(r => setTimeout(r, 1000));
|
|
247
|
+
this.completeClaim({ Success: true, ID: '11223344', PrintURL: 'http://localhost/test/print/1122' });
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
async componentWillLoad() {
|
|
251
|
+
await this.changeLanguage(this.language);
|
|
252
|
+
}
|
|
253
|
+
async changeLanguage(newLanguage) {
|
|
254
|
+
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'vehicleLookup.claimableItems', dynamicClaimSchema)]);
|
|
255
|
+
this.locale = Object.assign({ sharedLocales }, locale);
|
|
256
|
+
}
|
|
257
|
+
async setMockData(newMockData) {
|
|
258
|
+
this.mockData = newMockData;
|
|
259
|
+
}
|
|
260
|
+
async fetchData(newData, headers = {}) {
|
|
261
|
+
const beforeAssignment = async (vehicleLookup) => {
|
|
262
|
+
this.showPrintBox = false;
|
|
263
|
+
await this.parseGroupData(vehicleLookup);
|
|
264
|
+
return vehicleLookup;
|
|
265
|
+
};
|
|
266
|
+
await setVehicleLookupData(this, newData, headers, { beforeAssignment });
|
|
267
|
+
}
|
|
268
|
+
async setErrorMessage(message) {
|
|
269
|
+
setVehicleLookupErrorState(this, message);
|
|
270
|
+
}
|
|
271
|
+
onLoadingChange(newValue) {
|
|
272
|
+
if (this.loadingStateChange)
|
|
273
|
+
this.loadingStateChange(newValue);
|
|
274
|
+
}
|
|
275
|
+
async componentDidLoad() {
|
|
276
|
+
this.progressBar = this.el.shadowRoot.querySelector('.progress-bar');
|
|
277
|
+
this.claimForm = this.el.shadowRoot.querySelector('.vehicle-item-claim-form');
|
|
278
|
+
this.claimableItemsBox = this.el.shadowRoot.querySelector('.claimable-items-box');
|
|
279
|
+
window.addEventListener('resize', this.updateProgressBar);
|
|
280
|
+
if (this.claimableItemsBox)
|
|
281
|
+
this.claimableItemsBox.addEventListener('scroll', this.updatePopoverLocation);
|
|
282
|
+
window.addEventListener('scroll', this.updatePopoverLocation);
|
|
283
|
+
window.addEventListener('resize', this.updatePopoverLocation);
|
|
284
|
+
}
|
|
285
|
+
async disconnectedCallback() {
|
|
286
|
+
window.removeEventListener('resize', this.updateProgressBar);
|
|
287
|
+
if (this.claimableItemsBox)
|
|
288
|
+
this.claimableItemsBox.removeEventListener('scroll', this.updatePopoverLocation);
|
|
289
|
+
window.removeEventListener('scroll', this.updatePopoverLocation);
|
|
290
|
+
window.removeEventListener('resize', this.updatePopoverLocation);
|
|
291
|
+
}
|
|
292
|
+
async onVehicleChange() {
|
|
293
|
+
// wait for jsx update
|
|
294
|
+
setTimeout(() => {
|
|
295
|
+
this.updateProgressBar();
|
|
296
|
+
}, 50);
|
|
297
|
+
}
|
|
298
|
+
async completeClaim(response) {
|
|
299
|
+
const serviceItems = this.getServiceItems();
|
|
300
|
+
const item = this.selectedClaimItem;
|
|
301
|
+
const serviceDataClone = JSON.parse(JSON.stringify(serviceItems));
|
|
302
|
+
const index = serviceItems.indexOf(item);
|
|
303
|
+
const pendingItemsBefore = serviceDataClone.slice(0, index).filter(x => x.status === 'pending');
|
|
304
|
+
serviceDataClone[index].claimable = false;
|
|
305
|
+
serviceDataClone[index].status = 'processed';
|
|
306
|
+
pendingItemsBefore.forEach(function (otherItem) {
|
|
307
|
+
otherItem.status = 'cancelled';
|
|
308
|
+
});
|
|
309
|
+
const vehicleDataClone = JSON.parse(JSON.stringify(this.vehicleLookup));
|
|
310
|
+
vehicleDataClone.serviceItems = serviceDataClone;
|
|
311
|
+
this.vehicleLookup = JSON.parse(JSON.stringify(vehicleDataClone));
|
|
312
|
+
this.showPrintBox = true;
|
|
313
|
+
this.lastSuccessfulClaimResponse = response;
|
|
314
|
+
}
|
|
315
|
+
async claim(item) {
|
|
316
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
317
|
+
const serviceItems = this.getServiceItems();
|
|
318
|
+
const vinDataClone = JSON.parse(JSON.stringify(serviceItems));
|
|
319
|
+
const index = serviceItems.indexOf(item);
|
|
320
|
+
this.selectedClaimItem = item;
|
|
321
|
+
//Find other items before this item that have status 'pending'
|
|
322
|
+
let pendingItemsBefore = vinDataClone.slice(0, index).filter(x => x.status === 'pending');
|
|
323
|
+
if ((item === null || item === void 0 ? void 0 : item.maximumMileage) === null)
|
|
324
|
+
pendingItemsBefore = [];
|
|
325
|
+
this.claimForm.item = item;
|
|
326
|
+
this.claimForm.vin = (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin;
|
|
327
|
+
this.claimForm.canceledItems = pendingItemsBefore;
|
|
328
|
+
if (((_c = (_b = this.vehicleLookup) === null || _b === void 0 ? void 0 : _b.saleInformation) === null || _c === void 0 ? void 0 : _c.broker) !== null && ((_f = (_e = (_d = this.vehicleLookup) === null || _d === void 0 ? void 0 : _d.saleInformation) === null || _e === void 0 ? void 0 : _e.broker) === null || _f === void 0 ? void 0 : _f.invoiceDate) === null)
|
|
329
|
+
this.claimForm.unInvoicedByBrokerName = (_j = (_h = (_g = this.vehicleLookup) === null || _g === void 0 ? void 0 : _g.saleInformation) === null || _h === void 0 ? void 0 : _h.broker) === null || _j === void 0 ? void 0 : _j.brokerName;
|
|
330
|
+
else
|
|
331
|
+
this.claimForm.unInvoicedByBrokerName = null;
|
|
332
|
+
this.claimForm.handleClaiming = this.isDev ? this.handleDevClaim.bind(this) : this.handleClaim.bind(this);
|
|
333
|
+
this.claimForm.open();
|
|
334
|
+
}
|
|
335
|
+
// ====== End Component Logic
|
|
336
|
+
render() {
|
|
337
|
+
var _a;
|
|
338
|
+
const serviceItems = this.getServiceItems();
|
|
339
|
+
const isNoServicesAvailable = !this.isLoading && this.vehicleLookup && !serviceItems.length;
|
|
340
|
+
const hideTabs = this.isLoading || this.isError || !this.tabs.length || !serviceItems.length;
|
|
341
|
+
const tabs = this.tabs.map(group => group.name);
|
|
342
|
+
const hasInactiveItems = serviceItems.filter(x => x.status === 'activationRequired').length > 0;
|
|
343
|
+
return (h(Host, { key: '44360220c1bc6d62278f09d2e2dedf5e607636e2' }, h("vehicle-item-claim-form", { key: '84bf2c209a66abfa205e724ba14ea74d16787198', class: "vehicle-item-claim-form", maximumDocumentFileSizeInMb: this.maximumDocumentFileSizeInMb, uploadMultipleDocuments: this.uploadMultipleDocumentsAtTheForm, locale: Object.assign({ sharedLocales: this.locale.sharedLocales }, this.locale.claimForm) }), h(ClaimableItemPopover, { key: '9afc9a2220229a1a18dfcf60eddc82c9fccf5086', locale: this.locale, claim: this.claim.bind(this), item: this.selectedClaimItem, showPopover: this.showClaimableItemPopover, targetLocation: this.popoverTargetLocation }), h(VehicleInfoLayout, { key: 'e29f026f769f9ba2faf944d8fc9c89a58d54c56f', isError: this.isError, coreOnly: this.coreOnly, header: (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin, direction: this.locale.sharedLocales.direction, isLoading: this.isLoading || this.tabAnimationLoading, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: 'e0a9efd29b5597e4dcb4eeb866f6509248956f8b', dir: "ltr", class: cn('relative flex items-center h-[320px] transition-all duration-300', { loading: this.isLoading || this.tabAnimationLoading }) }, h("div", { key: '318a1e9f274cbaffeccb4e031ed45727942da8f6', dir: this.locale.sharedLocales.direction, class: "absolute top-0 z-10 w-full pt-[16px]" }, h("div", { key: '610e25bec66ff292599b940107ca8d47b9b7296a', class: cn('duration-300', { 'translate-y-[-50%] opacity-0': hideTabs }) }, h("shift-tabs", { key: '09776839ef94cc3669122708b569035461ec9b13', activeTabLabel: this.activeTab, changeActiveTab: this.onActiveTabChange, tabs: tabs }))), h("div", { key: '0aecf12769963ca12e3b89a888bc6aef95284933', class: cn('absolute w-[calc(100%-60px)] left-[30px] progress-container-style opacity-0', { 'opacity-100': this.isLoading || this.tabAnimationLoading }) }, h("div", { key: 'bf6e063fd65c34efb40cbd87ab6282617e533f63', class: "w-full h-full rounded-[4px] overflow-x-hidden absolute left-0 top-0" }, h("div", { key: 'a3041409aadacc17c846208fa8a37b140dcc2179', class: "absolute opacity-0 bg-[#1a1a1a] w-[150%] h-full" }), h("div", { key: '8071ef4c5df5bb97a08d78e55354cd313d2bc001', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-inc" }), h("div", { key: 'f9191cf4d792b4ddb44c629e48de1d8e7f266a46', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-dec" }))), h("div", { key: '861ef1c868847ed41d3a183187ec47f35fd4b771', dir: this.locale.sharedLocales.direction, class: cn('absolute w-[90%] z-10 pointer-events-none border opacity-0 translate-y-[-5px] scale-[70%] text-[#8a6d3b] bg-[#fcf8e3] border-[#faebcc] p-[25px] text-[16px] rounded-[6px] flex items-center justify-between left-1/2 -translate-x-1/2 h-10 bottom-[40px] transition duration-500', {
|
|
344
|
+
'opacity-100 pointer-events-auto translate-y-0 scale-100': !this.isLoading && this.vehicleLookup && !this.tabAnimationLoading && (hasInactiveItems || this.showPrintBox),
|
|
345
|
+
}) }, h("span", { key: '1524fe7df95945e61b47d1eeb61fe0ea71bae523', class: "font-semibold" }, this.showPrintBox ? this.locale.successFulClaimMessage : this.locale.warrantyAndServicesNotActivated), h("button", { key: '83e2945f1874e1f72042d3256144ce6497f527c5', class: "claim-button", onClick: this.showPrintBox ? this.printLastClaimResponse : this.activateClaimItem }, this.showPrintBox ? h(PrintIcon, { class: "size-[30px] duration-200" }) : h(ActivationIcon, { class: "size-[30px] duration-200" }), h("span", { key: 'b40c96dff55772899aed1f2fdf5a3d97c200dd4b' }, this.showPrintBox ? this.locale.print : this.locale.activateNow))), h("div", { key: 'e283a8e067b2a25fa700383923f4b1fcb8b9f64a', class: "claimable-items-box px-[30px] min-w-full relative overflow-x-scroll h-full overflow-y-hidden" }, h("div", { key: 'cc7b8b22ecdba6060e8823ad3c44143328cc9a64', class: "flex relative w-fit min-w-full items-center h-full [&_*]:shrink-0 gap-[250px] justify-between" }, h("div", { key: 'd56212043b5e13ace1f023b1b617605282ba6753', class: cn('progress-container-style progress-lane absolute overflow-hidden w-[calc(100%-0px)] translate-y-0 opacity-100', {
|
|
346
|
+
'opacity-0': this.isLoading || this.tabAnimationLoading || isNoServicesAvailable || !this.vehicleLookup,
|
|
347
|
+
}) }, h("div", { key: 'a537adcf3a231d964282b7b1791e93fd490e62a1', part: "progress-bar", class: "progress-bar transition-all w-1/2 h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)]" })), h("div", { key: 'beb0abf55009aa202bd29ccfaaa7720a5a475ed7', class: "ml-[-125px]" }), serviceItems.map((item, idx) => (h(ClaimableItem, { item: item, locale: this.locale, setClaimableItemPopover: this.setClaimableItemPopover, addStatusClass: item.status !== 'pending' || serviceItems.findIndex(i => i.status === 'pending') === idx }))), h("div", { key: 'a035f9892e2ac7a4136bffe471c03e2d02eb6c85', class: "ml-[-125px]" })), h("div", { key: '7411e36b7cebaaab816e18480ccfcb2e202323c3', dir: this.locale.sharedLocales.direction, class: cn('absolute top-0 left-0 pointer-events-none size-full box-content flex flex-col justify-center opacity-0 transition duration-500 items-center text-slate-700', {
|
|
348
|
+
'opacity-100 scale-100': isNoServicesAvailable,
|
|
349
|
+
}) }, h(EmptyTableIcon, { key: '116b499c66991c504a80092b6b142219b414ce64', class: "size-[90px]" }), h("div", { key: '4e75124a913148beb49815ae3b4c16d58eb3d3b3', class: "text-[22px]" }, this.locale.sharedLocales.errors.noServiceAvailable)))))));
|
|
350
|
+
}
|
|
351
|
+
static get is() { return "vehicle-claimable-items"; }
|
|
352
|
+
static get encapsulation() { return "shadow"; }
|
|
353
|
+
static get originalStyleUrls() {
|
|
354
|
+
return {
|
|
355
|
+
"$": ["vehicle-claimable-items.css"]
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
static get styleUrls() {
|
|
359
|
+
return {
|
|
360
|
+
"$": ["vehicle-claimable-items.css"]
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
static get properties() {
|
|
364
|
+
return {
|
|
365
|
+
"language": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"attribute": "language",
|
|
368
|
+
"mutable": false,
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "LanguageKeys",
|
|
371
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
372
|
+
"references": {
|
|
373
|
+
"LanguageKeys": {
|
|
374
|
+
"location": "import",
|
|
375
|
+
"path": "~features/multi-lingual",
|
|
376
|
+
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"optional": false,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": ""
|
|
385
|
+
},
|
|
386
|
+
"getter": false,
|
|
387
|
+
"setter": false,
|
|
388
|
+
"reflect": false,
|
|
389
|
+
"defaultValue": "'en'"
|
|
390
|
+
},
|
|
391
|
+
"coreOnly": {
|
|
392
|
+
"type": "boolean",
|
|
393
|
+
"attribute": "core-only",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "boolean",
|
|
397
|
+
"resolved": "boolean",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": ""
|
|
405
|
+
},
|
|
406
|
+
"getter": false,
|
|
407
|
+
"setter": false,
|
|
408
|
+
"reflect": false,
|
|
409
|
+
"defaultValue": "false"
|
|
410
|
+
},
|
|
411
|
+
"isDev": {
|
|
412
|
+
"type": "boolean",
|
|
413
|
+
"attribute": "is-dev",
|
|
414
|
+
"mutable": false,
|
|
415
|
+
"complexType": {
|
|
416
|
+
"original": "boolean",
|
|
417
|
+
"resolved": "boolean",
|
|
418
|
+
"references": {}
|
|
419
|
+
},
|
|
420
|
+
"required": false,
|
|
421
|
+
"optional": false,
|
|
422
|
+
"docs": {
|
|
423
|
+
"tags": [],
|
|
424
|
+
"text": ""
|
|
425
|
+
},
|
|
426
|
+
"getter": false,
|
|
427
|
+
"setter": false,
|
|
428
|
+
"reflect": false
|
|
429
|
+
},
|
|
430
|
+
"baseUrl": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"attribute": "base-url",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "string",
|
|
436
|
+
"resolved": "string",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": false,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": ""
|
|
444
|
+
},
|
|
445
|
+
"getter": false,
|
|
446
|
+
"setter": false,
|
|
447
|
+
"reflect": false
|
|
448
|
+
},
|
|
449
|
+
"headers": {
|
|
450
|
+
"type": "unknown",
|
|
451
|
+
"attribute": "headers",
|
|
452
|
+
"mutable": false,
|
|
453
|
+
"complexType": {
|
|
454
|
+
"original": "object",
|
|
455
|
+
"resolved": "object",
|
|
456
|
+
"references": {}
|
|
457
|
+
},
|
|
458
|
+
"required": false,
|
|
459
|
+
"optional": false,
|
|
460
|
+
"docs": {
|
|
461
|
+
"tags": [],
|
|
462
|
+
"text": ""
|
|
463
|
+
},
|
|
464
|
+
"getter": false,
|
|
465
|
+
"setter": false,
|
|
466
|
+
"defaultValue": "{}"
|
|
467
|
+
},
|
|
468
|
+
"queryString": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"attribute": "query-string",
|
|
471
|
+
"mutable": false,
|
|
472
|
+
"complexType": {
|
|
473
|
+
"original": "string",
|
|
474
|
+
"resolved": "string",
|
|
475
|
+
"references": {}
|
|
476
|
+
},
|
|
477
|
+
"required": false,
|
|
478
|
+
"optional": false,
|
|
479
|
+
"docs": {
|
|
480
|
+
"tags": [],
|
|
481
|
+
"text": ""
|
|
482
|
+
},
|
|
483
|
+
"getter": false,
|
|
484
|
+
"setter": false,
|
|
485
|
+
"reflect": false,
|
|
486
|
+
"defaultValue": "''"
|
|
487
|
+
},
|
|
488
|
+
"uploadMultipleDocumentsAtTheForm": {
|
|
489
|
+
"type": "boolean",
|
|
490
|
+
"attribute": "upload-multiple-documents-at-the-form",
|
|
491
|
+
"mutable": false,
|
|
492
|
+
"complexType": {
|
|
493
|
+
"original": "boolean",
|
|
494
|
+
"resolved": "boolean",
|
|
495
|
+
"references": {}
|
|
496
|
+
},
|
|
497
|
+
"required": false,
|
|
498
|
+
"optional": false,
|
|
499
|
+
"docs": {
|
|
500
|
+
"tags": [],
|
|
501
|
+
"text": ""
|
|
502
|
+
},
|
|
503
|
+
"getter": false,
|
|
504
|
+
"setter": false,
|
|
505
|
+
"reflect": false,
|
|
506
|
+
"defaultValue": "true"
|
|
507
|
+
},
|
|
508
|
+
"errorCallback": {
|
|
509
|
+
"type": "unknown",
|
|
510
|
+
"attribute": "error-callback",
|
|
511
|
+
"mutable": false,
|
|
512
|
+
"complexType": {
|
|
513
|
+
"original": "(errorMessage: ErrorKeys) => void",
|
|
514
|
+
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
515
|
+
"references": {
|
|
516
|
+
"ErrorKeys": {
|
|
517
|
+
"location": "import",
|
|
518
|
+
"path": "~features/multi-lingual",
|
|
519
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": ""
|
|
528
|
+
},
|
|
529
|
+
"getter": false,
|
|
530
|
+
"setter": false
|
|
531
|
+
},
|
|
532
|
+
"loadingStateChange": {
|
|
533
|
+
"type": "unknown",
|
|
534
|
+
"attribute": "loading-state-change",
|
|
535
|
+
"mutable": false,
|
|
536
|
+
"complexType": {
|
|
537
|
+
"original": "(isLoading: boolean) => void",
|
|
538
|
+
"resolved": "(isLoading: boolean) => void",
|
|
539
|
+
"references": {}
|
|
540
|
+
},
|
|
541
|
+
"required": false,
|
|
542
|
+
"optional": true,
|
|
543
|
+
"docs": {
|
|
544
|
+
"tags": [],
|
|
545
|
+
"text": ""
|
|
546
|
+
},
|
|
547
|
+
"getter": false,
|
|
548
|
+
"setter": false
|
|
549
|
+
},
|
|
550
|
+
"loadedResponse": {
|
|
551
|
+
"type": "unknown",
|
|
552
|
+
"attribute": "loaded-response",
|
|
553
|
+
"mutable": false,
|
|
554
|
+
"complexType": {
|
|
555
|
+
"original": "(response: VehicleLookupDTO) => void",
|
|
556
|
+
"resolved": "(response: VehicleLookupDTO) => void",
|
|
557
|
+
"references": {
|
|
558
|
+
"VehicleLookupDTO": {
|
|
559
|
+
"location": "import",
|
|
560
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
561
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"required": false,
|
|
566
|
+
"optional": true,
|
|
567
|
+
"docs": {
|
|
568
|
+
"tags": [],
|
|
569
|
+
"text": ""
|
|
570
|
+
},
|
|
571
|
+
"getter": false,
|
|
572
|
+
"setter": false
|
|
573
|
+
},
|
|
574
|
+
"print": {
|
|
575
|
+
"type": "unknown",
|
|
576
|
+
"attribute": "print",
|
|
577
|
+
"mutable": false,
|
|
578
|
+
"complexType": {
|
|
579
|
+
"original": "(claimResponse: any) => void",
|
|
580
|
+
"resolved": "(claimResponse: any) => void",
|
|
581
|
+
"references": {}
|
|
582
|
+
},
|
|
583
|
+
"required": false,
|
|
584
|
+
"optional": true,
|
|
585
|
+
"docs": {
|
|
586
|
+
"tags": [],
|
|
587
|
+
"text": ""
|
|
588
|
+
},
|
|
589
|
+
"getter": false,
|
|
590
|
+
"setter": false
|
|
591
|
+
},
|
|
592
|
+
"maximumDocumentFileSizeInMb": {
|
|
593
|
+
"type": "number",
|
|
594
|
+
"attribute": "maximum-document-file-size-in-mb",
|
|
595
|
+
"mutable": false,
|
|
596
|
+
"complexType": {
|
|
597
|
+
"original": "number",
|
|
598
|
+
"resolved": "number",
|
|
599
|
+
"references": {}
|
|
600
|
+
},
|
|
601
|
+
"required": false,
|
|
602
|
+
"optional": false,
|
|
603
|
+
"docs": {
|
|
604
|
+
"tags": [],
|
|
605
|
+
"text": ""
|
|
606
|
+
},
|
|
607
|
+
"getter": false,
|
|
608
|
+
"setter": false,
|
|
609
|
+
"reflect": false,
|
|
610
|
+
"defaultValue": "30"
|
|
611
|
+
},
|
|
612
|
+
"claimEndPoint": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"attribute": "claim-end-point",
|
|
615
|
+
"mutable": false,
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "string",
|
|
618
|
+
"resolved": "string",
|
|
619
|
+
"references": {}
|
|
620
|
+
},
|
|
621
|
+
"required": false,
|
|
622
|
+
"optional": false,
|
|
623
|
+
"docs": {
|
|
624
|
+
"tags": [],
|
|
625
|
+
"text": ""
|
|
626
|
+
},
|
|
627
|
+
"getter": false,
|
|
628
|
+
"setter": false,
|
|
629
|
+
"reflect": false,
|
|
630
|
+
"defaultValue": "'api/vehicle/swift-claim'"
|
|
631
|
+
},
|
|
632
|
+
"activate": {
|
|
633
|
+
"type": "unknown",
|
|
634
|
+
"attribute": "activate",
|
|
635
|
+
"mutable": false,
|
|
636
|
+
"complexType": {
|
|
637
|
+
"original": "(vehicleInformation: VehicleLookupDTO) => void",
|
|
638
|
+
"resolved": "(vehicleInformation: VehicleLookupDTO) => void",
|
|
639
|
+
"references": {
|
|
640
|
+
"VehicleLookupDTO": {
|
|
641
|
+
"location": "import",
|
|
642
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
643
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"required": false,
|
|
648
|
+
"optional": true,
|
|
649
|
+
"docs": {
|
|
650
|
+
"tags": [],
|
|
651
|
+
"text": ""
|
|
652
|
+
},
|
|
653
|
+
"getter": false,
|
|
654
|
+
"setter": false
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
static get states() {
|
|
659
|
+
return {
|
|
660
|
+
"locale": {},
|
|
661
|
+
"isError": {},
|
|
662
|
+
"errorMessage": {},
|
|
663
|
+
"isLoading": {},
|
|
664
|
+
"vehicleLookup": {},
|
|
665
|
+
"activeTab": {},
|
|
666
|
+
"showPrintBox": {},
|
|
667
|
+
"tabAnimationLoading": {},
|
|
668
|
+
"lastSuccessfulClaimResponse": {},
|
|
669
|
+
"showClaimableItemPopover": {},
|
|
670
|
+
"selectedClaimItem": {},
|
|
671
|
+
"tabs": {},
|
|
672
|
+
"popoverTargetLocation": {}
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
static get methods() {
|
|
676
|
+
return {
|
|
677
|
+
"setMockData": {
|
|
678
|
+
"complexType": {
|
|
679
|
+
"signature": "(newMockData: VehicleLookupMock) => Promise<void>",
|
|
680
|
+
"parameters": [{
|
|
681
|
+
"name": "newMockData",
|
|
682
|
+
"type": "{ [key: string]: VehicleLookupDTO; }",
|
|
683
|
+
"docs": ""
|
|
684
|
+
}],
|
|
685
|
+
"references": {
|
|
686
|
+
"Promise": {
|
|
687
|
+
"location": "global",
|
|
688
|
+
"id": "global::Promise"
|
|
689
|
+
},
|
|
690
|
+
"VehicleLookupMock": {
|
|
691
|
+
"location": "import",
|
|
692
|
+
"path": "~features/vehicle-lookup-component/types",
|
|
693
|
+
"id": "src/features/vehicle-lookup-component/types.ts::VehicleLookupMock"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
"return": "Promise<void>"
|
|
697
|
+
},
|
|
698
|
+
"docs": {
|
|
699
|
+
"text": "",
|
|
700
|
+
"tags": []
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"fetchData": {
|
|
704
|
+
"complexType": {
|
|
705
|
+
"signature": "(newData: VehicleLookupDTO | string, headers?: any) => Promise<void>",
|
|
706
|
+
"parameters": [{
|
|
707
|
+
"name": "newData",
|
|
708
|
+
"type": "string | VehicleLookupDTO",
|
|
709
|
+
"docs": ""
|
|
710
|
+
}, {
|
|
711
|
+
"name": "headers",
|
|
712
|
+
"type": "any",
|
|
713
|
+
"docs": ""
|
|
714
|
+
}],
|
|
715
|
+
"references": {
|
|
716
|
+
"Promise": {
|
|
717
|
+
"location": "global",
|
|
718
|
+
"id": "global::Promise"
|
|
719
|
+
},
|
|
720
|
+
"VehicleLookupDTO": {
|
|
721
|
+
"location": "import",
|
|
722
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
723
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"return": "Promise<void>"
|
|
727
|
+
},
|
|
728
|
+
"docs": {
|
|
729
|
+
"text": "",
|
|
730
|
+
"tags": []
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
"setErrorMessage": {
|
|
734
|
+
"complexType": {
|
|
735
|
+
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
736
|
+
"parameters": [{
|
|
737
|
+
"name": "message",
|
|
738
|
+
"type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
|
|
739
|
+
"docs": ""
|
|
740
|
+
}],
|
|
741
|
+
"references": {
|
|
742
|
+
"Promise": {
|
|
743
|
+
"location": "global",
|
|
744
|
+
"id": "global::Promise"
|
|
745
|
+
},
|
|
746
|
+
"ErrorKeys": {
|
|
747
|
+
"location": "import",
|
|
748
|
+
"path": "~features/multi-lingual",
|
|
749
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"return": "Promise<void>"
|
|
753
|
+
},
|
|
754
|
+
"docs": {
|
|
755
|
+
"text": "",
|
|
756
|
+
"tags": []
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"completeClaim": {
|
|
760
|
+
"complexType": {
|
|
761
|
+
"signature": "(response: any) => Promise<void>",
|
|
762
|
+
"parameters": [{
|
|
763
|
+
"name": "response",
|
|
764
|
+
"type": "any",
|
|
765
|
+
"docs": ""
|
|
766
|
+
}],
|
|
767
|
+
"references": {
|
|
768
|
+
"Promise": {
|
|
769
|
+
"location": "global",
|
|
770
|
+
"id": "global::Promise"
|
|
771
|
+
},
|
|
772
|
+
"VehicleLookupDTO": {
|
|
773
|
+
"location": "import",
|
|
774
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
775
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"return": "Promise<void>"
|
|
779
|
+
},
|
|
780
|
+
"docs": {
|
|
781
|
+
"text": "",
|
|
782
|
+
"tags": []
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"claim": {
|
|
786
|
+
"complexType": {
|
|
787
|
+
"signature": "(item: VehicleServiceItemDTO) => Promise<void>",
|
|
788
|
+
"parameters": [{
|
|
789
|
+
"name": "item",
|
|
790
|
+
"type": "{ group: VehicleServiceItemGroup; showDocumentUploader: boolean; documentUploaderIsRequired: boolean; name: string; description: string; title: string; image: string; type: string; typeEnum: \"Free\" | \"Paid\"; activatedAt: string; expiresAt?: string; status: string; statusEnum: \"Processed\" | \"Expired\" | \"Pending\" | \"Cancelled\" | \"ActivationRequired\"; campaignID?: number; campaignUniqueReference: string; packageCode: string; cost?: number; claimDate?: string; modelCostID?: number; serviceItemID: number; paidServiceInvoiceLineID?: number; companyID: string; companyName: string; invoiceNumber: string; jobNumber: string; maximumMileage?: number; claimable: boolean; claimingMethodEnum: \"ClaimByScanningQRCode\" | \"ClaimByEnteringInvoiceAndJobNumber\"; vehicleInspectionID: string; signature: string; signatureExpiry: string; }",
|
|
791
|
+
"docs": ""
|
|
792
|
+
}],
|
|
793
|
+
"references": {
|
|
794
|
+
"Promise": {
|
|
795
|
+
"location": "global",
|
|
796
|
+
"id": "global::Promise"
|
|
797
|
+
},
|
|
798
|
+
"VehicleServiceItemDTO": {
|
|
799
|
+
"location": "import",
|
|
800
|
+
"path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
|
|
801
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"return": "Promise<void>"
|
|
805
|
+
},
|
|
806
|
+
"docs": {
|
|
807
|
+
"text": "",
|
|
808
|
+
"tags": []
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
static get elementRef() { return "el"; }
|
|
814
|
+
static get watchers() {
|
|
815
|
+
return [{
|
|
816
|
+
"propName": "language",
|
|
817
|
+
"methodName": "changeLanguage"
|
|
818
|
+
}, {
|
|
819
|
+
"propName": "isLoading",
|
|
820
|
+
"methodName": "onLoadingChange"
|
|
821
|
+
}, {
|
|
822
|
+
"propName": "vehicleLookup",
|
|
823
|
+
"methodName": "onVehicleChange"
|
|
824
|
+
}];
|
|
825
|
+
}
|
|
826
|
+
}
|