@watermarkinsights/ripple 5.30.0-alpha.3 → 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-52ab99e9.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/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.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.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.js +1 -1
- package/dist/collection/components/wm-search/wm-search.css +7 -6
- package/dist/collection/components/wm-search/wm-search.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +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 +3 -0
- 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.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/button.js +12 -0
- package/dist/esm/{app-globals-155835b9.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/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-7b3af4e4.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-9aecafc6.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-155835b9.js +0 -1
- package/dist/esm-es5/functions-cc58fbd9.js +0 -1
- package/dist/ripple/p-02727181.system.entry.js +0 -1
- package/dist/ripple/p-106b39bb.system.js +0 -1
- package/dist/ripple/p-13822149.system.js +0 -1
- package/dist/ripple/p-1a6b35e8.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-6946c33b.js +0 -1
- package/dist/ripple/p-82913757.entry.js +0 -1
- package/dist/ripple/p-88ad02cd.entry.js +0 -1
- package/dist/ripple/p-f5f3f89d.js +0 -1
|
@@ -13,22 +13,22 @@ export class PrivCalendar {
|
|
|
13
13
|
});
|
|
14
14
|
this.previousMonthButtonLabel = intl.formatMessage({
|
|
15
15
|
id: "date.selectPreviousMonth",
|
|
16
|
-
defaultMessage: "
|
|
16
|
+
defaultMessage: "Previous month",
|
|
17
17
|
description: "Calendar button",
|
|
18
18
|
});
|
|
19
19
|
this.previousYearButtonLabel = intl.formatMessage({
|
|
20
20
|
id: "date.selectPreviousYear",
|
|
21
|
-
defaultMessage: "
|
|
21
|
+
defaultMessage: "Previous year",
|
|
22
22
|
description: "Calendar button",
|
|
23
23
|
});
|
|
24
24
|
this.nextMonthButtonLabel = intl.formatMessage({
|
|
25
25
|
id: "date.selectNextMonth",
|
|
26
|
-
defaultMessage: "
|
|
26
|
+
defaultMessage: "Next month",
|
|
27
27
|
description: "Calendar button",
|
|
28
28
|
});
|
|
29
29
|
this.nextYearButtonLabel = intl.formatMessage({
|
|
30
30
|
id: "date.selectNextYear",
|
|
31
|
-
defaultMessage: "
|
|
31
|
+
defaultMessage: "Next year",
|
|
32
32
|
description: "Calendar button",
|
|
33
33
|
});
|
|
34
34
|
this.uid = generateId();
|
|
@@ -512,7 +512,7 @@ export class PrivCalendar {
|
|
|
512
512
|
this._focus.year.decrease(1);
|
|
513
513
|
}
|
|
514
514
|
this.announceMonthYear();
|
|
515
|
-
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("bottom
|
|
515
|
+
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("bottom", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("bottom", 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: () => {
|
|
516
516
|
if (this.view == "day") {
|
|
517
517
|
this._focus.month.increase(1);
|
|
518
518
|
}
|
|
@@ -520,7 +520,7 @@ export class PrivCalendar {
|
|
|
520
520
|
this._focus.year.increase(1);
|
|
521
521
|
}
|
|
522
522
|
this.announceMonthYear();
|
|
523
|
-
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("bottom
|
|
523
|
+
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("bottom", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("bottom", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" })), this.renderToggleButton()));
|
|
524
524
|
}
|
|
525
525
|
renderToggleButton() {
|
|
526
526
|
return (h("div", { class: "toggle-button" }, h("div", { class: "input-wrapper left" }, h("input", { type: "radio", id: `month-radio-${this.uid}`, "aria-label": intl.formatMessage({
|
|
@@ -552,11 +552,11 @@ export class PrivCalendar {
|
|
|
552
552
|
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))))));
|
|
553
553
|
}
|
|
554
554
|
render() {
|
|
555
|
-
return (h(Host, { key: '
|
|
555
|
+
return (h(Host, { key: '0d795a3a89b285d1e9b0bef0b68685e77eac947e', onMouseOut: (ev) => {
|
|
556
556
|
// @ts-ignore
|
|
557
557
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
558
558
|
this.outOfCal.emit();
|
|
559
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '
|
|
559
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: 'f60032e3d2b7b12df707a83f6963360496535e33', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: '67b0bbd84a5ce5922937fcd28e554b70cc963c01', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions), h("div", { key: 'b5adb35334738a308afd0d7e8ad3afa96ed8b493', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement)));
|
|
560
560
|
}
|
|
561
561
|
static get is() { return "priv-calendar"; }
|
|
562
562
|
static get originalStyleUrls() {
|
|
@@ -529,25 +529,25 @@ export class DateRange {
|
|
|
529
529
|
}
|
|
530
530
|
render() {
|
|
531
531
|
var _a, _b, _c, _d;
|
|
532
|
-
return (h(Host, { key: '9840d0cb5b3aff858d939fbe2d67dc1d51535c05', "aria-busy": "false" }, h("div", { key: '71e3eb8f71812140abc538cbfec3111c2e2b9cba', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: '094295f1471f1ba0eaea5c65617447efc5dca770', class: "range-wrapper cal", ref: (el) => (this.anchorEl = el) }, h("div", { key: '00bcfac555be41fe8b2f885e2a0335c8d41efd28', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: '
|
|
532
|
+
return (h(Host, { key: '9840d0cb5b3aff858d939fbe2d67dc1d51535c05', "aria-busy": "false" }, h("div", { key: '71e3eb8f71812140abc538cbfec3111c2e2b9cba', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: '094295f1471f1ba0eaea5c65617447efc5dca770', class: "range-wrapper cal", ref: (el) => (this.anchorEl = el) }, h("div", { key: '00bcfac555be41fe8b2f885e2a0335c8d41efd28', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: '1f23a2bb3163e550f9929be4dbd6335bf5bf6579', id: "startlabel", htmlFor: "start-date-input", class: "label" }, this.labelStart, this.requiredField && (h("span", { key: '40dc9394b28b616e1dbfdb028f504474e8576fce', "aria-hidden": "true", class: "required" }, "*")))), h("div", { key: '75addeddb3c54576c90fb9c6c662e525934f6166', class: "label-wrapper", id: "end-label-wrapper" }, h("label", { key: '3015302e413b2bd033dffb9edacc1ecb7c06fb68', id: "endlabel", htmlFor: "end-date-input", class: "label" }, this.labelEnd, this.requiredField && (h("span", { key: '6f27560f7730e1efc19c8f9f7b1845f7a4fc5489', "aria-hidden": "true", class: "required" }, "*")))), h("input", { key: 'a350aea0fa321f076f7b0258e6717b349f551813', disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "date-format-hint error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { key: 'f3d74eae497160213ac05d99467ab254d30167b1', id: "hyphen" }, "\u00A0-\u00A0"), h("input", { key: '4e77331018a0ce06846adae9ce01f0acd556dcd8', disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "date-format-hint error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '47f502431bd898d5baab11e483990585e49b648e', class: "toggle-wrapper", id: "toggle-wrapper" }, this.canOpen && (h("button", { key: 'b7dc42e4733418c6da7ecb5eae5a896ad0d92f4d', disabled: this.disabled, "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
533
533
|
id: "date.selectRange",
|
|
534
534
|
defaultMessage: "Select range",
|
|
535
535
|
description: "Button text for screen readers.",
|
|
536
|
-
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: '
|
|
536
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: '8fcd8c7cbaff39440838c15354de40ea79230dfd', class: "svg-icon svg-date" }), h("span", { key: '392288ecb5e6617395b306d9e7993ef41c9f27d2', class: "calendar", title: intl.formatMessage({
|
|
537
537
|
id: "date.calendarView",
|
|
538
538
|
defaultMessage: "Calendar View",
|
|
539
539
|
description: "Calendar button",
|
|
540
|
-
}) })))), h("div", { key: '
|
|
540
|
+
}) })))), h("div", { key: 'a88e17a38bbee302551a7abc458f9a387afe1d89', class: `popup-wrapper popup-range ${this.startCalEl && this.startCalEl.view}-view ${this.isExpanded ? "is-open" : ""} ${!this.hasAnchor && !this.isExpanded ? "hidden" : ""} ${(_b = (_a = this.fit) === null || _a === void 0 ? void 0 : _a.vertical) !== null && _b !== void 0 ? _b : ""} ${(_d = (_c = this.fit) === null || _c === void 0 ? void 0 : _c.horizontal) !== null && _d !== void 0 ? _d : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), popover: "auto",
|
|
541
541
|
// @ts-ignore -- onToggle is a valid ToggleEvent listener for popover elements
|
|
542
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '
|
|
542
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '968c8f59c78dc1358295d5f5a7db69952f31da35', class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.endCalEl.focusLastFocusable() }), h("priv-calendar", { key: '73c5f5df127cb560aeaf7131ce4ba6e167857693', ref: (el) => (this.startCalEl = el), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("priv-calendar", { key: 'f3177d31c0bcf97d010e16ee4f8ee43568fd28b2', ref: (el) => (this.endCalEl = el), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("div", { key: '278ae43445deae7239390b01f0a01c16f3fc0f17', class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.startCalEl.focusFirstFocusable() }))), h("div", { key: '2528c193f264b94886be679235595c69d081800c' }, h("div", { key: '4e9a81c12822d560cb0b949b2da38b6f26204c32', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '82603d1a7ed918904df6649f76549a41a644d2ed', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
543
543
|
id: "date.selectMonth",
|
|
544
544
|
defaultMessage: "Activate to select a month.",
|
|
545
545
|
description: "Calendar button",
|
|
546
|
-
})), h("div", { key: '
|
|
546
|
+
})), h("div", { key: '0c98b239ffa8a8f6f27a9eee4e302f8daddc4c89', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
547
547
|
id: "date.selectYear",
|
|
548
548
|
defaultMessage: "Activate to select a year.",
|
|
549
549
|
description: "Calendar button",
|
|
550
|
-
}))), h("div", { key: '
|
|
550
|
+
}))), h("div", { key: '13e1dc0b81ffedda3b7f6316ee07d2dc9a8712b9', id: "error", class: "error" }, this.errorMessage), h("span", { key: '5b8d811a975b5dec9e0e9e2c81bd56d5360f178a', id: "date-format-hint", class: "sr-only" }, this.dateFormat), h("div", { key: '0746adc5f997c314567c5f942de26216a449ce57', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
|
|
551
551
|
}
|
|
552
552
|
static get is() { return "wm-date-range"; }
|
|
553
553
|
static get encapsulation() { return "shadow"; }
|
|
@@ -329,25 +329,25 @@ export class DatePicker {
|
|
|
329
329
|
}
|
|
330
330
|
render() {
|
|
331
331
|
var _a, _b, _c, _d;
|
|
332
|
-
return (h(Host, { key: '
|
|
332
|
+
return (h(Host, { key: '1ae084fab8bf53b87d769a314f7e6173492d35bc', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'ff4180135e424dfdf985819781117277925cfd4e', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '62df8d9f5634d50508a7a0f47d3d9d6f3d0ad16f', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '3430b1340a0ba7355d4dc22a5bd02a800ffafa5f', id: "datepickerLabel", htmlFor: "date-input", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '625126eee314eb1ac24f82e2a7bc0e48abe8ad5d', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '39a8bc38fa6aad0a5cafd5fb3af8880229918384' }, h("div", { key: '861923fb1569879e5d8a2f593c6023f295d57e5e', class: "single-wrapper input", ref: (el) => (this.anchorEl = el) }, h("input", { key: 'aa8bf537a6c1e1d50157107a0392b90e984e6ca6', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "date-format-hint error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '7c26eb7e1a11ea1ee314ccbe9e1855f5cdd3b5ec', class: "container", id: "wm-container" }, this.canOpen && (h("button", { key: '734718b3ee64ab44fcf44f0ff34f2985f57ccf66', disabled: this.disabled, "aria-label": intl.formatMessage({
|
|
333
333
|
id: "date.selectDate",
|
|
334
334
|
defaultMessage: "Select date",
|
|
335
335
|
description: "Button text for screen readers.",
|
|
336
|
-
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: '
|
|
336
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: 'eea61f1c8f02f89cca36f8d51f1028f1bb1f5801', class: "svg-icon svg-date" }), h("span", { key: '7910f167d9343f53b8d1df37845179d3580483f1', class: "calendar", title: intl.formatMessage({
|
|
337
337
|
id: "date.calendarView",
|
|
338
338
|
defaultMessage: "Calendar View",
|
|
339
339
|
description: "Calendar button",
|
|
340
|
-
}) }))), h("div", { key: '
|
|
340
|
+
}) }))), h("div", { key: '9c82f780494e23aefa7e188e060c8243ef9d6e01', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.isExpanded ? "is-open" : ""} ${!this.hasAnchor && !this.isExpanded ? "hidden" : ""} ${(_b = (_a = this.fit) === null || _a === void 0 ? void 0 : _a.vertical) !== null && _b !== void 0 ? _b : ""} ${(_d = (_c = this.fit) === null || _c === void 0 ? void 0 : _c.horizontal) !== null && _d !== void 0 ? _d : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), popover: "auto",
|
|
341
341
|
// @ts-ignore -- onToggle is a valid ToggleEvent listener for popover elements
|
|
342
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '
|
|
342
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: 'dbdff9693acf1c80fc815d9ad734b009120d634e', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '6db36aebafb43d5a9fef8a108921b0a7baa5ae6b', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: '8b373c91819aedd18bd23086d286ba8409daa932', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: 'f77269cd2e7bce953622c574e9541eded807f708', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '0d5de891b42a3d0b4ac38efa02eb6323719d86a3', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
343
343
|
id: "date.selectMonth",
|
|
344
344
|
defaultMessage: "Activate to select a month.",
|
|
345
345
|
description: "Calendar button",
|
|
346
|
-
})), h("div", { key: '
|
|
346
|
+
})), h("div", { key: '8044eaab6e1ed7b14164ecbab8adccd9cf10a8e1', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
347
347
|
id: "date.selectYear",
|
|
348
348
|
defaultMessage: "Activate to select a year.",
|
|
349
349
|
description: "Calendar button",
|
|
350
|
-
})))), h("div", { key: '
|
|
350
|
+
})))), h("div", { key: '84e8a07316eb505d1efb41426681c1c50fc57d84', id: "error", class: "error" }, this.errorMessage), h("span", { key: 'eaadadc2b5f4d7665573feff2cce7509e306b07d', id: "date-format-hint", class: "sr-only" }, this.dateFormat), h("div", { key: 'dd22ed0f5451379701210d29c460d832c388ac0d', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
351
351
|
}
|
|
352
352
|
static get is() { return "wm-datepicker"; }
|
|
353
353
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'd1dc259bbc48591f82a0e44017349513b7e22f60', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '5ef4cd1533f03e47175ed6112996ba73a138aacd', 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: '53014694e7dc51fbfc4fe6da9abbf0749764b4a1' })), h("div", { key: 'f3e1bb6596bd0e656eb045c5a62dad39ee266985', 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: '7e8ed5b276c45f62f8d92521e65b6b6dded568db', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '8712a1df1e10912a4e69b6584b1f47670f9fe0ef', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '6a4e9d87422861362ac87b92703dd094748da7e9', class: "label-wrapper" }, h("label", { key: 'e27736516799cf708681ee19eafd179094dd5096', 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.labelPosition !== "none" && this.requiredField && (h("span", { key: '
|
|
296
|
+
this.labelPosition !== "none" && this.requiredField && (h("span", { key: '0d6e9bc7134d9ce46d53813067eeef7f2af50e81', class: "required" }, h("span", { key: 'a4dd0ef025cf32566f863ce0119e72259d9ca50e', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '8169eaa0d995f90e49e5beb9c66dbac4cf93cc6d', "aria-hidden": "true" }, "*")))), h("div", { key: 'a84486ea919cc9cf713c3f98322b6f8f10e91e84', class: "button-wrapper" }, h("button", Object.assign({ key: 'd8605fbcab85f7c15cb030214e599654a3bbeb5e' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: 'ce7182acce7ac9f9bf4259fc73155ec1b8b765a2', class: "overflowcontrol" }, h("span", { key: 'dcda39e2afe152b5c3a75d92e9795f4a4fe93858', class: "button-text" }, this.renderButtonText())), h("div", { key: '8061497676ac1e2c4075f93416663f09b8687ff4', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '4a234681f6ccaf3860e46f193855b56e46e2b221', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '4a73cad886a38ba1674241b0a5147d3941c4f97e', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.renderClearSelectionButton(), h("div", { key: '4660e100c2e0c5291cced7a26a58143a25852f0a', 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: 'cd880112ee35cdc1a2a3dafa210db9837426fc47', class: `option-list-wrapper ${this.isGroupExpanded ? "" : "hidden"}` }, h("slot", { key: 'f617faa2bbb0f34e500ec103704d3d1298d3f08d' }))), h("div", { key: '0020de125ad2ada89d5f0b38e3af6396879b4de6', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: 'ecc4b501c84e72461319863f4e6b5c6afc3aa944', 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: 'f0aab9a65cc5d21105c75bdc3768e0076123c0c8' }, h("div", { key: '23429cfad03b7026205ed0aef92973353d3ccff0', class: `list-wrapper` }, h("priv-option-list", { key: '6d8d1ea6e0ab9394bec5f4cf5423941fd9979332', 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: 'e01aeec2a2c3cd346f821c1fe46d7e77944e4f98' })))));
|
|
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: 'bcabbcc25798f589af99a47142426ed517e1951f', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '83c81f098705c2ef5b6b2b374cc5d680ec78e2af', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '4cc738837041f134ef4d6ac1f541b8b0409813c6', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '44b3d931ed548dc841033ebf4757eb400773a3a4', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '25a0ecb424a65a7d6c878ad65848ae5270ac563f', class: "sr-only" }, this.el.textContent)), h("div", { key: '4e25dd1f8e9ae5767123d136874ec1e40474c0fb', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -323,14 +323,14 @@ export class Select {
|
|
|
323
323
|
}
|
|
324
324
|
render() {
|
|
325
325
|
const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
|
|
326
|
-
return (h(Host, { key: '
|
|
326
|
+
return (h(Host, { key: '9a7eaa936f3f0723a852f780b706ce95dc83641a', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '4ab274d8cf13b0b8702928766bcaae20fa54216e', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '983713098202b6b9774ecabdbe56a43fe21f8938', class: "label-wrapper" }, h("label", { key: '8f79bf97083e3348ef10b15b8637e501915817b2', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
327
327
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
328
|
-
this.labelPosition !== "none" && this.requiredField && (h("span", { key: '
|
|
328
|
+
this.labelPosition !== "none" && this.requiredField && (h("span", { key: 'f8fd8c444254d6588b010277684824a4f61bd0c7', class: "required" }, h("span", { key: '4bdbbded3292fa0a7d8ac7a7a14e63c4fa06a0bf', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '6e28deddff56fc2009fdc7b7610c1f379b0e958a', "aria-hidden": "true" }, "*")))), h("div", { key: '47f1f1d2d62006f117d0be49bfccaaee71e91b76', class: "button-wrapper" }, h("button", { key: '9803fc04172c3c85241891b1abd5dedcc39d8db7', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "info error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'e5a794d58c1115eaeabad64349aa763b880d8650', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'be25d6a9086a68305f23604395897d8ecb19af01', class: "button-text" }, this.setButtonText()), showSubinfo && h("span", { key: '09e34ec7ac74982b1f6c1db55b876d4a72256446', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '75b86a8c694a6bb3e5e92744935242727d2233a7', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '365885ab0546940f1ac4970894066beddf59ac42', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'fd952f83012203e7eaba6fcb8a83b053b5b17a28',
|
|
329
329
|
// is-open is for the CSS transition in modern browsers
|
|
330
330
|
// hidden is to wait for position calculations in Firefox
|
|
331
331
|
class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
|
|
332
332
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
333
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '
|
|
333
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '54216ae45b02cab8b403fe30f0c32814e5085f3a', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
|
|
334
334
|
this.dropdownEl.hidePopover();
|
|
335
335
|
}, onOptionListAllSelected: () => {
|
|
336
336
|
this.returnFocus = true;
|
|
@@ -338,7 +338,7 @@ export class Select {
|
|
|
338
338
|
}, onOptionListAllDeselected: () => {
|
|
339
339
|
this.returnFocus = true;
|
|
340
340
|
this.wmSelectAllDeselected.emit();
|
|
341
|
-
} }, h("slot", { key: '
|
|
341
|
+
} }, h("slot", { key: 'defde80bf2e3e435fccfda6b910a0d53f4df9989' }))), this.info && (h("div", { key: '464984b66832d1c978df56c53dc4099a671d75c5', class: "info" }, this.info)), h("div", { key: '3a63d5293c2c97f04bddc39a2fcf5181a245f2a3', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'a9a47c2c45f0ab1149919504b9787378ccedc3de', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
342
342
|
}
|
|
343
343
|
static get is() { return "wm-select"; }
|
|
344
344
|
static get encapsulation() { return "shadow"; }
|
|
@@ -335,7 +335,7 @@ export class ActionMenu {
|
|
|
335
335
|
return null;
|
|
336
336
|
}
|
|
337
337
|
render() {
|
|
338
|
-
return (h(Host, { key: '
|
|
338
|
+
return (h(Host, { key: '089e41398162bb653228788b4317049cde90677a', onBlur: () => this.close(false) }, h("div", { key: '8bf71c94ed904f5c4308b30aaba78910622918ec', class: getTextDir() }, h("button", { key: 'e907d5dbb4c76d9c1dcc4099b3f79faec27f4bdd', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
|
|
339
339
|
? this.labelForIdenticalButtons || this.tooltip
|
|
340
340
|
: this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
|
|
341
341
|
showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing &&
|
|
@@ -343,9 +343,9 @@ export class ActionMenu {
|
|
|
343
343
|
showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
|
|
344
344
|
hideTooltip();
|
|
345
345
|
this.handleButtonBlur(ev);
|
|
346
|
-
} }, this.actionMenuType === "icon" && (h("span", { key: '
|
|
346
|
+
} }, this.actionMenuType === "icon" && (h("span", { key: 'bd615c986c40863c73a2ec9f060fc5b596e7d64f', class: "svg-icon svg-more-options", style: { "--icon-size": "24px" } })), this.actionMenuType !== "icon" && h("span", { key: '27ad43a2bc951784d313f08b210c1092f2adda55', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: '54184d0f5faa1bd80eddc76127d4173f3dacb7ca', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: '7f34d1d1527b5b65f512fe636aa243ef06c2ae61', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", ref: (el) => (this.dropdownEl = el),
|
|
347
347
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
348
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '
|
|
348
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: 'de4af1e89a98621b4093089e70f7b0c02b759cb2' })))));
|
|
349
349
|
}
|
|
350
350
|
static get is() { return "wm-action-menu"; }
|
|
351
351
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,6 +18,8 @@ export class Button {
|
|
|
18
18
|
this.textWrap = true;
|
|
19
19
|
this.customBackground = undefined;
|
|
20
20
|
this.isSubmit = false;
|
|
21
|
+
this.ariaLabelPassthrough = undefined;
|
|
22
|
+
this.ariaExpandedPassthrough = undefined;
|
|
21
23
|
this.isTabbing = false;
|
|
22
24
|
}
|
|
23
25
|
get isDisabled() {
|
|
@@ -27,6 +29,12 @@ export class Button {
|
|
|
27
29
|
get isTruncated() {
|
|
28
30
|
return !!this.buttonEl && this.buttonType === "textonly" && this.buttonEl.offsetWidth < this.buttonEl.scrollWidth;
|
|
29
31
|
}
|
|
32
|
+
get isAriaExpanded() {
|
|
33
|
+
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
34
|
+
if (this.ariaExpandedPassthrough === undefined)
|
|
35
|
+
return undefined;
|
|
36
|
+
return toBool(this.ariaExpandedPassthrough);
|
|
37
|
+
}
|
|
30
38
|
get hasTooltip() {
|
|
31
39
|
// tooltip is only rendered for icononly and navigational types, or if the button text is truncated
|
|
32
40
|
return ["icononly", "navigational", "icononly-ai", "navigational-ai"].includes(this.buttonType) || this.isTruncated;
|
|
@@ -159,37 +167,37 @@ export class Button {
|
|
|
159
167
|
name: "--ai-gradient-start",
|
|
160
168
|
syntax: "<color>",
|
|
161
169
|
inherits: false,
|
|
162
|
-
initialValue: "#2779C8"
|
|
170
|
+
initialValue: "#2779C8",
|
|
163
171
|
});
|
|
164
172
|
CSS.registerProperty({
|
|
165
173
|
name: "--ai-gradient-end",
|
|
166
174
|
syntax: "<color>",
|
|
167
175
|
inherits: false,
|
|
168
|
-
initialValue: "#6259C4"
|
|
176
|
+
initialValue: "#6259C4",
|
|
169
177
|
});
|
|
170
178
|
CSS.registerProperty({
|
|
171
179
|
name: "--secondary-button-fill",
|
|
172
180
|
syntax: "<color>",
|
|
173
181
|
inherits: false,
|
|
174
|
-
initialValue: "#FFFFFF"
|
|
182
|
+
initialValue: "#FFFFFF",
|
|
175
183
|
});
|
|
176
184
|
CSS.registerProperty({
|
|
177
185
|
name: "--wmbutton-percent-1",
|
|
178
186
|
syntax: "<percentage>",
|
|
179
187
|
inherits: false,
|
|
180
|
-
initialValue: "0%"
|
|
188
|
+
initialValue: "0%",
|
|
181
189
|
});
|
|
182
190
|
CSS.registerProperty({
|
|
183
191
|
name: "--wmbutton-percent-2",
|
|
184
192
|
syntax: "<percentage>",
|
|
185
193
|
inherits: false,
|
|
186
|
-
initialValue: "70.19%"
|
|
194
|
+
initialValue: "70.19%",
|
|
187
195
|
});
|
|
188
196
|
CSS.registerProperty({
|
|
189
197
|
name: "--wmbutton-percent-3",
|
|
190
198
|
syntax: "<percentage>",
|
|
191
199
|
inherits: false,
|
|
192
|
-
initialValue: "-50%"
|
|
200
|
+
initialValue: "-50%",
|
|
193
201
|
});
|
|
194
202
|
}
|
|
195
203
|
catch (e) {
|
|
@@ -214,6 +222,8 @@ export class Button {
|
|
|
214
222
|
this.ariaPopup = !!this.el.getAttribute("aria-haspopup");
|
|
215
223
|
}
|
|
216
224
|
getAriaLabel() {
|
|
225
|
+
if (this.ariaLabelPassthrough)
|
|
226
|
+
return this.ariaLabelPassthrough;
|
|
217
227
|
if (this.buttonType === "icononly" ||
|
|
218
228
|
this.buttonType === "navigational" ||
|
|
219
229
|
this.buttonType === "icononly-ai" ||
|
|
@@ -246,7 +256,7 @@ export class Button {
|
|
|
246
256
|
}
|
|
247
257
|
}
|
|
248
258
|
render() {
|
|
249
|
-
return (h(Host, { key: '
|
|
259
|
+
return (h(Host, { key: 'bfc5c1c1b69619258f1a15003de34a9884f5b09e', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '647328418473ec98db1fff54403a5915a8354668', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-expanded": this.isAriaExpanded !== undefined ? this.isAriaExpanded.toString() : undefined, "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.renderIcon(), !this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly") && (h("span", { key: '1f27aeed2c3e7f87d326c6da318f08be083c873e', class: "button-text" }, h("slot", { key: '6cce46f476c7d20aa3c48fa1e87edd495398d5c3' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: '305255c0423d2971932f3f8ccc2170075aa4dd53', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
250
260
|
}
|
|
251
261
|
static get is() { return "wm-button"; }
|
|
252
262
|
static get encapsulation() { return "shadow"; }
|
|
@@ -501,6 +511,40 @@ export class Button {
|
|
|
501
511
|
"attribute": "is-submit",
|
|
502
512
|
"reflect": false,
|
|
503
513
|
"defaultValue": "false"
|
|
514
|
+
},
|
|
515
|
+
"ariaLabelPassthrough": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "string",
|
|
520
|
+
"resolved": "string | undefined",
|
|
521
|
+
"references": {}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "Sets the button's `aria-label`. Takes priority over `label-for-identical-buttons` and over\nthe label automatically derived from `tooltip` for `icononly` and `navigational` buttons. Use\nthis prop instead of setting `aria-label` directly on `<wm-button>`."
|
|
528
|
+
},
|
|
529
|
+
"attribute": "aria-label-passthrough",
|
|
530
|
+
"reflect": false
|
|
531
|
+
},
|
|
532
|
+
"ariaExpandedPassthrough": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"mutable": false,
|
|
535
|
+
"complexType": {
|
|
536
|
+
"original": "boolean",
|
|
537
|
+
"resolved": "boolean | undefined",
|
|
538
|
+
"references": {}
|
|
539
|
+
},
|
|
540
|
+
"required": false,
|
|
541
|
+
"optional": true,
|
|
542
|
+
"docs": {
|
|
543
|
+
"tags": [],
|
|
544
|
+
"text": "Sets the button's `aria-expanded` attribute. Use on buttons that toggle a disclosure region,\nmenu, popover, or dialog. Use this prop instead of setting `aria-expanded` directly on\n`<wm-button>`."
|
|
545
|
+
},
|
|
546
|
+
"attribute": "aria-expanded-passthrough",
|
|
547
|
+
"reflect": false
|
|
504
548
|
}
|
|
505
549
|
};
|
|
506
550
|
}
|
|
@@ -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: 'e825957afa878743760074bf8a75afc943432249', 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: '85c0c57f99ff0d6b1a3bee24b63724853f37f2b2', role: "list", class: "list-wrapper" }, h("slot", { key: 'a05f7e5ebb27e57a23713a7e029c0bdb18d89286' })));
|
|
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: 'edef60d2bbbed2d457e1cc1b85aa3f6381084d5b' }, h("dialog", { key: 'be1c6a36c8bd59cdf45590402d24ba94271ada78', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '115b32676ca1215698eeaccac059a1730a65e16b', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '45a0bc9e0c3366d2e35409712cc4f02566659373', class: "flyout-content" }, h("slot", { key: '4613ce4d6cac4126bb70ab6b0301b68294f0244f' })), this.renderFooter(), h("div", { key: '3646f8d1604cfdbdeb0ce3872431473943978ecb', 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: 'bce3b3c4252340f54f70ce0090ee9b43601338b3', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'eb078f570551eef008b151c6e109ab53bc2e6721', class: "label-wrapper" }, h("label", { key: '5e7890d8802f09854e353648f5e51852ec25f36a', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '29b03586a3302abb855c34740f44cb8331c433d5', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: 'c8fda1e852259ceeac78507cc751ff79f1573533', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '564f93368ac8a28d0bb91adc0d97e2e97d20cb21', class: "inner-wrapper" }, h("div", { key: 'ebc9be3527d6a264d4cb90bf59a51999aaf658ad', class: "text-after-wrapper" }, h("div", { key: '9f22cd67d191367ab015f1f7b18f40cd1af0296a', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '4113a8907719fb47d4cf2965c1c212d206ae1a3b', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: 'eed896950ced5aebfad101ec6559ebfd0e84e477', 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: '81a4a5fb4967223523b91e63775b8b4a30d951f4', 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: '9c484c909d8f1097d7033576fa9f2d7b655ccf0c', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '8957eec57120ea823ecb2c0e2f6187ff7302a487', id: "info", class: "info" }, this.info)), h("div", { key: '1d9e53cc2f7c548ed8c1bafeb95da0a98eef07eb', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '88d7f2e6e22166d1f57e8f434436c065fb5aca89', 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"; }
|
|
@@ -95,7 +95,7 @@ export class Menuitem {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '3576abf0e512b2088c08a13a9b0da7be22fc4604', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '5ee18f1dc5bc3ce1498db2038d6e21ed9abeb951', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '1eb8c3e8db9dee82803e458dce83ea26314d454f', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "wm-menuitem"; }
|
|
101
101
|
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: 'd271a1ae0932d3d178fbc2963a022569304ce00c', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '9b9c1b5bd49ff76b6334e60bc5ada6b311913644', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '7741ec8fe680ddf5fb0aba02e894b2c3138727d1', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '35d73c0fe78849cf0ff55a33f94c69fa126844a9', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '6c322386f313e52a76fdafe0a7f56f480309b240', "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: 'b68657ee6be25bb1acf42a1f2ee3c3bf907b82ec' }, h("div", { key: '1cc9bff33ede81baf02895c05eda31be8902705e', class: "wm-wrapper" }, h("div", { key: '079e8e5ed17ace20380cbe720d22a58a125a52c1' }, h("h2", { key: '7d50e7cda2fff6ddb16c4cd98de0e8b5fe1df786', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '68e79ac15c7bfb59754694b5033e9a115fbed6b2', class: "subtitle" }, this.subheading))), h("wm-button", { key: '258bc2a94df987545ec32f46da2903f97dd8bf99', "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() {
|
|
@@ -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() {
|