@watermarkinsights/ripple 5.23.0-alpha.1 → 5.23.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-d5560aa2.js → app-globals-04c40b05.js} +26 -17
- package/dist/cjs/{chartFunctions-97471b69.js → chartFunctions-8d17cbb8.js} +19 -1
- package/dist/cjs/{functions-71af585d.js → functions-156cc201.js} +2 -2
- package/dist/cjs/{interfaces-069f135e.js → interfaces-8419be91.js} +22 -21
- package/dist/cjs/{intl-169a8805.js → intl-789e4b6c.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +26 -13
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +2 -2
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +8 -8
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +3 -3
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/wm-button.cjs.entry.js +4 -4
- package/dist/cjs/wm-chart-bar.cjs.entry.js +48 -29
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
- package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
- package/dist/cjs/wm-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-modal_3.cjs.entry.js +8 -10
- package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigator.cjs.entry.js +2 -2
- package/dist/cjs/wm-nested-select.cjs.entry.js +5 -5
- package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +49 -38
- package/dist/cjs/wm-pagination.cjs.entry.js +4 -4
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +5 -5
- package/dist/cjs/wm-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/wm-tag-input.cjs.entry.js +4 -4
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
- package/dist/cjs/wm-uploader.cjs.entry.js +5 -5
- package/dist/collection/components/charts/chartFunctions.js +17 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +22 -22
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +5 -17
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +10 -8
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +2 -21
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +47 -40
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +2 -2
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +30 -12
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-select/wm-select.js +46 -35
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-button/wm-button.css +14 -15
- 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-flyout/wm-flyout.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +4 -6
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.css +12 -17
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.css +8 -8
- package/dist/collection/components/wm-search/wm-search.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +10 -13
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +3 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
- 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 +2 -2
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
- package/dist/collection/components/wm-uploader/wm-uploader.css +23 -16
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/chart-bar.js +77 -41
- package/dist/collection/global/functions.js +2 -2
- package/dist/collection/global/global.js +25 -16
- package/dist/collection/global/interfaces.js +21 -19
- package/dist/esm/{app-globals-2d0df1cb.js → app-globals-db909d00.js} +26 -17
- package/dist/esm/{chartFunctions-9c95674d.js → chartFunctions-93592f14.js} +19 -2
- package/dist/esm/{functions-2cfbd8c7.js → functions-c1d5f184.js} +2 -2
- package/dist/esm/{interfaces-30d10bc0.js → interfaces-7e50d034.js} +22 -20
- package/dist/esm/{intl-23d21b06.js → intl-8c69d10b.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +26 -13
- package/dist/esm/priv-chart-popover-old.entry.js +2 -2
- package/dist/esm/priv-chart-popover_2.entry.js +8 -8
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +3 -3
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +4 -4
- package/dist/esm/wm-button.entry.js +4 -4
- package/dist/esm/wm-chart-bar.entry.js +48 -29
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +1 -1
- package/dist/esm/wm-datepicker.entry.js +1 -1
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-flyout.entry.js +3 -3
- package/dist/esm/wm-input.entry.js +3 -3
- package/dist/esm/wm-line-chart.entry.js +3 -3
- package/dist/esm/wm-modal-pss_3.entry.js +6 -6
- package/dist/esm/wm-modal_3.entry.js +8 -10
- package/dist/esm/wm-navigation_3.entry.js +6 -6
- package/dist/esm/wm-navigator.entry.js +2 -2
- package/dist/esm/wm-nested-select.entry.js +5 -5
- package/dist/esm/wm-optgroup.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +49 -38
- package/dist/esm/wm-pagination.entry.js +4 -4
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +5 -5
- package/dist/esm/wm-snackbar.entry.js +5 -5
- package/dist/esm/wm-tab-item_3.entry.js +8 -8
- package/dist/esm/wm-tag-input.entry.js +4 -4
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +3 -3
- package/dist/esm/wm-timepicker.entry.js +3 -3
- package/dist/esm/wm-toggletip.entry.js +4 -4
- package/dist/esm/wm-uploader.entry.js +5 -5
- package/dist/esm-es5/app-globals-db909d00.js +1 -0
- package/dist/esm-es5/{chartFunctions-9c95674d.js → chartFunctions-93592f14.js} +1 -1
- package/dist/esm-es5/{functions-2cfbd8c7.js → functions-c1d5f184.js} +1 -1
- package/dist/esm-es5/interfaces-7e50d034.js +1 -0
- package/dist/esm-es5/{intl-23d21b06.js → intl-8c69d10b.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-old.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-bar.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-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-5f50c561.system.entry.js → p-0356e736.system.entry.js} +1 -1
- package/dist/ripple/{p-0abc1b51.system.entry.js → p-086da1c5.system.entry.js} +1 -1
- package/dist/ripple/{p-b939d3cb.system.entry.js → p-0886099f.system.entry.js} +1 -1
- package/dist/ripple/{p-5cbbaf69.system.entry.js → p-08ba2a77.system.entry.js} +1 -1
- package/dist/ripple/{p-d49676b7.system.entry.js → p-0e418fe4.system.entry.js} +1 -1
- package/dist/ripple/{p-15ab0cf9.system.entry.js → p-0efafbd8.system.entry.js} +1 -1
- package/dist/ripple/{p-909f8797.entry.js → p-1641d37f.entry.js} +1 -1
- package/dist/ripple/p-179c505c.entry.js +1 -0
- package/dist/ripple/{p-9dc0fcd6.system.entry.js → p-17f3fa47.system.entry.js} +1 -1
- package/dist/ripple/{p-0ef91339.entry.js → p-23f08f5a.entry.js} +1 -1
- package/dist/ripple/{p-b3092643.entry.js → p-24598e3e.entry.js} +1 -1
- package/dist/ripple/{p-8c20ccd2.entry.js → p-24ce5997.entry.js} +1 -1
- package/dist/ripple/{p-b089276a.entry.js → p-25043b32.entry.js} +1 -1
- package/dist/ripple/{p-10f93b97.system.entry.js → p-262d5bd5.system.entry.js} +1 -1
- package/dist/ripple/{p-8888e7f0.system.entry.js → p-275386c1.system.entry.js} +1 -1
- package/dist/ripple/{p-60aa6bec.system.entry.js → p-2d042b40.system.entry.js} +1 -1
- package/dist/ripple/{p-1802aedc.system.entry.js → p-2d5bd606.system.entry.js} +1 -1
- package/dist/ripple/{p-79ec0bb2.entry.js → p-3410da36.entry.js} +1 -1
- package/dist/ripple/p-3436e819.entry.js +1 -0
- package/dist/ripple/{p-6d375c14.system.entry.js → p-35dfeacb.system.entry.js} +1 -1
- package/dist/ripple/{p-cf845266.entry.js → p-367df770.entry.js} +1 -1
- package/dist/ripple/{p-ad8132aa.entry.js → p-3b2e7166.entry.js} +1 -1
- package/dist/ripple/{p-d522499c.entry.js → p-3de0e2b0.entry.js} +1 -1
- package/dist/ripple/{p-575f24e8.system.entry.js → p-46c77ecb.system.entry.js} +1 -1
- package/dist/ripple/{p-3e10eb3d.entry.js → p-48950aef.entry.js} +1 -1
- package/dist/ripple/{p-8d858325.system.entry.js → p-4934d53f.system.entry.js} +1 -1
- package/dist/ripple/{p-d6ca433c.entry.js → p-49b75a61.entry.js} +1 -1
- package/dist/ripple/{p-62cdc8c6.system.entry.js → p-4a138695.system.entry.js} +1 -1
- package/dist/ripple/{p-78edd963.entry.js → p-4b813987.entry.js} +1 -1
- package/dist/ripple/{p-1124978e.system.entry.js → p-55cdf672.system.entry.js} +1 -1
- package/dist/ripple/p-625d4010.entry.js +1 -0
- package/dist/ripple/{p-377cf709.entry.js → p-6434eacf.entry.js} +1 -1
- package/dist/ripple/{p-9246f0dc.js → p-6a2fb1a1.js} +1 -1
- package/dist/ripple/{p-79b3dfc8.entry.js → p-724fbe77.entry.js} +1 -1
- package/dist/ripple/{p-0b2a0825.system.entry.js → p-74b5624a.system.entry.js} +1 -1
- package/dist/ripple/p-75816848.system.js +1 -0
- package/dist/ripple/{p-bc271e17.system.entry.js → p-7c103a48.system.entry.js} +1 -1
- package/dist/ripple/{p-35ef7bba.entry.js → p-7f4a409e.entry.js} +1 -1
- package/dist/ripple/{p-bc052b23.entry.js → p-86f5e918.entry.js} +1 -1
- package/dist/ripple/p-8a4d79dc.system.entry.js +1 -0
- package/dist/ripple/p-8ac14bb1.system.js +1 -0
- package/dist/ripple/{p-f6d60ed8.system.entry.js → p-90f0283c.system.entry.js} +1 -1
- package/dist/ripple/{p-01e8cea6.entry.js → p-94842057.entry.js} +1 -1
- package/dist/ripple/{p-78524594.entry.js → p-986d1792.entry.js} +1 -1
- package/dist/ripple/p-9a0ec366.js +1 -0
- package/dist/ripple/{p-966f2c9e.entry.js → p-9bcdb6ae.entry.js} +1 -1
- package/dist/ripple/{p-b313c3d3.system.entry.js → p-a289d92b.system.entry.js} +1 -1
- package/dist/ripple/{p-c8c8e85f.system.js → p-a402c6bb.system.js} +1 -1
- package/dist/ripple/{p-21114d99.entry.js → p-aecb621d.entry.js} +1 -1
- package/dist/ripple/{p-34574dc8.system.entry.js → p-af9e6028.system.entry.js} +1 -1
- package/dist/ripple/p-b1afda53.entry.js +1 -0
- package/dist/ripple/p-b37fbb7e.entry.js +1 -0
- package/dist/ripple/{p-d62f5fd3.entry.js → p-b589b0da.entry.js} +1 -1
- package/dist/ripple/{p-576f4d06.system.entry.js → p-bfe3c687.system.entry.js} +1 -1
- package/dist/ripple/{p-2e71fe42.entry.js → p-c04fad73.entry.js} +1 -1
- package/dist/ripple/{p-f2a1f116.entry.js → p-c3ba7789.entry.js} +1 -1
- package/dist/ripple/{p-26d92a96.system.entry.js → p-c5030fa3.system.entry.js} +1 -1
- package/dist/ripple/{p-cab65a05.system.entry.js → p-c97b06b5.system.entry.js} +1 -1
- package/dist/ripple/{p-d13b78fd.system.entry.js → p-cd5aa832.system.entry.js} +1 -1
- package/dist/ripple/p-cda66d45.js +1 -0
- package/dist/ripple/p-ce4150f6.system.js +1 -0
- package/dist/ripple/{p-a0c4a12e.entry.js → p-d002e65f.entry.js} +1 -1
- package/dist/ripple/{p-fda4032a.system.entry.js → p-d4051c50.system.entry.js} +1 -1
- package/dist/ripple/{p-6394d25d.entry.js → p-d9d16c9d.entry.js} +1 -1
- package/dist/ripple/p-da3ae566.system.js +1 -0
- package/dist/ripple/{p-bf83369d.system.entry.js → p-da88bdfa.system.entry.js} +1 -1
- package/dist/ripple/{p-0ad87064.system.entry.js → p-defdef0c.system.entry.js} +1 -1
- package/dist/ripple/{p-21480984.entry.js → p-e70f1e74.entry.js} +1 -1
- package/dist/ripple/p-eee663f4.system.entry.js +1 -0
- package/dist/ripple/{p-325393da.js → p-f031ced7.js} +1 -1
- package/dist/ripple/{p-685863a1.system.entry.js → p-f2b09954.system.entry.js} +1 -1
- package/dist/ripple/{p-c8d6b61a.system.js → p-f503991a.system.js} +1 -1
- package/dist/ripple/{p-7e0efb95.entry.js → p-f6844f41.entry.js} +1 -1
- package/dist/ripple/{p-2f925b25.system.entry.js → p-f7742db8.system.entry.js} +1 -1
- package/dist/ripple/{p-32f95573.system.entry.js → p-f91c86d2.system.entry.js} +1 -1
- package/dist/ripple/{p-51cd1c0f.entry.js → p-fc67950d.entry.js} +1 -1
- package/dist/ripple/{p-d4877cbc.system.entry.js → p-fce3ce5c.system.entry.js} +1 -1
- package/dist/ripple/{p-1c9c0cf2.system.entry.js → p-fe49bfb7.system.entry.js} +1 -1
- package/dist/ripple/{p-56d17ec6.js → p-fe625125.js} +1 -1
- package/dist/ripple/{p-84d88288.entry.js → p-ff25bdd6.entry.js} +1 -1
- package/dist/ripple/p-ffa6f621.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/chartFunctions.d.ts +1 -0
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +1 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +8 -16
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +5 -1
- package/dist/types/components/selects/wm-select/wm-select.d.ts +3 -2
- package/dist/types/components.d.ts +2 -2
- package/dist/types/global/interfaces.d.ts +13 -5
- package/package.json +3 -3
- package/dist/esm-es5/app-globals-2d0df1cb.js +0 -1
- package/dist/esm-es5/interfaces-30d10bc0.js +0 -1
- package/dist/ripple/p-0d03f838.js +0 -1
- package/dist/ripple/p-1430f504.entry.js +0 -1
- package/dist/ripple/p-157468c5.entry.js +0 -1
- package/dist/ripple/p-1eae5841.entry.js +0 -1
- package/dist/ripple/p-30a65553.system.js +0 -1
- package/dist/ripple/p-3989274d.system.entry.js +0 -1
- package/dist/ripple/p-6646191c.entry.js +0 -1
- package/dist/ripple/p-7ee3f5ab.system.entry.js +0 -1
- package/dist/ripple/p-874cc540.system.js +0 -1
- package/dist/ripple/p-8aee3856.system.js +0 -1
- package/dist/ripple/p-b4ce79cd.entry.js +0 -1
- package/dist/ripple/p-c4e4a44c.entry.js +0 -1
- package/dist/ripple/p-d6effc35.system.js +0 -1
- package/dist/ripple/p-f210f4ff.js +0 -1
|
@@ -127,7 +127,7 @@ export class PrivCalendar {
|
|
|
127
127
|
buttons[newIndex].focus();
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
|
-
this.renderCalendarDate = (date,
|
|
130
|
+
this.renderCalendarDate = (date, eitherStart, eitherEnd) => {
|
|
131
131
|
if (date === "placeholder") {
|
|
132
132
|
return h("div", { role: "gridcell" });
|
|
133
133
|
}
|
|
@@ -182,7 +182,7 @@ export class PrivCalendar {
|
|
|
182
182
|
defaultMessage: "today",
|
|
183
183
|
description: "calendar button",
|
|
184
184
|
})}, `
|
|
185
|
-
: ""}${
|
|
185
|
+
: ""}${calendar_months[monthOfDate - 1]} ${dayOfDate}, ${yearOfDate}`, onClick: (ev) => {
|
|
186
186
|
this.handleDateClick(ev.target);
|
|
187
187
|
}, onMouseOver: () => this.cellHovered.emit(date), "data-month": dateFind.month.asString(date), "data-year": dateFind.year.asString(date), onBlur: (ev) => ev.stopPropagation(), tabIndex: isFocused ? 0 : -1 }, dayOfDate));
|
|
188
188
|
};
|
|
@@ -192,6 +192,7 @@ export class PrivCalendar {
|
|
|
192
192
|
this.startDate = undefined;
|
|
193
193
|
this.endDate = undefined;
|
|
194
194
|
this.hoverDate = undefined;
|
|
195
|
+
this.announcement = "";
|
|
195
196
|
}
|
|
196
197
|
setCalName() {
|
|
197
198
|
const cals = this.el.parentElement.querySelectorAll("priv-calendar");
|
|
@@ -483,6 +484,16 @@ export class PrivCalendar {
|
|
|
483
484
|
toggleBusyAttribute(state) {
|
|
484
485
|
this.el.querySelector("#wm-container").setAttribute("aria-busy", state);
|
|
485
486
|
}
|
|
487
|
+
announce(message) {
|
|
488
|
+
// \u00A0 is a non-breaking space character, which causes the message to be read as a new one
|
|
489
|
+
if (this.liveRegionEl.textContent === message) {
|
|
490
|
+
message += "\u00A0";
|
|
491
|
+
}
|
|
492
|
+
this.announcement = message;
|
|
493
|
+
}
|
|
494
|
+
announceMonthYear() {
|
|
495
|
+
this.announce(`${calendar_months[dateFind.month.asInt(this.focusDate) - 1]} ${dateFind.year.asInt(this.focusDate)}`);
|
|
496
|
+
}
|
|
486
497
|
renderMonth(month, index) {
|
|
487
498
|
return (h("button", { id: `month-${index + 1}-${this.uid}`, class: `month ${this._focus.month.asInt() === index + 1 ? "selected focused" : ""}`, role: "gridcell", tabindex: index + 1 === this._focus.month.asInt() ? 0 : -1, onBlur: (ev) => ev.stopPropagation(), onClick: () => {
|
|
488
499
|
this._focus.month.set(index + 1);
|
|
@@ -500,6 +511,7 @@ export class PrivCalendar {
|
|
|
500
511
|
else if (this.view == "month") {
|
|
501
512
|
this._focus.year.decrease(1);
|
|
502
513
|
}
|
|
514
|
+
this.announceMonthYear();
|
|
503
515
|
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("button", { onClick: () => {
|
|
504
516
|
if (this.view == "day") {
|
|
505
517
|
this._focus.month.increase(1);
|
|
@@ -507,6 +519,7 @@ export class PrivCalendar {
|
|
|
507
519
|
else if (this.view == "month") {
|
|
508
520
|
this._focus.year.increase(1);
|
|
509
521
|
}
|
|
522
|
+
this.announceMonthYear();
|
|
510
523
|
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
511
524
|
}
|
|
512
525
|
renderToggleButton() {
|
|
@@ -533,45 +546,45 @@ export class PrivCalendar {
|
|
|
533
546
|
// the start and end date, set in either of the calendars
|
|
534
547
|
const eitherStart = this.startDate || (this.otherCalEl && this.otherCalEl.startDate);
|
|
535
548
|
const eitherEnd = this.endDate || (this.otherCalEl && this.otherCalEl.endDate);
|
|
536
|
-
return (h("div", { "aria-labelledby": "popup-title-month", role: "grid", class: "date-grid" }, h("div", { role: "rowgroup", class: "date-header" }, h("div", { role: "row", class: "header-row" }, h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
549
|
+
return (h("div", { "aria-labelledby": "popup-title-month", role: "grid", class: "date-grid" }, h("div", { role: "rowgroup", class: "date-header" }, h("div", { role: "row", class: "header-row" }, h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[0] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
537
550
|
id: "date.su",
|
|
538
551
|
defaultMessage: "Su",
|
|
539
552
|
description: "Abbreviated day of the week",
|
|
540
|
-
}))), h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
553
|
+
}))), h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[1] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
541
554
|
id: "date.mo",
|
|
542
555
|
defaultMessage: "Mo",
|
|
543
556
|
description: "Abbreviated day of the week",
|
|
544
|
-
}))), h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
557
|
+
}))), h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[2] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
545
558
|
id: "date.tu",
|
|
546
559
|
defaultMessage: "Tu",
|
|
547
560
|
description: "Abbreviated day of the week",
|
|
548
|
-
}))), h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
561
|
+
}))), h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[3] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
549
562
|
id: "date.we",
|
|
550
563
|
defaultMessage: "We",
|
|
551
564
|
description: "Abbreviated day of the week",
|
|
552
|
-
}))), h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
565
|
+
}))), h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[4] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
553
566
|
id: "date.th",
|
|
554
567
|
defaultMessage: "Th",
|
|
555
568
|
description: "Abbreviated day of the week",
|
|
556
|
-
}))), h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
569
|
+
}))), h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[5] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
557
570
|
id: "date.fr",
|
|
558
571
|
defaultMessage: "Fr",
|
|
559
572
|
description: "Abbreviated day of the week",
|
|
560
|
-
}))), h("div", { role: "columnheader", class: "header-cell" }, h("span",
|
|
573
|
+
}))), h("div", { role: "columnheader", class: "header-cell", "aria-label": weekdays[6] }, h("span", { "aria-hidden": "true" }, intl.formatMessage({
|
|
561
574
|
id: "date.sa",
|
|
562
575
|
defaultMessage: "Sa",
|
|
563
576
|
description: "Abbreviated day of the week",
|
|
564
|
-
}))))), h("div", { role: "rowgroup" }, h("div", { role: "row", class: "date-row" }, dates.slice(0, 7).map((date
|
|
577
|
+
}))))), h("div", { role: "rowgroup" }, h("div", { role: "row", class: "date-row" }, dates.slice(0, 7).map((date) => this.renderCalendarDate(date, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(7, 14).map((date) => this.renderCalendarDate(date, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(14, 21).map((date) => this.renderCalendarDate(date, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(21, 28).map((date) => this.renderCalendarDate(date, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(28, 35).map((date) => this.renderCalendarDate(date, eitherStart, eitherEnd))), dates.length > 35 ? (h("div", { role: "row" }, dates.slice(35).map((date) => this.renderCalendarDate(date, eitherStart, eitherEnd)))) : (""))));
|
|
565
578
|
}
|
|
566
579
|
renderMonthView() {
|
|
567
580
|
return (h("div", { class: "month-view" }, h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
568
581
|
}
|
|
569
582
|
render() {
|
|
570
|
-
return (h(Host, { key: '
|
|
583
|
+
return (h(Host, { key: 'b3fddf504d68f3648aa091fdd09c8e02d6291480', onMouseOut: (ev) => {
|
|
571
584
|
// @ts-ignore
|
|
572
585
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
573
586
|
this.outOfCal.emit();
|
|
574
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '
|
|
587
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '799c77b1f795bd42ba93d517e418899014c25597', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: 'de896a5c0650d9a12797a5a86eef4fe535814fa5', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions), h("div", { key: 'a4268e03c573b5b90fd5b1f692f39324bcc090d1', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement)));
|
|
575
588
|
}
|
|
576
589
|
static get is() { return "priv-calendar"; }
|
|
577
590
|
static get originalStyleUrls() {
|
|
@@ -693,6 +706,11 @@ export class PrivCalendar {
|
|
|
693
706
|
}
|
|
694
707
|
};
|
|
695
708
|
}
|
|
709
|
+
static get states() {
|
|
710
|
+
return {
|
|
711
|
+
"announcement": {}
|
|
712
|
+
};
|
|
713
|
+
}
|
|
696
714
|
static get events() {
|
|
697
715
|
return [{
|
|
698
716
|
"method": "cellTriggered",
|
|
@@ -367,7 +367,7 @@ export class PrivOptionList {
|
|
|
367
367
|
return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
|
|
368
368
|
}
|
|
369
369
|
render() {
|
|
370
|
-
return (h("div", { key: '
|
|
370
|
+
return (h("div", { key: '6236c1325eda57a8cf73ed89bc252567e6459b65', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '60a7c7aee7090de15d5126898d180e9d9af98cc8', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-label": this.optgroupLabel, ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: 'a257d9eb32f238fe1a728efa366a4e3fbb3072de' })), h("div", { key: '1b5b726cd0293179690be299fff7eb0f380d428d', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
371
371
|
}
|
|
372
372
|
static get is() { return "priv-option-list"; }
|
|
373
373
|
static get originalStyleUrls() {
|
|
@@ -291,16 +291,16 @@ export class NestedSelect {
|
|
|
291
291
|
this.isExpanded ? this.close() : this.open();
|
|
292
292
|
},
|
|
293
293
|
};
|
|
294
|
-
return (h(Host, { key: '
|
|
294
|
+
return (h(Host, { key: 'f9d5f5938c7616ca8a21830e26fa97389bedce0e', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '101141bb02e455b57b0fc7a32cd14767281de1fe', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'deb21859c85dfdae5e9449785417142463fa653d', class: "label-wrapper" }, h("label", { key: 'ec765e72aac1232a99585c65d4187a390f675235', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
295
295
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
296
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '
|
|
296
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '0735159dcea1c3cdf9145e18b224fedf90cd3ed7', class: "button-wrapper" }, h("button", Object.assign({ key: '4326702188583f9c210257f7e95dcee3d501825e' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: 'f3fb5f069b0ec70419c0ade0a1c520e8da79c453', class: "overflowcontrol" }, h("span", { key: '4da352b8a0312287ae27205731c7d46ff2cac88e', class: "button-text" }, this.renderButtonText())), h("div", { key: 'f85e648f0da497df4d906a262bba62b2fbe3c5db', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '7ab45a7201b3375d59ddef5ac86a2c0fea438662', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'a3153d330243404ed4c4dd931a182cc47f2a5672', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.renderClearSelectionButton(), h("div", { key: 'e106169ebfbe226b886d972f41e3a93d88ed8f26', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", class: this.isGroupExpanded ? "hidden" : "", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.optgroupEls.map((optgroupEl) => {
|
|
297
297
|
return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
|
|
298
298
|
if (!optgroupEl.disabled) {
|
|
299
299
|
optgroupEl.isExpanded = !optgroupEl.isExpanded;
|
|
300
300
|
forceUpdate(this.el);
|
|
301
301
|
}
|
|
302
302
|
}, onKeyDown: (ev) => this.handleMenuitemKeydown(ev) }, h("div", { class: "option-text" }, h("span", null, optgroupEl.label), this.renderSelectionCount(optgroupEl), optgroupEl.disabled && h("div", { class: "disabled-indication" }, "Disabled")), h("div", { class: "svg-icon svg-next" })));
|
|
303
|
-
})), h("div", { key: '
|
|
303
|
+
})), h("div", { key: 'ba3ad38b66537f365379921ebcec8f630c934a93', class: `option-list-wrapper ${this.isGroupExpanded ? "" : "hidden"}` }, h("slot", { key: 'b0083c7e49ba59f7a36459b599f79a89121c09e5' }))), h("div", { key: '4ccb451822e5ace5e34a96f2560d936b6c02b9ad', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: 'cdca96e717a912c022096a9c781199fabc040a43', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
304
304
|
}
|
|
305
305
|
static get is() { return "wm-nested-select"; }
|
|
306
306
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class Optgroup {
|
|
|
48
48
|
handleDisabledAttribute(this.el, this.isDisabled);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'f26edb066ca14bbad62dc07198651d180be2ed3b' }, h("div", { key: '202a27a0d33c34b861e28cfe08407225589905e9', class: `list-wrapper` }, h("priv-option-list", { key: '68a0f5992c24ee62ca7539ba900afeda25f313e5', ref: (el) => (this.optionListEl = el), multiple: this.parentNestedSelect.multiple, search: this.parentNestedSelect.search, maxHeight: this.parentNestedSelect.constrainedMaxHeight, searchPlaceholder: this.parentNestedSelect.searchPlaceholder, optgroupLabel: this.label, selectAll: this.parentNestedSelect.selectAll, onOptionListAllSelected: () => this.wmOptgroupAllSelected.emit(), onOptionListAllDeselected: () => this.wmOptgroupAllDeselected.emit() }, h("slot", { key: '8f445e06b048ccd6e49627beb989be9b6c55d651' })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "wm-optgroup"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -143,7 +143,7 @@ export class Option {
|
|
|
143
143
|
this.parentOptionList.addEventListener("optionListSearchChanged", (ev) => this.handleSearch(ev));
|
|
144
144
|
}
|
|
145
145
|
render() {
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '0a31affb1b8ed02ba38fce11d11b4b0919b97d5c', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: 'b7ad9eef86983ba3ace177522f3a42a55a71bfdc', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '5876611c20af1169794db93b30577e48a6ce63df', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: 'aef00aca54b33552892d73c51f70c273d9ad4088', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: 'fb6306f9014205ce6f1d2a39ecdbd3f36141584d', class: "sr-only" }, this.el.textContent)), h("div", { key: 'af1894e912632a93255b5f90412990f6c0f0924b', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,11 +7,8 @@ export class Select {
|
|
|
7
7
|
this.scrollableParents = [];
|
|
8
8
|
this.returnFocus = false;
|
|
9
9
|
this.hasAnchor = CSS.supports("top", "anchor(bottom)"); // for FF polyfill
|
|
10
|
-
//////////////////////////////////////
|
|
11
|
-
// for multiselect button text
|
|
12
|
-
this.overflowCount = 0;
|
|
13
10
|
this.displayedOptions = [];
|
|
14
|
-
this.
|
|
11
|
+
this.oldDisplayText = "";
|
|
15
12
|
this.debouncedReposition = debounce(() => {
|
|
16
13
|
this.dropdownPosition();
|
|
17
14
|
}, 100);
|
|
@@ -39,6 +36,9 @@ export class Select {
|
|
|
39
36
|
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
40
37
|
return toBool(this.disabled);
|
|
41
38
|
}
|
|
39
|
+
get displayText() {
|
|
40
|
+
return this.displayedOptions.map((x) => x.textContent).join(", ");
|
|
41
|
+
}
|
|
42
42
|
get selectedOptions() {
|
|
43
43
|
return Array.from(this.el.querySelectorAll("wm-option")).filter((x) => x.selected);
|
|
44
44
|
}
|
|
@@ -274,22 +274,27 @@ export class Select {
|
|
|
274
274
|
this.announcement = message;
|
|
275
275
|
}
|
|
276
276
|
handleOverflow() {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
this.overflowCount
|
|
290
|
-
this.
|
|
291
|
-
|
|
292
|
-
optionsTotalWidth
|
|
277
|
+
if (!this.buttonEl) {
|
|
278
|
+
forceUpdate(this.el);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
// handle overflow + counter for multiselect
|
|
282
|
+
// this is a fixed measurement accounting for the max width of a 3 character overflow counter
|
|
283
|
+
const overflowCounterWidth = 38;
|
|
284
|
+
const computedStyle = window.getComputedStyle(this.buttonEl);
|
|
285
|
+
// there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
|
|
286
|
+
const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
|
|
287
|
+
const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
|
|
288
|
+
const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
|
|
289
|
+
this.overflowCount = 0;
|
|
290
|
+
this.measurementAreaEl.textContent = this.displayText;
|
|
291
|
+
let optionsTotalWidth = this.measurementAreaEl.clientWidth;
|
|
292
|
+
while (optionsTotalWidth > availableSpace && this.displayedOptions.length > 1) {
|
|
293
|
+
this.overflowCount++;
|
|
294
|
+
this.displayedOptions.pop();
|
|
295
|
+
this.measurementAreaEl.textContent = this.displayText;
|
|
296
|
+
optionsTotalWidth = this.measurementAreaEl.clientWidth;
|
|
297
|
+
}
|
|
293
298
|
}
|
|
294
299
|
}
|
|
295
300
|
setButtonText() {
|
|
@@ -299,28 +304,34 @@ export class Select {
|
|
|
299
304
|
}
|
|
300
305
|
else {
|
|
301
306
|
this.displayedOptions = this.childOptions.filter((x) => x.selected);
|
|
302
|
-
const hasChanged = this.
|
|
307
|
+
const hasChanged = this.displayText !== this.oldDisplayText;
|
|
303
308
|
const noDisplayedOptions = this.displayedOptions.length < 1;
|
|
304
309
|
if (noDisplayedOptions) {
|
|
310
|
+
this.overflowCount = 0;
|
|
305
311
|
return this.placeholder;
|
|
306
312
|
}
|
|
307
|
-
else if (!this.buttonEl) {
|
|
308
|
-
forceUpdate(this.el);
|
|
309
|
-
return "";
|
|
310
|
-
}
|
|
311
313
|
else if (hasChanged) {
|
|
312
314
|
this.handleOverflow();
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
if (this.allSelected) {
|
|
316
|
+
// we want all selected message only if there's an overflow.
|
|
317
|
+
if (!this.overflowCount) {
|
|
318
|
+
// but on first render we don't know: handleOverflow can't calculate measurements
|
|
319
|
+
// in that case, display all selected message even if there's a chance options could have been shown
|
|
320
|
+
this.buttonText = this.allSelectedMessage;
|
|
321
|
+
}
|
|
322
|
+
else if (this.overflowCount > 0)
|
|
323
|
+
// if calc could be made and there is an overflow, reset it as it shouldn't be shown
|
|
324
|
+
this.overflowCount = 0;
|
|
325
|
+
// then display all selected message
|
|
317
326
|
this.buttonText = this.allSelectedMessage;
|
|
318
327
|
}
|
|
319
328
|
else {
|
|
320
|
-
|
|
329
|
+
// otherwise, if handleOverflow was able to calculate, it set the count and the display text
|
|
330
|
+
// if it wasn't able to calculate, the text of all the selected options will be displayed and may truncate (acceptable as fallback)
|
|
331
|
+
this.buttonText = this.displayText;
|
|
321
332
|
}
|
|
322
333
|
}
|
|
323
|
-
this.
|
|
334
|
+
this.oldDisplayText = this.displayText;
|
|
324
335
|
// the reason for setting a global variable and returning it
|
|
325
336
|
// is that we need the stored value when displayedOptions haven't changed.
|
|
326
337
|
return this.buttonText; // multiselect value
|
|
@@ -333,14 +344,14 @@ export class Select {
|
|
|
333
344
|
}
|
|
334
345
|
render() {
|
|
335
346
|
const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
|
|
336
|
-
return (h(Host, { key: '
|
|
347
|
+
return (h(Host, { key: 'b9e427db71b61d4731a3c8c31826358efb2e71c9', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '6a8ad960dfcf56ba23736c5dc7306517a0f4cc61', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'a1829bc5949a9e75629bb645ab63331af4ae71f1', class: "label-wrapper" }, h("label", { key: '329944256ca0c0a76881b03192579849106fc0b8', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
337
348
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
338
|
-
this.requiredField && (h("span", { key: '
|
|
349
|
+
this.requiredField && (h("span", { key: '5a7d128c99b2eb064c038aecca4097304775b94c', class: "required" }, h("span", { key: 'fea081b4029d61add6f8a1a6743e30eb64329f89', class: "sr-only" }, globalMessages.requiredField), h("span", { key: 'a8f8fd3695883555ccfdf1d63a56aa0b54472ac7', "aria-hidden": "true" }, "*")))), h("div", { key: 'd8c783d92db1f7599ad431ff14069d26f335efee', class: "button-wrapper" }, h("button", { key: '56a36ae5267f5323a595f411d9a4a7257e04ede1', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'f026cf1c1f331ef84253a55df3308e518e8c38ed', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'c48385d25e0ac06b1faa8b5760949c4e3872a6c1', class: "button-text" }, this.setButtonText()), showSubinfo && h("span", { key: 'd47f6e6ccb3dfda11fdfd74c3880038a3582f593', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: 'ec2f38fce7005421341b176bbb9a07a2f4f930f2', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '76e51beef029574af384673324937b78631baac0', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '5ada44373bccb9ff83b8d33d5454f197fdbcece2',
|
|
339
350
|
// is-open is for the CSS transition in modern browsers
|
|
340
351
|
// hidden is to wait for position calculations in Firefox
|
|
341
352
|
class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
|
|
342
353
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
343
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '
|
|
354
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '85262c7c088219e1bb7e50953c4fd058d8750a12', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
|
|
344
355
|
this.dropdownEl.hidePopover();
|
|
345
356
|
}, onOptionListAllSelected: () => {
|
|
346
357
|
this.returnFocus = true;
|
|
@@ -348,7 +359,7 @@ export class Select {
|
|
|
348
359
|
}, onOptionListAllDeselected: () => {
|
|
349
360
|
this.returnFocus = true;
|
|
350
361
|
this.wmSelectAllDeselected.emit();
|
|
351
|
-
} }, h("slot", { key: '
|
|
362
|
+
} }, h("slot", { key: '66b4a65b4477b82cb8e0073cc49842e4d2a9e724' }))), h("div", { key: 'a3e19f185805e5ce1818fbc101e8e41ebeda3b8d', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'e524c3fdfc16d96750e7ddfa84207fb92803b648', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
352
363
|
}
|
|
353
364
|
static get is() { return "wm-select"; }
|
|
354
365
|
static get encapsulation() { return "shadow"; }
|
|
@@ -190,7 +190,7 @@ export class ActionMenu {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: 'b502a2495bd993134ac44e48ceaaad6ec956b2ac', onBlur: () => this.close(false) }, h("div", { key: 'd182caca8e792e931c41228ca377f1862bcde0c7', class: getTextDir() }, h("wm-button", { key: 'd7250925bfe7301ba5cc07512153516c9a76cd05', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "#more-options" : "", 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: '0c57d648010b7b74ffae41d3a08211f58c84a10a', 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: '453b3b42dfde1fa32be56386dec7841ced644f80' })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "wm-action-menu"; }
|
|
196
196
|
static get encapsulation() { return "shadow"; }
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
:host .wm-button.nowrap {
|
|
162
162
|
display: inline-block;
|
|
163
163
|
width: 100%;
|
|
164
|
-
overflow: hidden;
|
|
164
|
+
overflow-x: hidden;
|
|
165
165
|
white-space: nowrap;
|
|
166
166
|
text-overflow: ellipsis;
|
|
167
167
|
}
|
|
@@ -233,7 +233,10 @@
|
|
|
233
233
|
border-color: transparent;
|
|
234
234
|
}
|
|
235
235
|
:host .wm-button.-textonly {
|
|
236
|
-
color: var(--wmcolor-
|
|
236
|
+
color: var(--wmcolor-link-text);
|
|
237
|
+
text-decoration: underline;
|
|
238
|
+
text-decoration-thickness: 0.0714285714em;
|
|
239
|
+
text-underline-offset: 0.1428571429em;
|
|
237
240
|
box-shadow: none;
|
|
238
241
|
display: inline-block;
|
|
239
242
|
letter-spacing: 0;
|
|
@@ -245,31 +248,27 @@
|
|
|
245
248
|
padding: 0;
|
|
246
249
|
height: auto;
|
|
247
250
|
min-height: unset;
|
|
248
|
-
line-height: 1;
|
|
249
251
|
overflow-wrap: anywhere;
|
|
250
252
|
border-radius: 2px;
|
|
251
253
|
}
|
|
252
254
|
:host .wm-button.-textonly.small {
|
|
253
255
|
font-size: 0.625rem;
|
|
254
256
|
}
|
|
255
|
-
:host .wm-button.-textonly:hover:not(:disabled):not(.disabled)
|
|
256
|
-
text-decoration:
|
|
257
|
+
:host .wm-button.-textonly:hover:not(:disabled):not(.disabled) {
|
|
258
|
+
text-decoration-thickness: 0.1428571429em;
|
|
257
259
|
}
|
|
258
|
-
:host .wm-button.-textonly.
|
|
259
|
-
color: var(--wmcolor-
|
|
260
|
+
:host .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete):not(.ai) {
|
|
261
|
+
color: var(--wmcolor-link-text-hover);
|
|
260
262
|
}
|
|
261
|
-
:host .wm-button.-textonly.dark:
|
|
262
|
-
text-
|
|
263
|
+
:host .wm-button.-textonly.dark:not(:disabled):not(.disabled):not(.-permanentlydelete):not(.ai) {
|
|
264
|
+
color: var(--wmcolor-link-text-ondark);
|
|
265
|
+
}
|
|
266
|
+
:host .wm-button.-textonly.dark:not(:disabled):not(.disabled):not(.-permanentlydelete):not(.ai):hover {
|
|
267
|
+
color: var(--wmcolor-link-text-hover-ondark);
|
|
263
268
|
}
|
|
264
269
|
:host .wm-button.-textonly.-permanentlydelete {
|
|
265
270
|
color: var(--wmcolor-button-background-delete);
|
|
266
271
|
}
|
|
267
|
-
:host .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled):not(.dark) {
|
|
268
|
-
text-decoration: underline;
|
|
269
|
-
}
|
|
270
|
-
:host .wm-button.-textonly.-permanentlydelete.dark:not(:disabled):not(.disabled) {
|
|
271
|
-
color: var(--wmcolor-button-text-textonly-ondark);
|
|
272
|
-
}
|
|
273
272
|
:host .wm-button.-icononly, :host .wm-button.-navigational {
|
|
274
273
|
-webkit-border-radius: 50%;
|
|
275
274
|
-moz-border-radius: 50%;
|
|
@@ -249,7 +249,7 @@ export class Button {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
render() {
|
|
252
|
-
return (h(Host, { key: '
|
|
252
|
+
return (h(Host, { key: '3909651c78ce41cceffe0398775c145753980100', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '2a5cb652b8d91eddee9730198c3d697e27b22265', 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 || this.buttonType.endsWith("-ai")) && this.renderIcon(), (!this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly")) && (h("span", { key: '2caefbd131837905560d956cf7fc67ac6561662a', class: "button-text" }, h("slot", { key: 'c3af52b84fbede6a57c931fedfda003180a0fc9d' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'c8ef8760a08241ce1a519886b222d2cf2be8cf67', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
253
253
|
}
|
|
254
254
|
static get is() { return "wm-button"; }
|
|
255
255
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,7 +187,7 @@ export class File {
|
|
|
187
187
|
return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""} ${this.isExtraCondensed ? "extra-condensed" : ""}` }, this.renderFileName(), showRightGroup && (h("div", { class: "right-group" }, !this.isExtraCondensed && this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("div", { class: "right-group" }, h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.progress == 100 && h("span", { class: "svg-icon svg-success" })), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return h(Host, { key: '
|
|
190
|
+
return h(Host, { key: '0e7b794a992c0e7e6ba0d9784a09e7bf90695d2d', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
191
191
|
}
|
|
192
192
|
static get is() { return "wm-file"; }
|
|
193
193
|
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", { key: '
|
|
7
|
+
return (h("div", { key: 'ecfeb07e38ae73d4cee41d40e42bc08e31b69f47', role: "list", class: "list-wrapper" }, h("slot", { key: '2b98626decea02837970168b892c7789f7be0004' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "wm-file-list"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class Flyout {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: 'd68943a7b7dc87266087e8c5a8e4def91d138808' }, h("dialog", { key: '779e65065a15f7cf975c329b470eb324746aac80', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '971890ba3408b561829d3f98a1a94e9f6374ce51', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: 'f41605a52062336b73c4e68ff6850eee3e13ca58', class: "flyout-content" }, h("slot", { key: '4862d931516f9de7977cb4beaf5efefeca17a61d' })), this.renderFooter(), h("div", { key: '83f87c356cadf84757068f5ab7a2f9b2e3d93111', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "wm-flyout"; }
|
|
161
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -107,7 +107,7 @@ export class Input {
|
|
|
107
107
|
: `info error`;
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h("div", { key: '
|
|
110
|
+
return (h("div", { key: '440534026de67cf3d4a3988a117e56947346fb5c', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'd0ae8862c9dcb63b77cc14890c652b06ad9f3c27', class: "label-wrapper" }, h("label", { key: '4e24aab7500503bd7eb98e077225769edba96f88', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: 'b004a2dd83dcdcfce1ecf3bc1d1d88a3ef59f96f', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: '6bd8f84d7271ded3c08f07546e0a787527ff75af', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '8c2cbf7b3e33ecce61635274b411dae56a633af8', class: "inner-wrapper" }, h("div", { key: 'ee880eece5ac3c6b7d24316f21aa9c09bcb3e33b', class: "text-after-wrapper" }, h("div", { key: 'e5208c4ed4cbc34da95171a5f748901839373ae1', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '316f86011c89529f101769234f7cbd914eccc174', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '020bc74fd67239bfd6da162bba9c9fd3a7cf99c4', 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: '1f8fb34695d89d882d3c04690b1196b6b1bd9a26', 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: '0dbb52627a7fbb274b57b2191e6b7ca0614f40af', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'ca7f5a76086330bab897afa71233943bd97ee17b', id: "info", class: "info" }, this.info)), h("div", { key: '6ae93c211c1ac945aceea3a88cf8be773ff5860b', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '67ae836cbb27cb0c17531bf9a347cb64acb81197', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "wm-input"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,7 +98,7 @@ export class Menuitem {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '48ecd39137287b30ed6426013277b2d418301dbd', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '24fe7a9f4798fe7ae1637f6031dee9cff18cc21f', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-menuitem"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class ModalFooter {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '09a767c503fd0c29d548b626ce5d4e9f2dc05fab', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '2fb279caa8ab8d71959d218dbae28c614acce8e5', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '5f182514fc8bfa243ff630f6638ae27500f89c21', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'b27dc355a2794a0ca63774a80132aee49809762a', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: 'd03404a339209bae2fbd181227ac18c547667570', "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))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "wm-modal-footer"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -22,7 +22,7 @@ export class ModalHeader {
|
|
|
22
22
|
parentModal.emitCloseEvent();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'fdd199695b2ceb94f64a277ceae16c596b406071' }, h("div", { key: '40e435da7701bf5a174028a153b5a040338ec0ed', class: "wm-wrapper" }, h("div", { key: '51f7b66ec56a8e977bdc75e84734a63b869ba53b' }, h("h2", { key: '23abdc0aba1d5ee84a66c6cf9facaf6c61f8ccc2', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: 'bcbb5454236dc3e51f66e08ce156a28a13335eb7', class: "subtitle" }, this.subheading))), h("wm-button", { key: '9390af056a9a0ce8da6d8387409c73d6b5535942', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "wm-modal-header"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -31,10 +31,8 @@ export class Modal {
|
|
|
31
31
|
return customElementToFocus;
|
|
32
32
|
}
|
|
33
33
|
get hasBrowserPopoverSupport() {
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
//@ts-ignore
|
|
37
|
-
return tooltipEl ? !!tooltipEl.showPopover : false;
|
|
34
|
+
// For browsers without popover support, render a fallback tooltip inside the dialog so it appears above it
|
|
35
|
+
return typeof HTMLElement.prototype.showPopover === 'function';
|
|
38
36
|
}
|
|
39
37
|
toggleModal() {
|
|
40
38
|
this.open ? this.showModal() : this.hideModal();
|
|
@@ -116,11 +114,11 @@ export class Modal {
|
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
116
|
render() {
|
|
119
|
-
return (h("dialog", { key: '
|
|
117
|
+
return (h("dialog", { key: '633554a1b1e5df10d410e1c31e2f960642718e57', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '3d6d3bbce8760bfb1e642771f534b1d603f6a74b', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
120
118
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
121
119
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
122
120
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
123
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
121
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '7c660029e60f4b8df004dd3b830025f047710ccc', class: "wm-tooltip" }), h("slot", { key: '7779d237802e80dd2c7f84516bd1327438813ce2' }), h("div", { key: 'eb2fa33d5fdae1b8c41102380471c593b10e1826', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
124
122
|
this.focusFirstElement.emit();
|
|
125
123
|
} })));
|
|
126
124
|
}
|
|
@@ -27,7 +27,7 @@ export class ModalPssFooter {
|
|
|
27
27
|
parentModal.emitSecondaryEvent();
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '791d8fddb2121d453a1e7221059342c9241a54d0', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '581dc035d64b04d0b684e3ce8e641407d62daf4f', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'fef39bd6ce9d01698476a123b4a0f3ed72434945', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '3cc32b27ae12037dbd9ae5d975d107bd5775272c', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '7188091c11e32f7a2d4372512a7c901069783405', "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) : null) }, this.primaryText))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "wm-modal-pss-footer"; }
|
|
33
33
|
static get originalStyleUrls() {
|