@watermarkinsights/ripple 5.30.0 → 5.31.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-df7ca137.js +103 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/priv-calendar.cjs.entry.js +27 -27
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +2 -2
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -4
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-column.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-date-range.cjs.entry.js +25 -9
- package/dist/cjs/wm-datepicker.cjs.entry.js +37 -11
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-flyout.cjs.entry.js +6 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal_3.cjs.entry.js +19 -4
- package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +3 -3
- package/dist/cjs/wm-optgroup.cjs.entry.js +11 -1
- package/dist/cjs/wm-option_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +2 -2
- package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-tag-option.cjs.entry.js +8 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +14 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
- package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +7 -2
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +7 -2
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +58 -6
- package/dist/collection/components/charts/wm-chart/wm-chart.js +139 -13
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +134 -7
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +102 -8
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +90 -8
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +153 -17
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +63 -7
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +85 -5
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +52 -6
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +47 -47
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +33 -29
- package/dist/collection/components/datepickers/wm-date-range.js +246 -29
- package/dist/collection/components/datepickers/wm-datepicker.js +254 -30
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +7 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +193 -17
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +116 -11
- package/dist/collection/components/selects/wm-option/wm-option.js +153 -18
- package/dist/collection/components/selects/wm-select/wm-select.js +187 -21
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +148 -12
- package/dist/collection/components/wm-button/wm-button.js +212 -18
- package/dist/collection/components/wm-file/wm-file.js +108 -14
- package/dist/collection/components/wm-file-list/wm-file-list.js +74 -2
- package/dist/collection/components/wm-flyout/wm-flyout.js +215 -16
- package/dist/collection/components/wm-input/wm-input.js +195 -20
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +62 -5
- package/dist/collection/components/wm-modal/wm-modal-footer.js +63 -6
- package/dist/collection/components/wm-modal/wm-modal-header.js +34 -3
- package/dist/collection/components/wm-modal/wm-modal.js +181 -14
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +5 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +5 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +6 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +37 -3
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +47 -5
- package/dist/collection/components/wm-navigation/wm-navigation.js +54 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +5 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +5 -1
- package/dist/collection/components/wm-navigator/wm-navigator.js +102 -9
- package/dist/collection/components/wm-pagination/wm-pagination.js +106 -9
- package/dist/collection/components/wm-search/wm-search.js +182 -16
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +96 -5
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +66 -10
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +96 -5
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +42 -6
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +205 -17
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +97 -12
- package/dist/collection/components/wm-textarea/wm-textarea.js +116 -13
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +190 -16
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +87 -8
- package/dist/collection/components/wm-uploader/wm-uploader.js +142 -14
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +3 -0
- package/dist/collection/global/services/__mocks__/http-service.js +1 -1
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +13915 -0
- package/dist/docs/props-reference.json +2028 -0
- package/dist/docs/skill/index.md +32 -0
- package/dist/docs/skill/wm-action-menu.md +93 -0
- package/dist/docs/skill/wm-button.md +103 -0
- package/dist/docs/skill/wm-chart-bar.md +129 -0
- package/dist/docs/skill/wm-chart-column.md +96 -0
- package/dist/docs/skill/wm-chart-legend.md +67 -0
- package/dist/docs/skill/wm-chart-slice.md +55 -0
- package/dist/docs/skill/wm-chart.md +92 -0
- package/dist/docs/skill/wm-date-range.md +153 -0
- package/dist/docs/skill/wm-datepicker.md +134 -0
- package/dist/docs/skill/wm-file-list.md +97 -0
- package/dist/docs/skill/wm-file.md +78 -0
- package/dist/docs/skill/wm-flyout.md +174 -0
- package/dist/docs/skill/wm-input.md +126 -0
- package/dist/docs/skill/wm-line-chart.md +108 -0
- package/dist/docs/skill/wm-menuitem.md +72 -0
- package/dist/docs/skill/wm-modal-footer.md +73 -0
- package/dist/docs/skill/wm-modal-header.md +65 -0
- package/dist/docs/skill/wm-modal.md +137 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +56 -0
- package/dist/docs/skill/wm-navigation-item.md +69 -0
- package/dist/docs/skill/wm-navigation.md +66 -0
- package/dist/docs/skill/wm-navigator.md +91 -0
- package/dist/docs/skill/wm-nested-select.md +149 -0
- package/dist/docs/skill/wm-optgroup.md +71 -0
- package/dist/docs/skill/wm-option.md +68 -0
- package/dist/docs/skill/wm-pagination.md +95 -0
- package/dist/docs/skill/wm-progress-indicator.md +49 -0
- package/dist/docs/skill/wm-progress-monitor.md +93 -0
- package/dist/docs/skill/wm-progress-slice.md +41 -0
- package/dist/docs/skill/wm-search.md +157 -0
- package/dist/docs/skill/wm-select.md +148 -0
- package/dist/docs/skill/wm-snackbar.md +101 -0
- package/dist/docs/skill/wm-tab-item.md +35 -0
- package/dist/docs/skill/wm-tab-list.md +112 -0
- package/dist/docs/skill/wm-tab-panel.md +33 -0
- package/dist/docs/skill/wm-tag-input.md +165 -0
- package/dist/docs/skill/wm-tag-option.md +59 -0
- package/dist/docs/skill/wm-textarea.md +94 -0
- package/dist/docs/skill/wm-timepicker.md +139 -0
- package/dist/docs/skill/wm-toggletip.md +92 -0
- package/dist/docs/skill/wm-uploader.md +129 -0
- package/dist/docs/skill/wm-wrapper.md +6 -0
- package/dist/docs/wm-action-menu.md +111 -0
- package/dist/docs/wm-button.md +137 -0
- package/dist/docs/wm-chart-bar.md +23 -0
- package/dist/docs/wm-chart-column.md +26 -0
- package/dist/docs/wm-chart-legend.md +31 -0
- package/dist/docs/wm-chart-slice.md +14 -0
- package/dist/docs/wm-chart.md +30 -0
- package/dist/docs/wm-date-range.md +215 -0
- package/dist/docs/wm-datepicker.md +210 -0
- package/dist/docs/wm-file-list.md +95 -0
- package/dist/docs/wm-file.md +34 -0
- package/dist/docs/wm-flyout.md +123 -0
- package/dist/docs/wm-input.md +120 -0
- package/dist/docs/wm-line-chart.md +32 -0
- package/dist/docs/wm-menuitem.md +38 -0
- package/dist/docs/wm-modal-footer.md +106 -0
- package/dist/docs/wm-modal-header.md +100 -0
- package/dist/docs/wm-modal.md +127 -0
- package/dist/docs/wm-navigation-hamburger.md +91 -0
- package/dist/docs/wm-navigation-item.md +98 -0
- package/dist/docs/wm-navigation.md +101 -0
- package/dist/docs/wm-navigator.md +99 -0
- package/dist/docs/wm-nested-select.md +107 -0
- package/dist/docs/wm-optgroup.md +28 -0
- package/dist/docs/wm-option.md +24 -0
- package/dist/docs/wm-pagination.md +94 -0
- package/dist/docs/wm-progress-indicator.md +23 -0
- package/dist/docs/wm-progress-monitor.md +27 -0
- package/dist/docs/wm-progress-slice.md +16 -0
- package/dist/docs/wm-search.md +119 -0
- package/dist/docs/wm-select.md +120 -0
- package/dist/docs/wm-snackbar.md +87 -0
- package/dist/docs/wm-tab-item.md +23 -0
- package/dist/docs/wm-tab-list.md +98 -0
- package/dist/docs/wm-tab-panel.md +18 -0
- package/dist/docs/wm-tag-input.md +123 -0
- package/dist/docs/wm-tag-option.md +33 -0
- package/dist/docs/wm-textarea.md +101 -0
- package/dist/docs/wm-timepicker.md +122 -0
- package/dist/docs/wm-toggletip.md +86 -0
- package/dist/docs/wm-uploader.md +114 -0
- package/dist/docs/wm-wrapper.md +7 -0
- package/dist/esm/app-globals-466ed44b.js +101 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/priv-calendar.entry.js +27 -27
- package/dist/esm/priv-chart-popover-old.entry.js +2 -2
- package/dist/esm/priv-chart-popover_2.entry.js +3 -3
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-action-menu_2.entry.js +5 -4
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-chart-bar.entry.js +1 -1
- package/dist/esm/wm-chart-column.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +1 -1
- package/dist/esm/wm-date-range.entry.js +25 -9
- package/dist/esm/wm-datepicker.entry.js +37 -11
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-flyout.entry.js +6 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +1 -1
- package/dist/esm/wm-modal-pss_3.entry.js +4 -4
- package/dist/esm/wm-modal_3.entry.js +19 -4
- package/dist/esm/wm-navigation_3.entry.js +4 -4
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +3 -3
- package/dist/esm/wm-optgroup.entry.js +11 -1
- package/dist/esm/wm-option_2.entry.js +5 -5
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +2 -2
- package/dist/esm/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +6 -6
- package/dist/esm/wm-tag-input.entry.js +2 -2
- package/dist/esm/wm-tag-option.entry.js +8 -0
- package/dist/esm/wm-textarea.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +14 -2
- package/dist/esm/wm-toggletip.entry.js +3 -3
- package/dist/esm/wm-uploader.entry.js +2 -2
- package/dist/esm-es5/app-globals-466ed44b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
- package/dist/esm-es5/wm-chart-column.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-1fc894ac.system.entry.js → p-012bd307.system.entry.js} +1 -1
- package/dist/ripple/p-03f352dc.entry.js +1 -0
- package/dist/ripple/{p-4f53544d.entry.js → p-03ff4f41.entry.js} +1 -1
- package/dist/ripple/{p-2a03f658.entry.js → p-045aa27f.entry.js} +1 -1
- package/dist/ripple/{p-709d1765.entry.js → p-057ffccb.entry.js} +1 -1
- package/dist/ripple/p-06c3dc14.system.entry.js +1 -0
- package/dist/ripple/{p-ff6fd274.system.entry.js → p-09a80f59.system.entry.js} +1 -1
- package/dist/ripple/{p-3bd8537c.entry.js → p-09fb0a09.entry.js} +1 -1
- package/dist/ripple/p-0a05d3a3.js +1 -0
- package/dist/ripple/{p-3f69041f.entry.js → p-0ab9bac7.entry.js} +1 -1
- package/dist/ripple/{p-332a3e3d.system.entry.js → p-1059cdb9.system.entry.js} +1 -1
- package/dist/ripple/{p-dbdae848.system.entry.js → p-106a9459.system.entry.js} +1 -1
- package/dist/ripple/{p-e1a6ee77.entry.js → p-16381033.entry.js} +1 -1
- package/dist/ripple/{p-b11abb0d.system.entry.js → p-181109f0.system.entry.js} +1 -1
- package/dist/ripple/{p-bb9f54cf.system.entry.js → p-1855c3b1.system.entry.js} +1 -1
- package/dist/ripple/{p-4533241f.entry.js → p-1c25838e.entry.js} +1 -1
- package/dist/ripple/{p-fb6aee09.entry.js → p-1f67b172.entry.js} +1 -1
- package/dist/ripple/{p-a3dd5204.system.entry.js → p-22703bcd.system.entry.js} +1 -1
- package/dist/ripple/{p-a6aef87d.system.entry.js → p-237388c5.system.entry.js} +1 -1
- package/dist/ripple/p-237f5977.system.entry.js +1 -0
- package/dist/ripple/p-25d6cc45.system.js +1 -0
- package/dist/ripple/{p-09d5381c.entry.js → p-299d2d8b.entry.js} +1 -1
- package/dist/ripple/{p-e78f9572.system.entry.js → p-2c1d219f.system.entry.js} +1 -1
- package/dist/ripple/{p-84e04896.entry.js → p-2dbf9636.entry.js} +1 -1
- package/dist/ripple/{p-05dae6a0.entry.js → p-2dc1071a.entry.js} +1 -1
- package/dist/ripple/{p-39bac42a.entry.js → p-3216e2e7.entry.js} +1 -1
- package/dist/ripple/p-3252c04b.system.entry.js +1 -0
- package/dist/ripple/{p-7ca0bb68.system.entry.js → p-32bac954.system.entry.js} +1 -1
- package/dist/ripple/p-33eeaa18.entry.js +1 -0
- package/dist/ripple/p-3441da90.entry.js +1 -0
- package/dist/ripple/p-3502fd33.system.entry.js +1 -0
- package/dist/ripple/{p-f51404f5.entry.js → p-351000b9.entry.js} +1 -1
- package/dist/ripple/{p-bf3eef42.entry.js → p-3c0062c5.entry.js} +1 -1
- package/dist/ripple/{p-c1abc58e.entry.js → p-3d3836ad.entry.js} +1 -1
- package/dist/ripple/p-3e8bfc68.system.entry.js +1 -0
- package/dist/ripple/p-3f403a64.system.entry.js +1 -0
- package/dist/ripple/{p-b974a535.system.entry.js → p-43e8d384.system.entry.js} +1 -1
- package/dist/ripple/p-49dc64ba.entry.js +1 -0
- package/dist/ripple/{p-9d345fc7.system.entry.js → p-4a942d74.system.entry.js} +1 -1
- package/dist/ripple/p-4cc09fa3.system.entry.js +1 -0
- package/dist/ripple/p-5177d4fa.entry.js +1 -0
- package/dist/ripple/p-51fff3a7.system.entry.js +1 -0
- package/dist/ripple/p-54ba0eae.entry.js +1 -0
- package/dist/ripple/{p-c04d0eeb.system.entry.js → p-5609bde2.system.entry.js} +1 -1
- package/dist/ripple/{p-86148143.system.entry.js → p-56e1a71d.system.entry.js} +1 -1
- package/dist/ripple/{p-f94af31c.entry.js → p-578b5443.entry.js} +1 -1
- package/dist/ripple/p-57901fc3.entry.js +1 -0
- package/dist/ripple/{p-463be5be.entry.js → p-57a0cb5f.entry.js} +1 -1
- package/dist/ripple/{p-0db033c3.system.entry.js → p-59b3f92b.system.entry.js} +1 -1
- package/dist/ripple/p-5a533e7c.entry.js +1 -0
- package/dist/ripple/{p-5f092b39.system.entry.js → p-61a0ba92.system.entry.js} +1 -1
- package/dist/ripple/{p-6de83c6f.entry.js → p-623b89e0.entry.js} +1 -1
- package/dist/ripple/{p-6479b06b.entry.js → p-668c0758.entry.js} +1 -1
- package/dist/ripple/p-6a6e98c7.entry.js +1 -0
- package/dist/ripple/{p-b654743f.system.entry.js → p-6c46dd9a.system.entry.js} +1 -1
- package/dist/ripple/{p-4e7ae2c5.system.entry.js → p-6ea254d2.system.entry.js} +1 -1
- package/dist/ripple/p-6f875608.system.entry.js +1 -0
- package/dist/ripple/{p-d05b7cd3.entry.js → p-71a38bd2.entry.js} +1 -1
- package/dist/ripple/{p-dab54a9d.entry.js → p-73a2389d.entry.js} +1 -1
- package/dist/ripple/p-759d87de.entry.js +1 -0
- package/dist/ripple/{p-227b0af9.entry.js → p-75c5ec39.entry.js} +1 -1
- package/dist/ripple/{p-ee729037.system.entry.js → p-7bc3b4ee.system.entry.js} +1 -1
- package/dist/ripple/p-7c7988a3.entry.js +1 -0
- package/dist/ripple/p-81735196.entry.js +1 -0
- package/dist/ripple/{p-a0aba3e0.system.entry.js → p-8376699e.system.entry.js} +1 -1
- package/dist/ripple/{p-503330c1.system.entry.js → p-865208b7.system.entry.js} +1 -1
- package/dist/ripple/{p-28b8a12e.system.entry.js → p-8715d758.system.entry.js} +1 -1
- package/dist/ripple/p-8bfb7664.entry.js +1 -0
- package/dist/ripple/{p-680f5703.entry.js → p-8deb22bc.entry.js} +1 -1
- package/dist/ripple/p-8e32e9de.system.entry.js +1 -0
- package/dist/ripple/{p-bdb10d37.entry.js → p-92e3bf68.entry.js} +1 -1
- package/dist/ripple/{p-0feaaae9.system.entry.js → p-942b323c.system.entry.js} +1 -1
- package/dist/ripple/{p-5173359e.entry.js → p-94fd1dcc.entry.js} +1 -1
- package/dist/ripple/p-991455a2.system.entry.js +1 -0
- package/dist/ripple/p-99a112c8.system.entry.js +1 -0
- package/dist/ripple/p-9a8d91d6.entry.js +1 -0
- package/dist/ripple/{p-e0c0e8b0.system.entry.js → p-9afb642d.system.entry.js} +1 -1
- package/dist/ripple/p-9c850273.system.js +1 -0
- package/dist/ripple/p-a3f9e257.entry.js +1 -0
- package/dist/ripple/p-a5b07241.entry.js +1 -0
- package/dist/ripple/{p-d55bd2b9.entry.js → p-a7a6cf55.system.entry.js} +1 -1
- package/dist/ripple/{p-6f2d3297.system.entry.js → p-a917ea86.system.entry.js} +1 -1
- package/dist/ripple/p-ab5664cd.entry.js +1 -0
- package/dist/ripple/{p-cc028323.entry.js → p-acb04e6e.entry.js} +1 -1
- package/dist/ripple/p-b2624d8f.system.entry.js +1 -0
- package/dist/ripple/p-b5b37960.entry.js +1 -0
- package/dist/ripple/p-b713b6de.system.entry.js +1 -0
- package/dist/ripple/p-b75e9e5f.entry.js +1 -0
- package/dist/ripple/{p-b1924539.system.entry.js → p-b7969fd7.system.entry.js} +1 -1
- package/dist/ripple/{p-a7e637a5.system.entry.js → p-b9596bfc.system.entry.js} +1 -1
- package/dist/ripple/p-b9d3d967.system.entry.js +1 -0
- package/dist/ripple/{p-aafced54.system.entry.js → p-bd365c44.system.entry.js} +1 -1
- package/dist/ripple/p-bd9ab5ae.system.entry.js +1 -0
- package/dist/ripple/p-c0028f4d.system.entry.js +1 -0
- package/dist/ripple/p-c7d3ee52.entry.js +1 -0
- package/dist/ripple/p-c8e4e95b.entry.js +1 -0
- package/dist/ripple/p-c996ade8.entry.js +1 -0
- package/dist/ripple/p-ca8378b0.entry.js +1 -0
- package/dist/ripple/{p-bd37dd6f.entry.js → p-cc2176ad.entry.js} +1 -1
- package/dist/ripple/p-cd496e63.entry.js +1 -0
- package/dist/ripple/p-d0653c32.entry.js +1 -0
- package/dist/ripple/{p-9a5d11cb.entry.js → p-d11e5029.entry.js} +1 -1
- package/dist/ripple/p-d3d0b626.entry.js +1 -0
- package/dist/ripple/p-d4899263.entry.js +1 -0
- package/dist/ripple/p-dc82f194.entry.js +1 -0
- package/dist/ripple/{p-a6ef995c.system.entry.js → p-ddfb976f.system.entry.js} +1 -1
- package/dist/ripple/{p-ee26ba53.entry.js → p-e1899945.entry.js} +1 -1
- package/dist/ripple/p-e26b9711.system.entry.js +1 -0
- package/dist/ripple/{p-10aea5ee.system.entry.js → p-e31f597a.system.entry.js} +1 -1
- package/dist/ripple/p-e35de3cd.system.entry.js +1 -0
- package/dist/ripple/p-e3effa1a.system.entry.js +1 -0
- package/dist/ripple/p-e674e6a7.system.entry.js +1 -0
- package/dist/ripple/{p-8e6e868a.entry.js → p-e7ffd796.entry.js} +1 -1
- package/dist/ripple/p-e800717d.entry.js +1 -0
- package/dist/ripple/p-eab35bea.entry.js +1 -0
- package/dist/ripple/{p-df9d5b14.system.entry.js → p-ebdf16fa.system.entry.js} +1 -1
- package/dist/ripple/p-ed9fc1c1.system.entry.js +1 -0
- package/dist/ripple/p-eda49f0e.entry.js +1 -0
- package/dist/ripple/p-ee33fd7f.system.entry.js +1 -0
- package/dist/ripple/p-ee5f43fe.system.entry.js +1 -0
- package/dist/ripple/{p-928b3e5e.entry.js → p-f0ee3616.entry.js} +1 -1
- package/dist/ripple/{p-02c8bf15.system.entry.js → p-f1215c25.system.entry.js} +1 -1
- package/dist/ripple/p-f148ae9d.system.entry.js +1 -0
- package/dist/ripple/p-f307aabe.entry.js +1 -0
- package/dist/ripple/p-f4f6c904.system.entry.js +1 -0
- package/dist/ripple/p-f58833ae.system.entry.js +1 -0
- package/dist/ripple/p-f7fc6350.system.js +1 -1
- package/dist/ripple/p-f881cdc8.system.entry.js +1 -0
- package/dist/ripple/{p-444feb7d.system.entry.js → p-fbb37b4b.system.entry.js} +1 -1
- package/dist/ripple/{p-40e8071c.system.entry.js → p-fc905b2f.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +5 -0
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +5 -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 +111 -0
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +131 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +100 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +77 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +134 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +52 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +84 -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 +6 -2
- package/dist/types/components/datepickers/wm-date-range.d.ts +186 -0
- package/dist/types/components/datepickers/wm-datepicker.d.ts +170 -2
- 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 +162 -0
- 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 +164 -0
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +122 -0
- package/dist/types/components/wm-button/wm-button.d.ts +170 -2
- package/dist/types/components/wm-file/wm-file.d.ts +92 -0
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +71 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +193 -0
- package/dist/types/components/wm-input/wm-input.d.ts +158 -0
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +58 -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 +148 -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 +4 -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 +50 -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 +91 -3
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +90 -0
- package/dist/types/components/wm-search/wm-search.d.ts +148 -5
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +94 -0
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +43 -2
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +93 -0
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +28 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +185 -0
- 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 +97 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +145 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +74 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +128 -0
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +10513 -57
- package/package.json +2 -2
- package/dist/ripple/p-065b0134.entry.js +0 -1
- package/dist/ripple/p-210773eb.entry.js +0 -1
|
@@ -1,10 +1,62 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Data slice for a wm-chart composition chart. Each slice represents one segment of the whole.
|
|
4
|
+
* Always used as a direct child of wm-chart.
|
|
5
|
+
*
|
|
6
|
+
* @usageNotes
|
|
7
|
+
* - A `legend` is required unless `amount` is `0` or omitted — the component throws if a
|
|
8
|
+
* non-zero amount is provided without a legend.
|
|
9
|
+
* - Slices without an `amount` are not rendered but still occupy a color slot, preserving
|
|
10
|
+
* consistent color assignment when some data points are conditionally absent.
|
|
11
|
+
* - Use `popover-title`, `popover-text`, and `popover-button-text` to surface additional
|
|
12
|
+
* context when a segment is focused or clicked.
|
|
13
|
+
*
|
|
14
|
+
* @example {html} Basic slice
|
|
15
|
+
* <wm-chart-slice legend="Enrolled" amount="310"></wm-chart-slice>
|
|
16
|
+
*
|
|
17
|
+
* @example {react} Basic slice
|
|
18
|
+
* <WmChartSlice legend="Enrolled" amount="310" />
|
|
19
|
+
*
|
|
20
|
+
* @example {html} Slice with popover
|
|
21
|
+
* <wm-chart-slice legend="At risk" amount="45"
|
|
22
|
+
* popover-title="45 students" popover-text="Flagged for early intervention"
|
|
23
|
+
* popover-button-text="View students"></wm-chart-slice>
|
|
24
|
+
*
|
|
25
|
+
* @example {react} Slice with popover
|
|
26
|
+
* <WmChartSlice legend="At risk" amount="45"
|
|
27
|
+
* popoverTitle="45 students" popoverText="Flagged for early intervention"
|
|
28
|
+
* popoverButtonText="View students" />
|
|
29
|
+
*/
|
|
2
30
|
export declare class ChartSlice {
|
|
31
|
+
/**
|
|
32
|
+
* @description Label for this slice in the legend and popovers. Required when `amount` is
|
|
33
|
+
* greater than zero.
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
3
36
|
legend?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @description Numeric value for this slice as a string. Slices with no amount (or `0`) are
|
|
39
|
+
* not rendered but still occupy a color slot.
|
|
40
|
+
*/
|
|
4
41
|
amount?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @description Title text shown in the data popover when this segment is focused or clicked.
|
|
44
|
+
*/
|
|
5
45
|
popoverTitle?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @description Body text shown in the data popover when this segment is focused or clicked.
|
|
48
|
+
*/
|
|
6
49
|
popoverText?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @description Label for the action button in the data popover. When set, the popover
|
|
52
|
+
* renders a button and fires `wmChartPopoverButtonTriggered` when clicked.
|
|
53
|
+
*/
|
|
7
54
|
popoverButtonText?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @description Internal signal notifying the parent wm-chart to re-read slice data after a
|
|
58
|
+
* prop update — not for application use.
|
|
59
|
+
*/
|
|
8
60
|
wmChartSliceUpdated: EventEmitter<void>;
|
|
9
61
|
componentDidLoad(): void;
|
|
10
62
|
componentDidUpdate(): void;
|
|
@@ -1,18 +1,129 @@
|
|
|
1
1
|
import { ChartType, SliceDetails, SliceElement } from "../../../global/interfaces";
|
|
2
|
+
/**
|
|
3
|
+
* Composition chart component rendering doughnut or stacked bar charts. Composed of a parent
|
|
4
|
+
* wm-chart element and wm-chart-slice children. Has 3 doughnut subtypes and 5 bar subtypes,
|
|
5
|
+
* each designed for a specific composition use case.
|
|
6
|
+
*
|
|
7
|
+
* **Important:** The bar subtypes (`bar2`–`bar7`) are COMPOSITION patterns — they show parts
|
|
8
|
+
* of a whole for specific qualitative use cases. They are NOT general-purpose bar charts. For
|
|
9
|
+
* general comparison or distribution bar charts, use wm-chart-bar or wm-chart-column instead.
|
|
10
|
+
*
|
|
11
|
+
* @keyboardInteraction
|
|
12
|
+
* - **Tab**: Enters the chart. Subsequent Tab exits the chart.
|
|
13
|
+
* - **Arrow keys**: Navigate between slices/segments.
|
|
14
|
+
* - **Enter / Space**: Opens the data popover for the focused segment.
|
|
15
|
+
* - **Escape**: Closes the popover and returns to the chart container.
|
|
16
|
+
*
|
|
17
|
+
* @accessibility
|
|
18
|
+
* - `label` is required for accessibility — the chart throws if omitted.
|
|
19
|
+
* - The chart renders with `role="application"` and an `aria-roledescription` of
|
|
20
|
+
* "Interactive chart". Each segment is individually focusable with an `aria-label`.
|
|
21
|
+
* - `print-mode` removes keyboard interaction instructions for printed output.
|
|
22
|
+
*
|
|
23
|
+
* @usageNotes
|
|
24
|
+
* - Slices without an `amount` are not rendered but still occupy a color slot, allowing
|
|
25
|
+
* consistent color assignment when some data points are missing.
|
|
26
|
+
* - The `show-legend` prop controls legend visibility but the legend is always read by screen
|
|
27
|
+
* readers regardless of visibility.
|
|
28
|
+
* - For data-driven bar charts (comparison, distribution), prefer wm-chart-bar or
|
|
29
|
+
* wm-chart-column.
|
|
30
|
+
*
|
|
31
|
+
* @example {html} Doughnut chart
|
|
32
|
+
* <wm-chart label="Enrollment by status">
|
|
33
|
+
* <wm-chart-slice legend="Enrolled" amount="310"></wm-chart-slice>
|
|
34
|
+
* <wm-chart-slice legend="Not enrolled" amount="90"></wm-chart-slice>
|
|
35
|
+
* </wm-chart>
|
|
36
|
+
*
|
|
37
|
+
* @example {react} Doughnut chart
|
|
38
|
+
* <WmChart label="Enrollment by status">
|
|
39
|
+
* <WmChartSlice legend="Enrolled" amount="310" />
|
|
40
|
+
* <WmChartSlice legend="Not enrolled" amount="90" />
|
|
41
|
+
* </WmChart>
|
|
42
|
+
*
|
|
43
|
+
* @example {html} Bar composition chart
|
|
44
|
+
* <wm-chart label="Completion by cohort" chart-type="bar5">
|
|
45
|
+
* <wm-chart-slice legend="Completed" amount="200"></wm-chart-slice>
|
|
46
|
+
* <wm-chart-slice legend="In progress" amount="75"></wm-chart-slice>
|
|
47
|
+
* <wm-chart-slice legend="Not started" amount="25"></wm-chart-slice>
|
|
48
|
+
* </wm-chart>
|
|
49
|
+
*
|
|
50
|
+
* @example {react} Bar composition chart
|
|
51
|
+
* <WmChart label="Completion by cohort" chartType="bar5">
|
|
52
|
+
* <WmChartSlice legend="Completed" amount="200" />
|
|
53
|
+
* <WmChartSlice legend="In progress" amount="75" />
|
|
54
|
+
* <WmChartSlice legend="Not started" amount="25" />
|
|
55
|
+
* </WmChart>
|
|
56
|
+
*
|
|
57
|
+
* @category Data Visualization
|
|
58
|
+
*/
|
|
2
59
|
export declare class Chart {
|
|
3
60
|
el: HTMLWmChartElement;
|
|
4
61
|
private componentWrapperEl;
|
|
62
|
+
/**
|
|
63
|
+
* @description Chart subtype. Doughnut subtypes (`doughnut1`–`doughnut3`) and bar composition
|
|
64
|
+
* subtypes (`bar2`–`bar7`) — each tailored to a specific composition use case.
|
|
65
|
+
* @default "doughnut1"
|
|
66
|
+
*/
|
|
5
67
|
chartType: ChartType;
|
|
68
|
+
/**
|
|
69
|
+
* @description Accessible label for the chart. Required — the component throws an error if
|
|
70
|
+
* omitted. Used as the `aria-label` on the chart container and as the visual chart label.
|
|
71
|
+
* @required
|
|
72
|
+
*/
|
|
6
73
|
label?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @description Controls the bar label width. Only applies to `bar6` and `bar7` subtypes.
|
|
76
|
+
* @default "150px"
|
|
77
|
+
*/
|
|
7
78
|
labelWidth: string;
|
|
79
|
+
/**
|
|
80
|
+
* @description Optional secondary text displayed beneath the chart label. Not shown when
|
|
81
|
+
* `label-position` is `"none"`.
|
|
82
|
+
*/
|
|
8
83
|
subinfo?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @description Controls how individual segment values are displayed on the chart.
|
|
86
|
+
* @default "none"
|
|
87
|
+
*/
|
|
9
88
|
valueFormat: "percentage" | "amount" | "none";
|
|
89
|
+
/**
|
|
90
|
+
* @description Show or hide the value grid lines. Only applies to `bar6`.
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
10
93
|
showGrid?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @description Show or hide the legend below the chart. The legend is still read by screen
|
|
96
|
+
* readers regardless of this setting.
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
11
99
|
showLegend: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @description Show or hide the y-axis bar legend. Only applies to `bar7`.
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
12
104
|
showBarLegend: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @description When true, applies a gray color to the first slice to represent a
|
|
107
|
+
* "not started" state. Only applies to `bar5`.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
13
110
|
notStartedColor: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* @description When true, slice values are included in the legend and keyboard interaction
|
|
113
|
+
* instructions are removed from the DOM — suitable for printed output.
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
14
116
|
printMode: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* @description Format for legend values when `print-mode` is enabled.
|
|
119
|
+
* @default "amount"
|
|
120
|
+
*/
|
|
15
121
|
printModeFormat: "percentage" | "amount";
|
|
122
|
+
/**
|
|
123
|
+
* @description Position of the chart label relative to the chart. When `"none"`, no label is
|
|
124
|
+
* rendered — an external label matching `label` must be visually grouped with the chart.
|
|
125
|
+
* @default "top"
|
|
126
|
+
*/
|
|
16
127
|
labelPosition: "left" | "top" | "none";
|
|
17
128
|
isTabbing: boolean;
|
|
18
129
|
userIsNavigating: boolean;
|
|
@@ -1,5 +1,105 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
import { ChartConfig, ChartData, ProcessedChartData, ChartGridInfo, ProcessedChartDataGrouped } from "../../../global/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Renders a horizontal bar chart for comparing values across nominal categories. Data and
|
|
5
|
+
* configuration are set via JavaScript properties (`chart.config` and `chart.data`) — not
|
|
6
|
+
* HTML attributes. Supports single-color, discrete palette, semantic palette, and grouped bars.
|
|
7
|
+
*
|
|
8
|
+
* **Preferred** over wm-chart's bar subtypes for all comparison and distribution use cases.
|
|
9
|
+
* Use this component (or wm-chart-column) instead of `<wm-chart chart-type="bar*">`.
|
|
10
|
+
*
|
|
11
|
+
* @keyboardInteraction
|
|
12
|
+
* - **Tab**: Enters the chart wrapper.
|
|
13
|
+
* - **Arrow Down / Right**: Focuses the first bar; subsequent presses cycle to the next bar.
|
|
14
|
+
* - **Arrow Up / Left**: Cycles to the previous bar.
|
|
15
|
+
* - **Enter**: Activates the popover button when the popover is open.
|
|
16
|
+
* - **Escape**: Closes the open popover.
|
|
17
|
+
* - **Tab** (from within): Exits the chart and clears focus.
|
|
18
|
+
*
|
|
19
|
+
* @accessibility
|
|
20
|
+
* - `config.label` is required — used as the chart's `aria-label`.
|
|
21
|
+
* - Each bar receives an `aria-label` composed of the category axis label, group name (if
|
|
22
|
+
* grouped), bar legend, and display value.
|
|
23
|
+
* - The chart renders with `role="application"` and `aria-roledescription="Interactive chart"`.
|
|
24
|
+
* - In `print-mode`, keyboard interaction instructions are removed from the DOM.
|
|
25
|
+
*
|
|
26
|
+
* @usageNotes
|
|
27
|
+
* - Set `id` on the element to use with an external `wm-chart-legend` via `chart-ids`.
|
|
28
|
+
* - For grouped charts, each `ChartData` item must include a `groupName` field.
|
|
29
|
+
* - `config.gridMax: "auto"` calculates a "nice" round upper bound from the data.
|
|
30
|
+
* - Bars exceeding the `gridMax` are clipped — set an appropriate `gridMax` to avoid this.
|
|
31
|
+
*
|
|
32
|
+
* @example {html} Single-color bar chart
|
|
33
|
+
* <wm-chart-bar id="enrollment-chart"></wm-chart-bar>
|
|
34
|
+
* <script>
|
|
35
|
+
* const chart = document.querySelector('#enrollment-chart');
|
|
36
|
+
* chart.config = { label: 'Enrollment by program', gridMax: 'auto', valueFormat: 'amount' };
|
|
37
|
+
* chart.data = [{ barLegend: 'Biology', amount: 310 }, { barLegend: 'English', amount: 280 }];
|
|
38
|
+
* </script>
|
|
39
|
+
*
|
|
40
|
+
* @example {react} Single-color bar chart
|
|
41
|
+
* // config and data must be set via JavaScript properties in useEffect -- not as JSX props.
|
|
42
|
+
* const singleRef = useRef(null);
|
|
43
|
+
*
|
|
44
|
+
* useEffect(() => {
|
|
45
|
+
* singleRef.current.config = {
|
|
46
|
+
* label: 'Enrollment by program',
|
|
47
|
+
* gridMax: 'auto',
|
|
48
|
+
* valueFormat: 'amount',
|
|
49
|
+
* popoverTitle: 'Details',
|
|
50
|
+
* };
|
|
51
|
+
* singleRef.current.data = [
|
|
52
|
+
* { barLegend: 'Biology', amount: 310, popoverText: '310 students enrolled' },
|
|
53
|
+
* { barLegend: 'English', amount: 280, popoverText: '280 students enrolled' },
|
|
54
|
+
* { barLegend: 'History', amount: 195, popoverText: '195 students enrolled' },
|
|
55
|
+
* { barLegend: 'Chemistry', amount: 240, popoverText: '240 students enrolled' },
|
|
56
|
+
* ];
|
|
57
|
+
* }, []);
|
|
58
|
+
*
|
|
59
|
+
* <WmChartBar ref={singleRef} />
|
|
60
|
+
*
|
|
61
|
+
* @example {html} Grouped bar chart
|
|
62
|
+
* <wm-chart-bar id="grouped-chart"></wm-chart-bar>
|
|
63
|
+
* <script>
|
|
64
|
+
* const chart = document.querySelector('#grouped-chart');
|
|
65
|
+
* chart.config = { label: 'Retention by cohort and program', gridMax: 'auto',
|
|
66
|
+
* categoryAxisLabel: 'Cohort', valueAxisLabel: 'Students', showLegend: 'bottom' };
|
|
67
|
+
* chart.data = [
|
|
68
|
+
* { barLegend: 'Biology', amount: 120, groupName: '2022', popoverTitle: 'Biology — 2022', popoverText: '120 students retained' },
|
|
69
|
+
* { barLegend: 'English', amount: 95, groupName: '2022', popoverTitle: 'English — 2022', popoverText: '95 students retained' },
|
|
70
|
+
* { barLegend: 'Biology', amount: 135, groupName: '2023', popoverTitle: 'Biology — 2023', popoverText: '135 students retained' },
|
|
71
|
+
* { barLegend: 'English', amount: 110, groupName: '2023', popoverTitle: 'English — 2023', popoverText: '110 students retained' },
|
|
72
|
+
* ];
|
|
73
|
+
* </script>
|
|
74
|
+
*
|
|
75
|
+
* @example {react} Grouped bar chart
|
|
76
|
+
* // config and data must be set via JavaScript properties in useEffect -- not as JSX props.
|
|
77
|
+
* const groupedRef = useRef(null);
|
|
78
|
+
*
|
|
79
|
+
* useEffect(() => {
|
|
80
|
+
* groupedRef.current.config = {
|
|
81
|
+
* label: 'Retention by cohort and program',
|
|
82
|
+
* gridMax: 'auto',
|
|
83
|
+
* valueFormat: 'amount',
|
|
84
|
+
* categoryAxisLabel: 'Cohort',
|
|
85
|
+
* valueAxisLabel: 'Students',
|
|
86
|
+
* showLegend: 'bottom',
|
|
87
|
+
* };
|
|
88
|
+
* groupedRef.current.data = [
|
|
89
|
+
* { barLegend: 'Biology', amount: 120, groupName: '2022', popoverTitle: 'Biology — 2022', popoverText: '120 students retained' },
|
|
90
|
+
* { barLegend: 'English', amount: 95, groupName: '2022', popoverTitle: 'English — 2022', popoverText: '95 students retained' },
|
|
91
|
+
* { barLegend: 'History', amount: 80, groupName: '2022', popoverTitle: 'History — 2022', popoverText: '80 students retained' },
|
|
92
|
+
* { barLegend: 'Biology', amount: 135, groupName: '2023', popoverTitle: 'Biology — 2023', popoverText: '135 students retained' },
|
|
93
|
+
* { barLegend: 'English', amount: 110, groupName: '2023', popoverTitle: 'English — 2023', popoverText: '110 students retained' },
|
|
94
|
+
* { barLegend: 'History', amount: 72, groupName: '2023', popoverTitle: 'History — 2023', popoverText: '72 students retained' },
|
|
95
|
+
* ];
|
|
96
|
+
* }, []);
|
|
97
|
+
*
|
|
98
|
+
* <WmChartBar ref={groupedRef} />
|
|
99
|
+
*
|
|
100
|
+
* @category Data Visualization
|
|
101
|
+
* @displayName Bar Chart
|
|
102
|
+
*/
|
|
3
103
|
export declare class ChartBar {
|
|
4
104
|
el: HTMLWmChartBarElement;
|
|
5
105
|
private barAreaEl;
|
|
@@ -8,14 +108,45 @@ export declare class ChartBar {
|
|
|
8
108
|
private gridMax;
|
|
9
109
|
private isGrouped;
|
|
10
110
|
private legendData;
|
|
111
|
+
/**
|
|
112
|
+
* @description Chart configuration object. Set via JavaScript property — not an HTML
|
|
113
|
+
* attribute. See the `ChartConfig` interface for the full list of options (label, gridMax,
|
|
114
|
+
* valueFormat, colors, showLegend, etc.).
|
|
115
|
+
*/
|
|
11
116
|
config?: ChartConfig;
|
|
117
|
+
/**
|
|
118
|
+
* @description Array of data items to render. Set via JavaScript property — not an HTML
|
|
119
|
+
* attribute. Each item must include at least `barLegend` and `amount`; grouped charts also
|
|
120
|
+
* require `groupName`. See the `ChartData` interface.
|
|
121
|
+
*/
|
|
12
122
|
data?: ChartData[];
|
|
123
|
+
/**
|
|
124
|
+
* @description When true, bar values are included in the legend and keyboard interaction
|
|
125
|
+
* instructions are removed from the DOM — suitable for printed output. Takes precedence over
|
|
126
|
+
* `config.printMode`.
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
13
129
|
printMode?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* @description When true, applies a hatching pattern fill to bars in addition to color,
|
|
132
|
+
* improving distinguishability for users with color vision deficiencies. Takes precedence
|
|
133
|
+
* over `config.patternMode`.
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
14
136
|
patternMode?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* @description Optional secondary text displayed beneath the chart label. Takes precedence
|
|
139
|
+
* over `config.subinfo`.
|
|
140
|
+
*/
|
|
15
141
|
subinfo?: string;
|
|
16
142
|
processedData: ProcessedChartDataGrouped;
|
|
17
143
|
gridInfo?: ChartGridInfo;
|
|
18
144
|
isKeying: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
* @description Internal signal used to synchronize bar highlight state with an external
|
|
148
|
+
* wm-chart-legend — not for application use.
|
|
149
|
+
*/
|
|
19
150
|
wmChartBarHighlighted: EventEmitter<{
|
|
20
151
|
idx: number;
|
|
21
152
|
}>;
|
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
import { ChartConfig, ChartData, ProcessedChartData, ChartGridInfo, ProcessedChartDataGrouped } from "../../../global/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Renders a vertical column chart for comparing values across nominal categories or showing
|
|
5
|
+
* distribution across interval/ratio ranges. Data and configuration are set via JavaScript
|
|
6
|
+
* properties (`chart.config` and `chart.data`) — not HTML attributes. Supports single-color,
|
|
7
|
+
* discrete palette, semantic palette, and grouped columns.
|
|
8
|
+
*
|
|
9
|
+
* **Preferred** over wm-chart's bar subtypes for comparison and distribution use cases.
|
|
10
|
+
* Use this component (or wm-chart-bar) instead of `<wm-chart chart-type="bar*">`. When
|
|
11
|
+
* columns exceed available width, the chart scrolls horizontally.
|
|
12
|
+
*
|
|
13
|
+
* @keyboardInteraction
|
|
14
|
+
* - **Tab**: Enters the chart wrapper.
|
|
15
|
+
* - **Arrow Down / Right**: Focuses the first column; subsequent presses cycle to the next.
|
|
16
|
+
* - **Arrow Up / Left**: Cycles to the previous column.
|
|
17
|
+
* - **Enter**: Activates the popover button when the popover is open.
|
|
18
|
+
* - **Escape**: Closes the open popover.
|
|
19
|
+
* - **Tab** (from within): Exits the chart and clears focus.
|
|
20
|
+
*
|
|
21
|
+
* @accessibility
|
|
22
|
+
* - `config.label` is required — used as the chart's `aria-label`.
|
|
23
|
+
* - Each column receives an `aria-label` composed of the category axis label, group name (if
|
|
24
|
+
* grouped), bar legend, and display value.
|
|
25
|
+
* - The chart renders with `role="application"` and `aria-roledescription="Interactive chart"`.
|
|
26
|
+
* - In `print-mode`, keyboard interaction instructions are removed from the DOM.
|
|
27
|
+
*
|
|
28
|
+
* @usageNotes
|
|
29
|
+
* - Set `id` on the element to use with an external `wm-chart-legend` via `chart-ids`.
|
|
30
|
+
* - Use `print-width` to fix chart width for exported PDFs or print stylesheets (accepts `px`,
|
|
31
|
+
* `in`, or `cm`). The chart will wrap columns across multiple plots when they exceed the
|
|
32
|
+
* available `print-width`.
|
|
33
|
+
* - For grouped charts, each `ChartData` item must include a `groupName` field.
|
|
34
|
+
*
|
|
35
|
+
* @example {html} Single-color column chart
|
|
36
|
+
* <wm-chart-column id="enrollment-chart"></wm-chart-column>
|
|
37
|
+
* <script>
|
|
38
|
+
* const chart = document.querySelector('#enrollment-chart');
|
|
39
|
+
* chart.config = { label: 'Enrollment by term', gridMax: 'auto', valueFormat: 'amount',
|
|
40
|
+
* categoryAxisLabel: 'Term', valueAxisLabel: 'Students' };
|
|
41
|
+
* chart.data = [{ barLegend: 'Fall 2023', amount: 310 }, { barLegend: 'Spring 2024', amount: 280 }];
|
|
42
|
+
* </script>
|
|
43
|
+
*
|
|
44
|
+
* @example {react} Single-color column chart
|
|
45
|
+
* <WmChartColumn ref={chartRef} />
|
|
46
|
+
* // In useEffect: chartRef.current.config = {...}; chartRef.current.data = [...];
|
|
47
|
+
*
|
|
48
|
+
* @example {html} Grouped column chart
|
|
49
|
+
* <wm-chart-column id="grouped-chart"></wm-chart-column>
|
|
50
|
+
* <script>
|
|
51
|
+
* const chart = document.querySelector('#grouped-chart');
|
|
52
|
+
* chart.config = { label: 'Enrollment by term and program', gridMax: 'auto',
|
|
53
|
+
* showLegend: 'bottom' };
|
|
54
|
+
* chart.data = [
|
|
55
|
+
* { barLegend: 'Biology', amount: 120, groupName: 'Fall 2023' },
|
|
56
|
+
* { barLegend: 'English', amount: 95, groupName: 'Fall 2023' },
|
|
57
|
+
* ];
|
|
58
|
+
* </script>
|
|
59
|
+
*
|
|
60
|
+
* @example {react} Grouped column chart
|
|
61
|
+
* <WmChartColumn ref={chartRef} />
|
|
62
|
+
* // In useEffect: chartRef.current.config = {...}; chartRef.current.data = [...];
|
|
63
|
+
*
|
|
64
|
+
* @category Data Visualization
|
|
65
|
+
* @displayName Column Chart
|
|
66
|
+
*/
|
|
3
67
|
export declare class ChartColumn {
|
|
4
68
|
el: HTMLWmChartColumnElement;
|
|
5
69
|
private popoverEl;
|
|
@@ -8,17 +72,53 @@ export declare class ChartColumn {
|
|
|
8
72
|
private isGrouped;
|
|
9
73
|
private legendData;
|
|
10
74
|
private plotColumnWidth;
|
|
75
|
+
/**
|
|
76
|
+
* @description Chart configuration object. Set via JavaScript property — not an HTML
|
|
77
|
+
* attribute. See the `ChartConfig` interface for the full list of options (label, gridMax,
|
|
78
|
+
* valueFormat, colors, showLegend, etc.).
|
|
79
|
+
*/
|
|
11
80
|
config?: ChartConfig;
|
|
81
|
+
/**
|
|
82
|
+
* @description Array of data items to render. Set via JavaScript property — not an HTML
|
|
83
|
+
* attribute. Each item must include at least `barLegend` and `amount`; grouped charts also
|
|
84
|
+
* require `groupName`. See the `ChartData` interface.
|
|
85
|
+
*/
|
|
12
86
|
data?: ChartData[];
|
|
87
|
+
/**
|
|
88
|
+
* @description Fixed chart width for print or PDF export. Accepts `px`, `in`, or `cm` (e.g.
|
|
89
|
+
* `"7.5in"`). When set alongside `print-mode` or during `window.print()`, columns that
|
|
90
|
+
* exceed the available width wrap across multiple plot rows.
|
|
91
|
+
*/
|
|
13
92
|
printWidth?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @description When true, column values are included in the legend and keyboard interaction
|
|
95
|
+
* instructions are removed from the DOM — suitable for printed output. Takes precedence over
|
|
96
|
+
* `config.printMode`.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
14
99
|
printMode?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @description When true, applies a hatching pattern fill to columns in addition to color,
|
|
102
|
+
* improving distinguishability for users with color vision deficiencies. Takes precedence
|
|
103
|
+
* over `config.patternMode`.
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
15
106
|
patternMode?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* @description Optional secondary text displayed beneath the chart label. Takes precedence
|
|
109
|
+
* over `config.subinfo`.
|
|
110
|
+
*/
|
|
16
111
|
subinfo?: string;
|
|
17
112
|
processedData: ProcessedChartDataGrouped;
|
|
18
113
|
gridInfo?: ChartGridInfo;
|
|
19
114
|
isKeying: boolean;
|
|
20
115
|
private plotDivisions;
|
|
21
116
|
private userIsPrinting;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
* @description Internal signal used to synchronize column highlight state with an external
|
|
120
|
+
* wm-chart-legend — not for application use.
|
|
121
|
+
*/
|
|
22
122
|
wmChartBarHighlighted: EventEmitter<{
|
|
23
123
|
idx: number;
|
|
24
124
|
}>;
|
|
@@ -1,16 +1,93 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
import { ProcessedChartData } from "../../../global/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* External legend component for wm-chart-bar and wm-chart-column. Retrieves color and label
|
|
5
|
+
* data from one or more charts via element IDs, allowing a single legend to serve multiple
|
|
6
|
+
* charts. Hidden from screen readers — relevant data is announced when the user interacts with
|
|
7
|
+
* the associated chart directly.
|
|
8
|
+
*
|
|
9
|
+
* For simple single-chart scenarios, the `config.showLegend` option on wm-chart-bar or
|
|
10
|
+
* wm-chart-column renders an internal legend without requiring this element. Use
|
|
11
|
+
* wm-chart-legend when sharing one legend across multiple charts or when external placement
|
|
12
|
+
* is required.
|
|
13
|
+
*
|
|
14
|
+
* @usageNotes
|
|
15
|
+
* - Assign an `id` to each chart and pass those IDs (space-separated) to `chart-ids`.
|
|
16
|
+
* - Clicking or hovering a legend item highlights the corresponding bar(s) in all associated
|
|
17
|
+
* charts.
|
|
18
|
+
*
|
|
19
|
+
* @example {html} Shared legend for two charts
|
|
20
|
+
* <wm-chart-legend chart-ids="chart-a chart-b"></wm-chart-legend>
|
|
21
|
+
* <wm-chart-bar id="chart-a"></wm-chart-bar>
|
|
22
|
+
* <wm-chart-bar id="chart-b"></wm-chart-bar>
|
|
23
|
+
*
|
|
24
|
+
* @example {react} Shared legend for two charts
|
|
25
|
+
* const [activeIdx, setActiveIdx] = useState(null);
|
|
26
|
+
*
|
|
27
|
+
* const handleClick = (event) => {
|
|
28
|
+
* setActiveIdx(event.detail.idx);
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* <WmChartLegend chartIds="chart-a chart-b" onWmLegendItemClick={handleClick} />
|
|
32
|
+
* <WmChartBar id="chart-a" />
|
|
33
|
+
* <WmChartBar id="chart-b" />
|
|
34
|
+
*
|
|
35
|
+
* @example {html} Vertical orientation
|
|
36
|
+
* <wm-chart-legend chart-ids="my-chart" orientation="vertical"></wm-chart-legend>
|
|
37
|
+
*
|
|
38
|
+
* @example {react} Vertical orientation
|
|
39
|
+
* <WmChartLegend chartIds="my-chart" orientation="vertical" />
|
|
40
|
+
*
|
|
41
|
+
* @category Data Visualization
|
|
42
|
+
*/
|
|
3
43
|
export declare class ChartLegend {
|
|
4
44
|
el: HTMLWmChartLegendElement;
|
|
45
|
+
/**
|
|
46
|
+
* @description Space-separated list of element IDs of the wm-chart-bar or wm-chart-column
|
|
47
|
+
* elements this legend serves. The legend derives its color swatches and labels from these
|
|
48
|
+
* charts automatically.
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
5
51
|
chartIds: string;
|
|
52
|
+
/**
|
|
53
|
+
* @description Layout orientation of legend items.
|
|
54
|
+
* @default "horizontal"
|
|
55
|
+
*/
|
|
6
56
|
orientation: "horizontal" | "vertical";
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @description Processed chart data injected by the associated chart — not for application
|
|
60
|
+
* use.
|
|
61
|
+
*/
|
|
7
62
|
processedData: ProcessedChartData[];
|
|
63
|
+
/**
|
|
64
|
+
* @description When true, the print value for each item is shown next to its swatch in the
|
|
65
|
+
* legend — suitable for printed output.
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
8
68
|
printMode: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @description Pattern orientation injected by the associated chart to align swatch hatching
|
|
72
|
+
* with bar orientation — not for application use.
|
|
73
|
+
*/
|
|
9
74
|
patternMode?: "vertical" | "horizontal";
|
|
10
75
|
private persistentHighlightIdx;
|
|
76
|
+
/**
|
|
77
|
+
* @description Fires when the user clicks a legend item. The associated chart highlights
|
|
78
|
+
* the corresponding bar(s) and fades all others.
|
|
79
|
+
* @eventDetails {{ idx: number }} idx — zero-based index of the clicked legend item, or
|
|
80
|
+
* `-1` to clear all highlights.
|
|
81
|
+
*/
|
|
11
82
|
wmLegendItemClick: EventEmitter<{
|
|
12
83
|
idx: number;
|
|
13
84
|
}>;
|
|
85
|
+
/**
|
|
86
|
+
* @description Fires when the user hovers over a legend item. The associated chart
|
|
87
|
+
* highlights the corresponding bar(s) and fades all others.
|
|
88
|
+
* @eventDetails {{ idx: number }} idx — zero-based index of the hovered legend item, or
|
|
89
|
+
* `-1` to clear all highlights.
|
|
90
|
+
*/
|
|
14
91
|
wmLegendItemHover: EventEmitter<{
|
|
15
92
|
idx: number;
|
|
16
93
|
}>;
|