@watermarkinsights/ripple 0.0.1 → 0.1.0-alpha.1
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-3db2fdd3.js +103 -0
- package/dist/cjs/chartFunctions-0d47b1f4.js +906 -0
- package/dist/cjs/functions-761cb9f2.js +10694 -0
- package/dist/cjs/index-bb947bd5.js +1843 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-33cd6161.js +82 -0
- package/dist/cjs/intl-9e9388a7.js +291 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +580 -0
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +146 -0
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +204 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +35 -0
- package/dist/cjs/priv-option-list.cjs.entry.js +391 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +525 -0
- package/dist/cjs/wm-button.cjs.entry.js +280 -0
- package/dist/cjs/wm-chart-bar.cjs.entry.js +444 -0
- package/dist/cjs/wm-chart-column.cjs.entry.js +629 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart-stack.cjs.entry.js +447 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +591 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +399 -0
- package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-file-list.cjs.entry.js} +15 -24
- package/dist/cjs/wm-file.cjs.entry.js +210 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +178 -0
- package/dist/{ripple/wm-modal.entry.js → cjs/wm-input.cjs.entry.js} +108 -110
- package/dist/cjs/wm-line-chart.cjs.entry.js +541 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +220 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +238 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +334 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +322 -0
- package/dist/{ripple/wm-textarea.entry.js → cjs/wm-optgroup.cjs.entry.js} +62 -57
- package/dist/cjs/wm-option_2.cjs.entry.js +536 -0
- package/dist/{ripple/wm-navigation.entry.js → cjs/wm-pagination.cjs.entry.js} +204 -91
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/{ripple/wm-flyout.entry.js → cjs/wm-search.cjs.entry.js} +168 -139
- package/dist/{ripple/wm-datepicker.entry.js → cjs/wm-snackbar.cjs.entry.js} +152 -223
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +357 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +985 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +51 -0
- package/dist/{ripple/wm-modal-pss.entry.js → cjs/wm-textarea.cjs.entry.js} +70 -111
- package/dist/{ripple/wm-progress-indicator.entry.js → cjs/wm-timepicker.cjs.entry.js} +296 -78
- package/dist/cjs/wm-toggletip.cjs.entry.js +252 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +341 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +207 -0
- package/dist/collection/components/charts/chartFunctions.js +831 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +995 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +345 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +990 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +268 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +177 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1326 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +549 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1236 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +725 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +1335 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +914 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +1006 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +310 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.css +1466 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.js +709 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1208 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +999 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1326 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +320 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +967 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +232 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +167 -0
- package/dist/collection/components/datepickers/datepicker.css +1147 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1415 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +857 -0
- package/dist/collection/components/datepickers/wm-date-range.js +1158 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +875 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +999 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +784 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1259 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +805 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +909 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +363 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1033 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +665 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1174 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +878 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1690 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +932 -0
- package/dist/collection/components/wm-button/wm-button.css +1630 -0
- package/dist/collection/components/wm-button/wm-button.js +794 -0
- package/dist/collection/components/wm-file/wm-file.css +1086 -0
- package/dist/collection/components/wm-file/wm-file.js +536 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +899 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +118 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1091 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +651 -0
- package/dist/collection/components/wm-input/wm-input.css +1095 -0
- package/dist/collection/components/wm-input/wm-input.js +653 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +982 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +515 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +927 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +199 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +926 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +110 -0
- package/dist/collection/components/wm-modal/wm-modal.css +983 -0
- package/dist/collection/components/wm-modal/wm-modal.js +534 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +931 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +142 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +925 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1007 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +926 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +153 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +935 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +140 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +977 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +246 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +929 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +918 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +128 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +990 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +597 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1044 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +487 -0
- package/dist/collection/components/wm-search/wm-search.css +983 -0
- package/dist/collection/components/wm-search/wm-search.js +604 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1150 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +363 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +958 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +233 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +966 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +461 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +906 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +132 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1423 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1511 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +328 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1065 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +423 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1174 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +728 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1296 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +455 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1987 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +760 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +31 -0
- package/dist/collection/dev/action-menu.js +18 -0
- package/dist/collection/dev/button.js +12 -0
- package/dist/collection/dev/chart-bar.js +430 -0
- package/dist/collection/dev/chart-column.js +459 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart-stack.js +205 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +14 -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 +45 -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 +68 -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 +907 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +16 -87
- package/dist/collection/global/interfaces.js +94 -0
- package/dist/collection/global/intl.js +281 -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/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +14178 -0
- package/dist/docs/props-reference.json +2079 -0
- package/dist/docs/skill/index.md +33 -0
- package/dist/docs/skill/wm-action-menu.md +116 -0
- package/dist/docs/skill/wm-button.md +121 -0
- package/dist/docs/skill/wm-chart-bar.md +156 -0
- package/dist/docs/skill/wm-chart-column.md +122 -0
- package/dist/docs/skill/wm-chart-legend.md +91 -0
- package/dist/docs/skill/wm-chart-slice.md +101 -0
- package/dist/docs/skill/wm-chart-stack.md +147 -0
- package/dist/docs/skill/wm-chart.md +139 -0
- package/dist/docs/skill/wm-date-range.md +176 -0
- package/dist/docs/skill/wm-datepicker.md +153 -0
- package/dist/docs/skill/wm-file-list.md +105 -0
- package/dist/docs/skill/wm-file.md +91 -0
- package/dist/docs/skill/wm-flyout.md +209 -0
- package/dist/docs/skill/wm-input.md +134 -0
- package/dist/docs/skill/wm-line-chart.md +135 -0
- package/dist/docs/skill/wm-menuitem.md +64 -0
- package/dist/docs/skill/wm-modal-footer.md +81 -0
- package/dist/docs/skill/wm-modal-header.md +71 -0
- package/dist/docs/skill/wm-modal.md +172 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +61 -0
- package/dist/docs/skill/wm-navigation-item.md +78 -0
- package/dist/docs/skill/wm-navigation.md +82 -0
- package/dist/docs/skill/wm-navigator.md +106 -0
- package/dist/docs/skill/wm-nested-select.md +160 -0
- package/dist/docs/skill/wm-optgroup.md +72 -0
- package/dist/docs/skill/wm-option.md +67 -0
- package/dist/docs/skill/wm-pagination.md +114 -0
- package/dist/docs/skill/wm-progress-indicator.md +75 -0
- package/dist/docs/skill/wm-progress-monitor.md +120 -0
- package/dist/docs/skill/wm-progress-slice.md +67 -0
- package/dist/docs/skill/wm-search.md +180 -0
- package/dist/docs/skill/wm-select.md +169 -0
- package/dist/docs/skill/wm-snackbar.md +130 -0
- package/dist/docs/skill/wm-tab-item.md +45 -0
- package/dist/docs/skill/wm-tab-list.md +139 -0
- package/dist/docs/skill/wm-tab-panel.md +39 -0
- package/dist/docs/skill/wm-tag-input.md +187 -0
- package/dist/docs/skill/wm-tag-option.md +60 -0
- package/dist/docs/skill/wm-textarea.md +102 -0
- package/dist/docs/skill/wm-timepicker.md +156 -0
- package/dist/docs/skill/wm-toggletip.md +98 -0
- package/dist/docs/skill/wm-uploader.md +154 -0
- package/dist/docs/skill/wm-wrapper.md +5 -0
- package/dist/esm/app-globals-a1092590.js +101 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-58637dc9.js} +159 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-65f1594c.js} +374 -7830
- package/dist/esm/index-3425d80d.js +1813 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-8778346d.js +77 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-d518f362.js} +11 -4
- package/dist/esm/loader.js +11 -0
- package/dist/{ripple → esm}/priv-calendar.entry.js +143 -133
- package/dist/esm/priv-chart-popover-old.entry.js +142 -0
- package/dist/esm/priv-chart-popover_2.entry.js +199 -0
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +5 -4
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +5 -4
- package/dist/{ripple → esm}/priv-option-list.entry.js +18 -16
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +520 -0
- package/dist/{ripple/wm-modal-header.entry.js → esm/wm-button.entry.js} +264 -24
- package/dist/esm/wm-chart-bar.entry.js +440 -0
- package/dist/esm/wm-chart-column.entry.js +625 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart-stack.entry.js +443 -0
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/{ripple → esm}/wm-date-range.entry.js +224 -114
- package/dist/esm/wm-datepicker.entry.js +395 -0
- package/dist/{ripple → esm}/wm-file-list.entry.js +5 -4
- package/dist/{ripple → esm}/wm-file.entry.js +48 -24
- package/dist/esm/wm-flyout.entry.js +174 -0
- package/dist/{ripple → esm}/wm-input.entry.js +23 -7
- package/dist/{ripple → esm}/wm-line-chart.entry.js +182 -94
- package/dist/esm/wm-modal-pss_3.entry.js +214 -0
- package/dist/esm/wm-modal_3.entry.js +232 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/{ripple → esm}/wm-navigator.entry.js +26 -64
- package/dist/{ripple → esm}/wm-nested-select.entry.js +35 -25
- package/dist/{ripple → esm}/wm-optgroup.entry.js +17 -5
- package/dist/esm/wm-option_2.entry.js +531 -0
- package/dist/{ripple → esm}/wm-pagination.entry.js +16 -14
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/{ripple → esm}/wm-search.entry.js +15 -31
- package/dist/{ripple → esm}/wm-snackbar.entry.js +32 -45
- package/dist/esm/wm-tab-item_3.entry.js +351 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +169 -65
- package/dist/{ripple → esm}/wm-tag-option.entry.js +14 -2
- package/dist/{ripple/wm-menuitem.entry.js → esm/wm-textarea.entry.js} +65 -100
- package/dist/{ripple → esm}/wm-timepicker.entry.js +33 -12
- package/dist/{ripple → esm}/wm-toggletip.entry.js +105 -33
- package/dist/esm/wm-uploader.entry.js +337 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-0d364411.entry.js +1 -0
- package/dist/ripple/p-156c4d1d.entry.js +1 -0
- package/dist/ripple/{wm-modal-footer.entry.js → p-26d8c356.entry.js} +1 -44
- package/dist/ripple/p-2b23ce49.entry.js +1 -0
- package/dist/ripple/p-2b7cc2c1.entry.js +1 -0
- package/dist/ripple/p-34bde06a.entry.js +1 -0
- package/dist/ripple/p-35db9386.entry.js +1 -0
- package/dist/ripple/p-38a987ac.entry.js +1 -0
- package/dist/ripple/p-38b05894.entry.js +1 -0
- package/dist/ripple/p-38dee4ab.entry.js +1 -0
- package/dist/ripple/p-3a19d019.entry.js +1 -0
- package/dist/ripple/p-451d4de2.js +1 -0
- package/dist/ripple/p-507f2cf4.entry.js +1 -0
- package/dist/ripple/p-59f74ead.entry.js +1 -0
- package/dist/ripple/p-5c2fc42a.entry.js +1 -0
- package/dist/ripple/p-680d7606.entry.js +1 -0
- package/dist/ripple/p-683264db.js +1 -0
- package/dist/ripple/p-6db681c8.entry.js +1 -0
- package/dist/ripple/p-6e3c2bbc.js +1 -0
- package/dist/ripple/p-6f1cabab.entry.js +1 -0
- package/dist/ripple/p-72d135ee.entry.js +1 -0
- package/dist/ripple/p-7799953c.entry.js +1 -0
- package/dist/ripple/p-83c3db60.js +2 -0
- package/dist/ripple/{wm-progress-monitor.entry.js → p-83cdad78.entry.js} +1 -71
- package/dist/ripple/p-87ef0cfa.entry.js +1 -0
- package/dist/ripple/p-88e44511.entry.js +1 -0
- package/dist/ripple/p-8f8e4eb8.entry.js +1 -0
- package/dist/ripple/p-936adffb.entry.js +1 -0
- package/dist/ripple/p-9755192c.entry.js +1 -0
- package/dist/ripple/p-9c5c591b.js +1 -0
- package/dist/ripple/p-9ea38d96.entry.js +1 -0
- package/dist/ripple/p-be3e4e7c.entry.js +1 -0
- package/dist/ripple/p-c9c7df12.entry.js +1 -0
- package/dist/ripple/p-d7a1be0b.entry.js +1 -0
- package/dist/ripple/p-dab86523.entry.js +1 -0
- package/dist/ripple/{wm-tab-list.entry.js → p-e4aa6e27.entry.js} +1 -175
- package/dist/ripple/p-ebe9f38c.js +1 -0
- package/dist/ripple/p-ed053612.entry.js +1 -0
- package/dist/ripple/p-f43f621b.entry.js +1 -0
- package/dist/ripple/p-f48d30d6.entry.js +1 -0
- package/dist/ripple/{wm-action-menu.entry.js → p-f6aad57c.entry.js} +1 -201
- package/dist/ripple/p-f6e1beb5.entry.js +1 -0
- package/dist/ripple/p-fc843bb8.entry.js +1 -0
- package/dist/ripple/{priv-chart-popover.entry.js → p-fd997764.entry.js} +1 -134
- package/dist/ripple/p-fffb46ad.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/types/components/charts/chartFunctions.d.ts +15 -2
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +25 -11
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +31 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +113 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +195 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +184 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +110 -0
- package/dist/types/components/charts/wm-chart-stack/wm-chart-stack.d.ts +194 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +156 -11
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +53 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +85 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +19 -3
- package/dist/types/components/datepickers/wm-date-range.d.ts +205 -14
- package/dist/types/components/datepickers/wm-datepicker.d.ts +189 -11
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +165 -1
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +193 -12
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +207 -2
- package/dist/types/components/wm-button/wm-button.d.ts +191 -0
- package/dist/types/components/wm-file/wm-file.d.ts +110 -1
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +72 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +205 -0
- package/dist/types/components/wm-input/wm-input.d.ts +161 -1
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +79 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +160 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +6 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +57 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +93 -4
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +100 -1
- package/dist/types/components/wm-search/wm-search.d.ts +158 -6
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +103 -1
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +55 -3
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +119 -20
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +35 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +199 -5
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +99 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +147 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +88 -2
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +145 -3
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +11523 -95
- package/dist/types/global/functions.d.ts +7 -2
- package/dist/types/global/interfaces.d.ts +92 -2
- package/dist/types/global/intl.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +4 -33
- 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/interfaces-CrANcZM9.js +0 -53
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-chart.entry.js +0 -157
- package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
- package/dist/ripple/wm-modal-pss-header.entry.js +0 -39
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation-item.entry.js +0 -18
- package/dist/ripple/wm-option.entry.js +0 -171
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-select.entry.js +0 -249
- package/dist/ripple/wm-tab-item.entry.js +0 -63
- package/dist/ripple/wm-uploader.entry.js +0 -313
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { chartPalettes, patternKey, } from "../../../global/interfaces";
|
|
3
|
+
import { formatDisplayValue, suffixNumber, renderInstructionsText, findLargestNiceInterval, getMaxTicks, findNiceRoundNumber, groupProcessedData, computeLegendData, sortGroupedData, inferDecimalPlacesForUnitValue, } from "../chartFunctions";
|
|
4
|
+
import { chartMessages } from "../../../global/intl";
|
|
5
|
+
import { isElOrChild } from "../../../global/functions";
|
|
6
|
+
/**
|
|
7
|
+
* Renders a horizontal bar chart for comparing values across nominal categories. Data and
|
|
8
|
+
* configuration are set via JavaScript properties (`chart.config` and `chart.data`) — not
|
|
9
|
+
* HTML attributes. Supports single-color, discrete palette, semantic palette, and grouped bars.
|
|
10
|
+
*
|
|
11
|
+
* **Preferred** over wm-chart's bar subtypes for all comparison and distribution use cases.
|
|
12
|
+
* Use this component (or wm-chart-column) instead of `<wm-chart chart-type="bar*">`.
|
|
13
|
+
*
|
|
14
|
+
* @category Data Visualization
|
|
15
|
+
* @displayName Bar Chart
|
|
16
|
+
*
|
|
17
|
+
* @keyboardInteraction
|
|
18
|
+
* - **Tab**: Enters the chart wrapper.
|
|
19
|
+
* - **Arrow Down / Right**: Focuses the first bar; subsequent presses cycle to the next bar.
|
|
20
|
+
* - **Arrow Up / Left**: Cycles to the previous bar.
|
|
21
|
+
* - **Enter**: Activates the popover button when the popover is open.
|
|
22
|
+
* - **Escape**: Closes the open popover.
|
|
23
|
+
* - **Tab** (from within): Exits the chart and clears focus.
|
|
24
|
+
*
|
|
25
|
+
* @accessibility
|
|
26
|
+
* - `config.label` is required — used as the chart's `aria-label`.
|
|
27
|
+
* - Each bar receives an `aria-label` composed of the category axis label, group name (if
|
|
28
|
+
* grouped), bar legend, and display value.
|
|
29
|
+
* - The chart renders with `role="application"` and `aria-roledescription="Interactive chart"`.
|
|
30
|
+
* - In `print-mode`, keyboard interaction instructions are removed from the DOM.
|
|
31
|
+
*
|
|
32
|
+
* @usageNotes
|
|
33
|
+
* - Set `id` on the element to use with an external `wm-chart-legend` via `chart-ids`.
|
|
34
|
+
* - For grouped charts, each `ChartData` item must include a `groupName` field.
|
|
35
|
+
* - `config.gridMax: "auto"` calculates a "nice" round upper bound from the data.
|
|
36
|
+
* - Bars exceeding the `gridMax` are clipped — set an appropriate `gridMax` to avoid this.
|
|
37
|
+
*
|
|
38
|
+
* @example {html} Single-color bar chart
|
|
39
|
+
* <wm-chart-bar id="enrollment-chart"></wm-chart-bar>
|
|
40
|
+
* <script>
|
|
41
|
+
* const chart = document.querySelector('#enrollment-chart');
|
|
42
|
+
* chart.config = { label: 'Enrollment by program', gridMax: 'auto', valueFormat: 'amount' };
|
|
43
|
+
* chart.data = [{ barLegend: 'Biology', amount: 310 }, { barLegend: 'English', amount: 280 }];
|
|
44
|
+
* </script>
|
|
45
|
+
*
|
|
46
|
+
* @example {react} Single-color bar chart
|
|
47
|
+
* // config and data must be set via JavaScript properties in useEffect -- not as JSX props.
|
|
48
|
+
* const singleRef = useRef(null);
|
|
49
|
+
*
|
|
50
|
+
* useEffect(() => {
|
|
51
|
+
* singleRef.current.config = {
|
|
52
|
+
* label: 'Enrollment by program',
|
|
53
|
+
* gridMax: 'auto',
|
|
54
|
+
* valueFormat: 'amount',
|
|
55
|
+
* popoverTitle: 'Details',
|
|
56
|
+
* };
|
|
57
|
+
* singleRef.current.data = [
|
|
58
|
+
* { barLegend: 'Biology', amount: 310, popoverText: '310 students enrolled' },
|
|
59
|
+
* { barLegend: 'English', amount: 280, popoverText: '280 students enrolled' },
|
|
60
|
+
* { barLegend: 'History', amount: 195, popoverText: '195 students enrolled' },
|
|
61
|
+
* { barLegend: 'Chemistry', amount: 240, popoverText: '240 students enrolled' },
|
|
62
|
+
* ];
|
|
63
|
+
* }, []);
|
|
64
|
+
*
|
|
65
|
+
* <WmChartBar ref={singleRef} />
|
|
66
|
+
*
|
|
67
|
+
* @example {html} Grouped bar chart
|
|
68
|
+
* <wm-chart-bar id="grouped-chart"></wm-chart-bar>
|
|
69
|
+
* <script>
|
|
70
|
+
* const chart = document.querySelector('#grouped-chart');
|
|
71
|
+
* chart.config = { label: 'Retention by cohort and program', gridMax: 'auto',
|
|
72
|
+
* categoryAxisLabel: 'Cohort', valueAxisLabel: 'Students', showLegend: 'bottom' };
|
|
73
|
+
* chart.data = [
|
|
74
|
+
* { barLegend: 'Biology', amount: 120, groupName: '2022', popoverTitle: 'Biology — 2022', popoverText: '120 students retained' },
|
|
75
|
+
* { barLegend: 'English', amount: 95, groupName: '2022', popoverTitle: 'English — 2022', popoverText: '95 students retained' },
|
|
76
|
+
* { barLegend: 'Biology', amount: 135, groupName: '2023', popoverTitle: 'Biology — 2023', popoverText: '135 students retained' },
|
|
77
|
+
* { barLegend: 'English', amount: 110, groupName: '2023', popoverTitle: 'English — 2023', popoverText: '110 students retained' },
|
|
78
|
+
* ];
|
|
79
|
+
* </script>
|
|
80
|
+
*
|
|
81
|
+
* @example {react} Grouped bar chart
|
|
82
|
+
* // config and data must be set via JavaScript properties in useEffect -- not as JSX props.
|
|
83
|
+
* const groupedRef = useRef(null);
|
|
84
|
+
*
|
|
85
|
+
* useEffect(() => {
|
|
86
|
+
* groupedRef.current.config = {
|
|
87
|
+
* label: 'Retention by cohort and program',
|
|
88
|
+
* gridMax: 'auto',
|
|
89
|
+
* valueFormat: 'amount',
|
|
90
|
+
* categoryAxisLabel: 'Cohort',
|
|
91
|
+
* valueAxisLabel: 'Students',
|
|
92
|
+
* showLegend: 'bottom',
|
|
93
|
+
* };
|
|
94
|
+
* groupedRef.current.data = [
|
|
95
|
+
* { barLegend: 'Biology', amount: 120, groupName: '2022', popoverTitle: 'Biology — 2022', popoverText: '120 students retained' },
|
|
96
|
+
* { barLegend: 'English', amount: 95, groupName: '2022', popoverTitle: 'English — 2022', popoverText: '95 students retained' },
|
|
97
|
+
* { barLegend: 'History', amount: 80, groupName: '2022', popoverTitle: 'History — 2022', popoverText: '80 students retained' },
|
|
98
|
+
* { barLegend: 'Biology', amount: 135, groupName: '2023', popoverTitle: 'Biology — 2023', popoverText: '135 students retained' },
|
|
99
|
+
* { barLegend: 'English', amount: 110, groupName: '2023', popoverTitle: 'English — 2023', popoverText: '110 students retained' },
|
|
100
|
+
* { barLegend: 'History', amount: 72, groupName: '2023', popoverTitle: 'History — 2023', popoverText: '72 students retained' },
|
|
101
|
+
* ];
|
|
102
|
+
* }, []);
|
|
103
|
+
*
|
|
104
|
+
* <WmChartBar ref={groupedRef} />
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
export class ChartBar {
|
|
108
|
+
constructor() {
|
|
109
|
+
this.gridMax = 0;
|
|
110
|
+
this.isGrouped = false;
|
|
111
|
+
this.legendData = [];
|
|
112
|
+
this.config = undefined;
|
|
113
|
+
this.data = undefined;
|
|
114
|
+
this.printMode = undefined;
|
|
115
|
+
this.patternMode = undefined;
|
|
116
|
+
this.subinfo = undefined;
|
|
117
|
+
this.processedData = new Map();
|
|
118
|
+
this.gridInfo = undefined;
|
|
119
|
+
this.isKeying = false;
|
|
120
|
+
}
|
|
121
|
+
////////////////////////////////////////////////////////////
|
|
122
|
+
// #region Getters
|
|
123
|
+
////////////////////////////////////////////////////////////
|
|
124
|
+
get colorPalette() {
|
|
125
|
+
var _a;
|
|
126
|
+
let defaultPaletteName = this.isGrouped ? "discrete" : "wmcolor-dataviz-discrete-01";
|
|
127
|
+
let paletteName = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.colors) || defaultPaletteName;
|
|
128
|
+
let palette = [];
|
|
129
|
+
if (paletteName === "semantic") {
|
|
130
|
+
palette = chartPalettes.semantic;
|
|
131
|
+
}
|
|
132
|
+
else if (paletteName === "discrete") {
|
|
133
|
+
palette = chartPalettes.discrete;
|
|
134
|
+
}
|
|
135
|
+
else if (paletteName.startsWith("wmcolor")) {
|
|
136
|
+
palette = [paletteName];
|
|
137
|
+
}
|
|
138
|
+
return palette;
|
|
139
|
+
}
|
|
140
|
+
get sort() {
|
|
141
|
+
var _a;
|
|
142
|
+
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sort) || "none"; // default to none
|
|
143
|
+
}
|
|
144
|
+
get showLegend() {
|
|
145
|
+
var _a;
|
|
146
|
+
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.showLegend) || "none"; // default to none
|
|
147
|
+
}
|
|
148
|
+
get subinfoText() {
|
|
149
|
+
var _a;
|
|
150
|
+
return this.subinfo || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.subinfo) || "";
|
|
151
|
+
}
|
|
152
|
+
get gridVisible() {
|
|
153
|
+
var _a, _b, _c;
|
|
154
|
+
return !!this.gridInfo && ((_a = this.config) === null || _a === void 0 ? void 0 : _a.gridMax) != undefined && ((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.showGrid) !== null && _c !== void 0 ? _c : true);
|
|
155
|
+
}
|
|
156
|
+
get flattenedData() {
|
|
157
|
+
return [...this.processedData.values()].flat();
|
|
158
|
+
}
|
|
159
|
+
// #endregion getters
|
|
160
|
+
////////////////////////////////////////////////////////////
|
|
161
|
+
// #region Component lifecycle
|
|
162
|
+
////////////////////////////////////////////////////////////
|
|
163
|
+
componentDidLoad() {
|
|
164
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
165
|
+
if (this.processedData) {
|
|
166
|
+
this.gridInfo = this.calculateGridInfo();
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
resizeObserver.observe(this.barAreaEl);
|
|
170
|
+
if (this.config && this.data) {
|
|
171
|
+
this.handleConfigDataChange();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// #endregion component lifecycle
|
|
175
|
+
////////////////////////////////////////////////////////////
|
|
176
|
+
// #region Data processing
|
|
177
|
+
////////////////////////////////////////////////////////////
|
|
178
|
+
handleConfigDataChange() {
|
|
179
|
+
if (this.config && this.data) {
|
|
180
|
+
const largest = Math.max(...this.data.map((item) => item.amount));
|
|
181
|
+
if (this.config.gridMax == "auto") {
|
|
182
|
+
this.gridMax = findNiceRoundNumber(largest);
|
|
183
|
+
}
|
|
184
|
+
else if (!!this.config.gridMax) {
|
|
185
|
+
this.gridMax = this.config.gridMax;
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
// fallback to 1 and chart should not render
|
|
189
|
+
this.gridMax = 1;
|
|
190
|
+
}
|
|
191
|
+
this.isGrouped = this.data.some((item) => item.groupName);
|
|
192
|
+
this.processedData = this.buildProcessedData();
|
|
193
|
+
this.legendData = this.isGrouped
|
|
194
|
+
? computeLegendData(this.processedData).map((item) => (Object.assign(Object.assign({}, item), { printValue: "" })))
|
|
195
|
+
: computeLegendData(this.processedData);
|
|
196
|
+
this.propagateExternalLegendData();
|
|
197
|
+
this.gridInfo = this.calculateGridInfo();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
buildProcessedData() {
|
|
201
|
+
var _a, _b, _c, _d;
|
|
202
|
+
if (!this.data) {
|
|
203
|
+
return new Map();
|
|
204
|
+
}
|
|
205
|
+
let processedData = [];
|
|
206
|
+
const defaultValueFormat = "amount";
|
|
207
|
+
const defaultPrintModeFormat = "amount";
|
|
208
|
+
const defaultColor = "wmcolor-dataviz-discrete-01";
|
|
209
|
+
const itemTotal = this.data.reduce((acc, item) => acc + item.amount, 0);
|
|
210
|
+
const valueFormat = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.valueFormat) || defaultValueFormat;
|
|
211
|
+
const printModeFormat = ((_b = this.config) === null || _b === void 0 ? void 0 : _b.printModeFormat) || defaultPrintModeFormat;
|
|
212
|
+
const decimalPlaces = (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.decimalPlaces) !== null && _d !== void 0 ? _d : 0;
|
|
213
|
+
// For grouped data, matching barLegends share color indices
|
|
214
|
+
const barLegendColorMap = new Map();
|
|
215
|
+
if (this.isGrouped) {
|
|
216
|
+
let incrementingIndex = 0;
|
|
217
|
+
this.data.forEach((item) => {
|
|
218
|
+
if (!barLegendColorMap.has(item.barLegend)) {
|
|
219
|
+
barLegendColorMap.set(item.barLegend, incrementingIndex);
|
|
220
|
+
incrementingIndex++;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
processedData = this.data.map((item, index) => {
|
|
225
|
+
const colorIndex = this.isGrouped ? barLegendColorMap.get(item.barLegend) || 0 : index;
|
|
226
|
+
const barColor = item.color
|
|
227
|
+
? item.color
|
|
228
|
+
: this.colorPalette.length === 1
|
|
229
|
+
? this.colorPalette[0]
|
|
230
|
+
: this.colorPalette[colorIndex] || defaultColor;
|
|
231
|
+
const amount = decimalPlaces > 0 ? parseFloat(item.amount.toFixed(decimalPlaces)) : item.amount;
|
|
232
|
+
return {
|
|
233
|
+
barLegend: item.barLegend,
|
|
234
|
+
amount: amount,
|
|
235
|
+
gridPercent: (amount / this.gridMax) * 100,
|
|
236
|
+
displayValue: formatDisplayValue(amount, itemTotal, valueFormat, decimalPlaces),
|
|
237
|
+
printValue: formatDisplayValue(amount, itemTotal, printModeFormat, decimalPlaces),
|
|
238
|
+
color: barColor,
|
|
239
|
+
popoverTitle: item.popoverTitle,
|
|
240
|
+
popoverText: item.popoverText,
|
|
241
|
+
popoverButtonText: item.popoverButtonText,
|
|
242
|
+
groupName: item.groupName,
|
|
243
|
+
};
|
|
244
|
+
});
|
|
245
|
+
if (this.isGrouped) {
|
|
246
|
+
processedData = sortGroupedData(processedData);
|
|
247
|
+
}
|
|
248
|
+
else if (this.sort === "ascending") {
|
|
249
|
+
processedData.sort((a, b) => a.amount - b.amount);
|
|
250
|
+
}
|
|
251
|
+
else if (this.sort === "descending") {
|
|
252
|
+
processedData.sort((a, b) => b.amount - a.amount);
|
|
253
|
+
}
|
|
254
|
+
return groupProcessedData(processedData);
|
|
255
|
+
}
|
|
256
|
+
propagateExternalLegendData() {
|
|
257
|
+
document.querySelectorAll("wm-chart-legend").forEach((legend) => {
|
|
258
|
+
var _a, _b;
|
|
259
|
+
if (legend.chartIds.split(" ").includes(this.el.id)) {
|
|
260
|
+
legend.processedData = this.legendData;
|
|
261
|
+
legend.patternMode = ((_a = this.patternMode) !== null && _a !== void 0 ? _a : (_b = this.config) === null || _b === void 0 ? void 0 : _b.patternMode) ? "horizontal" : undefined;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
calculateGridInfo() {
|
|
266
|
+
var _a, _b;
|
|
267
|
+
const barAreaWidth = this.barAreaEl.getBoundingClientRect().width;
|
|
268
|
+
const maxTicks = barAreaWidth > 0 ? getMaxTicks(barAreaWidth) : 1;
|
|
269
|
+
const { numIntervals, interval } = findLargestNiceInterval(maxTicks, this.gridMax);
|
|
270
|
+
const tickLabels = [];
|
|
271
|
+
for (let i = 1; i <= numIntervals; i++) {
|
|
272
|
+
const tickValue = i * interval;
|
|
273
|
+
const decimalPlaces = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.decimalPlaces) !== null && _b !== void 0 ? _b : inferDecimalPlacesForUnitValue(tickValue);
|
|
274
|
+
tickLabels.push(suffixNumber(tickValue, decimalPlaces));
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
numTicks: numIntervals,
|
|
278
|
+
interval: interval,
|
|
279
|
+
backgroundSize: `${100 / numIntervals}%`,
|
|
280
|
+
tickLabels: tickLabels,
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
// #endregion data processing
|
|
284
|
+
////////////////////////////////////////////////////////////
|
|
285
|
+
// #region Keyboard interaction and Event handling
|
|
286
|
+
////////////////////////////////////////////////////////////
|
|
287
|
+
handleChartKeyDown(ev) {
|
|
288
|
+
switch (ev.key) {
|
|
289
|
+
case "ArrowDown":
|
|
290
|
+
case "ArrowRight":
|
|
291
|
+
ev.preventDefault();
|
|
292
|
+
if (this.el.shadowRoot.activeElement === this.componentWrapperEl) {
|
|
293
|
+
this.focusBar(0);
|
|
294
|
+
}
|
|
295
|
+
break;
|
|
296
|
+
case "Tab":
|
|
297
|
+
this.clearFocus();
|
|
298
|
+
break;
|
|
299
|
+
case "Escape":
|
|
300
|
+
ev.preventDefault();
|
|
301
|
+
ev.stopPropagation();
|
|
302
|
+
if (this.popoverEl.open) {
|
|
303
|
+
this.popoverEl.open = false;
|
|
304
|
+
}
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
handleBarKeyDown(ev, item) {
|
|
309
|
+
const barIdx = this.flattenedData.indexOf(item);
|
|
310
|
+
switch (ev.key) {
|
|
311
|
+
case "ArrowUp":
|
|
312
|
+
case "ArrowLeft":
|
|
313
|
+
ev.preventDefault();
|
|
314
|
+
this.focusBar(barIdx - 1);
|
|
315
|
+
break;
|
|
316
|
+
case "ArrowDown":
|
|
317
|
+
case "ArrowRight":
|
|
318
|
+
ev.preventDefault();
|
|
319
|
+
this.focusBar(barIdx + 1);
|
|
320
|
+
break;
|
|
321
|
+
case "Enter":
|
|
322
|
+
if (this.popoverEl.open) {
|
|
323
|
+
const popoverBtn = this.popoverEl.querySelector("button");
|
|
324
|
+
popoverBtn && popoverBtn.click();
|
|
325
|
+
}
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
handleBarClick(ev, item) {
|
|
330
|
+
this.openPopover(item, { x: ev.clientX, y: ev.clientY });
|
|
331
|
+
this.highlightBar(item);
|
|
332
|
+
}
|
|
333
|
+
handleLegendItemClick(ev) {
|
|
334
|
+
var _a;
|
|
335
|
+
if (ev.target.nodeName === "WM-CHART-LEGEND") {
|
|
336
|
+
// If event from an internal legend bubbles up to the chart, ignore it
|
|
337
|
+
const legendEl = ev.target;
|
|
338
|
+
if (legendEl.chartIds.includes(this.el.id)) {
|
|
339
|
+
if (ev.detail.idx == -1) {
|
|
340
|
+
this.clearHighlights();
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
const barLegend = (_a = this.legendData[ev.detail.idx]) === null || _a === void 0 ? void 0 : _a.barLegend;
|
|
344
|
+
if (barLegend) {
|
|
345
|
+
this.highlightBarsByLegend(barLegend);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
handleDocumentClick(_ev) {
|
|
352
|
+
// Clear highlights when highlight is set from an external legend (not opening a popover)
|
|
353
|
+
if (!this.popoverEl.open) {
|
|
354
|
+
this.clearHighlights();
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
// #endregion keyboard interaction and event handling
|
|
358
|
+
////////////////////////////////////////////////////////////
|
|
359
|
+
// #region Focus and Highlighting
|
|
360
|
+
////////////////////////////////////////////////////////////
|
|
361
|
+
handleUserIsKeying() {
|
|
362
|
+
this.isKeying = true;
|
|
363
|
+
}
|
|
364
|
+
handleUserIsNotKeying() {
|
|
365
|
+
this.isKeying = false;
|
|
366
|
+
}
|
|
367
|
+
handleComponentBlur(ev) {
|
|
368
|
+
if (!isElOrChild(this.el, ev.relatedTarget)) {
|
|
369
|
+
this.clearFocus();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
focusBar(barIdx) {
|
|
373
|
+
const bars = this.el.shadowRoot.querySelectorAll(".bar");
|
|
374
|
+
const wrappedIdx = ((barIdx % bars.length) + bars.length) % bars.length;
|
|
375
|
+
const barToFocus = bars[wrappedIdx];
|
|
376
|
+
barToFocus.focus();
|
|
377
|
+
const item = this.flattenedData[wrappedIdx];
|
|
378
|
+
if (item) {
|
|
379
|
+
this.highlightBar(item);
|
|
380
|
+
const cornerOffset = 12;
|
|
381
|
+
this.openPopover(item, {
|
|
382
|
+
x: barToFocus.getBoundingClientRect().left + cornerOffset,
|
|
383
|
+
y: barToFocus.getBoundingClientRect().top + cornerOffset,
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
handlePopoverToggled(_ev) {
|
|
388
|
+
setTimeout(() => {
|
|
389
|
+
// allow time for the popover to reopen if the click that closed it was on a bar, to prevent flash
|
|
390
|
+
if (this.popoverEl.open) {
|
|
391
|
+
const chartData = this.popoverEl.chartData;
|
|
392
|
+
const item = this.flattenedData.find((item) => item.barLegend === (chartData === null || chartData === void 0 ? void 0 : chartData.barLegend) && item.groupName === (chartData === null || chartData === void 0 ? void 0 : chartData.groupName));
|
|
393
|
+
item && this.highlightBar(item);
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
this.clearHighlights();
|
|
397
|
+
}
|
|
398
|
+
}, 30);
|
|
399
|
+
}
|
|
400
|
+
openPopover(clickedProcessedData, coords) {
|
|
401
|
+
if (!this.data || !this.config) {
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
let matchingChartData = this.data.find((item) => item.barLegend === clickedProcessedData.barLegend && item.groupName === clickedProcessedData.groupName);
|
|
405
|
+
if (matchingChartData) {
|
|
406
|
+
const popoverButtonText = matchingChartData.popoverButtonText || this.config.popoverButtonText || "";
|
|
407
|
+
this.componentWrapperEl.classList.toggle("hide-focus-ring", !!popoverButtonText);
|
|
408
|
+
this.popoverEl.chartData = matchingChartData;
|
|
409
|
+
this.popoverEl.header = matchingChartData.popoverTitle || this.config.popoverTitle || "";
|
|
410
|
+
this.popoverEl.text = matchingChartData.popoverText || this.config.popoverText || "";
|
|
411
|
+
this.popoverEl.buttonText = popoverButtonText;
|
|
412
|
+
this.popoverEl.coords = coords;
|
|
413
|
+
window.setTimeout(() => {
|
|
414
|
+
this.popoverEl.open = true;
|
|
415
|
+
this.popoverEl.announceContents();
|
|
416
|
+
}, 30);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
clearHighlights() {
|
|
420
|
+
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
421
|
+
barItems.forEach((barItem) => {
|
|
422
|
+
barItem.classList.remove("faded");
|
|
423
|
+
});
|
|
424
|
+
this.wmChartBarHighlighted.emit({ idx: -1 });
|
|
425
|
+
}
|
|
426
|
+
highlightBar(item) {
|
|
427
|
+
const idx = this.flattenedData.indexOf(item);
|
|
428
|
+
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
429
|
+
barItems.forEach((barItem) => {
|
|
430
|
+
barItem.classList.add("faded");
|
|
431
|
+
});
|
|
432
|
+
barItems[idx].classList.remove("faded");
|
|
433
|
+
const legendIdx = this.legendData.findIndex((legendItem) => legendItem.barLegend === item.barLegend);
|
|
434
|
+
this.wmChartBarHighlighted.emit({ idx: legendIdx });
|
|
435
|
+
}
|
|
436
|
+
highlightBarsByLegend(barLegend) {
|
|
437
|
+
const barItems = this.el.shadowRoot.querySelectorAll(".bar-wrapper");
|
|
438
|
+
barItems.forEach((barItem, idx) => {
|
|
439
|
+
var _a;
|
|
440
|
+
barItem.classList.toggle("faded", ((_a = this.flattenedData[idx]) === null || _a === void 0 ? void 0 : _a.barLegend) !== barLegend);
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
clearFocus() {
|
|
444
|
+
if (this.popoverEl.open) {
|
|
445
|
+
this.popoverEl.open = false;
|
|
446
|
+
}
|
|
447
|
+
this.clearHighlights();
|
|
448
|
+
}
|
|
449
|
+
// #endregion focus and highlighting
|
|
450
|
+
////////////////////////////////////////////////////////////
|
|
451
|
+
// #region Rendering
|
|
452
|
+
////////////////////////////////////////////////////////////
|
|
453
|
+
renderBarValue(item, barPercent) {
|
|
454
|
+
var _a, _b, _c;
|
|
455
|
+
return (h("div", { class: "value horizontal", style: { "--offset": `${barPercent}%` } }, h("span", null, item.displayValue), ((_a = this.config) === null || _a === void 0 ? void 0 : _a.valueFormat) === "percentage" && this.isGrouped && (h("span", { class: "supplemental-value" }, "(", item.amount.toFixed((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.decimalPlaces) !== null && _c !== void 0 ? _c : 0), ")"))));
|
|
456
|
+
}
|
|
457
|
+
renderBarLegends() {
|
|
458
|
+
const legends = [];
|
|
459
|
+
this.processedData.forEach((items) => {
|
|
460
|
+
items.forEach((item) => {
|
|
461
|
+
legends.push(h("div", { key: `legend-${item.barLegend}`, class: "bar-legend" }, item.barLegend));
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
return legends;
|
|
465
|
+
}
|
|
466
|
+
renderBar(item, effectiveGridMax) {
|
|
467
|
+
var _a, _b, _c, _d;
|
|
468
|
+
const barPercent = effectiveGridMax > 0 ? (item.amount / effectiveGridMax) * 100 : 0;
|
|
469
|
+
let patternClass = "";
|
|
470
|
+
if ((_a = this.patternMode) !== null && _a !== void 0 ? _a : (_b = this.config) === null || _b === void 0 ? void 0 : _b.patternMode) {
|
|
471
|
+
patternClass = (_c = patternKey[item.color]) !== null && _c !== void 0 ? _c : "";
|
|
472
|
+
}
|
|
473
|
+
return (h("div", { key: `bar-${item.groupName}-${item.barLegend}`, class: "bar-wrapper" }, h("div", { class: `bar horizontal ${patternClass}`, style: { "--bar-length": `${barPercent}%`, "--bar-color": `var(--${item.color})` }, onClick: (ev) => this.handleBarClick(ev, item), onKeyDown: (ev) => this.handleBarKeyDown(ev, item), tabindex: "-1", "aria-label": `${(_d = this.config) === null || _d === void 0 ? void 0 : _d.categoryAxisLabel}, ${item.groupName ? `${item.groupName},` : ""} ${item.barLegend} ${item.displayValue}` }), this.renderBarValue(item, barPercent)));
|
|
474
|
+
}
|
|
475
|
+
renderBars() {
|
|
476
|
+
if (!this.gridInfo || !this.processedData) {
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
const effectiveGridMax = this.gridInfo.numTicks * this.gridInfo.interval;
|
|
480
|
+
const bars = [];
|
|
481
|
+
this.processedData.forEach((items) => {
|
|
482
|
+
items.forEach((item) => {
|
|
483
|
+
bars.push(this.renderBar(item, effectiveGridMax));
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
return bars;
|
|
487
|
+
}
|
|
488
|
+
renderGroupLegends() {
|
|
489
|
+
const legends = [];
|
|
490
|
+
this.processedData.forEach((_, groupName) => {
|
|
491
|
+
legends.push(h("div", { key: `legend-${groupName}`, class: "group-legend" }, groupName));
|
|
492
|
+
});
|
|
493
|
+
return legends;
|
|
494
|
+
}
|
|
495
|
+
renderGroupedBars() {
|
|
496
|
+
if (!this.gridInfo || !this.processedData) {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
const effectiveGridMax = this.gridInfo.numTicks * this.gridInfo.interval;
|
|
500
|
+
const groupedBars = [];
|
|
501
|
+
this.processedData.forEach((items, groupName) => {
|
|
502
|
+
groupedBars.push(h("div", { key: `group-${groupName}`, class: "group-bars" }, items.map((item) => this.renderBar(item, effectiveGridMax))));
|
|
503
|
+
});
|
|
504
|
+
return groupedBars;
|
|
505
|
+
}
|
|
506
|
+
renderXAxis() {
|
|
507
|
+
var _a;
|
|
508
|
+
return (h("div", { class: "x-axis", "aria-hidden": "true" }, h("div", { class: "tick zero" }, h("span", null, "0")), (_a = this.gridInfo) === null || _a === void 0 ? void 0 :
|
|
509
|
+
_a.tickLabels.map((label) => (h("div", { class: "tick", key: label }, h("span", null, label))))));
|
|
510
|
+
}
|
|
511
|
+
renderGrid() {
|
|
512
|
+
var _a;
|
|
513
|
+
const backgroundSize = (_a = this.gridInfo) === null || _a === void 0 ? void 0 : _a.backgroundSize;
|
|
514
|
+
return h("div", { class: "grid-lines", style: { "--background-size": backgroundSize } });
|
|
515
|
+
}
|
|
516
|
+
renderLegend(orientation) {
|
|
517
|
+
var _a, _b, _c, _d, _e;
|
|
518
|
+
return (h("div", { class: `legend --${orientation} --${this.showLegend}` }, h("wm-chart-legend", { orientation: orientation, chartIds: this.el.id, processedData: this.legendData, printMode: (_c = (_a = this.printMode) !== null && _a !== void 0 ? _a : (_b = this.config) === null || _b === void 0 ? void 0 : _b.printMode) !== null && _c !== void 0 ? _c : false, patternMode: ((_d = this.patternMode) !== null && _d !== void 0 ? _d : (_e = this.config) === null || _e === void 0 ? void 0 : _e.patternMode) ? "horizontal" : undefined, onWmLegendItemClick: (ev) => this.handleLegendItemClick(ev), onWmLegendItemHover: (ev) => this.handleLegendItemClick(ev) })));
|
|
519
|
+
}
|
|
520
|
+
// #endregion rendering
|
|
521
|
+
render() {
|
|
522
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
523
|
+
const rowCount = (this.isGrouped ? this.processedData.size : (_a = this.processedData.get(null)) === null || _a === void 0 ? void 0 : _a.length) || 1; // processedData keys are the group names, ungrouped data belongs under a key of null
|
|
524
|
+
return (h(Host, { key: 'a25775e30b2232f51642600e8e08654771f10080' }, h("div", { key: '4c64407cce556bb37e35b7a131a806d9def2b914', class: "popover-wrapper" }, h("priv-chart-popover", { key: '6d65bcfbd8b24deff60d228ff836b747dd3d6c86', ref: (el) => (this.popoverEl = el), onIntChartPopoverToggled: (ev) => this.handlePopoverToggled(ev) })), h("div", { key: '3e1d1fe143f9ec973603c0afc1cbef53e9b660d5', ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${((_b = this.printMode) !== null && _b !== void 0 ? _b : (_c = this.config) === null || _c === void 0 ? void 0 : _c.printMode) ? "print-mode" : ""}`, tabindex: "0", role: "application", onKeyDown: (ev) => this.handleChartKeyDown(ev), onBlur: (ev) => this.handleComponentBlur(ev), "aria-roledescription": chartMessages.interactiveChart, "aria-describedby": "chart-instructions", "aria-label": (_d = this.config) === null || _d === void 0 ? void 0 : _d.label }, ((_f = (_e = this.config) === null || _e === void 0 ? void 0 : _e.showLabel) !== null && _f !== void 0 ? _f : true) && (h("label", { key: 'e9db06b762219abeef90aa6d2174238e75ffc5d7', id: "label", class: "label" }, h("span", { key: 'dcae615b6ad3aad4e333bb3caf279c3b60c16c5a', class: "label-text" }, (_g = this.config) === null || _g === void 0 ? void 0 : _g.label), this.subinfoText ? h("span", { class: "subinfo" }, this.subinfoText) : "")), this.showLegend === "top" && this.renderLegend("horizontal"), h("div", { key: '26888544e48c9b5e722b4bd0623e1d9397b364bf', class: "chart-wrapper" }, h("div", { key: 'f90fa68d4060cecbe4c2001887d141f156e838ba', class: "chart-left-side" }, this.showLegend === "left" && this.renderLegend("vertical"), h("div", { key: 'bbdcc865c67bd878ae606cc305e5a43943fa181d', class: "left-axis-label" }, h("span", { key: '8a10637386b33369784a2332e373e012e2512872', class: "axis-label-text" }, (_h = this.config) === null || _h === void 0 ? void 0 : _h.categoryAxisLabel))), h("div", { key: '76f1b3ee1be4ebb6f0e4dd5c8621d50cb805abc8', class: "chart-center" }, h("div", { key: 'd70ee90082f88a611a2b95cbc6dab6e6d88a4577', class: "chart-area", style: { "--row-count": rowCount.toString() } }, this.processedData && (this.isGrouped ? this.renderGroupLegends() : this.renderBarLegends()), h("div", { key: '314bfa33d7fdd9cabb092dbfb8b977e46226c525', class: `bar-area ${this.isKeying ? "user-is-keying" : ""} ${this.isGrouped ? "grouped" : ""}`, ref: (el) => (this.barAreaEl = el) }, this.gridVisible && this.renderGrid(), ((_j = this.config) === null || _j === void 0 ? void 0 : _j.gridMax) != undefined && (this.isGrouped ? this.renderGroupedBars() : this.renderBars()))), h("div", { key: '18ebf5e67f030a017822fb4aac9d530ba615ff5a', class: "bottom-axis-label" }, h("span", { key: 'a9d7adf4eb823b8f9f1d7f5848fb9088acbf4957', class: "axis-label-text" }, (_k = this.config) === null || _k === void 0 ? void 0 : _k.valueAxisLabel)), this.gridVisible && this.renderXAxis()), h("div", { key: '54f0f4dad217156d37cc7dc187b78eb9a5c0bef4', class: "chart-right-side" }, this.showLegend === "right" && this.renderLegend("vertical"))), this.showLegend === "bottom" && this.renderLegend("horizontal"), renderInstructionsText())));
|
|
525
|
+
}
|
|
526
|
+
static get is() { return "wm-chart-bar"; }
|
|
527
|
+
static get encapsulation() { return "shadow"; }
|
|
528
|
+
static get delegatesFocus() { return true; }
|
|
529
|
+
static get originalStyleUrls() {
|
|
530
|
+
return {
|
|
531
|
+
"$": ["wm-chart-bar.scss"]
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
static get styleUrls() {
|
|
535
|
+
return {
|
|
536
|
+
"$": ["wm-chart-bar.css"]
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
static get properties() {
|
|
540
|
+
return {
|
|
541
|
+
"config": {
|
|
542
|
+
"type": "unknown",
|
|
543
|
+
"mutable": false,
|
|
544
|
+
"complexType": {
|
|
545
|
+
"original": "ChartConfig",
|
|
546
|
+
"resolved": "undefined | { label: string; showLabel: boolean; valueAxisLabel: string; categoryAxisLabel: string; printMode: boolean; printModeFormat: \"amount\" | \"percentage\"; gridMax: number | \"auto\"; sort?: \"ascending\" | \"descending\" | \"none\" | undefined; showLegend?: \"top\" | \"bottom\" | \"left\" | \"right\" | \"none\" | undefined; showGrid?: boolean | undefined; subinfo?: string | undefined; valueFormat?: \"amount\" | \"percentage\" | \"none\" | undefined; colors?: string | undefined; popoverTitle?: string | undefined; popoverText?: string | undefined; popoverButtonText?: string | undefined; decimalPlaces?: number | undefined; patternMode?: boolean | undefined; }",
|
|
547
|
+
"references": {
|
|
548
|
+
"ChartConfig": {
|
|
549
|
+
"location": "import",
|
|
550
|
+
"path": "../../../global/interfaces",
|
|
551
|
+
"id": "src/global/interfaces.ts::ChartConfig"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"required": false,
|
|
556
|
+
"optional": true,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [{
|
|
559
|
+
"name": "description",
|
|
560
|
+
"text": "Chart configuration object. Set via JavaScript property \u2014 not an HTML\nattribute. See the `ChartConfig` interface for the full list of options (label, gridMax,\nvalueFormat, colors, showLegend, etc.)."
|
|
561
|
+
}],
|
|
562
|
+
"text": ""
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"data": {
|
|
566
|
+
"type": "unknown",
|
|
567
|
+
"mutable": false,
|
|
568
|
+
"complexType": {
|
|
569
|
+
"original": "ChartData[]",
|
|
570
|
+
"resolved": "ChartData[] | undefined",
|
|
571
|
+
"references": {
|
|
572
|
+
"ChartData": {
|
|
573
|
+
"location": "import",
|
|
574
|
+
"path": "../../../global/interfaces",
|
|
575
|
+
"id": "src/global/interfaces.ts::ChartData"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"required": false,
|
|
580
|
+
"optional": true,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [{
|
|
583
|
+
"name": "description",
|
|
584
|
+
"text": "Array of data items to render. Set via JavaScript property \u2014 not an HTML\nattribute. Each item must include at least `barLegend` and `amount`; grouped charts also\nrequire `groupName`. See the `ChartData` interface."
|
|
585
|
+
}],
|
|
586
|
+
"text": ""
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"printMode": {
|
|
590
|
+
"type": "boolean",
|
|
591
|
+
"mutable": false,
|
|
592
|
+
"complexType": {
|
|
593
|
+
"original": "boolean",
|
|
594
|
+
"resolved": "boolean | undefined",
|
|
595
|
+
"references": {}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": true,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [{
|
|
601
|
+
"name": "description",
|
|
602
|
+
"text": "When true, bar values are included in the legend and keyboard interaction\ninstructions are removed from the DOM \u2014 suitable for printed output. Takes precedence over\n`config.printMode`."
|
|
603
|
+
}, {
|
|
604
|
+
"name": "default",
|
|
605
|
+
"text": "false"
|
|
606
|
+
}],
|
|
607
|
+
"text": ""
|
|
608
|
+
},
|
|
609
|
+
"attribute": "print-mode",
|
|
610
|
+
"reflect": false
|
|
611
|
+
},
|
|
612
|
+
"patternMode": {
|
|
613
|
+
"type": "boolean",
|
|
614
|
+
"mutable": false,
|
|
615
|
+
"complexType": {
|
|
616
|
+
"original": "boolean",
|
|
617
|
+
"resolved": "boolean | undefined",
|
|
618
|
+
"references": {}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": true,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [{
|
|
624
|
+
"name": "description",
|
|
625
|
+
"text": "When true, applies a hatching pattern fill to bars in addition to color,\nimproving distinguishability for users with color vision deficiencies. Takes precedence\nover `config.patternMode`."
|
|
626
|
+
}, {
|
|
627
|
+
"name": "default",
|
|
628
|
+
"text": "false"
|
|
629
|
+
}],
|
|
630
|
+
"text": ""
|
|
631
|
+
},
|
|
632
|
+
"attribute": "pattern-mode",
|
|
633
|
+
"reflect": false
|
|
634
|
+
},
|
|
635
|
+
"subinfo": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"mutable": false,
|
|
638
|
+
"complexType": {
|
|
639
|
+
"original": "string",
|
|
640
|
+
"resolved": "string | undefined",
|
|
641
|
+
"references": {}
|
|
642
|
+
},
|
|
643
|
+
"required": false,
|
|
644
|
+
"optional": true,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [{
|
|
647
|
+
"name": "description",
|
|
648
|
+
"text": "Optional secondary text displayed beneath the chart label. Takes precedence\nover `config.subinfo`."
|
|
649
|
+
}],
|
|
650
|
+
"text": ""
|
|
651
|
+
},
|
|
652
|
+
"attribute": "subinfo",
|
|
653
|
+
"reflect": false
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
static get states() {
|
|
658
|
+
return {
|
|
659
|
+
"processedData": {},
|
|
660
|
+
"gridInfo": {},
|
|
661
|
+
"isKeying": {}
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
static get events() {
|
|
665
|
+
return [{
|
|
666
|
+
"method": "wmChartBarHighlighted",
|
|
667
|
+
"name": "wmChartBarHighlighted",
|
|
668
|
+
"bubbles": true,
|
|
669
|
+
"cancelable": true,
|
|
670
|
+
"composed": true,
|
|
671
|
+
"docs": {
|
|
672
|
+
"tags": [{
|
|
673
|
+
"name": "internal",
|
|
674
|
+
"text": undefined
|
|
675
|
+
}, {
|
|
676
|
+
"name": "description",
|
|
677
|
+
"text": "Internal signal used to synchronize bar highlight state with an external\nwm-chart-legend \u2014 not for application use."
|
|
678
|
+
}],
|
|
679
|
+
"text": ""
|
|
680
|
+
},
|
|
681
|
+
"complexType": {
|
|
682
|
+
"original": "{ idx: number }",
|
|
683
|
+
"resolved": "{ idx: number; }",
|
|
684
|
+
"references": {}
|
|
685
|
+
}
|
|
686
|
+
}];
|
|
687
|
+
}
|
|
688
|
+
static get elementRef() { return "el"; }
|
|
689
|
+
static get watchers() {
|
|
690
|
+
return [{
|
|
691
|
+
"propName": "config",
|
|
692
|
+
"methodName": "handleConfigDataChange"
|
|
693
|
+
}, {
|
|
694
|
+
"propName": "data",
|
|
695
|
+
"methodName": "handleConfigDataChange"
|
|
696
|
+
}];
|
|
697
|
+
}
|
|
698
|
+
static get listeners() {
|
|
699
|
+
return [{
|
|
700
|
+
"name": "wmLegendItemClick",
|
|
701
|
+
"method": "handleLegendItemClick",
|
|
702
|
+
"target": "document",
|
|
703
|
+
"capture": false,
|
|
704
|
+
"passive": false
|
|
705
|
+
}, {
|
|
706
|
+
"name": "click",
|
|
707
|
+
"method": "handleDocumentClick",
|
|
708
|
+
"target": "document",
|
|
709
|
+
"capture": true,
|
|
710
|
+
"passive": false
|
|
711
|
+
}, {
|
|
712
|
+
"name": "wmUserIsKeying",
|
|
713
|
+
"method": "handleUserIsKeying",
|
|
714
|
+
"target": "window",
|
|
715
|
+
"capture": false,
|
|
716
|
+
"passive": false
|
|
717
|
+
}, {
|
|
718
|
+
"name": "wmUserIsNotTabbing",
|
|
719
|
+
"method": "handleUserIsNotKeying",
|
|
720
|
+
"target": "window",
|
|
721
|
+
"capture": false,
|
|
722
|
+
"passive": false
|
|
723
|
+
}];
|
|
724
|
+
}
|
|
725
|
+
}
|