@watermarkinsights/ripple 5.13.1-alpha.4 → 5.14.0-alpha.2
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-EFussBpV.js → app-globals-5211e147.js} +2 -2
- package/dist/cjs/{chartFunctions-uCzSt0yo.js → chartFunctions-781589c1.js} +3 -2
- package/dist/cjs/{functions-CqAwq8Fq.js → functions-c7404c42.js} +79 -74
- package/dist/cjs/{index-Cig4P4gJ.js → index-788526f5.js} +345 -540
- package/dist/cjs/{intl-BUs7ck9m.js → intl-88adb57d.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 +14 -7
- 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 +11 -6
- 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 +7 -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 +7 -13
- 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 +9 -15
- package/dist/collection/components/wm-uploader/wm-uploader.js +22 -37
- package/dist/esm/{app-globals-D6Ly8ONe.js → app-globals-d8f7adb9.js} +2 -2
- package/dist/{components/p-K9lgwbAO.js → esm/chartFunctions-246aabf9.js} +4 -3
- package/dist/{components/p-DdlNyc6u.js → esm/functions-aad18286.js} +80 -75
- package/dist/esm/{index-EopL5zo4.js → index-130e07bb.js} +324 -539
- package/dist/{components/p-DStPjkvu.js → esm/intl-c8686c73.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 +12 -7
- 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 +9 -6
- package/dist/esm/wm-uploader.entry.js +16 -8
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/{app-globals-D6Ly8ONe.js → app-globals-d8f7adb9.js} +1 -1
- package/dist/esm-es5/chartFunctions-246aabf9.js +1 -0
- package/dist/esm-es5/functions-aad18286.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-DeM2tf6d.js → intl-c8686c73.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-02634e13.entry.js +1 -0
- package/dist/ripple/{p-da5ad94c.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/p-0494eb2c.system.js +1 -0
- package/dist/ripple/{p-b0a47a43.system.entry.js → p-07318072.system.entry.js} +1 -1
- package/dist/ripple/p-07a4b825.entry.js +1 -0
- package/dist/ripple/{p-61c089e4.system.entry.js → p-0a4a2582.system.entry.js} +1 -1
- package/dist/ripple/{p-ee8d7025.entry.js → p-0be3f364.entry.js} +1 -1
- package/dist/ripple/{p-69d1e480.system.entry.js → p-1111367a.system.entry.js} +1 -1
- package/dist/ripple/p-13b1d775.entry.js +1 -0
- package/dist/ripple/{p-3b0aaa5d.system.entry.js → p-1a0c51ee.system.entry.js} +1 -1
- package/dist/ripple/p-2785c796.entry.js +1 -0
- package/dist/ripple/{p-6785cd06.system.entry.js → p-2af01e17.system.entry.js} +1 -1
- package/dist/ripple/{p-6f8eecda.system.entry.js → p-2c954741.system.entry.js} +1 -1
- package/dist/ripple/{p-86815489.system.entry.js → p-2e8211ba.system.entry.js} +1 -1
- package/dist/ripple/{p-dc7feffa.system.entry.js → p-366193d0.system.entry.js} +1 -1
- package/dist/ripple/p-496564b3.entry.js +1 -0
- package/dist/ripple/{p-31b8fe9c.system.entry.js → p-4eaab96c.system.entry.js} +1 -1
- package/dist/ripple/p-501aa9b9.entry.js +1 -0
- package/dist/ripple/{p-8d09ca95.system.entry.js → p-58361d0e.system.entry.js} +1 -1
- package/dist/ripple/{p-27ecd83a.system.entry.js → p-5acc08cd.system.entry.js} +1 -1
- package/dist/ripple/p-6646cbd7.system.js +1 -0
- package/dist/{components/p-CLem5EoD.js → ripple/p-66e539e2.entry.js} +1 -42
- package/dist/ripple/p-678483ca.entry.js +1 -0
- package/dist/ripple/{p-c78fa8d0.system.entry.js → p-67f7aa48.system.entry.js} +1 -1
- package/dist/ripple/p-68b63f21.entry.js +1 -0
- package/dist/ripple/p-6b41644b.entry.js +1 -0
- package/dist/ripple/{p-9e10d3eb.entry.js → p-6d0b3395.entry.js} +1 -1
- package/dist/ripple/{p-68705f8f.system.entry.js → p-6d99517c.system.entry.js} +1 -1
- package/dist/ripple/{p-ClenAAhT.system.js → p-6e7c833c.system.js} +1 -1
- package/dist/ripple/p-703841a3.entry.js +1 -0
- package/dist/ripple/{p-ba6080a6.system.entry.js → p-70c6d33e.system.entry.js} +1 -1
- package/dist/ripple/{p-D7x793ET.js → p-723254b6.js} +1 -1
- package/dist/ripple/p-73081234.entry.js +1 -0
- package/dist/ripple/{p-64e6e3b7.entry.js → p-7360ce37.entry.js} +1 -1
- package/dist/ripple/{p-a95f9245.system.entry.js → p-7a6f535f.system.entry.js} +1 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +1 -0
- package/dist/ripple/{p-3bee6a44.system.entry.js → p-86bd3990.system.entry.js} +1 -1
- package/dist/ripple/{p-d92218e6.system.entry.js → p-8cd81897.system.entry.js} +1 -1
- package/dist/ripple/{p-edc1b7cb.entry.js → p-91785165.entry.js} +1 -1
- package/dist/ripple/p-936e4fc3.entry.js +1 -0
- package/dist/ripple/{p-fe31bd98.system.entry.js → p-948173a2.system.entry.js} +1 -1
- package/dist/ripple/{p-49c9063a.entry.js → p-94ef3015.entry.js} +1 -1
- package/dist/ripple/{p-63bb5240.system.entry.js → p-9bfe715c.system.entry.js} +1 -1
- package/dist/ripple/p-a58ae308.system.entry.js +1 -0
- package/dist/ripple/p-a5bdcf1b.entry.js +1 -0
- package/dist/ripple/p-a81d3859.entry.js +1 -0
- package/dist/ripple/{p-957e8a70.entry.js → p-b254cdce.entry.js} +1 -1
- package/dist/ripple/p-b26f4852.entry.js +1 -0
- package/dist/{components/p-DG_w4q3M.js → ripple/p-b55bb2ab.entry.js} +1 -196
- package/dist/{components/wm-progress-monitor.js → ripple/p-b65b9b4c.entry.js} +1 -93
- package/dist/ripple/{p-a7f2af01.entry.js → p-bbb37d6e.entry.js} +1 -1
- package/dist/ripple/p-bf8e69a3.js +1 -0
- package/dist/ripple/p-c234c194.system.js +1 -0
- package/dist/ripple/{p-384d9208.system.entry.js → p-c3ab1c4b.system.entry.js} +1 -1
- package/dist/ripple/p-c4984ca1.system.js +1 -0
- package/dist/ripple/p-c8ef0086.entry.js +1 -0
- package/dist/ripple/p-c94ce42f.js +1 -0
- package/dist/ripple/{p-9a0216ba.entry.js → p-ca6bf276.entry.js} +1 -1
- package/dist/ripple/{p-74243614.system.entry.js → p-cbfb44b5.system.entry.js} +1 -1
- package/dist/ripple/{p-492a8a9f.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/{p-99d53b0e.system.entry.js → p-cd5c59ef.system.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/{p-3e5a7fee.system.entry.js → p-d332cc27.system.entry.js} +1 -1
- package/dist/ripple/{p-ea7a4ac1.system.entry.js → p-d3adbf48.system.entry.js} +1 -1
- package/dist/ripple/{p-ae58e2d1.system.entry.js → p-d4f082db.system.entry.js} +1 -1
- package/dist/{components/wm-toggletip.js → ripple/p-d837c7d4.entry.js} +1 -200
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/{p-0MnNQzHy.js → p-dd680e24.js} +1 -1
- package/dist/ripple/{p-9a72e53c.system.entry.js → p-de13b15f.system.entry.js} +1 -1
- package/dist/ripple/{p-2f1ffab1.system.entry.js → p-de5b5ff0.system.entry.js} +1 -1
- package/dist/ripple/p-e156c0c2.entry.js +1 -0
- package/dist/ripple/{p-fce91d27.system.entry.js → p-e455876c.system.entry.js} +1 -1
- package/dist/ripple/{p-3042aae4.entry.js → p-e9c4ed97.entry.js} +1 -1
- package/dist/ripple/p-eb74d85f.entry.js +1 -0
- package/dist/ripple/p-ed5dfa29.entry.js +1 -0
- package/dist/ripple/{p-84a4735d.system.entry.js → p-ee4026e0.system.entry.js} +1 -1
- package/dist/ripple/{p-4862126f.entry.js → p-f1b36057.entry.js} +1 -1
- package/dist/ripple/{p-e77d4c21.system.entry.js → p-f37094fe.system.entry.js} +1 -1
- package/dist/ripple/p-f912ce26.system.entry.js +1 -0
- package/dist/ripple/p-fadea131.entry.js +1 -0
- package/dist/ripple/{p-cd81d7de.system.entry.js → p-ff650269.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +6 -23
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -85
- package/dist/components/p-BlQdbOh_.js +0 -294
- package/dist/components/p-BvE5BEYe.js +0 -146
- package/dist/components/p-BzGDMpdL.js +0 -592
- package/dist/components/p-CWx2NF6K.js +0 -231
- package/dist/components/p-D9GMUh0-.js +0 -231
- package/dist/components/p-DCSxoWXP.js +0 -421
- package/dist/components/p-DvXS4oTB.js +0 -49
- package/dist/components/p-HPnDWE3g.js +0 -1686
- package/dist/components/p-e_A35rK5.js +0 -154
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-calendar.js +0 -6
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-chart-popover.js +0 -6
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-button.js +0 -6
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-navigator-item.js +0 -6
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/priv-option-list.js +0 -6
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-action-menu.js +0 -6
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-button.js +0 -6
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart-slice.js +0 -41
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-chart.js +0 -197
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-date-range.js +0 -522
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-datepicker.js +0 -287
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file-list.js +0 -38
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-file.js +0 -228
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-flyout.js +0 -208
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-input.js +0 -152
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-line-chart.js +0 -497
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-menuitem.js +0 -6
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-footer.js +0 -73
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-header.js +0 -61
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.js +0 -69
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.js +0 -64
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal-pss.js +0 -162
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-modal.js +0 -161
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.js +0 -70
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation-item.js +0 -40
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigation.js +0 -144
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-navigator.js +0 -369
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-nested-select.js +0 -343
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-optgroup.js +0 -107
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-option.js +0 -6
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-pagination.js +0 -251
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-indicator.js +0 -144
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-progress-slice.js +0 -37
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-search.js +0 -250
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-select.js +0 -6
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-snackbar.js +0 -209
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-item.js +0 -85
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-list.js +0 -217
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tab-panel.js +0 -52
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-input.js +0 -919
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-tag-option.js +0 -63
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-textarea.js +0 -113
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-timepicker.js +0 -333
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-uploader.js +0 -348
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/components/wm-wrapper.js +0 -34
- package/dist/esm/chartFunctions-Cmh1Ji0o.js +0 -724
- package/dist/esm/functions-C2kwukaR.js +0 -10485
- package/dist/esm/interfaces-COwzv5zO.js +0 -34
- package/dist/esm/intl-DeM2tf6d.js +0 -277
- package/dist/esm-es5/chartFunctions-Cmh1Ji0o.js +0 -1
- package/dist/esm-es5/functions-C2kwukaR.js +0 -1
- package/dist/esm-es5/index-EopL5zo4.js +0 -1
- package/dist/ripple/p-090ee1d9.entry.js +0 -1
- package/dist/ripple/p-25e1a9f9.entry.js +0 -1
- package/dist/ripple/p-30fb07a2.entry.js +0 -1
- package/dist/ripple/p-338b089a.entry.js +0 -1
- package/dist/ripple/p-340b73a9.system.entry.js +0 -1
- package/dist/ripple/p-3611aa0e.entry.js +0 -1
- package/dist/ripple/p-3b828dcd.entry.js +0 -1
- package/dist/ripple/p-3c54de9c.entry.js +0 -1
- package/dist/ripple/p-52e54dca.entry.js +0 -1
- package/dist/ripple/p-54aeadde.entry.js +0 -1
- package/dist/ripple/p-6838c144.entry.js +0 -1
- package/dist/ripple/p-774c49cd.entry.js +0 -1
- package/dist/ripple/p-782951b7.system.entry.js +0 -1
- package/dist/ripple/p-7aa9c503.entry.js +0 -1
- package/dist/ripple/p-85bdcfc2.entry.js +0 -1
- package/dist/ripple/p-9111db61.entry.js +0 -1
- package/dist/ripple/p-9583f20a.entry.js +0 -1
- package/dist/ripple/p-BzeVid5V.system.js +0 -1
- package/dist/ripple/p-C2kwukaR.js +0 -1
- package/dist/ripple/p-CG434V5a.system.js +0 -1
- package/dist/ripple/p-CTau6pR2.system.js +0 -2
- package/dist/ripple/p-CxDIDZPI.js +0 -1
- package/dist/ripple/p-EopL5zo4.js +0 -2
- package/dist/ripple/p-a121c779.entry.js +0 -1
- package/dist/ripple/p-a3c4aa31.entry.js +0 -1
- package/dist/ripple/p-a46a28c9.entry.js +0 -1
- package/dist/ripple/p-a6890863.entry.js +0 -1
- package/dist/ripple/p-b077fe55.system.entry.js +0 -1
- package/dist/ripple/p-c0440211.entry.js +0 -1
- package/dist/ripple/p-d77338ae.entry.js +0 -1
- package/dist/ripple/p-e3fb63fd.entry.js +0 -1
- package/dist/ripple/p-e3fc3c6b.entry.js +0 -1
- package/dist/ripple/p-ec611502.entry.js +0 -1
- package/dist/ripple/p-rcj5tIF6.system.js +0 -1
- package/dist/ripple/p-wFWSStJ9.system.js +0 -1
- /package/dist/cjs/{interfaces-C7YbtGnk.js → interfaces-85d78ae9.js} +0 -0
- /package/dist/{components/p-COwzv5zO.js → esm/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
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'ripple';
|
|
2
|
-
const BUILD = /* ripple */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
2
|
+
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 };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
|
-
var getHostRef = (ref) => {
|
|
19
|
-
if (ref.__stencil__getHostRef) {
|
|
20
|
-
return ref.__stencil__getHostRef();
|
|
21
|
-
}
|
|
22
|
-
return void 0;
|
|
23
|
-
};
|
|
24
|
-
var registerInstance = (lazyInstance, hostRef) => {
|
|
25
|
-
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
26
|
-
hostRef.$lazyInstance$ = lazyInstance;
|
|
27
|
-
};
|
|
12
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
28
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
29
16
|
const hostRef = {
|
|
30
17
|
$flags$: 0,
|
|
@@ -40,9 +27,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
40
27
|
hostElement["s-p"] = [];
|
|
41
28
|
hostElement["s-rc"] = [];
|
|
42
29
|
}
|
|
43
|
-
|
|
44
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
45
|
-
return ref;
|
|
30
|
+
return hostRefs.set(hostElement, hostRef);
|
|
46
31
|
};
|
|
47
32
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
48
33
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -67,18 +52,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
67
52
|
}
|
|
68
53
|
switch(bundleId) {
|
|
69
54
|
|
|
70
|
-
case 'wm-tag-option':
|
|
71
|
-
return import(
|
|
72
|
-
/* webpackMode: "lazy" */
|
|
73
|
-
'./wm-tag-option.entry.js').then(processMod, consoleError);
|
|
74
|
-
case 'wm-wrapper':
|
|
75
|
-
return import(
|
|
76
|
-
/* webpackMode: "lazy" */
|
|
77
|
-
'./wm-wrapper.entry.js').then(processMod, consoleError);
|
|
78
|
-
case 'wm-chart-slice':
|
|
79
|
-
return import(
|
|
80
|
-
/* webpackMode: "lazy" */
|
|
81
|
-
'./wm-chart-slice.entry.js').then(processMod, consoleError);
|
|
82
55
|
case 'wm-button':
|
|
83
56
|
return import(
|
|
84
57
|
/* webpackMode: "lazy" */
|
|
@@ -99,10 +72,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
99
72
|
return import(
|
|
100
73
|
/* webpackMode: "lazy" */
|
|
101
74
|
'./wm-file-list.entry.js').then(processMod, consoleError);
|
|
75
|
+
case 'wm-flyout':
|
|
76
|
+
return import(
|
|
77
|
+
/* webpackMode: "lazy" */
|
|
78
|
+
'./wm-flyout.entry.js').then(processMod, consoleError);
|
|
102
79
|
case 'wm-input':
|
|
103
80
|
return import(
|
|
104
81
|
/* webpackMode: "lazy" */
|
|
105
82
|
'./wm-input.entry.js').then(processMod, consoleError);
|
|
83
|
+
case 'wm-navigator':
|
|
84
|
+
return import(
|
|
85
|
+
/* webpackMode: "lazy" */
|
|
86
|
+
'./wm-navigator.entry.js').then(processMod, consoleError);
|
|
106
87
|
case 'wm-pagination':
|
|
107
88
|
return import(
|
|
108
89
|
/* webpackMode: "lazy" */
|
|
@@ -127,6 +108,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
127
108
|
return import(
|
|
128
109
|
/* webpackMode: "lazy" */
|
|
129
110
|
'./wm-tag-input.entry.js').then(processMod, consoleError);
|
|
111
|
+
case 'wm-tag-option':
|
|
112
|
+
return import(
|
|
113
|
+
/* webpackMode: "lazy" */
|
|
114
|
+
'./wm-tag-option.entry.js').then(processMod, consoleError);
|
|
130
115
|
case 'wm-textarea':
|
|
131
116
|
return import(
|
|
132
117
|
/* webpackMode: "lazy" */
|
|
@@ -135,78 +120,78 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
135
120
|
return import(
|
|
136
121
|
/* webpackMode: "lazy" */
|
|
137
122
|
'./wm-uploader.entry.js').then(processMod, consoleError);
|
|
138
|
-
case 'wm-
|
|
123
|
+
case 'wm-wrapper':
|
|
139
124
|
return import(
|
|
140
125
|
/* webpackMode: "lazy" */
|
|
141
|
-
'./wm-
|
|
142
|
-
case 'wm-
|
|
126
|
+
'./wm-wrapper.entry.js').then(processMod, consoleError);
|
|
127
|
+
case 'wm-action-menu_2':
|
|
143
128
|
return import(
|
|
144
129
|
/* webpackMode: "lazy" */
|
|
145
|
-
'./wm-
|
|
146
|
-
case 'wm-
|
|
130
|
+
'./wm-action-menu_2.entry.js').then(processMod, consoleError);
|
|
131
|
+
case 'wm-option_2':
|
|
147
132
|
return import(
|
|
148
133
|
/* webpackMode: "lazy" */
|
|
149
|
-
'./wm-
|
|
150
|
-
case 'wm-
|
|
134
|
+
'./wm-option_2.entry.js').then(processMod, consoleError);
|
|
135
|
+
case 'wm-modal_3':
|
|
151
136
|
return import(
|
|
152
137
|
/* webpackMode: "lazy" */
|
|
153
|
-
'./wm-
|
|
154
|
-
case 'wm-
|
|
138
|
+
'./wm-modal_3.entry.js').then(processMod, consoleError);
|
|
139
|
+
case 'wm-modal-pss_3':
|
|
155
140
|
return import(
|
|
156
141
|
/* webpackMode: "lazy" */
|
|
157
|
-
'./wm-
|
|
158
|
-
case '
|
|
142
|
+
'./wm-modal-pss_3.entry.js').then(processMod, consoleError);
|
|
143
|
+
case 'wm-navigation_3':
|
|
159
144
|
return import(
|
|
160
145
|
/* webpackMode: "lazy" */
|
|
161
|
-
'./
|
|
162
|
-
case '
|
|
146
|
+
'./wm-navigation_3.entry.js').then(processMod, consoleError);
|
|
147
|
+
case 'wm-progress-indicator_3':
|
|
163
148
|
return import(
|
|
164
149
|
/* webpackMode: "lazy" */
|
|
165
|
-
'./
|
|
166
|
-
case '
|
|
150
|
+
'./wm-progress-indicator_3.entry.js').then(processMod, consoleError);
|
|
151
|
+
case 'wm-tab-item_3':
|
|
167
152
|
return import(
|
|
168
153
|
/* webpackMode: "lazy" */
|
|
169
|
-
'./
|
|
170
|
-
case '
|
|
154
|
+
'./wm-tab-item_3.entry.js').then(processMod, consoleError);
|
|
155
|
+
case 'wm-chart-slice':
|
|
171
156
|
return import(
|
|
172
157
|
/* webpackMode: "lazy" */
|
|
173
|
-
'./
|
|
174
|
-
case '
|
|
158
|
+
'./wm-chart-slice.entry.js').then(processMod, consoleError);
|
|
159
|
+
case 'wm-date-range':
|
|
175
160
|
return import(
|
|
176
161
|
/* webpackMode: "lazy" */
|
|
177
|
-
'./
|
|
178
|
-
case 'wm-
|
|
162
|
+
'./wm-date-range.entry.js').then(processMod, consoleError);
|
|
163
|
+
case 'wm-line-chart':
|
|
179
164
|
return import(
|
|
180
165
|
/* webpackMode: "lazy" */
|
|
181
|
-
'./wm-
|
|
182
|
-
case 'wm-
|
|
166
|
+
'./wm-line-chart.entry.js').then(processMod, consoleError);
|
|
167
|
+
case 'wm-nested-select':
|
|
183
168
|
return import(
|
|
184
169
|
/* webpackMode: "lazy" */
|
|
185
|
-
'./wm-
|
|
186
|
-
case 'wm-
|
|
170
|
+
'./wm-nested-select.entry.js').then(processMod, consoleError);
|
|
171
|
+
case 'wm-optgroup':
|
|
187
172
|
return import(
|
|
188
173
|
/* webpackMode: "lazy" */
|
|
189
|
-
'./wm-
|
|
190
|
-
case '
|
|
174
|
+
'./wm-optgroup.entry.js').then(processMod, consoleError);
|
|
175
|
+
case 'priv-navigator-button':
|
|
191
176
|
return import(
|
|
192
177
|
/* webpackMode: "lazy" */
|
|
193
|
-
'./
|
|
194
|
-
case '
|
|
178
|
+
'./priv-navigator-button.entry.js').then(processMod, consoleError);
|
|
179
|
+
case 'priv-navigator-item':
|
|
195
180
|
return import(
|
|
196
181
|
/* webpackMode: "lazy" */
|
|
197
|
-
'./
|
|
198
|
-
case '
|
|
182
|
+
'./priv-navigator-item.entry.js').then(processMod, consoleError);
|
|
183
|
+
case 'priv-calendar':
|
|
199
184
|
return import(
|
|
200
185
|
/* webpackMode: "lazy" */
|
|
201
|
-
'./
|
|
202
|
-
case '
|
|
186
|
+
'./priv-calendar.entry.js').then(processMod, consoleError);
|
|
187
|
+
case 'priv-chart-popover':
|
|
203
188
|
return import(
|
|
204
189
|
/* webpackMode: "lazy" */
|
|
205
|
-
'./
|
|
206
|
-
case '
|
|
190
|
+
'./priv-chart-popover.entry.js').then(processMod, consoleError);
|
|
191
|
+
case 'priv-option-list':
|
|
207
192
|
return import(
|
|
208
193
|
/* webpackMode: "lazy" */
|
|
209
|
-
'./
|
|
194
|
+
'./priv-option-list.entry.js').then(processMod, consoleError);
|
|
210
195
|
}
|
|
211
196
|
}
|
|
212
197
|
return import(
|
|
@@ -215,26 +200,21 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
215
200
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
216
201
|
/* webpackMode: "lazy" */
|
|
217
202
|
`./${bundleId}.entry.js${""}`
|
|
218
|
-
).then(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
cmpModules.set(bundleId, importedModule);
|
|
222
|
-
}
|
|
223
|
-
return importedModule[exportName];
|
|
224
|
-
},
|
|
225
|
-
(e) => {
|
|
226
|
-
consoleError(e, hostRef.$hostElement$);
|
|
203
|
+
).then((importedModule) => {
|
|
204
|
+
{
|
|
205
|
+
cmpModules.set(bundleId, importedModule);
|
|
227
206
|
}
|
|
228
|
-
|
|
207
|
+
return importedModule[exportName];
|
|
208
|
+
}, consoleError);
|
|
229
209
|
};
|
|
230
210
|
|
|
231
211
|
// src/client/client-style.ts
|
|
232
212
|
var styles = /* @__PURE__ */ new Map();
|
|
233
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
234
213
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
235
214
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
236
215
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
237
216
|
var win = typeof window !== "undefined" ? window : {};
|
|
217
|
+
var doc = win.document || { head: {} };
|
|
238
218
|
var plt = {
|
|
239
219
|
$flags$: 0,
|
|
240
220
|
$resourcesUrl$: "",
|
|
@@ -245,10 +225,9 @@ var plt = {
|
|
|
245
225
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
246
226
|
};
|
|
247
227
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
248
|
-
var _a;
|
|
249
228
|
let supportsListenerOptions2 = false;
|
|
250
229
|
try {
|
|
251
|
-
|
|
230
|
+
doc.addEventListener(
|
|
252
231
|
"e",
|
|
253
232
|
null,
|
|
254
233
|
Object.defineProperty({}, "passive", {
|
|
@@ -305,22 +284,25 @@ var flush = () => {
|
|
|
305
284
|
};
|
|
306
285
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
307
286
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
287
|
+
|
|
288
|
+
// src/utils/constants.ts
|
|
289
|
+
var EMPTY_OBJ = {};
|
|
290
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
291
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
292
|
+
|
|
293
|
+
// src/utils/helpers.ts
|
|
294
|
+
var isDef = (v) => v != null;
|
|
308
295
|
var isComplexType = (o) => {
|
|
309
296
|
o = typeof o;
|
|
310
297
|
return o === "object" || o === "function";
|
|
311
298
|
};
|
|
312
299
|
|
|
313
300
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
314
|
-
function queryNonceMetaTagContent(
|
|
301
|
+
function queryNonceMetaTagContent(doc2) {
|
|
315
302
|
var _a, _b, _c;
|
|
316
|
-
return (_c = (_b = (_a =
|
|
303
|
+
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;
|
|
317
304
|
}
|
|
318
305
|
|
|
319
|
-
// src/utils/regular-expression.ts
|
|
320
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
321
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
322
|
-
};
|
|
323
|
-
|
|
324
306
|
// src/utils/result.ts
|
|
325
307
|
var result_exports = {};
|
|
326
308
|
__export(result_exports, {
|
|
@@ -369,112 +351,6 @@ var unwrapErr = (result) => {
|
|
|
369
351
|
throw result.value;
|
|
370
352
|
}
|
|
371
353
|
};
|
|
372
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
373
|
-
const childNodes = internalCall(elm, "childNodes");
|
|
374
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
375
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
376
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
377
|
-
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
378
|
-
slotNode.hidden = true;
|
|
379
|
-
} else {
|
|
380
|
-
slotNode.hidden = false;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
let i2 = 0;
|
|
386
|
-
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
387
|
-
const childNode = childNodes[i2];
|
|
388
|
-
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
389
|
-
updateFallbackSlotVisibility(childNode);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
var getSlottedChildNodes = (childNodes) => {
|
|
394
|
-
const result = [];
|
|
395
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
396
|
-
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
397
|
-
if (slottedNode && slottedNode.isConnected) {
|
|
398
|
-
result.push(slottedNode);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
return result;
|
|
402
|
-
};
|
|
403
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
404
|
-
let i2 = 0;
|
|
405
|
-
let slottedNodes = [];
|
|
406
|
-
let childNode;
|
|
407
|
-
for (; i2 < childNodes.length; i2++) {
|
|
408
|
-
childNode = childNodes[i2];
|
|
409
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
410
|
-
slottedNodes.push(childNode);
|
|
411
|
-
}
|
|
412
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
413
|
-
}
|
|
414
|
-
return slottedNodes;
|
|
415
|
-
}
|
|
416
|
-
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
417
|
-
const childNodes = [];
|
|
418
|
-
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
419
|
-
let node = slot;
|
|
420
|
-
while (node = node.nextSibling) {
|
|
421
|
-
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
422
|
-
}
|
|
423
|
-
return childNodes;
|
|
424
|
-
};
|
|
425
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
426
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
427
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
428
|
-
return true;
|
|
429
|
-
}
|
|
430
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
431
|
-
return true;
|
|
432
|
-
}
|
|
433
|
-
return false;
|
|
434
|
-
}
|
|
435
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
436
|
-
return true;
|
|
437
|
-
}
|
|
438
|
-
return slotName === "";
|
|
439
|
-
};
|
|
440
|
-
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
441
|
-
function patchSlotNode(node) {
|
|
442
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
443
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
444
|
-
const toReturn = [];
|
|
445
|
-
const slotName = this["s-sn"];
|
|
446
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
447
|
-
console.error(`
|
|
448
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
449
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
450
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
451
|
-
`);
|
|
452
|
-
}
|
|
453
|
-
const parent = this["s-cr"].parentElement;
|
|
454
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
455
|
-
slottedNodes.forEach((n) => {
|
|
456
|
-
if (slotName === getSlotName(n)) {
|
|
457
|
-
toReturn.push(n);
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
if (elementsOnly) {
|
|
461
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
462
|
-
}
|
|
463
|
-
return toReturn;
|
|
464
|
-
}).bind(node);
|
|
465
|
-
node.assignedElements = assignedFactory(true);
|
|
466
|
-
node.assignedNodes = assignedFactory(false);
|
|
467
|
-
}
|
|
468
|
-
function internalCall(node, method) {
|
|
469
|
-
if ("__" + method in node) {
|
|
470
|
-
const toReturn = node["__" + method];
|
|
471
|
-
if (typeof toReturn !== "function") return toReturn;
|
|
472
|
-
return toReturn.bind(node);
|
|
473
|
-
} else {
|
|
474
|
-
if (typeof node[method] !== "function") return node[method];
|
|
475
|
-
return node[method].bind(node);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
354
|
var createTime = (fnName, tagName = "") => {
|
|
479
355
|
{
|
|
480
356
|
return () => {
|
|
@@ -600,25 +476,13 @@ var convertToPrivate = (node) => {
|
|
|
600
476
|
vnode.$name$ = node.vname;
|
|
601
477
|
return vnode;
|
|
602
478
|
};
|
|
603
|
-
var createSupportsRuleRe = (selector) => {
|
|
604
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
605
|
-
return new RegExp(
|
|
606
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
607
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
608
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
609
|
-
"g"
|
|
610
|
-
);
|
|
611
|
-
};
|
|
612
|
-
createSupportsRuleRe("::slotted");
|
|
613
|
-
createSupportsRuleRe(":host");
|
|
614
|
-
createSupportsRuleRe(":host-context");
|
|
615
479
|
var parsePropertyValue = (propValue, propType) => {
|
|
616
480
|
if (propValue != null && !isComplexType(propValue)) {
|
|
617
481
|
if (propType & 4 /* Boolean */) {
|
|
618
482
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
619
483
|
}
|
|
620
484
|
if (propType & 2 /* Number */) {
|
|
621
|
-
return
|
|
485
|
+
return parseFloat(propValue);
|
|
622
486
|
}
|
|
623
487
|
if (propType & 1 /* String */) {
|
|
624
488
|
return String(propValue);
|
|
@@ -667,10 +531,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
667
531
|
var _a;
|
|
668
532
|
const scopeId2 = getScopeId(cmpMeta);
|
|
669
533
|
const style = styles.get(scopeId2);
|
|
670
|
-
|
|
671
|
-
return scopeId2;
|
|
672
|
-
}
|
|
673
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
534
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
674
535
|
if (style) {
|
|
675
536
|
if (typeof style === "string") {
|
|
676
537
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -681,38 +542,24 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
681
542
|
}
|
|
682
543
|
if (!appliedStyles.has(scopeId2)) {
|
|
683
544
|
{
|
|
684
|
-
styleElm =
|
|
545
|
+
styleElm = doc.createElement("style");
|
|
685
546
|
styleElm.innerHTML = style;
|
|
686
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
547
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
687
548
|
if (nonce != null) {
|
|
688
549
|
styleElm.setAttribute("nonce", nonce);
|
|
689
550
|
}
|
|
690
551
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
691
552
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
692
553
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
693
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
694
|
-
styleContainerNode.insertBefore(
|
|
695
|
-
styleElm,
|
|
696
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
697
|
-
);
|
|
554
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
|
|
555
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
698
556
|
} else if ("host" in styleContainerNode) {
|
|
699
|
-
|
|
700
|
-
const stylesheet = new CSSStyleSheet();
|
|
701
|
-
stylesheet.replaceSync(style);
|
|
702
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
703
|
-
} else {
|
|
704
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
705
|
-
if (existingStyleContainer) {
|
|
706
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
707
|
-
} else {
|
|
708
|
-
styleContainerNode.prepend(styleElm);
|
|
709
|
-
}
|
|
710
|
-
}
|
|
557
|
+
styleContainerNode.prepend(styleElm);
|
|
711
558
|
} else {
|
|
712
559
|
styleContainerNode.append(styleElm);
|
|
713
560
|
}
|
|
714
561
|
}
|
|
715
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
562
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
716
563
|
styleContainerNode.insertBefore(styleElm, null);
|
|
717
564
|
}
|
|
718
565
|
}
|
|
@@ -737,155 +584,132 @@ var attachStyles = (hostRef) => {
|
|
|
737
584
|
const scopeId2 = addStyle(
|
|
738
585
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
739
586
|
cmpMeta);
|
|
740
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
587
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
741
588
|
elm["s-sc"] = scopeId2;
|
|
742
589
|
elm.classList.add(scopeId2 + "-h");
|
|
743
590
|
}
|
|
744
591
|
endAttachStyles();
|
|
745
592
|
};
|
|
746
593
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
747
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
748
|
-
if (oldValue
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
const oldClasses = parseClassList(oldValue);
|
|
756
|
-
let newClasses = parseClassList(newValue);
|
|
757
|
-
{
|
|
594
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
595
|
+
if (oldValue !== newValue) {
|
|
596
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
597
|
+
let ln = memberName.toLowerCase();
|
|
598
|
+
if (memberName === "class") {
|
|
599
|
+
const classList = elm.classList;
|
|
600
|
+
const oldClasses = parseClassList(oldValue);
|
|
601
|
+
const newClasses = parseClassList(newValue);
|
|
758
602
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
759
603
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
604
|
+
} else if (memberName === "style") {
|
|
605
|
+
{
|
|
606
|
+
for (const prop in oldValue) {
|
|
607
|
+
if (!newValue || newValue[prop] == null) {
|
|
608
|
+
if (prop.includes("-")) {
|
|
609
|
+
elm.style.removeProperty(prop);
|
|
610
|
+
} else {
|
|
611
|
+
elm.style[prop] = "";
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
for (const prop in newValue) {
|
|
617
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
765
618
|
if (prop.includes("-")) {
|
|
766
|
-
elm.style.
|
|
619
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
767
620
|
} else {
|
|
768
|
-
elm.style[prop] =
|
|
621
|
+
elm.style[prop] = newValue[prop];
|
|
769
622
|
}
|
|
770
623
|
}
|
|
771
624
|
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
if (prop.includes("-")) {
|
|
776
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
777
|
-
} else {
|
|
778
|
-
elm.style[prop] = newValue[prop];
|
|
779
|
-
}
|
|
625
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
626
|
+
if (newValue) {
|
|
627
|
+
newValue(elm);
|
|
780
628
|
}
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
memberName = memberName.slice(3);
|
|
789
|
-
} else if (isMemberInElement(win, ln)) {
|
|
790
|
-
memberName = ln.slice(2);
|
|
791
|
-
} else {
|
|
792
|
-
memberName = ln[2] + memberName.slice(3);
|
|
793
|
-
}
|
|
794
|
-
if (oldValue || newValue) {
|
|
795
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
796
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
797
|
-
if (oldValue) {
|
|
798
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
629
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
630
|
+
if (memberName[2] === "-") {
|
|
631
|
+
memberName = memberName.slice(3);
|
|
632
|
+
} else if (isMemberInElement(win, ln)) {
|
|
633
|
+
memberName = ln.slice(2);
|
|
634
|
+
} else {
|
|
635
|
+
memberName = ln[2] + memberName.slice(3);
|
|
799
636
|
}
|
|
800
|
-
if (newValue) {
|
|
801
|
-
|
|
637
|
+
if (oldValue || newValue) {
|
|
638
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
639
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
640
|
+
if (oldValue) {
|
|
641
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
642
|
+
}
|
|
643
|
+
if (newValue) {
|
|
644
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
645
|
+
}
|
|
802
646
|
}
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
647
|
+
} else {
|
|
648
|
+
const isComplex = isComplexType(newValue);
|
|
649
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
650
|
+
try {
|
|
651
|
+
if (!elm.tagName.includes("-")) {
|
|
652
|
+
const n = newValue == null ? "" : newValue;
|
|
653
|
+
if (memberName === "list") {
|
|
654
|
+
isProp = false;
|
|
655
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
656
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
657
|
+
elm[memberName] = n;
|
|
658
|
+
} else {
|
|
659
|
+
elm.setAttribute(memberName, n);
|
|
660
|
+
}
|
|
817
661
|
}
|
|
662
|
+
} else {
|
|
663
|
+
elm[memberName] = newValue;
|
|
818
664
|
}
|
|
819
|
-
}
|
|
820
|
-
elm[memberName] = newValue;
|
|
665
|
+
} catch (e) {
|
|
821
666
|
}
|
|
822
|
-
} catch (e) {
|
|
823
667
|
}
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
668
|
+
let xlink = false;
|
|
669
|
+
{
|
|
670
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
671
|
+
memberName = ln;
|
|
672
|
+
xlink = true;
|
|
673
|
+
}
|
|
830
674
|
}
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
675
|
+
if (newValue == null || newValue === false) {
|
|
676
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
677
|
+
if (xlink) {
|
|
678
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
679
|
+
} else {
|
|
680
|
+
elm.removeAttribute(memberName);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
684
|
+
newValue = newValue === true ? "" : newValue;
|
|
834
685
|
if (xlink) {
|
|
835
|
-
elm.
|
|
686
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
836
687
|
} else {
|
|
837
|
-
elm.
|
|
688
|
+
elm.setAttribute(memberName, newValue);
|
|
838
689
|
}
|
|
839
690
|
}
|
|
840
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
841
|
-
newValue = newValue === true ? "" : newValue;
|
|
842
|
-
if (xlink) {
|
|
843
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
844
|
-
} else {
|
|
845
|
-
elm.setAttribute(memberName, newValue);
|
|
846
|
-
}
|
|
847
691
|
}
|
|
848
692
|
}
|
|
849
693
|
};
|
|
850
694
|
var parseClassListRegex = /\s/;
|
|
851
|
-
var parseClassList = (value) =>
|
|
852
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
853
|
-
value = value.baseVal;
|
|
854
|
-
}
|
|
855
|
-
if (!value || typeof value !== "string") {
|
|
856
|
-
return [];
|
|
857
|
-
}
|
|
858
|
-
return value.split(parseClassListRegex);
|
|
859
|
-
};
|
|
695
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
860
696
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
861
697
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
862
698
|
|
|
863
699
|
// src/runtime/vdom/update-element.ts
|
|
864
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
700
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
865
701
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
866
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
867
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
702
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
703
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
868
704
|
{
|
|
869
705
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
870
706
|
if (!(memberName in newVnodeAttrs)) {
|
|
871
|
-
setAccessor(
|
|
872
|
-
elm,
|
|
873
|
-
memberName,
|
|
874
|
-
oldVnodeAttrs[memberName],
|
|
875
|
-
void 0,
|
|
876
|
-
isSvgMode2,
|
|
877
|
-
newVnode.$flags$);
|
|
707
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
878
708
|
}
|
|
879
709
|
}
|
|
880
710
|
}
|
|
881
711
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
882
|
-
setAccessor(
|
|
883
|
-
elm,
|
|
884
|
-
memberName,
|
|
885
|
-
oldVnodeAttrs[memberName],
|
|
886
|
-
newVnodeAttrs[memberName],
|
|
887
|
-
isSvgMode2,
|
|
888
|
-
newVnode.$flags$);
|
|
712
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
889
713
|
}
|
|
890
714
|
};
|
|
891
715
|
function sortedAttrNames(attrNames) {
|
|
@@ -897,13 +721,16 @@ function sortedAttrNames(attrNames) {
|
|
|
897
721
|
attrNames
|
|
898
722
|
);
|
|
899
723
|
}
|
|
724
|
+
|
|
725
|
+
// src/runtime/vdom/vdom-render.ts
|
|
726
|
+
var scopeId;
|
|
900
727
|
var contentRef;
|
|
901
728
|
var hostTagName;
|
|
902
729
|
var useNativeShadowDom = false;
|
|
903
730
|
var checkSlotFallbackVisibility = false;
|
|
904
731
|
var checkSlotRelocate = false;
|
|
905
732
|
var isSvgMode = false;
|
|
906
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
733
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
907
734
|
var _a;
|
|
908
735
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
909
736
|
let i2 = 0;
|
|
@@ -913,6 +740,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
913
740
|
if (!useNativeShadowDom) {
|
|
914
741
|
checkSlotRelocate = true;
|
|
915
742
|
if (newVNode2.$tag$ === "slot") {
|
|
743
|
+
if (scopeId) {
|
|
744
|
+
parentElm.classList.add(scopeId + "-s");
|
|
745
|
+
}
|
|
916
746
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
917
747
|
// slot element has fallback content
|
|
918
748
|
// still create an element that "mocks" the slot element
|
|
@@ -926,22 +756,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
926
756
|
}
|
|
927
757
|
}
|
|
928
758
|
if (newVNode2.$text$ !== null) {
|
|
929
|
-
elm = newVNode2.$elm$ =
|
|
759
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
930
760
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
931
|
-
elm = newVNode2.$elm$ =
|
|
932
|
-
{
|
|
933
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
934
|
-
}
|
|
761
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
935
762
|
} else {
|
|
936
763
|
if (!isSvgMode) {
|
|
937
764
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
938
765
|
}
|
|
939
|
-
|
|
940
|
-
throw new Error(
|
|
941
|
-
"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."
|
|
942
|
-
);
|
|
943
|
-
}
|
|
944
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
766
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
945
767
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
946
768
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
947
769
|
) ;
|
|
@@ -951,9 +773,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
951
773
|
{
|
|
952
774
|
updateElement(null, newVNode2, isSvgMode);
|
|
953
775
|
}
|
|
776
|
+
const rootNode = elm.getRootNode();
|
|
777
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
778
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
779
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
780
|
+
}
|
|
954
781
|
if (newVNode2.$children$) {
|
|
955
782
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
956
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
783
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
957
784
|
if (childNode) {
|
|
958
785
|
elm.appendChild(childNode);
|
|
959
786
|
}
|
|
@@ -974,7 +801,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
974
801
|
elm["s-cr"] = contentRef;
|
|
975
802
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
976
803
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
977
|
-
patchSlotNode(elm);
|
|
978
804
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
979
805
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
980
806
|
{
|
|
@@ -987,11 +813,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
987
813
|
};
|
|
988
814
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
989
815
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
990
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
816
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
817
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
818
|
+
let node = parentElm;
|
|
819
|
+
while (node = node.nextSibling) {
|
|
820
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
821
|
+
oldSlotChildNodes.push(node);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
}
|
|
991
825
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
992
826
|
const childNode = oldSlotChildNodes[i2];
|
|
993
827
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
994
|
-
insertBefore(
|
|
828
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
995
829
|
childNode["s-ol"].remove();
|
|
996
830
|
childNode["s-ol"] = void 0;
|
|
997
831
|
childNode["s-sh"] = void 0;
|
|
@@ -1001,7 +835,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
1001
835
|
putBackInOriginalLocation(childNode, recursive);
|
|
1002
836
|
}
|
|
1003
837
|
}
|
|
1004
|
-
plt.$flags$ &=
|
|
838
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1005
839
|
};
|
|
1006
840
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1007
841
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -1011,7 +845,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
1011
845
|
}
|
|
1012
846
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
1013
847
|
if (vnodes[startIdx]) {
|
|
1014
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
848
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
1015
849
|
if (childNode) {
|
|
1016
850
|
vnodes[startIdx].$elm$ = childNode;
|
|
1017
851
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -1098,7 +932,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1098
932
|
if (idxInOld >= 0) {
|
|
1099
933
|
elmToMove = oldCh[idxInOld];
|
|
1100
934
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1101
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
935
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
1102
936
|
} else {
|
|
1103
937
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1104
938
|
oldCh[idxInOld] = void 0;
|
|
@@ -1106,16 +940,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1106
940
|
}
|
|
1107
941
|
newStartVnode = newCh[++newStartIdx];
|
|
1108
942
|
} else {
|
|
1109
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
943
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
1110
944
|
newStartVnode = newCh[++newStartIdx];
|
|
1111
945
|
}
|
|
1112
946
|
if (node) {
|
|
1113
947
|
{
|
|
1114
|
-
insertBefore(
|
|
1115
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1116
|
-
node,
|
|
1117
|
-
referenceNode(oldStartVnode.$elm$)
|
|
1118
|
-
);
|
|
948
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
1119
949
|
}
|
|
1120
950
|
}
|
|
1121
951
|
}
|
|
@@ -1136,19 +966,28 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1136
966
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1137
967
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1138
968
|
if (leftVNode.$tag$ === "slot") {
|
|
969
|
+
if (
|
|
970
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
971
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
972
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
973
|
+
// hydration comments to be removed
|
|
974
|
+
leftVNode.$elm$.nodeType !== 8
|
|
975
|
+
) {
|
|
976
|
+
return false;
|
|
977
|
+
}
|
|
1139
978
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
1140
979
|
}
|
|
1141
980
|
if (!isInitialRender) {
|
|
1142
981
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
1143
982
|
}
|
|
1144
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
1145
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
1146
|
-
}
|
|
1147
983
|
return true;
|
|
1148
984
|
}
|
|
1149
985
|
return false;
|
|
1150
986
|
};
|
|
1151
|
-
var referenceNode = (node) =>
|
|
987
|
+
var referenceNode = (node) => {
|
|
988
|
+
return node && node["s-ol"] || node;
|
|
989
|
+
};
|
|
990
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
1152
991
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1153
992
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1154
993
|
const oldChildren = oldVNode.$children$;
|
|
@@ -1161,7 +1000,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1161
1000
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1162
1001
|
}
|
|
1163
1002
|
{
|
|
1164
|
-
|
|
1003
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
1004
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1005
|
+
}
|
|
1165
1006
|
}
|
|
1166
1007
|
if (oldChildren !== null && newChildren !== null) {
|
|
1167
1008
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1185,19 +1026,45 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1185
1026
|
elm.data = text;
|
|
1186
1027
|
}
|
|
1187
1028
|
};
|
|
1029
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
1030
|
+
const childNodes = elm.childNodes;
|
|
1031
|
+
for (const childNode of childNodes) {
|
|
1032
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1033
|
+
if (childNode["s-sr"]) {
|
|
1034
|
+
const slotName = childNode["s-sn"];
|
|
1035
|
+
childNode.hidden = false;
|
|
1036
|
+
for (const siblingNode of childNodes) {
|
|
1037
|
+
if (siblingNode !== childNode) {
|
|
1038
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
1039
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
1040
|
+
childNode.hidden = true;
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1043
|
+
} else {
|
|
1044
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
1045
|
+
childNode.hidden = true;
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
updateFallbackSlotVisibility(childNode);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1188
1056
|
var relocateNodes = [];
|
|
1189
1057
|
var markSlotContentForRelocation = (elm) => {
|
|
1190
1058
|
let node;
|
|
1191
1059
|
let hostContentNodes;
|
|
1192
1060
|
let j;
|
|
1193
|
-
const
|
|
1194
|
-
for (const childNode of children) {
|
|
1061
|
+
for (const childNode of elm.childNodes) {
|
|
1195
1062
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1196
|
-
hostContentNodes = node.parentNode.
|
|
1063
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
1197
1064
|
const slotName = childNode["s-sn"];
|
|
1198
1065
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1199
1066
|
node = hostContentNodes[j];
|
|
1200
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (
|
|
1067
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
1201
1068
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1202
1069
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1203
1070
|
checkSlotFallbackVisibility = true;
|
|
@@ -1235,6 +1102,21 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1235
1102
|
}
|
|
1236
1103
|
}
|
|
1237
1104
|
};
|
|
1105
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
1106
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1107
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
1108
|
+
return true;
|
|
1109
|
+
}
|
|
1110
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
1111
|
+
return true;
|
|
1112
|
+
}
|
|
1113
|
+
return false;
|
|
1114
|
+
}
|
|
1115
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
1116
|
+
return true;
|
|
1117
|
+
}
|
|
1118
|
+
return slotName === "";
|
|
1119
|
+
};
|
|
1238
1120
|
var nullifyVNodeRefs = (vNode) => {
|
|
1239
1121
|
{
|
|
1240
1122
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -1242,17 +1124,15 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
1242
1124
|
}
|
|
1243
1125
|
};
|
|
1244
1126
|
var insertBefore = (parent, newNode, reference) => {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
}
|
|
1127
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1128
|
+
return inserted;
|
|
1248
1129
|
};
|
|
1249
1130
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1250
1131
|
var _a, _b, _c, _d;
|
|
1251
1132
|
const hostElm = hostRef.$hostElement$;
|
|
1252
1133
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1253
1134
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1254
|
-
const
|
|
1255
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1135
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1256
1136
|
hostTagName = hostElm.tagName;
|
|
1257
1137
|
if (cmpMeta.$attrsToReflect$) {
|
|
1258
1138
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -1271,7 +1151,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1271
1151
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1272
1152
|
hostRef.$vnode$ = rootVnode;
|
|
1273
1153
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1274
|
-
|
|
1154
|
+
{
|
|
1155
|
+
scopeId = hostElm["s-sc"];
|
|
1156
|
+
}
|
|
1157
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1275
1158
|
{
|
|
1276
1159
|
contentRef = hostElm["s-cr"];
|
|
1277
1160
|
checkSlotFallbackVisibility = false;
|
|
@@ -1283,8 +1166,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1283
1166
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1284
1167
|
for (const relocateData of relocateNodes) {
|
|
1285
1168
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1286
|
-
if (!nodeToRelocate["s-ol"]
|
|
1287
|
-
const orgLocationNode =
|
|
1169
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1170
|
+
const orgLocationNode = doc.createTextNode("");
|
|
1288
1171
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1289
1172
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1290
1173
|
}
|
|
@@ -1299,7 +1182,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1299
1182
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1300
1183
|
while (orgLocationNode) {
|
|
1301
1184
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1302
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef ===
|
|
1185
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1303
1186
|
refNode = refNode.nextSibling;
|
|
1304
1187
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1305
1188
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1312,20 +1195,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1312
1195
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1313
1196
|
}
|
|
1314
1197
|
}
|
|
1315
|
-
|
|
1316
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1317
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1198
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1318
1199
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1319
1200
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1320
1201
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1321
1202
|
}
|
|
1322
1203
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1323
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */
|
|
1204
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1324
1205
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1325
1206
|
}
|
|
1326
1207
|
}
|
|
1327
1208
|
}
|
|
1328
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1209
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
1329
1210
|
} else {
|
|
1330
1211
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1331
1212
|
if (isInitialLoad) {
|
|
@@ -1339,7 +1220,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1339
1220
|
if (checkSlotFallbackVisibility) {
|
|
1340
1221
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1341
1222
|
}
|
|
1342
|
-
plt.$flags$ &=
|
|
1223
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1343
1224
|
relocateNodes.length = 0;
|
|
1344
1225
|
}
|
|
1345
1226
|
contentRef = void 0;
|
|
@@ -1348,14 +1229,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1348
1229
|
// src/runtime/update-component.ts
|
|
1349
1230
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1350
1231
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1351
|
-
|
|
1352
|
-
new Promise(
|
|
1353
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1354
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1355
|
-
r();
|
|
1356
|
-
}
|
|
1357
|
-
)
|
|
1358
|
-
);
|
|
1232
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1359
1233
|
}
|
|
1360
1234
|
};
|
|
1361
1235
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1384,15 +1258,18 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1384
1258
|
{
|
|
1385
1259
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1386
1260
|
if (hostRef.$queuedListeners$) {
|
|
1387
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
1261
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1388
1262
|
hostRef.$queuedListeners$ = void 0;
|
|
1389
1263
|
}
|
|
1390
1264
|
}
|
|
1391
|
-
|
|
1265
|
+
{
|
|
1266
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1267
|
+
}
|
|
1392
1268
|
} else {
|
|
1393
|
-
|
|
1269
|
+
{
|
|
1270
|
+
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
1271
|
+
}
|
|
1394
1272
|
}
|
|
1395
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1396
1273
|
endSchedule();
|
|
1397
1274
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1398
1275
|
};
|
|
@@ -1435,7 +1312,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
1435
1312
|
try {
|
|
1436
1313
|
instance = instance.render && instance.render();
|
|
1437
1314
|
{
|
|
1438
|
-
hostRef.$flags$ &=
|
|
1315
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1439
1316
|
}
|
|
1440
1317
|
{
|
|
1441
1318
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -1458,13 +1335,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1458
1335
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1459
1336
|
const instance = hostRef.$lazyInstance$ ;
|
|
1460
1337
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1461
|
-
|
|
1338
|
+
{
|
|
1339
|
+
safeCall(instance, "componentDidRender");
|
|
1340
|
+
}
|
|
1462
1341
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1463
1342
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1464
1343
|
{
|
|
1465
1344
|
addHydratedFlag(elm);
|
|
1466
1345
|
}
|
|
1467
|
-
|
|
1346
|
+
{
|
|
1347
|
+
safeCall(instance, "componentDidLoad");
|
|
1348
|
+
}
|
|
1468
1349
|
endPostUpdate();
|
|
1469
1350
|
{
|
|
1470
1351
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1473,7 +1354,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1473
1354
|
}
|
|
1474
1355
|
}
|
|
1475
1356
|
} else {
|
|
1476
|
-
|
|
1357
|
+
{
|
|
1358
|
+
safeCall(instance, "componentDidUpdate");
|
|
1359
|
+
}
|
|
1477
1360
|
endPostUpdate();
|
|
1478
1361
|
}
|
|
1479
1362
|
{
|
|
@@ -1487,7 +1370,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1487
1370
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1488
1371
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1489
1372
|
}
|
|
1490
|
-
hostRef.$flags$ &=
|
|
1373
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1491
1374
|
}
|
|
1492
1375
|
};
|
|
1493
1376
|
var forceUpdate = (ref) => {
|
|
@@ -1501,14 +1384,17 @@ var forceUpdate = (ref) => {
|
|
|
1501
1384
|
}
|
|
1502
1385
|
};
|
|
1503
1386
|
var appDidLoad = (who) => {
|
|
1387
|
+
{
|
|
1388
|
+
addHydratedFlag(doc.documentElement);
|
|
1389
|
+
}
|
|
1504
1390
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1505
1391
|
};
|
|
1506
|
-
var safeCall = (instance, method, arg
|
|
1392
|
+
var safeCall = (instance, method, arg) => {
|
|
1507
1393
|
if (instance && instance[method]) {
|
|
1508
1394
|
try {
|
|
1509
1395
|
return instance[method](arg);
|
|
1510
1396
|
} catch (e) {
|
|
1511
|
-
consoleError(e
|
|
1397
|
+
consoleError(e);
|
|
1512
1398
|
}
|
|
1513
1399
|
}
|
|
1514
1400
|
return void 0;
|
|
@@ -1524,7 +1410,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1524
1410
|
const hostRef = getHostRef(ref);
|
|
1525
1411
|
if (!hostRef) {
|
|
1526
1412
|
throw new Error(
|
|
1527
|
-
`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/
|
|
1413
|
+
`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).`
|
|
1528
1414
|
);
|
|
1529
1415
|
}
|
|
1530
1416
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -1550,11 +1436,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1550
1436
|
}
|
|
1551
1437
|
}
|
|
1552
1438
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1553
|
-
if (instance.componentShouldUpdate) {
|
|
1554
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1555
|
-
return;
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
1439
|
scheduleUpdate(hostRef, false);
|
|
1559
1440
|
}
|
|
1560
1441
|
}
|
|
@@ -1572,68 +1453,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1572
1453
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1573
1454
|
members.map(([memberName, [memberFlags]]) => {
|
|
1574
1455
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1575
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1576
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1577
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1578
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1579
|
-
Object.defineProperty(prototype, memberName, {
|
|
1580
|
-
get() {
|
|
1581
|
-
{
|
|
1582
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1583
|
-
return getValue(this, memberName);
|
|
1584
|
-
}
|
|
1585
|
-
const ref = getHostRef(this);
|
|
1586
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1587
|
-
if (!instance) return;
|
|
1588
|
-
return instance[memberName];
|
|
1589
|
-
}
|
|
1590
|
-
},
|
|
1591
|
-
configurable: true,
|
|
1592
|
-
enumerable: true
|
|
1593
|
-
});
|
|
1594
|
-
}
|
|
1595
1456
|
Object.defineProperty(prototype, memberName, {
|
|
1457
|
+
get() {
|
|
1458
|
+
return getValue(this, memberName);
|
|
1459
|
+
},
|
|
1596
1460
|
set(newValue) {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1602
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1603
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1604
|
-
}
|
|
1605
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1606
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1607
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1608
|
-
return;
|
|
1609
|
-
}
|
|
1610
|
-
{
|
|
1611
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1612
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1613
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1614
|
-
ref.$onReadyPromise$.then(() => {
|
|
1615
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1616
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1617
|
-
}
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
return;
|
|
1621
|
-
}
|
|
1622
|
-
const setterSetVal = () => {
|
|
1623
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1624
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1625
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1626
|
-
}
|
|
1627
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1628
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1629
|
-
};
|
|
1630
|
-
if (ref.$lazyInstance$) {
|
|
1631
|
-
setterSetVal();
|
|
1632
|
-
} else {
|
|
1633
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1461
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1462
|
+
},
|
|
1463
|
+
configurable: true,
|
|
1464
|
+
enumerable: true
|
|
1637
1465
|
});
|
|
1638
1466
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1639
1467
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1654,7 +1482,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1654
1482
|
plt.jmp(() => {
|
|
1655
1483
|
var _a2;
|
|
1656
1484
|
const propName = attrNameToPropName.get(attrName);
|
|
1657
|
-
if (this.hasOwnProperty(propName)
|
|
1485
|
+
if (this.hasOwnProperty(propName)) {
|
|
1658
1486
|
newValue = this[propName];
|
|
1659
1487
|
delete this[propName];
|
|
1660
1488
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1674,11 +1502,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1674
1502
|
}
|
|
1675
1503
|
return;
|
|
1676
1504
|
}
|
|
1677
|
-
|
|
1678
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1679
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1680
|
-
this[propName] = newValue;
|
|
1681
|
-
}
|
|
1505
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1682
1506
|
});
|
|
1683
1507
|
};
|
|
1684
1508
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1707,7 +1531,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1707
1531
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1708
1532
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1709
1533
|
if (bundleId) {
|
|
1710
|
-
const CstrImport = loadModule(cmpMeta
|
|
1534
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1711
1535
|
if (CstrImport && "then" in CstrImport) {
|
|
1712
1536
|
const endLoad = uniqueTime();
|
|
1713
1537
|
Cstr = await CstrImport;
|
|
@@ -1732,16 +1556,15 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1732
1556
|
try {
|
|
1733
1557
|
new Cstr(hostRef);
|
|
1734
1558
|
} catch (e) {
|
|
1735
|
-
consoleError(e
|
|
1559
|
+
consoleError(e);
|
|
1736
1560
|
}
|
|
1737
1561
|
{
|
|
1738
|
-
hostRef.$flags$ &=
|
|
1562
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1739
1563
|
}
|
|
1740
1564
|
{
|
|
1741
1565
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1742
1566
|
}
|
|
1743
1567
|
endNewInstance();
|
|
1744
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1745
1568
|
} else {
|
|
1746
1569
|
Cstr = elm.constructor;
|
|
1747
1570
|
const cmpTag = elm.localName;
|
|
@@ -1768,10 +1591,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1768
1591
|
schedule();
|
|
1769
1592
|
}
|
|
1770
1593
|
};
|
|
1771
|
-
var fireConnectedCallback = (instance
|
|
1772
|
-
{
|
|
1773
|
-
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1774
|
-
}
|
|
1594
|
+
var fireConnectedCallback = (instance) => {
|
|
1775
1595
|
};
|
|
1776
1596
|
|
|
1777
1597
|
// src/runtime/connected-callback.ts
|
|
@@ -1811,29 +1631,21 @@ var connectedCallback = (elm) => {
|
|
|
1811
1631
|
}
|
|
1812
1632
|
} else {
|
|
1813
1633
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1814
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1815
|
-
|
|
1816
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1817
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1634
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1635
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1818
1636
|
}
|
|
1819
1637
|
}
|
|
1820
1638
|
endConnected();
|
|
1821
1639
|
}
|
|
1822
1640
|
};
|
|
1823
1641
|
var setContentReference = (elm) => {
|
|
1824
|
-
|
|
1825
|
-
return;
|
|
1826
|
-
}
|
|
1827
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1642
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
1828
1643
|
""
|
|
1829
1644
|
);
|
|
1830
1645
|
contentRefElm["s-cn"] = true;
|
|
1831
1646
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1832
1647
|
};
|
|
1833
|
-
var disconnectInstance = (instance
|
|
1834
|
-
{
|
|
1835
|
-
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1836
|
-
}
|
|
1648
|
+
var disconnectInstance = (instance) => {
|
|
1837
1649
|
};
|
|
1838
1650
|
var disconnectedCallback = async (elm) => {
|
|
1839
1651
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1844,39 +1656,27 @@ var disconnectedCallback = async (elm) => {
|
|
|
1844
1656
|
hostRef.$rmListeners$ = void 0;
|
|
1845
1657
|
}
|
|
1846
1658
|
}
|
|
1847
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1848
|
-
|
|
1849
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1850
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1659
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1660
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1851
1661
|
}
|
|
1852
1662
|
}
|
|
1853
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1854
|
-
rootAppliedStyles.delete(elm);
|
|
1855
|
-
}
|
|
1856
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1857
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1858
|
-
}
|
|
1859
1663
|
};
|
|
1860
1664
|
|
|
1861
1665
|
// src/runtime/bootstrap-lazy.ts
|
|
1862
1666
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1863
1667
|
var _a;
|
|
1864
|
-
if (!win.document) {
|
|
1865
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1866
|
-
return;
|
|
1867
|
-
}
|
|
1868
1668
|
const endBootstrap = createTime();
|
|
1869
1669
|
const cmpTags = [];
|
|
1870
1670
|
const exclude = options.exclude || [];
|
|
1871
1671
|
const customElements2 = win.customElements;
|
|
1872
|
-
const head =
|
|
1672
|
+
const head = doc.head;
|
|
1873
1673
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1874
|
-
const dataStyles = /* @__PURE__ */
|
|
1674
|
+
const dataStyles = /* @__PURE__ */ doc.createElement("style");
|
|
1875
1675
|
const deferredConnectedCallbacks = [];
|
|
1876
1676
|
let appLoadFallback;
|
|
1877
1677
|
let isBootstrapping = true;
|
|
1878
1678
|
Object.assign(plt, options);
|
|
1879
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1679
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
1880
1680
|
let hasSlotRelocation = false;
|
|
1881
1681
|
lazyBundles.map((lazyBundle) => {
|
|
1882
1682
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1947,17 +1747,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1947
1747
|
}
|
|
1948
1748
|
disconnectedCallback() {
|
|
1949
1749
|
plt.jmp(() => disconnectedCallback(this));
|
|
1950
|
-
plt.raf(() => {
|
|
1951
|
-
var _a3;
|
|
1952
|
-
const hostRef = getHostRef(this);
|
|
1953
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1954
|
-
if (i2 > -1) {
|
|
1955
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1956
|
-
}
|
|
1957
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1958
|
-
delete hostRef.$vnode$.$elm$;
|
|
1959
|
-
}
|
|
1960
|
-
});
|
|
1961
1750
|
}
|
|
1962
1751
|
componentOnReady() {
|
|
1963
1752
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1982,7 +1771,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1982
1771
|
}
|
|
1983
1772
|
if (dataStyles.innerHTML.length) {
|
|
1984
1773
|
dataStyles.setAttribute("data-styles", "");
|
|
1985
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1774
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
1986
1775
|
if (nonce != null) {
|
|
1987
1776
|
dataStyles.setAttribute("nonce", nonce);
|
|
1988
1777
|
}
|
|
@@ -2003,9 +1792,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2003
1792
|
// src/runtime/fragment.ts
|
|
2004
1793
|
var Fragment = (_, children) => children;
|
|
2005
1794
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2006
|
-
if (listeners
|
|
1795
|
+
if (listeners) {
|
|
2007
1796
|
listeners.map(([flags, name, method]) => {
|
|
2008
|
-
const target = getHostListenerTarget(
|
|
1797
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2009
1798
|
const handler = hostListenerProxy(hostRef, method);
|
|
2010
1799
|
const opts = hostListenerOpts(flags);
|
|
2011
1800
|
plt.ael(target, name, handler, opts);
|
|
@@ -2024,16 +1813,12 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
2024
1813
|
}
|
|
2025
1814
|
}
|
|
2026
1815
|
} catch (e) {
|
|
2027
|
-
consoleError(e
|
|
1816
|
+
consoleError(e);
|
|
2028
1817
|
}
|
|
2029
1818
|
};
|
|
2030
|
-
var getHostListenerTarget = (
|
|
2031
|
-
if (flags & 4 /* TargetDocument */)
|
|
2032
|
-
|
|
2033
|
-
}
|
|
2034
|
-
if (flags & 8 /* TargetWindow */) {
|
|
2035
|
-
return win;
|
|
2036
|
-
}
|
|
1819
|
+
var getHostListenerTarget = (elm, flags) => {
|
|
1820
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
1821
|
+
if (flags & 8 /* TargetWindow */) return win;
|
|
2037
1822
|
return elm;
|
|
2038
1823
|
};
|
|
2039
1824
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|