@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,17 +1,162 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Modal dialog that overlays the page. Renders as a full-bleed `modal` (default) or a
|
|
4
|
+
* smaller centered `dialog`. Content is provided through wm-modal-header, wm-modal-footer,
|
|
5
|
+
* and arbitrary slotted children.
|
|
6
|
+
*
|
|
7
|
+
* @category Communication
|
|
8
|
+
* @displayName Modal & Dialog
|
|
9
|
+
*
|
|
10
|
+
* @slot - Modal content: wm-modal-header, body content, and wm-modal-footer.
|
|
11
|
+
*
|
|
12
|
+
* @keyboardInteraction
|
|
13
|
+
* - **Tab**: Advances focus through focusable elements; wraps from the last element back to the first.
|
|
14
|
+
* - **Shift+Tab**: Moves focus backward; wraps from the first element to the last.
|
|
15
|
+
* - **Escape**: Fires `wmModalCloseTriggered` (the host application must set `open = false` on the element ref in response).
|
|
16
|
+
* - **Enter / Space**: Activates the focused button.
|
|
17
|
+
*
|
|
18
|
+
* @accessibility
|
|
19
|
+
* - Rendered as a `<dialog>` element with `aria-labelledby` pointing to the heading.
|
|
20
|
+
* - When footer buttons receive initial focus (`element-to-focus="primary"` or `"secondary"`),
|
|
21
|
+
* the element `id` on `<wm-modal>` is required — it is used to construct `aria-describedby`
|
|
22
|
+
* relationships between the heading, content, and footer.
|
|
23
|
+
* - The content wrapper must have `id="content-[id of wm-modal]"` for the aria-describedby association.
|
|
24
|
+
* - Focus returns automatically to the element that was active when the modal opened.
|
|
25
|
+
*
|
|
26
|
+
* @usageNotes
|
|
27
|
+
* - Always render the component and toggle `open` — do not conditionally mount/unmount it.
|
|
28
|
+
* Conditional rendering breaks the `aria-live` region detection and can cause body-scroll issues.
|
|
29
|
+
* - In React, set `open` imperatively via a ref (`ref.current.open = true/false`) rather than
|
|
30
|
+
* passing it as a prop. Using the prop triggers a React re-render that interferes with the
|
|
31
|
+
* native `<dialog>` focus-return mechanism and causes `:focus-visible` styles to appear on
|
|
32
|
+
* the trigger element after close.
|
|
33
|
+
* - For scrollable modal content, set `overflow: auto` on the content wrapper and reset
|
|
34
|
+
* `scrollTop` when reopening a previously scrolled modal.
|
|
35
|
+
* - On mobile (<768px) with `modal-type="dialog"`, `element-to-focus` targeting a footer button
|
|
36
|
+
* is overridden to the close button to avoid disorienting scroll behavior.
|
|
37
|
+
*
|
|
38
|
+
* @example {html} Basic modal
|
|
39
|
+
* <wm-modal id="confirm-modal" open>
|
|
40
|
+
* <wm-modal-header heading="Confirm action"></wm-modal-header>
|
|
41
|
+
* <div id="content-confirm-modal">Are you sure you want to continue?</div>
|
|
42
|
+
* <wm-modal-footer primary-text="Confirm" secondary-text="Cancel"></wm-modal-footer>
|
|
43
|
+
* </wm-modal>
|
|
44
|
+
*
|
|
45
|
+
* @example {react} Basic modal
|
|
46
|
+
* // Set open imperatively via ref -- do not use open={} as a React prop.
|
|
47
|
+
* // This preserves the native <dialog> focus-return without triggering :focus-visible.
|
|
48
|
+
* const modalRef = useRef(null);
|
|
49
|
+
*
|
|
50
|
+
* const openModal = () => { modalRef.current.open = true; };
|
|
51
|
+
* const closeModal = () => { modalRef.current.open = false; };
|
|
52
|
+
*
|
|
53
|
+
* <WmButton onClick={openModal}>Open modal</WmButton>
|
|
54
|
+
*
|
|
55
|
+
* <WmModal
|
|
56
|
+
* ref={modalRef}
|
|
57
|
+
* id="confirm-modal"
|
|
58
|
+
* onWmModalCloseTriggered={closeModal}
|
|
59
|
+
* onWmModalPrimaryTriggered={closeModal}
|
|
60
|
+
* onWmModalSecondaryTriggered={closeModal}
|
|
61
|
+
* >
|
|
62
|
+
* <WmModalHeader heading="Confirm action" />
|
|
63
|
+
* <div id="content-confirm-modal">Are you sure you want to continue?</div>
|
|
64
|
+
* <WmModalFooter primaryText="Confirm" secondaryText="Cancel" />
|
|
65
|
+
* </WmModal>
|
|
66
|
+
*
|
|
67
|
+
* @example {html} Dialog type (smaller, centered)
|
|
68
|
+
* <wm-modal id="info-dialog" modal-type="dialog" open>
|
|
69
|
+
* <wm-modal-header heading="Information"></wm-modal-header>
|
|
70
|
+
* <div id="content-info-dialog">This is additional context.</div>
|
|
71
|
+
* <wm-modal-footer primary-text="Got it"></wm-modal-footer>
|
|
72
|
+
* </wm-modal>
|
|
73
|
+
*
|
|
74
|
+
* @example {react} Dialog type
|
|
75
|
+
* const dialogRef = useRef(null);
|
|
76
|
+
*
|
|
77
|
+
* const openDialog = () => { dialogRef.current.open = true; };
|
|
78
|
+
* const closeDialog = () => { dialogRef.current.open = false; };
|
|
79
|
+
*
|
|
80
|
+
* <WmButton onClick={openDialog}>Open dialog</WmButton>
|
|
81
|
+
*
|
|
82
|
+
* <WmModal
|
|
83
|
+
* ref={dialogRef}
|
|
84
|
+
* id="info-dialog"
|
|
85
|
+
* modalType="dialog"
|
|
86
|
+
* onWmModalCloseTriggered={closeDialog}
|
|
87
|
+
* onWmModalPrimaryTriggered={closeDialog}
|
|
88
|
+
* >
|
|
89
|
+
* <WmModalHeader heading="Information" />
|
|
90
|
+
* <div id="content-info-dialog">This is additional context.</div>
|
|
91
|
+
* <WmModalFooter primaryText="Got it" />
|
|
92
|
+
* </WmModal>
|
|
93
|
+
*
|
|
94
|
+
* @requiredSetup
|
|
95
|
+
* - Drive `open` from your own state: true to show the modal, false to hide it. In React set it
|
|
96
|
+
* through a ref (`ref.current.open = true`) rather than as a prop, which breaks the native dialog
|
|
97
|
+
* focus-return.
|
|
98
|
+
* - Handle `wmModalCloseTriggered` -- the close button and Escape -- by setting `open = false`. It
|
|
99
|
+
* does not bubble, so attach the listener to the element itself.
|
|
100
|
+
* - Handle `wmModalPrimaryTriggered` and `wmModalSecondaryTriggered` for whichever wm-modal-footer
|
|
101
|
+
* buttons you render, setting `open = false` to dismiss.
|
|
102
|
+
* - Reset the content wrapper's `scrollTop` to 0 when reopening, if the body content scrolls.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
2
105
|
export declare class Modal {
|
|
3
106
|
el: HTMLWmModalElement;
|
|
4
107
|
private dialogEl;
|
|
108
|
+
/**
|
|
109
|
+
* @description Controls the open/closed state of the modal. Always render the component and
|
|
110
|
+
* toggle this prop — do not conditionally mount/unmount.
|
|
111
|
+
* @default false
|
|
112
|
+
*/
|
|
5
113
|
open: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* @description Element to focus when the modal opens. Pass `"primary"` or `"secondary"` to
|
|
116
|
+
* focus the corresponding wm-modal-footer button, or an element `id` to focus a specific
|
|
117
|
+
* element in the modal body. Defaults to the close button. Requires `id` to be set on
|
|
118
|
+
* `<wm-modal>` when targeting footer buttons.
|
|
119
|
+
* @default ""
|
|
120
|
+
*/
|
|
6
121
|
elementToFocus: "primary" | "secondary" | string;
|
|
122
|
+
/**
|
|
123
|
+
* @description Visual presentation style. `'modal'` renders a full-bleed overlay; `'dialog'`
|
|
124
|
+
* renders a smaller centered panel.
|
|
125
|
+
* @default "modal"
|
|
126
|
+
*/
|
|
7
127
|
modalType: "modal" | "dialog";
|
|
128
|
+
/**
|
|
129
|
+
* @description Unique identifier used internally to wire `aria-labelledby` and
|
|
130
|
+
* `aria-describedby` relationships. Set automatically from the element's `id` attribute or
|
|
131
|
+
* generated if absent — do not set this prop manually.
|
|
132
|
+
*/
|
|
8
133
|
uid: string;
|
|
9
134
|
returnFocusEl: HTMLElement;
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @description Internal tab-trap signals — not for application use.
|
|
138
|
+
*/
|
|
10
139
|
focusLastElement: EventEmitter;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @description Internal tab-trap signals — not for application use.
|
|
143
|
+
*/
|
|
11
144
|
focusFirstElement: EventEmitter;
|
|
145
|
+
/**
|
|
146
|
+
* @description Fires when the close button is clicked or Escape is pressed. Does not bubble,
|
|
147
|
+
* preventing nested modals from closing simultaneously. The host application must set `open`
|
|
148
|
+
* to false in response.
|
|
149
|
+
*/
|
|
12
150
|
wmModalCloseTriggered: EventEmitter;
|
|
151
|
+
/**
|
|
152
|
+
* @description Fires when the wm-modal-footer primary button is clicked.
|
|
153
|
+
*/
|
|
13
154
|
wmModalPrimaryTriggered: EventEmitter;
|
|
155
|
+
/**
|
|
156
|
+
* @description Fires when the wm-modal-footer secondary button is clicked.
|
|
157
|
+
*/
|
|
14
158
|
wmModalSecondaryTriggered: EventEmitter;
|
|
159
|
+
private initialBodyOverflow?;
|
|
15
160
|
get closeButtonEl(): HTMLElement;
|
|
16
161
|
get focusOnOpenEl(): HTMLElement | null;
|
|
17
162
|
get hasBrowserPopoverSupport(): boolean;
|
|
@@ -21,8 +166,23 @@ export declare class Modal {
|
|
|
21
166
|
hideModal(): void;
|
|
22
167
|
componentWillLoad(): void;
|
|
23
168
|
componentDidLoad(): void;
|
|
169
|
+
/**
|
|
170
|
+
* @description Programmatically fires `wmModalCloseTriggered`. Use when you need to trigger
|
|
171
|
+
* a close from outside the modal without simulating a button click.
|
|
172
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
173
|
+
*/
|
|
24
174
|
emitCloseEvent(): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* @description Programmatically fires `wmModalPrimaryTriggered`. Use when you need to trigger
|
|
177
|
+
* the primary action from outside the modal.
|
|
178
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
179
|
+
*/
|
|
25
180
|
emitPrimaryEvent(): Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* @description Programmatically fires `wmModalSecondaryTriggered`. Use when you need to trigger
|
|
183
|
+
* the secondary action from outside the modal.
|
|
184
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
185
|
+
*/
|
|
26
186
|
emitSecondaryEvent(): Promise<void>;
|
|
27
187
|
handleKeyDown(ev: KeyboardEvent): void;
|
|
28
188
|
setAriaDescribedbyOnModal(): void;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Modal component created specifically for Planning and Self Studies. Not to be used outside of PSS.
|
|
5
|
+
*/
|
|
2
6
|
export declare class ModalPss {
|
|
3
7
|
el: HTMLWmModalPssElement;
|
|
4
8
|
open: boolean;
|
|
@@ -8,6 +12,8 @@ export declare class ModalPss {
|
|
|
8
12
|
private focusOnCloseEl;
|
|
9
13
|
private overlayEl;
|
|
10
14
|
private bodyFocusListener;
|
|
15
|
+
private initialBodyOverflow?;
|
|
16
|
+
private initialBodyTabIndex?;
|
|
11
17
|
focusLastElement: EventEmitter;
|
|
12
18
|
focusFirstElement: EventEmitter;
|
|
13
19
|
wmModalCloseTriggered: EventEmitter;
|
|
@@ -1,10 +1,44 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon
|
|
4
|
+
* button that communicates with wm-navigation via window events. Place immediately before
|
|
5
|
+
* the associated wm-navigation element in the DOM.
|
|
6
|
+
*
|
|
7
|
+
* @keyboardInteraction
|
|
8
|
+
* - **Enter / Space**: Toggles the navigation open/closed.
|
|
9
|
+
*
|
|
10
|
+
* @accessibility
|
|
11
|
+
* - Rendered as a `<button>` with `aria-expanded` reflecting the navigation's open state.
|
|
12
|
+
* - Keeps `aria-expanded` in sync by listening to `wmNavigationStateChanged` from the
|
|
13
|
+
* associated wm-navigation element.
|
|
14
|
+
*
|
|
15
|
+
* @usageNotes
|
|
16
|
+
* - `nav-id` is required; it must match the `id` on the associated wm-navigation element.
|
|
17
|
+
* - Place this component immediately before the wm-navigation element in the DOM.
|
|
18
|
+
*
|
|
19
|
+
* @example {html} Basic hamburger
|
|
20
|
+
* <wm-navigation-hamburger nav-id="main-nav"></wm-navigation-hamburger>
|
|
21
|
+
* <wm-navigation id="main-nav">...</wm-navigation>
|
|
22
|
+
*
|
|
23
|
+
* @example {react} Basic hamburger
|
|
24
|
+
* <WmNavigationHamburger navId="main-nav" />
|
|
25
|
+
* <WmNavigation id="main-nav">...</WmNavigation>
|
|
26
|
+
*/
|
|
2
27
|
export declare class NavigationHamburger {
|
|
3
28
|
el: HTMLWmNavigationHamburgerElement;
|
|
4
29
|
nav: HTMLWmNavigationElement;
|
|
30
|
+
/**
|
|
31
|
+
* @description The `id` of the associated wm-navigation element. Required for semantic
|
|
32
|
+
* linking and for keeping `aria-expanded` in sync with the navigation's open state.
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
5
35
|
navId?: string;
|
|
6
36
|
isTabbing?: boolean;
|
|
7
37
|
open: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @description Fires when the button is clicked. Consumed by the associated wm-navigation
|
|
40
|
+
* to toggle its `open` state — not intended for direct application use.
|
|
41
|
+
*/
|
|
8
42
|
wmNavigationHamburgerClicked: EventEmitter;
|
|
9
43
|
showNavMessage: string;
|
|
10
44
|
toggleTabbingOn(): void;
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A single navigation link inside a wm-navigation. Renders as an anchor element with an
|
|
4
|
+
* optional icon slot. Always used as a direct child of wm-navigation.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Optional icon element displayed before the link text.
|
|
7
|
+
*
|
|
8
|
+
* @usageNotes
|
|
9
|
+
* - Set `active` on the item that corresponds to the current route.
|
|
10
|
+
* - Clicking an item emits `wmNavigationItemClicked`, which the parent wm-navigation listens
|
|
11
|
+
* to in order to close the collapsible menu on narrow viewports.
|
|
12
|
+
*
|
|
13
|
+
* @example {html} Basic navigation item
|
|
14
|
+
* <wm-navigation-item href="/dashboard" text="Dashboard" active></wm-navigation-item>
|
|
15
|
+
*
|
|
16
|
+
* @example {react} Basic navigation item
|
|
17
|
+
* <WmNavigationItem href="/dashboard" text="Dashboard" active={true} />
|
|
18
|
+
*
|
|
19
|
+
* @example {html} Navigation item with icon
|
|
20
|
+
* <wm-navigation-item href="/reports" text="Reports">
|
|
21
|
+
* <span class="svg-icon svg-chart"></span>
|
|
22
|
+
* </wm-navigation-item>
|
|
23
|
+
*
|
|
24
|
+
* @example {react} Navigation item with icon
|
|
25
|
+
* <WmNavigationItem href="/reports" text="Reports">
|
|
26
|
+
* <span className="svg-icon svg-chart" />
|
|
27
|
+
* </WmNavigationItem>
|
|
28
|
+
*/
|
|
2
29
|
export declare class NavigationItem {
|
|
3
30
|
el: HTMLWmNavigationItemElement;
|
|
31
|
+
/**
|
|
32
|
+
* @description URL the link navigates to.
|
|
33
|
+
*/
|
|
4
34
|
href?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @description The visible label text for the navigation link.
|
|
37
|
+
*/
|
|
5
38
|
text?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @description Marks this item as the currently active route, applying active styling.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
6
43
|
active?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @description Fires when the link is clicked. Consumed by the parent wm-navigation to
|
|
46
|
+
* close the collapsible menu on narrow viewports.
|
|
47
|
+
*/
|
|
7
48
|
wmNavigationItemClicked: EventEmitter;
|
|
8
49
|
render(): any;
|
|
9
50
|
}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Sidebar navigation that collapses into a hamburger menu on viewports narrower than 1024px.
|
|
4
|
+
* Contains wm-navigation-item children and works alongside an external wm-navigation-hamburger
|
|
5
|
+
* toggle. Must be placed in the DOM after `<header>` and before `<main>`.
|
|
6
|
+
*
|
|
7
|
+
* @category Navigation
|
|
8
|
+
*
|
|
9
|
+
* @slot - One or more wm-navigation-item elements.
|
|
10
|
+
*
|
|
11
|
+
* @keyboardInteraction
|
|
12
|
+
* - **Escape**: Collapses the navigation when in collapsible mode.
|
|
13
|
+
* - **Tab / Shift+Tab**: Cycles through navigation items; focus is trapped within the component
|
|
14
|
+
* while the collapsible menu is open.
|
|
15
|
+
* - **Enter / Space**: Activates the close button when focused (collapses the menu).
|
|
16
|
+
*
|
|
17
|
+
* @accessibility
|
|
18
|
+
* - Rendered with `role="navigation"` and an `aria-label` of "Main".
|
|
19
|
+
* - `aria-expanded` is set on the host element in collapsible mode only; omitted on wider viewports.
|
|
20
|
+
* - When the collapsible menu is open, focus is trapped and redirected back from the browser
|
|
21
|
+
* address bar via a `focus` listener on `document.body`.
|
|
22
|
+
*
|
|
23
|
+
* @usageNotes
|
|
24
|
+
* - Use `wm-navigation-hamburger` (a separate component) as the external toggle; it communicates
|
|
25
|
+
* with wm-navigation via the `wmNavigationHamburgerClicked` window event.
|
|
26
|
+
* - `open` can be set initially to `true` to start the navigation expanded.
|
|
27
|
+
* - Navigation and main content scroll independently — no additional overflow handling is needed.
|
|
28
|
+
*
|
|
29
|
+
* Required host setup:
|
|
30
|
+
* - Never set `display: none` or `visibility: hidden` on the host element or its wrapper
|
|
31
|
+
* container. The component manages its own visibility internally, and hiding the container
|
|
32
|
+
* from the outside blocks the overlay from appearing when the hamburger is triggered.
|
|
33
|
+
*
|
|
34
|
+
* @example {html} Basic navigation
|
|
35
|
+
* <wm-navigation-hamburger nav-id="main-nav"></wm-navigation-hamburger>
|
|
36
|
+
* <wm-navigation id="main-nav">
|
|
37
|
+
* <wm-navigation-item href="/dashboard" text="Dashboard" active></wm-navigation-item>
|
|
38
|
+
* <wm-navigation-item href="/reports" text="Reports"></wm-navigation-item>
|
|
39
|
+
* </wm-navigation>
|
|
40
|
+
*
|
|
41
|
+
* @example {react} Basic navigation
|
|
42
|
+
* <WmNavigationHamburger navId="main-nav" />
|
|
43
|
+
* <WmNavigation id="main-nav">
|
|
44
|
+
* <WmNavigationItem href="/dashboard" text="Dashboard" active={true} />
|
|
45
|
+
* <WmNavigationItem href="/reports" text="Reports" />
|
|
46
|
+
* </WmNavigation>
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
2
49
|
export declare class Navigation {
|
|
3
50
|
el: HTMLWmNavigationElement;
|
|
4
51
|
toggleEl: HTMLWmButtonElement;
|
|
52
|
+
/**
|
|
53
|
+
* @description Controls the open/closed state of the collapsible navigation. Has no effect
|
|
54
|
+
* on viewports wider than 1024px where the navigation is always visible.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
5
57
|
open: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @description Fires when the collapsible navigation opens or closes. Consumed by
|
|
60
|
+
* wm-navigation-hamburger to keep its `aria-expanded` state in sync.
|
|
61
|
+
*/
|
|
6
62
|
wmNavigationStateChanged: EventEmitter;
|
|
63
|
+
private initialBodyTabIndex?;
|
|
7
64
|
private mainNavigationMessage;
|
|
8
65
|
get isCollapsible(): boolean;
|
|
9
66
|
get ariaExpanded(): string | undefined;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Internal navigator button component for use with the Navigation component. Not to be used directly.
|
|
5
|
+
*/
|
|
2
6
|
export declare class PrivNavigatorButton {
|
|
3
7
|
el: any;
|
|
4
8
|
expanded: boolean;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Internal navigator item component for use with the Navigation component. Not to be used directly.
|
|
5
|
+
*/
|
|
2
6
|
export declare class PrivNavigatorItem {
|
|
3
7
|
el: any;
|
|
4
8
|
selected: boolean;
|
|
@@ -1,20 +1,104 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { Product } from "../../global/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* User account menu that displays the logged-in user's name, email, and a product switcher
|
|
5
|
+
* for navigating between Watermark applications. Renders as a button that opens a dropdown
|
|
6
|
+
* listing available products and a logout option.
|
|
7
|
+
*
|
|
8
|
+
* @category Navigation
|
|
9
|
+
*
|
|
10
|
+
* @keyboardInteraction
|
|
11
|
+
* - **Down Arrow / Up Arrow**: Opens the menu and navigates between product options.
|
|
12
|
+
* - **Enter / Space**: Activates the focused option or opens the menu.
|
|
13
|
+
* - **Escape**: Closes the menu.
|
|
14
|
+
* - **Tab**: Closes the menu.
|
|
15
|
+
*
|
|
16
|
+
* @accessibility
|
|
17
|
+
* - User info (name and email) is grouped with an `aria-label` for screen readers.
|
|
18
|
+
* - Product options are rendered in a `role="listbox"` with `role="option"` items and
|
|
19
|
+
* `aria-selected` reflecting the current product.
|
|
20
|
+
*
|
|
21
|
+
* @usageNotes
|
|
22
|
+
* - Two data modes: **prop mode** (pass `user-name`, `email`, `products`, `auth-type` as props)
|
|
23
|
+
* and **endpoint mode** (set `load-from-userinfo="true"` to fetch from `/platform/navigator/userinfo`).
|
|
24
|
+
* - In prop mode, set `auth-type` to match your authentication method: `1` (no redirect), `2`
|
|
25
|
+
* (username/password or SSO — uses `link_url`), or `3` (SAML — uses `saml_link_url`).
|
|
26
|
+
* - Always handle `wmNavigatorLogout` to run app-specific cleanup (e.g. clearing local storage)
|
|
27
|
+
* before the logout redirect.
|
|
28
|
+
* - Set `logout-url` to redirect after logout; omit it to handle navigation entirely in the
|
|
29
|
+
* `wmNavigatorLogout` event handler.
|
|
30
|
+
* - URLs in product data are validated against a Watermark domain whitelist; invalid URLs are
|
|
31
|
+
* rejected with a console error.
|
|
32
|
+
*
|
|
33
|
+
* @example {html} Prop mode
|
|
34
|
+
* <wm-navigator
|
|
35
|
+
* user-name="Maria Garcia"
|
|
36
|
+
* email="m.garcia@example.com"
|
|
37
|
+
* auth-type="2"
|
|
38
|
+
* logout-url="https://app.watermarkinsights.com/logout"
|
|
39
|
+
* products='[{"id":"app1","name":"Insights","icon_url":"/icons/insights.svg","link_url":"https://insights.watermarkinsights.com"}]'>
|
|
40
|
+
* </wm-navigator>
|
|
41
|
+
*
|
|
42
|
+
* @example {react} Prop mode
|
|
43
|
+
* <WmNavigator
|
|
44
|
+
* userName="Maria Garcia"
|
|
45
|
+
* email="m.garcia@example.com"
|
|
46
|
+
* authType={2}
|
|
47
|
+
* logoutUrl="https://app.watermarkinsights.com/logout"
|
|
48
|
+
* products={JSON.stringify(products)}
|
|
49
|
+
* onWmNavigatorLogout={handleLogout} />
|
|
50
|
+
*
|
|
51
|
+
* @example {html} Endpoint mode (fetches user info automatically)
|
|
52
|
+
* <wm-navigator user-name="Maria Garcia" load-from-userinfo="true"></wm-navigator>
|
|
53
|
+
*
|
|
54
|
+
* @example {react} Endpoint mode
|
|
55
|
+
* <WmNavigator userName="Maria Garcia" loadFromUserinfo={true} onWmNavigatorLogout={handleLogout} />
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
3
58
|
export declare class Navigator {
|
|
4
59
|
el: any;
|
|
5
60
|
private wrapperEl?;
|
|
61
|
+
/**
|
|
62
|
+
* @description The display name of the logged-in user, shown in the menu header.
|
|
63
|
+
* @required
|
|
64
|
+
*/
|
|
6
65
|
userName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* @description The email address of the logged-in user, shown in the menu header.
|
|
68
|
+
* @conditionallyRequired when load-from-userinfo is false
|
|
69
|
+
*/
|
|
7
70
|
email?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @description Authentication method, determining how product link redirects are handled.
|
|
73
|
+
* `1` — no redirect; `2` — username/password or SSO (uses `link_url`); `3` — SAML (uses `saml_link_url`).
|
|
74
|
+
* @default 1
|
|
75
|
+
* @conditionallyRequired when load-from-userinfo is false and products are provided
|
|
76
|
+
*/
|
|
8
77
|
authType: number;
|
|
78
|
+
/**
|
|
79
|
+
* @description SAML connection name appended as a query parameter to product redirect URLs.
|
|
80
|
+
* Only used when `auth-type` is `3`.
|
|
81
|
+
*/
|
|
9
82
|
connectionName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @description URL to redirect to after logout. If omitted, no redirect occurs — handle
|
|
85
|
+
* navigation entirely in the `wmNavigatorLogout` event handler.
|
|
86
|
+
*/
|
|
10
87
|
logoutUrl?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @description The user's accessible Watermark products, as a JSON string or array of objects.
|
|
90
|
+
* Each object must include `id`, `name`, `icon_url`, and either `link_url` (auth-type 2) or
|
|
91
|
+
* `saml_link_url` (auth-type 3). Not needed when `load-from-userinfo` is true.
|
|
92
|
+
*/
|
|
11
93
|
products?: string | [];
|
|
94
|
+
/**
|
|
95
|
+
* @description When true, fetches user info and products automatically from the
|
|
96
|
+
* `/platform/navigator/userinfo` endpoint instead of using props.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
12
99
|
loadFromUserinfo: boolean;
|
|
13
100
|
private retrievedInfo;
|
|
14
101
|
parsedProducts: Array<Product>;
|
|
15
|
-
/**
|
|
16
|
-
* Event emitted from child wm-navigator-button updates the state, which is then passed down as a prop by wm-navigator.
|
|
17
|
-
*/
|
|
18
102
|
isOpen: boolean;
|
|
19
103
|
private openRight;
|
|
20
104
|
/**
|
|
@@ -23,6 +107,11 @@ export declare class Navigator {
|
|
|
23
107
|
* State resets to the index of the current product when the dropdown closes.
|
|
24
108
|
*/
|
|
25
109
|
itemIndexToFocus: number;
|
|
110
|
+
/**
|
|
111
|
+
* @description Fires when the user clicks the logout option. Always handle this event to
|
|
112
|
+
* run app-specific cleanup (e.g. clearing local storage or session state) before any logout
|
|
113
|
+
* redirect. If `logout-url` is set, the component will navigate there after this event fires.
|
|
114
|
+
*/
|
|
26
115
|
wmNavigatorLogout: EventEmitter;
|
|
27
116
|
private currentProductId;
|
|
28
117
|
isSafeUrl(url?: string): boolean;
|
|
@@ -39,7 +128,7 @@ export declare class Navigator {
|
|
|
39
128
|
handleButtonClick(): void;
|
|
40
129
|
openMenu(): void;
|
|
41
130
|
closeMenu(returnFocus?: boolean): void;
|
|
42
|
-
focusItem(): void;
|
|
131
|
+
focusItem(delayMs?: number): void;
|
|
43
132
|
unfocusItem(index: number): void;
|
|
44
133
|
buttonFocusHandler(): void;
|
|
45
134
|
/**
|
|
@@ -1,16 +1,115 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Pagination controls for navigating large data sets. Renders a full page-number strip on
|
|
4
|
+
* wider viewports and a minimal prev/next/first/last layout on narrow viewports. Does not
|
|
5
|
+
* render at all when the total item count fits on a single page.
|
|
6
|
+
*
|
|
7
|
+
* @category Navigation
|
|
8
|
+
*
|
|
9
|
+
* @accessibility
|
|
10
|
+
* - Rendered as a `<nav>` element with an `aria-label` that includes the current page and
|
|
11
|
+
* visible item range, announced to screen readers on load.
|
|
12
|
+
* - An `aria-live` region announces the new current page when navigation occurs.
|
|
13
|
+
* - Disabled previous/next buttons shift focus to the nearest enabled button automatically.
|
|
14
|
+
* - Current page button carries `aria-current="page"`.
|
|
15
|
+
*
|
|
16
|
+
* @usageNotes
|
|
17
|
+
* - `current-page`, `total-items`, and `items-per-page` are all required; a missing value
|
|
18
|
+
* throws an error on load.
|
|
19
|
+
* - Listen to `wmPaginationPageClicked` and read `event.target.value` to get the selected
|
|
20
|
+
* page number. `event.target.value` is a string — wrap with `Number()` before storing.
|
|
21
|
+
* - The component does not manage data — it only reports which page was selected.
|
|
22
|
+
* - When multiple pagination instances appear on the same page, give each a unique `label`
|
|
23
|
+
* to disambiguate the `<nav>` landmark for screen readers, and drive each from independent state.
|
|
24
|
+
*
|
|
25
|
+
* @example {html} Basic pagination
|
|
26
|
+
* <wm-pagination current-page="1" total-items="150" items-per-page="25"></wm-pagination>
|
|
27
|
+
*
|
|
28
|
+
* @example {react} Basic pagination
|
|
29
|
+
* // event.target.value is a string — use Number() when storing as a number.
|
|
30
|
+
* const [currentPage, setCurrentPage] = useState(1);
|
|
31
|
+
*
|
|
32
|
+
* <WmPagination
|
|
33
|
+
* currentPage={currentPage}
|
|
34
|
+
* totalItems={150}
|
|
35
|
+
* itemsPerPage={25}
|
|
36
|
+
* onWmPaginationPageClicked={(e) => setCurrentPage(Number(e.target.value))} />
|
|
37
|
+
*
|
|
38
|
+
* @example {html} With accessible label
|
|
39
|
+
* <wm-pagination label="Search results" current-page="1" total-items="80" items-per-page="10">
|
|
40
|
+
* </wm-pagination>
|
|
41
|
+
*
|
|
42
|
+
* @example {react} Multiple instances with independent state
|
|
43
|
+
* // Give each instance a unique label to disambiguate the nav landmark for screen readers.
|
|
44
|
+
* // Drive each from its own state variable so they page independently.
|
|
45
|
+
* const [page1, setPage1] = useState(1);
|
|
46
|
+
* const [page2, setPage2] = useState(1);
|
|
47
|
+
*
|
|
48
|
+
* <WmPagination currentPage={page1} totalItems={150} itemsPerPage={10}
|
|
49
|
+
* onWmPaginationPageClicked={(e) => setPage1(Number(e.target.value))} />
|
|
50
|
+
*
|
|
51
|
+
* <WmPagination label="Search results" currentPage={page2} totalItems={80} itemsPerPage={10}
|
|
52
|
+
* onWmPaginationPageClicked={(e) => setPage2(Number(e.target.value))} />
|
|
53
|
+
*
|
|
54
|
+
* @requiredSetup
|
|
55
|
+
* - Handle `wmPaginationPageClicked` by reading `event.target.value` -- a string, so convert it to
|
|
56
|
+
* a number -- and writing it to `current-page`.
|
|
57
|
+
* - Set `total-items` and `items-per-page` from the data you are paging; together they determine the
|
|
58
|
+
* page count.
|
|
59
|
+
* - Share one page state between paginations rendered above and below the same table.
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
2
62
|
export declare class Pagination {
|
|
3
63
|
el: any;
|
|
64
|
+
/**
|
|
65
|
+
* @description Accessible label for the `<nav>` element. Defaults to `"Pagination navigation"`.
|
|
66
|
+
* Override when multiple pagination instances appear on the same page (e.g. `"Search results"`).
|
|
67
|
+
*/
|
|
68
|
+
label: string;
|
|
69
|
+
/**
|
|
70
|
+
* @description The currently active page number. Update this prop in response to
|
|
71
|
+
* `wmPaginationPageClicked` to keep the component in sync with your data.
|
|
72
|
+
* @default 1
|
|
73
|
+
* @required
|
|
74
|
+
*/
|
|
4
75
|
currentPage: number;
|
|
76
|
+
/**
|
|
77
|
+
* @description Total number of items across all pages. Used with `items-per-page` to
|
|
78
|
+
* calculate the total page count.
|
|
79
|
+
* @required
|
|
80
|
+
*/
|
|
5
81
|
totalItems?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @description Number of items displayed per page. Used with `total-items` to calculate
|
|
84
|
+
* the total page count.
|
|
85
|
+
* @required
|
|
86
|
+
*/
|
|
6
87
|
itemsPerPage?: number;
|
|
88
|
+
/**
|
|
89
|
+
* @description The page number selected by the most recent user interaction. Read
|
|
90
|
+
* `event.target.value` in the `wmPaginationPageClicked` handler to get the selected page.
|
|
91
|
+
* @default 1
|
|
92
|
+
*/
|
|
7
93
|
value: number;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @description Internal responsive state — updated by ResizeObserver; not intended for external use.
|
|
97
|
+
*/
|
|
8
98
|
isLargeSize: boolean;
|
|
9
99
|
srAnnouncement: string;
|
|
10
100
|
private totalPages;
|
|
101
|
+
/**
|
|
102
|
+
* @description Fires when the user clicks a page number, previous, or next button.
|
|
103
|
+
* Read `event.target.value` to get the selected page number, then update `current-page`
|
|
104
|
+
* and re-render your data.
|
|
105
|
+
*/
|
|
11
106
|
wmPaginationPageClicked: EventEmitter<string>;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
* @description Internal event used to restore focus to the current page button after re-render.
|
|
110
|
+
*/
|
|
12
111
|
focusCurrentPage: EventEmitter;
|
|
13
|
-
private
|
|
112
|
+
private defaultLabel;
|
|
14
113
|
private nextPageButtonLabel;
|
|
15
114
|
private previousPageButtonLabel;
|
|
16
115
|
private pageButtonLabel;
|