@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
|
@@ -2,31 +2,32 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { debounce, findAllScrollableParents, intl } from "../../../global/functions";
|
|
3
3
|
export class ChartPopover {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.chartEl = this.el.parentElement.getRootNode().host;
|
|
6
5
|
this.popoverWidth = 168;
|
|
7
6
|
this.popoverClicked = false;
|
|
8
7
|
this.debouncedClosePopover = debounce(async () => {
|
|
9
8
|
this.open = false;
|
|
10
9
|
}, 10);
|
|
10
|
+
this.chartData = undefined;
|
|
11
|
+
this.header = "";
|
|
12
|
+
this.text = "";
|
|
13
|
+
this.buttonText = "";
|
|
14
|
+
this.coords = { x: 0, y: 0 };
|
|
11
15
|
this.open = false;
|
|
12
|
-
this.
|
|
16
|
+
this.announcement = "";
|
|
17
|
+
this.isTabbing = false;
|
|
13
18
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
? this.wmChartPopoverButtonTriggered
|
|
17
|
-
: this.wmProgressIndicatorButtonTriggered;
|
|
19
|
+
toggleTabbingOn() {
|
|
20
|
+
this.isTabbing = true;
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
toggleTabbingOff() {
|
|
23
|
+
this.isTabbing = false;
|
|
24
|
+
}
|
|
25
|
+
handleClickOnDocument(_ev) {
|
|
22
26
|
// the element within wm-chart is determined by the other listener and saved as var popoverClicked for use here
|
|
23
27
|
// capture = false in @Listen ensures order of execution
|
|
24
28
|
if (this.open) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.open = this.popoverClicked;
|
|
28
|
-
this.popoverClicked = false;
|
|
29
|
-
}
|
|
29
|
+
this.open = this.popoverClicked;
|
|
30
|
+
this.popoverClicked = false;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
handleClick(ev) {
|
|
@@ -39,8 +40,8 @@ export class ChartPopover {
|
|
|
39
40
|
componentDidLoad() {
|
|
40
41
|
// set up event listeners for scrolling
|
|
41
42
|
// to close popover on page scroll
|
|
42
|
-
const scrollableParents = findAllScrollableParents(this.
|
|
43
|
-
scrollableParents.forEach(scrollableParent => {
|
|
43
|
+
const scrollableParents = findAllScrollableParents(this.el);
|
|
44
|
+
scrollableParents.forEach((scrollableParent) => {
|
|
44
45
|
if (scrollableParent === document.documentElement) {
|
|
45
46
|
// For document element, listen to window scroll event
|
|
46
47
|
window.addEventListener("scroll", () => {
|
|
@@ -57,70 +58,57 @@ export class ChartPopover {
|
|
|
57
58
|
}
|
|
58
59
|
handleOpenChange() {
|
|
59
60
|
this.intChartPopoverOpenChanged.emit(this.open);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
if (this.open) {
|
|
62
|
+
this.popoverEl.showPopover();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.popoverEl.hidePopover();
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// if (this.open) {
|
|
69
|
-
// this.highlightSegmentInfo(this.sliceDetails);
|
|
70
|
-
// } else {
|
|
71
|
-
// this.removeSegmentInfoHighlight();
|
|
72
|
-
// }
|
|
73
|
-
// }
|
|
68
|
+
handleDetailsChange() {
|
|
69
|
+
this.positionPopover();
|
|
74
70
|
}
|
|
75
71
|
handleButtonClick() {
|
|
76
|
-
if (this.
|
|
77
|
-
|
|
78
|
-
sliceRef.click();
|
|
79
|
-
this.eventToEmit.emit(sliceRef);
|
|
72
|
+
if (this.chartData) {
|
|
73
|
+
this.wmPopoverButtonClick.emit(this.chartData);
|
|
80
74
|
}
|
|
81
75
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
wrapper.appendChild(buttonEl);
|
|
102
|
-
}
|
|
103
|
-
this.liveRegion.appendChild(wrapper);
|
|
76
|
+
announce(message) {
|
|
77
|
+
var _a;
|
|
78
|
+
// \u00A0 is a non-breaking space character, which causes the message to be read as a new one
|
|
79
|
+
if (((_a = this.liveRegionEl) === null || _a === void 0 ? void 0 : _a.textContent) === message) {
|
|
80
|
+
message += "\u00A0";
|
|
81
|
+
}
|
|
82
|
+
this.announcement = message;
|
|
83
|
+
}
|
|
84
|
+
async announceContents() {
|
|
85
|
+
let contentsMessage = this.header + " " + this.text;
|
|
86
|
+
if (this.buttonText) {
|
|
87
|
+
contentsMessage +=
|
|
88
|
+
" " +
|
|
89
|
+
this.buttonText +
|
|
90
|
+
" " +
|
|
91
|
+
intl.formatMessage({
|
|
92
|
+
id: "chart.infoButton",
|
|
93
|
+
defaultMessage: "Button. Click for more information.",
|
|
94
|
+
});
|
|
104
95
|
}
|
|
96
|
+
this.announce(contentsMessage);
|
|
105
97
|
}
|
|
106
98
|
positionPopover() {
|
|
107
|
-
this.
|
|
108
|
-
if (window.innerWidth - this.
|
|
109
|
-
this.
|
|
99
|
+
this.popoverEl.style.top = this.coords.y + "px";
|
|
100
|
+
if (window.innerWidth - this.coords.x >= this.popoverWidth + 10) {
|
|
101
|
+
this.popoverEl.style.left = this.coords.x + "px"; // opens on the right
|
|
110
102
|
}
|
|
111
103
|
else {
|
|
112
|
-
this.
|
|
104
|
+
this.popoverEl.style.left = this.coords.x - this.popoverWidth + "px"; // opens on the left
|
|
113
105
|
}
|
|
114
106
|
}
|
|
115
107
|
render() {
|
|
116
|
-
const titleAffordance = this.
|
|
117
|
-
|
|
118
|
-
(this.sliceDetails.title[0] === "-" ? "negative" : this.sliceDetails.title[0] === "+" ? "positive" : "");
|
|
119
|
-
return (h(Host, { key: '25275e7ca9b1744629a4da08abccc1b99f301286' }, !!this.open && this.sliceDetails ? (h("div", { "aria-hidden": "true", class: "popover" }, h("h1", { class: `title ${titleAffordance}` }, this.sliceDetails.title), h("p", { class: "text" }, this.sliceDetails.text), this.sliceDetails.buttonText ? (
|
|
120
|
-
// @ts-ignore
|
|
121
|
-
h("button", { tabindex: "-1",
|
|
108
|
+
const titleAffordance = this.header && (this.header[0] === "-" ? "negative" : this.header[0] === "+" ? "positive" : "");
|
|
109
|
+
return (h(Host, { key: '7f6b028aee35ec85334b34083e991b0c4ea2a21e', class: this.isTabbing ? "user-is-tabbing" : "" }, h("div", { key: '4fc8cbaf266b9b5d3613b28d2d6fbd6eb4d9f5c1', ref: (el) => (this.popoverEl = el), popover: "manual", "aria-hidden": "true", class: "popover" }, h("h1", { key: '99af3558a4f40d3eb5cd6a6d149d0d01cf730dc0', class: `title ${titleAffordance}` }, this.header), h("p", { key: 'b7404a255a298171b8eb9e2f6f0689fba433cbeb', class: "text" }, this.text), this.buttonText ? (h("button", { tabindex: "-1",
|
|
122
110
|
// @ts-ignore
|
|
123
|
-
focusable: "false", class: "popover-button", onClick: () => this.handleButtonClick() }, h("svg", { class: "btn-icon", height: "9", width: "9" }, h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })), h("span", { class: "button-text" }, this.
|
|
111
|
+
focusable: "false", class: "popover-button", onClick: () => this.handleButtonClick() }, h("svg", { class: "btn-icon", height: "9", width: "9" }, h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })), h("span", { class: "button-text" }, this.buttonText))) : ("")), h("div", { key: 'be4379d80b04f4c9e6b01c353587297c1ed6b2dc', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.announcement)));
|
|
124
112
|
}
|
|
125
113
|
static get is() { return "priv-chart-popover"; }
|
|
126
114
|
static get originalStyleUrls() {
|
|
@@ -135,12 +123,33 @@ export class ChartPopover {
|
|
|
135
123
|
}
|
|
136
124
|
static get properties() {
|
|
137
125
|
return {
|
|
138
|
-
"
|
|
139
|
-
"type": "
|
|
140
|
-
"mutable":
|
|
126
|
+
"chartData": {
|
|
127
|
+
"type": "unknown",
|
|
128
|
+
"mutable": false,
|
|
141
129
|
"complexType": {
|
|
142
|
-
"original": "
|
|
143
|
-
"resolved": "
|
|
130
|
+
"original": "ChartData",
|
|
131
|
+
"resolved": "undefined | { [key: string]: any; label: string; amount: number; color?: string | undefined; popoverTitle?: string | undefined; popoverText?: string | undefined; popoverButtonText?: string | undefined; }",
|
|
132
|
+
"references": {
|
|
133
|
+
"ChartData": {
|
|
134
|
+
"location": "import",
|
|
135
|
+
"path": "../../../global/interfaces",
|
|
136
|
+
"id": "src/global/interfaces.ts::ChartData"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": true,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"header": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
144
153
|
"references": {}
|
|
145
154
|
},
|
|
146
155
|
"required": false,
|
|
@@ -149,57 +158,92 @@ export class ChartPopover {
|
|
|
149
158
|
"tags": [],
|
|
150
159
|
"text": ""
|
|
151
160
|
},
|
|
152
|
-
"attribute": "
|
|
161
|
+
"attribute": "header",
|
|
153
162
|
"reflect": false,
|
|
154
|
-
"defaultValue": "
|
|
163
|
+
"defaultValue": "\"\""
|
|
164
|
+
},
|
|
165
|
+
"text": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "string",
|
|
170
|
+
"resolved": "string",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": ""
|
|
178
|
+
},
|
|
179
|
+
"attribute": "text",
|
|
180
|
+
"reflect": false,
|
|
181
|
+
"defaultValue": "\"\""
|
|
155
182
|
},
|
|
156
|
-
"
|
|
183
|
+
"buttonText": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "string",
|
|
188
|
+
"resolved": "string",
|
|
189
|
+
"references": {}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": false,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": ""
|
|
196
|
+
},
|
|
197
|
+
"attribute": "button-text",
|
|
198
|
+
"reflect": false,
|
|
199
|
+
"defaultValue": "\"\""
|
|
200
|
+
},
|
|
201
|
+
"coords": {
|
|
157
202
|
"type": "unknown",
|
|
158
203
|
"mutable": false,
|
|
159
204
|
"complexType": {
|
|
160
|
-
"original": "
|
|
161
|
-
"resolved": "
|
|
162
|
-
"references": {
|
|
163
|
-
"SliceDetails": {
|
|
164
|
-
"location": "import",
|
|
165
|
-
"path": "../../../global/interfaces",
|
|
166
|
-
"id": "src/global/interfaces.ts::SliceDetails"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
205
|
+
"original": "{ x: number; y: number }",
|
|
206
|
+
"resolved": "{ x: number; y: number; }",
|
|
207
|
+
"references": {}
|
|
169
208
|
},
|
|
170
209
|
"required": false,
|
|
171
|
-
"optional":
|
|
210
|
+
"optional": false,
|
|
172
211
|
"docs": {
|
|
173
212
|
"tags": [],
|
|
174
213
|
"text": ""
|
|
175
|
-
}
|
|
214
|
+
},
|
|
215
|
+
"defaultValue": "{ x: 0, y: 0 }"
|
|
216
|
+
},
|
|
217
|
+
"open": {
|
|
218
|
+
"type": "boolean",
|
|
219
|
+
"mutable": true,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "boolean",
|
|
222
|
+
"resolved": "boolean",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": ""
|
|
230
|
+
},
|
|
231
|
+
"attribute": "open",
|
|
232
|
+
"reflect": false,
|
|
233
|
+
"defaultValue": "false"
|
|
176
234
|
}
|
|
177
235
|
};
|
|
178
236
|
}
|
|
237
|
+
static get states() {
|
|
238
|
+
return {
|
|
239
|
+
"announcement": {},
|
|
240
|
+
"isTabbing": {}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
179
243
|
static get events() {
|
|
180
244
|
return [{
|
|
181
|
-
"method": "
|
|
182
|
-
"name": "
|
|
183
|
-
"bubbles": true,
|
|
184
|
-
"cancelable": true,
|
|
185
|
-
"composed": true,
|
|
186
|
-
"docs": {
|
|
187
|
-
"tags": [],
|
|
188
|
-
"text": ""
|
|
189
|
-
},
|
|
190
|
-
"complexType": {
|
|
191
|
-
"original": "HTMLWmChartSliceElement",
|
|
192
|
-
"resolved": "HTMLWmChartSliceElement",
|
|
193
|
-
"references": {
|
|
194
|
-
"HTMLWmChartSliceElement": {
|
|
195
|
-
"location": "global",
|
|
196
|
-
"id": "global::HTMLWmChartSliceElement"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}, {
|
|
201
|
-
"method": "wmProgressIndicatorButtonTriggered",
|
|
202
|
-
"name": "wmProgressIndicatorButtonTriggered",
|
|
245
|
+
"method": "wmPopoverButtonClick",
|
|
246
|
+
"name": "wmPopoverButtonClick",
|
|
203
247
|
"bubbles": true,
|
|
204
248
|
"cancelable": true,
|
|
205
249
|
"composed": true,
|
|
@@ -208,12 +252,13 @@ export class ChartPopover {
|
|
|
208
252
|
"text": ""
|
|
209
253
|
},
|
|
210
254
|
"complexType": {
|
|
211
|
-
"original": "
|
|
212
|
-
"resolved": "
|
|
255
|
+
"original": "ChartData",
|
|
256
|
+
"resolved": "{ [key: string]: any; label: string; amount: number; color?: string | undefined; popoverTitle?: string | undefined; popoverText?: string | undefined; popoverButtonText?: string | undefined; }",
|
|
213
257
|
"references": {
|
|
214
|
-
"
|
|
215
|
-
"location": "
|
|
216
|
-
"
|
|
258
|
+
"ChartData": {
|
|
259
|
+
"location": "import",
|
|
260
|
+
"path": "../../../global/interfaces",
|
|
261
|
+
"id": "src/global/interfaces.ts::ChartData"
|
|
217
262
|
}
|
|
218
263
|
}
|
|
219
264
|
}
|
|
@@ -234,18 +279,51 @@ export class ChartPopover {
|
|
|
234
279
|
}
|
|
235
280
|
}];
|
|
236
281
|
}
|
|
282
|
+
static get methods() {
|
|
283
|
+
return {
|
|
284
|
+
"announceContents": {
|
|
285
|
+
"complexType": {
|
|
286
|
+
"signature": "() => Promise<void>",
|
|
287
|
+
"parameters": [],
|
|
288
|
+
"references": {
|
|
289
|
+
"Promise": {
|
|
290
|
+
"location": "global",
|
|
291
|
+
"id": "global::Promise"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"return": "Promise<void>"
|
|
295
|
+
},
|
|
296
|
+
"docs": {
|
|
297
|
+
"text": "",
|
|
298
|
+
"tags": []
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
}
|
|
237
303
|
static get elementRef() { return "el"; }
|
|
238
304
|
static get watchers() {
|
|
239
305
|
return [{
|
|
240
306
|
"propName": "open",
|
|
241
307
|
"methodName": "handleOpenChange"
|
|
242
308
|
}, {
|
|
243
|
-
"propName": "
|
|
309
|
+
"propName": "coords",
|
|
244
310
|
"methodName": "handleDetailsChange"
|
|
245
311
|
}];
|
|
246
312
|
}
|
|
247
313
|
static get listeners() {
|
|
248
314
|
return [{
|
|
315
|
+
"name": "wmUserIsTabbing",
|
|
316
|
+
"method": "toggleTabbingOn",
|
|
317
|
+
"target": "window",
|
|
318
|
+
"capture": false,
|
|
319
|
+
"passive": false
|
|
320
|
+
}, {
|
|
321
|
+
"name": "wmUserIsNotTabbing",
|
|
322
|
+
"method": "toggleTabbingOff",
|
|
323
|
+
"target": "window",
|
|
324
|
+
"capture": false,
|
|
325
|
+
"passive": false
|
|
326
|
+
}, {
|
|
249
327
|
"name": "click",
|
|
250
328
|
"method": "handleClickOnDocument",
|
|
251
329
|
"target": "document",
|