@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
|
@@ -0,0 +1,1686 @@
|
|
|
1
|
+
const NAMESPACE = 'ripple';
|
|
2
|
+
const BUILD = /* ripple */ { hydratedSelectorName: "hydrated", lazyLoad: false, slotRelocation: true, updatable: true};
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
|
|
6
|
+
*/
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
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 registerHost = (hostElement, cmpMeta) => {
|
|
25
|
+
const hostRef = {
|
|
26
|
+
$flags$: 0,
|
|
27
|
+
$hostElement$: hostElement,
|
|
28
|
+
$cmpMeta$: cmpMeta,
|
|
29
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
30
|
+
};
|
|
31
|
+
{
|
|
32
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
33
|
+
hostElement["s-p"] = [];
|
|
34
|
+
hostElement["s-rc"] = [];
|
|
35
|
+
}
|
|
36
|
+
const ref = hostRef;
|
|
37
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
38
|
+
return ref;
|
|
39
|
+
};
|
|
40
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
41
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
42
|
+
|
|
43
|
+
// src/client/client-style.ts
|
|
44
|
+
var styles = /* @__PURE__ */ new Map();
|
|
45
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
46
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
47
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
48
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
49
|
+
var H = win.HTMLElement || class {
|
|
50
|
+
};
|
|
51
|
+
var plt = {
|
|
52
|
+
$flags$: 0,
|
|
53
|
+
$resourcesUrl$: "",
|
|
54
|
+
jmp: (h2) => h2(),
|
|
55
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
56
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
57
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
58
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
59
|
+
};
|
|
60
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
61
|
+
var _a;
|
|
62
|
+
let supportsListenerOptions2 = false;
|
|
63
|
+
try {
|
|
64
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
65
|
+
"e",
|
|
66
|
+
null,
|
|
67
|
+
Object.defineProperty({}, "passive", {
|
|
68
|
+
get() {
|
|
69
|
+
supportsListenerOptions2 = true;
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
);
|
|
73
|
+
} catch (e) {
|
|
74
|
+
}
|
|
75
|
+
return supportsListenerOptions2;
|
|
76
|
+
})();
|
|
77
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
78
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
79
|
+
try {
|
|
80
|
+
new CSSStyleSheet();
|
|
81
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
82
|
+
} catch (e) {
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
})() ;
|
|
86
|
+
var queuePending = false;
|
|
87
|
+
var queueDomReads = [];
|
|
88
|
+
var queueDomWrites = [];
|
|
89
|
+
var queueTask = (queue, write) => (cb) => {
|
|
90
|
+
queue.push(cb);
|
|
91
|
+
if (!queuePending) {
|
|
92
|
+
queuePending = true;
|
|
93
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
94
|
+
nextTick(flush);
|
|
95
|
+
} else {
|
|
96
|
+
plt.raf(flush);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
var consume = (queue) => {
|
|
101
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
102
|
+
try {
|
|
103
|
+
queue[i2](performance.now());
|
|
104
|
+
} catch (e) {
|
|
105
|
+
consoleError(e);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
queue.length = 0;
|
|
109
|
+
};
|
|
110
|
+
var flush = () => {
|
|
111
|
+
consume(queueDomReads);
|
|
112
|
+
{
|
|
113
|
+
consume(queueDomWrites);
|
|
114
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
115
|
+
plt.raf(flush);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
120
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
121
|
+
|
|
122
|
+
// src/runtime/asset-path.ts
|
|
123
|
+
var getAssetPath = (path) => {
|
|
124
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
125
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
126
|
+
};
|
|
127
|
+
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
128
|
+
var isComplexType = (o) => {
|
|
129
|
+
o = typeof o;
|
|
130
|
+
return o === "object" || o === "function";
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
134
|
+
function queryNonceMetaTagContent(doc) {
|
|
135
|
+
var _a, _b, _c;
|
|
136
|
+
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;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// src/utils/regular-expression.ts
|
|
140
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
141
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// src/utils/result.ts
|
|
145
|
+
var result_exports = {};
|
|
146
|
+
__export(result_exports, {
|
|
147
|
+
err: () => err,
|
|
148
|
+
map: () => map,
|
|
149
|
+
ok: () => ok,
|
|
150
|
+
unwrap: () => unwrap,
|
|
151
|
+
unwrapErr: () => unwrapErr
|
|
152
|
+
});
|
|
153
|
+
var ok = (value) => ({
|
|
154
|
+
isOk: true,
|
|
155
|
+
isErr: false,
|
|
156
|
+
value
|
|
157
|
+
});
|
|
158
|
+
var err = (value) => ({
|
|
159
|
+
isOk: false,
|
|
160
|
+
isErr: true,
|
|
161
|
+
value
|
|
162
|
+
});
|
|
163
|
+
function map(result, fn) {
|
|
164
|
+
if (result.isOk) {
|
|
165
|
+
const val = fn(result.value);
|
|
166
|
+
if (val instanceof Promise) {
|
|
167
|
+
return val.then((newVal) => ok(newVal));
|
|
168
|
+
} else {
|
|
169
|
+
return ok(val);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if (result.isErr) {
|
|
173
|
+
const value = result.value;
|
|
174
|
+
return err(value);
|
|
175
|
+
}
|
|
176
|
+
throw "should never get here";
|
|
177
|
+
}
|
|
178
|
+
var unwrap = (result) => {
|
|
179
|
+
if (result.isOk) {
|
|
180
|
+
return result.value;
|
|
181
|
+
} else {
|
|
182
|
+
throw result.value;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
var unwrapErr = (result) => {
|
|
186
|
+
if (result.isErr) {
|
|
187
|
+
return result.value;
|
|
188
|
+
} else {
|
|
189
|
+
throw result.value;
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
193
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
194
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
195
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
196
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
197
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
198
|
+
slotNode.hidden = true;
|
|
199
|
+
} else {
|
|
200
|
+
slotNode.hidden = false;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
let i2 = 0;
|
|
206
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
207
|
+
const childNode = childNodes[i2];
|
|
208
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
209
|
+
updateFallbackSlotVisibility(childNode);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
214
|
+
const result = [];
|
|
215
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
216
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
217
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
218
|
+
result.push(slottedNode);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return result;
|
|
222
|
+
};
|
|
223
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
224
|
+
let i2 = 0;
|
|
225
|
+
let slottedNodes = [];
|
|
226
|
+
let childNode;
|
|
227
|
+
for (; i2 < childNodes.length; i2++) {
|
|
228
|
+
childNode = childNodes[i2];
|
|
229
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
230
|
+
slottedNodes.push(childNode);
|
|
231
|
+
}
|
|
232
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
233
|
+
}
|
|
234
|
+
return slottedNodes;
|
|
235
|
+
}
|
|
236
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
237
|
+
const childNodes = [];
|
|
238
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
239
|
+
let node = slot;
|
|
240
|
+
while (node = node.nextSibling) {
|
|
241
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
242
|
+
}
|
|
243
|
+
return childNodes;
|
|
244
|
+
};
|
|
245
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
246
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
247
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
248
|
+
return true;
|
|
249
|
+
}
|
|
250
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
251
|
+
return true;
|
|
252
|
+
}
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
return slotName === "";
|
|
259
|
+
};
|
|
260
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
261
|
+
function patchSlotNode(node) {
|
|
262
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
263
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
264
|
+
const toReturn = [];
|
|
265
|
+
const slotName = this["s-sn"];
|
|
266
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
267
|
+
console.error(`
|
|
268
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
269
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
270
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
271
|
+
`);
|
|
272
|
+
}
|
|
273
|
+
const parent = this["s-cr"].parentElement;
|
|
274
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
275
|
+
slottedNodes.forEach((n) => {
|
|
276
|
+
if (slotName === getSlotName(n)) {
|
|
277
|
+
toReturn.push(n);
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
if (elementsOnly) {
|
|
281
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
282
|
+
}
|
|
283
|
+
return toReturn;
|
|
284
|
+
}).bind(node);
|
|
285
|
+
node.assignedElements = assignedFactory(true);
|
|
286
|
+
node.assignedNodes = assignedFactory(false);
|
|
287
|
+
}
|
|
288
|
+
function internalCall(node, method) {
|
|
289
|
+
if ("__" + method in node) {
|
|
290
|
+
const toReturn = node["__" + method];
|
|
291
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
292
|
+
return toReturn.bind(node);
|
|
293
|
+
} else {
|
|
294
|
+
if (typeof node[method] !== "function") return node[method];
|
|
295
|
+
return node[method].bind(node);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
var createTime = (fnName, tagName = "") => {
|
|
299
|
+
{
|
|
300
|
+
return () => {
|
|
301
|
+
return;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
306
|
+
let child = null;
|
|
307
|
+
let key = null;
|
|
308
|
+
let slotName = null;
|
|
309
|
+
let simple = false;
|
|
310
|
+
let lastSimple = false;
|
|
311
|
+
const vNodeChildren = [];
|
|
312
|
+
const walk = (c) => {
|
|
313
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
314
|
+
child = c[i2];
|
|
315
|
+
if (Array.isArray(child)) {
|
|
316
|
+
walk(child);
|
|
317
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
318
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
319
|
+
child = String(child);
|
|
320
|
+
}
|
|
321
|
+
if (simple && lastSimple) {
|
|
322
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
323
|
+
} else {
|
|
324
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
325
|
+
}
|
|
326
|
+
lastSimple = simple;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
walk(children);
|
|
331
|
+
if (vnodeData) {
|
|
332
|
+
if (vnodeData.key) {
|
|
333
|
+
key = vnodeData.key;
|
|
334
|
+
}
|
|
335
|
+
if (vnodeData.name) {
|
|
336
|
+
slotName = vnodeData.name;
|
|
337
|
+
}
|
|
338
|
+
{
|
|
339
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
340
|
+
if (classData) {
|
|
341
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
if (typeof nodeName === "function") {
|
|
346
|
+
return nodeName(
|
|
347
|
+
vnodeData === null ? {} : vnodeData,
|
|
348
|
+
vNodeChildren,
|
|
349
|
+
vdomFnUtils
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
const vnode = newVNode(nodeName, null);
|
|
353
|
+
vnode.$attrs$ = vnodeData;
|
|
354
|
+
if (vNodeChildren.length > 0) {
|
|
355
|
+
vnode.$children$ = vNodeChildren;
|
|
356
|
+
}
|
|
357
|
+
{
|
|
358
|
+
vnode.$key$ = key;
|
|
359
|
+
}
|
|
360
|
+
{
|
|
361
|
+
vnode.$name$ = slotName;
|
|
362
|
+
}
|
|
363
|
+
return vnode;
|
|
364
|
+
};
|
|
365
|
+
var newVNode = (tag, text) => {
|
|
366
|
+
const vnode = {
|
|
367
|
+
$flags$: 0,
|
|
368
|
+
$tag$: tag,
|
|
369
|
+
$text$: text,
|
|
370
|
+
$elm$: null,
|
|
371
|
+
$children$: null
|
|
372
|
+
};
|
|
373
|
+
{
|
|
374
|
+
vnode.$attrs$ = null;
|
|
375
|
+
}
|
|
376
|
+
{
|
|
377
|
+
vnode.$key$ = null;
|
|
378
|
+
}
|
|
379
|
+
{
|
|
380
|
+
vnode.$name$ = null;
|
|
381
|
+
}
|
|
382
|
+
return vnode;
|
|
383
|
+
};
|
|
384
|
+
var Host = {};
|
|
385
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
|
386
|
+
var vdomFnUtils = {
|
|
387
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
388
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
389
|
+
};
|
|
390
|
+
var convertToPublic = (node) => ({
|
|
391
|
+
vattrs: node.$attrs$,
|
|
392
|
+
vchildren: node.$children$,
|
|
393
|
+
vkey: node.$key$,
|
|
394
|
+
vname: node.$name$,
|
|
395
|
+
vtag: node.$tag$,
|
|
396
|
+
vtext: node.$text$
|
|
397
|
+
});
|
|
398
|
+
var convertToPrivate = (node) => {
|
|
399
|
+
if (typeof node.vtag === "function") {
|
|
400
|
+
const vnodeData = { ...node.vattrs };
|
|
401
|
+
if (node.vkey) {
|
|
402
|
+
vnodeData.key = node.vkey;
|
|
403
|
+
}
|
|
404
|
+
if (node.vname) {
|
|
405
|
+
vnodeData.name = node.vname;
|
|
406
|
+
}
|
|
407
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
408
|
+
}
|
|
409
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
410
|
+
vnode.$attrs$ = node.vattrs;
|
|
411
|
+
vnode.$children$ = node.vchildren;
|
|
412
|
+
vnode.$key$ = node.vkey;
|
|
413
|
+
vnode.$name$ = node.vname;
|
|
414
|
+
return vnode;
|
|
415
|
+
};
|
|
416
|
+
var createSupportsRuleRe = (selector) => {
|
|
417
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
418
|
+
return new RegExp(
|
|
419
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
420
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
421
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
422
|
+
"g"
|
|
423
|
+
);
|
|
424
|
+
};
|
|
425
|
+
createSupportsRuleRe("::slotted");
|
|
426
|
+
createSupportsRuleRe(":host");
|
|
427
|
+
createSupportsRuleRe(":host-context");
|
|
428
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
429
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
430
|
+
if (propType & 4 /* Boolean */) {
|
|
431
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
432
|
+
}
|
|
433
|
+
if (propType & 2 /* Number */) {
|
|
434
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
435
|
+
}
|
|
436
|
+
if (propType & 1 /* String */) {
|
|
437
|
+
return String(propValue);
|
|
438
|
+
}
|
|
439
|
+
return propValue;
|
|
440
|
+
}
|
|
441
|
+
return propValue;
|
|
442
|
+
};
|
|
443
|
+
var getElement = (ref) => ref;
|
|
444
|
+
|
|
445
|
+
// src/runtime/event-emitter.ts
|
|
446
|
+
var createEvent = (ref, name, flags) => {
|
|
447
|
+
const elm = getElement(ref);
|
|
448
|
+
return {
|
|
449
|
+
emit: (detail) => {
|
|
450
|
+
return emitEvent(elm, name, {
|
|
451
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
452
|
+
composed: !!(flags & 2 /* Composed */),
|
|
453
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
454
|
+
detail
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
var emitEvent = (elm, name, opts) => {
|
|
460
|
+
const ev = plt.ce(name, opts);
|
|
461
|
+
elm.dispatchEvent(ev);
|
|
462
|
+
return ev;
|
|
463
|
+
};
|
|
464
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
465
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
466
|
+
let style = styles.get(scopeId2);
|
|
467
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
468
|
+
style = style || new CSSStyleSheet();
|
|
469
|
+
if (typeof style === "string") {
|
|
470
|
+
style = cssText;
|
|
471
|
+
} else {
|
|
472
|
+
style.replaceSync(cssText);
|
|
473
|
+
}
|
|
474
|
+
} else {
|
|
475
|
+
style = cssText;
|
|
476
|
+
}
|
|
477
|
+
styles.set(scopeId2, style);
|
|
478
|
+
};
|
|
479
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
480
|
+
var _a;
|
|
481
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
482
|
+
const style = styles.get(scopeId2);
|
|
483
|
+
if (!win.document) {
|
|
484
|
+
return scopeId2;
|
|
485
|
+
}
|
|
486
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
487
|
+
if (style) {
|
|
488
|
+
if (typeof style === "string") {
|
|
489
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
490
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
491
|
+
let styleElm;
|
|
492
|
+
if (!appliedStyles) {
|
|
493
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
494
|
+
}
|
|
495
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
496
|
+
{
|
|
497
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
498
|
+
styleElm.innerHTML = style;
|
|
499
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
500
|
+
if (nonce != null) {
|
|
501
|
+
styleElm.setAttribute("nonce", nonce);
|
|
502
|
+
}
|
|
503
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
504
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
505
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
506
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
507
|
+
styleContainerNode.insertBefore(
|
|
508
|
+
styleElm,
|
|
509
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
510
|
+
);
|
|
511
|
+
} else if ("host" in styleContainerNode) {
|
|
512
|
+
if (supportsConstructableStylesheets) {
|
|
513
|
+
const stylesheet = new CSSStyleSheet();
|
|
514
|
+
stylesheet.replaceSync(style);
|
|
515
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
516
|
+
} else {
|
|
517
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
518
|
+
if (existingStyleContainer) {
|
|
519
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
520
|
+
} else {
|
|
521
|
+
styleContainerNode.prepend(styleElm);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
} else {
|
|
525
|
+
styleContainerNode.append(styleElm);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
529
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
533
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
534
|
+
}
|
|
535
|
+
if (appliedStyles) {
|
|
536
|
+
appliedStyles.add(scopeId2);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
540
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
return scopeId2;
|
|
544
|
+
};
|
|
545
|
+
var attachStyles = (hostRef) => {
|
|
546
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
547
|
+
const elm = hostRef.$hostElement$;
|
|
548
|
+
const flags = cmpMeta.$flags$;
|
|
549
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
550
|
+
const scopeId2 = addStyle(
|
|
551
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
552
|
+
cmpMeta);
|
|
553
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
554
|
+
elm["s-sc"] = scopeId2;
|
|
555
|
+
elm.classList.add(scopeId2 + "-h");
|
|
556
|
+
}
|
|
557
|
+
endAttachStyles();
|
|
558
|
+
};
|
|
559
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
560
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
561
|
+
if (oldValue === newValue) {
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
565
|
+
let ln = memberName.toLowerCase();
|
|
566
|
+
if (memberName === "class") {
|
|
567
|
+
const classList = elm.classList;
|
|
568
|
+
const oldClasses = parseClassList(oldValue);
|
|
569
|
+
let newClasses = parseClassList(newValue);
|
|
570
|
+
{
|
|
571
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
572
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
573
|
+
}
|
|
574
|
+
} else if (memberName === "style") {
|
|
575
|
+
{
|
|
576
|
+
for (const prop in oldValue) {
|
|
577
|
+
if (!newValue || newValue[prop] == null) {
|
|
578
|
+
if (prop.includes("-")) {
|
|
579
|
+
elm.style.removeProperty(prop);
|
|
580
|
+
} else {
|
|
581
|
+
elm.style[prop] = "";
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
for (const prop in newValue) {
|
|
587
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
588
|
+
if (prop.includes("-")) {
|
|
589
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
590
|
+
} else {
|
|
591
|
+
elm.style[prop] = newValue[prop];
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
596
|
+
if (newValue) {
|
|
597
|
+
newValue(elm);
|
|
598
|
+
}
|
|
599
|
+
} else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
600
|
+
if (memberName[2] === "-") {
|
|
601
|
+
memberName = memberName.slice(3);
|
|
602
|
+
} else if (isMemberInElement(win, ln)) {
|
|
603
|
+
memberName = ln.slice(2);
|
|
604
|
+
} else {
|
|
605
|
+
memberName = ln[2] + memberName.slice(3);
|
|
606
|
+
}
|
|
607
|
+
if (oldValue || newValue) {
|
|
608
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
609
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
610
|
+
if (oldValue) {
|
|
611
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
612
|
+
}
|
|
613
|
+
if (newValue) {
|
|
614
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
} else {
|
|
618
|
+
const isComplex = isComplexType(newValue);
|
|
619
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
620
|
+
try {
|
|
621
|
+
if (!elm.tagName.includes("-")) {
|
|
622
|
+
const n = newValue == null ? "" : newValue;
|
|
623
|
+
if (memberName === "list") {
|
|
624
|
+
isProp = false;
|
|
625
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
626
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
627
|
+
elm[memberName] = n;
|
|
628
|
+
} else {
|
|
629
|
+
elm.setAttribute(memberName, n);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
} else if (elm[memberName] !== newValue) {
|
|
633
|
+
elm[memberName] = newValue;
|
|
634
|
+
}
|
|
635
|
+
} catch (e) {
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
let xlink = false;
|
|
639
|
+
{
|
|
640
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
641
|
+
memberName = ln;
|
|
642
|
+
xlink = true;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
if (newValue == null || newValue === false) {
|
|
646
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
647
|
+
if (xlink) {
|
|
648
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
649
|
+
} else {
|
|
650
|
+
elm.removeAttribute(memberName);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
654
|
+
newValue = newValue === true ? "" : newValue;
|
|
655
|
+
if (xlink) {
|
|
656
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
657
|
+
} else {
|
|
658
|
+
elm.setAttribute(memberName, newValue);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
var parseClassListRegex = /\s/;
|
|
664
|
+
var parseClassList = (value) => {
|
|
665
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
666
|
+
value = value.baseVal;
|
|
667
|
+
}
|
|
668
|
+
if (!value || typeof value !== "string") {
|
|
669
|
+
return [];
|
|
670
|
+
}
|
|
671
|
+
return value.split(parseClassListRegex);
|
|
672
|
+
};
|
|
673
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
674
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
675
|
+
|
|
676
|
+
// src/runtime/vdom/update-element.ts
|
|
677
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
678
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
679
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
680
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
681
|
+
{
|
|
682
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
683
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
684
|
+
setAccessor(
|
|
685
|
+
elm,
|
|
686
|
+
memberName,
|
|
687
|
+
oldVnodeAttrs[memberName],
|
|
688
|
+
void 0,
|
|
689
|
+
isSvgMode2,
|
|
690
|
+
newVnode.$flags$);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
695
|
+
setAccessor(
|
|
696
|
+
elm,
|
|
697
|
+
memberName,
|
|
698
|
+
oldVnodeAttrs[memberName],
|
|
699
|
+
newVnodeAttrs[memberName],
|
|
700
|
+
isSvgMode2,
|
|
701
|
+
newVnode.$flags$);
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
function sortedAttrNames(attrNames) {
|
|
705
|
+
return attrNames.includes("ref") ? (
|
|
706
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
707
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
708
|
+
) : (
|
|
709
|
+
// no need to sort, return the original array
|
|
710
|
+
attrNames
|
|
711
|
+
);
|
|
712
|
+
}
|
|
713
|
+
var contentRef;
|
|
714
|
+
var hostTagName;
|
|
715
|
+
var useNativeShadowDom = false;
|
|
716
|
+
var checkSlotFallbackVisibility = false;
|
|
717
|
+
var checkSlotRelocate = false;
|
|
718
|
+
var isSvgMode = false;
|
|
719
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
720
|
+
var _a;
|
|
721
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
722
|
+
let i2 = 0;
|
|
723
|
+
let elm;
|
|
724
|
+
let childNode;
|
|
725
|
+
let oldVNode;
|
|
726
|
+
if (!useNativeShadowDom) {
|
|
727
|
+
checkSlotRelocate = true;
|
|
728
|
+
if (newVNode2.$tag$ === "slot") {
|
|
729
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
730
|
+
// slot element has fallback content
|
|
731
|
+
// still create an element that "mocks" the slot element
|
|
732
|
+
2 /* isSlotFallback */
|
|
733
|
+
) : (
|
|
734
|
+
// slot element does not have fallback content
|
|
735
|
+
// create an html comment we'll use to always reference
|
|
736
|
+
// where actual slot content should sit next to
|
|
737
|
+
1 /* isSlotReference */
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
if (newVNode2.$text$ !== null) {
|
|
742
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
743
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
744
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
745
|
+
{
|
|
746
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
747
|
+
}
|
|
748
|
+
} else {
|
|
749
|
+
if (!isSvgMode) {
|
|
750
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
751
|
+
}
|
|
752
|
+
if (!win.document) {
|
|
753
|
+
throw new Error(
|
|
754
|
+
"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."
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
758
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
759
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
760
|
+
) ;
|
|
761
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
762
|
+
isSvgMode = false;
|
|
763
|
+
}
|
|
764
|
+
{
|
|
765
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
766
|
+
}
|
|
767
|
+
if (newVNode2.$children$) {
|
|
768
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
769
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
770
|
+
if (childNode) {
|
|
771
|
+
elm.appendChild(childNode);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
{
|
|
776
|
+
if (newVNode2.$tag$ === "svg") {
|
|
777
|
+
isSvgMode = false;
|
|
778
|
+
} else if (elm.tagName === "foreignObject") {
|
|
779
|
+
isSvgMode = true;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
elm["s-hn"] = hostTagName;
|
|
784
|
+
{
|
|
785
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
786
|
+
elm["s-sr"] = true;
|
|
787
|
+
elm["s-cr"] = contentRef;
|
|
788
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
789
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
790
|
+
patchSlotNode(elm);
|
|
791
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
792
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
793
|
+
{
|
|
794
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return elm;
|
|
800
|
+
};
|
|
801
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
802
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
803
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
804
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
805
|
+
const childNode = oldSlotChildNodes[i2];
|
|
806
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
807
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
808
|
+
childNode["s-ol"].remove();
|
|
809
|
+
childNode["s-ol"] = void 0;
|
|
810
|
+
childNode["s-sh"] = void 0;
|
|
811
|
+
checkSlotRelocate = true;
|
|
812
|
+
}
|
|
813
|
+
if (recursive) {
|
|
814
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
818
|
+
};
|
|
819
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
820
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
821
|
+
let childNode;
|
|
822
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
823
|
+
containerElm = containerElm.shadowRoot;
|
|
824
|
+
}
|
|
825
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
826
|
+
if (vnodes[startIdx]) {
|
|
827
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
828
|
+
if (childNode) {
|
|
829
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
830
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
836
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
837
|
+
const vnode = vnodes[index];
|
|
838
|
+
if (vnode) {
|
|
839
|
+
const elm = vnode.$elm$;
|
|
840
|
+
nullifyVNodeRefs(vnode);
|
|
841
|
+
if (elm) {
|
|
842
|
+
{
|
|
843
|
+
checkSlotFallbackVisibility = true;
|
|
844
|
+
if (elm["s-ol"]) {
|
|
845
|
+
elm["s-ol"].remove();
|
|
846
|
+
} else {
|
|
847
|
+
putBackInOriginalLocation(elm, true);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
elm.remove();
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
856
|
+
let oldStartIdx = 0;
|
|
857
|
+
let newStartIdx = 0;
|
|
858
|
+
let idxInOld = 0;
|
|
859
|
+
let i2 = 0;
|
|
860
|
+
let oldEndIdx = oldCh.length - 1;
|
|
861
|
+
let oldStartVnode = oldCh[0];
|
|
862
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
863
|
+
let newEndIdx = newCh.length - 1;
|
|
864
|
+
let newStartVnode = newCh[0];
|
|
865
|
+
let newEndVnode = newCh[newEndIdx];
|
|
866
|
+
let node;
|
|
867
|
+
let elmToMove;
|
|
868
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
869
|
+
if (oldStartVnode == null) {
|
|
870
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
871
|
+
} else if (oldEndVnode == null) {
|
|
872
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
873
|
+
} else if (newStartVnode == null) {
|
|
874
|
+
newStartVnode = newCh[++newStartIdx];
|
|
875
|
+
} else if (newEndVnode == null) {
|
|
876
|
+
newEndVnode = newCh[--newEndIdx];
|
|
877
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
878
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
879
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
880
|
+
newStartVnode = newCh[++newStartIdx];
|
|
881
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
882
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
883
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
884
|
+
newEndVnode = newCh[--newEndIdx];
|
|
885
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
886
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
887
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
888
|
+
}
|
|
889
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
890
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
891
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
892
|
+
newEndVnode = newCh[--newEndIdx];
|
|
893
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
894
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
895
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
896
|
+
}
|
|
897
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
898
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
899
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
900
|
+
newStartVnode = newCh[++newStartIdx];
|
|
901
|
+
} else {
|
|
902
|
+
idxInOld = -1;
|
|
903
|
+
{
|
|
904
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
905
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
906
|
+
idxInOld = i2;
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
if (idxInOld >= 0) {
|
|
912
|
+
elmToMove = oldCh[idxInOld];
|
|
913
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
914
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
915
|
+
} else {
|
|
916
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
917
|
+
oldCh[idxInOld] = void 0;
|
|
918
|
+
node = elmToMove.$elm$;
|
|
919
|
+
}
|
|
920
|
+
newStartVnode = newCh[++newStartIdx];
|
|
921
|
+
} else {
|
|
922
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
923
|
+
newStartVnode = newCh[++newStartIdx];
|
|
924
|
+
}
|
|
925
|
+
if (node) {
|
|
926
|
+
{
|
|
927
|
+
insertBefore(
|
|
928
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
929
|
+
node,
|
|
930
|
+
referenceNode(oldStartVnode.$elm$)
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
if (oldStartIdx > oldEndIdx) {
|
|
937
|
+
addVnodes(
|
|
938
|
+
parentElm,
|
|
939
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
940
|
+
newVNode2,
|
|
941
|
+
newCh,
|
|
942
|
+
newStartIdx,
|
|
943
|
+
newEndIdx
|
|
944
|
+
);
|
|
945
|
+
} else if (newStartIdx > newEndIdx) {
|
|
946
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
950
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
951
|
+
if (leftVNode.$tag$ === "slot") {
|
|
952
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
953
|
+
}
|
|
954
|
+
if (!isInitialRender) {
|
|
955
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
956
|
+
}
|
|
957
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
958
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
959
|
+
}
|
|
960
|
+
return true;
|
|
961
|
+
}
|
|
962
|
+
return false;
|
|
963
|
+
};
|
|
964
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
965
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
966
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
967
|
+
const oldChildren = oldVNode.$children$;
|
|
968
|
+
const newChildren = newVNode2.$children$;
|
|
969
|
+
const tag = newVNode2.$tag$;
|
|
970
|
+
const text = newVNode2.$text$;
|
|
971
|
+
let defaultHolder;
|
|
972
|
+
if (text === null) {
|
|
973
|
+
{
|
|
974
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
975
|
+
}
|
|
976
|
+
{
|
|
977
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
978
|
+
}
|
|
979
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
980
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
981
|
+
} else if (newChildren !== null) {
|
|
982
|
+
if (oldVNode.$text$ !== null) {
|
|
983
|
+
elm.textContent = "";
|
|
984
|
+
}
|
|
985
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
986
|
+
} else if (
|
|
987
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
988
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
989
|
+
) {
|
|
990
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
991
|
+
}
|
|
992
|
+
if (isSvgMode && tag === "svg") {
|
|
993
|
+
isSvgMode = false;
|
|
994
|
+
}
|
|
995
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
996
|
+
defaultHolder.parentNode.textContent = text;
|
|
997
|
+
} else if (oldVNode.$text$ !== text) {
|
|
998
|
+
elm.data = text;
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
var relocateNodes = [];
|
|
1002
|
+
var markSlotContentForRelocation = (elm) => {
|
|
1003
|
+
let node;
|
|
1004
|
+
let hostContentNodes;
|
|
1005
|
+
let j;
|
|
1006
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
1007
|
+
for (const childNode of children) {
|
|
1008
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1009
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1010
|
+
const slotName = childNode["s-sn"];
|
|
1011
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1012
|
+
node = hostContentNodes[j];
|
|
1013
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
|
|
1014
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1015
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1016
|
+
checkSlotFallbackVisibility = true;
|
|
1017
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
1018
|
+
if (relocateNodeData) {
|
|
1019
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1020
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
1021
|
+
} else {
|
|
1022
|
+
node["s-sh"] = childNode["s-hn"];
|
|
1023
|
+
relocateNodes.push({
|
|
1024
|
+
$slotRefNode$: childNode,
|
|
1025
|
+
$nodeToRelocate$: node
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
if (node["s-sr"]) {
|
|
1029
|
+
relocateNodes.map((relocateNode) => {
|
|
1030
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1031
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1032
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1033
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1039
|
+
relocateNodes.push({
|
|
1040
|
+
$nodeToRelocate$: node
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1047
|
+
markSlotContentForRelocation(childNode);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
1052
|
+
{
|
|
1053
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1054
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
1058
|
+
{
|
|
1059
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1063
|
+
var _a, _b, _c, _d;
|
|
1064
|
+
const hostElm = hostRef.$hostElement$;
|
|
1065
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1066
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1067
|
+
const isHostElement = isHost(renderFnResults);
|
|
1068
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
1069
|
+
hostTagName = hostElm.tagName;
|
|
1070
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
1071
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
1072
|
+
cmpMeta.$attrsToReflect$.map(
|
|
1073
|
+
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
1074
|
+
);
|
|
1075
|
+
}
|
|
1076
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1077
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
1078
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
1079
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
rootVnode.$tag$ = null;
|
|
1084
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1085
|
+
hostRef.$vnode$ = rootVnode;
|
|
1086
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1087
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1088
|
+
{
|
|
1089
|
+
contentRef = hostElm["s-cr"];
|
|
1090
|
+
checkSlotFallbackVisibility = false;
|
|
1091
|
+
}
|
|
1092
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1093
|
+
{
|
|
1094
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1095
|
+
if (checkSlotRelocate) {
|
|
1096
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1097
|
+
for (const relocateData of relocateNodes) {
|
|
1098
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1099
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1100
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1101
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1102
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
for (const relocateData of relocateNodes) {
|
|
1106
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1107
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1108
|
+
if (slotRefNode) {
|
|
1109
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1110
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1111
|
+
{
|
|
1112
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1113
|
+
while (orgLocationNode) {
|
|
1114
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1115
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1116
|
+
refNode = refNode.nextSibling;
|
|
1117
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1118
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1119
|
+
}
|
|
1120
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
1121
|
+
insertBeforeNode = refNode;
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1129
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1130
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1131
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1132
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1133
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1134
|
+
}
|
|
1135
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1136
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1137
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1142
|
+
} else {
|
|
1143
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1144
|
+
if (isInitialLoad) {
|
|
1145
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1146
|
+
}
|
|
1147
|
+
nodeToRelocate.hidden = true;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
if (checkSlotFallbackVisibility) {
|
|
1153
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1154
|
+
}
|
|
1155
|
+
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1156
|
+
relocateNodes.length = 0;
|
|
1157
|
+
}
|
|
1158
|
+
contentRef = void 0;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
// src/runtime/update-component.ts
|
|
1162
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1163
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1164
|
+
const index = ancestorComponent["s-p"].push(
|
|
1165
|
+
new Promise(
|
|
1166
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
1167
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
1168
|
+
r();
|
|
1169
|
+
}
|
|
1170
|
+
)
|
|
1171
|
+
);
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1175
|
+
{
|
|
1176
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1177
|
+
}
|
|
1178
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1179
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1182
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1183
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1184
|
+
return writeTask(dispatch) ;
|
|
1185
|
+
};
|
|
1186
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1187
|
+
const elm = hostRef.$hostElement$;
|
|
1188
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1189
|
+
const instance = elm;
|
|
1190
|
+
if (!instance) {
|
|
1191
|
+
throw new Error(
|
|
1192
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1195
|
+
let maybePromise;
|
|
1196
|
+
if (isInitialLoad) {
|
|
1197
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
1198
|
+
} else {
|
|
1199
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
1200
|
+
}
|
|
1201
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
1202
|
+
endSchedule();
|
|
1203
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1204
|
+
};
|
|
1205
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
1206
|
+
console.error(err2);
|
|
1207
|
+
fn();
|
|
1208
|
+
}) : fn();
|
|
1209
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
1210
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1211
|
+
var _a;
|
|
1212
|
+
const elm = hostRef.$hostElement$;
|
|
1213
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1214
|
+
const rc = elm["s-rc"];
|
|
1215
|
+
if (isInitialLoad) {
|
|
1216
|
+
attachStyles(hostRef);
|
|
1217
|
+
}
|
|
1218
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1219
|
+
{
|
|
1220
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1221
|
+
}
|
|
1222
|
+
if (rc) {
|
|
1223
|
+
rc.map((cb) => cb());
|
|
1224
|
+
elm["s-rc"] = void 0;
|
|
1225
|
+
}
|
|
1226
|
+
endRender();
|
|
1227
|
+
endUpdate();
|
|
1228
|
+
{
|
|
1229
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1230
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1231
|
+
if (childrenPromises.length === 0) {
|
|
1232
|
+
postUpdate();
|
|
1233
|
+
} else {
|
|
1234
|
+
Promise.all(childrenPromises).then(postUpdate);
|
|
1235
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1236
|
+
childrenPromises.length = 0;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1241
|
+
try {
|
|
1242
|
+
instance = instance.render && instance.render();
|
|
1243
|
+
{
|
|
1244
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
1245
|
+
}
|
|
1246
|
+
{
|
|
1247
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1248
|
+
}
|
|
1249
|
+
{
|
|
1250
|
+
{
|
|
1251
|
+
{
|
|
1252
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
} catch (e) {
|
|
1257
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1258
|
+
}
|
|
1259
|
+
return null;
|
|
1260
|
+
};
|
|
1261
|
+
var postUpdateComponent = (hostRef) => {
|
|
1262
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1263
|
+
const elm = hostRef.$hostElement$;
|
|
1264
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1265
|
+
const instance = elm;
|
|
1266
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1267
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1268
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1269
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1270
|
+
{
|
|
1271
|
+
addHydratedFlag(elm);
|
|
1272
|
+
}
|
|
1273
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1274
|
+
endPostUpdate();
|
|
1275
|
+
{
|
|
1276
|
+
hostRef.$onReadyResolve$(elm);
|
|
1277
|
+
if (!ancestorComponent) {
|
|
1278
|
+
appDidLoad();
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
} else {
|
|
1282
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1283
|
+
endPostUpdate();
|
|
1284
|
+
}
|
|
1285
|
+
{
|
|
1286
|
+
if (hostRef.$onRenderResolve$) {
|
|
1287
|
+
hostRef.$onRenderResolve$();
|
|
1288
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1289
|
+
}
|
|
1290
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1291
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1292
|
+
}
|
|
1293
|
+
hostRef.$flags$ &= -517;
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
var forceUpdate = (ref) => {
|
|
1297
|
+
{
|
|
1298
|
+
const hostRef = getHostRef(ref);
|
|
1299
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1300
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1301
|
+
scheduleUpdate(hostRef, false);
|
|
1302
|
+
}
|
|
1303
|
+
return isConnected;
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
var appDidLoad = (who) => {
|
|
1307
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1308
|
+
};
|
|
1309
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
1310
|
+
if (instance && instance[method]) {
|
|
1311
|
+
try {
|
|
1312
|
+
return instance[method](arg);
|
|
1313
|
+
} catch (e) {
|
|
1314
|
+
consoleError(e, elm);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return void 0;
|
|
1318
|
+
};
|
|
1319
|
+
var addHydratedFlag = (elm) => {
|
|
1320
|
+
var _a;
|
|
1321
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
// src/runtime/set-value.ts
|
|
1325
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1326
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1327
|
+
const hostRef = getHostRef(ref);
|
|
1328
|
+
const elm = ref;
|
|
1329
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1330
|
+
const flags = hostRef.$flags$;
|
|
1331
|
+
const instance = elm;
|
|
1332
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1333
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1334
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1335
|
+
if (didValueChange) {
|
|
1336
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
|
1337
|
+
{
|
|
1338
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1339
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1340
|
+
if (watchMethods) {
|
|
1341
|
+
watchMethods.map((watchMethodName) => {
|
|
1342
|
+
try {
|
|
1343
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1344
|
+
} catch (e) {
|
|
1345
|
+
consoleError(e, elm);
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1351
|
+
if (instance.componentShouldUpdate) {
|
|
1352
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
scheduleUpdate(hostRef, false);
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
// src/runtime/proxy-component.ts
|
|
1363
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1364
|
+
var _a, _b;
|
|
1365
|
+
const prototype = Cstr.prototype;
|
|
1366
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1367
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1368
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1369
|
+
}
|
|
1370
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1371
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
1372
|
+
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
1373
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1374
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1375
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1376
|
+
{
|
|
1377
|
+
Object.defineProperty(prototype, memberName, {
|
|
1378
|
+
get() {
|
|
1379
|
+
{
|
|
1380
|
+
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
configurable: true,
|
|
1384
|
+
enumerable: true
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
Object.defineProperty(prototype, memberName, {
|
|
1388
|
+
set(newValue) {
|
|
1389
|
+
const ref = getHostRef(this);
|
|
1390
|
+
if (origSetter) {
|
|
1391
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1392
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1393
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1394
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1395
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1396
|
+
}
|
|
1397
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1398
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1399
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1400
|
+
return;
|
|
1401
|
+
}
|
|
1402
|
+
{
|
|
1403
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1404
|
+
return;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
{
|
|
1411
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1412
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1413
|
+
plt.jmp(() => {
|
|
1414
|
+
var _a2;
|
|
1415
|
+
const propName = attrNameToPropName.get(attrName);
|
|
1416
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ; else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1417
|
+
this[propName] == newValue) {
|
|
1418
|
+
return;
|
|
1419
|
+
} else if (propName == null) {
|
|
1420
|
+
const hostRef = getHostRef(this);
|
|
1421
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1422
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1423
|
+
const elm = this;
|
|
1424
|
+
const instance = elm;
|
|
1425
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1426
|
+
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1427
|
+
if (instance[callbackName] != null) {
|
|
1428
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1429
|
+
}
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
return;
|
|
1433
|
+
}
|
|
1434
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1435
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1436
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1437
|
+
this[propName] = newValue;
|
|
1438
|
+
}
|
|
1439
|
+
});
|
|
1440
|
+
};
|
|
1441
|
+
Cstr.observedAttributes = Array.from(
|
|
1442
|
+
/* @__PURE__ */ new Set([
|
|
1443
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1444
|
+
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
1445
|
+
var _a2;
|
|
1446
|
+
const attrName = m[1] || propName;
|
|
1447
|
+
attrNameToPropName.set(attrName, propName);
|
|
1448
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1449
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1450
|
+
}
|
|
1451
|
+
return attrName;
|
|
1452
|
+
})
|
|
1453
|
+
])
|
|
1454
|
+
);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
return Cstr;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
// src/runtime/initialize-component.ts
|
|
1461
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1462
|
+
let Cstr;
|
|
1463
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1464
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1465
|
+
{
|
|
1466
|
+
Cstr = elm.constructor;
|
|
1467
|
+
const cmpTag = elm.localName;
|
|
1468
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1469
|
+
}
|
|
1470
|
+
if (Cstr && Cstr.style) {
|
|
1471
|
+
let style;
|
|
1472
|
+
if (typeof Cstr.style === "string") {
|
|
1473
|
+
style = Cstr.style;
|
|
1474
|
+
}
|
|
1475
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1476
|
+
if (!styles.has(scopeId2)) {
|
|
1477
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1478
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1479
|
+
endRegisterStyles();
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1484
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1485
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1486
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1487
|
+
} else {
|
|
1488
|
+
schedule();
|
|
1489
|
+
}
|
|
1490
|
+
};
|
|
1491
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
// src/runtime/connected-callback.ts
|
|
1495
|
+
var connectedCallback = (elm) => {
|
|
1496
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1497
|
+
const hostRef = getHostRef(elm);
|
|
1498
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1499
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1500
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1501
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1502
|
+
{
|
|
1503
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1504
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1505
|
+
setContentReference(elm);
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
{
|
|
1509
|
+
let ancestorComponent = elm;
|
|
1510
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1511
|
+
if (ancestorComponent["s-p"]) {
|
|
1512
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1513
|
+
break;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
if (cmpMeta.$members$) {
|
|
1518
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1519
|
+
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1520
|
+
const value = elm[memberName];
|
|
1521
|
+
delete elm[memberName];
|
|
1522
|
+
elm[memberName] = value;
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
if (BUILD.initializeNextTick) {
|
|
1527
|
+
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
1528
|
+
} else {
|
|
1529
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
|
1530
|
+
}
|
|
1531
|
+
} else {
|
|
1532
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1533
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1534
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
endConnected();
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
var setContentReference = (elm) => {
|
|
1541
|
+
if (!win.document) {
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1545
|
+
""
|
|
1546
|
+
);
|
|
1547
|
+
contentRefElm["s-cn"] = true;
|
|
1548
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1549
|
+
};
|
|
1550
|
+
var disconnectedCallback = async (elm) => {
|
|
1551
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1552
|
+
const hostRef = getHostRef(elm);
|
|
1553
|
+
{
|
|
1554
|
+
if (hostRef.$rmListeners$) {
|
|
1555
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1556
|
+
hostRef.$rmListeners$ = void 0;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1561
|
+
rootAppliedStyles.delete(elm);
|
|
1562
|
+
}
|
|
1563
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1564
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1565
|
+
}
|
|
1566
|
+
};
|
|
1567
|
+
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
1568
|
+
const cmpMeta = {
|
|
1569
|
+
$flags$: compactMeta[0],
|
|
1570
|
+
$tagName$: compactMeta[1]
|
|
1571
|
+
};
|
|
1572
|
+
{
|
|
1573
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1574
|
+
}
|
|
1575
|
+
{
|
|
1576
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1577
|
+
}
|
|
1578
|
+
{
|
|
1579
|
+
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
1580
|
+
}
|
|
1581
|
+
{
|
|
1582
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1583
|
+
}
|
|
1584
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
1585
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
1586
|
+
Object.assign(Cstr.prototype, {
|
|
1587
|
+
__hasHostListenerAttached: false,
|
|
1588
|
+
__registerHost() {
|
|
1589
|
+
registerHost(this, cmpMeta);
|
|
1590
|
+
},
|
|
1591
|
+
connectedCallback() {
|
|
1592
|
+
if (!this.__hasHostListenerAttached) {
|
|
1593
|
+
const hostRef = getHostRef(this);
|
|
1594
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1595
|
+
this.__hasHostListenerAttached = true;
|
|
1596
|
+
}
|
|
1597
|
+
connectedCallback(this);
|
|
1598
|
+
if (originalConnectedCallback) {
|
|
1599
|
+
originalConnectedCallback.call(this);
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
disconnectedCallback() {
|
|
1603
|
+
disconnectedCallback(this);
|
|
1604
|
+
if (originalDisconnectedCallback) {
|
|
1605
|
+
originalDisconnectedCallback.call(this);
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
__attachShadow() {
|
|
1609
|
+
{
|
|
1610
|
+
if (!this.shadowRoot) {
|
|
1611
|
+
{
|
|
1612
|
+
this.attachShadow({
|
|
1613
|
+
mode: "open",
|
|
1614
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
} else {
|
|
1618
|
+
if (this.shadowRoot.mode !== "open") {
|
|
1619
|
+
throw new Error(
|
|
1620
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1621
|
+
);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
Cstr.is = cmpMeta.$tagName$;
|
|
1628
|
+
return proxyComponent(Cstr, cmpMeta);
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
// src/runtime/fragment.ts
|
|
1632
|
+
var Fragment = (_, children) => children;
|
|
1633
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1634
|
+
if (listeners && win.document) {
|
|
1635
|
+
listeners.map(([flags, name, method]) => {
|
|
1636
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1637
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
1638
|
+
const opts = hostListenerOpts(flags);
|
|
1639
|
+
plt.ael(target, name, handler, opts);
|
|
1640
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1641
|
+
});
|
|
1642
|
+
}
|
|
1643
|
+
};
|
|
1644
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1645
|
+
try {
|
|
1646
|
+
{
|
|
1647
|
+
hostRef.$hostElement$[methodName](ev);
|
|
1648
|
+
}
|
|
1649
|
+
} catch (e) {
|
|
1650
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1654
|
+
if (flags & 4 /* TargetDocument */) {
|
|
1655
|
+
return doc;
|
|
1656
|
+
}
|
|
1657
|
+
if (flags & 8 /* TargetWindow */) {
|
|
1658
|
+
return win;
|
|
1659
|
+
}
|
|
1660
|
+
return elm;
|
|
1661
|
+
};
|
|
1662
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
1663
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
|
1664
|
+
capture: (flags & 2 /* Capture */) !== 0
|
|
1665
|
+
} : (flags & 2 /* Capture */) !== 0;
|
|
1666
|
+
|
|
1667
|
+
// src/runtime/nonce.ts
|
|
1668
|
+
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1669
|
+
|
|
1670
|
+
// src/runtime/platform-options.ts
|
|
1671
|
+
var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
1672
|
+
|
|
1673
|
+
// src/runtime/render.ts
|
|
1674
|
+
function render(vnode, container) {
|
|
1675
|
+
const cmpMeta = {
|
|
1676
|
+
$flags$: 0,
|
|
1677
|
+
$tagName$: container.tagName
|
|
1678
|
+
};
|
|
1679
|
+
const ref = {
|
|
1680
|
+
$cmpMeta$: cmpMeta,
|
|
1681
|
+
$hostElement$: container
|
|
1682
|
+
};
|
|
1683
|
+
renderVdom(ref, vnode);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
export { Fragment as F, H, setNonce as a, setPlatformOptions as b, Host as c, createEvent as d, forceUpdate as f, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
|