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,40 +4,73 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
7
|
const NAMESPACE = 'shift-components';
|
|
28
|
-
const BUILD = /* shift-components */ {
|
|
8
|
+
const BUILD = /* shift-components */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
9
|
+
|
|
10
|
+
(async function () {
|
|
11
|
+
if (!window['blazorInvoke']) {
|
|
12
|
+
window['blazorInvoke'] = async function (selector, functionName, ...args) {
|
|
13
|
+
const element = document.querySelector(selector);
|
|
14
|
+
if (!element) {
|
|
15
|
+
console.error(`Element with selector "${selector}" not found.`);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (typeof element[functionName] !== 'function') {
|
|
19
|
+
console.error(`Function "${functionName}" not found on the element.`);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
return await element[functionName](...args);
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
console.error(`Error invoking function "${functionName}" on element "${selector}":`, error);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
window['blazorInvokeSet'] = async function (selector, field, value) {
|
|
30
|
+
const element = document.querySelector(selector);
|
|
31
|
+
if (!element) {
|
|
32
|
+
console.error(`Element with selector "${selector}" not found.`);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
return (element[field] = value);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
console.error(`Setting field ${field} failed to set value: ${value}:`, error);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
console.log('Global blazorInvoke initialized.');
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
const globalFn = () => { };
|
|
46
|
+
|
|
47
|
+
const globalScripts = globalFn;
|
|
48
|
+
const globalStyles = "";
|
|
29
49
|
|
|
30
50
|
/*
|
|
31
|
-
Stencil Client Platform v4.
|
|
51
|
+
Stencil Client Platform v4.35.0 | MIT Licensed | https://stenciljs.com
|
|
32
52
|
*/
|
|
33
53
|
var __defProp = Object.defineProperty;
|
|
34
54
|
var __export = (target, all) => {
|
|
35
55
|
for (var name in all)
|
|
36
56
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
57
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
58
|
+
|
|
59
|
+
// src/utils/constants.ts
|
|
60
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
61
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
62
|
+
|
|
63
|
+
// src/client/client-host-ref.ts
|
|
64
|
+
var getHostRef = (ref) => {
|
|
65
|
+
if (ref.__stencil__getHostRef) {
|
|
66
|
+
return ref.__stencil__getHostRef();
|
|
67
|
+
}
|
|
68
|
+
return void 0;
|
|
69
|
+
};
|
|
70
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
71
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
72
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
73
|
+
};
|
|
41
74
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
75
|
const hostRef = {
|
|
43
76
|
$flags$: 0,
|
|
@@ -53,7 +86,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
53
86
|
hostElement["s-p"] = [];
|
|
54
87
|
hostElement["s-rc"] = [];
|
|
55
88
|
}
|
|
56
|
-
|
|
89
|
+
const ref = hostRef;
|
|
90
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
91
|
+
return ref;
|
|
57
92
|
};
|
|
58
93
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
59
94
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -71,18 +106,23 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
106
|
return module[exportName];
|
|
72
107
|
}
|
|
73
108
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
74
|
-
return
|
|
109
|
+
return import(
|
|
75
110
|
/* @vite-ignore */
|
|
76
111
|
/* webpackInclude: /\.entry\.js$/ */
|
|
77
112
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
78
113
|
/* webpackMode: "lazy" */
|
|
79
114
|
`./${bundleId}.entry.js${""}`
|
|
80
|
-
)
|
|
81
|
-
{
|
|
82
|
-
|
|
115
|
+
).then(
|
|
116
|
+
(importedModule) => {
|
|
117
|
+
{
|
|
118
|
+
cmpModules.set(bundleId, importedModule);
|
|
119
|
+
}
|
|
120
|
+
return importedModule[exportName];
|
|
121
|
+
},
|
|
122
|
+
(e) => {
|
|
123
|
+
consoleError(e, hostRef.$hostElement$);
|
|
83
124
|
}
|
|
84
|
-
|
|
85
|
-
}, consoleError);
|
|
125
|
+
);
|
|
86
126
|
};
|
|
87
127
|
|
|
88
128
|
// src/client/client-style.ts
|
|
@@ -91,7 +131,6 @@ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
|
91
131
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
92
132
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
93
133
|
var win = typeof window !== "undefined" ? window : {};
|
|
94
|
-
var doc = win.document || { head: {} };
|
|
95
134
|
var plt = {
|
|
96
135
|
$flags$: 0,
|
|
97
136
|
$resourcesUrl$: "",
|
|
@@ -145,25 +184,22 @@ var flush = () => {
|
|
|
145
184
|
};
|
|
146
185
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
147
186
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
148
|
-
|
|
149
|
-
// src/utils/constants.ts
|
|
150
|
-
var EMPTY_OBJ = {};
|
|
151
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
152
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
153
|
-
|
|
154
|
-
// src/utils/helpers.ts
|
|
155
|
-
var isDef = (v) => v != null;
|
|
156
187
|
var isComplexType = (o) => {
|
|
157
188
|
o = typeof o;
|
|
158
189
|
return o === "object" || o === "function";
|
|
159
190
|
};
|
|
160
191
|
|
|
161
192
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
162
|
-
function queryNonceMetaTagContent(
|
|
193
|
+
function queryNonceMetaTagContent(doc) {
|
|
163
194
|
var _a, _b, _c;
|
|
164
|
-
return (_c = (_b = (_a =
|
|
195
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
165
196
|
}
|
|
166
197
|
|
|
198
|
+
// src/utils/regular-expression.ts
|
|
199
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
200
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
201
|
+
};
|
|
202
|
+
|
|
167
203
|
// src/utils/result.ts
|
|
168
204
|
var result_exports = {};
|
|
169
205
|
__export(result_exports, {
|
|
@@ -212,6 +248,120 @@ var unwrapErr = (result) => {
|
|
|
212
248
|
throw result.value;
|
|
213
249
|
}
|
|
214
250
|
};
|
|
251
|
+
function createShadowRoot(cmpMeta) {
|
|
252
|
+
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
253
|
+
if (supportsConstructableStylesheets) {
|
|
254
|
+
const sheet = new CSSStyleSheet();
|
|
255
|
+
sheet.replaceSync(globalStyles);
|
|
256
|
+
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
260
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
261
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
262
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
263
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
264
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
265
|
+
slotNode.hidden = true;
|
|
266
|
+
} else {
|
|
267
|
+
slotNode.hidden = false;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
let i2 = 0;
|
|
273
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
274
|
+
const childNode = childNodes[i2];
|
|
275
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
276
|
+
updateFallbackSlotVisibility(childNode);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
281
|
+
const result = [];
|
|
282
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
283
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
284
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
285
|
+
result.push(slottedNode);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return result;
|
|
289
|
+
};
|
|
290
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
291
|
+
let i2 = 0;
|
|
292
|
+
let slottedNodes = [];
|
|
293
|
+
let childNode;
|
|
294
|
+
for (; i2 < childNodes.length; i2++) {
|
|
295
|
+
childNode = childNodes[i2];
|
|
296
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
297
|
+
slottedNodes.push(childNode);
|
|
298
|
+
}
|
|
299
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
300
|
+
}
|
|
301
|
+
return slottedNodes;
|
|
302
|
+
}
|
|
303
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
304
|
+
const childNodes = [];
|
|
305
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
306
|
+
let node = slot;
|
|
307
|
+
while (node = node.nextSibling) {
|
|
308
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
309
|
+
}
|
|
310
|
+
return childNodes;
|
|
311
|
+
};
|
|
312
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
313
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
314
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
318
|
+
return true;
|
|
319
|
+
}
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
323
|
+
return true;
|
|
324
|
+
}
|
|
325
|
+
return slotName === "";
|
|
326
|
+
};
|
|
327
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
328
|
+
function patchSlotNode(node) {
|
|
329
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
330
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
331
|
+
const toReturn = [];
|
|
332
|
+
const slotName = this["s-sn"];
|
|
333
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
334
|
+
console.error(`
|
|
335
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
336
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
337
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
338
|
+
`);
|
|
339
|
+
}
|
|
340
|
+
const parent = this["s-cr"].parentElement;
|
|
341
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
342
|
+
slottedNodes.forEach((n) => {
|
|
343
|
+
if (slotName === getSlotName(n)) {
|
|
344
|
+
toReturn.push(n);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
if (elementsOnly) {
|
|
348
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
349
|
+
}
|
|
350
|
+
return toReturn;
|
|
351
|
+
}).bind(node);
|
|
352
|
+
node.assignedElements = assignedFactory(true);
|
|
353
|
+
node.assignedNodes = assignedFactory(false);
|
|
354
|
+
}
|
|
355
|
+
function internalCall(node, method) {
|
|
356
|
+
if ("__" + method in node) {
|
|
357
|
+
const toReturn = node["__" + method];
|
|
358
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
359
|
+
return toReturn.bind(node);
|
|
360
|
+
} else {
|
|
361
|
+
if (typeof node[method] !== "function") return node[method];
|
|
362
|
+
return node[method].bind(node);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
215
365
|
var createTime = (fnName, tagName = "") => {
|
|
216
366
|
{
|
|
217
367
|
return () => {
|
|
@@ -337,13 +487,27 @@ var convertToPrivate = (node) => {
|
|
|
337
487
|
vnode.$name$ = node.vname;
|
|
338
488
|
return vnode;
|
|
339
489
|
};
|
|
340
|
-
var
|
|
490
|
+
var createSupportsRuleRe = (selector) => {
|
|
491
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
492
|
+
return new RegExp(
|
|
493
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
494
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
495
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
496
|
+
"g"
|
|
497
|
+
);
|
|
498
|
+
};
|
|
499
|
+
createSupportsRuleRe("::slotted");
|
|
500
|
+
createSupportsRuleRe(":host");
|
|
501
|
+
createSupportsRuleRe(":host-context");
|
|
502
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
341
503
|
if (propValue != null && !isComplexType(propValue)) {
|
|
342
504
|
if (propType & 4 /* Boolean */) {
|
|
343
|
-
|
|
505
|
+
{
|
|
506
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
507
|
+
}
|
|
344
508
|
}
|
|
345
509
|
if (propType & 2 /* Number */) {
|
|
346
|
-
return parseFloat(propValue);
|
|
510
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
347
511
|
}
|
|
348
512
|
if (propType & 1 /* String */) {
|
|
349
513
|
return String(propValue);
|
|
@@ -377,7 +541,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
377
541
|
var _a;
|
|
378
542
|
const scopeId2 = getScopeId(cmpMeta);
|
|
379
543
|
const style = styles.get(scopeId2);
|
|
380
|
-
|
|
544
|
+
if (!win.document) {
|
|
545
|
+
return scopeId2;
|
|
546
|
+
}
|
|
547
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
381
548
|
if (style) {
|
|
382
549
|
if (typeof style === "string") {
|
|
383
550
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -388,9 +555,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
388
555
|
}
|
|
389
556
|
if (!appliedStyles.has(scopeId2)) {
|
|
390
557
|
{
|
|
391
|
-
styleElm =
|
|
558
|
+
styleElm = win.document.createElement("style");
|
|
392
559
|
styleElm.innerHTML = style;
|
|
393
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
560
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
394
561
|
if (nonce != null) {
|
|
395
562
|
styleElm.setAttribute("nonce", nonce);
|
|
396
563
|
}
|
|
@@ -398,7 +565,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
398
565
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
399
566
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
400
567
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
401
|
-
styleContainerNode.insertBefore(
|
|
568
|
+
styleContainerNode.insertBefore(
|
|
569
|
+
styleElm,
|
|
570
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
571
|
+
);
|
|
402
572
|
} else if ("host" in styleContainerNode) {
|
|
403
573
|
if (supportsConstructableStylesheets) {
|
|
404
574
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -416,7 +586,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
416
586
|
styleContainerNode.append(styleElm);
|
|
417
587
|
}
|
|
418
588
|
}
|
|
419
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
589
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
420
590
|
styleContainerNode.insertBefore(styleElm, null);
|
|
421
591
|
}
|
|
422
592
|
}
|
|
@@ -441,132 +611,155 @@ var attachStyles = (hostRef) => {
|
|
|
441
611
|
const scopeId2 = addStyle(
|
|
442
612
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
443
613
|
cmpMeta);
|
|
444
|
-
if (flags & 10 /* needsScopedEncapsulation */
|
|
614
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
445
615
|
elm["s-sc"] = scopeId2;
|
|
446
616
|
elm.classList.add(scopeId2 + "-h");
|
|
447
617
|
}
|
|
448
618
|
endAttachStyles();
|
|
449
619
|
};
|
|
450
620
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
451
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
452
|
-
if (oldValue
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
621
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
622
|
+
if (oldValue === newValue) {
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
626
|
+
let ln = memberName.toLowerCase();
|
|
627
|
+
if (memberName === "class") {
|
|
628
|
+
const classList = elm.classList;
|
|
629
|
+
const oldClasses = parseClassList(oldValue);
|
|
630
|
+
let newClasses = parseClassList(newValue);
|
|
631
|
+
{
|
|
459
632
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
460
633
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
elm.style.removeProperty(prop);
|
|
467
|
-
} else {
|
|
468
|
-
elm.style[prop] = "";
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
for (const prop in newValue) {
|
|
474
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
634
|
+
}
|
|
635
|
+
} else if (memberName === "style") {
|
|
636
|
+
{
|
|
637
|
+
for (const prop in oldValue) {
|
|
638
|
+
if (!newValue || newValue[prop] == null) {
|
|
475
639
|
if (prop.includes("-")) {
|
|
476
|
-
elm.style.
|
|
640
|
+
elm.style.removeProperty(prop);
|
|
477
641
|
} else {
|
|
478
|
-
elm.style[prop] =
|
|
642
|
+
elm.style[prop] = "";
|
|
479
643
|
}
|
|
480
644
|
}
|
|
481
645
|
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
} else if (isMemberInElement(win, ln)) {
|
|
490
|
-
memberName = ln.slice(2);
|
|
491
|
-
} else {
|
|
492
|
-
memberName = ln[2] + memberName.slice(3);
|
|
493
|
-
}
|
|
494
|
-
if (oldValue || newValue) {
|
|
495
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
496
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
497
|
-
if (oldValue) {
|
|
498
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
499
|
-
}
|
|
500
|
-
if (newValue) {
|
|
501
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
646
|
+
}
|
|
647
|
+
for (const prop in newValue) {
|
|
648
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
649
|
+
if (prop.includes("-")) {
|
|
650
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
651
|
+
} else {
|
|
652
|
+
elm.style[prop] = newValue[prop];
|
|
502
653
|
}
|
|
503
654
|
}
|
|
655
|
+
}
|
|
656
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
657
|
+
if (newValue) {
|
|
658
|
+
newValue(elm);
|
|
659
|
+
}
|
|
660
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
661
|
+
if (memberName[2] === "-") {
|
|
662
|
+
memberName = memberName.slice(3);
|
|
663
|
+
} else if (isMemberInElement(win, ln)) {
|
|
664
|
+
memberName = ln.slice(2);
|
|
504
665
|
} else {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
666
|
+
memberName = ln[2] + memberName.slice(3);
|
|
667
|
+
}
|
|
668
|
+
if (oldValue || newValue) {
|
|
669
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
670
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
671
|
+
if (oldValue) {
|
|
672
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
673
|
+
}
|
|
674
|
+
if (newValue) {
|
|
675
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
} else {
|
|
679
|
+
const isComplex = isComplexType(newValue);
|
|
680
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
681
|
+
try {
|
|
682
|
+
if (!elm.tagName.includes("-")) {
|
|
683
|
+
const n = newValue == null ? "" : newValue;
|
|
684
|
+
if (memberName === "list") {
|
|
685
|
+
isProp = false;
|
|
686
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
687
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
688
|
+
elm[memberName] = n;
|
|
689
|
+
} else {
|
|
690
|
+
elm.setAttribute(memberName, n);
|
|
518
691
|
}
|
|
519
|
-
} else {
|
|
520
|
-
elm[memberName] = newValue;
|
|
521
692
|
}
|
|
522
|
-
}
|
|
693
|
+
} else if (elm[memberName] !== newValue) {
|
|
694
|
+
elm[memberName] = newValue;
|
|
523
695
|
}
|
|
696
|
+
} catch (e) {
|
|
524
697
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
698
|
+
}
|
|
699
|
+
let xlink = false;
|
|
700
|
+
{
|
|
701
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
702
|
+
memberName = ln;
|
|
703
|
+
xlink = true;
|
|
531
704
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
536
|
-
} else {
|
|
537
|
-
elm.removeAttribute(memberName);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
541
|
-
newValue = newValue === true ? "" : newValue;
|
|
705
|
+
}
|
|
706
|
+
if (newValue == null || newValue === false) {
|
|
707
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
542
708
|
if (xlink) {
|
|
543
|
-
elm.
|
|
709
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
544
710
|
} else {
|
|
545
|
-
elm.
|
|
711
|
+
elm.removeAttribute(memberName);
|
|
546
712
|
}
|
|
547
713
|
}
|
|
714
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
715
|
+
newValue = newValue === true ? "" : newValue;
|
|
716
|
+
if (xlink) {
|
|
717
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
718
|
+
} else {
|
|
719
|
+
elm.setAttribute(memberName, newValue);
|
|
720
|
+
}
|
|
548
721
|
}
|
|
549
722
|
}
|
|
550
723
|
};
|
|
551
724
|
var parseClassListRegex = /\s/;
|
|
552
|
-
var parseClassList = (value) =>
|
|
725
|
+
var parseClassList = (value) => {
|
|
726
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
727
|
+
value = value.baseVal;
|
|
728
|
+
}
|
|
729
|
+
if (!value || typeof value !== "string") {
|
|
730
|
+
return [];
|
|
731
|
+
}
|
|
732
|
+
return value.split(parseClassListRegex);
|
|
733
|
+
};
|
|
553
734
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
554
735
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
555
736
|
|
|
556
737
|
// src/runtime/vdom/update-element.ts
|
|
557
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
738
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
558
739
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
559
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
560
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
740
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
741
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
561
742
|
{
|
|
562
743
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
563
744
|
if (!(memberName in newVnodeAttrs)) {
|
|
564
|
-
setAccessor(
|
|
745
|
+
setAccessor(
|
|
746
|
+
elm,
|
|
747
|
+
memberName,
|
|
748
|
+
oldVnodeAttrs[memberName],
|
|
749
|
+
void 0,
|
|
750
|
+
isSvgMode2,
|
|
751
|
+
newVnode.$flags$);
|
|
565
752
|
}
|
|
566
753
|
}
|
|
567
754
|
}
|
|
568
755
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
569
|
-
setAccessor(
|
|
756
|
+
setAccessor(
|
|
757
|
+
elm,
|
|
758
|
+
memberName,
|
|
759
|
+
oldVnodeAttrs[memberName],
|
|
760
|
+
newVnodeAttrs[memberName],
|
|
761
|
+
isSvgMode2,
|
|
762
|
+
newVnode.$flags$);
|
|
570
763
|
}
|
|
571
764
|
};
|
|
572
765
|
function sortedAttrNames(attrNames) {
|
|
@@ -578,16 +771,13 @@ function sortedAttrNames(attrNames) {
|
|
|
578
771
|
attrNames
|
|
579
772
|
);
|
|
580
773
|
}
|
|
581
|
-
|
|
582
|
-
// src/runtime/vdom/vdom-render.ts
|
|
583
|
-
var scopeId;
|
|
584
774
|
var contentRef;
|
|
585
775
|
var hostTagName;
|
|
586
776
|
var useNativeShadowDom = false;
|
|
587
777
|
var checkSlotFallbackVisibility = false;
|
|
588
778
|
var checkSlotRelocate = false;
|
|
589
779
|
var isSvgMode = false;
|
|
590
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
780
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
591
781
|
var _a;
|
|
592
782
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
593
783
|
let i2 = 0;
|
|
@@ -597,9 +787,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
597
787
|
if (!useNativeShadowDom) {
|
|
598
788
|
checkSlotRelocate = true;
|
|
599
789
|
if (newVNode2.$tag$ === "slot") {
|
|
600
|
-
if (scopeId) {
|
|
601
|
-
parentElm.classList.add(scopeId + "-s");
|
|
602
|
-
}
|
|
603
790
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
604
791
|
// slot element has fallback content
|
|
605
792
|
// still create an element that "mocks" the slot element
|
|
@@ -613,14 +800,22 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
613
800
|
}
|
|
614
801
|
}
|
|
615
802
|
if (newVNode2.$text$ !== null) {
|
|
616
|
-
elm = newVNode2.$elm$ =
|
|
803
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
617
804
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
618
|
-
elm = newVNode2.$elm$ =
|
|
805
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
806
|
+
{
|
|
807
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
808
|
+
}
|
|
619
809
|
} else {
|
|
620
810
|
if (!isSvgMode) {
|
|
621
811
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
622
812
|
}
|
|
623
|
-
|
|
813
|
+
if (!win.document) {
|
|
814
|
+
throw new Error(
|
|
815
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
624
819
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
625
820
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
626
821
|
) ;
|
|
@@ -630,14 +825,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
630
825
|
{
|
|
631
826
|
updateElement(null, newVNode2, isSvgMode);
|
|
632
827
|
}
|
|
633
|
-
const rootNode = elm.getRootNode();
|
|
634
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
635
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
636
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
637
|
-
}
|
|
638
828
|
if (newVNode2.$children$) {
|
|
639
829
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
640
|
-
childNode = createElm(oldParentVNode, newVNode2, i2
|
|
830
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
641
831
|
if (childNode) {
|
|
642
832
|
elm.appendChild(childNode);
|
|
643
833
|
}
|
|
@@ -658,6 +848,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
658
848
|
elm["s-cr"] = contentRef;
|
|
659
849
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
660
850
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
851
|
+
patchSlotNode(elm);
|
|
661
852
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
662
853
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
663
854
|
{
|
|
@@ -670,19 +861,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
670
861
|
};
|
|
671
862
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
672
863
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
673
|
-
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
674
|
-
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
675
|
-
let node = parentElm;
|
|
676
|
-
while (node = node.nextSibling) {
|
|
677
|
-
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
678
|
-
oldSlotChildNodes.push(node);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
864
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
682
865
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
683
866
|
const childNode = oldSlotChildNodes[i2];
|
|
684
867
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
685
|
-
insertBefore(
|
|
868
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
686
869
|
childNode["s-ol"].remove();
|
|
687
870
|
childNode["s-ol"] = void 0;
|
|
688
871
|
childNode["s-sh"] = void 0;
|
|
@@ -692,7 +875,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
692
875
|
putBackInOriginalLocation(childNode, recursive);
|
|
693
876
|
}
|
|
694
877
|
}
|
|
695
|
-
plt.$flags$ &=
|
|
878
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
696
879
|
};
|
|
697
880
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
698
881
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -702,7 +885,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
702
885
|
}
|
|
703
886
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
704
887
|
if (vnodes[startIdx]) {
|
|
705
|
-
childNode = createElm(null, parentVNode, startIdx
|
|
888
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
706
889
|
if (childNode) {
|
|
707
890
|
vnodes[startIdx].$elm$ = childNode;
|
|
708
891
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -789,7 +972,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
789
972
|
if (idxInOld >= 0) {
|
|
790
973
|
elmToMove = oldCh[idxInOld];
|
|
791
974
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
792
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld
|
|
975
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
793
976
|
} else {
|
|
794
977
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
795
978
|
oldCh[idxInOld] = void 0;
|
|
@@ -797,12 +980,16 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
797
980
|
}
|
|
798
981
|
newStartVnode = newCh[++newStartIdx];
|
|
799
982
|
} else {
|
|
800
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx
|
|
983
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
801
984
|
newStartVnode = newCh[++newStartIdx];
|
|
802
985
|
}
|
|
803
986
|
if (node) {
|
|
804
987
|
{
|
|
805
|
-
insertBefore(
|
|
988
|
+
insertBefore(
|
|
989
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
990
|
+
node,
|
|
991
|
+
referenceNode(oldStartVnode.$elm$)
|
|
992
|
+
);
|
|
806
993
|
}
|
|
807
994
|
}
|
|
808
995
|
}
|
|
@@ -823,28 +1010,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
823
1010
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
824
1011
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
825
1012
|
if (leftVNode.$tag$ === "slot") {
|
|
826
|
-
if (
|
|
827
|
-
// The component gets hydrated and no VDOM has been initialized.
|
|
828
|
-
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
829
|
-
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
830
|
-
// hydration comments to be removed
|
|
831
|
-
leftVNode.$elm$.nodeType !== 8
|
|
832
|
-
) {
|
|
833
|
-
return false;
|
|
834
|
-
}
|
|
835
1013
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
836
1014
|
}
|
|
837
1015
|
if (!isInitialRender) {
|
|
838
1016
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
839
1017
|
}
|
|
1018
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
1019
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
1020
|
+
}
|
|
840
1021
|
return true;
|
|
841
1022
|
}
|
|
842
1023
|
return false;
|
|
843
1024
|
};
|
|
844
|
-
var referenceNode = (node) =>
|
|
845
|
-
return node && node["s-ol"] || node;
|
|
846
|
-
};
|
|
847
|
-
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
1025
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
848
1026
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
849
1027
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
850
1028
|
const oldChildren = oldVNode.$children$;
|
|
@@ -857,9 +1035,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
857
1035
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
858
1036
|
}
|
|
859
1037
|
{
|
|
860
|
-
|
|
861
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
862
|
-
}
|
|
1038
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
863
1039
|
}
|
|
864
1040
|
if (oldChildren !== null && newChildren !== null) {
|
|
865
1041
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -883,45 +1059,19 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
883
1059
|
elm.data = text;
|
|
884
1060
|
}
|
|
885
1061
|
};
|
|
886
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
887
|
-
const childNodes = elm.childNodes;
|
|
888
|
-
for (const childNode of childNodes) {
|
|
889
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
890
|
-
if (childNode["s-sr"]) {
|
|
891
|
-
const slotName = childNode["s-sn"];
|
|
892
|
-
childNode.hidden = false;
|
|
893
|
-
for (const siblingNode of childNodes) {
|
|
894
|
-
if (siblingNode !== childNode) {
|
|
895
|
-
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
896
|
-
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
897
|
-
childNode.hidden = true;
|
|
898
|
-
break;
|
|
899
|
-
}
|
|
900
|
-
} else {
|
|
901
|
-
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
902
|
-
childNode.hidden = true;
|
|
903
|
-
break;
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
updateFallbackSlotVisibility(childNode);
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
1062
|
var relocateNodes = [];
|
|
914
1063
|
var markSlotContentForRelocation = (elm) => {
|
|
915
1064
|
let node;
|
|
916
1065
|
let hostContentNodes;
|
|
917
1066
|
let j;
|
|
918
|
-
|
|
1067
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
1068
|
+
for (const childNode of children) {
|
|
919
1069
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
920
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
1070
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
921
1071
|
const slotName = childNode["s-sn"];
|
|
922
1072
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
923
1073
|
node = hostContentNodes[j];
|
|
924
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (
|
|
1074
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
|
|
925
1075
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
926
1076
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
927
1077
|
checkSlotFallbackVisibility = true;
|
|
@@ -959,21 +1109,6 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
959
1109
|
}
|
|
960
1110
|
}
|
|
961
1111
|
};
|
|
962
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
963
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
964
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
965
|
-
return true;
|
|
966
|
-
}
|
|
967
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
968
|
-
return true;
|
|
969
|
-
}
|
|
970
|
-
return false;
|
|
971
|
-
}
|
|
972
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
973
|
-
return true;
|
|
974
|
-
}
|
|
975
|
-
return slotName === "";
|
|
976
|
-
};
|
|
977
1112
|
var nullifyVNodeRefs = (vNode) => {
|
|
978
1113
|
{
|
|
979
1114
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -981,15 +1116,17 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
981
1116
|
}
|
|
982
1117
|
};
|
|
983
1118
|
var insertBefore = (parent, newNode, reference) => {
|
|
984
|
-
|
|
985
|
-
|
|
1119
|
+
{
|
|
1120
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1121
|
+
}
|
|
986
1122
|
};
|
|
987
1123
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
988
1124
|
var _a, _b, _c, _d;
|
|
989
1125
|
const hostElm = hostRef.$hostElement$;
|
|
990
1126
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
991
1127
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
992
|
-
const
|
|
1128
|
+
const isHostElement = isHost(renderFnResults);
|
|
1129
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
993
1130
|
hostTagName = hostElm.tagName;
|
|
994
1131
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
995
1132
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -1002,10 +1139,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1002
1139
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1003
1140
|
hostRef.$vnode$ = rootVnode;
|
|
1004
1141
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1005
|
-
|
|
1006
|
-
scopeId = hostElm["s-sc"];
|
|
1007
|
-
}
|
|
1008
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1142
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1009
1143
|
{
|
|
1010
1144
|
contentRef = hostElm["s-cr"];
|
|
1011
1145
|
checkSlotFallbackVisibility = false;
|
|
@@ -1017,8 +1151,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1017
1151
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1018
1152
|
for (const relocateData of relocateNodes) {
|
|
1019
1153
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1020
|
-
if (!nodeToRelocate["s-ol"]) {
|
|
1021
|
-
const orgLocationNode =
|
|
1154
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1155
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1022
1156
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1023
1157
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1024
1158
|
}
|
|
@@ -1033,7 +1167,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1033
1167
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1034
1168
|
while (orgLocationNode) {
|
|
1035
1169
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1036
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1170
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1037
1171
|
refNode = refNode.nextSibling;
|
|
1038
1172
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1039
1173
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1046,18 +1180,20 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1046
1180
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1047
1181
|
}
|
|
1048
1182
|
}
|
|
1049
|
-
|
|
1183
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1184
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1185
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1050
1186
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1051
1187
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1052
1188
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1053
1189
|
}
|
|
1054
1190
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1055
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1191
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1056
1192
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1057
1193
|
}
|
|
1058
1194
|
}
|
|
1059
1195
|
}
|
|
1060
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1196
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1061
1197
|
} else {
|
|
1062
1198
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1063
1199
|
if (isInitialLoad) {
|
|
@@ -1071,7 +1207,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1071
1207
|
if (checkSlotFallbackVisibility) {
|
|
1072
1208
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1073
1209
|
}
|
|
1074
|
-
plt.$flags$ &=
|
|
1210
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1075
1211
|
relocateNodes.length = 0;
|
|
1076
1212
|
}
|
|
1077
1213
|
contentRef = void 0;
|
|
@@ -1080,7 +1216,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1080
1216
|
// src/runtime/update-component.ts
|
|
1081
1217
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1082
1218
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1083
|
-
ancestorComponent["s-p"].push(
|
|
1219
|
+
const index = ancestorComponent["s-p"].push(
|
|
1220
|
+
new Promise(
|
|
1221
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1222
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1223
|
+
r();
|
|
1224
|
+
}
|
|
1225
|
+
)
|
|
1226
|
+
);
|
|
1084
1227
|
}
|
|
1085
1228
|
};
|
|
1086
1229
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1106,10 +1249,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1106
1249
|
}
|
|
1107
1250
|
let maybePromise;
|
|
1108
1251
|
if (isInitialLoad) {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1252
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
1253
|
+
} else {
|
|
1254
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1112
1255
|
}
|
|
1256
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1113
1257
|
endSchedule();
|
|
1114
1258
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1115
1259
|
};
|
|
@@ -1152,7 +1296,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
1152
1296
|
try {
|
|
1153
1297
|
instance = instance.render() ;
|
|
1154
1298
|
{
|
|
1155
|
-
hostRef.$flags$ &=
|
|
1299
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
1156
1300
|
}
|
|
1157
1301
|
{
|
|
1158
1302
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -1175,17 +1319,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1175
1319
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1176
1320
|
const instance = hostRef.$lazyInstance$ ;
|
|
1177
1321
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1178
|
-
|
|
1179
|
-
safeCall(instance, "componentDidRender");
|
|
1180
|
-
}
|
|
1322
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1181
1323
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1182
1324
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1183
1325
|
{
|
|
1184
1326
|
addHydratedFlag(elm);
|
|
1185
1327
|
}
|
|
1186
|
-
|
|
1187
|
-
safeCall(instance, "componentDidLoad");
|
|
1188
|
-
}
|
|
1328
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1189
1329
|
endPostUpdate();
|
|
1190
1330
|
{
|
|
1191
1331
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1194,6 +1334,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1194
1334
|
}
|
|
1195
1335
|
}
|
|
1196
1336
|
} else {
|
|
1337
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1197
1338
|
endPostUpdate();
|
|
1198
1339
|
}
|
|
1199
1340
|
{
|
|
@@ -1207,21 +1348,18 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1207
1348
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1208
1349
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1209
1350
|
}
|
|
1210
|
-
hostRef.$flags$ &=
|
|
1351
|
+
hostRef.$flags$ &= -517;
|
|
1211
1352
|
}
|
|
1212
1353
|
};
|
|
1213
1354
|
var appDidLoad = (who) => {
|
|
1214
|
-
{
|
|
1215
|
-
addHydratedFlag(doc.documentElement);
|
|
1216
|
-
}
|
|
1217
1355
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1218
1356
|
};
|
|
1219
|
-
var safeCall = (instance, method, arg) => {
|
|
1357
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1220
1358
|
if (instance && instance[method]) {
|
|
1221
1359
|
try {
|
|
1222
1360
|
return instance[method](arg);
|
|
1223
1361
|
} catch (e) {
|
|
1224
|
-
consoleError(e);
|
|
1362
|
+
consoleError(e, elm);
|
|
1225
1363
|
}
|
|
1226
1364
|
}
|
|
1227
1365
|
return void 0;
|
|
@@ -1237,14 +1375,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1237
1375
|
const hostRef = getHostRef(ref);
|
|
1238
1376
|
if (!hostRef) {
|
|
1239
1377
|
throw new Error(
|
|
1240
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/
|
|
1378
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
1241
1379
|
);
|
|
1242
1380
|
}
|
|
1243
1381
|
const elm = hostRef.$hostElement$ ;
|
|
1244
1382
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1245
1383
|
const flags = hostRef.$flags$;
|
|
1246
1384
|
const instance = hostRef.$lazyInstance$ ;
|
|
1247
|
-
newVal = parsePropertyValue(
|
|
1385
|
+
newVal = parsePropertyValue(
|
|
1386
|
+
newVal,
|
|
1387
|
+
cmpMeta.$members$[propName][0]);
|
|
1248
1388
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1249
1389
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1250
1390
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -1263,6 +1403,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1263
1403
|
}
|
|
1264
1404
|
}
|
|
1265
1405
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1406
|
+
if (instance.componentShouldUpdate) {
|
|
1407
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1266
1411
|
scheduleUpdate(hostRef, false);
|
|
1267
1412
|
}
|
|
1268
1413
|
}
|
|
@@ -1280,15 +1425,74 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1280
1425
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1281
1426
|
members.map(([memberName, [memberFlags]]) => {
|
|
1282
1427
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1428
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1429
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1430
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1431
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1432
|
+
Object.defineProperty(prototype, memberName, {
|
|
1433
|
+
get() {
|
|
1434
|
+
{
|
|
1435
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1436
|
+
return getValue(this, memberName);
|
|
1437
|
+
}
|
|
1438
|
+
const ref = getHostRef(this);
|
|
1439
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1440
|
+
if (!instance) return;
|
|
1441
|
+
return instance[memberName];
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
configurable: true,
|
|
1445
|
+
enumerable: true
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1283
1448
|
Object.defineProperty(prototype, memberName, {
|
|
1284
|
-
get() {
|
|
1285
|
-
return getValue(this, memberName);
|
|
1286
|
-
},
|
|
1287
1449
|
set(newValue) {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1450
|
+
const ref = getHostRef(this);
|
|
1451
|
+
if (origSetter) {
|
|
1452
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1453
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1454
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1455
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1456
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1457
|
+
}
|
|
1458
|
+
origSetter.apply(this, [
|
|
1459
|
+
parsePropertyValue(
|
|
1460
|
+
newValue,
|
|
1461
|
+
memberFlags)
|
|
1462
|
+
]);
|
|
1463
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1464
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
{
|
|
1468
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1469
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1470
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1471
|
+
ref.$onReadyPromise$.then(() => {
|
|
1472
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1473
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1474
|
+
}
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
return;
|
|
1478
|
+
}
|
|
1479
|
+
const setterSetVal = () => {
|
|
1480
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1481
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1482
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1483
|
+
}
|
|
1484
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1485
|
+
newValue,
|
|
1486
|
+
memberFlags);
|
|
1487
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1488
|
+
};
|
|
1489
|
+
if (ref.$lazyInstance$) {
|
|
1490
|
+
setterSetVal();
|
|
1491
|
+
} else {
|
|
1492
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1292
1496
|
});
|
|
1293
1497
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1294
1498
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1309,7 +1513,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1309
1513
|
plt.jmp(() => {
|
|
1310
1514
|
var _a2;
|
|
1311
1515
|
const propName = attrNameToPropName.get(attrName);
|
|
1312
|
-
if (this.hasOwnProperty(propName)) {
|
|
1516
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1313
1517
|
newValue = this[propName];
|
|
1314
1518
|
delete this[propName];
|
|
1315
1519
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1329,7 +1533,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1329
1533
|
}
|
|
1330
1534
|
return;
|
|
1331
1535
|
}
|
|
1332
|
-
|
|
1536
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1537
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1538
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1539
|
+
this[propName] = newValue;
|
|
1540
|
+
}
|
|
1333
1541
|
});
|
|
1334
1542
|
};
|
|
1335
1543
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1354,7 +1562,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1354
1562
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1355
1563
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1356
1564
|
if (bundleId) {
|
|
1357
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1565
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1358
1566
|
if (CstrImport && "then" in CstrImport) {
|
|
1359
1567
|
const endLoad = uniqueTime();
|
|
1360
1568
|
Cstr = await CstrImport;
|
|
@@ -1379,15 +1587,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1379
1587
|
try {
|
|
1380
1588
|
new Cstr(hostRef);
|
|
1381
1589
|
} catch (e) {
|
|
1382
|
-
consoleError(e);
|
|
1590
|
+
consoleError(e, elm);
|
|
1383
1591
|
}
|
|
1384
1592
|
{
|
|
1385
|
-
hostRef.$flags$ &=
|
|
1593
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1386
1594
|
}
|
|
1387
1595
|
{
|
|
1388
1596
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1389
1597
|
}
|
|
1390
1598
|
endNewInstance();
|
|
1599
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1391
1600
|
} else {
|
|
1392
1601
|
Cstr = elm.constructor;
|
|
1393
1602
|
const cmpTag = elm.localName;
|
|
@@ -1414,7 +1623,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1414
1623
|
schedule();
|
|
1415
1624
|
}
|
|
1416
1625
|
};
|
|
1417
|
-
var fireConnectedCallback = (instance) => {
|
|
1626
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1627
|
+
{
|
|
1628
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1629
|
+
}
|
|
1418
1630
|
};
|
|
1419
1631
|
|
|
1420
1632
|
// src/runtime/connected-callback.ts
|
|
@@ -1453,51 +1665,66 @@ var connectedCallback = (elm) => {
|
|
|
1453
1665
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1454
1666
|
}
|
|
1455
1667
|
} else {
|
|
1456
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1457
|
-
hostRef.$
|
|
1668
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1669
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1670
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1671
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1458
1672
|
}
|
|
1459
1673
|
}
|
|
1460
1674
|
endConnected();
|
|
1461
1675
|
}
|
|
1462
1676
|
};
|
|
1463
1677
|
var setContentReference = (elm) => {
|
|
1464
|
-
|
|
1678
|
+
if (!win.document) {
|
|
1679
|
+
return;
|
|
1680
|
+
}
|
|
1681
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1465
1682
|
""
|
|
1466
1683
|
);
|
|
1467
1684
|
contentRefElm["s-cn"] = true;
|
|
1468
1685
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1469
1686
|
};
|
|
1470
|
-
var disconnectInstance = (instance) => {
|
|
1687
|
+
var disconnectInstance = (instance, elm) => {
|
|
1471
1688
|
{
|
|
1472
|
-
safeCall(instance, "disconnectedCallback");
|
|
1689
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1473
1690
|
}
|
|
1474
1691
|
};
|
|
1475
1692
|
var disconnectedCallback = async (elm) => {
|
|
1476
1693
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1477
1694
|
const hostRef = getHostRef(elm);
|
|
1478
1695
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1479
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1696
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1480
1697
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1481
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1698
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1482
1699
|
}
|
|
1483
1700
|
}
|
|
1701
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1702
|
+
rootAppliedStyles.delete(elm);
|
|
1703
|
+
}
|
|
1704
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1705
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1706
|
+
}
|
|
1484
1707
|
};
|
|
1485
1708
|
|
|
1486
1709
|
// src/runtime/bootstrap-lazy.ts
|
|
1487
1710
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1488
1711
|
var _a;
|
|
1712
|
+
if (!win.document) {
|
|
1713
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1714
|
+
return;
|
|
1715
|
+
}
|
|
1489
1716
|
const endBootstrap = createTime();
|
|
1490
1717
|
const cmpTags = [];
|
|
1491
1718
|
const exclude = options.exclude || [];
|
|
1492
1719
|
const customElements2 = win.customElements;
|
|
1493
|
-
const head =
|
|
1720
|
+
const head = win.document.head;
|
|
1494
1721
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1495
|
-
const dataStyles = /* @__PURE__ */
|
|
1722
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1496
1723
|
const deferredConnectedCallbacks = [];
|
|
1497
1724
|
let appLoadFallback;
|
|
1498
1725
|
let isBootstrapping = true;
|
|
1499
1726
|
Object.assign(plt, options);
|
|
1500
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1727
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1501
1728
|
let hasSlotRelocation = false;
|
|
1502
1729
|
lazyBundles.map((lazyBundle) => {
|
|
1503
1730
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1528,9 +1755,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1528
1755
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1529
1756
|
{
|
|
1530
1757
|
if (!self.shadowRoot) {
|
|
1531
|
-
|
|
1532
|
-
self.attachShadow({ mode: "open" });
|
|
1533
|
-
}
|
|
1758
|
+
createShadowRoot.call(self, cmpMeta);
|
|
1534
1759
|
} else {
|
|
1535
1760
|
if (self.shadowRoot.mode !== "open") {
|
|
1536
1761
|
throw new Error(
|
|
@@ -1558,6 +1783,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1558
1783
|
}
|
|
1559
1784
|
disconnectedCallback() {
|
|
1560
1785
|
plt.jmp(() => disconnectedCallback(this));
|
|
1786
|
+
plt.raf(() => {
|
|
1787
|
+
var _a3;
|
|
1788
|
+
const hostRef = getHostRef(this);
|
|
1789
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1790
|
+
if (i2 > -1) {
|
|
1791
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1792
|
+
}
|
|
1793
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1794
|
+
delete hostRef.$vnode$.$elm$;
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1561
1797
|
}
|
|
1562
1798
|
componentOnReady() {
|
|
1563
1799
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1582,7 +1818,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1582
1818
|
}
|
|
1583
1819
|
if (dataStyles.innerHTML.length) {
|
|
1584
1820
|
dataStyles.setAttribute("data-styles", "");
|
|
1585
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1821
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1586
1822
|
if (nonce != null) {
|
|
1587
1823
|
dataStyles.setAttribute("nonce", nonce);
|
|
1588
1824
|
}
|
|
@@ -1610,6 +1846,7 @@ exports.Fragment = Fragment;
|
|
|
1610
1846
|
exports.Host = Host;
|
|
1611
1847
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1612
1848
|
exports.getElement = getElement;
|
|
1849
|
+
exports.globalScripts = globalScripts;
|
|
1613
1850
|
exports.h = h;
|
|
1614
1851
|
exports.promiseResolve = promiseResolve;
|
|
1615
1852
|
exports.registerInstance = registerInstance;
|