@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,114 @@
|
|
|
1
|
+
### Pagination
|
|
2
|
+
- **Element:** `<wm-pagination>`
|
|
3
|
+
|
|
4
|
+
**Purpose:** Pagination controls for navigating large data sets. Renders a full page-number strip on
|
|
5
|
+
wider viewports and a minimal prev/next/first/last layout on narrow viewports. Does not
|
|
6
|
+
render at all when the total item count fits on a single page.
|
|
7
|
+
|
|
8
|
+
**When to use:**
|
|
9
|
+
|
|
10
|
+
- **Breaking a large dataset into discrete pages** -- when a table, list, or grid contains too many items to display at once and the application loads them in chunks, use Pagination to give users explicit control over which page they're viewing.
|
|
11
|
+
- **Displaying multiple independent paginated datasets on the same page** -- when a page contains more than one paginated section, use the label property on each Pagination instance to give each a distinct accessible name (e.g., "Students pagination" vs. "Courses pagination").
|
|
12
|
+
|
|
13
|
+
**Do not use for:**
|
|
14
|
+
|
|
15
|
+
- **In-page section or tab switching** -- Pagination is for moving through chunks of a dataset, not for switching between views or content sections; use wm-tabs for tab-style content switching within a page.
|
|
16
|
+
- **Small datasets that can be displayed in full** -- if all items can be reasonably displayed at once without performance or usability concerns, Pagination adds unnecessary navigation overhead; only paginate when the volume genuinely warrants it.
|
|
17
|
+
- **Sequential multi-step workflows** -- if the user is progressing through ordered steps that must be completed in sequence, use a stepper pattern instead; Pagination implies unrestricted movement between any page in any order.
|
|
18
|
+
|
|
19
|
+
**Variants / types:**
|
|
20
|
+
|
|
21
|
+
- `is-large-size="true"` -- larger display with more prominent page numbers
|
|
22
|
+
- `is-large-size="false" (default)` -- compact display
|
|
23
|
+
|
|
24
|
+
**Usage notes:**
|
|
25
|
+
|
|
26
|
+
- `current-page`, `total-items`, and `items-per-page` are all required; a missing value
|
|
27
|
+
throws an error on load.
|
|
28
|
+
- Listen to `wmPaginationPageClicked` and read `event.target.value` to get the selected
|
|
29
|
+
page number. `event.target.value` is a string -- wrap with `Number()` before storing.
|
|
30
|
+
- The component does not manage data -- it only reports which page was selected.
|
|
31
|
+
- When multiple pagination instances appear on the same page, give each a unique `label`
|
|
32
|
+
to disambiguate the `<nav>` landmark for screen readers, and drive each from independent state.
|
|
33
|
+
|
|
34
|
+
**Props:**
|
|
35
|
+
- `current-page` -- The currently active page number. Update this prop in response to
|
|
36
|
+
`wmPaginationPageClicked` to keep the component in sync with your data. _(required; default: `1`)_
|
|
37
|
+
- `items-per-page` -- Number of items displayed per page. Used with `total-items` to calculate
|
|
38
|
+
the total page count. _(required)_
|
|
39
|
+
- `label` -- Accessible label for the `<nav>` element. Defaults to `"Pagination navigation"`.
|
|
40
|
+
Override when multiple pagination instances appear on the same page (e.g. `"Search results"`). _(default: `""`)_
|
|
41
|
+
- `total-items` -- Total number of items across all pages. Used with `items-per-page` to
|
|
42
|
+
calculate the total page count. _(required)_
|
|
43
|
+
- `value` -- The page number selected by the most recent user interaction. Read
|
|
44
|
+
`event.target.value` in the `wmPaginationPageClicked` handler to get the selected page. _(default: `1`)_
|
|
45
|
+
|
|
46
|
+
**Events:**
|
|
47
|
+
- `wmPaginationPageClicked` -- Fires when the user clicks a page number, previous, or next button.
|
|
48
|
+
Read `event.target.value` to get the selected page number, then update `current-page`
|
|
49
|
+
and re-render your data.
|
|
50
|
+
|
|
51
|
+
**Required setup:**
|
|
52
|
+
|
|
53
|
+
- Handle `wmPaginationPageClicked` by reading `event.target.value` -- a string, so convert it to
|
|
54
|
+
a number -- and writing it to `current-page`.
|
|
55
|
+
- Set `total-items` and `items-per-page` from the data you are paging; together they determine the
|
|
56
|
+
page count.
|
|
57
|
+
- Share one page state between paginations rendered above and below the same table.
|
|
58
|
+
|
|
59
|
+
**Accessibility:**
|
|
60
|
+
|
|
61
|
+
- Rendered as a `<nav>` element with an `aria-label` that includes the current page and
|
|
62
|
+
visible item range, announced to screen readers on load.
|
|
63
|
+
- An `aria-live` region announces the new current page when navigation occurs.
|
|
64
|
+
- Disabled previous/next buttons shift focus to the nearest enabled button automatically.
|
|
65
|
+
- Current page button carries `aria-current="page"`.
|
|
66
|
+
|
|
67
|
+
**Related components:**
|
|
68
|
+
|
|
69
|
+
- `<wm-tabs>` -- if the goal is switching between distinct content views or sections within a page rather than moving through pages of a dataset, use Tabs; Pagination is specifically for dataset paging, not view switching.
|
|
70
|
+
- `<wm-search>` -- if the goal is reducing a large dataset by filtering rather than paging through it, use Search or other filter inputs; filtering reduces the set, paging navigates it.
|
|
71
|
+
- Stepper pattern -- if users are progressing through ordered steps that must be completed sequentially, use a stepper rather than Pagination; Pagination implies unrestricted movement between any page in any order.
|
|
72
|
+
|
|
73
|
+
**Code example:**
|
|
74
|
+
|
|
75
|
+
_Basic pagination_
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<wm-pagination current-page="1" total-items="150" items-per-page="25"></wm-pagination>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
_Basic pagination_
|
|
82
|
+
|
|
83
|
+
```react
|
|
84
|
+
// event.target.value is a string -- use Number() when storing as a number.
|
|
85
|
+
const [currentPage, setCurrentPage] = useState(1);
|
|
86
|
+
|
|
87
|
+
<WmPagination
|
|
88
|
+
currentPage={currentPage}
|
|
89
|
+
totalItems={150}
|
|
90
|
+
itemsPerPage={25}
|
|
91
|
+
onWmPaginationPageClicked={(e) => setCurrentPage(Number(e.target.value))} />
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
_With accessible label_
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<wm-pagination label="Search results" current-page="1" total-items="80" items-per-page="10">
|
|
98
|
+
</wm-pagination>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
_Multiple instances with independent state_
|
|
102
|
+
|
|
103
|
+
```react
|
|
104
|
+
// Give each instance a unique label to disambiguate the nav landmark for screen readers.
|
|
105
|
+
// Drive each from its own state variable so they page independently.
|
|
106
|
+
const [page1, setPage1] = useState(1);
|
|
107
|
+
const [page2, setPage2] = useState(1);
|
|
108
|
+
|
|
109
|
+
<WmPagination currentPage={page1} totalItems={150} itemsPerPage={10}
|
|
110
|
+
onWmPaginationPageClicked={(e) => setPage1(Number(e.target.value))} />
|
|
111
|
+
|
|
112
|
+
<WmPagination label="Search results" currentPage={page2} totalItems={80} itemsPerPage={10}
|
|
113
|
+
onWmPaginationPageClicked={(e) => setPage2(Number(e.target.value))} />
|
|
114
|
+
```
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
### Progress Indicator
|
|
2
|
+
- **Element:** `<wm-progress-indicator>`
|
|
3
|
+
|
|
4
|
+
**Purpose:** Single progress indicator used inside a wm-progress-monitor. Renders the binary completion
|
|
5
|
+
data for one category as either a doughnut chart (wide layout) or a horizontal bar (narrow
|
|
6
|
+
layout), switching automatically based on the parent monitor's breakpoint.
|
|
7
|
+
|
|
8
|
+
Must contain EXACTLY TWO wm-progress-slice children -- one for the "complete" state and one
|
|
9
|
+
for the "incomplete" state.
|
|
10
|
+
|
|
11
|
+
**When to use:**
|
|
12
|
+
|
|
13
|
+
- **Tracking binary completion** -- when each metric has exactly two states (done vs. not done) and the goal is to show how far along it is.
|
|
14
|
+
- **Several completion metrics together** -- render one `wm-progress-indicator` per metric to show them as a related set that reflows responsively.
|
|
15
|
+
|
|
16
|
+
**Do not use for:**
|
|
17
|
+
|
|
18
|
+
- **More than two states** -- for three or more states (e.g., Not Started / In Progress / Complete) and a composition breakdown, use `wm-chart-stack` for a horizontal bar chart, or `wm-chart` for a doughnut chart.
|
|
19
|
+
- **Comparing independent values across categories** -- use `wm-chart-bar` or `wm-chart-column`.
|
|
20
|
+
- **Data changing over time** -- use `wm-line-chart`.
|
|
21
|
+
|
|
22
|
+
**Variants / types:**
|
|
23
|
+
|
|
24
|
+
- **Doughnut layout** -- indicators shown as doughnuts in a horizontal row above the breakpoint.
|
|
25
|
+
- **Bar layout** -- indicators collapse to horizontal bars in a vertical stack below the breakpoint; `group-legend` is shown only in this mode.
|
|
26
|
+
- **Single vs. multiple indicators** -- one or many `wm-progress-indicator` children.
|
|
27
|
+
- **Custom breakpoint** -- control the doughnut/bar switch with a unit-less indicator count or an exact pixel value.
|
|
28
|
+
|
|
29
|
+
> **Strict constraint:** each `wm-progress-indicator` must have exactly two `wm-progress-slice` children -- one for the "complete" state and one for the "incomplete" state.
|
|
30
|
+
|
|
31
|
+
**Usage notes:**
|
|
32
|
+
|
|
33
|
+
- Always used as a direct child of wm-progress-monitor.
|
|
34
|
+
- `label` is required for accessibility.
|
|
35
|
+
- The optional `completion-message` is displayed inside the doughnut when the first slice
|
|
36
|
+
reaches 100%.
|
|
37
|
+
|
|
38
|
+
**Props:**
|
|
39
|
+
- `completion-message` -- Text displayed inside the doughnut ring when the completion slice reaches
|
|
40
|
+
100%.
|
|
41
|
+
- `label` -- Accessible label for this indicator. Required for accessibility -- used as the
|
|
42
|
+
`aria-label` on the chart container and as the visual chart label. _(required)_
|
|
43
|
+
- `print-mode` -- When true, slice values are included in the legend and keyboard interaction
|
|
44
|
+
instructions are removed from the DOM -- suitable for printed output. _(default: `false`)_
|
|
45
|
+
- `print-mode-format` -- Format for legend values when `print-mode` is enabled. _(type: `"amount" | "percentage"`; default: `"amount"`)_
|
|
46
|
+
- `show-legend` -- Show or hide the legend. The legend is still read by screen readers
|
|
47
|
+
regardless of this setting. _(default: `true`)_
|
|
48
|
+
- `subinfo` -- Optional secondary text displayed beneath the label.
|
|
49
|
+
|
|
50
|
+
**Related components:**
|
|
51
|
+
|
|
52
|
+
- `<wm-progress-indicator>` -- required child; one per tracked metric.
|
|
53
|
+
- `<wm-progress-slice>` -- required child of each indicator; exactly two per indicator.
|
|
54
|
+
- `<wm-chart>` -- for three-or-more-state progress or composition in a doughnut chart.
|
|
55
|
+
- `<wm-chart-stack>` -- for three-or-more-state progress or composition in a bar chart.
|
|
56
|
+
|
|
57
|
+
**Code example:**
|
|
58
|
+
|
|
59
|
+
_Progress indicator_
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<wm-progress-indicator label="Biology completion">
|
|
63
|
+
<wm-progress-slice legend="Completed" amount="200"></wm-progress-slice>
|
|
64
|
+
<wm-progress-slice legend="Not Completed" amount="100"></wm-progress-slice>
|
|
65
|
+
</wm-progress-indicator>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
_Progress indicator_
|
|
69
|
+
|
|
70
|
+
```react
|
|
71
|
+
<WmProgressIndicator label="Biology completion">
|
|
72
|
+
<WmProgressSlice legend="Completed" amount="200" />
|
|
73
|
+
<WmProgressSlice legend="Not Completed" amount="100" />
|
|
74
|
+
</WmProgressIndicator>
|
|
75
|
+
```
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
### Progress Monitor
|
|
2
|
+
- **Element:** `<wm-progress-monitor>`
|
|
3
|
+
|
|
4
|
+
**Purpose:** Container for one or more wm-progress-indicator elements, each showing binary completion
|
|
5
|
+
progress (e.g. "Completed" vs "Not Completed"). Above the layout breakpoint, indicators
|
|
6
|
+
render as doughnuts in a horizontal row; below it, they collapse into horizontal bars in a
|
|
7
|
+
vertical stack.
|
|
8
|
+
|
|
9
|
+
**Strict constraints:**
|
|
10
|
+
1. Each wm-progress-indicator must have EXACTLY TWO wm-progress-slice children -- one for
|
|
11
|
+
the "complete" state and one for the "incomplete" state.
|
|
12
|
+
2. This component is ONLY suitable for binary completion tracking. For more than two states,
|
|
13
|
+
general comparisons, composition breakdowns, or distributions, use wm-chart,
|
|
14
|
+
wm-chart-bar, or wm-chart-column.
|
|
15
|
+
|
|
16
|
+
**When to use:**
|
|
17
|
+
|
|
18
|
+
- **Tracking binary completion** -- when each metric has exactly two states (done vs. not done) and the goal is to show how far along it is.
|
|
19
|
+
- **Several completion metrics together** -- render one `wm-progress-indicator` per metric to show them as a related set that reflows responsively.
|
|
20
|
+
|
|
21
|
+
**Do not use for:**
|
|
22
|
+
|
|
23
|
+
- **More than two states** -- for three or more states (e.g., Not Started / In Progress / Complete) and a composition breakdown, use `wm-chart-stack` for a horizontal bar chart, or `wm-chart` for a doughnut chart.
|
|
24
|
+
- **Comparing independent values across categories** -- use `wm-chart-bar` or `wm-chart-column`.
|
|
25
|
+
- **Data changing over time** -- use `wm-line-chart`.
|
|
26
|
+
|
|
27
|
+
**Variants / types:**
|
|
28
|
+
|
|
29
|
+
- **Doughnut layout** -- indicators shown as doughnuts in a horizontal row above the breakpoint.
|
|
30
|
+
- **Bar layout** -- indicators collapse to horizontal bars in a vertical stack below the breakpoint; `group-legend` is shown only in this mode.
|
|
31
|
+
- **Single vs. multiple indicators** -- one or many `wm-progress-indicator` children.
|
|
32
|
+
- **Custom breakpoint** -- control the doughnut/bar switch with a unit-less indicator count or an exact pixel value.
|
|
33
|
+
|
|
34
|
+
> **Strict constraint:** each `wm-progress-indicator` must have exactly two `wm-progress-slice` children -- one for the "complete" state and one for the "incomplete" state.
|
|
35
|
+
|
|
36
|
+
**Usage notes:**
|
|
37
|
+
|
|
38
|
+
- The `wmProgressMonitorModeChange` event fires once on load and again whenever the layout
|
|
39
|
+
switches between `"doughnut"` and `"bar"`. Listen to it to synchronize any external UI
|
|
40
|
+
that depends on the current layout mode.
|
|
41
|
+
- `group-legend` is only shown in bar mode. Provide two comma-separated keys in
|
|
42
|
+
complete/incomplete order (e.g. `"Completed,Not Completed"`). Keys cannot contain commas.
|
|
43
|
+
|
|
44
|
+
**Props:**
|
|
45
|
+
- `bar-labels-width` -- CSS width of the indicator labels when in bar layout mode (e.g. `"180px"`).
|
|
46
|
+
- `breakpoint` -- Controls when indicators switch between doughnut (horizontal row) and bar
|
|
47
|
+
(vertical stack) layouts. Accepts a unit-less number (minimum number of indicators to
|
|
48
|
+
show side-by-side -- e.g. `4` -> 1200 px) or an exact pixel value (e.g. `"900px"`).
|
|
49
|
+
Defaults to the sum of all indicator widths -- the component tries to fit all on one row
|
|
50
|
+
and collapses to bars when it cannot. _(type: `number | string`)_
|
|
51
|
+
- `group-legend` -- Two comma-separated legend keys in complete/incomplete order, displayed only
|
|
52
|
+
in bar layout mode (e.g. `"Completed,Not Completed"`). Keys cannot contain commas.
|
|
53
|
+
|
|
54
|
+
**Events:**
|
|
55
|
+
- `wmProgressMonitorModeChange` -- Fires once on load and again whenever the layout switches between `"doughnut"`
|
|
56
|
+
and `"bar"` modes. Use this to synchronize external UI that depends on the current layout. Detail: ``"doughnut" | "bar"` -- the new layout mode.`
|
|
57
|
+
|
|
58
|
+
**Related components:**
|
|
59
|
+
|
|
60
|
+
- `<wm-progress-indicator>` -- required child; one per tracked metric.
|
|
61
|
+
- `<wm-progress-slice>` -- required child of each indicator; exactly two per indicator.
|
|
62
|
+
- `<wm-chart>` -- for three-or-more-state progress or composition in a doughnut chart.
|
|
63
|
+
- `<wm-chart-stack>` -- for three-or-more-state progress or composition in a bar chart.
|
|
64
|
+
|
|
65
|
+
**Code example:**
|
|
66
|
+
|
|
67
|
+
_Progress monitor_
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<wm-progress-monitor group-legend="Completed,Not Completed">
|
|
71
|
+
<wm-progress-indicator label="Biology">
|
|
72
|
+
<wm-progress-slice legend="Completed" amount="200"
|
|
73
|
+
popover-title="200 students" popover-text="Completed all requirements"></wm-progress-slice>
|
|
74
|
+
<wm-progress-slice legend="Not Completed" amount="100"
|
|
75
|
+
popover-title="100 students" popover-text="Have not completed all requirements"></wm-progress-slice>
|
|
76
|
+
</wm-progress-indicator>
|
|
77
|
+
</wm-progress-monitor>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
_Progress monitor_
|
|
81
|
+
|
|
82
|
+
```react
|
|
83
|
+
// wmProgressMonitorModeChange fires on load and whenever the layout switches.
|
|
84
|
+
// event.detail is "doughnut" | "bar".
|
|
85
|
+
const [layoutMode, setLayoutMode] = useState("");
|
|
86
|
+
|
|
87
|
+
<WmProgressMonitor
|
|
88
|
+
groupLegend="Completed,Not Completed"
|
|
89
|
+
onWmProgressMonitorModeChange={(e) => setLayoutMode(e.detail)}
|
|
90
|
+
>
|
|
91
|
+
<WmProgressIndicator label="Biology">
|
|
92
|
+
<WmProgressSlice legend="Completed" amount="200"
|
|
93
|
+
popoverTitle="200 students" popoverText="Completed all requirements" />
|
|
94
|
+
<WmProgressSlice legend="Not Completed" amount="100"
|
|
95
|
+
popoverTitle="100 students" popoverText="Have not completed all requirements" />
|
|
96
|
+
</WmProgressIndicator>
|
|
97
|
+
<WmProgressIndicator label="English">
|
|
98
|
+
<WmProgressSlice legend="Completed" amount="160"
|
|
99
|
+
popoverTitle="160 students" popoverText="Completed all requirements" />
|
|
100
|
+
<WmProgressSlice legend="Not Completed" amount="40"
|
|
101
|
+
popoverTitle="40 students" popoverText="Have not completed all requirements" />
|
|
102
|
+
</WmProgressIndicator>
|
|
103
|
+
</WmProgressMonitor>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
_Custom breakpoint_
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<wm-progress-monitor breakpoint="600px" group-legend="Done,Pending">
|
|
110
|
+
<!-- indicators -->
|
|
111
|
+
</wm-progress-monitor>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
_Custom breakpoint_
|
|
115
|
+
|
|
116
|
+
```react
|
|
117
|
+
<WmProgressMonitor breakpoint="600px" groupLegend="Done,Pending">
|
|
118
|
+
{/* indicators *\/}
|
|
119
|
+
</WmProgressMonitor>
|
|
120
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
### Progress Slice
|
|
2
|
+
- **Element:** `<wm-progress-slice>`
|
|
3
|
+
|
|
4
|
+
**Purpose:** Data slice for a wm-progress-indicator. Represents one state (complete or incomplete) in
|
|
5
|
+
a binary progress chart. Always used as a direct child of wm-progress-indicator.
|
|
6
|
+
|
|
7
|
+
Each wm-progress-indicator must contain EXACTLY TWO wm-progress-slice elements.
|
|
8
|
+
|
|
9
|
+
**When to use:**
|
|
10
|
+
|
|
11
|
+
- **Tracking binary completion** -- when each metric has exactly two states (done vs. not done) and the goal is to show how far along it is.
|
|
12
|
+
- **Several completion metrics together** -- render one `wm-progress-indicator` per metric to show them as a related set that reflows responsively.
|
|
13
|
+
|
|
14
|
+
**Do not use for:**
|
|
15
|
+
|
|
16
|
+
- **More than two states** -- for three or more states (e.g., Not Started / In Progress / Complete) and a composition breakdown, use `wm-chart-stack` for a horizontal bar chart, or `wm-chart` for a doughnut chart.
|
|
17
|
+
- **Comparing independent values across categories** -- use `wm-chart-bar` or `wm-chart-column`.
|
|
18
|
+
- **Data changing over time** -- use `wm-line-chart`.
|
|
19
|
+
|
|
20
|
+
**Variants / types:**
|
|
21
|
+
|
|
22
|
+
- **Doughnut layout** -- indicators shown as doughnuts in a horizontal row above the breakpoint.
|
|
23
|
+
- **Bar layout** -- indicators collapse to horizontal bars in a vertical stack below the breakpoint; `group-legend` is shown only in this mode.
|
|
24
|
+
- **Single vs. multiple indicators** -- one or many `wm-progress-indicator` children.
|
|
25
|
+
- **Custom breakpoint** -- control the doughnut/bar switch with a unit-less indicator count or an exact pixel value.
|
|
26
|
+
|
|
27
|
+
> **Strict constraint:** each `wm-progress-indicator` must have exactly two `wm-progress-slice` children -- one for the "complete" state and one for the "incomplete" state.
|
|
28
|
+
|
|
29
|
+
**Usage notes:**
|
|
30
|
+
|
|
31
|
+
- The first slice is treated as the "complete" state and the second as the "incomplete"
|
|
32
|
+
state for color and layout purposes.
|
|
33
|
+
- Use `popover-title`, `popover-text`, and `popover-button-text` to surface additional
|
|
34
|
+
context when the segment is focused or clicked.
|
|
35
|
+
|
|
36
|
+
**Props:**
|
|
37
|
+
- `amount` -- Numeric value for this slice as a string.
|
|
38
|
+
- `legend` -- Label for this slice in the legend and popovers. _(required)_
|
|
39
|
+
- `popover-button-text` -- Label for the action button in the data popover. When set, fires
|
|
40
|
+
`wmProgressIndicatorButtonTriggered` when clicked.
|
|
41
|
+
- `popover-text` -- Body text shown in the data popover when this segment is focused or clicked.
|
|
42
|
+
- `popover-title` -- Title text shown in the data popover when this segment is focused or clicked.
|
|
43
|
+
|
|
44
|
+
**Related components:**
|
|
45
|
+
|
|
46
|
+
- `<wm-progress-indicator>` -- required child; one per tracked metric.
|
|
47
|
+
- `<wm-progress-slice>` -- required child of each indicator; exactly two per indicator.
|
|
48
|
+
- `<wm-chart>` -- for three-or-more-state progress or composition in a doughnut chart.
|
|
49
|
+
- `<wm-chart-stack>` -- for three-or-more-state progress or composition in a bar chart.
|
|
50
|
+
|
|
51
|
+
**Code example:**
|
|
52
|
+
|
|
53
|
+
_Complete/incomplete pair_
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<wm-progress-slice legend="Completed" amount="200"
|
|
57
|
+
popover-title="200 students" popover-text="Completed all requirements"></wm-progress-slice>
|
|
58
|
+
<wm-progress-slice legend="Not Completed" amount="100"></wm-progress-slice>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
_Complete/incomplete pair_
|
|
62
|
+
|
|
63
|
+
```react
|
|
64
|
+
<WmProgressSlice legend="Completed" amount="200"
|
|
65
|
+
popoverTitle="200 students" popoverText="Completed all requirements" />
|
|
66
|
+
<WmProgressSlice legend="Not Completed" amount="100" />
|
|
67
|
+
```
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
### Search
|
|
2
|
+
- **Element:** `<wm-search>`
|
|
3
|
+
|
|
4
|
+
**Purpose:** Search input for filtering data by query. Two variants: `'basic'` for simple text
|
|
5
|
+
filtering, and `'find'` which adds prev/next result navigation buttons, a result count
|
|
6
|
+
("x of y results"), and a keyboard-accessible "jump to result" link. The component does
|
|
7
|
+
not filter data itself -- it exposes the user's query and result position via events and
|
|
8
|
+
properties for the application to handle.
|
|
9
|
+
|
|
10
|
+
**When to use:**
|
|
11
|
+
|
|
12
|
+
- **Instantly filtering a visible dataset as the user types** -- use the basic variant when the user is narrowing down a list, table, or set of cards and expects the content to respond immediately to their query. Ideal for smaller datasets where results update without performance concerns.
|
|
13
|
+
- **Locating and stepping through matches within a page or document** -- when the user needs to jump between individual matches (like a browser's find function), use the find variant, which provides previous/next navigation and an "x of y results" count.
|
|
14
|
+
- **Including search as part of a filter toolbar** -- Search is a valid data input for toolbar and side panel filter patterns when users have a clear idea of what they're looking for and the dataset is large enough that browsing alone is not practical.
|
|
15
|
+
- **Combining search with other filter inputs** -- Search pairs naturally with dropdowns, date pickers, and tag inputs in a toolbar or side panel; it narrows by text while other inputs narrow by category, date, or attribute simultaneously.
|
|
16
|
+
|
|
17
|
+
**Do not use for:**
|
|
18
|
+
|
|
19
|
+
- **Collecting a stored form value** -- Search is not a form input; it filters or locates content dynamically. If the user is typing a value to be saved as data (a name, identifier, or description), use wm-input instead.
|
|
20
|
+
- **Very large datasets with the basic variant without considering performance** -- instant filtering for large datasets may cause performance issues; consider a batch-apply approach with an explicit apply action instead.
|
|
21
|
+
- **Exploratory filtering where users do not have a specific target** -- Search is best when the user has a clear idea of what they want; for browsing by category or attribute, dropdowns and selects are more appropriate.
|
|
22
|
+
|
|
23
|
+
**Variants / types:**
|
|
24
|
+
|
|
25
|
+
- `search-type="basic"` -- simple filter that updates results in real time as the user types
|
|
26
|
+
- `search-type="find"` -- search-and-find with previous/next result navigation and a result count display; requires num-results, highlighted-id, and highlighted-name to be kept in sync
|
|
27
|
+
|
|
28
|
+
**Usage notes:**
|
|
29
|
+
|
|
30
|
+
- Both `label` and `placeholder` are required; the component logs a console error on load
|
|
31
|
+
if either is missing.
|
|
32
|
+
- Listen to the native `input` event for per-keystroke updates; `wmSearchValueChanged`
|
|
33
|
+
fires on blur only.
|
|
34
|
+
- For the `find` variant, listen to `wmSearchBrowseResults` and update `highlighted-id`
|
|
35
|
+
and `highlighted-name` after scrolling/highlighting the result in your data.
|
|
36
|
+
- The component does not perform filtering -- filtering logic must be implemented by the
|
|
37
|
+
application.
|
|
38
|
+
|
|
39
|
+
**Props:**
|
|
40
|
+
- `disabled` -- Disables the input, preventing all interaction. _(default: `false`)_
|
|
41
|
+
- `highlighted-id` -- `id` of the currently highlighted result element. Used as the `href` of the
|
|
42
|
+
jump-to-result skip-link. Required for the `find` variant for full accessibility. _(conditionally required: Required when `search-type="find"`.; default: `""`)_
|
|
43
|
+
- `highlighted-name` -- Visible text of the currently highlighted result. Appended to the screen
|
|
44
|
+
reader announcement after `wmSearchBrowseResults` fires. Required for the `find` variant
|
|
45
|
+
for full accessibility. _(type: `null | string`; conditionally required: Required when `search-type="find"`.; default: `null`)_
|
|
46
|
+
- `label` -- Accessible label for the `<input>` element. Required even when not visually
|
|
47
|
+
displayed. May match the placeholder text. _(required; default: `""`)_
|
|
48
|
+
- `num-results` -- Number of results matching the current query. Update this prop after
|
|
49
|
+
filtering to display "x of y results" (find variant) and announce the count to screen
|
|
50
|
+
readers. _(default: `0`)_
|
|
51
|
+
- `placeholder` -- Placeholder text displayed inside the empty input. _(required; default: `""`)_
|
|
52
|
+
- `search-type` -- Selects the search variant. `'basic'` renders a simple text input with a
|
|
53
|
+
result count. `'find'` adds prev/next navigation buttons and a jump-to-result skip-link. _(type: `"basic" | "find"`; default: `"basic"`)_
|
|
54
|
+
- `value` -- The current text typed by the user. Readable by the application at any time. _(default: `""`)_
|
|
55
|
+
|
|
56
|
+
**Events:**
|
|
57
|
+
- `wmSearchBrowseResults` -- Fires when the prev or next button is clicked in the `find` variant.
|
|
58
|
+
Update `highlighted-id` and `highlighted-name` in response to highlight the result in
|
|
59
|
+
your data. Detail: `{{ position: number }} position -- one-based index of the newly highlighted result.`
|
|
60
|
+
- `wmSearchValueChanged` -- Fires on blur when the input value has changed since the last blur. Use the
|
|
61
|
+
native `input` event for per-keystroke updates. Detail: `{{ value: string }} value -- the current input value at the time of blur.`
|
|
62
|
+
|
|
63
|
+
**Methods:**
|
|
64
|
+
- `updateValue(value: string) => Promise<void>`
|
|
65
|
+
|
|
66
|
+
**Required setup:**
|
|
67
|
+
|
|
68
|
+
- Filter your own data as the value changes and set `num-results`, which drives the
|
|
69
|
+
screen-reader result count.
|
|
70
|
+
- Handle `wmSearchValueChanged` (`event.detail` is `{ value }`) for the committed value; it fires
|
|
71
|
+
on blur. For filter-as-you-type, listen for the native `input` event as well.
|
|
72
|
+
- With `search-type="find"`, handle `wmSearchBrowseResults` (`event.detail` is `{ position }`,
|
|
73
|
+
one-based) and set `highlighted-id` and `highlighted-name` to the matching result.
|
|
74
|
+
|
|
75
|
+
**Accessibility:**
|
|
76
|
+
|
|
77
|
+
- `label` sets the `aria-label` on the underlying `<input>` -- it is required even when
|
|
78
|
+
the label text is not visually displayed.
|
|
79
|
+
- An `aria-live` region announces the result count after each input change and after
|
|
80
|
+
prev/next navigation in the `find` variant.
|
|
81
|
+
- In the `find` variant, `highlighted-id` is used as the `href` of the jump-to-result
|
|
82
|
+
skip-link that appears while the user is tabbing.
|
|
83
|
+
- **Keyboard:**
|
|
84
|
+
- **Tab**: Advances focus through the input and, in the `find` variant, the prev/next
|
|
85
|
+
buttons and the jump-to-result skip-link (visible only when tabbing with results present).
|
|
86
|
+
- **Shift+Tab**: Moves focus backward through the same elements.
|
|
87
|
+
- **Enter / Space**: Activates the focused prev/next buttons in the `find` variant.
|
|
88
|
+
|
|
89
|
+
**Related components:**
|
|
90
|
+
|
|
91
|
+
- `<wm-input>` -- if the user is typing a value to store as form data rather than to filter visible content, use Input; Search has no form submission semantics.
|
|
92
|
+
- `<wm-select>` with search property -- if the user is searching within a bounded dropdown list of options to make a selection, use Select's built-in search; `<wm-search>` is for filtering page-level content, not for narrowing selectable options.
|
|
93
|
+
- `<wm-tag-input>` -- if the user needs to search and then commit multiple selected values as discrete tags, Tag Input combines search-style filtering with multi-value selection; `<wm-search>` alone has no concept of committed selected values.
|
|
94
|
+
|
|
95
|
+
**Code example:**
|
|
96
|
+
|
|
97
|
+
_Basic search_
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
<wm-search label="Filter courses" placeholder="Search courses..."></wm-search>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
_Basic search_
|
|
104
|
+
|
|
105
|
+
```react
|
|
106
|
+
// wmSearchValueChanged fires on blur only -- use a native input event listener via ref
|
|
107
|
+
// for per-keystroke filtering. el.value reflects the current typed string.
|
|
108
|
+
const basicRef = useRef(null);
|
|
109
|
+
const [query, setQuery] = useState("");
|
|
110
|
+
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
const el = basicRef.current;
|
|
113
|
+
const handler = () => setQuery(el.value);
|
|
114
|
+
el.addEventListener("input", handler);
|
|
115
|
+
return () => el.removeEventListener("input", handler);
|
|
116
|
+
}, []);
|
|
117
|
+
|
|
118
|
+
const filtered = items.filter((c) => c.toLowerCase().includes(query.toLowerCase()));
|
|
119
|
+
|
|
120
|
+
<WmSearch ref={basicRef} label="Filter courses" placeholder="Search courses..."
|
|
121
|
+
numResults={filtered.length} />
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
_Search and find variant_
|
|
125
|
+
|
|
126
|
+
```html
|
|
127
|
+
<wm-search
|
|
128
|
+
search-type="find"
|
|
129
|
+
label="Find in page"
|
|
130
|
+
placeholder="Find..."
|
|
131
|
+
num-results="5"
|
|
132
|
+
highlighted-id="result-1"
|
|
133
|
+
highlighted-name="First result">
|
|
134
|
+
</wm-search>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
_Search and find variant_
|
|
138
|
+
|
|
139
|
+
```react
|
|
140
|
+
// The find variant navigates through matched results only.
|
|
141
|
+
// On input: filter items, set numResults, and highlight the first match.
|
|
142
|
+
// On wmSearchBrowseResults: use e.detail.position (1-based) to index into the filtered list.
|
|
143
|
+
// highlightedId must match the id of the corresponding DOM element.
|
|
144
|
+
// The component does not filter -- filtering logic is entirely the application's responsibility.
|
|
145
|
+
const findRef = useRef(null);
|
|
146
|
+
const [highlightedId, setHighlightedId] = useState("");
|
|
147
|
+
const [highlightedName, setHighlightedName] = useState("");
|
|
148
|
+
const [numFindResults, setNumFindResults] = useState(0);
|
|
149
|
+
const toId = (name) => name.toLowerCase().replace(/\s+/g, "-");
|
|
150
|
+
const filterItems = (value) =>
|
|
151
|
+
!value ? [] : items.filter((c) => c.toLowerCase().includes(value.toLowerCase()));
|
|
152
|
+
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
const el = findRef.current;
|
|
155
|
+
const handler = () => {
|
|
156
|
+
const results = filterItems(el.value);
|
|
157
|
+
setNumFindResults(results.length);
|
|
158
|
+
if (results.length) { setHighlightedId(toId(results[0])); setHighlightedName(results[0]); }
|
|
159
|
+
else { setHighlightedId(""); setHighlightedName(""); }
|
|
160
|
+
};
|
|
161
|
+
el.addEventListener("input", handler);
|
|
162
|
+
return () => el.removeEventListener("input", handler);
|
|
163
|
+
}, []);
|
|
164
|
+
|
|
165
|
+
const handleBrowseResults = (e) => {
|
|
166
|
+
const results = filterItems(findRef.current.value);
|
|
167
|
+
const item = results[e.detail.position - 1];
|
|
168
|
+
if (item) { setHighlightedId(toId(item)); setHighlightedName(item); }
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
<WmSearch ref={findRef} searchType="find" label="Find result" placeholder="Find..."
|
|
172
|
+
numResults={numFindResults} highlightedId={highlightedId} highlightedName={highlightedName}
|
|
173
|
+
onWmSearchBrowseResults={handleBrowseResults} />
|
|
174
|
+
{items.map((c) => (
|
|
175
|
+
<li key={c} id={toId(c)}
|
|
176
|
+
style={{ background: highlightedId === toId(c) ? "lightyellow" : "transparent" }}>
|
|
177
|
+
{c}
|
|
178
|
+
</li>
|
|
179
|
+
))}
|
|
180
|
+
```
|