adp-web-components 0.3.12 → 0.3.13
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/{add-icon-CF5SHPFy.js → add-icon-BaoMAIgg.js} +2 -4
- package/dist/cjs/{app-globals-CLG2l7G2.js → app-globals-DBRBLgev.js} +3 -2
- package/dist/cjs/arrow-icon-CJX1aUJ8.js +11 -0
- package/dist/cjs/arrow-up-icon-B3Z5Myqt.js +11 -0
- package/dist/cjs/calendar-days-icon-CsHz2cgV.js +11 -0
- package/dist/cjs/{check-icon-BZSYrNhm.js → check-icon-CqTKjw2o.js} +2 -3
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +53 -47
- package/dist/cjs/{decode-time-offset-iH1ebYUR.js → decode-time-offset-DOSaziv5.js} +1 -1
- package/dist/cjs/flexible-container.cjs.entry.js +14 -8
- package/dist/cjs/form-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-date-picker.cjs.entry.js +12 -10
- package/dist/cjs/form-dialog_13.cjs.entry.js +180 -103
- package/dist/cjs/{form-error-message-BVlrmjov.js → form-error-message-K-KI154V.js} +4 -5
- package/dist/cjs/{form-input-label-CVEi7sIh.js → form-input-label-uhneFYXO.js} +4 -6
- package/dist/cjs/form-input_7.cjs.entry.js +54 -38
- package/dist/cjs/form-switch.cjs.entry.js +5 -5
- package/dist/cjs/form-time-picker.cjs.entry.js +13 -11
- package/dist/cjs/{functions-o-EQwu4V.js → functions-Bu1AQDD2.js} +3 -3
- package/dist/cjs/general-form.cjs.entry.js +18 -14
- package/dist/cjs/general-inquiry-form.cjs.entry.js +18 -14
- package/dist/cjs/{get-custom-classes-for-portal-4AUxpteB.js → get-custom-classes-for-portal-NNOxAU3P.js} +2 -3
- package/dist/cjs/{get-language-from-url-BB87tzU5.js → get-language-from-url-p2OXldYh.js} +1 -1
- package/dist/cjs/{get-local-language-BBAqu4vR.js → get-local-language-BR0p0bBg.js} +2 -2
- package/dist/cjs/{get-mock-files-JeY1_aCZ.js → get-mock-files-Dljv5P4k.js} +2 -2
- package/dist/cjs/{index-H5Wezxcv.js → index-Bi6W8dMN.js} +492 -270
- package/dist/cjs/information-table.cjs.entry.js +7 -5
- package/dist/cjs/{loader-icon-DO2Fu65-.js → loader-icon-By94sKO7.js} +2 -10
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/loading-spinner.cjs.entry.js +4 -4
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +9 -7
- package/dist/cjs/{mappers-Cwx7L0MJ.js → mappers-DF2WCWpn.js} +5 -9
- package/dist/cjs/{material-card-DyHk88WR.js → material-card-BqsZgRVE.js} +4 -12
- package/dist/cjs/part-lookup.cjs.entry.js +11 -7
- package/dist/cjs/qr-code-scan-B-8WHa22.js +11 -0
- package/dist/cjs/service-booking-form.cjs.entry.js +18 -14
- package/dist/cjs/shift-accordion.cjs.entry.js +4 -4
- package/dist/cjs/shift-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/shift-components.cjs.js +4 -4
- package/dist/cjs/shift-slider.cjs.entry.js +7 -5
- package/dist/cjs/shift-switch.cjs.entry.js +4 -4
- package/dist/cjs/shift-tab-content.cjs.entry.js +7 -5
- package/dist/cjs/shift-tabs_2.cjs.entry.js +25 -25
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +18 -14
- package/dist/cjs/test-drive-form.cjs.entry.js +18 -14
- package/dist/cjs/{triangle-alert-B9UanYfs.js → triangle-alert-CN15U99s.js} +3 -11
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +100 -166
- package/dist/cjs/vehicle-info-layout-sV6altzn.js +12 -0
- package/dist/cjs/vehicle-lookup.cjs.entry.js +15 -9
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +16 -16
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/components/empty.css +1 -1
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/flexible-container.js +10 -10
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/information-table.js +11 -15
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/loading-spinner.js +3 -3
- package/dist/collection/components/components/shift-accordion.js +5 -6
- package/dist/collection/components/components/shift-checkbox.js +13 -14
- package/dist/collection/components/components/shift-portal.css +1 -1
- package/dist/collection/components/components/shift-portal.js +3 -4
- package/dist/collection/components/components/shift-select-dropdown.css +1 -1
- package/dist/collection/components/components/shift-select-dropdown.js +23 -24
- package/dist/collection/components/components/shift-select.css +1 -1
- package/dist/collection/components/components/shift-select.js +47 -43
- package/dist/collection/components/components/shift-slider.css +1 -1
- package/dist/collection/components/components/shift-slider.js +3 -4
- package/dist/collection/components/components/shift-switch.js +13 -14
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tab-content.js +3 -4
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/components/shift-tabs.js +10 -12
- package/dist/collection/components/form-elements/form-checkbox.js +17 -17
- package/dist/collection/components/form-elements/form-date-picker-legacy.js +26 -27
- package/dist/collection/components/form-elements/form-dialog.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +7 -8
- package/dist/collection/components/form-elements/form-file.js +113 -59
- package/dist/collection/components/form-elements/form-input-preview.js +8 -8
- package/dist/collection/components/form-elements/form-input.js +29 -31
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-phone-number.js +25 -25
- package/dist/collection/components/form-elements/form-picker-input.js +36 -37
- package/dist/collection/components/form-elements/form-select.js +37 -36
- package/dist/collection/components/form-elements/form-shadow-input.js +8 -8
- package/dist/collection/components/form-elements/form-stepper-control.js +16 -16
- package/dist/collection/components/form-elements/form-stepper-submit.js +18 -18
- package/dist/collection/components/form-elements/form-stepper.js +11 -11
- package/dist/collection/components/form-elements/form-structure-error.js +4 -3
- package/dist/collection/components/form-elements/form-structure.js +16 -16
- package/dist/collection/components/form-elements/form-submit.js +16 -16
- package/dist/collection/components/form-elements/form-switch.js +17 -17
- package/dist/collection/components/form-elements/form-text-area.js +21 -21
- package/dist/collection/components/form-elements/form-time-picker-legacy.js +26 -26
- package/dist/collection/components/form-elements/form-vin-input.js +31 -31
- package/dist/collection/components/forms/defaults/style.css +1 -1
- package/dist/collection/components/forms/general-form.js +22 -29
- package/dist/collection/components/forms/general-inquiry.js +22 -29
- package/dist/collection/components/forms/service-booking.js +22 -29
- package/dist/collection/components/forms/ssc-lookup.js +22 -29
- package/dist/collection/components/forms/test-drive.js +22 -29
- package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +22 -27
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +41 -29
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +49 -36
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +41 -29
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +24 -20
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.js +36 -26
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +36 -27
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +50 -40
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +21 -21
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +26 -24
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +35 -26
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +37 -28
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +35 -26
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +35 -26
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +55 -45
- package/dist/collection/components/vin-extractor/vin-extractor.css +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +26 -25
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-date-picker.js +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-file.js +1 -1
- package/dist/components/form-input-preview.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.js +1 -1
- package/dist/components/form-picker-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-stepper-control.js +1 -1
- package/dist/components/form-stepper-submit.js +1 -1
- package/dist/components/form-stepper.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-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/form-time-picker.js +1 -1
- package/dist/components/form-vin-input.js +1 -1
- package/dist/components/general-form.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/p-50EIzP4j.js +5 -0
- package/dist/components/p-8EOK_QhL.js +5 -0
- package/dist/components/p-B3Vlmu9F.js +5 -0
- package/dist/components/p-B42vuL_p.js +5 -0
- package/dist/components/p-B8g3fLoh.js +5 -0
- package/dist/components/p-BDHTK4yJ.js +5 -0
- package/dist/components/p-BDlZ35Dv.js +5 -0
- package/dist/components/p-BFAzCUQY.js +5 -0
- package/dist/components/p-BHYsBcpG.js +5 -0
- package/dist/components/p-BIeJEFM6.js +5 -0
- package/dist/components/p-BMxw31OW.js +5 -0
- package/dist/components/p-BNs9PHd8.js +5 -0
- package/dist/components/p-BP6R1nYk.js +5 -0
- package/dist/components/p-BcRom3sV.js +5 -0
- package/dist/components/p-BjLQXN9e.js +5 -0
- package/dist/components/{p-CtJ3xlmH.js → p-BsgLxjfx.js} +1 -1
- package/dist/components/p-C24AOawm.js +5 -0
- package/dist/components/p-C55Gk63d.js +5 -0
- package/dist/components/p-CD1XArUc.js +5 -0
- package/dist/components/p-CK6WFXQF.js +5 -0
- package/dist/components/p-CKrwCtec.js +5 -0
- package/dist/components/p-CLkGfAsm.js +5 -0
- package/dist/components/p-CMgPnaDZ.js +5 -0
- package/dist/components/p-CRJSM0nN.js +5 -0
- package/dist/components/p-CjByjVT0.js +5 -0
- package/dist/components/p-Cl-rntc3.js +5 -0
- package/dist/components/{p-C3f5RXYo.js → p-ClDpIRF9.js} +1 -1
- package/dist/components/{p-BycIovNB.js → p-CnZZ3ASF.js} +1 -1
- package/dist/components/{p-JkEomBDe.js → p-CoAe_PpX.js} +1 -1
- package/dist/components/{p-Co3Ttxob.js → p-CtyIp56a.js} +1 -1
- package/dist/components/{p-B1rySNA6.js → p-CvcaE6Ss.js} +1 -1
- package/dist/components/{p-BGqJcv0T.js → p-D-0CfzDk.js} +1 -1
- package/dist/components/p-DBErZTaY.js +5 -0
- package/dist/components/p-DJ0awYVE.js +5 -0
- package/dist/components/p-DNZ31iYw.js +5 -0
- package/dist/components/p-DWGSY0dp.js +5 -0
- package/dist/components/p-DbAAihIH.js +5 -0
- package/dist/components/p-DlG98nFs.js +5 -0
- package/dist/components/{p-CbPeT4Wv.js → p-Dv_BQG7D.js} +1 -1
- package/dist/components/p-Hlqj6HsH.js +5 -0
- package/dist/components/p-Wv20cFTm.js +5 -0
- package/dist/components/p-dRP9cgZF.js +5 -0
- package/dist/components/p-ubqjXh5U.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-checkbox.js +1 -1
- package/dist/components/shift-portal.js +1 -1
- package/dist/components/shift-select-dropdown.js +1 -1
- package/dist/components/shift-select.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-switch.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/ssc-lookup-form.js +1 -1
- package/dist/components/test-drive-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-sale-information.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/{add-icon-1FhDJgrT.js → add-icon-DxQVyX6U.js} +2 -4
- package/dist/esm/app-globals-ci3rJxmu.js +10 -0
- package/dist/esm/arrow-icon-DRTeN2D5.js +9 -0
- package/dist/esm/arrow-up-icon-FAYFxG6c.js +9 -0
- package/dist/esm/calendar-days-icon-BOy0a_W-.js +9 -0
- package/dist/esm/{check-icon-mzFBdGKX.js → check-icon-BYK1ESZG.js} +2 -3
- package/dist/esm/dead-stock-lookup_3.entry.js +53 -47
- package/dist/esm/{decode-time-offset-Yzmqcv0-.js → decode-time-offset-ChO_PV6l.js} +1 -1
- package/dist/esm/flexible-container.entry.js +14 -8
- package/dist/esm/form-checkbox.entry.js +5 -5
- package/dist/esm/form-date-picker.entry.js +12 -10
- package/dist/esm/form-dialog_13.entry.js +180 -103
- package/dist/esm/{form-error-message-7rL_3zgN.js → form-error-message-YvMHko71.js} +4 -5
- package/dist/esm/{form-input-label-C4MUngYi.js → form-input-label-cuvgzRcH.js} +4 -6
- package/dist/esm/form-input_7.entry.js +54 -38
- package/dist/esm/form-switch.entry.js +5 -5
- package/dist/esm/form-time-picker.entry.js +13 -11
- package/dist/esm/{functions-CVTPURU1.js → functions-DHzedl_R.js} +3 -3
- package/dist/esm/general-form.entry.js +18 -14
- package/dist/esm/general-inquiry-form.entry.js +18 -14
- package/dist/esm/{get-custom-classes-for-portal-CF78qKTL.js → get-custom-classes-for-portal-C4LvwyrX.js} +2 -3
- package/dist/esm/{get-language-from-url-BVbqyJmz.js → get-language-from-url-U4hZ4dwn.js} +1 -1
- package/dist/esm/{get-local-language-ExQYUqwW.js → get-local-language-TRD6vPH7.js} +2 -2
- package/dist/esm/{get-mock-files-D7WSQrLO.js → get-mock-files-K2mWecRb.js} +2 -2
- package/dist/esm/{index-jNkxdTjc.js → index-Cg4V9l26.js} +493 -270
- package/dist/esm/information-table.entry.js +7 -5
- package/dist/esm/{loader-icon-C9goMj-j.js → loader-icon-B2ls1yXl.js} +2 -10
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loading-spinner.entry.js +4 -4
- package/dist/esm/manufacturer-part-lookup.entry.js +9 -7
- package/dist/esm/{mappers-BR64PDWN.js → mappers-CeTQZn37.js} +5 -9
- package/dist/esm/{material-card-ZydeukMY.js → material-card-BMtefyp-.js} +4 -12
- package/dist/esm/part-lookup.entry.js +11 -7
- package/dist/esm/qr-code-scan-CktgNBSD.js +9 -0
- package/dist/esm/service-booking-form.entry.js +18 -14
- package/dist/esm/shift-accordion.entry.js +4 -4
- package/dist/esm/shift-checkbox.entry.js +5 -5
- package/dist/esm/shift-components.js +5 -5
- package/dist/esm/shift-slider.entry.js +7 -5
- package/dist/esm/shift-switch.entry.js +4 -4
- package/dist/esm/shift-tab-content.entry.js +7 -5
- package/dist/esm/shift-tabs_2.entry.js +25 -25
- package/dist/esm/ssc-lookup-form.entry.js +18 -14
- package/dist/esm/test-drive-form.entry.js +18 -14
- package/dist/esm/{triangle-alert-CVJ0-eRT.js → triangle-alert-D4H9aWiT.js} +3 -11
- package/dist/esm/vehicle-accessories_7.entry.js +100 -166
- package/dist/esm/vehicle-info-layout-DQ12Civq.js +10 -0
- package/dist/esm/vehicle-lookup.entry.js +15 -9
- package/dist/esm/vehicle-quotation-form.entry.js +16 -16
- package/dist/integration-manifest.json +13 -20
- package/dist/shift-components/p-031f2ae6.entry.js +5 -0
- package/dist/shift-components/p-0578b913.entry.js +5 -0
- package/dist/shift-components/{p-CyHqRBNl.js → p-08Pl1Pmo.js} +1 -1
- package/dist/shift-components/p-0dd7911f.entry.js +5 -0
- package/dist/shift-components/p-10511716.entry.js +5 -0
- package/dist/shift-components/p-1500556f.entry.js +5 -0
- package/dist/shift-components/p-214259ae.entry.js +5 -0
- package/dist/shift-components/p-22648595.entry.js +5 -0
- package/dist/shift-components/p-23df4ed2.entry.js +5 -0
- package/dist/{components/p-WfCxXt3e.js → shift-components/p-2f904561.entry.js} +1 -1
- package/dist/shift-components/p-332ebda4.entry.js +5 -0
- package/dist/shift-components/p-3fcb1657.entry.js +5 -0
- package/dist/shift-components/p-46e5146f.entry.js +5 -0
- package/dist/shift-components/{p-456a80bf.entry.js → p-61ecc144.entry.js} +1 -1
- package/dist/shift-components/p-6b82a9b3.entry.js +5 -0
- package/dist/shift-components/p-7a41a739.entry.js +5 -0
- package/dist/shift-components/p-960fedbb.entry.js +5 -0
- package/dist/shift-components/p-981d1f44.entry.js +5 -0
- package/dist/shift-components/p-9c950549.entry.js +5 -0
- package/dist/shift-components/{p-BqIKtMjz.js → p-B8RCucpl.js} +1 -1
- package/dist/shift-components/{p-6VfKhHyc.js → p-BBmr0kTe.js} +1 -1
- package/dist/shift-components/{p-DqLLLv_z.js → p-BG5y01yj.js} +1 -1
- package/dist/shift-components/p-BLdwm9KB.js +5 -0
- package/dist/shift-components/{p-D7tlaAVX.js → p-BVDXHvth.js} +1 -1
- package/dist/shift-components/{p-CRXqIT0k.js → p-BaC5C1YJ.js} +1 -1
- package/dist/shift-components/{p-BYqBwpb9.js → p-BpCf2ue6.js} +1 -1
- package/dist/shift-components/{p-WjikIqgU.js → p-BtLpOQVM.js} +1 -1
- package/dist/shift-components/{p-UBUcLzuM.js → p-CC1CaPP4.js} +1 -1
- package/dist/shift-components/{p-BUeE5BHf.js → p-CRd5RAng.js} +1 -1
- package/dist/shift-components/p-Cg4V9l26.js +6 -0
- package/dist/shift-components/{p-DLnQ2n2n.js → p-CiA8HlYO.js} +1 -1
- package/dist/shift-components/{p-gbZBovQk.js → p-CtUQMviL.js} +1 -1
- package/dist/shift-components/p-D2XgNV12.js +5 -0
- package/dist/shift-components/{p-DH9o3_cP.js → p-DlBduQTw.js} +1 -1
- package/dist/shift-components/{p-Dkfzp2fH.js → p-Dvl1mJ6N.js} +1 -1
- package/dist/shift-components/{p-CAlGd4kD.js → p-DwFWMVcD.js} +1 -1
- package/dist/shift-components/{p-6CGlGx2z.js → p-FFH7sR1n.js} +1 -1
- package/dist/shift-components/p-a4086c90.entry.js +5 -0
- package/dist/shift-components/p-a55ceb19.entry.js +5 -0
- package/dist/shift-components/p-b611f72e.entry.js +5 -0
- package/dist/shift-components/p-bc966aa0.entry.js +5 -0
- package/dist/shift-components/p-d33c83ac.entry.js +5 -0
- package/dist/shift-components/p-e979caa9.entry.js +5 -0
- package/dist/shift-components/p-fa39d151.entry.js +5 -0
- package/dist/shift-components/p-fe7ece41.entry.js +5 -0
- package/dist/shift-components/{p-BB4LQh2g.js → p-rsylYLbj.js} +1 -1
- package/dist/shift-components/{p-BIk1ppUN.js → p-yhCrSkom.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/stencil-docs.d.ts +37 -0
- package/dist/stencil-docs.json +539 -411
- package/dist/types/components/form-elements/form-file.d.ts +3 -0
- package/dist/types/components.d.ts +671 -118
- package/dist/types/features/multi-lingual/types.d.ts +4 -4
- package/dist/types/locales/forms/type.d.ts +4 -4
- package/dist/types/locales/partLookup/distributor/type.d.ts +2 -2
- package/dist/types/locales/partLookup/manufacturer/type.d.ts +2 -2
- package/dist/types/locales/partLookup/wrapper-type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/accessories/type.d.ts +6 -6
- package/dist/types/locales/vehicleLookup/claimableItems/type.d.ts +4 -4
- 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/wrapper-type.d.ts +16 -16
- package/dist/types/stencil-public-runtime.d.ts +158 -6
- package/package.json +2 -2
- package/dist/cjs/arrow-icon-ZTqfmBmE.js +0 -12
- package/dist/cjs/arrow-up-icon-eGUQ8IBP.js +0 -12
- package/dist/cjs/calendar-days-icon-Ugslrikt.js +0 -21
- package/dist/cjs/qr-code-scan-DIO-qSdh.js +0 -22
- package/dist/cjs/vehicle-info-layout-DSEDx5Ah.js +0 -17
- package/dist/components/p-5xxH8tbS.js +0 -5
- package/dist/components/p-B1G1Emsg.js +0 -5
- package/dist/components/p-B7imL20E.js +0 -5
- package/dist/components/p-BD4roPIb.js +0 -5
- package/dist/components/p-BKBG7bI_.js +0 -5
- package/dist/components/p-BQ1t34rG.js +0 -5
- package/dist/components/p-BSQr-zbq.js +0 -5
- package/dist/components/p-BYDz61s7.js +0 -5
- package/dist/components/p-BZQYv_zg.js +0 -5
- package/dist/components/p-BhvdrqvQ.js +0 -5
- package/dist/components/p-Br0n06ak.js +0 -5
- package/dist/components/p-BxdK4hSV.js +0 -5
- package/dist/components/p-By567P_b.js +0 -5
- package/dist/components/p-Ca2-9IJS.js +0 -5
- package/dist/components/p-CfUO4dpy.js +0 -5
- package/dist/components/p-CjtTghsX.js +0 -5
- package/dist/components/p-Cl1El__H.js +0 -5
- package/dist/components/p-CtWBJGY9.js +0 -5
- package/dist/components/p-Cudi9LsD.js +0 -5
- package/dist/components/p-D7GqNvow.js +0 -5
- package/dist/components/p-DEI9cxLs.js +0 -5
- package/dist/components/p-DF3mal9n.js +0 -5
- package/dist/components/p-DFZphW5t.js +0 -5
- package/dist/components/p-DPd206Hi.js +0 -5
- package/dist/components/p-DZ2GsnAw.js +0 -5
- package/dist/components/p-Dm8bWcdH.js +0 -5
- package/dist/components/p-H9rpA_js.js +0 -5
- package/dist/components/p-NkzoTfD6.js +0 -5
- package/dist/components/p-Tej7fhZH.js +0 -5
- package/dist/components/p-VuUMWQot.js +0 -5
- package/dist/components/p-WQVJO8lK.js +0 -5
- package/dist/components/p-ecmObcUU.js +0 -5
- package/dist/components/p-tVYEiZTA.js +0 -5
- package/dist/components/p-xaFnNvO-.js +0 -5
- package/dist/esm/app-globals-iQ64oiU-.js +0 -9
- package/dist/esm/arrow-icon-CpbG2bMD.js +0 -10
- package/dist/esm/arrow-up-icon-CSgSH4zF.js +0 -10
- package/dist/esm/calendar-days-icon-FhJhuU8S.js +0 -19
- package/dist/esm/qr-code-scan-DUAfaPLZ.js +0 -20
- package/dist/esm/vehicle-info-layout-iwnuxQFr.js +0 -15
- package/dist/shift-components/p-066d1aa7.entry.js +0 -5
- package/dist/shift-components/p-0cd75c5d.entry.js +0 -5
- package/dist/shift-components/p-0ce901af.entry.js +0 -5
- package/dist/shift-components/p-12803c29.entry.js +0 -5
- package/dist/shift-components/p-29f31068.entry.js +0 -5
- package/dist/shift-components/p-2af2814d.entry.js +0 -5
- package/dist/shift-components/p-2e8a413a.entry.js +0 -5
- package/dist/shift-components/p-3911b357.entry.js +0 -5
- package/dist/shift-components/p-65d47c58.entry.js +0 -5
- package/dist/shift-components/p-6d0344c8.entry.js +0 -5
- package/dist/shift-components/p-73997c04.entry.js +0 -5
- package/dist/shift-components/p-7645500d.entry.js +0 -5
- package/dist/shift-components/p-9e405896.entry.js +0 -5
- package/dist/shift-components/p-C9T02-yz.js +0 -5
- package/dist/shift-components/p-a5ab9255.entry.js +0 -5
- package/dist/shift-components/p-a6b57150.entry.js +0 -5
- package/dist/shift-components/p-aaf49a7a.entry.js +0 -5
- package/dist/shift-components/p-ac7fcf6c.entry.js +0 -5
- package/dist/shift-components/p-b3eb2198.entry.js +0 -5
- package/dist/shift-components/p-bf5ff6d9.entry.js +0 -5
- package/dist/shift-components/p-bfdfdac5.entry.js +0 -5
- package/dist/shift-components/p-c41afd6a.entry.js +0 -5
- package/dist/shift-components/p-cf29fbbb.entry.js +0 -5
- package/dist/shift-components/p-e08bc5d9.entry.js +0 -5
- package/dist/shift-components/p-e9d552eb.entry.js +0 -5
- package/dist/shift-components/p-fc9c2c02.entry.js +0 -5
- package/dist/shift-components/p-jNkxdTjc.js +0 -6
- package/dist/shift-components/p-zUjGUnSs.js +0 -5
- /package/dist/components/{p-DN4c_zdE.js → p-5NIYyHI-.js} +0 -0
- /package/dist/components/{p-Cgt5s_xn.js → p-B6xZ__mT.js} +0 -0
- /package/dist/components/{p-DHfdaMCZ.js → p-BA1Id0rV.js} +0 -0
- /package/dist/components/{p-JSG4fAIl.js → p-BcYtRtiU.js} +0 -0
- /package/dist/components/{p-BG8YXzND.js → p-ByNlQjpu.js} +0 -0
- /package/dist/components/{p-BMqwfA7R.js → p-ByRA9Jio.js} +0 -0
- /package/dist/components/{p-BlqCKH24.js → p-BzsXkZqy.js} +0 -0
- /package/dist/components/{p-iTJ5pT2w.js → p-CILGkcfa.js} +0 -0
- /package/dist/components/{p-BHy4oEqB.js → p-CLdijNKL.js} +0 -0
- /package/dist/components/{p-8u5uhwdg.js → p-D9mmIizU.js} +0 -0
- /package/dist/components/{p-uiE7emGF.js → p-DRhkO-Ac.js} +0 -0
- /package/dist/components/{p-Co_hK-X8.js → p-D_ukwEEB.js} +0 -0
- /package/dist/components/{p-piZ41_ho.js → p-Df4xlD1R.js} +0 -0
- /package/dist/components/{p-Ce4X3l8Z.js → p-MGQ2O9as.js} +0 -0
- /package/dist/components/{p-pnQgLSsX.js → p-_nGOa2Au.js} +0 -0
- /package/dist/components/{p-ClpSwIg-.js → p-d7wdNFwt.js} +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
const NAMESPACE = 'shift-components';
|
|
8
|
-
const BUILD = /* shift-components */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
8
|
+
const BUILD = /* shift-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
|
|
9
9
|
|
|
10
10
|
(async function () {
|
|
11
11
|
const href = 'https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap';
|
|
@@ -50,21 +50,57 @@ const BUILD = /* shift-components */ { hydratedSelectorName: "hydrated", lazyLoa
|
|
|
50
50
|
console.log('Global blazorInvoke initialized.');
|
|
51
51
|
}
|
|
52
52
|
})();
|
|
53
|
-
const globalFn = () => { };
|
|
54
53
|
|
|
55
54
|
/*
|
|
56
|
-
Stencil Client Platform v4.
|
|
55
|
+
Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
|
|
57
56
|
*/
|
|
58
|
-
|
|
59
|
-
var __export = (target, all) => {
|
|
60
|
-
for (var name in all)
|
|
61
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
62
|
-
};
|
|
57
|
+
|
|
63
58
|
|
|
64
59
|
// src/utils/constants.ts
|
|
65
60
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
66
61
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
67
62
|
|
|
63
|
+
// src/utils/get-prop-descriptor.ts
|
|
64
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
65
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
66
|
+
while (obj && obj !== stopAt) {
|
|
67
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
68
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
69
|
+
obj = Object.getPrototypeOf(obj);
|
|
70
|
+
}
|
|
71
|
+
return void 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
75
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
76
|
+
var _a;
|
|
77
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
78
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
79
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
80
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
81
|
+
const ogValue = instance[memberName];
|
|
82
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
83
|
+
if (ogDescriptor) {
|
|
84
|
+
Object.defineProperty(instance, memberName, {
|
|
85
|
+
get() {
|
|
86
|
+
return ogDescriptor.get.call(this);
|
|
87
|
+
},
|
|
88
|
+
set(newValue) {
|
|
89
|
+
ogDescriptor.set.call(this, newValue);
|
|
90
|
+
},
|
|
91
|
+
configurable: true,
|
|
92
|
+
enumerable: true
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
96
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
97
|
+
} else if (ogValue !== void 0) {
|
|
98
|
+
instance[memberName] = ogValue;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
68
104
|
// src/client/client-host-ref.ts
|
|
69
105
|
var getHostRef = (ref) => {
|
|
70
106
|
if (ref.__stencil__getHostRef) {
|
|
@@ -73,15 +109,20 @@ var getHostRef = (ref) => {
|
|
|
73
109
|
return void 0;
|
|
74
110
|
};
|
|
75
111
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
112
|
+
if (!hostRef) return;
|
|
76
113
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
77
114
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
115
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
116
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
117
|
+
}
|
|
78
118
|
};
|
|
79
119
|
var registerHost = (hostElement, cmpMeta) => {
|
|
80
120
|
const hostRef = {
|
|
81
121
|
$flags$: 0,
|
|
82
122
|
$hostElement$: hostElement,
|
|
83
123
|
$cmpMeta$: cmpMeta,
|
|
84
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
124
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
125
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
85
126
|
};
|
|
86
127
|
{
|
|
87
128
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
@@ -91,6 +132,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
91
132
|
hostElement["s-p"] = [];
|
|
92
133
|
hostElement["s-rc"] = [];
|
|
93
134
|
}
|
|
135
|
+
{
|
|
136
|
+
hostRef.$fetchedCbList$ = [];
|
|
137
|
+
}
|
|
94
138
|
const ref = hostRef;
|
|
95
139
|
hostElement.__stencil__getHostRef = () => ref;
|
|
96
140
|
return ref;
|
|
@@ -165,6 +209,9 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
165
209
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
166
210
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
167
211
|
try {
|
|
212
|
+
if (!win.document.adoptedStyleSheets) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
168
215
|
new CSSStyleSheet();
|
|
169
216
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
170
217
|
} catch (e) {
|
|
@@ -207,70 +254,6 @@ var flush = () => {
|
|
|
207
254
|
};
|
|
208
255
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
209
256
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
210
|
-
var isComplexType = (o) => {
|
|
211
|
-
o = typeof o;
|
|
212
|
-
return o === "object" || o === "function";
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
216
|
-
function queryNonceMetaTagContent(doc) {
|
|
217
|
-
var _a, _b, _c;
|
|
218
|
-
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;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// src/utils/regular-expression.ts
|
|
222
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
223
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
// src/utils/result.ts
|
|
227
|
-
var result_exports = {};
|
|
228
|
-
__export(result_exports, {
|
|
229
|
-
err: () => err,
|
|
230
|
-
map: () => map,
|
|
231
|
-
ok: () => ok,
|
|
232
|
-
unwrap: () => unwrap,
|
|
233
|
-
unwrapErr: () => unwrapErr
|
|
234
|
-
});
|
|
235
|
-
var ok = (value) => ({
|
|
236
|
-
isOk: true,
|
|
237
|
-
isErr: false,
|
|
238
|
-
value
|
|
239
|
-
});
|
|
240
|
-
var err = (value) => ({
|
|
241
|
-
isOk: false,
|
|
242
|
-
isErr: true,
|
|
243
|
-
value
|
|
244
|
-
});
|
|
245
|
-
function map(result, fn) {
|
|
246
|
-
if (result.isOk) {
|
|
247
|
-
const val = fn(result.value);
|
|
248
|
-
if (val instanceof Promise) {
|
|
249
|
-
return val.then((newVal) => ok(newVal));
|
|
250
|
-
} else {
|
|
251
|
-
return ok(val);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
if (result.isErr) {
|
|
255
|
-
const value = result.value;
|
|
256
|
-
return err(value);
|
|
257
|
-
}
|
|
258
|
-
throw "should never get here";
|
|
259
|
-
}
|
|
260
|
-
var unwrap = (result) => {
|
|
261
|
-
if (result.isOk) {
|
|
262
|
-
return result.value;
|
|
263
|
-
} else {
|
|
264
|
-
throw result.value;
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
var unwrapErr = (result) => {
|
|
268
|
-
if (result.isErr) {
|
|
269
|
-
return result.value;
|
|
270
|
-
} else {
|
|
271
|
-
throw result.value;
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
257
|
|
|
275
258
|
// src/utils/style.ts
|
|
276
259
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -281,7 +264,8 @@ function createStyleSheetIfNeededAndSupported(styles2) {
|
|
|
281
264
|
var globalStyleSheet;
|
|
282
265
|
function createShadowRoot(cmpMeta) {
|
|
283
266
|
var _a;
|
|
284
|
-
const
|
|
267
|
+
const opts = { mode: "open" };
|
|
268
|
+
const shadowRoot = this.attachShadow(opts);
|
|
285
269
|
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
286
270
|
if (globalStyleSheet) {
|
|
287
271
|
if (supportsMutableAdoptedStyleSheets) {
|
|
@@ -328,8 +312,9 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
328
312
|
let childNode;
|
|
329
313
|
for (; i2 < childNodes.length; i2++) {
|
|
330
314
|
childNode = childNodes[i2];
|
|
331
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
315
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
332
316
|
slottedNodes.push(childNode);
|
|
317
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
333
318
|
}
|
|
334
319
|
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
335
320
|
}
|
|
@@ -387,6 +372,18 @@ function patchSlotNode(node) {
|
|
|
387
372
|
node.assignedElements = assignedFactory(true);
|
|
388
373
|
node.assignedNodes = assignedFactory(false);
|
|
389
374
|
}
|
|
375
|
+
function dispatchSlotChangeEvent(elm) {
|
|
376
|
+
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
377
|
+
}
|
|
378
|
+
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
379
|
+
var _a;
|
|
380
|
+
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
381
|
+
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
382
|
+
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
383
|
+
const childNodes = internalCall(parentHost, "childNodes");
|
|
384
|
+
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
385
|
+
return { slotNode, slotName };
|
|
386
|
+
}
|
|
390
387
|
function internalCall(node, method) {
|
|
391
388
|
if ("__" + method in node) {
|
|
392
389
|
const toReturn = node["__" + method];
|
|
@@ -411,6 +408,14 @@ var uniqueTime = (key, measureText) => {
|
|
|
411
408
|
};
|
|
412
409
|
}
|
|
413
410
|
};
|
|
411
|
+
|
|
412
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
413
|
+
function queryNonceMetaTagContent(doc) {
|
|
414
|
+
var _a, _b, _c;
|
|
415
|
+
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;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// src/runtime/styles.ts
|
|
414
419
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
415
420
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
416
421
|
let style = styles.get(scopeId2);
|
|
@@ -427,7 +432,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
427
432
|
styles.set(scopeId2, style);
|
|
428
433
|
};
|
|
429
434
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
430
|
-
var _a;
|
|
435
|
+
var _a, _b, _c;
|
|
431
436
|
const scopeId2 = getScopeId(cmpMeta);
|
|
432
437
|
const style = styles.get(scopeId2);
|
|
433
438
|
if (!win.document) {
|
|
@@ -443,58 +448,74 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
443
448
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
444
449
|
}
|
|
445
450
|
if (!appliedStyles.has(scopeId2)) {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
if (
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
} else {
|
|
468
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
469
|
-
}
|
|
451
|
+
styleElm = win.document.createElement("style");
|
|
452
|
+
styleElm.textContent = style;
|
|
453
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
454
|
+
if (nonce != null) {
|
|
455
|
+
styleElm.setAttribute("nonce", nonce);
|
|
456
|
+
}
|
|
457
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
458
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
459
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
460
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
461
|
+
styleContainerNode.insertBefore(
|
|
462
|
+
styleElm,
|
|
463
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
464
|
+
);
|
|
465
|
+
} else if ("host" in styleContainerNode) {
|
|
466
|
+
if (supportsConstructableStylesheets) {
|
|
467
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
468
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
469
|
+
stylesheet.replaceSync(style);
|
|
470
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
471
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
470
472
|
} else {
|
|
471
|
-
|
|
472
|
-
if (existingStyleContainer) {
|
|
473
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
474
|
-
} else {
|
|
475
|
-
styleContainerNode.prepend(styleElm);
|
|
476
|
-
}
|
|
473
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
477
474
|
}
|
|
478
475
|
} else {
|
|
479
|
-
styleContainerNode.
|
|
476
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
477
|
+
if (existingStyleContainer && true) {
|
|
478
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
479
|
+
} else {
|
|
480
|
+
styleContainerNode.prepend(styleElm);
|
|
481
|
+
}
|
|
480
482
|
}
|
|
483
|
+
} else {
|
|
484
|
+
styleContainerNode.append(styleElm);
|
|
481
485
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
486
|
+
}
|
|
487
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
488
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
485
489
|
}
|
|
486
490
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
487
|
-
styleElm.
|
|
491
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
488
492
|
}
|
|
489
493
|
if (appliedStyles) {
|
|
490
494
|
appliedStyles.add(scopeId2);
|
|
491
495
|
}
|
|
492
496
|
}
|
|
493
|
-
} else
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
497
|
+
} else {
|
|
498
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
499
|
+
if (!appliedStyles) {
|
|
500
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
501
|
+
}
|
|
502
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
503
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
504
|
+
let stylesheet;
|
|
505
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
506
|
+
stylesheet = style;
|
|
507
|
+
} else {
|
|
508
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
509
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
510
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
514
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
515
|
+
} else {
|
|
516
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
517
|
+
}
|
|
518
|
+
appliedStyles.add(scopeId2);
|
|
498
519
|
}
|
|
499
520
|
}
|
|
500
521
|
}
|
|
@@ -515,7 +536,16 @@ var attachStyles = (hostRef) => {
|
|
|
515
536
|
endAttachStyles();
|
|
516
537
|
};
|
|
517
538
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
539
|
+
var isComplexType = (o) => {
|
|
540
|
+
o = typeof o;
|
|
541
|
+
return o === "object" || o === "function";
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
// src/runtime/vdom/h.ts
|
|
518
545
|
var h = (nodeName, vnodeData, ...children) => {
|
|
546
|
+
if (typeof nodeName === "string") {
|
|
547
|
+
nodeName = transformTag(nodeName);
|
|
548
|
+
}
|
|
519
549
|
let child = null;
|
|
520
550
|
let key = null;
|
|
521
551
|
let slotName = null;
|
|
@@ -579,7 +609,8 @@ var newVNode = (tag, text) => {
|
|
|
579
609
|
const vnode = {
|
|
580
610
|
$flags$: 0,
|
|
581
611
|
$tag$: tag,
|
|
582
|
-
|
|
612
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
613
|
+
$text$: text != null ? text : null,
|
|
583
614
|
$elm$: null,
|
|
584
615
|
$children$: null
|
|
585
616
|
};
|
|
@@ -626,25 +657,34 @@ var convertToPrivate = (node) => {
|
|
|
626
657
|
vnode.$name$ = node.vname;
|
|
627
658
|
return vnode;
|
|
628
659
|
};
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
)
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
try {
|
|
644
|
-
return JSON.parse(propValue);
|
|
645
|
-
} catch (e) {
|
|
660
|
+
|
|
661
|
+
// src/runtime/normalize-watchers.ts
|
|
662
|
+
var normalizeWatchers = (raw) => {
|
|
663
|
+
if (!raw) return void 0;
|
|
664
|
+
const keys = Object.keys(raw);
|
|
665
|
+
if (keys.length === 0) return void 0;
|
|
666
|
+
let hasLegacy = false;
|
|
667
|
+
for (const propName of keys) {
|
|
668
|
+
if (hasLegacy) break;
|
|
669
|
+
for (const h2 of raw[propName]) {
|
|
670
|
+
if (typeof h2 === "string") {
|
|
671
|
+
hasLegacy = true;
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
646
674
|
}
|
|
647
675
|
}
|
|
676
|
+
if (!hasLegacy) return raw;
|
|
677
|
+
const out = {};
|
|
678
|
+
for (const propName of keys) {
|
|
679
|
+
out[propName] = raw[propName].map(
|
|
680
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
681
|
+
);
|
|
682
|
+
}
|
|
683
|
+
return out;
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
// src/runtime/parse-property-value.ts
|
|
687
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
648
688
|
if (propValue != null && !isComplexType(propValue)) {
|
|
649
689
|
if (propType & 4 /* Boolean */) {
|
|
650
690
|
{
|
|
@@ -707,7 +747,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
707
747
|
}
|
|
708
748
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
709
749
|
if (newValue) {
|
|
710
|
-
newValue
|
|
750
|
+
queueRefAttachment(newValue, elm);
|
|
711
751
|
}
|
|
712
752
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
713
753
|
if (memberName[2] === "-") {
|
|
@@ -727,6 +767,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
727
767
|
plt.ael(elm, memberName, newValue, capture);
|
|
728
768
|
}
|
|
729
769
|
}
|
|
770
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
771
|
+
const propName = memberName.slice(5);
|
|
772
|
+
let attrName;
|
|
773
|
+
{
|
|
774
|
+
const hostRef = getHostRef(elm);
|
|
775
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
776
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
777
|
+
if (memberMeta && memberMeta[1]) {
|
|
778
|
+
attrName = memberMeta[1];
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
if (!attrName) {
|
|
783
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
784
|
+
}
|
|
785
|
+
if (newValue == null || newValue === false) {
|
|
786
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
787
|
+
elm.removeAttribute(attrName);
|
|
788
|
+
}
|
|
789
|
+
} else {
|
|
790
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
791
|
+
}
|
|
792
|
+
return;
|
|
793
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
794
|
+
const propName = memberName.slice(5);
|
|
795
|
+
try {
|
|
796
|
+
elm[propName] = newValue;
|
|
797
|
+
} catch (e) {
|
|
798
|
+
}
|
|
799
|
+
return;
|
|
730
800
|
} else {
|
|
731
801
|
const isComplex = isComplexType(newValue);
|
|
732
802
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -735,7 +805,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
735
805
|
const n = newValue == null ? "" : newValue;
|
|
736
806
|
if (memberName === "list") {
|
|
737
807
|
isProp = false;
|
|
738
|
-
} else if (oldValue == null || elm[memberName]
|
|
808
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
739
809
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
740
810
|
elm[memberName] = n;
|
|
741
811
|
} else {
|
|
@@ -829,6 +899,8 @@ var useNativeShadowDom = false;
|
|
|
829
899
|
var checkSlotFallbackVisibility = false;
|
|
830
900
|
var checkSlotRelocate = false;
|
|
831
901
|
var isSvgMode = false;
|
|
902
|
+
var refCallbacksToRemove = [];
|
|
903
|
+
var refCallbacksToAttach = [];
|
|
832
904
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
833
905
|
var _a;
|
|
834
906
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -851,7 +923,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
851
923
|
);
|
|
852
924
|
}
|
|
853
925
|
}
|
|
854
|
-
if (newVNode2.$text$
|
|
926
|
+
if (newVNode2.$text$ != null) {
|
|
855
927
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
856
928
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
857
929
|
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
@@ -863,9 +935,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
863
935
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
864
936
|
}
|
|
865
937
|
if (!win.document) {
|
|
866
|
-
throw new Error(
|
|
867
|
-
"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."
|
|
868
|
-
);
|
|
938
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
869
939
|
}
|
|
870
940
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
871
941
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -878,10 +948,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
878
948
|
updateElement(null, newVNode2, isSvgMode);
|
|
879
949
|
}
|
|
880
950
|
if (newVNode2.$children$) {
|
|
951
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
881
952
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
882
953
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
883
954
|
if (childNode) {
|
|
884
|
-
|
|
955
|
+
appendTarget.appendChild(childNode);
|
|
885
956
|
}
|
|
886
957
|
}
|
|
887
958
|
}
|
|
@@ -903,17 +974,43 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
903
974
|
patchSlotNode(elm);
|
|
904
975
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
905
976
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
906
|
-
|
|
907
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
908
|
-
}
|
|
977
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
909
978
|
}
|
|
910
979
|
}
|
|
911
980
|
}
|
|
912
981
|
return elm;
|
|
913
982
|
};
|
|
983
|
+
var relocateToHostRoot = (parentElm) => {
|
|
984
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
985
|
+
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
986
|
+
if (host != null) {
|
|
987
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
988
|
+
(ref) => ref["s-cr"]
|
|
989
|
+
);
|
|
990
|
+
const childNodeArray = Array.from(
|
|
991
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
992
|
+
);
|
|
993
|
+
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
994
|
+
if (childNode["s-sh"] != null) {
|
|
995
|
+
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
996
|
+
childNode["s-sh"] = void 0;
|
|
997
|
+
checkSlotRelocate = true;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1002
|
+
};
|
|
914
1003
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
915
1004
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
916
1005
|
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
1006
|
+
if (parentElm["s-sr"]) {
|
|
1007
|
+
let node = parentElm;
|
|
1008
|
+
while (node = node.nextSibling) {
|
|
1009
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
1010
|
+
oldSlotChildNodes.push(node);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
917
1014
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
918
1015
|
const childNode = oldSlotChildNodes[i2];
|
|
919
1016
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
@@ -935,6 +1032,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
935
1032
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
936
1033
|
containerElm = containerElm.shadowRoot;
|
|
937
1034
|
}
|
|
1035
|
+
if (parentVNode.$tag$ === "template") {
|
|
1036
|
+
containerElm = containerElm.content;
|
|
1037
|
+
}
|
|
938
1038
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
939
1039
|
if (vnodes[startIdx]) {
|
|
940
1040
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -978,6 +1078,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
978
1078
|
let newEndVnode = newCh[newEndIdx];
|
|
979
1079
|
let node;
|
|
980
1080
|
let elmToMove;
|
|
1081
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
981
1082
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
982
1083
|
if (oldStartVnode == null) {
|
|
983
1084
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -1000,7 +1101,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1000
1101
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1001
1102
|
}
|
|
1002
1103
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
1003
|
-
insertBefore(
|
|
1104
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
1004
1105
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
1005
1106
|
newEndVnode = newCh[--newEndIdx];
|
|
1006
1107
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
@@ -1008,7 +1109,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1008
1109
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1009
1110
|
}
|
|
1010
1111
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
1011
|
-
insertBefore(
|
|
1112
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
1012
1113
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
1013
1114
|
newStartVnode = newCh[++newStartIdx];
|
|
1014
1115
|
} else {
|
|
@@ -1082,11 +1183,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1082
1183
|
const tag = newVNode2.$tag$;
|
|
1083
1184
|
const text = newVNode2.$text$;
|
|
1084
1185
|
let defaultHolder;
|
|
1085
|
-
if (text
|
|
1186
|
+
if (text == null) {
|
|
1086
1187
|
{
|
|
1087
1188
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1088
1189
|
}
|
|
1089
1190
|
{
|
|
1191
|
+
if (tag === "slot" && !useNativeShadowDom) {
|
|
1192
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
1193
|
+
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
1194
|
+
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1090
1197
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1091
1198
|
}
|
|
1092
1199
|
if (oldChildren !== null && newChildren !== null) {
|
|
@@ -1123,7 +1230,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1123
1230
|
const slotName = childNode["s-sn"];
|
|
1124
1231
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1125
1232
|
node = hostContentNodes[j];
|
|
1126
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (
|
|
1233
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
1127
1234
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1128
1235
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1129
1236
|
checkSlotFallbackVisibility = true;
|
|
@@ -1163,17 +1270,42 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1163
1270
|
};
|
|
1164
1271
|
var nullifyVNodeRefs = (vNode) => {
|
|
1165
1272
|
{
|
|
1166
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
1273
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
1274
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
1275
|
+
}
|
|
1167
1276
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1168
1277
|
}
|
|
1169
1278
|
};
|
|
1170
|
-
var
|
|
1279
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
1171
1280
|
{
|
|
1281
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
var flushQueuedRefCallbacks = () => {
|
|
1285
|
+
{
|
|
1286
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
1287
|
+
refCallbacksToRemove.length = 0;
|
|
1288
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
1289
|
+
refCallbacksToAttach.length = 0;
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1293
|
+
{
|
|
1294
|
+
if (typeof newNode["s-sn"] === "string") {
|
|
1295
|
+
parent.insertBefore(newNode, reference);
|
|
1296
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
1297
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
1298
|
+
return newNode;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
if (parent.__insertBefore) {
|
|
1302
|
+
return parent.__insertBefore(newNode, reference);
|
|
1303
|
+
} else {
|
|
1172
1304
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1173
1305
|
}
|
|
1174
1306
|
};
|
|
1175
1307
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1176
|
-
var _a, _b, _c, _d;
|
|
1308
|
+
var _a, _b, _c, _d, _e;
|
|
1177
1309
|
const hostElm = hostRef.$hostElement$;
|
|
1178
1310
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1179
1311
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -1182,9 +1314,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1182
1314
|
hostTagName = hostElm.tagName;
|
|
1183
1315
|
if (cmpMeta.$attrsToReflect$) {
|
|
1184
1316
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1185
|
-
cmpMeta.$attrsToReflect$.
|
|
1186
|
-
|
|
1187
|
-
|
|
1317
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
1318
|
+
{
|
|
1319
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
1320
|
+
}
|
|
1321
|
+
});
|
|
1188
1322
|
}
|
|
1189
1323
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1190
1324
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -1212,19 +1346,27 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1212
1346
|
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1213
1347
|
const orgLocationNode = win.document.createTextNode("");
|
|
1214
1348
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1215
|
-
insertBefore(
|
|
1349
|
+
insertBefore(
|
|
1350
|
+
nodeToRelocate.parentNode,
|
|
1351
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
1352
|
+
nodeToRelocate,
|
|
1353
|
+
isInitialLoad
|
|
1354
|
+
);
|
|
1216
1355
|
}
|
|
1217
1356
|
}
|
|
1218
1357
|
for (const relocateData of relocateNodes) {
|
|
1219
1358
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1220
1359
|
const slotRefNode = relocateData.$slotRefNode$;
|
|
1360
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
1361
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
1362
|
+
}
|
|
1221
1363
|
if (slotRefNode) {
|
|
1222
1364
|
const parentNodeRef = slotRefNode.parentNode;
|
|
1223
1365
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1224
|
-
{
|
|
1225
|
-
let orgLocationNode = (
|
|
1366
|
+
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1367
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
1226
1368
|
while (orgLocationNode) {
|
|
1227
|
-
let refNode = (
|
|
1369
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
1228
1370
|
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1229
1371
|
refNode = refNode.nextSibling;
|
|
1230
1372
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
@@ -1242,23 +1384,26 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1242
1384
|
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1243
1385
|
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1244
1386
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1245
|
-
|
|
1246
|
-
|
|
1387
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
1388
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
1389
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
1390
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
1391
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
1392
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
1393
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
1394
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
1395
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
1396
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
1397
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
1247
1398
|
}
|
|
1248
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1249
1399
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1250
|
-
nodeToRelocate.hidden = (
|
|
1400
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
1251
1401
|
}
|
|
1252
1402
|
}
|
|
1253
1403
|
}
|
|
1254
1404
|
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1255
|
-
} else {
|
|
1256
|
-
|
|
1257
|
-
if (isInitialLoad) {
|
|
1258
|
-
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1259
|
-
}
|
|
1260
|
-
nodeToRelocate.hidden = true;
|
|
1261
|
-
}
|
|
1405
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1406
|
+
nodeToRelocate.hidden = true;
|
|
1262
1407
|
}
|
|
1263
1408
|
}
|
|
1264
1409
|
}
|
|
@@ -1268,7 +1413,26 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1268
1413
|
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1269
1414
|
relocateNodes.length = 0;
|
|
1270
1415
|
}
|
|
1416
|
+
if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
1417
|
+
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1418
|
+
for (const childNode of children) {
|
|
1419
|
+
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1420
|
+
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1421
|
+
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1422
|
+
}
|
|
1423
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1424
|
+
childNode.hidden = true;
|
|
1425
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
1426
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
1427
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
1428
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
1429
|
+
childNode.parentNode.removeChild(childNode);
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1271
1434
|
contentRef = void 0;
|
|
1435
|
+
flushQueuedRefCallbacks();
|
|
1272
1436
|
};
|
|
1273
1437
|
|
|
1274
1438
|
// src/runtime/update-component.ts
|
|
@@ -1314,10 +1478,19 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1314
1478
|
let maybePromise;
|
|
1315
1479
|
if (isInitialLoad) {
|
|
1316
1480
|
{
|
|
1317
|
-
hostRef.$
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1481
|
+
if (hostRef.$deferredConnectedCallback$) {
|
|
1482
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
1483
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1484
|
+
}
|
|
1485
|
+
{
|
|
1486
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1487
|
+
if (hostRef.$queuedListeners$) {
|
|
1488
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1489
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1493
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1321
1494
|
}
|
|
1322
1495
|
}
|
|
1323
1496
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -1328,8 +1501,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1328
1501
|
endSchedule();
|
|
1329
1502
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1330
1503
|
};
|
|
1331
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
1332
|
-
console.error(
|
|
1504
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
1505
|
+
console.error(err);
|
|
1333
1506
|
fn();
|
|
1334
1507
|
}) : fn();
|
|
1335
1508
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -1357,7 +1530,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1357
1530
|
if (childrenPromises.length === 0) {
|
|
1358
1531
|
postUpdate();
|
|
1359
1532
|
} else {
|
|
1360
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
1533
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
1361
1534
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1362
1535
|
childrenPromises.length = 0;
|
|
1363
1536
|
}
|
|
@@ -1474,25 +1647,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1474
1647
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1475
1648
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1476
1649
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1477
|
-
if (
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1650
|
+
if (cmpMeta.$watchers$) {
|
|
1651
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1652
|
+
if (watchMethods) {
|
|
1653
|
+
watchMethods.map((watcher) => {
|
|
1654
|
+
try {
|
|
1655
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1656
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
1657
|
+
if (!instance) {
|
|
1658
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
1659
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
1660
|
+
});
|
|
1661
|
+
} else {
|
|
1662
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1663
|
+
}
|
|
1486
1664
|
}
|
|
1487
|
-
})
|
|
1488
|
-
|
|
1489
|
-
}
|
|
1490
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1491
|
-
if (instance.componentShouldUpdate) {
|
|
1492
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1493
|
-
return;
|
|
1665
|
+
} catch (e) {
|
|
1666
|
+
consoleError(e, elm);
|
|
1494
1667
|
}
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
if (flags & 2 /* hasRendered */) {
|
|
1672
|
+
if (instance.componentShouldUpdate) {
|
|
1673
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1674
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1675
|
+
return;
|
|
1495
1676
|
}
|
|
1677
|
+
}
|
|
1678
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1496
1679
|
scheduleUpdate(hostRef, false);
|
|
1497
1680
|
}
|
|
1498
1681
|
}
|
|
@@ -1503,14 +1686,22 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1503
1686
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1504
1687
|
var _a, _b;
|
|
1505
1688
|
const prototype = Cstr.prototype;
|
|
1506
|
-
if (cmpMeta.$members$ ||
|
|
1507
|
-
|
|
1508
|
-
cmpMeta.$watchers$
|
|
1689
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1690
|
+
{
|
|
1691
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1692
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1693
|
+
}
|
|
1694
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1695
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1696
|
+
}
|
|
1697
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1698
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1699
|
+
}
|
|
1509
1700
|
}
|
|
1510
1701
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1511
1702
|
members.map(([memberName, [memberFlags]]) => {
|
|
1512
1703
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1513
|
-
const { get: origGetter, set: origSetter } =
|
|
1704
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1514
1705
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1515
1706
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1516
1707
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1540,8 +1731,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1540
1731
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1541
1732
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1542
1733
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1543
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1544
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1545
1734
|
}
|
|
1546
1735
|
origSetter.apply(this, [
|
|
1547
1736
|
parsePropertyValue(
|
|
@@ -1556,7 +1745,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1556
1745
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1557
1746
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1558
1747
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1559
|
-
ref.$
|
|
1748
|
+
ref.$fetchedCbList$.push(() => {
|
|
1560
1749
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1561
1750
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1562
1751
|
}
|
|
@@ -1577,7 +1766,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1577
1766
|
if (ref.$lazyInstance$) {
|
|
1578
1767
|
setterSetVal();
|
|
1579
1768
|
} else {
|
|
1580
|
-
ref.$
|
|
1769
|
+
ref.$fetchedCbList$.push(() => {
|
|
1770
|
+
setterSetVal();
|
|
1771
|
+
});
|
|
1581
1772
|
}
|
|
1582
1773
|
}
|
|
1583
1774
|
}
|
|
@@ -1601,29 +1792,36 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1601
1792
|
plt.jmp(() => {
|
|
1602
1793
|
var _a2;
|
|
1603
1794
|
const propName = attrNameToPropName.get(attrName);
|
|
1795
|
+
const hostRef = getHostRef(this);
|
|
1604
1796
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1605
1797
|
newValue = this[propName];
|
|
1606
1798
|
delete this[propName];
|
|
1607
|
-
}
|
|
1799
|
+
}
|
|
1800
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1608
1801
|
this[propName] == newValue) {
|
|
1609
1802
|
return;
|
|
1610
1803
|
} else if (propName == null) {
|
|
1611
|
-
const hostRef = getHostRef(this);
|
|
1612
1804
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1613
|
-
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
1805
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1614
1806
|
const instance = hostRef.$lazyInstance$ ;
|
|
1615
1807
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1616
|
-
entry == null ? void 0 : entry.forEach((
|
|
1617
|
-
|
|
1618
|
-
|
|
1808
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
1809
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1810
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
1811
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1619
1812
|
}
|
|
1620
1813
|
});
|
|
1621
1814
|
}
|
|
1622
1815
|
return;
|
|
1623
1816
|
}
|
|
1817
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1818
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1819
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1820
|
+
if (isBooleanTarget) {
|
|
1821
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1822
|
+
}
|
|
1624
1823
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1625
|
-
|
|
1626
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1824
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1627
1825
|
this[propName] = newValue;
|
|
1628
1826
|
}
|
|
1629
1827
|
});
|
|
@@ -1650,69 +1848,87 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1650
1848
|
// src/runtime/initialize-component.ts
|
|
1651
1849
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1652
1850
|
let Cstr;
|
|
1653
|
-
|
|
1654
|
-
hostRef.$flags$
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1851
|
+
try {
|
|
1852
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1853
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1854
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1855
|
+
if (bundleId) {
|
|
1856
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1857
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1858
|
+
const endLoad = uniqueTime();
|
|
1859
|
+
Cstr = await CstrImport;
|
|
1860
|
+
endLoad();
|
|
1861
|
+
} else {
|
|
1862
|
+
Cstr = CstrImport;
|
|
1863
|
+
}
|
|
1864
|
+
if (!Cstr) {
|
|
1865
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1866
|
+
}
|
|
1867
|
+
if (!Cstr.isProxied) {
|
|
1868
|
+
{
|
|
1869
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1870
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1871
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1872
|
+
}
|
|
1873
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1874
|
+
Cstr.isProxied = true;
|
|
1875
|
+
}
|
|
1876
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1669
1877
|
{
|
|
1670
|
-
|
|
1878
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1671
1879
|
}
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1880
|
+
try {
|
|
1881
|
+
new Cstr(hostRef);
|
|
1882
|
+
} catch (e) {
|
|
1883
|
+
consoleError(e, elm);
|
|
1884
|
+
}
|
|
1885
|
+
{
|
|
1886
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1887
|
+
}
|
|
1888
|
+
{
|
|
1889
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1890
|
+
}
|
|
1891
|
+
endNewInstance();
|
|
1892
|
+
const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
1893
|
+
if (!needsDeferredCallback) {
|
|
1894
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1895
|
+
} else {
|
|
1896
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
1897
|
+
}
|
|
1898
|
+
} else {
|
|
1899
|
+
Cstr = elm.constructor;
|
|
1900
|
+
const cmpTag = elm.localName;
|
|
1901
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1686
1902
|
}
|
|
1687
|
-
{
|
|
1688
|
-
|
|
1903
|
+
if (Cstr && Cstr.style) {
|
|
1904
|
+
let style;
|
|
1905
|
+
if (typeof Cstr.style === "string") {
|
|
1906
|
+
style = Cstr.style;
|
|
1907
|
+
}
|
|
1908
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1909
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1910
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1911
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1912
|
+
endRegisterStyles();
|
|
1913
|
+
}
|
|
1689
1914
|
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1915
|
+
}
|
|
1916
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1917
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1918
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1919
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1692
1920
|
} else {
|
|
1693
|
-
|
|
1694
|
-
const cmpTag = elm.localName;
|
|
1695
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1921
|
+
schedule();
|
|
1696
1922
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1706
|
-
endRegisterStyles();
|
|
1707
|
-
}
|
|
1923
|
+
} catch (e) {
|
|
1924
|
+
consoleError(e, elm);
|
|
1925
|
+
if (hostRef.$onRenderResolve$) {
|
|
1926
|
+
hostRef.$onRenderResolve$();
|
|
1927
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1928
|
+
}
|
|
1929
|
+
if (hostRef.$onReadyResolve$) {
|
|
1930
|
+
hostRef.$onReadyResolve$(elm);
|
|
1708
1931
|
}
|
|
1709
|
-
}
|
|
1710
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1711
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1712
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1713
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1714
|
-
} else {
|
|
1715
|
-
schedule();
|
|
1716
1932
|
}
|
|
1717
1933
|
};
|
|
1718
1934
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -1749,7 +1965,7 @@ var connectedCallback = (elm) => {
|
|
|
1749
1965
|
}
|
|
1750
1966
|
if (cmpMeta.$members$) {
|
|
1751
1967
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1752
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1968
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1753
1969
|
const value = elm[memberName];
|
|
1754
1970
|
delete elm[memberName];
|
|
1755
1971
|
elm[memberName] = value;
|
|
@@ -1830,7 +2046,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1830
2046
|
let hasSlotRelocation = false;
|
|
1831
2047
|
lazyBundles.map((lazyBundle) => {
|
|
1832
2048
|
lazyBundle[1].map((compactMeta) => {
|
|
1833
|
-
var _a2;
|
|
2049
|
+
var _a2, _b;
|
|
1834
2050
|
const cmpMeta = {
|
|
1835
2051
|
$flags$: compactMeta[0],
|
|
1836
2052
|
$tagName$: compactMeta[1],
|
|
@@ -1850,14 +2066,18 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1850
2066
|
cmpMeta.$attrsToReflect$ = [];
|
|
1851
2067
|
}
|
|
1852
2068
|
{
|
|
1853
|
-
cmpMeta.$watchers$ = (
|
|
2069
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
2070
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
2071
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
1854
2072
|
}
|
|
1855
|
-
const tagName = cmpMeta.$tagName
|
|
2073
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1856
2074
|
const HostElement = class extends HTMLElement {
|
|
2075
|
+
["s-p"];
|
|
2076
|
+
["s-rc"];
|
|
2077
|
+
hasRegisteredEventListeners = false;
|
|
1857
2078
|
// StencilLazyHost
|
|
1858
2079
|
constructor(self) {
|
|
1859
2080
|
super(self);
|
|
1860
|
-
this.hasRegisteredEventListeners = false;
|
|
1861
2081
|
self = this;
|
|
1862
2082
|
registerHost(self, cmpMeta);
|
|
1863
2083
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
@@ -1989,12 +2209,14 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1989
2209
|
|
|
1990
2210
|
// src/runtime/nonce.ts
|
|
1991
2211
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2212
|
+
function transformTag(tag) {
|
|
2213
|
+
return tag;
|
|
2214
|
+
}
|
|
1992
2215
|
|
|
1993
2216
|
exports.Host = Host;
|
|
1994
2217
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1995
2218
|
exports.forceUpdate = forceUpdate;
|
|
1996
2219
|
exports.getElement = getElement;
|
|
1997
|
-
exports.globalFn = globalFn;
|
|
1998
2220
|
exports.h = h;
|
|
1999
2221
|
exports.promiseResolve = promiseResolve;
|
|
2000
2222
|
exports.registerInstance = registerInstance;
|