@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,16 +1,144 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Search input for filtering data by query. Two variants: `'basic'` for simple text
|
|
4
|
+
* filtering, and `'find'` which adds prev/next result navigation buttons, a result count
|
|
5
|
+
* ("x of y results"), and a keyboard-accessible "jump to result" link. The component does
|
|
6
|
+
* not filter data itself — it exposes the user's query and result position via events and
|
|
7
|
+
* properties for the application to handle.
|
|
8
|
+
*
|
|
9
|
+
* @keyboardInteraction
|
|
10
|
+
* - **Tab**: Advances focus through the input and, in the `find` variant, the prev/next
|
|
11
|
+
* buttons and the jump-to-result skip-link (visible only when tabbing with results present).
|
|
12
|
+
* - **Shift+Tab**: Moves focus backward through the same elements.
|
|
13
|
+
* - **Enter / Space**: Activates the focused prev/next buttons in the `find` variant.
|
|
14
|
+
*
|
|
15
|
+
* @accessibility
|
|
16
|
+
* - `label` sets the `aria-label` on the underlying `<input>` — it is required even when
|
|
17
|
+
* the label text is not visually displayed.
|
|
18
|
+
* - An `aria-live` region announces the result count after each input change and after
|
|
19
|
+
* prev/next navigation in the `find` variant.
|
|
20
|
+
* - In the `find` variant, `highlighted-id` is used as the `href` of the jump-to-result
|
|
21
|
+
* skip-link that appears while the user is tabbing.
|
|
22
|
+
*
|
|
23
|
+
* @usageNotes
|
|
24
|
+
* - Both `label` and `placeholder` are required; the component logs a console error on load
|
|
25
|
+
* if either is missing.
|
|
26
|
+
* - Listen to the native `input` event for per-keystroke updates; `wmSearchValueChanged`
|
|
27
|
+
* fires on blur only.
|
|
28
|
+
* - For the `find` variant, listen to `wmSearchBrowseResults` and update `highlighted-id`
|
|
29
|
+
* and `highlighted-name` after scrolling/highlighting the result in your data.
|
|
30
|
+
* - The component does not perform filtering — filtering logic must be implemented by the
|
|
31
|
+
* application.
|
|
32
|
+
*
|
|
33
|
+
* @example {html} Basic search
|
|
34
|
+
* <wm-search label="Filter courses" placeholder="Search courses..."></wm-search>
|
|
35
|
+
*
|
|
36
|
+
* @example {react} Basic search
|
|
37
|
+
* // wmSearchValueChanged fires on blur only -- use a native input event listener via ref
|
|
38
|
+
* // for per-keystroke filtering. el.value reflects the current typed string.
|
|
39
|
+
* const basicRef = useRef(null);
|
|
40
|
+
* const [query, setQuery] = useState("");
|
|
41
|
+
*
|
|
42
|
+
* useEffect(() => {
|
|
43
|
+
* const el = basicRef.current;
|
|
44
|
+
* const handler = () => setQuery(el.value);
|
|
45
|
+
* el.addEventListener("input", handler);
|
|
46
|
+
* return () => el.removeEventListener("input", handler);
|
|
47
|
+
* }, []);
|
|
48
|
+
*
|
|
49
|
+
* const filtered = items.filter((c) => c.toLowerCase().includes(query.toLowerCase()));
|
|
50
|
+
*
|
|
51
|
+
* <WmSearch ref={basicRef} label="Filter courses" placeholder="Search courses..."
|
|
52
|
+
* numResults={filtered.length} />
|
|
53
|
+
*
|
|
54
|
+
* @example {html} Search and find variant
|
|
55
|
+
* <wm-search
|
|
56
|
+
* search-type="find"
|
|
57
|
+
* label="Find in page"
|
|
58
|
+
* placeholder="Find..."
|
|
59
|
+
* num-results="5"
|
|
60
|
+
* highlighted-id="result-1"
|
|
61
|
+
* highlighted-name="First result">
|
|
62
|
+
* </wm-search>
|
|
63
|
+
*
|
|
64
|
+
* @example {react} Search and find variant
|
|
65
|
+
* // The find variant navigates through matched results only.
|
|
66
|
+
* // On input: filter items, set numResults, and highlight the first match.
|
|
67
|
+
* // On wmSearchBrowseResults: use e.detail.position (1-based) to index into the filtered list.
|
|
68
|
+
* // highlightedId must match the id of the corresponding DOM element.
|
|
69
|
+
* // The component does not filter -- filtering logic is entirely the application's responsibility.
|
|
70
|
+
* const findRef = useRef(null);
|
|
71
|
+
* const [highlightedId, setHighlightedId] = useState("");
|
|
72
|
+
* const [highlightedName, setHighlightedName] = useState("");
|
|
73
|
+
* const [numFindResults, setNumFindResults] = useState(0);
|
|
74
|
+
* const toId = (name) => name.toLowerCase().replace(/\s+/g, "-");
|
|
75
|
+
* const filterItems = (value) =>
|
|
76
|
+
* !value ? [] : items.filter((c) => c.toLowerCase().includes(value.toLowerCase()));
|
|
77
|
+
*
|
|
78
|
+
* useEffect(() => {
|
|
79
|
+
* const el = findRef.current;
|
|
80
|
+
* const handler = () => {
|
|
81
|
+
* const results = filterItems(el.value);
|
|
82
|
+
* setNumFindResults(results.length);
|
|
83
|
+
* if (results.length) { setHighlightedId(toId(results[0])); setHighlightedName(results[0]); }
|
|
84
|
+
* else { setHighlightedId(""); setHighlightedName(""); }
|
|
85
|
+
* };
|
|
86
|
+
* el.addEventListener("input", handler);
|
|
87
|
+
* return () => el.removeEventListener("input", handler);
|
|
88
|
+
* }, []);
|
|
89
|
+
*
|
|
90
|
+
* const handleBrowseResults = (e) => {
|
|
91
|
+
* const results = filterItems(findRef.current.value);
|
|
92
|
+
* const item = results[e.detail.position - 1];
|
|
93
|
+
* if (item) { setHighlightedId(toId(item)); setHighlightedName(item); }
|
|
94
|
+
* };
|
|
95
|
+
*
|
|
96
|
+
* <WmSearch ref={findRef} searchType="find" label="Find result" placeholder="Find..."
|
|
97
|
+
* numResults={numFindResults} highlightedId={highlightedId} highlightedName={highlightedName}
|
|
98
|
+
* onWmSearchBrowseResults={handleBrowseResults} />
|
|
99
|
+
* {items.map((c) => (
|
|
100
|
+
* <li key={c} id={toId(c)}
|
|
101
|
+
* style={{ background: highlightedId === toId(c) ? "lightyellow" : "transparent" }}>
|
|
102
|
+
* {c}
|
|
103
|
+
* </li>
|
|
104
|
+
* ))}
|
|
105
|
+
*
|
|
106
|
+
* @category Form Inputs
|
|
107
|
+
*/
|
|
2
108
|
export declare class Search {
|
|
3
109
|
el: HTMLWmSearchElement;
|
|
110
|
+
/**
|
|
111
|
+
* @description Selects the search variant. `'basic'` renders a simple text input with a
|
|
112
|
+
* result count. `'find'` adds prev/next navigation buttons and a jump-to-result skip-link.
|
|
113
|
+
* @default "basic"
|
|
114
|
+
*/
|
|
4
115
|
searchType: "basic" | "find";
|
|
116
|
+
/**
|
|
117
|
+
* @description Disables the input, preventing all interaction.
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
5
120
|
disabled: boolean;
|
|
6
121
|
/**
|
|
7
|
-
*
|
|
122
|
+
* @description Placeholder text displayed inside the empty input.
|
|
123
|
+
* @required
|
|
8
124
|
*/
|
|
9
125
|
placeholder: string;
|
|
126
|
+
/**
|
|
127
|
+
* @description Accessible label for the `<input>` element. Required even when not visually
|
|
128
|
+
* displayed. May match the placeholder text.
|
|
129
|
+
* @required
|
|
130
|
+
*/
|
|
10
131
|
label: string;
|
|
132
|
+
/**
|
|
133
|
+
* @description Number of results matching the current query. Update this prop after
|
|
134
|
+
* filtering to display "x of y results" (find variant) and announce the count to screen
|
|
135
|
+
* readers.
|
|
136
|
+
* @default 0
|
|
137
|
+
*/
|
|
11
138
|
numResults: number;
|
|
12
139
|
/**
|
|
13
|
-
*
|
|
140
|
+
* @description The current text typed by the user. Readable by the application at any time.
|
|
141
|
+
* @default ""
|
|
14
142
|
*/
|
|
15
143
|
value: string;
|
|
16
144
|
/**
|
|
@@ -18,10 +146,17 @@ export declare class Search {
|
|
|
18
146
|
*/
|
|
19
147
|
isTabbing: boolean;
|
|
20
148
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
149
|
+
* @description `id` of the currently highlighted result element. Used as the `href` of the
|
|
150
|
+
* jump-to-result skip-link. Required for the `find` variant for full accessibility.
|
|
151
|
+
* @conditionallyRequired Required when `search-type="find"`.
|
|
23
152
|
*/
|
|
24
153
|
highlightedId: string;
|
|
154
|
+
/**
|
|
155
|
+
* @description Visible text of the currently highlighted result. Appended to the screen
|
|
156
|
+
* reader announcement after `wmSearchBrowseResults` fires. Required for the `find` variant
|
|
157
|
+
* for full accessibility.
|
|
158
|
+
* @conditionallyRequired Required when `search-type="find"`.
|
|
159
|
+
*/
|
|
25
160
|
highlightedName: string | null;
|
|
26
161
|
/**
|
|
27
162
|
* Indicates which of the search results is currently highlighted. It will be displayed as "[highlightedNum] of [numResults]" next to the input in the search and find variant.
|
|
@@ -37,11 +172,19 @@ export declare class Search {
|
|
|
37
172
|
get isDisabled(): boolean;
|
|
38
173
|
get resultCount(): string;
|
|
39
174
|
/**
|
|
40
|
-
*
|
|
175
|
+
* @description Fires when the prev or next button is clicked in the `find` variant.
|
|
176
|
+
* Update `highlighted-id` and `highlighted-name` in response to highlight the result in
|
|
177
|
+
* your data.
|
|
178
|
+
* @eventDetails {{ position: number }} position — one-based index of the newly highlighted result.
|
|
41
179
|
*/
|
|
42
180
|
wmSearchBrowseResults: EventEmitter<{
|
|
43
181
|
position: number;
|
|
44
182
|
}>;
|
|
183
|
+
/**
|
|
184
|
+
* @description Fires on blur when the input value has changed since the last blur. Use the
|
|
185
|
+
* native `input` event for per-keystroke updates.
|
|
186
|
+
* @eventDetails {{ value: string }} value — the current input value at the time of blur.
|
|
187
|
+
*/
|
|
45
188
|
wmSearchValueChanged: EventEmitter<{
|
|
46
189
|
value: string;
|
|
47
190
|
}>;
|
|
@@ -1,7 +1,88 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { Notification } from "../../global/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Toast notification stack that renders transient messages at the bottom of the page.
|
|
5
|
+
* Notifications auto-dismiss after 6 seconds unless they include a `link` or `action`, in
|
|
6
|
+
* which case they persist until explicitly dismissed or the user tabs past them.
|
|
7
|
+
*
|
|
8
|
+
* @keyboardInteraction
|
|
9
|
+
* - **Tab**: Moves focus from the action link/button to the close button; tabbing past the
|
|
10
|
+
* close button dismisses the notification and returns focus to the previously active element.
|
|
11
|
+
* - **Shift+Tab**: Dismisses the notification from the action link and returns focus; moves
|
|
12
|
+
* from the close button back to the action link.
|
|
13
|
+
* - **Enter**: Activates the focused close button or action link/button.
|
|
14
|
+
*
|
|
15
|
+
* @accessibility
|
|
16
|
+
* - Renders an `aria-live` region that announces new notification messages to screen readers.
|
|
17
|
+
* - When a notification includes a `link` or `action` and the user is navigating by keyboard,
|
|
18
|
+
* focus moves automatically to the action element when the notification appears.
|
|
19
|
+
* - Focus returns to the previously active element when the notification is dismissed.
|
|
20
|
+
*
|
|
21
|
+
* @usageNotes
|
|
22
|
+
* - `notifications` is typed as a string — always pass `JSON.stringify(array)` in both HTML
|
|
23
|
+
* and React. Passing an array directly causes a "[object Object] is not valid JSON" error.
|
|
24
|
+
* - Each notification object requires a unique `id` (string) and a `message` (string).
|
|
25
|
+
* Optional fields: `link` (string, renders a navigation anchor), `action` (string, renders
|
|
26
|
+
* a button), `newWindow` (boolean, adds an "opens in new window" indicator to the link).
|
|
27
|
+
* - Use `link` for navigation actions and `action` for in-page triggers such as "Undo" —
|
|
28
|
+
* both emit `wmSnackbarActionTriggered` when clicked.
|
|
29
|
+
* - Listen to `wmSnackbarSnackFinished` and remove the matching notification from your array
|
|
30
|
+
* to keep state in sync. The 6-second auto-dismiss timer is disabled for notifications
|
|
31
|
+
* with a `link` or `action` — remove them manually after the action is handled.
|
|
32
|
+
* - `wmSnackbarSnackFinished` detail: `{ id: string }`.
|
|
33
|
+
* - `wmSnackbarActionTriggered` detail: `{ id: string, message: string, action?: string, link?: string }`.
|
|
34
|
+
*
|
|
35
|
+
* @example {html} Simple notification
|
|
36
|
+
* <wm-snackbar notifications='[{"id":"1","message":"Changes saved."}]'></wm-snackbar>
|
|
37
|
+
*
|
|
38
|
+
* @example {react} Notification stack with action and link variants
|
|
39
|
+
* // notifications is typed as string — always pass JSON.stringify(array), never the array directly.
|
|
40
|
+
* // wmSnackbarSnackFinished fires when a notification auto-dismisses or is closed.
|
|
41
|
+
* // wmSnackbarActionTriggered fires when the action button or link is clicked;
|
|
42
|
+
* // remove the notification manually after handling the action.
|
|
43
|
+
* let nextId = 1;
|
|
44
|
+
* const [notifications, setNotifications] = useState([]);
|
|
45
|
+
*
|
|
46
|
+
* const addNotification = (notification) =>
|
|
47
|
+
* setNotifications((prev) => [...prev, { id: String(nextId++), ...notification }]);
|
|
48
|
+
*
|
|
49
|
+
* const removeNotification = (id) =>
|
|
50
|
+
* setNotifications((prev) => prev.filter((n) => n.id !== id));
|
|
51
|
+
*
|
|
52
|
+
* const handleActionTriggered = (e) => {
|
|
53
|
+
* const { id, action } = e.detail;
|
|
54
|
+
* if (action === "Undo") { handleUndo(); }
|
|
55
|
+
* removeNotification(id);
|
|
56
|
+
* };
|
|
57
|
+
*
|
|
58
|
+
* <WmButton buttonType="secondary" onClick={() => addNotification({ message: "Changes saved." })}>
|
|
59
|
+
* Simple notification
|
|
60
|
+
* </WmButton>
|
|
61
|
+
* <WmButton buttonType="secondary" onClick={() => addNotification({ message: "Item deleted.", action: "Undo" })}>
|
|
62
|
+
* With action
|
|
63
|
+
* </WmButton>
|
|
64
|
+
* <WmButton buttonType="secondary" onClick={() => addNotification({ message: "Report ready.", link: "#report" })}>
|
|
65
|
+
* With link
|
|
66
|
+
* </WmButton>
|
|
67
|
+
*
|
|
68
|
+
* <WmSnackbar
|
|
69
|
+
* notifications={JSON.stringify(notifications)}
|
|
70
|
+
* onWmSnackbarSnackFinished={(e) => removeNotification(e.detail.id)}
|
|
71
|
+
* onWmSnackbarActionTriggered={handleActionTriggered}
|
|
72
|
+
* />
|
|
73
|
+
*
|
|
74
|
+
* @category Communication
|
|
75
|
+
*/
|
|
3
76
|
export declare class Snackbar {
|
|
4
77
|
el: HTMLElement;
|
|
78
|
+
/**
|
|
79
|
+
* @description JSON-encoded array of notification objects to display. Each object must
|
|
80
|
+
* include `id` (string) and `message` (string). Optional fields: `link` (string, renders
|
|
81
|
+
* a navigation anchor), `action` (string, renders a button), `newWindow` (boolean, adds an
|
|
82
|
+
* "opens in new window" indicator to the link). Always pass as `JSON.stringify(array)` —
|
|
83
|
+
* passing an array directly causes a "[object Object] is not valid JSON" error.
|
|
84
|
+
* @required
|
|
85
|
+
*/
|
|
5
86
|
notifications: string;
|
|
6
87
|
private liveRegionEl;
|
|
7
88
|
private snackAreaEl;
|
|
@@ -11,7 +92,20 @@ export declare class Snackbar {
|
|
|
11
92
|
private timers;
|
|
12
93
|
isTabbing: boolean;
|
|
13
94
|
announcement: string;
|
|
95
|
+
/**
|
|
96
|
+
* @description Fires when a notification should be removed — after the 6-second
|
|
97
|
+
* auto-dismiss timer expires or when the user clicks the close button. The host application
|
|
98
|
+
* should remove the matching notification from its array. The timer is disabled for
|
|
99
|
+
* notifications with a `link` or `action`.
|
|
100
|
+
* @eventDetails {{ id: string, message: string, link?: string, newWindow?: boolean, action?: string }}
|
|
101
|
+
*/
|
|
14
102
|
wmSnackbarSnackFinished: EventEmitter<Object>;
|
|
103
|
+
/**
|
|
104
|
+
* @description Fires when the user clicks the `link` anchor or `action` button. The host
|
|
105
|
+
* application should remove the notification and navigate (for links) or execute the action
|
|
106
|
+
* (for buttons).
|
|
107
|
+
* @eventDetails {{ id: string, message: string, link?: string, newWindow?: boolean, action?: string }}
|
|
108
|
+
*/
|
|
15
109
|
wmSnackbarActionTriggered: EventEmitter<Object>;
|
|
16
110
|
private closeSnackMessage;
|
|
17
111
|
componentDidLoad(): void;
|
|
@@ -1,29 +1,70 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
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 declare class TabItem {
|
|
3
20
|
el: HTMLWmTabItemElement;
|
|
4
21
|
private get parentTabList();
|
|
5
22
|
/**
|
|
6
|
-
*
|
|
23
|
+
* @description Whether this tab is currently active. Managed by the parent wm-tab-list —
|
|
24
|
+
* do not set manually.
|
|
25
|
+
* @default false
|
|
7
26
|
*/
|
|
8
27
|
selected: boolean;
|
|
9
28
|
/**
|
|
10
|
-
*
|
|
29
|
+
* @description Unique identifier linking this tab to its associated wm-tab-panel. Must
|
|
30
|
+
* match the `tab-id` on the corresponding wm-tab-panel.
|
|
31
|
+
* @required
|
|
11
32
|
*/
|
|
12
33
|
tabId: string;
|
|
13
34
|
/**
|
|
14
35
|
* Reference to focusable link element
|
|
15
36
|
*/
|
|
16
37
|
linkEl?: HTMLAnchorElement;
|
|
38
|
+
/**
|
|
39
|
+
* @description Fires when this tab is clicked or activated by keyboard. Listen to this
|
|
40
|
+
* event and update the `selected-tab` prop on the parent wm-tab-list to switch the active
|
|
41
|
+
* tab.
|
|
42
|
+
* @eventDetails {{ tabId: string }} tabId — the `tab-id` of the activated tab.
|
|
43
|
+
*/
|
|
17
44
|
wmTabSelected: EventEmitter<{
|
|
18
45
|
tabId: string;
|
|
19
46
|
}>;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @description Internal signals consumed by wm-tab-list — not for application use.
|
|
50
|
+
*/
|
|
20
51
|
wmIntTabFocused: EventEmitter<{
|
|
21
52
|
tabItem: HTMLWmTabItemElement;
|
|
22
53
|
}>;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @description Internal signals consumed by wm-tab-list — not for application use.
|
|
57
|
+
* @eventDetails {{ tabItem: HTMLWmTabItemElement, key: string }} tabItem — the tab item that was focused.
|
|
58
|
+
* key — the key that was pressed.
|
|
59
|
+
*/
|
|
23
60
|
keydownOnTabItem: EventEmitter<{
|
|
24
61
|
tabItem: HTMLWmTabItemElement;
|
|
25
62
|
key: string;
|
|
26
63
|
}>;
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @description Internal signals consumed by wm-tab-list — not for application use.
|
|
67
|
+
*/
|
|
27
68
|
tabItemLoaded: EventEmitter<{
|
|
28
69
|
tab: HTMLWmTabItemElement;
|
|
29
70
|
}>;
|
|
@@ -1,8 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tab list container that manages a group of wm-tab-item children and their associated
|
|
3
|
+
* wm-tab-panel elements. Handles keyboard navigation, ARIA wiring between tabs and panels,
|
|
4
|
+
* horizontal scroll with arrow buttons on overflow, and optional dark theme.
|
|
5
|
+
*
|
|
6
|
+
* @slot - One or more wm-tab-item elements.
|
|
7
|
+
*
|
|
8
|
+
* @keyboardInteraction
|
|
9
|
+
* - **Arrow Left / Arrow Right**: Cycles focus to the previous/next tab item; wraps at both ends.
|
|
10
|
+
* - **Arrow Down**: Moves focus to the content area of the active tab panel.
|
|
11
|
+
* - **Enter / Space**: Activates the focused tab and shows its panel.
|
|
12
|
+
* - **Tab**: Moves focus from the selected tab to the first focusable element inside the
|
|
13
|
+
* active panel.
|
|
14
|
+
* - **Shift+Tab**: Moves focus back to the selected tab item from within the panel.
|
|
15
|
+
*
|
|
16
|
+
* @accessibility
|
|
17
|
+
* - Sets `aria-controls` on each wm-tab-item link pointing to its associated wm-tab-panel.
|
|
18
|
+
* - Sets `aria-labelledby` on each wm-tab-panel pointing back to its wm-tab-item link.
|
|
19
|
+
* - ARIA attributes are updated dynamically when tab content is conditionally rendered in a
|
|
20
|
+
* single shared panel.
|
|
21
|
+
*
|
|
22
|
+
* @usageNotes
|
|
23
|
+
* - Set the container's width to 100% in most cases.
|
|
24
|
+
* - Two usage patterns:
|
|
25
|
+
* 1. **Discrete panels** — each wm-tab-item has a paired wm-tab-panel with the same `tab-id`.
|
|
26
|
+
* 2. **Single panel** — one wm-tab-panel; content is rendered conditionally based on the
|
|
27
|
+
* selected tab; ARIA attributes are updated automatically.
|
|
28
|
+
* - Listen to `wmTabSelected` on wm-tab-item (or on the wm-tab-list, as the event bubbles) and
|
|
29
|
+
* update `selected-tab` to switch the active tab.
|
|
30
|
+
* - Use `selected-tab` to control which tab is initially active by its `tab-id`.
|
|
31
|
+
*
|
|
32
|
+
* @example {html} Basic tabs (discrete panels)
|
|
33
|
+
* <wm-tab-list>
|
|
34
|
+
* <wm-tab-item tab-id="overview">Overview</wm-tab-item>
|
|
35
|
+
* <wm-tab-item tab-id="details">Details</wm-tab-item>
|
|
36
|
+
* <wm-tab-item tab-id="history">History</wm-tab-item>
|
|
37
|
+
* </wm-tab-list>
|
|
38
|
+
* <wm-tab-panel tab-id="overview"><p>Overview content</p></wm-tab-panel>
|
|
39
|
+
* <wm-tab-panel tab-id="details"><p>Details content</p></wm-tab-panel>
|
|
40
|
+
* <wm-tab-panel tab-id="history"><p>History content</p></wm-tab-panel>
|
|
41
|
+
*
|
|
42
|
+
* @example {react} Basic tabs (discrete panels)
|
|
43
|
+
* // wmTabSelected fires when a tab is clicked or activated via keyboard.
|
|
44
|
+
* // event.detail is { tabId: string } -- the tab-id of the newly selected tab.
|
|
45
|
+
* const [selectedTab, setSelectedTab] = useState("overview");
|
|
46
|
+
*
|
|
47
|
+
* <WmTabList selectedTab={selectedTab} onWmTabSelected={(e) => setSelectedTab(e.detail.tabId)}>
|
|
48
|
+
* <WmTabItem tabId="overview">Overview</WmTabItem>
|
|
49
|
+
* <WmTabItem tabId="details">Details</WmTabItem>
|
|
50
|
+
* <WmTabItem tabId="history">History</WmTabItem>
|
|
51
|
+
* </WmTabList>
|
|
52
|
+
* <WmTabPanel tabId="overview"><p>Overview content</p></WmTabPanel>
|
|
53
|
+
* <WmTabPanel tabId="details"><p>Details content</p></WmTabPanel>
|
|
54
|
+
* <WmTabPanel tabId="history"><p>History content</p></WmTabPanel>
|
|
55
|
+
*
|
|
56
|
+
* @example {html} Single shared panel (content rendered conditionally)
|
|
57
|
+
* <wm-tab-list custom-background="dark">
|
|
58
|
+
* <wm-tab-item tab-id="summary">Summary</wm-tab-item>
|
|
59
|
+
* <wm-tab-item tab-id="activity">Activity</wm-tab-item>
|
|
60
|
+
* </wm-tab-list>
|
|
61
|
+
* <wm-tab-panel tab-id="summary">
|
|
62
|
+
* <!-- app renders content here based on the active tab -->
|
|
63
|
+
* </wm-tab-panel>
|
|
64
|
+
*
|
|
65
|
+
* @example {react} Single shared panel (content rendered conditionally)
|
|
66
|
+
* // One wm-tab-panel shared by all tabs -- ARIA attributes update automatically.
|
|
67
|
+
* // Render content conditionally based on selectedTab.
|
|
68
|
+
* const [selectedTab, setSelectedTab] = useState("summary");
|
|
69
|
+
*
|
|
70
|
+
* <WmTabList
|
|
71
|
+
* customBackground="dark"
|
|
72
|
+
* selectedTab={selectedTab}
|
|
73
|
+
* onWmTabSelected={(e) => setSelectedTab(e.detail.tabId)}
|
|
74
|
+
* >
|
|
75
|
+
* <WmTabItem tabId="summary">Summary</WmTabItem>
|
|
76
|
+
* <WmTabItem tabId="activity">Activity</WmTabItem>
|
|
77
|
+
* </WmTabList>
|
|
78
|
+
* <WmTabPanel tabId="summary">
|
|
79
|
+
* {selectedTab === "summary" && <p>Summary content</p>}
|
|
80
|
+
* {selectedTab === "activity" && <p>Activity content</p>}
|
|
81
|
+
* </WmTabPanel>
|
|
82
|
+
*
|
|
83
|
+
* @category Navigation
|
|
84
|
+
* @displayName Tabs
|
|
85
|
+
*/
|
|
1
86
|
export declare class TabList {
|
|
2
87
|
el: any;
|
|
3
88
|
private tabContainerEl;
|
|
4
89
|
private liveRegionEl;
|
|
90
|
+
/**
|
|
91
|
+
* @description Sets the visual theme. Pass `"dark"` for the dark theme; omit for the
|
|
92
|
+
* default light theme.
|
|
93
|
+
*/
|
|
5
94
|
customBackground?: "dark" | "";
|
|
95
|
+
/**
|
|
96
|
+
* @description The `tab-id` of the currently active tab. Update this prop in response to
|
|
97
|
+
* `wmTabSelected` to switch tabs. Defaults to the first tab if not set.
|
|
98
|
+
*/
|
|
6
99
|
selectedTab?: string;
|
|
7
100
|
announcement: string;
|
|
8
101
|
containerFadeLeft: boolean;
|
|
@@ -1,14 +1,40 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Content panel associated with a wm-tab-item. Shows or hides based on whether its
|
|
4
|
+
* `tab-id` matches the selected tab in the parent wm-tab-list. Rendered with
|
|
5
|
+
* `role="tabpanel"`. Always used alongside a wm-tab-list.
|
|
6
|
+
*
|
|
7
|
+
* @slot - The panel content to display when this tab is active.
|
|
8
|
+
*
|
|
9
|
+
* @usageNotes
|
|
10
|
+
* - `tab-id` is required and must match the `tab-id` of the corresponding wm-tab-item.
|
|
11
|
+
* - For the single-panel conditional-content pattern, use one wm-tab-panel without a
|
|
12
|
+
* `tab-id` — the parent wm-tab-list updates its ARIA attributes automatically.
|
|
13
|
+
*
|
|
14
|
+
* @example {html} Tab panel
|
|
15
|
+
* <wm-tab-panel tab-id="overview">Overview content here.</wm-tab-panel>
|
|
16
|
+
*
|
|
17
|
+
* @example {react} Tab panel
|
|
18
|
+
* <WmTabPanel tabId="overview">Overview content here.</WmTabPanel>
|
|
19
|
+
*/
|
|
2
20
|
export declare class TabPanel {
|
|
3
21
|
el: HTMLWmTabPanelElement;
|
|
4
22
|
/**
|
|
5
|
-
*
|
|
23
|
+
* @description Whether this panel is currently visible. Managed by the parent wm-tab-list —
|
|
24
|
+
* do not set manually.
|
|
25
|
+
* @default false
|
|
6
26
|
*/
|
|
7
27
|
active: boolean;
|
|
8
28
|
/**
|
|
9
|
-
*
|
|
29
|
+
* @description Unique identifier linking this panel to its associated wm-tab-item. Must
|
|
30
|
+
* match the `tab-id` on the corresponding wm-tab-item.
|
|
31
|
+
* @required
|
|
10
32
|
*/
|
|
11
33
|
tabId: string;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
* @description Internal signal consumed by wm-tab-list for ARIA wiring — not for application use.
|
|
37
|
+
*/
|
|
12
38
|
tabPanelLoaded: EventEmitter<{
|
|
13
39
|
tabId: string;
|
|
14
40
|
}>;
|