@watermarkinsights/ripple 5.3.0-1 → 5.3.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{esm/global-01680477.js → cjs/app-globals-4191e8d6.js} +10 -1
- package/dist/cjs/{chartFunctions-246529c5.js → chartFunctions-a8999ce1.js} +3 -3
- package/dist/cjs/{functions-be4156cf.js → functions-05e7ad5a.js} +106 -7
- package/dist/cjs/index-788526f5.js +1851 -0
- package/dist/cjs/{intl-a13884e8.js → intl-2b550151.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/priv-calendar.cjs.entry.js +67 -50
- 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 +13 -12
- 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 +40 -15
- package/dist/cjs/wm-datepicker.cjs.entry.js +18 -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 +7 -6
- 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 +53 -50
- 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/datepicker.css +47 -5
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +90 -55
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +62 -46
- package/dist/collection/components/datepickers/wm-date-range.js +63 -28
- package/dist/collection/components/datepickers/wm-datepicker.js +30 -18
- 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.css +0 -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.css +37 -43
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +48 -46
- 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/collection/dev/modal.js +15 -45
- package/dist/collection/dev/snackbar.js +10 -9
- package/dist/collection/global/functions.js +1 -1
- package/dist/{cjs/global-b5387be9.js → esm/app-globals-bc617542.js} +7 -2
- package/dist/esm/{chartFunctions-e2554a36.js → chartFunctions-f4bc4821.js} +3 -3
- package/dist/esm/{functions-f65dbb96.js → functions-25781571.js} +105 -8
- package/dist/esm/index-130e07bb.js +1820 -0
- package/dist/esm/{intl-f7f77de7.js → intl-df3d34d1.js} +1 -1
- package/dist/esm/loader.js +6 -5
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/priv-calendar.entry.js +67 -50
- 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 +14 -13
- 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 +40 -15
- package/dist/esm/wm-datepicker.entry.js +18 -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 +7 -6
- 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 +53 -50
- 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-bc617542.js +1 -0
- package/dist/esm-es5/{chartFunctions-e2554a36.js → chartFunctions-f4bc4821.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-f7f77de7.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-4e616347.entry.js → p-041e579b.entry.js} +1 -1
- package/dist/ripple/{p-a99b05de.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/p-0abc9300.entry.js +1 -0
- package/dist/ripple/p-0af94825.entry.js +1 -0
- package/dist/ripple/p-0ff41567.system.entry.js +1 -0
- package/dist/ripple/{p-3a070f35.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-15f8ea28.system.entry.js +1 -0
- package/dist/ripple/p-1c4d2203.system.entry.js +1 -0
- package/dist/ripple/p-1f09134c.entry.js +1 -0
- package/dist/ripple/p-298c2675.entry.js +1 -0
- package/dist/ripple/{p-22e6104e.entry.js → p-2e3728f1.entry.js} +1 -1
- package/dist/ripple/{p-3db9e0d8.system.entry.js → p-2f1d2fe3.system.entry.js} +1 -1
- package/dist/ripple/p-31781d88.system.entry.js +1 -0
- package/dist/ripple/p-31d7ecf9.system.entry.js +1 -0
- package/dist/ripple/p-341ebafa.entry.js +1 -0
- package/dist/ripple/p-35f209d9.system.entry.js +1 -0
- package/dist/ripple/p-376efca9.entry.js +1 -0
- package/dist/ripple/p-3b5f4364.system.entry.js +1 -0
- package/dist/ripple/p-418ed08c.system.entry.js +1 -0
- package/dist/ripple/p-439d0c1f.system.js +1 -0
- package/dist/ripple/p-4670ccb4.system.js +1 -0
- package/dist/ripple/p-488e1690.entry.js +1 -0
- package/dist/ripple/p-4978eebe.entry.js +1 -0
- package/dist/ripple/p-4baaf026.entry.js +1 -0
- package/dist/ripple/p-4c24711f.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-8f38dc86.entry.js → p-672ae2cb.entry.js} +1 -1
- package/dist/ripple/{p-98120733.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-9d8c2a52.system.entry.js → p-6fe35d1e.system.entry.js} +1 -1
- package/dist/ripple/{p-19dec591.entry.js → p-75a79896.entry.js} +1 -1
- package/dist/ripple/p-799d06ad.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-7e56da2e.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
- package/dist/ripple/p-85cbeb7d.system.entry.js +1 -0
- package/dist/ripple/p-88cfd58d.js +1 -0
- package/dist/ripple/p-8d075bcf.system.entry.js +1 -0
- package/dist/ripple/{p-79af9baf.entry.js → p-8e72de50.entry.js} +1 -1
- package/dist/ripple/p-90c76565.entry.js +1 -0
- package/dist/ripple/{p-780d4673.system.entry.js → p-9176672f.system.entry.js} +1 -1
- package/dist/ripple/{p-5bbf7fdc.system.js → p-96bd1868.system.js} +1 -1
- package/dist/ripple/p-a62e7532.entry.js +1 -0
- package/dist/ripple/p-a78001e2.system.js +1 -0
- package/dist/ripple/p-a8661c35.system.entry.js +1 -0
- package/dist/ripple/{p-ae32eb8d.system.js → p-a9d89ac8.system.js} +1 -1
- package/dist/ripple/{p-8081f931.system.entry.js → p-aab56a37.system.entry.js} +1 -1
- package/dist/ripple/{p-7a9ffbcb.system.entry.js → p-ac40417b.system.entry.js} +1 -1
- package/dist/ripple/{p-bd27ded2.system.entry.js → p-b0c566b5.system.entry.js} +1 -1
- package/dist/ripple/p-b7307be6.system.entry.js +1 -0
- package/dist/ripple/{p-0b77b2a1.entry.js → p-bee8ab6e.entry.js} +1 -1
- package/dist/ripple/p-c2181de0.entry.js +1 -0
- package/dist/ripple/{p-25446670.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-48a6acfa.system.entry.js → p-d93c51dd.system.entry.js} +1 -1
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-db10990a.entry.js +1 -0
- package/dist/ripple/p-e2fe86a7.system.entry.js +1 -0
- package/dist/ripple/p-e4d8a800.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-f17fd62b.entry.js +1 -0
- package/dist/ripple/{p-5b2c1bd1.js → p-f54e9ed0.js} +1 -1
- package/dist/ripple/p-f741e7c4.entry.js +1 -0
- package/dist/ripple/p-f8250ca9.js +1 -0
- package/dist/ripple/p-f8613ec2.js +1 -0
- package/dist/ripple/p-fabe4ca4.entry.js +1 -0
- package/dist/ripple/p-fbaae34d.system.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +77 -0
- package/dist/types/components/datepickers/wm-date-range.d.ts +73 -0
- package/dist/types/components/datepickers/wm-datepicker.d.ts +2 -2
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +5 -4
- package/dist/types/components.d.ts +4 -4
- package/dist/types/global/functions.d.ts +6 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/package.json +1 -1
- package/dist/cjs/index-f8ef86de.js +0 -2582
- 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-f164fbca.js +0 -2552
- package/dist/esm-es5/functions-f65dbb96.js +0 -1
- package/dist/esm-es5/global-01680477.js +0 -1
- package/dist/esm-es5/index-f164fbca.js +0 -1
- package/dist/ripple/p-04bf6c89.entry.js +0 -1
- package/dist/ripple/p-0fe97e85.system.js +0 -2
- package/dist/ripple/p-109684b1.entry.js +0 -1
- package/dist/ripple/p-11383396.system.entry.js +0 -1
- package/dist/ripple/p-1cb6b37e.entry.js +0 -1
- package/dist/ripple/p-1cb98f64.entry.js +0 -1
- package/dist/ripple/p-2197287c.entry.js +0 -1
- package/dist/ripple/p-24d88d8d.system.entry.js +0 -1
- package/dist/ripple/p-2bac4b4e.system.entry.js +0 -1
- package/dist/ripple/p-30a9ba6e.entry.js +0 -1
- package/dist/ripple/p-32cf6907.system.entry.js +0 -1
- package/dist/ripple/p-379fe53e.entry.js +0 -1
- package/dist/ripple/p-41e8a079.entry.js +0 -1
- package/dist/ripple/p-4272aa37.system.js +0 -1
- package/dist/ripple/p-45126063.system.entry.js +0 -1
- package/dist/ripple/p-4de51706.js +0 -2
- package/dist/ripple/p-4ed2e910.system.entry.js +0 -1
- package/dist/ripple/p-577ea283.system.entry.js +0 -1
- package/dist/ripple/p-5a04c222.entry.js +0 -1
- package/dist/ripple/p-5dbad2ff.entry.js +0 -1
- package/dist/ripple/p-625aeeec.system.entry.js +0 -1
- package/dist/ripple/p-635f40b1.entry.js +0 -1
- package/dist/ripple/p-63fabfed.entry.js +0 -1
- package/dist/ripple/p-7144d185.system.entry.js +0 -1
- package/dist/ripple/p-720b6ab0.entry.js +0 -1
- package/dist/ripple/p-7573a2fa.entry.js +0 -1
- package/dist/ripple/p-76d2dada.entry.js +0 -1
- package/dist/ripple/p-7f4b4071.system.entry.js +0 -1
- package/dist/ripple/p-84926b89.system.entry.js +0 -1
- package/dist/ripple/p-88406560.system.entry.js +0 -1
- package/dist/ripple/p-8fafbba1.js +0 -1
- package/dist/ripple/p-92c1ff36.system.entry.js +0 -1
- package/dist/ripple/p-9c6d6b26.system.entry.js +0 -1
- package/dist/ripple/p-ae8ad491.entry.js +0 -1
- package/dist/ripple/p-b0579a2a.system.entry.js +0 -1
- package/dist/ripple/p-b0f14557.system.entry.js +0 -1
- package/dist/ripple/p-b9ba6546.system.js +0 -1
- package/dist/ripple/p-ba751ca4.js +0 -1
- package/dist/ripple/p-bbdfb1ec.system.js +0 -1
- package/dist/ripple/p-c38f2a00.system.entry.js +0 -1
- package/dist/ripple/p-c51293e2.entry.js +0 -1
- package/dist/ripple/p-c717d895.entry.js +0 -1
- package/dist/ripple/p-c8873e0c.system.entry.js +0 -1
- package/dist/ripple/p-ca9d9447.system.entry.js +0 -1
- package/dist/ripple/p-cda6c77e.entry.js +0 -1
- package/dist/ripple/p-ce5455a3.system.entry.js +0 -1
- package/dist/ripple/p-d265a41e.entry.js +0 -1
- package/dist/ripple/p-dcfdbd30.entry.js +0 -1
- package/dist/ripple/p-ef3fe609.system.entry.js +0 -1
- package/dist/ripple/p-f6f29a56.entry.js +0 -1
- package/dist/ripple/p-f79a6e32.js +0 -1
- package/dist/ripple/p-f93858ad.system.entry.js +0 -1
- package/dist/ripple/p-fc7e5296.entry.js +0 -1
- package/dist/ripple/p-ff80aadd.system.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { generateId, hideTooltip, showTooltip } from "../../global/functions";
|
|
3
3
|
import { globalMessages } from "../../global/intl";
|
|
4
4
|
export class Snackbar {
|
|
@@ -11,28 +11,16 @@ export class Snackbar {
|
|
|
11
11
|
this.isTabbing = false;
|
|
12
12
|
this.announcement = "";
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const updatedNotification = this.parsedNotifications.filter((n) => n.id == updatedID)[0];
|
|
25
|
-
const notifEl = this.el.shadowRoot.querySelector(`#snack-${updatedID}`);
|
|
26
|
-
if (notifEl) {
|
|
27
|
-
notifEl.classList.remove("grow");
|
|
28
|
-
window.requestAnimationFrame(() => {
|
|
29
|
-
notifEl.classList.add("grow");
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
this.stopTimer(updatedNotification);
|
|
33
|
-
const newTimer = window.setTimeout(() => this.snackExpired(updatedNotification.id), 6000);
|
|
34
|
-
this.timers = Object.assign({ [updatedNotification.id]: newTimer }, this.timers);
|
|
35
|
-
});
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
const snackObserver = new MutationObserver((snackMutations) => snackMutations.forEach((mutationRecord) => this.handleSnackMutation(mutationRecord)));
|
|
16
|
+
snackObserver.observe(this.snackAreaEl, { childList: true });
|
|
17
|
+
}
|
|
18
|
+
handleSnackMutation(mutationRecord) {
|
|
19
|
+
const addedSnacks = Array.from(mutationRecord.addedNodes);
|
|
20
|
+
if (addedSnacks.length > 0) {
|
|
21
|
+
addedSnacks.forEach((s) => s.querySelector(".wm-snackbar").classList.add("grow"));
|
|
22
|
+
addedSnacks[0].scrollIntoView();
|
|
23
|
+
}
|
|
36
24
|
}
|
|
37
25
|
updateSnacks(newValue) {
|
|
38
26
|
const prevParsedNotifications = [...this.parsedNotifications];
|
|
@@ -54,23 +42,38 @@ export class Snackbar {
|
|
|
54
42
|
});
|
|
55
43
|
}
|
|
56
44
|
}
|
|
57
|
-
this.
|
|
45
|
+
this.setMinWidths();
|
|
58
46
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
refreshUpdatedNotifications(prevNotifications) {
|
|
48
|
+
let updatedNotifications = [];
|
|
49
|
+
prevNotifications.forEach((prevNotification) => {
|
|
50
|
+
this.parsedNotifications.forEach((newNotification) => {
|
|
51
|
+
if (newNotification.id == prevNotification.id && newNotification.message != prevNotification.message) {
|
|
52
|
+
updatedNotifications.push(newNotification);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
updatedNotifications.forEach((updatedNotification) => {
|
|
57
|
+
const notifEl = this.el.shadowRoot.querySelector(`#snack-${updatedNotification.id}`);
|
|
58
|
+
if (notifEl) {
|
|
59
|
+
notifEl.classList.remove("grow");
|
|
60
|
+
window.requestAnimationFrame(() => notifEl.classList.add("grow"));
|
|
61
|
+
}
|
|
62
|
+
this.stopTimer(updatedNotification);
|
|
63
|
+
const newTimer = window.setTimeout(() => this.snackExpired(updatedNotification.id), 6000);
|
|
64
|
+
this.timers = Object.assign({ [updatedNotification.id]: newTimer }, this.timers);
|
|
65
|
+
this.announce(`${updatedNotification.message} ${this.isTabbing ? "" : updatedNotification.link}`);
|
|
66
|
+
});
|
|
64
67
|
}
|
|
65
68
|
checkForTabbing(ev) {
|
|
66
69
|
if (ev.key === "Tab") {
|
|
67
|
-
this.
|
|
70
|
+
this.isTabbing = true;
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
// Workaround for screenreader's triggering click event on "enter"
|
|
71
74
|
// This is why we manually handle this.isTabbing instead of listening to wmUserIsTabbing
|
|
72
75
|
handleMouse() {
|
|
73
|
-
this.
|
|
76
|
+
this.isTabbing = false;
|
|
74
77
|
}
|
|
75
78
|
snackDismissed(notification) {
|
|
76
79
|
this.endSnack(notification);
|
|
@@ -82,9 +85,9 @@ export class Snackbar {
|
|
|
82
85
|
}
|
|
83
86
|
//Remove snack from notification list once timer runs out
|
|
84
87
|
snackExpired(expiredID) {
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
this.endSnack(
|
|
88
|
+
const expiredNotification = this.parsedNotifications.find((n) => n.id == expiredID);
|
|
89
|
+
if (expiredNotification) {
|
|
90
|
+
this.endSnack(expiredNotification);
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
93
|
endSnack(notification) {
|
|
@@ -114,13 +117,7 @@ export class Snackbar {
|
|
|
114
117
|
delete this.timers[notification.id];
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
|
-
|
|
118
|
-
if (this.liveRegionEl.textContent === message) {
|
|
119
|
-
message += "\u00A0";
|
|
120
|
-
}
|
|
121
|
-
this.announcement = message;
|
|
122
|
-
}
|
|
123
|
-
sizeMessage() {
|
|
120
|
+
setMinWidths() {
|
|
124
121
|
// wait for render to get updated scrollWidth
|
|
125
122
|
requestAnimationFrame(() => {
|
|
126
123
|
const msgEls = this.el.shadowRoot.querySelectorAll(".msg");
|
|
@@ -132,17 +129,22 @@ export class Snackbar {
|
|
|
132
129
|
});
|
|
133
130
|
});
|
|
134
131
|
}
|
|
132
|
+
announce(message) {
|
|
133
|
+
if (this.liveRegionEl.textContent === message) {
|
|
134
|
+
message += "\u00A0";
|
|
135
|
+
}
|
|
136
|
+
this.announcement = message;
|
|
137
|
+
}
|
|
135
138
|
renderSnackbars() {
|
|
136
|
-
return this.parsedNotifications.map((notification) => (h("div", { class: "wm-snack-wrapper" }, h("div", { id: `snack-${notification.id}`, class: "wm-snackbar active neutral
|
|
139
|
+
return [...this.parsedNotifications].reverse().map((notification) => (h("div", { class: "wm-snack-wrapper" }, h("div", { id: `snack-${notification.id}`, class: "wm-snackbar active neutral" }, h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) }), h("div", { class: "wm-snackbarmsg" }, h("div", { class: "msgtext" }, h("span", { class: "msg" }, notification.message), notification.link && (h("a", { id: `action-${notification.id}`, class: `link ${notification.newWindow ? "new-window" : ""}`, "aria-label": `Click to ${notification.link}...${notification.newWindow ? " " + globalMessages.newWindow : ""}`, tabindex: 0, onClick: () => {
|
|
137
140
|
this.snackLinkClicked(notification);
|
|
138
141
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link)))), h("button", { id: `close-button-${notification.id}`, "aria-label": "Close this notification", class: "closesnack", tabindex: notification.link ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() })), h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
|
|
139
142
|
}
|
|
140
143
|
render() {
|
|
141
|
-
return (h("div", { class: {
|
|
142
|
-
"
|
|
143
|
-
empty: this.parsedNotifications.length === 0,
|
|
144
|
+
return (h(Host, { key: '67f36569152cc7f7df8e17a48b72737cf06b2249' }, h("div", { key: '2646611246f9ab87624bb1ad2bad217c364d89e7', ref: (el) => (this.snackAreaEl = el), class: {
|
|
145
|
+
"list-wrapper": true,
|
|
144
146
|
"user-is-tabbing": this.isTabbing,
|
|
145
|
-
} }, h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)
|
|
147
|
+
} }, this.renderSnackbars()), h("div", { key: '26284c415d2be1b8e944d7c2830c8eada5030fe3', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
146
148
|
}
|
|
147
149
|
static get is() { return "wm-snackbar"; }
|
|
148
150
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class TabItem {
|
|
|
40
40
|
"background-size": `calc(100% - ${bkgSize}${units}) 3px`,
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
return (h(Host, { role: "presentation" }, h("li", { class: "tab-item", role: "presentation" }, h("a", { class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot",
|
|
43
|
+
return (h(Host, { key: '0d9c95f25f36cd8e37bdacdfc73c9032ab11f8b9', role: "presentation" }, h("li", { key: '6d83fae63842be52110fdcaf1797767c8defa24e', class: "tab-item", role: "presentation" }, h("a", { key: '399e8aa507afa3b70b925969c9fd4508345098fb', class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", { key: '3571988e318de8baa6a9d82c464d101f38d12a51' })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "wm-tab-item"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class TabList {
|
|
|
155
155
|
} }, t.textContent)));
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return h(Host, { class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
|
|
158
|
+
return h(Host, { key: 'c768cc9153a707b6093d82b387d33df4b67f9adf', class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "wm-tab-list"; }
|
|
161
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class TabPanel {
|
|
|
12
12
|
this.tabPanelLoaded.emit({ tabId: this.tabId });
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h(Host, { role: "tabpanel", class: { "tab-hidden": !this.active } });
|
|
15
|
+
return h(Host, { key: '83da2497d78709f8b891e4c3735508b992fc6a90', role: "tabpanel", class: { "tab-hidden": !this.active } });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "wm-tab-panel"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -858,12 +858,12 @@ export class TagInput {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
render() {
|
|
861
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { class: "upper-row" }, h("div", { class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
861
|
+
return (h("div", { key: '33abb5778cad372a77e0d92ec7db591a7cacb216', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '83814d7be8f23c6d6d73ac126f6545d6c19fbf50', class: "label-wrapper" }, h("label", { key: 'e404bc94e35dad4c3ca1247c4a59a4ca7d9c472c', class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { key: '07671bf51458668dfc54cbcea7ee557aac20c9dd', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '78e36202ba0e55d912532d36dc0c731fd68266ec', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '6be8fa1d4586a06c2d72a02e7e5eb186b2ee374a', class: "upper-row" }, h("div", { key: '4fce716703d1ce34be8d1837d14a55a96ee57ce1', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: 'ecb9d7b6a0c92fd5c575b86f71252d96299a50bb', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
862
862
|
this.focusedTagIndex = undefined;
|
|
863
863
|
this.handleBlur(ev);
|
|
864
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
|
|
864
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: 'fb154aee6848ebc5a0b4a89596d2470cdc6ae8cc', id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
|
|
865
865
|
this.handleBlur(ev);
|
|
866
|
-
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { id: "info", class: "info-text" }, this.info)), h("div", { id: "error" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
866
|
+
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: 'f17d34cc1dab1e7c37a20d79d65f259aef2db3c3', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: 'ea41b9923c0bd26b0554a76301d0aa488558edc1', id: "info", class: "info-text" }, this.info)), h("div", { key: '9dc002e1b3a97ead65eb8e4fd785dab62a9f4048', id: "error" }, this.errorMessage), h("div", { key: 'b4a72c8d1c58a19d11d6937cd6b26a496f647c30', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
867
867
|
}
|
|
868
868
|
static get is() { return "wm-tag-input"; }
|
|
869
869
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,7 +65,7 @@ export class Textarea {
|
|
|
65
65
|
this.announcement = message;
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: "inner-wrapper" }, h("div", { class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
68
|
+
return (h("div", { key: 'a5997b0d5dce20f77941690731ed6ba5cd1d9858', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'aad504a8a1d66943b608d7b3bd835bca3c14cad1', class: "label-wrapper" }, h("label", { key: '4e731d38bc61ff74c8fa8c02a4919c1086fc94d8', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: '4e57dca225b03c470452c4136e294a2ba2615cf9', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: 'f17ef4ee28a329a3655f4a29f736518465a7594d', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '695981592b51ff1b27d80018024fa9605dbce6a4', class: "inner-wrapper" }, h("div", { key: '0b0d2659db296f2f83902a7ea0c84b09496be4e3', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '7a7eb761ee1da371a506741fb2a8808c8ad37018', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '501a8e2e33bc0ce87b02d6c094f20767247fb080', id: "info", class: "info" }, this.info)), h("div", { key: '5d6a559dc433c567fdcf0a2b21fa4d69bfbd2d25', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'ee6a8851e53375394b185bf14a77f2c6cca79d2a', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "wm-textarea"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -275,13 +275,13 @@ export class Timepicker {
|
|
|
275
275
|
return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
|
|
276
276
|
}
|
|
277
277
|
render() {
|
|
278
|
-
return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*"))))), h("div",
|
|
278
|
+
return (h(Host, { key: '58694542ea396f6874a0889ac5fdd608477e01f4', onBlur: () => this.close(false) }, h("div", { key: '182422d05a01af98eb1fcf95817cec6ee95a81b9', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: 'ac2f32d2e2e35fb5014a5e8c44bdecc3e3963c0e', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '6cd54b3142c4ca0a88bf8e22a2074f67f72e1423', id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { key: '41f2f167ccbfbd81c7d37396f25c22a5db4a5baf', class: "required", "aria-hidden": "true" }, "*"))))), h("div", { key: '9c9f880595e1de671d24b327a47e17e03a056ab6' }, h("div", { key: '7a58504c80378f052e7da86692f53630c15b6837', class: "inner-wrapper" }, h("input", { key: 'df44714cfb58a6ef9e49d548b732f1daa70dddfa', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: '40e964286b360d9c86c54065c2acf6f761ad6a03', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
279
279
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
280
280
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
281
281
|
onMouseDown: (ev) => {
|
|
282
282
|
ev.preventDefault();
|
|
283
283
|
this.buttonEl.focus();
|
|
284
|
-
} }, h("span", { class: "clock" })), h("ul", { class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { id: "error", class: "error" }, this.errorMessage)), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
284
|
+
} }, h("span", { key: 'd6912b075f5ad8396b82b6d8f562e41698cfe62f', class: "clock" })), h("ul", { key: '458b1c42f853567c26a32f6538ed6c6ba629c38f', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '2c561ba815cf53ecb94e21864be52c72fc7b8c13', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '6f216c9a6539cf1800dfe944d762e31dc9c3422e', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
285
285
|
}
|
|
286
286
|
static get is() { return "wm-timepicker"; }
|
|
287
287
|
static get encapsulation() { return "shadow"; }
|
|
@@ -468,8 +468,9 @@ export class Timepicker {
|
|
|
468
468
|
"complexType": {
|
|
469
469
|
"signature": "(input: string) => Promise<boolean>",
|
|
470
470
|
"parameters": [{
|
|
471
|
-
"
|
|
472
|
-
"
|
|
471
|
+
"name": "input",
|
|
472
|
+
"type": "string",
|
|
473
|
+
"docs": ""
|
|
473
474
|
}],
|
|
474
475
|
"references": {
|
|
475
476
|
"Promise": {
|
|
@@ -488,11 +489,13 @@ export class Timepicker {
|
|
|
488
489
|
"complexType": {
|
|
489
490
|
"signature": "(format: \"12\" | \"24\", time: TimeFormat12 | TimeFormat24) => Promise<string>",
|
|
490
491
|
"parameters": [{
|
|
491
|
-
"
|
|
492
|
-
"
|
|
492
|
+
"name": "format",
|
|
493
|
+
"type": "\"12\" | \"24\"",
|
|
494
|
+
"docs": ""
|
|
493
495
|
}, {
|
|
494
|
-
"
|
|
495
|
-
"
|
|
496
|
+
"name": "time",
|
|
497
|
+
"type": "string",
|
|
498
|
+
"docs": ""
|
|
496
499
|
}],
|
|
497
500
|
"references": {
|
|
498
501
|
"Promise": {
|
|
@@ -97,9 +97,9 @@ export class Toggletip {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { class: `size-${this.targetSize}` }, h("button", { class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
|
|
100
|
+
return (h(Host, { key: '8f5da43befa9de791cb44afba532182f6df0a81d', class: `size-${this.targetSize}` }, h("button", { key: '81c79d18ff76953fbf9dce6192011085ccb296ba', class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
|
|
101
101
|
// In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
|
|
102
|
-
onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
102
|
+
onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { key: '3b183d1c1624cbadb6b774c55c0debcb99785c6d', ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { key: '45e77332889bdfc552906127f24452ee0c97fe27', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "wm-toggletip"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,9 +195,9 @@ export class Uploader {
|
|
|
195
195
|
return (h("div", { class: `wrapper ${this.errorMessage ? "invalid" : ""}` }, h("div", { id: "label", class: `label` }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))));
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h(Host,
|
|
198
|
+
return (h(Host, { key: '4f9a5f1221aa84bad9e734bfba6a87f89fcdfd84' }, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: '59f21688992efe6da96d837efee78d65db18f8d4', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
|
|
199
199
|
,
|
|
200
|
-
"aria-atomic": "true" }), h("div", { ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
200
|
+
"aria-atomic": "true" }), h("div", { key: '1e68b8375c3d41706c5b84af7485d75f99e35dd9', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
201
201
|
}
|
|
202
202
|
static get is() { return "wm-uploader"; }
|
|
203
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,18 +3,21 @@ function showModal(id) {
|
|
|
3
3
|
modal.open = true;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
event.detail = "dialog";
|
|
9
|
-
window.dispatchEvent(event);
|
|
10
|
-
const dialog = document.getElementById(id);
|
|
11
|
-
dialog.open = true;
|
|
6
|
+
function hideModal(ev) {
|
|
7
|
+
ev.target.open = false;
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const
|
|
10
|
+
// hook up each modal and its button
|
|
11
|
+
const ids = ["modal", "inner-modal", "inner-dialog", "nested-modal", "dialog"];
|
|
12
|
+
ids.forEach((id) => {
|
|
13
|
+
const modalBtn = document.getElementById(`${id}-btn`);
|
|
14
|
+
modalBtn && modalBtn.addEventListener("click", () => showModal(id));
|
|
15
|
+
|
|
16
|
+
const modal = document.getElementById(id);
|
|
17
|
+
modal && modal.addEventListener("wmModalPrimaryTriggered", actionTriggered);
|
|
18
|
+
modal && modal.addEventListener("wmModalSecondaryTriggered", hideModal);
|
|
19
|
+
modal && modal.addEventListener("wmModalCloseTriggered", hideModal);
|
|
20
|
+
});
|
|
18
21
|
|
|
19
22
|
const modalInput = document.getElementById("modal-input");
|
|
20
23
|
const count = document.getElementById("count");
|
|
@@ -34,42 +37,9 @@ count &&
|
|
|
34
37
|
modalFooter.setAttribute("info-text", ev.target.value + " things ready to launch");
|
|
35
38
|
});
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
nestingModals.forEach((modal) => {
|
|
40
|
-
modal && modal.addEventListener("wmModalPrimaryTriggered", actionTriggered);
|
|
41
|
-
modal && modal.addEventListener("wmModalSecondaryTriggered", modalDismissed);
|
|
42
|
-
modal && modal.addEventListener("wmModalCloseTriggered", modalDismissed);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
function actionTriggered(element) {
|
|
40
|
+
function actionTriggered(ev) {
|
|
46
41
|
modalInput.value = "";
|
|
47
42
|
console.log("Changes saved");
|
|
48
43
|
modalFooter.actionDisabled = true;
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function modalDismissed(element) {
|
|
53
|
-
this.open = false;
|
|
44
|
+
ev.target.open = false;
|
|
54
45
|
}
|
|
55
|
-
|
|
56
|
-
const dialog = document.getElementById("dialog");
|
|
57
|
-
|
|
58
|
-
dialog &&
|
|
59
|
-
dialog.addEventListener("wmModalCloseTriggered", function () {
|
|
60
|
-
dialog.open = false;
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
dialog &&
|
|
64
|
-
dialog.addEventListener("wmModalSecondaryTriggered", function () {
|
|
65
|
-
dialog.open = false;
|
|
66
|
-
alert("Secondary clicked!");
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
dialog &&
|
|
70
|
-
dialog.addEventListener("wmModalPrimaryTriggered", function () {
|
|
71
|
-
console.log("Deleted");
|
|
72
|
-
dialog.open = false;
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
let notifications = [];
|
|
2
|
+
|
|
1
3
|
function generateSnackbar(isDefault = false) {
|
|
2
|
-
const randomId = Math.floor(Math.random() * 100) + 1;
|
|
4
|
+
const randomId = (Math.floor(Math.random() * 100) + 1).toString();
|
|
3
5
|
const id = isDefault
|
|
4
6
|
? randomId
|
|
5
7
|
: document.getElementById("custom-id").value
|
|
@@ -17,9 +19,8 @@ function generateSnackbar(isDefault = false) {
|
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
const snackbar = document.getElementById("snackbar");
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
snackbar.notifications = JSON.stringify(updatedNotifications);
|
|
22
|
+
notifications = [newNotification, ...notifications];
|
|
23
|
+
snackbar.notifications = JSON.stringify(notifications);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
document.querySelector("#snack-basic").addEventListener("click", () => generateSnackbar(true));
|
|
@@ -28,8 +29,9 @@ document.querySelector("#snack-update").addEventListener("click", () => updateSn
|
|
|
28
29
|
|
|
29
30
|
document.addEventListener("wmSnackbarSnackFinished", function (ev) {
|
|
30
31
|
const snackbar = document.getElementById("snackbar");
|
|
31
|
-
let newSnacks =
|
|
32
|
-
|
|
32
|
+
let newSnacks = notifications.filter((snack) => snack.id !== ev.detail.id);
|
|
33
|
+
notifications = newSnacks;
|
|
34
|
+
snackbar.notifications = JSON.stringify(notifications);
|
|
33
35
|
});
|
|
34
36
|
|
|
35
37
|
document.addEventListener("wmSnackbarActionTriggered", function (ev) {
|
|
@@ -43,11 +45,10 @@ document.addEventListener("wmSnackbarActionTriggered", function (ev) {
|
|
|
43
45
|
|
|
44
46
|
function updateSnackText() {
|
|
45
47
|
const snackbar = document.querySelector("#snackbar");
|
|
46
|
-
|
|
47
|
-
parsedNotifications.forEach((notif) => {
|
|
48
|
+
notifications.forEach((notif) => {
|
|
48
49
|
if (notif.id == "11") {
|
|
49
50
|
notif.message = Date.now().toLocaleString();
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
|
-
snackbar.notifications = JSON.stringify(
|
|
53
|
+
snackbar.notifications = JSON.stringify(notifications);
|
|
53
54
|
}
|
|
@@ -89,7 +89,7 @@ export function findParentWithHiddenOverflow(el) {
|
|
|
89
89
|
el = el.parentElement;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function getContextMeasurements(el) {
|
|
92
|
+
export function getContextMeasurements(el) {
|
|
93
93
|
const fixedRect = el.getBoundingClientRect();
|
|
94
94
|
const parentEl = findParentWithHiddenOverflow(el);
|
|
95
95
|
const parentRect = parentEl && parentEl.getBoundingClientRect();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import './index-130e07bb.js';
|
|
2
2
|
|
|
3
|
-
const version = "5.3.0-
|
|
3
|
+
const version = "5.3.0-3";
|
|
4
4
|
|
|
5
5
|
// PRINT RIPPLE VERSION IN CONSOLE
|
|
6
6
|
// test envs return 0 for plugin.length
|
|
@@ -83,3 +83,8 @@ tooltipStyles.textContent = `
|
|
|
83
83
|
document.head.appendChild(tooltipStyles);
|
|
84
84
|
tooltipContainer.appendChild(tooltipEl);
|
|
85
85
|
document.querySelector("body").appendChild(tooltipContainer);
|
|
86
|
+
const globalFn = () => { };
|
|
87
|
+
|
|
88
|
+
const globalScripts = globalFn;
|
|
89
|
+
|
|
90
|
+
export { globalScripts as g };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { i as intl, c as safeMultiplyFloat, e as getPosition, f as checkForActiveElInShadow } from './functions-
|
|
1
|
+
import { h } from './index-130e07bb.js';
|
|
2
|
+
import { i as intl, c as safeMultiplyFloat, e as getPosition, f as checkForActiveElInShadow } from './functions-25781571.js';
|
|
3
3
|
|
|
4
4
|
const colors = {
|
|
5
5
|
salmon: "#ff5f4e",
|
|
@@ -84,7 +84,7 @@ const allChartsDetails = {
|
|
|
84
84
|
bar5: {
|
|
85
85
|
size: 400,
|
|
86
86
|
colors: [
|
|
87
|
-
colors.gray,
|
|
87
|
+
colors.gray, // this is only used if prop notStartedColor is set
|
|
88
88
|
colors.lavender,
|
|
89
89
|
colors.midnight,
|
|
90
90
|
"#0089e4",
|