@watermarkinsights/ripple 5.13.1-0 → 5.13.1-alpha.1
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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/cjs/{app-globals-12979223.js → app-globals-BEHiDpgR.js} +2 -2
- package/dist/cjs/{chartFunctions-5a8c4095.js → chartFunctions-uCzSt0yo.js} +2 -3
- package/dist/cjs/{functions-0774d303.js → functions-CqAwq8Fq.js} +232 -185
- package/dist/cjs/{index-788526f5.js → index-Cig4P4gJ.js} +540 -345
- package/dist/cjs/{intl-4a204fe7.js → intl-BUs7ck9m.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -12
- package/dist/cjs/priv-chart-popover.cjs.entry.js +4 -8
- package/dist/cjs/priv-navigator-button.cjs.entry.js +2 -5
- package/dist/cjs/priv-navigator-item.cjs.entry.js +2 -5
- package/dist/cjs/priv-option-list.cjs.entry.js +10 -16
- package/dist/cjs/ripple.cjs.js +7 -7
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +9 -18
- package/dist/cjs/wm-button.cjs.entry.js +8 -16
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -8
- package/dist/cjs/wm-chart.cjs.entry.js +14 -18
- package/dist/cjs/wm-date-range.cjs.entry.js +9 -14
- package/dist/cjs/wm-datepicker.cjs.entry.js +6 -11
- package/dist/cjs/wm-file-list.cjs.entry.js +2 -5
- package/dist/cjs/wm-file.cjs.entry.js +5 -15
- package/dist/cjs/wm-flyout.cjs.entry.js +5 -16
- package/dist/cjs/wm-input.cjs.entry.js +5 -17
- package/dist/cjs/wm-line-chart.cjs.entry.js +18 -28
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +8 -14
- package/dist/cjs/wm-modal_3.cjs.entry.js +7 -14
- package/dist/cjs/wm-navigation_3.cjs.entry.js +9 -18
- package/dist/cjs/wm-navigator.cjs.entry.js +17 -15
- package/dist/cjs/wm-nested-select.cjs.entry.js +11 -16
- package/dist/cjs/wm-optgroup.cjs.entry.js +3 -7
- package/dist/cjs/wm-option_2.cjs.entry.js +10 -17
- package/dist/cjs/wm-pagination.cjs.entry.js +10 -13
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +10 -27
- package/dist/cjs/wm-search.cjs.entry.js +25 -9
- package/dist/cjs/wm-snackbar.cjs.entry.js +8 -10
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +20 -16
- package/dist/cjs/wm-tag-input.cjs.entry.js +12 -25
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -8
- package/dist/cjs/wm-textarea.cjs.entry.js +5 -12
- package/dist/cjs/wm-timepicker.cjs.entry.js +9 -14
- package/dist/cjs/wm-toggletip.cjs.entry.js +6 -11
- package/dist/cjs/wm-uploader.cjs.entry.js +8 -18
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -3
- package/dist/collection/collection-manifest.json +2 -7
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -122
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +8 -4
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +15 -12
- package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -209
- package/dist/collection/components/charts/wm-chart/wm-chart.js +45 -22
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -122
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +52 -33
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -209
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +23 -16
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -138
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +9 -6
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +15 -12
- package/dist/collection/components/datepickers/datepicker.css +0 -122
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -122
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +21 -12
- package/dist/collection/components/datepickers/wm-date-range.js +39 -19
- package/dist/collection/components/datepickers/wm-datepicker.js +27 -13
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -122
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +27 -16
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -122
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +46 -22
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -122
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +12 -5
- package/dist/collection/components/selects/wm-option/wm-option.css +0 -122
- package/dist/collection/components/selects/wm-option/wm-option.js +15 -6
- package/dist/collection/components/selects/wm-select/wm-select.css +0 -122
- package/dist/collection/components/selects/wm-select/wm-select.js +41 -19
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -122
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +24 -15
- package/dist/collection/components/wm-button/wm-button.css +0 -200
- package/dist/collection/components/wm-button/wm-button.js +43 -22
- package/dist/collection/components/wm-file/wm-file.css +0 -122
- package/dist/collection/components/wm-file/wm-file.js +29 -18
- package/dist/collection/components/wm-file-list/wm-file-list.css +0 -122
- package/dist/collection/components/wm-file-list/wm-file-list.js +3 -1
- package/dist/collection/components/wm-flyout/wm-flyout.css +0 -122
- package/dist/collection/components/wm-flyout/wm-flyout.js +31 -19
- package/dist/collection/components/wm-input/wm-input.css +0 -122
- package/dist/collection/components/wm-input/wm-input.js +55 -28
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -122
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +10 -4
- package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -122
- package/dist/collection/components/wm-modal/wm-modal-footer.js +15 -5
- package/dist/collection/components/wm-modal/wm-modal-header.css +0 -122
- package/dist/collection/components/wm-modal/wm-modal-header.js +6 -2
- package/dist/collection/components/wm-modal/wm-modal.css +0 -122
- package/dist/collection/components/wm-modal/wm-modal.js +13 -7
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -122
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +15 -5
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -122
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +6 -2
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -122
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +14 -7
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -122
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +5 -4
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -122
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +9 -8
- package/dist/collection/components/wm-navigation/wm-navigation.css +0 -122
- package/dist/collection/components/wm-navigation/wm-navigation.js +4 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -122
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +6 -2
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -122
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +9 -3
- package/dist/collection/components/wm-navigator/wm-navigator.css +0 -122
- package/dist/collection/components/wm-navigator/wm-navigator.js +34 -15
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -122
- package/dist/collection/components/wm-pagination/wm-pagination.js +21 -11
- package/dist/collection/components/wm-search/wm-search.css +0 -122
- package/dist/collection/components/wm-search/wm-search.js +45 -10
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -122
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +7 -4
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -122
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +18 -6
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -122
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +9 -6
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -122
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +12 -2
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -122
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +50 -32
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +18 -10
- package/dist/collection/components/wm-textarea/wm-textarea.css +0 -122
- package/dist/collection/components/wm-textarea/wm-textarea.js +34 -16
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -122
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +27 -15
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -122
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +15 -9
- package/dist/collection/components/wm-uploader/wm-uploader.css +0 -200
- package/dist/collection/components/wm-uploader/wm-uploader.js +37 -22
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +85 -0
- package/dist/components/p-BlQdbOh_.js +294 -0
- package/dist/components/p-BvE5BEYe.js +146 -0
- package/dist/components/p-BzGDMpdL.js +592 -0
- package/dist/{ripple/p-8303bd1e.entry.js → components/p-CLem5EoD.js} +42 -1
- package/dist/components/p-CWx2NF6K.js +231 -0
- package/dist/components/p-D9GMUh0-.js +231 -0
- package/dist/components/p-DCSxoWXP.js +421 -0
- package/dist/{ripple/p-e8f5c8cd.entry.js → components/p-DG_w4q3M.js} +196 -1
- package/dist/{esm/intl-e0444831.js → components/p-DStPjkvu.js} +1 -1
- package/dist/{esm/functions-682e95b4.js → components/p-DdlNyc6u.js} +233 -186
- package/dist/components/p-DvXS4oTB.js +49 -0
- package/dist/components/p-HPnDWE3g.js +1686 -0
- package/dist/{esm/chartFunctions-4095a787.js → components/p-K9lgwbAO.js} +3 -4
- package/dist/components/p-e_A35rK5.js +154 -0
- package/dist/components/priv-calendar.d.ts +11 -0
- package/dist/components/priv-calendar.js +6 -0
- package/dist/components/priv-chart-popover.d.ts +11 -0
- package/dist/components/priv-chart-popover.js +6 -0
- package/dist/components/priv-navigator-button.d.ts +11 -0
- package/dist/components/priv-navigator-button.js +6 -0
- package/dist/components/priv-navigator-item.d.ts +11 -0
- package/dist/components/priv-navigator-item.js +6 -0
- package/dist/components/priv-option-list.d.ts +11 -0
- package/dist/components/priv-option-list.js +6 -0
- package/dist/components/wm-action-menu.d.ts +11 -0
- package/dist/components/wm-action-menu.js +6 -0
- package/dist/components/wm-button.d.ts +11 -0
- package/dist/components/wm-button.js +6 -0
- package/dist/components/wm-chart-slice.d.ts +11 -0
- package/dist/components/wm-chart-slice.js +41 -0
- package/dist/components/wm-chart.d.ts +11 -0
- package/dist/components/wm-chart.js +197 -0
- package/dist/components/wm-date-range.d.ts +11 -0
- package/dist/components/wm-date-range.js +522 -0
- package/dist/components/wm-datepicker.d.ts +11 -0
- package/dist/components/wm-datepicker.js +287 -0
- package/dist/components/wm-file-list.d.ts +11 -0
- package/dist/components/wm-file-list.js +38 -0
- package/dist/components/wm-file.d.ts +11 -0
- package/dist/components/wm-file.js +228 -0
- package/dist/components/wm-flyout.d.ts +11 -0
- package/dist/components/wm-flyout.js +208 -0
- package/dist/components/wm-input.d.ts +11 -0
- package/dist/components/wm-input.js +152 -0
- package/dist/components/wm-line-chart.d.ts +11 -0
- package/dist/components/wm-line-chart.js +497 -0
- package/dist/components/wm-menuitem.d.ts +11 -0
- package/dist/components/wm-menuitem.js +6 -0
- package/dist/components/wm-modal-footer.d.ts +11 -0
- package/dist/components/wm-modal-footer.js +73 -0
- package/dist/components/wm-modal-header.d.ts +11 -0
- package/dist/components/wm-modal-header.js +61 -0
- package/dist/components/wm-modal-pss-footer.d.ts +11 -0
- package/dist/components/wm-modal-pss-footer.js +69 -0
- package/dist/components/wm-modal-pss-header.d.ts +11 -0
- package/dist/components/wm-modal-pss-header.js +64 -0
- package/dist/components/wm-modal-pss.d.ts +11 -0
- package/dist/components/wm-modal-pss.js +162 -0
- package/dist/components/wm-modal.d.ts +11 -0
- package/dist/components/wm-modal.js +161 -0
- package/dist/components/wm-navigation-hamburger.d.ts +11 -0
- package/dist/components/wm-navigation-hamburger.js +70 -0
- package/dist/components/wm-navigation-item.d.ts +11 -0
- package/dist/components/wm-navigation-item.js +40 -0
- package/dist/components/wm-navigation.d.ts +11 -0
- package/dist/components/wm-navigation.js +144 -0
- package/dist/components/wm-navigator.d.ts +11 -0
- package/dist/components/wm-navigator.js +369 -0
- package/dist/components/wm-nested-select.d.ts +11 -0
- package/dist/components/wm-nested-select.js +343 -0
- package/dist/components/wm-optgroup.d.ts +11 -0
- package/dist/components/wm-optgroup.js +107 -0
- package/dist/components/wm-option.d.ts +11 -0
- package/dist/components/wm-option.js +6 -0
- package/dist/components/wm-pagination.d.ts +11 -0
- package/dist/components/wm-pagination.js +251 -0
- package/dist/components/wm-progress-indicator.d.ts +11 -0
- package/dist/components/wm-progress-indicator.js +144 -0
- package/dist/components/wm-progress-monitor.d.ts +11 -0
- package/dist/{ripple/p-afa213ca.entry.js → components/wm-progress-monitor.js} +93 -1
- package/dist/components/wm-progress-slice.d.ts +11 -0
- package/dist/components/wm-progress-slice.js +37 -0
- package/dist/components/wm-search.d.ts +11 -0
- package/dist/components/wm-search.js +250 -0
- package/dist/components/wm-select.d.ts +11 -0
- package/dist/components/wm-select.js +6 -0
- package/dist/components/wm-snackbar.d.ts +11 -0
- package/dist/components/wm-snackbar.js +209 -0
- package/dist/components/wm-tab-item.d.ts +11 -0
- package/dist/components/wm-tab-item.js +85 -0
- package/dist/components/wm-tab-list.d.ts +11 -0
- package/dist/components/wm-tab-list.js +217 -0
- package/dist/components/wm-tab-panel.d.ts +11 -0
- package/dist/components/wm-tab-panel.js +52 -0
- package/dist/components/wm-tag-input.d.ts +11 -0
- package/dist/components/wm-tag-input.js +919 -0
- package/dist/components/wm-tag-option.d.ts +11 -0
- package/dist/components/wm-tag-option.js +63 -0
- package/dist/components/wm-textarea.d.ts +11 -0
- package/dist/components/wm-textarea.js +113 -0
- package/dist/components/wm-timepicker.d.ts +11 -0
- package/dist/components/wm-timepicker.js +333 -0
- package/dist/components/wm-toggletip.d.ts +11 -0
- package/dist/{ripple/p-b1e4f8d0.entry.js → components/wm-toggletip.js} +200 -1
- package/dist/components/wm-uploader.d.ts +11 -0
- package/dist/components/wm-uploader.js +348 -0
- package/dist/components/wm-wrapper.d.ts +11 -0
- package/dist/components/wm-wrapper.js +34 -0
- package/dist/esm/{app-globals-8110c96f.js → app-globals-CAbvPlgr.js} +2 -2
- package/dist/esm/chartFunctions-Cmh1Ji0o.js +724 -0
- package/dist/esm/functions-C2kwukaR.js +10485 -0
- package/dist/esm/{index-130e07bb.js → index-EopL5zo4.js} +539 -324
- package/dist/esm/interfaces-COwzv5zO.js +34 -0
- package/dist/esm/intl-DeM2tf6d.js +277 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm/priv-calendar.entry.js +6 -10
- package/dist/esm/priv-chart-popover.entry.js +4 -6
- package/dist/esm/priv-navigator-button.entry.js +2 -3
- package/dist/esm/priv-navigator-item.entry.js +2 -3
- package/dist/esm/priv-option-list.entry.js +10 -14
- package/dist/esm/ripple.js +6 -5
- package/dist/esm/wm-action-menu_2.entry.js +9 -16
- package/dist/esm/wm-button.entry.js +8 -14
- package/dist/esm/wm-chart-slice.entry.js +1 -6
- package/dist/esm/wm-chart.entry.js +14 -16
- package/dist/esm/wm-date-range.entry.js +9 -12
- package/dist/esm/wm-datepicker.entry.js +6 -9
- package/dist/esm/wm-file-list.entry.js +2 -3
- package/dist/esm/wm-file.entry.js +5 -13
- package/dist/esm/wm-flyout.entry.js +5 -14
- package/dist/esm/wm-input.entry.js +5 -15
- package/dist/esm/wm-line-chart.entry.js +18 -26
- package/dist/esm/wm-modal-pss_3.entry.js +8 -12
- package/dist/esm/wm-modal_3.entry.js +7 -12
- package/dist/esm/wm-navigation_3.entry.js +9 -16
- package/dist/esm/wm-navigator.entry.js +17 -13
- package/dist/esm/wm-nested-select.entry.js +11 -14
- package/dist/esm/wm-optgroup.entry.js +3 -5
- package/dist/esm/wm-option_2.entry.js +10 -15
- package/dist/esm/wm-pagination.entry.js +10 -11
- package/dist/esm/wm-progress-indicator_3.entry.js +10 -25
- package/dist/esm/wm-search.entry.js +25 -7
- package/dist/esm/wm-snackbar.entry.js +8 -8
- package/dist/esm/wm-tab-item_3.entry.js +20 -14
- package/dist/esm/wm-tag-input.entry.js +12 -23
- package/dist/esm/wm-tag-option.entry.js +2 -6
- package/dist/esm/wm-textarea.entry.js +5 -10
- package/dist/esm/wm-timepicker.entry.js +9 -12
- package/dist/esm/wm-toggletip.entry.js +6 -9
- package/dist/esm/wm-uploader.entry.js +8 -16
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-CAbvPlgr.js +1 -0
- package/dist/esm-es5/chartFunctions-Cmh1Ji0o.js +1 -0
- package/dist/esm-es5/functions-C2kwukaR.js +1 -0
- package/dist/esm-es5/index-EopL5zo4.js +1 -0
- package/dist/esm-es5/{intl-e0444831.js → intl-DeM2tf6d.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/ripple/p-090ee1d9.entry.js +1 -0
- package/dist/ripple/p-25e1a9f9.entry.js +1 -0
- package/dist/ripple/{p-9d8c5fb4.system.entry.js → p-27ecd83a.system.entry.js} +1 -1
- package/dist/ripple/{p-72b88618.system.entry.js → p-2f1ffab1.system.entry.js} +1 -1
- package/dist/ripple/{p-e9c4ed97.entry.js → p-3042aae4.entry.js} +1 -1
- package/dist/ripple/p-30fb07a2.entry.js +1 -0
- package/dist/ripple/{p-199fd014.system.entry.js → p-31b8fe9c.system.entry.js} +1 -1
- package/dist/ripple/p-338b089a.entry.js +1 -0
- package/dist/ripple/p-340b73a9.system.entry.js +1 -0
- package/dist/ripple/p-3611aa0e.entry.js +1 -0
- package/dist/ripple/{p-c3ab1c4b.system.entry.js → p-384d9208.system.entry.js} +1 -1
- package/dist/ripple/{p-b73936b2.system.entry.js → p-3b0aaa5d.system.entry.js} +1 -1
- package/dist/ripple/p-3b828dcd.entry.js +1 -0
- package/dist/ripple/{p-ec4c1020.system.entry.js → p-3bee6a44.system.entry.js} +1 -1
- package/dist/ripple/p-3c54de9c.entry.js +1 -0
- package/dist/ripple/{p-ac241e42.system.entry.js → p-3e5a7fee.system.entry.js} +1 -1
- package/dist/ripple/{p-b4a9a118.entry.js → p-4862126f.entry.js} +1 -1
- package/dist/ripple/{p-cd0cc88d.entry.js → p-492a8a9f.entry.js} +1 -1
- package/dist/ripple/{p-11aef4e8.entry.js → p-49c9063a.entry.js} +1 -1
- package/dist/ripple/p-52e54dca.entry.js +1 -0
- package/dist/ripple/p-54aeadde.entry.js +1 -0
- package/dist/ripple/{p-015af452.system.entry.js → p-61c089e4.system.entry.js} +1 -1
- package/dist/ripple/{p-91a8e524.system.entry.js → p-63bb5240.system.entry.js} +1 -1
- package/dist/ripple/{p-7360ce37.entry.js → p-64e6e3b7.entry.js} +1 -1
- package/dist/ripple/{p-14b3b062.system.entry.js → p-6785cd06.system.entry.js} +1 -1
- package/dist/ripple/p-6838c144.entry.js +1 -0
- package/dist/ripple/{p-e7ee2171.system.entry.js → p-68705f8f.system.entry.js} +1 -1
- package/dist/ripple/{p-932922ed.system.entry.js → p-69d1e480.system.entry.js} +1 -1
- package/dist/ripple/{p-d8f0c9b4.system.entry.js → p-6f8eecda.system.entry.js} +1 -1
- package/dist/ripple/{p-f2c40a23.system.entry.js → p-74243614.system.entry.js} +1 -1
- package/dist/ripple/p-774c49cd.entry.js +1 -0
- package/dist/ripple/p-782951b7.system.entry.js +1 -0
- package/dist/ripple/p-7aa9c503.entry.js +1 -0
- package/dist/ripple/{p-5a564d92.system.entry.js → p-84a4735d.system.entry.js} +1 -1
- package/dist/ripple/p-85bdcfc2.entry.js +1 -0
- package/dist/ripple/{p-cf77cdd0.system.entry.js → p-86815489.system.entry.js} +1 -1
- package/dist/ripple/{p-1d43bc57.system.entry.js → p-8d09ca95.system.entry.js} +1 -1
- package/dist/ripple/p-9111db61.entry.js +1 -0
- package/dist/ripple/{p-feaa4c19.entry.js → p-957e8a70.entry.js} +1 -1
- package/dist/ripple/p-9583f20a.entry.js +1 -0
- package/dist/ripple/{p-cd5c59ef.system.entry.js → p-99d53b0e.system.entry.js} +1 -1
- package/dist/ripple/{p-55f880af.entry.js → p-9a0216ba.entry.js} +1 -1
- package/dist/ripple/{p-7c9bf5f6.system.entry.js → p-9a72e53c.system.entry.js} +1 -1
- package/dist/ripple/{p-371c36f5.entry.js → p-9e10d3eb.entry.js} +1 -1
- package/dist/ripple/p-C2kwukaR.js +1 -0
- package/dist/ripple/p-CG434V5a.system.js +1 -0
- package/dist/ripple/p-CPBFbOkl.js +1 -0
- package/dist/ripple/p-CTau6pR2.system.js +2 -0
- package/dist/ripple/{p-7a08da5c.system.js → p-ClenAAhT.system.js} +1 -1
- package/dist/ripple/p-CxDIDZPI.js +1 -0
- package/dist/ripple/{p-187c694f.js → p-D7x793ET.js} +1 -1
- package/dist/ripple/p-DB8VIjQe.system.js +1 -0
- package/dist/ripple/p-DwoNKeBh.system.js +1 -0
- package/dist/ripple/p-EopL5zo4.js +2 -0
- package/dist/ripple/p-a121c779.entry.js +1 -0
- package/dist/ripple/p-a3c4aa31.entry.js +1 -0
- package/dist/ripple/p-a46a28c9.entry.js +1 -0
- package/dist/ripple/p-a6890863.entry.js +1 -0
- package/dist/ripple/{p-bbb37d6e.entry.js → p-a7f2af01.entry.js} +1 -1
- package/dist/ripple/{p-7a6f535f.system.entry.js → p-a95f9245.system.entry.js} +1 -1
- package/dist/ripple/{p-6439b435.system.entry.js → p-ae58e2d1.system.entry.js} +1 -1
- package/dist/ripple/p-b077fe55.system.entry.js +1 -0
- package/dist/ripple/{p-61f8a6d4.system.entry.js → p-b0a47a43.system.entry.js} +1 -1
- package/dist/ripple/{p-dbd8a6c4.system.entry.js → p-ba6080a6.system.entry.js} +1 -1
- package/dist/ripple/p-c0440211.entry.js +1 -0
- package/dist/ripple/{p-704bacb9.system.entry.js → p-c78fa8d0.system.entry.js} +1 -1
- package/dist/ripple/{p-e12e6b00.system.entry.js → p-cd81d7de.system.entry.js} +1 -1
- package/dist/ripple/p-d77338ae.entry.js +1 -0
- package/dist/ripple/{p-849384be.system.entry.js → p-d92218e6.system.entry.js} +1 -1
- package/dist/ripple/{p-043901ab.system.entry.js → p-da5ad94c.system.entry.js} +1 -1
- package/dist/ripple/{p-5642cfb5.system.entry.js → p-dc7feffa.system.entry.js} +1 -1
- package/dist/ripple/p-e3fb63fd.entry.js +1 -0
- package/dist/ripple/p-e3fc3c6b.entry.js +1 -0
- package/dist/ripple/{p-18d6408f.system.entry.js → p-e77d4c21.system.entry.js} +1 -1
- package/dist/ripple/{p-31da9108.system.entry.js → p-ea7a4ac1.system.entry.js} +1 -1
- package/dist/ripple/p-ec611502.entry.js +1 -0
- package/dist/ripple/{p-d1950a60.entry.js → p-edc1b7cb.entry.js} +1 -1
- package/dist/ripple/{p-f65448ac.entry.js → p-ee8d7025.entry.js} +1 -1
- package/dist/ripple/{p-d4ac08de.system.entry.js → p-fce91d27.system.entry.js} +1 -1
- package/dist/ripple/{p-927df284.system.entry.js → p-fe31bd98.system.entry.js} +1 -1
- package/dist/ripple/p-wFWSStJ9.system.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +28 -0
- package/package.json +32 -12
- package/dist/esm-es5/app-globals-8110c96f.js +0 -1
- package/dist/esm-es5/chartFunctions-4095a787.js +0 -1
- package/dist/esm-es5/functions-682e95b4.js +0 -1
- package/dist/esm-es5/index-130e07bb.js +0 -1
- package/dist/loader/package.json +0 -11
- package/dist/ripple/p-00baa278.entry.js +0 -1
- package/dist/ripple/p-039a53d7.entry.js +0 -1
- package/dist/ripple/p-0528bf4d.entry.js +0 -1
- package/dist/ripple/p-0d4c017e.system.entry.js +0 -1
- package/dist/ripple/p-13b1d775.entry.js +0 -1
- package/dist/ripple/p-15712a55.entry.js +0 -1
- package/dist/ripple/p-29d32ee5.system.js +0 -1
- package/dist/ripple/p-37301ba0.system.js +0 -1
- package/dist/ripple/p-43a28379.entry.js +0 -1
- package/dist/ripple/p-44577815.entry.js +0 -1
- package/dist/ripple/p-45f831ef.entry.js +0 -1
- package/dist/ripple/p-5f09e972.entry.js +0 -1
- package/dist/ripple/p-6747a274.system.js +0 -1
- package/dist/ripple/p-733c7bd5.system.js +0 -1
- package/dist/ripple/p-8194ee04.entry.js +0 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
- package/dist/ripple/p-8cd5206a.entry.js +0 -1
- package/dist/ripple/p-8dde12bd.entry.js +0 -1
- package/dist/ripple/p-95d5618f.js +0 -1
- package/dist/ripple/p-9859635f.entry.js +0 -1
- package/dist/ripple/p-9e7e5948.system.entry.js +0 -1
- package/dist/ripple/p-a02cdb4f.js +0 -1
- package/dist/ripple/p-a399fb79.entry.js +0 -1
- package/dist/ripple/p-a4c26c21.entry.js +0 -1
- package/dist/ripple/p-a685a5fa.entry.js +0 -1
- package/dist/ripple/p-a70f8d7a.entry.js +0 -1
- package/dist/ripple/p-bb00a18f.js +0 -1
- package/dist/ripple/p-cef8a45b.system.js +0 -2
- package/dist/ripple/p-d9da0502.js +0 -2
- package/dist/ripple/p-dc600a24.entry.js +0 -1
- package/dist/ripple/p-dc82b6d2.entry.js +0 -1
- package/dist/ripple/p-ee01e771.entry.js +0 -1
- /package/dist/cjs/{interfaces-85d78ae9.js → interfaces-C7YbtGnk.js} +0 -0
- /package/dist/{esm/interfaces-cc5b177f.js → components/p-COwzv5zO.js} +0 -0
- /package/dist/esm-es5/{interfaces-cc5b177f.js → interfaces-COwzv5zO.js} +0 -0
- /package/dist/ripple/{p-2732bddd.js → p-COwzv5zO.js} +0 -0
- /package/dist/ripple/{p-42fa7a77.system.js → p-ClUp3GkF.system.js} +0 -0
- /package/dist/ripple/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
const NAMESPACE = 'ripple';
|
|
2
|
-
const BUILD = /* ripple */ {
|
|
2
|
+
const BUILD = /* ripple */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.31.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
|
|
12
|
+
|
|
13
|
+
// src/utils/constants.ts
|
|
14
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
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
|
+
};
|
|
15
28
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
29
|
const hostRef = {
|
|
17
30
|
$flags$: 0,
|
|
@@ -27,7 +40,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
27
40
|
hostElement["s-p"] = [];
|
|
28
41
|
hostElement["s-rc"] = [];
|
|
29
42
|
}
|
|
30
|
-
|
|
43
|
+
const ref = hostRef;
|
|
44
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
45
|
+
return ref;
|
|
31
46
|
};
|
|
32
47
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
33
48
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -52,6 +67,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
52
67
|
}
|
|
53
68
|
switch(bundleId) {
|
|
54
69
|
|
|
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);
|
|
55
82
|
case 'wm-button':
|
|
56
83
|
return import(
|
|
57
84
|
/* webpackMode: "lazy" */
|
|
@@ -72,18 +99,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
72
99
|
return import(
|
|
73
100
|
/* webpackMode: "lazy" */
|
|
74
101
|
'./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);
|
|
79
102
|
case 'wm-input':
|
|
80
103
|
return import(
|
|
81
104
|
/* webpackMode: "lazy" */
|
|
82
105
|
'./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);
|
|
87
106
|
case 'wm-pagination':
|
|
88
107
|
return import(
|
|
89
108
|
/* webpackMode: "lazy" */
|
|
@@ -108,10 +127,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
108
127
|
return import(
|
|
109
128
|
/* webpackMode: "lazy" */
|
|
110
129
|
'./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);
|
|
115
130
|
case 'wm-textarea':
|
|
116
131
|
return import(
|
|
117
132
|
/* webpackMode: "lazy" */
|
|
@@ -120,46 +135,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
120
135
|
return import(
|
|
121
136
|
/* webpackMode: "lazy" */
|
|
122
137
|
'./wm-uploader.entry.js').then(processMod, consoleError);
|
|
123
|
-
case 'wm-wrapper':
|
|
124
|
-
return import(
|
|
125
|
-
/* webpackMode: "lazy" */
|
|
126
|
-
'./wm-wrapper.entry.js').then(processMod, consoleError);
|
|
127
|
-
case 'wm-action-menu_2':
|
|
128
|
-
return import(
|
|
129
|
-
/* webpackMode: "lazy" */
|
|
130
|
-
'./wm-action-menu_2.entry.js').then(processMod, consoleError);
|
|
131
|
-
case 'wm-option_2':
|
|
132
|
-
return import(
|
|
133
|
-
/* webpackMode: "lazy" */
|
|
134
|
-
'./wm-option_2.entry.js').then(processMod, consoleError);
|
|
135
|
-
case 'wm-modal_3':
|
|
136
|
-
return import(
|
|
137
|
-
/* webpackMode: "lazy" */
|
|
138
|
-
'./wm-modal_3.entry.js').then(processMod, consoleError);
|
|
139
|
-
case 'wm-modal-pss_3':
|
|
140
|
-
return import(
|
|
141
|
-
/* webpackMode: "lazy" */
|
|
142
|
-
'./wm-modal-pss_3.entry.js').then(processMod, consoleError);
|
|
143
|
-
case 'wm-navigation_3':
|
|
144
|
-
return import(
|
|
145
|
-
/* webpackMode: "lazy" */
|
|
146
|
-
'./wm-navigation_3.entry.js').then(processMod, consoleError);
|
|
147
|
-
case 'wm-progress-indicator_3':
|
|
148
|
-
return import(
|
|
149
|
-
/* webpackMode: "lazy" */
|
|
150
|
-
'./wm-progress-indicator_3.entry.js').then(processMod, consoleError);
|
|
151
|
-
case 'wm-tab-item_3':
|
|
152
|
-
return import(
|
|
153
|
-
/* webpackMode: "lazy" */
|
|
154
|
-
'./wm-tab-item_3.entry.js').then(processMod, consoleError);
|
|
155
|
-
case 'wm-chart-slice':
|
|
156
|
-
return import(
|
|
157
|
-
/* webpackMode: "lazy" */
|
|
158
|
-
'./wm-chart-slice.entry.js').then(processMod, consoleError);
|
|
159
138
|
case 'wm-date-range':
|
|
160
139
|
return import(
|
|
161
140
|
/* webpackMode: "lazy" */
|
|
162
141
|
'./wm-date-range.entry.js').then(processMod, consoleError);
|
|
142
|
+
case 'wm-flyout':
|
|
143
|
+
return import(
|
|
144
|
+
/* webpackMode: "lazy" */
|
|
145
|
+
'./wm-flyout.entry.js').then(processMod, consoleError);
|
|
163
146
|
case 'wm-line-chart':
|
|
164
147
|
return import(
|
|
165
148
|
/* webpackMode: "lazy" */
|
|
@@ -192,6 +175,38 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
192
175
|
return import(
|
|
193
176
|
/* webpackMode: "lazy" */
|
|
194
177
|
'./priv-option-list.entry.js').then(processMod, consoleError);
|
|
178
|
+
case 'wm-navigator':
|
|
179
|
+
return import(
|
|
180
|
+
/* webpackMode: "lazy" */
|
|
181
|
+
'./wm-navigator.entry.js').then(processMod, consoleError);
|
|
182
|
+
case 'wm-action-menu_2':
|
|
183
|
+
return import(
|
|
184
|
+
/* webpackMode: "lazy" */
|
|
185
|
+
'./wm-action-menu_2.entry.js').then(processMod, consoleError);
|
|
186
|
+
case 'wm-option_2':
|
|
187
|
+
return import(
|
|
188
|
+
/* webpackMode: "lazy" */
|
|
189
|
+
'./wm-option_2.entry.js').then(processMod, consoleError);
|
|
190
|
+
case 'wm-progress-indicator_3':
|
|
191
|
+
return import(
|
|
192
|
+
/* webpackMode: "lazy" */
|
|
193
|
+
'./wm-progress-indicator_3.entry.js').then(processMod, consoleError);
|
|
194
|
+
case 'wm-modal_3':
|
|
195
|
+
return import(
|
|
196
|
+
/* webpackMode: "lazy" */
|
|
197
|
+
'./wm-modal_3.entry.js').then(processMod, consoleError);
|
|
198
|
+
case 'wm-modal-pss_3':
|
|
199
|
+
return import(
|
|
200
|
+
/* webpackMode: "lazy" */
|
|
201
|
+
'./wm-modal-pss_3.entry.js').then(processMod, consoleError);
|
|
202
|
+
case 'wm-navigation_3':
|
|
203
|
+
return import(
|
|
204
|
+
/* webpackMode: "lazy" */
|
|
205
|
+
'./wm-navigation_3.entry.js').then(processMod, consoleError);
|
|
206
|
+
case 'wm-tab-item_3':
|
|
207
|
+
return import(
|
|
208
|
+
/* webpackMode: "lazy" */
|
|
209
|
+
'./wm-tab-item_3.entry.js').then(processMod, consoleError);
|
|
195
210
|
}
|
|
196
211
|
}
|
|
197
212
|
return import(
|
|
@@ -200,21 +215,26 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
200
215
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
201
216
|
/* webpackMode: "lazy" */
|
|
202
217
|
`./${bundleId}.entry.js${""}`
|
|
203
|
-
).then(
|
|
204
|
-
{
|
|
205
|
-
|
|
218
|
+
).then(
|
|
219
|
+
(importedModule) => {
|
|
220
|
+
{
|
|
221
|
+
cmpModules.set(bundleId, importedModule);
|
|
222
|
+
}
|
|
223
|
+
return importedModule[exportName];
|
|
224
|
+
},
|
|
225
|
+
(e) => {
|
|
226
|
+
consoleError(e, hostRef.$hostElement$);
|
|
206
227
|
}
|
|
207
|
-
|
|
208
|
-
}, consoleError);
|
|
228
|
+
);
|
|
209
229
|
};
|
|
210
230
|
|
|
211
231
|
// src/client/client-style.ts
|
|
212
232
|
var styles = /* @__PURE__ */ new Map();
|
|
233
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
213
234
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
214
235
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
215
236
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
216
237
|
var win = typeof window !== "undefined" ? window : {};
|
|
217
|
-
var doc = win.document || { head: {} };
|
|
218
238
|
var plt = {
|
|
219
239
|
$flags$: 0,
|
|
220
240
|
$resourcesUrl$: "",
|
|
@@ -225,9 +245,10 @@ var plt = {
|
|
|
225
245
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
226
246
|
};
|
|
227
247
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
248
|
+
var _a;
|
|
228
249
|
let supportsListenerOptions2 = false;
|
|
229
250
|
try {
|
|
230
|
-
|
|
251
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
231
252
|
"e",
|
|
232
253
|
null,
|
|
233
254
|
Object.defineProperty({}, "passive", {
|
|
@@ -284,25 +305,22 @@ var flush = () => {
|
|
|
284
305
|
};
|
|
285
306
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
286
307
|
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;
|
|
295
308
|
var isComplexType = (o) => {
|
|
296
309
|
o = typeof o;
|
|
297
310
|
return o === "object" || o === "function";
|
|
298
311
|
};
|
|
299
312
|
|
|
300
313
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
301
|
-
function queryNonceMetaTagContent(
|
|
314
|
+
function queryNonceMetaTagContent(doc) {
|
|
302
315
|
var _a, _b, _c;
|
|
303
|
-
return (_c = (_b = (_a =
|
|
316
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
304
317
|
}
|
|
305
318
|
|
|
319
|
+
// src/utils/regular-expression.ts
|
|
320
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
321
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
322
|
+
};
|
|
323
|
+
|
|
306
324
|
// src/utils/result.ts
|
|
307
325
|
var result_exports = {};
|
|
308
326
|
__export(result_exports, {
|
|
@@ -351,6 +369,112 @@ var unwrapErr = (result) => {
|
|
|
351
369
|
throw result.value;
|
|
352
370
|
}
|
|
353
371
|
};
|
|
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
|
+
}
|
|
354
478
|
var createTime = (fnName, tagName = "") => {
|
|
355
479
|
{
|
|
356
480
|
return () => {
|
|
@@ -476,13 +600,25 @@ var convertToPrivate = (node) => {
|
|
|
476
600
|
vnode.$name$ = node.vname;
|
|
477
601
|
return vnode;
|
|
478
602
|
};
|
|
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");
|
|
479
615
|
var parsePropertyValue = (propValue, propType) => {
|
|
480
616
|
if (propValue != null && !isComplexType(propValue)) {
|
|
481
617
|
if (propType & 4 /* Boolean */) {
|
|
482
618
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
483
619
|
}
|
|
484
620
|
if (propType & 2 /* Number */) {
|
|
485
|
-
return parseFloat(propValue);
|
|
621
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
486
622
|
}
|
|
487
623
|
if (propType & 1 /* String */) {
|
|
488
624
|
return String(propValue);
|
|
@@ -531,7 +667,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
531
667
|
var _a;
|
|
532
668
|
const scopeId2 = getScopeId(cmpMeta);
|
|
533
669
|
const style = styles.get(scopeId2);
|
|
534
|
-
|
|
670
|
+
if (!win.document) {
|
|
671
|
+
return scopeId2;
|
|
672
|
+
}
|
|
673
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
535
674
|
if (style) {
|
|
536
675
|
if (typeof style === "string") {
|
|
537
676
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -542,24 +681,38 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
542
681
|
}
|
|
543
682
|
if (!appliedStyles.has(scopeId2)) {
|
|
544
683
|
{
|
|
545
|
-
styleElm =
|
|
684
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
546
685
|
styleElm.innerHTML = style;
|
|
547
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
686
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
548
687
|
if (nonce != null) {
|
|
549
688
|
styleElm.setAttribute("nonce", nonce);
|
|
550
689
|
}
|
|
551
690
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
552
691
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
553
692
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
554
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
555
|
-
styleContainerNode.insertBefore(
|
|
693
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
694
|
+
styleContainerNode.insertBefore(
|
|
695
|
+
styleElm,
|
|
696
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
697
|
+
);
|
|
556
698
|
} else if ("host" in styleContainerNode) {
|
|
557
|
-
|
|
699
|
+
if (supportsConstructableStylesheets) {
|
|
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
|
+
}
|
|
558
711
|
} else {
|
|
559
712
|
styleContainerNode.append(styleElm);
|
|
560
713
|
}
|
|
561
714
|
}
|
|
562
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
715
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
563
716
|
styleContainerNode.insertBefore(styleElm, null);
|
|
564
717
|
}
|
|
565
718
|
}
|
|
@@ -584,132 +737,155 @@ var attachStyles = (hostRef) => {
|
|
|
584
737
|
const scopeId2 = addStyle(
|
|
585
738
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
586
739
|
cmpMeta);
|
|
587
|
-
if (flags & 10 /* needsScopedEncapsulation */
|
|
740
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
588
741
|
elm["s-sc"] = scopeId2;
|
|
589
742
|
elm.classList.add(scopeId2 + "-h");
|
|
590
743
|
}
|
|
591
744
|
endAttachStyles();
|
|
592
745
|
};
|
|
593
746
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
594
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
595
|
-
if (oldValue
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
747
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
748
|
+
if (oldValue === newValue) {
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
752
|
+
let ln = memberName.toLowerCase();
|
|
753
|
+
if (memberName === "class") {
|
|
754
|
+
const classList = elm.classList;
|
|
755
|
+
const oldClasses = parseClassList(oldValue);
|
|
756
|
+
let newClasses = parseClassList(newValue);
|
|
757
|
+
{
|
|
602
758
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
603
759
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
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]) {
|
|
760
|
+
}
|
|
761
|
+
} else if (memberName === "style") {
|
|
762
|
+
{
|
|
763
|
+
for (const prop in oldValue) {
|
|
764
|
+
if (!newValue || newValue[prop] == null) {
|
|
618
765
|
if (prop.includes("-")) {
|
|
619
|
-
elm.style.
|
|
766
|
+
elm.style.removeProperty(prop);
|
|
620
767
|
} else {
|
|
621
|
-
elm.style[prop] =
|
|
768
|
+
elm.style[prop] = "";
|
|
622
769
|
}
|
|
623
770
|
}
|
|
624
771
|
}
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
} else if (isMemberInElement(win, ln)) {
|
|
633
|
-
memberName = ln.slice(2);
|
|
634
|
-
} else {
|
|
635
|
-
memberName = ln[2] + memberName.slice(3);
|
|
636
|
-
}
|
|
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);
|
|
772
|
+
}
|
|
773
|
+
for (const prop in newValue) {
|
|
774
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
775
|
+
if (prop.includes("-")) {
|
|
776
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
777
|
+
} else {
|
|
778
|
+
elm.style[prop] = newValue[prop];
|
|
645
779
|
}
|
|
646
780
|
}
|
|
781
|
+
}
|
|
782
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
783
|
+
if (newValue) {
|
|
784
|
+
newValue(elm);
|
|
785
|
+
}
|
|
786
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
787
|
+
if (memberName[2] === "-") {
|
|
788
|
+
memberName = memberName.slice(3);
|
|
789
|
+
} else if (isMemberInElement(win, ln)) {
|
|
790
|
+
memberName = ln.slice(2);
|
|
647
791
|
} else {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
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);
|
|
799
|
+
}
|
|
800
|
+
if (newValue) {
|
|
801
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
} else {
|
|
805
|
+
const isComplex = isComplexType(newValue);
|
|
806
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
807
|
+
try {
|
|
808
|
+
if (!elm.tagName.includes("-")) {
|
|
809
|
+
const n = newValue == null ? "" : newValue;
|
|
810
|
+
if (memberName === "list") {
|
|
811
|
+
isProp = false;
|
|
812
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
813
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
814
|
+
elm[memberName] = n;
|
|
815
|
+
} else {
|
|
816
|
+
elm.setAttribute(memberName, n);
|
|
661
817
|
}
|
|
662
|
-
} else {
|
|
663
|
-
elm[memberName] = newValue;
|
|
664
818
|
}
|
|
665
|
-
}
|
|
819
|
+
} else if (elm[memberName] !== newValue) {
|
|
820
|
+
elm[memberName] = newValue;
|
|
666
821
|
}
|
|
822
|
+
} catch (e) {
|
|
667
823
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
824
|
+
}
|
|
825
|
+
let xlink = false;
|
|
826
|
+
{
|
|
827
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
828
|
+
memberName = ln;
|
|
829
|
+
xlink = true;
|
|
674
830
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
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;
|
|
831
|
+
}
|
|
832
|
+
if (newValue == null || newValue === false) {
|
|
833
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
685
834
|
if (xlink) {
|
|
686
|
-
elm.
|
|
835
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
687
836
|
} else {
|
|
688
|
-
elm.
|
|
837
|
+
elm.removeAttribute(memberName);
|
|
689
838
|
}
|
|
690
839
|
}
|
|
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
|
+
}
|
|
691
847
|
}
|
|
692
848
|
}
|
|
693
849
|
};
|
|
694
850
|
var parseClassListRegex = /\s/;
|
|
695
|
-
var parseClassList = (value) =>
|
|
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
|
+
};
|
|
696
860
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
697
861
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
698
862
|
|
|
699
863
|
// src/runtime/vdom/update-element.ts
|
|
700
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
864
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
701
865
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
702
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
703
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
866
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
867
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
704
868
|
{
|
|
705
869
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
706
870
|
if (!(memberName in newVnodeAttrs)) {
|
|
707
|
-
setAccessor(
|
|
871
|
+
setAccessor(
|
|
872
|
+
elm,
|
|
873
|
+
memberName,
|
|
874
|
+
oldVnodeAttrs[memberName],
|
|
875
|
+
void 0,
|
|
876
|
+
isSvgMode2,
|
|
877
|
+
newVnode.$flags$);
|
|
708
878
|
}
|
|
709
879
|
}
|
|
710
880
|
}
|
|
711
881
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
712
|
-
setAccessor(
|
|
882
|
+
setAccessor(
|
|
883
|
+
elm,
|
|
884
|
+
memberName,
|
|
885
|
+
oldVnodeAttrs[memberName],
|
|
886
|
+
newVnodeAttrs[memberName],
|
|
887
|
+
isSvgMode2,
|
|
888
|
+
newVnode.$flags$);
|
|
713
889
|
}
|
|
714
890
|
};
|
|
715
891
|
function sortedAttrNames(attrNames) {
|
|
@@ -721,16 +897,13 @@ function sortedAttrNames(attrNames) {
|
|
|
721
897
|
attrNames
|
|
722
898
|
);
|
|
723
899
|
}
|
|
724
|
-
|
|
725
|
-
// src/runtime/vdom/vdom-render.ts
|
|
726
|
-
var scopeId;
|
|
727
900
|
var contentRef;
|
|
728
901
|
var hostTagName;
|
|
729
902
|
var useNativeShadowDom = false;
|
|
730
903
|
var checkSlotFallbackVisibility = false;
|
|
731
904
|
var checkSlotRelocate = false;
|
|
732
905
|
var isSvgMode = false;
|
|
733
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
906
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
734
907
|
var _a;
|
|
735
908
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
736
909
|
let i2 = 0;
|
|
@@ -740,9 +913,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
740
913
|
if (!useNativeShadowDom) {
|
|
741
914
|
checkSlotRelocate = true;
|
|
742
915
|
if (newVNode2.$tag$ === "slot") {
|
|
743
|
-
if (scopeId) {
|
|
744
|
-
parentElm.classList.add(scopeId + "-s");
|
|
745
|
-
}
|
|
746
916
|
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
747
917
|
// slot element has fallback content
|
|
748
918
|
// still create an element that "mocks" the slot element
|
|
@@ -756,14 +926,22 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
756
926
|
}
|
|
757
927
|
}
|
|
758
928
|
if (newVNode2.$text$ !== null) {
|
|
759
|
-
elm = newVNode2.$elm$ =
|
|
929
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
760
930
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
761
|
-
elm = newVNode2.$elm$ =
|
|
931
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
932
|
+
{
|
|
933
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
934
|
+
}
|
|
762
935
|
} else {
|
|
763
936
|
if (!isSvgMode) {
|
|
764
937
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
765
938
|
}
|
|
766
|
-
|
|
939
|
+
if (!win.document) {
|
|
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(
|
|
767
945
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
768
946
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
769
947
|
) ;
|
|
@@ -773,14 +951,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
773
951
|
{
|
|
774
952
|
updateElement(null, newVNode2, isSvgMode);
|
|
775
953
|
}
|
|
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
|
-
}
|
|
781
954
|
if (newVNode2.$children$) {
|
|
782
955
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
783
|
-
childNode = createElm(oldParentVNode, newVNode2, i2
|
|
956
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
784
957
|
if (childNode) {
|
|
785
958
|
elm.appendChild(childNode);
|
|
786
959
|
}
|
|
@@ -801,6 +974,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
801
974
|
elm["s-cr"] = contentRef;
|
|
802
975
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
803
976
|
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
977
|
+
patchSlotNode(elm);
|
|
804
978
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
805
979
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
806
980
|
{
|
|
@@ -813,19 +987,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
813
987
|
};
|
|
814
988
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
815
989
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
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
|
-
}
|
|
990
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
825
991
|
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
826
992
|
const childNode = oldSlotChildNodes[i2];
|
|
827
993
|
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
828
|
-
insertBefore(
|
|
994
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
829
995
|
childNode["s-ol"].remove();
|
|
830
996
|
childNode["s-ol"] = void 0;
|
|
831
997
|
childNode["s-sh"] = void 0;
|
|
@@ -835,7 +1001,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
835
1001
|
putBackInOriginalLocation(childNode, recursive);
|
|
836
1002
|
}
|
|
837
1003
|
}
|
|
838
|
-
plt.$flags$ &=
|
|
1004
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
839
1005
|
};
|
|
840
1006
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
841
1007
|
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
@@ -845,7 +1011,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
845
1011
|
}
|
|
846
1012
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
847
1013
|
if (vnodes[startIdx]) {
|
|
848
|
-
childNode = createElm(null, parentVNode, startIdx
|
|
1014
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
849
1015
|
if (childNode) {
|
|
850
1016
|
vnodes[startIdx].$elm$ = childNode;
|
|
851
1017
|
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
@@ -932,7 +1098,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
932
1098
|
if (idxInOld >= 0) {
|
|
933
1099
|
elmToMove = oldCh[idxInOld];
|
|
934
1100
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
935
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld
|
|
1101
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
936
1102
|
} else {
|
|
937
1103
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
938
1104
|
oldCh[idxInOld] = void 0;
|
|
@@ -940,12 +1106,16 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
940
1106
|
}
|
|
941
1107
|
newStartVnode = newCh[++newStartIdx];
|
|
942
1108
|
} else {
|
|
943
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx
|
|
1109
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
944
1110
|
newStartVnode = newCh[++newStartIdx];
|
|
945
1111
|
}
|
|
946
1112
|
if (node) {
|
|
947
1113
|
{
|
|
948
|
-
insertBefore(
|
|
1114
|
+
insertBefore(
|
|
1115
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1116
|
+
node,
|
|
1117
|
+
referenceNode(oldStartVnode.$elm$)
|
|
1118
|
+
);
|
|
949
1119
|
}
|
|
950
1120
|
}
|
|
951
1121
|
}
|
|
@@ -966,28 +1136,19 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
966
1136
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
967
1137
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
968
1138
|
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
|
-
}
|
|
978
1139
|
return leftVNode.$name$ === rightVNode.$name$;
|
|
979
1140
|
}
|
|
980
1141
|
if (!isInitialRender) {
|
|
981
1142
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
982
1143
|
}
|
|
1144
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
1145
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
1146
|
+
}
|
|
983
1147
|
return true;
|
|
984
1148
|
}
|
|
985
1149
|
return false;
|
|
986
1150
|
};
|
|
987
|
-
var referenceNode = (node) =>
|
|
988
|
-
return node && node["s-ol"] || node;
|
|
989
|
-
};
|
|
990
|
-
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
1151
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
991
1152
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
992
1153
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
993
1154
|
const oldChildren = oldVNode.$children$;
|
|
@@ -1000,9 +1161,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1000
1161
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1001
1162
|
}
|
|
1002
1163
|
{
|
|
1003
|
-
|
|
1004
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1005
|
-
}
|
|
1164
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1006
1165
|
}
|
|
1007
1166
|
if (oldChildren !== null && newChildren !== null) {
|
|
1008
1167
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -1026,45 +1185,19 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1026
1185
|
elm.data = text;
|
|
1027
1186
|
}
|
|
1028
1187
|
};
|
|
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
|
-
};
|
|
1056
1188
|
var relocateNodes = [];
|
|
1057
1189
|
var markSlotContentForRelocation = (elm) => {
|
|
1058
1190
|
let node;
|
|
1059
1191
|
let hostContentNodes;
|
|
1060
1192
|
let j;
|
|
1061
|
-
|
|
1193
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
1194
|
+
for (const childNode of children) {
|
|
1062
1195
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1063
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
1196
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1064
1197
|
const slotName = childNode["s-sn"];
|
|
1065
1198
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1066
1199
|
node = hostContentNodes[j];
|
|
1067
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (
|
|
1200
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
|
|
1068
1201
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1069
1202
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1070
1203
|
checkSlotFallbackVisibility = true;
|
|
@@ -1102,21 +1235,6 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1102
1235
|
}
|
|
1103
1236
|
}
|
|
1104
1237
|
};
|
|
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
|
-
};
|
|
1120
1238
|
var nullifyVNodeRefs = (vNode) => {
|
|
1121
1239
|
{
|
|
1122
1240
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -1124,15 +1242,17 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
1124
1242
|
}
|
|
1125
1243
|
};
|
|
1126
1244
|
var insertBefore = (parent, newNode, reference) => {
|
|
1127
|
-
|
|
1128
|
-
|
|
1245
|
+
{
|
|
1246
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1247
|
+
}
|
|
1129
1248
|
};
|
|
1130
1249
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1131
1250
|
var _a, _b, _c, _d;
|
|
1132
1251
|
const hostElm = hostRef.$hostElement$;
|
|
1133
1252
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1134
1253
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1135
|
-
const
|
|
1254
|
+
const isHostElement = isHost(renderFnResults);
|
|
1255
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1136
1256
|
hostTagName = hostElm.tagName;
|
|
1137
1257
|
if (cmpMeta.$attrsToReflect$) {
|
|
1138
1258
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -1151,10 +1271,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1151
1271
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1152
1272
|
hostRef.$vnode$ = rootVnode;
|
|
1153
1273
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1154
|
-
|
|
1155
|
-
scopeId = hostElm["s-sc"];
|
|
1156
|
-
}
|
|
1157
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1274
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1158
1275
|
{
|
|
1159
1276
|
contentRef = hostElm["s-cr"];
|
|
1160
1277
|
checkSlotFallbackVisibility = false;
|
|
@@ -1166,8 +1283,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1166
1283
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1167
1284
|
for (const relocateData of relocateNodes) {
|
|
1168
1285
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1169
|
-
if (!nodeToRelocate["s-ol"]) {
|
|
1170
|
-
const orgLocationNode =
|
|
1286
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1287
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1171
1288
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1172
1289
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1173
1290
|
}
|
|
@@ -1182,7 +1299,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1182
1299
|
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1183
1300
|
while (orgLocationNode) {
|
|
1184
1301
|
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1185
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1302
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1186
1303
|
refNode = refNode.nextSibling;
|
|
1187
1304
|
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1188
1305
|
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
@@ -1195,18 +1312,20 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1195
1312
|
orgLocationNode = orgLocationNode.previousSibling;
|
|
1196
1313
|
}
|
|
1197
1314
|
}
|
|
1198
|
-
|
|
1315
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1316
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1317
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1199
1318
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1200
1319
|
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1201
1320
|
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1202
1321
|
}
|
|
1203
1322
|
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1204
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1323
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1205
1324
|
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1206
1325
|
}
|
|
1207
1326
|
}
|
|
1208
1327
|
}
|
|
1209
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](
|
|
1328
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1210
1329
|
} else {
|
|
1211
1330
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1212
1331
|
if (isInitialLoad) {
|
|
@@ -1220,7 +1339,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1220
1339
|
if (checkSlotFallbackVisibility) {
|
|
1221
1340
|
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1222
1341
|
}
|
|
1223
|
-
plt.$flags$ &=
|
|
1342
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1224
1343
|
relocateNodes.length = 0;
|
|
1225
1344
|
}
|
|
1226
1345
|
contentRef = void 0;
|
|
@@ -1229,7 +1348,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1229
1348
|
// src/runtime/update-component.ts
|
|
1230
1349
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1231
1350
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1232
|
-
ancestorComponent["s-p"].push(
|
|
1351
|
+
const index = ancestorComponent["s-p"].push(
|
|
1352
|
+
new Promise(
|
|
1353
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1354
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1355
|
+
r();
|
|
1356
|
+
}
|
|
1357
|
+
)
|
|
1358
|
+
);
|
|
1233
1359
|
}
|
|
1234
1360
|
};
|
|
1235
1361
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1258,18 +1384,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1258
1384
|
{
|
|
1259
1385
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1260
1386
|
if (hostRef.$queuedListeners$) {
|
|
1261
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1387
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1262
1388
|
hostRef.$queuedListeners$ = void 0;
|
|
1263
1389
|
}
|
|
1264
1390
|
}
|
|
1265
|
-
|
|
1266
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1267
|
-
}
|
|
1391
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
1268
1392
|
} else {
|
|
1269
|
-
|
|
1270
|
-
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
1271
|
-
}
|
|
1393
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1272
1394
|
}
|
|
1395
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1273
1396
|
endSchedule();
|
|
1274
1397
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1275
1398
|
};
|
|
@@ -1312,7 +1435,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
1312
1435
|
try {
|
|
1313
1436
|
instance = instance.render && instance.render();
|
|
1314
1437
|
{
|
|
1315
|
-
hostRef.$flags$ &=
|
|
1438
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
1316
1439
|
}
|
|
1317
1440
|
{
|
|
1318
1441
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -1335,17 +1458,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1335
1458
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1336
1459
|
const instance = hostRef.$lazyInstance$ ;
|
|
1337
1460
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1338
|
-
|
|
1339
|
-
safeCall(instance, "componentDidRender");
|
|
1340
|
-
}
|
|
1461
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1341
1462
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1342
1463
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1343
1464
|
{
|
|
1344
1465
|
addHydratedFlag(elm);
|
|
1345
1466
|
}
|
|
1346
|
-
|
|
1347
|
-
safeCall(instance, "componentDidLoad");
|
|
1348
|
-
}
|
|
1467
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1349
1468
|
endPostUpdate();
|
|
1350
1469
|
{
|
|
1351
1470
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1354,9 +1473,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1354
1473
|
}
|
|
1355
1474
|
}
|
|
1356
1475
|
} else {
|
|
1357
|
-
|
|
1358
|
-
safeCall(instance, "componentDidUpdate");
|
|
1359
|
-
}
|
|
1476
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1360
1477
|
endPostUpdate();
|
|
1361
1478
|
}
|
|
1362
1479
|
{
|
|
@@ -1370,7 +1487,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1370
1487
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1371
1488
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1372
1489
|
}
|
|
1373
|
-
hostRef.$flags$ &=
|
|
1490
|
+
hostRef.$flags$ &= -517;
|
|
1374
1491
|
}
|
|
1375
1492
|
};
|
|
1376
1493
|
var forceUpdate = (ref) => {
|
|
@@ -1384,17 +1501,14 @@ var forceUpdate = (ref) => {
|
|
|
1384
1501
|
}
|
|
1385
1502
|
};
|
|
1386
1503
|
var appDidLoad = (who) => {
|
|
1387
|
-
{
|
|
1388
|
-
addHydratedFlag(doc.documentElement);
|
|
1389
|
-
}
|
|
1390
1504
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1391
1505
|
};
|
|
1392
|
-
var safeCall = (instance, method, arg) => {
|
|
1506
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1393
1507
|
if (instance && instance[method]) {
|
|
1394
1508
|
try {
|
|
1395
1509
|
return instance[method](arg);
|
|
1396
1510
|
} catch (e) {
|
|
1397
|
-
consoleError(e);
|
|
1511
|
+
consoleError(e, elm);
|
|
1398
1512
|
}
|
|
1399
1513
|
}
|
|
1400
1514
|
return void 0;
|
|
@@ -1410,7 +1524,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1410
1524
|
const hostRef = getHostRef(ref);
|
|
1411
1525
|
if (!hostRef) {
|
|
1412
1526
|
throw new Error(
|
|
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/
|
|
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/stenciljs/core/issues/5457).`
|
|
1414
1528
|
);
|
|
1415
1529
|
}
|
|
1416
1530
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -1436,6 +1550,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1436
1550
|
}
|
|
1437
1551
|
}
|
|
1438
1552
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1553
|
+
if (instance.componentShouldUpdate) {
|
|
1554
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1555
|
+
return;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1439
1558
|
scheduleUpdate(hostRef, false);
|
|
1440
1559
|
}
|
|
1441
1560
|
}
|
|
@@ -1453,15 +1572,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1453
1572
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1454
1573
|
members.map(([memberName, [memberFlags]]) => {
|
|
1455
1574
|
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
|
+
}
|
|
1456
1595
|
Object.defineProperty(prototype, memberName, {
|
|
1457
|
-
get() {
|
|
1458
|
-
return getValue(this, memberName);
|
|
1459
|
-
},
|
|
1460
1596
|
set(newValue) {
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1597
|
+
const ref = getHostRef(this);
|
|
1598
|
+
if (origSetter) {
|
|
1599
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1600
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
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
|
+
}
|
|
1465
1637
|
});
|
|
1466
1638
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1467
1639
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1482,7 +1654,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1482
1654
|
plt.jmp(() => {
|
|
1483
1655
|
var _a2;
|
|
1484
1656
|
const propName = attrNameToPropName.get(attrName);
|
|
1485
|
-
if (this.hasOwnProperty(propName)) {
|
|
1657
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1486
1658
|
newValue = this[propName];
|
|
1487
1659
|
delete this[propName];
|
|
1488
1660
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1502,7 +1674,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1502
1674
|
}
|
|
1503
1675
|
return;
|
|
1504
1676
|
}
|
|
1505
|
-
|
|
1677
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1678
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1679
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1680
|
+
this[propName] = newValue;
|
|
1681
|
+
}
|
|
1506
1682
|
});
|
|
1507
1683
|
};
|
|
1508
1684
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1531,7 +1707,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1531
1707
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1532
1708
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1533
1709
|
if (bundleId) {
|
|
1534
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1710
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1535
1711
|
if (CstrImport && "then" in CstrImport) {
|
|
1536
1712
|
const endLoad = uniqueTime();
|
|
1537
1713
|
Cstr = await CstrImport;
|
|
@@ -1556,15 +1732,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1556
1732
|
try {
|
|
1557
1733
|
new Cstr(hostRef);
|
|
1558
1734
|
} catch (e) {
|
|
1559
|
-
consoleError(e);
|
|
1735
|
+
consoleError(e, elm);
|
|
1560
1736
|
}
|
|
1561
1737
|
{
|
|
1562
|
-
hostRef.$flags$ &=
|
|
1738
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1563
1739
|
}
|
|
1564
1740
|
{
|
|
1565
1741
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1566
1742
|
}
|
|
1567
1743
|
endNewInstance();
|
|
1744
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1568
1745
|
} else {
|
|
1569
1746
|
Cstr = elm.constructor;
|
|
1570
1747
|
const cmpTag = elm.localName;
|
|
@@ -1591,7 +1768,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1591
1768
|
schedule();
|
|
1592
1769
|
}
|
|
1593
1770
|
};
|
|
1594
|
-
var fireConnectedCallback = (instance) => {
|
|
1771
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1772
|
+
{
|
|
1773
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1774
|
+
}
|
|
1595
1775
|
};
|
|
1596
1776
|
|
|
1597
1777
|
// src/runtime/connected-callback.ts
|
|
@@ -1631,21 +1811,29 @@ var connectedCallback = (elm) => {
|
|
|
1631
1811
|
}
|
|
1632
1812
|
} else {
|
|
1633
1813
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1634
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1635
|
-
hostRef.$
|
|
1814
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1815
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1816
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1817
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1636
1818
|
}
|
|
1637
1819
|
}
|
|
1638
1820
|
endConnected();
|
|
1639
1821
|
}
|
|
1640
1822
|
};
|
|
1641
1823
|
var setContentReference = (elm) => {
|
|
1642
|
-
|
|
1824
|
+
if (!win.document) {
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1643
1828
|
""
|
|
1644
1829
|
);
|
|
1645
1830
|
contentRefElm["s-cn"] = true;
|
|
1646
1831
|
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1647
1832
|
};
|
|
1648
|
-
var disconnectInstance = (instance) => {
|
|
1833
|
+
var disconnectInstance = (instance, elm) => {
|
|
1834
|
+
{
|
|
1835
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1836
|
+
}
|
|
1649
1837
|
};
|
|
1650
1838
|
var disconnectedCallback = async (elm) => {
|
|
1651
1839
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1656,27 +1844,39 @@ var disconnectedCallback = async (elm) => {
|
|
|
1656
1844
|
hostRef.$rmListeners$ = void 0;
|
|
1657
1845
|
}
|
|
1658
1846
|
}
|
|
1659
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1660
|
-
hostRef.$
|
|
1847
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1848
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1849
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1850
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1661
1851
|
}
|
|
1662
1852
|
}
|
|
1853
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1854
|
+
rootAppliedStyles.delete(elm);
|
|
1855
|
+
}
|
|
1856
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1857
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1858
|
+
}
|
|
1663
1859
|
};
|
|
1664
1860
|
|
|
1665
1861
|
// src/runtime/bootstrap-lazy.ts
|
|
1666
1862
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1667
1863
|
var _a;
|
|
1864
|
+
if (!win.document) {
|
|
1865
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1866
|
+
return;
|
|
1867
|
+
}
|
|
1668
1868
|
const endBootstrap = createTime();
|
|
1669
1869
|
const cmpTags = [];
|
|
1670
1870
|
const exclude = options.exclude || [];
|
|
1671
1871
|
const customElements2 = win.customElements;
|
|
1672
|
-
const head =
|
|
1872
|
+
const head = win.document.head;
|
|
1673
1873
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1674
|
-
const dataStyles = /* @__PURE__ */
|
|
1874
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1675
1875
|
const deferredConnectedCallbacks = [];
|
|
1676
1876
|
let appLoadFallback;
|
|
1677
1877
|
let isBootstrapping = true;
|
|
1678
1878
|
Object.assign(plt, options);
|
|
1679
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1879
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1680
1880
|
let hasSlotRelocation = false;
|
|
1681
1881
|
lazyBundles.map((lazyBundle) => {
|
|
1682
1882
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1747,6 +1947,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1747
1947
|
}
|
|
1748
1948
|
disconnectedCallback() {
|
|
1749
1949
|
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
|
+
});
|
|
1750
1961
|
}
|
|
1751
1962
|
componentOnReady() {
|
|
1752
1963
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1771,7 +1982,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1771
1982
|
}
|
|
1772
1983
|
if (dataStyles.innerHTML.length) {
|
|
1773
1984
|
dataStyles.setAttribute("data-styles", "");
|
|
1774
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1985
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1775
1986
|
if (nonce != null) {
|
|
1776
1987
|
dataStyles.setAttribute("nonce", nonce);
|
|
1777
1988
|
}
|
|
@@ -1792,9 +2003,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1792
2003
|
// src/runtime/fragment.ts
|
|
1793
2004
|
var Fragment = (_, children) => children;
|
|
1794
2005
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1795
|
-
if (listeners) {
|
|
2006
|
+
if (listeners && win.document) {
|
|
1796
2007
|
listeners.map(([flags, name, method]) => {
|
|
1797
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
2008
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1798
2009
|
const handler = hostListenerProxy(hostRef, method);
|
|
1799
2010
|
const opts = hostListenerOpts(flags);
|
|
1800
2011
|
plt.ael(target, name, handler, opts);
|
|
@@ -1813,12 +2024,16 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1813
2024
|
}
|
|
1814
2025
|
}
|
|
1815
2026
|
} catch (e) {
|
|
1816
|
-
consoleError(e);
|
|
2027
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1817
2028
|
}
|
|
1818
2029
|
};
|
|
1819
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
1820
|
-
if (flags & 4 /* TargetDocument */)
|
|
1821
|
-
|
|
2030
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
2031
|
+
if (flags & 4 /* TargetDocument */) {
|
|
2032
|
+
return doc;
|
|
2033
|
+
}
|
|
2034
|
+
if (flags & 8 /* TargetWindow */) {
|
|
2035
|
+
return win;
|
|
2036
|
+
}
|
|
1822
2037
|
return elm;
|
|
1823
2038
|
};
|
|
1824
2039
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|