@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
|
@@ -4,8 +4,7 @@ export class DatePicker {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.openUp = false;
|
|
6
6
|
this.popupClicked = false;
|
|
7
|
-
this.
|
|
8
|
-
this.isExpanded = false;
|
|
7
|
+
this.toggleButtonClicked = false;
|
|
9
8
|
this.value = "";
|
|
10
9
|
this.disabled = false;
|
|
11
10
|
this.dateFormat = "mm/dd/yyyy";
|
|
@@ -14,6 +13,7 @@ export class DatePicker {
|
|
|
14
13
|
this.label = "";
|
|
15
14
|
this.requiredField = false;
|
|
16
15
|
this.preselected = undefined;
|
|
16
|
+
this.isExpanded = false;
|
|
17
17
|
}
|
|
18
18
|
get isDisabled() {
|
|
19
19
|
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
@@ -46,10 +46,12 @@ export class DatePicker {
|
|
|
46
46
|
}
|
|
47
47
|
togglePopup() {
|
|
48
48
|
this.isExpanded ? this.closePopup() : this.openPopup();
|
|
49
|
-
this.
|
|
49
|
+
this.toggleButtonClicked = true;
|
|
50
50
|
}
|
|
51
51
|
closePopup(returnFocus = false) {
|
|
52
52
|
this.isExpanded = false;
|
|
53
|
+
this.calEl.view = "day";
|
|
54
|
+
this.calEl.view = "day";
|
|
53
55
|
this.popupEl.classList.remove("open");
|
|
54
56
|
window.setTimeout(() => {
|
|
55
57
|
//not using display none in order to get measurements of the popup while hidden
|
|
@@ -105,11 +107,11 @@ export class DatePicker {
|
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
blurHandler() {
|
|
108
|
-
if (!this.popupClicked && !this.
|
|
110
|
+
if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
|
|
109
111
|
this.closePopup();
|
|
110
112
|
}
|
|
111
113
|
this.popupClicked = false;
|
|
112
|
-
this.
|
|
114
|
+
this.toggleButtonClicked = false;
|
|
113
115
|
}
|
|
114
116
|
// for cases where the user clicks or uses a shortcut to leave the document
|
|
115
117
|
handleBlurOnWindow() {
|
|
@@ -123,7 +125,7 @@ export class DatePicker {
|
|
|
123
125
|
"-" +
|
|
124
126
|
dateElement.getAttribute("data-month") +
|
|
125
127
|
"-" +
|
|
126
|
-
dateElement.textContent;
|
|
128
|
+
dateElement.textContent.padStart(2, "0");
|
|
127
129
|
this.wmDatepickerDateSelected.emit({ date: isoDate });
|
|
128
130
|
// Create events to trigger onInput and onChange on host element, to get the updated value
|
|
129
131
|
// Because there are more ways to input than just typing, we are firing this event upon cellTriggered
|
|
@@ -131,6 +133,7 @@ export class DatePicker {
|
|
|
131
133
|
this.el.dispatchEvent(inputEvent);
|
|
132
134
|
const changeEvent = new CustomEvent("change");
|
|
133
135
|
this.el.dispatchEvent(changeEvent);
|
|
136
|
+
this.closePopup(true);
|
|
134
137
|
}
|
|
135
138
|
async reformatDate(inputFormat, outputFormat, date) {
|
|
136
139
|
return this.reformatDateInternal(inputFormat, outputFormat, date);
|
|
@@ -211,19 +214,19 @@ export class DatePicker {
|
|
|
211
214
|
this.liveRegionEl.textContent = message;
|
|
212
215
|
}
|
|
213
216
|
render() {
|
|
214
|
-
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div",
|
|
217
|
+
return (h(Host, { key: 'c5739ead4cef950a636aa152ff9caa26c0af6ba7', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '87e16bb8f5ad49a6972a1cbe2c4c853d7d4959c1', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '42e447e58668e5a88edd7437047bce54a704e5f9', class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { key: 'c803538365fbfd82aff60cb5711b640645018d04', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { key: 'fecdbe9851bead9d751458b11af3835fd693b8b6', "aria-hidden": "true", class: "required" }, "*"))))), h("div", { key: 'be0620df5dd65aa3521bc2aaa61b881239e2bc2c' }, h("div", { key: 'd07d72abb6196ba353efbabe1910c79d25ba6f0e', class: "single-wrapper input" }, h("input", { key: '1efbc40afe855b8ae5fc1e45f46598bbec95e021', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '790d19d2b945b7f612e02859a7b272b8ddfb474b', class: "container", id: "wm-container" }, h("button", { key: 'd68d5a01656a8b923b378ce73e0ddc58f2fdf5b2', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: 'ca5412bd92e1cb3fcb416ad44b1faedb348c4a03', class: "calendar", title: intl.formatMessage({
|
|
215
218
|
id: "date.calendarView",
|
|
216
219
|
defaultMessage: "Calendar View",
|
|
217
220
|
description: "Calendar button",
|
|
218
|
-
}) })), h("div", { class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
221
|
+
}) })), h("div", { key: '63b8992bdd6c18d6ba41961556b8987f4a5a6f59', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { key: 'c37920368093dbb3413d71125cc11caa8afd9cad', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: 'c7cba9c54e9a5125fb328886ab7350600ecaf31b', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: 'd5b893546196e25eaddf0f3462f0c0e5bfb10cf7', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: 'f172e8e33ecb8360ea8bfb079aa135009b053a8e', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '52d12573fe421d84f2224643a074d1b4af232122', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
219
222
|
id: "date.selectMonth",
|
|
220
223
|
defaultMessage: "Activate to select a month.",
|
|
221
224
|
description: "Calendar button",
|
|
222
|
-
})), h("div", { id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
225
|
+
})), h("div", { key: '0c795cb7c6869d75700b47fce4113f248590caef', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
223
226
|
id: "date.selectYear",
|
|
224
227
|
defaultMessage: "Activate to select a year.",
|
|
225
228
|
description: "Calendar button",
|
|
226
|
-
})))), h("div", { id: "error", class: "error" }, this.errorMessage), h("div", { ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
229
|
+
})))), h("div", { key: '4f5913a92b1661108bcb6600afea8e13a84b2379', id: "error", class: "error" }, this.errorMessage), h("div", { key: '62836f0a396222d065026a1b277fdd89eb3162cb', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
227
230
|
}
|
|
228
231
|
static get is() { return "wm-datepicker"; }
|
|
229
232
|
static get encapsulation() { return "shadow"; }
|
|
@@ -384,6 +387,11 @@ export class DatePicker {
|
|
|
384
387
|
}
|
|
385
388
|
};
|
|
386
389
|
}
|
|
390
|
+
static get states() {
|
|
391
|
+
return {
|
|
392
|
+
"isExpanded": {}
|
|
393
|
+
};
|
|
394
|
+
}
|
|
387
395
|
static get events() {
|
|
388
396
|
return [{
|
|
389
397
|
"method": "wmDatepickerDateSelected",
|
|
@@ -423,14 +431,17 @@ export class DatePicker {
|
|
|
423
431
|
"complexType": {
|
|
424
432
|
"signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
|
|
425
433
|
"parameters": [{
|
|
426
|
-
"
|
|
427
|
-
"
|
|
434
|
+
"name": "inputFormat",
|
|
435
|
+
"type": "string",
|
|
436
|
+
"docs": ""
|
|
428
437
|
}, {
|
|
429
|
-
"
|
|
430
|
-
"
|
|
438
|
+
"name": "outputFormat",
|
|
439
|
+
"type": "string",
|
|
440
|
+
"docs": ""
|
|
431
441
|
}, {
|
|
432
|
-
"
|
|
433
|
-
"
|
|
442
|
+
"name": "date",
|
|
443
|
+
"type": "string | undefined",
|
|
444
|
+
"docs": ""
|
|
434
445
|
}],
|
|
435
446
|
"references": {
|
|
436
447
|
"Promise": {
|
|
@@ -449,8 +460,9 @@ export class DatePicker {
|
|
|
449
460
|
"complexType": {
|
|
450
461
|
"signature": "(input?: string) => Promise<boolean>",
|
|
451
462
|
"parameters": [{
|
|
452
|
-
"
|
|
453
|
-
"
|
|
463
|
+
"name": "input",
|
|
464
|
+
"type": "string | undefined",
|
|
465
|
+
"docs": ""
|
|
454
466
|
}],
|
|
455
467
|
"references": {
|
|
456
468
|
"Promise": {
|
|
@@ -190,7 +190,7 @@ export class ActionMenu {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: getTextDir() }, h("wm-button", { "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "f1d9" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot",
|
|
193
|
+
return (h(Host, { key: 'e6d63a25a3589c42657c7cf0825f9973861e92ae', onBlur: () => this.close(false) }, h("div", { key: '5744b207e0ebec31cb7a70b8c616700b9436d58b', class: getTextDir() }, h("wm-button", { key: '9509bafa8ac5acbb76aafc464d36e4b97b0a8d07', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "f1d9" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { key: 'e7846dd17a5b343b506a8c60176bba8ef8e8c2e0', class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot", { key: 'e227cd3ea8e2093e64c4b8c335ee098768139fd3' })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "wm-action-menu"; }
|
|
196
196
|
static get encapsulation() { return "shadow"; }
|
|
@@ -166,7 +166,7 @@ export class Button {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host, { class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, this.icon && (h("span", { class: "mdi", style: this.iconStyles, "aria-hidden": "true" }, String.fromCodePoint(parseInt(`0x${this.icon}`)))), h("span", { class: "button-text" }, h("slot",
|
|
169
|
+
return (h(Host, { key: 'c0a05cbcd26354a8ec8ce24fc560ec676dc3eedc', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'f3808a14ca42ea578fe257e7818c2b5be798b61e', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, this.icon && (h("span", { key: '7c247a1febac517d8521a451692536f612657de9', class: "mdi", style: this.iconStyles, "aria-hidden": "true" }, String.fromCodePoint(parseInt(`0x${this.icon}`)))), h("span", { key: 'f4410ed7907af38ab29eb69c90e2bbb3b2e51cb8', class: "button-text" }, h("slot", { key: '2b72eba1f3b0db9ec8a73e37044a3f371264de77' })))));
|
|
170
170
|
}
|
|
171
171
|
static get is() { return "wm-button"; }
|
|
172
172
|
static get encapsulation() { return "shadow"; }
|
|
@@ -168,7 +168,7 @@ export class File {
|
|
|
168
168
|
return (h("div", { class: `file-wrapper ${this.progress === 100 ? "checked" : ""}` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""}` }, this.renderFileName(), !this.errorMessage && (h("div", { class: `right-group ${this.isCondensed ? "condensed" : ""}` }, this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
|
-
return h(Host, { role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
171
|
+
return h(Host, { key: '0943b20ae9ce90cb1687ff3c092622d2169f9c47', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
172
172
|
}
|
|
173
173
|
static get is() { return "wm-file"; }
|
|
174
174
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class FileList {
|
|
|
4
4
|
this.showInfo = "last-updated";
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { role: "list", class: "list-wrapper" }, h("slot",
|
|
7
|
+
return (h("div", { key: '7517d9199e320a918e7b87501e2a6841d17e70f5', role: "list", class: "list-wrapper" }, h("slot", { key: 'c90eaf77aa45b5b146ad71cfa3891cbc0a26ab9a' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "wm-file-list"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,7 +101,7 @@ export class Input {
|
|
|
101
101
|
: `info error`;
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, 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: "text-after-wrapper" }, h("div", { class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
104
|
+
return (h("div", { key: '6bff33a353bd632527d8ebd95031db8c8138ae87', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'c04c1edf83bb49604e4ca504abc51e6647d5487c', class: "label-wrapper" }, h("label", { key: '35d3cf8433a915d548717e7eac14308b1d7a7490', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: 'a4d9d478d893bde516031f2b0e7097fb17755b28', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: '7fa0965a9c325e24aac64c522ef354d9bcf841bd', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '4df1efa5078a5d5a6edfd6538923545d3945a34c', class: "inner-wrapper" }, h("div", { key: '0c879dc570054b620eb424e0d660c930e2e580bb', class: "text-after-wrapper" }, h("div", { key: '76886618707f4ca0d5e3ef46ccc7a3561569cb8b', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: 'fe346fecf4fa7f0f030354de9d37ac03af8df5d4', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: 'd3ac5033a0aa7e49c2af2a786a3e09d46bec0e51', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: '948bcf0ca5186a924b7b7e0099fb072ef78658e4', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: '59ab9c5a6530828b9fbf021de2baa98e0306555b', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '981aed3eb22a54accce593c1791f496b4641bc1f', id: "info", class: "info" }, this.info)), h("div", { key: 'cb8fb8d79193f4505204d4bc1bdc62a52675387f', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'a319ec8aa8f23c7a51af1de3a65e3778b7cadb67', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "wm-input"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -88,7 +88,7 @@ export class Menuitem {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (h(Host, { tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("span", { ref: (el) => (this.iconEl = el) }), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
91
|
+
return (h(Host, { key: '1b81b125825133d025c2f138c2e9d89306bd0b93', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'e820464ef57df83441622726b55098c3abdeb6e3', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("span", { key: 'd903355e81bdc504a04cb9489ecd455d6d41a1e1', ref: (el) => (this.iconEl = el) }), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "wm-menuitem"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,7 +30,7 @@ export class ModalFooter {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
|
|
33
|
+
return (h("div", { key: '09b1182d96ad0f65ad6e2d865901ca600ef6bdc6', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '1e8d2e33fb67996cf2e6d3827ad566da2af0121f', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '3ef4184bbfe126af97339c495c21f78b82f96fbc', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '3eb4cb51d51cf7d7e4d61d16399b036cccfb5825', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '449c91c2c7af5810a8f8e3ab64c63a212a2df541', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "wm-modal-footer"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export class ModalHeader {
|
|
|
21
21
|
parentModal.emitCloseEvent();
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host,
|
|
24
|
+
return (h(Host, { key: '5f19057a411235360621a94b35d8bbd0cafeb756' }, h("div", { key: 'cd92ce876d1c46693afde4216b07c975505943a0', class: "wm-wrapper" }, h("div", { key: '288de703687da76c9c19cb7c9d585291511858af' }, h("h2", { key: 'e4336d48cd65b5d2edce772ecede4d55d8742490', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '4039bf3b3193af1c15c4fa0d4127965bb4af0fdc', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'b745264b5bc4d84ce93d8f71fd6fbea9951481c5', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "wm-modal-header"; }
|
|
27
27
|
static get originalStyleUrls() {
|
|
@@ -108,11 +108,11 @@ export class Modal {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("dialog", { class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
111
|
+
return (h("dialog", { key: 'f9804007b3075d04567628d467538b268f2005cc', class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '40c848ef5e791eeaf3fc116764f0007f3e14132d', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
112
112
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
113
113
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
114
114
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
115
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { class: "wm-tooltip" }), h("slot",
|
|
115
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '8bec0c492699e1544dde7219ec704a5ef3a3b6ee', class: "wm-tooltip" }), h("slot", { key: '2646b7ab94b1426e9166fd589680f6e1e401643f' }), h("div", { key: 'fddae069851ee02bdda40853a46e9b70bc311c99', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
116
116
|
this.focusFirstElement.emit();
|
|
117
117
|
} })));
|
|
118
118
|
}
|
|
@@ -34,7 +34,7 @@ export class NavigationHamburger {
|
|
|
34
34
|
this.wmNavigationHamburgerClicked.emit();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { class: "icon" }))));
|
|
37
|
+
return (h(Host, { key: 'b813a9264454c413f65eef5389e394ef1b291317', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: '4e623dd65471a455bc352940ea99a2ed1e10ff63', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '6754b962ff1a87cabe636bad94e953c7bbdde09e', class: "icon" }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "wm-navigation-hamburger"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ export class NavigationItem {
|
|
|
6
6
|
this.active = undefined;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { role: "listitem" }, h("a", { class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { class: "icon", "aria-hidden": "true" }, h("slot",
|
|
9
|
+
return (h(Host, { key: '59d24293849944df41c1d904458413e8f201e348', role: "listitem" }, h("a", { key: '4e0e4717b961c7020ab19a5564ed8328789c5f34', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '8ce442d2d492faba715138bbc7a0e2c2d2bc1a75', class: "icon", "aria-hidden": "true" }, h("slot", { key: '898d3ec6a650f7a2e2d59f2c01d777b7d061420c' })), h("div", { key: 'e1858a03da5dbb807adbaed86e50cac95f59edc3', class: "text" }, this.text))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "wm-navigation-item"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,9 +96,9 @@ export class Navigation {
|
|
|
96
96
|
} }));
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { class: "tray" }, h("div", { class: "toggle-wrapper" }, h("wm-button", { ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
99
|
+
return (h(Host, { key: '07253bd6d752aa41a1715cf2d28e600b7aae4355', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: 'dbb1d92bad6c1f59f159f63758cc0110e1d6b94b', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '93b63fb63bb94b32f25d250836c1d8b98cc20d08', class: "tray" }, h("div", { key: '89a4323868c66a84bb4f12921103b150068906bc', class: "toggle-wrapper" }, h("wm-button", { key: '0de023f3c6dd6e396adf0a248ca8333095a43359', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
100
100
|
this.open = !this.open;
|
|
101
|
-
} })), h("ul", { class: "navlist" }, h("slot",
|
|
101
|
+
} })), h("ul", { key: '1d7b6fc3268583b27b2a0dc46859b6ca1c6d8e52', class: "navlist" }, h("slot", { key: '870cf6f8c01dba37611097c836880792ddddefd6' }))), this.isCollapsible && (h("div", { key: '2d89c522803c67ea290e054ac2a8040f3f257282', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-navigation"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js
CHANGED
|
@@ -9,7 +9,7 @@ export class PrivNavigatorButton {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const { handleClick, altText } = this;
|
|
12
|
-
return (h("button", { "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
12
|
+
return (h("button", { key: '29d02e90dbbedea053c4f04cd4d1e9fac50c2efa', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "priv-navigator-button"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class PrivNavigatorItem {
|
|
|
16
16
|
render() {
|
|
17
17
|
const selectedClass = this.selected ? "selected" : "";
|
|
18
18
|
const focusedClass = this.focused ? "focused" : "";
|
|
19
|
-
return (h("div", { class: `navoption ${selectedClass} ${focusedClass}` }, h("slot",
|
|
19
|
+
return (h("div", { key: '97d4210235097624138fa3ebef82e058c505c506', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: '5720a27350fed77a8501a20055b59b44ebdc32da' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "priv-navigator-item"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -137,7 +137,7 @@ export class Option {
|
|
|
137
137
|
this.parentSelectEl.addEventListener("wmSelectSearchChanged", (ev) => this.handleSearch(ev));
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
|
-
return (h(Host, { role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { class: `option-wrapper ${this.parentSelectEl.multiple ? "checkbox" : ""}` }, h("span", { class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { class: "sr-only" }, this.el.textContent)), h("div", { class: "subinfo" }, this.subinfo)));
|
|
140
|
+
return (h(Host, { key: '6d7f92d3b13121ae8ddffb4d8e6028db2171116a', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: 'd0dccae3c763686b420b0bf16d7bf2880b1cdc67', class: `option-wrapper ${this.parentSelectEl.multiple ? "checkbox" : ""}` }, h("span", { key: '6e1fbd0d49be13883048634cd54d19f19256226d', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: 'f57f7c21e833a1c03f8407eaccb0883ef6b3a79a', class: "sr-only" }, this.el.textContent)), h("div", { key: '1256826e0ddc1e3c48141e8c0f6864b3401cacf7', class: "subinfo" }, this.subinfo)));
|
|
141
141
|
}
|
|
142
142
|
static get is() { return "wm-option"; }
|
|
143
143
|
static get encapsulation() { return "shadow"; }
|
|
@@ -151,7 +151,7 @@ export class Pagination {
|
|
|
151
151
|
render() {
|
|
152
152
|
return (
|
|
153
153
|
// do not render the component if there's only one page
|
|
154
|
-
this.totalItems > this.itemsPerPage && (h("nav", { "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
154
|
+
this.totalItems > this.itemsPerPage && (h("nav", { key: '5c750d2aa90adcbb709fb5007862401e11e8d23d', "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: 'be58da3d786e0ed7455b762f4273bbad08755196', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "wm-pagination"; }
|
|
157
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -166,10 +166,10 @@ export class Search {
|
|
|
166
166
|
* End search and find render helpers
|
|
167
167
|
*/
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host,
|
|
169
|
+
return (h(Host, { key: 'f7ac09fb284f8ef6e62cb879298972e3d52ed472' }, h("div", { key: '357cf8e3e57a90fa9a8ca75b51fcb50a16877476', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: 'db65cd0b75b1ace94c30feedb4825512f082e015', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
|
|
170
170
|
id: "search.typeToFilterResults",
|
|
171
171
|
defaultMessage: "Type to filter the results",
|
|
172
|
-
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
|
|
172
|
+
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '76d92862fd431394e6eadb3c71b8ad39d33ec0b9', class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '54ff42dd8bf9d13e2f15db19aef39a592622beb3', id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "wm-search"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -380,8 +380,9 @@ export class Search {
|
|
|
380
380
|
"complexType": {
|
|
381
381
|
"signature": "(value: string) => Promise<void>",
|
|
382
382
|
"parameters": [{
|
|
383
|
-
"
|
|
384
|
-
"
|
|
383
|
+
"name": "value",
|
|
384
|
+
"type": "string",
|
|
385
|
+
"docs": ""
|
|
385
386
|
}],
|
|
386
387
|
"references": {
|
|
387
388
|
"Promise": {
|
|
@@ -553,9 +553,9 @@ export class Select {
|
|
|
553
553
|
["aria-expanded"]: this.isExpanded ? "true" : "false",
|
|
554
554
|
onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
555
555
|
};
|
|
556
|
-
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
556
|
+
return (h(Host, { key: 'f099ef79e70921c17419b2ce8a4e917a0579e44f', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: 'e95c845dd404f5518b69145543113e69a40084a6', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '65dfe5aaaa9239efb0553ba1d323f1c5dc93b9fb', class: "label-wrapper" }, h("label", { key: 'ff406b387e0cd09e46e239f1c80477fe2ee80f24', class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
557
557
|
// we can't use aria-required or required attributes because it's invalid on the elements we're using (button controlling a listbox)
|
|
558
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev), onFocus: () => this.close() }), h("span", { class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount()), h("div", { class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton(), h("div", { id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el) }, this.search && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot",
|
|
558
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { key: '5537fb10791108ac2bda53d3456ec048bb4cc5c4', class: "button-wrapper" }, h("button", Object.assign({ key: '7d54c69839a302ead990f41e961cce05be49f83d' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev), onFocus: () => this.close() }), h("span", { key: 'dcb786709b87be95c28bfcd37cc8459607939f2f', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'b04bbeab1666ebd4538c859356f1a3a33658c1c5', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'c5e9911d91f34c9b7c5becaa9e1127e658fd4607', class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount()), h("div", { key: '24c47d439f6b131880a8bffe94c40539fc13d78f', class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton(), h("div", { key: 'acf189fee5add7d0c6150b44ffd9c0c26e05ade7', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el) }, this.search && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: 'ff17ced6e94d7b893c407ea00ab7243176973eb5' }))), h("div", { key: 'a09f44fdf4a100f8eab7b5094fced276023812aa', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '9e55b5fdc2324b77d0a8bcf17650d937760dd941', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
559
559
|
}
|
|
560
560
|
static get is() { return "wm-select"; }
|
|
561
561
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,39 +36,31 @@
|
|
|
36
36
|
--wmcolor-snackbar-close-icon-hover: var(--wmcolor-button-icon-navigational-hover-ondark);
|
|
37
37
|
--wmcolor-snackbar-close-icon: var(--wmcolor-button-icon-navigational-ondark);
|
|
38
38
|
--wmcolor-snackbar-text: var(--wmcolor-text-ondark);
|
|
39
|
-
}
|
|
40
|
-
:host * {
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
margin: unset;
|
|
43
|
-
}
|
|
44
|
-
:host .wm-snackbars {
|
|
45
39
|
position: fixed;
|
|
46
40
|
bottom: 0;
|
|
47
41
|
left: 1.25rem;
|
|
48
42
|
right: 1.25rem;
|
|
49
|
-
padding: 0.25rem 0.625rem 1.875rem;
|
|
50
43
|
z-index: 2001;
|
|
44
|
+
}
|
|
45
|
+
:host * {
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
margin: unset;
|
|
48
|
+
}
|
|
49
|
+
:host .list-wrapper {
|
|
50
|
+
-webkit-overflow-scrolling: touch;
|
|
51
51
|
max-width: 35.5rem;
|
|
52
52
|
max-height: 17.5rem;
|
|
53
|
-
-webkit-overflow-scrolling: touch;
|
|
54
53
|
overflow: auto;
|
|
54
|
+
padding: 0.25rem 0.625rem 1.875rem;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column-reverse;
|
|
57
|
+
gap: 1.25rem;
|
|
55
58
|
}
|
|
56
|
-
:host .wm-
|
|
57
|
-
-ms-transition: all 0.25s 0ms cubic-bezier(0.4, 0, 1, 1);
|
|
58
|
-
-webkit-transition: all 0.25s 0ms cubic-bezier(0.4, 0, 1, 1);
|
|
59
|
-
-moz-transition: all 0.25s 0ms cubic-bezier(0.4, 0, 1, 1);
|
|
60
|
-
transition: all 0.25s 0ms cubic-bezier(0.4, 0, 1, 1);
|
|
61
|
-
padding-top: 0;
|
|
62
|
-
padding-bottom: 0;
|
|
63
|
-
}
|
|
64
|
-
:host .wm-snackbars .wm-snack-wrapper {
|
|
59
|
+
:host .wm-snack-wrapper {
|
|
65
60
|
width: 100%;
|
|
66
61
|
height: 100%;
|
|
67
62
|
}
|
|
68
|
-
:host .wm-
|
|
69
|
-
margin-bottom: 1.25rem;
|
|
70
|
-
}
|
|
71
|
-
:host .wm-snackbars .wm-snack-wrapper .wm-snackbar {
|
|
63
|
+
:host .wm-snack-wrapper .wm-snackbar {
|
|
72
64
|
-webkit-box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);
|
|
73
65
|
-moz-box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);
|
|
74
66
|
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 4px 15px 0 rgba(0, 0, 0, 0.2);
|
|
@@ -86,15 +78,17 @@
|
|
|
86
78
|
transition: all 0.25s 0ms cubic-bezier(0.4, 0, 1, 1);
|
|
87
79
|
font-size: 0.875rem;
|
|
88
80
|
color: var(--wmcolor-snackbar-text);
|
|
89
|
-
padding:
|
|
81
|
+
padding: 4px 16px;
|
|
82
|
+
min-height: 3.75rem;
|
|
90
83
|
background: var(--wmcolor-snackbar-background);
|
|
91
84
|
opacity: 0;
|
|
92
85
|
left: 0;
|
|
93
86
|
position: relative;
|
|
94
87
|
font-family: inherit;
|
|
95
88
|
}
|
|
96
|
-
:host .wm-
|
|
89
|
+
:host .wm-snack-wrapper .wm-snackbar.grow {
|
|
97
90
|
animation: grow 0.25s;
|
|
91
|
+
animation-fill-mode: forwards;
|
|
98
92
|
animation-timing-function: ease-in-out;
|
|
99
93
|
}
|
|
100
94
|
@keyframes grow {
|
|
@@ -107,7 +101,7 @@
|
|
|
107
101
|
transform: scale(1);
|
|
108
102
|
}
|
|
109
103
|
}
|
|
110
|
-
:host .wm-
|
|
104
|
+
:host .wm-snack-wrapper .wm-snackbar .link {
|
|
111
105
|
letter-spacing: 0;
|
|
112
106
|
text-transform: none;
|
|
113
107
|
font-size: 0.875rem;
|
|
@@ -122,7 +116,7 @@
|
|
|
122
116
|
font-weight: 600;
|
|
123
117
|
cursor: pointer;
|
|
124
118
|
}
|
|
125
|
-
:host .wm-
|
|
119
|
+
:host .wm-snack-wrapper .wm-snackbar .link.new-window::after {
|
|
126
120
|
display: inline-block;
|
|
127
121
|
font: normal normal normal 24px/1 "Material Design Icons";
|
|
128
122
|
font-size: inherit;
|
|
@@ -134,24 +128,24 @@
|
|
|
134
128
|
content: "\f3cc";
|
|
135
129
|
margin-left: 0.25rem;
|
|
136
130
|
}
|
|
137
|
-
:host .wm-
|
|
131
|
+
:host .wm-snack-wrapper .wm-snackbar .link:hover {
|
|
138
132
|
text-decoration: underline;
|
|
139
133
|
}
|
|
140
|
-
:host .wm-
|
|
134
|
+
:host .wm-snack-wrapper .wm-snackbar .link:focus {
|
|
141
135
|
outline: none;
|
|
142
136
|
border: none;
|
|
143
137
|
}
|
|
144
|
-
:host .wm-
|
|
138
|
+
:host .wm-snack-wrapper .wm-snackbar .link::-moz-focus-inner {
|
|
145
139
|
border: 0;
|
|
146
140
|
outline: none;
|
|
147
141
|
}
|
|
148
|
-
:host .wm-
|
|
142
|
+
:host .wm-snack-wrapper .wm-snackbar:not(:last-child) {
|
|
149
143
|
margin-bottom: 1.25rem;
|
|
150
144
|
}
|
|
151
|
-
:host .wm-
|
|
145
|
+
:host .wm-snack-wrapper .wm-snackbar.active:not(button) {
|
|
152
146
|
opacity: 1;
|
|
153
147
|
}
|
|
154
|
-
:host .wm-
|
|
148
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg {
|
|
155
149
|
display: -webkit-box;
|
|
156
150
|
display: -webkit-flex;
|
|
157
151
|
display: -ms-flexbox;
|
|
@@ -168,31 +162,31 @@
|
|
|
168
162
|
position: relative;
|
|
169
163
|
padding: 0;
|
|
170
164
|
}
|
|
171
|
-
:host .wm-
|
|
165
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .msgtext {
|
|
172
166
|
display: flex;
|
|
173
167
|
flex-wrap: wrap;
|
|
174
168
|
gap: 12px;
|
|
175
169
|
width: 100%;
|
|
176
170
|
align-items: center;
|
|
177
171
|
}
|
|
178
|
-
:host .wm-
|
|
172
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .msgtext .msg {
|
|
179
173
|
display: block;
|
|
180
174
|
flex: 0 0 0;
|
|
181
175
|
min-width: fit-content;
|
|
182
176
|
}
|
|
183
|
-
:host .wm-
|
|
177
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .msgtext .msg.long {
|
|
184
178
|
min-width: 216px;
|
|
185
179
|
flex: 1 0 0;
|
|
186
180
|
}
|
|
187
|
-
:host .wm-
|
|
181
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .msgtext .link {
|
|
188
182
|
display: flex;
|
|
189
183
|
flex: 0 0 auto;
|
|
190
184
|
}
|
|
191
|
-
:host .wm-
|
|
185
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .msgtext .link span {
|
|
192
186
|
display: block;
|
|
193
187
|
white-space: nowrap;
|
|
194
188
|
}
|
|
195
|
-
:host .wm-
|
|
189
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack {
|
|
196
190
|
-webkit-box-shadow: none;
|
|
197
191
|
-moz-box-shadow: none;
|
|
198
192
|
box-shadow: none;
|
|
@@ -213,7 +207,7 @@
|
|
|
213
207
|
text-align: center;
|
|
214
208
|
letter-spacing: normal;
|
|
215
209
|
}
|
|
216
|
-
:host .wm-
|
|
210
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack:before {
|
|
217
211
|
display: inline-block;
|
|
218
212
|
font: normal normal normal 24px/1 "Material Design Icons";
|
|
219
213
|
font-size: inherit;
|
|
@@ -224,24 +218,24 @@
|
|
|
224
218
|
content: "\f156";
|
|
225
219
|
font-size: 1.12rem;
|
|
226
220
|
}
|
|
227
|
-
:host .wm-
|
|
221
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack:hover {
|
|
228
222
|
background-color: var(--wmcolor-snackbar-close-background-hover);
|
|
229
223
|
color: var(--wmcolor-snackbar-close-icon-hover);
|
|
230
224
|
}
|
|
231
|
-
:host .wm-
|
|
225
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack:focus {
|
|
232
226
|
outline: none;
|
|
233
227
|
}
|
|
234
|
-
:host .wm-
|
|
228
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack::-moz-focus-inner {
|
|
235
229
|
border: 0;
|
|
236
230
|
outline: none;
|
|
237
231
|
}
|
|
238
|
-
:host .wm-
|
|
232
|
+
:host .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack:active {
|
|
239
233
|
-ms-transform: scale(0.9, 0.9);
|
|
240
234
|
-webkit-transform: scale(0.9, 0.9);
|
|
241
235
|
-moz-transform: scale(0.9, 0.9);
|
|
242
236
|
transform: scale(0.9, 0.9);
|
|
243
237
|
}
|
|
244
|
-
:host .wm-
|
|
238
|
+
:host .wm-snack-wrapper .wm-snackbar .sr-only {
|
|
245
239
|
position: absolute !important;
|
|
246
240
|
width: 1px !important;
|
|
247
241
|
height: 1px !important;
|