@watermarkinsights/ripple 5.23.0-alpha.8 → 5.23.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-100b4517.js → app-globals-1dce8469.js} +1 -1
- package/dist/cjs/{chartFunctions-8d17cbb8.js → chartFunctions-0df7cc7b.js} +0 -57
- package/dist/cjs/index-788526f5.js +2 -10
- package/dist/cjs/{interfaces-8419be91.js → interfaces-85d78ae9.js} +0 -22
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +2 -2
- package/dist/cjs/priv-chart-popover.cjs.entry.js +145 -0
- 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.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 +0 -3
- package/dist/collection/components/charts/chartFunctions.js +1 -53
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +24 -24
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +115 -193
- package/dist/collection/components/charts/wm-chart/wm-chart.js +2 -2
- 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/global/interfaces.js +0 -21
- package/dist/esm/{app-globals-15abb237.js → app-globals-414c059e.js} +1 -1
- package/dist/esm/{chartFunctions-93592f14.js → chartFunctions-27b48dc4.js} +2 -54
- package/dist/esm/{functions-c1d5f184.js → functions-2c6d93bb.js} +1 -1
- package/dist/esm/index-130e07bb.js +2 -10
- package/dist/esm/{interfaces-7e50d034.js → interfaces-cc5b177f.js} +1 -22
- package/dist/esm/{intl-8c69d10b.js → intl-23e93368.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.entry.js +141 -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.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 +7 -7
- 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-414c059e.js +1 -0
- package/dist/esm-es5/{chartFunctions-93592f14.js → chartFunctions-27b48dc4.js} +1 -1
- package/dist/esm-es5/{functions-c1d5f184.js → functions-2c6d93bb.js} +1 -1
- package/dist/esm-es5/index-130e07bb.js +1 -1
- package/dist/esm-es5/interfaces-cc5b177f.js +1 -0
- package/dist/esm-es5/{intl-8c69d10b.js → intl-23e93368.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -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.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-fc67950d.entry.js → p-05bf4861.entry.js} +1 -1
- package/dist/ripple/{p-3410da36.entry.js → p-0e87b27c.entry.js} +1 -1
- package/dist/{esm/priv-chart-popover-old.entry.js → ripple/p-12be705d.entry.js} +1 -141
- package/dist/ripple/{p-d9d16c9d.entry.js → p-1383232e.entry.js} +1 -1
- package/dist/ripple/{p-55cdf672.system.entry.js → p-13dbee96.system.entry.js} +1 -1
- package/dist/ripple/{p-ffa6f621.entry.js → p-167a1551.entry.js} +1 -1
- package/dist/ripple/{p-fe49bfb7.system.entry.js → p-1b1e8c74.system.entry.js} +1 -1
- package/dist/ripple/{p-724fbe77.entry.js → p-1da9ec6b.entry.js} +1 -1
- package/dist/ripple/{p-c04fad73.entry.js → p-20909c85.entry.js} +1 -1
- package/dist/ripple/p-219fffa2.system.js +1 -0
- package/dist/ripple/{p-3b2e7166.entry.js → p-22b8a7ad.entry.js} +1 -1
- package/dist/ripple/{p-0efafbd8.system.entry.js → p-26025eaf.system.entry.js} +1 -1
- package/dist/ripple/p-2732bddd.js +1 -0
- package/dist/ripple/{p-0e418fe4.system.entry.js → p-27f0bfbe.system.entry.js} +1 -1
- package/dist/ripple/{p-b37fbb7e.entry.js → p-29a35cf1.entry.js} +1 -1
- package/dist/ripple/{p-086da1c5.system.entry.js → p-2c3720f8.system.entry.js} +1 -1
- package/dist/ripple/{p-cd5aa832.system.entry.js → p-2c8a08ba.system.entry.js} +1 -1
- package/dist/ripple/{p-defdef0c.system.entry.js → p-31f9bf67.system.entry.js} +1 -1
- package/dist/ripple/{p-f91c86d2.system.entry.js → p-36ec7139.system.entry.js} +1 -1
- package/dist/ripple/{p-25043b32.entry.js → p-3f729889.entry.js} +1 -1
- package/dist/ripple/{p-da88bdfa.system.entry.js → p-40ffe09f.system.entry.js} +1 -1
- package/dist/ripple/p-42fa7a77.system.js +1 -0
- package/dist/ripple/{p-9bcdb6ae.entry.js → p-433c4b14.entry.js} +1 -1
- package/dist/ripple/{p-90f0283c.system.entry.js → p-4c879bfe.system.entry.js} +1 -1
- package/dist/ripple/{p-4b813987.entry.js → p-4dd7bc41.entry.js} +1 -1
- package/dist/ripple/{p-49b75a61.entry.js → p-52ae2103.entry.js} +1 -1
- package/dist/ripple/{p-2d5bd606.system.entry.js → p-551a76e7.system.entry.js} +1 -1
- package/dist/ripple/{p-fce3ce5c.system.entry.js → p-596f5afb.system.entry.js} +1 -1
- package/dist/ripple/{p-c5030fa3.system.entry.js → p-61a922fe.system.entry.js} +1 -1
- package/dist/ripple/{p-f503991a.system.js → p-61dcb4e2.system.js} +1 -1
- package/dist/ripple/{p-aecb621d.entry.js → p-6b425696.entry.js} +1 -1
- package/dist/ripple/{p-262d5bd5.system.entry.js → p-6f0b18d3.system.entry.js} +1 -1
- package/dist/ripple/{p-48950aef.entry.js → p-6fcf8596.entry.js} +1 -1
- package/dist/ripple/{p-d4051c50.system.entry.js → p-71eb58ff.system.entry.js} +1 -1
- package/dist/ripple/{p-1641d37f.entry.js → p-774aeaec.entry.js} +1 -1
- package/dist/ripple/{p-24ce5997.entry.js → p-79830298.entry.js} +1 -1
- package/dist/ripple/{p-0886099f.system.entry.js → p-7a1357c7.system.entry.js} +1 -1
- package/dist/ripple/p-7a99655b.system.js +1 -0
- package/dist/ripple/{p-367df770.entry.js → p-80d9ecad.entry.js} +1 -1
- package/dist/ripple/{p-275386c1.system.entry.js → p-8cb6d4e3.system.entry.js} +1 -1
- package/dist/ripple/{p-bfe3c687.system.entry.js → p-8d1f1807.system.entry.js} +1 -1
- package/dist/{cjs/priv-chart-popover_2.cjs.entry.js → ripple/p-93b93c0d.entry.js} +1 -175
- package/dist/ripple/{p-7f4a409e.entry.js → p-9584643c.entry.js} +1 -1
- package/dist/ripple/{p-7c103a48.system.entry.js → p-96e50cae.system.entry.js} +1 -1
- package/dist/ripple/{p-08ba2a77.system.entry.js → p-988f6e9e.system.entry.js} +1 -1
- package/dist/ripple/{p-c97b06b5.system.entry.js → p-9b2a0556.system.entry.js} +1 -1
- package/dist/ripple/{p-b1afda53.entry.js → p-9d5d923b.entry.js} +1 -1
- package/dist/ripple/{p-3de0e2b0.entry.js → p-a38ccbb2.entry.js} +1 -1
- package/dist/ripple/{p-2d042b40.system.entry.js → p-a962d037.system.entry.js} +1 -1
- package/dist/ripple/{p-b589b0da.entry.js → p-a9acc631.entry.js} +1 -1
- package/dist/ripple/{p-74b5624a.system.entry.js → p-ab78ff23.system.entry.js} +1 -1
- package/dist/ripple/{p-4934d53f.system.entry.js → p-b279c27c.system.entry.js} +1 -1
- package/dist/ripple/{p-a289d92b.system.entry.js → p-b5242adb.system.entry.js} +1 -1
- package/dist/ripple/{p-94842057.entry.js → p-b64b9fd2.entry.js} +1 -1
- package/dist/ripple/{p-8a4d79dc.system.entry.js → p-b7ff7fc6.system.entry.js} +1 -1
- package/dist/ripple/{p-a402c6bb.system.js → p-bac7a453.system.js} +1 -1
- package/dist/ripple/{p-f2b09954.system.entry.js → p-bd32c897.system.entry.js} +1 -1
- package/dist/ripple/p-c2027a82.system.js +1 -0
- package/dist/ripple/{p-6434eacf.entry.js → p-c35dbb2a.entry.js} +1 -1
- package/dist/ripple/{p-d002e65f.entry.js → p-cb063eaa.entry.js} +1 -1
- package/dist/ripple/{p-ff25bdd6.entry.js → p-cce8848a.entry.js} +1 -1
- package/dist/ripple/{p-35dfeacb.system.entry.js → p-d69863d6.system.entry.js} +1 -1
- package/dist/ripple/{p-e70f1e74.entry.js → p-d80355c4.entry.js} +1 -1
- package/dist/ripple/{p-c3ba7789.entry.js → p-d87e1091.entry.js} +1 -1
- package/dist/ripple/{p-eee663f4.system.entry.js → p-dbdfa041.system.entry.js} +1 -1
- package/dist/ripple/{p-f6844f41.entry.js → p-e2bff587.entry.js} +1 -1
- package/dist/ripple/{p-0356e736.system.entry.js → p-e6400084.system.entry.js} +1 -1
- package/dist/ripple/{p-f031ced7.js → p-ea1034db.js} +1 -1
- package/dist/ripple/{p-af9e6028.system.entry.js → p-ed5fed71.system.entry.js} +1 -1
- package/dist/ripple/{p-86f5e918.entry.js → p-effe3051.entry.js} +1 -1
- package/dist/ripple/{p-17f3fa47.system.entry.js → p-f0ee9638.system.entry.js} +1 -1
- package/dist/ripple/{p-23f08f5a.entry.js → p-f371e94c.entry.js} +1 -1
- package/dist/ripple/{p-6a2fb1a1.js → p-f446c841.js} +1 -1
- package/dist/ripple/p-f8858a30.js +1 -0
- package/dist/ripple/p-f8917d58.js +1 -0
- package/dist/ripple/{p-46c77ecb.system.entry.js → p-f99af0ab.system.entry.js} +1 -1
- package/dist/ripple/{p-3436e819.entry.js → p-fda74191.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 +1 -10
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +11 -20
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +1 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +1 -1
- package/dist/types/components.d.ts +8 -126
- package/dist/types/global/interfaces.d.ts +0 -48
- package/package.json +2 -2
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +0 -145
- package/dist/cjs/wm-chart-bar.cjs.entry.js +0 -336
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +0 -963
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +0 -262
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +0 -1078
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +0 -474
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +0 -903
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +0 -155
- package/dist/collection/dev/chart-bar.js +0 -137
- package/dist/esm/priv-chart-popover_2.entry.js +0 -170
- package/dist/esm/wm-chart-bar.entry.js +0 -332
- package/dist/esm-es5/app-globals-15abb237.js +0 -1
- package/dist/esm-es5/interfaces-7e50d034.js +0 -1
- package/dist/esm-es5/priv-chart-popover-old.entry.js +0 -1
- package/dist/esm-es5/priv-chart-popover_2.entry.js +0 -1
- package/dist/esm-es5/wm-chart-bar.entry.js +0 -1
- package/dist/ripple/p-09a08b00.system.js +0 -1
- package/dist/ripple/p-1baeb967.entry.js +0 -1
- package/dist/ripple/p-24598e3e.entry.js +0 -1
- package/dist/ripple/p-5e3d8652.js +0 -1
- package/dist/ripple/p-625d4010.entry.js +0 -1
- package/dist/ripple/p-75816848.system.js +0 -1
- package/dist/ripple/p-8ac14bb1.system.js +0 -1
- package/dist/ripple/p-986d1792.entry.js +0 -1
- package/dist/ripple/p-c2e70f44.system.js +0 -1
- package/dist/ripple/p-cda66d45.js +0 -1
- package/dist/ripple/p-e4e3fe1d.system.entry.js +0 -1
- package/dist/ripple/p-f7742db8.system.entry.js +0 -1
- package/dist/ripple/p-fe625125.js +0 -1
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +0 -26
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +0 -54
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +0 -19
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { chartPalettes, } from "../../../global/interfaces";
|
|
3
|
-
import { formatDisplayValue, suffixNumber, renderInstructionsText, findLargestNiceInterval, getMaxTicks, findNiceRoundNumber, } 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 = chartPalettes.semantic;
|
|
25
|
-
}
|
|
26
|
-
else if (((_b = this.config) === null || _b === void 0 ? void 0 : _b.colors) == "discrete") {
|
|
27
|
-
palette = chartPalettes.discrete;
|
|
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
|
-
get gridVisible() {
|
|
47
|
-
var _a, _b, _c;
|
|
48
|
-
return !!this.gridInfo && ((_a = this.config) === null || _a === void 0 ? void 0 : _a.gridMax) != undefined && ((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.showGrid) !== null && _c !== void 0 ? _c : true);
|
|
49
|
-
}
|
|
50
|
-
// #endregion getters
|
|
51
|
-
////////////////////////////////////////////////////////////
|
|
52
|
-
// #region Component lifecycle
|
|
53
|
-
////////////////////////////////////////////////////////////
|
|
54
|
-
componentDidLoad() {
|
|
55
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
56
|
-
if (this.processedData) {
|
|
57
|
-
this.gridInfo = this.calculateGridInfo();
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
resizeObserver.observe(this.barAreaEl);
|
|
61
|
-
}
|
|
62
|
-
// #endregion component lifecycle
|
|
63
|
-
////////////////////////////////////////////////////////////
|
|
64
|
-
// #region Data processing
|
|
65
|
-
////////////////////////////////////////////////////////////
|
|
66
|
-
processData() {
|
|
67
|
-
if (this.config && this.data) {
|
|
68
|
-
const itemTotal = this.data.reduce((acc, item) => acc + item.amount, 0);
|
|
69
|
-
const largest = Math.max(...this.data.map((item) => item.amount));
|
|
70
|
-
if (this.config.gridMax == "auto") {
|
|
71
|
-
this.gridMax = findNiceRoundNumber(largest);
|
|
72
|
-
}
|
|
73
|
-
else if (!!this.config.gridMax) {
|
|
74
|
-
this.gridMax = this.config.gridMax;
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
// fallback to 1 and chart should not render
|
|
78
|
-
this.gridMax = 1;
|
|
79
|
-
}
|
|
80
|
-
const processedItems = this.processItems(itemTotal);
|
|
81
|
-
if (this.sort === "ascending") {
|
|
82
|
-
processedItems.sort((a, b) => a.amount - b.amount);
|
|
83
|
-
}
|
|
84
|
-
else if (this.sort === "descending") {
|
|
85
|
-
processedItems.sort((a, b) => b.amount - a.amount);
|
|
86
|
-
}
|
|
87
|
-
this.processedData = processedItems;
|
|
88
|
-
this.gridInfo = this.calculateGridInfo();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
processItems(itemTotal) {
|
|
92
|
-
var _a, _b;
|
|
93
|
-
if (!this.data) {
|
|
94
|
-
return [];
|
|
95
|
-
}
|
|
96
|
-
const valueFormat = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.valueFormat) || "amount"; // default to amount
|
|
97
|
-
const printModeFormat = ((_b = this.config) === null || _b === void 0 ? void 0 : _b.printModeFormat) || "amount"; // default to amount
|
|
98
|
-
const defaultColor = "wmcolor-dataviz-discrete-01";
|
|
99
|
-
const isUniformConfigColor = this.colorPalette.length === 1;
|
|
100
|
-
return this.data.map((item, index) => {
|
|
101
|
-
var _a;
|
|
102
|
-
const barColor = item.color || (isUniformConfigColor ? this.colorPalette[0] : (_a = this.colorPalette[index]) !== null && _a !== void 0 ? _a : defaultColor);
|
|
103
|
-
return {
|
|
104
|
-
barLegend: item.barLegend,
|
|
105
|
-
amount: item.amount,
|
|
106
|
-
gridPercent: (item.amount / this.gridMax) * 100,
|
|
107
|
-
displayValue: formatDisplayValue(item.amount, itemTotal, valueFormat),
|
|
108
|
-
printValue: formatDisplayValue(item.amount, itemTotal, printModeFormat),
|
|
109
|
-
color: barColor,
|
|
110
|
-
popoverTitle: item.popoverTitle,
|
|
111
|
-
popoverText: item.popoverText,
|
|
112
|
-
popoverButtonText: item.popoverButtonText,
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
propogateExternalLegendData() {
|
|
117
|
-
document.querySelectorAll("wm-chart-legend").forEach((legend) => {
|
|
118
|
-
if (legend.chartIds.split(" ").includes(this.el.id)) {
|
|
119
|
-
legend.processedData = this.processedData;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
calculateGridInfo() {
|
|
124
|
-
const barAreaWidth = this.barAreaEl.getBoundingClientRect().width;
|
|
125
|
-
const maxTicks = barAreaWidth > 0 ? getMaxTicks(barAreaWidth) : 1;
|
|
126
|
-
const { numIntervals, interval } = findLargestNiceInterval(maxTicks, this.gridMax);
|
|
127
|
-
const tickLabels = [];
|
|
128
|
-
for (let i = 1; i <= numIntervals; i++) {
|
|
129
|
-
tickLabels.push(suffixNumber(i * interval));
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
numTicks: numIntervals,
|
|
133
|
-
interval: interval,
|
|
134
|
-
backgroundSize: `${100 / numIntervals}%`,
|
|
135
|
-
tickLabels: tickLabels,
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
// #endregion data processing
|
|
139
|
-
////////////////////////////////////////////////////////////
|
|
140
|
-
// #region Keyboard interaction and Event handling
|
|
141
|
-
////////////////////////////////////////////////////////////
|
|
142
|
-
handleChartKeyDown(ev) {
|
|
143
|
-
switch (ev.key) {
|
|
144
|
-
case "ArrowDown":
|
|
145
|
-
ev.preventDefault();
|
|
146
|
-
if (this.el.shadowRoot.activeElement === this.componentWrapperEl) {
|
|
147
|
-
this.focusBar(0);
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
case "Tab":
|
|
151
|
-
this.clearFocus();
|
|
152
|
-
break;
|
|
153
|
-
case "Escape":
|
|
154
|
-
ev.preventDefault();
|
|
155
|
-
ev.stopPropagation();
|
|
156
|
-
if (this.popoverEl.open) {
|
|
157
|
-
this.popoverEl.open = false;
|
|
158
|
-
}
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
handleBarKeyDown(ev, barIdx) {
|
|
163
|
-
switch (ev.key) {
|
|
164
|
-
case "ArrowUp":
|
|
165
|
-
ev.preventDefault();
|
|
166
|
-
this.focusBar(barIdx - 1);
|
|
167
|
-
break;
|
|
168
|
-
case "ArrowDown":
|
|
169
|
-
ev.preventDefault();
|
|
170
|
-
this.focusBar(barIdx + 1);
|
|
171
|
-
break;
|
|
172
|
-
case "Enter":
|
|
173
|
-
if (this.popoverEl.open) {
|
|
174
|
-
const popoverBtn = this.popoverEl.querySelector("button");
|
|
175
|
-
popoverBtn && popoverBtn.click();
|
|
176
|
-
}
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
handleBarClick(ev, idx) {
|
|
181
|
-
if (this.processedData) {
|
|
182
|
-
this.openPopover(this.processedData[idx], { x: ev.clientX, y: ev.clientY });
|
|
183
|
-
this.highlightBar(idx);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
handleLegendItemClick(ev) {
|
|
187
|
-
if (ev.target.nodeName === "WM-CHART-LEGEND") {
|
|
188
|
-
// If event from an internal legend bubbles up to the chart, ignore it
|
|
189
|
-
const legendEl = ev.target;
|
|
190
|
-
if (legendEl.chartIds.includes(this.el.id)) {
|
|
191
|
-
this.highlightBar(ev.detail.idx);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
handleDocumentClick(_ev) {
|
|
196
|
-
// Clear highlights when highlight is set from an external legend (not opening a popover)
|
|
197
|
-
if (!this.popoverEl.open) {
|
|
198
|
-
this.clearHighlights();
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
// #endregion keyboard interaction and event handling
|
|
202
|
-
////////////////////////////////////////////////////////////
|
|
203
|
-
// #region Focus and Highlighting
|
|
204
|
-
////////////////////////////////////////////////////////////
|
|
205
|
-
handleUserIsKeying() {
|
|
206
|
-
this.isKeying = true;
|
|
207
|
-
}
|
|
208
|
-
handleUserIsNotKeying() {
|
|
209
|
-
this.isKeying = false;
|
|
210
|
-
}
|
|
211
|
-
handleComponentBlur(ev) {
|
|
212
|
-
if (!isElOrChild(this.el, ev.relatedTarget)) {
|
|
213
|
-
this.clearFocus();
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
focusBar(barIdx) {
|
|
217
|
-
const bars = this.el.shadowRoot.querySelectorAll(".bar");
|
|
218
|
-
const wrappedIdx = ((barIdx % bars.length) + bars.length) % bars.length;
|
|
219
|
-
const barToFocus = bars[wrappedIdx];
|
|
220
|
-
barToFocus.focus();
|
|
221
|
-
this.highlightBar(wrappedIdx);
|
|
222
|
-
const cornerOffset = 12;
|
|
223
|
-
const processedItem = this.processedData[wrappedIdx];
|
|
224
|
-
this.openPopover(processedItem, {
|
|
225
|
-
x: barToFocus.getBoundingClientRect().left + cornerOffset,
|
|
226
|
-
y: barToFocus.getBoundingClientRect().top + cornerOffset,
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
handlePopoverToggled(_ev) {
|
|
230
|
-
setTimeout(() => {
|
|
231
|
-
// allow time for the popover to reopen if the click that closed it was on a bar, to prevent flash
|
|
232
|
-
if (this.popoverEl.open) {
|
|
233
|
-
this.highlightBar(this.processedData.findIndex((item) => { var _a; return item.barLegend === ((_a = this.popoverEl.chartData) === null || _a === void 0 ? void 0 : _a.barLegend); }));
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
this.clearHighlights();
|
|
237
|
-
}
|
|
238
|
-
}, 30);
|
|
239
|
-
}
|
|
240
|
-
openPopover(clickedProcessedData, coords) {
|
|
241
|
-
if (!this.data || !this.config) {
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
let matchingChartData = this.data.find((item) => item.barLegend === clickedProcessedData.barLegend);
|
|
245
|
-
if (matchingChartData) {
|
|
246
|
-
this.barAreaEl.classList.toggle("hide-focus-ring", !!this.processedData[this.data.indexOf(matchingChartData)].popoverButtonText);
|
|
247
|
-
this.popoverEl.chartData = matchingChartData;
|
|
248
|
-
this.popoverEl.header = matchingChartData.popoverTitle || this.config.popoverTitle || "";
|
|
249
|
-
this.popoverEl.text = matchingChartData.popoverText || this.config.popoverText || "";
|
|
250
|
-
this.popoverEl.buttonText = matchingChartData.popoverButtonText || this.config.popoverButtonText || "";
|
|
251
|
-
this.popoverEl.coords = coords;
|
|
252
|
-
window.setTimeout(() => {
|
|
253
|
-
this.popoverEl.open = true;
|
|
254
|
-
this.popoverEl.announceContents();
|
|
255
|
-
}, 30);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
clearHighlights() {
|
|
259
|
-
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
260
|
-
barItems.forEach((barItem) => {
|
|
261
|
-
barItem.classList.remove("faded");
|
|
262
|
-
});
|
|
263
|
-
this.wmChartBarHighlighted.emit({ idx: -1 });
|
|
264
|
-
}
|
|
265
|
-
highlightBar(idx) {
|
|
266
|
-
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
267
|
-
barItems.forEach((barItem) => {
|
|
268
|
-
barItem.classList.add("faded");
|
|
269
|
-
});
|
|
270
|
-
barItems[idx].classList.remove("faded");
|
|
271
|
-
this.wmChartBarHighlighted.emit({ idx: idx });
|
|
272
|
-
}
|
|
273
|
-
clearFocus() {
|
|
274
|
-
if (this.popoverEl.open) {
|
|
275
|
-
this.popoverEl.open = false;
|
|
276
|
-
}
|
|
277
|
-
this.clearHighlights();
|
|
278
|
-
}
|
|
279
|
-
// #endregion focus and highlighting
|
|
280
|
-
////////////////////////////////////////////////////////////
|
|
281
|
-
// #region Rendering
|
|
282
|
-
////////////////////////////////////////////////////////////
|
|
283
|
-
renderBarLegends() {
|
|
284
|
-
return this.processedData.map((item) => (h("div", { key: `legend-${item.barLegend}`, class: "bar-legend" }, item.barLegend)));
|
|
285
|
-
}
|
|
286
|
-
renderBars() {
|
|
287
|
-
if (!this.gridInfo || !this.processedData) {
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
// Use effective grid max (numTicks * interval) for accurate bar sizing
|
|
291
|
-
const effectiveGridMax = this.gridInfo.numTicks * this.gridInfo.interval;
|
|
292
|
-
return this.processedData.map((item, idx) => {
|
|
293
|
-
const barPercent = effectiveGridMax > 0 ? (item.amount / effectiveGridMax) * 100 : 0;
|
|
294
|
-
return (h("div", { key: `bar-${item.barLegend}`, 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.barLegend} ${item.displayValue}` }), h("span", { class: "value", style: { insetInlineStart: `${barPercent}%` } }, item.displayValue)));
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
renderXAxis() {
|
|
298
|
-
var _a;
|
|
299
|
-
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 :
|
|
300
|
-
_a.tickLabels.map((label) => (h("div", { class: "tick", key: label }, h("span", null, label))))));
|
|
301
|
-
}
|
|
302
|
-
renderGrid() {
|
|
303
|
-
var _a;
|
|
304
|
-
const backgroundSize = (_a = this.gridInfo) === null || _a === void 0 ? void 0 : _a.backgroundSize;
|
|
305
|
-
return h("div", { class: "grid-lines", style: { "--background-size": backgroundSize } });
|
|
306
|
-
}
|
|
307
|
-
renderLegend(orientation) {
|
|
308
|
-
var _a, _b, _c;
|
|
309
|
-
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.handleLegendItemClick(ev) })));
|
|
310
|
-
}
|
|
311
|
-
// #endregion rendering
|
|
312
|
-
render() {
|
|
313
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
314
|
-
const rowCount = this.processedData.length || 1;
|
|
315
|
-
return (h(Host, { key: 'db599581ae1ce77727e59c31c8f79ad45453793f' }, h("div", { key: 'fba1fdf838a142a79203d342f58c76bfea52590f', ref: (el) => (this.componentWrapperEl = el), 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: '8bee3881a7dd604f6f92182314a8372bb82ea7fc', class: "popover-wrapper" }, h("priv-chart-popover", { key: 'a73212d2e7899650912f5499c2438e431235673f', ref: (el) => (this.popoverEl = el), onIntChartPopoverToggled: (ev) => this.handlePopoverToggled(ev) })), ((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.showLabel) !== null && _c !== void 0 ? _c : true) && (h("label", { key: '94a9c169f69c2cdb99bbcb0b4f6ea2fadf81fc70', id: "label", class: "label" }, h("span", { key: '7f578b98b3f6f8683e45044d3550f31ce8c1dfa5', class: "label-text" }, (_d = this.config) === null || _d === void 0 ? void 0 : _d.label), this.subinfoText ? h("span", { class: "subinfo" }, this.subinfoText) : "")), this.showLegend === "top" && this.renderLegend("horizontal"), h("div", { key: '039c8ab84c937b202ff64cf635d0a43c520ef1e5', class: "chart-wrapper" }, h("div", { key: 'e2258ad49760655014f15782840d0aef54d3508e', class: "chart-left-side" }, this.showLegend === "left" && this.renderLegend("vertical"), h("div", { key: 'd6e2fc50844808d6eec09ed24d5aa7ed058df5f5', class: "category-axis-label" }, h("span", { key: '888442ada456f96e0dd55cf676afb9d3133d26e8', class: "axis-label-text" }, (_e = this.config) === null || _e === void 0 ? void 0 : _e.categoryAxisLabel))), h("div", { key: 'c31c5ef9086dbbd74cb185475c6b47605e71d8fc', class: "chart-center" }, h("div", { key: '104c87c74b4409454dd33c373e3563a926094b11', class: "chart-area", style: { "--row-count": rowCount.toString() } }, this.processedData && this.renderBarLegends(), h("div", { key: 'ee1de453a3595c9e814f19413c4078aa57a3a852', class: `bar-area ${this.isKeying ? "user-is-keying" : ""}`, ref: (el) => (this.barAreaEl = el) }, this.gridVisible && this.renderGrid(), ((_f = this.config) === null || _f === void 0 ? void 0 : _f.gridMax) != undefined && this.renderBars())), h("div", { key: '7e1086c0305f9848493819156c7da5bed607f238', class: "value-axis-label" }, h("span", { key: 'abeeefaa2eae958b94ef5de9dada3780a4dd85aa', class: "axis-label-text" }, (_g = this.config) === null || _g === void 0 ? void 0 : _g.valueAxisLabel)), this.gridVisible && this.renderXAxis()), h("div", { key: '3037e4179e8c159a865218ea4cf680d348635777', class: "chart-right-side" }, this.showLegend === "right" && this.renderLegend("vertical"))), this.showLegend === "bottom" && this.renderLegend("horizontal"), renderInstructionsText())));
|
|
316
|
-
}
|
|
317
|
-
static get is() { return "wm-chart-bar"; }
|
|
318
|
-
static get encapsulation() { return "shadow"; }
|
|
319
|
-
static get originalStyleUrls() {
|
|
320
|
-
return {
|
|
321
|
-
"$": ["wm-chart-bar.scss"]
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
static get styleUrls() {
|
|
325
|
-
return {
|
|
326
|
-
"$": ["wm-chart-bar.css"]
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
static get properties() {
|
|
330
|
-
return {
|
|
331
|
-
"config": {
|
|
332
|
-
"type": "unknown",
|
|
333
|
-
"mutable": false,
|
|
334
|
-
"complexType": {
|
|
335
|
-
"original": "ChartConfig",
|
|
336
|
-
"resolved": "undefined | { label: string; showLabel: boolean; valueAxisLabel: string; categoryAxisLabel: string; printMode: boolean; printModeFormat: \"amount\" | \"percentage\"; gridMax: number | \"auto\"; sort?: \"ascending\" | \"descending\" | \"none\" | undefined; showLegend?: \"top\" | \"bottom\" | \"left\" | \"right\" | \"none\" | undefined; showGrid?: boolean | undefined; subinfo?: string | undefined; valueFormat?: \"amount\" | \"percentage\" | \"none\" | undefined; colors?: string | undefined; popoverTitle?: string | undefined; popoverText?: string | undefined; popoverButtonText?: string | undefined; }",
|
|
337
|
-
"references": {
|
|
338
|
-
"ChartConfig": {
|
|
339
|
-
"location": "import",
|
|
340
|
-
"path": "../../../global/interfaces",
|
|
341
|
-
"id": "src/global/interfaces.ts::ChartConfig"
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
"required": false,
|
|
346
|
-
"optional": true,
|
|
347
|
-
"docs": {
|
|
348
|
-
"tags": [],
|
|
349
|
-
"text": ""
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
"data": {
|
|
353
|
-
"type": "unknown",
|
|
354
|
-
"mutable": false,
|
|
355
|
-
"complexType": {
|
|
356
|
-
"original": "ChartData[]",
|
|
357
|
-
"resolved": "ChartData[] | undefined",
|
|
358
|
-
"references": {
|
|
359
|
-
"ChartData": {
|
|
360
|
-
"location": "import",
|
|
361
|
-
"path": "../../../global/interfaces",
|
|
362
|
-
"id": "src/global/interfaces.ts::ChartData"
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"required": false,
|
|
367
|
-
"optional": true,
|
|
368
|
-
"docs": {
|
|
369
|
-
"tags": [],
|
|
370
|
-
"text": ""
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
"printMode": {
|
|
374
|
-
"type": "boolean",
|
|
375
|
-
"mutable": false,
|
|
376
|
-
"complexType": {
|
|
377
|
-
"original": "boolean",
|
|
378
|
-
"resolved": "boolean | undefined",
|
|
379
|
-
"references": {}
|
|
380
|
-
},
|
|
381
|
-
"required": false,
|
|
382
|
-
"optional": true,
|
|
383
|
-
"docs": {
|
|
384
|
-
"tags": [],
|
|
385
|
-
"text": ""
|
|
386
|
-
},
|
|
387
|
-
"attribute": "print-mode",
|
|
388
|
-
"reflect": false
|
|
389
|
-
},
|
|
390
|
-
"subinfo": {
|
|
391
|
-
"type": "string",
|
|
392
|
-
"mutable": false,
|
|
393
|
-
"complexType": {
|
|
394
|
-
"original": "string",
|
|
395
|
-
"resolved": "string | undefined",
|
|
396
|
-
"references": {}
|
|
397
|
-
},
|
|
398
|
-
"required": false,
|
|
399
|
-
"optional": true,
|
|
400
|
-
"docs": {
|
|
401
|
-
"tags": [],
|
|
402
|
-
"text": ""
|
|
403
|
-
},
|
|
404
|
-
"attribute": "subinfo",
|
|
405
|
-
"reflect": false
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
static get states() {
|
|
410
|
-
return {
|
|
411
|
-
"processedData": {},
|
|
412
|
-
"gridInfo": {},
|
|
413
|
-
"isKeying": {}
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
static get events() {
|
|
417
|
-
return [{
|
|
418
|
-
"method": "wmChartBarHighlighted",
|
|
419
|
-
"name": "wmChartBarHighlighted",
|
|
420
|
-
"bubbles": true,
|
|
421
|
-
"cancelable": true,
|
|
422
|
-
"composed": true,
|
|
423
|
-
"docs": {
|
|
424
|
-
"tags": [],
|
|
425
|
-
"text": ""
|
|
426
|
-
},
|
|
427
|
-
"complexType": {
|
|
428
|
-
"original": "{ idx: number }",
|
|
429
|
-
"resolved": "{ idx: number; }",
|
|
430
|
-
"references": {}
|
|
431
|
-
}
|
|
432
|
-
}];
|
|
433
|
-
}
|
|
434
|
-
static get elementRef() { return "el"; }
|
|
435
|
-
static get watchers() {
|
|
436
|
-
return [{
|
|
437
|
-
"propName": "config",
|
|
438
|
-
"methodName": "processData"
|
|
439
|
-
}, {
|
|
440
|
-
"propName": "data",
|
|
441
|
-
"methodName": "processData"
|
|
442
|
-
}, {
|
|
443
|
-
"propName": "processedData",
|
|
444
|
-
"methodName": "propogateExternalLegendData"
|
|
445
|
-
}];
|
|
446
|
-
}
|
|
447
|
-
static get listeners() {
|
|
448
|
-
return [{
|
|
449
|
-
"name": "wmLegendItemClick",
|
|
450
|
-
"method": "handleLegendItemClick",
|
|
451
|
-
"target": "document",
|
|
452
|
-
"capture": false,
|
|
453
|
-
"passive": false
|
|
454
|
-
}, {
|
|
455
|
-
"name": "click",
|
|
456
|
-
"method": "handleDocumentClick",
|
|
457
|
-
"target": "document",
|
|
458
|
-
"capture": true,
|
|
459
|
-
"passive": false
|
|
460
|
-
}, {
|
|
461
|
-
"name": "wmUserIsKeying",
|
|
462
|
-
"method": "handleUserIsKeying",
|
|
463
|
-
"target": "window",
|
|
464
|
-
"capture": false,
|
|
465
|
-
"passive": false
|
|
466
|
-
}, {
|
|
467
|
-
"name": "wmUserIsNotTabbing",
|
|
468
|
-
"method": "handleUserIsNotKeying",
|
|
469
|
-
"target": "window",
|
|
470
|
-
"capture": false,
|
|
471
|
-
"passive": false
|
|
472
|
-
}];
|
|
473
|
-
}
|
|
474
|
-
}
|