@watermarkinsights/ripple 5.30.0 → 5.31.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-df7ca137.js +103 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/priv-calendar.cjs.entry.js +27 -27
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +2 -2
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -4
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-column.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-date-range.cjs.entry.js +25 -9
- package/dist/cjs/wm-datepicker.cjs.entry.js +37 -11
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-flyout.cjs.entry.js +6 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal_3.cjs.entry.js +19 -4
- package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +3 -3
- package/dist/cjs/wm-optgroup.cjs.entry.js +11 -1
- package/dist/cjs/wm-option_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +2 -2
- package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-tag-option.cjs.entry.js +8 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +14 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
- package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +7 -2
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +7 -2
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +58 -6
- package/dist/collection/components/charts/wm-chart/wm-chart.js +139 -13
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +134 -7
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +102 -8
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +90 -8
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +153 -17
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +63 -7
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +85 -5
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +52 -6
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +47 -47
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +33 -29
- package/dist/collection/components/datepickers/wm-date-range.js +246 -29
- package/dist/collection/components/datepickers/wm-datepicker.js +254 -30
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +7 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +193 -17
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +116 -11
- package/dist/collection/components/selects/wm-option/wm-option.js +153 -18
- package/dist/collection/components/selects/wm-select/wm-select.js +187 -21
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +148 -12
- package/dist/collection/components/wm-button/wm-button.js +212 -18
- package/dist/collection/components/wm-file/wm-file.js +108 -14
- package/dist/collection/components/wm-file-list/wm-file-list.js +74 -2
- package/dist/collection/components/wm-flyout/wm-flyout.js +215 -16
- package/dist/collection/components/wm-input/wm-input.js +195 -20
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +62 -5
- package/dist/collection/components/wm-modal/wm-modal-footer.js +63 -6
- package/dist/collection/components/wm-modal/wm-modal-header.js +34 -3
- package/dist/collection/components/wm-modal/wm-modal.js +181 -14
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +5 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +5 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +6 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +37 -3
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +47 -5
- package/dist/collection/components/wm-navigation/wm-navigation.js +54 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +5 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +5 -1
- package/dist/collection/components/wm-navigator/wm-navigator.js +102 -9
- package/dist/collection/components/wm-pagination/wm-pagination.js +106 -9
- package/dist/collection/components/wm-search/wm-search.js +182 -16
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +96 -5
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +66 -10
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +96 -5
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +42 -6
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +205 -17
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +97 -12
- package/dist/collection/components/wm-textarea/wm-textarea.js +116 -13
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +190 -16
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +87 -8
- package/dist/collection/components/wm-uploader/wm-uploader.js +142 -14
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +3 -0
- package/dist/collection/global/services/__mocks__/http-service.js +1 -1
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +13915 -0
- package/dist/docs/props-reference.json +2028 -0
- package/dist/docs/skill/index.md +32 -0
- package/dist/docs/skill/wm-action-menu.md +93 -0
- package/dist/docs/skill/wm-button.md +103 -0
- package/dist/docs/skill/wm-chart-bar.md +129 -0
- package/dist/docs/skill/wm-chart-column.md +96 -0
- package/dist/docs/skill/wm-chart-legend.md +67 -0
- package/dist/docs/skill/wm-chart-slice.md +55 -0
- package/dist/docs/skill/wm-chart.md +92 -0
- package/dist/docs/skill/wm-date-range.md +153 -0
- package/dist/docs/skill/wm-datepicker.md +134 -0
- package/dist/docs/skill/wm-file-list.md +97 -0
- package/dist/docs/skill/wm-file.md +78 -0
- package/dist/docs/skill/wm-flyout.md +174 -0
- package/dist/docs/skill/wm-input.md +126 -0
- package/dist/docs/skill/wm-line-chart.md +108 -0
- package/dist/docs/skill/wm-menuitem.md +72 -0
- package/dist/docs/skill/wm-modal-footer.md +73 -0
- package/dist/docs/skill/wm-modal-header.md +65 -0
- package/dist/docs/skill/wm-modal.md +137 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +56 -0
- package/dist/docs/skill/wm-navigation-item.md +69 -0
- package/dist/docs/skill/wm-navigation.md +66 -0
- package/dist/docs/skill/wm-navigator.md +91 -0
- package/dist/docs/skill/wm-nested-select.md +149 -0
- package/dist/docs/skill/wm-optgroup.md +71 -0
- package/dist/docs/skill/wm-option.md +68 -0
- package/dist/docs/skill/wm-pagination.md +95 -0
- package/dist/docs/skill/wm-progress-indicator.md +49 -0
- package/dist/docs/skill/wm-progress-monitor.md +93 -0
- package/dist/docs/skill/wm-progress-slice.md +41 -0
- package/dist/docs/skill/wm-search.md +157 -0
- package/dist/docs/skill/wm-select.md +148 -0
- package/dist/docs/skill/wm-snackbar.md +101 -0
- package/dist/docs/skill/wm-tab-item.md +35 -0
- package/dist/docs/skill/wm-tab-list.md +112 -0
- package/dist/docs/skill/wm-tab-panel.md +33 -0
- package/dist/docs/skill/wm-tag-input.md +165 -0
- package/dist/docs/skill/wm-tag-option.md +59 -0
- package/dist/docs/skill/wm-textarea.md +94 -0
- package/dist/docs/skill/wm-timepicker.md +139 -0
- package/dist/docs/skill/wm-toggletip.md +92 -0
- package/dist/docs/skill/wm-uploader.md +129 -0
- package/dist/docs/skill/wm-wrapper.md +6 -0
- package/dist/docs/wm-action-menu.md +111 -0
- package/dist/docs/wm-button.md +137 -0
- package/dist/docs/wm-chart-bar.md +23 -0
- package/dist/docs/wm-chart-column.md +26 -0
- package/dist/docs/wm-chart-legend.md +31 -0
- package/dist/docs/wm-chart-slice.md +14 -0
- package/dist/docs/wm-chart.md +30 -0
- package/dist/docs/wm-date-range.md +215 -0
- package/dist/docs/wm-datepicker.md +210 -0
- package/dist/docs/wm-file-list.md +95 -0
- package/dist/docs/wm-file.md +34 -0
- package/dist/docs/wm-flyout.md +123 -0
- package/dist/docs/wm-input.md +120 -0
- package/dist/docs/wm-line-chart.md +32 -0
- package/dist/docs/wm-menuitem.md +38 -0
- package/dist/docs/wm-modal-footer.md +106 -0
- package/dist/docs/wm-modal-header.md +100 -0
- package/dist/docs/wm-modal.md +127 -0
- package/dist/docs/wm-navigation-hamburger.md +91 -0
- package/dist/docs/wm-navigation-item.md +98 -0
- package/dist/docs/wm-navigation.md +101 -0
- package/dist/docs/wm-navigator.md +99 -0
- package/dist/docs/wm-nested-select.md +107 -0
- package/dist/docs/wm-optgroup.md +28 -0
- package/dist/docs/wm-option.md +24 -0
- package/dist/docs/wm-pagination.md +94 -0
- package/dist/docs/wm-progress-indicator.md +23 -0
- package/dist/docs/wm-progress-monitor.md +27 -0
- package/dist/docs/wm-progress-slice.md +16 -0
- package/dist/docs/wm-search.md +119 -0
- package/dist/docs/wm-select.md +120 -0
- package/dist/docs/wm-snackbar.md +87 -0
- package/dist/docs/wm-tab-item.md +23 -0
- package/dist/docs/wm-tab-list.md +98 -0
- package/dist/docs/wm-tab-panel.md +18 -0
- package/dist/docs/wm-tag-input.md +123 -0
- package/dist/docs/wm-tag-option.md +33 -0
- package/dist/docs/wm-textarea.md +101 -0
- package/dist/docs/wm-timepicker.md +122 -0
- package/dist/docs/wm-toggletip.md +86 -0
- package/dist/docs/wm-uploader.md +114 -0
- package/dist/docs/wm-wrapper.md +7 -0
- package/dist/esm/app-globals-466ed44b.js +101 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/priv-calendar.entry.js +27 -27
- package/dist/esm/priv-chart-popover-old.entry.js +2 -2
- package/dist/esm/priv-chart-popover_2.entry.js +3 -3
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-action-menu_2.entry.js +5 -4
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-chart-bar.entry.js +1 -1
- package/dist/esm/wm-chart-column.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +1 -1
- package/dist/esm/wm-date-range.entry.js +25 -9
- package/dist/esm/wm-datepicker.entry.js +37 -11
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-flyout.entry.js +6 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +1 -1
- package/dist/esm/wm-modal-pss_3.entry.js +4 -4
- package/dist/esm/wm-modal_3.entry.js +19 -4
- package/dist/esm/wm-navigation_3.entry.js +4 -4
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +3 -3
- package/dist/esm/wm-optgroup.entry.js +11 -1
- package/dist/esm/wm-option_2.entry.js +5 -5
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +2 -2
- package/dist/esm/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +6 -6
- package/dist/esm/wm-tag-input.entry.js +2 -2
- package/dist/esm/wm-tag-option.entry.js +8 -0
- package/dist/esm/wm-textarea.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +14 -2
- package/dist/esm/wm-toggletip.entry.js +3 -3
- package/dist/esm/wm-uploader.entry.js +2 -2
- package/dist/esm-es5/app-globals-466ed44b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
- package/dist/esm-es5/wm-chart-column.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-1fc894ac.system.entry.js → p-012bd307.system.entry.js} +1 -1
- package/dist/ripple/p-03f352dc.entry.js +1 -0
- package/dist/ripple/{p-4f53544d.entry.js → p-03ff4f41.entry.js} +1 -1
- package/dist/ripple/{p-2a03f658.entry.js → p-045aa27f.entry.js} +1 -1
- package/dist/ripple/{p-709d1765.entry.js → p-057ffccb.entry.js} +1 -1
- package/dist/ripple/p-06c3dc14.system.entry.js +1 -0
- package/dist/ripple/{p-ff6fd274.system.entry.js → p-09a80f59.system.entry.js} +1 -1
- package/dist/ripple/{p-3bd8537c.entry.js → p-09fb0a09.entry.js} +1 -1
- package/dist/ripple/p-0a05d3a3.js +1 -0
- package/dist/ripple/{p-3f69041f.entry.js → p-0ab9bac7.entry.js} +1 -1
- package/dist/ripple/{p-332a3e3d.system.entry.js → p-1059cdb9.system.entry.js} +1 -1
- package/dist/ripple/{p-dbdae848.system.entry.js → p-106a9459.system.entry.js} +1 -1
- package/dist/ripple/{p-e1a6ee77.entry.js → p-16381033.entry.js} +1 -1
- package/dist/ripple/{p-b11abb0d.system.entry.js → p-181109f0.system.entry.js} +1 -1
- package/dist/ripple/{p-bb9f54cf.system.entry.js → p-1855c3b1.system.entry.js} +1 -1
- package/dist/ripple/{p-4533241f.entry.js → p-1c25838e.entry.js} +1 -1
- package/dist/ripple/{p-fb6aee09.entry.js → p-1f67b172.entry.js} +1 -1
- package/dist/ripple/{p-a3dd5204.system.entry.js → p-22703bcd.system.entry.js} +1 -1
- package/dist/ripple/{p-a6aef87d.system.entry.js → p-237388c5.system.entry.js} +1 -1
- package/dist/ripple/p-237f5977.system.entry.js +1 -0
- package/dist/ripple/p-25d6cc45.system.js +1 -0
- package/dist/ripple/{p-09d5381c.entry.js → p-299d2d8b.entry.js} +1 -1
- package/dist/ripple/{p-e78f9572.system.entry.js → p-2c1d219f.system.entry.js} +1 -1
- package/dist/ripple/{p-84e04896.entry.js → p-2dbf9636.entry.js} +1 -1
- package/dist/ripple/{p-05dae6a0.entry.js → p-2dc1071a.entry.js} +1 -1
- package/dist/ripple/{p-39bac42a.entry.js → p-3216e2e7.entry.js} +1 -1
- package/dist/ripple/p-3252c04b.system.entry.js +1 -0
- package/dist/ripple/{p-7ca0bb68.system.entry.js → p-32bac954.system.entry.js} +1 -1
- package/dist/ripple/p-33eeaa18.entry.js +1 -0
- package/dist/ripple/p-3441da90.entry.js +1 -0
- package/dist/ripple/p-3502fd33.system.entry.js +1 -0
- package/dist/ripple/{p-f51404f5.entry.js → p-351000b9.entry.js} +1 -1
- package/dist/ripple/{p-bf3eef42.entry.js → p-3c0062c5.entry.js} +1 -1
- package/dist/ripple/{p-c1abc58e.entry.js → p-3d3836ad.entry.js} +1 -1
- package/dist/ripple/p-3e8bfc68.system.entry.js +1 -0
- package/dist/ripple/p-3f403a64.system.entry.js +1 -0
- package/dist/ripple/{p-b974a535.system.entry.js → p-43e8d384.system.entry.js} +1 -1
- package/dist/ripple/p-49dc64ba.entry.js +1 -0
- package/dist/ripple/{p-9d345fc7.system.entry.js → p-4a942d74.system.entry.js} +1 -1
- package/dist/ripple/p-4cc09fa3.system.entry.js +1 -0
- package/dist/ripple/p-5177d4fa.entry.js +1 -0
- package/dist/ripple/p-51fff3a7.system.entry.js +1 -0
- package/dist/ripple/p-54ba0eae.entry.js +1 -0
- package/dist/ripple/{p-c04d0eeb.system.entry.js → p-5609bde2.system.entry.js} +1 -1
- package/dist/ripple/{p-86148143.system.entry.js → p-56e1a71d.system.entry.js} +1 -1
- package/dist/ripple/{p-f94af31c.entry.js → p-578b5443.entry.js} +1 -1
- package/dist/ripple/p-57901fc3.entry.js +1 -0
- package/dist/ripple/{p-463be5be.entry.js → p-57a0cb5f.entry.js} +1 -1
- package/dist/ripple/{p-0db033c3.system.entry.js → p-59b3f92b.system.entry.js} +1 -1
- package/dist/ripple/p-5a533e7c.entry.js +1 -0
- package/dist/ripple/{p-5f092b39.system.entry.js → p-61a0ba92.system.entry.js} +1 -1
- package/dist/ripple/{p-6de83c6f.entry.js → p-623b89e0.entry.js} +1 -1
- package/dist/ripple/{p-6479b06b.entry.js → p-668c0758.entry.js} +1 -1
- package/dist/ripple/p-6a6e98c7.entry.js +1 -0
- package/dist/ripple/{p-b654743f.system.entry.js → p-6c46dd9a.system.entry.js} +1 -1
- package/dist/ripple/{p-4e7ae2c5.system.entry.js → p-6ea254d2.system.entry.js} +1 -1
- package/dist/ripple/p-6f875608.system.entry.js +1 -0
- package/dist/ripple/{p-d05b7cd3.entry.js → p-71a38bd2.entry.js} +1 -1
- package/dist/ripple/{p-dab54a9d.entry.js → p-73a2389d.entry.js} +1 -1
- package/dist/ripple/p-759d87de.entry.js +1 -0
- package/dist/ripple/{p-227b0af9.entry.js → p-75c5ec39.entry.js} +1 -1
- package/dist/ripple/{p-ee729037.system.entry.js → p-7bc3b4ee.system.entry.js} +1 -1
- package/dist/ripple/p-7c7988a3.entry.js +1 -0
- package/dist/ripple/p-81735196.entry.js +1 -0
- package/dist/ripple/{p-a0aba3e0.system.entry.js → p-8376699e.system.entry.js} +1 -1
- package/dist/ripple/{p-503330c1.system.entry.js → p-865208b7.system.entry.js} +1 -1
- package/dist/ripple/{p-28b8a12e.system.entry.js → p-8715d758.system.entry.js} +1 -1
- package/dist/ripple/p-8bfb7664.entry.js +1 -0
- package/dist/ripple/{p-680f5703.entry.js → p-8deb22bc.entry.js} +1 -1
- package/dist/ripple/p-8e32e9de.system.entry.js +1 -0
- package/dist/ripple/{p-bdb10d37.entry.js → p-92e3bf68.entry.js} +1 -1
- package/dist/ripple/{p-0feaaae9.system.entry.js → p-942b323c.system.entry.js} +1 -1
- package/dist/ripple/{p-5173359e.entry.js → p-94fd1dcc.entry.js} +1 -1
- package/dist/ripple/p-991455a2.system.entry.js +1 -0
- package/dist/ripple/p-99a112c8.system.entry.js +1 -0
- package/dist/ripple/p-9a8d91d6.entry.js +1 -0
- package/dist/ripple/{p-e0c0e8b0.system.entry.js → p-9afb642d.system.entry.js} +1 -1
- package/dist/ripple/p-9c850273.system.js +1 -0
- package/dist/ripple/p-a3f9e257.entry.js +1 -0
- package/dist/ripple/p-a5b07241.entry.js +1 -0
- package/dist/ripple/{p-d55bd2b9.entry.js → p-a7a6cf55.system.entry.js} +1 -1
- package/dist/ripple/{p-6f2d3297.system.entry.js → p-a917ea86.system.entry.js} +1 -1
- package/dist/ripple/p-ab5664cd.entry.js +1 -0
- package/dist/ripple/{p-cc028323.entry.js → p-acb04e6e.entry.js} +1 -1
- package/dist/ripple/p-b2624d8f.system.entry.js +1 -0
- package/dist/ripple/p-b5b37960.entry.js +1 -0
- package/dist/ripple/p-b713b6de.system.entry.js +1 -0
- package/dist/ripple/p-b75e9e5f.entry.js +1 -0
- package/dist/ripple/{p-b1924539.system.entry.js → p-b7969fd7.system.entry.js} +1 -1
- package/dist/ripple/{p-a7e637a5.system.entry.js → p-b9596bfc.system.entry.js} +1 -1
- package/dist/ripple/p-b9d3d967.system.entry.js +1 -0
- package/dist/ripple/{p-aafced54.system.entry.js → p-bd365c44.system.entry.js} +1 -1
- package/dist/ripple/p-bd9ab5ae.system.entry.js +1 -0
- package/dist/ripple/p-c0028f4d.system.entry.js +1 -0
- package/dist/ripple/p-c7d3ee52.entry.js +1 -0
- package/dist/ripple/p-c8e4e95b.entry.js +1 -0
- package/dist/ripple/p-c996ade8.entry.js +1 -0
- package/dist/ripple/p-ca8378b0.entry.js +1 -0
- package/dist/ripple/{p-bd37dd6f.entry.js → p-cc2176ad.entry.js} +1 -1
- package/dist/ripple/p-cd496e63.entry.js +1 -0
- package/dist/ripple/p-d0653c32.entry.js +1 -0
- package/dist/ripple/{p-9a5d11cb.entry.js → p-d11e5029.entry.js} +1 -1
- package/dist/ripple/p-d3d0b626.entry.js +1 -0
- package/dist/ripple/p-d4899263.entry.js +1 -0
- package/dist/ripple/p-dc82f194.entry.js +1 -0
- package/dist/ripple/{p-a6ef995c.system.entry.js → p-ddfb976f.system.entry.js} +1 -1
- package/dist/ripple/{p-ee26ba53.entry.js → p-e1899945.entry.js} +1 -1
- package/dist/ripple/p-e26b9711.system.entry.js +1 -0
- package/dist/ripple/{p-10aea5ee.system.entry.js → p-e31f597a.system.entry.js} +1 -1
- package/dist/ripple/p-e35de3cd.system.entry.js +1 -0
- package/dist/ripple/p-e3effa1a.system.entry.js +1 -0
- package/dist/ripple/p-e674e6a7.system.entry.js +1 -0
- package/dist/ripple/{p-8e6e868a.entry.js → p-e7ffd796.entry.js} +1 -1
- package/dist/ripple/p-e800717d.entry.js +1 -0
- package/dist/ripple/p-eab35bea.entry.js +1 -0
- package/dist/ripple/{p-df9d5b14.system.entry.js → p-ebdf16fa.system.entry.js} +1 -1
- package/dist/ripple/p-ed9fc1c1.system.entry.js +1 -0
- package/dist/ripple/p-eda49f0e.entry.js +1 -0
- package/dist/ripple/p-ee33fd7f.system.entry.js +1 -0
- package/dist/ripple/p-ee5f43fe.system.entry.js +1 -0
- package/dist/ripple/{p-928b3e5e.entry.js → p-f0ee3616.entry.js} +1 -1
- package/dist/ripple/{p-02c8bf15.system.entry.js → p-f1215c25.system.entry.js} +1 -1
- package/dist/ripple/p-f148ae9d.system.entry.js +1 -0
- package/dist/ripple/p-f307aabe.entry.js +1 -0
- package/dist/ripple/p-f4f6c904.system.entry.js +1 -0
- package/dist/ripple/p-f58833ae.system.entry.js +1 -0
- package/dist/ripple/p-f7fc6350.system.js +1 -1
- package/dist/ripple/p-f881cdc8.system.entry.js +1 -0
- package/dist/ripple/{p-444feb7d.system.entry.js → p-fbb37b4b.system.entry.js} +1 -1
- package/dist/ripple/{p-40e8071c.system.entry.js → p-fc905b2f.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +5 -0
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +5 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +111 -0
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +131 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +100 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +77 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +134 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +52 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +84 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +6 -2
- package/dist/types/components/datepickers/wm-date-range.d.ts +186 -0
- package/dist/types/components/datepickers/wm-datepicker.d.ts +170 -2
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +162 -0
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +164 -0
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +122 -0
- package/dist/types/components/wm-button/wm-button.d.ts +170 -2
- package/dist/types/components/wm-file/wm-file.d.ts +92 -0
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +71 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +193 -0
- package/dist/types/components/wm-input/wm-input.d.ts +158 -0
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +58 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +148 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +4 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +50 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +91 -3
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +90 -0
- package/dist/types/components/wm-search/wm-search.d.ts +148 -5
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +94 -0
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +43 -2
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +93 -0
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +28 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +185 -0
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +97 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +145 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +74 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +128 -0
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +10513 -57
- package/package.json +2 -2
- package/dist/ripple/p-065b0134.entry.js +0 -1
- package/dist/ripple/p-210773eb.entry.js +0 -1
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
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
|
+
* @slot - Modal content: wm-modal-header, body content, and wm-modal-footer.
|
|
9
|
+
*
|
|
10
|
+
* @keyboardInteraction
|
|
11
|
+
* - **Tab**: Advances focus through focusable elements; wraps from the last element back to the first.
|
|
12
|
+
* - **Shift+Tab**: Moves focus backward; wraps from the first element to the last.
|
|
13
|
+
* - **Escape**: Fires `wmModalCloseTriggered` (the host application must set `open = false` on the element ref in response).
|
|
14
|
+
* - **Enter / Space**: Activates the focused button.
|
|
15
|
+
*
|
|
16
|
+
* @accessibility
|
|
17
|
+
* - Rendered as a `<dialog>` element with `aria-labelledby` pointing to the heading.
|
|
18
|
+
* - When footer buttons receive initial focus (`element-to-focus="primary"` or `"secondary"`),
|
|
19
|
+
* the element `id` on `<wm-modal>` is required — it is used to construct `aria-describedby`
|
|
20
|
+
* relationships between the heading, content, and footer.
|
|
21
|
+
* - The content wrapper must have `id="content-[id of wm-modal]"` for the aria-describedby association.
|
|
22
|
+
* - Focus returns automatically to the element that was active when the modal opened.
|
|
23
|
+
*
|
|
24
|
+
* @usageNotes
|
|
25
|
+
* - Always render the component and toggle `open` — do not conditionally mount/unmount it.
|
|
26
|
+
* Conditional rendering breaks the `aria-live` region detection and can cause body-scroll issues.
|
|
27
|
+
* - In React, set `open` imperatively via a ref (`ref.current.open = true/false`) rather than
|
|
28
|
+
* passing it as a prop. Using the prop triggers a React re-render that interferes with the
|
|
29
|
+
* native `<dialog>` focus-return mechanism and causes `:focus-visible` styles to appear on
|
|
30
|
+
* the trigger element after close.
|
|
31
|
+
* - For scrollable modal content, set `overflow: auto` on the content wrapper and reset
|
|
32
|
+
* `scrollTop` when reopening a previously scrolled modal.
|
|
33
|
+
* - On mobile (<768px) with `modal-type="dialog"`, `element-to-focus` targeting a footer button
|
|
34
|
+
* is overridden to the close button to avoid disorienting scroll behavior.
|
|
35
|
+
*
|
|
36
|
+
* @example {html} Basic modal
|
|
37
|
+
* <wm-modal id="confirm-modal" open>
|
|
38
|
+
* <wm-modal-header heading="Confirm action"></wm-modal-header>
|
|
39
|
+
* <div id="content-confirm-modal">Are you sure you want to continue?</div>
|
|
40
|
+
* <wm-modal-footer primary-text="Confirm" secondary-text="Cancel"></wm-modal-footer>
|
|
41
|
+
* </wm-modal>
|
|
42
|
+
*
|
|
43
|
+
* @example {react} Basic modal
|
|
44
|
+
* // Set open imperatively via ref -- do not use open={} as a React prop.
|
|
45
|
+
* // This preserves the native <dialog> focus-return without triggering :focus-visible.
|
|
46
|
+
* const modalRef = useRef(null);
|
|
47
|
+
*
|
|
48
|
+
* const openModal = () => { modalRef.current.open = true; };
|
|
49
|
+
* const closeModal = () => { modalRef.current.open = false; };
|
|
50
|
+
*
|
|
51
|
+
* <WmButton onWmButtonClicked={openModal}>Open modal</WmButton>
|
|
52
|
+
*
|
|
53
|
+
* <WmModal
|
|
54
|
+
* ref={modalRef}
|
|
55
|
+
* id="confirm-modal"
|
|
56
|
+
* onWmModalCloseTriggered={closeModal}
|
|
57
|
+
* onWmModalPrimaryTriggered={closeModal}
|
|
58
|
+
* onWmModalSecondaryTriggered={closeModal}
|
|
59
|
+
* >
|
|
60
|
+
* <WmModalHeader heading="Confirm action" />
|
|
61
|
+
* <div id="content-confirm-modal">Are you sure you want to continue?</div>
|
|
62
|
+
* <WmModalFooter primaryText="Confirm" secondaryText="Cancel" />
|
|
63
|
+
* </WmModal>
|
|
64
|
+
*
|
|
65
|
+
* @example {html} Dialog type (smaller, centered)
|
|
66
|
+
* <wm-modal id="info-dialog" modal-type="dialog" open>
|
|
67
|
+
* <wm-modal-header heading="Information"></wm-modal-header>
|
|
68
|
+
* <div id="content-info-dialog">This is additional context.</div>
|
|
69
|
+
* <wm-modal-footer primary-text="Got it"></wm-modal-footer>
|
|
70
|
+
* </wm-modal>
|
|
71
|
+
*
|
|
72
|
+
* @example {react} Dialog type
|
|
73
|
+
* const dialogRef = useRef(null);
|
|
74
|
+
*
|
|
75
|
+
* const openDialog = () => { dialogRef.current.open = true; };
|
|
76
|
+
* const closeDialog = () => { dialogRef.current.open = false; };
|
|
77
|
+
*
|
|
78
|
+
* <WmButton onWmButtonClicked={openDialog}>Open dialog</WmButton>
|
|
79
|
+
*
|
|
80
|
+
* <WmModal
|
|
81
|
+
* ref={dialogRef}
|
|
82
|
+
* id="info-dialog"
|
|
83
|
+
* modalType="dialog"
|
|
84
|
+
* onWmModalCloseTriggered={closeDialog}
|
|
85
|
+
* onWmModalPrimaryTriggered={closeDialog}
|
|
86
|
+
* >
|
|
87
|
+
* <WmModalHeader heading="Information" />
|
|
88
|
+
* <div id="content-info-dialog">This is additional context.</div>
|
|
89
|
+
* <WmModalFooter primaryText="Got it" />
|
|
90
|
+
* </WmModal>
|
|
91
|
+
*
|
|
92
|
+
* @category Communication
|
|
93
|
+
* @displayName Modal & Dialog
|
|
94
|
+
*/
|
|
3
95
|
export class Modal {
|
|
4
96
|
constructor() {
|
|
5
97
|
this.open = false;
|
|
@@ -90,12 +182,27 @@ export class Modal {
|
|
|
90
182
|
}
|
|
91
183
|
this.dialogEl.addEventListener("close", () => this.handleDialogClose());
|
|
92
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* @description Programmatically fires `wmModalCloseTriggered`. Use when you need to trigger
|
|
187
|
+
* a close from outside the modal without simulating a button click.
|
|
188
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
189
|
+
*/
|
|
93
190
|
async emitCloseEvent() {
|
|
94
191
|
this.wmModalCloseTriggered.emit();
|
|
95
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* @description Programmatically fires `wmModalPrimaryTriggered`. Use when you need to trigger
|
|
195
|
+
* the primary action from outside the modal.
|
|
196
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
197
|
+
*/
|
|
96
198
|
async emitPrimaryEvent() {
|
|
97
199
|
this.wmModalPrimaryTriggered.emit();
|
|
98
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* @description Programmatically fires `wmModalSecondaryTriggered`. Use when you need to trigger
|
|
203
|
+
* the secondary action from outside the modal.
|
|
204
|
+
* @returns A promise that resolves once the event has been emitted.
|
|
205
|
+
*/
|
|
99
206
|
async emitSecondaryEvent() {
|
|
100
207
|
this.wmModalSecondaryTriggered.emit();
|
|
101
208
|
}
|
|
@@ -114,11 +221,11 @@ export class Modal {
|
|
|
114
221
|
}
|
|
115
222
|
}
|
|
116
223
|
render() {
|
|
117
|
-
return (h("dialog", { key: '
|
|
224
|
+
return (h("dialog", { key: '76ff8c280ec92ae62a2ad7be1cef0ca4b5825a8a', 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: '7e5c8cfcd4b4142ad9613e6c95ab1ee30b8d3983', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
118
225
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
119
226
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
120
227
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
121
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { key: '
|
|
228
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: 'ddcc34184581a5c5706c906cfc29ee993db2ad0a', class: "wm-tooltip" }), h("slot", { key: 'e58b8aa324444208bf8ebf1d014bd22512b8dd4f' }), h("div", { key: '0b9e32ac74195ba449dd001890a8d163d36e5e85', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
122
229
|
this.focusFirstElement.emit();
|
|
123
230
|
} })));
|
|
124
231
|
}
|
|
@@ -146,7 +253,13 @@ export class Modal {
|
|
|
146
253
|
"required": false,
|
|
147
254
|
"optional": false,
|
|
148
255
|
"docs": {
|
|
149
|
-
"tags": [
|
|
256
|
+
"tags": [{
|
|
257
|
+
"name": "description",
|
|
258
|
+
"text": "Controls the open/closed state of the modal. Always render the component and\ntoggle this prop \u2014 do not conditionally mount/unmount."
|
|
259
|
+
}, {
|
|
260
|
+
"name": "default",
|
|
261
|
+
"text": "false"
|
|
262
|
+
}],
|
|
150
263
|
"text": ""
|
|
151
264
|
},
|
|
152
265
|
"attribute": "open",
|
|
@@ -164,7 +277,13 @@ export class Modal {
|
|
|
164
277
|
"required": false,
|
|
165
278
|
"optional": false,
|
|
166
279
|
"docs": {
|
|
167
|
-
"tags": [
|
|
280
|
+
"tags": [{
|
|
281
|
+
"name": "description",
|
|
282
|
+
"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."
|
|
283
|
+
}, {
|
|
284
|
+
"name": "default",
|
|
285
|
+
"text": "\"\""
|
|
286
|
+
}],
|
|
168
287
|
"text": ""
|
|
169
288
|
},
|
|
170
289
|
"attribute": "element-to-focus",
|
|
@@ -182,7 +301,13 @@ export class Modal {
|
|
|
182
301
|
"required": false,
|
|
183
302
|
"optional": false,
|
|
184
303
|
"docs": {
|
|
185
|
-
"tags": [
|
|
304
|
+
"tags": [{
|
|
305
|
+
"name": "description",
|
|
306
|
+
"text": "Visual presentation style. `'modal'` renders a full-bleed overlay; `'dialog'`\nrenders a smaller centered panel."
|
|
307
|
+
}, {
|
|
308
|
+
"name": "default",
|
|
309
|
+
"text": "\"modal\""
|
|
310
|
+
}],
|
|
186
311
|
"text": ""
|
|
187
312
|
},
|
|
188
313
|
"attribute": "modal-type",
|
|
@@ -200,7 +325,10 @@ export class Modal {
|
|
|
200
325
|
"required": true,
|
|
201
326
|
"optional": false,
|
|
202
327
|
"docs": {
|
|
203
|
-
"tags": [
|
|
328
|
+
"tags": [{
|
|
329
|
+
"name": "description",
|
|
330
|
+
"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."
|
|
331
|
+
}],
|
|
204
332
|
"text": ""
|
|
205
333
|
},
|
|
206
334
|
"attribute": "uid",
|
|
@@ -221,7 +349,13 @@ export class Modal {
|
|
|
221
349
|
"cancelable": true,
|
|
222
350
|
"composed": true,
|
|
223
351
|
"docs": {
|
|
224
|
-
"tags": [
|
|
352
|
+
"tags": [{
|
|
353
|
+
"name": "internal",
|
|
354
|
+
"text": undefined
|
|
355
|
+
}, {
|
|
356
|
+
"name": "description",
|
|
357
|
+
"text": "Internal tab-trap signals \u2014 not for application use."
|
|
358
|
+
}],
|
|
225
359
|
"text": ""
|
|
226
360
|
},
|
|
227
361
|
"complexType": {
|
|
@@ -236,7 +370,13 @@ export class Modal {
|
|
|
236
370
|
"cancelable": true,
|
|
237
371
|
"composed": true,
|
|
238
372
|
"docs": {
|
|
239
|
-
"tags": [
|
|
373
|
+
"tags": [{
|
|
374
|
+
"name": "internal",
|
|
375
|
+
"text": undefined
|
|
376
|
+
}, {
|
|
377
|
+
"name": "description",
|
|
378
|
+
"text": "Internal tab-trap signals \u2014 not for application use."
|
|
379
|
+
}],
|
|
240
380
|
"text": ""
|
|
241
381
|
},
|
|
242
382
|
"complexType": {
|
|
@@ -251,7 +391,10 @@ export class Modal {
|
|
|
251
391
|
"cancelable": true,
|
|
252
392
|
"composed": true,
|
|
253
393
|
"docs": {
|
|
254
|
-
"tags": [
|
|
394
|
+
"tags": [{
|
|
395
|
+
"name": "description",
|
|
396
|
+
"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."
|
|
397
|
+
}],
|
|
255
398
|
"text": ""
|
|
256
399
|
},
|
|
257
400
|
"complexType": {
|
|
@@ -266,7 +409,10 @@ export class Modal {
|
|
|
266
409
|
"cancelable": true,
|
|
267
410
|
"composed": true,
|
|
268
411
|
"docs": {
|
|
269
|
-
"tags": [
|
|
412
|
+
"tags": [{
|
|
413
|
+
"name": "description",
|
|
414
|
+
"text": "Fires when the wm-modal-footer primary button is clicked."
|
|
415
|
+
}],
|
|
270
416
|
"text": ""
|
|
271
417
|
},
|
|
272
418
|
"complexType": {
|
|
@@ -281,7 +427,10 @@ export class Modal {
|
|
|
281
427
|
"cancelable": true,
|
|
282
428
|
"composed": true,
|
|
283
429
|
"docs": {
|
|
284
|
-
"tags": [
|
|
430
|
+
"tags": [{
|
|
431
|
+
"name": "description",
|
|
432
|
+
"text": "Fires when the wm-modal-footer secondary button is clicked."
|
|
433
|
+
}],
|
|
285
434
|
"text": ""
|
|
286
435
|
},
|
|
287
436
|
"complexType": {
|
|
@@ -307,7 +456,13 @@ export class Modal {
|
|
|
307
456
|
},
|
|
308
457
|
"docs": {
|
|
309
458
|
"text": "",
|
|
310
|
-
"tags": [
|
|
459
|
+
"tags": [{
|
|
460
|
+
"name": "description",
|
|
461
|
+
"text": "Programmatically fires `wmModalCloseTriggered`. Use when you need to trigger\na close from outside the modal without simulating a button click."
|
|
462
|
+
}, {
|
|
463
|
+
"name": "returns",
|
|
464
|
+
"text": "A promise that resolves once the event has been emitted."
|
|
465
|
+
}]
|
|
311
466
|
}
|
|
312
467
|
},
|
|
313
468
|
"emitPrimaryEvent": {
|
|
@@ -324,7 +479,13 @@ export class Modal {
|
|
|
324
479
|
},
|
|
325
480
|
"docs": {
|
|
326
481
|
"text": "",
|
|
327
|
-
"tags": [
|
|
482
|
+
"tags": [{
|
|
483
|
+
"name": "description",
|
|
484
|
+
"text": "Programmatically fires `wmModalPrimaryTriggered`. Use when you need to trigger\nthe primary action from outside the modal."
|
|
485
|
+
}, {
|
|
486
|
+
"name": "returns",
|
|
487
|
+
"text": "A promise that resolves once the event has been emitted."
|
|
488
|
+
}]
|
|
328
489
|
}
|
|
329
490
|
},
|
|
330
491
|
"emitSecondaryEvent": {
|
|
@@ -341,7 +502,13 @@ export class Modal {
|
|
|
341
502
|
},
|
|
342
503
|
"docs": {
|
|
343
504
|
"text": "",
|
|
344
|
-
"tags": [
|
|
505
|
+
"tags": [{
|
|
506
|
+
"name": "description",
|
|
507
|
+
"text": "Programmatically fires `wmModalSecondaryTriggered`. Use when you need to trigger\nthe secondary action from outside the modal."
|
|
508
|
+
}, {
|
|
509
|
+
"name": "returns",
|
|
510
|
+
"text": "A promise that resolves once the event has been emitted."
|
|
511
|
+
}]
|
|
345
512
|
}
|
|
346
513
|
}
|
|
347
514
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Footer section for a wm-modal-pss. Not to be used outside of PSS.
|
|
5
|
+
*/
|
|
2
6
|
export class ModalPssFooter {
|
|
3
7
|
constructor() {
|
|
4
8
|
this.secondaryText = "";
|
|
@@ -27,7 +31,7 @@ export class ModalPssFooter {
|
|
|
27
31
|
parentModal.emitSecondaryEvent();
|
|
28
32
|
}
|
|
29
33
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'a52ef670cf97eb4d152898d0893d7980a3017ae8', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '14761e4c8b346aa64ab3fcda9c30732a3f18f3bc', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'fb7411b87b34a4ff4081cda0520c14bd598e5333', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'af1a0e8a1ce71735c252a8700f334b4b05ec8811', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)), h("wm-button", { key: '55a18c788134ad22b90ec05ba8ab365b37649358', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
|
|
31
35
|
}
|
|
32
36
|
static get is() { return "wm-modal-pss-footer"; }
|
|
33
37
|
static get originalStyleUrls() {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { globalMessages } from "../../global/intl";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* @description Header section for a wm-modal-pss. Not to be used outside of PSS.
|
|
6
|
+
*/
|
|
3
7
|
export class ModalPssHeader {
|
|
4
8
|
constructor() {
|
|
5
9
|
this.heading = "";
|
|
@@ -25,7 +29,7 @@ export class ModalPssHeader {
|
|
|
25
29
|
// this.headingElement.focus();
|
|
26
30
|
// }
|
|
27
31
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '04ee8b4b40cd449def589f8b7a3af74289273d2d' }, h("div", { key: '718fbd4188d2bfe7a671d548b149569c5bc28c21', class: "wm-wrapper" }, h("div", { key: '659db3df52655116df6adc60ead894f3bd815dc5' }, h("h2", { key: 'a7e11a02093e20fa6103cbe03a8dd1c8d6187245', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: 'c3f7e5923f6b161fd8b416050957b262e8539cd2', class: "subtitle" }, this.subheading))), h("wm-button", { key: '9fc53ae559afdf78354e6831e71e86517f726a71', "button-type": "navigational", icon: "f156", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
29
33
|
}
|
|
30
34
|
static get is() { return "wm-modal-pss-header"; }
|
|
31
35
|
static get originalStyleUrls() {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { checkForActiveElInShadow } from "../../global/functions";
|
|
3
3
|
import { generateId } from "../../global/functions";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* @description Modal component created specifically for Planning and Self Studies. Not to be used outside of PSS.
|
|
7
|
+
*/
|
|
4
8
|
export class ModalPss {
|
|
5
9
|
constructor() {
|
|
6
10
|
this.bodyFocusListener = () => this.redirectFocusFromBody();
|
|
@@ -115,9 +119,9 @@ export class ModalPss {
|
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
122
|
+
return (h(Host, { key: 'aa75d1fe486eb78c8a8f8a7981358ef957f96604', class: `${this.open ? "" : "hide "}${"wm-" + this.modalType}`, role: "dialog", "aria-describedby": `wm-modal-heading-text-${this.uid}`, "aria-modal": "true", tabindex: this.open ? 0 : null, onFocus: () => {
|
|
119
123
|
this.focusLastElement.emit();
|
|
120
|
-
} }, h("div", { key: '
|
|
124
|
+
} }, h("div", { key: '9261a0354ae19956d46d816532c487302cfd2883', class: "overlay", ref: (el) => (this.overlayEl = el) }), h("div", { key: 'f746291ba0e49265e418efc506aa023b55c28dfc', class: "sr-only", tabIndex: 0, onFocus: () => {
|
|
121
125
|
this.focusFirstElement.emit();
|
|
122
126
|
} })));
|
|
123
127
|
}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { intl, showTooltip, hideTooltip } from "../../global/functions";
|
|
3
|
+
/**
|
|
4
|
+
* Toggle button for the collapsible wm-navigation sidebar. Renders a hamburger/menu icon
|
|
5
|
+
* button that communicates with wm-navigation via window events. Place immediately before
|
|
6
|
+
* the associated wm-navigation element in the DOM.
|
|
7
|
+
*
|
|
8
|
+
* @keyboardInteraction
|
|
9
|
+
* - **Enter / Space**: Toggles the navigation open/closed.
|
|
10
|
+
*
|
|
11
|
+
* @accessibility
|
|
12
|
+
* - Rendered as a `<button>` with `aria-expanded` reflecting the navigation's open state.
|
|
13
|
+
* - Keeps `aria-expanded` in sync by listening to `wmNavigationStateChanged` from the
|
|
14
|
+
* associated wm-navigation element.
|
|
15
|
+
*
|
|
16
|
+
* @usageNotes
|
|
17
|
+
* - `nav-id` is required; it must match the `id` on the associated wm-navigation element.
|
|
18
|
+
* - Place this component immediately before the wm-navigation element in the DOM.
|
|
19
|
+
*
|
|
20
|
+
* @example {html} Basic hamburger
|
|
21
|
+
* <wm-navigation-hamburger nav-id="main-nav"></wm-navigation-hamburger>
|
|
22
|
+
* <wm-navigation id="main-nav">...</wm-navigation>
|
|
23
|
+
*
|
|
24
|
+
* @example {react} Basic hamburger
|
|
25
|
+
* <WmNavigationHamburger navId="main-nav" />
|
|
26
|
+
* <WmNavigation id="main-nav">...</WmNavigation>
|
|
27
|
+
*/
|
|
3
28
|
export class NavigationHamburger {
|
|
4
29
|
constructor() {
|
|
5
30
|
this.showNavMessage = intl.formatMessage({
|
|
@@ -34,7 +59,7 @@ export class NavigationHamburger {
|
|
|
34
59
|
this.wmNavigationHamburgerClicked.emit();
|
|
35
60
|
}
|
|
36
61
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: 'df69ca361664452da552f6f401df3b541e82d112', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: '34e5d08cdf3a131d94e25a6b25e1278ed4988a56', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: '356150524abde1f09b453d4f9fa83c202588a534', class: "svg-icon svg-menu" }))));
|
|
38
63
|
}
|
|
39
64
|
static get is() { return "wm-navigation-hamburger"; }
|
|
40
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,7 +87,13 @@ export class NavigationHamburger {
|
|
|
62
87
|
"required": false,
|
|
63
88
|
"optional": true,
|
|
64
89
|
"docs": {
|
|
65
|
-
"tags": [
|
|
90
|
+
"tags": [{
|
|
91
|
+
"name": "description",
|
|
92
|
+
"text": "The `id` of the associated wm-navigation element. Required for semantic\nlinking and for keeping `aria-expanded` in sync with the navigation's open state."
|
|
93
|
+
}, {
|
|
94
|
+
"name": "required",
|
|
95
|
+
"text": undefined
|
|
96
|
+
}],
|
|
66
97
|
"text": ""
|
|
67
98
|
},
|
|
68
99
|
"attribute": "nav-id",
|
|
@@ -84,7 +115,10 @@ export class NavigationHamburger {
|
|
|
84
115
|
"cancelable": true,
|
|
85
116
|
"composed": true,
|
|
86
117
|
"docs": {
|
|
87
|
-
"tags": [
|
|
118
|
+
"tags": [{
|
|
119
|
+
"name": "description",
|
|
120
|
+
"text": "Fires when the button is clicked. Consumed by the associated wm-navigation\nto toggle its `open` state \u2014 not intended for direct application use."
|
|
121
|
+
}],
|
|
88
122
|
"text": ""
|
|
89
123
|
},
|
|
90
124
|
"complexType": {
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
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 class NavigationItem {
|
|
3
30
|
constructor() {
|
|
4
31
|
this.href = undefined;
|
|
@@ -6,7 +33,7 @@ export class NavigationItem {
|
|
|
6
33
|
this.active = undefined;
|
|
7
34
|
}
|
|
8
35
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'a6c1d9806c0da87d12dad513c5137e7a2186d749', role: "listitem" }, h("a", { key: '0d8f022c002d086158f27d3edbdf114c5e9087ba', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: '39e7641878440f468c447a755628965ce9268a22', class: "icon", "aria-hidden": "true" }, h("slot", { key: 'b09705b9625d7e8b43232345741c3eca0738650f' })), h("div", { key: '24e76eaae0dbfb701d08770ad0f645812419ac02', class: "text" }, this.text))));
|
|
10
37
|
}
|
|
11
38
|
static get is() { return "wm-navigation-item"; }
|
|
12
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,7 +61,10 @@ export class NavigationItem {
|
|
|
34
61
|
"required": false,
|
|
35
62
|
"optional": true,
|
|
36
63
|
"docs": {
|
|
37
|
-
"tags": [
|
|
64
|
+
"tags": [{
|
|
65
|
+
"name": "description",
|
|
66
|
+
"text": "URL the link navigates to."
|
|
67
|
+
}],
|
|
38
68
|
"text": ""
|
|
39
69
|
},
|
|
40
70
|
"attribute": "href",
|
|
@@ -51,7 +81,10 @@ export class NavigationItem {
|
|
|
51
81
|
"required": false,
|
|
52
82
|
"optional": true,
|
|
53
83
|
"docs": {
|
|
54
|
-
"tags": [
|
|
84
|
+
"tags": [{
|
|
85
|
+
"name": "description",
|
|
86
|
+
"text": "The visible label text for the navigation link."
|
|
87
|
+
}],
|
|
55
88
|
"text": ""
|
|
56
89
|
},
|
|
57
90
|
"attribute": "text",
|
|
@@ -68,7 +101,13 @@ export class NavigationItem {
|
|
|
68
101
|
"required": false,
|
|
69
102
|
"optional": true,
|
|
70
103
|
"docs": {
|
|
71
|
-
"tags": [
|
|
104
|
+
"tags": [{
|
|
105
|
+
"name": "description",
|
|
106
|
+
"text": "Marks this item as the currently active route, applying active styling."
|
|
107
|
+
}, {
|
|
108
|
+
"name": "default",
|
|
109
|
+
"text": "false"
|
|
110
|
+
}],
|
|
72
111
|
"text": ""
|
|
73
112
|
},
|
|
74
113
|
"attribute": "active",
|
|
@@ -84,7 +123,10 @@ export class NavigationItem {
|
|
|
84
123
|
"cancelable": true,
|
|
85
124
|
"composed": true,
|
|
86
125
|
"docs": {
|
|
87
|
-
"tags": [
|
|
126
|
+
"tags": [{
|
|
127
|
+
"name": "description",
|
|
128
|
+
"text": "Fires when the link is clicked. Consumed by the parent wm-navigation to\nclose the collapsible menu on narrow viewports."
|
|
129
|
+
}],
|
|
88
130
|
"text": ""
|
|
89
131
|
},
|
|
90
132
|
"complexType": {
|
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
2
|
import { intl, throttle } from "../../global/functions";
|
|
3
3
|
import { globalMessages } from "../../global/intl";
|
|
4
|
+
/**
|
|
5
|
+
* Sidebar navigation that collapses into a hamburger menu on viewports narrower than 1024px.
|
|
6
|
+
* Contains wm-navigation-item children and works alongside an external wm-navigation-hamburger
|
|
7
|
+
* toggle. Must be placed in the DOM after `<header>` and before `<main>`.
|
|
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
|
+
* @example {html} Basic navigation
|
|
30
|
+
* <wm-navigation-hamburger nav-id="main-nav"></wm-navigation-hamburger>
|
|
31
|
+
* <wm-navigation id="main-nav">
|
|
32
|
+
* <wm-navigation-item href="/dashboard" text="Dashboard" active></wm-navigation-item>
|
|
33
|
+
* <wm-navigation-item href="/reports" text="Reports"></wm-navigation-item>
|
|
34
|
+
* </wm-navigation>
|
|
35
|
+
*
|
|
36
|
+
* @example {react} Basic navigation
|
|
37
|
+
* <WmNavigationHamburger navId="main-nav" />
|
|
38
|
+
* <WmNavigation id="main-nav">
|
|
39
|
+
* <WmNavigationItem href="/dashboard" text="Dashboard" active={true} />
|
|
40
|
+
* <WmNavigationItem href="/reports" text="Reports" />
|
|
41
|
+
* </WmNavigation>
|
|
42
|
+
*
|
|
43
|
+
* @category Navigation
|
|
44
|
+
*/
|
|
4
45
|
export class Navigation {
|
|
5
46
|
constructor() {
|
|
6
47
|
this.mainNavigationMessage = intl.formatMessage({
|
|
@@ -96,9 +137,9 @@ export class Navigation {
|
|
|
96
137
|
} }));
|
|
97
138
|
}
|
|
98
139
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
140
|
+
return (h(Host, { key: '7ce2ecc617d551f0cb7223c261d67ba77ffc94a3', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: 'b1cf578c11f6b77ab8b2941eacaddbf067e8c41f', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: 'd659f52712bf5086105db9dee561974439c2196f', class: "tray" }, h("div", { key: 'f8ab74aee8ef40588e8e1a581b1a2a398b236c67', class: "toggle-wrapper" }, h("wm-button", { key: '585f5cc59d58477daba2645d10b96706151c3a46', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "#close" : "#menu", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
100
141
|
this.open = !this.open;
|
|
101
|
-
} })), h("ul", { key: '
|
|
142
|
+
} })), h("ul", { key: 'c1bbc03cb4157c9b5a1713a5556438952aa140fa', class: "navlist" }, h("slot", { key: '3175962a28ac681dfe5cd6bb6f05f448641b4f1c' }))), this.isCollapsible && (h("div", { key: '21f7d9c75610ca8d590467a7f7eda4c6e29140e1', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
|
|
102
143
|
}
|
|
103
144
|
static get is() { return "wm-navigation"; }
|
|
104
145
|
static get encapsulation() { return "shadow"; }
|
|
@@ -126,7 +167,13 @@ export class Navigation {
|
|
|
126
167
|
"required": false,
|
|
127
168
|
"optional": false,
|
|
128
169
|
"docs": {
|
|
129
|
-
"tags": [
|
|
170
|
+
"tags": [{
|
|
171
|
+
"name": "description",
|
|
172
|
+
"text": "Controls the open/closed state of the collapsible navigation. Has no effect\non viewports wider than 1024px where the navigation is always visible."
|
|
173
|
+
}, {
|
|
174
|
+
"name": "default",
|
|
175
|
+
"text": "false"
|
|
176
|
+
}],
|
|
130
177
|
"text": ""
|
|
131
178
|
},
|
|
132
179
|
"attribute": "open",
|
|
@@ -143,7 +190,10 @@ export class Navigation {
|
|
|
143
190
|
"cancelable": true,
|
|
144
191
|
"composed": true,
|
|
145
192
|
"docs": {
|
|
146
|
-
"tags": [
|
|
193
|
+
"tags": [{
|
|
194
|
+
"name": "description",
|
|
195
|
+
"text": "Fires when the collapsible navigation opens or closes. Consumed by\nwm-navigation-hamburger to keep its `aria-expanded` state in sync."
|
|
196
|
+
}],
|
|
147
197
|
"text": ""
|
|
148
198
|
},
|
|
149
199
|
"complexType": {
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Internal navigator button component for use with the Navigation component. Not to be used directly.
|
|
5
|
+
*/
|
|
2
6
|
export class PrivNavigatorButton {
|
|
3
7
|
constructor() {
|
|
4
8
|
this.expanded = false;
|
|
@@ -9,7 +13,7 @@ export class PrivNavigatorButton {
|
|
|
9
13
|
}
|
|
10
14
|
render() {
|
|
11
15
|
const { handleClick, altText } = this;
|
|
12
|
-
return (h("button", { key: '
|
|
16
|
+
return (h("button", { key: '2f94dbb64a96096e852ec572f16264600c7fca8f', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
13
17
|
}
|
|
14
18
|
static get is() { return "priv-navigator-button"; }
|
|
15
19
|
static get encapsulation() { return "shadow"; }
|