@watermarkinsights/ripple 5.22.0-alpha.4 → 5.22.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-054d0c9e.js → app-globals-49be3826.js} +19 -17
- package/dist/cjs/{chartFunctions-d9aa9891.js → chartFunctions-60f65883.js} +1 -40
- package/dist/cjs/{functions-505d6601.js → functions-71af585d.js} +2 -6
- package/dist/cjs/index-788526f5.js +2 -10
- package/dist/cjs/{interfaces-069f135e.js → interfaces-85d78ae9.js} +0 -21
- package/dist/cjs/{intl-e7d7e719.js → intl-169a8805.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/wm-button.cjs.entry.js +3 -3
- package/dist/cjs/wm-chart.cjs.entry.js +5 -5
- package/dist/cjs/wm-date-range.cjs.entry.js +6 -6
- package/dist/cjs/wm-datepicker.cjs.entry.js +6 -6
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
- package/dist/cjs/wm-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-line-chart.cjs.entry.js +5 -5
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-modal_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigator.cjs.entry.js +2 -2
- package/dist/cjs/wm-nested-select.cjs.entry.js +5 -5
- package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +7 -7
- package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +5 -5
- package/dist/cjs/wm-search.cjs.entry.js +4 -4
- package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/wm-tag-input.cjs.entry.js +4 -4
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
- package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +0 -3
- package/dist/collection/components/charts/chartFunctions.js +1 -36
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +9 -11
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +112 -190
- 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/functions.js +2 -6
- package/dist/collection/global/global.js +18 -16
- package/dist/collection/global/interfaces.js +0 -19
- package/dist/esm/{app-globals-20ff89a4.js → app-globals-fec6fcef.js} +19 -17
- package/dist/esm/{chartFunctions-f22160b5.js → chartFunctions-a834e2a9.js} +2 -37
- package/dist/esm/{functions-14aaf49d.js → functions-9df607f2.js} +2 -6
- package/dist/esm/index-130e07bb.js +2 -10
- package/dist/esm/{interfaces-16deca17.js → interfaces-cc5b177f.js} +1 -20
- package/dist/esm/{intl-7b5f8017.js → intl-86bec8ef.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-fec6fcef.js +1 -0
- package/dist/esm-es5/{chartFunctions-f22160b5.js → chartFunctions-a834e2a9.js} +1 -1
- package/dist/esm-es5/{functions-14aaf49d.js → functions-9df607f2.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-7b5f8017.js → intl-86bec8ef.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-135ecb41.system.entry.js → p-0267046a.system.entry.js} +1 -1
- package/dist/ripple/{p-72643f00.entry.js → p-04fe992d.entry.js} +1 -1
- package/dist/ripple/{p-984b3aa2.system.entry.js → p-0a95f175.system.entry.js} +1 -1
- package/dist/ripple/{p-220fa36a.js → p-0c1396e0.js} +1 -1
- package/dist/ripple/{p-91145304.system.entry.js → p-0e3015f2.system.entry.js} +1 -1
- package/dist/ripple/{p-94ec4e2c.entry.js → p-11ae67a9.entry.js} +1 -1
- package/dist/ripple/p-1db0bb59.system.js +1 -0
- package/dist/ripple/{p-37fbdcf9.system.entry.js → p-1dbd86bf.system.entry.js} +1 -1
- package/dist/ripple/{p-7781f941.entry.js → p-1e4b30ac.entry.js} +1 -1
- package/dist/ripple/{p-e50d77b9.entry.js → p-1f26fdb7.entry.js} +1 -1
- package/dist/ripple/{p-6e6a9598.entry.js → p-2451029c.entry.js} +1 -1
- package/dist/ripple/{p-8c378a26.system.entry.js → p-24d20fc6.system.entry.js} +1 -1
- package/dist/ripple/p-2732bddd.js +1 -0
- package/dist/ripple/{p-3d1098fb.system.entry.js → p-285dbfb9.system.entry.js} +1 -1
- package/dist/ripple/{p-c1cbb630.entry.js → p-28b52ec0.entry.js} +1 -1
- package/dist/ripple/{p-093dd5b3.entry.js → p-31558b0e.entry.js} +1 -1
- package/dist/ripple/{p-6ae45e19.entry.js → p-37e6df61.entry.js} +1 -1
- package/dist/ripple/p-42fa7a77.system.js +1 -0
- package/dist/ripple/{p-366f253f.entry.js → p-44dc020c.entry.js} +1 -1
- package/dist/ripple/{p-7a6d6c76.entry.js → p-484c5cc5.entry.js} +1 -1
- package/dist/ripple/{p-241c2d63.entry.js → p-4c374ff7.entry.js} +1 -1
- package/dist/ripple/{p-1124978e.system.entry.js → p-4e9f0f73.system.entry.js} +1 -1
- package/dist/ripple/{p-2b15945c.system.entry.js → p-59101b39.system.entry.js} +1 -1
- package/dist/ripple/p-59ce4f69.js +1 -0
- package/dist/ripple/{p-b00cdcc6.entry.js → p-5b9441ff.entry.js} +1 -1
- package/dist/ripple/p-5dc32453.js +1 -0
- package/dist/ripple/{p-22cbc43b.entry.js → p-6388bf35.entry.js} +1 -1
- package/dist/ripple/{p-b6d2b2c9.system.entry.js → p-6c267b11.system.entry.js} +1 -1
- package/dist/ripple/{p-8d858325.system.entry.js → p-6d0f7f1d.system.entry.js} +1 -1
- package/dist/ripple/{p-99f4dc24.entry.js → p-7233deea.entry.js} +1 -1
- package/dist/ripple/{p-9ea227e3.system.entry.js → p-73914a64.system.entry.js} +1 -1
- package/dist/ripple/{p-9f089a36.system.entry.js → p-75cf1147.system.entry.js} +1 -1
- package/dist/ripple/{p-d2ed3598.system.entry.js → p-7c379888.system.entry.js} +1 -1
- package/dist/ripple/{p-1b7774ab.entry.js → p-7ca0a3cb.entry.js} +1 -1
- package/dist/ripple/{p-e5af888f.system.entry.js → p-813634c0.system.entry.js} +1 -1
- package/dist/ripple/{p-12eaf2d7.entry.js → p-81c8d038.entry.js} +1 -1
- package/dist/ripple/{p-6643047f.system.entry.js → p-8286ed48.system.entry.js} +1 -1
- package/dist/ripple/{p-b41dfeea.system.entry.js → p-840ed2ca.system.entry.js} +1 -1
- package/dist/ripple/{p-21114d99.entry.js → p-886b50fb.entry.js} +1 -1
- package/dist/{cjs/priv-chart-popover_2.cjs.entry.js → ripple/p-88ec49f1.entry.js} +1 -175
- package/dist/ripple/{p-e0743224.entry.js → p-91194c43.entry.js} +1 -1
- package/dist/ripple/{p-f381b796.system.entry.js → p-92d489c8.system.entry.js} +1 -1
- package/dist/ripple/{p-6a18191e.system.entry.js → p-98a81b33.system.entry.js} +1 -1
- package/dist/ripple/{p-43b61559.system.entry.js → p-a09d66e8.system.entry.js} +1 -1
- package/dist/ripple/{p-d6e81f61.entry.js → p-a111374c.entry.js} +1 -1
- package/dist/ripple/{p-28890409.entry.js → p-a19f81a3.entry.js} +1 -1
- package/dist/{cjs/priv-chart-popover-old.cjs.entry.js → ripple/p-a6240a47.entry.js} +1 -145
- package/dist/ripple/p-ac08b0a8.system.js +1 -0
- package/dist/ripple/{p-87992e3d.system.entry.js → p-ac4370ae.system.entry.js} +1 -1
- package/dist/ripple/{p-1c86be31.entry.js → p-ae138b2c.entry.js} +1 -1
- package/dist/ripple/{p-b2875298.system.entry.js → p-afd0ed83.system.entry.js} +1 -1
- package/dist/ripple/{p-c5c98974.system.entry.js → p-b1e58461.system.entry.js} +1 -1
- package/dist/ripple/{p-7568137d.system.entry.js → p-bbf46f8b.system.entry.js} +1 -1
- package/dist/ripple/{p-04f8cae1.system.entry.js → p-bc29023c.system.entry.js} +1 -1
- package/dist/ripple/{p-31468e67.entry.js → p-c0087cd0.entry.js} +1 -1
- package/dist/ripple/{p-30c0aa58.system.entry.js → p-c02a5e64.system.entry.js} +1 -1
- package/dist/ripple/{p-743536ae.system.entry.js → p-cbb67bc3.system.entry.js} +1 -1
- package/dist/ripple/{p-8bb49d8f.system.entry.js → p-ceaee8b9.system.entry.js} +1 -1
- package/dist/ripple/{p-780de72e.system.entry.js → p-d59ded20.system.entry.js} +1 -1
- package/dist/ripple/{p-12f39b2f.entry.js → p-d9a53822.entry.js} +1 -1
- package/dist/ripple/{p-cc0cbbac.entry.js → p-de9e0582.entry.js} +1 -1
- package/dist/ripple/{p-3967eef9.system.js → p-e075695e.system.js} +1 -1
- package/dist/ripple/{p-c24b745f.entry.js → p-e618af10.entry.js} +1 -1
- package/dist/ripple/{p-4ba001c1.entry.js → p-e66ccd7b.entry.js} +1 -1
- package/dist/ripple/{p-bd7a5b99.system.entry.js → p-e6f6b0f4.system.entry.js} +1 -1
- package/dist/ripple/{p-966f2c9e.entry.js → p-e9038796.entry.js} +1 -1
- package/dist/ripple/{p-7cd03a52.entry.js → p-edbfc15c.entry.js} +1 -1
- package/dist/ripple/{p-b52e3001.entry.js → p-ee25af83.entry.js} +1 -1
- package/dist/ripple/{p-a0b38e60.system.js → p-ee9ff51e.system.js} +1 -1
- package/dist/ripple/{p-221dedba.system.entry.js → p-ef7988fe.system.entry.js} +1 -1
- package/dist/ripple/{p-0b2a0825.system.entry.js → p-f1dea7a8.system.entry.js} +1 -1
- package/dist/ripple/p-f297a080.system.js +1 -0
- package/dist/ripple/{p-909f8797.entry.js → p-f5c59ec1.entry.js} +1 -1
- package/dist/ripple/{p-8f96f4f8.entry.js → p-f680ad0f.entry.js} +1 -1
- package/dist/ripple/{p-e72235c6.js → p-f73dd1e7.js} +1 -1
- package/dist/ripple/{p-b8d69c73.system.entry.js → p-f8c12729.system.entry.js} +1 -1
- package/dist/ripple/{p-a7bddbfd.system.entry.js → p-fe330a72.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 +1 -9
- 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 +6 -124
- package/dist/types/global/interfaces.d.ts +0 -41
- package/package.json +2 -2
- package/dist/cjs/wm-chart-bar.cjs.entry.js +0 -299
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +0 -961
- 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 -1071
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +0 -423
- 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 -110
- package/dist/esm/priv-chart-popover-old.entry.js +0 -141
- package/dist/esm/priv-chart-popover_2.entry.js +0 -170
- package/dist/esm/wm-chart-bar.entry.js +0 -295
- package/dist/esm-es5/app-globals-20ff89a4.js +0 -1
- package/dist/esm-es5/interfaces-16deca17.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-0b5e5682.js +0 -1
- package/dist/ripple/p-0d5884f6.system.entry.js +0 -1
- package/dist/ripple/p-1c133402.system.entry.js +0 -1
- package/dist/ripple/p-25e10302.system.js +0 -1
- package/dist/ripple/p-30874e40.entry.js +0 -1
- package/dist/ripple/p-403e834e.entry.js +0 -1
- package/dist/ripple/p-4869f367.system.js +0 -1
- package/dist/ripple/p-55f2245c.js +0 -1
- package/dist/ripple/p-784fc89d.system.js +0 -1
- package/dist/ripple/p-7b6a4bd6.entry.js +0 -1
- package/dist/ripple/p-87e8cef4.system.js +0 -1
- package/dist/ripple/p-c464dfd1.entry.js +0 -1
- package/dist/ripple/p-efa7cdcc.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 -58
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +0 -19
|
@@ -143,7 +143,7 @@ function minSpacing(width) {
|
|
|
143
143
|
// minimum spacing between 2 ticks, in px
|
|
144
144
|
return scale(width, 300, 900, 70, 150);
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
function getMaxTicks(width) {
|
|
147
147
|
return Math.round(width / minSpacing(width));
|
|
148
148
|
}
|
|
149
149
|
export function getInterval(largest, maxticks) {
|
|
@@ -673,38 +673,3 @@ export function renderCompletionMessage() {
|
|
|
673
673
|
export function renderHiddenValuesMessage() {
|
|
674
674
|
return (h("div", { class: "hidden-values-warning hidden" }, textHiddenMessage, h("br", null), seeDetailsMessage));
|
|
675
675
|
}
|
|
676
|
-
export function formatDisplayValue(amount, amountTotal, valueFormat) {
|
|
677
|
-
switch (valueFormat) {
|
|
678
|
-
case "amount":
|
|
679
|
-
return amount.toLocaleString();
|
|
680
|
-
case "percentage":
|
|
681
|
-
return `${Math.round((amount / amountTotal) * 100).toFixed(0)}%`;
|
|
682
|
-
default:
|
|
683
|
-
case "none":
|
|
684
|
-
return "";
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
export function isNiceInterval(interval, niceValues = [1, 1.5, 2, 2.5, 3, 5, 10]) {
|
|
688
|
-
const magnitude = Math.pow(10, Math.floor(Math.log10(interval)));
|
|
689
|
-
const normalized = interval / magnitude;
|
|
690
|
-
const normalizedComparision = niceValues.some((nice) => Math.abs(normalized - nice) < 0.0001); // check equality with floating point tolerance
|
|
691
|
-
return normalizedComparision;
|
|
692
|
-
}
|
|
693
|
-
export function suffixNumber(value) {
|
|
694
|
-
if (value >= 1000000)
|
|
695
|
-
return `${(value / 1000000).toFixed(value % 1000000 === 0 ? 0 : 1)}M`;
|
|
696
|
-
if (value >= 1000)
|
|
697
|
-
return `${(value / 1000).toFixed(value % 1000 === 0 ? 0 : 1)}K`;
|
|
698
|
-
return value.toString();
|
|
699
|
-
}
|
|
700
|
-
export function findLargestNiceInterval(maxIntervals, total) {
|
|
701
|
-
// Given a max number of intervals and a total, iterate down until a nice way to divide the total is found.
|
|
702
|
-
// Otherwise, return 1 interval
|
|
703
|
-
for (let intervals = maxIntervals; intervals >= 1; intervals--) {
|
|
704
|
-
const candidateInterval = total / intervals;
|
|
705
|
-
if (isNiceInterval(candidateInterval)) {
|
|
706
|
-
return { numIntervals: intervals, interval: candidateInterval };
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
return { numIntervals: 1, interval: total };
|
|
710
|
-
}
|
|
@@ -865,6 +865,15 @@ priv-chart-popover {
|
|
|
865
865
|
--wmcolor-chart-popover-link-text-focus: var(--wmcolor-interactive-focus);
|
|
866
866
|
--wmcolor-chart-popover-link-text: var(--wmcolor-interactive);
|
|
867
867
|
--wmcolor-chart-popover-background: var(--wmcolor-background);
|
|
868
|
+
position: fixed;
|
|
869
|
+
z-index: 10;
|
|
870
|
+
border-radius: 0.1875rem;
|
|
871
|
+
-webkit-box-shadow: 0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);
|
|
872
|
+
-moz-box-shadow: 0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);
|
|
873
|
+
box-shadow: 0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);
|
|
874
|
+
background-color: var(--wmcolor-chart-popover-background);
|
|
875
|
+
font-size: 0.875rem;
|
|
876
|
+
text-align: left;
|
|
868
877
|
}
|
|
869
878
|
priv-chart-popover.user-is-tabbing .button-text {
|
|
870
879
|
outline: 3px solid var(--wmcolor-interactive-focus);
|
|
@@ -885,17 +894,6 @@ priv-chart-popover.user-is-tabbing .button-text {
|
|
|
885
894
|
}
|
|
886
895
|
|
|
887
896
|
.popover {
|
|
888
|
-
position: fixed;
|
|
889
|
-
margin: 0;
|
|
890
|
-
padding: 0;
|
|
891
|
-
border: none;
|
|
892
|
-
border-radius: 0.1875rem;
|
|
893
|
-
-webkit-box-shadow: 0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);
|
|
894
|
-
-moz-box-shadow: 0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);
|
|
895
|
-
box-shadow: 0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);
|
|
896
|
-
background-color: var(--wmcolor-chart-popover-background);
|
|
897
|
-
font-size: 0.875rem;
|
|
898
|
-
text-align: left;
|
|
899
897
|
width: 10.5rem;
|
|
900
898
|
padding: 0.625rem 0.9375rem;
|
|
901
899
|
box-sizing: border-box;
|
|
@@ -2,32 +2,31 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { debounce, findAllScrollableParents, intl } from "../../../global/functions";
|
|
3
3
|
export class ChartPopover {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.chartEl = this.el.parentElement.getRootNode().host;
|
|
5
6
|
this.popoverWidth = 168;
|
|
6
7
|
this.popoverClicked = false;
|
|
7
8
|
this.debouncedClosePopover = debounce(async () => {
|
|
8
9
|
this.open = false;
|
|
9
10
|
}, 10);
|
|
10
|
-
this.chartData = undefined;
|
|
11
|
-
this.header = "";
|
|
12
|
-
this.text = "";
|
|
13
|
-
this.buttonText = "";
|
|
14
|
-
this.coords = { x: 0, y: 0 };
|
|
15
11
|
this.open = false;
|
|
16
|
-
this.
|
|
17
|
-
this.isTabbing = false;
|
|
12
|
+
this.sliceDetails = undefined;
|
|
18
13
|
}
|
|
19
|
-
|
|
20
|
-
this.
|
|
14
|
+
get eventToEmit() {
|
|
15
|
+
return this.chartEl.nodeName === "WM-CHART"
|
|
16
|
+
? this.wmChartPopoverButtonTriggered
|
|
17
|
+
: this.wmProgressIndicatorButtonTriggered;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
|
-
this
|
|
24
|
-
|
|
25
|
-
handleClickOnDocument(_ev) {
|
|
19
|
+
handleClickOnDocument(ev) {
|
|
20
|
+
// because this listener is set document-wide, whenever something inside it is clicked
|
|
21
|
+
// the event target returned will always be the host (wm-chart)
|
|
26
22
|
// the element within wm-chart is determined by the other listener and saved as var popoverClicked for use here
|
|
27
23
|
// capture = false in @Listen ensures order of execution
|
|
28
24
|
if (this.open) {
|
|
29
|
-
|
|
30
|
-
this.
|
|
25
|
+
// if the target is the popover's own slice, no need to adjust the open state
|
|
26
|
+
if (ev.target != this.sliceDetails.sliceRef) {
|
|
27
|
+
this.open = this.popoverClicked;
|
|
28
|
+
this.popoverClicked = false;
|
|
29
|
+
}
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
handleClick(ev) {
|
|
@@ -40,8 +39,8 @@ export class ChartPopover {
|
|
|
40
39
|
componentDidLoad() {
|
|
41
40
|
// set up event listeners for scrolling
|
|
42
41
|
// to close popover on page scroll
|
|
43
|
-
const scrollableParents = findAllScrollableParents(this.
|
|
44
|
-
scrollableParents.forEach(
|
|
42
|
+
const scrollableParents = findAllScrollableParents(this.chartEl);
|
|
43
|
+
scrollableParents.forEach(scrollableParent => {
|
|
45
44
|
if (scrollableParent === document.documentElement) {
|
|
46
45
|
// For document element, listen to window scroll event
|
|
47
46
|
window.addEventListener("scroll", () => {
|
|
@@ -58,57 +57,70 @@ export class ChartPopover {
|
|
|
58
57
|
}
|
|
59
58
|
handleOpenChange() {
|
|
60
59
|
this.intChartPopoverOpenChanged.emit(this.open);
|
|
61
|
-
if (this.open) {
|
|
62
|
-
this.popoverEl.showPopover();
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this.popoverEl.hidePopover();
|
|
66
|
-
}
|
|
67
60
|
}
|
|
68
61
|
handleDetailsChange() {
|
|
69
|
-
this.
|
|
70
|
-
|
|
71
|
-
handleButtonClick() {
|
|
72
|
-
if (this.chartData) {
|
|
73
|
-
this.wmPopoverButtonClick.emit(this.chartData);
|
|
62
|
+
if (this.sliceDetails && this.sliceDetails.coords) {
|
|
63
|
+
this.positionPopover();
|
|
74
64
|
}
|
|
75
65
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
//
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
updateHighlightedInfo() {
|
|
67
|
+
// if (this.sliceDetails) {
|
|
68
|
+
// if (this.open) {
|
|
69
|
+
// this.highlightSegmentInfo(this.sliceDetails);
|
|
70
|
+
// } else {
|
|
71
|
+
// this.removeSegmentInfoHighlight();
|
|
72
|
+
// }
|
|
73
|
+
// }
|
|
74
|
+
}
|
|
75
|
+
handleButtonClick() {
|
|
76
|
+
if (this.sliceDetails) {
|
|
77
|
+
const sliceRef = this.sliceDetails.sliceRef;
|
|
78
|
+
sliceRef.click();
|
|
79
|
+
this.eventToEmit.emit(sliceRef);
|
|
81
80
|
}
|
|
82
|
-
this.announcement = message;
|
|
83
81
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
82
|
+
renderLiveRegion() {
|
|
83
|
+
if (this.liveRegion) {
|
|
84
|
+
this.liveRegion.innerHTML = "";
|
|
85
|
+
const wrapper = document.createElement("div");
|
|
86
|
+
const titleEl = document.createElement("span");
|
|
87
|
+
titleEl.innerHTML = this.sliceDetails.title + " " || "";
|
|
88
|
+
wrapper.appendChild(titleEl);
|
|
89
|
+
const textEl = document.createElement("span");
|
|
90
|
+
textEl.innerHTML = this.sliceDetails.text + " " || "";
|
|
91
|
+
wrapper.appendChild(textEl);
|
|
92
|
+
if (this.sliceDetails.buttonText) {
|
|
93
|
+
const buttonEl = document.createElement("span");
|
|
94
|
+
buttonEl.innerHTML =
|
|
95
|
+
this.sliceDetails.buttonText +
|
|
96
|
+
" " +
|
|
97
|
+
intl.formatMessage({
|
|
98
|
+
id: "chart.infoButton",
|
|
99
|
+
defaultMessage: "Button. Click for more information.",
|
|
100
|
+
});
|
|
101
|
+
wrapper.appendChild(buttonEl);
|
|
102
|
+
}
|
|
103
|
+
this.liveRegion.appendChild(wrapper);
|
|
95
104
|
}
|
|
96
|
-
this.announce(contentsMessage);
|
|
97
105
|
}
|
|
98
106
|
positionPopover() {
|
|
99
|
-
this.
|
|
100
|
-
if (window.innerWidth - this.coords.x >= this.popoverWidth + 10) {
|
|
101
|
-
this.
|
|
107
|
+
this.el.style.top = this.sliceDetails.coords.y + "px";
|
|
108
|
+
if (window.innerWidth - this.sliceDetails.coords.x >= this.popoverWidth + 10) {
|
|
109
|
+
this.el.style.left = this.sliceDetails.coords.x + "px"; // opens on the right
|
|
102
110
|
}
|
|
103
111
|
else {
|
|
104
|
-
this.
|
|
112
|
+
this.el.style.left = this.sliceDetails.coords.x - this.popoverWidth + "px"; // opens on the left
|
|
105
113
|
}
|
|
106
114
|
}
|
|
107
115
|
render() {
|
|
108
|
-
const titleAffordance = this.
|
|
109
|
-
|
|
116
|
+
const titleAffordance = this.sliceDetails &&
|
|
117
|
+
this.sliceDetails.title &&
|
|
118
|
+
(this.sliceDetails.title[0] === "-" ? "negative" : this.sliceDetails.title[0] === "+" ? "positive" : "");
|
|
119
|
+
return (h(Host, { key: '25275e7ca9b1744629a4da08abccc1b99f301286' }, !!this.open && this.sliceDetails ? (h("div", { "aria-hidden": "true", class: "popover" }, h("h1", { class: `title ${titleAffordance}` }, this.sliceDetails.title), h("p", { class: "text" }, this.sliceDetails.text), this.sliceDetails.buttonText ? (
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
h("button", { tabindex: "-1",
|
|
110
122
|
// @ts-ignore
|
|
111
|
-
focusable: "false", class: "popover-button", onClick: () => this.handleButtonClick() }, h("svg", { class: "btn-icon", height: "9", width: "9" }, h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })), h("span", { class: "button-text" }, this.buttonText))) : ("")), h("div", { key: '
|
|
123
|
+
focusable: "false", class: "popover-button", onClick: () => this.handleButtonClick() }, h("svg", { class: "btn-icon", height: "9", width: "9" }, h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })), h("span", { class: "button-text" }, this.sliceDetails.buttonText))) : (""))) : (""), h("div", { key: 'cdfdb9f58ebcbe375cc50214aac091c890587935', ref: (el) => (this.liveRegion = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.open && this.renderLiveRegion())));
|
|
112
124
|
}
|
|
113
125
|
static get is() { return "priv-chart-popover"; }
|
|
114
126
|
static get originalStyleUrls() {
|
|
@@ -123,69 +135,12 @@ export class ChartPopover {
|
|
|
123
135
|
}
|
|
124
136
|
static get properties() {
|
|
125
137
|
return {
|
|
126
|
-
"
|
|
127
|
-
"type": "
|
|
128
|
-
"mutable":
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "ChartData",
|
|
131
|
-
"resolved": "undefined | { [key: string]: any; label: string; amount: number; color?: string | undefined; popoverTitle?: string | undefined; popoverText?: string | undefined; popoverButtonText?: string | undefined; }",
|
|
132
|
-
"references": {
|
|
133
|
-
"ChartData": {
|
|
134
|
-
"location": "import",
|
|
135
|
-
"path": "../../../global/interfaces",
|
|
136
|
-
"id": "src/global/interfaces.ts::ChartData"
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"required": false,
|
|
141
|
-
"optional": true,
|
|
142
|
-
"docs": {
|
|
143
|
-
"tags": [],
|
|
144
|
-
"text": ""
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"header": {
|
|
148
|
-
"type": "string",
|
|
149
|
-
"mutable": false,
|
|
150
|
-
"complexType": {
|
|
151
|
-
"original": "string",
|
|
152
|
-
"resolved": "string",
|
|
153
|
-
"references": {}
|
|
154
|
-
},
|
|
155
|
-
"required": false,
|
|
156
|
-
"optional": false,
|
|
157
|
-
"docs": {
|
|
158
|
-
"tags": [],
|
|
159
|
-
"text": ""
|
|
160
|
-
},
|
|
161
|
-
"attribute": "header",
|
|
162
|
-
"reflect": false,
|
|
163
|
-
"defaultValue": "\"\""
|
|
164
|
-
},
|
|
165
|
-
"text": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"mutable": false,
|
|
168
|
-
"complexType": {
|
|
169
|
-
"original": "string",
|
|
170
|
-
"resolved": "string",
|
|
171
|
-
"references": {}
|
|
172
|
-
},
|
|
173
|
-
"required": false,
|
|
174
|
-
"optional": false,
|
|
175
|
-
"docs": {
|
|
176
|
-
"tags": [],
|
|
177
|
-
"text": ""
|
|
178
|
-
},
|
|
179
|
-
"attribute": "text",
|
|
180
|
-
"reflect": false,
|
|
181
|
-
"defaultValue": "\"\""
|
|
182
|
-
},
|
|
183
|
-
"buttonText": {
|
|
184
|
-
"type": "string",
|
|
185
|
-
"mutable": false,
|
|
138
|
+
"open": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"mutable": true,
|
|
186
141
|
"complexType": {
|
|
187
|
-
"original": "
|
|
188
|
-
"resolved": "
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
189
144
|
"references": {}
|
|
190
145
|
},
|
|
191
146
|
"required": false,
|
|
@@ -194,56 +149,37 @@ export class ChartPopover {
|
|
|
194
149
|
"tags": [],
|
|
195
150
|
"text": ""
|
|
196
151
|
},
|
|
197
|
-
"attribute": "
|
|
152
|
+
"attribute": "open",
|
|
198
153
|
"reflect": false,
|
|
199
|
-
"defaultValue": "
|
|
154
|
+
"defaultValue": "false"
|
|
200
155
|
},
|
|
201
|
-
"
|
|
156
|
+
"sliceDetails": {
|
|
202
157
|
"type": "unknown",
|
|
203
158
|
"mutable": false,
|
|
204
159
|
"complexType": {
|
|
205
|
-
"original": "
|
|
206
|
-
"resolved": "{ x: number; y: number; }",
|
|
207
|
-
"references": {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
"defaultValue": "{ x: 0, y: 0 }"
|
|
216
|
-
},
|
|
217
|
-
"open": {
|
|
218
|
-
"type": "boolean",
|
|
219
|
-
"mutable": true,
|
|
220
|
-
"complexType": {
|
|
221
|
-
"original": "boolean",
|
|
222
|
-
"resolved": "boolean",
|
|
223
|
-
"references": {}
|
|
160
|
+
"original": "SliceDetails",
|
|
161
|
+
"resolved": "undefined | { amount: number; visualAmount: number; perc: number; legend: string | null; color: string; offset: number; id: string; title: string | null; text: string | null; buttonText: string | null; sliceRef: Element; inSmallCluster: boolean; index: number; coords?: { x: number; y: number; } | undefined; }",
|
|
162
|
+
"references": {
|
|
163
|
+
"SliceDetails": {
|
|
164
|
+
"location": "import",
|
|
165
|
+
"path": "../../../global/interfaces",
|
|
166
|
+
"id": "src/global/interfaces.ts::SliceDetails"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
224
169
|
},
|
|
225
170
|
"required": false,
|
|
226
|
-
"optional":
|
|
171
|
+
"optional": true,
|
|
227
172
|
"docs": {
|
|
228
173
|
"tags": [],
|
|
229
174
|
"text": ""
|
|
230
|
-
}
|
|
231
|
-
"attribute": "open",
|
|
232
|
-
"reflect": false,
|
|
233
|
-
"defaultValue": "false"
|
|
175
|
+
}
|
|
234
176
|
}
|
|
235
177
|
};
|
|
236
178
|
}
|
|
237
|
-
static get states() {
|
|
238
|
-
return {
|
|
239
|
-
"announcement": {},
|
|
240
|
-
"isTabbing": {}
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
179
|
static get events() {
|
|
244
180
|
return [{
|
|
245
|
-
"method": "
|
|
246
|
-
"name": "
|
|
181
|
+
"method": "wmChartPopoverButtonTriggered",
|
|
182
|
+
"name": "wmChartPopoverButtonTriggered",
|
|
247
183
|
"bubbles": true,
|
|
248
184
|
"cancelable": true,
|
|
249
185
|
"composed": true,
|
|
@@ -252,13 +188,32 @@ export class ChartPopover {
|
|
|
252
188
|
"text": ""
|
|
253
189
|
},
|
|
254
190
|
"complexType": {
|
|
255
|
-
"original": "
|
|
256
|
-
"resolved": "
|
|
191
|
+
"original": "HTMLWmChartSliceElement",
|
|
192
|
+
"resolved": "HTMLWmChartSliceElement",
|
|
257
193
|
"references": {
|
|
258
|
-
"
|
|
259
|
-
"location": "
|
|
260
|
-
"
|
|
261
|
-
|
|
194
|
+
"HTMLWmChartSliceElement": {
|
|
195
|
+
"location": "global",
|
|
196
|
+
"id": "global::HTMLWmChartSliceElement"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
"method": "wmProgressIndicatorButtonTriggered",
|
|
202
|
+
"name": "wmProgressIndicatorButtonTriggered",
|
|
203
|
+
"bubbles": true,
|
|
204
|
+
"cancelable": true,
|
|
205
|
+
"composed": true,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "HTMLWmProgressSliceElement",
|
|
212
|
+
"resolved": "HTMLWmProgressSliceElement",
|
|
213
|
+
"references": {
|
|
214
|
+
"HTMLWmProgressSliceElement": {
|
|
215
|
+
"location": "global",
|
|
216
|
+
"id": "global::HTMLWmProgressSliceElement"
|
|
262
217
|
}
|
|
263
218
|
}
|
|
264
219
|
}
|
|
@@ -279,51 +234,18 @@ export class ChartPopover {
|
|
|
279
234
|
}
|
|
280
235
|
}];
|
|
281
236
|
}
|
|
282
|
-
static get methods() {
|
|
283
|
-
return {
|
|
284
|
-
"announceContents": {
|
|
285
|
-
"complexType": {
|
|
286
|
-
"signature": "() => Promise<void>",
|
|
287
|
-
"parameters": [],
|
|
288
|
-
"references": {
|
|
289
|
-
"Promise": {
|
|
290
|
-
"location": "global",
|
|
291
|
-
"id": "global::Promise"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"return": "Promise<void>"
|
|
295
|
-
},
|
|
296
|
-
"docs": {
|
|
297
|
-
"text": "",
|
|
298
|
-
"tags": []
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
237
|
static get elementRef() { return "el"; }
|
|
304
238
|
static get watchers() {
|
|
305
239
|
return [{
|
|
306
240
|
"propName": "open",
|
|
307
241
|
"methodName": "handleOpenChange"
|
|
308
242
|
}, {
|
|
309
|
-
"propName": "
|
|
243
|
+
"propName": "sliceDetails",
|
|
310
244
|
"methodName": "handleDetailsChange"
|
|
311
245
|
}];
|
|
312
246
|
}
|
|
313
247
|
static get listeners() {
|
|
314
248
|
return [{
|
|
315
|
-
"name": "wmUserIsTabbing",
|
|
316
|
-
"method": "toggleTabbingOn",
|
|
317
|
-
"target": "window",
|
|
318
|
-
"capture": false,
|
|
319
|
-
"passive": false
|
|
320
|
-
}, {
|
|
321
|
-
"name": "wmUserIsNotTabbing",
|
|
322
|
-
"method": "toggleTabbingOff",
|
|
323
|
-
"target": "window",
|
|
324
|
-
"capture": false,
|
|
325
|
-
"passive": false
|
|
326
|
-
}, {
|
|
327
249
|
"name": "click",
|
|
328
250
|
"method": "handleClickOnDocument",
|
|
329
251
|
"target": "document",
|
|
@@ -29,7 +29,7 @@ export class Chart {
|
|
|
29
29
|
this.focusedSliceId = undefined;
|
|
30
30
|
}
|
|
31
31
|
get popoverEl() {
|
|
32
|
-
return this.el.shadowRoot.querySelector("priv-chart-popover
|
|
32
|
+
return this.el.shadowRoot.querySelector("priv-chart-popover");
|
|
33
33
|
}
|
|
34
34
|
get sliceEls() {
|
|
35
35
|
return Array.from(this.el.shadowRoot.querySelectorAll(".segment"));
|
|
@@ -145,7 +145,7 @@ export class Chart {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
|
-
return (h(Host, { key: '
|
|
148
|
+
return (h(Host, { key: '495e0455dbad63e662f11ea1c2f61713c9ad52b6', onBlur: () => exitChart.call(this) }, h("div", { key: '8a51cc400c25ea93797a01bb0ae2eb4fdbce8300', ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${this.currentChartType} ${this.isTabbing && !this.userIsNavigating ? "user-is-tabbing" : ""} ${this.labelPosition === "left" && this.currentChartType === "bar4" ? "left-label" : ""}`, role: "application", "aria-label": this.ariaLabelText, tabindex: 0, "aria-roledescription": chartMessages.interactiveChart, "aria-describedby": "chart-instructions" }, h("label", { key: 'c4cf7b324a1347e4fc2d97ca9b7c2e50d5526a63', id: `label-${this.uid}`, class: `label --${this.labelPosition}`, htmlFor: `graphic-${this.uid}` }, h("span", { key: '950e135dca88ae28d156047daee4618628753b49', class: "label-text" }, this.label), this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""), this.isBar && renderLegend.call(this, this.currentChartType), this.renderChart(), this.isDoughnut && renderLegend.call(this, this.currentChartType), h("priv-chart-popover", { key: '303b440f6098d37b8c1851b65d9e61d5792441ea', class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.isBar && !this.printMode && renderHiddenValuesMessage()), renderInstructionsText()));
|
|
149
149
|
}
|
|
150
150
|
static get is() { return "wm-chart"; }
|
|
151
151
|
static get encapsulation() { return "shadow"; }
|
|
@@ -437,9 +437,9 @@ export class LineChart {
|
|
|
437
437
|
return h("div", { class: "highlight", style: highlightStyle });
|
|
438
438
|
}
|
|
439
439
|
render() {
|
|
440
|
-
return (h(Host, { key: '
|
|
440
|
+
return (h(Host, { key: 'fb0d9a5d98e31e44e873a45a057151abf8422af2', onBlur: () => this.resetDataPointFocus(), onMouseLeave: () => (this.popoverIndex = -1) }, h("div", { key: '8ad9a77f2ed681fe3e0e12d22e478f578a5f5378', class: "component-wrapper", role: "application", "aria-roledescription": chartMessages.interactiveChart, "aria-label": this.label, "aria-describedby": "chart-description" }, this.renderLegend(), h("div", { key: '8c75ab0d44e8b843bd00ac7c884010f86a7c32ed', class: "chart-wrapper" }, h("div", { key: '733592d351ba71b9e48591ccc87406c90ba6ee1c', class: "chart-label --y-axis", style: { "--labelWidth": this.labelWidth } }, this.yAxisLabel, this.parsedUnits[1] && ` (${this.parsedUnits[1]})`), this.renderYIntervals(), h("div", { key: 'a5d35aca9eb498bf41641978206cda9504d26531', ref: (el) => (this.plotAreaEl = el), class: `plot-area ${this.hasPartialInterval ? "" : "right-border"}`, style: {
|
|
441
441
|
"--backgroundSize": `${this.dataPointMatrix[0][this.xIntervals.indexOf(this.displayedXIntervals[1])].xPositionPercent}%`,
|
|
442
|
-
} }, this.highlightStart && this.renderHighlight(), this.renderData(), this.renderHoverAreas()), this.popoverIndex !== -1 && this.renderHoverIndicator(), this.popoverIndex !== -1 && this.renderPopover(), this.renderXIntervals(), h("div", { key: '
|
|
442
|
+
} }, this.highlightStart && this.renderHighlight(), this.renderData(), this.renderHoverAreas()), this.popoverIndex !== -1 && this.renderHoverIndicator(), this.popoverIndex !== -1 && this.renderPopover(), this.renderXIntervals(), h("div", { key: '848ec2e4cc1342d06c771dd5043e663c274862d2', class: "chart-label --x-axis" }, this.xAxisLabel, this.parsedUnits[0] && ` (${this.parsedUnits[0]})`)), h("div", { key: 'd9db30e4e1d3eaec8a9fd16a60dc6d15dff0d352', id: "chart-description", class: "sr-only" }, `${lineChartMessages.instructions} ${this.description}`), h("div", { key: '7042ad9fe099a30dde2385a71a4a78d9eb022b73', ref: (el) => (this.liveRegionEl = el), "aria-live": "polite", class: "sr-only" }, this.announcement))));
|
|
443
443
|
}
|
|
444
444
|
static get is() { return "wm-line-chart"; }
|
|
445
445
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class ProgressIndicator {
|
|
|
21
21
|
this.focusedSliceId = undefined;
|
|
22
22
|
}
|
|
23
23
|
get popoverEl() {
|
|
24
|
-
return this.el.shadowRoot.querySelector("priv-chart-popover
|
|
24
|
+
return this.el.shadowRoot.querySelector("priv-chart-popover");
|
|
25
25
|
}
|
|
26
26
|
get sliceEls() {
|
|
27
27
|
return Array.from(this.el.shadowRoot.querySelectorAll(".segment"));
|
|
@@ -95,7 +95,7 @@ export class ProgressIndicator {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '05666b54ac54aa245610f80b91f44f15ab242b23', onBlur: () => exitChart.call(this) }, h("div", { key: '0bae0b3024cbf29cc8a6da5e68884004772c4380', ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${this.mode} ${this.isTabbing && !this.userIsNavigating ? "user-is-tabbing" : ""}`, role: "application", "aria-label": this.ariaLabelText, tabindex: "0", "aria-roledescription": this.chartRoleDescription, "aria-describedby": `chart-instructions` }, h("label", { key: 'b43987a6beb4fb9526a59aefd5d7fb265fcff8f7', id: `label-${this.uid}`, class: "label", htmlFor: `graphic-${this.uid}` }, h("span", { key: 'ead5c96e6147c1461419914f46b3cc05b792b78d', class: "label-text" }, this.label), this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""), this.mode && this.renderBarOrDoughnut(), this.mode === "doughnut" ? renderLegend.call(this, this.mode) : "", h("priv-chart-popover", { key: '502cd128a387accac34456f289bb78802a52a650', class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.mode === "doughnut" ? renderCompletionMessage.call(this) : ""), renderInstructionsText()));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "wm-progress-indicator"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class ProgressMonitor {
|
|
|
59
59
|
}))));
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '402d49cded01a03166bcf88d9a97116fe36d4586', class: this.mode === "doughnut" ? "row" : "column" }, this.modeInitialized && this.groupLegend && this.mode === "bar" && this.renderLegend(), this.modeInitialized && h("slot", { key: '137935e1ee1337a58d7b09412522e4ab0bdcdf4b' })));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "wm-progress-monitor"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -567,11 +567,11 @@ export class PrivCalendar {
|
|
|
567
567
|
return (h("div", { class: "month-view" }, h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
568
568
|
}
|
|
569
569
|
render() {
|
|
570
|
-
return (h(Host, { key: '
|
|
570
|
+
return (h(Host, { key: '3787997230f2db89ba8e051b757d986a1b41f51d', onMouseOut: (ev) => {
|
|
571
571
|
// @ts-ignore
|
|
572
572
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
573
573
|
this.outOfCal.emit();
|
|
574
|
-
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: '
|
|
574
|
+
}, role: "application", "aria-describedby": `application-${this.uid}` }, h("div", { key: 'c82e165ff59c7e1fb5f955410c8db3d7c604c285', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: '2e5e1276ed683f6893bec62dd461cc250b61a7b8', id: `application-${this.uid}`, class: "sr-only" }, this.calName, this.calInstructions)));
|
|
575
575
|
}
|
|
576
576
|
static get is() { return "priv-calendar"; }
|
|
577
577
|
static get originalStyleUrls() {
|
|
@@ -444,23 +444,23 @@ export class DateRange {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
render() {
|
|
447
|
-
return (h(Host, { key: '
|
|
447
|
+
return (h(Host, { key: '3ef7ed01702cd08cb88153b157c05870f357b83d', "aria-busy": "false" }, h("div", { key: 'a26ffe7e83d668c81c361a2baf5111d338074f4f', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: '5110a41705760e61460ae63222d33983f50cbbcc', class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { key: 'cd73ac4cd1156a08f8433cd5172c308e73f468e5', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: '7fa4734f43aecd6a5cb73d93c1162fd5783ad2ac', ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { key: 'be4ad3de3b7b1fa8b1f20ae86502e661d5561f9c', "aria-hidden": "true", class: "required" }, "*")))), h("div", { key: '274e44b68f05bdc28ab25836ee5162876ba2dc37', class: "label-wrapper", id: "end-label-wrapper" }, h("label", { key: '439389958522c3245d79cf03ad3f8abf621adfdd', id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { key: '20a1a75cfc195d9503d7f079d56435f3ac7a3ce2', "aria-hidden": "true", class: "required" }, "*")))), h("input", { key: 'c850bd46e4835f8878e2c7d39fe930e38917671c', disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '4cb1a5498a6378b08915563e628f45367892fe4d', id: "hyphen" }, "\u00A0-\u00A0"), h("input", { key: 'a321356204252e7c57dff7b3b392f44d6d0b9cf3', disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { key: 'f6be34dda1f360b99a3708545a151c004b479635', class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { key: '5af514ad9b7fd30f5e83ebe83fd35890fdb53ee5', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
448
448
|
id: "date.selectRange",
|
|
449
449
|
defaultMessage: "Select range",
|
|
450
450
|
description: "Button text for screen readers.",
|
|
451
|
-
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '
|
|
451
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: 'ed9caf670fd667a9959363834c1accebfb0b82cb', class: "svg-icon svg-date" }), h("span", { key: '10bc0a7086071adad12d6cbe5c5c92a82260a619', class: "calendar", title: intl.formatMessage({
|
|
452
452
|
id: "date.calendarView",
|
|
453
453
|
defaultMessage: "Calendar View",
|
|
454
454
|
description: "Calendar button",
|
|
455
|
-
}) })))), this.renderCalendars()), h("div", { key: '
|
|
455
|
+
}) })))), this.renderCalendars()), h("div", { key: '6bcacc7025eef282cacfdc9c8ba44c88d01dfb3c' }, h("div", { key: '45942b8f722908db886d39fe23c7ae2e9c39eca5', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'f3613e50ea33148b7027b2fbb9147f8eee2c98a5', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
456
456
|
id: "date.selectMonth",
|
|
457
457
|
defaultMessage: "Activate to select a month.",
|
|
458
458
|
description: "Calendar button",
|
|
459
|
-
})), h("div", { key: '
|
|
459
|
+
})), h("div", { key: 'ca798dd858d872a87852078781058699e3ebc5f6', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
460
460
|
id: "date.selectYear",
|
|
461
461
|
defaultMessage: "Activate to select a year.",
|
|
462
462
|
description: "Calendar button",
|
|
463
|
-
}))), h("div", { key: '
|
|
463
|
+
}))), h("div", { key: 'e77548bc61a4d4c9bf0b0985694aa298383caf3e', id: "error", class: "error" }, this.errorMessage), h("div", { key: 'ec8b80ac48c0c65cfa7be019dc242e8fa7901332', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
|
|
464
464
|
}
|
|
465
465
|
static get is() { return "wm-date-range"; }
|
|
466
466
|
static get encapsulation() { return "shadow"; }
|