@watermarkinsights/ripple 5.11.0 → 5.11.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/dist/{esm/global-03298ea6.js → cjs/app-globals-e5411d07.js} +10 -1
- package/dist/cjs/{chartFunctions-b47a5431.js → chartFunctions-7314b414.js} +3 -3
- package/dist/cjs/{functions-e24249e6.js → functions-5ac8a62f.js} +104 -7
- package/dist/cjs/index-788526f5.js +1859 -0
- package/dist/cjs/{intl-a70cf8c2.js → intl-07aaf53c.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -5
- package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
- package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
- package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
- package/dist/cjs/priv-option-list.cjs.entry.js +5 -4
- package/dist/cjs/ripple.cjs.js +12 -11
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
- package/dist/cjs/wm-button.cjs.entry.js +5 -4
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +7 -6
- package/dist/cjs/wm-date-range.cjs.entry.js +9 -8
- package/dist/cjs/wm-datepicker.cjs.entry.js +9 -8
- package/dist/cjs/wm-file-list.cjs.entry.js +4 -3
- package/dist/cjs/wm-file.cjs.entry.js +5 -4
- package/dist/cjs/wm-input.cjs.entry.js +6 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-modal_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
- package/dist/cjs/wm-nested-select.cjs.entry.js +8 -7
- package/dist/cjs/wm-optgroup.cjs.entry.js +5 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
- package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
- package/dist/cjs/wm-search.cjs.entry.js +7 -6
- package/dist/cjs/wm-snackbar.cjs.entry.js +7 -6
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
- package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
- package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
- package/dist/cjs/wm-uploader.cjs.entry.js +7 -6
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +1 -1
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +17 -13
- package/dist/collection/components/datepickers/wm-datepicker.js +17 -13
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +7 -5
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-select/wm-select.js +2 -2
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.js +5 -4
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/{cjs/global-c1e0f0f6.js → esm/app-globals-c3920c78.js} +7 -2
- package/dist/esm/{chartFunctions-d2ecde7f.js → chartFunctions-c273c613.js} +3 -3
- package/dist/esm/{functions-8800c690.js → functions-f39e6177.js} +105 -8
- package/dist/esm/index-130e07bb.js +1828 -0
- package/dist/esm/{intl-cf443c87.js → intl-a0ebf99e.js} +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/priv-calendar.entry.js +6 -5
- package/dist/esm/priv-chart-popover.entry.js +6 -5
- package/dist/esm/priv-navigator-button.entry.js +4 -3
- package/dist/esm/priv-navigator-item.entry.js +4 -3
- package/dist/esm/priv-option-list.entry.js +5 -4
- package/dist/esm/ripple.js +13 -12
- package/dist/esm/wm-action-menu_2.entry.js +8 -6
- package/dist/esm/wm-button.entry.js +5 -4
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +7 -6
- package/dist/esm/wm-date-range.entry.js +9 -8
- package/dist/esm/wm-datepicker.entry.js +9 -8
- package/dist/esm/wm-file-list.entry.js +4 -3
- package/dist/esm/wm-file.entry.js +5 -4
- package/dist/esm/wm-input.entry.js +6 -5
- package/dist/esm/wm-line-chart.entry.js +15 -14
- package/dist/esm/wm-modal-pss_3.entry.js +13 -10
- package/dist/esm/wm-modal_3.entry.js +13 -10
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +4 -3
- package/dist/esm/wm-nested-select.entry.js +8 -7
- package/dist/esm/wm-optgroup.entry.js +5 -4
- package/dist/esm/wm-option_2.entry.js +10 -8
- package/dist/esm/wm-pagination.entry.js +5 -4
- package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
- package/dist/esm/wm-search.entry.js +7 -6
- package/dist/esm/wm-snackbar.entry.js +7 -6
- package/dist/esm/wm-tab-item_3.entry.js +11 -8
- package/dist/esm/wm-tag-input.entry.js +8 -7
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +6 -5
- package/dist/esm/wm-timepicker.entry.js +6 -5
- package/dist/esm/wm-toggletip.entry.js +6 -5
- package/dist/esm/wm-uploader.entry.js +7 -6
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-c3920c78.js +1 -0
- package/dist/esm-es5/{chartFunctions-d2ecde7f.js → chartFunctions-c273c613.js} +1 -1
- package/dist/esm-es5/functions-f39e6177.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-cf443c87.js → intl-a0ebf99e.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-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/cdn.js +1 -2
- package/dist/loader/index.cjs.js +1 -2
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/{p-bfc1065f.system.entry.js → p-0c7cf863.system.entry.js} +1 -1
- package/dist/ripple/{p-59bb36fc.entry.js → p-0ed1e17e.entry.js} +1 -1
- package/dist/ripple/{p-0e36d5b8.system.entry.js → p-0f09ccc6.system.entry.js} +1 -1
- package/dist/ripple/p-0f356c45.entry.js +1 -0
- package/dist/ripple/p-105e5721.system.entry.js +1 -0
- package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
- package/dist/ripple/p-152b20ae.entry.js +1 -0
- package/dist/ripple/{p-1a71d867.system.entry.js → p-165b5d3d.system.entry.js} +1 -1
- package/dist/ripple/{p-f779ec68.system.entry.js → p-22dda578.system.entry.js} +1 -1
- package/dist/ripple/{p-3f40f06b.system.entry.js → p-23bcc6d4.system.entry.js} +1 -1
- package/dist/ripple/p-2a30d411.system.entry.js +1 -0
- package/dist/ripple/p-32b88ab2.entry.js +1 -0
- package/dist/ripple/{p-a04ef164.system.entry.js → p-3376581a.system.entry.js} +1 -1
- package/dist/ripple/{p-de272ae7.system.entry.js → p-35218430.system.entry.js} +1 -1
- package/dist/ripple/{p-f22e26b6.system.entry.js → p-35644be9.system.entry.js} +1 -1
- package/dist/ripple/{p-ce44ba70.entry.js → p-35c7696e.entry.js} +1 -1
- package/dist/ripple/{p-544925c2.entry.js → p-362b19a2.entry.js} +1 -1
- package/dist/ripple/{p-460e9ef3.system.entry.js → p-391d9f32.system.entry.js} +1 -1
- package/dist/ripple/{p-608f69c1.system.entry.js → p-39dd3870.system.entry.js} +1 -1
- package/dist/ripple/{p-b5971475.system.entry.js → p-3bde67f1.system.entry.js} +1 -1
- package/dist/ripple/{p-ddcbb694.system.entry.js → p-3c407959.system.entry.js} +1 -1
- package/dist/ripple/p-3ceed568.entry.js +1 -0
- package/dist/ripple/{p-bd547650.system.entry.js → p-3ec9a2a2.system.entry.js} +1 -1
- package/dist/ripple/p-3f486eed.system.js +1 -0
- package/dist/ripple/{p-7478303e.entry.js → p-42596f25.entry.js} +1 -1
- package/dist/ripple/p-4a1601c5.js +1 -0
- package/dist/ripple/p-4b8cb0a4.entry.js +1 -0
- package/dist/ripple/{p-e71ee9f4.system.js → p-4c1efa04.system.js} +1 -1
- package/dist/ripple/{p-7e0fc193.system.entry.js → p-59e50ea1.system.entry.js} +1 -1
- package/dist/ripple/{p-68e04222.entry.js → p-5c25870c.entry.js} +1 -1
- package/dist/ripple/{p-702252ba.entry.js → p-5c62e26d.entry.js} +1 -1
- package/dist/ripple/p-5d8386b4.system.entry.js +1 -0
- package/dist/ripple/{p-c2b5d9e5.entry.js → p-62a99b68.entry.js} +1 -1
- package/dist/ripple/{p-1a4b6b02.system.entry.js → p-658f146a.system.entry.js} +1 -1
- package/dist/ripple/p-68a96191.entry.js +1 -0
- package/dist/ripple/p-6c0c2e1f.entry.js +1 -0
- package/dist/ripple/{p-c7e30eb0.system.entry.js → p-72e05203.system.entry.js} +1 -1
- package/dist/ripple/p-72f7d6e1.system.js +1 -0
- package/dist/ripple/p-76542ab3.entry.js +1 -0
- package/dist/ripple/{p-b976c84b.entry.js → p-76d248e6.entry.js} +1 -1
- package/dist/ripple/p-76f9acec.entry.js +1 -0
- package/dist/ripple/{p-5415aaf9.system.entry.js → p-79a6b32f.system.entry.js} +1 -1
- package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
- package/dist/ripple/{p-b5c371aa.system.entry.js → p-8240dd82.system.entry.js} +1 -1
- package/dist/ripple/{p-9d461de5.entry.js → p-83d1c1fb.entry.js} +1 -1
- package/dist/ripple/p-86a5178d.entry.js +1 -0
- package/dist/ripple/p-89a2db02.js +1 -0
- package/dist/ripple/p-8d4f674f.entry.js +1 -0
- package/dist/ripple/p-8f5ac061.entry.js +1 -0
- package/dist/ripple/{p-2b21c6f5.system.entry.js → p-9287d70b.system.entry.js} +1 -1
- package/dist/ripple/{p-366920dc.js → p-96505312.js} +1 -1
- package/dist/ripple/{p-710c6115.js → p-9708c995.js} +1 -1
- package/dist/ripple/p-985fb8b9.entry.js +1 -0
- package/dist/ripple/{p-7cf5993c.system.entry.js → p-a3f9e2f6.system.entry.js} +1 -1
- package/dist/ripple/{p-704be1e8.system.entry.js → p-a40296fc.system.entry.js} +1 -1
- package/dist/ripple/p-aaaee14f.entry.js +1 -0
- package/dist/ripple/p-b4e7d63f.entry.js +1 -0
- package/dist/ripple/p-ba047c79.entry.js +1 -0
- package/dist/ripple/p-ba32888d.system.js +1 -0
- package/dist/ripple/{p-3322823d.system.js → p-bb25b9af.system.js} +1 -1
- package/dist/ripple/{p-0ba2e506.system.entry.js → p-bda9a663.system.entry.js} +1 -1
- package/dist/ripple/{p-58668e84.system.entry.js → p-bee47080.system.entry.js} +1 -1
- package/dist/ripple/{p-4743176d.system.entry.js → p-c34c9cbb.system.entry.js} +1 -1
- package/dist/ripple/p-c5c31818.entry.js +1 -0
- package/dist/ripple/{p-d57e8196.entry.js → p-c62342c4.entry.js} +1 -1
- package/dist/ripple/{p-e2c6052b.system.entry.js → p-cca7a151.system.entry.js} +1 -1
- package/dist/ripple/{p-88ebddd7.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/{p-878fd4af.system.entry.js → p-d0736520.system.entry.js} +1 -1
- package/dist/ripple/{p-a2936bcb.system.entry.js → p-d1751f87.system.entry.js} +1 -1
- package/dist/ripple/p-d528f5e4.entry.js +1 -0
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-da424bdb.entry.js +1 -0
- package/dist/ripple/{p-f6eff655.system.entry.js → p-ead461fe.system.entry.js} +1 -1
- package/dist/ripple/p-f39b556d.entry.js +1 -0
- package/dist/ripple/p-f98f9a32.entry.js +1 -0
- package/dist/ripple/p-f9a71cf6.entry.js +1 -0
- package/dist/ripple/{p-79d4f14b.system.entry.js → p-fc170968.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/package.json +1 -1
- package/dist/cjs/index-e86c28b6.js +0 -2649
- package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
- package/dist/collection/components/charts/screenshots.e2e.js +0 -96
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
- package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
- package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
- package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
- package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
- package/dist/collection/components/selects/wm-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/selects/wm-option/wm-option.spec.js +0 -63
- package/dist/collection/components/selects/wm-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/selects/wm-select/wm-select.spec.js +0 -271
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
- package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
- package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
- package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
- package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
- package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
- package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
- package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
- package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
- package/dist/collection/global/functions.spec.js +0 -126
- package/dist/collection/lang/lang.spec.js +0 -20
- package/dist/esm/index-558b5a82.js +0 -2618
- package/dist/esm-es5/functions-8800c690.js +0 -1
- package/dist/esm-es5/global-03298ea6.js +0 -1
- package/dist/esm-es5/index-558b5a82.js +0 -1
- package/dist/ripple/p-159c4e96.entry.js +0 -1
- package/dist/ripple/p-1fce9f27.entry.js +0 -1
- package/dist/ripple/p-22cfff23.entry.js +0 -1
- package/dist/ripple/p-32507c13.system.entry.js +0 -1
- package/dist/ripple/p-39e26322.entry.js +0 -1
- package/dist/ripple/p-3fa38234.entry.js +0 -1
- package/dist/ripple/p-44f426ad.entry.js +0 -1
- package/dist/ripple/p-4de728e1.entry.js +0 -1
- package/dist/ripple/p-4ff87702.system.entry.js +0 -1
- package/dist/ripple/p-568c595f.js +0 -2
- package/dist/ripple/p-5e9c9f0d.entry.js +0 -1
- package/dist/ripple/p-64b1e73b.entry.js +0 -1
- package/dist/ripple/p-6c3ed244.system.js +0 -1
- package/dist/ripple/p-6e72a06c.entry.js +0 -1
- package/dist/ripple/p-79043436.entry.js +0 -1
- package/dist/ripple/p-797d65b7.entry.js +0 -1
- package/dist/ripple/p-8254e7a2.js +0 -1
- package/dist/ripple/p-828d2094.system.js +0 -1
- package/dist/ripple/p-8cd8f784.entry.js +0 -1
- package/dist/ripple/p-8d72d140.entry.js +0 -1
- package/dist/ripple/p-94495341.entry.js +0 -1
- package/dist/ripple/p-94717864.entry.js +0 -1
- package/dist/ripple/p-9eaa0acb.system.entry.js +0 -1
- package/dist/ripple/p-a69425b0.entry.js +0 -1
- package/dist/ripple/p-ab8d78cc.system.js +0 -2
- package/dist/ripple/p-adc254e6.entry.js +0 -1
- package/dist/ripple/p-b02048a9.entry.js +0 -1
- package/dist/ripple/p-b2706394.entry.js +0 -1
- package/dist/ripple/p-dc77d98a.entry.js +0 -1
- package/dist/ripple/p-eca78c2b.js +0 -1
- package/dist/ripple/p-edd87140.system.js +0 -1
- package/dist/ripple/p-f5bc8926.entry.js +0 -1
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { AxePuppeteer } from "@axe-core/puppeteer";
|
|
3
|
-
describe("wm-modal", () => {
|
|
4
|
-
let page, modal,
|
|
5
|
-
// overlay: any,
|
|
6
|
-
closeButton;
|
|
7
|
-
beforeEach(async () => {
|
|
8
|
-
page = await newE2EPage();
|
|
9
|
-
await page.setContent(`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
|
|
10
|
-
<button onClick="showModal()" id="modal-trigger">Open Modal</button><wm-modal id="modal-test"><wm-modal-header heading="Modal Heading"></wm-modal-header><div>Modal Body</div><wm-modal-footer primary-text="Save" secondary-text="Discard"></wm-modal-footer></wm-modal><button>Filler</button></main></body><script>const dialog = document.getElementById("modal-test");
|
|
11
|
-
|
|
12
|
-
dialog.addEventListener("wmModalCloseTriggered", function() {
|
|
13
|
-
dialog.open = false;
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
dialog.addEventListener("wmModalSecondaryTriggered", function() {
|
|
17
|
-
dialog.open = false;
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
dialog.addEventListener("wmModalPrimaryTriggered", function() {
|
|
21
|
-
dialog.open = false;
|
|
22
|
-
});
|
|
23
|
-
function showModal() {
|
|
24
|
-
dialog.open = true;
|
|
25
|
-
}
|
|
26
|
-
</script></html>`);
|
|
27
|
-
modal = await page.find("wm-modal");
|
|
28
|
-
closeButton = await page.find("wm-button#wm-modal-close-modal-test >>> button");
|
|
29
|
-
});
|
|
30
|
-
it("passes Axe checks", async () => {
|
|
31
|
-
const results = await new AxePuppeteer(page).analyze();
|
|
32
|
-
expect(results.violations.length).toBe(0);
|
|
33
|
-
});
|
|
34
|
-
// RENDER
|
|
35
|
-
it("renders", async () => {
|
|
36
|
-
expect(modal).toHaveClass("hydrated");
|
|
37
|
-
});
|
|
38
|
-
// DISPLAY AND HIDE
|
|
39
|
-
it("emits the proper event when the close (X) button is clicked", async () => {
|
|
40
|
-
const eventSpy = await modal.spyOnEvent("wmModalCloseTriggered");
|
|
41
|
-
await page.keyboard.press("Tab");
|
|
42
|
-
await page.keyboard.press("Enter");
|
|
43
|
-
await page.waitForChanges();
|
|
44
|
-
expect(modal).toHaveAttribute("open");
|
|
45
|
-
closeButton.click();
|
|
46
|
-
await page.waitForChanges();
|
|
47
|
-
expect(eventSpy).toHaveReceivedEventTimes(1);
|
|
48
|
-
});
|
|
49
|
-
//ACCESSIBILITY
|
|
50
|
-
it("focuses the close button when the modal opens if no elementToFocus property is set", async () => {
|
|
51
|
-
await page.keyboard.press("Tab");
|
|
52
|
-
await page.keyboard.press("Enter"); // open popup
|
|
53
|
-
await page.waitForChanges();
|
|
54
|
-
const activeElId = await page.evaluate(() => document.activeElement.id);
|
|
55
|
-
expect(activeElId).toEqual("wm-modal-close-modal-test");
|
|
56
|
-
});
|
|
57
|
-
it("focuses the correct element when the elementToFocus property is set", async () => {
|
|
58
|
-
page = await newE2EPage();
|
|
59
|
-
//The elementToFocus prop isn't mutable, so "setProperty" doesn't work. Page content has to be reset.
|
|
60
|
-
await page.setContent(`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
|
|
61
|
-
<button onClick="showModal()">Open Modal</button><wm-modal element-to-focus="modal-input" id="second-modal"><wm-modal-header heading="Modal Heading"></wm-modal-header><div>Modal Body<div><input id="modal-input"></input></div></div><wm-modal-footer></wm-modal-footer></wm-modal></main></body><script>const dialog = document.getElementById("second-modal");
|
|
62
|
-
|
|
63
|
-
dialog.addEventListener("wmModalCloseTriggered", function() {
|
|
64
|
-
dialog.open = false;
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
dialog.addEventListener("wmModalSecondaryTriggered", function() {
|
|
68
|
-
dialog.open = false;
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
dialog.addEventListener("wmModalPrimaryTriggered", function() {
|
|
72
|
-
dialog.open = false;
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
function showModal() {
|
|
76
|
-
dialog.open = true;
|
|
77
|
-
}
|
|
78
|
-
</script></html>`);
|
|
79
|
-
await page.waitForChanges();
|
|
80
|
-
await page.keyboard.press("Tab");
|
|
81
|
-
await page.keyboard.press("Enter");
|
|
82
|
-
await page.waitForChanges();
|
|
83
|
-
const activeElId = await page.evaluate(() => document.activeElement.id);
|
|
84
|
-
expect(activeElId).toEqual("modal-input");
|
|
85
|
-
});
|
|
86
|
-
it("returns focus to the triggering element when the modal closes", async () => {
|
|
87
|
-
await page.keyboard.press("Tab");
|
|
88
|
-
await page.keyboard.press("Enter");
|
|
89
|
-
await page.waitForChanges();
|
|
90
|
-
await page.keyboard.press("Enter");
|
|
91
|
-
await page.waitForChanges();
|
|
92
|
-
const activeElId = await page.evaluate(() => document.activeElement.id);
|
|
93
|
-
expect(activeElId).toEqual("modal-trigger");
|
|
94
|
-
});
|
|
95
|
-
it("closes the modal when escape key is pressed", async () => {
|
|
96
|
-
await page.keyboard.press("Tab");
|
|
97
|
-
await page.keyboard.press("Enter");
|
|
98
|
-
await page.waitForChanges();
|
|
99
|
-
expect(modal).toHaveAttribute("open");
|
|
100
|
-
await page.keyboard.press("Escape");
|
|
101
|
-
await page.waitForChanges();
|
|
102
|
-
expect(modal).not.toHaveAttribute("open");
|
|
103
|
-
});
|
|
104
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
-
jest.mock("../../global/functions");
|
|
3
|
-
import { Modal } from "./wm-modal";
|
|
4
|
-
import { ModalHeader } from "./wm-modal-header";
|
|
5
|
-
import { ModalFooter } from "./wm-modal-footer";
|
|
6
|
-
describe("wm-modal", () => {
|
|
7
|
-
it("builds", async () => {
|
|
8
|
-
const comp = await newSpecPage({
|
|
9
|
-
components: [Modal, ModalHeader, ModalFooter],
|
|
10
|
-
html: "<wm-modal open='false'><wm-modal-header heading='heading'></wm-modal-header><div>content</div><wm-modal-footer primary-text='primary-text'></wm-modal-footer></wm-modal>",
|
|
11
|
-
});
|
|
12
|
-
expect(comp.root).toMatchSnapshot();
|
|
13
|
-
});
|
|
14
|
-
it("watching open-- toggles the modal", () => {
|
|
15
|
-
//toggleModal
|
|
16
|
-
const component = new Modal();
|
|
17
|
-
const mockShowModal = (component.showModal = jest.fn());
|
|
18
|
-
const mockHideModal = (component.hideModal = jest.fn());
|
|
19
|
-
component.open = true;
|
|
20
|
-
component.toggleModal();
|
|
21
|
-
expect(mockShowModal).toHaveBeenCalledTimes(1);
|
|
22
|
-
expect(mockHideModal).toHaveBeenCalledTimes(0);
|
|
23
|
-
jest.resetAllMocks();
|
|
24
|
-
component.open = false;
|
|
25
|
-
component.toggleModal();
|
|
26
|
-
expect(mockShowModal).toHaveBeenCalledTimes(0);
|
|
27
|
-
expect(mockHideModal).toHaveBeenCalledTimes(1);
|
|
28
|
-
jest.resetAllMocks();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { AxePuppeteer } from "@axe-core/puppeteer";
|
|
3
|
-
describe("wm-navigation", () => {
|
|
4
|
-
let page, nav, hamburger, items;
|
|
5
|
-
beforeEach(async () => {
|
|
6
|
-
page = await newE2EPage();
|
|
7
|
-
await page.setContent(`<html lang='en'><head><title>Page</title></head><body>
|
|
8
|
-
<wm-navigation-hamburger nav-id="mynav"></wm-navigation-hamburger>
|
|
9
|
-
<wm-navigation id="mynav">
|
|
10
|
-
<wm-navigation-item href="/home" text="Home" active>Home</wm-navigation-item>
|
|
11
|
-
<wm-navigation-item href="/things" text="Things">Things</wm-navigation-item>
|
|
12
|
-
</wm-navigation><main><h1>Title</h1><button>something tabbable here</button>
|
|
13
|
-
</main></body></html>`);
|
|
14
|
-
nav = await page.find("wm-navigation");
|
|
15
|
-
hamburger = await page.find("wm-navigation-hamburger");
|
|
16
|
-
items = await page.find("wm-navigation-item");
|
|
17
|
-
});
|
|
18
|
-
it("passes Axe checks", async () => {
|
|
19
|
-
const results = await new AxePuppeteer(page).analyze();
|
|
20
|
-
expect(results.violations.length).toBe(0);
|
|
21
|
-
});
|
|
22
|
-
it("renders the component", async () => {
|
|
23
|
-
expect(nav).not.toBeNull();
|
|
24
|
-
expect(hamburger).not.toBeNull();
|
|
25
|
-
expect(items).not.toBeNull();
|
|
26
|
-
});
|
|
27
|
-
it("traps focus when collapsible", async () => {
|
|
28
|
-
// small screen, trap focus
|
|
29
|
-
page.setViewport({ width: 1023, height: 800 });
|
|
30
|
-
page.waitForChanges();
|
|
31
|
-
await page.keyboard.press("Tab"); // focus on hamburger
|
|
32
|
-
await page.keyboard.press("Enter"); // open. focus on close btn
|
|
33
|
-
await page.waitForTimeout(250); // wait for animation to complete and focus to be called
|
|
34
|
-
await page.keyboard.press("Tab"); // focus on 1st nav item
|
|
35
|
-
await page.keyboard.press("Tab"); // focus on 2nd nav item
|
|
36
|
-
await page.keyboard.press("Tab"); // with trap focus we circle back within the nav (on close btn)
|
|
37
|
-
let activeEl = await page.evaluate(() => document.activeElement.tagName);
|
|
38
|
-
expect(activeEl).toEqual("WM-NAVIGATION");
|
|
39
|
-
});
|
|
40
|
-
it("doesn't trap focus when persistent", async () => {
|
|
41
|
-
// wide screen, no trap focus
|
|
42
|
-
page.setViewport({ width: 1024, height: 800 });
|
|
43
|
-
await page.waitForChanges(); // test fails randomly without this
|
|
44
|
-
await page.keyboard.press("Tab"); // focus on 1st nav item
|
|
45
|
-
await page.keyboard.press("Tab"); // focus on 2nd nav item
|
|
46
|
-
await page.keyboard.press("Tab"); // focus on the button in main
|
|
47
|
-
let activeEl = await page.evaluate(() => document.activeElement.tagName);
|
|
48
|
-
expect(activeEl).toEqual("BUTTON");
|
|
49
|
-
});
|
|
50
|
-
it("handles focus method when collapsible and closed", async () => {
|
|
51
|
-
page.setViewport({ width: 1023, height: 800 });
|
|
52
|
-
let activeEl = await page.evaluate(() => document.activeElement.tagName);
|
|
53
|
-
expect(activeEl).toEqual("BODY");
|
|
54
|
-
nav.focus();
|
|
55
|
-
activeEl = await page.evaluate(() => document.activeElement.tagName);
|
|
56
|
-
expect(activeEl).toEqual("WM-NAVIGATION-HAMBURGER");
|
|
57
|
-
});
|
|
58
|
-
it("handles focus method when collapsible and open", async () => {
|
|
59
|
-
page.setViewport({ width: 1023, height: 800 });
|
|
60
|
-
let activeEl = await page.evaluate(() => document.activeElement.tagName);
|
|
61
|
-
expect(activeEl).toEqual("BODY");
|
|
62
|
-
expect(nav.getAttribute("aria-expanded")).toBe("false");
|
|
63
|
-
hamburger.click();
|
|
64
|
-
await page.waitForChanges();
|
|
65
|
-
expect(nav.getAttribute("aria-expanded")).toBe("true");
|
|
66
|
-
nav.focus();
|
|
67
|
-
activeEl = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.tagName);
|
|
68
|
-
expect(activeEl).toEqual("WM-BUTTON"); // the close button
|
|
69
|
-
});
|
|
70
|
-
it("handles focus method when persistent", async () => {
|
|
71
|
-
page.setViewport({ width: 1024, height: 800 });
|
|
72
|
-
let activeEl = await page.evaluate(() => document.activeElement.tagName);
|
|
73
|
-
expect(activeEl).toEqual("BODY");
|
|
74
|
-
expect(nav.getAttribute("aria-expanded")).toBeUndefined;
|
|
75
|
-
nav.focus();
|
|
76
|
-
expect(nav.getAttribute("aria-expanded")).toBeUndefined; // should still be undefined
|
|
77
|
-
activeEl = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.textContent);
|
|
78
|
-
expect(activeEl).toEqual("Home"); // first item
|
|
79
|
-
});
|
|
80
|
-
it("is open on load if open prop is set to true", async () => {
|
|
81
|
-
page = await newE2EPage();
|
|
82
|
-
await page.setContent(`<html lang='en'><head><title>Page</title></head><body>
|
|
83
|
-
<wm-navigation-hamburger nav-id="mynav"></wm-navigation-hamburger>
|
|
84
|
-
<wm-navigation open id="mynav">
|
|
85
|
-
<wm-navigation-item href="/home" text="Home" active>Home</wm-navigation-item>
|
|
86
|
-
<wm-navigation-item href="/things" text="Things">Things</wm-navigation-item>
|
|
87
|
-
</wm-navigation><main><h1>Title</h1><button>something tabbable here</button>
|
|
88
|
-
</main></body></html>`);
|
|
89
|
-
await page.waitForTimeout(500);
|
|
90
|
-
const nav = await page.find("wm-navigation");
|
|
91
|
-
expect(nav.getAttribute("aria-expanded")).toBe("true");
|
|
92
|
-
});
|
|
93
|
-
it("programatically associates hamburger and nav and properly announces to SR", async () => {
|
|
94
|
-
const hamburgerAriaControls = hamburger.shadowRoot.querySelector("button").getAttribute("aria-controls");
|
|
95
|
-
const hamburgerAriaLabel = hamburger.shadowRoot.querySelector("button").getAttribute("aria-label");
|
|
96
|
-
const navAriaLabel = nav.getAttribute("aria-label");
|
|
97
|
-
expect(hamburgerAriaControls).toBe(nav.id);
|
|
98
|
-
expect(hamburgerAriaLabel).toBe("Show navigation");
|
|
99
|
-
expect(navAriaLabel).toBe("Main");
|
|
100
|
-
});
|
|
101
|
-
// when closed, focus returns to hamburger
|
|
102
|
-
});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
-
//jest.mock("../../global/functions");
|
|
3
|
-
import { Navigation } from "./wm-navigation";
|
|
4
|
-
import { NavigationItem } from "./wm-navigation-item";
|
|
5
|
-
describe("Navigation unit tests", () => {
|
|
6
|
-
it("isCollapsible", async () => {
|
|
7
|
-
const nav = new Navigation();
|
|
8
|
-
window.innerWidth = 1023;
|
|
9
|
-
expect(nav.isCollapsible).toBe(true);
|
|
10
|
-
window.innerWidth = 1024;
|
|
11
|
-
expect(nav.isCollapsible).toBe(false);
|
|
12
|
-
});
|
|
13
|
-
it("ariaExpanded", async () => {
|
|
14
|
-
const nav = new Navigation();
|
|
15
|
-
window.innerWidth = 1024;
|
|
16
|
-
expect(nav.ariaExpanded).toBeUndefined;
|
|
17
|
-
window.innerWidth = 1023;
|
|
18
|
-
expect(nav.ariaExpanded).toBe("false");
|
|
19
|
-
nav.open = true;
|
|
20
|
-
expect(nav.ariaExpanded).toBe("true");
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
describe("navigation", () => {
|
|
24
|
-
let page;
|
|
25
|
-
let navigation;
|
|
26
|
-
let items;
|
|
27
|
-
beforeEach(async () => {
|
|
28
|
-
page = await newSpecPage({
|
|
29
|
-
components: [Navigation, NavigationItem],
|
|
30
|
-
html: `<wm-navigation id="mynav">
|
|
31
|
-
<wm-navigation-item href="/home" text="Home" active>Home</wm-navigation-item>
|
|
32
|
-
<wm-navigation-item href="/things" text="Things">Things</wm-navigation-item>
|
|
33
|
-
</wm-navigation>`,
|
|
34
|
-
});
|
|
35
|
-
navigation = page.root;
|
|
36
|
-
items = Array.from(page.root.querySelectorAll("wm-navigation-item"));
|
|
37
|
-
});
|
|
38
|
-
// integration tests
|
|
39
|
-
// this test includes UX functionality, the related a11y (aria-expanded)
|
|
40
|
-
// as well as the switch between persistent and collapsible modes
|
|
41
|
-
it("expands and collapses", async () => {
|
|
42
|
-
// aria-expanded
|
|
43
|
-
const expanded = navigation.getAttribute("aria-expanded");
|
|
44
|
-
// Persistent: no aria-expanded
|
|
45
|
-
window.innerWidth = 1024;
|
|
46
|
-
expect(expanded).toBeNull;
|
|
47
|
-
// Collapsible
|
|
48
|
-
window.innerWidth = 1023;
|
|
49
|
-
// aria-expanded true when open
|
|
50
|
-
navigation.open = true;
|
|
51
|
-
expect(expanded).not.toBeNull;
|
|
52
|
-
// aria-expanded false when closed
|
|
53
|
-
navigation.open = false;
|
|
54
|
-
expect(expanded).toBeNull;
|
|
55
|
-
});
|
|
56
|
-
it("closes when toggle button is activated", async () => {
|
|
57
|
-
window.innerWidth = 1023;
|
|
58
|
-
navigation.open = true;
|
|
59
|
-
let toggleBtn = page.root.shadowRoot.querySelector(".toggle");
|
|
60
|
-
toggleBtn.click();
|
|
61
|
-
expect(navigation.open).toBeFalsy();
|
|
62
|
-
});
|
|
63
|
-
/*
|
|
64
|
-
* Close button is present in collapsible mode, not otherwise
|
|
65
|
-
* can't test with current implementation because button is
|
|
66
|
-
* simply hidden via CSS
|
|
67
|
-
it("hides the button in persistent mode", async () => {
|
|
68
|
-
// in persistent mode, there's no button at all
|
|
69
|
-
window.innerWidth = 1024;
|
|
70
|
-
navigation.open = true;
|
|
71
|
-
|
|
72
|
-
let toggleBtn = page.root!.shadowRoot!.querySelector(".toggle-wrapper");
|
|
73
|
-
expect(toggleBtn.width).toBeNull();
|
|
74
|
-
});
|
|
75
|
-
*/
|
|
76
|
-
// a11y
|
|
77
|
-
it("Has a role of navigation and has a label", async () => {
|
|
78
|
-
// navigation role requires a label only when there are several on the page. Since we don't know if there will be others, we can set a label in all cases.
|
|
79
|
-
let role = navigation.getAttribute("role");
|
|
80
|
-
let label = navigation.getAttribute("aria-label");
|
|
81
|
-
expect(role).toBe("navigation");
|
|
82
|
-
expect(label).toBe("Main");
|
|
83
|
-
});
|
|
84
|
-
it("items have proper role and attrs", async () => {
|
|
85
|
-
const firstItem = items[0];
|
|
86
|
-
const role = firstItem.getAttribute("role");
|
|
87
|
-
expect(role).toBe("listitem");
|
|
88
|
-
const href = firstItem.shadowRoot.querySelector("a").getAttribute("href");
|
|
89
|
-
expect(href).toBe("/home");
|
|
90
|
-
});
|
|
91
|
-
});
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
describe("priv-navigator-button", () => {
|
|
3
|
-
let page,
|
|
4
|
-
//navigator: any,
|
|
5
|
-
//navigatorList: any,
|
|
6
|
-
navigatorButton, button;
|
|
7
|
-
beforeEach(async () => {
|
|
8
|
-
page = await newE2EPage();
|
|
9
|
-
await page.setContent(`
|
|
10
|
-
<html lang='en'>
|
|
11
|
-
<head>
|
|
12
|
-
<title>Page</title>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<main>
|
|
16
|
-
<h1>Title</h1>
|
|
17
|
-
<wm-navigator id="nav" selected-product="planning" user-name="Adrienne Johnson" email="ajohnson@watermarkinsights.com"></wm-navigator>
|
|
18
|
-
<script>window.onload = function getModules() {
|
|
19
|
-
const navigator = document.getElementById("nav");
|
|
20
|
-
const userModules = [{ "id": "aqua", "link_url": "", "saml_link_url": "" }, { "id": "dm", "link_url": "", "saml_link_url": "" }, { "id": "planning", "link_url": "", "saml_link_url": "" }, { "id": "livetext", "link_url": "", "saml_link_url": "" }];
|
|
21
|
-
const stringifyModules = JSON.stringify(userModules);
|
|
22
|
-
navigator.products = stringifyModules;
|
|
23
|
-
};</script>
|
|
24
|
-
</main>
|
|
25
|
-
</body>
|
|
26
|
-
</html>`);
|
|
27
|
-
// navigator = await page.find("wm-navigator");
|
|
28
|
-
// navigatorList = await page.find("wm-navigator >>> ul");
|
|
29
|
-
navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
|
|
30
|
-
button = await navigatorButton.shadowRoot.querySelector("button");
|
|
31
|
-
});
|
|
32
|
-
// RENDER
|
|
33
|
-
it("renders a button", async () => {
|
|
34
|
-
expect(button).not.toBeNull();
|
|
35
|
-
});
|
|
36
|
-
it("it has an aria-expanded attribute whose value updates when the menu opens and closes", async () => {
|
|
37
|
-
await page.keyboard.press("Tab");
|
|
38
|
-
await page.waitForChanges();
|
|
39
|
-
await page.keyboard.press("Enter");
|
|
40
|
-
await page.waitForChanges();
|
|
41
|
-
navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
|
|
42
|
-
button = await navigatorButton.shadowRoot.querySelector("button");
|
|
43
|
-
expect(button.getAttribute("aria-expanded")).toEqual("true");
|
|
44
|
-
await page.keyboard.press("Escape");
|
|
45
|
-
await page.waitForChanges();
|
|
46
|
-
navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
|
|
47
|
-
button = await navigatorButton.shadowRoot.querySelector("button");
|
|
48
|
-
expect(button.getAttribute("aria-expanded")).toEqual("false");
|
|
49
|
-
});
|
|
50
|
-
});
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { AxePuppeteer } from "@axe-core/puppeteer";
|
|
3
|
-
describe("wm-navigator", () => {
|
|
4
|
-
let page, navigator, navigatorList, navigatorButton;
|
|
5
|
-
beforeEach(async () => {
|
|
6
|
-
page = await newE2EPage();
|
|
7
|
-
await page.setContent(`
|
|
8
|
-
<html lang='en' mode='planning'>
|
|
9
|
-
<head>
|
|
10
|
-
<title>Page</title>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<main>
|
|
14
|
-
<h1>Title</h1>
|
|
15
|
-
<wm-navigator id="nav" base-logout-uri="https://www.dummy.wm/logout" user-name="Adrienne Johnson" email="ajohnson@watermarkinsights.wm" auth-type="2"></wm-navigator>
|
|
16
|
-
<script>window.onload = function getModules() {
|
|
17
|
-
const navigator = document.getElementById("nav");
|
|
18
|
-
const userModules = [{ "id": "aqua", "linkUrl": "https://www.dummy.wm/aqua", "samlLinkUrl": "https://www.dummy.wm/saml/aqua", "iconUrl": "/aqualogo.svg", "name": "Aqua" }, { "id": "dm", "linkUrl": "/dm", "samlLinkUrl": "/saml/dm", "iconUrl": "/dmlogo.svg", "name": "Digital Measures" }, { "id": "planning", "linkUrl": "/planning", "samlLinkUrl": "/saml/planning", "iconUrl": "/planlogo.svg", "name": "Planning & Self-Study" }];
|
|
19
|
-
const stringifyModules = JSON.stringify(userModules);
|
|
20
|
-
navigator.products = stringifyModules;
|
|
21
|
-
};</script>
|
|
22
|
-
</main>
|
|
23
|
-
</body>
|
|
24
|
-
</html>`);
|
|
25
|
-
navigator = await page.find("wm-navigator");
|
|
26
|
-
navigatorList = await page.find("wm-navigator >>> ul");
|
|
27
|
-
navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
|
|
28
|
-
const url = "https://dummy.wm";
|
|
29
|
-
Object.defineProperty(window, "location", {
|
|
30
|
-
value: {
|
|
31
|
-
href: url,
|
|
32
|
-
},
|
|
33
|
-
writable: true,
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
it("passes Axe checks", async () => {
|
|
37
|
-
const results = await new AxePuppeteer(page).analyze();
|
|
38
|
-
expect(results.violations.length).toBe(0);
|
|
39
|
-
});
|
|
40
|
-
// RENDER
|
|
41
|
-
it("renders", async () => {
|
|
42
|
-
expect(navigator).toHaveClass("hydrated");
|
|
43
|
-
});
|
|
44
|
-
// VIEW
|
|
45
|
-
it("opens the menu when clicked", async () => {
|
|
46
|
-
await navigatorButton.click();
|
|
47
|
-
await page.waitForChanges();
|
|
48
|
-
const wrapper = await page.find("wm-navigator >>> .wrapper");
|
|
49
|
-
expect(wrapper).not.toHaveClass("hide");
|
|
50
|
-
});
|
|
51
|
-
it("renders the products in the list if there is more than one, along with a logout option", async () => {
|
|
52
|
-
navigatorList = await page.find("wm-navigator >>> ul");
|
|
53
|
-
const listItems = await navigatorList.querySelectorAll("priv-navigator-item");
|
|
54
|
-
expect(listItems.length).toEqual(4);
|
|
55
|
-
expect(listItems[3].textContent).toEqual("Log Out");
|
|
56
|
-
});
|
|
57
|
-
it("renders just the logout option if there is one product in the list", async () => {
|
|
58
|
-
const newProducts = JSON.stringify([{ id: "planning", linkUrl: "", samlLinkUrl: "" }]);
|
|
59
|
-
navigator.setProperty("products", newProducts);
|
|
60
|
-
await page.waitForChanges();
|
|
61
|
-
const listItems = await page.findAll("wm-navigator >>> priv-navigator-item");
|
|
62
|
-
expect(listItems.length).toEqual(1);
|
|
63
|
-
expect(listItems[0].textContent).toEqual("Log Out");
|
|
64
|
-
});
|
|
65
|
-
it("sets the alt text on the button", async () => {
|
|
66
|
-
const label = await navigatorButton.shadowRoot.querySelector("button").getAttribute("aria-label");
|
|
67
|
-
const expectedText = "User information and product navigator";
|
|
68
|
-
expect(label).toEqual(expectedText);
|
|
69
|
-
const newProducts = JSON.stringify(["planning"]);
|
|
70
|
-
navigator.setProperty("products", newProducts);
|
|
71
|
-
await page.waitForChanges();
|
|
72
|
-
const newLabel = await navigatorButton.shadowRoot.querySelector("button").getAttribute("aria-label");
|
|
73
|
-
expect(newLabel).toEqual("User information");
|
|
74
|
-
});
|
|
75
|
-
//KEYBOARD NAVIGATION AND FOCUS
|
|
76
|
-
it("opens the menu when enter is pressed and closes it on escape", async () => {
|
|
77
|
-
await page.keyboard.press("Tab");
|
|
78
|
-
await page.waitForChanges();
|
|
79
|
-
await page.keyboard.press("Enter");
|
|
80
|
-
await page.waitForChanges();
|
|
81
|
-
const wrapper = await page.find("wm-navigator >>> .wrapper");
|
|
82
|
-
expect(wrapper).not.toHaveClass("hide");
|
|
83
|
-
await page.keyboard.press("Escape"); // Previous btn
|
|
84
|
-
await page.waitForChanges();
|
|
85
|
-
expect(wrapper).toHaveClass("hide");
|
|
86
|
-
await page.keyboard.press("Space");
|
|
87
|
-
await page.waitForChanges();
|
|
88
|
-
expect(wrapper).not.toHaveClass("hide");
|
|
89
|
-
});
|
|
90
|
-
it("focuses the current product in use when the menu opens", async () => {
|
|
91
|
-
await page.keyboard.press("Tab");
|
|
92
|
-
await page.waitForChanges();
|
|
93
|
-
await page.keyboard.press("Enter");
|
|
94
|
-
await page.waitForChanges();
|
|
95
|
-
const activeItem = await page.find("wm-navigator >>> priv-navigator-item#planning");
|
|
96
|
-
expect(activeItem.tabIndex).toEqual(0);
|
|
97
|
-
const activeElId = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.id);
|
|
98
|
-
expect(activeElId).toEqual("planning");
|
|
99
|
-
});
|
|
100
|
-
it("focuses the next product in the list when the down arrow is pressed", async () => {
|
|
101
|
-
await page.keyboard.press("Tab");
|
|
102
|
-
await page.waitForChanges();
|
|
103
|
-
await page.keyboard.press("Enter");
|
|
104
|
-
await page.waitForChanges();
|
|
105
|
-
await page.keyboard.press("ArrowDown");
|
|
106
|
-
await page.waitForChanges();
|
|
107
|
-
let activeItem = await page.find("wm-navigator >>> priv-navigator-item#nav-logout");
|
|
108
|
-
expect(activeItem.tabIndex).toEqual(0);
|
|
109
|
-
let activeElId = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.id);
|
|
110
|
-
expect(activeElId).toEqual("nav-logout");
|
|
111
|
-
await page.keyboard.press("ArrowDown");
|
|
112
|
-
await page.waitForChanges();
|
|
113
|
-
activeItem = await page.find("wm-navigator >>> priv-navigator-item#aqua");
|
|
114
|
-
expect(activeItem.tabIndex).toEqual(0);
|
|
115
|
-
activeElId = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.id);
|
|
116
|
-
expect(activeElId).toEqual("aqua");
|
|
117
|
-
});
|
|
118
|
-
it("focuses the previous product in the list when the up arrow is pressed", async () => {
|
|
119
|
-
await page.keyboard.press("Tab");
|
|
120
|
-
await page.waitForChanges();
|
|
121
|
-
await page.keyboard.press("Enter");
|
|
122
|
-
await page.waitForChanges();
|
|
123
|
-
await page.keyboard.press("ArrowUp");
|
|
124
|
-
await page.waitForChanges();
|
|
125
|
-
let activeItem = await page.find("wm-navigator >>> priv-navigator-item#dm");
|
|
126
|
-
expect(activeItem.tabIndex).toEqual(0);
|
|
127
|
-
let activeElId = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.id);
|
|
128
|
-
expect(activeElId).toEqual("dm");
|
|
129
|
-
await page.keyboard.press("ArrowUp");
|
|
130
|
-
await page.waitForChanges();
|
|
131
|
-
await page.keyboard.press("ArrowUp");
|
|
132
|
-
await page.waitForChanges();
|
|
133
|
-
activeItem = await page.find("wm-navigator >>> priv-navigator-item#nav-logout");
|
|
134
|
-
expect(activeItem.tabIndex).toEqual(0);
|
|
135
|
-
activeElId = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.id);
|
|
136
|
-
expect(activeElId).toEqual("nav-logout");
|
|
137
|
-
});
|
|
138
|
-
//FUNCTIONALITY
|
|
139
|
-
// the next 3 tests are failing for unknown reasons (they used to pass)
|
|
140
|
-
// it("should change pages/products when a dropdown item is activated", async () => {
|
|
141
|
-
// const browser = await puppeteer.launch();
|
|
142
|
-
// const page = await browser.newPage();
|
|
143
|
-
// await page.goto("http://localhost:3333/../src/components/wm-navigator/navigator.html", {
|
|
144
|
-
// waitUntil: "networkidle2"
|
|
145
|
-
// });
|
|
146
|
-
// await page.evaluate(async () => {
|
|
147
|
-
// const aquaNavItem = document!
|
|
148
|
-
// .querySelector("#nav")!
|
|
149
|
-
// .shadowRoot!.querySelector("priv-navigator-item");
|
|
150
|
-
// aquaNavItem!.click();
|
|
151
|
-
// });
|
|
152
|
-
// await page.waitForNavigation();
|
|
153
|
-
// await Promise.all([
|
|
154
|
-
// expect(page.url()).toEqual(
|
|
155
|
-
// "http://localhost:3333/aqua/?connection_name=test"
|
|
156
|
-
// )
|
|
157
|
-
// ]);
|
|
158
|
-
// });
|
|
159
|
-
// it("should redirect to a logout URL when the logout item is activated", async () => {
|
|
160
|
-
// const browser = await puppeteer.launch();
|
|
161
|
-
// const page = await browser.newPage();
|
|
162
|
-
// await page.goto("http://localhost:3333/components/wm-navigator/navigator.html", {
|
|
163
|
-
// waitUntil: "networkidle2"
|
|
164
|
-
// });
|
|
165
|
-
// await page.evaluate(async () => {
|
|
166
|
-
// const logoutItem = document!
|
|
167
|
-
// .querySelector("#nav")!
|
|
168
|
-
// .shadowRoot!.querySelector("#nav-logout") as HTMLElement;
|
|
169
|
-
// logoutItem!.click();
|
|
170
|
-
// });
|
|
171
|
-
// await page.waitForNavigation();
|
|
172
|
-
// await Promise.all([
|
|
173
|
-
// expect(page.url()).toEqual("http://localhost:3333/logout")
|
|
174
|
-
// ]);
|
|
175
|
-
// });
|
|
176
|
-
// it("should redirect to a URL with a connection name when a dropdown item is activated and the user is a saml user", async () => {
|
|
177
|
-
// const browser = await puppeteer.launch({
|
|
178
|
-
// headless: true,
|
|
179
|
-
// defaultViewport: {
|
|
180
|
-
// width: 1100,
|
|
181
|
-
// height: 1100
|
|
182
|
-
// }
|
|
183
|
-
// });
|
|
184
|
-
// const page = await browser.newPage();
|
|
185
|
-
// await page.goto("http://localhost:3333/devpages/navigator.html", {
|
|
186
|
-
// waitUntil: "networkidle2"
|
|
187
|
-
// });
|
|
188
|
-
// // page.on("console", (msg: any) => console.log("PAGE LOG:", msg.text()));
|
|
189
|
-
// await page.evaluate(async () => {
|
|
190
|
-
// const aquaNavItem = document!
|
|
191
|
-
// .querySelector("#nav-aqua")!
|
|
192
|
-
// .shadowRoot!.querySelector("#ek") as HTMLElement;
|
|
193
|
-
// aquaNavItem!.click();
|
|
194
|
-
// });
|
|
195
|
-
// await page.waitForNavigation();
|
|
196
|
-
// await Promise.all([
|
|
197
|
-
// expect(page.url()).toEqual(
|
|
198
|
-
// "http://localhost:3333/saml/ek/?connection_name=something"
|
|
199
|
-
// )
|
|
200
|
-
// ]);
|
|
201
|
-
// });
|
|
202
|
-
});
|
|
203
|
-
// const page = await newSpecPage({
|
|
204
|
-
// html: `<wm-navigator id="nav" logout-uri="https://www.dummy.wm/logout" user-name="Adrienne Johnson" email="ajohnson@watermarkinsights.wm" auth-type="username_password_sso" products="[]"></wm-navigator>`,
|
|
205
|
-
// components: [Navigator]
|
|
206
|
-
// });
|
|
207
|
-
// const button = page.root!.querySelector("wm-navigator");
|
|
208
|
-
// button!.click();
|
|
209
|
-
// console.log("PAGE HREF", page.win.location.href);
|