@watermarkinsights/ripple 5.22.0-alpha.2 → 5.22.0-alpha.4
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-70cb4536.js → app-globals-054d0c9e.js} +1 -1
- package/dist/cjs/{chartFunctions-369d5c6e.js → chartFunctions-d9aa9891.js} +39 -0
- package/dist/cjs/index-788526f5.js +10 -2
- package/dist/cjs/{interfaces-85d78ae9.js → interfaces-069f135e.js} +21 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +2 -2
- package/dist/{ripple/p-71a3be1c.entry.js → cjs/priv-chart-popover-old.cjs.entry.js} +145 -1
- package/dist/{ripple/p-0eb56759.entry.js → cjs/priv-chart-popover_2.cjs.entry.js} +175 -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 +1 -1
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-bar.cjs.entry.js +299 -0
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +5 -5
- package/dist/cjs/wm-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-flyout.cjs.entry.js +1 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +3 -3
- package/dist/cjs/wm-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/wm-option_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-search.cjs.entry.js +2 -2
- package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
- package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/charts/chartFunctions.js +36 -1
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +11 -9
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +190 -112
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +961 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +262 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +2 -2
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1071 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +423 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +903 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +155 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +2 -2
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +2 -2
- 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 +5 -5
- package/dist/collection/components/datepickers/wm-datepicker.js +5 -5
- 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 +1 -1
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-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.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.js +2 -2
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/chart-bar.js +110 -0
- package/dist/collection/global/interfaces.js +19 -0
- package/dist/esm/{app-globals-26c45c58.js → app-globals-20ff89a4.js} +1 -1
- package/dist/esm/{chartFunctions-02a60556.js → chartFunctions-f22160b5.js} +36 -1
- package/dist/esm/index-130e07bb.js +10 -2
- package/dist/esm/{interfaces-cc5b177f.js → interfaces-16deca17.js} +20 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +2 -2
- package/dist/esm/priv-chart-popover-old.entry.js +141 -0
- package/dist/esm/priv-chart-popover_2.entry.js +170 -0
- 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 +1 -1
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +3 -3
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart-bar.entry.js +295 -0
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +5 -5
- package/dist/esm/wm-datepicker.entry.js +5 -5
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-flyout.entry.js +1 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +3 -3
- package/dist/esm/wm-modal-pss_3.entry.js +4 -4
- package/dist/esm/wm-modal_3.entry.js +4 -4
- package/dist/esm/wm-navigation_3.entry.js +4 -4
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +3 -3
- package/dist/esm/wm-optgroup.entry.js +1 -1
- package/dist/esm/wm-option_2.entry.js +5 -5
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +4 -4
- package/dist/esm/wm-search.entry.js +2 -2
- package/dist/esm/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +6 -6
- package/dist/esm/wm-tag-input.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +2 -2
- package/dist/esm/wm-toggletip.entry.js +3 -3
- package/dist/esm/wm-uploader.entry.js +2 -2
- package/dist/esm-es5/{app-globals-26c45c58.js → app-globals-20ff89a4.js} +1 -1
- package/dist/esm-es5/{chartFunctions-02a60556.js → chartFunctions-f22160b5.js} +1 -1
- package/dist/esm-es5/index-130e07bb.js +1 -1
- package/dist/esm-es5/interfaces-16deca17.js +1 -0
- 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 -0
- package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -0
- 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 -0
- 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-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-7176d77c.system.entry.js → p-04f8cae1.system.entry.js} +1 -1
- package/dist/ripple/{p-be4f76b4.entry.js → p-093dd5b3.entry.js} +1 -1
- package/dist/ripple/{p-f1dea7a8.system.entry.js → p-0b2a0825.system.entry.js} +1 -1
- package/dist/ripple/p-0b5e5682.js +1 -0
- package/dist/ripple/p-0d5884f6.system.entry.js +1 -0
- package/dist/ripple/{p-4e9f0f73.system.entry.js → p-1124978e.system.entry.js} +1 -1
- package/dist/ripple/{p-80554ae6.entry.js → p-12eaf2d7.entry.js} +1 -1
- package/dist/ripple/{p-f3216137.entry.js → p-1b7774ab.entry.js} +1 -1
- package/dist/ripple/p-1c133402.system.entry.js +1 -0
- package/dist/ripple/{p-e73d5896.entry.js → p-1c86be31.entry.js} +1 -1
- package/dist/ripple/{p-886b50fb.entry.js → p-21114d99.entry.js} +1 -1
- package/dist/ripple/{p-466e929a.system.entry.js → p-221dedba.system.entry.js} +1 -1
- package/dist/ripple/{p-ecafbfba.entry.js → p-22cbc43b.entry.js} +1 -1
- package/dist/ripple/{p-6eeec16f.entry.js → p-241c2d63.entry.js} +1 -1
- package/dist/ripple/p-25e10302.system.js +1 -0
- package/dist/ripple/{p-1ea4427b.entry.js → p-28890409.entry.js} +1 -1
- package/dist/ripple/{p-8f6aa68c.system.entry.js → p-2b15945c.system.entry.js} +1 -1
- package/dist/ripple/p-30874e40.entry.js +1 -0
- package/dist/ripple/{p-a0acef05.system.entry.js → p-30c0aa58.system.entry.js} +1 -1
- package/dist/ripple/{p-4cc3a15f.entry.js → p-31468e67.entry.js} +1 -1
- package/dist/ripple/{p-57abd67f.entry.js → p-366f253f.entry.js} +1 -1
- package/dist/ripple/{p-78339dc5.system.entry.js → p-37fbdcf9.system.entry.js} +1 -1
- package/dist/ripple/{p-579e1c9d.system.entry.js → p-3d1098fb.system.entry.js} +1 -1
- package/dist/ripple/p-403e834e.entry.js +1 -0
- package/dist/ripple/{p-b3682bbf.system.entry.js → p-43b61559.system.entry.js} +1 -1
- package/dist/ripple/{p-1d1952d9.system.js → p-4869f367.system.js} +1 -1
- package/dist/ripple/{p-1f71cd3d.entry.js → p-4ba001c1.entry.js} +1 -1
- package/dist/ripple/{p-da6363c6.js → p-55f2245c.js} +1 -1
- package/dist/ripple/{p-86113458.system.entry.js → p-6643047f.system.entry.js} +1 -1
- package/dist/ripple/{p-f496570f.system.entry.js → p-6a18191e.system.entry.js} +1 -1
- package/dist/ripple/{p-f7543de4.entry.js → p-6ae45e19.entry.js} +1 -1
- package/dist/ripple/{p-52809f00.entry.js → p-6e6a9598.entry.js} +1 -1
- package/dist/ripple/{p-4b427510.entry.js → p-72643f00.entry.js} +1 -1
- package/dist/ripple/{p-b1b9f0de.system.entry.js → p-743536ae.system.entry.js} +1 -1
- package/dist/ripple/{p-2e6a00b8.system.entry.js → p-7568137d.system.entry.js} +1 -1
- package/dist/ripple/{p-0339b464.entry.js → p-7781f941.entry.js} +1 -1
- package/dist/ripple/{p-241e4847.system.entry.js → p-780de72e.system.entry.js} +1 -1
- package/dist/ripple/p-784fc89d.system.js +1 -0
- package/dist/ripple/{p-be8f0d4c.entry.js → p-7a6d6c76.entry.js} +1 -1
- package/dist/ripple/p-7b6a4bd6.entry.js +1 -0
- package/dist/ripple/{p-c9c76589.entry.js → p-7cd03a52.entry.js} +1 -1
- package/dist/ripple/{p-2fc989aa.system.entry.js → p-87992e3d.system.entry.js} +1 -1
- package/dist/ripple/p-87e8cef4.system.js +1 -0
- package/dist/ripple/{p-0c737405.system.entry.js → p-8bb49d8f.system.entry.js} +1 -1
- package/dist/ripple/{p-4edc18b1.system.entry.js → p-8c378a26.system.entry.js} +1 -1
- package/dist/ripple/{p-6d0f7f1d.system.entry.js → p-8d858325.system.entry.js} +1 -1
- package/dist/ripple/{p-5f54cc72.entry.js → p-8f96f4f8.entry.js} +1 -1
- package/dist/ripple/{p-f5c59ec1.entry.js → p-909f8797.entry.js} +1 -1
- package/dist/ripple/{p-0ed21cab.system.entry.js → p-91145304.system.entry.js} +1 -1
- package/dist/ripple/{p-cc85cd9b.entry.js → p-94ec4e2c.entry.js} +1 -1
- package/dist/ripple/{p-e9038796.entry.js → p-966f2c9e.entry.js} +1 -1
- package/dist/ripple/{p-ab72ce56.system.entry.js → p-984b3aa2.system.entry.js} +1 -1
- package/dist/ripple/{p-de03a626.entry.js → p-99f4dc24.entry.js} +1 -1
- package/dist/ripple/{p-c4648757.system.entry.js → p-9ea227e3.system.entry.js} +1 -1
- package/dist/ripple/{p-87e4a0d5.system.entry.js → p-9f089a36.system.entry.js} +1 -1
- package/dist/ripple/{p-5b225f21.system.entry.js → p-a7bddbfd.system.entry.js} +1 -1
- package/dist/ripple/{p-f546eefa.entry.js → p-b00cdcc6.entry.js} +1 -1
- package/dist/ripple/{p-cd77c8a1.system.entry.js → p-b2875298.system.entry.js} +1 -1
- package/dist/ripple/{p-22b8d0a4.system.entry.js → p-b41dfeea.system.entry.js} +1 -1
- package/dist/ripple/{p-22cbfae3.entry.js → p-b52e3001.entry.js} +1 -1
- package/dist/ripple/{p-822d0762.system.entry.js → p-b6d2b2c9.system.entry.js} +1 -1
- package/dist/ripple/{p-d8e7f0ab.system.entry.js → p-b8d69c73.system.entry.js} +1 -1
- package/dist/ripple/{p-5a38e30d.system.entry.js → p-bd7a5b99.system.entry.js} +1 -1
- package/dist/ripple/{p-6324b988.entry.js → p-c1cbb630.entry.js} +1 -1
- package/dist/ripple/{p-65b87f9b.entry.js → p-c24b745f.entry.js} +1 -1
- package/dist/ripple/p-c464dfd1.entry.js +1 -0
- package/dist/ripple/{p-b5bfb1a3.system.entry.js → p-c5c98974.system.entry.js} +1 -1
- package/dist/ripple/{p-07dd157d.entry.js → p-cc0cbbac.entry.js} +1 -1
- package/dist/ripple/{p-223efa2f.system.entry.js → p-d2ed3598.system.entry.js} +1 -1
- package/dist/ripple/{p-d05bd699.entry.js → p-d6e81f61.entry.js} +1 -1
- package/dist/ripple/{p-365ab12b.entry.js → p-e0743224.entry.js} +1 -1
- package/dist/ripple/{p-cc1ab21b.entry.js → p-e50d77b9.entry.js} +1 -1
- package/dist/ripple/{p-a2646792.system.entry.js → p-e5af888f.system.entry.js} +1 -1
- package/dist/ripple/p-efa7cdcc.js +1 -0
- package/dist/ripple/{p-d66d99cd.system.entry.js → p-f381b796.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/chartFunctions.d.ts +9 -1
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +20 -11
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +26 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +1 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +58 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +19 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +1 -1
- package/dist/types/components.d.ts +124 -6
- package/dist/types/global/interfaces.d.ts +41 -0
- package/package.json +2 -2
- package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -145
- package/dist/esm/priv-chart-popover.entry.js +0 -141
- package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +0 -1
- package/dist/ripple/p-18395d35.system.js +0 -1
- package/dist/ripple/p-2732bddd.js +0 -1
- package/dist/ripple/p-2ecde7a9.system.js +0 -1
- package/dist/ripple/p-42fa7a77.system.js +0 -1
- package/dist/ripple/p-9f10c71b.js +0 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class ChartLegend {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.chartIds = "";
|
|
5
|
+
this.orientation = "horizontal";
|
|
6
|
+
this.processedData = [];
|
|
7
|
+
this.printMode = false;
|
|
8
|
+
}
|
|
9
|
+
handleChartBarHighlighted(ev) {
|
|
10
|
+
if (this.chartIds.includes(ev.target.id)) {
|
|
11
|
+
this.highlightLegendItem(ev.detail.idx);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
highlightLegendItem(highlightedIdx) {
|
|
15
|
+
const legendItems = this.el.shadowRoot.querySelectorAll(".legend-item");
|
|
16
|
+
legendItems.forEach((item, idx) => {
|
|
17
|
+
if (highlightedIdx === -1) {
|
|
18
|
+
item.classList.remove("faded");
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
item.classList.toggle("faded", idx !== highlightedIdx);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
handleLegendItemClick(idx) {
|
|
26
|
+
this.wmLegendItemClick.emit({ idx: idx });
|
|
27
|
+
}
|
|
28
|
+
renderLegendItems() {
|
|
29
|
+
return this.processedData.map((item, idx) => (h("div", { class: "legend-item", key: item.label, onClick: () => this.handleLegendItemClick(idx) }, h("div", { class: "color", style: { "--color": `var(--${item.color})` } }), h("div", { class: "label" }, item.label), h("span", { class: `print-value ${this.printMode ? "force-visible" : ""}` }, "(", item.printValue, ")"))));
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h(Host, { key: 'c6cff1273bae9bd36f74c056bc7863a538e83e28' }, h("div", { key: '8538f637a18d8b7e9877f8a95ff6a31e8e7ee317', class: `legend-container --${this.orientation}` }, this.renderLegendItems())));
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "wm-chart-legend"; }
|
|
35
|
+
static get encapsulation() { return "shadow"; }
|
|
36
|
+
static get delegatesFocus() { return true; }
|
|
37
|
+
static get originalStyleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["wm-chart-legend.scss"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get styleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["wm-chart-legend.css"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get properties() {
|
|
48
|
+
return {
|
|
49
|
+
"chartIds": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "string",
|
|
54
|
+
"resolved": "string",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": ""
|
|
62
|
+
},
|
|
63
|
+
"attribute": "chart-ids",
|
|
64
|
+
"reflect": true,
|
|
65
|
+
"defaultValue": "\"\""
|
|
66
|
+
},
|
|
67
|
+
"orientation": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "\"horizontal\" | \"vertical\"",
|
|
72
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "orientation",
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"defaultValue": "\"horizontal\""
|
|
84
|
+
},
|
|
85
|
+
"processedData": {
|
|
86
|
+
"type": "unknown",
|
|
87
|
+
"mutable": true,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "ProcessedChartData[]",
|
|
90
|
+
"resolved": "ProcessedChartData[]",
|
|
91
|
+
"references": {
|
|
92
|
+
"ProcessedChartData": {
|
|
93
|
+
"location": "import",
|
|
94
|
+
"path": "../../../global/interfaces",
|
|
95
|
+
"id": "src/global/interfaces.ts::ProcessedChartData"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"defaultValue": "[]"
|
|
106
|
+
},
|
|
107
|
+
"printMode": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"attribute": "print-mode",
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"defaultValue": "false"
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static get events() {
|
|
128
|
+
return [{
|
|
129
|
+
"method": "wmLegendItemClick",
|
|
130
|
+
"name": "wmLegendItemClick",
|
|
131
|
+
"bubbles": true,
|
|
132
|
+
"cancelable": true,
|
|
133
|
+
"composed": true,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "{ idx: number }",
|
|
140
|
+
"resolved": "{ idx: number; }",
|
|
141
|
+
"references": {}
|
|
142
|
+
}
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
static get elementRef() { return "el"; }
|
|
146
|
+
static get listeners() {
|
|
147
|
+
return [{
|
|
148
|
+
"name": "wmChartBarHighlighted",
|
|
149
|
+
"method": "handleChartBarHighlighted",
|
|
150
|
+
"target": "document",
|
|
151
|
+
"capture": false,
|
|
152
|
+
"passive": false
|
|
153
|
+
}];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -437,9 +437,9 @@ export class LineChart {
|
|
|
437
437
|
return h("div", { class: "highlight", style: highlightStyle });
|
|
438
438
|
}
|
|
439
439
|
render() {
|
|
440
|
-
return (h(Host, { key: '
|
|
440
|
+
return (h(Host, { key: 'd71077fd494817a5d75776302d8772ea86cab2a2', onBlur: () => this.resetDataPointFocus(), onMouseLeave: () => (this.popoverIndex = -1) }, h("div", { key: '73ee07cd573cc5aa3034ef447481bd2303aea2c2', class: "component-wrapper", role: "application", "aria-roledescription": chartMessages.interactiveChart, "aria-label": this.label, "aria-describedby": "chart-description" }, this.renderLegend(), h("div", { key: 'b3187c1ca6cfde74edaca2d5c9005de4e03d9a64', class: "chart-wrapper" }, h("div", { key: '6077543fac538b72c07940d3c7e66d5d30d0a228', class: "chart-label --y-axis", style: { "--labelWidth": this.labelWidth } }, this.yAxisLabel, this.parsedUnits[1] && ` (${this.parsedUnits[1]})`), this.renderYIntervals(), h("div", { key: '7afba40086fabc3fe27693159f6dd09b74675d14', ref: (el) => (this.plotAreaEl = el), class: `plot-area ${this.hasPartialInterval ? "" : "right-border"}`, style: {
|
|
441
441
|
"--backgroundSize": `${this.dataPointMatrix[0][this.xIntervals.indexOf(this.displayedXIntervals[1])].xPositionPercent}%`,
|
|
442
|
-
} }, this.highlightStart && this.renderHighlight(), this.renderData(), this.renderHoverAreas()), this.popoverIndex !== -1 && this.renderHoverIndicator(), this.popoverIndex !== -1 && this.renderPopover(), this.renderXIntervals(), h("div", { key: '
|
|
442
|
+
} }, this.highlightStart && this.renderHighlight(), this.renderData(), this.renderHoverAreas()), this.popoverIndex !== -1 && this.renderHoverIndicator(), this.popoverIndex !== -1 && this.renderPopover(), this.renderXIntervals(), h("div", { key: 'f3b2098f7c228bb3319b48a0b5dcc94affebeea9', class: "chart-label --x-axis" }, this.xAxisLabel, this.parsedUnits[0] && ` (${this.parsedUnits[0]})`)), h("div", { key: '52b27249cdfa10fd9952445997018f70d0af746e', id: "chart-description", class: "sr-only" }, `${lineChartMessages.instructions} ${this.description}`), h("div", { key: 'd975b96198f6d4596bbe285b7c52697fc1ee1d87', ref: (el) => (this.liveRegionEl = el), "aria-live": "polite", class: "sr-only" }, this.announcement))));
|
|
443
443
|
}
|
|
444
444
|
static get is() { return "wm-line-chart"; }
|
|
445
445
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class ProgressIndicator {
|
|
|
21
21
|
this.focusedSliceId = undefined;
|
|
22
22
|
}
|
|
23
23
|
get popoverEl() {
|
|
24
|
-
return this.el.shadowRoot.querySelector("priv-chart-popover");
|
|
24
|
+
return this.el.shadowRoot.querySelector("priv-chart-popover-old");
|
|
25
25
|
}
|
|
26
26
|
get sliceEls() {
|
|
27
27
|
return Array.from(this.el.shadowRoot.querySelectorAll(".segment"));
|
|
@@ -95,7 +95,7 @@ export class ProgressIndicator {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '5a5639b1bc20b8c33439e2eaffb608b0a7011095', onBlur: () => exitChart.call(this) }, h("div", { key: 'f26436d3427d12c9a5a6236b82a35de6a8223644', 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: 'ae685bf92604deda11ae6bd253117d92b82950cf', id: `label-${this.uid}`, class: "label", htmlFor: `graphic-${this.uid}` }, h("span", { key: 'ed9cf74269fa625d0c106eb7d309297ee436af57', 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-old", { key: '783e866f5438191f655afcc23756a713b954e394', class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.mode === "doughnut" ? renderCompletionMessage.call(this) : ""), renderInstructionsText()));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "wm-progress-indicator"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class ProgressMonitor {
|
|
|
59
59
|
}))));
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: 'da5c58c7da486d6df7dae66ced77dacdf626de10', class: this.mode === "doughnut" ? "row" : "column" }, this.modeInitialized && this.groupLegend && this.mode === "bar" && this.renderLegend(), this.modeInitialized && h("slot", { key: '7255760c249e5e5a7855bfd5136d3ddc4f46d607' })));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "wm-progress-monitor"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -567,11 +567,11 @@ export class PrivCalendar {
|
|
|
567
567
|
return (h("div", { class: "month-view" }, h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
568
568
|
}
|
|
569
569
|
render() {
|
|
570
|
-
return (h(Host, { key: '
|
|
570
|
+
return (h(Host, { key: '2aafd5b792462429620aa1ff8e0682f3564cda98', onMouseOut: (ev) => {
|
|
571
571
|
// @ts-ignore
|
|
572
572
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
573
573
|
this.outOfCal.emit();
|
|
574
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '
|
|
574
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '1d7766c4097d8c8c0bb072824037ed7ad1a1a133', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: 'b32936860f9cdb52b648d0a06d11273650c2e7ff', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions)));
|
|
575
575
|
}
|
|
576
576
|
static get is() { return "priv-calendar"; }
|
|
577
577
|
static get originalStyleUrls() {
|
|
@@ -444,23 +444,23 @@ export class DateRange {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
render() {
|
|
447
|
-
return (h(Host, { key: '
|
|
447
|
+
return (h(Host, { key: 'b109396fe2f21a64cd873e8b9440775cc519dd45', "aria-busy": "false" }, h("div", { key: '3ecaff1fcd454d766c1d50f100157630dcc28950', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: 'ac794c5db9db4fca716ca590ac15a2e616e8ebcc', class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { key: '246f8c3699298e040602bfd7c2de46512e5c8952', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: 'ce137b04a07d3acee7506f94c5d6f64192488d3c', 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: '43af18445ddec4791e7538f3e7840c8db1cf5174', "aria-hidden": "true", class: "required" }, "*")))), h("div", { key: '67d809798eef2a00a3a1990b2f62cb61b08bee66', class: "label-wrapper", id: "end-label-wrapper" }, h("label", { key: 'f9b732848c704062663fc864f572c9038b09b184', id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { key: '4528718ba765daa294d13a866076c7496d907418', "aria-hidden": "true", class: "required" }, "*")))), h("input", { key: '9b408000f1406925cfb03ac3c48012f6a6ece1b9', 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: '88e094d36a7cd7f1c89f566fffa80d7be3fba084', id: "hyphen" }, "\u00A0-\u00A0"), h("input", { key: '6a77eb81537f301f0feecb6e33ff8b5af29fdf52', 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: 'b39dd26bd7846e53bb4e7dee29f261e8349e5838', class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { key: '5afa94522fe03b78300b60714eb7a43357a15975', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
448
448
|
id: "date.selectRange",
|
|
449
449
|
defaultMessage: "Select range",
|
|
450
450
|
description: "Button text for screen readers.",
|
|
451
|
-
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '
|
|
451
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: 'db42cd8e357bf257a346bfb5019d75007e162908', class: "svg-icon svg-date" }), h("span", { key: 'd793353d00d8a0397eafdc1d4173eb2cd2088ed7', class: "calendar", title: intl.formatMessage({
|
|
452
452
|
id: "date.calendarView",
|
|
453
453
|
defaultMessage: "Calendar View",
|
|
454
454
|
description: "Calendar button",
|
|
455
|
-
}) })))), this.renderCalendars()), h("div", { key: '
|
|
455
|
+
}) })))), this.renderCalendars()), h("div", { key: '16e75fa0fbb3b1ee089ff5d8049300c98da35958' }, h("div", { key: '19172dfe01394e18ac34b358a6968c70db7f2573', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'b22d6de99f843512efa277b56545ffaf5a8f897c', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
456
456
|
id: "date.selectMonth",
|
|
457
457
|
defaultMessage: "Activate to select a month.",
|
|
458
458
|
description: "Calendar button",
|
|
459
|
-
})), h("div", { key: '
|
|
459
|
+
})), h("div", { key: 'a52c29ca8e72a426f234ab31507c55810272141e', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
460
460
|
id: "date.selectYear",
|
|
461
461
|
defaultMessage: "Activate to select a year.",
|
|
462
462
|
description: "Calendar button",
|
|
463
|
-
}))), h("div", { key: '
|
|
463
|
+
}))), h("div", { key: '1764a2d8a8d496a7b35c57c0c74403e5e602ec23', id: "error", class: "error" }, this.errorMessage), h("div", { key: 'd53344bf16c637a22a3a29c52ddfbefb433edef3', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
|
|
464
464
|
}
|
|
465
465
|
static get is() { return "wm-date-range"; }
|
|
466
466
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,23 +244,23 @@ export class DatePicker {
|
|
|
244
244
|
this.liveRegionEl.textContent = message;
|
|
245
245
|
}
|
|
246
246
|
render() {
|
|
247
|
-
return (h(Host, { key: '
|
|
247
|
+
return (h(Host, { key: '83455f9c9046c1b63a0d4a75c32e71566792034f', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'c0fe8792071584db17fd0388190a83f99cfa9e75', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'e9cff92f79f21aad4b201658a8e96566c98ee980', class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { key: '3819fc7554853ab6e7bfd52c161cfbebd4030ce2', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})`, onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '55e92d2dddffd4feab86a170e1305952931a6a03', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '90b0465d5cfbf542816a18cad8b0f474a1d3da55' }, h("div", { key: '7485a2e48eae35e68908760d0192290f4ed9d0a9', class: "single-wrapper input" }, h("input", { key: 'da3c6f17634d343a41a0295442e3005f027c8841', 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: 'f9a4d91b3ff10f38c0ff9163cc3c24129982dcc0', ref: (el) => (this.buttonContainerEl = el), class: "container", id: "wm-container" }, h("button", { key: '57a9bb0b781af2d30ff39fc93ad180b7fec054a4', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": intl.formatMessage({
|
|
248
248
|
id: "date.selectDate",
|
|
249
249
|
defaultMessage: "Select date",
|
|
250
250
|
description: "Button text for screen readers.",
|
|
251
|
-
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '
|
|
251
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '0cb9f751b4e428314b9e2a383f8a259183acb37b', class: "svg-icon svg-date" }), h("span", { key: 'd9ac9a4d6fd54e5e0f1b3fafa828559646949d5c', class: "calendar", title: intl.formatMessage({
|
|
252
252
|
id: "date.calendarView",
|
|
253
253
|
defaultMessage: "Calendar View",
|
|
254
254
|
description: "Calendar button",
|
|
255
|
-
}) })), h("div", { key: '
|
|
255
|
+
}) })), h("div", { key: '184e629137c2e80c7eeb5f8760bc68749f84dd7b', 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: '3932064e0eb8d766aeee2209955fdd27334e4ffa', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '30d83c7383fb609826e64faf75b2f082737862f9', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: '6073453ccbea46e8ebc0a7f2af20a05b970eadad', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: '51799e77c886638ce8bbe767efec59c03051e0d4', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '7bdef2efb413030625e4aa411715805ada1354bf', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
256
256
|
id: "date.selectMonth",
|
|
257
257
|
defaultMessage: "Activate to select a month.",
|
|
258
258
|
description: "Calendar button",
|
|
259
|
-
})), h("div", { key: '
|
|
259
|
+
})), h("div", { key: 'c820823ae691ace75019ce8f05eada9fe9258609', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
260
260
|
id: "date.selectYear",
|
|
261
261
|
defaultMessage: "Activate to select a year.",
|
|
262
262
|
description: "Calendar button",
|
|
263
|
-
})))), h("div", { key: '
|
|
263
|
+
})))), h("div", { key: 'dd428b97471466199b2783234813d1c7a6ec546e', id: "error", class: "error" }, this.errorMessage), h("div", { key: '01bf851dbfef15886e44b364287984a9357241d7', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
264
264
|
}
|
|
265
265
|
static get is() { return "wm-datepicker"; }
|
|
266
266
|
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: '01cfda19a94fd32e7e6ffdd254f15e8892a13527', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '2c4e2d66a3458bf9d54ee2f8451e6c52dade91d8', 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: 'd336140d727b053edff401eb5026d07c77f5cdef' })), h("div", { key: '3c21902d641b645fd83489f1f718b4719cce59cf', 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: '0a1e350bb54bd55cd63453bc7a62c79f9fe2cffe', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: 'c39f5c39105186a6becbcd06f93ae62b75e06f5a', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '3a8893cd1ad69abafc85987001a82e1801879895', class: "label-wrapper" }, h("label", { key: 'a2214f07dcc56e805cea3308b1c8ad8c4de1c1ef', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
295
295
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
296
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '
|
|
296
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '41d6a46a4d6875205a5c7000915cfa79828199e7', class: "button-wrapper" }, h("button", Object.assign({ key: 'f52847e0ce5a0c85d4c5753a5922da146cbb25a5' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: 'ea3b300e83dfd659fa728ea8826f8663b7b509a3', class: "overflowcontrol" }, h("span", { key: '7b40fea61b005aede5173690b8ac056209b27587', class: "button-text" }, this.renderButtonText())), h("div", { key: '09c0b29901123c4b00e32a375e17218d68af0a19', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '2912d5c58cfffc0ee1d9e2d681b89f70f6a1bb68', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '64e5c65e8af0445cdd2933ee7e8027d10c03d829', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.renderClearSelectionButton(), h("div", { key: 'ba31768e22153c41c2eecb6de7e9de5420bc446a', 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: '02a98c5b1defbea903b342f8b38f39986c687170', class: `option-list-wrapper ${this.isGroupExpanded ? "" : "hidden"}` }, h("slot", { key: '79dd9780df96268a4c2c04ef78d45b14462ab3e5' }))), h("div", { key: '2ebac56be3a30480d4f1d476ef8fc241169e1075', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: '6842a3f6062ba4d79e2d539f88d187d51478c72b', 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: '7c310f384ca367c49fea1dfee2638ba4fb00eba5' }, h("div", { key: '58f81aa34832a2dff3e1eb4d65e3b212a00521b4', class: `list-wrapper` }, h("priv-option-list", { key: 'd3a618f8369f3bf7d589f33c858de9354a65adb2', 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: 'ebbc67c87d1745350c2aff0c69fcc411f69a5b06' })))));
|
|
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: 'd26e8bfc356e68f71747c97ec999ebfe80aa81f9', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: 'b20cd4ea1e33c17c5603e4439465239d2983a7af', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: 'e8f9195ee5f0e773ac0beeda221a4ef696ce2ae9', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '3ddca0ac8271eaefcea4f15ee6f68eb5101876bd', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '059df85edccf6a947f9c281835325a6eeeaa0457', class: "sr-only" }, this.el.textContent)), h("div", { key: '615335972019fe8c39dd287211ce3ee39770ff13', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -314,14 +314,14 @@ export class Select {
|
|
|
314
314
|
}
|
|
315
315
|
render() {
|
|
316
316
|
const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
|
|
317
|
-
return (h(Host, { key: '
|
|
317
|
+
return (h(Host, { key: 'e58f2afa4361d7e27f94175a32acb0f93701cf76', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '13de69b572a4af34c1abc0002bbc8a87dc7d521a', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'd234f604a3f94f843617733f6a8f5baaabc098d3', class: "label-wrapper" }, h("label", { key: '9dac4166a74898241e6422cd93023e5980d015bf', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
318
318
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
319
|
-
this.requiredField && (h("span", { key: '
|
|
319
|
+
this.requiredField && (h("span", { key: '788b4c52a1e59bfb425f909374f722b5856b8fb3', class: "required" }, h("span", { key: '95cbdb98f925a5b80579a77147151903f2f63618', class: "sr-only" }, globalMessages.requiredField), h("span", { key: 'ca3dacb55461f2cd7f5b81c746e5b70d8bd82f27', "aria-hidden": "true" }, "*")))), h("div", { key: '65cb0cbfe742c251b082adc84af5648a54ff4f12', class: "button-wrapper" }, h("button", { key: '8731a753912360eeb0ed4b60019463bf4398f8ae', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'e8d751bedfcc1922416fc177f43153ed2dfa0f84', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '104277dfd731f7138889d573ad33ab7e5f8f4ffe', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'cddb5d3cb91877c2adf73978e2e3114e3a148999', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: 'e4e76e115d85e4a3d24a17d762dec65091c14c69', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '910df5182752522e9a709afbbb9d885b4cb93f46', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '620f6414a70890323eb11958ff2c17415a86e437',
|
|
320
320
|
// is-open is for the CSS transition in modern browsers
|
|
321
321
|
// hidden is to wait for position calculations in Firefox
|
|
322
322
|
class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
|
|
323
323
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
324
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '
|
|
324
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: 'a059818c76eaad5b43895e30cc9a40ada0bc3ffa', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
|
|
325
325
|
this.dropdownEl.hidePopover();
|
|
326
326
|
}, onOptionListAllSelected: () => {
|
|
327
327
|
this.returnFocus = true;
|
|
@@ -329,7 +329,7 @@ export class Select {
|
|
|
329
329
|
}, onOptionListAllDeselected: () => {
|
|
330
330
|
this.returnFocus = true;
|
|
331
331
|
this.wmSelectAllDeselected.emit();
|
|
332
|
-
} }, h("slot", { key: '
|
|
332
|
+
} }, h("slot", { key: 'a8f910407e5bbba4b5d6e004f2114f2519c56454' }))), h("div", { key: '13651a1650697c9860718e4665dbf300ab6e5faa', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'f627a9e7035ea2f2df40493242965d2e15184de9', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
333
333
|
}
|
|
334
334
|
static get is() { return "wm-select"; }
|
|
335
335
|
static get encapsulation() { return "shadow"; }
|
|
@@ -190,7 +190,7 @@ export class ActionMenu {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: '1b8e3626cfe3e94e978a5027a726621e38c18a45', onBlur: () => this.close(false) }, h("div", { key: '6ba7b43d42620a686783424efccc1741a8c4586c', class: getTextDir() }, h("wm-button", { key: 'f44fc8c9b988d25d8dc5fb42679bfb2eb8a9f206', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "#more-options" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { key: '837961a084c57516e58e1d1991408a4591a7aaa8', 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: 'dd4244cd879e7b5c7ffe7995601b8788980f99c5' })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "wm-action-menu"; }
|
|
196
196
|
static get encapsulation() { return "shadow"; }
|
|
@@ -249,7 +249,7 @@ export class Button {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
render() {
|
|
252
|
-
return (h(Host, { key: '
|
|
252
|
+
return (h(Host, { key: 'cfdc5af9869cf51dc3c168b7452d6e1f7f3a3c12', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'b5852385e8b842ab2770e41893cad1ab3d9febf2', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, (this.icon || this.buttonType.endsWith("-ai")) && this.renderIcon(), (!this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly")) && (h("span", { key: 'e63d9ee2399ca6886c649e3e427f9bec11802ca4', class: "button-text" }, h("slot", { key: 'b4835a17f4363ea61b5a9bd9d2d227dd6125ecaf' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'ee631ccbe050c4b9591a25b6a8cedc89451a6903', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
253
253
|
}
|
|
254
254
|
static get is() { return "wm-button"; }
|
|
255
255
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,7 +187,7 @@ export class File {
|
|
|
187
187
|
return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""} ${this.isExtraCondensed ? "extra-condensed" : ""}` }, this.renderFileName(), showRightGroup && (h("div", { class: "right-group" }, !this.isExtraCondensed && this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("div", { class: "right-group" }, h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.progress == 100 && h("span", { class: "svg-icon svg-success" })), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return h(Host, { key: '
|
|
190
|
+
return h(Host, { key: 'ff96d6aecde88c7dbe404187f5fe266f6891ae10', 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: 'fd450a53e6f8ec69b35586cfcf4ded2ae8558f20', role: "list", class: "list-wrapper" }, h("slot", { key: 'a22f7a28535d7a311c7f0ce25296924ffcb82ffc' })));
|
|
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: '5abd44475121c3711b1b45dd0ccbcf6598947a05' }, h("dialog", { key: '95dbde14e558cc011a344de5456b9114380ba886', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: '25592c3e84f679397606b1fe6bc27ccd1d7b8426', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: 'f8455bed60f556d580021ca0b57e14dc2d7a7589', class: "flyout-content" }, h("slot", { key: 'bcf1fc296d9d203ed2093648b26285f502a2135b' })), this.renderFooter(), h("div", { key: '573d7f2f6bd77a449080e9435ebeb3f9f6249e82', 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: 'd4aaf4e85013a21c72d2bc29b779bc531af63c7a', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '09841604f10ee7f90b72a02b8f205983208b8847', class: "label-wrapper" }, h("label", { key: '5ceaeeb463d2a91aa89cf3713deaad2702e0be41', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '225a478b431cc1966dd55c7113ebff9e3a972694', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: '4be6730fc552c46f98dd445ef8034f6317aeaabf', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'b1ac92828de964e90229055b9c0c55c97c470805', class: "inner-wrapper" }, h("div", { key: '622d539566c05c7c0cd633edf9d5186eb3c082f2', class: "text-after-wrapper" }, h("div", { key: '83e3981b671a9039b83c6526003e6dee62f6e9bd', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: 'c51a71084b6761330fb9e4a4344f35cd659deef7', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '0b88b518786fadd884f624927c00d9a4802b90aa', 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: '7dd23511cb81aae62c4dde84880307f812d78d4d', 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: '9e8052c5a373c96f302354f7f95c38d27296fec6', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '80fd203c7fa68b2e0d612ad39090f0fd69526a83', id: "info", class: "info" }, this.info)), h("div", { key: 'bf3dba5e6ce9bdadbfddc231ea2fa684319489f2', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '316de8f690fad0ceb1c1e43ed6dab152dc23a0b8', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "wm-input"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,7 +98,7 @@ export class Menuitem {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '81bc0ba0714a6d885cfdce07a3e698562b0a19e7', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '5086ca8cce0a270e3600fa559daab22ea8baf9c4', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-menuitem"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class ModalFooter {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '491f1ad5bb178b42c9e51c4d0879070e77a7f2a9', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: 'b6c785db316aba6a14f6f2ffe6b54e496fc46f80', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: '5a73e1f8579637c8c0f16d1fd98daa1059b70ca4', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '26c0c6eefd2ef6e0d3ebb87d6d79c1ea4237be3b', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '61832b3a218df2e001b532bb2c3968de0665a9db', "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: '85348ecf5ef8d53807c965890fe245a6f5962003' }, h("div", { key: '48f782896bd53234c601b5ff853ed7ec0d077357', class: "wm-wrapper" }, h("div", { key: '1297ffe9269d4866ae6d343dfb37b50ea7cb1733' }, h("h2", { key: '6b777b66f9aec32bdbe1a2464b709d4a7d8c7add', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '415004f8cd63c2ac1a2beab4fe2d732edd3b06c8', class: "subtitle" }, this.subheading))), h("wm-button", { key: '342a5de331967b530ce75b074016ec724099bfe0', "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() {
|
|
@@ -116,11 +116,11 @@ export class Modal {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
render() {
|
|
119
|
-
return (h("dialog", { key: '
|
|
119
|
+
return (h("dialog", { key: '79bdf56bcea90cc9848bf4027e0a2552eee31709', 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: '5fda5d81c1b468c883316d319a6975852106de5d', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
120
120
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
121
121
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
122
122
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
123
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
123
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '0255a1dda891b5e69874cc02f4579fac9ec5de04', class: "wm-tooltip" }), h("slot", { key: 'e861a82a26202beb548db440a9e708f6c4fdad84' }), h("div", { key: 'ad5fc44a752fb903338b175cf3eee115e416047f', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
124
124
|
this.focusFirstElement.emit();
|
|
125
125
|
} })));
|
|
126
126
|
}
|