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
|
@@ -4,305 +4,338 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-BjyafrBw.js');
|
|
8
|
+
|
|
9
|
+
function getDefaultExportFromCjs (x) {
|
|
10
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
+
}
|
|
8
12
|
|
|
9
13
|
/**
|
|
10
14
|
* Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information>
|
|
11
15
|
*/
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
Cache.prototype.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
17
|
+
var propertyExpr;
|
|
18
|
+
var hasRequiredPropertyExpr;
|
|
19
|
+
|
|
20
|
+
function requirePropertyExpr () {
|
|
21
|
+
if (hasRequiredPropertyExpr) return propertyExpr;
|
|
22
|
+
hasRequiredPropertyExpr = 1;
|
|
23
|
+
|
|
24
|
+
function Cache(maxSize) {
|
|
25
|
+
this._maxSize = maxSize;
|
|
26
|
+
this.clear();
|
|
27
|
+
}
|
|
28
|
+
Cache.prototype.clear = function () {
|
|
29
|
+
this._size = 0;
|
|
30
|
+
this._values = Object.create(null);
|
|
31
|
+
};
|
|
32
|
+
Cache.prototype.get = function (key) {
|
|
33
|
+
return this._values[key]
|
|
34
|
+
};
|
|
35
|
+
Cache.prototype.set = function (key, value) {
|
|
36
|
+
this._size >= this._maxSize && this.clear();
|
|
37
|
+
if (!(key in this._values)) this._size++;
|
|
38
|
+
|
|
39
|
+
return (this._values[key] = value)
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var SPLIT_REGEX = /[^.^\]^[]+|(?=\[\]|\.\.)/g,
|
|
43
|
+
DIGIT_REGEX = /^\d+$/,
|
|
44
|
+
LEAD_DIGIT_REGEX = /^\d/,
|
|
45
|
+
SPEC_CHAR_REGEX = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,
|
|
46
|
+
CLEAN_QUOTES_REGEX = /^\s*(['"]?)(.*?)(\1)\s*$/,
|
|
47
|
+
MAX_CACHE_SIZE = 512;
|
|
48
|
+
|
|
49
|
+
var pathCache = new Cache(MAX_CACHE_SIZE),
|
|
50
|
+
setCache = new Cache(MAX_CACHE_SIZE),
|
|
51
|
+
getCache = new Cache(MAX_CACHE_SIZE);
|
|
52
|
+
|
|
53
|
+
propertyExpr = {
|
|
54
|
+
Cache: Cache,
|
|
55
|
+
|
|
56
|
+
split: split,
|
|
57
|
+
|
|
58
|
+
normalizePath: normalizePath,
|
|
59
|
+
|
|
60
|
+
setter: function (path) {
|
|
61
|
+
var parts = normalizePath(path);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
setCache.get(path) ||
|
|
65
|
+
setCache.set(path, function setter(obj, value) {
|
|
66
|
+
var index = 0;
|
|
67
|
+
var len = parts.length;
|
|
68
|
+
var data = obj;
|
|
69
|
+
|
|
70
|
+
while (index < len - 1) {
|
|
71
|
+
var part = parts[index];
|
|
72
|
+
if (
|
|
73
|
+
part === '__proto__' ||
|
|
74
|
+
part === 'constructor' ||
|
|
75
|
+
part === 'prototype'
|
|
76
|
+
) {
|
|
77
|
+
return obj
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
data = data[parts[index++]];
|
|
81
|
+
}
|
|
82
|
+
data[parts[index]] = value;
|
|
83
|
+
})
|
|
84
|
+
)
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
getter: function (path, safe) {
|
|
88
|
+
var parts = normalizePath(path);
|
|
89
|
+
return (
|
|
90
|
+
getCache.get(path) ||
|
|
91
|
+
getCache.set(path, function getter(data) {
|
|
92
|
+
var index = 0,
|
|
93
|
+
len = parts.length;
|
|
94
|
+
while (index < len) {
|
|
95
|
+
if (data != null || !safe) data = data[parts[index++]];
|
|
96
|
+
else return
|
|
97
|
+
}
|
|
98
|
+
return data
|
|
99
|
+
})
|
|
100
|
+
)
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
join: function (segments) {
|
|
104
|
+
return segments.reduce(function (path, part) {
|
|
105
|
+
return (
|
|
106
|
+
path +
|
|
107
|
+
(isQuoted(part) || DIGIT_REGEX.test(part)
|
|
108
|
+
? '[' + part + ']'
|
|
109
|
+
: (path ? '.' : '') + part)
|
|
110
|
+
)
|
|
111
|
+
}, '')
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
forEach: function (path, cb, thisArg) {
|
|
115
|
+
forEach(Array.isArray(path) ? path : split(path), cb, thisArg);
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
function normalizePath(path) {
|
|
120
|
+
return (
|
|
121
|
+
pathCache.get(path) ||
|
|
122
|
+
pathCache.set(
|
|
123
|
+
path,
|
|
124
|
+
split(path).map(function (part) {
|
|
125
|
+
return part.replace(CLEAN_QUOTES_REGEX, '$2')
|
|
126
|
+
})
|
|
127
|
+
)
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function split(path) {
|
|
132
|
+
return path.match(SPLIT_REGEX) || ['']
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function forEach(parts, iter, thisArg) {
|
|
136
|
+
var len = parts.length,
|
|
137
|
+
part,
|
|
138
|
+
idx,
|
|
139
|
+
isArray,
|
|
140
|
+
isBracket;
|
|
141
|
+
|
|
142
|
+
for (idx = 0; idx < len; idx++) {
|
|
143
|
+
part = parts[idx];
|
|
144
|
+
|
|
145
|
+
if (part) {
|
|
146
|
+
if (shouldBeQuoted(part)) {
|
|
147
|
+
part = '"' + part + '"';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
isBracket = isQuoted(part);
|
|
151
|
+
isArray = !isBracket && /^\d+$/.test(part);
|
|
152
|
+
|
|
153
|
+
iter.call(thisArg, part, isBracket, isArray, idx, parts);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function isQuoted(str) {
|
|
159
|
+
return (
|
|
160
|
+
typeof str === 'string' && str && ["'", '"'].indexOf(str.charAt(0)) !== -1
|
|
161
|
+
)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function hasLeadingNumber(part) {
|
|
165
|
+
return part.match(LEAD_DIGIT_REGEX) && !part.match(DIGIT_REGEX)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function hasSpecialChars(part) {
|
|
169
|
+
return SPEC_CHAR_REGEX.test(part)
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function shouldBeQuoted(part) {
|
|
173
|
+
return !isQuoted(part) && (hasLeadingNumber(part) || hasSpecialChars(part))
|
|
174
|
+
}
|
|
175
|
+
return propertyExpr;
|
|
159
176
|
}
|
|
160
177
|
|
|
161
|
-
|
|
162
|
-
return !isQuoted(part) && (hasLeadingNumber(part) || hasSpecialChars(part))
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const reWords = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g;
|
|
166
|
-
|
|
167
|
-
const words = (str) => str.match(reWords) || [];
|
|
168
|
-
|
|
169
|
-
const upperFirst = (str) => str[0].toUpperCase() + str.slice(1);
|
|
178
|
+
var propertyExprExports = requirePropertyExpr();
|
|
170
179
|
|
|
171
|
-
|
|
180
|
+
var tinyCase;
|
|
181
|
+
var hasRequiredTinyCase;
|
|
172
182
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
!acc
|
|
178
|
-
? next.toLowerCase()
|
|
179
|
-
: next[0].toUpperCase() + next.slice(1).toLowerCase()
|
|
180
|
-
}`,
|
|
181
|
-
'',
|
|
182
|
-
);
|
|
183
|
+
function requireTinyCase () {
|
|
184
|
+
if (hasRequiredTinyCase) return tinyCase;
|
|
185
|
+
hasRequiredTinyCase = 1;
|
|
186
|
+
const reWords = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g;
|
|
183
187
|
|
|
184
|
-
const
|
|
188
|
+
const words = (str) => str.match(reWords) || [];
|
|
185
189
|
|
|
186
|
-
const
|
|
190
|
+
const upperFirst = (str) => str[0].toUpperCase() + str.slice(1);
|
|
187
191
|
|
|
188
|
-
const
|
|
192
|
+
const join = (str, d) => words(str).join(d).toLowerCase();
|
|
189
193
|
|
|
190
|
-
const
|
|
194
|
+
const camelCase = (str) =>
|
|
195
|
+
words(str).reduce(
|
|
196
|
+
(acc, next) =>
|
|
197
|
+
`${acc}${
|
|
198
|
+
!acc
|
|
199
|
+
? next.toLowerCase()
|
|
200
|
+
: next[0].toUpperCase() + next.slice(1).toLowerCase()
|
|
201
|
+
}`,
|
|
202
|
+
'',
|
|
203
|
+
);
|
|
191
204
|
|
|
192
|
-
const
|
|
205
|
+
const pascalCase = (str) => upperFirst(camelCase(str));
|
|
193
206
|
|
|
194
|
-
|
|
195
|
-
words,
|
|
196
|
-
upperFirst,
|
|
197
|
-
camelCase,
|
|
198
|
-
pascalCase,
|
|
199
|
-
snakeCase,
|
|
200
|
-
kebabCase,
|
|
201
|
-
sentenceCase,
|
|
202
|
-
titleCase,
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
var toposort$2 = {exports: {}};
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Topological sorting function
|
|
209
|
-
*
|
|
210
|
-
* @param {Array} edges
|
|
211
|
-
* @returns {Array}
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
|
-
toposort$2.exports = function(edges) {
|
|
215
|
-
return toposort(uniqueNodes(edges), edges)
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
toposort$2.exports.array = toposort;
|
|
219
|
-
|
|
220
|
-
function toposort(nodes, edges) {
|
|
221
|
-
var cursor = nodes.length
|
|
222
|
-
, sorted = new Array(cursor)
|
|
223
|
-
, visited = {}
|
|
224
|
-
, i = cursor
|
|
225
|
-
// Better data structures make algorithm much faster.
|
|
226
|
-
, outgoingEdges = makeOutgoingEdges(edges)
|
|
227
|
-
, nodesHash = makeNodesHash(nodes);
|
|
228
|
-
|
|
229
|
-
// check for unknown nodes
|
|
230
|
-
edges.forEach(function(edge) {
|
|
231
|
-
if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {
|
|
232
|
-
throw new Error('Unknown node. There is an unknown node in the supplied edges.')
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
while (i--) {
|
|
237
|
-
if (!visited[i]) visit(nodes[i], i, new Set());
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
return sorted
|
|
241
|
-
|
|
242
|
-
function visit(node, i, predecessors) {
|
|
243
|
-
if(predecessors.has(node)) {
|
|
244
|
-
var nodeRep;
|
|
245
|
-
try {
|
|
246
|
-
nodeRep = ", node was:" + JSON.stringify(node);
|
|
247
|
-
} catch(e) {
|
|
248
|
-
nodeRep = "";
|
|
249
|
-
}
|
|
250
|
-
throw new Error('Cyclic dependency' + nodeRep)
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (!nodesHash.has(node)) {
|
|
254
|
-
throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: '+JSON.stringify(node))
|
|
255
|
-
}
|
|
207
|
+
const snakeCase = (str) => join(str, '_');
|
|
256
208
|
|
|
257
|
-
|
|
258
|
-
visited[i] = true;
|
|
209
|
+
const kebabCase = (str) => join(str, '-');
|
|
259
210
|
|
|
260
|
-
|
|
261
|
-
outgoing = Array.from(outgoing);
|
|
211
|
+
const sentenceCase = (str) => upperFirst(join(str, ' '));
|
|
262
212
|
|
|
263
|
-
|
|
264
|
-
predecessors.add(node);
|
|
265
|
-
do {
|
|
266
|
-
var child = outgoing[--i];
|
|
267
|
-
visit(child, nodesHash.get(child), predecessors);
|
|
268
|
-
} while (i)
|
|
269
|
-
predecessors.delete(node);
|
|
270
|
-
}
|
|
213
|
+
const titleCase = (str) => words(str).map(upperFirst).join(' ');
|
|
271
214
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
return Array.from(res)
|
|
215
|
+
tinyCase = {
|
|
216
|
+
words,
|
|
217
|
+
upperFirst,
|
|
218
|
+
camelCase,
|
|
219
|
+
pascalCase,
|
|
220
|
+
snakeCase,
|
|
221
|
+
kebabCase,
|
|
222
|
+
sentenceCase,
|
|
223
|
+
titleCase,
|
|
224
|
+
};
|
|
225
|
+
return tinyCase;
|
|
284
226
|
}
|
|
285
227
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
228
|
+
var tinyCaseExports = requireTinyCase();
|
|
229
|
+
|
|
230
|
+
var toposort$1 = {exports: {}};
|
|
231
|
+
|
|
232
|
+
var hasRequiredToposort;
|
|
233
|
+
|
|
234
|
+
function requireToposort () {
|
|
235
|
+
if (hasRequiredToposort) return toposort$1.exports;
|
|
236
|
+
hasRequiredToposort = 1;
|
|
237
|
+
/**
|
|
238
|
+
* Topological sorting function
|
|
239
|
+
*
|
|
240
|
+
* @param {Array} edges
|
|
241
|
+
* @returns {Array}
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
toposort$1.exports = function(edges) {
|
|
245
|
+
return toposort(uniqueNodes(edges), edges)
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
toposort$1.exports.array = toposort;
|
|
249
|
+
|
|
250
|
+
function toposort(nodes, edges) {
|
|
251
|
+
var cursor = nodes.length
|
|
252
|
+
, sorted = new Array(cursor)
|
|
253
|
+
, visited = {}
|
|
254
|
+
, i = cursor
|
|
255
|
+
// Better data structures make algorithm much faster.
|
|
256
|
+
, outgoingEdges = makeOutgoingEdges(edges)
|
|
257
|
+
, nodesHash = makeNodesHash(nodes);
|
|
258
|
+
|
|
259
|
+
// check for unknown nodes
|
|
260
|
+
edges.forEach(function(edge) {
|
|
261
|
+
if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {
|
|
262
|
+
throw new Error('Unknown node. There is an unknown node in the supplied edges.')
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
while (i--) {
|
|
267
|
+
if (!visited[i]) visit(nodes[i], i, new Set());
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return sorted
|
|
271
|
+
|
|
272
|
+
function visit(node, i, predecessors) {
|
|
273
|
+
if(predecessors.has(node)) {
|
|
274
|
+
var nodeRep;
|
|
275
|
+
try {
|
|
276
|
+
nodeRep = ", node was:" + JSON.stringify(node);
|
|
277
|
+
} catch(e) {
|
|
278
|
+
nodeRep = "";
|
|
279
|
+
}
|
|
280
|
+
throw new Error('Cyclic dependency' + nodeRep)
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (!nodesHash.has(node)) {
|
|
284
|
+
throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: '+JSON.stringify(node))
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (visited[i]) return;
|
|
288
|
+
visited[i] = true;
|
|
289
|
+
|
|
290
|
+
var outgoing = outgoingEdges.get(node) || new Set();
|
|
291
|
+
outgoing = Array.from(outgoing);
|
|
292
|
+
|
|
293
|
+
if (i = outgoing.length) {
|
|
294
|
+
predecessors.add(node);
|
|
295
|
+
do {
|
|
296
|
+
var child = outgoing[--i];
|
|
297
|
+
visit(child, nodesHash.get(child), predecessors);
|
|
298
|
+
} while (i)
|
|
299
|
+
predecessors.delete(node);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
sorted[--cursor] = node;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function uniqueNodes(arr){
|
|
307
|
+
var res = new Set();
|
|
308
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
309
|
+
var edge = arr[i];
|
|
310
|
+
res.add(edge[0]);
|
|
311
|
+
res.add(edge[1]);
|
|
312
|
+
}
|
|
313
|
+
return Array.from(res)
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
function makeOutgoingEdges(arr){
|
|
317
|
+
var edges = new Map();
|
|
318
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
319
|
+
var edge = arr[i];
|
|
320
|
+
if (!edges.has(edge[0])) edges.set(edge[0], new Set());
|
|
321
|
+
if (!edges.has(edge[1])) edges.set(edge[1], new Set());
|
|
322
|
+
edges.get(edge[0]).add(edge[1]);
|
|
323
|
+
}
|
|
324
|
+
return edges
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function makeNodesHash(arr){
|
|
328
|
+
var res = new Map();
|
|
329
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
330
|
+
res.set(arr[i], i);
|
|
331
|
+
}
|
|
332
|
+
return res
|
|
333
|
+
}
|
|
334
|
+
return toposort$1.exports;
|
|
303
335
|
}
|
|
304
336
|
|
|
305
|
-
|
|
337
|
+
var toposortExports = requireToposort();
|
|
338
|
+
var toposort = /*@__PURE__*/getDefaultExportFromCjs(toposortExports);
|
|
306
339
|
|
|
307
340
|
const toString = Object.prototype.toString;
|
|
308
341
|
const errorToString = Error.prototype.toString;
|
|
@@ -563,7 +596,7 @@ class Reference {
|
|
|
563
596
|
this.isSibling = !this.isContext && !this.isValue;
|
|
564
597
|
let prefix = this.isContext ? prefixes.context : this.isValue ? prefixes.value : '';
|
|
565
598
|
this.path = this.key.slice(prefix.length);
|
|
566
|
-
this.getter = this.path &&
|
|
599
|
+
this.getter = this.path && propertyExprExports.getter(this.path, true);
|
|
567
600
|
this.map = options.map;
|
|
568
601
|
}
|
|
569
602
|
getValue(value, parent, context) {
|
|
@@ -694,7 +727,7 @@ function getIn(schema, path, value, context = value) {
|
|
|
694
727
|
parentPath: path,
|
|
695
728
|
schema
|
|
696
729
|
};
|
|
697
|
-
|
|
730
|
+
propertyExprExports.forEach(path, (_part, isBracket, isArray) => {
|
|
698
731
|
let part = isBracket ? _part.slice(1, _part.length - 1) : _part;
|
|
699
732
|
schema = schema.resolve({
|
|
700
733
|
context,
|
|
@@ -1743,7 +1776,7 @@ function sortFields(fields, excludedEdges = []) {
|
|
|
1743
1776
|
let nodes = new Set();
|
|
1744
1777
|
let excludes = new Set(excludedEdges.map(([a, b]) => `${a}-${b}`));
|
|
1745
1778
|
function addNode(depPath, key) {
|
|
1746
|
-
let node =
|
|
1779
|
+
let node = propertyExprExports.split(depPath)[0];
|
|
1747
1780
|
nodes.add(node);
|
|
1748
1781
|
if (!excludes.has(`${key}-${node}`)) edges.push([key, node]);
|
|
1749
1782
|
}
|
|
@@ -1752,7 +1785,7 @@ function sortFields(fields, excludedEdges = []) {
|
|
|
1752
1785
|
nodes.add(key);
|
|
1753
1786
|
if (Reference.isRef(value) && value.isSibling) addNode(value.path, key);else if (isSchema(value) && 'deps' in value) value.deps.forEach(path => addNode(path, key));
|
|
1754
1787
|
}
|
|
1755
|
-
return toposort
|
|
1788
|
+
return toposort.array(Array.from(nodes), edges).reverse();
|
|
1756
1789
|
}
|
|
1757
1790
|
|
|
1758
1791
|
function findIndex(arr, err) {
|
|
@@ -1810,10 +1843,10 @@ function deepPartial(schema) {
|
|
|
1810
1843
|
return schema;
|
|
1811
1844
|
}
|
|
1812
1845
|
const deepHas = (obj, p) => {
|
|
1813
|
-
const path = [...
|
|
1846
|
+
const path = [...propertyExprExports.normalizePath(p)];
|
|
1814
1847
|
if (path.length === 1) return path[0] in obj;
|
|
1815
1848
|
let last = path.pop();
|
|
1816
|
-
let parent =
|
|
1849
|
+
let parent = propertyExprExports.getter(propertyExprExports.join(path), true)(obj);
|
|
1817
1850
|
return !!(parent && last in parent);
|
|
1818
1851
|
};
|
|
1819
1852
|
let isObject = obj => Object.prototype.toString.call(obj) === '[object Object]';
|
|
@@ -2029,7 +2062,7 @@ class ObjectSchema extends Schema {
|
|
|
2029
2062
|
return this.pick(remaining);
|
|
2030
2063
|
}
|
|
2031
2064
|
from(from, to, alias) {
|
|
2032
|
-
let fromGetter =
|
|
2065
|
+
let fromGetter = propertyExprExports.getter(from, true);
|
|
2033
2066
|
return this.transform(obj => {
|
|
2034
2067
|
if (!obj) return obj;
|
|
2035
2068
|
let newObj = obj;
|
|
@@ -2105,13 +2138,13 @@ class ObjectSchema extends Schema {
|
|
|
2105
2138
|
});
|
|
2106
2139
|
}
|
|
2107
2140
|
camelCase() {
|
|
2108
|
-
return this.transformKeys(
|
|
2141
|
+
return this.transformKeys(tinyCaseExports.camelCase);
|
|
2109
2142
|
}
|
|
2110
2143
|
snakeCase() {
|
|
2111
|
-
return this.transformKeys(
|
|
2144
|
+
return this.transformKeys(tinyCaseExports.snakeCase);
|
|
2112
2145
|
}
|
|
2113
2146
|
constantCase() {
|
|
2114
|
-
return this.transformKeys(key =>
|
|
2147
|
+
return this.transformKeys(key => tinyCaseExports.snakeCase(key).toUpperCase());
|
|
2115
2148
|
}
|
|
2116
2149
|
describe(options) {
|
|
2117
2150
|
const next = (options ? this.resolve(options) : this).clone();
|
|
@@ -2133,7 +2166,44 @@ class ObjectSchema extends Schema {
|
|
|
2133
2166
|
}
|
|
2134
2167
|
create$3.prototype = ObjectSchema.prototype;
|
|
2135
2168
|
|
|
2136
|
-
|
|
2169
|
+
function yupTypeMapper(keys) {
|
|
2170
|
+
const shape = keys.reduce((acc, key) => {
|
|
2171
|
+
acc[key] = create$6().required().default('');
|
|
2172
|
+
return acc;
|
|
2173
|
+
}, {});
|
|
2174
|
+
return create$3(shape);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
const globalSchema = yupTypeMapper(['lang', 'direction', 'language', 'noData']);
|
|
2178
|
+
|
|
2179
|
+
const errorsSchema = yupTypeMapper([
|
|
2180
|
+
'noBaseUrl',
|
|
2181
|
+
'invalidVin',
|
|
2182
|
+
'vinNumberRequired',
|
|
2183
|
+
'partNumberRequired',
|
|
2184
|
+
'wrongResponseFormat',
|
|
2185
|
+
'noPartsFound',
|
|
2186
|
+
'noServiceAvailable',
|
|
2187
|
+
'wrongFormStructure',
|
|
2188
|
+
'wildCard',
|
|
2189
|
+
'requestFailedPleaseTryAgainLater',
|
|
2190
|
+
]);
|
|
2191
|
+
|
|
2192
|
+
const sharedLocalesSchema = create$3({
|
|
2193
|
+
errors: errorsSchema,
|
|
2194
|
+
}).concat(globalSchema);
|
|
2195
|
+
const ARABIC_JSON_FILE = 'ar.json';
|
|
2196
|
+
const ENGLISH_JSON_FILE = 'en.json';
|
|
2197
|
+
const KURDISH_JSON_FILE = 'ku.json';
|
|
2198
|
+
const RUSSIAN_JSON_FILE = 'ru.json';
|
|
2199
|
+
const languageMapper = {
|
|
2200
|
+
ar: ARABIC_JSON_FILE,
|
|
2201
|
+
en: ENGLISH_JSON_FILE,
|
|
2202
|
+
ku: KURDISH_JSON_FILE,
|
|
2203
|
+
ru: RUSSIAN_JSON_FILE,
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
const version = "0.0.91";
|
|
2137
2207
|
|
|
2138
2208
|
// This file is auto-generated. Do not edit it manually.
|
|
2139
2209
|
// Use command: yarn generate-locale-mapper
|
|
@@ -2177,14 +2247,14 @@ const localeMapper = {
|
|
|
2177
2247
|
],
|
|
2178
2248
|
"vehicleLookup": [
|
|
2179
2249
|
"locales/vehicleLookup/accessories/",
|
|
2180
|
-
"locales/vehicleLookup/
|
|
2250
|
+
"locales/vehicleLookup/claimableItems/",
|
|
2181
2251
|
"locales/vehicleLookup/paintThickness/",
|
|
2182
2252
|
"locales/vehicleLookup/serviceHistory/",
|
|
2183
2253
|
"locales/vehicleLookup/specification/",
|
|
2184
2254
|
"locales/vehicleLookup/warranty/"
|
|
2185
2255
|
],
|
|
2186
|
-
"vehicleLookup.
|
|
2187
|
-
"locales/vehicleLookup/
|
|
2256
|
+
"vehicleLookup.claimableItems": [
|
|
2257
|
+
"locales/vehicleLookup/claimableItems/"
|
|
2188
2258
|
],
|
|
2189
2259
|
"vehicleLookup.paintThickness": [
|
|
2190
2260
|
"locales/vehicleLookup/paintThickness/"
|
|
@@ -2203,43 +2273,6 @@ const localeMapper = {
|
|
|
2203
2273
|
]
|
|
2204
2274
|
};
|
|
2205
2275
|
|
|
2206
|
-
const ARABIC_JSON_FILE = 'ar.json';
|
|
2207
|
-
const ENGLISH_JSON_FILE = 'en.json';
|
|
2208
|
-
const KURDISH_JSON_FILE = 'ku.json';
|
|
2209
|
-
const RUSSIAN_JSON_FILE = 'ru.json';
|
|
2210
|
-
const languageMapper = {
|
|
2211
|
-
ar: ARABIC_JSON_FILE,
|
|
2212
|
-
en: ENGLISH_JSON_FILE,
|
|
2213
|
-
ku: KURDISH_JSON_FILE,
|
|
2214
|
-
ru: RUSSIAN_JSON_FILE,
|
|
2215
|
-
};
|
|
2216
|
-
|
|
2217
|
-
function yupTypeMapper(keys) {
|
|
2218
|
-
const shape = keys.reduce((acc, key) => {
|
|
2219
|
-
acc[key] = create$6().required().default('');
|
|
2220
|
-
return acc;
|
|
2221
|
-
}, {});
|
|
2222
|
-
return create$3(shape);
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
const globalSchema = yupTypeMapper(['lang', 'direction', 'language', 'noData']);
|
|
2226
|
-
|
|
2227
|
-
const errorsSchema = yupTypeMapper([
|
|
2228
|
-
'noBaseUrl',
|
|
2229
|
-
'invalidVin',
|
|
2230
|
-
'vinNumberRequired',
|
|
2231
|
-
'partNumberRequired',
|
|
2232
|
-
'wrongResponseFormat',
|
|
2233
|
-
'noPartsFound',
|
|
2234
|
-
'noServiceAvailable',
|
|
2235
|
-
'wrongFormStructure',
|
|
2236
|
-
'wildCard',
|
|
2237
|
-
'requestFailedPleaseTryAgainLater',
|
|
2238
|
-
]);
|
|
2239
|
-
|
|
2240
|
-
const sharedLocalesSchema = create$3({
|
|
2241
|
-
errors: errorsSchema,
|
|
2242
|
-
}).concat(globalSchema);
|
|
2243
2276
|
const cachedLocales = {};
|
|
2244
2277
|
async function getSharedLocal(languageKey) {
|
|
2245
2278
|
const [errors, globalKeys] = await Promise.all([getLocaleLanguage(languageKey, 'errors', errorsSchema), getLocaleLanguage(languageKey, '-', globalSchema)]);
|
|
@@ -2310,11 +2343,21 @@ function recursiveParser(parents, bluePrint, parsedResponseMapper, languageFile)
|
|
|
2310
2343
|
async function requestLocaleFile(localeFile) {
|
|
2311
2344
|
if (cachedLocales[localeFile])
|
|
2312
2345
|
return await cachedLocales[localeFile];
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2346
|
+
try {
|
|
2347
|
+
const fetchPromise = (fetch(`https://cdn.jsdelivr.net/npm/adp-web-components@${version}/dist/${localeFile}`)).then(res => {
|
|
2348
|
+
if (!res.ok)
|
|
2349
|
+
delete cachedLocales[localeFile];
|
|
2350
|
+
return res.json();
|
|
2351
|
+
});
|
|
2352
|
+
cachedLocales[localeFile] = fetchPromise;
|
|
2353
|
+
const result = await fetchPromise;
|
|
2354
|
+
cachedLocales[localeFile] = result;
|
|
2355
|
+
return result;
|
|
2356
|
+
}
|
|
2357
|
+
catch (error) {
|
|
2358
|
+
delete cachedLocales[localeFile];
|
|
2359
|
+
return {};
|
|
2360
|
+
}
|
|
2318
2361
|
}
|
|
2319
2362
|
|
|
2320
2363
|
exports.create$3 = create$3;
|