@watermarkinsights/ripple 5.5.0 → 5.5.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-861eb453.js → cjs/app-globals-4dfe82d1.js} +10 -1
- package/dist/cjs/{chartFunctions-ce6c7c16.js → chartFunctions-878f8139.js} +3 -3
- package/dist/cjs/{functions-3be85c6d.js → functions-05e7ad5a.js} +104 -7
- package/dist/cjs/index-788526f5.js +1851 -0
- package/dist/cjs/{intl-567eb9d8.js → intl-2b550151.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/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 +13 -14
- 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-footer.cjs.entry.js +4 -3
- package/dist/cjs/wm-modal-header.cjs.entry.js +6 -5
- package/dist/cjs/wm-modal.cjs.entry.js +6 -5
- 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-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 +21 -19
- 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-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-option/wm-option.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-select/wm-select.js +2 -2
- 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-ad843e7f.js → esm/app-globals-b8b36bbb.js} +7 -2
- package/dist/esm/{chartFunctions-0ebf83f3.js → chartFunctions-00fd6f23.js} +3 -3
- package/dist/esm/{functions-46843ea0.js → functions-25781571.js} +105 -8
- package/dist/esm/index-130e07bb.js +1820 -0
- package/dist/esm/{intl-8b8740b9.js → intl-df3d34d1.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/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 +13 -14
- 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-footer.entry.js +4 -3
- package/dist/esm/wm-modal-header.entry.js +6 -5
- package/dist/esm/wm-modal.entry.js +6 -5
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +4 -3
- 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-b8b36bbb.js +1 -0
- package/dist/esm-es5/{chartFunctions-0ebf83f3.js → chartFunctions-00fd6f23.js} +1 -1
- package/dist/esm-es5/functions-25781571.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-8b8740b9.js → intl-df3d34d1.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/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-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.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-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-99dd083d.system.js → p-03708b88.system.js} +1 -1
- package/dist/ripple/{p-45abd8fe.entry.js → p-041e579b.entry.js} +1 -1
- package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/p-0af94825.entry.js +1 -0
- package/dist/ripple/p-0ff41567.system.entry.js +1 -0
- package/dist/ripple/p-1044e1dc.system.js +1 -0
- package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
- package/dist/ripple/p-13fc2164.entry.js +1 -0
- package/dist/ripple/p-155224a2.system.entry.js +1 -0
- package/dist/ripple/p-17bb1157.system.entry.js +1 -0
- package/dist/ripple/p-1f09134c.entry.js +1 -0
- package/dist/ripple/{p-204bdd73.entry.js → p-298bde1b.entry.js} +1 -1
- package/dist/ripple/p-298c2675.entry.js +1 -0
- package/dist/ripple/p-2d619f83.entry.js +1 -0
- package/dist/ripple/p-2ef49c84.entry.js +1 -0
- package/dist/ripple/p-2fd12dd9.entry.js +1 -0
- package/dist/ripple/p-3423a9b6.system.entry.js +1 -0
- package/dist/ripple/p-376efca9.entry.js +1 -0
- package/dist/ripple/p-38ccde69.system.js +1 -0
- package/dist/ripple/{p-e3241417.system.entry.js → p-3b4045f8.system.entry.js} +1 -1
- package/dist/ripple/p-3b5f4364.system.entry.js +1 -0
- package/dist/ripple/p-417c8e46.system.entry.js +1 -0
- package/dist/ripple/p-418ed08c.system.entry.js +1 -0
- package/dist/ripple/{p-28b70082.system.entry.js → p-41eb6a2e.system.entry.js} +1 -1
- package/dist/ripple/p-4670ccb4.system.js +1 -0
- package/dist/ripple/p-4baaf026.entry.js +1 -0
- package/dist/ripple/p-4ea1e503.entry.js +1 -0
- package/dist/ripple/p-5051034b.entry.js +1 -0
- package/dist/ripple/p-56766bb2.entry.js +1 -0
- package/dist/ripple/p-5caaf651.system.entry.js +1 -0
- package/dist/ripple/p-5ece78e5.system.entry.js +1 -0
- package/dist/ripple/{p-42d1c301.entry.js → p-672ae2cb.entry.js} +1 -1
- package/dist/ripple/{p-3a44e1c8.entry.js → p-67a7f0b0.entry.js} +1 -1
- package/dist/ripple/p-6d0e5159.system.entry.js +1 -0
- package/dist/ripple/p-6d56676e.system.entry.js +1 -0
- package/dist/ripple/{p-7326b62a.entry.js → p-6e60631a.entry.js} +1 -1
- package/dist/ripple/{p-b7ead395.system.entry.js → p-6fe35d1e.system.entry.js} +1 -1
- package/dist/ripple/p-748f8a97.system.entry.js +1 -0
- package/dist/ripple/p-7eab6bea.system.entry.js +1 -0
- package/dist/ripple/p-7fb95b89.entry.js +1 -0
- package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
- package/dist/ripple/p-830f8b3f.entry.js +1 -0
- package/dist/ripple/p-86fd68b3.system.entry.js +1 -0
- package/dist/ripple/p-88cfd58d.js +1 -0
- package/dist/ripple/p-89b27fbb.js +1 -0
- package/dist/ripple/p-8b56f9d8.system.entry.js +1 -0
- package/dist/ripple/{p-8159cdf5.entry.js → p-8e72de50.entry.js} +1 -1
- package/dist/ripple/{p-510679f8.system.entry.js → p-a1a2f8c9.system.entry.js} +1 -1
- package/dist/ripple/p-a62e7532.entry.js +1 -0
- package/dist/ripple/{p-f92bd0c1.js → p-a88bf1c5.js} +1 -1
- package/dist/ripple/{p-1ac66a15.system.js → p-a9d89ac8.system.js} +1 -1
- package/dist/ripple/{p-a152cf3a.system.entry.js → p-aab56a37.system.entry.js} +1 -1
- package/dist/ripple/{p-79106e23.system.entry.js → p-ac40417b.system.entry.js} +1 -1
- package/dist/ripple/{p-ffb31979.system.entry.js → p-b0c566b5.system.entry.js} +1 -1
- package/dist/ripple/p-b41ef3db.entry.js +1 -0
- package/dist/ripple/p-b7307be6.system.entry.js +1 -0
- package/dist/ripple/p-b80d9402.system.entry.js +1 -0
- package/dist/ripple/p-b8168f35.system.entry.js +1 -0
- package/dist/ripple/{p-dbc112a6.entry.js → p-bcff8b3a.entry.js} +1 -1
- package/dist/ripple/p-c2181de0.entry.js +1 -0
- 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-d5ba9de1.system.entry.js +1 -0
- package/dist/ripple/{p-df1a11f1.system.entry.js → p-d93c51dd.system.entry.js} +1 -1
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-e2fe86a7.system.entry.js +1 -0
- package/dist/ripple/p-e85b1f40.entry.js +1 -0
- package/dist/ripple/p-ea0dfadf.system.entry.js +1 -0
- package/dist/ripple/p-eb14b354.entry.js +1 -0
- package/dist/ripple/p-ecb6c756.entry.js +1 -0
- package/dist/ripple/p-f09e2c22.entry.js +1 -0
- package/dist/ripple/p-f17fd62b.entry.js +1 -0
- package/dist/ripple/{p-d79fdf0b.js → p-f54e9ed0.js} +1 -1
- package/dist/ripple/p-fabe4ca4.entry.js +1 -0
- package/dist/ripple/{p-5d0e2006.system.entry.js → p-fc529ba1.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 +2 -2
- package/dist/cjs/index-e86c28b6.js +0 -2641
- 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/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-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/wm-option/wm-option.spec.js +0 -63
- 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-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/wm-select/wm-select.spec.js +0 -271
- 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 -2610
- package/dist/esm-es5/functions-46843ea0.js +0 -1
- package/dist/esm-es5/global-861eb453.js +0 -1
- package/dist/esm-es5/index-558b5a82.js +0 -1
- package/dist/ripple/p-011477e2.entry.js +0 -1
- package/dist/ripple/p-021ff5fa.system.entry.js +0 -1
- package/dist/ripple/p-057ec1e4.js +0 -1
- package/dist/ripple/p-09a31f0c.entry.js +0 -1
- package/dist/ripple/p-0ea8609b.system.entry.js +0 -1
- package/dist/ripple/p-240124b0.system.entry.js +0 -1
- package/dist/ripple/p-26fbc7f5.system.entry.js +0 -1
- package/dist/ripple/p-294b38ca.system.entry.js +0 -1
- package/dist/ripple/p-2b05bf05.entry.js +0 -1
- package/dist/ripple/p-311923b2.system.entry.js +0 -1
- package/dist/ripple/p-31976813.entry.js +0 -1
- package/dist/ripple/p-33679b9d.entry.js +0 -1
- package/dist/ripple/p-34b5830f.system.js +0 -1
- package/dist/ripple/p-3568472c.entry.js +0 -1
- package/dist/ripple/p-3b8b1b44.system.entry.js +0 -1
- package/dist/ripple/p-4a6854d3.system.entry.js +0 -1
- package/dist/ripple/p-4c8db09c.system.entry.js +0 -1
- package/dist/ripple/p-4d0b1890.entry.js +0 -1
- package/dist/ripple/p-568c595f.js +0 -2
- package/dist/ripple/p-62a8f09c.entry.js +0 -1
- package/dist/ripple/p-6885d780.system.js +0 -1
- package/dist/ripple/p-7e6f5a1e.system.entry.js +0 -1
- package/dist/ripple/p-822618d7.entry.js +0 -1
- package/dist/ripple/p-825bd63b.entry.js +0 -1
- package/dist/ripple/p-884294c6.entry.js +0 -1
- package/dist/ripple/p-8fbddb6c.system.entry.js +0 -1
- package/dist/ripple/p-902a54c5.entry.js +0 -1
- package/dist/ripple/p-905dd4da.system.entry.js +0 -1
- package/dist/ripple/p-99c24568.system.entry.js +0 -1
- package/dist/ripple/p-a03f7141.entry.js +0 -1
- package/dist/ripple/p-a27d2177.entry.js +0 -1
- package/dist/ripple/p-a8524a48.entry.js +0 -1
- package/dist/ripple/p-ab8d78cc.system.js +0 -2
- package/dist/ripple/p-ade3d9a9.entry.js +0 -1
- package/dist/ripple/p-b2dac998.system.entry.js +0 -1
- package/dist/ripple/p-bc5e9d24.entry.js +0 -1
- package/dist/ripple/p-bd6b8cf2.system.js +0 -1
- package/dist/ripple/p-bf636261.entry.js +0 -1
- package/dist/ripple/p-c47811a2.entry.js +0 -1
- package/dist/ripple/p-c4b9d46d.entry.js +0 -1
- package/dist/ripple/p-c885c7f9.entry.js +0 -1
- package/dist/ripple/p-c9543950.system.entry.js +0 -1
- package/dist/ripple/p-cacfbaf1.system.entry.js +0 -1
- package/dist/ripple/p-d24882a7.system.entry.js +0 -1
- package/dist/ripple/p-d33d6e96.system.entry.js +0 -1
- package/dist/ripple/p-df2560f3.system.entry.js +0 -1
- package/dist/ripple/p-e3bcdde8.system.entry.js +0 -1
- package/dist/ripple/p-e83a98d3.entry.js +0 -1
- package/dist/ripple/p-e995f7f0.js +0 -1
- package/dist/ripple/p-eaac6bcd.entry.js +0 -1
- package/dist/ripple/p-fd0aae67.system.entry.js +0 -1
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { AxePuppeteer } from "@axe-core/puppeteer";
|
|
3
|
-
describe("wm-date-range", () => {
|
|
4
|
-
//@ts-ignore
|
|
5
|
-
let page, component, startInput, endInput, btn, popup, popupTitleDay;
|
|
6
|
-
beforeEach(async () => {
|
|
7
|
-
page = await newE2EPage();
|
|
8
|
-
await page.setContent(`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
|
|
9
|
-
<wm-date-range id="dr" label="label"></wm-date-range>
|
|
10
|
-
</main></body></html>`);
|
|
11
|
-
component = await page.find("wm-date-range");
|
|
12
|
-
[startInput, endInput] = await page.findAll("wm-date-range >>> input");
|
|
13
|
-
btn = await page.find("wm-date-range >>> #toggle");
|
|
14
|
-
popup = await page.find("wm-date-range >>> #popup");
|
|
15
|
-
popupTitleDay = await page.find("wm-date-range >>> #popup-title-month");
|
|
16
|
-
});
|
|
17
|
-
it("passes Axe checks", async () => {
|
|
18
|
-
const results = await new AxePuppeteer(page).analyze();
|
|
19
|
-
expect(results.violations.length).toBe(0);
|
|
20
|
-
});
|
|
21
|
-
// BUTTON
|
|
22
|
-
// Opening and closing the date-range
|
|
23
|
-
it("opens at today's date by default", async () => {
|
|
24
|
-
const popup = await page.find("wm-date-range >>> .popup");
|
|
25
|
-
const today = new Date();
|
|
26
|
-
const year = today.getUTCFullYear();
|
|
27
|
-
const month = (today.getUTCMonth() + 1).toString().padStart(2, "0");
|
|
28
|
-
const day = today.getUTCDate().toString();
|
|
29
|
-
const dateTable = await popup.find("[role='grid']");
|
|
30
|
-
// await page.waitForChanges();
|
|
31
|
-
const selDate = await dateTable.find("[aria-selected='true']");
|
|
32
|
-
expect(selDate).toEqualAttribute("data-year", year);
|
|
33
|
-
expect(selDate).toEqualAttribute("data-month", month);
|
|
34
|
-
expect(selDate.textContent).toBe(day);
|
|
35
|
-
});
|
|
36
|
-
/*
|
|
37
|
-
it("opens at the date in the input if there is one", async () => {
|
|
38
|
-
const startInput = await page.find("wm-date-range >>> input");
|
|
39
|
-
const popup = await page.find("wm-date-range >>> .popup");
|
|
40
|
-
|
|
41
|
-
await startInput.type("02/01/2030");
|
|
42
|
-
await component.setProperty("calendarDate", "2030-02-01");
|
|
43
|
-
await page.waitForChanges();
|
|
44
|
-
await page.keyboard.press("Tab");
|
|
45
|
-
await page.keyboard.press("Enter");
|
|
46
|
-
await page.waitForChanges();
|
|
47
|
-
const dateTable = await popup.find("[role='grid']");
|
|
48
|
-
|
|
49
|
-
const selDate = await dateTable.find("[aria-selected='true']");
|
|
50
|
-
expect(selDate).toEqualAttribute("data-year", "2030");
|
|
51
|
-
expect(selDate).toEqualAttribute("data-month", "02");
|
|
52
|
-
expect(selDate.textContent).toBe("1");
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it("Closes the popup when user triggers the calendar button", async () => {
|
|
56
|
-
const popup = await page.find("wm-date-range >>> .popup");
|
|
57
|
-
|
|
58
|
-
await page.keyboard.press("Tab"); // in input
|
|
59
|
-
await page.keyboard.press("Tab"); // on btn
|
|
60
|
-
await page.keyboard.press("Enter");
|
|
61
|
-
await page.waitForChanges();
|
|
62
|
-
expect(popup).toHaveClass("open");
|
|
63
|
-
await page.keyboard.press("Escape");
|
|
64
|
-
await page.waitForChanges();
|
|
65
|
-
expect(popup).not.toHaveClass("open");
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
// POPUP
|
|
69
|
-
it("closes the calendar popup when the user presses ESCAPE", async () => {
|
|
70
|
-
await startInput.type("02/03/2019");
|
|
71
|
-
await component.setProperty("calendarDate", "2019-02-03");
|
|
72
|
-
await page.waitForChanges();
|
|
73
|
-
await page.keyboard.press("Tab");
|
|
74
|
-
await page.keyboard.press("Enter");
|
|
75
|
-
await page.waitForChanges();
|
|
76
|
-
await page.keyboard.press("Escape");
|
|
77
|
-
await page.waitForChanges();
|
|
78
|
-
expect(popup).not.toHaveClass("open");
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
it("shows the next month on PAGE DOWN and shows the previous month on PAGE UP", async () => {
|
|
82
|
-
await startInput.type("02/03/2019");
|
|
83
|
-
await component.setProperty("calendarDate", "2019-02-03");
|
|
84
|
-
await page.waitForChanges();
|
|
85
|
-
await page.keyboard.press("Tab");
|
|
86
|
-
await page.keyboard.press("Enter");
|
|
87
|
-
await page.waitForChanges();
|
|
88
|
-
await page.keyboard.press("PageDown");
|
|
89
|
-
await page.waitForChanges();
|
|
90
|
-
|
|
91
|
-
expect(popupTitleDay.textContent).toBe("March 2019");
|
|
92
|
-
|
|
93
|
-
let activeElId = await page.evaluate(() => document.activeElement!.shadowRoot!.activeElement!.id);
|
|
94
|
-
expect(activeElId).toEqual("cell-20190303");
|
|
95
|
-
|
|
96
|
-
await page.keyboard.press("PageUp");
|
|
97
|
-
await page.waitForChanges();
|
|
98
|
-
await page.keyboard.press("PageUp");
|
|
99
|
-
await page.waitForChanges();
|
|
100
|
-
await page.keyboard.press("PageUp");
|
|
101
|
-
await page.waitForChanges();
|
|
102
|
-
|
|
103
|
-
activeElId = await page.evaluate(() => document.activeElement!.shadowRoot!.activeElement!.id);
|
|
104
|
-
expect(activeElId).toEqual("cell-20181203");
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
it("handles HOME and END keys", async () => {
|
|
108
|
-
await startInput.type("02/15/2020");
|
|
109
|
-
await component.setProperty("calendarDate", "2020-02-15");
|
|
110
|
-
await page.waitForChanges();
|
|
111
|
-
await page.keyboard.press("Tab");
|
|
112
|
-
await page.keyboard.press("Enter");
|
|
113
|
-
await page.waitForChanges();
|
|
114
|
-
await page.keyboard.press("Home");
|
|
115
|
-
await page.waitForChanges();
|
|
116
|
-
const firstDayOfMonth = await page.evaluate(() => document.activeElement!.shadowRoot!.activeElement!.id);
|
|
117
|
-
expect(firstDayOfMonth).toEqual("cell-20200201");
|
|
118
|
-
|
|
119
|
-
await page.keyboard.press("End");
|
|
120
|
-
await page.waitForChanges();
|
|
121
|
-
const lastDayOfMonth = await page.evaluate(() => document.activeElement!.shadowRoot!.activeElement!.id);
|
|
122
|
-
expect(lastDayOfMonth).toEqual("cell-20200229"); // 2020 is a leap year
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
it("navigates the calendar with keyboard (day view)", async () => {
|
|
126
|
-
// left/right: -1 / +1 in the row
|
|
127
|
-
// up/down
|
|
128
|
-
|
|
129
|
-
await startInput.type("08/15/2024");
|
|
130
|
-
await component.setProperty("calendarDate", "2024-08-15");
|
|
131
|
-
await page.keyboard.press("Tab"); // on the toggle popup btn
|
|
132
|
-
await page.waitForChanges();
|
|
133
|
-
await page.keyboard.press("Enter"); // open popup
|
|
134
|
-
await page.waitForChanges();
|
|
135
|
-
|
|
136
|
-
await page.keyboard.press("ArrowLeft");
|
|
137
|
-
await page.waitForChanges();
|
|
138
|
-
let focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
139
|
-
await page.waitForChanges();
|
|
140
|
-
expect(focusedCell).toEqualAttribute("id", "cell-20240814");
|
|
141
|
-
|
|
142
|
-
await page.keyboard.press("ArrowUp");
|
|
143
|
-
await page.waitForChanges();
|
|
144
|
-
focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
145
|
-
expect(focusedCell).toEqualAttribute("id", "cell-20240807");
|
|
146
|
-
|
|
147
|
-
await page.keyboard.press("ArrowRight");
|
|
148
|
-
await page.waitForChanges();
|
|
149
|
-
focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
150
|
-
expect(focusedCell).toEqualAttribute("id", "cell-20240808");
|
|
151
|
-
|
|
152
|
-
await page.keyboard.press("ArrowDown");
|
|
153
|
-
await page.waitForChanges();
|
|
154
|
-
focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
155
|
-
expect(focusedCell).toEqualAttribute("id", "cell-20240815");
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
it("navigates the calendar with keyboard (month view)", async () => {
|
|
159
|
-
await startInput.type("08/15/2024");
|
|
160
|
-
await component.setProperty("calendarDate", "2024-08-15");
|
|
161
|
-
await page.keyboard.press("Tab"); // on the toggle popup btn
|
|
162
|
-
await page.waitForChanges();
|
|
163
|
-
await page.keyboard.press("Enter"); // open popup
|
|
164
|
-
await page.keyboard.down("Shift");
|
|
165
|
-
await page.waitForChanges();
|
|
166
|
-
await page.keyboard.press("Tab"); // next btn
|
|
167
|
-
await page.waitForChanges();
|
|
168
|
-
await page.keyboard.press("Tab"); // popup-title (month + year)
|
|
169
|
-
await page.waitForChanges();
|
|
170
|
-
await page.keyboard.press("Enter");
|
|
171
|
-
await page.waitForChanges();
|
|
172
|
-
await page.keyboard.up("Shift");
|
|
173
|
-
await page.waitForChanges();
|
|
174
|
-
|
|
175
|
-
await page.keyboard.press("ArrowLeft");
|
|
176
|
-
await page.waitForChanges();
|
|
177
|
-
let focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
178
|
-
await page.waitForChanges();
|
|
179
|
-
expect(focusedCell).toEqualAttribute("id", "month-6"); // month is july (7), 0-indexed
|
|
180
|
-
|
|
181
|
-
await page.keyboard.press("ArrowUp");
|
|
182
|
-
await page.waitForChanges();
|
|
183
|
-
focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
184
|
-
expect(focusedCell).toEqualAttribute("id", "month-3");
|
|
185
|
-
|
|
186
|
-
await page.keyboard.press("ArrowRight");
|
|
187
|
-
await page.waitForChanges();
|
|
188
|
-
focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
189
|
-
expect(focusedCell).toEqualAttribute("id", "month-4");
|
|
190
|
-
|
|
191
|
-
await page.keyboard.press("ArrowDown");
|
|
192
|
-
await page.waitForChanges();
|
|
193
|
-
focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
194
|
-
expect(focusedCell).toEqualAttribute("id", "month-7");
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
// it("goes to the year view when the month name is clicked", async () => {
|
|
198
|
-
// // (i.e. allows selection of a month)
|
|
199
|
-
// });
|
|
200
|
-
it("goes to the previous/next month when the arrow button is triggered in day view", async () => {
|
|
201
|
-
await startInput.type("11/29/1999");
|
|
202
|
-
await component.setProperty("calendarDate", "1999-11-29");
|
|
203
|
-
await page.keyboard.press("Tab"); // on the toggle popup btn
|
|
204
|
-
await page.waitForChanges();
|
|
205
|
-
await page.keyboard.press("Enter"); // open popup
|
|
206
|
-
await page.waitForChanges();
|
|
207
|
-
await page.keyboard.down("Shift");
|
|
208
|
-
await page.waitForChanges();
|
|
209
|
-
await page.keyboard.press("Tab"); // next btn
|
|
210
|
-
await page.waitForChanges();
|
|
211
|
-
await page.keyboard.press("Tab"); // popup-title (month + year)
|
|
212
|
-
await page.waitForChanges();
|
|
213
|
-
await page.keyboard.press("Tab"); // prev btn
|
|
214
|
-
await page.waitForChanges();
|
|
215
|
-
await page.keyboard.up("Shift");
|
|
216
|
-
await page.waitForChanges();
|
|
217
|
-
await page.keyboard.press("Enter"); // press prev btn
|
|
218
|
-
await page.waitForChanges();
|
|
219
|
-
|
|
220
|
-
expect(popup).toHaveClasses(["open", "day-view"]);
|
|
221
|
-
expect(popupTitleDay.textContent).toBe("October 1999");
|
|
222
|
-
|
|
223
|
-
await page.keyboard.press("Tab"); // popup title btn
|
|
224
|
-
await page.keyboard.press("Tab"); // next btn
|
|
225
|
-
await page.keyboard.press("Enter"); // press next btn
|
|
226
|
-
await page.waitForChanges();
|
|
227
|
-
await page.keyboard.press("Enter"); // press next btn
|
|
228
|
-
await page.waitForChanges();
|
|
229
|
-
expect(popupTitleDay.textContent).toBe("December 1999");
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
it("goes to the previous/next year when the arrow button is clicked in month view", async () => {
|
|
233
|
-
await startInput.type("11/29/1999");
|
|
234
|
-
await component.setProperty("calendarDate", "1999-11-29");
|
|
235
|
-
await page.waitForChanges();
|
|
236
|
-
await page.keyboard.press("Tab"); // on the toggle popup btn
|
|
237
|
-
await page.waitForChanges();
|
|
238
|
-
await page.keyboard.press("Enter"); // open popup
|
|
239
|
-
await page.waitForChanges();
|
|
240
|
-
await page.keyboard.down("Shift");
|
|
241
|
-
await page.keyboard.press("Tab"); // next btn
|
|
242
|
-
await page.waitForChanges();
|
|
243
|
-
await page.keyboard.press("Tab"); // month view btn
|
|
244
|
-
await page.waitForChanges();
|
|
245
|
-
await page.keyboard.up("Shift");
|
|
246
|
-
await page.waitForChanges();
|
|
247
|
-
await page.keyboard.press("Enter"); // press month view btn
|
|
248
|
-
await page.waitForChanges();
|
|
249
|
-
|
|
250
|
-
expect(popup).toHaveClasses(["open", "month-view"]);
|
|
251
|
-
const title = await popup.find("#popup-title-year");
|
|
252
|
-
expect(title.textContent).toBe("1999");
|
|
253
|
-
|
|
254
|
-
await page.keyboard.down("Shift");
|
|
255
|
-
await page.keyboard.press("Tab"); // next btn
|
|
256
|
-
await page.keyboard.up("Shift");
|
|
257
|
-
await page.keyboard.press("Enter"); // press next btn
|
|
258
|
-
await page.waitForChanges();
|
|
259
|
-
expect(title.textContent).toBe("2000");
|
|
260
|
-
|
|
261
|
-
await page.keyboard.down("Shift");
|
|
262
|
-
await page.keyboard.press("Tab"); // year btn
|
|
263
|
-
await page.keyboard.down("Shift");
|
|
264
|
-
await page.keyboard.press("Tab"); // prev btn
|
|
265
|
-
await page.keyboard.up("Shift");
|
|
266
|
-
await page.keyboard.press("Enter"); // press prev btn
|
|
267
|
-
await page.waitForChanges();
|
|
268
|
-
expect(title.textContent).toBe("1999");
|
|
269
|
-
|
|
270
|
-
await page.keyboard.press("Enter"); // press prev btn
|
|
271
|
-
await page.waitForChanges();
|
|
272
|
-
|
|
273
|
-
await page.keyboard.press("Enter"); // press prev btn
|
|
274
|
-
await page.waitForChanges();
|
|
275
|
-
expect(title.textContent).toBe("1997");
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
it("has the aria attributes related to the popup", async () => {
|
|
279
|
-
// NB "If the element with the aria-expanded attribute controls the expansion of another grouping container
|
|
280
|
-
// that is not 'owned by' the element, the author SHOULD reference the container by using the aria-controls attribute."
|
|
281
|
-
// src: https://www.w3.org/TR/wai-aria-1.1/#aria-expanded
|
|
282
|
-
|
|
283
|
-
expect(btn).toHaveAttribute("aria-expanded");
|
|
284
|
-
|
|
285
|
-
// Not sure is aria-haspopup is necessary. If it is present the popup should have a role
|
|
286
|
-
// if that role is grid (the only role that seems to correspond) then the cells must have
|
|
287
|
-
// a role of gridcell
|
|
288
|
-
// https://www.w3.org/TR/wai-aria/#aria-haspopup
|
|
289
|
-
// expect(btn).toHaveAttribute("aria-haspopup");
|
|
290
|
-
|
|
291
|
-
//Removed aria-controls since the popup comes immediately after the aria-expanded controller:
|
|
292
|
-
//https://www.heydonworks.com/article/aria-controls-is-poop
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
it("toggles aria-expanded attribute", async () => {
|
|
296
|
-
expect(btn).toEqualAttribute("aria-expanded", "false");
|
|
297
|
-
await page.keyboard.press("Tab");
|
|
298
|
-
await page.keyboard.press("Tab");
|
|
299
|
-
await page.keyboard.press("Enter");
|
|
300
|
-
await page.waitForChanges();
|
|
301
|
-
expect(btn).toEqualAttribute("aria-expanded", "true");
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
it("properly fills the-label on table cells", async () => {
|
|
305
|
-
// screen reader should read "Thursday, May 10 2018" on focus
|
|
306
|
-
// screen reader should read "Thursday, May 10 2018, selected" on select
|
|
307
|
-
await startInput.type("05/10/2018");
|
|
308
|
-
await component.setProperty("calendarDate", "2018-05-10");
|
|
309
|
-
await page.waitForChanges();
|
|
310
|
-
await page.keyboard.press("Tab");
|
|
311
|
-
await page.waitForChanges();
|
|
312
|
-
await page.keyboard.press("Enter");
|
|
313
|
-
await page.waitForChanges();
|
|
314
|
-
const focusedCell = await popup.find("[role='gridcell'][tabindex='0']");
|
|
315
|
-
await page.waitForChanges();
|
|
316
|
-
// day of the week is read by sr bcse it's the table column
|
|
317
|
-
expect(focusedCell).toEqualAttribute("aria-label", "Thursday, May 10, 2018");
|
|
318
|
-
|
|
319
|
-
// screen reader should read "Thursday, May 10 2018, selected" on select
|
|
320
|
-
await page.keyboard.press("Enter");
|
|
321
|
-
await page.waitForChanges();
|
|
322
|
-
const selCell = await popup.find("[aria-selected='true']");
|
|
323
|
-
// day of the week is read by sr bcse it's the table column
|
|
324
|
-
expect(selCell).toEqualAttribute("aria-label", "Thursday, May 10, 2018");
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
it("aligns dates properly", async () => {
|
|
328
|
-
// -> check that both 01/01/1999 and 12/31/2100 are in the Friday column
|
|
329
|
-
// couldn't figure this one out...
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
it("emits event on input blur", async () => {
|
|
333
|
-
page = await newE2EPage();
|
|
334
|
-
await page.setContent(
|
|
335
|
-
`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
|
|
336
|
-
<wm-date-range id="dr" label="label"></wm-date-range>
|
|
337
|
-
<div id="indicator">no event heard</div>
|
|
338
|
-
</main></body></html>`
|
|
339
|
-
);
|
|
340
|
-
component = await page.find("wm-date-range");
|
|
341
|
-
startInput = await page.find("wm-date-range >>> input");
|
|
342
|
-
await page.waitForChanges();
|
|
343
|
-
|
|
344
|
-
await page.evaluate(async () => {
|
|
345
|
-
const indicator = document.querySelector("#indicator");
|
|
346
|
-
await document.addEventListener("wmDate-rangeInputBlurred", () => (indicator!.textContent = "event heard"));
|
|
347
|
-
});
|
|
348
|
-
await page.waitForChanges;
|
|
349
|
-
|
|
350
|
-
const indicator = await page.find("#indicator");
|
|
351
|
-
expect(indicator.textContent).toBe("no event heard");
|
|
352
|
-
|
|
353
|
-
await startInput.type("05/10/2018");
|
|
354
|
-
await page.keyboard.press("Tab");
|
|
355
|
-
await page.waitForChanges();
|
|
356
|
-
|
|
357
|
-
expect(indicator.textContent).toBe("event heard");
|
|
358
|
-
});
|
|
359
|
-
|
|
360
|
-
it("emits event on change", async () => {
|
|
361
|
-
page = await newE2EPage();
|
|
362
|
-
await page.setContent(
|
|
363
|
-
`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
|
|
364
|
-
<wm-date-range id="dr" label="label"></wm-date-range>
|
|
365
|
-
<div id="indicator">events heard: 0</div>
|
|
366
|
-
</main></body></html>`
|
|
367
|
-
);
|
|
368
|
-
component = await page.find("wm-date-range");
|
|
369
|
-
startInput = await page.find("wm-date-range >>> input");
|
|
370
|
-
await page.waitForChanges();
|
|
371
|
-
|
|
372
|
-
await page.evaluate(async () => {
|
|
373
|
-
const indicator = document.querySelector("#indicator")!;
|
|
374
|
-
await document
|
|
375
|
-
.querySelector("wm-date-range")!
|
|
376
|
-
.addEventListener(
|
|
377
|
-
"change",
|
|
378
|
-
() =>
|
|
379
|
-
(indicator.textContent =
|
|
380
|
-
indicator.textContent!.slice(0, -1) + (parseInt(indicator.textContent!.slice(-1)) + 1))
|
|
381
|
-
);
|
|
382
|
-
});
|
|
383
|
-
await page.waitForChanges;
|
|
384
|
-
|
|
385
|
-
const indicator = await page.find("#indicator");
|
|
386
|
-
expect(indicator.textContent).toBe("events heard: 0");
|
|
387
|
-
|
|
388
|
-
// user types date
|
|
389
|
-
await startInput.type("05/10/2018");
|
|
390
|
-
await page.keyboard.press("Tab");
|
|
391
|
-
await page.waitForChanges();
|
|
392
|
-
|
|
393
|
-
expect(indicator.textContent).toBe("events heard: 1");
|
|
394
|
-
|
|
395
|
-
// user selects date from calendar
|
|
396
|
-
await page.keyboard.press("Enter");
|
|
397
|
-
await page.waitForChanges();
|
|
398
|
-
await page.keyboard.press("ArrowRight");
|
|
399
|
-
await page.keyboard.press("Enter");
|
|
400
|
-
await page.waitForChanges();
|
|
401
|
-
|
|
402
|
-
expect(indicator.textContent).toBe("events heard: 2");
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
it("emits event with date on cell selection", async () => {
|
|
406
|
-
page = await newE2EPage();
|
|
407
|
-
await page.setContent(
|
|
408
|
-
`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
|
|
409
|
-
<wm-date-range id="dr" value="12/30/1999" label="label"></wm-date-range>
|
|
410
|
-
<div id="indicator"></div>
|
|
411
|
-
</main></body></html>`
|
|
412
|
-
);
|
|
413
|
-
component = await page.find("wm-date-range");
|
|
414
|
-
startInput = await page.find("wm-date-range >>> input");
|
|
415
|
-
await page.waitForChanges();
|
|
416
|
-
|
|
417
|
-
await page.evaluate(async () => {
|
|
418
|
-
const indicator = document.querySelector("#indicator")!;
|
|
419
|
-
await document.querySelector("wm-date-range")!.addEventListener(
|
|
420
|
-
"wmDate-rangeDateSelected",
|
|
421
|
-
(ev) =>
|
|
422
|
-
(indicator.textContent =
|
|
423
|
-
//@ts-ignore
|
|
424
|
-
`date received: ${ev.detail.date}`)
|
|
425
|
-
);
|
|
426
|
-
});
|
|
427
|
-
await page.waitForChanges;
|
|
428
|
-
|
|
429
|
-
const indicator = await page.find("#indicator");
|
|
430
|
-
|
|
431
|
-
// user types date
|
|
432
|
-
await page.keyboard.press("Tab");
|
|
433
|
-
await page.keyboard.press("Tab");
|
|
434
|
-
await page.waitForChanges();
|
|
435
|
-
await page.keyboard.press("Enter");
|
|
436
|
-
await page.waitForChanges();
|
|
437
|
-
await page.keyboard.press("Enter");
|
|
438
|
-
await page.waitForChanges();
|
|
439
|
-
|
|
440
|
-
expect(indicator.textContent).toBe("date received: 1999-12-30");
|
|
441
|
-
});
|
|
442
|
-
*/
|
|
443
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
-
//import * as globalFunctions from "../../global/functions";
|
|
3
|
-
import { DateRange } from "./wm-date-range";
|
|
4
|
-
describe("wm-date-range", () => {
|
|
5
|
-
it("builds", async () => {
|
|
6
|
-
const comp = await newSpecPage({
|
|
7
|
-
components: [DateRange],
|
|
8
|
-
html: '<wm-date-range label="mock label"></wm-date-range>',
|
|
9
|
-
});
|
|
10
|
-
expect(comp.root).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
it("sets inputs to required", async () => {
|
|
13
|
-
const page = await newSpecPage({
|
|
14
|
-
components: [DateRange],
|
|
15
|
-
html: `<wm-date-range label='date range' required-field='true'></wm-date-range>`,
|
|
16
|
-
});
|
|
17
|
-
const inputs = await page.root.shadowRoot.querySelectorAll("input");
|
|
18
|
-
inputs.forEach((input) => {
|
|
19
|
-
expect(input).toEqualAttribute("aria-required", "true");
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
});
|