@watermarkinsights/ripple 5.30.0 → 5.31.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-df7ca137.js +103 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/priv-calendar.cjs.entry.js +27 -27
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +2 -2
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +1 -1
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -4
- package/dist/cjs/wm-button.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart-column.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-date-range.cjs.entry.js +25 -9
- package/dist/cjs/wm-datepicker.cjs.entry.js +37 -11
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +1 -1
- package/dist/cjs/wm-flyout.cjs.entry.js +6 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal_3.cjs.entry.js +19 -4
- package/dist/cjs/wm-navigation_3.cjs.entry.js +4 -4
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +3 -3
- package/dist/cjs/wm-optgroup.cjs.entry.js +11 -1
- package/dist/cjs/wm-option_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +2 -2
- package/dist/cjs/wm-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-tag-input.cjs.entry.js +2 -2
- package/dist/cjs/wm-tag-option.cjs.entry.js +8 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +14 -2
- package/dist/cjs/wm-toggletip.cjs.entry.js +3 -3
- package/dist/cjs/wm-uploader.cjs.entry.js +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +7 -2
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +7 -2
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +58 -6
- package/dist/collection/components/charts/wm-chart/wm-chart.js +139 -13
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +134 -7
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +102 -8
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +90 -8
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +153 -17
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +63 -7
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +85 -5
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +52 -6
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +47 -47
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +33 -29
- package/dist/collection/components/datepickers/wm-date-range.js +246 -29
- package/dist/collection/components/datepickers/wm-datepicker.js +254 -30
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +7 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +193 -17
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +116 -11
- package/dist/collection/components/selects/wm-option/wm-option.js +153 -18
- package/dist/collection/components/selects/wm-select/wm-select.js +187 -21
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +148 -12
- package/dist/collection/components/wm-button/wm-button.js +212 -18
- package/dist/collection/components/wm-file/wm-file.js +108 -14
- package/dist/collection/components/wm-file-list/wm-file-list.js +74 -2
- package/dist/collection/components/wm-flyout/wm-flyout.js +215 -16
- package/dist/collection/components/wm-input/wm-input.js +195 -20
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +62 -5
- package/dist/collection/components/wm-modal/wm-modal-footer.js +63 -6
- package/dist/collection/components/wm-modal/wm-modal-header.js +34 -3
- package/dist/collection/components/wm-modal/wm-modal.js +181 -14
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +5 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +5 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +6 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +37 -3
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +47 -5
- package/dist/collection/components/wm-navigation/wm-navigation.js +54 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +5 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +5 -1
- package/dist/collection/components/wm-navigator/wm-navigator.js +102 -9
- package/dist/collection/components/wm-pagination/wm-pagination.js +106 -9
- package/dist/collection/components/wm-search/wm-search.js +182 -16
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +96 -5
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +66 -10
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +96 -5
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +42 -6
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +205 -17
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +97 -12
- package/dist/collection/components/wm-textarea/wm-textarea.js +116 -13
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +190 -16
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +87 -8
- package/dist/collection/components/wm-uploader/wm-uploader.js +142 -14
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +3 -0
- package/dist/collection/global/services/__mocks__/http-service.js +1 -1
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +13915 -0
- package/dist/docs/props-reference.json +2028 -0
- package/dist/docs/skill/index.md +32 -0
- package/dist/docs/skill/wm-action-menu.md +93 -0
- package/dist/docs/skill/wm-button.md +103 -0
- package/dist/docs/skill/wm-chart-bar.md +129 -0
- package/dist/docs/skill/wm-chart-column.md +96 -0
- package/dist/docs/skill/wm-chart-legend.md +67 -0
- package/dist/docs/skill/wm-chart-slice.md +55 -0
- package/dist/docs/skill/wm-chart.md +92 -0
- package/dist/docs/skill/wm-date-range.md +153 -0
- package/dist/docs/skill/wm-datepicker.md +134 -0
- package/dist/docs/skill/wm-file-list.md +97 -0
- package/dist/docs/skill/wm-file.md +78 -0
- package/dist/docs/skill/wm-flyout.md +174 -0
- package/dist/docs/skill/wm-input.md +126 -0
- package/dist/docs/skill/wm-line-chart.md +108 -0
- package/dist/docs/skill/wm-menuitem.md +72 -0
- package/dist/docs/skill/wm-modal-footer.md +73 -0
- package/dist/docs/skill/wm-modal-header.md +65 -0
- package/dist/docs/skill/wm-modal.md +137 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +56 -0
- package/dist/docs/skill/wm-navigation-item.md +69 -0
- package/dist/docs/skill/wm-navigation.md +66 -0
- package/dist/docs/skill/wm-navigator.md +91 -0
- package/dist/docs/skill/wm-nested-select.md +149 -0
- package/dist/docs/skill/wm-optgroup.md +71 -0
- package/dist/docs/skill/wm-option.md +68 -0
- package/dist/docs/skill/wm-pagination.md +95 -0
- package/dist/docs/skill/wm-progress-indicator.md +49 -0
- package/dist/docs/skill/wm-progress-monitor.md +93 -0
- package/dist/docs/skill/wm-progress-slice.md +41 -0
- package/dist/docs/skill/wm-search.md +157 -0
- package/dist/docs/skill/wm-select.md +148 -0
- package/dist/docs/skill/wm-snackbar.md +101 -0
- package/dist/docs/skill/wm-tab-item.md +35 -0
- package/dist/docs/skill/wm-tab-list.md +112 -0
- package/dist/docs/skill/wm-tab-panel.md +33 -0
- package/dist/docs/skill/wm-tag-input.md +165 -0
- package/dist/docs/skill/wm-tag-option.md +59 -0
- package/dist/docs/skill/wm-textarea.md +94 -0
- package/dist/docs/skill/wm-timepicker.md +139 -0
- package/dist/docs/skill/wm-toggletip.md +92 -0
- package/dist/docs/skill/wm-uploader.md +129 -0
- package/dist/docs/skill/wm-wrapper.md +6 -0
- package/dist/docs/wm-action-menu.md +111 -0
- package/dist/docs/wm-button.md +137 -0
- package/dist/docs/wm-chart-bar.md +23 -0
- package/dist/docs/wm-chart-column.md +26 -0
- package/dist/docs/wm-chart-legend.md +31 -0
- package/dist/docs/wm-chart-slice.md +14 -0
- package/dist/docs/wm-chart.md +30 -0
- package/dist/docs/wm-date-range.md +215 -0
- package/dist/docs/wm-datepicker.md +210 -0
- package/dist/docs/wm-file-list.md +95 -0
- package/dist/docs/wm-file.md +34 -0
- package/dist/docs/wm-flyout.md +123 -0
- package/dist/docs/wm-input.md +120 -0
- package/dist/docs/wm-line-chart.md +32 -0
- package/dist/docs/wm-menuitem.md +38 -0
- package/dist/docs/wm-modal-footer.md +106 -0
- package/dist/docs/wm-modal-header.md +100 -0
- package/dist/docs/wm-modal.md +127 -0
- package/dist/docs/wm-navigation-hamburger.md +91 -0
- package/dist/docs/wm-navigation-item.md +98 -0
- package/dist/docs/wm-navigation.md +101 -0
- package/dist/docs/wm-navigator.md +99 -0
- package/dist/docs/wm-nested-select.md +107 -0
- package/dist/docs/wm-optgroup.md +28 -0
- package/dist/docs/wm-option.md +24 -0
- package/dist/docs/wm-pagination.md +94 -0
- package/dist/docs/wm-progress-indicator.md +23 -0
- package/dist/docs/wm-progress-monitor.md +27 -0
- package/dist/docs/wm-progress-slice.md +16 -0
- package/dist/docs/wm-search.md +119 -0
- package/dist/docs/wm-select.md +120 -0
- package/dist/docs/wm-snackbar.md +87 -0
- package/dist/docs/wm-tab-item.md +23 -0
- package/dist/docs/wm-tab-list.md +98 -0
- package/dist/docs/wm-tab-panel.md +18 -0
- package/dist/docs/wm-tag-input.md +123 -0
- package/dist/docs/wm-tag-option.md +33 -0
- package/dist/docs/wm-textarea.md +101 -0
- package/dist/docs/wm-timepicker.md +122 -0
- package/dist/docs/wm-toggletip.md +86 -0
- package/dist/docs/wm-uploader.md +114 -0
- package/dist/docs/wm-wrapper.md +7 -0
- package/dist/esm/app-globals-466ed44b.js +101 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/priv-calendar.entry.js +27 -27
- package/dist/esm/priv-chart-popover-old.entry.js +2 -2
- package/dist/esm/priv-chart-popover_2.entry.js +3 -3
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +1 -1
- package/dist/esm/ripple.js +1 -1
- package/dist/esm/wm-action-menu_2.entry.js +5 -4
- package/dist/esm/wm-button.entry.js +1 -1
- package/dist/esm/wm-chart-bar.entry.js +1 -1
- package/dist/esm/wm-chart-column.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +1 -1
- package/dist/esm/wm-date-range.entry.js +25 -9
- package/dist/esm/wm-datepicker.entry.js +37 -11
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +1 -1
- package/dist/esm/wm-flyout.entry.js +6 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-line-chart.entry.js +1 -1
- package/dist/esm/wm-modal-pss_3.entry.js +4 -4
- package/dist/esm/wm-modal_3.entry.js +19 -4
- package/dist/esm/wm-navigation_3.entry.js +4 -4
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +3 -3
- package/dist/esm/wm-optgroup.entry.js +11 -1
- package/dist/esm/wm-option_2.entry.js +5 -5
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +2 -2
- package/dist/esm/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +6 -6
- package/dist/esm/wm-tag-input.entry.js +2 -2
- package/dist/esm/wm-tag-option.entry.js +8 -0
- package/dist/esm/wm-textarea.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +14 -2
- package/dist/esm/wm-toggletip.entry.js +3 -3
- package/dist/esm/wm-uploader.entry.js +2 -2
- package/dist/esm-es5/app-globals-466ed44b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
- package/dist/esm-es5/wm-chart-column.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-1fc894ac.system.entry.js → p-012bd307.system.entry.js} +1 -1
- package/dist/ripple/p-03f352dc.entry.js +1 -0
- package/dist/ripple/{p-4f53544d.entry.js → p-03ff4f41.entry.js} +1 -1
- package/dist/ripple/{p-2a03f658.entry.js → p-045aa27f.entry.js} +1 -1
- package/dist/ripple/{p-709d1765.entry.js → p-057ffccb.entry.js} +1 -1
- package/dist/ripple/p-06c3dc14.system.entry.js +1 -0
- package/dist/ripple/{p-ff6fd274.system.entry.js → p-09a80f59.system.entry.js} +1 -1
- package/dist/ripple/{p-3bd8537c.entry.js → p-09fb0a09.entry.js} +1 -1
- package/dist/ripple/p-0a05d3a3.js +1 -0
- package/dist/ripple/{p-3f69041f.entry.js → p-0ab9bac7.entry.js} +1 -1
- package/dist/ripple/{p-332a3e3d.system.entry.js → p-1059cdb9.system.entry.js} +1 -1
- package/dist/ripple/{p-dbdae848.system.entry.js → p-106a9459.system.entry.js} +1 -1
- package/dist/ripple/{p-e1a6ee77.entry.js → p-16381033.entry.js} +1 -1
- package/dist/ripple/{p-b11abb0d.system.entry.js → p-181109f0.system.entry.js} +1 -1
- package/dist/ripple/{p-bb9f54cf.system.entry.js → p-1855c3b1.system.entry.js} +1 -1
- package/dist/ripple/{p-4533241f.entry.js → p-1c25838e.entry.js} +1 -1
- package/dist/ripple/{p-fb6aee09.entry.js → p-1f67b172.entry.js} +1 -1
- package/dist/ripple/{p-a3dd5204.system.entry.js → p-22703bcd.system.entry.js} +1 -1
- package/dist/ripple/{p-a6aef87d.system.entry.js → p-237388c5.system.entry.js} +1 -1
- package/dist/ripple/p-237f5977.system.entry.js +1 -0
- package/dist/ripple/p-25d6cc45.system.js +1 -0
- package/dist/ripple/{p-09d5381c.entry.js → p-299d2d8b.entry.js} +1 -1
- package/dist/ripple/{p-e78f9572.system.entry.js → p-2c1d219f.system.entry.js} +1 -1
- package/dist/ripple/{p-84e04896.entry.js → p-2dbf9636.entry.js} +1 -1
- package/dist/ripple/{p-05dae6a0.entry.js → p-2dc1071a.entry.js} +1 -1
- package/dist/ripple/{p-39bac42a.entry.js → p-3216e2e7.entry.js} +1 -1
- package/dist/ripple/p-3252c04b.system.entry.js +1 -0
- package/dist/ripple/{p-7ca0bb68.system.entry.js → p-32bac954.system.entry.js} +1 -1
- package/dist/ripple/p-33eeaa18.entry.js +1 -0
- package/dist/ripple/p-3441da90.entry.js +1 -0
- package/dist/ripple/p-3502fd33.system.entry.js +1 -0
- package/dist/ripple/{p-f51404f5.entry.js → p-351000b9.entry.js} +1 -1
- package/dist/ripple/{p-bf3eef42.entry.js → p-3c0062c5.entry.js} +1 -1
- package/dist/ripple/{p-c1abc58e.entry.js → p-3d3836ad.entry.js} +1 -1
- package/dist/ripple/p-3e8bfc68.system.entry.js +1 -0
- package/dist/ripple/p-3f403a64.system.entry.js +1 -0
- package/dist/ripple/{p-b974a535.system.entry.js → p-43e8d384.system.entry.js} +1 -1
- package/dist/ripple/p-49dc64ba.entry.js +1 -0
- package/dist/ripple/{p-9d345fc7.system.entry.js → p-4a942d74.system.entry.js} +1 -1
- package/dist/ripple/p-4cc09fa3.system.entry.js +1 -0
- package/dist/ripple/p-5177d4fa.entry.js +1 -0
- package/dist/ripple/p-51fff3a7.system.entry.js +1 -0
- package/dist/ripple/p-54ba0eae.entry.js +1 -0
- package/dist/ripple/{p-c04d0eeb.system.entry.js → p-5609bde2.system.entry.js} +1 -1
- package/dist/ripple/{p-86148143.system.entry.js → p-56e1a71d.system.entry.js} +1 -1
- package/dist/ripple/{p-f94af31c.entry.js → p-578b5443.entry.js} +1 -1
- package/dist/ripple/p-57901fc3.entry.js +1 -0
- package/dist/ripple/{p-463be5be.entry.js → p-57a0cb5f.entry.js} +1 -1
- package/dist/ripple/{p-0db033c3.system.entry.js → p-59b3f92b.system.entry.js} +1 -1
- package/dist/ripple/p-5a533e7c.entry.js +1 -0
- package/dist/ripple/{p-5f092b39.system.entry.js → p-61a0ba92.system.entry.js} +1 -1
- package/dist/ripple/{p-6de83c6f.entry.js → p-623b89e0.entry.js} +1 -1
- package/dist/ripple/{p-6479b06b.entry.js → p-668c0758.entry.js} +1 -1
- package/dist/ripple/p-6a6e98c7.entry.js +1 -0
- package/dist/ripple/{p-b654743f.system.entry.js → p-6c46dd9a.system.entry.js} +1 -1
- package/dist/ripple/{p-4e7ae2c5.system.entry.js → p-6ea254d2.system.entry.js} +1 -1
- package/dist/ripple/p-6f875608.system.entry.js +1 -0
- package/dist/ripple/{p-d05b7cd3.entry.js → p-71a38bd2.entry.js} +1 -1
- package/dist/ripple/{p-dab54a9d.entry.js → p-73a2389d.entry.js} +1 -1
- package/dist/ripple/p-759d87de.entry.js +1 -0
- package/dist/ripple/{p-227b0af9.entry.js → p-75c5ec39.entry.js} +1 -1
- package/dist/ripple/{p-ee729037.system.entry.js → p-7bc3b4ee.system.entry.js} +1 -1
- package/dist/ripple/p-7c7988a3.entry.js +1 -0
- package/dist/ripple/p-81735196.entry.js +1 -0
- package/dist/ripple/{p-a0aba3e0.system.entry.js → p-8376699e.system.entry.js} +1 -1
- package/dist/ripple/{p-503330c1.system.entry.js → p-865208b7.system.entry.js} +1 -1
- package/dist/ripple/{p-28b8a12e.system.entry.js → p-8715d758.system.entry.js} +1 -1
- package/dist/ripple/p-8bfb7664.entry.js +1 -0
- package/dist/ripple/{p-680f5703.entry.js → p-8deb22bc.entry.js} +1 -1
- package/dist/ripple/p-8e32e9de.system.entry.js +1 -0
- package/dist/ripple/{p-bdb10d37.entry.js → p-92e3bf68.entry.js} +1 -1
- package/dist/ripple/{p-0feaaae9.system.entry.js → p-942b323c.system.entry.js} +1 -1
- package/dist/ripple/{p-5173359e.entry.js → p-94fd1dcc.entry.js} +1 -1
- package/dist/ripple/p-991455a2.system.entry.js +1 -0
- package/dist/ripple/p-99a112c8.system.entry.js +1 -0
- package/dist/ripple/p-9a8d91d6.entry.js +1 -0
- package/dist/ripple/{p-e0c0e8b0.system.entry.js → p-9afb642d.system.entry.js} +1 -1
- package/dist/ripple/p-9c850273.system.js +1 -0
- package/dist/ripple/p-a3f9e257.entry.js +1 -0
- package/dist/ripple/p-a5b07241.entry.js +1 -0
- package/dist/ripple/{p-d55bd2b9.entry.js → p-a7a6cf55.system.entry.js} +1 -1
- package/dist/ripple/{p-6f2d3297.system.entry.js → p-a917ea86.system.entry.js} +1 -1
- package/dist/ripple/p-ab5664cd.entry.js +1 -0
- package/dist/ripple/{p-cc028323.entry.js → p-acb04e6e.entry.js} +1 -1
- package/dist/ripple/p-b2624d8f.system.entry.js +1 -0
- package/dist/ripple/p-b5b37960.entry.js +1 -0
- package/dist/ripple/p-b713b6de.system.entry.js +1 -0
- package/dist/ripple/p-b75e9e5f.entry.js +1 -0
- package/dist/ripple/{p-b1924539.system.entry.js → p-b7969fd7.system.entry.js} +1 -1
- package/dist/ripple/{p-a7e637a5.system.entry.js → p-b9596bfc.system.entry.js} +1 -1
- package/dist/ripple/p-b9d3d967.system.entry.js +1 -0
- package/dist/ripple/{p-aafced54.system.entry.js → p-bd365c44.system.entry.js} +1 -1
- package/dist/ripple/p-bd9ab5ae.system.entry.js +1 -0
- package/dist/ripple/p-c0028f4d.system.entry.js +1 -0
- package/dist/ripple/p-c7d3ee52.entry.js +1 -0
- package/dist/ripple/p-c8e4e95b.entry.js +1 -0
- package/dist/ripple/p-c996ade8.entry.js +1 -0
- package/dist/ripple/p-ca8378b0.entry.js +1 -0
- package/dist/ripple/{p-bd37dd6f.entry.js → p-cc2176ad.entry.js} +1 -1
- package/dist/ripple/p-cd496e63.entry.js +1 -0
- package/dist/ripple/p-d0653c32.entry.js +1 -0
- package/dist/ripple/{p-9a5d11cb.entry.js → p-d11e5029.entry.js} +1 -1
- package/dist/ripple/p-d3d0b626.entry.js +1 -0
- package/dist/ripple/p-d4899263.entry.js +1 -0
- package/dist/ripple/p-dc82f194.entry.js +1 -0
- package/dist/ripple/{p-a6ef995c.system.entry.js → p-ddfb976f.system.entry.js} +1 -1
- package/dist/ripple/{p-ee26ba53.entry.js → p-e1899945.entry.js} +1 -1
- package/dist/ripple/p-e26b9711.system.entry.js +1 -0
- package/dist/ripple/{p-10aea5ee.system.entry.js → p-e31f597a.system.entry.js} +1 -1
- package/dist/ripple/p-e35de3cd.system.entry.js +1 -0
- package/dist/ripple/p-e3effa1a.system.entry.js +1 -0
- package/dist/ripple/p-e674e6a7.system.entry.js +1 -0
- package/dist/ripple/{p-8e6e868a.entry.js → p-e7ffd796.entry.js} +1 -1
- package/dist/ripple/p-e800717d.entry.js +1 -0
- package/dist/ripple/p-eab35bea.entry.js +1 -0
- package/dist/ripple/{p-df9d5b14.system.entry.js → p-ebdf16fa.system.entry.js} +1 -1
- package/dist/ripple/p-ed9fc1c1.system.entry.js +1 -0
- package/dist/ripple/p-eda49f0e.entry.js +1 -0
- package/dist/ripple/p-ee33fd7f.system.entry.js +1 -0
- package/dist/ripple/p-ee5f43fe.system.entry.js +1 -0
- package/dist/ripple/{p-928b3e5e.entry.js → p-f0ee3616.entry.js} +1 -1
- package/dist/ripple/{p-02c8bf15.system.entry.js → p-f1215c25.system.entry.js} +1 -1
- package/dist/ripple/p-f148ae9d.system.entry.js +1 -0
- package/dist/ripple/p-f307aabe.entry.js +1 -0
- package/dist/ripple/p-f4f6c904.system.entry.js +1 -0
- package/dist/ripple/p-f58833ae.system.entry.js +1 -0
- package/dist/ripple/p-f7fc6350.system.js +1 -1
- package/dist/ripple/p-f881cdc8.system.entry.js +1 -0
- package/dist/ripple/{p-444feb7d.system.entry.js → p-fbb37b4b.system.entry.js} +1 -1
- package/dist/ripple/{p-40e8071c.system.entry.js → p-fc905b2f.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +5 -0
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +5 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +111 -0
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +131 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +100 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +77 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +134 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +52 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +84 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +6 -2
- package/dist/types/components/datepickers/wm-date-range.d.ts +186 -0
- package/dist/types/components/datepickers/wm-datepicker.d.ts +170 -2
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +162 -0
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +164 -0
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +122 -0
- package/dist/types/components/wm-button/wm-button.d.ts +170 -2
- package/dist/types/components/wm-file/wm-file.d.ts +92 -0
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +71 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +193 -0
- package/dist/types/components/wm-input/wm-input.d.ts +158 -0
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +58 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +148 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +4 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +50 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +91 -3
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +90 -0
- package/dist/types/components/wm-search/wm-search.d.ts +148 -5
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +94 -0
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +43 -2
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +93 -0
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +28 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +185 -0
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +97 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +145 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +74 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +128 -0
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +10513 -57
- package/package.json +2 -2
- package/dist/ripple/p-065b0134.entry.js +0 -1
- package/dist/ripple/p-210773eb.entry.js +0 -1
|
@@ -1,5 +1,116 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { intl, toBool, handleDisabledAttribute, dateToISO, showTooltip, hideTooltip, debounce, findAllScrollableParents, findPositioningBoundary, } from "../../global/functions";
|
|
3
|
+
/**
|
|
4
|
+
* Date input that lets users type a date or pick one from a calendar popup. Supports
|
|
5
|
+
* configurable date formats, pre-selection, validation, and full keyboard navigation of the calendar.
|
|
6
|
+
* Use instead of native `<input type="date">`.
|
|
7
|
+
*
|
|
8
|
+
* @keyboardInteraction
|
|
9
|
+
* - **Input field**: Tab moves focus to the calendar toggle button.
|
|
10
|
+
* - **Calendar toggle**: Space / Enter / Down Arrow opens the calendar; Shift+Tab returns to the input.
|
|
11
|
+
* - **Day grid**: Arrow keys navigate dates; Enter selects; Escape closes and returns focus to the toggle;
|
|
12
|
+
* Home/End jump to the first/last day of the month; Tab cycles through calendar controls.
|
|
13
|
+
* - **Month/year selectors**: Arrow keys cycle values; Tab/Shift+Tab move focus clockwise/counter-clockwise.
|
|
14
|
+
*
|
|
15
|
+
* @accessibility
|
|
16
|
+
* - `label` is required even when `label-position` is `"none"` — it becomes the input's `aria-label`.
|
|
17
|
+
* - The calendar toggle button announces "Select date" to screen readers and reflects `aria-expanded`.
|
|
18
|
+
* - Validation errors are announced via an `aria-live` region when `error-message` changes.
|
|
19
|
+
* - When the input value cannot be parsed as a valid date, the calendar opens to the current date.
|
|
20
|
+
*
|
|
21
|
+
* @usageNotes
|
|
22
|
+
* - Set `value` in the same format as `date-format` (default `mm/dd/yyyy`). For programmatic date
|
|
23
|
+
* setting, prefer ISO format via `preselected` and convert with the `reformatDate` method.
|
|
24
|
+
* - The calendar popup hides its toggle automatically when there is no room to display it; always
|
|
25
|
+
* allow users to type a date directly in the input as a fallback.
|
|
26
|
+
*
|
|
27
|
+
* @example {html} Basic datepicker
|
|
28
|
+
* <wm-datepicker label="Start date"></wm-datepicker>
|
|
29
|
+
*
|
|
30
|
+
* @example {react} Basic datepicker
|
|
31
|
+
* // The component does not update its own value after a calendar selection --
|
|
32
|
+
* // the app must call reformatDate and set value/errorMessage imperatively via a ref.
|
|
33
|
+
* const ref = useRef(null);
|
|
34
|
+
*
|
|
35
|
+
* function getFormatName(format) {
|
|
36
|
+
* const map = { 'mm/dd/yyyy': 'US', 'dd/mm/yyyy': 'INT', 'yyyy/mm/dd': 'ISO' };
|
|
37
|
+
* return format ? map[format] : 'US';
|
|
38
|
+
* }
|
|
39
|
+
*
|
|
40
|
+
* // event.detail is { date: string } -- ISO 8601 (YYYY-MM-DD)
|
|
41
|
+
* const handleDateSelected = async (event) => {
|
|
42
|
+
* const dp = ref.current;
|
|
43
|
+
* const fmt = getFormatName(dp.getAttribute('date-format'));
|
|
44
|
+
* dp.value = await dp.reformatDate('ISO', fmt, event.detail.date);
|
|
45
|
+
* dp.errorMessage = '';
|
|
46
|
+
* };
|
|
47
|
+
*
|
|
48
|
+
* const handleInputBlurred = async () => {
|
|
49
|
+
* const dp = ref.current;
|
|
50
|
+
* const fmt = getFormatName(dp.getAttribute('date-format'));
|
|
51
|
+
* if (dp.value) {
|
|
52
|
+
* const iso = await dp.reformatDate(fmt, 'ISO', dp.value);
|
|
53
|
+
* if (await dp.isValidIso(iso)) {
|
|
54
|
+
* dp.value = await dp.reformatDate('ISO', fmt, iso);
|
|
55
|
+
* dp.errorMessage = '';
|
|
56
|
+
* } else {
|
|
57
|
+
* dp.errorMessage = `Please enter a valid date in the format ${dp.getAttribute('date-format') ?? 'mm/dd/yyyy'}`;
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* };
|
|
61
|
+
*
|
|
62
|
+
* const handleBlur = () => {
|
|
63
|
+
* const dp = ref.current;
|
|
64
|
+
* if (dp.requiredField && dp.value === '') dp.errorMessage = 'A date is required';
|
|
65
|
+
* };
|
|
66
|
+
*
|
|
67
|
+
* <WmDatepicker
|
|
68
|
+
* ref={ref}
|
|
69
|
+
* label="Start date"
|
|
70
|
+
* onWmDatepickerDateSelected={handleDateSelected}
|
|
71
|
+
* onWmDatepickerInputBlurred={handleInputBlurred}
|
|
72
|
+
* onBlur={handleBlur}
|
|
73
|
+
* />
|
|
74
|
+
*
|
|
75
|
+
* @example {html} Required field with validation
|
|
76
|
+
* <wm-datepicker label="Date of birth" required-field></wm-datepicker>
|
|
77
|
+
*
|
|
78
|
+
* @example {react} Required field with validation
|
|
79
|
+
* <WmDatepicker
|
|
80
|
+
* ref={ref}
|
|
81
|
+
* label="Date of birth"
|
|
82
|
+
* requiredField={true}
|
|
83
|
+
* onWmDatepickerDateSelected={handleDateSelected}
|
|
84
|
+
* onWmDatepickerInputBlurred={handleInputBlurred}
|
|
85
|
+
* onBlur={handleBlur}
|
|
86
|
+
* />
|
|
87
|
+
*
|
|
88
|
+
* @example {html} With validation error
|
|
89
|
+
* <wm-datepicker label="Start date" required-field error-message="Please enter a valid start date"></wm-datepicker>
|
|
90
|
+
*
|
|
91
|
+
* @example {react} With validation error
|
|
92
|
+
* <WmDatepicker label="Start date" requiredField={true} errorMessage="Please enter a valid start date" />
|
|
93
|
+
*
|
|
94
|
+
* @example {html} Pre-opened to a specific date
|
|
95
|
+
* <wm-datepicker label="Enrollment date" preselected="2025-09-01"></wm-datepicker>
|
|
96
|
+
*
|
|
97
|
+
* @example {react} Pre-opened to a specific date
|
|
98
|
+
* <WmDatepicker label="Enrollment date" preselected="2025-09-01" />
|
|
99
|
+
*
|
|
100
|
+
* @example {html} International date format
|
|
101
|
+
* <wm-datepicker label="Graduation date" date-format="dd/mm/yyyy"></wm-datepicker>
|
|
102
|
+
*
|
|
103
|
+
* @example {react} International date format
|
|
104
|
+
* <WmDatepicker label="Graduation date" dateFormat="dd/mm/yyyy" />
|
|
105
|
+
*
|
|
106
|
+
* @example {html} Disabled
|
|
107
|
+
* <wm-datepicker label="Locked date" value="05/15/2024" disabled></wm-datepicker>
|
|
108
|
+
*
|
|
109
|
+
* @example {react} Disabled
|
|
110
|
+
* <WmDatepicker label="Locked date" value="05/15/2024" disabled={true} />
|
|
111
|
+
*
|
|
112
|
+
* @category Form Inputs
|
|
113
|
+
*/
|
|
3
114
|
export class DatePicker {
|
|
4
115
|
constructor() {
|
|
5
116
|
this.calWidth = 336;
|
|
@@ -99,12 +210,17 @@ export class DatePicker {
|
|
|
99
210
|
}
|
|
100
211
|
get calendarDate() {
|
|
101
212
|
let calendarDate = dateToISO(new Date());
|
|
102
|
-
const dateFormatUnits = {
|
|
213
|
+
const dateFormatUnits = {
|
|
214
|
+
"mm/dd/yyyy": "US",
|
|
215
|
+
"dd/mm/yyyy": "INT",
|
|
216
|
+
"yyyy/mm/dd": "ISO",
|
|
217
|
+
};
|
|
218
|
+
const inputFormat = dateFormatUnits[this.dateFormat];
|
|
103
219
|
if (this.value &&
|
|
104
|
-
|
|
105
|
-
this.isValidIsoInternal(this.reformatDateInternal(
|
|
220
|
+
inputFormat &&
|
|
221
|
+
this.isValidIsoInternal(this.reformatDateInternal(inputFormat, "ISO", this.value))) {
|
|
106
222
|
// if component has value, and value can be parsed to valid ISO
|
|
107
|
-
calendarDate = this.reformatDateInternal(
|
|
223
|
+
calendarDate = this.reformatDateInternal(inputFormat, "ISO", this.value);
|
|
108
224
|
}
|
|
109
225
|
else if (this.preselected) {
|
|
110
226
|
calendarDate = this.preselected;
|
|
@@ -191,7 +307,7 @@ export class DatePicker {
|
|
|
191
307
|
}
|
|
192
308
|
this.fit = null;
|
|
193
309
|
this.isExpanded = false;
|
|
194
|
-
this.calEl.view = "
|
|
310
|
+
this.calEl.view = "month";
|
|
195
311
|
}
|
|
196
312
|
}
|
|
197
313
|
closePopup(returnFocus = false) {
|
|
@@ -245,6 +361,18 @@ export class DatePicker {
|
|
|
245
361
|
this.el.dispatchEvent(changeEvent);
|
|
246
362
|
this.closePopup(true);
|
|
247
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* @description Converts a date string between the supported format tokens: `"US"` (mm/dd/yyyy),
|
|
366
|
+
* `"INT"` (dd/mm/yyyy), and `"ISO"` (YYYY-MM-DD). Direct US ↔ INT conversion is not supported —
|
|
367
|
+
* route through ISO as an intermediate step.
|
|
368
|
+
* @param inputFormat - Format of the input date string.
|
|
369
|
+
* @param outputFormat - Desired output format.
|
|
370
|
+
* @param date - The date string to reformat.
|
|
371
|
+
* @returns The reformatted date string, an empty string if `date` is omitted or falsy, or the
|
|
372
|
+
* original string unchanged if it cannot be parsed.
|
|
373
|
+
* @example reformatDate("US", "ISO", "06/20/1969") // → "1969-06-20"
|
|
374
|
+
* @example reformatDate("ISO", "US", "1969-06-20") // → "06/20/1969"
|
|
375
|
+
*/
|
|
248
376
|
async reformatDate(inputFormat, outputFormat, date) {
|
|
249
377
|
return this.reformatDateInternal(inputFormat, outputFormat, date);
|
|
250
378
|
}
|
|
@@ -280,6 +408,15 @@ export class DatePicker {
|
|
|
280
408
|
}
|
|
281
409
|
}
|
|
282
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* @description Validates whether a string is a well-formed, calendar-correct ISO date
|
|
413
|
+
* (YYYY-MM-DD). Accounts for invalid day-of-month values and leap years.
|
|
414
|
+
* @param input - The string to validate.
|
|
415
|
+
* @returns `true` if the string is a valid ISO date, `false` otherwise.
|
|
416
|
+
* @example isValidIso("1969-06-20") // → true
|
|
417
|
+
* @example isValidIso("1969-06-33") // → false (day 33 does not exist)
|
|
418
|
+
* @example isValidIso("2023-02-29") // → false (2023 is not a leap year)
|
|
419
|
+
*/
|
|
283
420
|
async isValidIso(input) {
|
|
284
421
|
return this.isValidIsoInternal(input);
|
|
285
422
|
}
|
|
@@ -329,25 +466,25 @@ export class DatePicker {
|
|
|
329
466
|
}
|
|
330
467
|
render() {
|
|
331
468
|
var _a, _b, _c, _d;
|
|
332
|
-
return (h(Host, { key: '
|
|
469
|
+
return (h(Host, { key: 'ec737a3904688317e61939e4ed997c0e4d6fa49d', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'ba2baa4d174b1fdb229169cd80ee8f60c308254e', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '4e196f3d7e9dc1ebc0fdd8d63cd4f9bb2888c3ed', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: 'ad751fc53a81f7ea7edc88ded9a632cab9fabac1', id: "datepickerLabel", htmlFor: "date-input", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '4226a64b138aa35272fffce46265f82503afc25d', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '175045b72db00588c9b8031cfbf22a2f77759e77' }, h("div", { key: '126b7c096ec657766deedb6bab0107f067c8cdd9', class: "single-wrapper input", ref: (el) => (this.anchorEl = el) }, h("input", { key: '36560f575003ffc14e2e363c24e682f8e5805f41', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "date-format-hint error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '097142daa1f08d9a135d2ed25c1161434448e3d7', class: "container", id: "wm-container" }, this.canOpen && (h("button", { key: 'ad64f7af5d81e3035b791808e9c9c35a537a86a9', disabled: this.disabled, "aria-label": intl.formatMessage({
|
|
333
470
|
id: "date.selectDate",
|
|
334
471
|
defaultMessage: "Select date",
|
|
335
472
|
description: "Button text for screen readers.",
|
|
336
|
-
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: '
|
|
473
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: 'f4860dc16c96322e45dd6f425c1b132bec93edd8', class: "svg-icon svg-date" }), h("span", { key: 'b771ffa73b5995cfb5a5a2d15902e8e57a1e9ad6', class: "calendar", title: intl.formatMessage({
|
|
337
474
|
id: "date.calendarView",
|
|
338
475
|
defaultMessage: "Calendar View",
|
|
339
476
|
description: "Calendar button",
|
|
340
|
-
}) }))), h("div", { key: '
|
|
477
|
+
}) }))), h("div", { key: '27823fcfcb377eea7adf0f725031b67407b8886c', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.isExpanded ? "is-open" : ""} ${!this.hasAnchor && !this.isExpanded ? "hidden" : ""} ${(_b = (_a = this.fit) === null || _a === void 0 ? void 0 : _a.vertical) !== null && _b !== void 0 ? _b : ""} ${(_d = (_c = this.fit) === null || _c === void 0 ? void 0 : _c.horizontal) !== null && _d !== void 0 ? _d : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), popover: "auto",
|
|
341
478
|
// @ts-ignore -- onToggle is a valid ToggleEvent listener for popover elements
|
|
342
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '
|
|
479
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '42fb801ee8861ee9d69fd634b01961ca1e751d3b', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: 'f6d60feb67ceb253069e3d81f1bc348a58a7c9e0', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: 'a8931fe7482dc487dc19cefd0eac43a6bcb5d2d4', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: '7f934d9c1260c7660f9dd819c5a8c235c703e6cd', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '0db580e9920000ee2438d0a1a3d55c670dca029f', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
343
480
|
id: "date.selectMonth",
|
|
344
481
|
defaultMessage: "Activate to select a month.",
|
|
345
482
|
description: "Calendar button",
|
|
346
|
-
})), h("div", { key: '
|
|
483
|
+
})), h("div", { key: 'aedeb3b51f4d5178022beb80feb69350019a94e6', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
347
484
|
id: "date.selectYear",
|
|
348
485
|
defaultMessage: "Activate to select a year.",
|
|
349
486
|
description: "Calendar button",
|
|
350
|
-
})))), h("div", { key: '
|
|
487
|
+
})))), h("div", { key: 'd9b334efcd6a1a8732996af354ebb3732984a9da', id: "error", class: "error" }, this.errorMessage), h("span", { key: 'ef309d1f21a4e414bb6230bb29a6e2477faf092b', id: "date-format-hint", class: "sr-only" }, this.dateFormat), h("div", { key: 'f5487f9e59eb400483ef96362a549dc52e512404', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
351
488
|
}
|
|
352
489
|
static get is() { return "wm-datepicker"; }
|
|
353
490
|
static get encapsulation() { return "shadow"; }
|
|
@@ -375,7 +512,10 @@ export class DatePicker {
|
|
|
375
512
|
"required": false,
|
|
376
513
|
"optional": true,
|
|
377
514
|
"docs": {
|
|
378
|
-
"tags": [
|
|
515
|
+
"tags": [{
|
|
516
|
+
"name": "description",
|
|
517
|
+
"text": "The date displayed in the input field, in the format specified by `date-format`. Updated as the user types. Can also be set programmatically by the application."
|
|
518
|
+
}],
|
|
379
519
|
"text": ""
|
|
380
520
|
},
|
|
381
521
|
"attribute": "value",
|
|
@@ -393,7 +533,13 @@ export class DatePicker {
|
|
|
393
533
|
"required": false,
|
|
394
534
|
"optional": false,
|
|
395
535
|
"docs": {
|
|
396
|
-
"tags": [
|
|
536
|
+
"tags": [{
|
|
537
|
+
"name": "description",
|
|
538
|
+
"text": "Disables the datepicker, preventing all interaction."
|
|
539
|
+
}, {
|
|
540
|
+
"name": "default",
|
|
541
|
+
"text": "false"
|
|
542
|
+
}],
|
|
397
543
|
"text": ""
|
|
398
544
|
},
|
|
399
545
|
"attribute": "disabled",
|
|
@@ -411,7 +557,13 @@ export class DatePicker {
|
|
|
411
557
|
"required": false,
|
|
412
558
|
"optional": false,
|
|
413
559
|
"docs": {
|
|
414
|
-
"tags": [
|
|
560
|
+
"tags": [{
|
|
561
|
+
"name": "description",
|
|
562
|
+
"text": "The expected date format. Shown in the input placeholder and announced to screen reader users."
|
|
563
|
+
}, {
|
|
564
|
+
"name": "default",
|
|
565
|
+
"text": "\"mm/dd/yyyy\""
|
|
566
|
+
}],
|
|
415
567
|
"text": ""
|
|
416
568
|
},
|
|
417
569
|
"attribute": "date-format",
|
|
@@ -429,7 +581,10 @@ export class DatePicker {
|
|
|
429
581
|
"required": false,
|
|
430
582
|
"optional": true,
|
|
431
583
|
"docs": {
|
|
432
|
-
"tags": [
|
|
584
|
+
"tags": [{
|
|
585
|
+
"name": "description",
|
|
586
|
+
"text": "Puts the component in an error state and displays this message below the input."
|
|
587
|
+
}],
|
|
433
588
|
"text": ""
|
|
434
589
|
},
|
|
435
590
|
"attribute": "error-message",
|
|
@@ -446,7 +601,13 @@ export class DatePicker {
|
|
|
446
601
|
"required": false,
|
|
447
602
|
"optional": false,
|
|
448
603
|
"docs": {
|
|
449
|
-
"tags": [
|
|
604
|
+
"tags": [{
|
|
605
|
+
"name": "description",
|
|
606
|
+
"text": "Position of the label relative to the input. `'none'` hides the label visually but keeps it accessible via `aria-label`."
|
|
607
|
+
}, {
|
|
608
|
+
"name": "default",
|
|
609
|
+
"text": "\"top\""
|
|
610
|
+
}],
|
|
450
611
|
"text": ""
|
|
451
612
|
},
|
|
452
613
|
"attribute": "label-position",
|
|
@@ -464,7 +625,13 @@ export class DatePicker {
|
|
|
464
625
|
"required": false,
|
|
465
626
|
"optional": false,
|
|
466
627
|
"docs": {
|
|
467
|
-
"tags": [
|
|
628
|
+
"tags": [{
|
|
629
|
+
"name": "description",
|
|
630
|
+
"text": "Visible label for the input. Required even when `label-position` is `'none'` \u2014 used as the ARIA accessible name."
|
|
631
|
+
}, {
|
|
632
|
+
"name": "required",
|
|
633
|
+
"text": undefined
|
|
634
|
+
}],
|
|
468
635
|
"text": ""
|
|
469
636
|
},
|
|
470
637
|
"attribute": "label",
|
|
@@ -482,7 +649,13 @@ export class DatePicker {
|
|
|
482
649
|
"required": false,
|
|
483
650
|
"optional": false,
|
|
484
651
|
"docs": {
|
|
485
|
-
"tags": [
|
|
652
|
+
"tags": [{
|
|
653
|
+
"name": "description",
|
|
654
|
+
"text": "Displays a required-field asterisk (*) next to the label."
|
|
655
|
+
}, {
|
|
656
|
+
"name": "default",
|
|
657
|
+
"text": "false"
|
|
658
|
+
}],
|
|
486
659
|
"text": ""
|
|
487
660
|
},
|
|
488
661
|
"attribute": "required-field",
|
|
@@ -500,7 +673,10 @@ export class DatePicker {
|
|
|
500
673
|
"required": false,
|
|
501
674
|
"optional": true,
|
|
502
675
|
"docs": {
|
|
503
|
-
"tags": [
|
|
676
|
+
"tags": [{
|
|
677
|
+
"name": "description",
|
|
678
|
+
"text": "The date the calendar popup focuses when first opened, in ISO format (YYYY-MM-DD). Falls back to the parsed `value`, then the current date if neither can be parsed."
|
|
679
|
+
}],
|
|
504
680
|
"text": ""
|
|
505
681
|
},
|
|
506
682
|
"attribute": "preselected",
|
|
@@ -522,7 +698,13 @@ export class DatePicker {
|
|
|
522
698
|
"cancelable": true,
|
|
523
699
|
"composed": true,
|
|
524
700
|
"docs": {
|
|
525
|
-
"tags": [
|
|
701
|
+
"tags": [{
|
|
702
|
+
"name": "description",
|
|
703
|
+
"text": "Fires when the user selects a date from the calendar popup."
|
|
704
|
+
}, {
|
|
705
|
+
"name": "eventDetails",
|
|
706
|
+
"text": "{{ date: string }} date \u2014 the selected date in ISO format (YYYY-MM-DD)."
|
|
707
|
+
}],
|
|
526
708
|
"text": ""
|
|
527
709
|
},
|
|
528
710
|
"complexType": {
|
|
@@ -537,7 +719,10 @@ export class DatePicker {
|
|
|
537
719
|
"cancelable": true,
|
|
538
720
|
"composed": true,
|
|
539
721
|
"docs": {
|
|
540
|
-
"tags": [
|
|
722
|
+
"tags": [{
|
|
723
|
+
"name": "description",
|
|
724
|
+
"text": "Fires when the text input loses focus."
|
|
725
|
+
}],
|
|
541
726
|
"text": ""
|
|
542
727
|
},
|
|
543
728
|
"complexType": {
|
|
@@ -551,19 +736,19 @@ export class DatePicker {
|
|
|
551
736
|
return {
|
|
552
737
|
"reformatDate": {
|
|
553
738
|
"complexType": {
|
|
554
|
-
"signature": "(inputFormat:
|
|
739
|
+
"signature": "(inputFormat: \"US\" | \"INT\" | \"ISO\", outputFormat: \"US\" | \"INT\" | \"ISO\", date?: string) => Promise<string>",
|
|
555
740
|
"parameters": [{
|
|
556
741
|
"name": "inputFormat",
|
|
557
|
-
"type": "
|
|
558
|
-
"docs": ""
|
|
742
|
+
"type": "\"US\" | \"INT\" | \"ISO\"",
|
|
743
|
+
"docs": "- Format of the input date string."
|
|
559
744
|
}, {
|
|
560
745
|
"name": "outputFormat",
|
|
561
|
-
"type": "
|
|
562
|
-
"docs": ""
|
|
746
|
+
"type": "\"US\" | \"INT\" | \"ISO\"",
|
|
747
|
+
"docs": "- Desired output format."
|
|
563
748
|
}, {
|
|
564
749
|
"name": "date",
|
|
565
750
|
"type": "string | undefined",
|
|
566
|
-
"docs": ""
|
|
751
|
+
"docs": "- The date string to reformat."
|
|
567
752
|
}],
|
|
568
753
|
"references": {
|
|
569
754
|
"Promise": {
|
|
@@ -575,7 +760,28 @@ export class DatePicker {
|
|
|
575
760
|
},
|
|
576
761
|
"docs": {
|
|
577
762
|
"text": "",
|
|
578
|
-
"tags": [
|
|
763
|
+
"tags": [{
|
|
764
|
+
"name": "description",
|
|
765
|
+
"text": "Converts a date string between the supported format tokens: `\"US\"` (mm/dd/yyyy),\n`\"INT\"` (dd/mm/yyyy), and `\"ISO\"` (YYYY-MM-DD). Direct US \u2194 INT conversion is not supported \u2014\nroute through ISO as an intermediate step."
|
|
766
|
+
}, {
|
|
767
|
+
"name": "param",
|
|
768
|
+
"text": "inputFormat - Format of the input date string."
|
|
769
|
+
}, {
|
|
770
|
+
"name": "param",
|
|
771
|
+
"text": "outputFormat - Desired output format."
|
|
772
|
+
}, {
|
|
773
|
+
"name": "param",
|
|
774
|
+
"text": "date - The date string to reformat."
|
|
775
|
+
}, {
|
|
776
|
+
"name": "returns",
|
|
777
|
+
"text": "The reformatted date string, an empty string if `date` is omitted or falsy, or the\noriginal string unchanged if it cannot be parsed."
|
|
778
|
+
}, {
|
|
779
|
+
"name": "example",
|
|
780
|
+
"text": "reformatDate(\"US\", \"ISO\", \"06/20/1969\") // \u2192 \"1969-06-20\""
|
|
781
|
+
}, {
|
|
782
|
+
"name": "example",
|
|
783
|
+
"text": "reformatDate(\"ISO\", \"US\", \"1969-06-20\") // \u2192 \"06/20/1969\""
|
|
784
|
+
}]
|
|
579
785
|
}
|
|
580
786
|
},
|
|
581
787
|
"isValidIso": {
|
|
@@ -584,7 +790,7 @@ export class DatePicker {
|
|
|
584
790
|
"parameters": [{
|
|
585
791
|
"name": "input",
|
|
586
792
|
"type": "string | undefined",
|
|
587
|
-
"docs": ""
|
|
793
|
+
"docs": "- The string to validate."
|
|
588
794
|
}],
|
|
589
795
|
"references": {
|
|
590
796
|
"Promise": {
|
|
@@ -596,7 +802,25 @@ export class DatePicker {
|
|
|
596
802
|
},
|
|
597
803
|
"docs": {
|
|
598
804
|
"text": "",
|
|
599
|
-
"tags": [
|
|
805
|
+
"tags": [{
|
|
806
|
+
"name": "description",
|
|
807
|
+
"text": "Validates whether a string is a well-formed, calendar-correct ISO date\n(YYYY-MM-DD). Accounts for invalid day-of-month values and leap years."
|
|
808
|
+
}, {
|
|
809
|
+
"name": "param",
|
|
810
|
+
"text": "input - The string to validate."
|
|
811
|
+
}, {
|
|
812
|
+
"name": "returns",
|
|
813
|
+
"text": "`true` if the string is a valid ISO date, `false` otherwise."
|
|
814
|
+
}, {
|
|
815
|
+
"name": "example",
|
|
816
|
+
"text": "isValidIso(\"1969-06-20\") // \u2192 true"
|
|
817
|
+
}, {
|
|
818
|
+
"name": "example",
|
|
819
|
+
"text": "isValidIso(\"1969-06-33\") // \u2192 false (day 33 does not exist)"
|
|
820
|
+
}, {
|
|
821
|
+
"name": "example",
|
|
822
|
+
"text": "isValidIso(\"2023-02-29\") // \u2192 false (2023 is not a leap year)"
|
|
823
|
+
}]
|
|
600
824
|
}
|
|
601
825
|
}
|
|
602
826
|
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { h, forceUpdate } from "@stencil/core";
|
|
2
2
|
import { debounce, isElOrChild } from "../../../global/functions";
|
|
3
3
|
import { selectMessages } from "../../../global/intl";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* @description Internal listbox, search field, and Select All button used by wm-select,
|
|
7
|
+
* wm-nested-select, and wm-optgroup. Manages keyboard navigation, option filtering, and
|
|
8
|
+
* clone options for multiselect. Not for direct application use.
|
|
9
|
+
*/
|
|
4
10
|
export class PrivOptionList {
|
|
5
11
|
constructor() {
|
|
6
12
|
this.searchIndex = 0;
|
|
@@ -367,7 +373,7 @@ export class PrivOptionList {
|
|
|
367
373
|
return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
|
|
368
374
|
}
|
|
369
375
|
render() {
|
|
370
|
-
return (h("div", { key: '
|
|
376
|
+
return (h("div", { key: 'edfca7bcea21613113e9498ce7f9aa5fc7546ce2', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '443fbc27fa3f25984f5eaada522a990b6941a5dd', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-label": this.optgroupLabel, ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: '7f6fb3e4667fcd951e98b7e5466416de817a8e55' })), h("div", { key: '8753468e7a2dd5bd17bd1cfdf72d7eac0b4faf6e', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
371
377
|
}
|
|
372
378
|
static get is() { return "priv-option-list"; }
|
|
373
379
|
static get originalStyleUrls() {
|