@watermarkinsights/ripple 5.23.0-alpha.9 → 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-f9876e63.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-58538efe.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 -337
- 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 -475
- 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 -138
- package/dist/esm/priv-chart-popover_2.entry.js +0 -170
- package/dist/esm/wm-chart-bar.entry.js +0 -333
- package/dist/esm-es5/app-globals-58538efe.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-1c7254e9.system.js +0 -1
- package/dist/ripple/p-24598e3e.entry.js +0 -1
- package/dist/ripple/p-4875b130.system.entry.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-8998742e.entry.js +0 -1
- package/dist/ripple/p-8ac14bb1.system.js +0 -1
- package/dist/ripple/p-94f4756b.system.js +0 -1
- package/dist/ripple/p-986d1792.entry.js +0 -1
- package/dist/ripple/p-cad66957.js +0 -1
- package/dist/ripple/p-cda66d45.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,155 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
export class ChartLegend {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.chartIds = "";
|
|
5
|
-
this.orientation = "horizontal";
|
|
6
|
-
this.processedData = [];
|
|
7
|
-
this.printMode = false;
|
|
8
|
-
}
|
|
9
|
-
handleChartBarHighlighted(ev) {
|
|
10
|
-
if (this.chartIds.split(" ").includes(ev.target.id)) {
|
|
11
|
-
this.highlightLegendItem(ev.detail.idx);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
highlightLegendItem(highlightedIdx) {
|
|
15
|
-
const legendItems = this.el.shadowRoot.querySelectorAll(".legend-item");
|
|
16
|
-
legendItems.forEach((item, idx) => {
|
|
17
|
-
if (highlightedIdx === -1) {
|
|
18
|
-
item.classList.remove("faded");
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
item.classList.toggle("faded", idx !== highlightedIdx);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
handleLegendItemClick(idx) {
|
|
26
|
-
this.wmLegendItemClick.emit({ idx: idx });
|
|
27
|
-
}
|
|
28
|
-
renderLegendItems() {
|
|
29
|
-
return this.processedData.map((item, idx) => (h("div", { class: "legend-item", key: item.barLegend, onClick: () => this.handleLegendItemClick(idx) }, h("div", { class: "color", style: { "--color": `var(--${item.color})` } }), h("div", { class: "label" }, item.barLegend), h("span", { class: `print-value ${this.printMode ? "force-visible" : ""}` }, "(", item.printValue, ")"))));
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return (h(Host, { key: 'f8c8c56e0a679b0f8ba7cb3af815276cb766b2fc' }, h("div", { key: '29ab0bebb0e7489a822da43959f08ba5848344e4', class: `legend-container --${this.orientation}`, "aria-hidden": "true" }, this.renderLegendItems())));
|
|
33
|
-
}
|
|
34
|
-
static get is() { return "wm-chart-legend"; }
|
|
35
|
-
static get encapsulation() { return "shadow"; }
|
|
36
|
-
static get delegatesFocus() { return true; }
|
|
37
|
-
static get originalStyleUrls() {
|
|
38
|
-
return {
|
|
39
|
-
"$": ["wm-chart-legend.scss"]
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
static get styleUrls() {
|
|
43
|
-
return {
|
|
44
|
-
"$": ["wm-chart-legend.css"]
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
static get properties() {
|
|
48
|
-
return {
|
|
49
|
-
"chartIds": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"mutable": false,
|
|
52
|
-
"complexType": {
|
|
53
|
-
"original": "string",
|
|
54
|
-
"resolved": "string",
|
|
55
|
-
"references": {}
|
|
56
|
-
},
|
|
57
|
-
"required": false,
|
|
58
|
-
"optional": false,
|
|
59
|
-
"docs": {
|
|
60
|
-
"tags": [],
|
|
61
|
-
"text": ""
|
|
62
|
-
},
|
|
63
|
-
"attribute": "chart-ids",
|
|
64
|
-
"reflect": true,
|
|
65
|
-
"defaultValue": "\"\""
|
|
66
|
-
},
|
|
67
|
-
"orientation": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"mutable": false,
|
|
70
|
-
"complexType": {
|
|
71
|
-
"original": "\"horizontal\" | \"vertical\"",
|
|
72
|
-
"resolved": "\"horizontal\" | \"vertical\"",
|
|
73
|
-
"references": {}
|
|
74
|
-
},
|
|
75
|
-
"required": false,
|
|
76
|
-
"optional": false,
|
|
77
|
-
"docs": {
|
|
78
|
-
"tags": [],
|
|
79
|
-
"text": ""
|
|
80
|
-
},
|
|
81
|
-
"attribute": "orientation",
|
|
82
|
-
"reflect": false,
|
|
83
|
-
"defaultValue": "\"horizontal\""
|
|
84
|
-
},
|
|
85
|
-
"processedData": {
|
|
86
|
-
"type": "unknown",
|
|
87
|
-
"mutable": true,
|
|
88
|
-
"complexType": {
|
|
89
|
-
"original": "ProcessedChartData[]",
|
|
90
|
-
"resolved": "ProcessedChartData[]",
|
|
91
|
-
"references": {
|
|
92
|
-
"ProcessedChartData": {
|
|
93
|
-
"location": "import",
|
|
94
|
-
"path": "../../../global/interfaces",
|
|
95
|
-
"id": "src/global/interfaces.ts::ProcessedChartData"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"required": false,
|
|
100
|
-
"optional": false,
|
|
101
|
-
"docs": {
|
|
102
|
-
"tags": [],
|
|
103
|
-
"text": ""
|
|
104
|
-
},
|
|
105
|
-
"defaultValue": "[]"
|
|
106
|
-
},
|
|
107
|
-
"printMode": {
|
|
108
|
-
"type": "boolean",
|
|
109
|
-
"mutable": false,
|
|
110
|
-
"complexType": {
|
|
111
|
-
"original": "boolean",
|
|
112
|
-
"resolved": "boolean",
|
|
113
|
-
"references": {}
|
|
114
|
-
},
|
|
115
|
-
"required": false,
|
|
116
|
-
"optional": false,
|
|
117
|
-
"docs": {
|
|
118
|
-
"tags": [],
|
|
119
|
-
"text": ""
|
|
120
|
-
},
|
|
121
|
-
"attribute": "print-mode",
|
|
122
|
-
"reflect": false,
|
|
123
|
-
"defaultValue": "false"
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
static get events() {
|
|
128
|
-
return [{
|
|
129
|
-
"method": "wmLegendItemClick",
|
|
130
|
-
"name": "wmLegendItemClick",
|
|
131
|
-
"bubbles": true,
|
|
132
|
-
"cancelable": true,
|
|
133
|
-
"composed": true,
|
|
134
|
-
"docs": {
|
|
135
|
-
"tags": [],
|
|
136
|
-
"text": ""
|
|
137
|
-
},
|
|
138
|
-
"complexType": {
|
|
139
|
-
"original": "{ idx: number }",
|
|
140
|
-
"resolved": "{ idx: number; }",
|
|
141
|
-
"references": {}
|
|
142
|
-
}
|
|
143
|
-
}];
|
|
144
|
-
}
|
|
145
|
-
static get elementRef() { return "el"; }
|
|
146
|
-
static get listeners() {
|
|
147
|
-
return [{
|
|
148
|
-
"name": "wmChartBarHighlighted",
|
|
149
|
-
"method": "handleChartBarHighlighted",
|
|
150
|
-
"target": "document",
|
|
151
|
-
"capture": false,
|
|
152
|
-
"passive": false
|
|
153
|
-
}];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
const barChart1 = document.getElementById("bar-chart-1");
|
|
2
|
-
const barChart2 = document.getElementById("bar-chart-2");
|
|
3
|
-
|
|
4
|
-
// Event listener for popover button triggered
|
|
5
|
-
barChart1.addEventListener("wmPopoverButtonClick", (ev) => {
|
|
6
|
-
console.log("wmPopoverButtonClick: ", ev.detail);
|
|
7
|
-
document.body.style.backgroundColor = `var(--${ev.detail.color})`;
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
barChart2.addEventListener("wmPopoverButtonClick", (ev) => {
|
|
11
|
-
console.log("wmPopoverButtonClick: ", ev.detail);
|
|
12
|
-
document.body.style.backgroundColor = `var(--${ev.detail.color})`;
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
// Setup chart data
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
|
|
18
|
-
barChart1.config = {
|
|
19
|
-
label: "Number of Students by Department",
|
|
20
|
-
subinfo: "University of Education",
|
|
21
|
-
valueAxisLabel: "Students",
|
|
22
|
-
categoryAxisLabel: "University Departments",
|
|
23
|
-
printMode: true,
|
|
24
|
-
printModeFormat: "percentage",
|
|
25
|
-
gridMax: 2000,
|
|
26
|
-
popoverTitle: "Config Title",
|
|
27
|
-
popoverText: "Description set by the config",
|
|
28
|
-
popoverButtonText: "View Details",
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
barChart1.data = [
|
|
32
|
-
{ barLegend: "Marine Biology", amount: 250, whatever: "whatever", color: "wmcolor-border" },
|
|
33
|
-
{ barLegend: "Organic Chemistry", amount: 500 },
|
|
34
|
-
{ barLegend: "Aeronautical Engineering", amount: 982 },
|
|
35
|
-
{ barLegend: "Pure Mathematics", amount: 100, },
|
|
36
|
-
{ barLegend: "Astrophysics", amount: 500, popoverTitle: "Astrophysics", popoverText: "Astrophysics description set by the data", popoverButtonText: "View Astrophysics Details" },
|
|
37
|
-
{ barLegend: "Social Psychology", amount: 900 },
|
|
38
|
-
{ barLegend: "Urban Sociology", amount: 500 },
|
|
39
|
-
{ barLegend: "Behavioral Economics & Economy Sciences", amount: 250 },
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
barChart2.config = {
|
|
43
|
-
label: "Number of Students by Department",
|
|
44
|
-
subinfo: "University of Education",
|
|
45
|
-
valueAxisLabel: "Students",
|
|
46
|
-
categoryAxisLabel: "University Departments",
|
|
47
|
-
printMode: true,
|
|
48
|
-
printModeFormat: "percentage",
|
|
49
|
-
gridMax: 2000,
|
|
50
|
-
popoverTitle: "Config Title",
|
|
51
|
-
popoverText: "Description set by the config",
|
|
52
|
-
popoverButtonText: "View Details",
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
barChart2.data = [
|
|
56
|
-
{ barLegend: "Marine Biology", amount: 250, whatever: "whatever", color: "wmcolor-border" },
|
|
57
|
-
{ barLegend: "Organic Chemistry", amount: 500 },
|
|
58
|
-
{ barLegend: "Aeronautical Engineering", amount: 982 },
|
|
59
|
-
{ barLegend: "Pure Mathematics", amount: 100 },
|
|
60
|
-
{ barLegend: "Astrophysics", amount: 500, popoverTitle: "Astrophysics", popoverText: "Astrophysics description set by the data", popoverButtonText: "View Astrophysics Details" },
|
|
61
|
-
{ barLegend: "Social Psychology", amount: 900 },
|
|
62
|
-
{ barLegend: "Urban Sociology", amount: 500 },
|
|
63
|
-
{ barLegend: "Behavioral Economics & Economy Sciences", amount: 250 },
|
|
64
|
-
];
|
|
65
|
-
}, 1000);
|
|
66
|
-
|
|
67
|
-
////////////////////////////////////////////////////////////
|
|
68
|
-
// Control Panel
|
|
69
|
-
////////////////////////////////////////////////////////////
|
|
70
|
-
|
|
71
|
-
// Value format control
|
|
72
|
-
const valueFormatAmount = document.getElementById("value-format-amount");
|
|
73
|
-
const valueFormatPercentage = document.getElementById("value-format-percentage");
|
|
74
|
-
|
|
75
|
-
valueFormatAmount.addEventListener("change", () => {
|
|
76
|
-
barChart1.config = {...barChart1.config, valueFormat: "amount"};
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
valueFormatPercentage.addEventListener("change", () => {
|
|
80
|
-
barChart1.config = {...barChart1.config, valueFormat: "percentage"};
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
// Pattern control
|
|
84
|
-
const patternDiscrete = document.getElementById("pattern-discrete");
|
|
85
|
-
const patternSemantic = document.getElementById("pattern-semantic");
|
|
86
|
-
|
|
87
|
-
patternDiscrete.addEventListener("change", () => {
|
|
88
|
-
barChart1.config = {...barChart1.config, colors: "discrete"};
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
patternSemantic.addEventListener("change", () => {
|
|
92
|
-
barChart1.config = {...barChart1.config, colors: "semantic"};
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
// Sort control
|
|
96
|
-
const sortAscending = document.getElementById("sort-ascending");
|
|
97
|
-
const sortDescending = document.getElementById("sort-descending");
|
|
98
|
-
sortAscending.addEventListener("change", updateSort);
|
|
99
|
-
sortDescending.addEventListener("change", updateSort);
|
|
100
|
-
|
|
101
|
-
function updateSort() {
|
|
102
|
-
barChart1.config = {...barChart1.config, sort: document.querySelector("input[name='sort']:checked").value};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const sortNone = document.getElementById("sort-none");
|
|
106
|
-
|
|
107
|
-
sortNone.addEventListener("change", () => {
|
|
108
|
-
barChart1.config = {...barChart1.config, sort: null};
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
// Chart label control
|
|
112
|
-
const chartLabelInput = document.getElementById("chart-label-input");
|
|
113
|
-
chartLabelInput.addEventListener("change", (ev) => {
|
|
114
|
-
barChart1.config = {...barChart1.config, label: ev.target.value};
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
// Axis label control
|
|
118
|
-
const axisLabelInput = document.getElementById("axis-label-input");
|
|
119
|
-
axisLabelInput.addEventListener("change", (ev) => {
|
|
120
|
-
barChart1.config = {...barChart1.config, valueAxisLabel: ev.target.value};
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
// Legend position control
|
|
124
|
-
function updateLegendPosition() {
|
|
125
|
-
barChart1.config = {...barChart1.config, showLegend: document.querySelector("input[name='legend']:checked").value};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
const legendTop = document.getElementById("legend-top");
|
|
129
|
-
const legendBottom = document.getElementById("legend-bottom");
|
|
130
|
-
const legendLeft = document.getElementById("legend-left");
|
|
131
|
-
const legendRight = document.getElementById("legend-right");
|
|
132
|
-
const legendNone = document.getElementById("legend-none");
|
|
133
|
-
|
|
134
|
-
legendTop.addEventListener("change", updateLegendPosition);
|
|
135
|
-
legendBottom.addEventListener("change", updateLegendPosition);
|
|
136
|
-
legendLeft.addEventListener("change", updateLegendPosition);
|
|
137
|
-
legendRight.addEventListener("change", updateLegendPosition);
|
|
138
|
-
legendNone.addEventListener("change", updateLegendPosition);
|