@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,6 +1,79 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { generateId, hideTooltip, intl, showTooltip } from "../../global/functions";
|
|
3
3
|
import { globalMessages } from "../../global/intl";
|
|
4
|
+
/**
|
|
5
|
+
* Toast notification stack that renders transient messages at the bottom of the page.
|
|
6
|
+
* Notifications auto-dismiss after 6 seconds unless they include a `link` or `action`, in
|
|
7
|
+
* which case they persist until explicitly dismissed or the user tabs past them.
|
|
8
|
+
*
|
|
9
|
+
* @keyboardInteraction
|
|
10
|
+
* - **Tab**: Moves focus from the action link/button to the close button; tabbing past the
|
|
11
|
+
* close button dismisses the notification and returns focus to the previously active element.
|
|
12
|
+
* - **Shift+Tab**: Dismisses the notification from the action link and returns focus; moves
|
|
13
|
+
* from the close button back to the action link.
|
|
14
|
+
* - **Enter**: Activates the focused close button or action link/button.
|
|
15
|
+
*
|
|
16
|
+
* @accessibility
|
|
17
|
+
* - Renders an `aria-live` region that announces new notification messages to screen readers.
|
|
18
|
+
* - When a notification includes a `link` or `action` and the user is navigating by keyboard,
|
|
19
|
+
* focus moves automatically to the action element when the notification appears.
|
|
20
|
+
* - Focus returns to the previously active element when the notification is dismissed.
|
|
21
|
+
*
|
|
22
|
+
* @usageNotes
|
|
23
|
+
* - `notifications` is typed as a string — always pass `JSON.stringify(array)` in both HTML
|
|
24
|
+
* and React. Passing an array directly causes a "[object Object] is not valid JSON" error.
|
|
25
|
+
* - Each notification object requires a unique `id` (string) and a `message` (string).
|
|
26
|
+
* Optional fields: `link` (string, renders a navigation anchor), `action` (string, renders
|
|
27
|
+
* a button), `newWindow` (boolean, adds an "opens in new window" indicator to the link).
|
|
28
|
+
* - Use `link` for navigation actions and `action` for in-page triggers such as "Undo" —
|
|
29
|
+
* both emit `wmSnackbarActionTriggered` when clicked.
|
|
30
|
+
* - Listen to `wmSnackbarSnackFinished` and remove the matching notification from your array
|
|
31
|
+
* to keep state in sync. The 6-second auto-dismiss timer is disabled for notifications
|
|
32
|
+
* with a `link` or `action` — remove them manually after the action is handled.
|
|
33
|
+
* - `wmSnackbarSnackFinished` detail: `{ id: string }`.
|
|
34
|
+
* - `wmSnackbarActionTriggered` detail: `{ id: string, message: string, action?: string, link?: string }`.
|
|
35
|
+
*
|
|
36
|
+
* @example {html} Simple notification
|
|
37
|
+
* <wm-snackbar notifications='[{"id":"1","message":"Changes saved."}]'></wm-snackbar>
|
|
38
|
+
*
|
|
39
|
+
* @example {react} Notification stack with action and link variants
|
|
40
|
+
* // notifications is typed as string — always pass JSON.stringify(array), never the array directly.
|
|
41
|
+
* // wmSnackbarSnackFinished fires when a notification auto-dismisses or is closed.
|
|
42
|
+
* // wmSnackbarActionTriggered fires when the action button or link is clicked;
|
|
43
|
+
* // remove the notification manually after handling the action.
|
|
44
|
+
* let nextId = 1;
|
|
45
|
+
* const [notifications, setNotifications] = useState([]);
|
|
46
|
+
*
|
|
47
|
+
* const addNotification = (notification) =>
|
|
48
|
+
* setNotifications((prev) => [...prev, { id: String(nextId++), ...notification }]);
|
|
49
|
+
*
|
|
50
|
+
* const removeNotification = (id) =>
|
|
51
|
+
* setNotifications((prev) => prev.filter((n) => n.id !== id));
|
|
52
|
+
*
|
|
53
|
+
* const handleActionTriggered = (e) => {
|
|
54
|
+
* const { id, action } = e.detail;
|
|
55
|
+
* if (action === "Undo") { handleUndo(); }
|
|
56
|
+
* removeNotification(id);
|
|
57
|
+
* };
|
|
58
|
+
*
|
|
59
|
+
* <WmButton buttonType="secondary" onClick={() => addNotification({ message: "Changes saved." })}>
|
|
60
|
+
* Simple notification
|
|
61
|
+
* </WmButton>
|
|
62
|
+
* <WmButton buttonType="secondary" onClick={() => addNotification({ message: "Item deleted.", action: "Undo" })}>
|
|
63
|
+
* With action
|
|
64
|
+
* </WmButton>
|
|
65
|
+
* <WmButton buttonType="secondary" onClick={() => addNotification({ message: "Report ready.", link: "#report" })}>
|
|
66
|
+
* With link
|
|
67
|
+
* </WmButton>
|
|
68
|
+
*
|
|
69
|
+
* <WmSnackbar
|
|
70
|
+
* notifications={JSON.stringify(notifications)}
|
|
71
|
+
* onWmSnackbarSnackFinished={(e) => removeNotification(e.detail.id)}
|
|
72
|
+
* onWmSnackbarActionTriggered={handleActionTriggered}
|
|
73
|
+
* />
|
|
74
|
+
*
|
|
75
|
+
* @category Communication
|
|
76
|
+
*/
|
|
4
77
|
export class Snackbar {
|
|
5
78
|
constructor() {
|
|
6
79
|
this.parsedNotifications = [];
|
|
@@ -149,11 +222,11 @@ export class Snackbar {
|
|
|
149
222
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link), notification.newWindow && h("div", { class: "svg-icon svg-open-in-new" }))), (!notification.link && notification.action) && (h("button", { id: `action-${notification.id}`, class: "link", onClick: () => this.snackLinkClicked(notification), onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, notification.action))), h("button", { id: `close-button-${notification.id}`, "aria-label": this.closeSnackMessage, class: "closesnack", tabindex: notification.link || notification.action ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() }, h("div", { class: "svg-icon svg-close" }))), h("div", { class: "sr-only", tabindex: notification.link || notification.action ? 0 : -1, onFocus: () => (notification.link || notification.action) && this.snackDismissed(notification) })))));
|
|
150
223
|
}
|
|
151
224
|
render() {
|
|
152
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: 'f07da5e5b3f84c3204052cf37faa118c64ecfd45' }, h("div", { key: '9c76ca586e69af5035b086f023faa76aab39b239', ref: (el) => (this.snackAreaEl = el), class: {
|
|
153
226
|
"list-wrapper": true,
|
|
154
227
|
"user-is-tabbing": this.isTabbing,
|
|
155
228
|
empty: this.parsedNotifications.length == 0,
|
|
156
|
-
} }, this.renderSnackbars()), h("div", { key: '
|
|
229
|
+
} }, this.renderSnackbars()), h("div", { key: '6cc4cb95390ffccbd6e1f4ec535aed7774184c3a', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
157
230
|
}
|
|
158
231
|
static get is() { return "wm-snackbar"; }
|
|
159
232
|
static get encapsulation() { return "shadow"; }
|
|
@@ -180,7 +253,13 @@ export class Snackbar {
|
|
|
180
253
|
"required": false,
|
|
181
254
|
"optional": false,
|
|
182
255
|
"docs": {
|
|
183
|
-
"tags": [
|
|
256
|
+
"tags": [{
|
|
257
|
+
"name": "description",
|
|
258
|
+
"text": "JSON-encoded array of notification objects to display. Each object must\ninclude `id` (string) and `message` (string). Optional fields: `link` (string, renders\na navigation anchor), `action` (string, renders a button), `newWindow` (boolean, adds an\n\"opens in new window\" indicator to the link). Always pass as `JSON.stringify(array)` \u2014\npassing an array directly causes a \"[object Object] is not valid JSON\" error."
|
|
259
|
+
}, {
|
|
260
|
+
"name": "required",
|
|
261
|
+
"text": undefined
|
|
262
|
+
}],
|
|
184
263
|
"text": ""
|
|
185
264
|
},
|
|
186
265
|
"attribute": "notifications",
|
|
@@ -203,7 +282,13 @@ export class Snackbar {
|
|
|
203
282
|
"cancelable": true,
|
|
204
283
|
"composed": true,
|
|
205
284
|
"docs": {
|
|
206
|
-
"tags": [
|
|
285
|
+
"tags": [{
|
|
286
|
+
"name": "description",
|
|
287
|
+
"text": "Fires when a notification should be removed \u2014 after the 6-second\nauto-dismiss timer expires or when the user clicks the close button. The host application\nshould remove the matching notification from its array. The timer is disabled for\nnotifications with a `link` or `action`."
|
|
288
|
+
}, {
|
|
289
|
+
"name": "eventDetails",
|
|
290
|
+
"text": "{{ id: string, message: string, link?: string, newWindow?: boolean, action?: string }}"
|
|
291
|
+
}],
|
|
207
292
|
"text": ""
|
|
208
293
|
},
|
|
209
294
|
"complexType": {
|
|
@@ -223,7 +308,13 @@ export class Snackbar {
|
|
|
223
308
|
"cancelable": true,
|
|
224
309
|
"composed": true,
|
|
225
310
|
"docs": {
|
|
226
|
-
"tags": [
|
|
311
|
+
"tags": [{
|
|
312
|
+
"name": "description",
|
|
313
|
+
"text": "Fires when the user clicks the `link` anchor or `action` button. The host\napplication should remove the notification and navigate (for links) or execute the action\n(for buttons)."
|
|
314
|
+
}, {
|
|
315
|
+
"name": "eventDetails",
|
|
316
|
+
"text": "{{ id: string, message: string, link?: string, newWindow?: boolean, action?: string }}"
|
|
317
|
+
}],
|
|
227
318
|
"text": ""
|
|
228
319
|
},
|
|
229
320
|
"complexType": {
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Individual tab button inside a wm-tab-list. Renders as a link with `role="tab"` and
|
|
4
|
+
* manages selection state. Always used as a direct child of wm-tab-list.
|
|
5
|
+
*
|
|
6
|
+
* @slot - The visible label text for the tab.
|
|
7
|
+
*
|
|
8
|
+
* @usageNotes
|
|
9
|
+
* - `tab-id` is required and must match the `tab-id` of the corresponding wm-tab-panel.
|
|
10
|
+
* - Listen to `wmTabSelected` and update the `selected-tab` prop on the parent wm-tab-list
|
|
11
|
+
* to switch the active tab and show the associated panel.
|
|
12
|
+
*
|
|
13
|
+
* @example {html} Tab item
|
|
14
|
+
* <wm-tab-item tab-id="overview">Overview</wm-tab-item>
|
|
15
|
+
*
|
|
16
|
+
* @example {react} Tab item
|
|
17
|
+
* <WmTabItem tabId="overview">Overview</WmTabItem>
|
|
18
|
+
*/
|
|
2
19
|
export class TabItem {
|
|
3
20
|
constructor() {
|
|
4
21
|
this.tabClicked = (ev) => {
|
|
@@ -27,9 +44,9 @@ export class TabItem {
|
|
|
27
44
|
}
|
|
28
45
|
render() {
|
|
29
46
|
const isDark = this.parentTabList && this.parentTabList.customBackground == "dark";
|
|
30
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '09406067cd1ae000a78ddff45e3db8041d599477', role: "presentation" }, h("li", { key: 'f0206a113c2604be1922316c8447622adac13009', class: `tab-item ${isDark ? "dark" : ""}`, role: "presentation" }, h("a", { key: 'a30638675f1e75fd13bc552c0a46589e7bf37b09', class: `tab`, role: "tab", ref: (el) => (this.linkEl = el), id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1, onClick: this.tabClicked, onFocus: () => {
|
|
31
48
|
this.wmIntTabFocused.emit({ tabItem: this.el });
|
|
32
|
-
} }, h("slot", { key: '
|
|
49
|
+
} }, h("slot", { key: '05aed02e5c3472ea6a19ff066225992e495572ad' })))));
|
|
33
50
|
}
|
|
34
51
|
static get is() { return "wm-tab-item"; }
|
|
35
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,8 +74,14 @@ export class TabItem {
|
|
|
57
74
|
"required": false,
|
|
58
75
|
"optional": false,
|
|
59
76
|
"docs": {
|
|
60
|
-
"tags": [
|
|
61
|
-
|
|
77
|
+
"tags": [{
|
|
78
|
+
"name": "description",
|
|
79
|
+
"text": "Whether this tab is currently active. Managed by the parent wm-tab-list \u2014\ndo not set manually."
|
|
80
|
+
}, {
|
|
81
|
+
"name": "default",
|
|
82
|
+
"text": "false"
|
|
83
|
+
}],
|
|
84
|
+
"text": ""
|
|
62
85
|
},
|
|
63
86
|
"attribute": "selected",
|
|
64
87
|
"reflect": false,
|
|
@@ -75,8 +98,14 @@ export class TabItem {
|
|
|
75
98
|
"required": false,
|
|
76
99
|
"optional": false,
|
|
77
100
|
"docs": {
|
|
78
|
-
"tags": [
|
|
79
|
-
|
|
101
|
+
"tags": [{
|
|
102
|
+
"name": "description",
|
|
103
|
+
"text": "Unique identifier linking this tab to its associated wm-tab-panel. Must\nmatch the `tab-id` on the corresponding wm-tab-panel."
|
|
104
|
+
}, {
|
|
105
|
+
"name": "required",
|
|
106
|
+
"text": undefined
|
|
107
|
+
}],
|
|
108
|
+
"text": ""
|
|
80
109
|
},
|
|
81
110
|
"attribute": "tab-id",
|
|
82
111
|
"reflect": false,
|
|
@@ -92,7 +121,13 @@ export class TabItem {
|
|
|
92
121
|
"cancelable": true,
|
|
93
122
|
"composed": true,
|
|
94
123
|
"docs": {
|
|
95
|
-
"tags": [
|
|
124
|
+
"tags": [{
|
|
125
|
+
"name": "description",
|
|
126
|
+
"text": "Fires when this tab is clicked or activated by keyboard. Listen to this\nevent and update the `selected-tab` prop on the parent wm-tab-list to switch the active\ntab."
|
|
127
|
+
}, {
|
|
128
|
+
"name": "eventDetails",
|
|
129
|
+
"text": "{{ tabId: string }} tabId \u2014 the `tab-id` of the activated tab."
|
|
130
|
+
}],
|
|
96
131
|
"text": ""
|
|
97
132
|
},
|
|
98
133
|
"complexType": {
|
|
@@ -107,7 +142,13 @@ export class TabItem {
|
|
|
107
142
|
"cancelable": true,
|
|
108
143
|
"composed": true,
|
|
109
144
|
"docs": {
|
|
110
|
-
"tags": [
|
|
145
|
+
"tags": [{
|
|
146
|
+
"name": "internal",
|
|
147
|
+
"text": undefined
|
|
148
|
+
}, {
|
|
149
|
+
"name": "description",
|
|
150
|
+
"text": "Internal signals consumed by wm-tab-list \u2014 not for application use."
|
|
151
|
+
}],
|
|
111
152
|
"text": ""
|
|
112
153
|
},
|
|
113
154
|
"complexType": {
|
|
@@ -127,7 +168,16 @@ export class TabItem {
|
|
|
127
168
|
"cancelable": true,
|
|
128
169
|
"composed": true,
|
|
129
170
|
"docs": {
|
|
130
|
-
"tags": [
|
|
171
|
+
"tags": [{
|
|
172
|
+
"name": "internal",
|
|
173
|
+
"text": undefined
|
|
174
|
+
}, {
|
|
175
|
+
"name": "description",
|
|
176
|
+
"text": "Internal signals consumed by wm-tab-list \u2014 not for application use."
|
|
177
|
+
}, {
|
|
178
|
+
"name": "eventDetails",
|
|
179
|
+
"text": "{{ tabItem: HTMLWmTabItemElement, key: string }} tabItem \u2014 the tab item that was focused.\nkey \u2014 the key that was pressed."
|
|
180
|
+
}],
|
|
131
181
|
"text": ""
|
|
132
182
|
},
|
|
133
183
|
"complexType": {
|
|
@@ -147,7 +197,13 @@ export class TabItem {
|
|
|
147
197
|
"cancelable": true,
|
|
148
198
|
"composed": true,
|
|
149
199
|
"docs": {
|
|
150
|
-
"tags": [
|
|
200
|
+
"tags": [{
|
|
201
|
+
"name": "internal",
|
|
202
|
+
"text": undefined
|
|
203
|
+
}, {
|
|
204
|
+
"name": "description",
|
|
205
|
+
"text": "Internal signals consumed by wm-tab-list \u2014 not for application use."
|
|
206
|
+
}],
|
|
151
207
|
"text": ""
|
|
152
208
|
},
|
|
153
209
|
"complexType": {
|
|
@@ -1,5 +1,90 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { debounce, intl } from "../../../global/functions";
|
|
3
|
+
/**
|
|
4
|
+
* Tab list container that manages a group of wm-tab-item children and their associated
|
|
5
|
+
* wm-tab-panel elements. Handles keyboard navigation, ARIA wiring between tabs and panels,
|
|
6
|
+
* horizontal scroll with arrow buttons on overflow, and optional dark theme.
|
|
7
|
+
*
|
|
8
|
+
* @slot - One or more wm-tab-item elements.
|
|
9
|
+
*
|
|
10
|
+
* @keyboardInteraction
|
|
11
|
+
* - **Arrow Left / Arrow Right**: Cycles focus to the previous/next tab item; wraps at both ends.
|
|
12
|
+
* - **Arrow Down**: Moves focus to the content area of the active tab panel.
|
|
13
|
+
* - **Enter / Space**: Activates the focused tab and shows its panel.
|
|
14
|
+
* - **Tab**: Moves focus from the selected tab to the first focusable element inside the
|
|
15
|
+
* active panel.
|
|
16
|
+
* - **Shift+Tab**: Moves focus back to the selected tab item from within the panel.
|
|
17
|
+
*
|
|
18
|
+
* @accessibility
|
|
19
|
+
* - Sets `aria-controls` on each wm-tab-item link pointing to its associated wm-tab-panel.
|
|
20
|
+
* - Sets `aria-labelledby` on each wm-tab-panel pointing back to its wm-tab-item link.
|
|
21
|
+
* - ARIA attributes are updated dynamically when tab content is conditionally rendered in a
|
|
22
|
+
* single shared panel.
|
|
23
|
+
*
|
|
24
|
+
* @usageNotes
|
|
25
|
+
* - Set the container's width to 100% in most cases.
|
|
26
|
+
* - Two usage patterns:
|
|
27
|
+
* 1. **Discrete panels** — each wm-tab-item has a paired wm-tab-panel with the same `tab-id`.
|
|
28
|
+
* 2. **Single panel** — one wm-tab-panel; content is rendered conditionally based on the
|
|
29
|
+
* selected tab; ARIA attributes are updated automatically.
|
|
30
|
+
* - Listen to `wmTabSelected` on wm-tab-item (or on the wm-tab-list, as the event bubbles) and
|
|
31
|
+
* update `selected-tab` to switch the active tab.
|
|
32
|
+
* - Use `selected-tab` to control which tab is initially active by its `tab-id`.
|
|
33
|
+
*
|
|
34
|
+
* @example {html} Basic tabs (discrete panels)
|
|
35
|
+
* <wm-tab-list>
|
|
36
|
+
* <wm-tab-item tab-id="overview">Overview</wm-tab-item>
|
|
37
|
+
* <wm-tab-item tab-id="details">Details</wm-tab-item>
|
|
38
|
+
* <wm-tab-item tab-id="history">History</wm-tab-item>
|
|
39
|
+
* </wm-tab-list>
|
|
40
|
+
* <wm-tab-panel tab-id="overview"><p>Overview content</p></wm-tab-panel>
|
|
41
|
+
* <wm-tab-panel tab-id="details"><p>Details content</p></wm-tab-panel>
|
|
42
|
+
* <wm-tab-panel tab-id="history"><p>History content</p></wm-tab-panel>
|
|
43
|
+
*
|
|
44
|
+
* @example {react} Basic tabs (discrete panels)
|
|
45
|
+
* // wmTabSelected fires when a tab is clicked or activated via keyboard.
|
|
46
|
+
* // event.detail is { tabId: string } -- the tab-id of the newly selected tab.
|
|
47
|
+
* const [selectedTab, setSelectedTab] = useState("overview");
|
|
48
|
+
*
|
|
49
|
+
* <WmTabList selectedTab={selectedTab} onWmTabSelected={(e) => setSelectedTab(e.detail.tabId)}>
|
|
50
|
+
* <WmTabItem tabId="overview">Overview</WmTabItem>
|
|
51
|
+
* <WmTabItem tabId="details">Details</WmTabItem>
|
|
52
|
+
* <WmTabItem tabId="history">History</WmTabItem>
|
|
53
|
+
* </WmTabList>
|
|
54
|
+
* <WmTabPanel tabId="overview"><p>Overview content</p></WmTabPanel>
|
|
55
|
+
* <WmTabPanel tabId="details"><p>Details content</p></WmTabPanel>
|
|
56
|
+
* <WmTabPanel tabId="history"><p>History content</p></WmTabPanel>
|
|
57
|
+
*
|
|
58
|
+
* @example {html} Single shared panel (content rendered conditionally)
|
|
59
|
+
* <wm-tab-list custom-background="dark">
|
|
60
|
+
* <wm-tab-item tab-id="summary">Summary</wm-tab-item>
|
|
61
|
+
* <wm-tab-item tab-id="activity">Activity</wm-tab-item>
|
|
62
|
+
* </wm-tab-list>
|
|
63
|
+
* <wm-tab-panel tab-id="summary">
|
|
64
|
+
* <!-- app renders content here based on the active tab -->
|
|
65
|
+
* </wm-tab-panel>
|
|
66
|
+
*
|
|
67
|
+
* @example {react} Single shared panel (content rendered conditionally)
|
|
68
|
+
* // One wm-tab-panel shared by all tabs -- ARIA attributes update automatically.
|
|
69
|
+
* // Render content conditionally based on selectedTab.
|
|
70
|
+
* const [selectedTab, setSelectedTab] = useState("summary");
|
|
71
|
+
*
|
|
72
|
+
* <WmTabList
|
|
73
|
+
* customBackground="dark"
|
|
74
|
+
* selectedTab={selectedTab}
|
|
75
|
+
* onWmTabSelected={(e) => setSelectedTab(e.detail.tabId)}
|
|
76
|
+
* >
|
|
77
|
+
* <WmTabItem tabId="summary">Summary</WmTabItem>
|
|
78
|
+
* <WmTabItem tabId="activity">Activity</WmTabItem>
|
|
79
|
+
* </WmTabList>
|
|
80
|
+
* <WmTabPanel tabId="summary">
|
|
81
|
+
* {selectedTab === "summary" && <p>Summary content</p>}
|
|
82
|
+
* {selectedTab === "activity" && <p>Activity content</p>}
|
|
83
|
+
* </WmTabPanel>
|
|
84
|
+
*
|
|
85
|
+
* @category Navigation
|
|
86
|
+
* @displayName Tabs
|
|
87
|
+
*/
|
|
3
88
|
export class TabList {
|
|
4
89
|
constructor() {
|
|
5
90
|
this.debouncedUpdateContainerState = debounce(() => {
|
|
@@ -257,15 +342,15 @@ export class TabList {
|
|
|
257
342
|
this.announcement = message;
|
|
258
343
|
}
|
|
259
344
|
render() {
|
|
260
|
-
return (h(Host, { key: '
|
|
345
|
+
return (h(Host, { key: '7c219aa329454ee23c71fb9190d86fd393e60c97' }, h("div", { key: '87caaf180bb566e91b1c27c42db0d2a63027f23f', class: "component-wrapper" }, h("wm-button", { key: 'cf22c79e116485ca31b7d1053296f504c5807b62', class: `left-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#previous", tooltip: intl.formatMessage({
|
|
261
346
|
id: "tabs.showPreviousTabs",
|
|
262
347
|
defaultMessage: "Show previous tabs",
|
|
263
348
|
description: "Tooltip for button scrolling tab group.",
|
|
264
|
-
}), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: '
|
|
349
|
+
}), onClick: (ev) => this.handleLeftArrowClick(ev) }), h("ul", { key: '4c7b517327719497737fc4d36ae1b53288524d53', id: "tablist", ref: (el) => (this.tabContainerEl = el), class: `tabcontainer ${this.customBackground || ""} ${this.containerFadeLeft ? "fade-left" : ""} ${this.containerFadeRight ? "fade-right" : ""}`, role: "tablist", tabIndex: -1 }, h("slot", { key: '7b0ff4de54e705b4296a1e48ccba999143840bac' })), h("wm-button", { key: '77655a0882a65a2cd71f4a7fc8f1f866da8c3c40', class: `right-arrow ${this.scrollArrowsVisible ? "visible" : ""}`, "aria-controls": "tablist", customBackground: this.customBackground, buttonType: "navigational", icon: "#next", tooltip: intl.formatMessage({
|
|
265
350
|
id: "tabs.showNextTabs",
|
|
266
351
|
defaultMessage: "Show next tabs",
|
|
267
352
|
description: "Tooltip for button scrolling tab group.",
|
|
268
|
-
}), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: '
|
|
353
|
+
}), onClick: (ev) => this.handleRightArrowClick(ev) }), h("span", { key: 'c8b221bda334dcf40c28a4a1e3134de72a868018', "aria-live": "assertive", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
269
354
|
}
|
|
270
355
|
static get is() { return "wm-tab-list"; }
|
|
271
356
|
static get encapsulation() { return "shadow"; }
|
|
@@ -293,7 +378,10 @@ export class TabList {
|
|
|
293
378
|
"required": false,
|
|
294
379
|
"optional": true,
|
|
295
380
|
"docs": {
|
|
296
|
-
"tags": [
|
|
381
|
+
"tags": [{
|
|
382
|
+
"name": "description",
|
|
383
|
+
"text": "Sets the visual theme. Pass `\"dark\"` for the dark theme; omit for the\ndefault light theme."
|
|
384
|
+
}],
|
|
297
385
|
"text": ""
|
|
298
386
|
},
|
|
299
387
|
"attribute": "custom-background",
|
|
@@ -310,7 +398,10 @@ export class TabList {
|
|
|
310
398
|
"required": false,
|
|
311
399
|
"optional": true,
|
|
312
400
|
"docs": {
|
|
313
|
-
"tags": [
|
|
401
|
+
"tags": [{
|
|
402
|
+
"name": "description",
|
|
403
|
+
"text": "The `tab-id` of the currently active tab. Update this prop in response to\n`wmTabSelected` to switch tabs. Defaults to the first tab if not set."
|
|
404
|
+
}],
|
|
314
405
|
"text": ""
|
|
315
406
|
},
|
|
316
407
|
"attribute": "selected-tab",
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { generateId } from "../../../global/functions";
|
|
3
|
+
/**
|
|
4
|
+
* Content panel associated with a wm-tab-item. Shows or hides based on whether its
|
|
5
|
+
* `tab-id` matches the selected tab in the parent wm-tab-list. Rendered with
|
|
6
|
+
* `role="tabpanel"`. Always used alongside a wm-tab-list.
|
|
7
|
+
*
|
|
8
|
+
* @slot - The panel content to display when this tab is active.
|
|
9
|
+
*
|
|
10
|
+
* @usageNotes
|
|
11
|
+
* - `tab-id` is required and must match the `tab-id` of the corresponding wm-tab-item.
|
|
12
|
+
* - For the single-panel conditional-content pattern, use one wm-tab-panel without a
|
|
13
|
+
* `tab-id` — the parent wm-tab-list updates its ARIA attributes automatically.
|
|
14
|
+
*
|
|
15
|
+
* @example {html} Tab panel
|
|
16
|
+
* <wm-tab-panel tab-id="overview">Overview content here.</wm-tab-panel>
|
|
17
|
+
*
|
|
18
|
+
* @example {react} Tab panel
|
|
19
|
+
* <WmTabPanel tabId="overview">Overview content here.</WmTabPanel>
|
|
20
|
+
*/
|
|
3
21
|
export class TabPanel {
|
|
4
22
|
constructor() {
|
|
5
23
|
this.active = false;
|
|
@@ -12,7 +30,7 @@ export class TabPanel {
|
|
|
12
30
|
this.tabPanelLoaded.emit({ tabId: this.tabId });
|
|
13
31
|
}
|
|
14
32
|
render() {
|
|
15
|
-
return h(Host, { key: '
|
|
33
|
+
return h(Host, { key: '1e812485c6cc7a99b916a3aff9e105dee4f29522', role: "tabpanel", tabIndex: "-1", class: { "tab-hidden": !this.active } });
|
|
16
34
|
}
|
|
17
35
|
static get is() { return "wm-tab-panel"; }
|
|
18
36
|
static get originalStyleUrls() {
|
|
@@ -38,8 +56,14 @@ export class TabPanel {
|
|
|
38
56
|
"required": false,
|
|
39
57
|
"optional": false,
|
|
40
58
|
"docs": {
|
|
41
|
-
"tags": [
|
|
42
|
-
|
|
59
|
+
"tags": [{
|
|
60
|
+
"name": "description",
|
|
61
|
+
"text": "Whether this panel is currently visible. Managed by the parent wm-tab-list \u2014\ndo not set manually."
|
|
62
|
+
}, {
|
|
63
|
+
"name": "default",
|
|
64
|
+
"text": "false"
|
|
65
|
+
}],
|
|
66
|
+
"text": ""
|
|
43
67
|
},
|
|
44
68
|
"attribute": "active",
|
|
45
69
|
"reflect": false,
|
|
@@ -56,8 +80,14 @@ export class TabPanel {
|
|
|
56
80
|
"required": false,
|
|
57
81
|
"optional": false,
|
|
58
82
|
"docs": {
|
|
59
|
-
"tags": [
|
|
60
|
-
|
|
83
|
+
"tags": [{
|
|
84
|
+
"name": "description",
|
|
85
|
+
"text": "Unique identifier linking this panel to its associated wm-tab-item. Must\nmatch the `tab-id` on the corresponding wm-tab-item."
|
|
86
|
+
}, {
|
|
87
|
+
"name": "required",
|
|
88
|
+
"text": undefined
|
|
89
|
+
}],
|
|
90
|
+
"text": ""
|
|
61
91
|
},
|
|
62
92
|
"attribute": "tab-id",
|
|
63
93
|
"reflect": false,
|
|
@@ -73,7 +103,13 @@ export class TabPanel {
|
|
|
73
103
|
"cancelable": true,
|
|
74
104
|
"composed": true,
|
|
75
105
|
"docs": {
|
|
76
|
-
"tags": [
|
|
106
|
+
"tags": [{
|
|
107
|
+
"name": "internal",
|
|
108
|
+
"text": undefined
|
|
109
|
+
}, {
|
|
110
|
+
"name": "description",
|
|
111
|
+
"text": "Internal signal consumed by wm-tab-list for ARIA wiring \u2014 not for application use."
|
|
112
|
+
}],
|
|
77
113
|
"text": ""
|
|
78
114
|
},
|
|
79
115
|
"complexType": {
|