@watermarkinsights/ripple 0.0.1 → 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3db2fdd3.js +103 -0
- package/dist/cjs/chartFunctions-0d47b1f4.js +906 -0
- package/dist/cjs/functions-761cb9f2.js +10694 -0
- package/dist/cjs/index-bb947bd5.js +1843 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-33cd6161.js +82 -0
- package/dist/cjs/intl-9e9388a7.js +291 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +580 -0
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +146 -0
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +204 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +35 -0
- package/dist/cjs/priv-option-list.cjs.entry.js +391 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +525 -0
- package/dist/cjs/wm-button.cjs.entry.js +280 -0
- package/dist/cjs/wm-chart-bar.cjs.entry.js +444 -0
- package/dist/cjs/wm-chart-column.cjs.entry.js +629 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart-stack.cjs.entry.js +447 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +591 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +399 -0
- package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-file-list.cjs.entry.js} +15 -24
- package/dist/cjs/wm-file.cjs.entry.js +210 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +178 -0
- package/dist/{ripple/wm-modal.entry.js → cjs/wm-input.cjs.entry.js} +108 -110
- package/dist/cjs/wm-line-chart.cjs.entry.js +541 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +220 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +238 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +334 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +322 -0
- package/dist/{ripple/wm-textarea.entry.js → cjs/wm-optgroup.cjs.entry.js} +62 -57
- package/dist/cjs/wm-option_2.cjs.entry.js +536 -0
- package/dist/{ripple/wm-navigation.entry.js → cjs/wm-pagination.cjs.entry.js} +204 -91
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/{ripple/wm-flyout.entry.js → cjs/wm-search.cjs.entry.js} +168 -139
- package/dist/{ripple/wm-datepicker.entry.js → cjs/wm-snackbar.cjs.entry.js} +152 -223
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +357 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +985 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +51 -0
- package/dist/{ripple/wm-modal-pss.entry.js → cjs/wm-textarea.cjs.entry.js} +70 -111
- package/dist/{ripple/wm-progress-indicator.entry.js → cjs/wm-timepicker.cjs.entry.js} +296 -78
- package/dist/cjs/wm-toggletip.cjs.entry.js +252 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +341 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +207 -0
- package/dist/collection/components/charts/chartFunctions.js +831 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +995 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +345 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +990 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +268 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +177 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1326 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +549 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1236 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +725 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +1335 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +914 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +1006 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +310 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.css +1466 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.js +709 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1208 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +999 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1326 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +320 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +967 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +232 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +167 -0
- package/dist/collection/components/datepickers/datepicker.css +1147 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1415 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +857 -0
- package/dist/collection/components/datepickers/wm-date-range.js +1158 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +875 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +999 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +784 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1259 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +805 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +909 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +363 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1033 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +665 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1174 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +878 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1690 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +932 -0
- package/dist/collection/components/wm-button/wm-button.css +1630 -0
- package/dist/collection/components/wm-button/wm-button.js +794 -0
- package/dist/collection/components/wm-file/wm-file.css +1086 -0
- package/dist/collection/components/wm-file/wm-file.js +536 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +899 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +118 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1091 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +651 -0
- package/dist/collection/components/wm-input/wm-input.css +1095 -0
- package/dist/collection/components/wm-input/wm-input.js +653 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +982 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +515 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +927 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +199 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +926 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +110 -0
- package/dist/collection/components/wm-modal/wm-modal.css +983 -0
- package/dist/collection/components/wm-modal/wm-modal.js +534 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +931 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +142 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +925 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1007 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +926 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +153 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +935 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +140 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +977 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +246 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +929 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +918 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +128 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +990 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +597 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1044 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +487 -0
- package/dist/collection/components/wm-search/wm-search.css +983 -0
- package/dist/collection/components/wm-search/wm-search.js +604 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1150 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +363 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +958 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +233 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +966 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +461 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +906 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +132 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1423 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1511 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +328 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1065 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +423 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1174 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +728 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1296 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +455 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1987 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +760 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +31 -0
- package/dist/collection/dev/action-menu.js +18 -0
- package/dist/collection/dev/button.js +12 -0
- package/dist/collection/dev/chart-bar.js +430 -0
- package/dist/collection/dev/chart-column.js +459 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart-stack.js +205 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +14 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/flyout.js +194 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +45 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +68 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +907 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +16 -87
- package/dist/collection/global/interfaces.js +94 -0
- package/dist/collection/global/intl.js +281 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +14178 -0
- package/dist/docs/props-reference.json +2079 -0
- package/dist/docs/skill/index.md +33 -0
- package/dist/docs/skill/wm-action-menu.md +116 -0
- package/dist/docs/skill/wm-button.md +121 -0
- package/dist/docs/skill/wm-chart-bar.md +156 -0
- package/dist/docs/skill/wm-chart-column.md +122 -0
- package/dist/docs/skill/wm-chart-legend.md +91 -0
- package/dist/docs/skill/wm-chart-slice.md +101 -0
- package/dist/docs/skill/wm-chart-stack.md +147 -0
- package/dist/docs/skill/wm-chart.md +139 -0
- package/dist/docs/skill/wm-date-range.md +176 -0
- package/dist/docs/skill/wm-datepicker.md +153 -0
- package/dist/docs/skill/wm-file-list.md +105 -0
- package/dist/docs/skill/wm-file.md +91 -0
- package/dist/docs/skill/wm-flyout.md +209 -0
- package/dist/docs/skill/wm-input.md +134 -0
- package/dist/docs/skill/wm-line-chart.md +135 -0
- package/dist/docs/skill/wm-menuitem.md +64 -0
- package/dist/docs/skill/wm-modal-footer.md +81 -0
- package/dist/docs/skill/wm-modal-header.md +71 -0
- package/dist/docs/skill/wm-modal.md +172 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +61 -0
- package/dist/docs/skill/wm-navigation-item.md +78 -0
- package/dist/docs/skill/wm-navigation.md +82 -0
- package/dist/docs/skill/wm-navigator.md +106 -0
- package/dist/docs/skill/wm-nested-select.md +160 -0
- package/dist/docs/skill/wm-optgroup.md +72 -0
- package/dist/docs/skill/wm-option.md +67 -0
- package/dist/docs/skill/wm-pagination.md +114 -0
- package/dist/docs/skill/wm-progress-indicator.md +75 -0
- package/dist/docs/skill/wm-progress-monitor.md +120 -0
- package/dist/docs/skill/wm-progress-slice.md +67 -0
- package/dist/docs/skill/wm-search.md +180 -0
- package/dist/docs/skill/wm-select.md +169 -0
- package/dist/docs/skill/wm-snackbar.md +130 -0
- package/dist/docs/skill/wm-tab-item.md +45 -0
- package/dist/docs/skill/wm-tab-list.md +139 -0
- package/dist/docs/skill/wm-tab-panel.md +39 -0
- package/dist/docs/skill/wm-tag-input.md +187 -0
- package/dist/docs/skill/wm-tag-option.md +60 -0
- package/dist/docs/skill/wm-textarea.md +102 -0
- package/dist/docs/skill/wm-timepicker.md +156 -0
- package/dist/docs/skill/wm-toggletip.md +98 -0
- package/dist/docs/skill/wm-uploader.md +154 -0
- package/dist/docs/skill/wm-wrapper.md +5 -0
- package/dist/esm/app-globals-a1092590.js +101 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-58637dc9.js} +159 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-65f1594c.js} +374 -7830
- package/dist/esm/index-3425d80d.js +1813 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-8778346d.js +77 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-d518f362.js} +11 -4
- package/dist/esm/loader.js +11 -0
- package/dist/{ripple → esm}/priv-calendar.entry.js +143 -133
- package/dist/esm/priv-chart-popover-old.entry.js +142 -0
- package/dist/esm/priv-chart-popover_2.entry.js +199 -0
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +5 -4
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +5 -4
- package/dist/{ripple → esm}/priv-option-list.entry.js +18 -16
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +520 -0
- package/dist/{ripple/wm-modal-header.entry.js → esm/wm-button.entry.js} +264 -24
- package/dist/esm/wm-chart-bar.entry.js +440 -0
- package/dist/esm/wm-chart-column.entry.js +625 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart-stack.entry.js +443 -0
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/{ripple → esm}/wm-date-range.entry.js +224 -114
- package/dist/esm/wm-datepicker.entry.js +395 -0
- package/dist/{ripple → esm}/wm-file-list.entry.js +5 -4
- package/dist/{ripple → esm}/wm-file.entry.js +48 -24
- package/dist/esm/wm-flyout.entry.js +174 -0
- package/dist/{ripple → esm}/wm-input.entry.js +23 -7
- package/dist/{ripple → esm}/wm-line-chart.entry.js +182 -94
- package/dist/esm/wm-modal-pss_3.entry.js +214 -0
- package/dist/esm/wm-modal_3.entry.js +232 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/{ripple → esm}/wm-navigator.entry.js +26 -64
- package/dist/{ripple → esm}/wm-nested-select.entry.js +35 -25
- package/dist/{ripple → esm}/wm-optgroup.entry.js +17 -5
- package/dist/esm/wm-option_2.entry.js +531 -0
- package/dist/{ripple → esm}/wm-pagination.entry.js +16 -14
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/{ripple → esm}/wm-search.entry.js +15 -31
- package/dist/{ripple → esm}/wm-snackbar.entry.js +32 -45
- package/dist/esm/wm-tab-item_3.entry.js +351 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +169 -65
- package/dist/{ripple → esm}/wm-tag-option.entry.js +14 -2
- package/dist/{ripple/wm-menuitem.entry.js → esm/wm-textarea.entry.js} +65 -100
- package/dist/{ripple → esm}/wm-timepicker.entry.js +33 -12
- package/dist/{ripple → esm}/wm-toggletip.entry.js +105 -33
- package/dist/esm/wm-uploader.entry.js +337 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-0d364411.entry.js +1 -0
- package/dist/ripple/p-156c4d1d.entry.js +1 -0
- package/dist/ripple/{wm-modal-footer.entry.js → p-26d8c356.entry.js} +1 -44
- package/dist/ripple/p-2b23ce49.entry.js +1 -0
- package/dist/ripple/p-2b7cc2c1.entry.js +1 -0
- package/dist/ripple/p-34bde06a.entry.js +1 -0
- package/dist/ripple/p-35db9386.entry.js +1 -0
- package/dist/ripple/p-38a987ac.entry.js +1 -0
- package/dist/ripple/p-38b05894.entry.js +1 -0
- package/dist/ripple/p-38dee4ab.entry.js +1 -0
- package/dist/ripple/p-3a19d019.entry.js +1 -0
- package/dist/ripple/p-451d4de2.js +1 -0
- package/dist/ripple/p-507f2cf4.entry.js +1 -0
- package/dist/ripple/p-59f74ead.entry.js +1 -0
- package/dist/ripple/p-5c2fc42a.entry.js +1 -0
- package/dist/ripple/p-680d7606.entry.js +1 -0
- package/dist/ripple/p-683264db.js +1 -0
- package/dist/ripple/p-6db681c8.entry.js +1 -0
- package/dist/ripple/p-6e3c2bbc.js +1 -0
- package/dist/ripple/p-6f1cabab.entry.js +1 -0
- package/dist/ripple/p-72d135ee.entry.js +1 -0
- package/dist/ripple/p-7799953c.entry.js +1 -0
- package/dist/ripple/p-83c3db60.js +2 -0
- package/dist/ripple/{wm-progress-monitor.entry.js → p-83cdad78.entry.js} +1 -71
- package/dist/ripple/p-87ef0cfa.entry.js +1 -0
- package/dist/ripple/p-88e44511.entry.js +1 -0
- package/dist/ripple/p-8f8e4eb8.entry.js +1 -0
- package/dist/ripple/p-936adffb.entry.js +1 -0
- package/dist/ripple/p-9755192c.entry.js +1 -0
- package/dist/ripple/p-9c5c591b.js +1 -0
- package/dist/ripple/p-9ea38d96.entry.js +1 -0
- package/dist/ripple/p-be3e4e7c.entry.js +1 -0
- package/dist/ripple/p-c9c7df12.entry.js +1 -0
- package/dist/ripple/p-d7a1be0b.entry.js +1 -0
- package/dist/ripple/p-dab86523.entry.js +1 -0
- package/dist/ripple/{wm-tab-list.entry.js → p-e4aa6e27.entry.js} +1 -175
- package/dist/ripple/p-ebe9f38c.js +1 -0
- package/dist/ripple/p-ed053612.entry.js +1 -0
- package/dist/ripple/p-f43f621b.entry.js +1 -0
- package/dist/ripple/p-f48d30d6.entry.js +1 -0
- package/dist/ripple/{wm-action-menu.entry.js → p-f6aad57c.entry.js} +1 -201
- package/dist/ripple/p-f6e1beb5.entry.js +1 -0
- package/dist/ripple/p-fc843bb8.entry.js +1 -0
- package/dist/ripple/{priv-chart-popover.entry.js → p-fd997764.entry.js} +1 -134
- package/dist/ripple/p-fffb46ad.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/types/components/charts/chartFunctions.d.ts +15 -2
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +25 -11
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +31 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +113 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +195 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +184 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +110 -0
- package/dist/types/components/charts/wm-chart-stack/wm-chart-stack.d.ts +194 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +156 -11
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +53 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +85 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +19 -3
- package/dist/types/components/datepickers/wm-date-range.d.ts +205 -14
- package/dist/types/components/datepickers/wm-datepicker.d.ts +189 -11
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +165 -1
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +193 -12
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +207 -2
- package/dist/types/components/wm-button/wm-button.d.ts +191 -0
- package/dist/types/components/wm-file/wm-file.d.ts +110 -1
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +72 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +205 -0
- package/dist/types/components/wm-input/wm-input.d.ts +161 -1
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +79 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +160 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +6 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +57 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +93 -4
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +100 -1
- package/dist/types/components/wm-search/wm-search.d.ts +158 -6
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +103 -1
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +55 -3
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +119 -20
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +35 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +199 -5
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +99 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +147 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +88 -2
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +145 -3
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +11523 -95
- package/dist/types/global/functions.d.ts +7 -2
- package/dist/types/global/interfaces.d.ts +92 -2
- package/dist/types/global/intl.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +4 -33
- package/dist/components/index.d.ts +0 -33
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/ripple/index-CU5QNCKv.js +0 -4167
- package/dist/ripple/interfaces-CrANcZM9.js +0 -53
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-chart.entry.js +0 -157
- package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
- package/dist/ripple/wm-modal-pss-header.entry.js +0 -39
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation-item.entry.js +0 -18
- package/dist/ripple/wm-option.entry.js +0 -171
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-select.entry.js +0 -249
- package/dist/ripple/wm-tab-item.entry.js +0 -63
- package/dist/ripple/wm-uploader.entry.js +0 -313
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { generateId } from "../../global/functions";
|
|
3
|
+
/**
|
|
4
|
+
* Modal dialog that overlays the page. Renders as a full-bleed `modal` (default) or a
|
|
5
|
+
* smaller centered `dialog`. Content is provided through wm-modal-header, wm-modal-footer,
|
|
6
|
+
* and arbitrary slotted children.
|
|
7
|
+
*
|
|
8
|
+
* @category Communication
|
|
9
|
+
* @displayName Modal & Dialog
|
|
10
|
+
*
|
|
11
|
+
* @slot - Modal content: wm-modal-header, body content, and wm-modal-footer.
|
|
12
|
+
*
|
|
13
|
+
* @keyboardInteraction
|
|
14
|
+
* - **Tab**: Advances focus through focusable elements; wraps from the last element back to the first.
|
|
15
|
+
* - **Shift+Tab**: Moves focus backward; wraps from the first element to the last.
|
|
16
|
+
* - **Escape**: Fires `wmModalCloseTriggered` (the host application must set `open = false` on the element ref in response).
|
|
17
|
+
* - **Enter / Space**: Activates the focused button.
|
|
18
|
+
*
|
|
19
|
+
* @accessibility
|
|
20
|
+
* - Rendered as a `<dialog>` element with `aria-labelledby` pointing to the heading.
|
|
21
|
+
* - When footer buttons receive initial focus (`element-to-focus="primary"` or `"secondary"`),
|
|
22
|
+
* the element `id` on `<wm-modal>` is required — it is used to construct `aria-describedby`
|
|
23
|
+
* relationships between the heading, content, and footer.
|
|
24
|
+
* - The content wrapper must have `id="content-[id of wm-modal]"` for the aria-describedby association.
|
|
25
|
+
* - Focus returns automatically to the element that was active when the modal opened.
|
|
26
|
+
*
|
|
27
|
+
* @usageNotes
|
|
28
|
+
* - Always render the component and toggle `open` — do not conditionally mount/unmount it.
|
|
29
|
+
* Conditional rendering breaks the `aria-live` region detection and can cause body-scroll issues.
|
|
30
|
+
* - In React, set `open` imperatively via a ref (`ref.current.open = true/false`) rather than
|
|
31
|
+
* passing it as a prop. Using the prop triggers a React re-render that interferes with the
|
|
32
|
+
* native `<dialog>` focus-return mechanism and causes `:focus-visible` styles to appear on
|
|
33
|
+
* the trigger element after close.
|
|
34
|
+
* - For scrollable modal content, set `overflow: auto` on the content wrapper and reset
|
|
35
|
+
* `scrollTop` when reopening a previously scrolled modal.
|
|
36
|
+
* - On mobile (<768px) with `modal-type="dialog"`, `element-to-focus` targeting a footer button
|
|
37
|
+
* is overridden to the close button to avoid disorienting scroll behavior.
|
|
38
|
+
*
|
|
39
|
+
* @example {html} Basic modal
|
|
40
|
+
* <wm-modal id="confirm-modal" open>
|
|
41
|
+
* <wm-modal-header heading="Confirm action"></wm-modal-header>
|
|
42
|
+
* <div id="content-confirm-modal">Are you sure you want to continue?</div>
|
|
43
|
+
* <wm-modal-footer primary-text="Confirm" secondary-text="Cancel"></wm-modal-footer>
|
|
44
|
+
* </wm-modal>
|
|
45
|
+
*
|
|
46
|
+
* @example {react} Basic modal
|
|
47
|
+
* // Set open imperatively via ref -- do not use open={} as a React prop.
|
|
48
|
+
* // This preserves the native <dialog> focus-return without triggering :focus-visible.
|
|
49
|
+
* const modalRef = useRef(null);
|
|
50
|
+
*
|
|
51
|
+
* const openModal = () => { modalRef.current.open = true; };
|
|
52
|
+
* const closeModal = () => { modalRef.current.open = false; };
|
|
53
|
+
*
|
|
54
|
+
* <WmButton onClick={openModal}>Open modal</WmButton>
|
|
55
|
+
*
|
|
56
|
+
* <WmModal
|
|
57
|
+
* ref={modalRef}
|
|
58
|
+
* id="confirm-modal"
|
|
59
|
+
* onWmModalCloseTriggered={closeModal}
|
|
60
|
+
* onWmModalPrimaryTriggered={closeModal}
|
|
61
|
+
* onWmModalSecondaryTriggered={closeModal}
|
|
62
|
+
* >
|
|
63
|
+
* <WmModalHeader heading="Confirm action" />
|
|
64
|
+
* <div id="content-confirm-modal">Are you sure you want to continue?</div>
|
|
65
|
+
* <WmModalFooter primaryText="Confirm" secondaryText="Cancel" />
|
|
66
|
+
* </WmModal>
|
|
67
|
+
*
|
|
68
|
+
* @example {html} Dialog type (smaller, centered)
|
|
69
|
+
* <wm-modal id="info-dialog" modal-type="dialog" open>
|
|
70
|
+
* <wm-modal-header heading="Information"></wm-modal-header>
|
|
71
|
+
* <div id="content-info-dialog">This is additional context.</div>
|
|
72
|
+
* <wm-modal-footer primary-text="Got it"></wm-modal-footer>
|
|
73
|
+
* </wm-modal>
|
|
74
|
+
*
|
|
75
|
+
* @example {react} Dialog type
|
|
76
|
+
* const dialogRef = useRef(null);
|
|
77
|
+
*
|
|
78
|
+
* const openDialog = () => { dialogRef.current.open = true; };
|
|
79
|
+
* const closeDialog = () => { dialogRef.current.open = false; };
|
|
80
|
+
*
|
|
81
|
+
* <WmButton onClick={openDialog}>Open dialog</WmButton>
|
|
82
|
+
*
|
|
83
|
+
* <WmModal
|
|
84
|
+
* ref={dialogRef}
|
|
85
|
+
* id="info-dialog"
|
|
86
|
+
* modalType="dialog"
|
|
87
|
+
* onWmModalCloseTriggered={closeDialog}
|
|
88
|
+
* onWmModalPrimaryTriggered={closeDialog}
|
|
89
|
+
* >
|
|
90
|
+
* <WmModalHeader heading="Information" />
|
|
91
|
+
* <div id="content-info-dialog">This is additional context.</div>
|
|
92
|
+
* <WmModalFooter primaryText="Got it" />
|
|
93
|
+
* </WmModal>
|
|
94
|
+
*
|
|
95
|
+
* @requiredSetup
|
|
96
|
+
* - Drive `open` from your own state: true to show the modal, false to hide it. In React set it
|
|
97
|
+
* through a ref (`ref.current.open = true`) rather than as a prop, which breaks the native dialog
|
|
98
|
+
* focus-return.
|
|
99
|
+
* - Handle `wmModalCloseTriggered` -- the close button and Escape -- by setting `open = false`. It
|
|
100
|
+
* does not bubble, so attach the listener to the element itself.
|
|
101
|
+
* - Handle `wmModalPrimaryTriggered` and `wmModalSecondaryTriggered` for whichever wm-modal-footer
|
|
102
|
+
* buttons you render, setting `open = false` to dismiss.
|
|
103
|
+
* - Reset the content wrapper's `scrollTop` to 0 when reopening, if the body content scrolls.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
export class Modal {
|
|
107
|
+
constructor() {
|
|
108
|
+
this.open = false;
|
|
109
|
+
this.elementToFocus = "";
|
|
110
|
+
this.modalType = "modal";
|
|
111
|
+
this.uid = undefined;
|
|
112
|
+
this.returnFocusEl = undefined;
|
|
113
|
+
}
|
|
114
|
+
get closeButtonEl() {
|
|
115
|
+
return this.el.querySelector(`#wm-modal-close-${this.uid}`);
|
|
116
|
+
}
|
|
117
|
+
get focusOnOpenEl() {
|
|
118
|
+
let customElementToFocus = null;
|
|
119
|
+
if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
|
|
120
|
+
if (this.modalType === "dialog" && window.innerWidth < 768) {
|
|
121
|
+
// When a dialog is opened at this smaller width,
|
|
122
|
+
// focusing the footer buttons can cause the dialog to scroll and disorient the user
|
|
123
|
+
customElementToFocus = this.closeButtonEl;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
customElementToFocus = this.el.querySelector(`#wm-${this.elementToFocus}-${this.uid}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (this.elementToFocus) {
|
|
130
|
+
customElementToFocus = this.el.querySelector("#" + this.elementToFocus);
|
|
131
|
+
!customElementToFocus &&
|
|
132
|
+
console.warn(`Ripple Component Library: The modal component couldn't find an element matching the id you passed for 'elementToFocus' (${this.elementToFocus}). It will fall back to the default and focus the close button when the modal opens.`);
|
|
133
|
+
}
|
|
134
|
+
return customElementToFocus;
|
|
135
|
+
}
|
|
136
|
+
get hasBrowserPopoverSupport() {
|
|
137
|
+
// For browsers without popover support, render a fallback tooltip inside the dialog so it appears above it
|
|
138
|
+
return typeof HTMLElement.prototype.showPopover === 'function';
|
|
139
|
+
}
|
|
140
|
+
toggleModal() {
|
|
141
|
+
this.open ? this.showModal() : this.hideModal();
|
|
142
|
+
}
|
|
143
|
+
handleDialogClose() {
|
|
144
|
+
if (this.open) {
|
|
145
|
+
// if this.open = false, dialog close was prompted by user. Otherwise, dialog close was prompted by dialog element itself
|
|
146
|
+
// if dialog element was closed by built-in functionality (escape key), make sure closeTriggered event is emitted to keep app state in sync
|
|
147
|
+
this.wmModalCloseTriggered.emit();
|
|
148
|
+
}
|
|
149
|
+
this.open = false;
|
|
150
|
+
}
|
|
151
|
+
showModal() {
|
|
152
|
+
this.returnFocusEl = document.activeElement;
|
|
153
|
+
this.setAriaDescribedbyOnModal();
|
|
154
|
+
this.initialBodyOverflow = document.body.style.overflow;
|
|
155
|
+
document.body.style.overflow = "hidden"; //Keeps the page below the modal from scrolling
|
|
156
|
+
this.dialogEl.showModal();
|
|
157
|
+
if (this.focusOnOpenEl) {
|
|
158
|
+
this.focusOnOpenEl.focus();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
hideModal() {
|
|
162
|
+
document.body.style.overflow = this.initialBodyOverflow; // TypeScript doesn't like the idea of assigning undefined but that's what we want
|
|
163
|
+
this.dialogEl.close();
|
|
164
|
+
// if focus is lost, bring focus to the element which was in focus when modal opened
|
|
165
|
+
setTimeout(() => {
|
|
166
|
+
if (this.returnFocusEl && document.activeElement === document.body) {
|
|
167
|
+
if (this.returnFocusEl.tagName === "WM-MENUITEM") {
|
|
168
|
+
this.returnFocusEl = this.returnFocusEl.parentElement;
|
|
169
|
+
}
|
|
170
|
+
this.returnFocusEl.focus();
|
|
171
|
+
}
|
|
172
|
+
}, 20);
|
|
173
|
+
}
|
|
174
|
+
componentWillLoad() {
|
|
175
|
+
if (this.elementToFocus === "primary" || this.elementToFocus === "secondary") {
|
|
176
|
+
if (!this.el.id) {
|
|
177
|
+
console.error("For accessibility purposes you need to set the modal content wrapper's id to 'content-[id of wm-modal]'.");
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
this.el.focus = () => {
|
|
181
|
+
if (this.focusOnOpenEl) {
|
|
182
|
+
this.focusOnOpenEl.focus();
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
this.closeButtonEl.focus();
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
this.uid = this.el.id ? this.el.id : generateId();
|
|
189
|
+
}
|
|
190
|
+
componentDidLoad() {
|
|
191
|
+
if (this.open) {
|
|
192
|
+
this.showModal();
|
|
193
|
+
}
|
|
194
|
+
this.dialogEl.addEventListener("close", () => this.handleDialogClose());
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @description Programmatically fires `wmModalCloseTriggered`. Use when you need to trigger
|
|
198
|
+
* a close from outside the modal without simulating a button click.
|
|
199
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
200
|
+
*/
|
|
201
|
+
async emitCloseEvent() {
|
|
202
|
+
this.wmModalCloseTriggered.emit();
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @description Programmatically fires `wmModalPrimaryTriggered`. Use when you need to trigger
|
|
206
|
+
* the primary action from outside the modal.
|
|
207
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
208
|
+
*/
|
|
209
|
+
async emitPrimaryEvent() {
|
|
210
|
+
this.wmModalPrimaryTriggered.emit();
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @description Programmatically fires `wmModalSecondaryTriggered`. Use when you need to trigger
|
|
214
|
+
* the secondary action from outside the modal.
|
|
215
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
216
|
+
*/
|
|
217
|
+
async emitSecondaryEvent() {
|
|
218
|
+
this.wmModalSecondaryTriggered.emit();
|
|
219
|
+
}
|
|
220
|
+
handleKeyDown(ev) {
|
|
221
|
+
if (ev.key == "Escape") {
|
|
222
|
+
ev.stopPropagation();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
setAriaDescribedbyOnModal() {
|
|
226
|
+
const modalBody = document.getElementById(`content-${this.uid}`);
|
|
227
|
+
if (!modalBody) {
|
|
228
|
+
console.warn("Ripple Component Library: The element containing the body of the modal must include an id in the format 'content-[id of modal]' for accessibility purposes.");
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
this.el.setAttribute("aria-describedby", `wm-modal-heading-text-${this.uid} content-${this.uid}`);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
render() {
|
|
235
|
+
return (h("dialog", { key: '995c3ed868be28431fd16f59f42842676fb866dc', class: `${"wm-" + this.modalType}`, "aria-labelledby": `wm-modal-heading-text-${this.uid}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'b70bd7e83d7b89c7878dc8eccb2f6c3744c354b6', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
236
|
+
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
237
|
+
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
238
|
+
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
239
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: '8153ea292a5d2e92c94bc4851a9558d0e4c15dbe', class: "wm-tooltip" }), h("slot", { key: '1056abeca733388eb293562a213221a8d0434b1a' }), h("div", { key: '961af64369b5a2f4645c472dcde9b4b590593972', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
240
|
+
this.focusFirstElement.emit();
|
|
241
|
+
} })));
|
|
242
|
+
}
|
|
243
|
+
static get is() { return "wm-modal"; }
|
|
244
|
+
static get originalStyleUrls() {
|
|
245
|
+
return {
|
|
246
|
+
"$": ["wm-modal.scss"]
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
static get styleUrls() {
|
|
250
|
+
return {
|
|
251
|
+
"$": ["wm-modal.css"]
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
static get properties() {
|
|
255
|
+
return {
|
|
256
|
+
"open": {
|
|
257
|
+
"type": "boolean",
|
|
258
|
+
"mutable": true,
|
|
259
|
+
"complexType": {
|
|
260
|
+
"original": "boolean",
|
|
261
|
+
"resolved": "boolean",
|
|
262
|
+
"references": {}
|
|
263
|
+
},
|
|
264
|
+
"required": false,
|
|
265
|
+
"optional": false,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [{
|
|
268
|
+
"name": "description",
|
|
269
|
+
"text": "Controls the open/closed state of the modal. Always render the component and\ntoggle this prop \u2014 do not conditionally mount/unmount."
|
|
270
|
+
}, {
|
|
271
|
+
"name": "default",
|
|
272
|
+
"text": "false"
|
|
273
|
+
}],
|
|
274
|
+
"text": ""
|
|
275
|
+
},
|
|
276
|
+
"attribute": "open",
|
|
277
|
+
"reflect": true,
|
|
278
|
+
"defaultValue": "false"
|
|
279
|
+
},
|
|
280
|
+
"elementToFocus": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"mutable": true,
|
|
283
|
+
"complexType": {
|
|
284
|
+
"original": "\"primary\" | \"secondary\" | string",
|
|
285
|
+
"resolved": "string",
|
|
286
|
+
"references": {}
|
|
287
|
+
},
|
|
288
|
+
"required": false,
|
|
289
|
+
"optional": false,
|
|
290
|
+
"docs": {
|
|
291
|
+
"tags": [{
|
|
292
|
+
"name": "description",
|
|
293
|
+
"text": "Element to focus when the modal opens. Pass `\"primary\"` or `\"secondary\"` to\nfocus the corresponding wm-modal-footer button, or an element `id` to focus a specific\nelement in the modal body. Defaults to the close button. Requires `id` to be set on\n`<wm-modal>` when targeting footer buttons."
|
|
294
|
+
}, {
|
|
295
|
+
"name": "default",
|
|
296
|
+
"text": "\"\""
|
|
297
|
+
}],
|
|
298
|
+
"text": ""
|
|
299
|
+
},
|
|
300
|
+
"attribute": "element-to-focus",
|
|
301
|
+
"reflect": false,
|
|
302
|
+
"defaultValue": "\"\""
|
|
303
|
+
},
|
|
304
|
+
"modalType": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"mutable": false,
|
|
307
|
+
"complexType": {
|
|
308
|
+
"original": "\"modal\" | \"dialog\"",
|
|
309
|
+
"resolved": "\"dialog\" | \"modal\"",
|
|
310
|
+
"references": {}
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"optional": false,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [{
|
|
316
|
+
"name": "description",
|
|
317
|
+
"text": "Visual presentation style. `'modal'` renders a full-bleed overlay; `'dialog'`\nrenders a smaller centered panel."
|
|
318
|
+
}, {
|
|
319
|
+
"name": "default",
|
|
320
|
+
"text": "\"modal\""
|
|
321
|
+
}],
|
|
322
|
+
"text": ""
|
|
323
|
+
},
|
|
324
|
+
"attribute": "modal-type",
|
|
325
|
+
"reflect": true,
|
|
326
|
+
"defaultValue": "\"modal\""
|
|
327
|
+
},
|
|
328
|
+
"uid": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"mutable": true,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "string",
|
|
333
|
+
"resolved": "string",
|
|
334
|
+
"references": {}
|
|
335
|
+
},
|
|
336
|
+
"required": true,
|
|
337
|
+
"optional": false,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [{
|
|
340
|
+
"name": "description",
|
|
341
|
+
"text": "Unique identifier used internally to wire `aria-labelledby` and\n`aria-describedby` relationships. Set automatically from the element's `id` attribute or\ngenerated if absent \u2014 do not set this prop manually."
|
|
342
|
+
}],
|
|
343
|
+
"text": ""
|
|
344
|
+
},
|
|
345
|
+
"attribute": "uid",
|
|
346
|
+
"reflect": true
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
static get states() {
|
|
351
|
+
return {
|
|
352
|
+
"returnFocusEl": {}
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
static get events() {
|
|
356
|
+
return [{
|
|
357
|
+
"method": "focusLastElement",
|
|
358
|
+
"name": "focusLastElement",
|
|
359
|
+
"bubbles": false,
|
|
360
|
+
"cancelable": true,
|
|
361
|
+
"composed": true,
|
|
362
|
+
"docs": {
|
|
363
|
+
"tags": [{
|
|
364
|
+
"name": "internal",
|
|
365
|
+
"text": undefined
|
|
366
|
+
}, {
|
|
367
|
+
"name": "description",
|
|
368
|
+
"text": "Internal tab-trap signals \u2014 not for application use."
|
|
369
|
+
}],
|
|
370
|
+
"text": ""
|
|
371
|
+
},
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "any",
|
|
374
|
+
"resolved": "any",
|
|
375
|
+
"references": {}
|
|
376
|
+
}
|
|
377
|
+
}, {
|
|
378
|
+
"method": "focusFirstElement",
|
|
379
|
+
"name": "focusFirstElement",
|
|
380
|
+
"bubbles": false,
|
|
381
|
+
"cancelable": true,
|
|
382
|
+
"composed": true,
|
|
383
|
+
"docs": {
|
|
384
|
+
"tags": [{
|
|
385
|
+
"name": "internal",
|
|
386
|
+
"text": undefined
|
|
387
|
+
}, {
|
|
388
|
+
"name": "description",
|
|
389
|
+
"text": "Internal tab-trap signals \u2014 not for application use."
|
|
390
|
+
}],
|
|
391
|
+
"text": ""
|
|
392
|
+
},
|
|
393
|
+
"complexType": {
|
|
394
|
+
"original": "any",
|
|
395
|
+
"resolved": "any",
|
|
396
|
+
"references": {}
|
|
397
|
+
}
|
|
398
|
+
}, {
|
|
399
|
+
"method": "wmModalCloseTriggered",
|
|
400
|
+
"name": "wmModalCloseTriggered",
|
|
401
|
+
"bubbles": false,
|
|
402
|
+
"cancelable": true,
|
|
403
|
+
"composed": true,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [{
|
|
406
|
+
"name": "description",
|
|
407
|
+
"text": "Fires when the close button is clicked or Escape is pressed. Does not bubble,\npreventing nested modals from closing simultaneously. The host application must set `open`\nto false in response."
|
|
408
|
+
}],
|
|
409
|
+
"text": ""
|
|
410
|
+
},
|
|
411
|
+
"complexType": {
|
|
412
|
+
"original": "any",
|
|
413
|
+
"resolved": "any",
|
|
414
|
+
"references": {}
|
|
415
|
+
}
|
|
416
|
+
}, {
|
|
417
|
+
"method": "wmModalPrimaryTriggered",
|
|
418
|
+
"name": "wmModalPrimaryTriggered",
|
|
419
|
+
"bubbles": true,
|
|
420
|
+
"cancelable": true,
|
|
421
|
+
"composed": true,
|
|
422
|
+
"docs": {
|
|
423
|
+
"tags": [{
|
|
424
|
+
"name": "description",
|
|
425
|
+
"text": "Fires when the wm-modal-footer primary button is clicked."
|
|
426
|
+
}],
|
|
427
|
+
"text": ""
|
|
428
|
+
},
|
|
429
|
+
"complexType": {
|
|
430
|
+
"original": "any",
|
|
431
|
+
"resolved": "any",
|
|
432
|
+
"references": {}
|
|
433
|
+
}
|
|
434
|
+
}, {
|
|
435
|
+
"method": "wmModalSecondaryTriggered",
|
|
436
|
+
"name": "wmModalSecondaryTriggered",
|
|
437
|
+
"bubbles": true,
|
|
438
|
+
"cancelable": true,
|
|
439
|
+
"composed": true,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [{
|
|
442
|
+
"name": "description",
|
|
443
|
+
"text": "Fires when the wm-modal-footer secondary button is clicked."
|
|
444
|
+
}],
|
|
445
|
+
"text": ""
|
|
446
|
+
},
|
|
447
|
+
"complexType": {
|
|
448
|
+
"original": "any",
|
|
449
|
+
"resolved": "any",
|
|
450
|
+
"references": {}
|
|
451
|
+
}
|
|
452
|
+
}];
|
|
453
|
+
}
|
|
454
|
+
static get methods() {
|
|
455
|
+
return {
|
|
456
|
+
"emitCloseEvent": {
|
|
457
|
+
"complexType": {
|
|
458
|
+
"signature": "() => Promise<void>",
|
|
459
|
+
"parameters": [],
|
|
460
|
+
"references": {
|
|
461
|
+
"Promise": {
|
|
462
|
+
"location": "global",
|
|
463
|
+
"id": "global::Promise"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"return": "Promise<void>"
|
|
467
|
+
},
|
|
468
|
+
"docs": {
|
|
469
|
+
"text": "",
|
|
470
|
+
"tags": [{
|
|
471
|
+
"name": "description",
|
|
472
|
+
"text": "Programmatically fires `wmModalCloseTriggered`. Use when you need to trigger\na close from outside the modal without simulating a button click."
|
|
473
|
+
}, {
|
|
474
|
+
"name": "returns",
|
|
475
|
+
"text": "A promise that resolves once the event has been emitted."
|
|
476
|
+
}]
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"emitPrimaryEvent": {
|
|
480
|
+
"complexType": {
|
|
481
|
+
"signature": "() => Promise<void>",
|
|
482
|
+
"parameters": [],
|
|
483
|
+
"references": {
|
|
484
|
+
"Promise": {
|
|
485
|
+
"location": "global",
|
|
486
|
+
"id": "global::Promise"
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"return": "Promise<void>"
|
|
490
|
+
},
|
|
491
|
+
"docs": {
|
|
492
|
+
"text": "",
|
|
493
|
+
"tags": [{
|
|
494
|
+
"name": "description",
|
|
495
|
+
"text": "Programmatically fires `wmModalPrimaryTriggered`. Use when you need to trigger\nthe primary action from outside the modal."
|
|
496
|
+
}, {
|
|
497
|
+
"name": "returns",
|
|
498
|
+
"text": "A promise that resolves once the event has been emitted."
|
|
499
|
+
}]
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"emitSecondaryEvent": {
|
|
503
|
+
"complexType": {
|
|
504
|
+
"signature": "() => Promise<void>",
|
|
505
|
+
"parameters": [],
|
|
506
|
+
"references": {
|
|
507
|
+
"Promise": {
|
|
508
|
+
"location": "global",
|
|
509
|
+
"id": "global::Promise"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"return": "Promise<void>"
|
|
513
|
+
},
|
|
514
|
+
"docs": {
|
|
515
|
+
"text": "",
|
|
516
|
+
"tags": [{
|
|
517
|
+
"name": "description",
|
|
518
|
+
"text": "Programmatically fires `wmModalSecondaryTriggered`. Use when you need to trigger\nthe secondary action from outside the modal."
|
|
519
|
+
}, {
|
|
520
|
+
"name": "returns",
|
|
521
|
+
"text": "A promise that resolves once the event has been emitted."
|
|
522
|
+
}]
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
static get elementRef() { return "el"; }
|
|
528
|
+
static get watchers() {
|
|
529
|
+
return [{
|
|
530
|
+
"propName": "open",
|
|
531
|
+
"methodName": "toggleModal"
|
|
532
|
+
}];
|
|
533
|
+
}
|
|
534
|
+
}
|