@watermarkinsights/ripple 5.22.1-alpha.3 → 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-1b409c3d.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-3d8c2720.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-3d8c2720.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-9b93c8ea.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-a9af51c7.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-f9328247.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-1359799f.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-2732bddd.js +0 -1
- package/dist/ripple/p-2ff07c1a.system.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,471 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { chartPaletteDiscrete, chartPaletteSemantic, } from "../../../global/interfaces";
|
|
3
|
+
import { formatDisplayValue, suffixNumber, renderInstructionsText, findLargestNiceInterval, getMaxTicks, } from "../chartFunctions";
|
|
4
|
+
import { chartMessages } from "../../../global/intl";
|
|
5
|
+
import { isElOrChild } from "../../../global/functions";
|
|
6
|
+
export class ChartBar {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.gridMax = 0;
|
|
9
|
+
this.config = undefined;
|
|
10
|
+
this.data = undefined;
|
|
11
|
+
this.printMode = undefined;
|
|
12
|
+
this.subinfo = undefined;
|
|
13
|
+
this.processedData = [];
|
|
14
|
+
this.gridInfo = undefined;
|
|
15
|
+
this.isKeying = false;
|
|
16
|
+
}
|
|
17
|
+
////////////////////////////////////////////////////////////
|
|
18
|
+
// #region Getters
|
|
19
|
+
////////////////////////////////////////////////////////////
|
|
20
|
+
get colorPalette() {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
let palette = ["wmcolor-dataviz-discrete-01"]; // default to single color
|
|
23
|
+
if (((_a = this.config) === null || _a === void 0 ? void 0 : _a.colors) === "semantic") {
|
|
24
|
+
palette = chartPaletteSemantic;
|
|
25
|
+
}
|
|
26
|
+
else if (((_b = this.config) === null || _b === void 0 ? void 0 : _b.colors) == "discrete") {
|
|
27
|
+
palette = chartPaletteDiscrete;
|
|
28
|
+
}
|
|
29
|
+
else if ((_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.colors) === null || _d === void 0 ? void 0 : _d.startsWith("wmcolor-")) {
|
|
30
|
+
palette = [this.config.colors];
|
|
31
|
+
}
|
|
32
|
+
return palette;
|
|
33
|
+
}
|
|
34
|
+
get sort() {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sort) || "none"; // default to none
|
|
37
|
+
}
|
|
38
|
+
get showLegend() {
|
|
39
|
+
var _a;
|
|
40
|
+
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.showLegend) || "none"; // default to none
|
|
41
|
+
}
|
|
42
|
+
get subinfoText() {
|
|
43
|
+
var _a;
|
|
44
|
+
return this.subinfo || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.subinfo) || "";
|
|
45
|
+
}
|
|
46
|
+
// #endregion getters
|
|
47
|
+
////////////////////////////////////////////////////////////
|
|
48
|
+
// #region Component lifecycle
|
|
49
|
+
////////////////////////////////////////////////////////////
|
|
50
|
+
componentDidLoad() {
|
|
51
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
52
|
+
if (this.processedData) {
|
|
53
|
+
this.gridInfo = this.calculateGridInfo();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
resizeObserver.observe(this.barAreaEl);
|
|
57
|
+
}
|
|
58
|
+
// #endregion component lifecycle
|
|
59
|
+
////////////////////////////////////////////////////////////
|
|
60
|
+
// #region Data processing
|
|
61
|
+
////////////////////////////////////////////////////////////
|
|
62
|
+
processData() {
|
|
63
|
+
if (this.config && this.data) {
|
|
64
|
+
const itemTotal = this.data.reduce((acc, item) => acc + item.amount, 0);
|
|
65
|
+
const largest = Math.max(...this.data.map((item) => item.amount));
|
|
66
|
+
// Use config.gridMax if specified, otherwise calculate from data
|
|
67
|
+
// Even when the grid is not displayed (undefined), we need a gridMax to calculate the bar widths
|
|
68
|
+
this.gridMax =
|
|
69
|
+
this.config.gridMax === "auto" || this.config.gridMax === undefined ? largest : this.config.gridMax;
|
|
70
|
+
const processedItems = this.processItems(itemTotal);
|
|
71
|
+
if (this.sort === "ascending") {
|
|
72
|
+
processedItems.sort((a, b) => a.amount - b.amount);
|
|
73
|
+
}
|
|
74
|
+
else if (this.sort === "descending") {
|
|
75
|
+
processedItems.sort((a, b) => b.amount - a.amount);
|
|
76
|
+
}
|
|
77
|
+
this.processedData = processedItems;
|
|
78
|
+
this.gridInfo = this.calculateGridInfo();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
processItems(itemTotal) {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
const valueFormat = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.valueFormat) || "amount"; // default to amount
|
|
84
|
+
const printModeFormat = ((_b = this.config) === null || _b === void 0 ? void 0 : _b.printModeFormat) || "amount"; // default to amount
|
|
85
|
+
const defaultColor = "wmcolor-dataviz-discrete-01";
|
|
86
|
+
const isUniformConfigColor = this.colorPalette.length === 1;
|
|
87
|
+
return this.data.map((item, index) => {
|
|
88
|
+
var _a;
|
|
89
|
+
const barColor = item.color || (isUniformConfigColor ? this.colorPalette[0] : (_a = this.colorPalette[index]) !== null && _a !== void 0 ? _a : defaultColor);
|
|
90
|
+
return {
|
|
91
|
+
label: item.label,
|
|
92
|
+
amount: item.amount,
|
|
93
|
+
gridPercent: (item.amount / this.gridMax) * 100,
|
|
94
|
+
displayValue: formatDisplayValue(item.amount, itemTotal, valueFormat),
|
|
95
|
+
printValue: formatDisplayValue(item.amount, itemTotal, printModeFormat),
|
|
96
|
+
color: barColor,
|
|
97
|
+
popoverTitle: item.popoverTitle,
|
|
98
|
+
popoverText: item.popoverText,
|
|
99
|
+
popoverButtonText: item.popoverButtonText,
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
propogateExternalLegendData() {
|
|
104
|
+
document.querySelectorAll("wm-chart-legend").forEach((legend) => {
|
|
105
|
+
if (legend.chartIds.includes(this.el.id)) {
|
|
106
|
+
legend.processedData = this.processedData;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
calculateGridInfo() {
|
|
111
|
+
const barAreaWidth = this.barAreaEl.getBoundingClientRect().width;
|
|
112
|
+
const maxTicks = barAreaWidth > 0 ? getMaxTicks(barAreaWidth) : 1;
|
|
113
|
+
const { numIntervals, interval } = findLargestNiceInterval(maxTicks, this.gridMax);
|
|
114
|
+
const tickLabels = [];
|
|
115
|
+
for (let i = 1; i <= numIntervals; i++) {
|
|
116
|
+
tickLabels.push(suffixNumber(i * interval));
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
numTicks: numIntervals,
|
|
120
|
+
interval: interval,
|
|
121
|
+
backgroundSize: `${100 / numIntervals}%`,
|
|
122
|
+
tickLabels: tickLabels,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
// #endregion data processing
|
|
126
|
+
////////////////////////////////////////////////////////////
|
|
127
|
+
// #region Keyboard interaction and Event handling
|
|
128
|
+
////////////////////////////////////////////////////////////
|
|
129
|
+
handleChartKeyDown(ev) {
|
|
130
|
+
switch (ev.key) {
|
|
131
|
+
case "ArrowDown":
|
|
132
|
+
ev.preventDefault();
|
|
133
|
+
this.focusBar(0);
|
|
134
|
+
break;
|
|
135
|
+
case "Tab":
|
|
136
|
+
this.clearFocus();
|
|
137
|
+
break;
|
|
138
|
+
case "Escape":
|
|
139
|
+
ev.preventDefault();
|
|
140
|
+
ev.stopPropagation();
|
|
141
|
+
if (this.popoverEl.open) {
|
|
142
|
+
this.popoverEl.open = false;
|
|
143
|
+
}
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
handleBarKeyDown(ev, barIdx) {
|
|
148
|
+
switch (ev.key) {
|
|
149
|
+
case "ArrowUp":
|
|
150
|
+
ev.preventDefault();
|
|
151
|
+
ev.stopPropagation();
|
|
152
|
+
this.focusBar(barIdx - 1);
|
|
153
|
+
break;
|
|
154
|
+
case "ArrowDown":
|
|
155
|
+
ev.preventDefault();
|
|
156
|
+
ev.stopPropagation();
|
|
157
|
+
this.focusBar(barIdx + 1);
|
|
158
|
+
break;
|
|
159
|
+
case "Enter":
|
|
160
|
+
if (this.popoverEl.open) {
|
|
161
|
+
const popoverBtn = this.popoverEl.querySelector("button");
|
|
162
|
+
popoverBtn && popoverBtn.click();
|
|
163
|
+
}
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
handleBarClick(ev, idx) {
|
|
168
|
+
if (this.processedData) {
|
|
169
|
+
this.openPopover(this.processedData[idx], { x: ev.clientX, y: ev.clientY });
|
|
170
|
+
this.highlightBar(idx);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
handleExternalLegendItemClick(ev) {
|
|
174
|
+
if (ev.target.nodeName === "WM-CHART-LEGEND") {
|
|
175
|
+
// Only considers external legends, event target of internal legends is the chart
|
|
176
|
+
const legendEl = ev.target;
|
|
177
|
+
if (legendEl.chartIds.includes(this.el.id)) {
|
|
178
|
+
this.highlightBar(ev.detail.idx);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
handleInternalLegendItemClick(ev) {
|
|
183
|
+
const legendEl = ev.target;
|
|
184
|
+
if (legendEl.chartIds.includes(this.el.id)) {
|
|
185
|
+
this.highlightBar(ev.detail.idx);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
handleDocumentClick(_ev) {
|
|
189
|
+
// Clear highlights when highlight is set from an external legend (not opening a popover)
|
|
190
|
+
if (!this.popoverEl.open) {
|
|
191
|
+
this.clearHighlights();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
// #endregion keyboard interaction and event handling
|
|
195
|
+
////////////////////////////////////////////////////////////
|
|
196
|
+
// #region Focus and Highlighting
|
|
197
|
+
////////////////////////////////////////////////////////////
|
|
198
|
+
handleUserIsKeying() {
|
|
199
|
+
this.isKeying = true;
|
|
200
|
+
}
|
|
201
|
+
handleUserIsNotKeying() {
|
|
202
|
+
this.isKeying = false;
|
|
203
|
+
}
|
|
204
|
+
handleComponentBlur(ev) {
|
|
205
|
+
if (!isElOrChild(this.el, ev.relatedTarget)) {
|
|
206
|
+
this.clearFocus();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
focusBar(barIdx) {
|
|
210
|
+
const bars = this.el.shadowRoot.querySelectorAll(".bar");
|
|
211
|
+
const wrappedIdx = ((barIdx % bars.length) + bars.length) % bars.length;
|
|
212
|
+
const barToFocus = bars[wrappedIdx];
|
|
213
|
+
barToFocus.focus();
|
|
214
|
+
this.highlightBar(wrappedIdx);
|
|
215
|
+
const cornerOffset = 12;
|
|
216
|
+
const processedItem = this.processedData[wrappedIdx];
|
|
217
|
+
this.openPopover(processedItem, {
|
|
218
|
+
x: barToFocus.getBoundingClientRect().left + cornerOffset,
|
|
219
|
+
y: barToFocus.getBoundingClientRect().top + cornerOffset,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
handlePopoverOpenChanged(_ev) {
|
|
223
|
+
setTimeout(() => {
|
|
224
|
+
// allow time for the popover to reopen if the click that closed it was on a bar, to prevent flash
|
|
225
|
+
if (this.popoverEl.open) {
|
|
226
|
+
this.highlightBar(this.processedData.findIndex((item) => { var _a; return item.label === ((_a = this.popoverEl.chartData) === null || _a === void 0 ? void 0 : _a.label); }));
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
this.clearHighlights();
|
|
230
|
+
}
|
|
231
|
+
}, 30);
|
|
232
|
+
}
|
|
233
|
+
openPopover(clickedProcessedData, coords) {
|
|
234
|
+
let matchingChartData = this.data.find((item) => item.label === clickedProcessedData.label);
|
|
235
|
+
if (matchingChartData) {
|
|
236
|
+
this.popoverEl.chartData = matchingChartData;
|
|
237
|
+
this.popoverEl.header = matchingChartData.popoverTitle || this.config.popoverTitle || "";
|
|
238
|
+
this.popoverEl.text = matchingChartData.popoverText || this.config.popoverText || "";
|
|
239
|
+
this.popoverEl.buttonText = matchingChartData.popoverButtonText || this.config.popoverButtonText || "";
|
|
240
|
+
this.popoverEl.coords = coords;
|
|
241
|
+
window.setTimeout(() => {
|
|
242
|
+
this.popoverEl.open = true;
|
|
243
|
+
this.popoverEl.announceContents();
|
|
244
|
+
}, 30);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
clearHighlights() {
|
|
248
|
+
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
249
|
+
barItems.forEach((barItem) => {
|
|
250
|
+
barItem.classList.remove("faded");
|
|
251
|
+
});
|
|
252
|
+
this.wmChartBarHighlighted.emit({ idx: -1 });
|
|
253
|
+
}
|
|
254
|
+
highlightBar(idx) {
|
|
255
|
+
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
256
|
+
barItems.forEach((barItem) => {
|
|
257
|
+
barItem.classList.add("faded");
|
|
258
|
+
});
|
|
259
|
+
barItems[idx].classList.remove("faded");
|
|
260
|
+
this.wmChartBarHighlighted.emit({ idx: idx });
|
|
261
|
+
}
|
|
262
|
+
clearFocus() {
|
|
263
|
+
if (this.popoverEl.open) {
|
|
264
|
+
this.popoverEl.open = false;
|
|
265
|
+
console.log("popover closed from clearFocus: ", this.popoverEl.open);
|
|
266
|
+
}
|
|
267
|
+
this.clearHighlights();
|
|
268
|
+
}
|
|
269
|
+
// #endregion focus and highlighting
|
|
270
|
+
////////////////////////////////////////////////////////////
|
|
271
|
+
// #region Rendering
|
|
272
|
+
////////////////////////////////////////////////////////////
|
|
273
|
+
renderBarLegends() {
|
|
274
|
+
return this.processedData.map((item) => (h("div", { key: `legend-${item.label}`, class: "bar-legend" }, item.label)));
|
|
275
|
+
}
|
|
276
|
+
renderBars() {
|
|
277
|
+
// Use effective grid max (numTicks * interval) for accurate bar sizing
|
|
278
|
+
const effectiveGridMax = this.gridInfo.numTicks * this.gridInfo.interval;
|
|
279
|
+
return this.processedData.map((item, idx) => {
|
|
280
|
+
const barPercent = effectiveGridMax > 0 ? (item.amount / effectiveGridMax) * 100 : 0;
|
|
281
|
+
return (h("div", { key: `bar-${item.label}`, class: "bar-wrapper" }, h("div", { class: "bar", style: { width: `${barPercent}%`, backgroundColor: `var(--${item.color})` }, onClick: (ev) => this.handleBarClick(ev, idx), onKeyDown: (ev) => this.handleBarKeyDown(ev, idx), tabindex: "-1", "aria-label": `${item.label} ${item.displayValue}` }), h("span", { class: "value", style: { insetInlineStart: `${barPercent}%` } }, item.displayValue)));
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
renderXAxis() {
|
|
285
|
+
var _a;
|
|
286
|
+
return (h("div", { class: "x-axis", "aria-hidden": "true" }, h("div", { class: "tick zero" }, h("span", null, "0")), (_a = this.gridInfo) === null || _a === void 0 ? void 0 :
|
|
287
|
+
_a.tickLabels.map((label) => (h("div", { class: "tick", key: label }, h("span", null, label))))));
|
|
288
|
+
}
|
|
289
|
+
renderGrid() {
|
|
290
|
+
return h("div", { class: "grid-lines", style: { "--background-size": this.gridInfo.backgroundSize } });
|
|
291
|
+
}
|
|
292
|
+
renderLegend(orientation) {
|
|
293
|
+
var _a, _b, _c;
|
|
294
|
+
return (h("div", { class: `legend --${orientation} --${this.showLegend}` }, h("wm-chart-legend", { orientation: orientation, chartIds: this.el.id, processedData: this.processedData, printMode: (_c = (_a = this.printMode) !== null && _a !== void 0 ? _a : (_b = this.config) === null || _b === void 0 ? void 0 : _b.printMode) !== null && _c !== void 0 ? _c : false, onWmLegendItemClick: (ev) => this.handleInternalLegendItemClick(ev) })));
|
|
295
|
+
}
|
|
296
|
+
// #endregion rendering
|
|
297
|
+
render() {
|
|
298
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
299
|
+
const rowCount = this.processedData.length || 1;
|
|
300
|
+
return (h(Host, { key: 'af9ee18a445a32072133a4818a17543a9b642653' }, h("div", { key: '1ebd9b80b2546978f0819918abc7be5d71058315', class: "component-wrapper", tabindex: "0", role: "application", onKeyDown: (ev) => this.handleChartKeyDown(ev), onBlur: (ev) => this.handleComponentBlur(ev), "aria-roledescription": chartMessages.interactiveChart, "aria-describedby": "chart-instructions", "aria-label": (_a = this.config) === null || _a === void 0 ? void 0 : _a.label }, h("div", { key: 'fe01168cac52e5dba3f05b7fc51c8ef581c1422c', class: "popover-wrapper" }, h("priv-chart-popover", { key: '84dc52e1c81f3a978e2b4369cb675ef3969038cf', ref: (el) => (this.popoverEl = el), onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) })), h("label", { key: '0190875870d6e90915038a49c26343ee85f57a20', id: "label", class: `label --${(_b = this.config) === null || _b === void 0 ? void 0 : _b.labelPosition}` }, h("span", { key: '1d6900d5a62cecea8afab6f3348f9ed7305bed9f', class: "label-text" }, (_c = this.config) === null || _c === void 0 ? void 0 : _c.label), this.subinfoText ? h("span", { class: "subinfo" }, this.subinfoText) : ""), this.showLegend === "top" && this.renderLegend("horizontal"), h("div", { key: '1c22408dd8d89d988202eaa31279026641325f03', class: "chart-wrapper" }, h("div", { key: '11e1c3558f052f2f77f8b8e3f29503ca69a5f93d', class: "chart-left-side" }, this.showLegend === "left" && this.renderLegend("vertical"), h("div", { key: '96852f416f193b403dd2a1d55f8ef0d9181779ab', class: "category-axis-label" }, h("span", { key: '4c25a14518ea40222b2b965a319624ea35f87a84', class: "axis-label-text" }, (_d = this.config) === null || _d === void 0 ? void 0 : _d.categoryAxisLabel))), h("div", { key: '7dcd802835da086e4860ee3f09e256bcb925b7ad', class: "chart-center" }, h("div", { key: 'bc8e2bfc65afea16e352b61f77bd9483271af04b', class: "chart-area", style: { "--row-count": rowCount.toString() } }, this.processedData && this.renderBarLegends(), h("div", { key: '5bcfb85a9d3f13843edd8a4242473e29ff8373e7', class: `bar-area ${this.isKeying ? "user-is-keying" : ""}`, ref: (el) => (this.barAreaEl = el) }, this.gridInfo && ((_e = this.config) === null || _e === void 0 ? void 0 : _e.gridMax) != undefined && this.renderGrid(), this.gridInfo && this.processedData && this.renderBars())), h("div", { key: '8d7ea9e756430f0fc18db7a2114adca5dd0b13a0', class: "value-axis-label" }, h("span", { key: '5c6d15a4dc479179de31ab267dcbacf50bd6a918', class: "axis-label-text" }, (_f = this.config) === null || _f === void 0 ? void 0 : _f.valueAxisLabel)), this.gridInfo && ((_g = this.config) === null || _g === void 0 ? void 0 : _g.gridMax) != undefined && this.renderXAxis()), h("div", { key: '3cf6cf7f5574af218c366b00c3abfde6ad8d9204', class: "chart-right-side" }, this.showLegend === "right" && this.renderLegend("vertical"))), this.showLegend === "bottom" && this.renderLegend("horizontal"), renderInstructionsText())));
|
|
301
|
+
}
|
|
302
|
+
static get is() { return "wm-chart-bar"; }
|
|
303
|
+
static get encapsulation() { return "shadow"; }
|
|
304
|
+
static get originalStyleUrls() {
|
|
305
|
+
return {
|
|
306
|
+
"$": ["wm-chart-bar.scss"]
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
static get styleUrls() {
|
|
310
|
+
return {
|
|
311
|
+
"$": ["wm-chart-bar.css"]
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
static get properties() {
|
|
315
|
+
return {
|
|
316
|
+
"config": {
|
|
317
|
+
"type": "unknown",
|
|
318
|
+
"mutable": false,
|
|
319
|
+
"complexType": {
|
|
320
|
+
"original": "ChartConfig",
|
|
321
|
+
"resolved": "undefined | { label: string; labelPosition: \"top\" | \"none\"; labelWidth: string; valueAxisLabel: string; categoryAxisLabel: string; printMode: boolean; printModeFormat: \"amount\" | \"percentage\"; gridMax?: number | \"auto\" | undefined; sort?: \"none\" | \"ascending\" | \"descending\" | undefined; showLegend?: \"top\" | \"bottom\" | \"left\" | \"right\" | \"none\" | undefined; subinfo?: string | undefined; completionMessage?: string | undefined; valueFormat?: \"none\" | \"amount\" | \"percentage\" | undefined; colors?: string | undefined; popoverTitle?: string | undefined; popoverText?: string | undefined; popoverButtonText?: string | undefined; }",
|
|
322
|
+
"references": {
|
|
323
|
+
"ChartConfig": {
|
|
324
|
+
"location": "import",
|
|
325
|
+
"path": "../../../global/interfaces",
|
|
326
|
+
"id": "src/global/interfaces.ts::ChartConfig"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"required": false,
|
|
331
|
+
"optional": true,
|
|
332
|
+
"docs": {
|
|
333
|
+
"tags": [],
|
|
334
|
+
"text": ""
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"data": {
|
|
338
|
+
"type": "unknown",
|
|
339
|
+
"mutable": false,
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "ChartData[]",
|
|
342
|
+
"resolved": "ChartData[] | undefined",
|
|
343
|
+
"references": {
|
|
344
|
+
"ChartData": {
|
|
345
|
+
"location": "import",
|
|
346
|
+
"path": "../../../global/interfaces",
|
|
347
|
+
"id": "src/global/interfaces.ts::ChartData"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": true,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": ""
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"printMode": {
|
|
359
|
+
"type": "boolean",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "boolean",
|
|
363
|
+
"resolved": "boolean | undefined",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": true,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": ""
|
|
371
|
+
},
|
|
372
|
+
"attribute": "print-mode",
|
|
373
|
+
"reflect": false
|
|
374
|
+
},
|
|
375
|
+
"subinfo": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"mutable": false,
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "string",
|
|
380
|
+
"resolved": "string | undefined",
|
|
381
|
+
"references": {}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": true,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [],
|
|
387
|
+
"text": ""
|
|
388
|
+
},
|
|
389
|
+
"attribute": "subinfo",
|
|
390
|
+
"reflect": false
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
static get states() {
|
|
395
|
+
return {
|
|
396
|
+
"processedData": {},
|
|
397
|
+
"gridInfo": {},
|
|
398
|
+
"isKeying": {}
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
static get events() {
|
|
402
|
+
return [{
|
|
403
|
+
"method": "wmChartBarHighlighted",
|
|
404
|
+
"name": "wmChartBarHighlighted",
|
|
405
|
+
"bubbles": true,
|
|
406
|
+
"cancelable": true,
|
|
407
|
+
"composed": true,
|
|
408
|
+
"docs": {
|
|
409
|
+
"tags": [],
|
|
410
|
+
"text": ""
|
|
411
|
+
},
|
|
412
|
+
"complexType": {
|
|
413
|
+
"original": "{ idx: number }",
|
|
414
|
+
"resolved": "{ idx: number; }",
|
|
415
|
+
"references": {}
|
|
416
|
+
}
|
|
417
|
+
}];
|
|
418
|
+
}
|
|
419
|
+
static get elementRef() { return "el"; }
|
|
420
|
+
static get watchers() {
|
|
421
|
+
return [{
|
|
422
|
+
"propName": "config",
|
|
423
|
+
"methodName": "processData"
|
|
424
|
+
}, {
|
|
425
|
+
"propName": "data",
|
|
426
|
+
"methodName": "processData"
|
|
427
|
+
}, {
|
|
428
|
+
"propName": "processedData",
|
|
429
|
+
"methodName": "propogateExternalLegendData"
|
|
430
|
+
}];
|
|
431
|
+
}
|
|
432
|
+
static get listeners() {
|
|
433
|
+
return [{
|
|
434
|
+
"name": "wmLegendItemClick",
|
|
435
|
+
"method": "handleExternalLegendItemClick",
|
|
436
|
+
"target": "document",
|
|
437
|
+
"capture": false,
|
|
438
|
+
"passive": false
|
|
439
|
+
}, {
|
|
440
|
+
"name": "click",
|
|
441
|
+
"method": "handleDocumentClick",
|
|
442
|
+
"target": "document",
|
|
443
|
+
"capture": true,
|
|
444
|
+
"passive": false
|
|
445
|
+
}, {
|
|
446
|
+
"name": "wmUserIsKeying",
|
|
447
|
+
"method": "handleUserIsKeying",
|
|
448
|
+
"target": "window",
|
|
449
|
+
"capture": false,
|
|
450
|
+
"passive": false
|
|
451
|
+
}, {
|
|
452
|
+
"name": "wmUserIsTabbing",
|
|
453
|
+
"method": "handleUserIsKeying",
|
|
454
|
+
"target": "window",
|
|
455
|
+
"capture": false,
|
|
456
|
+
"passive": false
|
|
457
|
+
}, {
|
|
458
|
+
"name": "wmUserIsNotKeying",
|
|
459
|
+
"method": "handleUserIsNotKeying",
|
|
460
|
+
"target": "window",
|
|
461
|
+
"capture": false,
|
|
462
|
+
"passive": false
|
|
463
|
+
}, {
|
|
464
|
+
"name": "wmUserIsNotTabbing",
|
|
465
|
+
"method": "handleUserIsNotKeying",
|
|
466
|
+
"target": "window",
|
|
467
|
+
"capture": false,
|
|
468
|
+
"passive": false
|
|
469
|
+
}];
|
|
470
|
+
}
|
|
471
|
+
}
|