@watermarkinsights/ripple 5.22.1-alpha.4 → 5.23.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-390f2392.js → app-globals-d75466f5.js} +1 -1
- package/dist/cjs/{chartFunctions-60f65883.js → chartFunctions-97471b69.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-a6240a47.entry.js → cjs/priv-chart-popover-old.cjs.entry.js} +145 -1
- package/dist/{ripple/p-88ec49f1.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 +321 -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 +32 -51
- 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 +12 -10
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +202 -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 +1095 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +471 -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 +31 -50
- 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-d9d6ec2a.js → app-globals-be942f12.js} +1 -1
- package/dist/esm/{chartFunctions-a834e2a9.js → chartFunctions-9c95674d.js} +37 -2
- package/dist/esm/{functions-9df607f2.js → functions-2cfbd8c7.js} +1 -1
- package/dist/esm/index-130e07bb.js +10 -2
- package/dist/esm/{interfaces-cc5b177f.js → interfaces-30d10bc0.js} +20 -1
- package/dist/esm/{intl-86bec8ef.js → intl-23d21b06.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +4 -4
- package/dist/esm/wm-button.entry.js +3 -3
- package/dist/esm/wm-chart-bar.entry.js +317 -0
- package/dist/esm/wm-chart.entry.js +5 -5
- package/dist/esm/wm-date-range.entry.js +6 -6
- package/dist/esm/wm-datepicker.entry.js +6 -6
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-flyout.entry.js +3 -3
- package/dist/esm/wm-input.entry.js +3 -3
- package/dist/esm/wm-line-chart.entry.js +5 -5
- package/dist/esm/wm-modal-pss_3.entry.js +6 -6
- package/dist/esm/wm-modal_3.entry.js +6 -6
- package/dist/esm/wm-navigation_3.entry.js +6 -6
- package/dist/esm/wm-navigator.entry.js +2 -2
- package/dist/esm/wm-nested-select.entry.js +5 -5
- package/dist/esm/wm-optgroup.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +34 -53
- package/dist/esm/wm-pagination.entry.js +3 -3
- package/dist/esm/wm-progress-indicator_3.entry.js +5 -5
- package/dist/esm/wm-search.entry.js +4 -4
- package/dist/esm/wm-snackbar.entry.js +4 -4
- package/dist/esm/wm-tab-item_3.entry.js +7 -7
- package/dist/esm/wm-tag-input.entry.js +4 -4
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +3 -3
- package/dist/esm/wm-timepicker.entry.js +3 -3
- package/dist/esm/wm-toggletip.entry.js +4 -4
- package/dist/esm/wm-uploader.entry.js +4 -4
- package/dist/esm-es5/{app-globals-d9d6ec2a.js → app-globals-be942f12.js} +1 -1
- package/dist/esm-es5/{chartFunctions-a834e2a9.js → chartFunctions-9c95674d.js} +1 -1
- package/dist/esm-es5/{functions-9df607f2.js → functions-2cfbd8c7.js} +1 -1
- package/dist/esm-es5/index-130e07bb.js +1 -1
- package/dist/esm-es5/interfaces-30d10bc0.js +1 -0
- package/dist/esm-es5/{intl-86bec8ef.js → intl-23d21b06.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -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-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-31558b0e.entry.js → p-01e8cea6.entry.js} +1 -1
- package/dist/ripple/{p-fe330a72.system.entry.js → p-0abc1b51.system.entry.js} +1 -1
- package/dist/ripple/{p-b1e58461.system.entry.js → p-0ad87064.system.entry.js} +1 -1
- package/dist/ripple/{p-f1dea7a8.system.entry.js → p-0b2a0825.system.entry.js} +1 -1
- package/dist/ripple/{p-e618af10.entry.js → p-0ef91339.entry.js} +1 -1
- package/dist/ripple/{p-7c379888.system.entry.js → p-10f93b97.system.entry.js} +1 -1
- package/dist/ripple/{p-4e9f0f73.system.entry.js → p-1124978e.system.entry.js} +1 -1
- package/dist/ripple/{p-11ae67a9.entry.js → p-1430f504.entry.js} +1 -1
- package/dist/ripple/{p-e66ccd7b.entry.js → p-157468c5.entry.js} +1 -1
- package/dist/ripple/{p-1dbd86bf.system.entry.js → p-15ab0cf9.system.entry.js} +1 -1
- package/dist/ripple/{p-0e3015f2.system.entry.js → p-1802aedc.system.entry.js} +1 -1
- package/dist/ripple/{p-dfec2e8a.system.js → p-1806bab8.system.js} +1 -1
- package/dist/ripple/{p-afd0ed83.system.entry.js → p-1c9c0cf2.system.entry.js} +1 -1
- package/dist/ripple/{p-886b50fb.entry.js → p-21114d99.entry.js} +1 -1
- package/dist/ripple/{p-ac4370ae.system.entry.js → p-26d92a96.system.entry.js} +1 -1
- package/dist/ripple/{p-28b52ec0.entry.js → p-2e71fe42.entry.js} +1 -1
- package/dist/ripple/p-30a65553.system.js +1 -0
- package/dist/ripple/{p-f73dd1e7.js → p-325393da.js} +1 -1
- package/dist/ripple/{p-ef7988fe.system.entry.js → p-32f95573.system.entry.js} +1 -1
- package/dist/ripple/{p-0a95f175.system.entry.js → p-34574dc8.system.entry.js} +1 -1
- package/dist/ripple/{p-6388bf35.entry.js → p-35ef7bba.entry.js} +1 -1
- package/dist/ripple/{p-37e6df61.entry.js → p-377cf709.entry.js} +1 -1
- package/dist/ripple/{p-75cf1147.system.entry.js → p-3989274d.system.entry.js} +1 -1
- package/dist/ripple/{p-c0087cd0.entry.js → p-3e10eb3d.entry.js} +1 -1
- package/dist/ripple/p-4c727f0f.system.js +1 -0
- package/dist/ripple/{p-44dc020c.entry.js → p-51cd1c0f.entry.js} +1 -1
- package/dist/ripple/p-56d17ec6.js +1 -0
- package/dist/ripple/{p-92d489c8.system.entry.js → p-575f24e8.system.entry.js} +1 -1
- package/dist/ripple/{p-bbf46f8b.system.entry.js → p-576f4d06.system.entry.js} +1 -1
- package/dist/ripple/{p-c4838463.js → p-5a5456e8.js} +1 -1
- package/dist/ripple/{p-813634c0.system.entry.js → p-5cbbaf69.system.entry.js} +1 -1
- package/dist/ripple/{p-840ed2ca.system.entry.js → p-5f50c561.system.entry.js} +1 -1
- package/dist/ripple/{p-484c5cc5.entry.js → p-6394d25d.entry.js} +1 -1
- package/dist/ripple/{p-ceaee8b9.system.entry.js → p-685863a1.system.entry.js} +1 -1
- package/dist/ripple/{p-6c267b11.system.entry.js → p-6d375c14.system.entry.js} +1 -1
- package/dist/ripple/{p-ee713fcf.system.entry.js → p-6ea645ee.system.entry.js} +1 -1
- package/dist/ripple/p-77de2d9e.system.entry.js +1 -0
- package/dist/ripple/p-78524594.entry.js +1 -0
- package/dist/ripple/{p-81c8d038.entry.js → p-78edd963.entry.js} +1 -1
- package/dist/ripple/{p-ee25af83.entry.js → p-79b3dfc8.entry.js} +1 -1
- package/dist/ripple/{p-a19f81a3.entry.js → p-79ec0bb2.entry.js} +1 -1
- package/dist/ripple/{p-ae138b2c.entry.js → p-7e0efb95.entry.js} +1 -1
- package/dist/ripple/{p-d59ded20.system.entry.js → p-7ee3f5ab.system.entry.js} +1 -1
- package/dist/ripple/{p-de9e0582.entry.js → p-84d88288.entry.js} +1 -1
- package/dist/ripple/{p-98a81b33.system.entry.js → p-8888e7f0.system.entry.js} +1 -1
- package/dist/ripple/{p-1e4b30ac.entry.js → p-8c20ccd2.entry.js} +1 -1
- package/dist/ripple/{p-6d0f7f1d.system.entry.js → p-8d858325.system.entry.js} +1 -1
- package/dist/ripple/{p-f5c59ec1.entry.js → p-909f8797.entry.js} +1 -1
- package/dist/ripple/{p-0c1396e0.js → p-9246f0dc.js} +1 -1
- package/dist/ripple/{p-e9038796.entry.js → p-966f2c9e.entry.js} +1 -1
- package/dist/ripple/{p-285dbfb9.system.entry.js → p-9dc0fcd6.system.entry.js} +1 -1
- package/dist/ripple/{p-d9a53822.entry.js → p-a0c4a12e.entry.js} +1 -1
- package/dist/ripple/p-a68d6bed.entry.js +1 -0
- package/dist/ripple/{p-04fe992d.entry.js → p-ad8132aa.entry.js} +1 -1
- package/dist/ripple/{p-5b9441ff.entry.js → p-b089276a.entry.js} +1 -1
- package/dist/ripple/p-b3092643.entry.js +1 -0
- package/dist/ripple/{p-59101b39.system.entry.js → p-b313c3d3.system.entry.js} +1 -1
- package/dist/ripple/{p-1f26fdb7.entry.js → p-b4ce79cd.entry.js} +1 -1
- package/dist/ripple/{p-24d20fc6.system.entry.js → p-b939d3cb.system.entry.js} +1 -1
- package/dist/ripple/{p-91194c43.entry.js → p-bc052b23.entry.js} +1 -1
- package/dist/ripple/{p-73914a64.system.entry.js → p-bc271e17.system.entry.js} +1 -1
- package/dist/ripple/p-bd4a3dd8.system.entry.js +1 -0
- package/dist/ripple/{p-8286ed48.system.entry.js → p-bf83369d.system.entry.js} +1 -1
- package/dist/ripple/{p-7233deea.entry.js → p-c4e4a44c.entry.js} +1 -1
- package/dist/ripple/{p-e075695e.system.js → p-c8c8e85f.system.js} +1 -1
- package/dist/ripple/{p-ee9ff51e.system.js → p-c8d6b61a.system.js} +1 -1
- package/dist/ripple/{p-c02a5e64.system.entry.js → p-cab65a05.system.entry.js} +1 -1
- package/dist/ripple/{p-edbfc15c.entry.js → p-cf845266.entry.js} +1 -1
- package/dist/ripple/{p-0267046a.system.entry.js → p-d13b78fd.system.entry.js} +1 -1
- package/dist/ripple/{p-e6f6b0f4.system.entry.js → p-d4877cbc.system.entry.js} +1 -1
- package/dist/ripple/{p-a09d66e8.system.entry.js → p-d49676b7.system.entry.js} +1 -1
- package/dist/ripple/{p-7ca0a3cb.entry.js → p-d522499c.entry.js} +1 -1
- package/dist/ripple/{p-a111374c.entry.js → p-d62f5fd3.entry.js} +1 -1
- package/dist/ripple/{p-2451029c.entry.js → p-d6ca433c.entry.js} +1 -1
- package/dist/ripple/p-d6effc35.system.js +1 -0
- package/dist/ripple/p-dcb1935c.entry.js +1 -0
- package/dist/ripple/{p-c7b4db4e.entry.js → p-efe93044.entry.js} +1 -1
- package/dist/ripple/p-f210f4ff.js +1 -0
- package/dist/ripple/{p-f680ad0f.entry.js → p-f2a1f116.entry.js} +1 -1
- package/dist/ripple/{p-f8c12729.system.entry.js → p-f6d60ed8.system.entry.js} +1 -1
- package/dist/ripple/{p-cbb67bc3.system.entry.js → p-fda4032a.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 +62 -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/selects/wm-select/wm-select.d.ts +2 -4
- package/dist/types/components.d.ts +124 -6
- package/dist/types/global/interfaces.d.ts +41 -0
- package/package.json +3 -3
- 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-10fd206c.system.js +0 -1
- package/dist/ripple/p-2732bddd.js +0 -1
- package/dist/ripple/p-42fa7a77.system.js +0 -1
- package/dist/ripple/p-59ce4f69.js +0 -1
- package/dist/ripple/p-ac08b0a8.system.js +0 -1
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { debounce, findAllScrollableParents, intl } from "../../../global/functions";
|
|
3
|
+
export class ChartPopoverOld {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.chartEl = this.el.parentElement.getRootNode().host;
|
|
6
|
+
this.popoverWidth = 168;
|
|
7
|
+
this.popoverClicked = false;
|
|
8
|
+
this.debouncedClosePopover = debounce(async () => {
|
|
9
|
+
this.open = false;
|
|
10
|
+
}, 10);
|
|
11
|
+
this.open = false;
|
|
12
|
+
this.sliceDetails = undefined;
|
|
13
|
+
}
|
|
14
|
+
get eventToEmit() {
|
|
15
|
+
return this.chartEl.nodeName === "WM-CHART"
|
|
16
|
+
? this.wmChartPopoverButtonTriggered
|
|
17
|
+
: this.wmProgressIndicatorButtonTriggered;
|
|
18
|
+
}
|
|
19
|
+
handleClickOnDocument(ev) {
|
|
20
|
+
// because this listener is set document-wide, whenever something inside it is clicked
|
|
21
|
+
// the event target returned will always be the host (wm-chart)
|
|
22
|
+
// the element within wm-chart is determined by the other listener and saved as var popoverClicked for use here
|
|
23
|
+
// capture = false in @Listen ensures order of execution
|
|
24
|
+
if (this.open) {
|
|
25
|
+
// if the target is the popover's own slice, no need to adjust the open state
|
|
26
|
+
if (ev.target != this.sliceDetails.sliceRef) {
|
|
27
|
+
this.open = this.popoverClicked;
|
|
28
|
+
this.popoverClicked = false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
handleClick(ev) {
|
|
33
|
+
if (this.open) {
|
|
34
|
+
// if the click is on the popover,
|
|
35
|
+
// set popoverClicked to true. It will be used by the other listener above
|
|
36
|
+
this.popoverClicked = ev.target === this.el || this.el.contains(ev.target);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
// set up event listeners for scrolling
|
|
41
|
+
// to close popover on page scroll
|
|
42
|
+
const scrollableParents = findAllScrollableParents(this.chartEl);
|
|
43
|
+
scrollableParents.forEach((scrollableParent) => {
|
|
44
|
+
if (scrollableParent === document.documentElement) {
|
|
45
|
+
// For document element, listen to window scroll event
|
|
46
|
+
window.addEventListener("scroll", () => {
|
|
47
|
+
this.debouncedClosePopover();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// For regular elements, listen to their scroll event
|
|
52
|
+
scrollableParent.addEventListener("scroll", () => {
|
|
53
|
+
this.debouncedClosePopover();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
handleOpenChange() {
|
|
59
|
+
this.intChartPopoverOpenChanged.emit(this.open);
|
|
60
|
+
}
|
|
61
|
+
handleDetailsChange() {
|
|
62
|
+
if (this.sliceDetails && this.sliceDetails.coords) {
|
|
63
|
+
this.positionPopover();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
updateHighlightedInfo() {
|
|
67
|
+
// if (this.sliceDetails) {
|
|
68
|
+
// if (this.open) {
|
|
69
|
+
// this.highlightSegmentInfo(this.sliceDetails);
|
|
70
|
+
// } else {
|
|
71
|
+
// this.removeSegmentInfoHighlight();
|
|
72
|
+
// }
|
|
73
|
+
// }
|
|
74
|
+
}
|
|
75
|
+
handleButtonClick() {
|
|
76
|
+
if (this.sliceDetails) {
|
|
77
|
+
const sliceRef = this.sliceDetails.sliceRef;
|
|
78
|
+
sliceRef.click();
|
|
79
|
+
this.eventToEmit.emit(sliceRef);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
renderLiveRegion() {
|
|
83
|
+
if (this.liveRegion) {
|
|
84
|
+
this.liveRegion.innerHTML = "";
|
|
85
|
+
const wrapper = document.createElement("div");
|
|
86
|
+
const titleEl = document.createElement("span");
|
|
87
|
+
titleEl.innerHTML = this.sliceDetails.title + " " || "";
|
|
88
|
+
wrapper.appendChild(titleEl);
|
|
89
|
+
const textEl = document.createElement("span");
|
|
90
|
+
textEl.innerHTML = this.sliceDetails.text + " " || "";
|
|
91
|
+
wrapper.appendChild(textEl);
|
|
92
|
+
if (this.sliceDetails.buttonText) {
|
|
93
|
+
const buttonEl = document.createElement("span");
|
|
94
|
+
buttonEl.innerHTML =
|
|
95
|
+
this.sliceDetails.buttonText +
|
|
96
|
+
" " +
|
|
97
|
+
intl.formatMessage({
|
|
98
|
+
id: "chart.infoButton",
|
|
99
|
+
defaultMessage: "Button. Click for more information.",
|
|
100
|
+
});
|
|
101
|
+
wrapper.appendChild(buttonEl);
|
|
102
|
+
}
|
|
103
|
+
this.liveRegion.appendChild(wrapper);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
positionPopover() {
|
|
107
|
+
this.el.style.top = this.sliceDetails.coords.y + "px";
|
|
108
|
+
if (window.innerWidth - this.sliceDetails.coords.x >= this.popoverWidth + 10) {
|
|
109
|
+
this.el.style.left = this.sliceDetails.coords.x + "px"; // opens on the right
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
this.el.style.left = this.sliceDetails.coords.x - this.popoverWidth + "px"; // opens on the left
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
const titleAffordance = this.sliceDetails &&
|
|
117
|
+
this.sliceDetails.title &&
|
|
118
|
+
(this.sliceDetails.title[0] === "-" ? "negative" : this.sliceDetails.title[0] === "+" ? "positive" : "");
|
|
119
|
+
return (h(Host, { key: '451fc4292dd8d53e32a995d78f11bd7e9ada80cb' }, !!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",
|
|
122
|
+
// @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.sliceDetails.buttonText))) : (""))) : (""), h("div", { key: 'a173018e185daf622fefe1a0787ec3e4ed3d5c77', ref: (el) => (this.liveRegion = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.open && this.renderLiveRegion())));
|
|
124
|
+
}
|
|
125
|
+
static get is() { return "priv-chart-popover-old"; }
|
|
126
|
+
static get originalStyleUrls() {
|
|
127
|
+
return {
|
|
128
|
+
"$": ["priv-chart-popover-old.scss"]
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static get styleUrls() {
|
|
132
|
+
return {
|
|
133
|
+
"$": ["priv-chart-popover-old.css"]
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static get properties() {
|
|
137
|
+
return {
|
|
138
|
+
"open": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"mutable": true,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": ""
|
|
151
|
+
},
|
|
152
|
+
"attribute": "open",
|
|
153
|
+
"reflect": false,
|
|
154
|
+
"defaultValue": "false"
|
|
155
|
+
},
|
|
156
|
+
"sliceDetails": {
|
|
157
|
+
"type": "unknown",
|
|
158
|
+
"mutable": false,
|
|
159
|
+
"complexType": {
|
|
160
|
+
"original": "SliceDetails",
|
|
161
|
+
"resolved": "undefined | { amount: number; visualAmount: number; perc: number; legend: string | null; color: string; offset: number; id: string; title: string | null; text: string | null; buttonText: string | null; sliceRef: Element; inSmallCluster: boolean; index: number; coords?: { x: number; y: number; } | undefined; }",
|
|
162
|
+
"references": {
|
|
163
|
+
"SliceDetails": {
|
|
164
|
+
"location": "import",
|
|
165
|
+
"path": "../../../global/interfaces",
|
|
166
|
+
"id": "src/global/interfaces.ts::SliceDetails"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": true,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": ""
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
static get events() {
|
|
180
|
+
return [{
|
|
181
|
+
"method": "wmChartPopoverButtonTriggered",
|
|
182
|
+
"name": "wmChartPopoverButtonTriggered",
|
|
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",
|
|
203
|
+
"bubbles": true,
|
|
204
|
+
"cancelable": true,
|
|
205
|
+
"composed": true,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "HTMLWmProgressSliceElement",
|
|
212
|
+
"resolved": "HTMLWmProgressSliceElement",
|
|
213
|
+
"references": {
|
|
214
|
+
"HTMLWmProgressSliceElement": {
|
|
215
|
+
"location": "global",
|
|
216
|
+
"id": "global::HTMLWmProgressSliceElement"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
"method": "intChartPopoverOpenChanged",
|
|
222
|
+
"name": "intChartPopoverOpenChanged",
|
|
223
|
+
"bubbles": true,
|
|
224
|
+
"cancelable": true,
|
|
225
|
+
"composed": true,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": ""
|
|
229
|
+
},
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "boolean",
|
|
232
|
+
"resolved": "boolean",
|
|
233
|
+
"references": {}
|
|
234
|
+
}
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
static get elementRef() { return "el"; }
|
|
238
|
+
static get watchers() {
|
|
239
|
+
return [{
|
|
240
|
+
"propName": "open",
|
|
241
|
+
"methodName": "handleOpenChange"
|
|
242
|
+
}, {
|
|
243
|
+
"propName": "sliceDetails",
|
|
244
|
+
"methodName": "handleDetailsChange"
|
|
245
|
+
}];
|
|
246
|
+
}
|
|
247
|
+
static get listeners() {
|
|
248
|
+
return [{
|
|
249
|
+
"name": "click",
|
|
250
|
+
"method": "handleClickOnDocument",
|
|
251
|
+
"target": "document",
|
|
252
|
+
"capture": false,
|
|
253
|
+
"passive": false
|
|
254
|
+
}, {
|
|
255
|
+
"name": "click",
|
|
256
|
+
"method": "handleClick",
|
|
257
|
+
"target": undefined,
|
|
258
|
+
"capture": false,
|
|
259
|
+
"passive": false
|
|
260
|
+
}];
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -29,7 +29,7 @@ export class Chart {
|
|
|
29
29
|
this.focusedSliceId = undefined;
|
|
30
30
|
}
|
|
31
31
|
get popoverEl() {
|
|
32
|
-
return this.el.shadowRoot.querySelector("priv-chart-popover");
|
|
32
|
+
return this.el.shadowRoot.querySelector("priv-chart-popover-old");
|
|
33
33
|
}
|
|
34
34
|
get sliceEls() {
|
|
35
35
|
return Array.from(this.el.shadowRoot.querySelectorAll(".segment"));
|
|
@@ -145,7 +145,7 @@ export class Chart {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
|
-
return (h(Host, { key: '
|
|
148
|
+
return (h(Host, { key: '64a6dc03c5a44de1cb06d0ddfa90cf88cf1c467c', onBlur: () => exitChart.call(this) }, h("div", { key: '31b4a39ce530c5e3552b1896feaa081f2e368d1b', ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${this.currentChartType} ${this.isTabbing && !this.userIsNavigating ? "user-is-tabbing" : ""} ${this.labelPosition === "left" && this.currentChartType === "bar4" ? "left-label" : ""}`, role: "application", "aria-label": this.ariaLabelText, tabindex: 0, "aria-roledescription": chartMessages.interactiveChart, "aria-describedby": "chart-instructions" }, h("label", { key: 'a62e78dd0eb3f50da81cc09137ea5bc7115b7cf4', id: `label-${this.uid}`, class: `label --${this.labelPosition}`, htmlFor: `graphic-${this.uid}` }, h("span", { key: '9a7219c06f7ef4a1a59f9b23a15574c65942e6c6', class: "label-text" }, this.label), this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""), this.isBar && renderLegend.call(this, this.currentChartType), this.renderChart(), this.isDoughnut && renderLegend.call(this, this.currentChartType), h("priv-chart-popover-old", { key: '39e2523ab60097506e841578fe978e69fe9c3b4b', class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.isBar && !this.printMode && renderHiddenValuesMessage()), renderInstructionsText()));
|
|
149
149
|
}
|
|
150
150
|
static get is() { return "wm-chart"; }
|
|
151
151
|
static get encapsulation() { return "shadow"; }
|