@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,549 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { forceUpdate } from "@stencil/core";
|
|
3
|
+
import { debounce, generateId } from "../../../global/functions";
|
|
4
|
+
import { amountToPercent, exitChart, getDetails, handleChartKeydown, renderStackedBar, renderSimpleBar, renderDoughnut, renderHiddenValuesMessage, renderInstructionsText, renderLegend, allChartsDetails, removeSegmentInfoHighlight, } from "../chartFunctions";
|
|
5
|
+
import { chartMessages } from "../../../global/intl";
|
|
6
|
+
/**
|
|
7
|
+
* Composition chart component rendering doughnut or stacked bar charts. Composed of a parent
|
|
8
|
+
* wm-chart element and wm-chart-slice children. Has 3 doughnut subtypes and 5 bar subtypes,
|
|
9
|
+
* each designed for a specific composition use case.
|
|
10
|
+
*
|
|
11
|
+
* **Important:** The bar subtypes (`bar2`–`bar7`) are COMPOSITION patterns — they show parts
|
|
12
|
+
* of a whole for specific qualitative use cases. They are NOT general-purpose bar charts. For
|
|
13
|
+
* general comparison or distribution bar charts, use wm-chart-bar or wm-chart-column instead.
|
|
14
|
+
*
|
|
15
|
+
* @category Data Visualization
|
|
16
|
+
*
|
|
17
|
+
* @keyboardInteraction
|
|
18
|
+
* - **Tab**: Enters the chart. Subsequent Tab exits the chart.
|
|
19
|
+
* - **Arrow keys**: Navigate between slices/segments.
|
|
20
|
+
* - **Enter / Space**: Opens the data popover for the focused segment.
|
|
21
|
+
* - **Escape**: Closes the popover and returns to the chart container.
|
|
22
|
+
*
|
|
23
|
+
* @accessibility
|
|
24
|
+
* - `label` is required for accessibility — the chart throws if omitted.
|
|
25
|
+
* - The chart renders with `role="application"` and an `aria-roledescription` of
|
|
26
|
+
* "Interactive chart". Each segment is individually focusable with an `aria-label`.
|
|
27
|
+
* - `print-mode` removes keyboard interaction instructions for printed output.
|
|
28
|
+
*
|
|
29
|
+
* @usageNotes
|
|
30
|
+
* - Slices without an `amount` are not rendered but still occupy a color slot, allowing
|
|
31
|
+
* consistent color assignment when some data points are missing.
|
|
32
|
+
* - The `show-legend` prop controls legend visibility but the legend is always read by screen
|
|
33
|
+
* readers regardless of visibility.
|
|
34
|
+
* - For data-driven bar charts (comparison, distribution), prefer wm-chart-bar or
|
|
35
|
+
* wm-chart-column.
|
|
36
|
+
*
|
|
37
|
+
* @example {html} Doughnut chart
|
|
38
|
+
* <wm-chart label="Enrollment by status">
|
|
39
|
+
* <wm-chart-slice legend="Enrolled" amount="310"></wm-chart-slice>
|
|
40
|
+
* <wm-chart-slice legend="Not enrolled" amount="90"></wm-chart-slice>
|
|
41
|
+
* </wm-chart>
|
|
42
|
+
*
|
|
43
|
+
* @example {react} Doughnut chart
|
|
44
|
+
* <WmChart label="Enrollment by status">
|
|
45
|
+
* <WmChartSlice legend="Enrolled" amount="310" />
|
|
46
|
+
* <WmChartSlice legend="Not enrolled" amount="90" />
|
|
47
|
+
* </WmChart>
|
|
48
|
+
*
|
|
49
|
+
* @example {html} Bar composition chart
|
|
50
|
+
* <wm-chart label="Completion by cohort" chart-type="bar5">
|
|
51
|
+
* <wm-chart-slice legend="Completed" amount="200"></wm-chart-slice>
|
|
52
|
+
* <wm-chart-slice legend="In progress" amount="75"></wm-chart-slice>
|
|
53
|
+
* <wm-chart-slice legend="Not started" amount="25"></wm-chart-slice>
|
|
54
|
+
* </wm-chart>
|
|
55
|
+
*
|
|
56
|
+
* @example {react} Bar composition chart
|
|
57
|
+
* <WmChart label="Completion by cohort" chartType="bar5">
|
|
58
|
+
* <WmChartSlice legend="Completed" amount="200" />
|
|
59
|
+
* <WmChartSlice legend="In progress" amount="75" />
|
|
60
|
+
* <WmChartSlice legend="Not started" amount="25" />
|
|
61
|
+
* </WmChart>
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export class Chart {
|
|
65
|
+
constructor() {
|
|
66
|
+
this.uid = generateId();
|
|
67
|
+
// @ts-ignore-- TS warns this is unused, but its needed in chartFunctions
|
|
68
|
+
this.slicesDetails = [];
|
|
69
|
+
this.debouncedSliceUpdate = debounce(async () => {
|
|
70
|
+
await getDetails.call(this, this.currentChartType);
|
|
71
|
+
forceUpdate(this.el);
|
|
72
|
+
}, 100);
|
|
73
|
+
this.chartType = "doughnut1";
|
|
74
|
+
this.label = undefined;
|
|
75
|
+
this.labelWidth = "150px";
|
|
76
|
+
this.subinfo = undefined;
|
|
77
|
+
this.valueFormat = "none";
|
|
78
|
+
this.showGrid = true;
|
|
79
|
+
this.showLegend = true;
|
|
80
|
+
this.showBarLegend = false;
|
|
81
|
+
this.notStartedColor = false;
|
|
82
|
+
this.printMode = false;
|
|
83
|
+
this.printModeFormat = "amount";
|
|
84
|
+
this.labelPosition = "top";
|
|
85
|
+
this.isTabbing = false;
|
|
86
|
+
this.userIsNavigating = false;
|
|
87
|
+
this.focusedSliceId = undefined;
|
|
88
|
+
}
|
|
89
|
+
get popoverEl() {
|
|
90
|
+
return this.el.shadowRoot.querySelector("priv-chart-popover-old");
|
|
91
|
+
}
|
|
92
|
+
get sliceEls() {
|
|
93
|
+
return Array.from(this.el.shadowRoot.querySelectorAll(".segment"));
|
|
94
|
+
}
|
|
95
|
+
get currentChartType() {
|
|
96
|
+
return this.chartType;
|
|
97
|
+
}
|
|
98
|
+
get chartDetails() {
|
|
99
|
+
return allChartsDetails[this.currentChartType];
|
|
100
|
+
}
|
|
101
|
+
get ariaLabelText() {
|
|
102
|
+
let text = `${this.label}`;
|
|
103
|
+
if (this.subinfo) {
|
|
104
|
+
text += ` ${this.subinfo}`;
|
|
105
|
+
}
|
|
106
|
+
return text;
|
|
107
|
+
}
|
|
108
|
+
get isDoughnut() {
|
|
109
|
+
return this.chartDetails.category === "doughnut";
|
|
110
|
+
}
|
|
111
|
+
get isStackedBar() {
|
|
112
|
+
return this.chartDetails.category === "stackedBar";
|
|
113
|
+
}
|
|
114
|
+
get isSimpleBar() {
|
|
115
|
+
return this.chartDetails.category === "simpleBar";
|
|
116
|
+
}
|
|
117
|
+
get isBar() {
|
|
118
|
+
return this.isStackedBar || this.isSimpleBar;
|
|
119
|
+
}
|
|
120
|
+
toggleTabbingOn() {
|
|
121
|
+
this.isTabbing = true;
|
|
122
|
+
}
|
|
123
|
+
toggleTabbingOff() {
|
|
124
|
+
this.isTabbing = false;
|
|
125
|
+
}
|
|
126
|
+
handleKeydown(ev) {
|
|
127
|
+
handleChartKeydown.call(this, ev);
|
|
128
|
+
}
|
|
129
|
+
showHiddenValuesMessage(showMsg) {
|
|
130
|
+
const msg = this.el.shadowRoot.querySelector(".hidden-values-warning");
|
|
131
|
+
if (msg) {
|
|
132
|
+
showMsg ? msg.classList.remove("hidden") : msg.classList.add("hidden");
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
// if DOM isn't ready, try again later
|
|
136
|
+
requestAnimationFrame(() => this.showHiddenValuesMessage(showMsg));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/* LIFECYCLE METHODS + EVENTS FROM THE CHILDREN */
|
|
140
|
+
async componentWillLoad() {
|
|
141
|
+
if (!this.label) {
|
|
142
|
+
throw new Error("For accessibility purposes, you must provide a label for the chart. See https://components.watermarkinsights.com/chart for more information.");
|
|
143
|
+
}
|
|
144
|
+
await getDetails.call(this, this.currentChartType);
|
|
145
|
+
// rerender on resize
|
|
146
|
+
// unnecessary for doughnuts as layout doesn't change
|
|
147
|
+
if (!this.isDoughnut) {
|
|
148
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
149
|
+
forceUpdate(this.el);
|
|
150
|
+
});
|
|
151
|
+
resizeObserver.observe(this.el);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
handleSliceUpdate() {
|
|
155
|
+
this.debouncedSliceUpdate();
|
|
156
|
+
}
|
|
157
|
+
handlePopoverOpenChanged(ev) {
|
|
158
|
+
const isOpen = ev.detail;
|
|
159
|
+
if (!isOpen) {
|
|
160
|
+
const infoEls = Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex]"));
|
|
161
|
+
removeSegmentInfoHighlight(infoEls);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/* RENDERING */
|
|
165
|
+
renderBarText(s, minimumWidth) {
|
|
166
|
+
let val;
|
|
167
|
+
if (this.valueFormat === "percentage") {
|
|
168
|
+
if (s.perc === 0 && s.amount > 0) {
|
|
169
|
+
val = "<1%";
|
|
170
|
+
}
|
|
171
|
+
else if (s.perc === 100 && s.amount < this.total) {
|
|
172
|
+
val = ">99%";
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
val = s.perc + "%";
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else if (this.valueFormat === "amount") {
|
|
179
|
+
val = s.amount;
|
|
180
|
+
}
|
|
181
|
+
const segmentPercentage = amountToPercent(s.amount, this.total, false);
|
|
182
|
+
const availableWidth = this.el.offsetWidth;
|
|
183
|
+
const meetsSizeMinimum = (segmentPercentage / 100) * availableWidth >= minimumWidth;
|
|
184
|
+
const renderedWidth = meetsSizeMinimum || s.amount == 0 ? `${segmentPercentage}%` : `${minimumWidth}px`;
|
|
185
|
+
// even though we do not display the value text if it has an amount of 0, we still want to render the value-wrapper
|
|
186
|
+
// in order to not disturb the positioning of the other value texts in the entire row
|
|
187
|
+
return (h("div", { class: `value-wrapper ${meetsSizeMinimum ? "" : "fixed-width"}`, style: { width: renderedWidth } }, h("span", { class: "value", "data-value": s.amount, "data-segmentindex": s.index }, s.amount > 0 && val)));
|
|
188
|
+
}
|
|
189
|
+
drawAxis() {
|
|
190
|
+
if (this.currentChartType === "bar3") {
|
|
191
|
+
return (h("svg", { class: "axis" }, h("line", { x1: "0", x2: "100%", y1: "0", y2: "0" }), h("line", { x1: "0", x2: "0", y1: "0", y2: "-85px" }), h("line", { class: "tick", x1: "0.5", x2: "0.5", y1: "0", y2: "6" }), h("line", { class: "tick", x1: "100%", x2: "100%", y1: "0", y2: "6" })));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
renderChart() {
|
|
195
|
+
if (this.isSimpleBar) {
|
|
196
|
+
return renderSimpleBar.call(this, this.currentChartType);
|
|
197
|
+
}
|
|
198
|
+
else if (this.isStackedBar && this.total > 0) {
|
|
199
|
+
return renderStackedBar.call(this, this.currentChartType);
|
|
200
|
+
}
|
|
201
|
+
else if (this.isDoughnut && this.total > 0) {
|
|
202
|
+
return renderDoughnut.call(this, this.currentChartType);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
render() {
|
|
206
|
+
return (h(Host, { key: '2f9eaa51a4e4df6479143666f89af7d18b94eee8', onBlur: () => exitChart.call(this) }, h("div", { key: 'acff58f708754498e34e03b09f3e9189e3c848df', ref: (el) => (this.componentWrapperEl = el), class: `component-wrapper ${this.currentChartType} ${this.isTabbing && !this.userIsNavigating ? "user-is-tabbing" : ""} ${this.labelPosition === "left" && this.currentChartType === "bar4" ? "left-label" : ""}`, role: "application", "aria-label": this.ariaLabelText, tabindex: 0, "aria-roledescription": chartMessages.interactiveChart, "aria-describedby": "chart-instructions" }, h("label", { key: '0513953f6c2505e6d0058cb120601c24c76f226f', id: `label-${this.uid}`, class: `label --${this.labelPosition}`, htmlFor: `graphic-${this.uid}` }, h("span", { key: '96b4fa5af888d033ecc0b416630450d2f314d018', class: "label-text" }, this.label), this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""), this.isBar && renderLegend.call(this, this.currentChartType), this.renderChart(), this.isDoughnut && renderLegend.call(this, this.currentChartType), h("priv-chart-popover-old", { key: '582d8564b33d153e0798287d5801307c2c3b6fdd', class: this.isTabbing ? "user-is-tabbing" : "", onIntChartPopoverOpenChanged: (ev) => this.handlePopoverOpenChanged(ev) }), this.isBar && !this.printMode && renderHiddenValuesMessage()), renderInstructionsText()));
|
|
207
|
+
}
|
|
208
|
+
static get is() { return "wm-chart"; }
|
|
209
|
+
static get encapsulation() { return "shadow"; }
|
|
210
|
+
static get delegatesFocus() { return true; }
|
|
211
|
+
static get originalStyleUrls() {
|
|
212
|
+
return {
|
|
213
|
+
"$": ["wm-chart.scss"]
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
static get styleUrls() {
|
|
217
|
+
return {
|
|
218
|
+
"$": ["wm-chart.css"]
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
static get properties() {
|
|
222
|
+
return {
|
|
223
|
+
"chartType": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "ChartType",
|
|
228
|
+
"resolved": "\"bar\" | \"bar2\" | \"bar3\" | \"bar4\" | \"bar5\" | \"bar6\" | \"bar7\" | \"doughnut\" | \"doughnut1\" | \"doughnut2\" | \"doughnut3\"",
|
|
229
|
+
"references": {
|
|
230
|
+
"ChartType": {
|
|
231
|
+
"location": "import",
|
|
232
|
+
"path": "../../../global/interfaces",
|
|
233
|
+
"id": "src/global/interfaces.ts::ChartType"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": false,
|
|
238
|
+
"optional": false,
|
|
239
|
+
"docs": {
|
|
240
|
+
"tags": [{
|
|
241
|
+
"name": "description",
|
|
242
|
+
"text": "Chart subtype. Doughnut subtypes (`doughnut1`\u2013`doughnut3`) and bar composition\nsubtypes (`bar2`\u2013`bar7`) \u2014 each tailored to a specific composition use case."
|
|
243
|
+
}, {
|
|
244
|
+
"name": "default",
|
|
245
|
+
"text": "\"doughnut1\""
|
|
246
|
+
}],
|
|
247
|
+
"text": ""
|
|
248
|
+
},
|
|
249
|
+
"attribute": "chart-type",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "\"doughnut1\""
|
|
252
|
+
},
|
|
253
|
+
"label": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "string",
|
|
258
|
+
"resolved": "string | undefined",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": true,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [{
|
|
265
|
+
"name": "description",
|
|
266
|
+
"text": "Accessible label for the chart. Required \u2014 the component throws an error if\nomitted. Used as the `aria-label` on the chart container and as the visual chart label."
|
|
267
|
+
}, {
|
|
268
|
+
"name": "required",
|
|
269
|
+
"text": undefined
|
|
270
|
+
}],
|
|
271
|
+
"text": ""
|
|
272
|
+
},
|
|
273
|
+
"attribute": "label",
|
|
274
|
+
"reflect": false
|
|
275
|
+
},
|
|
276
|
+
"labelWidth": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "string",
|
|
281
|
+
"resolved": "string",
|
|
282
|
+
"references": {}
|
|
283
|
+
},
|
|
284
|
+
"required": false,
|
|
285
|
+
"optional": false,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [{
|
|
288
|
+
"name": "description",
|
|
289
|
+
"text": "Controls the bar label width. Only applies to `bar6` and `bar7` subtypes."
|
|
290
|
+
}, {
|
|
291
|
+
"name": "default",
|
|
292
|
+
"text": "\"150px\""
|
|
293
|
+
}],
|
|
294
|
+
"text": ""
|
|
295
|
+
},
|
|
296
|
+
"attribute": "label-width",
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"defaultValue": "\"150px\""
|
|
299
|
+
},
|
|
300
|
+
"subinfo": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "string",
|
|
305
|
+
"resolved": "string | undefined",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": true,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [{
|
|
312
|
+
"name": "description",
|
|
313
|
+
"text": "Optional secondary text displayed beneath the chart label. Not shown when\n`label-position` is `\"none\"`."
|
|
314
|
+
}],
|
|
315
|
+
"text": ""
|
|
316
|
+
},
|
|
317
|
+
"attribute": "subinfo",
|
|
318
|
+
"reflect": false
|
|
319
|
+
},
|
|
320
|
+
"valueFormat": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": false,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "\"percentage\" | \"amount\" | \"none\"",
|
|
325
|
+
"resolved": "\"amount\" | \"none\" | \"percentage\"",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [{
|
|
332
|
+
"name": "description",
|
|
333
|
+
"text": "Controls how individual segment values are displayed on the chart."
|
|
334
|
+
}, {
|
|
335
|
+
"name": "default",
|
|
336
|
+
"text": "\"none\""
|
|
337
|
+
}],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"attribute": "value-format",
|
|
341
|
+
"reflect": false,
|
|
342
|
+
"defaultValue": "\"none\""
|
|
343
|
+
},
|
|
344
|
+
"showGrid": {
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"mutable": false,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "boolean",
|
|
349
|
+
"resolved": "boolean | undefined",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": true,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [{
|
|
356
|
+
"name": "description",
|
|
357
|
+
"text": "Show or hide the value grid lines. Only applies to `bar6`."
|
|
358
|
+
}, {
|
|
359
|
+
"name": "default",
|
|
360
|
+
"text": "true"
|
|
361
|
+
}],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"attribute": "show-grid",
|
|
365
|
+
"reflect": false,
|
|
366
|
+
"defaultValue": "true"
|
|
367
|
+
},
|
|
368
|
+
"showLegend": {
|
|
369
|
+
"type": "boolean",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "boolean",
|
|
373
|
+
"resolved": "boolean",
|
|
374
|
+
"references": {}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [{
|
|
380
|
+
"name": "description",
|
|
381
|
+
"text": "Show or hide the legend below the chart. The legend is still read by screen\nreaders regardless of this setting."
|
|
382
|
+
}, {
|
|
383
|
+
"name": "default",
|
|
384
|
+
"text": "true"
|
|
385
|
+
}],
|
|
386
|
+
"text": ""
|
|
387
|
+
},
|
|
388
|
+
"attribute": "show-legend",
|
|
389
|
+
"reflect": false,
|
|
390
|
+
"defaultValue": "true"
|
|
391
|
+
},
|
|
392
|
+
"showBarLegend": {
|
|
393
|
+
"type": "boolean",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "boolean",
|
|
397
|
+
"resolved": "boolean",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [{
|
|
404
|
+
"name": "description",
|
|
405
|
+
"text": "Show or hide the y-axis bar legend. Only applies to `bar7`."
|
|
406
|
+
}, {
|
|
407
|
+
"name": "default",
|
|
408
|
+
"text": "false"
|
|
409
|
+
}],
|
|
410
|
+
"text": ""
|
|
411
|
+
},
|
|
412
|
+
"attribute": "show-bar-legend",
|
|
413
|
+
"reflect": false,
|
|
414
|
+
"defaultValue": "false"
|
|
415
|
+
},
|
|
416
|
+
"notStartedColor": {
|
|
417
|
+
"type": "boolean",
|
|
418
|
+
"mutable": false,
|
|
419
|
+
"complexType": {
|
|
420
|
+
"original": "boolean",
|
|
421
|
+
"resolved": "boolean",
|
|
422
|
+
"references": {}
|
|
423
|
+
},
|
|
424
|
+
"required": false,
|
|
425
|
+
"optional": false,
|
|
426
|
+
"docs": {
|
|
427
|
+
"tags": [{
|
|
428
|
+
"name": "description",
|
|
429
|
+
"text": "When true, applies a gray color to the first slice to represent a\n\"not started\" state. Only applies to `bar5`."
|
|
430
|
+
}, {
|
|
431
|
+
"name": "default",
|
|
432
|
+
"text": "false"
|
|
433
|
+
}],
|
|
434
|
+
"text": ""
|
|
435
|
+
},
|
|
436
|
+
"attribute": "not-started-color",
|
|
437
|
+
"reflect": false,
|
|
438
|
+
"defaultValue": "false"
|
|
439
|
+
},
|
|
440
|
+
"printMode": {
|
|
441
|
+
"type": "boolean",
|
|
442
|
+
"mutable": false,
|
|
443
|
+
"complexType": {
|
|
444
|
+
"original": "boolean",
|
|
445
|
+
"resolved": "boolean",
|
|
446
|
+
"references": {}
|
|
447
|
+
},
|
|
448
|
+
"required": false,
|
|
449
|
+
"optional": false,
|
|
450
|
+
"docs": {
|
|
451
|
+
"tags": [{
|
|
452
|
+
"name": "description",
|
|
453
|
+
"text": "When true, slice values are included in the legend and keyboard interaction\ninstructions are removed from the DOM \u2014 suitable for printed output."
|
|
454
|
+
}, {
|
|
455
|
+
"name": "default",
|
|
456
|
+
"text": "false"
|
|
457
|
+
}],
|
|
458
|
+
"text": ""
|
|
459
|
+
},
|
|
460
|
+
"attribute": "print-mode",
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"defaultValue": "false"
|
|
463
|
+
},
|
|
464
|
+
"printModeFormat": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"mutable": false,
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "\"percentage\" | \"amount\"",
|
|
469
|
+
"resolved": "\"amount\" | \"percentage\"",
|
|
470
|
+
"references": {}
|
|
471
|
+
},
|
|
472
|
+
"required": false,
|
|
473
|
+
"optional": false,
|
|
474
|
+
"docs": {
|
|
475
|
+
"tags": [{
|
|
476
|
+
"name": "description",
|
|
477
|
+
"text": "Format for legend values when `print-mode` is enabled."
|
|
478
|
+
}, {
|
|
479
|
+
"name": "default",
|
|
480
|
+
"text": "\"amount\""
|
|
481
|
+
}],
|
|
482
|
+
"text": ""
|
|
483
|
+
},
|
|
484
|
+
"attribute": "print-mode-format",
|
|
485
|
+
"reflect": false,
|
|
486
|
+
"defaultValue": "\"amount\""
|
|
487
|
+
},
|
|
488
|
+
"labelPosition": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"mutable": false,
|
|
491
|
+
"complexType": {
|
|
492
|
+
"original": "\"left\" | \"top\" | \"none\"",
|
|
493
|
+
"resolved": "\"left\" | \"none\" | \"top\"",
|
|
494
|
+
"references": {}
|
|
495
|
+
},
|
|
496
|
+
"required": false,
|
|
497
|
+
"optional": false,
|
|
498
|
+
"docs": {
|
|
499
|
+
"tags": [{
|
|
500
|
+
"name": "description",
|
|
501
|
+
"text": "Position of the chart label relative to the chart. When `\"none\"`, no label is\nrendered \u2014 an external label matching `label` must be visually grouped with the chart."
|
|
502
|
+
}, {
|
|
503
|
+
"name": "default",
|
|
504
|
+
"text": "\"top\""
|
|
505
|
+
}],
|
|
506
|
+
"text": ""
|
|
507
|
+
},
|
|
508
|
+
"attribute": "label-position",
|
|
509
|
+
"reflect": false,
|
|
510
|
+
"defaultValue": "\"top\""
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
static get states() {
|
|
515
|
+
return {
|
|
516
|
+
"isTabbing": {},
|
|
517
|
+
"userIsNavigating": {},
|
|
518
|
+
"focusedSliceId": {}
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
static get elementRef() { return "el"; }
|
|
522
|
+
static get listeners() {
|
|
523
|
+
return [{
|
|
524
|
+
"name": "wmUserIsTabbing",
|
|
525
|
+
"method": "toggleTabbingOn",
|
|
526
|
+
"target": "window",
|
|
527
|
+
"capture": false,
|
|
528
|
+
"passive": false
|
|
529
|
+
}, {
|
|
530
|
+
"name": "wmUserIsNotTabbing",
|
|
531
|
+
"method": "toggleTabbingOff",
|
|
532
|
+
"target": "window",
|
|
533
|
+
"capture": false,
|
|
534
|
+
"passive": false
|
|
535
|
+
}, {
|
|
536
|
+
"name": "keydown",
|
|
537
|
+
"method": "handleKeydown",
|
|
538
|
+
"target": undefined,
|
|
539
|
+
"capture": false,
|
|
540
|
+
"passive": false
|
|
541
|
+
}, {
|
|
542
|
+
"name": "wmChartSliceUpdated",
|
|
543
|
+
"method": "handleSliceUpdate",
|
|
544
|
+
"target": undefined,
|
|
545
|
+
"capture": false,
|
|
546
|
+
"passive": false
|
|
547
|
+
}];
|
|
548
|
+
}
|
|
549
|
+
}
|