@watermarkinsights/ripple 5.13.0 → 5.13.1-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/README.md +1 -1
- package/dist/cjs/app-globals-12979223.js +92 -0
- package/dist/cjs/chartFunctions-5a8c4095.js +742 -0
- package/dist/cjs/functions-0774d303.js +10479 -0
- package/dist/cjs/index-788526f5.js +1863 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-85d78ae9.js +37 -0
- package/dist/cjs/intl-4a204fe7.js +283 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +574 -0
- package/dist/{ripple/wm-optgroup.entry.js → cjs/priv-chart-popover.cjs.entry.js} +120 -48
- package/dist/{ripple/wm-modal-footer.entry.js → cjs/priv-navigator-button.cjs.entry.js} +20 -35
- package/dist/{ripple/wm-navigator.entry.js → cjs/priv-navigator-item.cjs.entry.js} +24 -357
- package/dist/{ripple/wm-search.entry.js → cjs/priv-option-list.cjs.entry.js} +365 -180
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +335 -0
- package/dist/cjs/wm-button.cjs.entry.js +207 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +484 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +254 -0
- package/dist/cjs/wm-file-list.cjs.entry.js +23 -0
- package/dist/cjs/wm-file.cjs.entry.js +194 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +180 -0
- package/dist/cjs/wm-input.cjs.entry.js +125 -0
- package/dist/cjs/wm-line-chart.cjs.entry.js +461 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +217 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +217 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +327 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +315 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +74 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +427 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +228 -0
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/cjs/wm-search.cjs.entry.js +194 -0
- package/dist/cjs/wm-snackbar.cjs.entry.js +189 -0
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +263 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +892 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +43 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +88 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +307 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +183 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +325 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +197 -0
- package/dist/collection/components/charts/chartFunctions.js +675 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +1044 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +257 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +125 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1497 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +422 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1202 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +723 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1497 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +264 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +1060 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +151 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +121 -0
- package/dist/collection/components/datepickers/datepicker.css +1179 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1414 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +840 -0
- package/dist/collection/components/datepickers/wm-date-range.js +849 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +524 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +1053 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +780 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1316 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +620 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +965 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +258 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1066 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +530 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1239 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +584 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1026 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +435 -0
- package/dist/collection/components/wm-button/wm-button.css +1571 -0
- package/dist/collection/components/wm-button/wm-button.js +489 -0
- package/dist/collection/components/wm-file/wm-file.css +1062 -0
- package/dist/collection/components/wm-file/wm-file.js +412 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +955 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +45 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1149 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +448 -0
- package/dist/collection/components/wm-input/wm-input.css +1139 -0
- package/dist/collection/components/wm-input/wm-input.js +471 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +1026 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +419 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +980 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +142 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +979 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +79 -0
- package/dist/collection/components/wm-modal/wm-modal.css +1027 -0
- package/dist/collection/components/wm-modal/wm-modal.js +350 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +987 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +138 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +981 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +82 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1063 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +362 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +982 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +119 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +991 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +98 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +1033 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +190 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +985 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +86 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +965 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +124 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +1038 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +496 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1106 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +363 -0
- package/dist/collection/components/wm-search/wm-search.css +1031 -0
- package/dist/collection/components/wm-search/wm-search.js +427 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1213 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +276 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +1004 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +175 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +976 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +273 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +960 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +87 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1411 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1227 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +243 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1115 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +313 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1229 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +547 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1287 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +289 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1873 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +603 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -0
- package/dist/collection/dev/action-menu.js +0 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +6 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/flyout.js +194 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +0 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +60 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +841 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +2 -84
- package/dist/{ripple/interfaces-CrANcZM9.js → collection/global/interfaces.js} +4 -6
- package/dist/collection/global/intl.js +274 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/esm/app-globals-8110c96f.js +90 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-4095a787.js} +3 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-682e95b4.js} +390 -8060
- package/dist/esm/index-130e07bb.js +1832 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-cc5b177f.js +34 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-e0444831.js} +1 -1
- package/dist/esm/loader.js +11 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/priv-calendar.entry.js +570 -0
- package/dist/{ripple/wm-menuitem.entry.js → esm/priv-chart-popover.entry.js} +109 -98
- package/dist/{ripple/wm-modal-header.entry.js → esm/priv-navigator-button.entry.js} +14 -25
- package/dist/{ripple/wm-toggletip.entry.js → esm/priv-navigator-item.entry.js} +19 -164
- package/dist/{ripple/wm-option.entry.js → esm/priv-option-list.entry.js} +347 -129
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +330 -0
- package/dist/esm/wm-button.entry.js +203 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/esm/wm-date-range.entry.js +480 -0
- package/dist/esm/wm-datepicker.entry.js +250 -0
- package/dist/esm/wm-file-list.entry.js +19 -0
- package/dist/{ripple/wm-chart.entry.js → esm/wm-file.entry.js} +169 -136
- package/dist/esm/wm-flyout.entry.js +176 -0
- package/dist/esm/wm-input.entry.js +121 -0
- package/dist/esm/wm-line-chart.entry.js +457 -0
- package/dist/esm/wm-modal-pss_3.entry.js +211 -0
- package/dist/esm/wm-modal_3.entry.js +211 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/esm/wm-navigator.entry.js +323 -0
- package/dist/{ripple/wm-select.entry.js → esm/wm-nested-select.entry.js} +199 -137
- package/dist/esm/wm-optgroup.entry.js +70 -0
- package/dist/esm/wm-option_2.entry.js +422 -0
- package/dist/esm/wm-pagination.entry.js +224 -0
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/esm/wm-search.entry.js +190 -0
- package/dist/esm/wm-snackbar.entry.js +185 -0
- package/dist/esm/wm-tab-item_3.entry.js +257 -0
- package/dist/esm/wm-tag-input.entry.js +888 -0
- package/dist/{ripple → esm}/wm-tag-option.entry.js +6 -2
- package/dist/esm/wm-textarea.entry.js +84 -0
- package/dist/esm/wm-timepicker.entry.js +303 -0
- package/dist/esm/wm-toggletip.entry.js +179 -0
- package/dist/esm/wm-uploader.entry.js +321 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-8110c96f.js +1 -0
- package/dist/esm-es5/chartFunctions-4095a787.js +1 -0
- package/dist/esm-es5/functions-682e95b4.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-cc5b177f.js +1 -0
- package/dist/esm-es5/intl-e0444831.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/priv-calendar.entry.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -0
- package/dist/{ripple/wm-progress-monitor.entry.js → esm-es5/priv-navigator-item.entry.js} +1 -71
- package/dist/esm-es5/priv-option-list.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -0
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -0
- package/dist/esm-es5/wm-button.entry.js +1 -0
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
- package/dist/esm-es5/wm-chart.entry.js +1 -0
- package/dist/esm-es5/wm-date-range.entry.js +1 -0
- package/dist/{ripple/wm-uploader.entry.js → esm-es5/wm-datepicker.entry.js} +1 -313
- package/dist/{ripple/wm-tab-item.entry.js → esm-es5/wm-file-list.entry.js} +1 -63
- package/dist/esm-es5/wm-file.entry.js +1 -0
- package/dist/{ripple/wm-input.entry.js → esm-es5/wm-flyout.entry.js} +1 -111
- package/dist/esm-es5/wm-input.entry.js +1 -0
- package/dist/esm-es5/wm-line-chart.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -0
- package/dist/esm-es5/wm-modal_3.entry.js +1 -0
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -0
- package/dist/esm-es5/wm-navigator.entry.js +1 -0
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- package/dist/esm-es5/wm-option_2.entry.js +1 -0
- package/dist/esm-es5/wm-pagination.entry.js +1 -0
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -0
- package/dist/esm-es5/wm-search.entry.js +1 -0
- package/dist/esm-es5/wm-snackbar.entry.js +1 -0
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -0
- package/dist/esm-es5/wm-tag-input.entry.js +1 -0
- package/dist/esm-es5/wm-tag-option.entry.js +1 -0
- package/dist/esm-es5/wm-textarea.entry.js +1 -0
- package/dist/esm-es5/wm-timepicker.entry.js +1 -0
- package/dist/esm-es5/wm-toggletip.entry.js +1 -0
- package/dist/esm-es5/wm-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-wrapper.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +2 -0
- package/dist/loader/index.cjs.js +2 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +2 -0
- package/dist/loader/index.js +3 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-00baa278.entry.js +1 -0
- package/dist/ripple/{wm-flyout.entry.js → p-015af452.system.entry.js} +1 -167
- package/dist/ripple/p-039a53d7.entry.js +1 -0
- package/dist/ripple/p-043901ab.system.entry.js +1 -0
- package/dist/ripple/p-0528bf4d.entry.js +1 -0
- package/dist/ripple/p-0d4c017e.system.entry.js +1 -0
- package/dist/ripple/p-11aef4e8.entry.js +1 -0
- package/dist/ripple/p-13b1d775.entry.js +1 -0
- package/dist/ripple/p-14b3b062.system.entry.js +1 -0
- package/dist/ripple/p-15712a55.entry.js +1 -0
- package/dist/ripple/p-187c694f.js +1 -0
- package/dist/ripple/{wm-navigation-item.entry.js → p-18d6408f.system.entry.js} +1 -18
- package/dist/ripple/p-199fd014.system.entry.js +1 -0
- package/dist/ripple/p-1d43bc57.system.entry.js +1 -0
- package/dist/ripple/p-2732bddd.js +1 -0
- package/dist/ripple/p-29d32ee5.system.js +1 -0
- package/dist/ripple/p-31da9108.system.entry.js +1 -0
- package/dist/ripple/p-371c36f5.entry.js +1 -0
- package/dist/ripple/p-37301ba0.system.js +1 -0
- package/dist/ripple/p-42fa7a77.system.js +1 -0
- package/dist/ripple/p-43a28379.entry.js +1 -0
- package/dist/ripple/p-44577815.entry.js +1 -0
- package/dist/ripple/p-45f831ef.entry.js +1 -0
- package/dist/ripple/p-50ea2036.system.js +1 -0
- package/dist/ripple/p-55f880af.entry.js +1 -0
- package/dist/ripple/p-5642cfb5.system.entry.js +1 -0
- package/dist/ripple/p-5a564d92.system.entry.js +1 -0
- package/dist/ripple/p-5f09e972.entry.js +1 -0
- package/dist/ripple/p-61f8a6d4.system.entry.js +1 -0
- package/dist/ripple/p-6439b435.system.entry.js +1 -0
- package/dist/ripple/p-6747a274.system.js +1 -0
- package/dist/ripple/p-704bacb9.system.entry.js +1 -0
- package/dist/ripple/p-72b88618.system.entry.js +1 -0
- package/dist/ripple/p-733c7bd5.system.js +1 -0
- package/dist/ripple/p-7360ce37.entry.js +1 -0
- package/dist/ripple/p-7a08da5c.system.js +1 -0
- package/dist/ripple/{priv-option-list.entry.js → p-7a6f535f.system.entry.js} +1 -385
- package/dist/ripple/p-7c9bf5f6.system.entry.js +1 -0
- package/dist/ripple/p-8194ee04.entry.js +1 -0
- package/dist/ripple/p-823d7b4e.system.entry.js +1 -0
- package/dist/ripple/p-8303bd1e.entry.js +1 -0
- package/dist/ripple/{wm-modal-pss-header.entry.js → p-849384be.system.entry.js} +1 -39
- package/dist/ripple/p-8cd5206a.entry.js +1 -0
- package/dist/ripple/p-8dde12bd.entry.js +1 -0
- package/dist/ripple/p-91a8e524.system.entry.js +1 -0
- package/dist/ripple/p-927df284.system.entry.js +1 -0
- package/dist/ripple/p-932922ed.system.entry.js +1 -0
- package/dist/ripple/p-95d5618f.js +1 -0
- package/dist/ripple/p-9859635f.entry.js +1 -0
- package/dist/ripple/{wm-modal.entry.js → p-9d8c5fb4.system.entry.js} +1 -133
- package/dist/ripple/p-9e7e5948.system.entry.js +1 -0
- package/dist/ripple/p-a02cdb4f.js +1 -0
- package/dist/ripple/p-a399fb79.entry.js +1 -0
- package/dist/ripple/p-a4c26c21.entry.js +1 -0
- package/dist/ripple/{wm-modal-pss-footer.entry.js → p-a685a5fa.entry.js} +1 -40
- package/dist/ripple/p-a70f8d7a.entry.js +1 -0
- package/dist/ripple/p-ac241e42.system.entry.js +1 -0
- package/dist/ripple/p-afa213ca.entry.js +1 -0
- package/dist/ripple/p-b1e4f8d0.entry.js +1 -0
- package/dist/ripple/p-b4a9a118.entry.js +1 -0
- package/dist/ripple/p-b73936b2.system.entry.js +1 -0
- package/dist/ripple/p-bb00a18f.js +1 -0
- package/dist/ripple/p-bbb37d6e.entry.js +1 -0
- package/dist/ripple/{wm-file.entry.js → p-c3ab1c4b.system.entry.js} +1 -182
- package/dist/ripple/p-cd0cc88d.entry.js +1 -0
- package/dist/ripple/{wm-nested-select.entry.js → p-cd5c59ef.system.entry.js} +1 -308
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/p-cf77cdd0.system.entry.js +1 -0
- package/dist/ripple/p-d1950a60.entry.js +1 -0
- package/dist/ripple/p-d4ac08de.system.entry.js +1 -0
- package/dist/ripple/p-d8f0c9b4.system.entry.js +1 -0
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-dbd8a6c4.system.entry.js +1 -0
- package/dist/ripple/p-dc600a24.entry.js +1 -0
- package/dist/ripple/p-dc82b6d2.entry.js +1 -0
- package/dist/ripple/p-e12e6b00.system.entry.js +1 -0
- package/dist/ripple/p-e7ee2171.system.entry.js +1 -0
- package/dist/ripple/p-e8f5c8cd.entry.js +1 -0
- package/dist/ripple/{priv-navigator-item.entry.js → p-e9c4ed97.entry.js} +1 -30
- package/dist/ripple/p-ec4c1020.system.entry.js +1 -0
- package/dist/ripple/p-ee01e771.entry.js +1 -0
- package/dist/ripple/p-f2c40a23.system.entry.js +1 -0
- package/dist/ripple/p-f65448ac.entry.js +1 -0
- package/dist/ripple/p-feaa4c19.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/ripple/ripple.js +127 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +12 -32
- package/LICENSE +0 -21
- package/dist/components/index.d.ts +0 -33
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/ripple/index-CU5QNCKv.js +0 -4167
- package/dist/ripple/priv-calendar.entry.js +0 -566
- package/dist/ripple/priv-chart-popover.entry.js +0 -134
- package/dist/ripple/priv-navigator-button.entry.js +0 -24
- package/dist/ripple/wm-action-menu.entry.js +0 -201
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-date-range.entry.js +0 -477
- package/dist/ripple/wm-datepicker.entry.js +0 -247
- package/dist/ripple/wm-file-list.entry.js +0 -18
- package/dist/ripple/wm-line-chart.entry.js +0 -449
- package/dist/ripple/wm-modal-pss.entry.js +0 -135
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation.entry.js +0 -116
- package/dist/ripple/wm-pagination.entry.js +0 -223
- package/dist/ripple/wm-progress-indicator.entry.js +0 -107
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-snackbar.entry.js +0 -185
- package/dist/ripple/wm-tab-list.entry.js +0 -175
- package/dist/ripple/wm-tab-panel.entry.js +0 -32
- package/dist/ripple/wm-tag-input.entry.js +0 -877
- package/dist/ripple/wm-textarea.entry.js +0 -79
- package/dist/ripple/wm-timepicker.entry.js +0 -300
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
+
import { csvToArray, debounce, transposeMatrix, getSmallestSkipInterval, wrapAround, calcPercentageInRange, } from "../../../global/functions";
|
|
3
|
+
import { abbrNumber, getInterval } from "../chartFunctions";
|
|
4
|
+
import { chartMessages, globalMessages, lineChartMessages } from "../../../global/intl";
|
|
5
|
+
export class LineChart {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.minTickWidth = 120;
|
|
8
|
+
this.popoverData = [];
|
|
9
|
+
this.dataPointMatrix = [];
|
|
10
|
+
this.xIntervals = [];
|
|
11
|
+
this.displayedXIntervals = [];
|
|
12
|
+
this.yIntervals = [];
|
|
13
|
+
this.lineStyles = [
|
|
14
|
+
{ color: "#8b86ca", icon: "triangle" }, // lavender
|
|
15
|
+
{ color: "#2e1b46", icon: "circle" }, // midnight
|
|
16
|
+
{ color: "#0089e4", icon: "square" }, // blue
|
|
17
|
+
{ color: "#088000", icon: "star" }, // forest
|
|
18
|
+
{ color: "#ea8500", icon: "rhombus" }, // orange
|
|
19
|
+
{ color: "#d54f41", icon: "triangle-inverted" }, // red
|
|
20
|
+
{ color: "#146ca9", icon: "pentagon" }, // blue
|
|
21
|
+
];
|
|
22
|
+
this.debouncedResize = debounce(async () => {
|
|
23
|
+
this.displayedXIntervals = this.determineDisplayedXIntervals();
|
|
24
|
+
}, 100);
|
|
25
|
+
this.label = undefined;
|
|
26
|
+
this.description = "";
|
|
27
|
+
this.xAxisLabel = undefined;
|
|
28
|
+
this.yAxisLabel = undefined;
|
|
29
|
+
this.lineData = undefined;
|
|
30
|
+
this.units = "null,null";
|
|
31
|
+
this.labelWidth = "120px";
|
|
32
|
+
this.highlightQualifier = lineChartMessages.highlightQualifier;
|
|
33
|
+
this.highlightStart = undefined;
|
|
34
|
+
this.highlightEnd = undefined;
|
|
35
|
+
this.visibilityToggles = false;
|
|
36
|
+
this.showDeltas = false;
|
|
37
|
+
this.yRange = undefined;
|
|
38
|
+
this.parsedLineData = {};
|
|
39
|
+
this.popoverIndex = -1;
|
|
40
|
+
this.focusedLine = -1;
|
|
41
|
+
this.hiddenLines = [];
|
|
42
|
+
this.isTabbing = false;
|
|
43
|
+
this.intervalSkip = 0;
|
|
44
|
+
this.announcement = "";
|
|
45
|
+
}
|
|
46
|
+
parseData() {
|
|
47
|
+
this.parsedLineData = JSON.parse(this.lineData);
|
|
48
|
+
this.yIntervals = this.calcYIntervals().reverse(); // needed before building dataPointMatrix
|
|
49
|
+
this.xIntervals = Object.keys(Object.values(this.parsedLineData)[0]);
|
|
50
|
+
this.displayedXIntervals = this.determineDisplayedXIntervals();
|
|
51
|
+
this.dataPointMatrix = Object.entries(this.parsedLineData).map((entry) => this.buildLineDataPointDetails(entry[0], entry[1]));
|
|
52
|
+
this.popoverData = transposeMatrix(this.dataPointMatrix);
|
|
53
|
+
}
|
|
54
|
+
handleIntervalSkip() {
|
|
55
|
+
// if intervalSkip ever changes, dataPointMatrix must be regenerated to account for chart spacers
|
|
56
|
+
this.parseData();
|
|
57
|
+
}
|
|
58
|
+
get hasPartialInterval() {
|
|
59
|
+
// if chart width is too small, an odd # of intervals like 1,2,3,4,5,6,7 can be shortened to 1,3,5,7 or 1,4,7
|
|
60
|
+
// but an even # like 1,2,3,4,5,6,7,8 will be shortened to 1,3,5,7 (can't show first and last interval)
|
|
61
|
+
// in these cases, show a partial interval must be shown in order to still provide space to plot the 8th data point
|
|
62
|
+
// e.g intervals will be 1-3, 3-5, 5-7, 7-8
|
|
63
|
+
return this.intervalSkip > 0 && this.xIntervals.length % 2 === 0;
|
|
64
|
+
}
|
|
65
|
+
get parsedUnits() {
|
|
66
|
+
return csvToArray(this.units).map((unit) => (unit === "null" ? null : unit));
|
|
67
|
+
}
|
|
68
|
+
get visibilityToggleEls() {
|
|
69
|
+
return this.legendEl.querySelectorAll("wm-button");
|
|
70
|
+
}
|
|
71
|
+
get lineEls() {
|
|
72
|
+
return this.plotAreaEl.querySelectorAll(".line");
|
|
73
|
+
}
|
|
74
|
+
get firstVisibleLineIdx() {
|
|
75
|
+
let firstVisibleLineIdx = 0;
|
|
76
|
+
while (this.hiddenLines.includes(firstVisibleLineIdx)) {
|
|
77
|
+
firstVisibleLineIdx++;
|
|
78
|
+
}
|
|
79
|
+
return firstVisibleLineIdx < this.dataPointMatrix.length ? firstVisibleLineIdx : -1;
|
|
80
|
+
}
|
|
81
|
+
get pointEls() {
|
|
82
|
+
return this.plotAreaEl.querySelectorAll(".point");
|
|
83
|
+
}
|
|
84
|
+
toggleTabbingOn() {
|
|
85
|
+
this.isTabbing = true;
|
|
86
|
+
}
|
|
87
|
+
toggleTabbingOff() {
|
|
88
|
+
this.isTabbing = false;
|
|
89
|
+
}
|
|
90
|
+
componentWillLoad() {
|
|
91
|
+
this.parseData();
|
|
92
|
+
}
|
|
93
|
+
componentDidLoad() {
|
|
94
|
+
const resizeObserver = new ResizeObserver(() => this.debouncedResize());
|
|
95
|
+
resizeObserver.observe(this.el);
|
|
96
|
+
}
|
|
97
|
+
handleVisibilityToggleKeydown(ev, toggleIdx) {
|
|
98
|
+
switch (ev.key) {
|
|
99
|
+
case "Tab":
|
|
100
|
+
if (!ev.shiftKey && this.firstVisibleLineIdx !== -1) {
|
|
101
|
+
ev.preventDefault();
|
|
102
|
+
this.announce(this.lineFocusMessage(this.firstVisibleLineIdx));
|
|
103
|
+
this.focusDataPointByEl(this.lineEls[this.firstVisibleLineIdx].querySelector(".point"));
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
case "ArrowUp":
|
|
107
|
+
case "ArrowLeft":
|
|
108
|
+
ev.preventDefault();
|
|
109
|
+
const prevToggleIdx = wrapAround(toggleIdx, -1, this.dataPointMatrix.length - 1);
|
|
110
|
+
this.visibilityToggleEls[prevToggleIdx].focus();
|
|
111
|
+
break;
|
|
112
|
+
case "ArrowDown":
|
|
113
|
+
case "ArrowRight":
|
|
114
|
+
ev.preventDefault();
|
|
115
|
+
const nextToggleIdx = wrapAround(toggleIdx, 1, this.dataPointMatrix.length - 1);
|
|
116
|
+
this.visibilityToggleEls[nextToggleIdx].focus();
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
handleDataPointKeydown(ev) {
|
|
121
|
+
const curPointEl = ev.target;
|
|
122
|
+
switch (ev.key) {
|
|
123
|
+
case "Tab":
|
|
124
|
+
if (ev.shiftKey && this.visibilityToggles) {
|
|
125
|
+
ev.preventDefault();
|
|
126
|
+
this.visibilityToggleEls[0].focus();
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
129
|
+
case "ArrowUp":
|
|
130
|
+
ev.preventDefault();
|
|
131
|
+
this.navigatePointsVertically(curPointEl, -1);
|
|
132
|
+
break;
|
|
133
|
+
case "ArrowDown":
|
|
134
|
+
ev.preventDefault();
|
|
135
|
+
this.navigatePointsVertically(curPointEl, 1);
|
|
136
|
+
break;
|
|
137
|
+
case "ArrowLeft":
|
|
138
|
+
ev.preventDefault();
|
|
139
|
+
this.navigatePointsHorizontally(curPointEl, -1);
|
|
140
|
+
break;
|
|
141
|
+
case "ArrowRight":
|
|
142
|
+
ev.preventDefault();
|
|
143
|
+
this.navigatePointsHorizontally(curPointEl, 1);
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
navigatePointsVertically(originPoint, stepAmount) {
|
|
148
|
+
const pointElsInColumn = Array.from(this.pointEls).filter((p) => p.dataset.pointidx == originPoint.dataset.pointidx);
|
|
149
|
+
if (pointElsInColumn.length > 1) {
|
|
150
|
+
const nextPointIdx = wrapAround(pointElsInColumn.indexOf(originPoint), stepAmount, pointElsInColumn.length - 1);
|
|
151
|
+
const nextVerticalPoint = pointElsInColumn[nextPointIdx];
|
|
152
|
+
this.announce(this.lineFocusMessage(parseInt(nextVerticalPoint.dataset.lineidx)));
|
|
153
|
+
this.focusDataPointByEl(nextVerticalPoint);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
navigatePointsHorizontally(originPoint, stepAmount) {
|
|
157
|
+
const linePoints = Array.from(originPoint.parentElement.querySelectorAll(".point"));
|
|
158
|
+
if (linePoints.length > 1) {
|
|
159
|
+
const nextPointIdxInDirection = wrapAround(linePoints.indexOf(originPoint), stepAmount, linePoints.length - 1);
|
|
160
|
+
const nextHorizontalPoint = linePoints[nextPointIdxInDirection];
|
|
161
|
+
this.focusDataPointByEl(nextHorizontalPoint);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
announce(message) {
|
|
165
|
+
// \u00A0 is a non-breaking space character, which causes the message to be read as a new one
|
|
166
|
+
if (this.liveRegionEl.textContent === message) {
|
|
167
|
+
message += "\u00A0";
|
|
168
|
+
}
|
|
169
|
+
this.announcement = message;
|
|
170
|
+
}
|
|
171
|
+
lineFocusMessage(lineIdx) {
|
|
172
|
+
const label = this.dataPointMatrix[lineIdx][0].lineLabel;
|
|
173
|
+
const numDataPoints = this.dataPointMatrix[lineIdx].filter((datapoint) => datapoint.yValue !== null).length;
|
|
174
|
+
const focusMessage = lineChartMessages.getLineFocusAnnouncement(label, lineIdx + 1, this.dataPointMatrix.length, numDataPoints);
|
|
175
|
+
return focusMessage;
|
|
176
|
+
}
|
|
177
|
+
focusDataPointByEl(pointEl) {
|
|
178
|
+
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
179
|
+
pointEl.tabIndex = 0;
|
|
180
|
+
pointEl.focus();
|
|
181
|
+
}
|
|
182
|
+
calcYIntervals() {
|
|
183
|
+
let yIntervals = [];
|
|
184
|
+
if (this.yRange) {
|
|
185
|
+
yIntervals = csvToArray(this.yRange).map((val) => parseInt(val));
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
// gather all yValues
|
|
189
|
+
let allYValues = [];
|
|
190
|
+
const lines = Object.values(this.parsedLineData).flat();
|
|
191
|
+
lines.forEach((line) => allYValues.push(...Object.values(line)));
|
|
192
|
+
const filteredYValues = allYValues.filter((val) => val !== null);
|
|
193
|
+
// get max and min yValues in data
|
|
194
|
+
let minYValue = Math.min(...filteredYValues);
|
|
195
|
+
const maxYValue = Math.max(...filteredYValues);
|
|
196
|
+
// calculate neat yInterval
|
|
197
|
+
let interval = getInterval(maxYValue - minYValue, 4);
|
|
198
|
+
// find new min below smallest yValue that divides cleanly by interval
|
|
199
|
+
let counter = interval;
|
|
200
|
+
while (minYValue % interval !== 0 && counter > 0) {
|
|
201
|
+
minYValue--;
|
|
202
|
+
counter--;
|
|
203
|
+
}
|
|
204
|
+
// calculate new interval using new min
|
|
205
|
+
interval = getInterval(maxYValue - minYValue, 4);
|
|
206
|
+
let current = minYValue;
|
|
207
|
+
// determine top interval, no more than one tick above max yValue
|
|
208
|
+
while (current <= maxYValue + interval) {
|
|
209
|
+
yIntervals.push(current);
|
|
210
|
+
current += interval;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return yIntervals;
|
|
214
|
+
}
|
|
215
|
+
determineDisplayedXIntervals() {
|
|
216
|
+
// if component has display: none, plotAreaEl is truthy, but it's clientWidth is 0. This caused a crash when component was hidden in a tab
|
|
217
|
+
const maxTicks = this.plotAreaEl && this.plotAreaEl.clientWidth > 0
|
|
218
|
+
? Math.round(this.plotAreaEl.clientWidth / this.minTickWidth)
|
|
219
|
+
: this.xIntervals.length;
|
|
220
|
+
const { skipInterval, skippedList } = getSmallestSkipInterval(this.xIntervals, maxTicks);
|
|
221
|
+
this.intervalSkip = skipInterval;
|
|
222
|
+
return skippedList;
|
|
223
|
+
}
|
|
224
|
+
buildLineDataPointDetails(lineLabel, line) {
|
|
225
|
+
let dataPointDetailsList = [];
|
|
226
|
+
const lineDataPoints = Object.entries(line);
|
|
227
|
+
let isHighlighted;
|
|
228
|
+
lineDataPoints.forEach((entry, pointIdx) => {
|
|
229
|
+
const [xValue, yValue] = entry;
|
|
230
|
+
let xPositionPercent = (100 / (lineDataPoints.length - 1)) * pointIdx;
|
|
231
|
+
const yPositionPercent = yValue === null
|
|
232
|
+
? null
|
|
233
|
+
: 100 - calcPercentageInRange(yValue, this.yIntervals[this.yIntervals.length - 1], this.yIntervals[0]);
|
|
234
|
+
// add space between first points and y-axis
|
|
235
|
+
if (pointIdx === 0) {
|
|
236
|
+
xPositionPercent +=
|
|
237
|
+
this.plotAreaEl && this.plotAreaEl.clientWidth > 0 ? (8 / this.plotAreaEl.clientWidth) * 100 : 1;
|
|
238
|
+
}
|
|
239
|
+
if (xValue === this.highlightStart && !isHighlighted) {
|
|
240
|
+
isHighlighted = true;
|
|
241
|
+
}
|
|
242
|
+
dataPointDetailsList.push({
|
|
243
|
+
lineLabel: lineLabel,
|
|
244
|
+
xValue: xValue,
|
|
245
|
+
yValue: yValue,
|
|
246
|
+
xPositionPercent: xPositionPercent,
|
|
247
|
+
yPositionPercent: yPositionPercent,
|
|
248
|
+
highlighted: isHighlighted,
|
|
249
|
+
});
|
|
250
|
+
// because highlight range is inclusive, disable after pushing details
|
|
251
|
+
if (xValue === this.highlightEnd && isHighlighted) {
|
|
252
|
+
isHighlighted = false;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
return dataPointDetailsList;
|
|
256
|
+
}
|
|
257
|
+
toggleLineVisibility(lineIdx) {
|
|
258
|
+
if (this.hiddenLines.includes(lineIdx)) {
|
|
259
|
+
this.hiddenLines = this.hiddenLines.filter((num) => num !== lineIdx);
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
this.hiddenLines.push(lineIdx);
|
|
263
|
+
}
|
|
264
|
+
forceUpdate(this.el);
|
|
265
|
+
}
|
|
266
|
+
resetDataPointFocus() {
|
|
267
|
+
this.popoverIndex = -1;
|
|
268
|
+
this.pointEls.forEach((point) => (point.tabIndex = -1));
|
|
269
|
+
if (this.firstVisibleLineIdx !== -1) {
|
|
270
|
+
const lineEl = this.lineEls[this.firstVisibleLineIdx];
|
|
271
|
+
const linePointEl = lineEl.querySelectorAll(".point")[0];
|
|
272
|
+
linePointEl.tabIndex = 0;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
calcDelta(dataPoint, prevDataPoint) {
|
|
276
|
+
let delta;
|
|
277
|
+
if (dataPoint.yValue === null || prevDataPoint.yValue === null) {
|
|
278
|
+
// display "No data" when either of the datapoints is missing
|
|
279
|
+
delta = lineChartMessages.noData;
|
|
280
|
+
}
|
|
281
|
+
else if (dataPoint.yValue == prevDataPoint.yValue) {
|
|
282
|
+
// display "0%" if datapoints are equal
|
|
283
|
+
delta = "0%";
|
|
284
|
+
}
|
|
285
|
+
else if (prevDataPoint.yValue == 0) {
|
|
286
|
+
// display "-" for % increase if prev data point is 0, as the technical number would be infinity
|
|
287
|
+
delta = "-";
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
const changePercent = ((dataPoint.yValue - prevDataPoint.yValue) / prevDataPoint.yValue) * 100;
|
|
291
|
+
const roundedPercent = Math.round(changePercent * 100) / 100;
|
|
292
|
+
delta = `${roundedPercent > 0 ? "+" : ""}${roundedPercent}%`;
|
|
293
|
+
}
|
|
294
|
+
return delta;
|
|
295
|
+
}
|
|
296
|
+
renderLegend() {
|
|
297
|
+
const lineLabels = Object.keys(this.parsedLineData);
|
|
298
|
+
return (h("div", { ref: (el) => (this.legendEl = el), class: "legend" }, lineLabels.map((lineLabel, lineIdx) => {
|
|
299
|
+
const isHidden = this.hiddenLines.includes(lineIdx);
|
|
300
|
+
const isFaded = this.focusedLine !== -1 && this.focusedLine !== lineIdx;
|
|
301
|
+
return (h("div", { id: `legend-label-${lineIdx}`, class: `legend-label ${isFaded ? "faded" : ""}`, onMouseEnter: () => (this.focusedLine = isHidden ? -1 : lineIdx), onMouseLeave: () => (this.focusedLine = -1) }, this.renderIcon(lineIdx), lineLabel, this.visibilityToggles && this.renderVisibilityToggle(lineLabel, lineIdx, isHidden)));
|
|
302
|
+
})));
|
|
303
|
+
}
|
|
304
|
+
renderVisibilityToggle(lineLabel, lineIdx, isHidden) {
|
|
305
|
+
return (h("wm-button", { id: `visibility-button-${lineIdx}`, class: "visibility-toggle", "label-for-identical-buttons": `${lineIdx === 0 ? lineChartMessages.getToggleButtonLabel(this.dataPointMatrix.length) : ""} ${isHidden ? globalMessages.show : globalMessages.hide} ${lineLabel} ${lineChartMessages.getToggleButtonState(isHidden)}`, "button-type": "navigational", tooltip: isHidden ? globalMessages.show : globalMessages.hide, tooltipPosition: "bottom", icon: isHidden ? "#hide" : "#show", onClick: () => this.toggleLineVisibility(lineIdx), onKeyDown: (ev) => this.handleVisibilityToggleKeydown(ev, lineIdx), onFocus: () => (this.popoverIndex = -1) }));
|
|
306
|
+
}
|
|
307
|
+
renderIcon(lineIdx) {
|
|
308
|
+
const { color, icon } = this.lineStyles[lineIdx];
|
|
309
|
+
return h("div", { style: { color: color }, class: `svg-icon svg-shape-${icon}` });
|
|
310
|
+
}
|
|
311
|
+
renderXIntervals() {
|
|
312
|
+
const gridStyle = {
|
|
313
|
+
"--columns": `.5fr repeat(${this.xIntervals.length - 2}, 1fr) .5fr`,
|
|
314
|
+
};
|
|
315
|
+
return (h("div", { class: "x-intervals", style: gridStyle }, this.xIntervals.map((interval) => (h("span", { class: `x-interval ${this.displayedXIntervals.includes(interval) ? "" : "hidden"}` }, interval)))));
|
|
316
|
+
}
|
|
317
|
+
renderYIntervals() {
|
|
318
|
+
return (h("div", { ref: (el) => (this.yIntervalsEl = el), class: "y-intervals" }, this.yIntervals.map((yInterval) => (h("span", { class: "y-interval" }, abbrNumber(yInterval))))));
|
|
319
|
+
}
|
|
320
|
+
renderData() {
|
|
321
|
+
return this.dataPointMatrix.map((_, lineIdx) => {
|
|
322
|
+
let focusState = this.focusedLine === lineIdx ? "focused" : "faded";
|
|
323
|
+
const isHidden = this.hiddenLines.includes(lineIdx);
|
|
324
|
+
return (h("div", { class: `line ${this.focusedLine !== -1 ? focusState : ""} ${isHidden ? "hidden" : ""}` }, this.renderLines(lineIdx), this.renderPoints(lineIdx)));
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
renderPoints(lineIdx) {
|
|
328
|
+
const lineDataPoints = this.dataPointMatrix[lineIdx];
|
|
329
|
+
return (h("div", { class: "line-icons" }, lineDataPoints.map((dataPoint, pointIdx) => {
|
|
330
|
+
const { lineLabel, xValue, yValue, xPositionPercent, yPositionPercent, highlighted } = dataPoint;
|
|
331
|
+
if (yValue !== null) {
|
|
332
|
+
const { color, icon } = this.lineStyles[lineIdx];
|
|
333
|
+
const firstPointTabIndex = lineIdx === 0 && pointIdx === 0 ? 0 : undefined;
|
|
334
|
+
const iconStyle = {
|
|
335
|
+
color: color,
|
|
336
|
+
"--xPosition": xPositionPercent + "%",
|
|
337
|
+
"--yPosition": yPositionPercent + "%",
|
|
338
|
+
};
|
|
339
|
+
let ariaLabel = `${lineLabel} ${highlighted ? this.highlightQualifier : ""} ${this.xAxisLabel} ${xValue + (this.parsedUnits[0] ? this.parsedUnits[0] : "")}, ${this.yAxisLabel}: ${yValue + (this.parsedUnits[1] ? this.parsedUnits[1] : "")}`;
|
|
340
|
+
if (this.showDeltas && pointIdx > 0) {
|
|
341
|
+
const prevDataPoint = lineDataPoints[pointIdx - 1];
|
|
342
|
+
const changeSinceMessage = lineChartMessages.getChangeSince(prevDataPoint.xValue);
|
|
343
|
+
ariaLabel += `, ${changeSinceMessage} ${this.calcDelta(dataPoint, prevDataPoint)}`;
|
|
344
|
+
}
|
|
345
|
+
return (h("span", { id: `${lineLabel}-${pointIdx}`, role: "img", "aria-label": ariaLabel, tabIndex: firstPointTabIndex, class: `point svg-icon svg-shape-${icon}`, style: iconStyle, "data-lineidx": lineIdx, "data-pointidx": pointIdx, "data-xvalue": xValue, onKeyDown: (ev) => this.handleDataPointKeydown(ev), onFocus: () => (this.popoverIndex = pointIdx), onClick: (ev) => this.focusDataPointByEl(ev.target), onMouseEnter: () => (this.popoverIndex = pointIdx) }, h("span", { class: `point-bg svg-icon svg-shape-${icon}` })));
|
|
346
|
+
}
|
|
347
|
+
})));
|
|
348
|
+
}
|
|
349
|
+
renderLines(lineIdx) {
|
|
350
|
+
const lineDataPoints = this.dataPointMatrix[lineIdx];
|
|
351
|
+
return (h("svg", { class: "line-svg" }, lineDataPoints.map((dataPoint, pointIdx) => {
|
|
352
|
+
const shouldDraw = dataPoint.yValue !== null &&
|
|
353
|
+
pointIdx !== lineDataPoints.length - 1 &&
|
|
354
|
+
lineDataPoints[pointIdx + 1].yValue !== null;
|
|
355
|
+
if (shouldDraw) {
|
|
356
|
+
const { color } = this.lineStyles[lineIdx];
|
|
357
|
+
const { xPositionPercent: xStart, yPositionPercent: yStart } = dataPoint;
|
|
358
|
+
const { xPositionPercent: xEnd, yPositionPercent: yEnd } = lineDataPoints[pointIdx + 1];
|
|
359
|
+
return (h("line", { x1: xStart + "%", y1: yStart + "%", x2: xEnd + "%", y2: yEnd + "%", stroke: color, "stroke-width": "2px" }));
|
|
360
|
+
}
|
|
361
|
+
})));
|
|
362
|
+
}
|
|
363
|
+
renderHoverAreas() {
|
|
364
|
+
const hoverAreaStyle = { "--columns": `.5fr repeat(${this.xIntervals.length - 2}, 1fr) .5fr` };
|
|
365
|
+
return (h("div", { class: "hover-area-wrapper", style: hoverAreaStyle, onMouseLeave: () => (this.popoverIndex = -1) }, this.xIntervals.map((_, idx) => (h("div", { onMouseEnter: () => (this.popoverIndex = idx) })))));
|
|
366
|
+
}
|
|
367
|
+
renderPopover() {
|
|
368
|
+
const hasPopoverData = this.popoverData &&
|
|
369
|
+
this.popoverData[this.popoverIndex] &&
|
|
370
|
+
this.plotAreaEl.querySelector(`.point[data-xvalue="${this.dataPointMatrix[0][this.popoverIndex].xValue}"]`);
|
|
371
|
+
if (!hasPopoverData) {
|
|
372
|
+
return "";
|
|
373
|
+
}
|
|
374
|
+
const displayedPopoverData = this.popoverData[this.popoverIndex];
|
|
375
|
+
const xPosition = displayedPopoverData[0].xPositionPercent;
|
|
376
|
+
const yPositions = displayedPopoverData
|
|
377
|
+
.map((point) => point.yPositionPercent)
|
|
378
|
+
.filter((yPosition) => yPosition !== null);
|
|
379
|
+
const averageYPosition = yPositions.reduce((acc, cur) => acc + cur, 0) / yPositions.length;
|
|
380
|
+
const referencePointEl = this.plotAreaEl.querySelector(`.point[data-xvalue="${this.dataPointMatrix[0][this.popoverIndex].xValue}"]`);
|
|
381
|
+
const componentBoundingClientRect = this.el.getBoundingClientRect();
|
|
382
|
+
const referencePointBoundingClientRect = referencePointEl.getBoundingClientRect();
|
|
383
|
+
const rightSpaceAvailable = componentBoundingClientRect.right - referencePointBoundingClientRect.right;
|
|
384
|
+
const leftSpaceAvailable = referencePointBoundingClientRect.left - componentBoundingClientRect.left;
|
|
385
|
+
const hasRoomRight = rightSpaceAvailable >= (this.popoverEl ? Math.min(this.popoverEl.clientWidth, 400) : 400);
|
|
386
|
+
const hasRoomLeft = leftSpaceAvailable >= (this.popoverEl ? Math.min(this.popoverEl.clientWidth, 400) : 400);
|
|
387
|
+
const percentMargin = (8 / this.plotAreaEl.clientWidth) * 100;
|
|
388
|
+
let popoverStyle = {
|
|
389
|
+
"--leftPosition": hasRoomRight ? xPosition + percentMargin + "%" : "unset",
|
|
390
|
+
"--rightPosition": hasRoomLeft ? 100 - xPosition + percentMargin + "%" : "unset",
|
|
391
|
+
"--topPosition": averageYPosition + "%",
|
|
392
|
+
transform: "translateY(-50%)", // vertically center for averageYPosition
|
|
393
|
+
};
|
|
394
|
+
if (!hasRoomLeft && !hasRoomRight) {
|
|
395
|
+
// if there's not enough room to the left and right, position "detached" from the data points towards the top of the chart
|
|
396
|
+
const displaceLeft = `0px - ${this.labelWidth} - 20px - ${this.yIntervalsEl.clientWidth + "px"} + ${this.el.scrollLeft + "px"} + 2px`;
|
|
397
|
+
popoverStyle = {
|
|
398
|
+
"--leftPosition": `0%`,
|
|
399
|
+
"--topPosition": "0%",
|
|
400
|
+
maxWidth: Math.min(this.el.clientWidth - 2, 400) + "px", // take up no more max-width than is visually available
|
|
401
|
+
transform: `translateX(calc(${displaceLeft}))`, // align with left edge of component
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
return (h("div", { ref: (el) => (this.popoverEl = el), class: "popover", style: popoverStyle }, h("div", { class: "title" }, displayedPopoverData[0].xValue, this.parsedUnits[0] && h("span", { class: "unit --x" }, "(", this.parsedUnits[0], ")")), this.showDeltas && this.popoverIndex > 0 && (h("div", { class: "comparison-title" }, lineChartMessages.getChangeSince(this.popoverData[this.popoverIndex - 1][0].xValue))), this.renderPopoverTable()));
|
|
405
|
+
}
|
|
406
|
+
renderPopoverTable() {
|
|
407
|
+
const displayedPopoverData = this.popoverData[this.popoverIndex];
|
|
408
|
+
return (h("table", { class: "popover-table" }, displayedPopoverData.map((dataPoint, lineIdx) => {
|
|
409
|
+
if (!this.hiddenLines.includes(lineIdx)) {
|
|
410
|
+
const { lineLabel, yValue } = dataPoint;
|
|
411
|
+
const prevDataPoint = this.popoverIndex > 0 ? this.popoverData[this.popoverIndex - 1][lineIdx] : null;
|
|
412
|
+
const localizedYValue = yValue !== null ? new Intl.NumberFormat().format(yValue) : null;
|
|
413
|
+
return (h("tr", { class: "popover-row" }, h("td", null, this.renderIcon(lineIdx)), h("td", { class: "row-label" }, lineLabel), h("td", { class: "row-value" }, yValue === null ? lineChartMessages.noData : localizedYValue, yValue !== null && this.parsedUnits[1] && h("span", { class: "unit --y" }, this.parsedUnits[1])), this.showDeltas && prevDataPoint && this.renderDeltas(dataPoint, prevDataPoint)));
|
|
414
|
+
}
|
|
415
|
+
})));
|
|
416
|
+
}
|
|
417
|
+
renderDeltas(dataPoint, prevDataPoint) {
|
|
418
|
+
const delta = this.calcDelta(dataPoint, prevDataPoint);
|
|
419
|
+
const deltaColor = delta.toString()[0] == "+" || delta == "-" ? "positive" : delta.toString()[0] == "-" ? "negative" : "";
|
|
420
|
+
return prevDataPoint && h("td", { class: `delta --${deltaColor}` }, delta);
|
|
421
|
+
}
|
|
422
|
+
renderHoverIndicator() {
|
|
423
|
+
const hasIndicatorData = this.dataPointMatrix.length > 0 && this.dataPointMatrix[0][this.popoverIndex];
|
|
424
|
+
if (!hasIndicatorData) {
|
|
425
|
+
return "";
|
|
426
|
+
}
|
|
427
|
+
const xPosition = this.dataPointMatrix[0][this.popoverIndex].xPositionPercent;
|
|
428
|
+
const indicatorStyle = { "--xPosition": xPosition + "%" };
|
|
429
|
+
return h("div", { class: "hover-indicator", style: indicatorStyle });
|
|
430
|
+
}
|
|
431
|
+
renderHighlight() {
|
|
432
|
+
const startPercentage = this.dataPointMatrix[0][this.xIntervals.indexOf(this.highlightStart)].xPositionPercent;
|
|
433
|
+
const endPercentage = this.highlightEnd
|
|
434
|
+
? 100 - this.dataPointMatrix[0][this.xIntervals.indexOf(this.highlightEnd)].xPositionPercent
|
|
435
|
+
: 0;
|
|
436
|
+
const highlightStyle = { "--startPercentage": startPercentage + "%", "--endPercentage": endPercentage + "%" };
|
|
437
|
+
return h("div", { class: "highlight", style: highlightStyle });
|
|
438
|
+
}
|
|
439
|
+
render() {
|
|
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
|
+
"--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: '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
|
+
}
|
|
444
|
+
static get is() { return "wm-line-chart"; }
|
|
445
|
+
static get encapsulation() { return "shadow"; }
|
|
446
|
+
static get originalStyleUrls() {
|
|
447
|
+
return {
|
|
448
|
+
"$": ["wm-line-chart.scss"]
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
static get styleUrls() {
|
|
452
|
+
return {
|
|
453
|
+
"$": ["wm-line-chart.css"]
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
static get properties() {
|
|
457
|
+
return {
|
|
458
|
+
"label": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"mutable": false,
|
|
461
|
+
"complexType": {
|
|
462
|
+
"original": "string",
|
|
463
|
+
"resolved": "string",
|
|
464
|
+
"references": {}
|
|
465
|
+
},
|
|
466
|
+
"required": true,
|
|
467
|
+
"optional": false,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [],
|
|
470
|
+
"text": ""
|
|
471
|
+
},
|
|
472
|
+
"attribute": "label",
|
|
473
|
+
"reflect": false
|
|
474
|
+
},
|
|
475
|
+
"description": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"mutable": false,
|
|
478
|
+
"complexType": {
|
|
479
|
+
"original": "string",
|
|
480
|
+
"resolved": "string",
|
|
481
|
+
"references": {}
|
|
482
|
+
},
|
|
483
|
+
"required": false,
|
|
484
|
+
"optional": false,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [],
|
|
487
|
+
"text": ""
|
|
488
|
+
},
|
|
489
|
+
"attribute": "description",
|
|
490
|
+
"reflect": false,
|
|
491
|
+
"defaultValue": "\"\""
|
|
492
|
+
},
|
|
493
|
+
"xAxisLabel": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"mutable": false,
|
|
496
|
+
"complexType": {
|
|
497
|
+
"original": "string",
|
|
498
|
+
"resolved": "string",
|
|
499
|
+
"references": {}
|
|
500
|
+
},
|
|
501
|
+
"required": true,
|
|
502
|
+
"optional": false,
|
|
503
|
+
"docs": {
|
|
504
|
+
"tags": [],
|
|
505
|
+
"text": ""
|
|
506
|
+
},
|
|
507
|
+
"attribute": "x-axis-label",
|
|
508
|
+
"reflect": false
|
|
509
|
+
},
|
|
510
|
+
"yAxisLabel": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "string",
|
|
515
|
+
"resolved": "string",
|
|
516
|
+
"references": {}
|
|
517
|
+
},
|
|
518
|
+
"required": true,
|
|
519
|
+
"optional": false,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": ""
|
|
523
|
+
},
|
|
524
|
+
"attribute": "y-axis-label",
|
|
525
|
+
"reflect": false
|
|
526
|
+
},
|
|
527
|
+
"lineData": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"mutable": false,
|
|
530
|
+
"complexType": {
|
|
531
|
+
"original": "string",
|
|
532
|
+
"resolved": "string",
|
|
533
|
+
"references": {}
|
|
534
|
+
},
|
|
535
|
+
"required": true,
|
|
536
|
+
"optional": false,
|
|
537
|
+
"docs": {
|
|
538
|
+
"tags": [],
|
|
539
|
+
"text": ""
|
|
540
|
+
},
|
|
541
|
+
"attribute": "line-data",
|
|
542
|
+
"reflect": true
|
|
543
|
+
},
|
|
544
|
+
"units": {
|
|
545
|
+
"type": "string",
|
|
546
|
+
"mutable": false,
|
|
547
|
+
"complexType": {
|
|
548
|
+
"original": "string",
|
|
549
|
+
"resolved": "string",
|
|
550
|
+
"references": {}
|
|
551
|
+
},
|
|
552
|
+
"required": false,
|
|
553
|
+
"optional": false,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": ""
|
|
557
|
+
},
|
|
558
|
+
"attribute": "units",
|
|
559
|
+
"reflect": false,
|
|
560
|
+
"defaultValue": "\"null,null\""
|
|
561
|
+
},
|
|
562
|
+
"labelWidth": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"mutable": false,
|
|
565
|
+
"complexType": {
|
|
566
|
+
"original": "string",
|
|
567
|
+
"resolved": "string",
|
|
568
|
+
"references": {}
|
|
569
|
+
},
|
|
570
|
+
"required": false,
|
|
571
|
+
"optional": false,
|
|
572
|
+
"docs": {
|
|
573
|
+
"tags": [],
|
|
574
|
+
"text": ""
|
|
575
|
+
},
|
|
576
|
+
"attribute": "label-width",
|
|
577
|
+
"reflect": false,
|
|
578
|
+
"defaultValue": "\"120px\""
|
|
579
|
+
},
|
|
580
|
+
"highlightQualifier": {
|
|
581
|
+
"type": "string",
|
|
582
|
+
"mutable": false,
|
|
583
|
+
"complexType": {
|
|
584
|
+
"original": "string",
|
|
585
|
+
"resolved": "string",
|
|
586
|
+
"references": {}
|
|
587
|
+
},
|
|
588
|
+
"required": false,
|
|
589
|
+
"optional": false,
|
|
590
|
+
"docs": {
|
|
591
|
+
"tags": [],
|
|
592
|
+
"text": ""
|
|
593
|
+
},
|
|
594
|
+
"attribute": "highlight-qualifier",
|
|
595
|
+
"reflect": false,
|
|
596
|
+
"defaultValue": "lineChartMessages.highlightQualifier"
|
|
597
|
+
},
|
|
598
|
+
"highlightStart": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"mutable": false,
|
|
601
|
+
"complexType": {
|
|
602
|
+
"original": "string",
|
|
603
|
+
"resolved": "string | undefined",
|
|
604
|
+
"references": {}
|
|
605
|
+
},
|
|
606
|
+
"required": false,
|
|
607
|
+
"optional": true,
|
|
608
|
+
"docs": {
|
|
609
|
+
"tags": [],
|
|
610
|
+
"text": ""
|
|
611
|
+
},
|
|
612
|
+
"attribute": "highlight-start",
|
|
613
|
+
"reflect": false
|
|
614
|
+
},
|
|
615
|
+
"highlightEnd": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"mutable": false,
|
|
618
|
+
"complexType": {
|
|
619
|
+
"original": "string",
|
|
620
|
+
"resolved": "string | undefined",
|
|
621
|
+
"references": {}
|
|
622
|
+
},
|
|
623
|
+
"required": false,
|
|
624
|
+
"optional": true,
|
|
625
|
+
"docs": {
|
|
626
|
+
"tags": [],
|
|
627
|
+
"text": ""
|
|
628
|
+
},
|
|
629
|
+
"attribute": "highlight-end",
|
|
630
|
+
"reflect": false
|
|
631
|
+
},
|
|
632
|
+
"visibilityToggles": {
|
|
633
|
+
"type": "boolean",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "boolean",
|
|
637
|
+
"resolved": "boolean",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": false,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": ""
|
|
645
|
+
},
|
|
646
|
+
"attribute": "visibility-toggles",
|
|
647
|
+
"reflect": false,
|
|
648
|
+
"defaultValue": "false"
|
|
649
|
+
},
|
|
650
|
+
"showDeltas": {
|
|
651
|
+
"type": "boolean",
|
|
652
|
+
"mutable": false,
|
|
653
|
+
"complexType": {
|
|
654
|
+
"original": "boolean",
|
|
655
|
+
"resolved": "boolean",
|
|
656
|
+
"references": {}
|
|
657
|
+
},
|
|
658
|
+
"required": false,
|
|
659
|
+
"optional": false,
|
|
660
|
+
"docs": {
|
|
661
|
+
"tags": [],
|
|
662
|
+
"text": ""
|
|
663
|
+
},
|
|
664
|
+
"attribute": "show-deltas",
|
|
665
|
+
"reflect": false,
|
|
666
|
+
"defaultValue": "false"
|
|
667
|
+
},
|
|
668
|
+
"yRange": {
|
|
669
|
+
"type": "string",
|
|
670
|
+
"mutable": false,
|
|
671
|
+
"complexType": {
|
|
672
|
+
"original": "string",
|
|
673
|
+
"resolved": "string | undefined",
|
|
674
|
+
"references": {}
|
|
675
|
+
},
|
|
676
|
+
"required": false,
|
|
677
|
+
"optional": true,
|
|
678
|
+
"docs": {
|
|
679
|
+
"tags": [],
|
|
680
|
+
"text": ""
|
|
681
|
+
},
|
|
682
|
+
"attribute": "y-range",
|
|
683
|
+
"reflect": false
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
static get states() {
|
|
688
|
+
return {
|
|
689
|
+
"parsedLineData": {},
|
|
690
|
+
"popoverIndex": {},
|
|
691
|
+
"focusedLine": {},
|
|
692
|
+
"hiddenLines": {},
|
|
693
|
+
"isTabbing": {},
|
|
694
|
+
"intervalSkip": {},
|
|
695
|
+
"announcement": {}
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
static get elementRef() { return "el"; }
|
|
699
|
+
static get watchers() {
|
|
700
|
+
return [{
|
|
701
|
+
"propName": "lineData",
|
|
702
|
+
"methodName": "parseData"
|
|
703
|
+
}, {
|
|
704
|
+
"propName": "intervalSkip",
|
|
705
|
+
"methodName": "handleIntervalSkip"
|
|
706
|
+
}];
|
|
707
|
+
}
|
|
708
|
+
static get listeners() {
|
|
709
|
+
return [{
|
|
710
|
+
"name": "wmUserIsTabbing",
|
|
711
|
+
"method": "toggleTabbingOn",
|
|
712
|
+
"target": "window",
|
|
713
|
+
"capture": false,
|
|
714
|
+
"passive": false
|
|
715
|
+
}, {
|
|
716
|
+
"name": "wmUserIsNotTabbing",
|
|
717
|
+
"method": "toggleTabbingOff",
|
|
718
|
+
"target": "window",
|
|
719
|
+
"capture": false,
|
|
720
|
+
"passive": false
|
|
721
|
+
}];
|
|
722
|
+
}
|
|
723
|
+
}
|