@watermarkinsights/ripple 5.30.0-alpha.4 → 5.30.0
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-33a95391.js → app-globals-f310dc82.js} +1 -1
- package/dist/cjs/{chartFunctions-fea69eeb.js → chartFunctions-351edf56.js} +1 -1
- package/dist/cjs/{functions-ac930ffe.js → functions-05cd64e3.js} +9 -9
- package/dist/cjs/{intl-d174fb3c.js → intl-140f6bea.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +9 -9
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +1 -1
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +1 -1
- 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 +5 -5
- package/dist/cjs/wm-button.cjs.entry.js +18 -8
- package/dist/cjs/wm-chart-bar.cjs.entry.js +3 -3
- package/dist/cjs/wm-chart-column.cjs.entry.js +3 -3
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +7 -7
- package/dist/cjs/wm-datepicker.cjs.entry.js +7 -7
- 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 +6 -6
- package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- 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 +7 -7
- package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
- 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 +4 -4
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/wm-tag-input.cjs.entry.js +24 -17
- 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 +4 -4
- package/dist/collection/components/datepickers/datepicker.css +0 -31
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +8 -8
- package/dist/collection/components/datepickers/wm-date-range.js +6 -6
- package/dist/collection/components/datepickers/wm-datepicker.js +6 -6
- 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 +4 -4
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +3 -3
- package/dist/collection/components/wm-button/wm-button.js +51 -7
- 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.css +0 -31
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -31
- 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 +0 -31
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.css +0 -36
- package/dist/collection/components/wm-search/wm-search.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -31
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -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.css +4 -2
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +24 -15
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -31
- 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 +0 -31
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/button.js +12 -0
- package/dist/esm/{app-globals-672c8a7d.js → app-globals-0d90343d.js} +1 -1
- package/dist/esm/{chartFunctions-bae65d16.js → chartFunctions-295d929a.js} +1 -1
- package/dist/esm/{functions-cc58fbd9.js → functions-438e60c4.js} +9 -9
- package/dist/esm/{intl-9c28b1b5.js → intl-25f6dfb9.js} +1 -1
- package/dist/esm/loader.js +2 -2
- 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 +9 -9
- package/dist/esm/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm/priv-chart-popover_2.entry.js +1 -1
- 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 +5 -5
- package/dist/esm/wm-button.entry.js +18 -8
- package/dist/esm/wm-chart-bar.entry.js +3 -3
- package/dist/esm/wm-chart-column.entry.js +3 -3
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +7 -7
- package/dist/esm/wm-datepicker.entry.js +7 -7
- 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 +6 -6
- package/dist/esm/wm-navigation_3.entry.js +6 -6
- package/dist/esm/wm-navigator.entry.js +1 -1
- 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 +7 -7
- package/dist/esm/wm-pagination.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/wm-tab-item_3.entry.js +7 -7
- package/dist/esm/wm-tag-input.entry.js +25 -18
- 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 +4 -4
- package/dist/esm-es5/app-globals-0d90343d.js +1 -0
- package/dist/esm-es5/{chartFunctions-bae65d16.js → chartFunctions-295d929a.js} +1 -1
- package/dist/esm-es5/functions-438e60c4.js +1 -0
- package/dist/esm-es5/{intl-9c28b1b5.js → intl-25f6dfb9.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-column.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-4eb982c6.system.entry.js → p-02c8bf15.system.entry.js} +1 -1
- package/dist/ripple/{p-e9a8f44c.entry.js → p-05dae6a0.entry.js} +1 -1
- package/dist/ripple/p-065b0134.entry.js +1 -0
- package/dist/ripple/{p-16634457.system.entry.js → p-09a44b14.system.entry.js} +1 -1
- package/dist/ripple/{p-88aa2b90.entry.js → p-09d5381c.entry.js} +1 -1
- package/dist/ripple/{p-67d8977e.system.entry.js → p-0db033c3.system.entry.js} +1 -1
- package/dist/ripple/{p-97ef6cea.system.entry.js → p-0feaaae9.system.entry.js} +1 -1
- package/dist/ripple/{p-b7a1fda2.system.entry.js → p-10aea5ee.system.entry.js} +1 -1
- package/dist/ripple/{p-c17b8d20.entry.js → p-131d57c3.entry.js} +1 -1
- package/dist/ripple/p-178ba906.js +1 -0
- package/dist/ripple/p-1f051611.system.js +1 -0
- package/dist/ripple/{p-904fa178.entry.js → p-1f79c42d.entry.js} +1 -1
- package/dist/ripple/{p-62481831.system.entry.js → p-1fc894ac.system.entry.js} +1 -1
- package/dist/ripple/p-210773eb.entry.js +1 -0
- package/dist/ripple/{p-76c95756.entry.js → p-227b0af9.entry.js} +1 -1
- package/dist/ripple/{p-3a08cf7c.system.entry.js → p-28b8a12e.system.entry.js} +1 -1
- package/dist/ripple/{p-f609118b.entry.js → p-2a03f658.entry.js} +1 -1
- package/dist/ripple/p-2f297bf8.js +1 -0
- package/dist/ripple/{p-d022520e.system.entry.js → p-332a3e3d.system.entry.js} +1 -1
- package/dist/ripple/{p-880a9ff7.entry.js → p-39bac42a.entry.js} +1 -1
- package/dist/ripple/{p-57f49361.entry.js → p-3bd8537c.entry.js} +1 -1
- package/dist/ripple/{p-a4bf0458.entry.js → p-3f69041f.entry.js} +1 -1
- package/dist/ripple/{p-e0ee2cea.system.entry.js → p-40e8071c.system.entry.js} +1 -1
- package/dist/ripple/{p-3617a99d.system.entry.js → p-444feb7d.system.entry.js} +1 -1
- package/dist/ripple/{p-f9fd5721.entry.js → p-4533241f.entry.js} +1 -1
- package/dist/ripple/{p-1a5be7f7.entry.js → p-463be5be.entry.js} +1 -1
- package/dist/ripple/{p-f674eef4.system.entry.js → p-4e7ae2c5.system.entry.js} +1 -1
- package/dist/ripple/{p-4ac7f6fc.entry.js → p-4f53544d.entry.js} +1 -1
- package/dist/ripple/{p-c5f150f4.system.entry.js → p-503330c1.system.entry.js} +1 -1
- package/dist/ripple/{p-b0f024ba.entry.js → p-5173359e.entry.js} +1 -1
- package/dist/ripple/{p-7d7623c3.js → p-5afc108c.js} +1 -1
- package/dist/ripple/{p-3c41157e.system.entry.js → p-5f092b39.system.entry.js} +1 -1
- package/dist/ripple/{p-62cfe06e.entry.js → p-6479b06b.entry.js} +1 -1
- package/dist/ripple/{p-474310b4.entry.js → p-680f5703.entry.js} +1 -1
- package/dist/ripple/p-6a7b26a1.system.js +1 -0
- package/dist/ripple/{p-8a6e13d9.entry.js → p-6de83c6f.entry.js} +1 -1
- package/dist/ripple/{p-a42960e1.system.entry.js → p-6f2d3297.system.entry.js} +1 -1
- package/dist/ripple/{p-a5d0d757.entry.js → p-709d1765.entry.js} +1 -1
- package/dist/ripple/{p-2970732e.system.entry.js → p-7ca0bb68.system.entry.js} +1 -1
- package/dist/ripple/{p-300cabee.entry.js → p-84e04896.entry.js} +1 -1
- package/dist/ripple/{p-628fd7bc.system.entry.js → p-86148143.system.entry.js} +1 -1
- package/dist/ripple/{p-c1419735.entry.js → p-8e6e868a.entry.js} +1 -1
- package/dist/ripple/{p-19ff9af0.entry.js → p-928b3e5e.entry.js} +1 -1
- package/dist/ripple/{p-1d64a21b.system.js → p-956cb6a9.system.js} +1 -1
- package/dist/ripple/{p-25f3270d.entry.js → p-9a5d11cb.entry.js} +1 -1
- package/dist/ripple/{p-72b7a4fa.system.entry.js → p-9d345fc7.system.entry.js} +1 -1
- package/dist/ripple/{p-d587a3da.system.entry.js → p-a0aba3e0.system.entry.js} +1 -1
- package/dist/ripple/{p-2936c3cb.system.entry.js → p-a3dd5204.system.entry.js} +1 -1
- package/dist/ripple/{p-ab3789d4.system.entry.js → p-a5a165c6.system.entry.js} +1 -1
- package/dist/ripple/{p-94c1096c.system.entry.js → p-a6aef87d.system.entry.js} +1 -1
- package/dist/ripple/{p-aadbb9f7.system.entry.js → p-a6ef995c.system.entry.js} +1 -1
- package/dist/ripple/{p-3dc29683.system.entry.js → p-a7e637a5.system.entry.js} +1 -1
- package/dist/ripple/{p-599dd379.system.entry.js → p-aafced54.system.entry.js} +1 -1
- package/dist/ripple/{p-58ccc222.system.entry.js → p-b11abb0d.system.entry.js} +1 -1
- package/dist/ripple/{p-f4260538.system.entry.js → p-b1924539.system.entry.js} +1 -1
- package/dist/ripple/{p-e5edae54.system.entry.js → p-b654743f.system.entry.js} +1 -1
- package/dist/ripple/{p-2ac68f77.system.entry.js → p-b974a535.system.entry.js} +1 -1
- package/dist/ripple/p-bb9f54cf.system.entry.js +1 -0
- package/dist/ripple/{p-6698e57e.entry.js → p-bd37dd6f.entry.js} +1 -1
- package/dist/ripple/{p-55555920.entry.js → p-bdb10d37.entry.js} +1 -1
- package/dist/ripple/{p-0431bb7a.entry.js → p-bf3eef42.entry.js} +1 -1
- package/dist/ripple/{p-3de3b34d.js → p-bff5c1d5.js} +1 -1
- package/dist/ripple/{p-4c813bbc.system.entry.js → p-c04d0eeb.system.entry.js} +1 -1
- package/dist/ripple/{p-5a64ca98.entry.js → p-c1abc58e.entry.js} +1 -1
- package/dist/ripple/{p-6ff3f70a.entry.js → p-cc028323.entry.js} +1 -1
- package/dist/ripple/{p-e180c6ff.entry.js → p-d05b7cd3.entry.js} +1 -1
- package/dist/ripple/p-d55bd2b9.entry.js +1 -0
- package/dist/ripple/{p-e28ac2de.entry.js → p-dab54a9d.entry.js} +1 -1
- package/dist/ripple/{p-84802e9c.system.entry.js → p-dbdae848.system.entry.js} +1 -1
- package/dist/ripple/{p-274592b5.system.entry.js → p-df9d5b14.system.entry.js} +1 -1
- package/dist/ripple/{p-4e8ac9fd.system.entry.js → p-e0c0e8b0.system.entry.js} +1 -1
- package/dist/ripple/{p-050aeacd.entry.js → p-e1a6ee77.entry.js} +1 -1
- package/dist/ripple/{p-7c3dec23.system.js → p-e6704efd.system.js} +1 -1
- package/dist/ripple/{p-c39e9f51.system.entry.js → p-e78f9572.system.entry.js} +1 -1
- package/dist/ripple/{p-e2d01adf.entry.js → p-ee26ba53.entry.js} +1 -1
- package/dist/ripple/{p-f04cecce.system.entry.js → p-ee729037.system.entry.js} +1 -1
- package/dist/ripple/{p-d3f7034f.entry.js → p-f51404f5.entry.js} +1 -1
- package/dist/ripple/p-f7fc6350.system.js +1 -0
- package/dist/ripple/{p-78d02ad6.entry.js → p-f94af31c.entry.js} +1 -1
- package/dist/ripple/p-fb6aee09.entry.js +1 -0
- package/dist/ripple/{p-f1fe253f.system.entry.js → p-ff6fd274.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-button/wm-button.d.ts +13 -0
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +3 -2
- package/dist/types/components.d.ts +16 -0
- package/package.json +2 -2
- package/dist/esm-es5/app-globals-672c8a7d.js +0 -1
- package/dist/esm-es5/functions-cc58fbd9.js +0 -1
- package/dist/ripple/p-1a6b35e8.system.js +0 -1
- package/dist/ripple/p-2818d018.system.js +0 -1
- package/dist/ripple/p-356cc61e.entry.js +0 -1
- package/dist/ripple/p-36431bb7.entry.js +0 -1
- package/dist/ripple/p-392a9242.system.js +0 -1
- package/dist/ripple/p-6946c33b.js +0 -1
- package/dist/ripple/p-82913757.entry.js +0 -1
- package/dist/ripple/p-98d96bca.js +0 -1
- package/dist/ripple/p-cdeb3766.entry.js +0 -1
- package/dist/ripple/p-d66b977f.system.entry.js +0 -1
|
@@ -114,11 +114,11 @@ export class Modal {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (h("dialog", { key: '
|
|
117
|
+
return (h("dialog", { key: '6146ea9b86156f864e74e1329db5ff68ea725790', 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: '30f644962a0cb1b84eab05b334548f8ba5bad563', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
118
118
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
119
119
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
120
120
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
121
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
121
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '6adb6d32c0e2a6f40b0925be7135befe886e1656', class: "wm-tooltip" }), h("slot", { key: 'f3f7f22e4a59aa9477c2e93b8775b1e15c6d0340' }), h("div", { key: 'c77444dcd4f59ef2bc235821aa26615520fdb0fa', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
122
122
|
this.focusFirstElement.emit();
|
|
123
123
|
} })));
|
|
124
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: '2bd45880c74b9cb8c470a2983bf1d46b9acb61a5', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'ce2d231765d334b03d6db9753591e72abf7efe9d', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '87a85ac4aa5514082c701111a9ec850d71034236', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'fbf829d3fa6ddda8fd8e20a402089258a9065836', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '06ec8889dcbe183da08c77d35a9a0d37be53510d', "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() {
|
|
@@ -25,7 +25,7 @@ export class ModalPssHeader {
|
|
|
25
25
|
// this.headingElement.focus();
|
|
26
26
|
// }
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '8de5b12e5695d10dd613903f686539d743659fe9' }, h("div", { key: '64316a6b7e6f254013e99d19f805e2cd9cdd5fa9', class: "wm-wrapper" }, h("div", { key: '24d7e5322e51a03af815ca52d96f97fcc3c248ab' }, h("h2", { key: '77be37c5914b42f32d84c69c1a7129c77612a380', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '17b87f65f5ef154dd04f4e814b54db3c9fefb5c2', class: "subtitle" }, this.subheading))), h("wm-button", { key: 'cb32d3986b79bc75e14ae4cddaa96e8728117e29', "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() }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "wm-modal-pss-header"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -115,9 +115,9 @@ export class ModalPss {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'f88b5818e0bbd04790ebd3d2ad5ed7365cb4378e', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
|
|
119
119
|
this.focusLastElement.emit();
|
|
120
|
-
} }, h("div", { key: '
|
|
120
|
+
} }, h("div", { key: '716de7445a0492ff71faf681d58beb801eb985d4', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: '311087d52cee10763ed87f5532559dc7fc620a26', class: "sr-only", tabIndex: 0, onFocus: () => {
|
|
121
121
|
this.focusFirstElement.emit();
|
|
122
122
|
} })));
|
|
123
123
|
}
|
|
@@ -34,7 +34,7 @@ export class NavigationHamburger {
|
|
|
34
34
|
this.wmNavigationHamburgerClicked.emit();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'e5fb73423c0af009ee5408853227f9cbd27d0a58', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: 'c07546a67d2e470b7172485f02f2897af6730745', "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: 'a3ae264912ba81685737ee0f15459a21342b128c', class: "svg-icon svg-menu" }))));
|
|
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, { key: '
|
|
9
|
+
return (h(Host, { key: 'cae324324ba502c4e438ed7d95d05b03c6e0abc8', role: "listitem" }, h("a", { key: '357321484d6f9ca76ae76588de0e0245bc429278', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '0c12bdfbb8db550d99cee869e6238bc2f842753f', class: "icon", "aria-hidden": "true" }, h("slot", { key: 'ddd837246f782f9222e0f30d03a18e42d35221fa' })), h("div", { key: 'ca3a038c1b8c4e073fedb84f23a996c1e4556b59', 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, { key: '
|
|
99
|
+
return (h(Host, { key: '728e290bb93236f900b6cee0ab9a7a864bd514cf', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '3997c9b2967adc85b41afc834bcbbe3f4e5c8067', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: '960c41a5a0932757de5321ab2e21fe0dbad50f6e', class: "tray" }, h("div", { key: '6aaf6d8d88dbd243c0b84f11ce24d7f0202c6a70', class: "toggle-wrapper" }, h("wm-button", { key: 'e009a82b20fcd5ee7f7d045ba85e1a8265273f65', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "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", { key: '
|
|
101
|
+
} })), h("ul", { key: 'abf01dbc15485f42dfc2fa5c8f87a895d4451c8e', class: "navlist" }, h("slot", { key: 'cc42697807c886c6fbec7b1b446206caa41b34e7' }))), this.isCollapsible && (h("div", { key: '020a258359a5f27cc62a44fb229735ed752eae83', 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.css
CHANGED
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
}
|
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", { key: '
|
|
12
|
+
return (h("button", { key: 'adfd184468176b7b9c025b5e4db3c86a1e857b4b', "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", { key: '
|
|
19
|
+
return (h("div", { key: 'b79461e5967f3e75c8bb4d4c5e9e66d6b870c84b', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: '35f83b67f08a1d8fdc3aeaeba1acdef45e85fca1' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "priv-navigator-item"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host,
|
|
922
891
|
wm-pagination {
|
|
923
892
|
display: block;
|
|
@@ -204,7 +204,7 @@ export class Pagination {
|
|
|
204
204
|
render() {
|
|
205
205
|
return (
|
|
206
206
|
// do not render the component if there's only one page
|
|
207
|
-
this.totalItems > this.itemsPerPage && (h("nav", { key: '
|
|
207
|
+
this.totalItems > this.itemsPerPage && (h("nav", { key: '535581d117f47eb9bf29853901e80554e3f29ea9', "aria-label": `${this.label || this.defaultLabel}. ${this.getCurrentPagesInView()}. ${this.currentPageAnnouncement(this.currentPage)}` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: '571b1089d6fe9775168f48c69b489305b1142a77', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
208
208
|
}
|
|
209
209
|
static get is() { return "wm-pagination"; }
|
|
210
210
|
static get encapsulation() { return "shadow"; }
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
}
|
|
@@ -957,11 +926,6 @@
|
|
|
957
926
|
font-family: inherit;
|
|
958
927
|
font-size: 0.875rem;
|
|
959
928
|
}
|
|
960
|
-
@media only screen and (max-width: 768px) {
|
|
961
|
-
:host .wm-search-wrapper input {
|
|
962
|
-
height: 44px;
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
929
|
:host .wm-search-wrapper:focus-within {
|
|
966
930
|
outline: 2px solid var(--wmcolor-border-focus);
|
|
967
931
|
border-color: var(--wmcolor-border-focus);
|
|
@@ -168,10 +168,10 @@ export class Search {
|
|
|
168
168
|
* End search and find render helpers
|
|
169
169
|
*/
|
|
170
170
|
render() {
|
|
171
|
-
return (h(Host, { key: '
|
|
171
|
+
return (h(Host, { key: '7bfd505862c5bef72dc333bc22fb99c04c513b3f' }, h("div", { key: '9d7f4cf04c5655df0bf4d9697622182f1eb717c8', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: '88da025659c4c5f35ac3b4c7207ad734a115a85a', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
|
|
172
172
|
id: "search.typeToFilterResults",
|
|
173
173
|
defaultMessage: "Type to filter the results",
|
|
174
|
-
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '
|
|
174
|
+
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: 'c5834f5cc58a1fd6d7c6637604cbbb5a610e2476', class: "svg-icon svg-search" }), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '243438ee1d91d8875ec3014f6b17532a283e7cdf', 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()));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "wm-search"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -887,37 +887,6 @@
|
|
|
887
887
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z'/%3E%3C/svg%3E%0A");
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
/* --------------------------------------
|
|
891
|
-
1. Box-shadow
|
|
892
|
-
-------------------------------------- */
|
|
893
|
-
/* --------------------------------------
|
|
894
|
-
2. Border-radius
|
|
895
|
-
-------------------------------------- */
|
|
896
|
-
/* --------------------------------------
|
|
897
|
-
3. Transforms
|
|
898
|
-
-------------------------------------- */
|
|
899
|
-
/* --------------------------------------
|
|
900
|
-
4. Button Focus
|
|
901
|
-
-------------------------------------- */
|
|
902
|
-
/* --------------------------------------
|
|
903
|
-
5. Flex
|
|
904
|
-
-------------------------------------- */
|
|
905
|
-
/* --------------------------------------
|
|
906
|
-
7. Screen Reader Only
|
|
907
|
-
-------------------------------------- */
|
|
908
|
-
/* --------------------------------------
|
|
909
|
-
8. Label styles
|
|
910
|
-
this mixin includes all the styles for the label
|
|
911
|
-
+ flex rules on the parent container to switch between top and left position
|
|
912
|
-
+ srOnly when label is hidden
|
|
913
|
-
Assumes the following markup:
|
|
914
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
915
|
-
.wrapper is for the flex rules
|
|
916
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
917
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
918
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
919
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
920
|
-
-------------------------------------- */
|
|
921
890
|
:host * {
|
|
922
891
|
box-sizing: border-box;
|
|
923
892
|
margin: unset;
|
|
@@ -149,11 +149,11 @@ export class Snackbar {
|
|
|
149
149
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link), notification.newWindow && h("div", { class: "svg-icon svg-open-in-new" }))), (!notification.link && notification.action) && (h("button", { id: `action-${notification.id}`, class: "link", onClick: () => this.snackLinkClicked(notification), onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, notification.action))), h("button", { id: `close-button-${notification.id}`, "aria-label": this.closeSnackMessage, class: "closesnack", tabindex: notification.link || notification.action ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() }, h("div", { class: "svg-icon svg-close" }))), h("div", { class: "sr-only", tabindex: notification.link || notification.action ? 0 : -1, onFocus: () => (notification.link || notification.action) && this.snackDismissed(notification) })))));
|
|
150
150
|
}
|
|
151
151
|
render() {
|
|
152
|
-
return (h(Host, { key: '
|
|
152
|
+
return (h(Host, { key: '93b6fe6527a434f9639d914c5c835530144c60be' }, h("div", { key: '143acfd90a277c949e9ffbacbe5fc520572be1a7', ref: (el) => (this.snackAreaEl = el), class: {
|
|
153
153
|
"list-wrapper": true,
|
|
154
154
|
"user-is-tabbing": this.isTabbing,
|
|
155
155
|
empty: this.parsedNotifications.length == 0,
|
|
156
|
-
} }, this.renderSnackbars()), h("div", { key: '
|
|
156
|
+
} }, this.renderSnackbars()), h("div", { key: '44196aa826573f4515efbf23735a1e5f7d663aa6', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "wm-snackbar"; }
|
|
159
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,9 +27,9 @@ export class TabItem {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const isDark = this.parentTabList && this.parentTabList.customBackground == "dark";
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '71b3f6dac339c5ece826133f01d6d5f05089456a', role: "presentation" }, h("li", { key: '0823dff1b7394d6bbc34a7d0d932fd19d7c6c8d0', class: `tab-item ${isDark ? "dark" : ""}`, role: "presentation" }, h("a", { key: '9ad3118a0f6bf6741e73e18a3a12d435c4676619', class: `tab`, role: "tab", ref: (el) => (this.linkEl = el), id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1, onClick: this.tabClicked, onFocus: () => {
|
|
31
31
|
this.wmIntTabFocused.emit({ tabItem: this.el });
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: '64e9b75227c4294294635d49da0ad49b3c91d541' })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "wm-tab-item"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -257,15 +257,15 @@ export class TabList {
|
|
|
257
257
|
this.announcement = message;
|
|
258
258
|
}
|
|
259
259
|
render() {
|
|
260
|
-
return (h(Host, { key: '
|
|
260
|
+
return (h(Host, { key: 'e5437df047efe61428f2116cbcc9f94042dd84bc' }, h("div", { key: 'd933cd096869ca9d0808cbfcbacca30dfd89a1fc', class: "component-wrapper" }, h("wm-button", { key: '224781b9a7c43fa49ef403484416a6037190bb10', class: `left-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#previous", tooltip: intl.formatMessage({
|
|
261
261
|
id: "tabs.showPreviousTabs",
|
|
262
262
|
defaultMessage: "Show previous tabs",
|
|
263
263
|
description: "Tooltip for button scrolling tab group.",
|
|
264
|
-
}), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: '
|
|
264
|
+
}), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: '8e826993aa2b0387587357b43250e20bda02acdf', id: "tablist", ref: (el) => (this.tabContainerEl = el), class: `tabcontainer ${this.customBackground || ""} ${this.containerFadeLeft ? "fade-left" : ""} ${this.containerFadeRight ? "fade-right" : ""}`, role: "tablist", tabIndex: -1 }, h("slot", { key: 'c17a7bc0e8fa17e9142de78713cfffa5b340dbb1' })), h("wm-button", { key: '651170ba9e2b4cd4d91256386032a780bfa3cdf2', class: `right-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#next", tooltip: intl.formatMessage({
|
|
265
265
|
id: "tabs.showNextTabs",
|
|
266
266
|
defaultMessage: "Show next tabs",
|
|
267
267
|
description: "Tooltip for button scrolling tab group.",
|
|
268
|
-
}), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: '
|
|
268
|
+
}), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: '83f0f5c60bb02b59e0e163a626be41ac18f1c4e2', "aria-live": "assertive", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
269
269
|
}
|
|
270
270
|
static get is() { return "wm-tab-list"; }
|
|
271
271
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class TabPanel {
|
|
|
12
12
|
this.tabPanelLoaded.emit({ tabId: this.tabId });
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h(Host, { key: '
|
|
15
|
+
return h(Host, { key: 'd1c5920b5b91b671adb2f1e503a5b6f676fcca5e', role: "tabpanel", tabIndex: "-1", class: { "tab-hidden": !this.active } });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "wm-tab-panel"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -1021,7 +1021,6 @@
|
|
|
1021
1021
|
-moz-border-radius: 3px;
|
|
1022
1022
|
-ms-border-radius: 3px;
|
|
1023
1023
|
border-radius: 3px;
|
|
1024
|
-
overflow: clip;
|
|
1025
1024
|
}
|
|
1026
1025
|
:host .field-wrapper.focused {
|
|
1027
1026
|
outline: 2px solid var(--wmcolor-border-focus);
|
|
@@ -1040,6 +1039,7 @@
|
|
|
1040
1039
|
display: flex;
|
|
1041
1040
|
align-items: center;
|
|
1042
1041
|
justify-content: center;
|
|
1042
|
+
flex: 0 0 fit-content;
|
|
1043
1043
|
min-width: 5rem;
|
|
1044
1044
|
background-color: var(--wmcolor-taginput-charcount-background);
|
|
1045
1045
|
font-size: 0.875rem;
|
|
@@ -1058,12 +1058,14 @@
|
|
|
1058
1058
|
display: flex;
|
|
1059
1059
|
flex: 1;
|
|
1060
1060
|
justify-content: space-between;
|
|
1061
|
+
overflow: clip;
|
|
1062
|
+
border-radius: 2px;
|
|
1061
1063
|
}
|
|
1062
1064
|
:host .upper-row .svg-search {
|
|
1063
1065
|
--icon-size: 1.125rem;
|
|
1064
1066
|
flex-shrink: 0;
|
|
1065
1067
|
align-self: center;
|
|
1066
|
-
margin
|
|
1068
|
+
margin: 0.75rem 0.5rem 0.75rem 0.75rem;
|
|
1067
1069
|
color: var(--wmcolor-taginput-icon);
|
|
1068
1070
|
}
|
|
1069
1071
|
:host .lower-row {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { csvToArray, debounce, hideTooltip, intl, measureText, shouldOpenUp, showTooltip, truncateText, findPrev, findNext, } from "../../global/functions";
|
|
3
3
|
import { globalMessages } from "../../global/intl";
|
|
4
4
|
export class TagInput {
|
|
@@ -33,7 +33,7 @@ export class TagInput {
|
|
|
33
33
|
defaultMessage: "No results match your search.",
|
|
34
34
|
});
|
|
35
35
|
this.openUp = false;
|
|
36
|
-
this.
|
|
36
|
+
this.debouncedLayoutChange = debounce(() => this.handleLayoutChange(), 30);
|
|
37
37
|
this.label = undefined;
|
|
38
38
|
this.errorMessage = undefined;
|
|
39
39
|
this.info = undefined;
|
|
@@ -229,8 +229,7 @@ export class TagInput {
|
|
|
229
229
|
this.inputEl.focus();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
|
|
233
|
-
const resizeObserver = new ResizeObserver(() => this.debouncedUpdate());
|
|
232
|
+
const resizeObserver = new ResizeObserver(() => this.debouncedLayoutChange());
|
|
234
233
|
resizeObserver.observe(this.el);
|
|
235
234
|
const lockedTags = [];
|
|
236
235
|
const regularTags = [];
|
|
@@ -270,24 +269,27 @@ export class TagInput {
|
|
|
270
269
|
}
|
|
271
270
|
handleChangeAnnouncement(mutationRecord) {
|
|
272
271
|
const tagOptionEl = mutationRecord.target;
|
|
272
|
+
let message = null;
|
|
273
273
|
if (mutationRecord.type == "childList" && mutationRecord.removedNodes.length > 0) {
|
|
274
274
|
// announce deselection of user-added tag, whose element removal is picked up
|
|
275
|
-
this.
|
|
275
|
+
message = this.tagRemovedMessage(mutationRecord.removedNodes[0].textContent);
|
|
276
276
|
}
|
|
277
277
|
else if (mutationRecord.type == "attributes") {
|
|
278
278
|
const tagName = this.getTagName(tagOptionEl);
|
|
279
279
|
// announce selection or deselection of all kinds of tags
|
|
280
280
|
if (tagOptionEl.selected) {
|
|
281
|
-
|
|
281
|
+
message = this.tagAddedMessage(tagName);
|
|
282
282
|
if (this.tagLimitReached) {
|
|
283
|
-
|
|
283
|
+
message += ` ${this.maxTagsReachedMessage}`;
|
|
284
284
|
}
|
|
285
|
-
this.announce(changeAnnouncement);
|
|
286
285
|
}
|
|
287
286
|
else {
|
|
288
|
-
this.
|
|
287
|
+
message = this.tagRemovedMessage(tagName);
|
|
289
288
|
}
|
|
290
289
|
}
|
|
290
|
+
if (message) {
|
|
291
|
+
this.announce(message);
|
|
292
|
+
}
|
|
291
293
|
}
|
|
292
294
|
handleOptionListChange(record) {
|
|
293
295
|
const addedNodes = Array.from(record.addedNodes);
|
|
@@ -307,6 +309,10 @@ export class TagInput {
|
|
|
307
309
|
const deselOption = ev.target;
|
|
308
310
|
this.tagsList = this.tagsList.filter((t) => t != deselOption);
|
|
309
311
|
}
|
|
312
|
+
handleTagsListChange() {
|
|
313
|
+
// when tags are added or removed, input position and truncation needs to be recalculated
|
|
314
|
+
this.debouncedLayoutChange();
|
|
315
|
+
}
|
|
310
316
|
handleTagListChange(mutationRecord) {
|
|
311
317
|
const addedTags = Array.from(mutationRecord.addedNodes);
|
|
312
318
|
if (!!addedTags) {
|
|
@@ -335,8 +341,7 @@ export class TagInput {
|
|
|
335
341
|
}
|
|
336
342
|
}
|
|
337
343
|
}
|
|
338
|
-
|
|
339
|
-
this.positionInput();
|
|
344
|
+
handleLayoutChange() {
|
|
340
345
|
// check each tag if truncation is needed
|
|
341
346
|
this._tagEls.forEach((tag) => {
|
|
342
347
|
const textEl = tag.querySelector(".tag-text");
|
|
@@ -351,6 +356,7 @@ export class TagInput {
|
|
|
351
356
|
textEl.textContent = truncateText(textEl, this.getTagName(optionEl), rightBound - leftBound, 5);
|
|
352
357
|
}
|
|
353
358
|
});
|
|
359
|
+
this.positionInput();
|
|
354
360
|
}
|
|
355
361
|
createPlaceholderDefault(addNew, hasOptions) {
|
|
356
362
|
const addAndSearchPlaceholder = intl.formatMessage({
|
|
@@ -909,7 +915,7 @@ export class TagInput {
|
|
|
909
915
|
const classes = {
|
|
910
916
|
focused: !!this._focusedCell && cellId === this._focusedCell.id,
|
|
911
917
|
};
|
|
912
|
-
return (h("td", { id: cellId, class: classes, role: "gridcell", "aria-describedby": `${cellId}-description`, "aria-selected": o.selected ? "true" : "false", "aria-readonly": o.locked ? "true" : null, onMouseEnter: (ev) => this.handleCellMouseEnter(ev), onMouseLeave: () => hideTooltip() }, h("div", { class: "column-label" }, colHeaders[idx] || `Column ${idx + 1}`), h("div", { class: `cell-content-wrapper ${overflowRule}` }, o.locked && idx == 0 && h("div", { class: "svg-icon svg-locked" }), val), h("div", { class: "description", id: `${cellId}-description` }, o.locked ? globalMessages.locked : "")));
|
|
918
|
+
return (h("td", { id: cellId, key: cellId, class: classes, role: "gridcell", "aria-describedby": `${cellId}-description`, "aria-selected": o.selected ? "true" : "false", "aria-readonly": o.locked ? "true" : null, onMouseEnter: (ev) => this.handleCellMouseEnter(ev), onMouseLeave: () => hideTooltip() }, h("div", { class: "column-label" }, colHeaders[idx] || `Column ${idx + 1}`), h("div", { class: `cell-content-wrapper ${overflowRule}` }, o.locked && idx == 0 && h("div", { class: "svg-icon svg-locked" }), val), h("div", { class: "description", id: `${cellId}-description` }, o.locked ? globalMessages.locked : "")));
|
|
913
919
|
});
|
|
914
920
|
}
|
|
915
921
|
renderTableRow(o) {
|
|
@@ -918,7 +924,7 @@ export class TagInput {
|
|
|
918
924
|
locked: o.locked,
|
|
919
925
|
focused: this.focusedOption && o === this.focusedOption ? true : false,
|
|
920
926
|
};
|
|
921
|
-
return (h("tr", { id: o.id, class: classes, onClick: (ev) => this.handleOptionClick(ev) }, this.renderTableCells(o)));
|
|
927
|
+
return (h("tr", { id: o.id, key: o.id, class: classes, onClick: (ev) => this.handleOptionClick(ev) }, this.renderTableCells(o)));
|
|
922
928
|
}
|
|
923
929
|
renderListItem(o) {
|
|
924
930
|
if (!!this.inputEl) {
|
|
@@ -927,10 +933,10 @@ export class TagInput {
|
|
|
927
933
|
}
|
|
928
934
|
}
|
|
929
935
|
render() {
|
|
930
|
-
return (h("div", { key: '
|
|
936
|
+
return (h("div", { key: 'c638aeac0c2e0489bf71cd6173b2f90221f7a6ef', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '1484441e157e25cd9787023177a2a60ef3c424bc', class: "label-wrapper" }, h("label", { key: 'd03dc310d99b485cf7646f577812d8aea2c6bf3e', class: "label", htmlFor: "input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '5fa23daa6bc6c89d2b6872cb78c5b95fc00d143c', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '3782fc2fd78096ea7c97cdcb6a8f8097c10a7c03', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '4ead1f6246e4a20bf0031f9390da66619b1136d4', class: "upper-row" }, h("div", { key: '924ee6f8a8eef661d43ada82a2cd5b790661f1a3', class: "svg-icon svg-search" }), h("div", { key: 'e6e2cc491591c82a08436c9cec5e588a3a6c9e2c', class: `tags-and-input-wrapper` }, h("ul", { key: '30e763dadc1ae2c273053beb67964c45747ef0f6', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-labelledby": "sr-instructions", tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
931
937
|
this.focusedTagIndex = undefined;
|
|
932
938
|
this.handleBlur(ev);
|
|
933
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("div", { key: '
|
|
939
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("div", { key: 'ad6c4adcc53f4d54d48d018a236a326edf9f9a80', class: "sr-only", id: "sr-instructions" }, this.label, ". ", this.tagAreaInstructions), this.isDropdown && this.renderDropdownInput(), this.isTable && this.renderTableInput()), this.isDropdown && (h("div", { key: 'f44b7837eeebd3234f8fccde00491404c4e7baad', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: 'f952e64ce8f546c8d2ac2d560c377a8431f06b50', id: "info", class: "info-text" }, this.info)), h("div", { key: '5ac26d03049f7f302a7d678b76534339b33c1033', id: "error" }, this.errorMessage), h("div", { key: '27817f3f1e5555220d61e3719e16c492cfca3789', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
934
940
|
}
|
|
935
941
|
static get is() { return "wm-tag-input"; }
|
|
936
942
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1224,6 +1230,9 @@ export class TagInput {
|
|
|
1224
1230
|
static get elementRef() { return "el"; }
|
|
1225
1231
|
static get watchers() {
|
|
1226
1232
|
return [{
|
|
1233
|
+
"propName": "tagsList",
|
|
1234
|
+
"methodName": "handleTagsListChange"
|
|
1235
|
+
}, {
|
|
1227
1236
|
"propName": "errorMessage",
|
|
1228
1237
|
"methodName": "announceError"
|
|
1229
1238
|
}];
|
|
@@ -71,7 +71,7 @@ export class Textarea {
|
|
|
71
71
|
this.announcement = message;
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (h("div", { key: '
|
|
74
|
+
return (h("div", { key: '35c5048f918ab18bc0adc8223f2321e363bd12d6', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '856cc26989cc86d19274101b0a24827951dfe12a', class: "label-wrapper" }, h("label", { key: '28475801b5c51f4f92efa43a57b68baeb524b64b', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '90595c60a3cd63093fc2d8c342a1c496dfdb3f1e', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("span", { key: '1399946787ff019b38a5133cfffa48cab48f2acd', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '041cdc66b73a247dc0024a025955db41a84c8cef', class: "inner-wrapper" }, h("div", { key: 'b072be6d0a5637eaff95a11210e045931e28aead', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '51a70fd2d2814f66e8d2767b98a78bba9f1c201f', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '10e8dffe7fa9ca8a0f2ee1eae1cb64c269ffd525', id: "info", class: "info" }, this.info)), h("div", { key: '8f5a778b2f9d29650b74815b976b98b9eaff2cee', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'a1eb19abf2ac8e09bab23e66a52c3b6a0fa7d456', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "wm-textarea"; }
|
|
77
77
|
static get encapsulation() { return "shadow"; }
|