@watermarkinsights/ripple 5.10.0-11 → 5.10.0-13
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/README.md +3 -3
- package/dist/{esm/global-07352c64.js → cjs/app-globals-0caa3707.js} +10 -1
- package/dist/cjs/{chartFunctions-c4046c7a.js → chartFunctions-a3a08880.js} +3 -3
- package/dist/cjs/{functions-e24249e6.js → functions-5ac8a62f.js} +104 -7
- package/dist/cjs/index-788526f5.js +1859 -0
- package/dist/cjs/{intl-5aeba788.js → intl-57d1cfd1.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -5
- package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
- package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
- package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
- package/dist/cjs/priv-option-list.cjs.entry.js +5 -4
- package/dist/cjs/ripple.cjs.js +12 -11
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
- package/dist/cjs/wm-button.cjs.entry.js +5 -4
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +7 -6
- package/dist/cjs/wm-date-range.cjs.entry.js +9 -8
- package/dist/cjs/wm-datepicker.cjs.entry.js +9 -8
- package/dist/cjs/wm-file-list.cjs.entry.js +5 -4
- package/dist/cjs/wm-file.cjs.entry.js +14 -10
- package/dist/cjs/wm-input.cjs.entry.js +6 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-modal_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
- package/dist/cjs/wm-nested-select.cjs.entry.js +8 -7
- package/dist/cjs/wm-optgroup.cjs.entry.js +5 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
- package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
- package/dist/cjs/wm-search.cjs.entry.js +7 -6
- package/dist/cjs/wm-snackbar.cjs.entry.js +7 -6
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
- package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
- package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
- package/dist/cjs/wm-uploader.cjs.entry.js +8 -7
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +1 -1
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +17 -13
- package/dist/collection/components/datepickers/wm-datepicker.js +17 -13
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +7 -5
- 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 +2 -2
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.css +9 -6
- package/dist/collection/components/wm-file/wm-file.js +11 -8
- package/dist/collection/components/wm-file-list/wm-file-list.css +1 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.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 +2 -2
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.js +5 -4
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.css +1 -1
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/lang/missing.js +43 -43
- package/dist/collection/lang/piglatin.js +93 -93
- package/dist/{cjs/global-cb3446fa.js → esm/app-globals-7e0510ff.js} +7 -2
- package/dist/esm/{chartFunctions-5555bab0.js → chartFunctions-21d5a3d3.js} +3 -3
- package/dist/esm/{functions-8800c690.js → functions-f39e6177.js} +105 -8
- package/dist/esm/index-130e07bb.js +1828 -0
- package/dist/esm/{intl-b110ca8d.js → intl-dda73e98.js} +1 -1
- package/dist/esm/loader.js +5 -4
- 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 +6 -5
- package/dist/esm/priv-chart-popover.entry.js +6 -5
- package/dist/esm/priv-navigator-button.entry.js +4 -3
- package/dist/esm/priv-navigator-item.entry.js +4 -3
- package/dist/esm/priv-option-list.entry.js +5 -4
- package/dist/esm/ripple.js +13 -12
- package/dist/esm/wm-action-menu_2.entry.js +8 -6
- package/dist/esm/wm-button.entry.js +5 -4
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +7 -6
- package/dist/esm/wm-date-range.entry.js +9 -8
- package/dist/esm/wm-datepicker.entry.js +9 -8
- package/dist/esm/wm-file-list.entry.js +5 -4
- package/dist/esm/wm-file.entry.js +14 -10
- package/dist/esm/wm-input.entry.js +6 -5
- package/dist/esm/wm-line-chart.entry.js +15 -14
- package/dist/esm/wm-modal-pss_3.entry.js +13 -10
- package/dist/esm/wm-modal_3.entry.js +13 -10
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +4 -3
- package/dist/esm/wm-nested-select.entry.js +8 -7
- package/dist/esm/wm-optgroup.entry.js +5 -4
- package/dist/esm/wm-option_2.entry.js +10 -8
- package/dist/esm/wm-pagination.entry.js +5 -4
- package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
- package/dist/esm/wm-search.entry.js +7 -6
- package/dist/esm/wm-snackbar.entry.js +7 -6
- package/dist/esm/wm-tab-item_3.entry.js +11 -8
- package/dist/esm/wm-tag-input.entry.js +8 -7
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +6 -5
- package/dist/esm/wm-timepicker.entry.js +6 -5
- package/dist/esm/wm-toggletip.entry.js +6 -5
- package/dist/esm/wm-uploader.entry.js +8 -7
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-7e0510ff.js +1 -0
- package/dist/esm-es5/{chartFunctions-5555bab0.js → chartFunctions-21d5a3d3.js} +1 -1
- package/dist/esm-es5/functions-f39e6177.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-b110ca8d.js → intl-dda73e98.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/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-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-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/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/cdn.js +1 -2
- package/dist/loader/index.cjs.js +1 -2
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/ripple/{p-ba32e2a3.system.entry.js → p-0116c06f.system.entry.js} +1 -1
- package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/p-0558fa69.entry.js +1 -0
- package/dist/ripple/{p-786ce588.system.entry.js → p-05d0870f.system.entry.js} +1 -1
- package/dist/ripple/{p-c4459739.system.entry.js → p-08c4309d.system.entry.js} +1 -1
- package/dist/ripple/p-0ddd48d5.entry.js +1 -0
- package/dist/ripple/{p-97f73303.system.entry.js → p-0fe77e41.system.entry.js} +1 -1
- package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
- package/dist/ripple/p-13e6a586.system.entry.js +1 -0
- package/dist/ripple/{p-ea0978e8.system.entry.js → p-1541cd19.system.entry.js} +1 -1
- package/dist/ripple/p-1f3f00b8.system.entry.js +1 -0
- package/dist/ripple/p-250ea363.entry.js +1 -0
- package/dist/ripple/p-29092365.entry.js +1 -0
- package/dist/ripple/{p-ac5b9632.system.entry.js → p-2b88f7d3.system.entry.js} +1 -1
- package/dist/ripple/{p-43d1396a.system.entry.js → p-2c705607.system.entry.js} +1 -1
- package/dist/ripple/p-2f42d180.entry.js +1 -0
- package/dist/ripple/p-35171bd6.entry.js +1 -0
- package/dist/ripple/{p-2ce69098.system.js → p-37b044c7.system.js} +1 -1
- package/dist/ripple/p-3ae96f51.entry.js +1 -0
- package/dist/ripple/p-3c3cdda6.entry.js +1 -0
- package/dist/ripple/{p-cad67180.entry.js → p-3f44795e.entry.js} +1 -1
- package/dist/ripple/p-3f486eed.system.js +1 -0
- package/dist/ripple/p-4017b95c.entry.js +1 -0
- package/dist/ripple/{p-5b6eb3e6.system.entry.js → p-406e850e.system.entry.js} +1 -1
- package/dist/ripple/p-4087fc4b.entry.js +1 -0
- package/dist/ripple/p-5397f88b.system.entry.js +1 -0
- package/dist/ripple/{p-dbc7cb15.entry.js → p-54dd8a8f.entry.js} +1 -1
- package/dist/ripple/p-5f001d42.entry.js +1 -0
- package/dist/ripple/p-602c3975.js +1 -0
- package/dist/ripple/p-6f1b3eb3.entry.js +1 -0
- package/dist/ripple/{p-02dc1562.js → p-73ce9af7.js} +1 -1
- package/dist/ripple/{p-b976c84b.entry.js → p-76d248e6.entry.js} +1 -1
- package/dist/ripple/{p-8ca9fa42.system.entry.js → p-77535286.system.entry.js} +1 -1
- package/dist/ripple/p-7a25c9eb.entry.js +1 -0
- package/dist/ripple/{p-8b6c2bf7.entry.js → p-7c7164d3.entry.js} +1 -1
- package/dist/ripple/p-7d912ebb.entry.js +1 -0
- package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
- package/dist/ripple/p-82ae0450.system.entry.js +1 -0
- package/dist/ripple/p-82af03a4.entry.js +1 -0
- package/dist/ripple/{p-840c7934.system.entry.js → p-82c2e91a.system.entry.js} +1 -1
- package/dist/ripple/{p-e96caf0a.system.entry.js → p-85f0743c.system.entry.js} +1 -1
- package/dist/ripple/{p-8c5c5a69.system.entry.js → p-876fa7a1.system.entry.js} +1 -1
- package/dist/ripple/p-881bff45.entry.js +1 -0
- package/dist/ripple/p-89a2db02.js +1 -0
- package/dist/ripple/p-8d23aedb.system.js +1 -0
- package/dist/ripple/{p-8a42d7b0.entry.js → p-927496a7.entry.js} +1 -1
- package/dist/ripple/{p-5864d9a3.system.entry.js → p-9d548987.system.entry.js} +1 -1
- package/dist/ripple/p-9db300ae.system.entry.js +1 -0
- package/dist/ripple/p-a3854e5e.entry.js +1 -0
- package/dist/ripple/{p-c03150a9.system.entry.js → p-a5446fb7.system.entry.js} +1 -1
- package/dist/ripple/{p-9b7893e0.system.entry.js → p-a60311b7.system.entry.js} +1 -1
- package/dist/ripple/{p-2512cd8b.system.entry.js → p-aa959479.system.entry.js} +1 -1
- package/dist/ripple/p-acafdd58.entry.js +1 -0
- package/dist/ripple/{p-2c35ef3a.system.entry.js → p-ad8b4e1b.system.entry.js} +1 -1
- package/dist/ripple/{p-ee31c799.system.js → p-b0dddc8b.system.js} +1 -1
- package/dist/ripple/p-b599fab7.entry.js +1 -0
- package/dist/ripple/{p-2a8fbf47.system.entry.js → p-b80b3a26.system.entry.js} +1 -1
- package/dist/ripple/{p-279afdc2.entry.js → p-ba2b362c.entry.js} +1 -1
- package/dist/ripple/{p-03e458b2.system.entry.js → p-ba74727e.system.entry.js} +1 -1
- package/dist/ripple/{p-4743176d.system.entry.js → p-c34c9cbb.system.entry.js} +1 -1
- package/dist/ripple/p-c74f1ce0.system.js +1 -0
- package/dist/ripple/{p-3120dc46.entry.js → p-c7af6305.entry.js} +1 -1
- package/dist/ripple/{p-88ebddd7.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/{p-315940ce.system.entry.js → p-cf6bbca0.system.entry.js} +1 -1
- package/dist/ripple/p-d0e4ad8c.entry.js +1 -0
- package/dist/ripple/p-d3c94e4e.entry.js +1 -0
- package/dist/ripple/p-d5d008e0.entry.js +1 -0
- package/dist/ripple/{p-0f06d6f4.system.entry.js → p-d944f0a7.system.entry.js} +1 -1
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/{p-dcd49afe.system.entry.js → p-e4910316.system.entry.js} +1 -1
- package/dist/ripple/p-e84aa8e5.system.entry.js +1 -0
- package/dist/ripple/{p-0dc00d95.system.entry.js → p-e9210de5.system.entry.js} +1 -1
- package/dist/ripple/{p-6c875151.entry.js → p-eb887718.entry.js} +1 -1
- package/dist/ripple/{p-599dd035.js → p-f41ab9ea.js} +1 -1
- package/dist/ripple/{p-a20a90e3.system.entry.js → p-f4676ccb.system.entry.js} +1 -1
- package/dist/ripple/p-f97bc521.entry.js +1 -0
- package/dist/ripple/{p-58ef50b2.system.entry.js → p-fc525284.system.entry.js} +1 -1
- package/dist/ripple/p-ffd09a7f.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-file/wm-file.d.ts +1 -0
- package/dist/types/components.d.ts +6 -6
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/package.json +1 -1
- package/dist/cjs/index-e86c28b6.js +0 -2649
- package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
- package/dist/collection/components/charts/screenshots.e2e.js +0 -96
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
- package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
- package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
- package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
- package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
- package/dist/collection/components/selects/wm-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/selects/wm-option/wm-option.spec.js +0 -63
- package/dist/collection/components/selects/wm-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/selects/wm-select/wm-select.spec.js +0 -271
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
- package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
- package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
- package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
- package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
- package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
- package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
- package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
- package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
- package/dist/collection/global/functions.spec.js +0 -126
- package/dist/collection/lang/lang.spec.js +0 -20
- package/dist/esm/index-558b5a82.js +0 -2618
- package/dist/esm-es5/functions-8800c690.js +0 -1
- package/dist/esm-es5/global-07352c64.js +0 -1
- package/dist/esm-es5/index-558b5a82.js +0 -1
- package/dist/ripple/p-12b17582.system.js +0 -1
- package/dist/ripple/p-1362721e.entry.js +0 -1
- package/dist/ripple/p-19676563.system.js +0 -1
- package/dist/ripple/p-2ec64015.entry.js +0 -1
- package/dist/ripple/p-37f571b9.entry.js +0 -1
- package/dist/ripple/p-3ea10ca9.system.entry.js +0 -1
- package/dist/ripple/p-410e4097.entry.js +0 -1
- package/dist/ripple/p-43e315a2.entry.js +0 -1
- package/dist/ripple/p-4470702e.system.entry.js +0 -1
- package/dist/ripple/p-491e5d5e.system.entry.js +0 -1
- package/dist/ripple/p-4c3b5139.entry.js +0 -1
- package/dist/ripple/p-5426a368.system.entry.js +0 -1
- package/dist/ripple/p-568c595f.js +0 -2
- package/dist/ripple/p-732d7a84.entry.js +0 -1
- package/dist/ripple/p-7f04b2d3.system.entry.js +0 -1
- package/dist/ripple/p-84baf37b.entry.js +0 -1
- package/dist/ripple/p-9410d7ee.entry.js +0 -1
- package/dist/ripple/p-9da90a7f.entry.js +0 -1
- package/dist/ripple/p-a6df3a2e.entry.js +0 -1
- package/dist/ripple/p-ab8d78cc.system.js +0 -2
- package/dist/ripple/p-b5f9c424.entry.js +0 -1
- package/dist/ripple/p-b78ae5d6.system.entry.js +0 -1
- package/dist/ripple/p-c35002ec.entry.js +0 -1
- package/dist/ripple/p-c37f0d34.entry.js +0 -1
- package/dist/ripple/p-c8f2c6eb.entry.js +0 -1
- package/dist/ripple/p-cded592f.entry.js +0 -1
- package/dist/ripple/p-d2d99a1d.entry.js +0 -1
- package/dist/ripple/p-d9006015.entry.js +0 -1
- package/dist/ripple/p-dfc7c5f6.entry.js +0 -1
- package/dist/ripple/p-e13c9fc2.js +0 -1
- package/dist/ripple/p-e4cc7edf.entry.js +0 -1
- package/dist/ripple/p-e648e2fe.entry.js +0 -1
- package/dist/ripple/p-ebc1df66.entry.js +0 -1
- package/dist/ripple/p-eca78c2b.js +0 -1
- package/dist/ripple/p-ed7dffc6.entry.js +0 -1
- package/dist/ripple/p-edd87140.system.js +0 -1
- package/dist/ripple/p-f61b6d90.entry.js +0 -1
|
@@ -11,12 +11,12 @@ export class LineChart {
|
|
|
11
11
|
this.displayedXIntervals = [];
|
|
12
12
|
this.yIntervals = [];
|
|
13
13
|
this.lineStyles = [
|
|
14
|
-
{ color: "#8b86ca", icon: "f536" },
|
|
15
|
-
{ color: "#2e1b46", icon: "f12f" },
|
|
16
|
-
{ color: "#0089e4", icon: "f763" },
|
|
17
|
-
{ color: "#088000", icon: "f4ce" },
|
|
18
|
-
{ color: "#ea8500", icon: "f70a" },
|
|
19
|
-
{ color: "#d54f41", icon: "f536" },
|
|
14
|
+
{ color: "#8b86ca", icon: "f536" }, // lavender, triangle
|
|
15
|
+
{ color: "#2e1b46", icon: "f12f" }, // midnight, circle
|
|
16
|
+
{ color: "#0089e4", icon: "f763" }, // blue, square
|
|
17
|
+
{ color: "#088000", icon: "f4ce" }, // forest, star
|
|
18
|
+
{ color: "#ea8500", icon: "f70a" }, // orange, rhombus
|
|
19
|
+
{ color: "#d54f41", icon: "f536" }, // red, upside down triangle
|
|
20
20
|
{ color: "#146ca9", icon: "f6ff" }, // blue, upside down triangle
|
|
21
21
|
];
|
|
22
22
|
this.debouncedResize = debounce(async () => {
|
|
@@ -403,7 +403,7 @@ export class LineChart {
|
|
|
403
403
|
popoverStyle = {
|
|
404
404
|
"--leftPosition": `0%`,
|
|
405
405
|
"--topPosition": "0%",
|
|
406
|
-
maxWidth: Math.min(this.el.clientWidth - 2, 400) + "px",
|
|
406
|
+
maxWidth: Math.min(this.el.clientWidth - 2, 400) + "px", // take up no more max-width than is visually available
|
|
407
407
|
transform: `translateX(calc(${displaceLeft}))`, // align with left edge of component
|
|
408
408
|
};
|
|
409
409
|
}
|
|
@@ -443,9 +443,9 @@ export class LineChart {
|
|
|
443
443
|
return h("div", { class: "highlight", style: highlightStyle });
|
|
444
444
|
}
|
|
445
445
|
render() {
|
|
446
|
-
return (h(Host, { onBlur: () => this.resetDataPointFocus(), onMouseLeave: () => (this.popoverIndex = -1) }, h("div", { class: "component-wrapper", role: "application", "aria-roledescription": chartMessages.interactiveChart, "aria-label": this.label, "aria-describedby": "chart-description" }, this.renderLegend(), h("div", { class: "chart-wrapper" }, h("div", { class: "chart-label --y-axis", style: { "--labelWidth": this.labelWidth } }, this.yAxisLabel, this.parsedUnits[1] && ` (${this.parsedUnits[1]})`), this.renderYIntervals(), h("div", { ref: (el) => (this.plotAreaEl = el), class: `plot-area ${this.hasPartialInterval ? "" : "right-border"}`, style: {
|
|
446
|
+
return (h(Host, { key: '5a7e6e4c3e644053ad733255c7973d5554a82923', onBlur: () => this.resetDataPointFocus(), onMouseLeave: () => (this.popoverIndex = -1) }, h("div", { key: '6fa6f50f75654c7959b24d5a1e0a16f91e1e265d', class: "component-wrapper", role: "application", "aria-roledescription": chartMessages.interactiveChart, "aria-label": this.label, "aria-describedby": "chart-description" }, this.renderLegend(), h("div", { key: '21e0e796d079678eb8b9012907491a014fb6d0c6', class: "chart-wrapper" }, h("div", { key: '3f9306f5d4f4a7a35187669dd0526d6ed8839521', class: "chart-label --y-axis", style: { "--labelWidth": this.labelWidth } }, this.yAxisLabel, this.parsedUnits[1] && ` (${this.parsedUnits[1]})`), this.renderYIntervals(), h("div", { key: '15e94d7886b6aa320a83cb8352655c4e65dba13b', ref: (el) => (this.plotAreaEl = el), class: `plot-area ${this.hasPartialInterval ? "" : "right-border"}`, style: {
|
|
447
447
|
"--backgroundSize": `${this.dataPointMatrix[0][this.xIntervals.indexOf(this.displayedXIntervals[1])].xPositionPercent}%`,
|
|
448
|
-
} }, this.highlightStart && this.renderHighlight(), this.renderData(), this.renderHoverAreas()), this.popoverIndex !== -1 && this.renderHoverIndicator(), this.popoverIndex !== -1 && this.renderPopover(), this.renderXIntervals(), h("div", { class: "chart-label --x-axis" }, this.xAxisLabel, this.parsedUnits[0] && ` (${this.parsedUnits[0]})`)), h("div", { id: "chart-description", class: "sr-only" }, `${lineChartMessages.instructions} ${this.description}`), h("div", { ref: (el) => (this.liveRegionEl = el), "aria-live": "polite", class: "sr-only" }, this.announcement))));
|
|
448
|
+
} }, this.highlightStart && this.renderHighlight(), this.renderData(), this.renderHoverAreas()), this.popoverIndex !== -1 && this.renderHoverIndicator(), this.popoverIndex !== -1 && this.renderPopover(), this.renderXIntervals(), h("div", { key: 'd30088ab428ec61c9ee395d0ca30876422ffab15', class: "chart-label --x-axis" }, this.xAxisLabel, this.parsedUnits[0] && ` (${this.parsedUnits[0]})`)), h("div", { key: 'dd89ddbb408b35625315be2c77257a9c76f93557', id: "chart-description", class: "sr-only" }, `${lineChartMessages.instructions} ${this.description}`), h("div", { key: '153a8e77d758fe3161c0f2ca0a722de8753ec217', ref: (el) => (this.liveRegionEl = el), "aria-live": "polite", class: "sr-only" }, this.announcement))));
|
|
449
449
|
}
|
|
450
450
|
static get is() { return "wm-line-chart"; }
|
|
451
451
|
static get encapsulation() { return "shadow"; }
|
|
@@ -90,7 +90,7 @@ export class ProgressIndicator {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h(Host, { onBlur: () => exitChart.call(this) }, h("div", { ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${this.mode} ${this.isTabbing && !this.userIsNavigating ? "user-is-tabbing" : ""}`, role: "application", "aria-label": this.ariaLabelText, tabindex: "0", "aria-roledescription": this.chartRoleDescription, "aria-describedby": `chart-instructions` }, h("label", { id: `label-${this.uid}`, class: `label ${this.barLabelsWidth && this.mode === "bar" ? "custom-width" : ""}`, style: { "--custom-label-width": this.barLabelsWidth }, htmlFor: `graphic-${this.uid}` }, h("span", { class: "label-text" }, this.label), this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""), this.mode && this.renderBarOrDoughnut(), this.mode === "doughnut" ? renderLegend.call(this, this.mode) : "", h("priv-chart-popover", { class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.mode === "doughnut" ? renderCompletionMessage.call(this) : ""), renderInstructionsText()));
|
|
93
|
+
return (h(Host, { key: '16620db2087213bc753d2d757c7790a41670b1ab', onBlur: () => exitChart.call(this) }, h("div", { key: 'c676d6afdd78059bff7ae59f8ee275886e5bf22a', ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${this.mode} ${this.isTabbing && !this.userIsNavigating ? "user-is-tabbing" : ""}`, role: "application", "aria-label": this.ariaLabelText, tabindex: "0", "aria-roledescription": this.chartRoleDescription, "aria-describedby": `chart-instructions` }, h("label", { key: '1b863341957baf0839d36be915d0aa632d03873f', id: `label-${this.uid}`, class: `label ${this.barLabelsWidth && this.mode === "bar" ? "custom-width" : ""}`, style: { "--custom-label-width": this.barLabelsWidth }, htmlFor: `graphic-${this.uid}` }, h("span", { key: 'be37ff1bc3863b7603944139fd78a0d7a6884e46', class: "label-text" }, this.label), this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""), this.mode && this.renderBarOrDoughnut(), this.mode === "doughnut" ? renderLegend.call(this, this.mode) : "", h("priv-chart-popover", { key: '8541969e643c69fd8e0090f69efd7c038ea1e2ea', class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.mode === "doughnut" ? renderCompletionMessage.call(this) : ""), renderInstructionsText()));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "wm-progress-indicator"; }
|
|
96
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class ProgressMonitor {
|
|
|
59
59
|
}))));
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { class: this.mode === "doughnut" ? "row" : "column" }, this.modeInitialized && this.groupLegend && this.mode === "bar" && this.renderLegend(), this.modeInitialized && h("slot",
|
|
62
|
+
return (h(Host, { key: '6b654a2da62f9ca402ba16163e1d1497c5c99be8', class: this.mode === "doughnut" ? "row" : "column" }, this.modeInitialized && this.groupLegend && this.mode === "bar" && this.renderLegend(), this.modeInitialized && h("slot", { key: 'd3b70aa0e0c409bc0bcf2d6b20ad2b9c44c8eb11' })));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "wm-progress-monitor"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -544,11 +544,11 @@ export class PrivCalendar {
|
|
|
544
544
|
}), class: "header-btn arw-btn" }, h("span", { class: "mdi" }, "\uF142"))), 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))))));
|
|
545
545
|
}
|
|
546
546
|
render() {
|
|
547
|
-
return (h(Host, { onMouseOut: (ev) => {
|
|
547
|
+
return (h(Host, { key: 'bf3b27c085d62d04e59c469103af514a5652ca39', onMouseOut: (ev) => {
|
|
548
548
|
// @ts-ignore
|
|
549
549
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
550
550
|
this.outOfCal.emit();
|
|
551
|
-
}, role: "application", "aria-describedby": "application" }, this.view === "day" ? this.renderDayView() : this.renderMonthView(), h("div", { id: "application", class: "sr-only" }, this.calName, this.calInstructions)));
|
|
551
|
+
}, role: "application", "aria-describedby": "application" }, this.view === "day" ? this.renderDayView() : this.renderMonthView(), h("div", { key: '3433d2109b066f3e3446cc6d8c486a5e303d6939', id: "application", class: "sr-only" }, this.calName, this.calInstructions)));
|
|
552
552
|
}
|
|
553
553
|
static get is() { return "priv-calendar"; }
|
|
554
554
|
static get originalStyleUrls() {
|
|
@@ -429,23 +429,23 @@ export class DateRange {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
render() {
|
|
432
|
-
return (h(Host, { "aria-busy": "false" }, h("div", { ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { class: "label-wrapper", id: "start-label-wrapper" }, h("label", { ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("div", { class: "label-wrapper", id: "end-label-wrapper" }, h("label", { id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*")))), h("input", { 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": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { id: "hyphen" }, "\u00A0-\u00A0"), h("input", { 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": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
432
|
+
return (h(Host, { key: 'ffe68e278952d867cd9d1bf4945a91a9218aff41', "aria-busy": "false" }, h("div", { key: '256076b4ecb500f80bde6a0f4b74e0e090a8ebba', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: '1a16aee3f2c90b120fea6c3de7853a5f58f95c2b', class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { key: '2bf81bc7b7820b71820fa903f612247deb6b8592', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: '09e8a0ee78eb5f19f6a3e94ce8c2bfefaff4a909', ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { key: '0deb9d862a52d6b044572a06645408805be1126e', "aria-hidden": "true", class: "required" }, "*")))), h("div", { key: 'ec5368e1736f8b83290238b483965aab0f9f3945', class: "label-wrapper", id: "end-label-wrapper" }, h("label", { key: '6cb070abde6ce9064a030c408894f29af6118984', id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { key: 'e4def58969ee10495955c76ff6df4af0b721d98b', "aria-hidden": "true", class: "required" }, "*")))), h("input", { key: '141c909bdeae5c05fc5ca24bfe3f62c756c59bb1', 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": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '71e1f4d5bfac5687c6c0dc78b0c7bf0e23963932', id: "hyphen" }, "\u00A0-\u00A0"), h("input", { key: '66da2b524e10f19471dfe98e8088f29223fcf1e5', 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": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { key: 'd13e35362381766550f1555db5bc86043f29ae55', class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { key: '083f289ad53ef80ebf5bcb04f28cb85f4bf1cce6', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
433
433
|
id: "date.selectRange",
|
|
434
434
|
defaultMessage: "Select range",
|
|
435
435
|
description: "Button text for screen readers.",
|
|
436
|
-
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "calendar", title: intl.formatMessage({
|
|
436
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: 'c127dd1ac1f883218997250dc0455d2cd67b4e54', class: "calendar", title: intl.formatMessage({
|
|
437
437
|
id: "date.calendarView",
|
|
438
438
|
defaultMessage: "Calendar View",
|
|
439
439
|
description: "Calendar button",
|
|
440
|
-
}) })))), this.renderCalendars()), h("div",
|
|
440
|
+
}) })))), this.renderCalendars()), h("div", { key: 'f73ab32bcf2cebc82a8afd9129a1d3fcf9e0bc2b' }, h("div", { key: '2d7f933a92f36483ecfd801c4ae17bf7baa92c71', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'ca4fd9da247934ff4644b099c883fed0158d0c86', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
441
441
|
id: "date.selectMonth",
|
|
442
442
|
defaultMessage: "Activate to select a month.",
|
|
443
443
|
description: "Calendar button",
|
|
444
|
-
})), h("div", { id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
444
|
+
})), h("div", { key: '22d83e68a09a15072afcc3368fdf957838a5da1f', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
445
445
|
id: "date.selectYear",
|
|
446
446
|
defaultMessage: "Activate to select a year.",
|
|
447
447
|
description: "Calendar button",
|
|
448
|
-
}))), h("div", { id: "error", class: "error" }, this.errorMessage), h("div", { ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
|
|
448
|
+
}))), h("div", { key: '6fbc73d0c1d280133b445c9fd4acd14a1be673e0', id: "error", class: "error" }, this.errorMessage), h("div", { key: '4dac5d364845b7a4c656db95e0aae877b902692b', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
|
|
449
449
|
}
|
|
450
450
|
static get is() { return "wm-date-range"; }
|
|
451
451
|
static get encapsulation() { return "shadow"; }
|
|
@@ -720,14 +720,17 @@ export class DateRange {
|
|
|
720
720
|
"complexType": {
|
|
721
721
|
"signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
|
|
722
722
|
"parameters": [{
|
|
723
|
-
"
|
|
724
|
-
"
|
|
723
|
+
"name": "inputFormat",
|
|
724
|
+
"type": "string",
|
|
725
|
+
"docs": ""
|
|
725
726
|
}, {
|
|
726
|
-
"
|
|
727
|
-
"
|
|
727
|
+
"name": "outputFormat",
|
|
728
|
+
"type": "string",
|
|
729
|
+
"docs": ""
|
|
728
730
|
}, {
|
|
729
|
-
"
|
|
730
|
-
"
|
|
731
|
+
"name": "date",
|
|
732
|
+
"type": "string | undefined",
|
|
733
|
+
"docs": ""
|
|
731
734
|
}],
|
|
732
735
|
"references": {
|
|
733
736
|
"Promise": {
|
|
@@ -746,8 +749,9 @@ export class DateRange {
|
|
|
746
749
|
"complexType": {
|
|
747
750
|
"signature": "(input?: string) => Promise<boolean>",
|
|
748
751
|
"parameters": [{
|
|
749
|
-
"
|
|
750
|
-
"
|
|
752
|
+
"name": "input",
|
|
753
|
+
"type": "string | undefined",
|
|
754
|
+
"docs": ""
|
|
751
755
|
}],
|
|
752
756
|
"references": {
|
|
753
757
|
"Promise": {
|
|
@@ -212,23 +212,23 @@ export class DatePicker {
|
|
|
212
212
|
this.liveRegionEl.textContent = message;
|
|
213
213
|
}
|
|
214
214
|
render() {
|
|
215
|
-
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div",
|
|
215
|
+
return (h(Host, { key: 'daac54e642a4c00b37dff5167cf0fd3322b98874', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '0633196770bcd3965a8fe60ecd1972653ed3e25c', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'ba80e128d0345635d90c4641c508d05eb4d3794e', class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { key: '4905e937c7e6249537c5ed43f77331883d006794', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { key: '637e35c7f255629aa75cf177822154a1e6e6e7b3', "aria-hidden": "true", class: "required" }, "*"))))), h("div", { key: '8676b6e03022cd8787d0a77a0b3e6c4dd8419b59' }, h("div", { key: 'e9f24478e3beb32f38ef65aff197d7872e1f3d67', class: "single-wrapper input" }, h("input", { key: '4661fedeafd62c45e1aec2aad699faede4d750b6', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '0a2afc12a5e44bcb8a9deb92c7171945c67289f4', class: "container", id: "wm-container" }, h("button", { key: 'b6b63ef23dee93ff470de4d5a5d2769086bcb808', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": intl.formatMessage({
|
|
216
216
|
id: "date.selectDate",
|
|
217
217
|
defaultMessage: "Select date",
|
|
218
218
|
description: "Button text for screen readers.",
|
|
219
|
-
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "calendar", title: intl.formatMessage({
|
|
219
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: 'debb3ae89f32960a7a269b9f6c951f5bb7bfd874', class: "calendar", title: intl.formatMessage({
|
|
220
220
|
id: "date.calendarView",
|
|
221
221
|
defaultMessage: "Calendar View",
|
|
222
222
|
description: "Calendar button",
|
|
223
|
-
}) })), h("div", { class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
223
|
+
}) })), h("div", { key: '87ff9723a2960d5725f5f731dcc0d30719a8bb09', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { key: '989a9bc4bd537394bfb2fe1ecd83311bb57187d4', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '3253b7e256dc7137aae2c4c2a79099e0093ecc65', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: '9cacded01a3163bebd249d6ed4601ca9a6c3dfd0', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: 'fe890d55779f0619bc6c144d1fd47cc2cb26fe04', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '71e28a0c1aaa2c1ddce511bfbf0d9cf6794382ab', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
224
224
|
id: "date.selectMonth",
|
|
225
225
|
defaultMessage: "Activate to select a month.",
|
|
226
226
|
description: "Calendar button",
|
|
227
|
-
})), h("div", { id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
227
|
+
})), h("div", { key: '2df13fae273fd2186e35d50ab58d888b45bf0b40', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
228
228
|
id: "date.selectYear",
|
|
229
229
|
defaultMessage: "Activate to select a year.",
|
|
230
230
|
description: "Calendar button",
|
|
231
|
-
})))), h("div", { id: "error", class: "error" }, this.errorMessage), h("div", { ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
231
|
+
})))), h("div", { key: '71ca47b61c3ffd7e19c273ae3e4c68a7f3ef1afd', id: "error", class: "error" }, this.errorMessage), h("div", { key: '5adc31a91d03cd34d01e48a88617481051905341', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
232
232
|
}
|
|
233
233
|
static get is() { return "wm-datepicker"; }
|
|
234
234
|
static get encapsulation() { return "shadow"; }
|
|
@@ -433,14 +433,17 @@ export class DatePicker {
|
|
|
433
433
|
"complexType": {
|
|
434
434
|
"signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
|
|
435
435
|
"parameters": [{
|
|
436
|
-
"
|
|
437
|
-
"
|
|
436
|
+
"name": "inputFormat",
|
|
437
|
+
"type": "string",
|
|
438
|
+
"docs": ""
|
|
438
439
|
}, {
|
|
439
|
-
"
|
|
440
|
-
"
|
|
440
|
+
"name": "outputFormat",
|
|
441
|
+
"type": "string",
|
|
442
|
+
"docs": ""
|
|
441
443
|
}, {
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
+
"name": "date",
|
|
445
|
+
"type": "string | undefined",
|
|
446
|
+
"docs": ""
|
|
444
447
|
}],
|
|
445
448
|
"references": {
|
|
446
449
|
"Promise": {
|
|
@@ -459,8 +462,9 @@ export class DatePicker {
|
|
|
459
462
|
"complexType": {
|
|
460
463
|
"signature": "(input?: string) => Promise<boolean>",
|
|
461
464
|
"parameters": [{
|
|
462
|
-
"
|
|
463
|
-
"
|
|
465
|
+
"name": "input",
|
|
466
|
+
"type": "string | undefined",
|
|
467
|
+
"docs": ""
|
|
464
468
|
}],
|
|
465
469
|
"references": {
|
|
466
470
|
"Promise": {
|
|
@@ -406,7 +406,7 @@ export class PrivOptionList {
|
|
|
406
406
|
return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
|
|
407
407
|
}
|
|
408
408
|
render() {
|
|
409
|
-
return (h("div", { class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot",
|
|
409
|
+
return (h("div", { key: '28c02863c7c01cbbe56fa4e82166526ddd7f8891', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '091f207da308fc76ec1d8e5867572d959183a78f', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", 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: '1c2567fcbaab7f48c98258526e3878319c618c8d' })), h("div", { key: 'd235fc36a5862b755dd03583b59166aeab77073f', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
410
410
|
}
|
|
411
411
|
static get is() { return "priv-option-list"; }
|
|
412
412
|
static get originalStyleUrls() {
|
|
@@ -690,8 +690,9 @@ export class PrivOptionList {
|
|
|
690
690
|
"complexType": {
|
|
691
691
|
"signature": "(option: HTMLElement) => Promise<void>",
|
|
692
692
|
"parameters": [{
|
|
693
|
-
"
|
|
694
|
-
"
|
|
693
|
+
"name": "option",
|
|
694
|
+
"type": "HTMLElement",
|
|
695
|
+
"docs": ""
|
|
695
696
|
}],
|
|
696
697
|
"references": {
|
|
697
698
|
"Promise": {
|
|
@@ -714,8 +715,9 @@ export class PrivOptionList {
|
|
|
714
715
|
"complexType": {
|
|
715
716
|
"signature": "(optionToSelect?: \"next\" | \"previous\") => Promise<void>",
|
|
716
717
|
"parameters": [{
|
|
717
|
-
"
|
|
718
|
-
"
|
|
718
|
+
"name": "optionToSelect",
|
|
719
|
+
"type": "\"next\" | \"previous\" | undefined",
|
|
720
|
+
"docs": ""
|
|
719
721
|
}],
|
|
720
722
|
"references": {
|
|
721
723
|
"Promise": {
|
|
@@ -325,16 +325,16 @@ export class NestedSelect {
|
|
|
325
325
|
this.isExpanded ? this.close() : this.open();
|
|
326
326
|
},
|
|
327
327
|
};
|
|
328
|
-
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
328
|
+
return (h(Host, { key: '0669fabf52f24b6e03d6fb99aa64edc83fd52c18', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '084ddf762d01a6aa631f7757abdc3339ef9c34f9', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '523fa912a6f133af76defda20cd69375eff3d290', class: "label-wrapper" }, h("label", { key: '5322a6d57d6567d32c1b899b42177e61d8521eb6', class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
329
329
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
330
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: `displayedoption ${this.isExpanded ? "expanded" : ""}`, ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { class: "overflowcontrol" }, h("span", { class: "button-text" }, this.renderButtonText())), this.renderOverflowCount(), h("div", { ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { ref: (el) => (this.menuEl = el), class: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
|
|
330
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { key: '568bf1ead352bed9e080fa2d366225deee3dba70', class: "button-wrapper" }, h("button", Object.assign({ key: 'b5c2c93abd411f6df28375f961fe7232bc145dec' }, buttonProps, { class: `displayedoption ${this.isExpanded ? "expanded" : ""}`, ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '9690b4b70ac5049d4a24bcc9b1d2d366e63cae2f', class: "overflowcontrol" }, h("span", { key: '13ec62a16385376bd6242c76189fecae5fb347d4', class: "button-text" }, this.renderButtonText())), this.renderOverflowCount(), h("div", { key: '905ff86d7ce0e2bec718130bbcd5d83f9c8a103e', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '7eb5fb39c2d84bde8712ed77627080f0572a7acc', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { key: '2fd0f2d8450baa37171161a86a35940dd5057a29', ref: (el) => (this.menuEl = el), class: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
|
|
331
331
|
return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
|
|
332
332
|
if (!optgroupEl.disabled) {
|
|
333
333
|
optgroupEl.isExpanded = !optgroupEl.isExpanded;
|
|
334
334
|
forceUpdate(this.el);
|
|
335
335
|
}
|
|
336
336
|
}, onKeyDown: (ev) => this.handleMenuitemKeydown(ev) }, h("span", null, optgroupEl.label), this.renderSelectionCount(optgroupEl), optgroupEl.disabled && h("div", { class: "disabled-indication" }, "Disabled")));
|
|
337
|
-
})), h("div", { ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot",
|
|
337
|
+
})), h("div", { key: 'd7993e9a985e3b6bf4e04f9a721ca7bd1eafc368', ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot", { key: 'd3b7de77e701007e1bb29d9f9f2ed6c8db8a2318' }))), h("div", { key: '2ee6fe98a77317d1a55a838c752c723ba77399ca', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: '4495016bbfb371ba954bea1bca2eb1fecd907c69', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
338
338
|
}
|
|
339
339
|
static get is() { return "wm-nested-select"; }
|
|
340
340
|
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,
|
|
51
|
+
return (h(Host, { key: 'c7346999bce1b73df8266dc227ae49234ec3fa11' }, h("div", { key: 'f89b86707366f8e05b9b772d9669481478d62f31', class: `list-wrapper` }, h("priv-option-list", { key: '4319602bb92d901947bb1d7b1f0cc4c3c2bb49ce', 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: 'bbb9dd15cf69b940b2febd4ce7096d67f8bd65ab' })))));
|
|
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, { role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, h("span", { class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { class: "sr-only" }, this.el.textContent)), h("div", { class: "subinfo" }, this.subinfo)));
|
|
146
|
+
return (h(Host, { key: '3eb0ac742c4deec426e3892c918c87a99c16e221', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '67f56f7490a5dd2e4245c1db1144fb5574cf9d0c', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, h("span", { key: '4aa932174fa6e483c079cc078bfa10b0a0e6cf58', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '2f9bfcefb78a1807cd5cc945cd2cc9c09250bab0', class: "sr-only" }, this.el.textContent)), h("div", { key: '7a205ace75eec0fb2b61e8aa7f5b168c2ce6e02a', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -240,9 +240,9 @@ export class Select {
|
|
|
240
240
|
["aria-expanded"]: this.isExpanded ? "true" : "false",
|
|
241
241
|
onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
242
242
|
};
|
|
243
|
-
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (el) => (this.labelEl = el), class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
243
|
+
return (h(Host, { key: '29ee6998523a594105b5449ebcb0bb4a7a0cc9e3', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '6cb4eaf3d39aeece34bd355118c7330af10e1c53', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '016e7fd81d3f4f80131dc3dc50f8a20e79e8ecde', ref: (el) => (this.labelEl = el), class: "label-wrapper" }, h("label", { key: '40dfff0624ec3c69ded965b9bb3543b51f67b081', class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
244
244
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
245
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: `displayedoption ${this.isExpanded ? "expanded" : ""}`, ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount(), h("div", { ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("priv-option-list", { ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => this.close(), onOptionListAllSelected: () => this.wmSelectAllSelected.emit(), onOptionListAllDeselected: () => this.wmSelectAllDeselected.emit() }, h("slot",
|
|
245
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { key: 'f063d9206c8343e03eec53746d416dc0957fc813', class: "button-wrapper" }, h("button", Object.assign({ key: '78949c979c015f338cfa2fd6a97bd59f87cc0d29' }, buttonProps, { class: `displayedoption ${this.isExpanded ? "expanded" : ""}`, ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '2a06dc91fac0029fd32a150ed78b0746983fc274', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'fe39fa190474cc4351ffefa6f682fa94e08396d4', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: '052c53d7da559a0b28dbae1147eb25ad04bab3da', class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount(), h("div", { key: '51234e2f3756aa2bc3bdd16f142009806810f82e', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'e053ee9b70215592c362193f55efc1dee1b4e34e', class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("priv-option-list", { key: '281eb3cfb4b874303955636eae6d5d0d7c9a4283', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => this.close(), onOptionListAllSelected: () => this.wmSelectAllSelected.emit(), onOptionListAllDeselected: () => this.wmSelectAllDeselected.emit() }, h("slot", { key: '1c61bd9f89b61e8e499fd5a4937edd165d915f3a' }))), h("div", { key: 'bf8b183096b67ba25a6eb43aa63cd7d1851671d8', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'ba15bcd6bc297e3ac72ad5dc2cc2be5146ec369f', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
246
246
|
}
|
|
247
247
|
static get is() { return "wm-select"; }
|
|
248
248
|
static get encapsulation() { return "shadow"; }
|
|
@@ -190,7 +190,7 @@ export class ActionMenu {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: getTextDir() }, h("wm-button", { "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "f1d9" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot",
|
|
193
|
+
return (h(Host, { key: '36e8155b6296f8ff6e311de6c2c2069398b5da23', onBlur: () => this.close(false) }, h("div", { key: 'aa3a2fbdf09dd977d396b85f340bf7a675a97651', class: getTextDir() }, h("wm-button", { key: '634a8db4b695741c3c4903e3804b601ca2d27e88', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "f1d9" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { key: '7e2c9491304f64e432ac4c996aa8651f81969a3a', class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot", { key: '17f025a5c4a9bfcbb2471044aa9b27750f16d4a0' })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "wm-action-menu"; }
|
|
196
196
|
static get encapsulation() { return "shadow"; }
|
|
@@ -183,7 +183,7 @@ export class Button {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
render() {
|
|
186
|
-
return (h(Host, { class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, this.icon && this.renderIcon(), h("span", { class: "button-text" }, h("slot",
|
|
186
|
+
return (h(Host, { key: 'c35425fa7bb6a6ee1c22582581872c391e23d2fa', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'fda9104d4017f219b7ecaf128649dba958cbd32c', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, this.icon && this.renderIcon(), h("span", { key: '648c49b91afca7d9461f32716df7ee01f04e4d19', class: "button-text" }, h("slot", { key: '23e124d4a4519df0f1f825018efe11a3e0584aef' })))));
|
|
187
187
|
}
|
|
188
188
|
static get is() { return "wm-button"; }
|
|
189
189
|
static get encapsulation() { return "shadow"; }
|
|
@@ -272,6 +272,10 @@
|
|
|
272
272
|
display: flex;
|
|
273
273
|
justify-content: space-between;
|
|
274
274
|
align-items: center;
|
|
275
|
+
column-gap: 5rem;
|
|
276
|
+
}
|
|
277
|
+
.file-wrapper .file.condensed {
|
|
278
|
+
column-gap: 2.5rem;
|
|
275
279
|
}
|
|
276
280
|
.file-wrapper .file .filename {
|
|
277
281
|
display: inline-block;
|
|
@@ -288,10 +292,7 @@
|
|
|
288
292
|
align-items: center;
|
|
289
293
|
gap: 1rem;
|
|
290
294
|
min-width: 0;
|
|
291
|
-
|
|
292
|
-
}
|
|
293
|
-
.file-wrapper .file .right-group.condensed {
|
|
294
|
-
padding-left: 2.5rem;
|
|
295
|
+
max-inline-size: 50%;
|
|
295
296
|
}
|
|
296
297
|
.file-wrapper .file .right-group .file-controls {
|
|
297
298
|
display: flex;
|
|
@@ -303,13 +304,15 @@
|
|
|
303
304
|
align-items: end;
|
|
304
305
|
gap: 0.25rem;
|
|
305
306
|
text-align: right;
|
|
306
|
-
min-width: 8.5rem;
|
|
307
307
|
max-width: 450px;
|
|
308
|
-
flex: 1;
|
|
309
308
|
}
|
|
310
309
|
.file-wrapper .file .right-group .file-info .uploader-name {
|
|
311
310
|
max-width: 100%;
|
|
312
311
|
overflow-wrap: break-word;
|
|
312
|
+
text-wrap: balance;
|
|
313
|
+
}
|
|
314
|
+
.file-wrapper .file .right-group .file-info:empty {
|
|
315
|
+
display: none;
|
|
313
316
|
}
|
|
314
317
|
.file-wrapper .file.--error {
|
|
315
318
|
border: 1px solid var(--wmcolor-file-border-error);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { hideTooltip, intl, showTooltip, truncateText } from "../../global/functions";
|
|
1
|
+
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
+
import { debounce, hideTooltip, intl, showTooltip, truncateText } from "../../global/functions";
|
|
3
3
|
export class File {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.fullFilename = `${this.name}.${this.type}`;
|
|
6
|
+
this.debouncedUpdate = debounce(async () => {
|
|
7
|
+
forceUpdate(this.el);
|
|
8
|
+
}, 10);
|
|
6
9
|
this.name = undefined;
|
|
7
10
|
this.type = undefined;
|
|
8
11
|
this.fileActions = "download delete";
|
|
@@ -101,9 +104,7 @@ export class File {
|
|
|
101
104
|
this.showInfo = "last-updated";
|
|
102
105
|
}
|
|
103
106
|
// rerender on resize in case layout needs to change
|
|
104
|
-
const resizeObserver = new ResizeObserver(() =>
|
|
105
|
-
this.setFilename();
|
|
106
|
-
});
|
|
107
|
+
const resizeObserver = new ResizeObserver(() => this.debouncedUpdate());
|
|
107
108
|
resizeObserver.observe(this.el);
|
|
108
109
|
}
|
|
109
110
|
setFilename() {
|
|
@@ -112,8 +113,10 @@ export class File {
|
|
|
112
113
|
const fileNameEl = this.el.shadowRoot.querySelector(".filename");
|
|
113
114
|
const leftBoundary = this.el.shadowRoot.querySelector(".left-group").getBoundingClientRect().left;
|
|
114
115
|
const rightGroup = this.el.shadowRoot.querySelector(".right-group");
|
|
116
|
+
const file = this.el.shadowRoot.querySelector(".file");
|
|
117
|
+
const colGap = file ? getComputedStyle(file).getPropertyValue("column-gap") : "0";
|
|
115
118
|
const rightBoundary = rightGroup
|
|
116
|
-
? rightGroup.getBoundingClientRect().left
|
|
119
|
+
? rightGroup.getBoundingClientRect().left - parseFloat(colGap)
|
|
117
120
|
: this.el.shadowRoot.querySelector(".file-wrapper").getBoundingClientRect().right - 20;
|
|
118
121
|
fileNameEl.textContent = truncateText(fileNameEl, this.fullFilename, rightBoundary - leftBoundary, 7);
|
|
119
122
|
});
|
|
@@ -165,10 +168,10 @@ export class File {
|
|
|
165
168
|
return showActionMenu ? this.renderActionMenu() : this.renderFileActionButtons();
|
|
166
169
|
}
|
|
167
170
|
renderFile() {
|
|
168
|
-
return (h("div", { class: `file-wrapper ${this.progress === 100 ? "checked" : ""}` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""}` }, this.renderFileName(), !this.errorMessage && (h("div", { class:
|
|
171
|
+
return (h("div", { class: `file-wrapper ${this.progress === 100 ? "checked" : ""}` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""}` }, this.renderFileName(), !this.errorMessage && (h("div", { class: "right-group" }, this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
169
172
|
}
|
|
170
173
|
render() {
|
|
171
|
-
return h(Host, { role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
174
|
+
return h(Host, { key: '4cfe7b5dc435556cdbd89ecf10c635cad42a55ba', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
172
175
|
}
|
|
173
176
|
static get is() { return "wm-file"; }
|
|
174
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class FileList {
|
|
|
4
4
|
this.showInfo = "last-updated";
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { role: "list", class: "list-wrapper" }, h("slot",
|
|
7
|
+
return (h("div", { key: '398a8905ff498ed10cb7057d3c686f26d8f2a36f', role: "list", class: "list-wrapper" }, h("slot", { key: 'c66ff037e9ee2ced8b3ffef541164fe20ae3e125' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "wm-file-list"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,7 +101,7 @@ export class Input {
|
|
|
101
101
|
: `info error`;
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { class: "label-wrapper" }, h("label", { htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: "inner-wrapper" }, h("div", { class: "text-after-wrapper" }, h("div", { class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
104
|
+
return (h("div", { key: '7db24a360d7f3378e69aa3c8fb659aa91b8b913f', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '746b377195a7e93d1ec73f8de6122756d813992d', class: "label-wrapper" }, h("label", { key: '96ca5bc471e4f23aa6138dc377a38e5797b293e6', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: 'e51d0b811eb04dc446d4140a4adf36a4e85423da', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: '244fcf468648e136e5c4a528c070488dccaa7c94', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '40d75843b86aa0012a5bb7d277c6d17cd9164ff5', class: "inner-wrapper" }, h("div", { key: '1caa12e9919c11f22071aae6916bbc32d37bebc2', class: "text-after-wrapper" }, h("div", { key: '1e07eb06f59c4c343eb6fd6188440b51046d359c', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '84db811d1334653344e90eecbc687bd23d9ae032', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '844dca05f01dde484479577e83176aff952727ab', 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: '6e01dbb081603f9c27e39cb8dd33b144657d9654', 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: 'cde565ddedd1355ea1129cf38c3de4335da38631', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'a8d3c096987bd40efa9c5f7416df7cb50c9cc1ff', id: "info", class: "info" }, this.info)), h("div", { key: '48200834cdd3e3f633256afc75b4daacbf4fa0a8', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '8db2be5cc97bbad09213e40464010285857638f5', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "wm-input"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,7 +98,7 @@ export class Menuitem {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
101
|
+
return (h(Host, { key: '3bac72aee850267c275cb86f77dcbaaa6b79ac07', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '829bf3daebbb0b09dab511867a7bbd55e25b3383', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-menuitem"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,7 +30,7 @@ export class ModalFooter {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
|
|
33
|
+
return (h("div", { key: '7aeaff5b719c2f24e7b067c0657826c4a2ae0e6c', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '46bdd10fdf2e861afcd36534f9e0f9528c2e95b9', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '23ed4147dffa5b129ea7b05833c62bdf508f5a10', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'c1230f50033d37370ae4e975835392257879d762', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '318669121c5da214d2e144572365a80079f96d07', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "wm-modal-footer"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export class ModalHeader {
|
|
|
21
21
|
parentModal.emitCloseEvent();
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host,
|
|
24
|
+
return (h(Host, { key: '3a56e17c11753bd5e55dcec87a1eeb488073ddf3' }, h("div", { key: '188409a0e9e85abb377716ee0851bd3c19474df2', class: "wm-wrapper" }, h("div", { key: 'e9515b287cd6c45ae8fa48c7f2e171f8f929cc80' }, h("h2", { key: 'f9f150281c3bee04e00b1b0d639e2a7441eff58b', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '1d2fb839c61a76c626a86466f65b5f3df4ebb554', class: "subtitle" }, this.subheading))), h("wm-button", { key: '2262693ab60d738eba204ac3ee1a6a771697d98d', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "wm-modal-header"; }
|
|
27
27
|
static get originalStyleUrls() {
|
|
@@ -108,11 +108,11 @@ export class Modal {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("dialog", { class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
111
|
+
return (h("dialog", { key: '6df7a3efa44de84dda0a7db8b00ce3e73d6bfaf2', class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '466fc59dc692968164cb884f95133c801135b83f', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
112
112
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
113
113
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
114
114
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
115
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { class: "wm-tooltip" }), h("slot",
|
|
115
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '6620c44eea69d7095d9775bc7465b8965b0683a1', class: "wm-tooltip" }), h("slot", { key: 'b3fbed43652359efc57715f721fa8387851abdff' }), h("div", { key: 'b491260b6e98c6ef7bb49771942073256a0ccbb1', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
116
116
|
this.focusFirstElement.emit();
|
|
117
117
|
} })));
|
|
118
118
|
}
|
|
@@ -27,7 +27,7 @@ export class ModalPssFooter {
|
|
|
27
27
|
parentModal.emitSecondaryEvent();
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
|
|
30
|
+
return (h("div", { key: '9a1917a30eb29659097c4d4937dddedd5e39175c', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'e431b9fb8368fca71004e70168b945bc45529e71', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'f2e542ef079c6e69e6ef351f0c8cb51448a049ae', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '1f2e6c6e84cb557c3fc60e8bf293c3cc1b4d9fd9', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: 'a9fcc0baaf1ca0e5b43aa408bde089f27d77e4f6', "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() {
|