@watermarkinsights/ripple 5.13.0-alpha.1 → 5.13.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-DztnjEf7.js +92 -0
- package/dist/cjs/chartFunctions-CM2Nah_s.js +731 -0
- package/dist/cjs/functions-CoXfjC6r.js +10450 -0
- package/dist/cjs/index-Cig4P4gJ.js +2082 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-C7YbtGnk.js +37 -0
- package/dist/cjs/intl-DVt1J717.js +283 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +568 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +136 -0
- package/dist/cjs/priv-navigator-button_2.cjs.entry.js +54 -0
- package/dist/cjs/priv-option-list_2.cjs.entry.js +556 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_4.cjs.entry.js +702 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +20 -0
- package/dist/cjs/wm-chart.cjs.entry.js +159 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +479 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +249 -0
- package/dist/cjs/wm-file-list.cjs.entry.js +20 -0
- package/dist/cjs/wm-file.cjs.entry.js +184 -0
- package/dist/cjs/wm-input.cjs.entry.js +113 -0
- package/dist/cjs/wm-line-chart.cjs.entry.js +451 -0
- package/dist/cjs/wm-modal-footer.cjs.entry.js +46 -0
- package/dist/cjs/wm-modal-header.cjs.entry.js +38 -0
- package/dist/cjs/wm-modal-pss-footer.cjs.entry.js +42 -0
- package/dist/cjs/wm-modal-pss-header.cjs.entry.js +41 -0
- package/dist/cjs/wm-modal-pss.cjs.entry.js +137 -0
- package/dist/cjs/wm-modal.cjs.entry.js +135 -0
- package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +50 -0
- package/dist/cjs/wm-navigation-item.cjs.entry.js +20 -0
- package/dist/cjs/wm-navigation.cjs.entry.js +118 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +329 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +310 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +70 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +225 -0
- package/dist/cjs/wm-progress-indicator.cjs.entry.js +109 -0
- package/dist/cjs/wm-progress-monitor.cjs.entry.js +73 -0
- package/dist/cjs/wm-progress-slice.cjs.entry.js +15 -0
- package/dist/cjs/wm-search.cjs.entry.js +210 -0
- package/dist/cjs/wm-select.cjs.entry.js +251 -0
- package/dist/cjs/wm-tab-item.cjs.entry.js +65 -0
- package/dist/cjs/wm-tab-list.cjs.entry.js +177 -0
- package/dist/cjs/wm-tab-panel.cjs.entry.js +34 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +879 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +37 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +81 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +302 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +178 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +315 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +19 -0
- package/dist/collection/collection-manifest.json +58 -0
- package/dist/collection/components/charts/chartFunctions.js +665 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +908 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +261 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +128 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1274 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +445 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1067 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +742 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1274 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +271 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +909 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +154 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +124 -0
- package/dist/collection/components/datepickers/datepicker.css +1044 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1279 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +849 -0
- package/dist/collection/components/datepickers/wm-date-range.js +869 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +538 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +918 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +791 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1181 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +644 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +830 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +265 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +931 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +539 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1104 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +606 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +891 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +444 -0
- package/dist/collection/components/wm-button/wm-button.css +1261 -0
- package/dist/collection/components/wm-button/wm-button.js +510 -0
- package/dist/collection/components/wm-file/wm-file.css +927 -0
- package/dist/collection/components/wm-file/wm-file.js +423 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +820 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +47 -0
- package/dist/collection/components/wm-input/wm-input.css +993 -0
- package/dist/collection/components/wm-input/wm-input.js +498 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +891 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +425 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +845 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +152 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +844 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +83 -0
- package/dist/collection/components/wm-modal/wm-modal.css +892 -0
- package/dist/collection/components/wm-modal/wm-modal.js +356 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +852 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +148 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +846 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +928 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +847 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +120 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +856 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +99 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +898 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +192 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +850 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +830 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +130 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +903 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +515 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +971 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +373 -0
- package/dist/collection/components/wm-search/wm-search.css +896 -0
- package/dist/collection/components/wm-search/wm-search.js +462 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1078 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +280 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +869 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +187 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +841 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +276 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +825 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +97 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1276 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1245 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +251 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +980 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +331 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1094 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +559 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1152 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +295 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1563 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +618 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +6 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +0 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +60 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +825 -0
- package/dist/collection/global/global.js +88 -0
- package/dist/collection/global/interfaces.js +51 -0
- package/dist/collection/global/intl.js +274 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/components/chartFunctions.js +1 -2
- package/dist/components/functions.js +844 -7899
- package/dist/components/index.js +1 -48
- package/dist/components/interfaces.js +0 -19
- package/dist/components/wm-chart.js +1 -1
- package/dist/components/wm-file.js +1 -1
- package/dist/components/wm-navigation.js +1 -1
- package/dist/components/wm-navigator.js +0 -41
- package/dist/components/wm-progress-monitor.js +2 -2
- package/dist/components/wm-snackbar.js +23 -15
- package/dist/components/wm-tab-list.js +1 -1
- package/dist/components/wm-tag-input.js +1 -1
- package/dist/components/wm-toggletip.js +1 -1
- package/dist/esm/app-globals-9HoPoE5v.js +90 -0
- package/dist/esm/chartFunctions-BFCUD5JX.js +714 -0
- package/dist/esm/functions-ZDMCMR3o.js +10410 -0
- package/dist/esm/index-EopL5zo4.js +2071 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-CyJHzEjr.js +34 -0
- package/dist/esm/intl-DYVRT1s6.js +277 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/priv-calendar.entry.js +566 -0
- package/dist/esm/priv-chart-popover.entry.js +134 -0
- package/dist/esm/priv-navigator-button_2.entry.js +51 -0
- package/dist/esm/priv-option-list_2.entry.js +553 -0
- package/dist/esm/ripple.js +21 -0
- package/dist/esm/wm-action-menu_4.entry.js +697 -0
- package/dist/esm/wm-chart-slice.entry.js +18 -0
- package/dist/esm/wm-chart.entry.js +157 -0
- package/dist/esm/wm-date-range.entry.js +477 -0
- package/dist/esm/wm-datepicker.entry.js +247 -0
- package/dist/esm/wm-file-list.entry.js +18 -0
- package/dist/esm/wm-file.entry.js +182 -0
- package/dist/esm/wm-input.entry.js +111 -0
- package/dist/esm/wm-line-chart.entry.js +449 -0
- package/dist/esm/wm-modal-footer.entry.js +44 -0
- package/dist/esm/wm-modal-header.entry.js +36 -0
- package/dist/esm/wm-modal-pss-footer.entry.js +40 -0
- package/dist/esm/wm-modal-pss-header.entry.js +39 -0
- package/dist/esm/wm-modal-pss.entry.js +135 -0
- package/dist/esm/wm-modal.entry.js +133 -0
- package/dist/esm/wm-navigation-hamburger.entry.js +48 -0
- package/dist/esm/wm-navigation-item.entry.js +18 -0
- package/dist/esm/wm-navigation.entry.js +116 -0
- package/dist/esm/wm-navigator.entry.js +327 -0
- package/dist/esm/wm-nested-select.entry.js +308 -0
- package/dist/esm/wm-optgroup.entry.js +68 -0
- package/dist/esm/wm-pagination.entry.js +223 -0
- package/dist/esm/wm-progress-indicator.entry.js +107 -0
- package/dist/esm/wm-progress-monitor.entry.js +71 -0
- package/dist/esm/wm-progress-slice.entry.js +13 -0
- package/dist/esm/wm-search.entry.js +208 -0
- package/dist/esm/wm-select.entry.js +249 -0
- package/dist/esm/wm-tab-item.entry.js +63 -0
- package/dist/esm/wm-tab-list.entry.js +175 -0
- package/dist/esm/wm-tab-panel.entry.js +32 -0
- package/dist/esm/wm-tag-input.entry.js +877 -0
- package/dist/esm/wm-tag-option.entry.js +35 -0
- package/dist/esm/wm-textarea.entry.js +79 -0
- package/dist/esm/wm-timepicker.entry.js +300 -0
- package/dist/esm/wm-toggletip.entry.js +176 -0
- package/dist/esm/wm-uploader.entry.js +313 -0
- package/dist/esm/wm-wrapper.entry.js +17 -0
- package/dist/esm-es5/app-globals-9HoPoE5v.js +1 -0
- package/dist/esm-es5/chartFunctions-BFCUD5JX.js +1 -0
- package/dist/esm-es5/functions-ZDMCMR3o.js +1 -0
- package/dist/esm-es5/index-EopL5zo4.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-CyJHzEjr.js +1 -0
- package/dist/esm-es5/intl-DYVRT1s6.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/priv-calendar.entry.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-button_2.entry.js +1 -0
- package/dist/esm-es5/priv-option-list_2.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -0
- package/dist/esm-es5/wm-action-menu_4.entry.js +1 -0
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
- package/dist/esm-es5/wm-chart.entry.js +1 -0
- package/dist/esm-es5/wm-date-range.entry.js +1 -0
- package/dist/esm-es5/wm-datepicker.entry.js +1 -0
- package/dist/esm-es5/wm-file-list.entry.js +1 -0
- package/dist/esm-es5/wm-file.entry.js +1 -0
- package/dist/esm-es5/wm-input.entry.js +1 -0
- package/dist/esm-es5/wm-line-chart.entry.js +1 -0
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss.entry.js +1 -0
- package/dist/esm-es5/wm-modal.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-hamburger.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-item.entry.js +1 -0
- package/dist/esm-es5/wm-navigation.entry.js +1 -0
- package/dist/esm-es5/wm-navigator.entry.js +1 -0
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- package/dist/esm-es5/wm-pagination.entry.js +1 -0
- package/dist/esm-es5/wm-progress-indicator.entry.js +1 -0
- package/dist/esm-es5/wm-progress-monitor.entry.js +1 -0
- package/dist/esm-es5/wm-progress-slice.entry.js +1 -0
- package/dist/esm-es5/wm-search.entry.js +1 -0
- package/dist/esm-es5/wm-select.entry.js +1 -0
- package/dist/esm-es5/wm-tab-item.entry.js +1 -0
- package/dist/esm-es5/wm-tab-list.entry.js +1 -0
- package/dist/esm-es5/wm-tab-panel.entry.js +1 -0
- package/dist/esm-es5/wm-tag-input.entry.js +1 -0
- package/dist/esm-es5/wm-tag-option.entry.js +1 -0
- package/dist/esm-es5/wm-textarea.entry.js +1 -0
- package/dist/esm-es5/wm-timepicker.entry.js +1 -0
- package/dist/esm-es5/wm-toggletip.entry.js +1 -0
- package/dist/esm-es5/wm-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-wrapper.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +2 -0
- package/dist/loader/index.cjs.js +2 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +2 -0
- package/dist/loader/index.js +3 -0
- package/dist/ripple/index.esm.js +0 -0
- package/dist/ripple/p-032f127e.entry.js +1 -0
- package/dist/ripple/p-0bd43518.system.entry.js +1 -0
- package/dist/ripple/p-0dccd9b4.system.entry.js +1 -0
- package/dist/ripple/p-0dffa9ff.system.entry.js +1 -0
- package/dist/ripple/p-10d2b86e.entry.js +1 -0
- package/dist/ripple/p-1818d7f9.entry.js +1 -0
- package/dist/ripple/p-18d22114.system.entry.js +1 -0
- package/dist/ripple/p-1a769629.system.entry.js +1 -0
- package/dist/ripple/p-271ba485.system.entry.js +1 -0
- package/dist/ripple/p-2d41fbed.system.entry.js +1 -0
- package/dist/ripple/p-2f26b6ac.entry.js +1 -0
- package/dist/ripple/p-3065bbe5.system.entry.js +1 -0
- package/dist/ripple/p-306caa10.entry.js +1 -0
- package/dist/ripple/p-32f2f3b4.system.entry.js +1 -0
- package/dist/ripple/p-340b73a9.system.entry.js +1 -0
- package/dist/ripple/p-42f9cd3d.entry.js +1 -0
- package/dist/ripple/p-47b525bd.entry.js +1 -0
- package/dist/ripple/p-492a8a9f.entry.js +1 -0
- package/dist/ripple/p-4c316652.system.entry.js +1 -0
- package/dist/ripple/p-54aeadde.entry.js +1 -0
- package/dist/ripple/p-568e29d3.entry.js +1 -0
- package/dist/ripple/p-588a86ed.system.entry.js +1 -0
- package/dist/ripple/p-591fd100.entry.js +1 -0
- package/dist/ripple/p-5a6cbc14.system.entry.js +1 -0
- package/dist/ripple/p-5abe1171.system.entry.js +1 -0
- package/dist/ripple/p-5ae17300.system.entry.js +1 -0
- package/dist/ripple/p-5b02ae40.entry.js +1 -0
- package/dist/ripple/p-5e438798.system.entry.js +1 -0
- package/dist/ripple/p-5ed4177e.entry.js +1 -0
- package/dist/ripple/p-6133160d.system.entry.js +1 -0
- package/dist/ripple/p-620aff89.entry.js +1 -0
- package/dist/ripple/p-65db2c0f.entry.js +1 -0
- package/dist/ripple/p-70ed57bf.entry.js +1 -0
- package/dist/ripple/p-735d033a.entry.js +1 -0
- package/dist/ripple/p-74b1e110.entry.js +1 -0
- package/dist/ripple/p-77a8306c.entry.js +1 -0
- package/dist/ripple/p-7886fe5e.system.entry.js +1 -0
- package/dist/ripple/p-7ce09692.system.entry.js +1 -0
- package/dist/ripple/p-7cf1d9eb.system.entry.js +1 -0
- package/dist/ripple/p-7e786c28.system.entry.js +1 -0
- package/dist/ripple/p-812615ae.entry.js +1 -0
- package/dist/ripple/p-8a33538f.entry.js +1 -0
- package/dist/ripple/p-8b9c4e3e.entry.js +1 -0
- package/dist/ripple/p-90925ea9.entry.js +1 -0
- package/dist/ripple/p-959afdcf.entry.js +1 -0
- package/dist/ripple/p-997bdd2e.system.entry.js +1 -0
- package/dist/ripple/p-9db5f78e.entry.js +1 -0
- package/dist/ripple/p-BexWEx3U.system.js +1 -0
- package/dist/ripple/p-BgmAsS86.system.js +1 -0
- package/dist/ripple/p-Buh1DT2-.js +1 -0
- package/dist/ripple/p-CLZytLAw.system.js +1 -0
- package/dist/ripple/p-CTau6pR2.system.js +2 -0
- package/dist/ripple/p-CwkTkxrj.system.js +1 -0
- package/dist/ripple/p-CyJHzEjr.js +1 -0
- package/dist/ripple/p-DXsimRMV.js +1 -0
- package/dist/ripple/p-EopL5zo4.js +2 -0
- package/dist/ripple/p-GXdCI-yj.system.js +1 -0
- package/dist/ripple/p-UJrCrAlw.system.js +1 -0
- package/dist/ripple/p-YWpyar7R.system.js +1 -0
- package/dist/ripple/p-ZDMCMR3o.js +1 -0
- package/dist/ripple/p-b0b94ac4.system.entry.js +1 -0
- package/dist/ripple/p-b12640bd.entry.js +1 -0
- package/dist/ripple/p-b16431b0.system.entry.js +1 -0
- package/dist/ripple/p-b43cc69f.entry.js +1 -0
- package/dist/ripple/p-b4917824.entry.js +1 -0
- package/dist/ripple/p-b55babe1.system.entry.js +1 -0
- package/dist/ripple/p-ba48d47a.entry.js +1 -0
- package/dist/ripple/p-ba8ca46b.system.entry.js +1 -0
- package/dist/ripple/p-bee35fef.entry.js +1 -0
- package/dist/ripple/p-c273bb1c.system.entry.js +1 -0
- package/dist/ripple/p-cdebe76b.system.entry.js +1 -0
- package/dist/ripple/p-ce9634a2.entry.js +1 -0
- package/dist/ripple/p-d20ed498.entry.js +1 -0
- package/dist/ripple/p-d3e6498c.system.entry.js +1 -0
- package/dist/ripple/p-d40b6ef1.system.entry.js +1 -0
- package/dist/ripple/p-d4481342.system.entry.js +1 -0
- package/dist/ripple/p-d5bcab58.entry.js +1 -0
- package/dist/ripple/p-d7660e7d.entry.js +1 -0
- package/dist/ripple/p-d85f017a.system.entry.js +1 -0
- package/dist/ripple/p-da5ad94c.system.entry.js +1 -0
- package/dist/ripple/p-dcca5771.system.entry.js +1 -0
- package/dist/ripple/p-dd236f42.system.entry.js +1 -0
- package/dist/ripple/p-de33fd67.entry.js +1 -0
- package/dist/ripple/p-e0c9798d.system.entry.js +1 -0
- package/dist/ripple/p-e3700f4c.entry.js +1 -0
- package/dist/ripple/p-e901154b.entry.js +1 -0
- package/dist/ripple/p-e9fc862d.entry.js +1 -0
- package/dist/ripple/p-ea885cf3.system.entry.js +1 -0
- package/dist/ripple/p-f4c4218c.system.entry.js +1 -0
- package/dist/ripple/p-f57eb234.system.entry.js +1 -0
- package/dist/ripple/p-f858f5f9.system.entry.js +1 -0
- package/dist/ripple/p-f8721463.system.entry.js +1 -0
- package/dist/ripple/p-f881be15.entry.js +1 -0
- package/dist/ripple/p-f98949ad.entry.js +1 -0
- package/dist/ripple/p-fdcbcdf5.entry.js +1 -0
- package/dist/ripple/p-sXfORL9J.js +1 -0
- package/dist/ripple/ripple.css +1 -0
- package/dist/ripple/ripple.esm.js +1 -0
- package/dist/ripple/ripple.js +127 -0
- package/package.json +2 -2
- /package/dist/{types/test-setup.d.ts → collection/dev/action-menu.js} +0 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { checkForActiveElInShadow } from "../../global/functions";
|
|
3
|
+
import { generateId } from "../../global/functions";
|
|
4
|
+
export class ModalPss {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.open = false;
|
|
7
|
+
this.elementToFocus = ""; // primary and secondary point to the corresponding buttons, otherwise focus based on element id
|
|
8
|
+
this.modalType = "modal";
|
|
9
|
+
this.bodyFocusListener = () => this.redirectFocusFromBody();
|
|
10
|
+
}
|
|
11
|
+
get focusOnOpenEl() {
|
|
12
|
+
let customElementToFocus = null;
|
|
13
|
+
if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
|
|
14
|
+
customElementToFocus = this.el.querySelector(`#wm-${this.elementToFocus}-${this.uid}`);
|
|
15
|
+
}
|
|
16
|
+
else if (this.elementToFocus) {
|
|
17
|
+
customElementToFocus = this.el.querySelector("#" + this.elementToFocus);
|
|
18
|
+
!customElementToFocus &&
|
|
19
|
+
console.warn("Ripple Component Library: The modal component couldn't find an element matching the id you passed for 'elementToFocus'. It will fall back to the default and focus the close button when the modal opens.");
|
|
20
|
+
}
|
|
21
|
+
const closeButtonEl = this.el.querySelector(`#wm-modal-close-${this.uid}`);
|
|
22
|
+
return customElementToFocus ? customElementToFocus : closeButtonEl;
|
|
23
|
+
}
|
|
24
|
+
//App can open modal by toggling the prop
|
|
25
|
+
toggleModal() {
|
|
26
|
+
this.open ? this.showModal() : this.hideModal();
|
|
27
|
+
}
|
|
28
|
+
//The below not implemented in light of the fact that the app does often need to keep track of the modal's state itself so that it can update the data displayed in the body:
|
|
29
|
+
//App can also open modal by emitting wmShowModal event. Event needs to include the modal's unique id as the event detail, or else all modals on the page will open when wmShowModal event is dispatched.
|
|
30
|
+
// @Listen("wmShowModal", { target: "window" })
|
|
31
|
+
// doesEventMatchId(ev: CustomEvent) {
|
|
32
|
+
// ev.detail === this.uid && this.showModal();
|
|
33
|
+
// }
|
|
34
|
+
handleClick(ev) {
|
|
35
|
+
this.open && ev.target === this.overlayEl && this.focusOnOpenEl.focus();
|
|
36
|
+
}
|
|
37
|
+
closeModalOnEscape(ev) {
|
|
38
|
+
if (ev.key === "Escape") {
|
|
39
|
+
// stops propagation prevents nested modal from closing all at once
|
|
40
|
+
ev.stopPropagation();
|
|
41
|
+
this.wmModalCloseTriggered.emit();
|
|
42
|
+
this.open = false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
showModal() {
|
|
46
|
+
this.setAriaDescribedbyOnModal();
|
|
47
|
+
this.setElToFocusOnClose(); //Record where the user was before the modal opened so that focus can return to it when the modal closes
|
|
48
|
+
document.body.style.overflow = "hidden"; //Keeps the page below the modal from scrolling
|
|
49
|
+
//Focus listeners as a general catch for keeping focus in case of errors in finding element with id passed in by dev (element is removed from DOM, etc.) or other scenarios
|
|
50
|
+
document.body.tabIndex = 0;
|
|
51
|
+
document.body.removeEventListener("focus", this.bodyFocusListener, true);
|
|
52
|
+
document.body.addEventListener("focus", this.bodyFocusListener, true);
|
|
53
|
+
window.requestAnimationFrame(() => {
|
|
54
|
+
// nested requestAnimationFrames allow all elements to become visible on page before assigning focus
|
|
55
|
+
window.requestAnimationFrame(() => this.focusOnOpenEl.focus()); //Bring focus to element inside modal
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//Close the modal and focus the triggering element when the modal buttons emit their events
|
|
59
|
+
hideModal() {
|
|
60
|
+
document.body.style.overflow = "visible";
|
|
61
|
+
document.body.tabIndex = -1;
|
|
62
|
+
document.body.removeEventListener("focus", this.bodyFocusListener, true);
|
|
63
|
+
window.requestAnimationFrame(() => this.focusOnCloseEl.focus()); //Return focus
|
|
64
|
+
}
|
|
65
|
+
componentWillLoad() {
|
|
66
|
+
if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
|
|
67
|
+
if (!this.el.id) {
|
|
68
|
+
console.error("You are telling the modal to focus an element in the footer when it opens. That's fine! But when you do that, you also need to give the wm-modal-wrapper an ID and set the ID of the modal body to 'content-[id of wm-modal-wrapper]. This is for accessibility purposes.");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
this.el.focus = () => {
|
|
72
|
+
this.focusOnOpenEl.focus();
|
|
73
|
+
};
|
|
74
|
+
this.uid = this.el.id ? this.el.id : generateId();
|
|
75
|
+
}
|
|
76
|
+
componentDidLoad() {
|
|
77
|
+
if (this.open) {
|
|
78
|
+
this.showModal();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async emitCloseEvent() {
|
|
82
|
+
this.wmModalCloseTriggered.emit();
|
|
83
|
+
}
|
|
84
|
+
async emitPrimaryEvent() {
|
|
85
|
+
this.wmModalPrimaryTriggered.emit();
|
|
86
|
+
}
|
|
87
|
+
async emitSecondaryEvent() {
|
|
88
|
+
this.wmModalSecondaryTriggered.emit();
|
|
89
|
+
}
|
|
90
|
+
setAriaDescribedbyOnModal() {
|
|
91
|
+
const modalBody = document.getElementById(`content-${this.uid}`);
|
|
92
|
+
if (!modalBody) {
|
|
93
|
+
console.warn("Ripple Component Library: The element containing the body of the modal must include an id in the format 'content-[id of modal]' for accessibility purposes.");
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
this.el.setAttribute("aria-describedby", `wm-modal-heading-text-${this.uid} content-${this.uid}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
setElToFocusOnClose() {
|
|
100
|
+
const elToFocus = document.activeElement;
|
|
101
|
+
if (elToFocus.tagName === "WM-MENUITEM") {
|
|
102
|
+
this.focusOnCloseEl = elToFocus.parentElement;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.focusOnCloseEl = checkForActiveElInShadow(elToFocus);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
redirectFocusFromBody() {
|
|
109
|
+
if (document.activeElement.tagName === "BODY") {
|
|
110
|
+
this.focusOnOpenEl.focus();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return (h(Host, { key: '4c8851746efcbbe4b172bb27b77a71158dd6dc04', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
|
|
115
|
+
this.focusLastElement.emit();
|
|
116
|
+
} }, h("div", { key: 'bd96e1abafd5ee50e4c2857a81c36b885eb10423', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'e107d2cac3f3acefddd17db95e14870c503718cf', class: "sr-only", tabIndex: 0, onFocus: () => {
|
|
117
|
+
this.focusFirstElement.emit();
|
|
118
|
+
} })));
|
|
119
|
+
}
|
|
120
|
+
static get is() { return "wm-modal-pss"; }
|
|
121
|
+
static get originalStyleUrls() {
|
|
122
|
+
return {
|
|
123
|
+
"$": ["wm-modal-pss.scss"]
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static get styleUrls() {
|
|
127
|
+
return {
|
|
128
|
+
"$": ["wm-modal-pss.css"]
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static get properties() {
|
|
132
|
+
return {
|
|
133
|
+
"open": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"attribute": "open",
|
|
136
|
+
"mutable": true,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "boolean",
|
|
139
|
+
"resolved": "boolean",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": ""
|
|
147
|
+
},
|
|
148
|
+
"getter": false,
|
|
149
|
+
"setter": false,
|
|
150
|
+
"reflect": true,
|
|
151
|
+
"defaultValue": "false"
|
|
152
|
+
},
|
|
153
|
+
"elementToFocus": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"attribute": "element-to-focus",
|
|
156
|
+
"mutable": true,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "\"primary\" | \"secondary\" | string",
|
|
159
|
+
"resolved": "string",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": ""
|
|
167
|
+
},
|
|
168
|
+
"getter": false,
|
|
169
|
+
"setter": false,
|
|
170
|
+
"reflect": false,
|
|
171
|
+
"defaultValue": "\"\""
|
|
172
|
+
},
|
|
173
|
+
"modalType": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"attribute": "modal-type",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "\"modal\" | \"dialog\"",
|
|
179
|
+
"resolved": "\"dialog\" | \"modal\"",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"getter": false,
|
|
189
|
+
"setter": false,
|
|
190
|
+
"reflect": true,
|
|
191
|
+
"defaultValue": "\"modal\""
|
|
192
|
+
},
|
|
193
|
+
"uid": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"attribute": "uid",
|
|
196
|
+
"mutable": true,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": true,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"getter": false,
|
|
209
|
+
"setter": false,
|
|
210
|
+
"reflect": true
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
static get events() {
|
|
215
|
+
return [{
|
|
216
|
+
"method": "focusLastElement",
|
|
217
|
+
"name": "focusLastElement",
|
|
218
|
+
"bubbles": false,
|
|
219
|
+
"cancelable": true,
|
|
220
|
+
"composed": true,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": ""
|
|
224
|
+
},
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "any",
|
|
227
|
+
"resolved": "any",
|
|
228
|
+
"references": {}
|
|
229
|
+
}
|
|
230
|
+
}, {
|
|
231
|
+
"method": "focusFirstElement",
|
|
232
|
+
"name": "focusFirstElement",
|
|
233
|
+
"bubbles": false,
|
|
234
|
+
"cancelable": true,
|
|
235
|
+
"composed": true,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": ""
|
|
239
|
+
},
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "any",
|
|
242
|
+
"resolved": "any",
|
|
243
|
+
"references": {}
|
|
244
|
+
}
|
|
245
|
+
}, {
|
|
246
|
+
"method": "wmModalCloseTriggered",
|
|
247
|
+
"name": "wmModalCloseTriggered",
|
|
248
|
+
"bubbles": false,
|
|
249
|
+
"cancelable": true,
|
|
250
|
+
"composed": true,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": ""
|
|
254
|
+
},
|
|
255
|
+
"complexType": {
|
|
256
|
+
"original": "any",
|
|
257
|
+
"resolved": "any",
|
|
258
|
+
"references": {}
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
"method": "wmModalPrimaryTriggered",
|
|
262
|
+
"name": "wmModalPrimaryTriggered",
|
|
263
|
+
"bubbles": true,
|
|
264
|
+
"cancelable": true,
|
|
265
|
+
"composed": true,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [],
|
|
268
|
+
"text": ""
|
|
269
|
+
},
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "any",
|
|
272
|
+
"resolved": "any",
|
|
273
|
+
"references": {}
|
|
274
|
+
}
|
|
275
|
+
}, {
|
|
276
|
+
"method": "wmModalSecondaryTriggered",
|
|
277
|
+
"name": "wmModalSecondaryTriggered",
|
|
278
|
+
"bubbles": true,
|
|
279
|
+
"cancelable": true,
|
|
280
|
+
"composed": true,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": ""
|
|
284
|
+
},
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "any",
|
|
287
|
+
"resolved": "any",
|
|
288
|
+
"references": {}
|
|
289
|
+
}
|
|
290
|
+
}];
|
|
291
|
+
}
|
|
292
|
+
static get methods() {
|
|
293
|
+
return {
|
|
294
|
+
"emitCloseEvent": {
|
|
295
|
+
"complexType": {
|
|
296
|
+
"signature": "() => Promise<void>",
|
|
297
|
+
"parameters": [],
|
|
298
|
+
"references": {
|
|
299
|
+
"Promise": {
|
|
300
|
+
"location": "global",
|
|
301
|
+
"id": "global::Promise"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"return": "Promise<void>"
|
|
305
|
+
},
|
|
306
|
+
"docs": {
|
|
307
|
+
"text": "",
|
|
308
|
+
"tags": []
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"emitPrimaryEvent": {
|
|
312
|
+
"complexType": {
|
|
313
|
+
"signature": "() => Promise<void>",
|
|
314
|
+
"parameters": [],
|
|
315
|
+
"references": {
|
|
316
|
+
"Promise": {
|
|
317
|
+
"location": "global",
|
|
318
|
+
"id": "global::Promise"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"return": "Promise<void>"
|
|
322
|
+
},
|
|
323
|
+
"docs": {
|
|
324
|
+
"text": "",
|
|
325
|
+
"tags": []
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"emitSecondaryEvent": {
|
|
329
|
+
"complexType": {
|
|
330
|
+
"signature": "() => Promise<void>",
|
|
331
|
+
"parameters": [],
|
|
332
|
+
"references": {
|
|
333
|
+
"Promise": {
|
|
334
|
+
"location": "global",
|
|
335
|
+
"id": "global::Promise"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"return": "Promise<void>"
|
|
339
|
+
},
|
|
340
|
+
"docs": {
|
|
341
|
+
"text": "",
|
|
342
|
+
"tags": []
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
static get elementRef() { return "el"; }
|
|
348
|
+
static get watchers() {
|
|
349
|
+
return [{
|
|
350
|
+
"propName": "open",
|
|
351
|
+
"methodName": "toggleModal"
|
|
352
|
+
}];
|
|
353
|
+
}
|
|
354
|
+
static get listeners() {
|
|
355
|
+
return [{
|
|
356
|
+
"name": "click",
|
|
357
|
+
"method": "handleClick",
|
|
358
|
+
"target": undefined,
|
|
359
|
+
"capture": false,
|
|
360
|
+
"passive": false
|
|
361
|
+
}, {
|
|
362
|
+
"name": "keydown",
|
|
363
|
+
"method": "closeModalOnEscape",
|
|
364
|
+
"target": undefined,
|
|
365
|
+
"capture": false,
|
|
366
|
+
"passive": false
|
|
367
|
+
}];
|
|
368
|
+
}
|
|
369
|
+
}
|