@watermarkinsights/ripple 0.0.1 → 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3db2fdd3.js +103 -0
- package/dist/cjs/chartFunctions-0d47b1f4.js +906 -0
- package/dist/cjs/functions-761cb9f2.js +10694 -0
- package/dist/cjs/index-bb947bd5.js +1843 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-33cd6161.js +82 -0
- package/dist/cjs/intl-9e9388a7.js +291 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +580 -0
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +146 -0
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +204 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +35 -0
- package/dist/cjs/priv-option-list.cjs.entry.js +391 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +525 -0
- package/dist/cjs/wm-button.cjs.entry.js +280 -0
- package/dist/cjs/wm-chart-bar.cjs.entry.js +444 -0
- package/dist/cjs/wm-chart-column.cjs.entry.js +629 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart-stack.cjs.entry.js +447 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +591 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +399 -0
- package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-file-list.cjs.entry.js} +15 -24
- package/dist/cjs/wm-file.cjs.entry.js +210 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +178 -0
- package/dist/{ripple/wm-modal.entry.js → cjs/wm-input.cjs.entry.js} +108 -110
- package/dist/cjs/wm-line-chart.cjs.entry.js +541 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +220 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +238 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +334 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +322 -0
- package/dist/{ripple/wm-textarea.entry.js → cjs/wm-optgroup.cjs.entry.js} +62 -57
- package/dist/cjs/wm-option_2.cjs.entry.js +536 -0
- package/dist/{ripple/wm-navigation.entry.js → cjs/wm-pagination.cjs.entry.js} +204 -91
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/{ripple/wm-flyout.entry.js → cjs/wm-search.cjs.entry.js} +168 -139
- package/dist/{ripple/wm-datepicker.entry.js → cjs/wm-snackbar.cjs.entry.js} +152 -223
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +357 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +985 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +51 -0
- package/dist/{ripple/wm-modal-pss.entry.js → cjs/wm-textarea.cjs.entry.js} +70 -111
- package/dist/{ripple/wm-progress-indicator.entry.js → cjs/wm-timepicker.cjs.entry.js} +296 -78
- package/dist/cjs/wm-toggletip.cjs.entry.js +252 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +341 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +207 -0
- package/dist/collection/components/charts/chartFunctions.js +831 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +995 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +345 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +990 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +268 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +177 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1326 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +549 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1236 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +725 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +1335 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +914 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +1006 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +310 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.css +1466 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.js +709 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1208 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +999 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1326 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +320 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +967 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +232 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +167 -0
- package/dist/collection/components/datepickers/datepicker.css +1147 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1415 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +857 -0
- package/dist/collection/components/datepickers/wm-date-range.js +1158 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +875 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +999 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +784 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1259 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +805 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +909 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +363 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1033 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +665 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1174 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +878 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1690 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +932 -0
- package/dist/collection/components/wm-button/wm-button.css +1630 -0
- package/dist/collection/components/wm-button/wm-button.js +794 -0
- package/dist/collection/components/wm-file/wm-file.css +1086 -0
- package/dist/collection/components/wm-file/wm-file.js +536 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +899 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +118 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1091 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +651 -0
- package/dist/collection/components/wm-input/wm-input.css +1095 -0
- package/dist/collection/components/wm-input/wm-input.js +653 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +982 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +515 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +927 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +199 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +926 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +110 -0
- package/dist/collection/components/wm-modal/wm-modal.css +983 -0
- package/dist/collection/components/wm-modal/wm-modal.js +534 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +931 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +142 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +925 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1007 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +926 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +153 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +935 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +140 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +977 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +246 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +929 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +918 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +128 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +990 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +597 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1044 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +487 -0
- package/dist/collection/components/wm-search/wm-search.css +983 -0
- package/dist/collection/components/wm-search/wm-search.js +604 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1150 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +363 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +958 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +233 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +966 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +461 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +906 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +132 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1423 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1511 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +328 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1065 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +423 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1174 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +728 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1296 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +455 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1987 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +760 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +31 -0
- package/dist/collection/dev/action-menu.js +18 -0
- package/dist/collection/dev/button.js +12 -0
- package/dist/collection/dev/chart-bar.js +430 -0
- package/dist/collection/dev/chart-column.js +459 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart-stack.js +205 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +14 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/flyout.js +194 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +45 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +68 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +907 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +16 -87
- package/dist/collection/global/interfaces.js +94 -0
- package/dist/collection/global/intl.js +281 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +14178 -0
- package/dist/docs/props-reference.json +2079 -0
- package/dist/docs/skill/index.md +33 -0
- package/dist/docs/skill/wm-action-menu.md +116 -0
- package/dist/docs/skill/wm-button.md +121 -0
- package/dist/docs/skill/wm-chart-bar.md +156 -0
- package/dist/docs/skill/wm-chart-column.md +122 -0
- package/dist/docs/skill/wm-chart-legend.md +91 -0
- package/dist/docs/skill/wm-chart-slice.md +101 -0
- package/dist/docs/skill/wm-chart-stack.md +147 -0
- package/dist/docs/skill/wm-chart.md +139 -0
- package/dist/docs/skill/wm-date-range.md +176 -0
- package/dist/docs/skill/wm-datepicker.md +153 -0
- package/dist/docs/skill/wm-file-list.md +105 -0
- package/dist/docs/skill/wm-file.md +91 -0
- package/dist/docs/skill/wm-flyout.md +209 -0
- package/dist/docs/skill/wm-input.md +134 -0
- package/dist/docs/skill/wm-line-chart.md +135 -0
- package/dist/docs/skill/wm-menuitem.md +64 -0
- package/dist/docs/skill/wm-modal-footer.md +81 -0
- package/dist/docs/skill/wm-modal-header.md +71 -0
- package/dist/docs/skill/wm-modal.md +172 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +61 -0
- package/dist/docs/skill/wm-navigation-item.md +78 -0
- package/dist/docs/skill/wm-navigation.md +82 -0
- package/dist/docs/skill/wm-navigator.md +106 -0
- package/dist/docs/skill/wm-nested-select.md +160 -0
- package/dist/docs/skill/wm-optgroup.md +72 -0
- package/dist/docs/skill/wm-option.md +67 -0
- package/dist/docs/skill/wm-pagination.md +114 -0
- package/dist/docs/skill/wm-progress-indicator.md +75 -0
- package/dist/docs/skill/wm-progress-monitor.md +120 -0
- package/dist/docs/skill/wm-progress-slice.md +67 -0
- package/dist/docs/skill/wm-search.md +180 -0
- package/dist/docs/skill/wm-select.md +169 -0
- package/dist/docs/skill/wm-snackbar.md +130 -0
- package/dist/docs/skill/wm-tab-item.md +45 -0
- package/dist/docs/skill/wm-tab-list.md +139 -0
- package/dist/docs/skill/wm-tab-panel.md +39 -0
- package/dist/docs/skill/wm-tag-input.md +187 -0
- package/dist/docs/skill/wm-tag-option.md +60 -0
- package/dist/docs/skill/wm-textarea.md +102 -0
- package/dist/docs/skill/wm-timepicker.md +156 -0
- package/dist/docs/skill/wm-toggletip.md +98 -0
- package/dist/docs/skill/wm-uploader.md +154 -0
- package/dist/docs/skill/wm-wrapper.md +5 -0
- package/dist/esm/app-globals-a1092590.js +101 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-58637dc9.js} +159 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-65f1594c.js} +374 -7830
- package/dist/esm/index-3425d80d.js +1813 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-8778346d.js +77 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-d518f362.js} +11 -4
- package/dist/esm/loader.js +11 -0
- package/dist/{ripple → esm}/priv-calendar.entry.js +143 -133
- package/dist/esm/priv-chart-popover-old.entry.js +142 -0
- package/dist/esm/priv-chart-popover_2.entry.js +199 -0
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +5 -4
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +5 -4
- package/dist/{ripple → esm}/priv-option-list.entry.js +18 -16
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +520 -0
- package/dist/{ripple/wm-modal-header.entry.js → esm/wm-button.entry.js} +264 -24
- package/dist/esm/wm-chart-bar.entry.js +440 -0
- package/dist/esm/wm-chart-column.entry.js +625 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart-stack.entry.js +443 -0
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/{ripple → esm}/wm-date-range.entry.js +224 -114
- package/dist/esm/wm-datepicker.entry.js +395 -0
- package/dist/{ripple → esm}/wm-file-list.entry.js +5 -4
- package/dist/{ripple → esm}/wm-file.entry.js +48 -24
- package/dist/esm/wm-flyout.entry.js +174 -0
- package/dist/{ripple → esm}/wm-input.entry.js +23 -7
- package/dist/{ripple → esm}/wm-line-chart.entry.js +182 -94
- package/dist/esm/wm-modal-pss_3.entry.js +214 -0
- package/dist/esm/wm-modal_3.entry.js +232 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/{ripple → esm}/wm-navigator.entry.js +26 -64
- package/dist/{ripple → esm}/wm-nested-select.entry.js +35 -25
- package/dist/{ripple → esm}/wm-optgroup.entry.js +17 -5
- package/dist/esm/wm-option_2.entry.js +531 -0
- package/dist/{ripple → esm}/wm-pagination.entry.js +16 -14
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/{ripple → esm}/wm-search.entry.js +15 -31
- package/dist/{ripple → esm}/wm-snackbar.entry.js +32 -45
- package/dist/esm/wm-tab-item_3.entry.js +351 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +169 -65
- package/dist/{ripple → esm}/wm-tag-option.entry.js +14 -2
- package/dist/{ripple/wm-menuitem.entry.js → esm/wm-textarea.entry.js} +65 -100
- package/dist/{ripple → esm}/wm-timepicker.entry.js +33 -12
- package/dist/{ripple → esm}/wm-toggletip.entry.js +105 -33
- package/dist/esm/wm-uploader.entry.js +337 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-0d364411.entry.js +1 -0
- package/dist/ripple/p-156c4d1d.entry.js +1 -0
- package/dist/ripple/{wm-modal-footer.entry.js → p-26d8c356.entry.js} +1 -44
- package/dist/ripple/p-2b23ce49.entry.js +1 -0
- package/dist/ripple/p-2b7cc2c1.entry.js +1 -0
- package/dist/ripple/p-34bde06a.entry.js +1 -0
- package/dist/ripple/p-35db9386.entry.js +1 -0
- package/dist/ripple/p-38a987ac.entry.js +1 -0
- package/dist/ripple/p-38b05894.entry.js +1 -0
- package/dist/ripple/p-38dee4ab.entry.js +1 -0
- package/dist/ripple/p-3a19d019.entry.js +1 -0
- package/dist/ripple/p-451d4de2.js +1 -0
- package/dist/ripple/p-507f2cf4.entry.js +1 -0
- package/dist/ripple/p-59f74ead.entry.js +1 -0
- package/dist/ripple/p-5c2fc42a.entry.js +1 -0
- package/dist/ripple/p-680d7606.entry.js +1 -0
- package/dist/ripple/p-683264db.js +1 -0
- package/dist/ripple/p-6db681c8.entry.js +1 -0
- package/dist/ripple/p-6e3c2bbc.js +1 -0
- package/dist/ripple/p-6f1cabab.entry.js +1 -0
- package/dist/ripple/p-72d135ee.entry.js +1 -0
- package/dist/ripple/p-7799953c.entry.js +1 -0
- package/dist/ripple/p-83c3db60.js +2 -0
- package/dist/ripple/{wm-progress-monitor.entry.js → p-83cdad78.entry.js} +1 -71
- package/dist/ripple/p-87ef0cfa.entry.js +1 -0
- package/dist/ripple/p-88e44511.entry.js +1 -0
- package/dist/ripple/p-8f8e4eb8.entry.js +1 -0
- package/dist/ripple/p-936adffb.entry.js +1 -0
- package/dist/ripple/p-9755192c.entry.js +1 -0
- package/dist/ripple/p-9c5c591b.js +1 -0
- package/dist/ripple/p-9ea38d96.entry.js +1 -0
- package/dist/ripple/p-be3e4e7c.entry.js +1 -0
- package/dist/ripple/p-c9c7df12.entry.js +1 -0
- package/dist/ripple/p-d7a1be0b.entry.js +1 -0
- package/dist/ripple/p-dab86523.entry.js +1 -0
- package/dist/ripple/{wm-tab-list.entry.js → p-e4aa6e27.entry.js} +1 -175
- package/dist/ripple/p-ebe9f38c.js +1 -0
- package/dist/ripple/p-ed053612.entry.js +1 -0
- package/dist/ripple/p-f43f621b.entry.js +1 -0
- package/dist/ripple/p-f48d30d6.entry.js +1 -0
- package/dist/ripple/{wm-action-menu.entry.js → p-f6aad57c.entry.js} +1 -201
- package/dist/ripple/p-f6e1beb5.entry.js +1 -0
- package/dist/ripple/p-fc843bb8.entry.js +1 -0
- package/dist/ripple/{priv-chart-popover.entry.js → p-fd997764.entry.js} +1 -134
- package/dist/ripple/p-fffb46ad.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/types/components/charts/chartFunctions.d.ts +15 -2
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +25 -11
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +31 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +113 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +195 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +184 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +110 -0
- package/dist/types/components/charts/wm-chart-stack/wm-chart-stack.d.ts +194 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +156 -11
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +53 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +85 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +19 -3
- package/dist/types/components/datepickers/wm-date-range.d.ts +205 -14
- package/dist/types/components/datepickers/wm-datepicker.d.ts +189 -11
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +165 -1
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +193 -12
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +207 -2
- package/dist/types/components/wm-button/wm-button.d.ts +191 -0
- package/dist/types/components/wm-file/wm-file.d.ts +110 -1
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +72 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +205 -0
- package/dist/types/components/wm-input/wm-input.d.ts +161 -1
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +79 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +160 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +6 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +57 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +93 -4
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +100 -1
- package/dist/types/components/wm-search/wm-search.d.ts +158 -6
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +103 -1
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +55 -3
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +119 -20
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +35 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +199 -5
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +99 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +147 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +88 -2
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +145 -3
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +11523 -95
- package/dist/types/global/functions.d.ts +7 -2
- package/dist/types/global/interfaces.d.ts +92 -2
- package/dist/types/global/intl.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +4 -33
- package/dist/components/index.d.ts +0 -33
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/ripple/index-CU5QNCKv.js +0 -4167
- package/dist/ripple/interfaces-CrANcZM9.js +0 -53
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-chart.entry.js +0 -157
- package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
- package/dist/ripple/wm-modal-pss-header.entry.js +0 -39
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation-item.entry.js +0 -18
- package/dist/ripple/wm-option.entry.js +0 -171
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-select.entry.js +0 -249
- package/dist/ripple/wm-tab-item.entry.js +0 -63
- package/dist/ripple/wm-uploader.entry.js +0 -313
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Internal calendar component for date pickers. Not to be used directly.
|
|
5
|
+
*/
|
|
2
6
|
export declare class PrivCalendar {
|
|
3
7
|
el: HTMLPrivCalendarElement;
|
|
4
8
|
private prevBtnEl;
|
|
9
|
+
private nextBtnEl;
|
|
10
|
+
private liveRegionEl;
|
|
5
11
|
private today;
|
|
6
12
|
disabled: boolean;
|
|
7
|
-
view:
|
|
13
|
+
view: "month" | "year";
|
|
8
14
|
focusDate: string;
|
|
9
15
|
startDate?: string;
|
|
10
16
|
endDate?: string;
|
|
11
17
|
hoverDate?: string;
|
|
18
|
+
announcement: string;
|
|
12
19
|
cellTriggered: EventEmitter<{
|
|
13
20
|
cal: HTMLPrivCalendarElement;
|
|
14
21
|
cell: HTMLElement;
|
|
@@ -22,6 +29,11 @@ export declare class PrivCalendar {
|
|
|
22
29
|
private calType;
|
|
23
30
|
private calName;
|
|
24
31
|
private calInstructions;
|
|
32
|
+
private previousMonthButtonLabel;
|
|
33
|
+
private previousYearButtonLabel;
|
|
34
|
+
private nextMonthButtonLabel;
|
|
35
|
+
private nextYearButtonLabel;
|
|
36
|
+
private uid;
|
|
25
37
|
setCalName(): void;
|
|
26
38
|
setCalType(): void;
|
|
27
39
|
componentWillLoad(): void;
|
|
@@ -69,9 +81,13 @@ export declare class PrivCalendar {
|
|
|
69
81
|
focusLastFocusable(): Promise<void>;
|
|
70
82
|
focusCell(): Promise<void>;
|
|
71
83
|
toggleBusyAttribute(state: string): void;
|
|
72
|
-
|
|
84
|
+
announce(message: string): void;
|
|
85
|
+
announceMonthYear(): void;
|
|
86
|
+
renderCalendarDate: (date: string, eitherStart?: string, eitherEnd?: string) => any;
|
|
73
87
|
renderMonth(month: string, index: number): any;
|
|
74
|
-
|
|
88
|
+
renderHeader(): any;
|
|
89
|
+
renderToggleButton(): any;
|
|
75
90
|
renderMonthView(): any;
|
|
91
|
+
renderYearView(): any;
|
|
76
92
|
render(): any;
|
|
77
93
|
}
|
|
@@ -1,4 +1,117 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { PopoverPlacement } from "../../global/interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Two linked date inputs (start and end) with a shared calendar popup for selecting a date
|
|
5
|
+
* range. Users can type or click to set each date. Provides separate error states for start
|
|
6
|
+
* and end, and emits distinct blur events for each input. Use instead of two native
|
|
7
|
+
* `<input type="date">` elements when a range is required.
|
|
8
|
+
*
|
|
9
|
+
* @category Form Inputs
|
|
10
|
+
*
|
|
11
|
+
* @keyboardInteraction
|
|
12
|
+
* - **Input fields**: Tab moves focus between start input, end input, and the calendar toggle.
|
|
13
|
+
* - **Calendar toggle**: Space / Enter opens the calendar; Escape closes it and returns focus.
|
|
14
|
+
* - **Day grid**: Arrow keys navigate dates; Enter selects. After selecting the first date,
|
|
15
|
+
* the calendar resets for a second selection. Selecting a date earlier than the first date
|
|
16
|
+
* automatically swaps start and end.
|
|
17
|
+
* - **Month/year selectors**: Arrow keys cycle values; Tab/Shift+Tab move focus through controls.
|
|
18
|
+
*
|
|
19
|
+
* @accessibility
|
|
20
|
+
* - `label-start` and `label-end` are required for accessibility — always provide both even if
|
|
21
|
+
* visually implied by context.
|
|
22
|
+
* - The calendar toggle announces "Select range" to screen readers and reflects `aria-expanded`.
|
|
23
|
+
* - Validation errors are announced via an `aria-live` region when `error-message` changes.
|
|
24
|
+
* - The calendar popup hides its toggle when there is no room to display it; users can still
|
|
25
|
+
* type dates directly into the inputs.
|
|
26
|
+
*
|
|
27
|
+
* @usageNotes
|
|
28
|
+
* - Set `value-start` and `value-end` in the format specified by `date-format` (default
|
|
29
|
+
* `mm/dd/yyyy`). For programmatic pre-population, prefer ISO format via `preselected` and
|
|
30
|
+
* convert with the `reformatDate` method.
|
|
31
|
+
* - `wmRangeSelection` emits a detail object with `startDate` and `endDate`, each in ISO, US,
|
|
32
|
+
* and INT formats.
|
|
33
|
+
* - The same-date re-selection rule: clicking the same date as `date1` a second time resets the
|
|
34
|
+
* range selection so the user can pick a new `date1`.
|
|
35
|
+
*
|
|
36
|
+
* @example {html} Basic date range
|
|
37
|
+
* <wm-date-range label-start="Start date" label-end="End date"></wm-date-range>
|
|
38
|
+
*
|
|
39
|
+
* @example {react} Basic date range
|
|
40
|
+
* // The component does not update its own values after a calendar selection --
|
|
41
|
+
* // the app must call reformatDate and set valueStart/valueEnd imperatively via a ref.
|
|
42
|
+
* const ref = useRef(null);
|
|
43
|
+
*
|
|
44
|
+
* function getFormatName(format) {
|
|
45
|
+
* const map = { 'mm/dd/yyyy': 'US', 'dd/mm/yyyy': 'INT', 'yyyy/mm/dd': 'ISO' };
|
|
46
|
+
* return format ? map[format] : 'US';
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* // event.detail is { startDate: { iso, us, int }, endDate: { iso, us, int } }
|
|
50
|
+
* const handleRangeSelection = async (event) => {
|
|
51
|
+
* const dr = ref.current;
|
|
52
|
+
* const fmt = getFormatName(dr.getAttribute('date-format'));
|
|
53
|
+
* dr.valueStart = await dr.reformatDate('ISO', fmt, event.detail.startDate.iso);
|
|
54
|
+
* dr.valueEnd = await dr.reformatDate('ISO', fmt, event.detail.endDate.iso);
|
|
55
|
+
* dr.errorMessage = '';
|
|
56
|
+
* };
|
|
57
|
+
*
|
|
58
|
+
* const handleInputBlurred = async (field) => {
|
|
59
|
+
* const dr = ref.current;
|
|
60
|
+
* const fmt = getFormatName(dr.getAttribute('date-format'));
|
|
61
|
+
* const value = field === 'start' ? dr.valueStart : dr.valueEnd;
|
|
62
|
+
* if (value) {
|
|
63
|
+
* const iso = await dr.reformatDate(fmt, 'ISO', value);
|
|
64
|
+
* if (await dr.isValidISO(iso)) {
|
|
65
|
+
* const display = await dr.reformatDate('ISO', fmt, iso);
|
|
66
|
+
* if (field === 'start') dr.valueStart = display;
|
|
67
|
+
* else dr.valueEnd = display;
|
|
68
|
+
* dr.errorMessage = '';
|
|
69
|
+
* dr.invalidStart = false;
|
|
70
|
+
* dr.invalidEnd = false;
|
|
71
|
+
* } else {
|
|
72
|
+
* dr.errorMessage = `Please enter a valid date in the format ${dr.getAttribute('date-format') ?? 'mm/dd/yyyy'}`;
|
|
73
|
+
* if (field === 'start') dr.invalidStart = true;
|
|
74
|
+
* else dr.invalidEnd = true;
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
* };
|
|
78
|
+
*
|
|
79
|
+
* <WmDateRange
|
|
80
|
+
* ref={ref}
|
|
81
|
+
* labelStart="Start date"
|
|
82
|
+
* labelEnd="End date"
|
|
83
|
+
* onWmRangeSelection={handleRangeSelection}
|
|
84
|
+
* onWmStartInputBlur={() => handleInputBlurred('start')}
|
|
85
|
+
* onWmEndInputBlur={() => handleInputBlurred('end')}
|
|
86
|
+
* />
|
|
87
|
+
*
|
|
88
|
+
* @example {html} Required fields with validation
|
|
89
|
+
* <wm-date-range label-start="From" label-end="To" required-field></wm-date-range>
|
|
90
|
+
*
|
|
91
|
+
* @example {react} Required fields with validation
|
|
92
|
+
* <WmDateRange
|
|
93
|
+
* ref={ref}
|
|
94
|
+
* labelStart="From"
|
|
95
|
+
* labelEnd="To"
|
|
96
|
+
* requiredField={true}
|
|
97
|
+
* onWmRangeSelection={handleRangeSelection}
|
|
98
|
+
* onWmStartInputBlur={() => handleInputBlurred('start')}
|
|
99
|
+
* onWmEndInputBlur={() => handleInputBlurred('end')}
|
|
100
|
+
* />
|
|
101
|
+
*
|
|
102
|
+
* @example {html} International date format
|
|
103
|
+
* <wm-date-range label-start="Start" label-end="End" date-format="dd/mm/yyyy"></wm-date-range>
|
|
104
|
+
*
|
|
105
|
+
* @example {react} International date format
|
|
106
|
+
* <WmDateRange labelStart="Start" labelEnd="End" dateFormat="dd/mm/yyyy" />
|
|
107
|
+
*
|
|
108
|
+
* @example {html} Disabled
|
|
109
|
+
* <wm-date-range label-start="Start" label-end="End" disabled></wm-date-range>
|
|
110
|
+
*
|
|
111
|
+
* @example {react} Disabled
|
|
112
|
+
* <WmDateRange labelStart="Start" labelEnd="End" disabled={true} />
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
2
115
|
export declare class DateRange {
|
|
3
116
|
el: HTMLWmDateRangeElement;
|
|
4
117
|
private wrapperEl;
|
|
@@ -7,33 +120,97 @@ export declare class DateRange {
|
|
|
7
120
|
private endInputEl;
|
|
8
121
|
private startCalEl;
|
|
9
122
|
private endCalEl;
|
|
10
|
-
private labelEl;
|
|
11
123
|
private toggleEl;
|
|
12
124
|
private popupEl;
|
|
125
|
+
private anchorEl;
|
|
126
|
+
/**
|
|
127
|
+
* @description The date format shown in the input placeholders and announced to screen readers.
|
|
128
|
+
* @default "mm/dd/yyyy"
|
|
129
|
+
*/
|
|
13
130
|
dateFormat: string;
|
|
131
|
+
/**
|
|
132
|
+
* @description Disables the entire date range component, preventing all interaction.
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
14
135
|
disabled: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* @description Puts the component in an error state and displays this message below both
|
|
138
|
+
* inputs. Use with `invalid-start` and/or `invalid-end` to highlight specific fields.
|
|
139
|
+
*/
|
|
15
140
|
errorMessage?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @description Puts the start date input in an error state (red border). Use with
|
|
143
|
+
* `error-message`.
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
16
146
|
invalidStart: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* @description Puts the end date input in an error state (red border). Use with
|
|
149
|
+
* `error-message`.
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
17
152
|
invalidEnd: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @description Visible label for the start date input. Required for accessibility.
|
|
155
|
+
* @required
|
|
156
|
+
*/
|
|
18
157
|
labelStart: string;
|
|
158
|
+
/**
|
|
159
|
+
* @description Visible label for the end date input. Required for accessibility.
|
|
160
|
+
* @required
|
|
161
|
+
*/
|
|
19
162
|
labelEnd: string;
|
|
163
|
+
/**
|
|
164
|
+
* @description The ISO date (YYYY-MM-DD) the calendar popup opens to when first opened and
|
|
165
|
+
* no `value-start` is set. Falls back to today's date if omitted.
|
|
166
|
+
*/
|
|
20
167
|
preselected?: string;
|
|
168
|
+
/**
|
|
169
|
+
* @description Displays a required-field asterisk (*) next to each label.
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
21
172
|
requiredField: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* @description The value of the start date input, in the format specified by `date-format`.
|
|
175
|
+
* Updated as the user types or picks from the calendar.
|
|
176
|
+
*/
|
|
22
177
|
valueStart?: string;
|
|
178
|
+
/**
|
|
179
|
+
* @description The value of the end date input, in the format specified by `date-format`.
|
|
180
|
+
* Updated as the user types or picks from the calendar.
|
|
181
|
+
*/
|
|
23
182
|
valueEnd?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @description Fires when the user completes a range selection from the calendar popup.
|
|
185
|
+
* @eventDetails {{ startDate: { iso: string, us: string, int: string }, endDate: { iso: string, us: string, int: string } }}
|
|
186
|
+
* startDate and endDate — each formatted in ISO (YYYY-MM-DD), US (mm/dd/yyyy), and INT
|
|
187
|
+
* (dd/mm/yyyy). The dates are always returned in chronological order regardless of the order
|
|
188
|
+
* they were clicked.
|
|
189
|
+
*/
|
|
24
190
|
wmRangeSelection: EventEmitter;
|
|
191
|
+
/**
|
|
192
|
+
* @description Fires when the start date input loses focus.
|
|
193
|
+
*/
|
|
25
194
|
wmStartInputBlur: EventEmitter;
|
|
195
|
+
/**
|
|
196
|
+
* @description Fires when the end date input loses focus.
|
|
197
|
+
*/
|
|
26
198
|
wmEndInputBlur: EventEmitter;
|
|
27
199
|
private date1?;
|
|
28
200
|
private date2?;
|
|
29
201
|
private oldFocusVal?;
|
|
30
|
-
private
|
|
31
|
-
private calWidth;
|
|
32
|
-
availSpace: number;
|
|
33
|
-
private hiddenOverflowParent?;
|
|
34
|
-
private popupClicked;
|
|
35
|
-
private toggleButtonClicked;
|
|
202
|
+
private readonly calWidth;
|
|
36
203
|
isExpanded: boolean;
|
|
204
|
+
canOpen: boolean;
|
|
205
|
+
private hasAnchor;
|
|
206
|
+
private readonly popupMaxHeight;
|
|
207
|
+
private fit;
|
|
208
|
+
private debouncedCheckCanOpen;
|
|
209
|
+
private pf_repositionRAF;
|
|
210
|
+
pf_reposition(): void;
|
|
211
|
+
findScrollable(neededScroll: number): HTMLElement | null;
|
|
212
|
+
measureFit(): PopoverPlacement | null;
|
|
213
|
+
checkCanOpen(): void;
|
|
37
214
|
private formats;
|
|
38
215
|
get _disabled(): boolean;
|
|
39
216
|
get focusDates(): string[];
|
|
@@ -44,30 +221,44 @@ export declare class DateRange {
|
|
|
44
221
|
updateValueStart(): void;
|
|
45
222
|
updateValueEnd(): void;
|
|
46
223
|
handleErrorMessage(): void;
|
|
47
|
-
|
|
224
|
+
pf_positionDropdown(): void;
|
|
225
|
+
handleToggle(ev: ToggleEvent): void;
|
|
48
226
|
closePopup(returnFocus?: boolean): void;
|
|
49
|
-
openPopup(): void;
|
|
50
227
|
handleFocus(): void;
|
|
51
228
|
handleBlur(): void;
|
|
52
229
|
handleStartInputBlur(): void;
|
|
53
230
|
handleEndInputBlur(): void;
|
|
54
231
|
handleStartInput(ev: Event): void;
|
|
55
232
|
handleEndInput(ev: Event): void;
|
|
56
|
-
handleKey(ev: KeyboardEvent): void;
|
|
57
|
-
blurHandler(): void;
|
|
58
|
-
handleBlurOnWindow(): void;
|
|
59
233
|
handleDateFocus(ev: CustomEvent): void;
|
|
60
234
|
handlePopupBlurred(ev: CustomEvent): void;
|
|
235
|
+
handleKeydown(ev: KeyboardEvent): void;
|
|
61
236
|
handleCellTriggered(ev: CustomEvent): void;
|
|
62
237
|
handleOutOfCal(): void;
|
|
63
238
|
handleCellHovered(ev: CustomEvent): void;
|
|
239
|
+
/**
|
|
240
|
+
* @description Converts a date string between `"US"` (mm/dd/yyyy), `"INT"` (dd/mm/yyyy),
|
|
241
|
+
* and `"ISO"` (YYYY-MM-DD). Direct US ↔ INT conversion is not supported — route through
|
|
242
|
+
* ISO as an intermediate step.
|
|
243
|
+
* @param inputFormat - Format of the input date string (`"US"`, `"INT"`, or `"ISO"`).
|
|
244
|
+
* @param outputFormat - Desired output format (`"US"`, `"INT"`, or `"ISO"`).
|
|
245
|
+
* @param date - The date string to reformat.
|
|
246
|
+
* @returns The reformatted date string, an empty string if `date` is omitted, or the original
|
|
247
|
+
* string unchanged if it cannot be parsed.
|
|
248
|
+
*/
|
|
64
249
|
reformatDate(inputFormat: string, outputFormat: string, date?: string): Promise<string>;
|
|
65
250
|
_reformatDate(inputFormat: string, outputFormat: string, date?: string): string;
|
|
251
|
+
/**
|
|
252
|
+
* @description Validates whether a string is a well-formed, calendar-correct ISO date
|
|
253
|
+
* (YYYY-MM-DD). Accounts for invalid day-of-month values and leap years.
|
|
254
|
+
* @param input - The string to validate.
|
|
255
|
+
* @returns `true` if the string is a valid ISO date, `false` otherwise.
|
|
256
|
+
*/
|
|
66
257
|
isValidISO(input?: string): Promise<boolean>;
|
|
67
258
|
_isValidISO(input?: string): boolean;
|
|
68
|
-
setAvailSpace(): void;
|
|
69
259
|
componentWillLoad(): void;
|
|
260
|
+
componentDidLoad(): void;
|
|
261
|
+
disconnectedCallback(): void;
|
|
70
262
|
announce(message: string): void;
|
|
71
|
-
renderCalendars(): any;
|
|
72
263
|
render(): any;
|
|
73
264
|
}
|
|
@@ -1,49 +1,227 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { PopoverPlacement } from "../../global/interfaces";
|
|
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
|
+
* @category Form Inputs
|
|
9
|
+
*
|
|
10
|
+
* @keyboardInteraction
|
|
11
|
+
* - **Input field**: Tab moves focus to the calendar toggle button.
|
|
12
|
+
* - **Calendar toggle**: Space / Enter / Down Arrow opens the calendar; Shift+Tab returns to the input.
|
|
13
|
+
* - **Day grid**: Arrow keys navigate dates; Enter selects; Escape closes and returns focus to the toggle;
|
|
14
|
+
* Home/End jump to the first/last day of the month; Tab cycles through calendar controls.
|
|
15
|
+
* - **Month/year selectors**: Arrow keys cycle values; Tab/Shift+Tab move focus clockwise/counter-clockwise.
|
|
16
|
+
*
|
|
17
|
+
* @accessibility
|
|
18
|
+
* - `label` is required even when `label-position` is `"none"` — it becomes the input's `aria-label`.
|
|
19
|
+
* - The calendar toggle button announces "Select date" to screen readers and reflects `aria-expanded`.
|
|
20
|
+
* - Validation errors are announced via an `aria-live` region when `error-message` changes.
|
|
21
|
+
* - When the input value cannot be parsed as a valid date, the calendar opens to the current date.
|
|
22
|
+
*
|
|
23
|
+
* @usageNotes
|
|
24
|
+
* - Set `value` in the same format as `date-format` (default `mm/dd/yyyy`). For programmatic date
|
|
25
|
+
* setting, prefer ISO format via `preselected` and convert with the `reformatDate` method.
|
|
26
|
+
* - The calendar popup hides its toggle automatically when there is no room to display it; always
|
|
27
|
+
* allow users to type a date directly in the input as a fallback.
|
|
28
|
+
*
|
|
29
|
+
* @example {html} Basic datepicker
|
|
30
|
+
* <wm-datepicker label="Start date"></wm-datepicker>
|
|
31
|
+
*
|
|
32
|
+
* @example {react} Basic datepicker
|
|
33
|
+
* // The component does not update its own value after a calendar selection --
|
|
34
|
+
* // the app must call reformatDate and set value/errorMessage imperatively via a ref.
|
|
35
|
+
* const ref = useRef(null);
|
|
36
|
+
*
|
|
37
|
+
* function getFormatName(format) {
|
|
38
|
+
* const map = { 'mm/dd/yyyy': 'US', 'dd/mm/yyyy': 'INT', 'yyyy/mm/dd': 'ISO' };
|
|
39
|
+
* return format ? map[format] : 'US';
|
|
40
|
+
* }
|
|
41
|
+
*
|
|
42
|
+
* // event.detail is { date: string } -- ISO 8601 (YYYY-MM-DD)
|
|
43
|
+
* const handleDateSelected = async (event) => {
|
|
44
|
+
* const dp = ref.current;
|
|
45
|
+
* const fmt = getFormatName(dp.getAttribute('date-format'));
|
|
46
|
+
* dp.value = await dp.reformatDate('ISO', fmt, event.detail.date);
|
|
47
|
+
* dp.errorMessage = '';
|
|
48
|
+
* };
|
|
49
|
+
*
|
|
50
|
+
* const handleInputBlurred = async () => {
|
|
51
|
+
* const dp = ref.current;
|
|
52
|
+
* const fmt = getFormatName(dp.getAttribute('date-format'));
|
|
53
|
+
* if (dp.value) {
|
|
54
|
+
* const iso = await dp.reformatDate(fmt, 'ISO', dp.value);
|
|
55
|
+
* if (await dp.isValidIso(iso)) {
|
|
56
|
+
* dp.value = await dp.reformatDate('ISO', fmt, iso);
|
|
57
|
+
* dp.errorMessage = '';
|
|
58
|
+
* } else {
|
|
59
|
+
* dp.errorMessage = `Please enter a valid date in the format ${dp.getAttribute('date-format') ?? 'mm/dd/yyyy'}`;
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* };
|
|
63
|
+
*
|
|
64
|
+
* const handleBlur = () => {
|
|
65
|
+
* const dp = ref.current;
|
|
66
|
+
* if (dp.requiredField && dp.value === '') dp.errorMessage = 'A date is required';
|
|
67
|
+
* };
|
|
68
|
+
*
|
|
69
|
+
* <WmDatepicker
|
|
70
|
+
* ref={ref}
|
|
71
|
+
* label="Start date"
|
|
72
|
+
* onWmDatepickerDateSelected={handleDateSelected}
|
|
73
|
+
* onWmDatepickerInputBlurred={handleInputBlurred}
|
|
74
|
+
* onBlur={handleBlur}
|
|
75
|
+
* />
|
|
76
|
+
*
|
|
77
|
+
* @example {html} Required field with validation
|
|
78
|
+
* <wm-datepicker label="Date of birth" required-field></wm-datepicker>
|
|
79
|
+
*
|
|
80
|
+
* @example {react} Required field with validation
|
|
81
|
+
* <WmDatepicker
|
|
82
|
+
* ref={ref}
|
|
83
|
+
* label="Date of birth"
|
|
84
|
+
* requiredField={true}
|
|
85
|
+
* onWmDatepickerDateSelected={handleDateSelected}
|
|
86
|
+
* onWmDatepickerInputBlurred={handleInputBlurred}
|
|
87
|
+
* onBlur={handleBlur}
|
|
88
|
+
* />
|
|
89
|
+
*
|
|
90
|
+
* @example {html} With validation error
|
|
91
|
+
* <wm-datepicker label="Start date" required-field error-message="Please enter a valid start date"></wm-datepicker>
|
|
92
|
+
*
|
|
93
|
+
* @example {react} With validation error
|
|
94
|
+
* <WmDatepicker label="Start date" requiredField={true} errorMessage="Please enter a valid start date" />
|
|
95
|
+
*
|
|
96
|
+
* @example {html} Pre-opened to a specific date
|
|
97
|
+
* <wm-datepicker label="Enrollment date" preselected="2025-09-01"></wm-datepicker>
|
|
98
|
+
*
|
|
99
|
+
* @example {react} Pre-opened to a specific date
|
|
100
|
+
* <WmDatepicker label="Enrollment date" preselected="2025-09-01" />
|
|
101
|
+
*
|
|
102
|
+
* @example {html} International date format
|
|
103
|
+
* <wm-datepicker label="Graduation date" date-format="dd/mm/yyyy"></wm-datepicker>
|
|
104
|
+
*
|
|
105
|
+
* @example {react} International date format
|
|
106
|
+
* <WmDatepicker label="Graduation date" dateFormat="dd/mm/yyyy" />
|
|
107
|
+
*
|
|
108
|
+
* @example {html} Disabled
|
|
109
|
+
* <wm-datepicker label="Locked date" value="05/15/2024" disabled></wm-datepicker>
|
|
110
|
+
*
|
|
111
|
+
* @example {react} Disabled
|
|
112
|
+
* <WmDatepicker label="Locked date" value="05/15/2024" disabled={true} />
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
2
115
|
export declare class DatePicker {
|
|
3
116
|
el: HTMLWmDatepickerElement;
|
|
4
117
|
private liveRegionEl;
|
|
5
118
|
private dpWrapperEl;
|
|
6
|
-
private labelWrapperEl;
|
|
7
119
|
private inputEl;
|
|
8
120
|
private calEl;
|
|
9
121
|
private toggleEl;
|
|
10
122
|
private popupEl;
|
|
123
|
+
private anchorEl;
|
|
124
|
+
/**
|
|
125
|
+
* @description 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.
|
|
126
|
+
*/
|
|
11
127
|
value?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @description Disables the datepicker, preventing all interaction.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
12
132
|
disabled: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* @description The expected date format. Shown in the input placeholder and announced to screen reader users.
|
|
135
|
+
* @default "mm/dd/yyyy"
|
|
136
|
+
*/
|
|
13
137
|
dateFormat: string;
|
|
138
|
+
/**
|
|
139
|
+
* @description Puts the component in an error state and displays this message below the input.
|
|
140
|
+
*/
|
|
14
141
|
errorMessage?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @description Position of the label relative to the input. `'none'` hides the label visually but keeps it accessible via `aria-label`.
|
|
144
|
+
* @default "top"
|
|
145
|
+
*/
|
|
15
146
|
labelPosition: "top" | "left" | "none";
|
|
147
|
+
/**
|
|
148
|
+
* @description Visible label for the input. Required even when `label-position` is `'none'` — used as the ARIA accessible name.
|
|
149
|
+
* @required
|
|
150
|
+
*/
|
|
16
151
|
label: string;
|
|
152
|
+
/**
|
|
153
|
+
* @description Displays a required-field asterisk (*) next to the label.
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
17
156
|
requiredField: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* @description 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.
|
|
159
|
+
*/
|
|
18
160
|
preselected?: string;
|
|
161
|
+
/**
|
|
162
|
+
* @description Fires when the user selects a date from the calendar popup.
|
|
163
|
+
* @eventDetails {{ date: string }} date — the selected date in ISO format (YYYY-MM-DD).
|
|
164
|
+
*/
|
|
19
165
|
wmDatepickerDateSelected: EventEmitter;
|
|
166
|
+
/**
|
|
167
|
+
* @description Fires when the text input loses focus.
|
|
168
|
+
*/
|
|
20
169
|
wmDatepickerInputBlurred: EventEmitter;
|
|
21
|
-
private openUp;
|
|
22
|
-
private popupClicked;
|
|
23
|
-
private toggleButtonClicked;
|
|
24
170
|
isExpanded: boolean;
|
|
171
|
+
canOpen: boolean;
|
|
172
|
+
private readonly calWidth;
|
|
173
|
+
private readonly popupMaxHeight;
|
|
174
|
+
private hasAnchor;
|
|
175
|
+
private fit;
|
|
176
|
+
private debouncedCheckCanOpen;
|
|
177
|
+
private pf_repositionRAF;
|
|
178
|
+
pf_reposition(): void;
|
|
179
|
+
findScrollable(neededScroll: number): HTMLElement | null;
|
|
180
|
+
measureFit(): PopoverPlacement | null;
|
|
181
|
+
checkCanOpen(): void;
|
|
25
182
|
get isDisabled(): boolean;
|
|
26
183
|
get calendarDate(): string;
|
|
27
184
|
handleDisabledChange(): void;
|
|
28
185
|
updateValue(): void;
|
|
29
186
|
announceError(): void;
|
|
30
|
-
|
|
187
|
+
pf_positionDropdown(): void;
|
|
188
|
+
handleToggle(ev: ToggleEvent): void;
|
|
31
189
|
closePopup(returnFocus?: boolean): void;
|
|
32
|
-
openPopup(): void;
|
|
33
190
|
handleInput(ev: Event): void;
|
|
34
191
|
handleInputBlur(): void;
|
|
35
192
|
handleInputFocus(): void;
|
|
36
193
|
handleInputChange(): void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
handleBlurOnWindow(): void;
|
|
194
|
+
handleLabelMouseEnter(ev: MouseEvent): void;
|
|
195
|
+
handleKeydown(ev: KeyboardEvent): void;
|
|
40
196
|
handleCellTriggered(ev: CustomEvent): void;
|
|
41
|
-
|
|
42
|
-
|
|
197
|
+
/**
|
|
198
|
+
* @description Converts a date string between the supported format tokens: `"US"` (mm/dd/yyyy),
|
|
199
|
+
* `"INT"` (dd/mm/yyyy), and `"ISO"` (YYYY-MM-DD). Direct US ↔ INT conversion is not supported —
|
|
200
|
+
* route through ISO as an intermediate step.
|
|
201
|
+
* @param inputFormat - Format of the input date string.
|
|
202
|
+
* @param outputFormat - Desired output format.
|
|
203
|
+
* @param date - The date string to reformat.
|
|
204
|
+
* @returns The reformatted date string, an empty string if `date` is omitted or falsy, or the
|
|
205
|
+
* original string unchanged if it cannot be parsed.
|
|
206
|
+
* @example reformatDate("US", "ISO", "06/20/1969") // → "1969-06-20"
|
|
207
|
+
* @example reformatDate("ISO", "US", "1969-06-20") // → "06/20/1969"
|
|
208
|
+
*/
|
|
209
|
+
reformatDate(inputFormat: "US" | "INT" | "ISO", outputFormat: "US" | "INT" | "ISO", date?: string): Promise<string>;
|
|
210
|
+
reformatDateInternal(inputFormat: "US" | "INT" | "ISO", outputFormat: "US" | "INT" | "ISO", date?: string): string;
|
|
211
|
+
/**
|
|
212
|
+
* @description Validates whether a string is a well-formed, calendar-correct ISO date
|
|
213
|
+
* (YYYY-MM-DD). Accounts for invalid day-of-month values and leap years.
|
|
214
|
+
* @param input - The string to validate.
|
|
215
|
+
* @returns `true` if the string is a valid ISO date, `false` otherwise.
|
|
216
|
+
* @example isValidIso("1969-06-20") // → true
|
|
217
|
+
* @example isValidIso("1969-06-33") // → false (day 33 does not exist)
|
|
218
|
+
* @example isValidIso("2023-02-29") // → false (2023 is not a leap year)
|
|
219
|
+
*/
|
|
43
220
|
isValidIso(input?: string): Promise<boolean>;
|
|
44
221
|
isValidIsoInternal(input?: string): boolean;
|
|
45
222
|
componentWillLoad(): void;
|
|
46
223
|
componentDidLoad(): void;
|
|
224
|
+
disconnectedCallback(): void;
|
|
47
225
|
announce(message: string): void;
|
|
48
226
|
render(): any;
|
|
49
227
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* @description Internal listbox, search field, and Select All button used by wm-select,
|
|
5
|
+
* wm-nested-select, and wm-optgroup. Manages keyboard navigation, option filtering, and
|
|
6
|
+
* clone options for multiselect. Not for direct application use.
|
|
7
|
+
*/
|
|
2
8
|
export declare class PrivOptionList {
|
|
3
9
|
el: HTMLPrivOptionListElement;
|
|
4
10
|
private searchFieldWrapperEl;
|