@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
|
@@ -1,55 +1,236 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Dropdown list of options that allows single or multi-select. Functionally similar to the
|
|
4
|
+
* native HTML `<select>` element but with Ripple styling and richer features including
|
|
5
|
+
* multiselect, search filtering, and a Select All control. Composed of a parent wm-select
|
|
6
|
+
* element and wm-option children.
|
|
7
|
+
*
|
|
8
|
+
* @category Basic Controls
|
|
9
|
+
*
|
|
10
|
+
* @keyboardInteraction
|
|
11
|
+
* - **Closed button**: Space / Enter / Arrow Down opens the dropdown and focuses the first
|
|
12
|
+
* option; Arrow Up opens and focuses the last option.
|
|
13
|
+
* - **Open dropdown**: Arrow Up / Down navigate options; Home / End jump to first / last;
|
|
14
|
+
* typing a letter jumps to the first matching option.
|
|
15
|
+
* - **Single-select**: Enter / Space / click selects and closes.
|
|
16
|
+
* - **Multi-select**: Enter / Space / click toggles selection; Tab or Escape closes.
|
|
17
|
+
* - **Shift+Tab** (from options): Closes and returns focus to the trigger button.
|
|
18
|
+
*
|
|
19
|
+
* @accessibility
|
|
20
|
+
* - `label` is required even when `label-position` is `"none"` — it is used as the dropdown's
|
|
21
|
+
* ARIA accessible name.
|
|
22
|
+
* - The dropdown renders with `role="listbox"`. Each wm-option renders with `role="option"`.
|
|
23
|
+
* - `required-field` renders a visible asterisk; the ARIA required constraint is communicated
|
|
24
|
+
* via the label rather than `aria-required` because the listbox is in a sub-component.
|
|
25
|
+
* - Validation errors are announced via an `aria-live` region when `error-message` changes.
|
|
26
|
+
*
|
|
27
|
+
* @usageNotes
|
|
28
|
+
* - Single-select: has no `placeholder` prop — a selection must always be present, and the
|
|
29
|
+
* component warns in the console if no option is initially selected. Since there's no way
|
|
30
|
+
* to distinguish "the user selected the first option" from "no selection was made," use a
|
|
31
|
+
* null-value first option to represent the unselected state and keep the component
|
|
32
|
+
* revertible to "no option chosen." That option must not be disabled, and for
|
|
33
|
+
* accessibility/consistency its label should be limited to "None", "Select an option", or
|
|
34
|
+
* "--".
|
|
35
|
+
* - Multi-select: all options deselected on load is valid; use `placeholder` for that state.
|
|
36
|
+
* - `search` is best with 50 or fewer options — it filters by visible label text only.
|
|
37
|
+
* - `select-all` requires `multiple` to be set.
|
|
38
|
+
* - Selection state is maintained via the `selected` prop on each wm-option child.
|
|
39
|
+
* - To respond to selection changes, listen for `wmOptionSelected` (declared on wm-option but
|
|
40
|
+
* bubbles to wm-select). `event.detail` is the `HTMLWmOptionElement`; read `.value` or
|
|
41
|
+
* `.textContent` to get the selected value.
|
|
42
|
+
*
|
|
43
|
+
* @example {html} Single-select
|
|
44
|
+
* <wm-select label="Program">
|
|
45
|
+
* <wm-option selected>Select a program</wm-option>
|
|
46
|
+
* <wm-option>Biology</wm-option>
|
|
47
|
+
* <wm-option>English</wm-option>
|
|
48
|
+
* </wm-select>
|
|
49
|
+
*
|
|
50
|
+
* @example {react} Single-select
|
|
51
|
+
* const [program, setProgram] = useState('');
|
|
52
|
+
*
|
|
53
|
+
* // event.detail is the selected HTMLWmOptionElement
|
|
54
|
+
* const handleSelect = (event) => {
|
|
55
|
+
* setProgram(event.detail.value ?? event.detail.textContent);
|
|
56
|
+
* };
|
|
57
|
+
*
|
|
58
|
+
* <WmSelect label="Program" onWmOptionSelected={handleSelect}>
|
|
59
|
+
* <WmOption selected>Select a program</WmOption>
|
|
60
|
+
* <WmOption value="bio">Biology</WmOption>
|
|
61
|
+
* <WmOption value="eng">English</WmOption>
|
|
62
|
+
* </WmSelect>
|
|
63
|
+
*
|
|
64
|
+
* @example {html} Multi-select with search and Select All
|
|
65
|
+
* <wm-select label="Programs" multiple search select-all
|
|
66
|
+
* placeholder="Select programs">
|
|
67
|
+
* <wm-option value="bio">Biology</wm-option>
|
|
68
|
+
* <wm-option value="eng">English</wm-option>
|
|
69
|
+
* </wm-select>
|
|
70
|
+
*
|
|
71
|
+
* @example {react} Multi-select with search and Select All
|
|
72
|
+
* const [selected, setSelected] = useState([]);
|
|
73
|
+
*
|
|
74
|
+
* // event.detail is the HTMLWmOptionElement that was selected or deselected
|
|
75
|
+
* const handleSelect = (event) => {
|
|
76
|
+
* const value = event.detail.value ?? event.detail.textContent;
|
|
77
|
+
* setSelected((prev) => [...prev, value]);
|
|
78
|
+
* };
|
|
79
|
+
*
|
|
80
|
+
* const handleDeselect = (event) => {
|
|
81
|
+
* const value = event.detail.value ?? event.detail.textContent;
|
|
82
|
+
* setSelected((prev) => prev.filter((v) => v !== value));
|
|
83
|
+
* };
|
|
84
|
+
*
|
|
85
|
+
* <WmSelect
|
|
86
|
+
* label="Programs"
|
|
87
|
+
* multiple={true}
|
|
88
|
+
* search={true}
|
|
89
|
+
* selectAll={true}
|
|
90
|
+
* placeholder="Select programs"
|
|
91
|
+
* onWmOptionSelected={handleSelect}
|
|
92
|
+
* onWmOptionDeselected={handleDeselect}
|
|
93
|
+
* >
|
|
94
|
+
* <WmOption value="bio">Biology</WmOption>
|
|
95
|
+
* <WmOption value="eng">English</WmOption>
|
|
96
|
+
* </WmSelect>
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
2
99
|
export declare class Select {
|
|
3
100
|
el: HTMLWmSelectElement;
|
|
101
|
+
/**
|
|
102
|
+
* @description Disables the entire select component, preventing all interaction.
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
4
105
|
disabled: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* @description Overrides the maximum height of the options list. Accepts any valid CSS
|
|
108
|
+
* length value (e.g. `"20rem"`, `"300px"`).
|
|
109
|
+
* @default "200px"
|
|
110
|
+
*/
|
|
5
111
|
maxHeight: string;
|
|
112
|
+
/**
|
|
113
|
+
* @description Accessible label for the dropdown. Required even when `label-position` is
|
|
114
|
+
* `"none"` — used as the ARIA accessible name.
|
|
115
|
+
* @required
|
|
116
|
+
*/
|
|
6
117
|
label?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @description Position of the label relative to the dropdown button. `"none"` hides the
|
|
120
|
+
* label visually but keeps it accessible via ARIA.
|
|
121
|
+
* @default "top"
|
|
122
|
+
*/
|
|
7
123
|
labelPosition: "top" | "left" | "none";
|
|
124
|
+
/**
|
|
125
|
+
* @description Displays a required-field asterisk (*) next to the label.
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
8
128
|
requiredField: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* @description Puts the component in an error state and displays this message beneath the
|
|
131
|
+
* trigger button. Use for form validation feedback.
|
|
132
|
+
*/
|
|
9
133
|
errorMessage?: string;
|
|
134
|
+
/**
|
|
135
|
+
* @description Enables multiselect mode, allowing more than one option to be selected
|
|
136
|
+
* simultaneously.
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
10
139
|
multiple: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* @description Adds a search input inside the dropdown that filters visible options by label
|
|
142
|
+
* text. Compatible with both single and multiselect modes. Best with 50 or fewer options.
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
11
145
|
search: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* @description Adds a "Select All" / "Deselect All" toggle at the top of the dropdown.
|
|
148
|
+
* Has no effect unless `multiple` is also set.
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
12
151
|
selectAll: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* @description Text displayed in the trigger button in multiselect mode when no options are
|
|
154
|
+
* selected. Not applicable in single-select mode — use a null-value first option instead.
|
|
155
|
+
*/
|
|
13
156
|
placeholder: string;
|
|
157
|
+
/**
|
|
158
|
+
* @description Placeholder text displayed inside the search input when `search` is enabled.
|
|
159
|
+
*/
|
|
14
160
|
searchPlaceholder: string;
|
|
161
|
+
/**
|
|
162
|
+
* @description Text displayed in the trigger button in multiselect mode when every option
|
|
163
|
+
* is selected.
|
|
164
|
+
*/
|
|
15
165
|
allSelectedMessage: string;
|
|
166
|
+
/**
|
|
167
|
+
* @description Informational hint text rendered beneath the dropdown button. Use for
|
|
168
|
+
* supporting instructions or constraints.
|
|
169
|
+
*/
|
|
170
|
+
info?: string;
|
|
16
171
|
isExpanded: boolean;
|
|
172
|
+
isHidden: boolean;
|
|
173
|
+
openUp: boolean;
|
|
17
174
|
announcement: string;
|
|
175
|
+
/**
|
|
176
|
+
* @description Fires after the component has finished loading and is ready for interaction.
|
|
177
|
+
* Use this to read initial selection state or call methods.
|
|
178
|
+
*/
|
|
18
179
|
wmSelectDidLoad: EventEmitter<void>;
|
|
180
|
+
/**
|
|
181
|
+
* @description Fires when focus leaves the component entirely (not when moving between
|
|
182
|
+
* the trigger and an option within the dropdown).
|
|
183
|
+
*/
|
|
19
184
|
wmSelectBlurred: EventEmitter<void>;
|
|
185
|
+
/**
|
|
186
|
+
* @description Fires when the user clicks "Select All" in multiselect mode and all options
|
|
187
|
+
* become selected.
|
|
188
|
+
*/
|
|
20
189
|
wmSelectAllSelected: EventEmitter;
|
|
190
|
+
/**
|
|
191
|
+
* @description Fires when the user clicks "Deselect All" in multiselect mode and all
|
|
192
|
+
* options become deselected.
|
|
193
|
+
*/
|
|
21
194
|
wmSelectAllDeselected: EventEmitter;
|
|
22
195
|
private buttonEl;
|
|
23
|
-
private labelEl;
|
|
24
196
|
private dropdownEl;
|
|
25
197
|
private optionListEl;
|
|
26
198
|
private liveRegionEl;
|
|
27
199
|
private measurementAreaEl;
|
|
28
|
-
private
|
|
200
|
+
private scrollableParents;
|
|
201
|
+
private elToFocus?;
|
|
202
|
+
private returnFocus;
|
|
203
|
+
private initialHtmlOverflowY?;
|
|
29
204
|
get childOptions(): HTMLWmOptionElement[];
|
|
30
205
|
get isDisabled(): boolean;
|
|
31
|
-
private
|
|
32
|
-
|
|
206
|
+
private hasAnchor;
|
|
207
|
+
private overflowCount?;
|
|
208
|
+
private buttonText?;
|
|
33
209
|
private displayedOptions;
|
|
210
|
+
get displayText(): string;
|
|
211
|
+
get selectedOptions(): HTMLWmOptionElement[];
|
|
34
212
|
get allSelected(): boolean;
|
|
35
213
|
handleOptionSelection(): void;
|
|
36
214
|
handleChildEnter(): void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
215
|
+
closeDropdownOnEscape(): void;
|
|
216
|
+
handleToggle(ev: ToggleEvent): void;
|
|
217
|
+
dropdownPosition(): void;
|
|
218
|
+
onOpen(): void;
|
|
219
|
+
onClose(): void;
|
|
41
220
|
handleKey(ev: KeyboardEvent): void;
|
|
221
|
+
debouncedReposition: (this: any) => void;
|
|
222
|
+
handleResize(): void;
|
|
223
|
+
handleScroll(): void;
|
|
42
224
|
componentWillLoad(): void;
|
|
43
225
|
handleChildChange(): void;
|
|
44
226
|
componentDidLoad(): void;
|
|
45
|
-
open(optionToSelect?: "next" | "previous"): void;
|
|
46
|
-
close(returnFocus?: boolean): void;
|
|
47
227
|
announceError(): void;
|
|
48
228
|
handleDisabledChange(): void;
|
|
49
229
|
handleComponentBlur(ev: FocusEvent): void;
|
|
50
|
-
|
|
230
|
+
handleLabelMouseEnter(ev: MouseEvent): void;
|
|
51
231
|
announce(message: string): void;
|
|
52
|
-
|
|
232
|
+
handleOverflow(): void;
|
|
233
|
+
setButtonText(): string | null;
|
|
53
234
|
renderOverflowCount(): any;
|
|
54
235
|
render(): any;
|
|
55
236
|
}
|
|
@@ -1,24 +1,223 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Dropdown interface that displays a list of action items. When closed it shows a text
|
|
4
|
+
* button, icon button, or selector box depending on action-menu-type. Selecting an item
|
|
5
|
+
* executes an action and closes the menu. Composed of a parent wm-action-menu element and
|
|
6
|
+
* one or more wm-menuitem children.
|
|
7
|
+
*
|
|
8
|
+
* @category Basic Controls
|
|
9
|
+
*
|
|
10
|
+
* @slot - One or more wm-menuitem elements.
|
|
11
|
+
*
|
|
12
|
+
* @keyboardInteraction
|
|
13
|
+
* - **Trigger button (closed)**: Down Arrow / Space / Enter opens the menu and focuses the first item; Up Arrow opens and focuses the last item.
|
|
14
|
+
* - **Open menu**: Up/Down Arrow navigates items (wraps around); Home/End jumps to first/last; Enter activates the focused item and closes the menu; Escape closes the menu and returns focus to the trigger; Tab closes the menu; typing a character focuses the next item starting with that letter.
|
|
15
|
+
*
|
|
16
|
+
* @accessibility
|
|
17
|
+
* - For `icon` menus, `tooltip` is required and serves as the accessible name announced by screen readers.
|
|
18
|
+
* - When multiple action menus share identical tooltips or button text, use `label-for-identical-buttons` to give each a unique `aria-label`.
|
|
19
|
+
* - Focus returns automatically to the trigger button after an item is activated, unless the action removes the trigger from the DOM — in that case, manage focus explicitly in your action handler.
|
|
20
|
+
*
|
|
21
|
+
* @usageNotes
|
|
22
|
+
* - The default type is `icon` (three-dot "more options" button). Use `text` for a labelled trigger, `selector` or `selector-primary` for a select-box appearance.
|
|
23
|
+
* - `button-text` is required when `action-menu-type` is `text`, `selector`, or `selector-primary`.
|
|
24
|
+
* - `tooltip` is required when `action-menu-type` is `icon`.
|
|
25
|
+
* - `icon` is optional for `text`, `selector`, and `selector-primary` types, rendered alongside `button-text`. For `icon` type, `icon` overrides the default "more options" icon.
|
|
26
|
+
*
|
|
27
|
+
* @example {html} Icon action menu (default)
|
|
28
|
+
* <wm-action-menu tooltip="More options">
|
|
29
|
+
* <wm-menuitem onclick="editRecord()">Edit</wm-menuitem>
|
|
30
|
+
* <wm-menuitem onclick="deleteRecord()">Delete</wm-menuitem>
|
|
31
|
+
* </wm-action-menu>
|
|
32
|
+
*
|
|
33
|
+
* @example {react} Icon action menu
|
|
34
|
+
* <WmActionMenu tooltip="More options">
|
|
35
|
+
* <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
|
|
36
|
+
* <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
|
|
37
|
+
* </WmActionMenu>
|
|
38
|
+
*
|
|
39
|
+
* @example {html} Icon action menu with a custom icon
|
|
40
|
+
* <wm-action-menu icon="#filter" tooltip="Filter options">
|
|
41
|
+
* <wm-menuitem>All</wm-menuitem>
|
|
42
|
+
* <wm-menuitem>Unread</wm-menuitem>
|
|
43
|
+
* </wm-action-menu>
|
|
44
|
+
*
|
|
45
|
+
* @example {react} Icon action menu with a custom icon
|
|
46
|
+
* <WmActionMenu icon="#filter" tooltip="Filter options">
|
|
47
|
+
* <WmMenuitem>All</WmMenuitem>
|
|
48
|
+
* <WmMenuitem>Unread</WmMenuitem>
|
|
49
|
+
* </WmActionMenu>
|
|
50
|
+
*
|
|
51
|
+
* @example {html} Icon action menu with a rotated icon — reuse directional icons with icon-rotate.
|
|
52
|
+
* <wm-action-menu icon="#back" icon-rotate="180" tooltip="Forward options">
|
|
53
|
+
* <wm-menuitem>Skip</wm-menuitem>
|
|
54
|
+
* <wm-menuitem>Skip all</wm-menuitem>
|
|
55
|
+
* </wm-action-menu>
|
|
56
|
+
*
|
|
57
|
+
* @example {react} Icon action menu with a rotated icon
|
|
58
|
+
* <WmActionMenu icon="#back" iconRotate={180} tooltip="Forward options">
|
|
59
|
+
* <WmMenuitem>Skip</WmMenuitem>
|
|
60
|
+
* <WmMenuitem>Skip all</WmMenuitem>
|
|
61
|
+
* </WmActionMenu>
|
|
62
|
+
*
|
|
63
|
+
* @example {html} Text action menu
|
|
64
|
+
* <wm-action-menu action-menu-type="text" button-text="Actions">
|
|
65
|
+
* <wm-menuitem onclick="editRecord()">Edit</wm-menuitem>
|
|
66
|
+
* <wm-menuitem onclick="deleteRecord()">Delete</wm-menuitem>
|
|
67
|
+
* </wm-action-menu>
|
|
68
|
+
*
|
|
69
|
+
* @example {react} Text action menu
|
|
70
|
+
* <WmActionMenu actionMenuType="text" buttonText="Actions">
|
|
71
|
+
* <WmMenuitem onClick={editRecord}>Edit</WmMenuitem>
|
|
72
|
+
* <WmMenuitem onClick={deleteRecord}>Delete</WmMenuitem>
|
|
73
|
+
* </WmActionMenu>
|
|
74
|
+
*
|
|
75
|
+
* @example {html} Text action menu with an icon
|
|
76
|
+
* <wm-action-menu action-menu-type="text" button-text="Actions" icon="#edit">
|
|
77
|
+
* <wm-menuitem>Edit</wm-menuitem>
|
|
78
|
+
* <wm-menuitem>Delete</wm-menuitem>
|
|
79
|
+
* </wm-action-menu>
|
|
80
|
+
*
|
|
81
|
+
* @example {react} Text action menu with an icon
|
|
82
|
+
* <WmActionMenu actionMenuType="text" buttonText="Actions" icon="#edit">
|
|
83
|
+
* <WmMenuitem>Edit</WmMenuitem>
|
|
84
|
+
* <WmMenuitem>Delete</WmMenuitem>
|
|
85
|
+
* </WmActionMenu>
|
|
86
|
+
*
|
|
87
|
+
* @example {html} Selector action menu
|
|
88
|
+
* <wm-action-menu action-menu-type="selector" button-text="Sort by">
|
|
89
|
+
* <wm-menuitem onclick="sortBy('name')">Name</wm-menuitem>
|
|
90
|
+
* <wm-menuitem onclick="sortBy('date')">Date</wm-menuitem>
|
|
91
|
+
* </wm-action-menu>
|
|
92
|
+
*
|
|
93
|
+
* @example {react} Selector action menu
|
|
94
|
+
* <WmActionMenu actionMenuType="selector" buttonText="Sort by">
|
|
95
|
+
* <WmMenuitem onClick={() => sortBy("name")}>Name</WmMenuitem>
|
|
96
|
+
* <WmMenuitem onClick={() => sortBy("date")}>Date</WmMenuitem>
|
|
97
|
+
* </WmActionMenu>
|
|
98
|
+
*
|
|
99
|
+
* @example {html} Menu items with icons
|
|
100
|
+
* <wm-action-menu tooltip="File actions">
|
|
101
|
+
* <wm-menuitem icon="#edit" onclick="editFile()">Edit</wm-menuitem>
|
|
102
|
+
* <wm-menuitem icon="#delete" onclick="deleteFile()">Delete</wm-menuitem>
|
|
103
|
+
* </wm-action-menu>
|
|
104
|
+
*
|
|
105
|
+
* @example {react} Menu items with icons
|
|
106
|
+
* <WmActionMenu tooltip="File actions">
|
|
107
|
+
* <WmMenuitem icon="#edit" onClick={editFile}>Edit</WmMenuitem>
|
|
108
|
+
* <WmMenuitem icon="#delete" onClick={deleteFile}>Delete</WmMenuitem>
|
|
109
|
+
* </WmActionMenu>
|
|
110
|
+
*
|
|
111
|
+
* @example {html} Identical menus — disambiguate for screen readers with label-for-identical-buttons
|
|
112
|
+
* <wm-action-menu tooltip="Actions" label-for-identical-buttons="Actions for Introduction to Biology">
|
|
113
|
+
* <wm-menuitem onclick="editCourse('bio-101')">Edit</wm-menuitem>
|
|
114
|
+
* </wm-action-menu>
|
|
115
|
+
* <wm-action-menu tooltip="Actions" label-for-identical-buttons="Actions for Advanced Chemistry">
|
|
116
|
+
* <wm-menuitem onclick="editCourse('chem-301')">Edit</wm-menuitem>
|
|
117
|
+
* </wm-action-menu>
|
|
118
|
+
*
|
|
119
|
+
* @example {react} Identical menus
|
|
120
|
+
* <WmActionMenu tooltip="Actions" labelForIdenticalButtons="Actions for Introduction to Biology">
|
|
121
|
+
* <WmMenuitem onClick={() => editCourse("bio-101")}>Edit</WmMenuitem>
|
|
122
|
+
* </WmActionMenu>
|
|
123
|
+
* <WmActionMenu tooltip="Actions" labelForIdenticalButtons="Actions for Advanced Chemistry">
|
|
124
|
+
* <WmMenuitem onClick={() => editCourse("chem-301")}>Edit</WmMenuitem>
|
|
125
|
+
* </WmActionMenu>
|
|
126
|
+
*
|
|
127
|
+
* @requiredSetup
|
|
128
|
+
* - Wire each item's action: attach an `onclick` handler to each wm-menuitem.
|
|
129
|
+
* - Slot one wm-menuitem per action as a child.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
2
132
|
export declare class ActionMenu {
|
|
3
133
|
el: HTMLWmActionMenuElement;
|
|
4
|
-
private
|
|
5
|
-
private
|
|
134
|
+
private menubtnEl;
|
|
135
|
+
private dropdownEl;
|
|
6
136
|
private openUp;
|
|
137
|
+
private initialHtmlOverflowY?;
|
|
138
|
+
private scrollableParents;
|
|
7
139
|
get horizontalPosition(): "right" | "left";
|
|
8
140
|
get childItems(): HTMLWmMenuitemElement[];
|
|
9
141
|
get internalButtonType(): string;
|
|
142
|
+
get resolvedIcon(): string | undefined;
|
|
10
143
|
isExpanded: boolean;
|
|
144
|
+
isTabbing: boolean;
|
|
145
|
+
isHidden: boolean;
|
|
146
|
+
private hasAnchor;
|
|
147
|
+
private elToFocus?;
|
|
148
|
+
/**
|
|
149
|
+
* @description Position of the tooltip relative to the trigger button. Repositions automatically when there is insufficient space at the specified position.
|
|
150
|
+
* @default "left"
|
|
151
|
+
*/
|
|
11
152
|
tooltipPosition?: "top" | "bottom" | "left" | "right" | "bottom-left" | "bottom-right" | "top-right" | "top-left";
|
|
153
|
+
/**
|
|
154
|
+
* @description Visual style of the trigger button. `'icon'` shows an icon-only button (requires `tooltip`). `'text'` shows a labelled button (requires `button-text`). `'selector'` shows a selector box that visually mimics a select control (requires `button-text`). `'selector-primary'` is a primary-styled variant of selector.
|
|
155
|
+
* @default "icon"
|
|
156
|
+
*/
|
|
12
157
|
actionMenuType: "icon" | "text" | "selector" | "selector-primary";
|
|
158
|
+
/**
|
|
159
|
+
* @description Label displayed on the trigger button.
|
|
160
|
+
* @conditionallyRequired when action-menu-type is 'text', 'selector', or 'selector-primary'
|
|
161
|
+
*/
|
|
13
162
|
buttonText?: string;
|
|
163
|
+
/**
|
|
164
|
+
* @description Icon to display alongside `button-text` for `text`, `selector`, and `selector-primary`
|
|
165
|
+
* types, or in place of the default "more options" icon for the `icon` type. Formats: `'#icon-name'`
|
|
166
|
+
* for a Ripple icon (e.g. `'#edit'`), or `'/path/to/file.svg#symbol-id'` for a local SVG sprite symbol.
|
|
167
|
+
* @default "#more-options" when action-menu-type is 'icon'; unset otherwise
|
|
168
|
+
*/
|
|
169
|
+
icon?: string;
|
|
170
|
+
/**
|
|
171
|
+
* @description Change size of the icon to fine tune the visual rendering if it appears too large or small. Not
|
|
172
|
+
* intended for general sizing. Accepts any valid CSS size value, e.g. '22px' or '1.3rem'.
|
|
173
|
+
*/
|
|
174
|
+
iconSize?: string;
|
|
175
|
+
/**
|
|
176
|
+
* @description Rotates the icon by the given number of degrees. For use with the icon property.
|
|
177
|
+
*/
|
|
178
|
+
iconRotate?: number;
|
|
179
|
+
/**
|
|
180
|
+
* @description Flips the icon along the specified axis. For use with the icon property.
|
|
181
|
+
*/
|
|
182
|
+
iconFlip?: "horizontal" | "vertical";
|
|
183
|
+
/**
|
|
184
|
+
* @description Disables the entire menu, preventing the trigger from being activated.
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
14
187
|
disabled: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* @description Tooltip text shown on hover. For `icon` menus, also serves as the accessible name announced by screen readers.
|
|
190
|
+
* @conditionallyRequired when action-menu-type is 'icon'
|
|
191
|
+
*/
|
|
15
192
|
tooltip?: string;
|
|
193
|
+
/**
|
|
194
|
+
* @description Use only when multiple action menus on the same page share identical tooltips or button text. Set this to a more descriptive label for screen readers; the visible label stays unchanged. Sets aria-label to this value.
|
|
195
|
+
*/
|
|
16
196
|
labelForIdenticalButtons?: string;
|
|
197
|
+
/**
|
|
198
|
+
* @description Applies dark styling to `selector` and `selector-primary` variants. Has no effect on `icon` or `text` types.
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
17
201
|
darkMode?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* @description Maximum width of the dropdown. Accepts any valid CSS width value (e.g. "300px", "20rem", "50%"). The dropdown may still render narrower to fit its content or the space available.
|
|
204
|
+
* @default "25.875rem"
|
|
205
|
+
*/
|
|
206
|
+
maxWidth: string;
|
|
207
|
+
/**
|
|
208
|
+
* @description Fires when the component finishes loading and child wm-menuitem elements are ready.
|
|
209
|
+
*/
|
|
18
210
|
wmActionMenuLoaded: EventEmitter;
|
|
211
|
+
/**
|
|
212
|
+
* @description Fires when the component finishes loading.
|
|
213
|
+
* @deprecated Use wmActionMenuLoaded instead.
|
|
214
|
+
*/
|
|
19
215
|
menuLoaded: EventEmitter;
|
|
20
216
|
private keysSoFar;
|
|
21
217
|
private searchIndex;
|
|
218
|
+
handleTabbingOn(): void;
|
|
219
|
+
handleTabbingOff(): void;
|
|
220
|
+
handleWindowScroll(): void;
|
|
22
221
|
handleClickedItem(): void;
|
|
23
222
|
handleKeyUp(ev: CustomEvent): void;
|
|
24
223
|
handleKeyDown(ev: CustomEvent): void;
|
|
@@ -29,15 +228,21 @@ export declare class ActionMenu {
|
|
|
29
228
|
handleKey(ev: KeyboardEvent): void;
|
|
30
229
|
handleMenuitemBlur(ev: CustomEvent): void;
|
|
31
230
|
handleButtonBlur(ev: FocusEvent): void;
|
|
231
|
+
handleScroll(): void;
|
|
232
|
+
componentWillLoad(): void;
|
|
32
233
|
componentDidLoad(): void;
|
|
234
|
+
disconnectedCallback(): void;
|
|
33
235
|
moveUp(el: HTMLWmMenuitemElement): void;
|
|
34
236
|
moveDown(el: HTMLWmMenuitemElement): void;
|
|
35
237
|
open(): void;
|
|
36
238
|
close(returnFocus?: boolean): void;
|
|
239
|
+
positionDropdown(): void;
|
|
240
|
+
handleToggle(ev: ToggleEvent): void;
|
|
37
241
|
focusFirstItem(): void;
|
|
38
242
|
focusLastItem(): void;
|
|
39
243
|
findAndFocusItem(ev: CustomEvent): void;
|
|
40
244
|
debouncedClearKeysSoFar: (this: any) => void;
|
|
41
245
|
findMatchInRange(list: HTMLWmMenuitemElement[], startIndex: number, endIndex: number): HTMLWmMenuitemElement | null;
|
|
246
|
+
renderIcon(): any;
|
|
42
247
|
render(): any;
|
|
43
248
|
}
|