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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
const NAMESPACE = 'shift-components';
|
|
6
|
-
const BUILD = /* shift-components */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
6
|
+
const BUILD = /* shift-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
|
|
7
7
|
|
|
8
8
|
(async function () {
|
|
9
9
|
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';
|
|
@@ -48,21 +48,57 @@ const BUILD = /* shift-components */ { hydratedSelectorName: "hydrated", lazyLoa
|
|
|
48
48
|
console.log('Global blazorInvoke initialized.');
|
|
49
49
|
}
|
|
50
50
|
})();
|
|
51
|
-
const globalFn = () => { };
|
|
52
51
|
|
|
53
52
|
/*
|
|
54
|
-
Stencil Client Platform v4.
|
|
53
|
+
Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
|
|
55
54
|
*/
|
|
56
|
-
|
|
57
|
-
var __export = (target, all) => {
|
|
58
|
-
for (var name in all)
|
|
59
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
60
|
-
};
|
|
55
|
+
|
|
61
56
|
|
|
62
57
|
// src/utils/constants.ts
|
|
63
58
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
64
59
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
65
60
|
|
|
61
|
+
// src/utils/get-prop-descriptor.ts
|
|
62
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
63
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
64
|
+
while (obj && obj !== stopAt) {
|
|
65
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
66
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
67
|
+
obj = Object.getPrototypeOf(obj);
|
|
68
|
+
}
|
|
69
|
+
return void 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
73
|
+
var reWireGetterSetter = (instance, hostRef) => {
|
|
74
|
+
var _a;
|
|
75
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
76
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
77
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
78
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
79
|
+
const ogValue = instance[memberName];
|
|
80
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
81
|
+
if (ogDescriptor) {
|
|
82
|
+
Object.defineProperty(instance, memberName, {
|
|
83
|
+
get() {
|
|
84
|
+
return ogDescriptor.get.call(this);
|
|
85
|
+
},
|
|
86
|
+
set(newValue) {
|
|
87
|
+
ogDescriptor.set.call(this, newValue);
|
|
88
|
+
},
|
|
89
|
+
configurable: true,
|
|
90
|
+
enumerable: true
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
94
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
95
|
+
} else if (ogValue !== void 0) {
|
|
96
|
+
instance[memberName] = ogValue;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
66
102
|
// src/client/client-host-ref.ts
|
|
67
103
|
var getHostRef = (ref) => {
|
|
68
104
|
if (ref.__stencil__getHostRef) {
|
|
@@ -71,15 +107,20 @@ var getHostRef = (ref) => {
|
|
|
71
107
|
return void 0;
|
|
72
108
|
};
|
|
73
109
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
110
|
+
if (!hostRef) return;
|
|
74
111
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
75
112
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
113
|
+
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
114
|
+
reWireGetterSetter(lazyInstance, hostRef);
|
|
115
|
+
}
|
|
76
116
|
};
|
|
77
117
|
var registerHost = (hostElement, cmpMeta) => {
|
|
78
118
|
const hostRef = {
|
|
79
119
|
$flags$: 0,
|
|
80
120
|
$hostElement$: hostElement,
|
|
81
121
|
$cmpMeta$: cmpMeta,
|
|
82
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
122
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
123
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
83
124
|
};
|
|
84
125
|
{
|
|
85
126
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
@@ -89,6 +130,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
89
130
|
hostElement["s-p"] = [];
|
|
90
131
|
hostElement["s-rc"] = [];
|
|
91
132
|
}
|
|
133
|
+
{
|
|
134
|
+
hostRef.$fetchedCbList$ = [];
|
|
135
|
+
}
|
|
92
136
|
const ref = hostRef;
|
|
93
137
|
hostElement.__stencil__getHostRef = () => ref;
|
|
94
138
|
return ref;
|
|
@@ -163,6 +207,9 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
|
163
207
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
164
208
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
165
209
|
try {
|
|
210
|
+
if (!win.document.adoptedStyleSheets) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
166
213
|
new CSSStyleSheet();
|
|
167
214
|
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
168
215
|
} catch (e) {
|
|
@@ -205,70 +252,6 @@ var flush = () => {
|
|
|
205
252
|
};
|
|
206
253
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
207
254
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
208
|
-
var isComplexType = (o) => {
|
|
209
|
-
o = typeof o;
|
|
210
|
-
return o === "object" || o === "function";
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
214
|
-
function queryNonceMetaTagContent(doc) {
|
|
215
|
-
var _a, _b, _c;
|
|
216
|
-
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;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// src/utils/regular-expression.ts
|
|
220
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
221
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
// src/utils/result.ts
|
|
225
|
-
var result_exports = {};
|
|
226
|
-
__export(result_exports, {
|
|
227
|
-
err: () => err,
|
|
228
|
-
map: () => map,
|
|
229
|
-
ok: () => ok,
|
|
230
|
-
unwrap: () => unwrap,
|
|
231
|
-
unwrapErr: () => unwrapErr
|
|
232
|
-
});
|
|
233
|
-
var ok = (value) => ({
|
|
234
|
-
isOk: true,
|
|
235
|
-
isErr: false,
|
|
236
|
-
value
|
|
237
|
-
});
|
|
238
|
-
var err = (value) => ({
|
|
239
|
-
isOk: false,
|
|
240
|
-
isErr: true,
|
|
241
|
-
value
|
|
242
|
-
});
|
|
243
|
-
function map(result, fn) {
|
|
244
|
-
if (result.isOk) {
|
|
245
|
-
const val = fn(result.value);
|
|
246
|
-
if (val instanceof Promise) {
|
|
247
|
-
return val.then((newVal) => ok(newVal));
|
|
248
|
-
} else {
|
|
249
|
-
return ok(val);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
if (result.isErr) {
|
|
253
|
-
const value = result.value;
|
|
254
|
-
return err(value);
|
|
255
|
-
}
|
|
256
|
-
throw "should never get here";
|
|
257
|
-
}
|
|
258
|
-
var unwrap = (result) => {
|
|
259
|
-
if (result.isOk) {
|
|
260
|
-
return result.value;
|
|
261
|
-
} else {
|
|
262
|
-
throw result.value;
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
var unwrapErr = (result) => {
|
|
266
|
-
if (result.isErr) {
|
|
267
|
-
return result.value;
|
|
268
|
-
} else {
|
|
269
|
-
throw result.value;
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
255
|
|
|
273
256
|
// src/utils/style.ts
|
|
274
257
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -279,7 +262,8 @@ function createStyleSheetIfNeededAndSupported(styles2) {
|
|
|
279
262
|
var globalStyleSheet;
|
|
280
263
|
function createShadowRoot(cmpMeta) {
|
|
281
264
|
var _a;
|
|
282
|
-
const
|
|
265
|
+
const opts = { mode: "open" };
|
|
266
|
+
const shadowRoot = this.attachShadow(opts);
|
|
283
267
|
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
284
268
|
if (globalStyleSheet) {
|
|
285
269
|
if (supportsMutableAdoptedStyleSheets) {
|
|
@@ -326,8 +310,9 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
326
310
|
let childNode;
|
|
327
311
|
for (; i2 < childNodes.length; i2++) {
|
|
328
312
|
childNode = childNodes[i2];
|
|
329
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
313
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
330
314
|
slottedNodes.push(childNode);
|
|
315
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
331
316
|
}
|
|
332
317
|
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
333
318
|
}
|
|
@@ -385,6 +370,18 @@ function patchSlotNode(node) {
|
|
|
385
370
|
node.assignedElements = assignedFactory(true);
|
|
386
371
|
node.assignedNodes = assignedFactory(false);
|
|
387
372
|
}
|
|
373
|
+
function dispatchSlotChangeEvent(elm) {
|
|
374
|
+
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
375
|
+
}
|
|
376
|
+
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
377
|
+
var _a;
|
|
378
|
+
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
379
|
+
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
380
|
+
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
381
|
+
const childNodes = internalCall(parentHost, "childNodes");
|
|
382
|
+
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
383
|
+
return { slotNode, slotName };
|
|
384
|
+
}
|
|
388
385
|
function internalCall(node, method) {
|
|
389
386
|
if ("__" + method in node) {
|
|
390
387
|
const toReturn = node["__" + method];
|
|
@@ -409,6 +406,14 @@ var uniqueTime = (key, measureText) => {
|
|
|
409
406
|
};
|
|
410
407
|
}
|
|
411
408
|
};
|
|
409
|
+
|
|
410
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
411
|
+
function queryNonceMetaTagContent(doc) {
|
|
412
|
+
var _a, _b, _c;
|
|
413
|
+
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;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// src/runtime/styles.ts
|
|
412
417
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
413
418
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
414
419
|
let style = styles.get(scopeId2);
|
|
@@ -425,7 +430,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
425
430
|
styles.set(scopeId2, style);
|
|
426
431
|
};
|
|
427
432
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
428
|
-
var _a;
|
|
433
|
+
var _a, _b, _c;
|
|
429
434
|
const scopeId2 = getScopeId(cmpMeta);
|
|
430
435
|
const style = styles.get(scopeId2);
|
|
431
436
|
if (!win.document) {
|
|
@@ -441,58 +446,74 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
441
446
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
442
447
|
}
|
|
443
448
|
if (!appliedStyles.has(scopeId2)) {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
if (
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
} else {
|
|
466
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
467
|
-
}
|
|
449
|
+
styleElm = win.document.createElement("style");
|
|
450
|
+
styleElm.textContent = style;
|
|
451
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
452
|
+
if (nonce != null) {
|
|
453
|
+
styleElm.setAttribute("nonce", nonce);
|
|
454
|
+
}
|
|
455
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
456
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
457
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
458
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
459
|
+
styleContainerNode.insertBefore(
|
|
460
|
+
styleElm,
|
|
461
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
462
|
+
);
|
|
463
|
+
} else if ("host" in styleContainerNode) {
|
|
464
|
+
if (supportsConstructableStylesheets) {
|
|
465
|
+
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
466
|
+
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
467
|
+
stylesheet.replaceSync(style);
|
|
468
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
469
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
468
470
|
} else {
|
|
469
|
-
|
|
470
|
-
if (existingStyleContainer) {
|
|
471
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
472
|
-
} else {
|
|
473
|
-
styleContainerNode.prepend(styleElm);
|
|
474
|
-
}
|
|
471
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
475
472
|
}
|
|
476
473
|
} else {
|
|
477
|
-
styleContainerNode.
|
|
474
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
475
|
+
if (existingStyleContainer && true) {
|
|
476
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
477
|
+
} else {
|
|
478
|
+
styleContainerNode.prepend(styleElm);
|
|
479
|
+
}
|
|
478
480
|
}
|
|
481
|
+
} else {
|
|
482
|
+
styleContainerNode.append(styleElm);
|
|
479
483
|
}
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
484
|
+
}
|
|
485
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
486
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
483
487
|
}
|
|
484
488
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
485
|
-
styleElm.
|
|
489
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
486
490
|
}
|
|
487
491
|
if (appliedStyles) {
|
|
488
492
|
appliedStyles.add(scopeId2);
|
|
489
493
|
}
|
|
490
494
|
}
|
|
491
|
-
} else
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
495
|
+
} else {
|
|
496
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
497
|
+
if (!appliedStyles) {
|
|
498
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
499
|
+
}
|
|
500
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
501
|
+
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
502
|
+
let stylesheet;
|
|
503
|
+
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
504
|
+
stylesheet = style;
|
|
505
|
+
} else {
|
|
506
|
+
stylesheet = new currentWindow.CSSStyleSheet();
|
|
507
|
+
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
508
|
+
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
512
|
+
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
513
|
+
} else {
|
|
514
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
515
|
+
}
|
|
516
|
+
appliedStyles.add(scopeId2);
|
|
496
517
|
}
|
|
497
518
|
}
|
|
498
519
|
}
|
|
@@ -513,7 +534,16 @@ var attachStyles = (hostRef) => {
|
|
|
513
534
|
endAttachStyles();
|
|
514
535
|
};
|
|
515
536
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
537
|
+
var isComplexType = (o) => {
|
|
538
|
+
o = typeof o;
|
|
539
|
+
return o === "object" || o === "function";
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
// src/runtime/vdom/h.ts
|
|
516
543
|
var h = (nodeName, vnodeData, ...children) => {
|
|
544
|
+
if (typeof nodeName === "string") {
|
|
545
|
+
nodeName = transformTag(nodeName);
|
|
546
|
+
}
|
|
517
547
|
let child = null;
|
|
518
548
|
let key = null;
|
|
519
549
|
let slotName = null;
|
|
@@ -577,7 +607,8 @@ var newVNode = (tag, text) => {
|
|
|
577
607
|
const vnode = {
|
|
578
608
|
$flags$: 0,
|
|
579
609
|
$tag$: tag,
|
|
580
|
-
|
|
610
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
611
|
+
$text$: text != null ? text : null,
|
|
581
612
|
$elm$: null,
|
|
582
613
|
$children$: null
|
|
583
614
|
};
|
|
@@ -624,25 +655,34 @@ var convertToPrivate = (node) => {
|
|
|
624
655
|
vnode.$name$ = node.vname;
|
|
625
656
|
return vnode;
|
|
626
657
|
};
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
)
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
try {
|
|
642
|
-
return JSON.parse(propValue);
|
|
643
|
-
} catch (e) {
|
|
658
|
+
|
|
659
|
+
// src/runtime/normalize-watchers.ts
|
|
660
|
+
var normalizeWatchers = (raw) => {
|
|
661
|
+
if (!raw) return void 0;
|
|
662
|
+
const keys = Object.keys(raw);
|
|
663
|
+
if (keys.length === 0) return void 0;
|
|
664
|
+
let hasLegacy = false;
|
|
665
|
+
for (const propName of keys) {
|
|
666
|
+
if (hasLegacy) break;
|
|
667
|
+
for (const h2 of raw[propName]) {
|
|
668
|
+
if (typeof h2 === "string") {
|
|
669
|
+
hasLegacy = true;
|
|
670
|
+
break;
|
|
671
|
+
}
|
|
644
672
|
}
|
|
645
673
|
}
|
|
674
|
+
if (!hasLegacy) return raw;
|
|
675
|
+
const out = {};
|
|
676
|
+
for (const propName of keys) {
|
|
677
|
+
out[propName] = raw[propName].map(
|
|
678
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
return out;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
// src/runtime/parse-property-value.ts
|
|
685
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
646
686
|
if (propValue != null && !isComplexType(propValue)) {
|
|
647
687
|
if (propType & 4 /* Boolean */) {
|
|
648
688
|
{
|
|
@@ -705,7 +745,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
705
745
|
}
|
|
706
746
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
707
747
|
if (newValue) {
|
|
708
|
-
newValue
|
|
748
|
+
queueRefAttachment(newValue, elm);
|
|
709
749
|
}
|
|
710
750
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
711
751
|
if (memberName[2] === "-") {
|
|
@@ -725,6 +765,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
725
765
|
plt.ael(elm, memberName, newValue, capture);
|
|
726
766
|
}
|
|
727
767
|
}
|
|
768
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
769
|
+
const propName = memberName.slice(5);
|
|
770
|
+
let attrName;
|
|
771
|
+
{
|
|
772
|
+
const hostRef = getHostRef(elm);
|
|
773
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
774
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
775
|
+
if (memberMeta && memberMeta[1]) {
|
|
776
|
+
attrName = memberMeta[1];
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
if (!attrName) {
|
|
781
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
782
|
+
}
|
|
783
|
+
if (newValue == null || newValue === false) {
|
|
784
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
785
|
+
elm.removeAttribute(attrName);
|
|
786
|
+
}
|
|
787
|
+
} else {
|
|
788
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
789
|
+
}
|
|
790
|
+
return;
|
|
791
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
792
|
+
const propName = memberName.slice(5);
|
|
793
|
+
try {
|
|
794
|
+
elm[propName] = newValue;
|
|
795
|
+
} catch (e) {
|
|
796
|
+
}
|
|
797
|
+
return;
|
|
728
798
|
} else {
|
|
729
799
|
const isComplex = isComplexType(newValue);
|
|
730
800
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -733,7 +803,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
733
803
|
const n = newValue == null ? "" : newValue;
|
|
734
804
|
if (memberName === "list") {
|
|
735
805
|
isProp = false;
|
|
736
|
-
} else if (oldValue == null || elm[memberName]
|
|
806
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
737
807
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
738
808
|
elm[memberName] = n;
|
|
739
809
|
} else {
|
|
@@ -827,6 +897,8 @@ var useNativeShadowDom = false;
|
|
|
827
897
|
var checkSlotFallbackVisibility = false;
|
|
828
898
|
var checkSlotRelocate = false;
|
|
829
899
|
var isSvgMode = false;
|
|
900
|
+
var refCallbacksToRemove = [];
|
|
901
|
+
var refCallbacksToAttach = [];
|
|
830
902
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
831
903
|
var _a;
|
|
832
904
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -849,7 +921,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
849
921
|
);
|
|
850
922
|
}
|
|
851
923
|
}
|
|
852
|
-
if (newVNode2.$text$
|
|
924
|
+
if (newVNode2.$text$ != null) {
|
|
853
925
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
854
926
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
855
927
|
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
@@ -861,9 +933,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
861
933
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
862
934
|
}
|
|
863
935
|
if (!win.document) {
|
|
864
|
-
throw new Error(
|
|
865
|
-
"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."
|
|
866
|
-
);
|
|
936
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
867
937
|
}
|
|
868
938
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
869
939
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -876,10 +946,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
876
946
|
updateElement(null, newVNode2, isSvgMode);
|
|
877
947
|
}
|
|
878
948
|
if (newVNode2.$children$) {
|
|
949
|
+
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
879
950
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
880
951
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
881
952
|
if (childNode) {
|
|
882
|
-
|
|
953
|
+
appendTarget.appendChild(childNode);
|
|
883
954
|
}
|
|
884
955
|
}
|
|
885
956
|
}
|
|
@@ -901,17 +972,43 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
901
972
|
patchSlotNode(elm);
|
|
902
973
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
903
974
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
904
|
-
|
|
905
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
906
|
-
}
|
|
975
|
+
relocateToHostRoot(oldParentVNode.$elm$);
|
|
907
976
|
}
|
|
908
977
|
}
|
|
909
978
|
}
|
|
910
979
|
return elm;
|
|
911
980
|
};
|
|
981
|
+
var relocateToHostRoot = (parentElm) => {
|
|
982
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
983
|
+
const host = parentElm.closest(hostTagName.toLowerCase());
|
|
984
|
+
if (host != null) {
|
|
985
|
+
const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
|
|
986
|
+
(ref) => ref["s-cr"]
|
|
987
|
+
);
|
|
988
|
+
const childNodeArray = Array.from(
|
|
989
|
+
parentElm.__childNodes || parentElm.childNodes
|
|
990
|
+
);
|
|
991
|
+
for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
|
|
992
|
+
if (childNode["s-sh"] != null) {
|
|
993
|
+
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
994
|
+
childNode["s-sh"] = void 0;
|
|
995
|
+
checkSlotRelocate = true;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1000
|
+
};
|
|
912
1001
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
913
1002
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
914
1003
|
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
1004
|
+
if (parentElm["s-sr"]) {
|
|
1005
|
+
let node = parentElm;
|
|
1006
|
+
while (node = node.nextSibling) {
|
|
1007
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
1008
|
+
oldSlotChildNodes.push(node);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
915
1012
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
916
1013
|
const childNode = oldSlotChildNodes[i2];
|
|
917
1014
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
@@ -933,6 +1030,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
933
1030
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
934
1031
|
containerElm = containerElm.shadowRoot;
|
|
935
1032
|
}
|
|
1033
|
+
if (parentVNode.$tag$ === "template") {
|
|
1034
|
+
containerElm = containerElm.content;
|
|
1035
|
+
}
|
|
936
1036
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
937
1037
|
if (vnodes[startIdx]) {
|
|
938
1038
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -976,6 +1076,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
976
1076
|
let newEndVnode = newCh[newEndIdx];
|
|
977
1077
|
let node;
|
|
978
1078
|
let elmToMove;
|
|
1079
|
+
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
979
1080
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
980
1081
|
if (oldStartVnode == null) {
|
|
981
1082
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -998,7 +1099,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
998
1099
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
999
1100
|
}
|
|
1000
1101
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
1001
|
-
insertBefore(
|
|
1102
|
+
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
1002
1103
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
1003
1104
|
newEndVnode = newCh[--newEndIdx];
|
|
1004
1105
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
@@ -1006,7 +1107,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1006
1107
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1007
1108
|
}
|
|
1008
1109
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
1009
|
-
insertBefore(
|
|
1110
|
+
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
1010
1111
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
1011
1112
|
newStartVnode = newCh[++newStartIdx];
|
|
1012
1113
|
} else {
|
|
@@ -1080,11 +1181,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1080
1181
|
const tag = newVNode2.$tag$;
|
|
1081
1182
|
const text = newVNode2.$text$;
|
|
1082
1183
|
let defaultHolder;
|
|
1083
|
-
if (text
|
|
1184
|
+
if (text == null) {
|
|
1084
1185
|
{
|
|
1085
1186
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1086
1187
|
}
|
|
1087
1188
|
{
|
|
1189
|
+
if (tag === "slot" && !useNativeShadowDom) {
|
|
1190
|
+
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
1191
|
+
newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
|
|
1192
|
+
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1088
1195
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1089
1196
|
}
|
|
1090
1197
|
if (oldChildren !== null && newChildren !== null) {
|
|
@@ -1121,7 +1228,7 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1121
1228
|
const slotName = childNode["s-sn"];
|
|
1122
1229
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1123
1230
|
node = hostContentNodes[j];
|
|
1124
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (
|
|
1231
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
|
|
1125
1232
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1126
1233
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1127
1234
|
checkSlotFallbackVisibility = true;
|
|
@@ -1161,17 +1268,42 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1161
1268
|
};
|
|
1162
1269
|
var nullifyVNodeRefs = (vNode) => {
|
|
1163
1270
|
{
|
|
1164
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
1271
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
1272
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
1273
|
+
}
|
|
1165
1274
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1166
1275
|
}
|
|
1167
1276
|
};
|
|
1168
|
-
var
|
|
1277
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
1169
1278
|
{
|
|
1279
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
var flushQueuedRefCallbacks = () => {
|
|
1283
|
+
{
|
|
1284
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
1285
|
+
refCallbacksToRemove.length = 0;
|
|
1286
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
1287
|
+
refCallbacksToAttach.length = 0;
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1291
|
+
{
|
|
1292
|
+
if (typeof newNode["s-sn"] === "string") {
|
|
1293
|
+
parent.insertBefore(newNode, reference);
|
|
1294
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
1295
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
1296
|
+
return newNode;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
if (parent.__insertBefore) {
|
|
1300
|
+
return parent.__insertBefore(newNode, reference);
|
|
1301
|
+
} else {
|
|
1170
1302
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1171
1303
|
}
|
|
1172
1304
|
};
|
|
1173
1305
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1174
|
-
var _a, _b, _c, _d;
|
|
1306
|
+
var _a, _b, _c, _d, _e;
|
|
1175
1307
|
const hostElm = hostRef.$hostElement$;
|
|
1176
1308
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1177
1309
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -1180,9 +1312,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1180
1312
|
hostTagName = hostElm.tagName;
|
|
1181
1313
|
if (cmpMeta.$attrsToReflect$) {
|
|
1182
1314
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1183
|
-
cmpMeta.$attrsToReflect$.
|
|
1184
|
-
|
|
1185
|
-
|
|
1315
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
1316
|
+
{
|
|
1317
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1186
1320
|
}
|
|
1187
1321
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1188
1322
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -1210,19 +1344,27 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1210
1344
|
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1211
1345
|
const orgLocationNode = win.document.createTextNode("");
|
|
1212
1346
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1213
|
-
insertBefore(
|
|
1347
|
+
insertBefore(
|
|
1348
|
+
nodeToRelocate.parentNode,
|
|
1349
|
+
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
1350
|
+
nodeToRelocate,
|
|
1351
|
+
isInitialLoad
|
|
1352
|
+
);
|
|
1214
1353
|
}
|
|
1215
1354
|
}
|
|
1216
1355
|
for (const relocateData of relocateNodes) {
|
|
1217
1356
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1218
1357
|
const slotRefNode = relocateData.$slotRefNode$;
|
|
1358
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
1359
|
+
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
1360
|
+
}
|
|
1219
1361
|
if (slotRefNode) {
|
|
1220
1362
|
const parentNodeRef = slotRefNode.parentNode;
|
|
1221
1363
|
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1222
|
-
{
|
|
1223
|
-
let orgLocationNode = (
|
|
1364
|
+
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1365
|
+
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
1224
1366
|
while (orgLocationNode) {
|
|
1225
|
-
let refNode = (
|
|
1367
|
+
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
1226
1368
|
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1227
1369
|
refNode = refNode.nextSibling;
|
|
1228
1370
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
@@ -1240,23 +1382,26 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1240
1382
|
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1241
1383
|
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1242
1384
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1243
|
-
|
|
1244
|
-
|
|
1385
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
1386
|
+
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
1387
|
+
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
1388
|
+
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
1389
|
+
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
1390
|
+
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
1391
|
+
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
1392
|
+
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
1393
|
+
textNode["s-ol"]["s-nr"] = textNode;
|
|
1394
|
+
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
1395
|
+
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
1245
1396
|
}
|
|
1246
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1247
1397
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1248
|
-
nodeToRelocate.hidden = (
|
|
1398
|
+
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
1249
1399
|
}
|
|
1250
1400
|
}
|
|
1251
1401
|
}
|
|
1252
1402
|
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1253
|
-
} else {
|
|
1254
|
-
|
|
1255
|
-
if (isInitialLoad) {
|
|
1256
|
-
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1257
|
-
}
|
|
1258
|
-
nodeToRelocate.hidden = true;
|
|
1259
|
-
}
|
|
1403
|
+
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1404
|
+
nodeToRelocate.hidden = true;
|
|
1260
1405
|
}
|
|
1261
1406
|
}
|
|
1262
1407
|
}
|
|
@@ -1266,7 +1411,26 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1266
1411
|
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1267
1412
|
relocateNodes.length = 0;
|
|
1268
1413
|
}
|
|
1414
|
+
if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
1415
|
+
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1416
|
+
for (const childNode of children) {
|
|
1417
|
+
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1418
|
+
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1419
|
+
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1420
|
+
}
|
|
1421
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1422
|
+
childNode.hidden = true;
|
|
1423
|
+
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
1424
|
+
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
1425
|
+
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
1426
|
+
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
1427
|
+
childNode.parentNode.removeChild(childNode);
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1269
1432
|
contentRef = void 0;
|
|
1433
|
+
flushQueuedRefCallbacks();
|
|
1270
1434
|
};
|
|
1271
1435
|
|
|
1272
1436
|
// src/runtime/update-component.ts
|
|
@@ -1312,10 +1476,19 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1312
1476
|
let maybePromise;
|
|
1313
1477
|
if (isInitialLoad) {
|
|
1314
1478
|
{
|
|
1315
|
-
hostRef.$
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1479
|
+
if (hostRef.$deferredConnectedCallback$) {
|
|
1480
|
+
hostRef.$deferredConnectedCallback$ = false;
|
|
1481
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1482
|
+
}
|
|
1483
|
+
{
|
|
1484
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1485
|
+
if (hostRef.$queuedListeners$) {
|
|
1486
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1487
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1491
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1319
1492
|
}
|
|
1320
1493
|
}
|
|
1321
1494
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -1326,8 +1499,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1326
1499
|
endSchedule();
|
|
1327
1500
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1328
1501
|
};
|
|
1329
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
1330
|
-
console.error(
|
|
1502
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
1503
|
+
console.error(err);
|
|
1331
1504
|
fn();
|
|
1332
1505
|
}) : fn();
|
|
1333
1506
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -1355,7 +1528,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1355
1528
|
if (childrenPromises.length === 0) {
|
|
1356
1529
|
postUpdate();
|
|
1357
1530
|
} else {
|
|
1358
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
1531
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
1359
1532
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1360
1533
|
childrenPromises.length = 0;
|
|
1361
1534
|
}
|
|
@@ -1472,25 +1645,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1472
1645
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1473
1646
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1474
1647
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1475
|
-
if (
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1648
|
+
if (cmpMeta.$watchers$) {
|
|
1649
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1650
|
+
if (watchMethods) {
|
|
1651
|
+
watchMethods.map((watcher) => {
|
|
1652
|
+
try {
|
|
1653
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1654
|
+
if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
|
|
1655
|
+
if (!instance) {
|
|
1656
|
+
hostRef.$fetchedCbList$.push(() => {
|
|
1657
|
+
hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
|
|
1658
|
+
});
|
|
1659
|
+
} else {
|
|
1660
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1661
|
+
}
|
|
1484
1662
|
}
|
|
1485
|
-
})
|
|
1486
|
-
|
|
1487
|
-
}
|
|
1488
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1489
|
-
if (instance.componentShouldUpdate) {
|
|
1490
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1491
|
-
return;
|
|
1663
|
+
} catch (e) {
|
|
1664
|
+
consoleError(e, elm);
|
|
1492
1665
|
}
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
if (flags & 2 /* hasRendered */) {
|
|
1670
|
+
if (instance.componentShouldUpdate) {
|
|
1671
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
1672
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
1673
|
+
return;
|
|
1493
1674
|
}
|
|
1675
|
+
}
|
|
1676
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
1494
1677
|
scheduleUpdate(hostRef, false);
|
|
1495
1678
|
}
|
|
1496
1679
|
}
|
|
@@ -1501,14 +1684,22 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1501
1684
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1502
1685
|
var _a, _b;
|
|
1503
1686
|
const prototype = Cstr.prototype;
|
|
1504
|
-
if (cmpMeta.$members$ ||
|
|
1505
|
-
|
|
1506
|
-
cmpMeta.$watchers$
|
|
1687
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1688
|
+
{
|
|
1689
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1690
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1691
|
+
}
|
|
1692
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1693
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1694
|
+
}
|
|
1695
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1696
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1697
|
+
}
|
|
1507
1698
|
}
|
|
1508
1699
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1509
1700
|
members.map(([memberName, [memberFlags]]) => {
|
|
1510
1701
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1511
|
-
const { get: origGetter, set: origSetter } =
|
|
1702
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
1512
1703
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1513
1704
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1514
1705
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1538,8 +1729,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1538
1729
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1539
1730
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1540
1731
|
newValue = ref.$instanceValues$.get(memberName);
|
|
1541
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1542
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1543
1732
|
}
|
|
1544
1733
|
origSetter.apply(this, [
|
|
1545
1734
|
parsePropertyValue(
|
|
@@ -1554,7 +1743,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1554
1743
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1555
1744
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1556
1745
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1557
|
-
ref.$
|
|
1746
|
+
ref.$fetchedCbList$.push(() => {
|
|
1558
1747
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1559
1748
|
ref.$lazyInstance$[memberName] = newValue;
|
|
1560
1749
|
}
|
|
@@ -1575,7 +1764,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1575
1764
|
if (ref.$lazyInstance$) {
|
|
1576
1765
|
setterSetVal();
|
|
1577
1766
|
} else {
|
|
1578
|
-
ref.$
|
|
1767
|
+
ref.$fetchedCbList$.push(() => {
|
|
1768
|
+
setterSetVal();
|
|
1769
|
+
});
|
|
1579
1770
|
}
|
|
1580
1771
|
}
|
|
1581
1772
|
}
|
|
@@ -1599,29 +1790,36 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1599
1790
|
plt.jmp(() => {
|
|
1600
1791
|
var _a2;
|
|
1601
1792
|
const propName = attrNameToPropName.get(attrName);
|
|
1793
|
+
const hostRef = getHostRef(this);
|
|
1602
1794
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1603
1795
|
newValue = this[propName];
|
|
1604
1796
|
delete this[propName];
|
|
1605
|
-
}
|
|
1797
|
+
}
|
|
1798
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1606
1799
|
this[propName] == newValue) {
|
|
1607
1800
|
return;
|
|
1608
1801
|
} else if (propName == null) {
|
|
1609
|
-
const hostRef = getHostRef(this);
|
|
1610
1802
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1611
|
-
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) &&
|
|
1803
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1612
1804
|
const instance = hostRef.$lazyInstance$ ;
|
|
1613
1805
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1614
|
-
entry == null ? void 0 : entry.forEach((
|
|
1615
|
-
|
|
1616
|
-
|
|
1806
|
+
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
1807
|
+
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1808
|
+
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
1809
|
+
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1617
1810
|
}
|
|
1618
1811
|
});
|
|
1619
1812
|
}
|
|
1620
1813
|
return;
|
|
1621
1814
|
}
|
|
1815
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1816
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1817
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1818
|
+
if (isBooleanTarget) {
|
|
1819
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1820
|
+
}
|
|
1622
1821
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1623
|
-
|
|
1624
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1822
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1625
1823
|
this[propName] = newValue;
|
|
1626
1824
|
}
|
|
1627
1825
|
});
|
|
@@ -1648,69 +1846,87 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1648
1846
|
// src/runtime/initialize-component.ts
|
|
1649
1847
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1650
1848
|
let Cstr;
|
|
1651
|
-
|
|
1652
|
-
hostRef.$flags$
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1849
|
+
try {
|
|
1850
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1851
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1852
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1853
|
+
if (bundleId) {
|
|
1854
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1855
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1856
|
+
const endLoad = uniqueTime();
|
|
1857
|
+
Cstr = await CstrImport;
|
|
1858
|
+
endLoad();
|
|
1859
|
+
} else {
|
|
1860
|
+
Cstr = CstrImport;
|
|
1861
|
+
}
|
|
1862
|
+
if (!Cstr) {
|
|
1863
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1864
|
+
}
|
|
1865
|
+
if (!Cstr.isProxied) {
|
|
1866
|
+
{
|
|
1867
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
1868
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1869
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1870
|
+
}
|
|
1871
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1872
|
+
Cstr.isProxied = true;
|
|
1873
|
+
}
|
|
1874
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1667
1875
|
{
|
|
1668
|
-
|
|
1876
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1669
1877
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1878
|
+
try {
|
|
1879
|
+
new Cstr(hostRef);
|
|
1880
|
+
} catch (e) {
|
|
1881
|
+
consoleError(e, elm);
|
|
1882
|
+
}
|
|
1883
|
+
{
|
|
1884
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1885
|
+
}
|
|
1886
|
+
{
|
|
1887
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1888
|
+
}
|
|
1889
|
+
endNewInstance();
|
|
1890
|
+
const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
1891
|
+
if (!needsDeferredCallback) {
|
|
1892
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1893
|
+
} else {
|
|
1894
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
1895
|
+
}
|
|
1896
|
+
} else {
|
|
1897
|
+
Cstr = elm.constructor;
|
|
1898
|
+
const cmpTag = elm.localName;
|
|
1899
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1684
1900
|
}
|
|
1685
|
-
{
|
|
1686
|
-
|
|
1901
|
+
if (Cstr && Cstr.style) {
|
|
1902
|
+
let style;
|
|
1903
|
+
if (typeof Cstr.style === "string") {
|
|
1904
|
+
style = Cstr.style;
|
|
1905
|
+
}
|
|
1906
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1907
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1908
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1909
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1910
|
+
endRegisterStyles();
|
|
1911
|
+
}
|
|
1687
1912
|
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1913
|
+
}
|
|
1914
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1915
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1916
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1917
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1690
1918
|
} else {
|
|
1691
|
-
|
|
1692
|
-
const cmpTag = elm.localName;
|
|
1693
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1919
|
+
schedule();
|
|
1694
1920
|
}
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1704
|
-
endRegisterStyles();
|
|
1705
|
-
}
|
|
1921
|
+
} catch (e) {
|
|
1922
|
+
consoleError(e, elm);
|
|
1923
|
+
if (hostRef.$onRenderResolve$) {
|
|
1924
|
+
hostRef.$onRenderResolve$();
|
|
1925
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1926
|
+
}
|
|
1927
|
+
if (hostRef.$onReadyResolve$) {
|
|
1928
|
+
hostRef.$onReadyResolve$(elm);
|
|
1706
1929
|
}
|
|
1707
|
-
}
|
|
1708
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1709
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1710
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1711
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1712
|
-
} else {
|
|
1713
|
-
schedule();
|
|
1714
1930
|
}
|
|
1715
1931
|
};
|
|
1716
1932
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -1747,7 +1963,7 @@ var connectedCallback = (elm) => {
|
|
|
1747
1963
|
}
|
|
1748
1964
|
if (cmpMeta.$members$) {
|
|
1749
1965
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1750
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
1966
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1751
1967
|
const value = elm[memberName];
|
|
1752
1968
|
delete elm[memberName];
|
|
1753
1969
|
elm[memberName] = value;
|
|
@@ -1828,7 +2044,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1828
2044
|
let hasSlotRelocation = false;
|
|
1829
2045
|
lazyBundles.map((lazyBundle) => {
|
|
1830
2046
|
lazyBundle[1].map((compactMeta) => {
|
|
1831
|
-
var _a2;
|
|
2047
|
+
var _a2, _b;
|
|
1832
2048
|
const cmpMeta = {
|
|
1833
2049
|
$flags$: compactMeta[0],
|
|
1834
2050
|
$tagName$: compactMeta[1],
|
|
@@ -1848,14 +2064,18 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1848
2064
|
cmpMeta.$attrsToReflect$ = [];
|
|
1849
2065
|
}
|
|
1850
2066
|
{
|
|
1851
|
-
cmpMeta.$watchers$ = (
|
|
2067
|
+
cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
|
|
2068
|
+
cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
|
|
2069
|
+
cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
|
|
1852
2070
|
}
|
|
1853
|
-
const tagName = cmpMeta.$tagName
|
|
2071
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1854
2072
|
const HostElement = class extends HTMLElement {
|
|
2073
|
+
["s-p"];
|
|
2074
|
+
["s-rc"];
|
|
2075
|
+
hasRegisteredEventListeners = false;
|
|
1855
2076
|
// StencilLazyHost
|
|
1856
2077
|
constructor(self) {
|
|
1857
2078
|
super(self);
|
|
1858
|
-
this.hasRegisteredEventListeners = false;
|
|
1859
2079
|
self = this;
|
|
1860
2080
|
registerHost(self, cmpMeta);
|
|
1861
2081
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
@@ -1987,5 +2207,8 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1987
2207
|
|
|
1988
2208
|
// src/runtime/nonce.ts
|
|
1989
2209
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2210
|
+
function transformTag(tag) {
|
|
2211
|
+
return tag;
|
|
2212
|
+
}
|
|
1990
2213
|
|
|
1991
|
-
export { Host as H,
|
|
2214
|
+
export { Host as H, bootstrapLazy as b, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|