@watermarkinsights/ripple 5.16.0-alpha.13 → 5.16.0-alpha.14
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/app-globals-e3cd85c8.js +92 -0
- package/dist/cjs/{chartFunctions-DFMB7Bjs.js → chartFunctions-ce91b2c9.js} +3 -2
- package/dist/cjs/{functions-Cv4tH2z-.js → functions-ea3eae05.js} +79 -74
- package/dist/cjs/{index-H4E3eeKZ.js → index-788526f5.js} +410 -777
- package/dist/cjs/{intl-CDsbzEBp.js → intl-ea56dd40.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/priv-calendar.cjs.entry.js +12 -6
- package/dist/cjs/priv-chart-popover.cjs.entry.js +8 -4
- package/dist/cjs/priv-navigator-button.cjs.entry.js +5 -2
- package/dist/cjs/priv-navigator-item.cjs.entry.js +5 -2
- package/dist/cjs/priv-option-list.cjs.entry.js +16 -10
- package/dist/cjs/ripple.cjs.js +7 -7
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +18 -9
- package/dist/cjs/wm-button.cjs.entry.js +16 -8
- package/dist/cjs/wm-chart-slice.cjs.entry.js +8 -1
- package/dist/cjs/wm-chart.cjs.entry.js +18 -14
- package/dist/cjs/wm-date-range.cjs.entry.js +14 -9
- package/dist/cjs/wm-datepicker.cjs.entry.js +11 -6
- package/dist/cjs/wm-file-list.cjs.entry.js +5 -2
- package/dist/cjs/wm-file.cjs.entry.js +15 -5
- package/dist/cjs/wm-flyout.cjs.entry.js +16 -5
- package/dist/cjs/wm-input.cjs.entry.js +17 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +28 -18
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +14 -8
- package/dist/cjs/wm-modal_3.cjs.entry.js +16 -9
- package/dist/cjs/wm-navigation_3.cjs.entry.js +18 -9
- package/dist/cjs/wm-navigator.cjs.entry.js +15 -17
- package/dist/cjs/wm-nested-select.cjs.entry.js +16 -11
- package/dist/cjs/wm-optgroup.cjs.entry.js +7 -3
- package/dist/cjs/wm-option_2.cjs.entry.js +17 -10
- package/dist/cjs/wm-pagination.cjs.entry.js +13 -10
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +27 -10
- package/dist/cjs/wm-search.cjs.entry.js +9 -25
- package/dist/cjs/wm-snackbar.cjs.entry.js +10 -8
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +16 -20
- package/dist/cjs/wm-tag-input.cjs.entry.js +25 -12
- package/dist/cjs/wm-tag-option.cjs.entry.js +8 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +12 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +14 -9
- package/dist/cjs/wm-toggletip.cjs.entry.js +12 -7
- package/dist/cjs/wm-uploader.cjs.entry.js +18 -8
- package/dist/cjs/wm-wrapper.cjs.entry.js +3 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +4 -8
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +12 -15
- package/dist/collection/components/charts/wm-chart/wm-chart.js +22 -45
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +33 -52
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +16 -23
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +6 -9
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +12 -15
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +12 -21
- package/dist/collection/components/datepickers/wm-date-range.js +19 -39
- package/dist/collection/components/datepickers/wm-datepicker.js +13 -27
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +16 -27
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +22 -46
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +5 -12
- package/dist/collection/components/selects/wm-option/wm-option.js +6 -15
- package/dist/collection/components/selects/wm-select/wm-select.js +19 -41
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +15 -24
- package/dist/collection/components/wm-button/wm-button.js +22 -43
- package/dist/collection/components/wm-file/wm-file.js +18 -29
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -3
- package/dist/collection/components/wm-flyout/wm-flyout.js +19 -31
- package/dist/collection/components/wm-input/wm-input.js +28 -55
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +4 -10
- package/dist/collection/components/wm-modal/wm-modal-footer.js +5 -15
- package/dist/collection/components/wm-modal/wm-modal-header.js +2 -6
- package/dist/collection/components/wm-modal/wm-modal.js +9 -15
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +5 -15
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +2 -6
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +7 -14
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +4 -5
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +8 -9
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +2 -6
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +3 -9
- package/dist/collection/components/wm-navigator/wm-navigator.js +15 -34
- package/dist/collection/components/wm-pagination/wm-pagination.js +11 -21
- package/dist/collection/components/wm-search/wm-search.js +10 -45
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +4 -7
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +6 -18
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +6 -9
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +2 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +32 -50
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +10 -18
- package/dist/collection/components/wm-textarea/wm-textarea.js +16 -34
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +15 -27
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +11 -19
- package/dist/collection/components/wm-uploader/wm-uploader.js +22 -37
- package/dist/esm/app-globals-205e6410.js +90 -0
- package/dist/esm/{chartFunctions-BLjGh_yo.js → chartFunctions-ebe4f673.js} +4 -3
- package/dist/esm/{functions-DT2ztGYg.js → functions-fbf8519f.js} +80 -75
- package/dist/esm/{index-C-E-By4e.js → index-130e07bb.js} +406 -774
- package/dist/esm/{intl-BnrBfoLu.js → intl-30a9319d.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/priv-calendar.entry.js +10 -6
- package/dist/esm/priv-chart-popover.entry.js +6 -4
- package/dist/esm/priv-navigator-button.entry.js +3 -2
- package/dist/esm/priv-navigator-item.entry.js +3 -2
- package/dist/esm/priv-option-list.entry.js +14 -10
- package/dist/esm/ripple.js +5 -6
- package/dist/esm/wm-action-menu_2.entry.js +16 -9
- package/dist/esm/wm-button.entry.js +14 -8
- package/dist/esm/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart.entry.js +16 -14
- package/dist/esm/wm-date-range.entry.js +12 -9
- package/dist/esm/wm-datepicker.entry.js +9 -6
- package/dist/esm/wm-file-list.entry.js +3 -2
- package/dist/esm/wm-file.entry.js +13 -5
- package/dist/esm/wm-flyout.entry.js +14 -5
- package/dist/esm/wm-input.entry.js +15 -5
- package/dist/esm/wm-line-chart.entry.js +26 -18
- package/dist/esm/wm-modal-pss_3.entry.js +12 -8
- package/dist/esm/wm-modal_3.entry.js +14 -9
- package/dist/esm/wm-navigation_3.entry.js +16 -9
- package/dist/esm/wm-navigator.entry.js +13 -17
- package/dist/esm/wm-nested-select.entry.js +14 -11
- package/dist/esm/wm-optgroup.entry.js +5 -3
- package/dist/esm/wm-option_2.entry.js +15 -10
- package/dist/esm/wm-pagination.entry.js +11 -10
- package/dist/esm/wm-progress-indicator_3.entry.js +25 -10
- package/dist/esm/wm-search.entry.js +7 -25
- package/dist/esm/wm-snackbar.entry.js +8 -8
- package/dist/esm/wm-tab-item_3.entry.js +14 -20
- package/dist/esm/wm-tag-input.entry.js +23 -12
- package/dist/esm/wm-tag-option.entry.js +6 -2
- package/dist/esm/wm-textarea.entry.js +10 -5
- package/dist/esm/wm-timepicker.entry.js +12 -9
- package/dist/esm/wm-toggletip.entry.js +10 -7
- package/dist/esm/wm-uploader.entry.js +16 -8
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-205e6410.js +1 -0
- package/dist/esm-es5/chartFunctions-ebe4f673.js +1 -0
- package/dist/esm-es5/functions-fbf8519f.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-BnrBfoLu.js → intl-30a9319d.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/package.json +11 -0
- package/dist/ripple/p-02951ad1.system.js +1 -0
- package/dist/ripple/{p-5884f2af.system.entry.js → p-03381d63.system.entry.js} +1 -1
- package/dist/ripple/{p-6589b394.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/{p-cb40a99a.system.entry.js → p-086c2905.system.entry.js} +1 -1
- package/dist/ripple/{p-1ca43593.system.entry.js → p-09f61d38.system.entry.js} +1 -1
- package/dist/ripple/p-0d3a26ff.entry.js +1 -0
- package/dist/ripple/{p-cfe55c87.entry.js → p-12174831.entry.js} +1 -1
- package/dist/ripple/p-1288624d.entry.js +1 -0
- package/dist/ripple/p-13b1d775.entry.js +1 -0
- package/dist/ripple/p-13ddc53d.entry.js +1 -0
- package/dist/ripple/p-17e93d1b.entry.js +1 -0
- package/dist/ripple/{p-8d315da3.system.entry.js → p-22d9b079.system.entry.js} +1 -1
- package/dist/ripple/{p-4afb057b.system.entry.js → p-2a85d4ce.system.entry.js} +1 -1
- package/dist/ripple/p-2be53f45.entry.js +1 -0
- package/dist/ripple/{p-6c066023.system.entry.js → p-2e10a2dc.system.entry.js} +1 -1
- package/dist/ripple/{p-3d0c35c9.system.entry.js → p-324aed64.system.entry.js} +1 -1
- package/dist/ripple/{p-63dd7bb4.system.entry.js → p-34808b52.system.entry.js} +1 -1
- package/dist/ripple/p-383933ea.entry.js +1 -0
- package/dist/ripple/{p-c5688577.system.entry.js → p-42174be5.system.entry.js} +1 -1
- package/dist/ripple/p-4436c014.entry.js +1 -0
- package/dist/ripple/{p-19865407.entry.js → p-4df89f8f.entry.js} +1 -1
- package/dist/ripple/{p-e9b4a77a.system.entry.js → p-4e97bf26.system.entry.js} +1 -1
- package/dist/ripple/p-4f13d03e.entry.js +1 -0
- package/dist/ripple/{p-484c87d1.system.entry.js → p-5405f9d3.system.entry.js} +1 -1
- package/dist/ripple/p-55f979d4.system.js +1 -0
- package/dist/ripple/{p-0327a2c8.system.entry.js → p-5a5d5833.system.entry.js} +1 -1
- package/dist/ripple/p-5b7d56aa.entry.js +1 -0
- package/dist/ripple/p-5c0db525.entry.js +1 -0
- package/dist/ripple/{p-478e5069.system.entry.js → p-5f9d81df.system.entry.js} +1 -1
- package/dist/ripple/p-67109fb1.entry.js +1 -0
- package/dist/ripple/{p-6ed6019f.system.entry.js → p-6723e469.system.entry.js} +1 -1
- package/dist/ripple/{p-8ab6b775.entry.js → p-6b4e1fe9.entry.js} +1 -1
- package/dist/ripple/p-71aa5d2b.system.js +1 -0
- package/dist/ripple/{p-a91703be.system.entry.js → p-75ad7567.system.entry.js} +1 -1
- package/dist/ripple/{p-d998d931.entry.js → p-76aef56f.entry.js} +1 -1
- package/dist/ripple/{p-983ab2ad.system.entry.js → p-7b06e308.system.entry.js} +1 -1
- package/dist/ripple/{p-d276f67c.entry.js → p-7c6e0168.entry.js} +1 -1
- package/dist/ripple/{p-b125c946.system.entry.js → p-80664bf3.system.entry.js} +1 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +1 -0
- package/dist/ripple/{p-3b7bf277.system.entry.js → p-840ad3a3.system.entry.js} +1 -1
- package/dist/ripple/{p-40f123ee.system.entry.js → p-86c752be.system.entry.js} +1 -1
- package/dist/ripple/p-8905ad76.entry.js +1 -0
- package/dist/ripple/{p-089abdfc.system.entry.js → p-8a64e2bd.system.entry.js} +1 -1
- package/dist/ripple/p-8c2f8f78.entry.js +1 -0
- package/dist/ripple/{p-68d8df0f.entry.js → p-8c33cb29.entry.js} +1 -1
- package/dist/ripple/{p-62f475c1.system.entry.js → p-8ee90e17.system.entry.js} +1 -1
- package/dist/ripple/{p-3f4274a3.entry.js → p-904f4c90.entry.js} +1 -1
- package/dist/ripple/{p-4eb6930b.entry.js → p-924ab54c.entry.js} +1 -1
- package/dist/ripple/p-94c6bde9.js +1 -0
- package/dist/ripple/{p-ChCup6OE.js → p-9c6bacb9.js} +1 -1
- package/dist/ripple/p-9f2b6c58.entry.js +1 -0
- package/dist/ripple/{p-a60e886d.system.entry.js → p-a424e0a7.system.entry.js} +1 -1
- package/dist/ripple/{p-17c731d6.system.entry.js → p-a7a61444.system.entry.js} +1 -1
- package/dist/ripple/p-b8dd9e8c.entry.js +1 -0
- package/dist/ripple/{p-5cc69165.system.entry.js → p-b9d609fb.system.entry.js} +1 -1
- package/dist/ripple/{p-cb32b5f5.entry.js → p-be3213fc.entry.js} +1 -1
- package/dist/ripple/{p-4af98b35.entry.js → p-c242e70f.entry.js} +1 -1
- package/dist/ripple/{p-540de835.system.entry.js → p-c4b48cd4.system.entry.js} +1 -1
- package/dist/ripple/{p-acca480e.entry.js → p-c7a57fc7.entry.js} +1 -1
- package/dist/ripple/{p-36b4df18.system.entry.js → p-c8d2c849.system.entry.js} +1 -1
- package/dist/ripple/{p-70c8d4f4.system.entry.js → p-c9e9ce61.system.entry.js} +1 -1
- package/dist/ripple/{p-41d8be2e.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/p-d210db32.entry.js +1 -0
- package/dist/ripple/{p-cd9f7986.system.entry.js → p-d2b60968.system.entry.js} +1 -1
- package/dist/ripple/p-d45bcccf.js +1 -0
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-dc7acef5.entry.js +1 -0
- package/dist/ripple/p-dd62178f.system.entry.js +1 -0
- package/dist/ripple/p-e0d21c51.entry.js +1 -0
- package/dist/ripple/p-e42db390.system.js +1 -0
- package/dist/ripple/{p-LmBQIm9U.system.js → p-e71b1146.system.js} +1 -1
- package/dist/ripple/p-e7931e4f.js +1 -0
- package/dist/ripple/p-ea85459f.system.entry.js +1 -0
- package/dist/ripple/p-efe8c61e.entry.js +1 -0
- package/dist/ripple/p-f0eae6dc.entry.js +1 -0
- package/dist/ripple/p-f0f57f41.system.entry.js +1 -0
- package/dist/ripple/{p-45ab6c4a.entry.js → p-f3b31fae.entry.js} +1 -1
- package/dist/ripple/p-f46983da.entry.js +1 -0
- package/dist/ripple/{p-90052a7f.system.entry.js → p-f9f9fbae.system.entry.js} +1 -1
- package/dist/ripple/{p-57885083.system.entry.js → p-fde1212a.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components.d.ts +0 -986
- package/dist/types/stencil-public-runtime.d.ts +2 -37
- package/package.json +2 -2
- package/dist/cjs/app-globals-9NXIHgu3.js +0 -7
- package/dist/esm/app-globals-BNPUkoUt.js +0 -5
- package/dist/esm-es5/app-globals-BNPUkoUt.js +0 -1
- package/dist/esm-es5/chartFunctions-BLjGh_yo.js +0 -1
- package/dist/esm-es5/functions-DT2ztGYg.js +0 -1
- package/dist/esm-es5/index-C-E-By4e.js +0 -1
- package/dist/ripple/p-1ccf6d7c.entry.js +0 -1
- package/dist/ripple/p-2021c4f7.entry.js +0 -1
- package/dist/ripple/p-2be4ae61.entry.js +0 -1
- package/dist/ripple/p-37f4622f.entry.js +0 -1
- package/dist/ripple/p-385147aa.entry.js +0 -1
- package/dist/ripple/p-4d32daeb.entry.js +0 -1
- package/dist/ripple/p-5d2348b6.entry.js +0 -1
- package/dist/ripple/p-6aa3d014.entry.js +0 -1
- package/dist/ripple/p-72c61438.system.entry.js +0 -1
- package/dist/ripple/p-7309ba5e.entry.js +0 -1
- package/dist/ripple/p-76b54b8a.entry.js +0 -1
- package/dist/ripple/p-795ecc2f.entry.js +0 -1
- package/dist/ripple/p-885a1fdb.system.entry.js +0 -1
- package/dist/ripple/p-8af9a491.entry.js +0 -1
- package/dist/ripple/p-911907c5.entry.js +0 -1
- package/dist/ripple/p-936bee47.entry.js +0 -1
- package/dist/ripple/p-9d0ca16a.entry.js +0 -1
- package/dist/ripple/p-B5BgystP.system.js +0 -2
- package/dist/ripple/p-BDF61j7P.system.js +0 -1
- package/dist/ripple/p-BUP1pADI.system.js +0 -1
- package/dist/ripple/p-Bc1r16wF.js +0 -1
- package/dist/ripple/p-C-E-By4e.js +0 -2
- package/dist/ripple/p-C4CRgsL9.js +0 -1
- package/dist/ripple/p-D0eZSvEu.system.js +0 -1
- package/dist/ripple/p-DT2ztGYg.js +0 -1
- package/dist/ripple/p-Dg5uzcYb.system.js +0 -1
- package/dist/ripple/p-a82d08f1.entry.js +0 -1
- package/dist/ripple/p-ab05d1f0.entry.js +0 -1
- package/dist/ripple/p-ab2a734d.entry.js +0 -1
- package/dist/ripple/p-ae00335a.entry.js +0 -1
- package/dist/ripple/p-b18d9709.entry.js +0 -1
- package/dist/ripple/p-d5f04a3c.entry.js +0 -1
- package/dist/ripple/p-e527d2c6.system.entry.js +0 -1
- package/dist/ripple/p-f2ad44e2.system.entry.js +0 -1
- package/dist/ripple/p-f7065bc8.entry.js +0 -1
- /package/dist/cjs/{interfaces-C7YbtGnk.js → interfaces-85d78ae9.js} +0 -0
- /package/dist/esm/{interfaces-COwzv5zO.js → interfaces-cc5b177f.js} +0 -0
- /package/dist/esm-es5/{interfaces-COwzv5zO.js → interfaces-cc5b177f.js} +0 -0
- /package/dist/ripple/{p-COwzv5zO.js → p-2732bddd.js} +0 -0
- /package/dist/ripple/{p-ClUp3GkF.system.js → p-42fa7a77.system.js} +0 -0
- /package/dist/ripple/{p-YWpyar7R.system.js → p-50ea2036.system.js} +0 -0
|
@@ -9,127 +9,31 @@ function _interopNamespace(e) {
|
|
|
9
9
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
10
|
Object.defineProperty(n, k, d.get ? d : {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () {
|
|
12
|
+
get: function () {
|
|
13
|
+
return e[k];
|
|
14
|
+
}
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
});
|
|
16
18
|
}
|
|
17
|
-
n
|
|
19
|
+
n['default'] = e;
|
|
18
20
|
return Object.freeze(n);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
const NAMESPACE = 'ripple';
|
|
22
|
-
const BUILD = /* ripple */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
23
|
-
|
|
24
|
-
const version = "5.16.0-alpha.13";
|
|
25
|
-
|
|
26
|
-
// PRINT RIPPLE VERSION IN CONSOLE
|
|
27
|
-
// test envs return 0 for plugin.length
|
|
28
|
-
// do not print version number there as it causes issues
|
|
29
|
-
if (window.navigator.plugins.length > 0) {
|
|
30
|
-
console.log("%cRipple component library %c%s", "color: #575195; font-weight: bold", "font-weight: bold", version);
|
|
31
|
-
}
|
|
32
|
-
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
33
|
-
// no longer necessary for keyboard focus indicators (thanks to :focus-visible)
|
|
34
|
-
// but still used in several components for other things (search for isTabbing)
|
|
35
|
-
function wmComponentKeys(ev) {
|
|
36
|
-
if (ev.key == "Tab") {
|
|
37
|
-
var event = new Event("wmUserIsTabbing");
|
|
38
|
-
window.dispatchEvent(event);
|
|
39
|
-
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
40
|
-
}
|
|
41
|
-
if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
|
|
42
|
-
var event = new Event("wmUserIsKeying");
|
|
43
|
-
window.dispatchEvent(event);
|
|
44
|
-
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function wmComponentMouseDownOnce() {
|
|
48
|
-
var event = new Event("wmUserIsNotTabbing");
|
|
49
|
-
window.dispatchEvent(event);
|
|
50
|
-
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
51
|
-
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
52
|
-
}
|
|
53
|
-
window.addEventListener("keydown", wmComponentKeys);
|
|
54
|
-
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
55
|
-
// TOOLTIP
|
|
56
|
-
// Add a tooltip element
|
|
57
|
-
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
58
|
-
// Element is added withing a container to avoid performance impact
|
|
59
|
-
const tooltipContainer = document.createElement("div");
|
|
60
|
-
tooltipContainer.id = "wm-tooltip-container";
|
|
61
|
-
const tooltipEl = document.createElement("div");
|
|
62
|
-
tooltipEl.id = "wm-tooltip";
|
|
63
|
-
tooltipEl.classList.add("wm-tooltip");
|
|
64
|
-
tooltipEl.setAttribute("popover", "manual");
|
|
65
|
-
tooltipEl.setAttribute("aria-hidden", "true");
|
|
66
|
-
const tooltipStyles = document.createElement("style");
|
|
67
|
-
tooltipStyles.textContent = `
|
|
68
|
-
.wm-tooltip {
|
|
69
|
-
position: fixed;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
pointer-events: none;
|
|
72
|
-
line-height: normal;
|
|
73
|
-
font-family: inherit;
|
|
74
|
-
font-size: 0.875rem;
|
|
75
|
-
text-transform: none;
|
|
76
|
-
font-weight: normal;
|
|
77
|
-
background: var(--wmcolor-tooltip-background);
|
|
78
|
-
color: var(--wmcolor-tooltip-text);
|
|
79
|
-
z-index: 999999;
|
|
80
|
-
max-width: var(--wmTooltipMaxWidth, 13.75rem);
|
|
81
|
-
margin-right: 1.5rem;
|
|
82
|
-
padding: 0.375rem;
|
|
83
|
-
transition-property: opacity;
|
|
84
|
-
transition-delay: 0s;
|
|
85
|
-
opacity: 0;
|
|
86
|
-
inset: unset;
|
|
87
|
-
top: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
transform: translateZ(0);
|
|
90
|
-
will-change: transform;
|
|
91
|
-
transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
|
|
92
|
-
border: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.wm-tooltip:popover-open {
|
|
96
|
-
opacity: 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.wm-tooltip.show {
|
|
100
|
-
transition-delay: 500ms;
|
|
101
|
-
opacity: 1;
|
|
102
|
-
}
|
|
103
|
-
`;
|
|
104
|
-
document.head.appendChild(tooltipStyles);
|
|
105
|
-
tooltipContainer.appendChild(tooltipEl);
|
|
106
|
-
document.querySelector("body").appendChild(tooltipContainer);
|
|
107
|
-
const globalFn = () => { };
|
|
24
|
+
const BUILD = /* ripple */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
108
25
|
|
|
109
26
|
/*
|
|
110
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
111
28
|
*/
|
|
112
29
|
var __defProp = Object.defineProperty;
|
|
113
30
|
var __export = (target, all) => {
|
|
114
31
|
for (var name in all)
|
|
115
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
116
33
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
var
|
|
120
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
121
|
-
|
|
122
|
-
// src/client/client-host-ref.ts
|
|
123
|
-
var getHostRef = (ref) => {
|
|
124
|
-
if (ref.__stencil__getHostRef) {
|
|
125
|
-
return ref.__stencil__getHostRef();
|
|
126
|
-
}
|
|
127
|
-
return void 0;
|
|
128
|
-
};
|
|
129
|
-
var registerInstance = (lazyInstance, hostRef) => {
|
|
130
|
-
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
131
|
-
hostRef.$lazyInstance$ = lazyInstance;
|
|
132
|
-
};
|
|
34
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
133
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
134
38
|
const hostRef = {
|
|
135
39
|
$flags$: 0,
|
|
@@ -145,9 +49,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
145
49
|
hostElement["s-p"] = [];
|
|
146
50
|
hostElement["s-rc"] = [];
|
|
147
51
|
}
|
|
148
|
-
|
|
149
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
150
|
-
return ref;
|
|
52
|
+
return hostRefs.set(hostElement, hostRef);
|
|
151
53
|
};
|
|
152
54
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
153
55
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -172,18 +74,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
172
74
|
}
|
|
173
75
|
switch(bundleId) {
|
|
174
76
|
|
|
175
|
-
case 'wm-tag-option.cjs':
|
|
176
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
177
|
-
/* webpackMode: "lazy" */
|
|
178
|
-
'./wm-tag-option.cjs.entry.js')); }).then(processMod, consoleError);
|
|
179
|
-
case 'wm-wrapper.cjs':
|
|
180
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
181
|
-
/* webpackMode: "lazy" */
|
|
182
|
-
'./wm-wrapper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
183
|
-
case 'wm-chart-slice.cjs':
|
|
184
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
185
|
-
/* webpackMode: "lazy" */
|
|
186
|
-
'./wm-chart-slice.cjs.entry.js')); }).then(processMod, consoleError);
|
|
187
77
|
case 'wm-button.cjs':
|
|
188
78
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
189
79
|
/* webpackMode: "lazy" */
|
|
@@ -212,6 +102,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
212
102
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
213
103
|
/* webpackMode: "lazy" */
|
|
214
104
|
'./wm-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
105
|
+
case 'wm-navigator.cjs':
|
|
106
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
107
|
+
/* webpackMode: "lazy" */
|
|
108
|
+
'./wm-navigator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
215
109
|
case 'wm-pagination.cjs':
|
|
216
110
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
217
111
|
/* webpackMode: "lazy" */
|
|
@@ -236,6 +130,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
236
130
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
237
131
|
/* webpackMode: "lazy" */
|
|
238
132
|
'./wm-tag-input.cjs.entry.js')); }).then(processMod, consoleError);
|
|
133
|
+
case 'wm-tag-option.cjs':
|
|
134
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
135
|
+
/* webpackMode: "lazy" */
|
|
136
|
+
'./wm-tag-option.cjs.entry.js')); }).then(processMod, consoleError);
|
|
239
137
|
case 'wm-textarea.cjs':
|
|
240
138
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
241
139
|
/* webpackMode: "lazy" */
|
|
@@ -244,6 +142,42 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
244
142
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
245
143
|
/* webpackMode: "lazy" */
|
|
246
144
|
'./wm-uploader.cjs.entry.js')); }).then(processMod, consoleError);
|
|
145
|
+
case 'wm-wrapper.cjs':
|
|
146
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
147
|
+
/* webpackMode: "lazy" */
|
|
148
|
+
'./wm-wrapper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
149
|
+
case 'wm-action-menu_2.cjs':
|
|
150
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
151
|
+
/* webpackMode: "lazy" */
|
|
152
|
+
'./wm-action-menu_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
153
|
+
case 'wm-option_2.cjs':
|
|
154
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
155
|
+
/* webpackMode: "lazy" */
|
|
156
|
+
'./wm-option_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
157
|
+
case 'wm-modal_3.cjs':
|
|
158
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
159
|
+
/* webpackMode: "lazy" */
|
|
160
|
+
'./wm-modal_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
161
|
+
case 'wm-modal-pss_3.cjs':
|
|
162
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
163
|
+
/* webpackMode: "lazy" */
|
|
164
|
+
'./wm-modal-pss_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
165
|
+
case 'wm-navigation_3.cjs':
|
|
166
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
167
|
+
/* webpackMode: "lazy" */
|
|
168
|
+
'./wm-navigation_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
169
|
+
case 'wm-progress-indicator_3.cjs':
|
|
170
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
171
|
+
/* webpackMode: "lazy" */
|
|
172
|
+
'./wm-progress-indicator_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
173
|
+
case 'wm-tab-item_3.cjs':
|
|
174
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
175
|
+
/* webpackMode: "lazy" */
|
|
176
|
+
'./wm-tab-item_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
177
|
+
case 'wm-chart-slice.cjs':
|
|
178
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
179
|
+
/* webpackMode: "lazy" */
|
|
180
|
+
'./wm-chart-slice.cjs.entry.js')); }).then(processMod, consoleError);
|
|
247
181
|
case 'wm-date-range.cjs':
|
|
248
182
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
249
183
|
/* webpackMode: "lazy" */
|
|
@@ -280,57 +214,20 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
280
214
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
281
215
|
/* webpackMode: "lazy" */
|
|
282
216
|
'./priv-option-list.cjs.entry.js')); }).then(processMod, consoleError);
|
|
283
|
-
case 'wm-navigator.cjs':
|
|
284
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
285
|
-
/* webpackMode: "lazy" */
|
|
286
|
-
'./wm-navigator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
287
|
-
case 'wm-action-menu_2.cjs':
|
|
288
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
289
|
-
/* webpackMode: "lazy" */
|
|
290
|
-
'./wm-action-menu_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
291
|
-
case 'wm-option_2.cjs':
|
|
292
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
293
|
-
/* webpackMode: "lazy" */
|
|
294
|
-
'./wm-option_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
295
|
-
case 'wm-progress-indicator_3.cjs':
|
|
296
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
297
|
-
/* webpackMode: "lazy" */
|
|
298
|
-
'./wm-progress-indicator_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
299
|
-
case 'wm-modal_3.cjs':
|
|
300
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
301
|
-
/* webpackMode: "lazy" */
|
|
302
|
-
'./wm-modal_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
303
|
-
case 'wm-modal-pss_3.cjs':
|
|
304
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
305
|
-
/* webpackMode: "lazy" */
|
|
306
|
-
'./wm-modal-pss_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
307
|
-
case 'wm-navigation_3.cjs':
|
|
308
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
309
|
-
/* webpackMode: "lazy" */
|
|
310
|
-
'./wm-navigation_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
311
|
-
case 'wm-tab-item_3.cjs':
|
|
312
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
313
|
-
/* webpackMode: "lazy" */
|
|
314
|
-
'./wm-tab-item_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
315
217
|
}
|
|
316
218
|
}
|
|
317
|
-
return
|
|
219
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
318
220
|
/* @vite-ignore */
|
|
319
221
|
/* webpackInclude: /\.entry\.js$/ */
|
|
320
222
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
321
223
|
/* webpackMode: "lazy" */
|
|
322
224
|
`./${bundleId}.entry.js${""}`
|
|
323
|
-
).then(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
cmpModules.set(bundleId, importedModule);
|
|
327
|
-
}
|
|
328
|
-
return importedModule[exportName];
|
|
329
|
-
},
|
|
330
|
-
(e) => {
|
|
331
|
-
consoleError(e, hostRef.$hostElement$);
|
|
225
|
+
)); }).then((importedModule) => {
|
|
226
|
+
{
|
|
227
|
+
cmpModules.set(bundleId, importedModule);
|
|
332
228
|
}
|
|
333
|
-
|
|
229
|
+
return importedModule[exportName];
|
|
230
|
+
}, consoleError);
|
|
334
231
|
};
|
|
335
232
|
|
|
336
233
|
// src/client/client-style.ts
|
|
@@ -339,6 +236,7 @@ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
|
339
236
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
340
237
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
341
238
|
var win = typeof window !== "undefined" ? window : {};
|
|
239
|
+
var doc = win.document || { head: {} };
|
|
342
240
|
var plt = {
|
|
343
241
|
$flags$: 0,
|
|
344
242
|
$resourcesUrl$: "",
|
|
@@ -349,10 +247,9 @@ var plt = {
|
|
|
349
247
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
350
248
|
};
|
|
351
249
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
352
|
-
var _a;
|
|
353
250
|
let supportsListenerOptions2 = false;
|
|
354
251
|
try {
|
|
355
|
-
|
|
252
|
+
doc.addEventListener(
|
|
356
253
|
"e",
|
|
357
254
|
null,
|
|
358
255
|
Object.defineProperty({}, "passive", {
|
|
@@ -374,7 +271,6 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
374
271
|
}
|
|
375
272
|
return false;
|
|
376
273
|
})() ;
|
|
377
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
378
274
|
var queuePending = false;
|
|
379
275
|
var queueDomReads = [];
|
|
380
276
|
var queueDomWrites = [];
|
|
@@ -410,22 +306,25 @@ var flush = () => {
|
|
|
410
306
|
};
|
|
411
307
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
412
308
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
309
|
+
|
|
310
|
+
// src/utils/constants.ts
|
|
311
|
+
var EMPTY_OBJ = {};
|
|
312
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
313
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
314
|
+
|
|
315
|
+
// src/utils/helpers.ts
|
|
316
|
+
var isDef = (v) => v != null;
|
|
413
317
|
var isComplexType = (o) => {
|
|
414
318
|
o = typeof o;
|
|
415
319
|
return o === "object" || o === "function";
|
|
416
320
|
};
|
|
417
321
|
|
|
418
322
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
419
|
-
function queryNonceMetaTagContent(
|
|
323
|
+
function queryNonceMetaTagContent(doc2) {
|
|
420
324
|
var _a, _b, _c;
|
|
421
|
-
return (_c = (_b = (_a =
|
|
325
|
+
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
422
326
|
}
|
|
423
327
|
|
|
424
|
-
// src/utils/regular-expression.ts
|
|
425
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
426
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
427
|
-
};
|
|
428
|
-
|
|
429
328
|
// src/utils/result.ts
|
|
430
329
|
var result_exports = {};
|
|
431
330
|
__export(result_exports, {
|
|
@@ -474,135 +373,6 @@ var unwrapErr = (result) => {
|
|
|
474
373
|
throw result.value;
|
|
475
374
|
}
|
|
476
375
|
};
|
|
477
|
-
|
|
478
|
-
// src/utils/style.ts
|
|
479
|
-
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
480
|
-
return void 0;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
// src/utils/shadow-root.ts
|
|
484
|
-
var globalStyleSheet;
|
|
485
|
-
function createShadowRoot(cmpMeta) {
|
|
486
|
-
var _a;
|
|
487
|
-
const shadowRoot = this.attachShadow({
|
|
488
|
-
mode: "open",
|
|
489
|
-
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
490
|
-
}) ;
|
|
491
|
-
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
492
|
-
if (globalStyleSheet) {
|
|
493
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
494
|
-
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
495
|
-
} else {
|
|
496
|
-
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
501
|
-
const childNodes = internalCall(elm, "childNodes");
|
|
502
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
503
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
504
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
505
|
-
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
506
|
-
slotNode.hidden = true;
|
|
507
|
-
} else {
|
|
508
|
-
slotNode.hidden = false;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
let i2 = 0;
|
|
514
|
-
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
515
|
-
const childNode = childNodes[i2];
|
|
516
|
-
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
517
|
-
updateFallbackSlotVisibility(childNode);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
var getSlottedChildNodes = (childNodes) => {
|
|
522
|
-
const result = [];
|
|
523
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
524
|
-
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
525
|
-
if (slottedNode && slottedNode.isConnected) {
|
|
526
|
-
result.push(slottedNode);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
return result;
|
|
530
|
-
};
|
|
531
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
532
|
-
let i2 = 0;
|
|
533
|
-
let slottedNodes = [];
|
|
534
|
-
let childNode;
|
|
535
|
-
for (; i2 < childNodes.length; i2++) {
|
|
536
|
-
childNode = childNodes[i2];
|
|
537
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
538
|
-
slottedNodes.push(childNode);
|
|
539
|
-
}
|
|
540
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
541
|
-
}
|
|
542
|
-
return slottedNodes;
|
|
543
|
-
}
|
|
544
|
-
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
545
|
-
const childNodes = [];
|
|
546
|
-
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
547
|
-
let node = slot;
|
|
548
|
-
while (node = node.nextSibling) {
|
|
549
|
-
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
550
|
-
}
|
|
551
|
-
return childNodes;
|
|
552
|
-
};
|
|
553
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
554
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
555
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
556
|
-
return true;
|
|
557
|
-
}
|
|
558
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
559
|
-
return true;
|
|
560
|
-
}
|
|
561
|
-
return false;
|
|
562
|
-
}
|
|
563
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
564
|
-
return true;
|
|
565
|
-
}
|
|
566
|
-
return slotName === "";
|
|
567
|
-
};
|
|
568
|
-
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
569
|
-
function patchSlotNode(node) {
|
|
570
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
571
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
572
|
-
const toReturn = [];
|
|
573
|
-
const slotName = this["s-sn"];
|
|
574
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
575
|
-
console.error(`
|
|
576
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
577
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
578
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
579
|
-
`);
|
|
580
|
-
}
|
|
581
|
-
const parent = this["s-cr"].parentElement;
|
|
582
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
583
|
-
slottedNodes.forEach((n) => {
|
|
584
|
-
if (slotName === getSlotName(n)) {
|
|
585
|
-
toReturn.push(n);
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
if (elementsOnly) {
|
|
589
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
590
|
-
}
|
|
591
|
-
return toReturn;
|
|
592
|
-
}).bind(node);
|
|
593
|
-
node.assignedElements = assignedFactory(true);
|
|
594
|
-
node.assignedNodes = assignedFactory(false);
|
|
595
|
-
}
|
|
596
|
-
function internalCall(node, method) {
|
|
597
|
-
if ("__" + method in node) {
|
|
598
|
-
const toReturn = node["__" + method];
|
|
599
|
-
if (typeof toReturn !== "function") return toReturn;
|
|
600
|
-
return toReturn.bind(node);
|
|
601
|
-
} else {
|
|
602
|
-
if (typeof node[method] !== "function") return node[method];
|
|
603
|
-
return node[method].bind(node);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
376
|
var createTime = (fnName, tagName = "") => {
|
|
607
377
|
{
|
|
608
378
|
return () => {
|
|
@@ -617,110 +387,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
617
387
|
};
|
|
618
388
|
}
|
|
619
389
|
};
|
|
620
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
621
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
622
|
-
let style = styles.get(scopeId2);
|
|
623
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
624
|
-
style = style || new CSSStyleSheet();
|
|
625
|
-
if (typeof style === "string") {
|
|
626
|
-
style = cssText;
|
|
627
|
-
} else {
|
|
628
|
-
style.replaceSync(cssText);
|
|
629
|
-
}
|
|
630
|
-
} else {
|
|
631
|
-
style = cssText;
|
|
632
|
-
}
|
|
633
|
-
styles.set(scopeId2, style);
|
|
634
|
-
};
|
|
635
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
636
|
-
var _a;
|
|
637
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
638
|
-
const style = styles.get(scopeId2);
|
|
639
|
-
if (!win.document) {
|
|
640
|
-
return scopeId2;
|
|
641
|
-
}
|
|
642
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
643
|
-
if (style) {
|
|
644
|
-
if (typeof style === "string") {
|
|
645
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
646
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
647
|
-
let styleElm;
|
|
648
|
-
if (!appliedStyles) {
|
|
649
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
650
|
-
}
|
|
651
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
652
|
-
{
|
|
653
|
-
styleElm = win.document.createElement("style");
|
|
654
|
-
styleElm.innerHTML = style;
|
|
655
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
656
|
-
if (nonce != null) {
|
|
657
|
-
styleElm.setAttribute("nonce", nonce);
|
|
658
|
-
}
|
|
659
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
660
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
661
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
662
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
663
|
-
styleContainerNode.insertBefore(
|
|
664
|
-
styleElm,
|
|
665
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
666
|
-
);
|
|
667
|
-
} else if ("host" in styleContainerNode) {
|
|
668
|
-
if (supportsConstructableStylesheets) {
|
|
669
|
-
const stylesheet = new CSSStyleSheet();
|
|
670
|
-
stylesheet.replaceSync(style);
|
|
671
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
672
|
-
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
673
|
-
} else {
|
|
674
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
675
|
-
}
|
|
676
|
-
} else {
|
|
677
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
678
|
-
if (existingStyleContainer) {
|
|
679
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
680
|
-
} else {
|
|
681
|
-
styleContainerNode.prepend(styleElm);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
} else {
|
|
685
|
-
styleContainerNode.append(styleElm);
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
689
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
693
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
694
|
-
}
|
|
695
|
-
if (appliedStyles) {
|
|
696
|
-
appliedStyles.add(scopeId2);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
700
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
701
|
-
styleContainerNode.adoptedStyleSheets.push(style);
|
|
702
|
-
} else {
|
|
703
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return scopeId2;
|
|
708
|
-
};
|
|
709
|
-
var attachStyles = (hostRef) => {
|
|
710
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
711
|
-
const elm = hostRef.$hostElement$;
|
|
712
|
-
const flags = cmpMeta.$flags$;
|
|
713
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
714
|
-
const scopeId2 = addStyle(
|
|
715
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
716
|
-
cmpMeta);
|
|
717
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
718
|
-
elm["s-sc"] = scopeId2;
|
|
719
|
-
elm.classList.add(scopeId2 + "-h");
|
|
720
|
-
}
|
|
721
|
-
endAttachStyles();
|
|
722
|
-
};
|
|
723
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
724
390
|
var h = (nodeName, vnodeData, ...children) => {
|
|
725
391
|
let child = null;
|
|
726
392
|
let key = null;
|
|
@@ -832,33 +498,13 @@ var convertToPrivate = (node) => {
|
|
|
832
498
|
vnode.$name$ = node.vname;
|
|
833
499
|
return vnode;
|
|
834
500
|
};
|
|
835
|
-
var
|
|
836
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
837
|
-
return new RegExp(
|
|
838
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
839
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
840
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
841
|
-
"g"
|
|
842
|
-
);
|
|
843
|
-
};
|
|
844
|
-
createSupportsRuleRe("::slotted");
|
|
845
|
-
createSupportsRuleRe(":host");
|
|
846
|
-
createSupportsRuleRe(":host-context");
|
|
847
|
-
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
848
|
-
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
849
|
-
try {
|
|
850
|
-
return JSON.parse(propValue);
|
|
851
|
-
} catch (e) {
|
|
852
|
-
}
|
|
853
|
-
}
|
|
501
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
854
502
|
if (propValue != null && !isComplexType(propValue)) {
|
|
855
503
|
if (propType & 4 /* Boolean */) {
|
|
856
|
-
|
|
857
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
858
|
-
}
|
|
504
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
859
505
|
}
|
|
860
506
|
if (propType & 2 /* Number */) {
|
|
861
|
-
return
|
|
507
|
+
return parseFloat(propValue);
|
|
862
508
|
}
|
|
863
509
|
if (propType & 1 /* String */) {
|
|
864
510
|
return String(propValue);
|
|
@@ -867,10 +513,7 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
867
513
|
}
|
|
868
514
|
return propValue;
|
|
869
515
|
};
|
|
870
|
-
var getElement = (ref) =>
|
|
871
|
-
var _a;
|
|
872
|
-
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
873
|
-
};
|
|
516
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
874
517
|
|
|
875
518
|
// src/runtime/event-emitter.ts
|
|
876
519
|
var createEvent = (ref, name, flags) => {
|
|
@@ -891,148 +534,204 @@ var emitEvent = (elm, name, opts) => {
|
|
|
891
534
|
elm.dispatchEvent(ev);
|
|
892
535
|
return ev;
|
|
893
536
|
};
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
|
|
537
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
538
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
539
|
+
let style = styles.get(scopeId2);
|
|
540
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
541
|
+
style = style || new CSSStyleSheet();
|
|
542
|
+
if (typeof style === "string") {
|
|
543
|
+
style = cssText;
|
|
544
|
+
} else {
|
|
545
|
+
style.replaceSync(cssText);
|
|
546
|
+
}
|
|
547
|
+
} else {
|
|
548
|
+
style = cssText;
|
|
897
549
|
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
550
|
+
styles.set(scopeId2, style);
|
|
551
|
+
};
|
|
552
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
553
|
+
var _a;
|
|
554
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
555
|
+
const style = styles.get(scopeId2);
|
|
556
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
557
|
+
if (style) {
|
|
558
|
+
if (typeof style === "string") {
|
|
559
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
560
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
561
|
+
let styleElm;
|
|
562
|
+
if (!appliedStyles) {
|
|
563
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
564
|
+
}
|
|
565
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
566
|
+
{
|
|
567
|
+
styleElm = doc.createElement("style");
|
|
568
|
+
styleElm.innerHTML = style;
|
|
569
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
570
|
+
if (nonce != null) {
|
|
571
|
+
styleElm.setAttribute("nonce", nonce);
|
|
572
|
+
}
|
|
573
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
574
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
575
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
576
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
|
|
577
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
578
|
+
} else if ("host" in styleContainerNode) {
|
|
579
|
+
styleContainerNode.prepend(styleElm);
|
|
580
|
+
} else {
|
|
581
|
+
styleContainerNode.append(styleElm);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
585
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
589
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
590
|
+
}
|
|
591
|
+
if (appliedStyles) {
|
|
592
|
+
appliedStyles.add(scopeId2);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
596
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return scopeId2;
|
|
600
|
+
};
|
|
601
|
+
var attachStyles = (hostRef) => {
|
|
602
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
603
|
+
const elm = hostRef.$hostElement$;
|
|
604
|
+
const flags = cmpMeta.$flags$;
|
|
605
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
606
|
+
const scopeId2 = addStyle(
|
|
607
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
608
|
+
cmpMeta);
|
|
609
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
610
|
+
elm["s-sc"] = scopeId2;
|
|
611
|
+
elm.classList.add(scopeId2 + "-h");
|
|
612
|
+
}
|
|
613
|
+
endAttachStyles();
|
|
614
|
+
};
|
|
615
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
616
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
617
|
+
if (oldValue !== newValue) {
|
|
618
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
619
|
+
let ln = memberName.toLowerCase();
|
|
620
|
+
if (memberName === "class") {
|
|
621
|
+
const classList = elm.classList;
|
|
622
|
+
const oldClasses = parseClassList(oldValue);
|
|
623
|
+
const newClasses = parseClassList(newValue);
|
|
905
624
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
906
625
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
626
|
+
} else if (memberName === "style") {
|
|
627
|
+
{
|
|
628
|
+
for (const prop in oldValue) {
|
|
629
|
+
if (!newValue || newValue[prop] == null) {
|
|
630
|
+
if (prop.includes("-")) {
|
|
631
|
+
elm.style.removeProperty(prop);
|
|
632
|
+
} else {
|
|
633
|
+
elm.style[prop] = "";
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
for (const prop in newValue) {
|
|
639
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
912
640
|
if (prop.includes("-")) {
|
|
913
|
-
elm.style.
|
|
641
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
914
642
|
} else {
|
|
915
|
-
elm.style[prop] =
|
|
643
|
+
elm.style[prop] = newValue[prop];
|
|
916
644
|
}
|
|
917
645
|
}
|
|
918
646
|
}
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
if (prop.includes("-")) {
|
|
923
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
924
|
-
} else {
|
|
925
|
-
elm.style[prop] = newValue[prop];
|
|
926
|
-
}
|
|
647
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
648
|
+
if (newValue) {
|
|
649
|
+
newValue(elm);
|
|
927
650
|
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
memberName = memberName.slice(3);
|
|
936
|
-
} else if (isMemberInElement(win, ln)) {
|
|
937
|
-
memberName = ln.slice(2);
|
|
938
|
-
} else {
|
|
939
|
-
memberName = ln[2] + memberName.slice(3);
|
|
940
|
-
}
|
|
941
|
-
if (oldValue || newValue) {
|
|
942
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
943
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
944
|
-
if (oldValue) {
|
|
945
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
651
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
652
|
+
if (memberName[2] === "-") {
|
|
653
|
+
memberName = memberName.slice(3);
|
|
654
|
+
} else if (isMemberInElement(win, ln)) {
|
|
655
|
+
memberName = ln.slice(2);
|
|
656
|
+
} else {
|
|
657
|
+
memberName = ln[2] + memberName.slice(3);
|
|
946
658
|
}
|
|
947
|
-
if (newValue) {
|
|
948
|
-
|
|
659
|
+
if (oldValue || newValue) {
|
|
660
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
661
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
662
|
+
if (oldValue) {
|
|
663
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
664
|
+
}
|
|
665
|
+
if (newValue) {
|
|
666
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
667
|
+
}
|
|
949
668
|
}
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
669
|
+
} else {
|
|
670
|
+
const isComplex = isComplexType(newValue);
|
|
671
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
672
|
+
try {
|
|
673
|
+
if (!elm.tagName.includes("-")) {
|
|
674
|
+
const n = newValue == null ? "" : newValue;
|
|
675
|
+
if (memberName === "list") {
|
|
676
|
+
isProp = false;
|
|
677
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
678
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
679
|
+
elm[memberName] = n;
|
|
680
|
+
} else {
|
|
681
|
+
elm.setAttribute(memberName, n);
|
|
682
|
+
}
|
|
964
683
|
}
|
|
684
|
+
} else {
|
|
685
|
+
elm[memberName] = newValue;
|
|
965
686
|
}
|
|
966
|
-
}
|
|
967
|
-
elm[memberName] = newValue;
|
|
687
|
+
} catch (e) {
|
|
968
688
|
}
|
|
969
|
-
} catch (e) {
|
|
970
689
|
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
690
|
+
let xlink = false;
|
|
691
|
+
{
|
|
692
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
693
|
+
memberName = ln;
|
|
694
|
+
xlink = true;
|
|
695
|
+
}
|
|
977
696
|
}
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
697
|
+
if (newValue == null || newValue === false) {
|
|
698
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
699
|
+
if (xlink) {
|
|
700
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
701
|
+
} else {
|
|
702
|
+
elm.removeAttribute(memberName);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
706
|
+
newValue = newValue === true ? "" : newValue;
|
|
981
707
|
if (xlink) {
|
|
982
|
-
elm.
|
|
708
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
983
709
|
} else {
|
|
984
|
-
elm.
|
|
710
|
+
elm.setAttribute(memberName, newValue);
|
|
985
711
|
}
|
|
986
712
|
}
|
|
987
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
988
|
-
newValue = newValue === true ? "" : newValue;
|
|
989
|
-
if (xlink) {
|
|
990
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
991
|
-
} else {
|
|
992
|
-
elm.setAttribute(memberName, newValue);
|
|
993
|
-
}
|
|
994
713
|
}
|
|
995
714
|
}
|
|
996
715
|
};
|
|
997
716
|
var parseClassListRegex = /\s/;
|
|
998
|
-
var parseClassList = (value) =>
|
|
999
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
1000
|
-
value = value.baseVal;
|
|
1001
|
-
}
|
|
1002
|
-
if (!value || typeof value !== "string") {
|
|
1003
|
-
return [];
|
|
1004
|
-
}
|
|
1005
|
-
return value.split(parseClassListRegex);
|
|
1006
|
-
};
|
|
717
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
1007
718
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
1008
719
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
1009
720
|
|
|
1010
721
|
// src/runtime/vdom/update-element.ts
|
|
1011
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
722
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
1012
723
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1013
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
1014
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
724
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
725
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
1015
726
|
{
|
|
1016
727
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1017
728
|
if (!(memberName in newVnodeAttrs)) {
|
|
1018
|
-
setAccessor(
|
|
1019
|
-
elm,
|
|
1020
|
-
memberName,
|
|
1021
|
-
oldVnodeAttrs[memberName],
|
|
1022
|
-
void 0,
|
|
1023
|
-
isSvgMode2,
|
|
1024
|
-
newVnode.$flags$);
|
|
729
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
1025
730
|
}
|
|
1026
731
|
}
|
|
1027
732
|
}
|
|
1028
733
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
1029
|
-
setAccessor(
|
|
1030
|
-
elm,
|
|
1031
|
-
memberName,
|
|
1032
|
-
oldVnodeAttrs[memberName],
|
|
1033
|
-
newVnodeAttrs[memberName],
|
|
1034
|
-
isSvgMode2,
|
|
1035
|
-
newVnode.$flags$);
|
|
734
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
1036
735
|
}
|
|
1037
736
|
};
|
|
1038
737
|
function sortedAttrNames(attrNames) {
|
|
@@ -1044,13 +743,16 @@ function sortedAttrNames(attrNames) {
|
|
|
1044
743
|
attrNames
|
|
1045
744
|
);
|
|
1046
745
|
}
|
|
746
|
+
|
|
747
|
+
// src/runtime/vdom/vdom-render.ts
|
|
748
|
+
var scopeId;
|
|
1047
749
|
var contentRef;
|
|
1048
750
|
var hostTagName;
|
|
1049
751
|
var useNativeShadowDom = false;
|
|
1050
752
|
var checkSlotFallbackVisibility = false;
|
|
1051
753
|
var checkSlotRelocate = false;
|
|
1052
754
|
var isSvgMode = false;
|
|
1053
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
755
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
1054
756
|
var _a;
|
|
1055
757
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
1056
758
|
let i2 = 0;
|
|
@@ -1060,6 +762,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1060
762
|
if (!useNativeShadowDom) {
|
|
1061
763
|
checkSlotRelocate = true;
|
|
1062
764
|
if (newVNode2.$tag$ === "slot") {
|
|
765
|
+
if (scopeId) {
|
|
766
|
+
parentElm.classList.add(scopeId + "-s");
|
|
767
|
+
}
|
|
1063
768
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
1064
769
|
// slot element has fallback content
|
|
1065
770
|
// still create an element that "mocks" the slot element
|
|
@@ -1073,22 +778,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1073
778
|
}
|
|
1074
779
|
}
|
|
1075
780
|
if (newVNode2.$text$ !== null) {
|
|
1076
|
-
elm = newVNode2.$elm$ =
|
|
781
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
1077
782
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1078
|
-
elm = newVNode2.$elm$ =
|
|
1079
|
-
{
|
|
1080
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
1081
|
-
}
|
|
783
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
1082
784
|
} else {
|
|
1083
785
|
if (!isSvgMode) {
|
|
1084
786
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1085
787
|
}
|
|
1086
|
-
|
|
1087
|
-
throw new Error(
|
|
1088
|
-
"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."
|
|
1089
|
-
);
|
|
1090
|
-
}
|
|
1091
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
788
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
1092
789
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
1093
790
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1094
791
|
) ;
|
|
@@ -1098,9 +795,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1098
795
|
{
|
|
1099
796
|
updateElement(null, newVNode2, isSvgMode);
|
|
1100
797
|
}
|
|
798
|
+
const rootNode = elm.getRootNode();
|
|
799
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
800
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
801
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
802
|
+
}
|
|
1101
803
|
if (newVNode2.$children$) {
|
|
1102
804
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1103
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
805
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
1104
806
|
if (childNode) {
|
|
1105
807
|
elm.appendChild(childNode);
|
|
1106
808
|
}
|
|
@@ -1121,7 +823,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1121
823
|
elm["s-cr"] = contentRef;
|
|
1122
824
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1123
825
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1124
|
-
patchSlotNode(elm);
|
|
1125
826
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1126
827
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1127
828
|
{
|
|
@@ -1134,11 +835,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1134
835
|
};
|
|
1135
836
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1136
837
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1137
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
838
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
839
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
840
|
+
let node = parentElm;
|
|
841
|
+
while (node = node.nextSibling) {
|
|
842
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
843
|
+
oldSlotChildNodes.push(node);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
1138
847
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
1139
848
|
const childNode = oldSlotChildNodes[i2];
|
|
1140
849
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
1141
|
-
insertBefore(
|
|
850
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
1142
851
|
childNode["s-ol"].remove();
|
|
1143
852
|
childNode["s-ol"] = void 0;
|
|
1144
853
|
childNode["s-sh"] = void 0;
|
|
@@ -1148,7 +857,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1148
857
|
putBackInOriginalLocation(childNode, recursive);
|
|
1149
858
|
}
|
|
1150
859
|
}
|
|
1151
|
-
plt.$flags$ &=
|
|
860
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1152
861
|
};
|
|
1153
862
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1154
863
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -1158,7 +867,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1158
867
|
}
|
|
1159
868
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
1160
869
|
if (vnodes[startIdx]) {
|
|
1161
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
870
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1162
871
|
if (childNode) {
|
|
1163
872
|
vnodes[startIdx].$elm$ = childNode;
|
|
1164
873
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -1245,7 +954,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1245
954
|
if (idxInOld >= 0) {
|
|
1246
955
|
elmToMove = oldCh[idxInOld];
|
|
1247
956
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1248
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
957
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
1249
958
|
} else {
|
|
1250
959
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1251
960
|
oldCh[idxInOld] = void 0;
|
|
@@ -1253,16 +962,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1253
962
|
}
|
|
1254
963
|
newStartVnode = newCh[++newStartIdx];
|
|
1255
964
|
} else {
|
|
1256
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
965
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
1257
966
|
newStartVnode = newCh[++newStartIdx];
|
|
1258
967
|
}
|
|
1259
968
|
if (node) {
|
|
1260
969
|
{
|
|
1261
|
-
insertBefore(
|
|
1262
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1263
|
-
node,
|
|
1264
|
-
referenceNode(oldStartVnode.$elm$)
|
|
1265
|
-
);
|
|
970
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
1266
971
|
}
|
|
1267
972
|
}
|
|
1268
973
|
}
|
|
@@ -1283,19 +988,28 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1283
988
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1284
989
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1285
990
|
if (leftVNode.$tag$ === "slot") {
|
|
991
|
+
if (
|
|
992
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
993
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
994
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
995
|
+
// hydration comments to be removed
|
|
996
|
+
leftVNode.$elm$.nodeType !== 8
|
|
997
|
+
) {
|
|
998
|
+
return false;
|
|
999
|
+
}
|
|
1286
1000
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
1287
1001
|
}
|
|
1288
1002
|
if (!isInitialRender) {
|
|
1289
1003
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
1290
1004
|
}
|
|
1291
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
1292
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
1293
|
-
}
|
|
1294
1005
|
return true;
|
|
1295
1006
|
}
|
|
1296
1007
|
return false;
|
|
1297
1008
|
};
|
|
1298
|
-
var referenceNode = (node) =>
|
|
1009
|
+
var referenceNode = (node) => {
|
|
1010
|
+
return node && node["s-ol"] || node;
|
|
1011
|
+
};
|
|
1012
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
1299
1013
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1300
1014
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1301
1015
|
const oldChildren = oldVNode.$children$;
|
|
@@ -1308,7 +1022,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1308
1022
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1309
1023
|
}
|
|
1310
1024
|
{
|
|
1311
|
-
|
|
1025
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
1026
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1027
|
+
}
|
|
1312
1028
|
}
|
|
1313
1029
|
if (oldChildren !== null && newChildren !== null) {
|
|
1314
1030
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1322,7 +1038,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1322
1038
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1323
1039
|
) {
|
|
1324
1040
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1325
|
-
}
|
|
1041
|
+
}
|
|
1326
1042
|
if (isSvgMode && tag === "svg") {
|
|
1327
1043
|
isSvgMode = false;
|
|
1328
1044
|
}
|
|
@@ -1332,19 +1048,45 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1332
1048
|
elm.data = text;
|
|
1333
1049
|
}
|
|
1334
1050
|
};
|
|
1051
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
1052
|
+
const childNodes = elm.childNodes;
|
|
1053
|
+
for (const childNode of childNodes) {
|
|
1054
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1055
|
+
if (childNode["s-sr"]) {
|
|
1056
|
+
const slotName = childNode["s-sn"];
|
|
1057
|
+
childNode.hidden = false;
|
|
1058
|
+
for (const siblingNode of childNodes) {
|
|
1059
|
+
if (siblingNode !== childNode) {
|
|
1060
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
1061
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
1062
|
+
childNode.hidden = true;
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
} else {
|
|
1066
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
1067
|
+
childNode.hidden = true;
|
|
1068
|
+
break;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
updateFallbackSlotVisibility(childNode);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1335
1078
|
var relocateNodes = [];
|
|
1336
1079
|
var markSlotContentForRelocation = (elm) => {
|
|
1337
1080
|
let node;
|
|
1338
1081
|
let hostContentNodes;
|
|
1339
1082
|
let j;
|
|
1340
|
-
const
|
|
1341
|
-
for (const childNode of children) {
|
|
1083
|
+
for (const childNode of elm.childNodes) {
|
|
1342
1084
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1343
|
-
hostContentNodes = node.parentNode.
|
|
1085
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
1344
1086
|
const slotName = childNode["s-sn"];
|
|
1345
1087
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1346
1088
|
node = hostContentNodes[j];
|
|
1347
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (
|
|
1089
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
1348
1090
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1349
1091
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1350
1092
|
checkSlotFallbackVisibility = true;
|
|
@@ -1382,6 +1124,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1382
1124
|
}
|
|
1383
1125
|
}
|
|
1384
1126
|
};
|
|
1127
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
1128
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1129
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
1130
|
+
return true;
|
|
1131
|
+
}
|
|
1132
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
1133
|
+
return true;
|
|
1134
|
+
}
|
|
1135
|
+
return false;
|
|
1136
|
+
}
|
|
1137
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
1138
|
+
return true;
|
|
1139
|
+
}
|
|
1140
|
+
return slotName === "";
|
|
1141
|
+
};
|
|
1385
1142
|
var nullifyVNodeRefs = (vNode) => {
|
|
1386
1143
|
{
|
|
1387
1144
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -1389,17 +1146,15 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
1389
1146
|
}
|
|
1390
1147
|
};
|
|
1391
1148
|
var insertBefore = (parent, newNode, reference) => {
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
}
|
|
1149
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1150
|
+
return inserted;
|
|
1395
1151
|
};
|
|
1396
1152
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1397
1153
|
var _a, _b, _c, _d;
|
|
1398
1154
|
const hostElm = hostRef.$hostElement$;
|
|
1399
1155
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1400
1156
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1401
|
-
const
|
|
1402
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1157
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1403
1158
|
hostTagName = hostElm.tagName;
|
|
1404
1159
|
if (cmpMeta.$attrsToReflect$) {
|
|
1405
1160
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -1418,7 +1173,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1418
1173
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1419
1174
|
hostRef.$vnode$ = rootVnode;
|
|
1420
1175
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1421
|
-
|
|
1176
|
+
{
|
|
1177
|
+
scopeId = hostElm["s-sc"];
|
|
1178
|
+
}
|
|
1179
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1422
1180
|
{
|
|
1423
1181
|
contentRef = hostElm["s-cr"];
|
|
1424
1182
|
checkSlotFallbackVisibility = false;
|
|
@@ -1430,8 +1188,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1430
1188
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1431
1189
|
for (const relocateData of relocateNodes) {
|
|
1432
1190
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1433
|
-
if (!nodeToRelocate["s-ol"]
|
|
1434
|
-
const orgLocationNode =
|
|
1191
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1192
|
+
const orgLocationNode = doc.createTextNode("");
|
|
1435
1193
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1436
1194
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1437
1195
|
}
|
|
@@ -1446,7 +1204,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1446
1204
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1447
1205
|
while (orgLocationNode) {
|
|
1448
1206
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1449
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1207
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1450
1208
|
refNode = refNode.nextSibling;
|
|
1451
1209
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1452
1210
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1459,20 +1217,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1459
1217
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1460
1218
|
}
|
|
1461
1219
|
}
|
|
1462
|
-
|
|
1463
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1464
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1220
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1465
1221
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1466
1222
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1467
1223
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1468
1224
|
}
|
|
1469
1225
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1470
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1226
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1471
1227
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1472
1228
|
}
|
|
1473
1229
|
}
|
|
1474
1230
|
}
|
|
1475
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1231
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
1476
1232
|
} else {
|
|
1477
1233
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1478
1234
|
if (isInitialLoad) {
|
|
@@ -1486,7 +1242,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1486
1242
|
if (checkSlotFallbackVisibility) {
|
|
1487
1243
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1488
1244
|
}
|
|
1489
|
-
plt.$flags$ &=
|
|
1245
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1490
1246
|
relocateNodes.length = 0;
|
|
1491
1247
|
}
|
|
1492
1248
|
contentRef = void 0;
|
|
@@ -1495,14 +1251,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1495
1251
|
// src/runtime/update-component.ts
|
|
1496
1252
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1497
1253
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1498
|
-
|
|
1499
|
-
new Promise(
|
|
1500
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1501
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1502
|
-
r();
|
|
1503
|
-
}
|
|
1504
|
-
)
|
|
1505
|
-
);
|
|
1254
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1506
1255
|
}
|
|
1507
1256
|
};
|
|
1508
1257
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1515,12 +1264,6 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1515
1264
|
}
|
|
1516
1265
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1517
1266
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1518
|
-
if (isInitialLoad) {
|
|
1519
|
-
queueMicrotask(() => {
|
|
1520
|
-
dispatch();
|
|
1521
|
-
});
|
|
1522
|
-
return;
|
|
1523
|
-
}
|
|
1524
1267
|
return writeTask(dispatch) ;
|
|
1525
1268
|
};
|
|
1526
1269
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1537,15 +1280,18 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1537
1280
|
{
|
|
1538
1281
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1539
1282
|
if (hostRef.$queuedListeners$) {
|
|
1540
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1283
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1541
1284
|
hostRef.$queuedListeners$ = void 0;
|
|
1542
1285
|
}
|
|
1543
1286
|
}
|
|
1544
|
-
|
|
1287
|
+
{
|
|
1288
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1289
|
+
}
|
|
1545
1290
|
} else {
|
|
1546
|
-
|
|
1291
|
+
{
|
|
1292
|
+
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
1293
|
+
}
|
|
1547
1294
|
}
|
|
1548
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1549
1295
|
endSchedule();
|
|
1550
1296
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1551
1297
|
};
|
|
@@ -1588,7 +1334,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
1588
1334
|
try {
|
|
1589
1335
|
instance = instance.render && instance.render();
|
|
1590
1336
|
{
|
|
1591
|
-
hostRef.$flags$ &=
|
|
1337
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1592
1338
|
}
|
|
1593
1339
|
{
|
|
1594
1340
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -1611,13 +1357,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1611
1357
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1612
1358
|
const instance = hostRef.$lazyInstance$ ;
|
|
1613
1359
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1614
|
-
|
|
1360
|
+
{
|
|
1361
|
+
safeCall(instance, "componentDidRender");
|
|
1362
|
+
}
|
|
1615
1363
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1616
1364
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1617
1365
|
{
|
|
1618
1366
|
addHydratedFlag(elm);
|
|
1619
1367
|
}
|
|
1620
|
-
|
|
1368
|
+
{
|
|
1369
|
+
safeCall(instance, "componentDidLoad");
|
|
1370
|
+
}
|
|
1621
1371
|
endPostUpdate();
|
|
1622
1372
|
{
|
|
1623
1373
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1626,7 +1376,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1626
1376
|
}
|
|
1627
1377
|
}
|
|
1628
1378
|
} else {
|
|
1629
|
-
|
|
1379
|
+
{
|
|
1380
|
+
safeCall(instance, "componentDidUpdate");
|
|
1381
|
+
}
|
|
1630
1382
|
endPostUpdate();
|
|
1631
1383
|
}
|
|
1632
1384
|
{
|
|
@@ -1640,14 +1392,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1640
1392
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1641
1393
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1642
1394
|
}
|
|
1643
|
-
hostRef.$flags$ &=
|
|
1395
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1644
1396
|
}
|
|
1645
1397
|
};
|
|
1646
1398
|
var forceUpdate = (ref) => {
|
|
1647
|
-
var _a;
|
|
1648
1399
|
{
|
|
1649
1400
|
const hostRef = getHostRef(ref);
|
|
1650
|
-
const isConnected =
|
|
1401
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1651
1402
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1652
1403
|
scheduleUpdate(hostRef, false);
|
|
1653
1404
|
}
|
|
@@ -1655,14 +1406,17 @@ var forceUpdate = (ref) => {
|
|
|
1655
1406
|
}
|
|
1656
1407
|
};
|
|
1657
1408
|
var appDidLoad = (who) => {
|
|
1409
|
+
{
|
|
1410
|
+
addHydratedFlag(doc.documentElement);
|
|
1411
|
+
}
|
|
1658
1412
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1659
1413
|
};
|
|
1660
|
-
var safeCall = (instance, method, arg
|
|
1414
|
+
var safeCall = (instance, method, arg) => {
|
|
1661
1415
|
if (instance && instance[method]) {
|
|
1662
1416
|
try {
|
|
1663
1417
|
return instance[method](arg);
|
|
1664
1418
|
} catch (e) {
|
|
1665
|
-
consoleError(e
|
|
1419
|
+
consoleError(e);
|
|
1666
1420
|
}
|
|
1667
1421
|
}
|
|
1668
1422
|
return void 0;
|
|
@@ -1676,21 +1430,16 @@ var addHydratedFlag = (elm) => {
|
|
|
1676
1430
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1677
1431
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1678
1432
|
const hostRef = getHostRef(ref);
|
|
1679
|
-
if (!hostRef) {
|
|
1680
|
-
return;
|
|
1681
|
-
}
|
|
1682
1433
|
if (!hostRef) {
|
|
1683
1434
|
throw new Error(
|
|
1684
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/
|
|
1435
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
1685
1436
|
);
|
|
1686
1437
|
}
|
|
1687
1438
|
const elm = hostRef.$hostElement$ ;
|
|
1688
1439
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1689
1440
|
const flags = hostRef.$flags$;
|
|
1690
1441
|
const instance = hostRef.$lazyInstance$ ;
|
|
1691
|
-
newVal = parsePropertyValue(
|
|
1692
|
-
newVal,
|
|
1693
|
-
cmpMeta.$members$[propName][0]);
|
|
1442
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1694
1443
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1695
1444
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1696
1445
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -1709,11 +1458,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1709
1458
|
}
|
|
1710
1459
|
}
|
|
1711
1460
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1712
|
-
if (instance.componentShouldUpdate) {
|
|
1713
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1714
|
-
return;
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
1461
|
scheduleUpdate(hostRef, false);
|
|
1718
1462
|
}
|
|
1719
1463
|
}
|
|
@@ -1731,77 +1475,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1731
1475
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1732
1476
|
members.map(([memberName, [memberFlags]]) => {
|
|
1733
1477
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1734
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1735
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1736
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1737
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1738
|
-
Object.defineProperty(prototype, memberName, {
|
|
1739
|
-
get() {
|
|
1740
|
-
{
|
|
1741
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1742
|
-
return getValue(this, memberName);
|
|
1743
|
-
}
|
|
1744
|
-
const ref = getHostRef(this);
|
|
1745
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1746
|
-
if (!instance) return;
|
|
1747
|
-
return instance[memberName];
|
|
1748
|
-
}
|
|
1749
|
-
},
|
|
1750
|
-
configurable: true,
|
|
1751
|
-
enumerable: true
|
|
1752
|
-
});
|
|
1753
|
-
}
|
|
1754
1478
|
Object.defineProperty(prototype, memberName, {
|
|
1479
|
+
get() {
|
|
1480
|
+
return getValue(this, memberName);
|
|
1481
|
+
},
|
|
1755
1482
|
set(newValue) {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
if (origSetter) {
|
|
1761
|
-
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1762
|
-
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1763
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1764
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1765
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1766
|
-
}
|
|
1767
|
-
origSetter.apply(this, [
|
|
1768
|
-
parsePropertyValue(
|
|
1769
|
-
newValue,
|
|
1770
|
-
memberFlags)
|
|
1771
|
-
]);
|
|
1772
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1773
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1774
|
-
return;
|
|
1775
|
-
}
|
|
1776
|
-
{
|
|
1777
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1778
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1779
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1780
|
-
ref.$onReadyPromise$.then(() => {
|
|
1781
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1782
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1783
|
-
}
|
|
1784
|
-
});
|
|
1785
|
-
}
|
|
1786
|
-
return;
|
|
1787
|
-
}
|
|
1788
|
-
const setterSetVal = () => {
|
|
1789
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1790
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1791
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1792
|
-
}
|
|
1793
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1794
|
-
newValue,
|
|
1795
|
-
memberFlags);
|
|
1796
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1797
|
-
};
|
|
1798
|
-
if (ref.$lazyInstance$) {
|
|
1799
|
-
setterSetVal();
|
|
1800
|
-
} else {
|
|
1801
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1483
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1484
|
+
},
|
|
1485
|
+
configurable: true,
|
|
1486
|
+
enumerable: true
|
|
1805
1487
|
});
|
|
1806
1488
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1807
1489
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1822,7 +1504,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1822
1504
|
plt.jmp(() => {
|
|
1823
1505
|
var _a2;
|
|
1824
1506
|
const propName = attrNameToPropName.get(attrName);
|
|
1825
|
-
if (this.hasOwnProperty(propName)
|
|
1507
|
+
if (this.hasOwnProperty(propName)) {
|
|
1826
1508
|
newValue = this[propName];
|
|
1827
1509
|
delete this[propName];
|
|
1828
1510
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1831,7 +1513,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1831
1513
|
} else if (propName == null) {
|
|
1832
1514
|
const hostRef = getHostRef(this);
|
|
1833
1515
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1834
|
-
if (
|
|
1516
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1835
1517
|
const instance = hostRef.$lazyInstance$ ;
|
|
1836
1518
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1837
1519
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -1842,11 +1524,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1842
1524
|
}
|
|
1843
1525
|
return;
|
|
1844
1526
|
}
|
|
1845
|
-
|
|
1846
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1847
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1848
|
-
this[propName] = newValue;
|
|
1849
|
-
}
|
|
1527
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1850
1528
|
});
|
|
1851
1529
|
};
|
|
1852
1530
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1875,7 +1553,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1875
1553
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1876
1554
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1877
1555
|
if (bundleId) {
|
|
1878
|
-
const CstrImport = loadModule(cmpMeta
|
|
1556
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1879
1557
|
if (CstrImport && "then" in CstrImport) {
|
|
1880
1558
|
const endLoad = uniqueTime();
|
|
1881
1559
|
Cstr = await CstrImport;
|
|
@@ -1900,16 +1578,15 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1900
1578
|
try {
|
|
1901
1579
|
new Cstr(hostRef);
|
|
1902
1580
|
} catch (e) {
|
|
1903
|
-
consoleError(e
|
|
1581
|
+
consoleError(e);
|
|
1904
1582
|
}
|
|
1905
1583
|
{
|
|
1906
|
-
hostRef.$flags$ &=
|
|
1584
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1907
1585
|
}
|
|
1908
1586
|
{
|
|
1909
1587
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1910
1588
|
}
|
|
1911
1589
|
endNewInstance();
|
|
1912
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1913
1590
|
} else {
|
|
1914
1591
|
Cstr = elm.constructor;
|
|
1915
1592
|
const cmpTag = elm.localName;
|
|
@@ -1936,19 +1613,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1936
1613
|
schedule();
|
|
1937
1614
|
}
|
|
1938
1615
|
};
|
|
1939
|
-
var fireConnectedCallback = (instance
|
|
1940
|
-
{
|
|
1941
|
-
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1942
|
-
}
|
|
1616
|
+
var fireConnectedCallback = (instance) => {
|
|
1943
1617
|
};
|
|
1944
1618
|
|
|
1945
1619
|
// src/runtime/connected-callback.ts
|
|
1946
1620
|
var connectedCallback = (elm) => {
|
|
1947
1621
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1948
1622
|
const hostRef = getHostRef(elm);
|
|
1949
|
-
if (!hostRef) {
|
|
1950
|
-
return;
|
|
1951
|
-
}
|
|
1952
1623
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1953
1624
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1954
1625
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -1982,72 +1653,52 @@ var connectedCallback = (elm) => {
|
|
|
1982
1653
|
}
|
|
1983
1654
|
} else {
|
|
1984
1655
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1985
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1986
|
-
|
|
1987
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1988
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1656
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1657
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1989
1658
|
}
|
|
1990
1659
|
}
|
|
1991
1660
|
endConnected();
|
|
1992
1661
|
}
|
|
1993
1662
|
};
|
|
1994
1663
|
var setContentReference = (elm) => {
|
|
1995
|
-
|
|
1996
|
-
return;
|
|
1997
|
-
}
|
|
1998
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1664
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
1999
1665
|
""
|
|
2000
1666
|
);
|
|
2001
1667
|
contentRefElm["s-cn"] = true;
|
|
2002
1668
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2003
1669
|
};
|
|
2004
|
-
var disconnectInstance = (instance
|
|
2005
|
-
{
|
|
2006
|
-
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
2007
|
-
}
|
|
1670
|
+
var disconnectInstance = (instance) => {
|
|
2008
1671
|
};
|
|
2009
1672
|
var disconnectedCallback = async (elm) => {
|
|
2010
1673
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2011
1674
|
const hostRef = getHostRef(elm);
|
|
2012
1675
|
{
|
|
2013
|
-
if (hostRef
|
|
1676
|
+
if (hostRef.$rmListeners$) {
|
|
2014
1677
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2015
1678
|
hostRef.$rmListeners$ = void 0;
|
|
2016
1679
|
}
|
|
2017
1680
|
}
|
|
2018
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2019
|
-
|
|
2020
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2021
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1681
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1682
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
2022
1683
|
}
|
|
2023
1684
|
}
|
|
2024
|
-
if (rootAppliedStyles.has(elm)) {
|
|
2025
|
-
rootAppliedStyles.delete(elm);
|
|
2026
|
-
}
|
|
2027
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
2028
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
2029
|
-
}
|
|
2030
1685
|
};
|
|
2031
1686
|
|
|
2032
1687
|
// src/runtime/bootstrap-lazy.ts
|
|
2033
1688
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2034
1689
|
var _a;
|
|
2035
|
-
if (!win.document) {
|
|
2036
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
2037
|
-
return;
|
|
2038
|
-
}
|
|
2039
1690
|
const endBootstrap = createTime();
|
|
2040
1691
|
const cmpTags = [];
|
|
2041
1692
|
const exclude = options.exclude || [];
|
|
2042
1693
|
const customElements2 = win.customElements;
|
|
2043
|
-
const head =
|
|
1694
|
+
const head = doc.head;
|
|
2044
1695
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
2045
|
-
const dataStyles = /* @__PURE__ */
|
|
1696
|
+
const dataStyles = /* @__PURE__ */ doc.createElement("style");
|
|
2046
1697
|
const deferredConnectedCallbacks = [];
|
|
2047
1698
|
let appLoadFallback;
|
|
2048
1699
|
let isBootstrapping = true;
|
|
2049
1700
|
Object.assign(plt, options);
|
|
2050
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1701
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
2051
1702
|
let hasSlotRelocation = false;
|
|
2052
1703
|
lazyBundles.map((lazyBundle) => {
|
|
2053
1704
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -2084,7 +1735,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2084
1735
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2085
1736
|
{
|
|
2086
1737
|
if (!self.shadowRoot) {
|
|
2087
|
-
|
|
1738
|
+
{
|
|
1739
|
+
self.attachShadow({
|
|
1740
|
+
mode: "open",
|
|
1741
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
2088
1744
|
} else {
|
|
2089
1745
|
if (self.shadowRoot.mode !== "open") {
|
|
2090
1746
|
throw new Error(
|
|
@@ -2097,9 +1753,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2097
1753
|
}
|
|
2098
1754
|
connectedCallback() {
|
|
2099
1755
|
const hostRef = getHostRef(this);
|
|
2100
|
-
if (!hostRef) {
|
|
2101
|
-
return;
|
|
2102
|
-
}
|
|
2103
1756
|
if (!this.hasRegisteredEventListeners) {
|
|
2104
1757
|
this.hasRegisteredEventListeners = true;
|
|
2105
1758
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2116,24 +1769,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2116
1769
|
}
|
|
2117
1770
|
disconnectedCallback() {
|
|
2118
1771
|
plt.jmp(() => disconnectedCallback(this));
|
|
2119
|
-
plt.raf(() => {
|
|
2120
|
-
var _a3;
|
|
2121
|
-
const hostRef = getHostRef(this);
|
|
2122
|
-
if (!hostRef) {
|
|
2123
|
-
return;
|
|
2124
|
-
}
|
|
2125
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2126
|
-
if (i2 > -1) {
|
|
2127
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
2128
|
-
}
|
|
2129
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
2130
|
-
delete hostRef.$vnode$.$elm$;
|
|
2131
|
-
}
|
|
2132
|
-
});
|
|
2133
1772
|
}
|
|
2134
1773
|
componentOnReady() {
|
|
2135
|
-
|
|
2136
|
-
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1774
|
+
return getHostRef(this).$onReadyPromise$;
|
|
2137
1775
|
}
|
|
2138
1776
|
};
|
|
2139
1777
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2155,7 +1793,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2155
1793
|
}
|
|
2156
1794
|
if (dataStyles.innerHTML.length) {
|
|
2157
1795
|
dataStyles.setAttribute("data-styles", "");
|
|
2158
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1796
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
2159
1797
|
if (nonce != null) {
|
|
2160
1798
|
dataStyles.setAttribute("nonce", nonce);
|
|
2161
1799
|
}
|
|
@@ -2176,9 +1814,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2176
1814
|
// src/runtime/fragment.ts
|
|
2177
1815
|
var Fragment = (_, children) => children;
|
|
2178
1816
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2179
|
-
if (listeners
|
|
1817
|
+
if (listeners) {
|
|
2180
1818
|
listeners.map(([flags, name, method]) => {
|
|
2181
|
-
const target = getHostListenerTarget(
|
|
1819
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2182
1820
|
const handler = hostListenerProxy(hostRef, method);
|
|
2183
1821
|
const opts = hostListenerOpts(flags);
|
|
2184
1822
|
plt.ael(target, name, handler, opts);
|
|
@@ -2197,16 +1835,12 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2197
1835
|
}
|
|
2198
1836
|
}
|
|
2199
1837
|
} catch (e) {
|
|
2200
|
-
consoleError(e
|
|
1838
|
+
consoleError(e);
|
|
2201
1839
|
}
|
|
2202
1840
|
};
|
|
2203
|
-
var getHostListenerTarget = (
|
|
2204
|
-
if (flags & 4 /* TargetDocument */)
|
|
2205
|
-
|
|
2206
|
-
}
|
|
2207
|
-
if (flags & 8 /* TargetWindow */) {
|
|
2208
|
-
return win;
|
|
2209
|
-
}
|
|
1841
|
+
var getHostListenerTarget = (elm, flags) => {
|
|
1842
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
1843
|
+
if (flags & 8 /* TargetWindow */) return win;
|
|
2210
1844
|
return elm;
|
|
2211
1845
|
};
|
|
2212
1846
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -2223,7 +1857,6 @@ exports.bootstrapLazy = bootstrapLazy;
|
|
|
2223
1857
|
exports.createEvent = createEvent;
|
|
2224
1858
|
exports.forceUpdate = forceUpdate;
|
|
2225
1859
|
exports.getElement = getElement;
|
|
2226
|
-
exports.globalFn = globalFn;
|
|
2227
1860
|
exports.h = h;
|
|
2228
1861
|
exports.promiseResolve = promiseResolve;
|
|
2229
1862
|
exports.registerInstance = registerInstance;
|