@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
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { triggerFormSubmit, toBool, handleDisabledAttribute, hideTooltip, showTooltip } from "../../global/functions";
|
|
3
|
+
import { globalMessages } from "../../global/intl";
|
|
4
|
+
/**
|
|
5
|
+
* Accessible single-line text input. Supports text and number types, character limits,
|
|
6
|
+
* symbol prefixes/suffixes, and inline info/error messaging. Use instead of a native
|
|
7
|
+
* `<input>` in all Watermark UI.
|
|
8
|
+
*
|
|
9
|
+
* @category Form Inputs
|
|
10
|
+
*
|
|
11
|
+
* @keyboardInteraction
|
|
12
|
+
* - **Enter**: Submits the containing form when `is-submit` is true.
|
|
13
|
+
*
|
|
14
|
+
* @accessibility
|
|
15
|
+
* - `label` is required even when `label-position` is `"none"` — it becomes the input's aria label.
|
|
16
|
+
* - Error messages and character-limit warnings are announced via an `aria-live` region.
|
|
17
|
+
* - Info text is associated via `aria-describedby` and read when the field receives focus.
|
|
18
|
+
* - `required-field` sets `aria-required="true"` on the underlying input.
|
|
19
|
+
*
|
|
20
|
+
* @usageNotes
|
|
21
|
+
* - `wmInputValueChanged` only fires on blur and only when the value has changed — use the
|
|
22
|
+
* native `input` event if you need every keystroke.
|
|
23
|
+
* - When using `symbol-before`, `symbol-after`, or `text-after`, the full field context is
|
|
24
|
+
* announced to screen readers by associating those elements via `aria-describedby`.
|
|
25
|
+
* - Keep `text-after` to 55 characters or fewer.
|
|
26
|
+
*
|
|
27
|
+
* @example {html} Basic input
|
|
28
|
+
* <wm-input label="First name"></wm-input>
|
|
29
|
+
*
|
|
30
|
+
* @example {react} Basic input
|
|
31
|
+
* <WmInput label="First name" />
|
|
32
|
+
*
|
|
33
|
+
* @example {html} Required field with error
|
|
34
|
+
* <wm-input label="Email" required-field error-message="Please enter a valid email address"></wm-input>
|
|
35
|
+
*
|
|
36
|
+
* @example {react} Form with submit validation and blur error clearing
|
|
37
|
+
* // wmInputValueChanged fires on blur only when the value has changed.
|
|
38
|
+
* // event.detail.value is the current string value.
|
|
39
|
+
* // Validate required fields on submit; clear individual errors on blur once the user provides a value.
|
|
40
|
+
* const [name, setName] = useState("");
|
|
41
|
+
* const [email, setEmail] = useState("");
|
|
42
|
+
* const [errors, setErrors] = useState({ name: "", email: "" });
|
|
43
|
+
*
|
|
44
|
+
* const setError = (field, message) =>
|
|
45
|
+
* setErrors((prev) => ({ ...prev, [field]: message }));
|
|
46
|
+
*
|
|
47
|
+
* const handleNameBlur = (e) => {
|
|
48
|
+
* const val = e.detail.value;
|
|
49
|
+
* setName(val);
|
|
50
|
+
* if (val) setError("name", "");
|
|
51
|
+
* };
|
|
52
|
+
*
|
|
53
|
+
* const handleEmailBlur = (e) => {
|
|
54
|
+
* const val = e.detail.value;
|
|
55
|
+
* setEmail(val);
|
|
56
|
+
* if (!val) setError("email", "");
|
|
57
|
+
* else if (!val.includes("@")) setError("email", "Please enter a valid email address.");
|
|
58
|
+
* else setError("email", "");
|
|
59
|
+
* };
|
|
60
|
+
*
|
|
61
|
+
* const handleSubmit = () => {
|
|
62
|
+
* const newErrors = {
|
|
63
|
+
* name: name ? "" : "Full name is required.",
|
|
64
|
+
* email: !email ? "Email is required." : !email.includes("@") ? "Please enter a valid email address." : "",
|
|
65
|
+
* };
|
|
66
|
+
* setErrors(newErrors);
|
|
67
|
+
* if (Object.values(newErrors).every((e) => e === "")) { handleFormSubmit(); }
|
|
68
|
+
* };
|
|
69
|
+
*
|
|
70
|
+
* <WmInput label="Full name" requiredField={true} value={name}
|
|
71
|
+
* errorMessage={errors.name} onWmInputValueChanged={handleNameBlur} />
|
|
72
|
+
* <WmInput label="Email" requiredField={true} value={email}
|
|
73
|
+
* errorMessage={errors.email} onWmInputValueChanged={handleEmailBlur} />
|
|
74
|
+
* <WmButton buttonType="secondary" onClick={handleCancel}>Cancel</WmButton>
|
|
75
|
+
* <WmButton buttonType="primary" onClick={handleSubmit}>Submit</WmButton>
|
|
76
|
+
*
|
|
77
|
+
* @example {html} Character limit
|
|
78
|
+
* <wm-input label="Bio" character-limit="200"></wm-input>
|
|
79
|
+
*
|
|
80
|
+
* @example {react} Character limit
|
|
81
|
+
* <WmInput label="Bio" characterLimit={200} />
|
|
82
|
+
*
|
|
83
|
+
* @example {html} Currency input with symbol
|
|
84
|
+
* <wm-input label="Amount" symbol-before="$" type="number" min={0} step={0.01}></wm-input>
|
|
85
|
+
*
|
|
86
|
+
* @example {react} Currency input with symbol
|
|
87
|
+
* <WmInput label="Amount" symbolBefore="$" type="number" min={0} step={0.01} />
|
|
88
|
+
*
|
|
89
|
+
* @example {html} Disabled input with pre-filled value
|
|
90
|
+
* <wm-input label="Username" value="jsmith" disabled></wm-input>
|
|
91
|
+
*
|
|
92
|
+
* @example {react} Disabled input with pre-filled value
|
|
93
|
+
* <WmInput label="Username" value="jsmith" disabled={true} />
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export class Input {
|
|
97
|
+
constructor() {
|
|
98
|
+
this.previousValue = "";
|
|
99
|
+
this.label = undefined;
|
|
100
|
+
this.labelPosition = "top";
|
|
101
|
+
this.value = "";
|
|
102
|
+
this.disabled = false;
|
|
103
|
+
this.info = undefined;
|
|
104
|
+
this.inputWidth = "";
|
|
105
|
+
this.placeholder = "";
|
|
106
|
+
this.requiredField = false;
|
|
107
|
+
this.errorMessage = undefined;
|
|
108
|
+
this.characterLimit = undefined;
|
|
109
|
+
this.symbolBefore = undefined;
|
|
110
|
+
this.symbolAfter = undefined;
|
|
111
|
+
this.textAfter = undefined;
|
|
112
|
+
this.type = "text";
|
|
113
|
+
this.step = 1;
|
|
114
|
+
this.min = undefined;
|
|
115
|
+
this.max = undefined;
|
|
116
|
+
this.isSubmit = false;
|
|
117
|
+
this.announcement = "";
|
|
118
|
+
}
|
|
119
|
+
getInputWidth() {
|
|
120
|
+
return this.inputWidth ? { width: this.inputWidth } : { flex: "1" };
|
|
121
|
+
}
|
|
122
|
+
get charCount() {
|
|
123
|
+
return this.value.length;
|
|
124
|
+
}
|
|
125
|
+
get isDisabled() {
|
|
126
|
+
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
127
|
+
return toBool(this.disabled);
|
|
128
|
+
}
|
|
129
|
+
componentWillLoad() {
|
|
130
|
+
if (!this.label) {
|
|
131
|
+
console.error("wm-input requires the label property");
|
|
132
|
+
}
|
|
133
|
+
handleDisabledAttribute(this.el, this.isDisabled);
|
|
134
|
+
}
|
|
135
|
+
componentDidLoad() {
|
|
136
|
+
this.previousValue = this.inputEl.value;
|
|
137
|
+
}
|
|
138
|
+
handleDisabledChange() {
|
|
139
|
+
handleDisabledAttribute(this.el, this.isDisabled);
|
|
140
|
+
}
|
|
141
|
+
announceError() {
|
|
142
|
+
if (this.errorMessage) {
|
|
143
|
+
setTimeout(() => this.announce(this.errorMessage), 100);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
handleInput(ev) {
|
|
147
|
+
// keep component's value in sync with input's value
|
|
148
|
+
this.value = ev.target.value;
|
|
149
|
+
if (this.characterLimit && this.charCount >= this.characterLimit - 5) {
|
|
150
|
+
this.announce(this.generateCharacterLimitWarning(this.charCount, this.characterLimit));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
handleLabelMouseEnter(ev) {
|
|
154
|
+
const labelEl = ev.target;
|
|
155
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
156
|
+
showTooltip("right", labelEl, this.label);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
handleKeyDown(ev) {
|
|
160
|
+
// in most browsers, onInput doesn't fire if the input's maxLength is reached
|
|
161
|
+
// to handle the case where a user continues to type after reaching the character limit, the keyDown event must be used
|
|
162
|
+
const isModifierKey = ev.ctrlKey || ev.metaKey || ev.altKey;
|
|
163
|
+
const isCharacter = /^.$/.test(ev.key) && !isModifierKey;
|
|
164
|
+
const hasReachedCharacterLimit = isCharacter && this.characterLimit && this.inputEl.value.length >= this.characterLimit;
|
|
165
|
+
if (hasReachedCharacterLimit) {
|
|
166
|
+
this.announce(this.generateCharacterLimitWarning(this.charCount, this.characterLimit));
|
|
167
|
+
}
|
|
168
|
+
if (ev.key === "Enter") {
|
|
169
|
+
this.isSubmit && triggerFormSubmit(this.el.closest("form"));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
handleBlur() {
|
|
173
|
+
if (this.value !== this.previousValue) {
|
|
174
|
+
this.wmInputValueChanged.emit({ value: this.value });
|
|
175
|
+
}
|
|
176
|
+
this.previousValue = this.value;
|
|
177
|
+
this.inputWrapperEl.classList.remove("focus");
|
|
178
|
+
}
|
|
179
|
+
handleFocus() {
|
|
180
|
+
this.inputWrapperEl.classList.add("focus");
|
|
181
|
+
}
|
|
182
|
+
announce(message) {
|
|
183
|
+
if (this.liveRegionEl.textContent === message) {
|
|
184
|
+
message += "\u00A0";
|
|
185
|
+
}
|
|
186
|
+
this.announcement = message;
|
|
187
|
+
}
|
|
188
|
+
generateCharacterLimitWarning(charCount, charLimit) {
|
|
189
|
+
let message = globalMessages.getCharactersEntered(charCount, charLimit);
|
|
190
|
+
if (charCount >= charLimit) {
|
|
191
|
+
message += ` ${globalMessages.characterLimitReached}`;
|
|
192
|
+
}
|
|
193
|
+
return message;
|
|
194
|
+
}
|
|
195
|
+
descriptors() {
|
|
196
|
+
// the input field value is announced to provide context to symbol-before, symbol-after and text-after. If none are present, it shouldn't be announced.
|
|
197
|
+
return this.symbolBefore || this.symbolAfter || this.textAfter
|
|
198
|
+
? `symbol-before inputfield symbol-after text-after info error`
|
|
199
|
+
: `info error`;
|
|
200
|
+
}
|
|
201
|
+
render() {
|
|
202
|
+
return (h("div", { key: 'c95455fb6668414ec09dbf301323f11fc7270e47', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: 'de0ada2ec3c43c411924417df348ebe34a477e8e', class: "label-wrapper" }, h("label", { key: '04884ea505a88026aa311a38e30cbdf049b390c3', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '1eedd2faffbfcc670ad3b87298465ab16328a1d3', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '51224587e46ef0132891dee01536d5cf07ea54f6', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'ed40b31ab7ab588f6165cc0af2ec52bb8d86509b', class: "inner-wrapper" }, h("div", { key: '67a06543806995e8b95db4186a4ea053d4d33b45', class: "text-after-wrapper" }, h("div", { key: '78ad09bd7849f5f7c422d36a6f01e156c9c6db5e', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '19a85ba9d2d9d17d634ac78179dbd90b378b2b7b', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: 'f8a4b6d837abf040d9ca1237297836d066cd3f71', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: '105dec7aa348f910b25db38b86eec650c943ef40', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: '2ea643f3a9bc736bb33200d5cf87600e14aa2f18', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '07e341cfc2b91a6bcf4880158aa735fd06ea51ea', id: "info", class: "info" }, this.info)), h("div", { key: '41f5fe8184dd6d15e868a9212c61f2a70dcdb9a9', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '860193d77a6576a5aec0c133f43bffe72a853e57', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
203
|
+
}
|
|
204
|
+
static get is() { return "wm-input"; }
|
|
205
|
+
static get encapsulation() { return "shadow"; }
|
|
206
|
+
static get delegatesFocus() { return true; }
|
|
207
|
+
static get originalStyleUrls() {
|
|
208
|
+
return {
|
|
209
|
+
"$": ["wm-input.scss"]
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
static get styleUrls() {
|
|
213
|
+
return {
|
|
214
|
+
"$": ["wm-input.css"]
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
static get properties() {
|
|
218
|
+
return {
|
|
219
|
+
"label": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"mutable": false,
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "string",
|
|
224
|
+
"resolved": "string",
|
|
225
|
+
"references": {}
|
|
226
|
+
},
|
|
227
|
+
"required": true,
|
|
228
|
+
"optional": false,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [{
|
|
231
|
+
"name": "description",
|
|
232
|
+
"text": "Visible label for the input. Required even when `label-position` is `'none'` \u2014 used as the aria label for screen readers."
|
|
233
|
+
}, {
|
|
234
|
+
"name": "required",
|
|
235
|
+
"text": undefined
|
|
236
|
+
}],
|
|
237
|
+
"text": ""
|
|
238
|
+
},
|
|
239
|
+
"attribute": "label",
|
|
240
|
+
"reflect": false
|
|
241
|
+
},
|
|
242
|
+
"labelPosition": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"mutable": false,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "\"top\" | \"left\" | \"none\"",
|
|
247
|
+
"resolved": "\"left\" | \"none\" | \"top\"",
|
|
248
|
+
"references": {}
|
|
249
|
+
},
|
|
250
|
+
"required": false,
|
|
251
|
+
"optional": false,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [{
|
|
254
|
+
"name": "description",
|
|
255
|
+
"text": "Position of the label relative to the input. `'none'` hides the label visually but keeps it accessible."
|
|
256
|
+
}, {
|
|
257
|
+
"name": "default",
|
|
258
|
+
"text": "\"top\""
|
|
259
|
+
}],
|
|
260
|
+
"text": ""
|
|
261
|
+
},
|
|
262
|
+
"attribute": "label-position",
|
|
263
|
+
"reflect": false,
|
|
264
|
+
"defaultValue": "\"top\""
|
|
265
|
+
},
|
|
266
|
+
"value": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"mutable": true,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "string",
|
|
271
|
+
"resolved": "string",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [{
|
|
278
|
+
"name": "description",
|
|
279
|
+
"text": "The initial value of the input field, or its current value when reading from the component."
|
|
280
|
+
}, {
|
|
281
|
+
"name": "default",
|
|
282
|
+
"text": "\"\""
|
|
283
|
+
}],
|
|
284
|
+
"text": ""
|
|
285
|
+
},
|
|
286
|
+
"attribute": "value",
|
|
287
|
+
"reflect": false,
|
|
288
|
+
"defaultValue": "\"\""
|
|
289
|
+
},
|
|
290
|
+
"disabled": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"mutable": false,
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "boolean",
|
|
295
|
+
"resolved": "boolean",
|
|
296
|
+
"references": {}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": false,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [{
|
|
302
|
+
"name": "description",
|
|
303
|
+
"text": "Disables the input, preventing interaction."
|
|
304
|
+
}, {
|
|
305
|
+
"name": "default",
|
|
306
|
+
"text": "false"
|
|
307
|
+
}],
|
|
308
|
+
"text": ""
|
|
309
|
+
},
|
|
310
|
+
"attribute": "disabled",
|
|
311
|
+
"reflect": false,
|
|
312
|
+
"defaultValue": "false"
|
|
313
|
+
},
|
|
314
|
+
"info": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "string",
|
|
319
|
+
"resolved": "string | undefined",
|
|
320
|
+
"references": {}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": true,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [{
|
|
326
|
+
"name": "description",
|
|
327
|
+
"text": "Hint text displayed below the input field. Read by screen readers when the field is focused."
|
|
328
|
+
}],
|
|
329
|
+
"text": ""
|
|
330
|
+
},
|
|
331
|
+
"attribute": "info",
|
|
332
|
+
"reflect": false
|
|
333
|
+
},
|
|
334
|
+
"inputWidth": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"mutable": false,
|
|
337
|
+
"complexType": {
|
|
338
|
+
"original": "string",
|
|
339
|
+
"resolved": "string",
|
|
340
|
+
"references": {}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": false,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [{
|
|
346
|
+
"name": "description",
|
|
347
|
+
"text": "CSS width value for the input element itself, independent of the component's overall width (which includes the label, info, and error). Useful when you want the label wider than the input."
|
|
348
|
+
}],
|
|
349
|
+
"text": ""
|
|
350
|
+
},
|
|
351
|
+
"attribute": "input-width",
|
|
352
|
+
"reflect": false,
|
|
353
|
+
"defaultValue": "\"\""
|
|
354
|
+
},
|
|
355
|
+
"placeholder": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"mutable": false,
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "string",
|
|
360
|
+
"resolved": "string",
|
|
361
|
+
"references": {}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [{
|
|
367
|
+
"name": "description",
|
|
368
|
+
"text": "Placeholder text shown inside the empty input field."
|
|
369
|
+
}],
|
|
370
|
+
"text": ""
|
|
371
|
+
},
|
|
372
|
+
"attribute": "placeholder",
|
|
373
|
+
"reflect": false,
|
|
374
|
+
"defaultValue": "\"\""
|
|
375
|
+
},
|
|
376
|
+
"requiredField": {
|
|
377
|
+
"type": "boolean",
|
|
378
|
+
"mutable": false,
|
|
379
|
+
"complexType": {
|
|
380
|
+
"original": "boolean",
|
|
381
|
+
"resolved": "boolean",
|
|
382
|
+
"references": {}
|
|
383
|
+
},
|
|
384
|
+
"required": false,
|
|
385
|
+
"optional": false,
|
|
386
|
+
"docs": {
|
|
387
|
+
"tags": [{
|
|
388
|
+
"name": "description",
|
|
389
|
+
"text": "Displays a required-field asterisk (*) next to the label and sets `aria-required=\"true\"` on the input."
|
|
390
|
+
}, {
|
|
391
|
+
"name": "default",
|
|
392
|
+
"text": "false"
|
|
393
|
+
}],
|
|
394
|
+
"text": ""
|
|
395
|
+
},
|
|
396
|
+
"attribute": "required-field",
|
|
397
|
+
"reflect": false,
|
|
398
|
+
"defaultValue": "false"
|
|
399
|
+
},
|
|
400
|
+
"errorMessage": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"mutable": false,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "string",
|
|
405
|
+
"resolved": "string | undefined",
|
|
406
|
+
"references": {}
|
|
407
|
+
},
|
|
408
|
+
"required": false,
|
|
409
|
+
"optional": true,
|
|
410
|
+
"docs": {
|
|
411
|
+
"tags": [{
|
|
412
|
+
"name": "description",
|
|
413
|
+
"text": "Puts the component in an error state and displays this message below the input. Set to a non-empty string to activate; clear to remove."
|
|
414
|
+
}],
|
|
415
|
+
"text": ""
|
|
416
|
+
},
|
|
417
|
+
"attribute": "error-message",
|
|
418
|
+
"reflect": false
|
|
419
|
+
},
|
|
420
|
+
"characterLimit": {
|
|
421
|
+
"type": "number",
|
|
422
|
+
"mutable": false,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "number",
|
|
425
|
+
"resolved": "number | undefined",
|
|
426
|
+
"references": {}
|
|
427
|
+
},
|
|
428
|
+
"required": false,
|
|
429
|
+
"optional": true,
|
|
430
|
+
"docs": {
|
|
431
|
+
"tags": [{
|
|
432
|
+
"name": "description",
|
|
433
|
+
"text": "Maximum number of characters the user can type. Displays a live character counter and announces warnings via an `aria-live` region. Disabled when unset."
|
|
434
|
+
}],
|
|
435
|
+
"text": ""
|
|
436
|
+
},
|
|
437
|
+
"attribute": "character-limit",
|
|
438
|
+
"reflect": false
|
|
439
|
+
},
|
|
440
|
+
"symbolBefore": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"mutable": false,
|
|
443
|
+
"complexType": {
|
|
444
|
+
"original": "string",
|
|
445
|
+
"resolved": "string | undefined",
|
|
446
|
+
"references": {}
|
|
447
|
+
},
|
|
448
|
+
"required": false,
|
|
449
|
+
"optional": true,
|
|
450
|
+
"docs": {
|
|
451
|
+
"tags": [{
|
|
452
|
+
"name": "description",
|
|
453
|
+
"text": "String displayed before the input value (e.g. `'$'` for a currency field)."
|
|
454
|
+
}],
|
|
455
|
+
"text": ""
|
|
456
|
+
},
|
|
457
|
+
"attribute": "symbol-before",
|
|
458
|
+
"reflect": false
|
|
459
|
+
},
|
|
460
|
+
"symbolAfter": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"mutable": false,
|
|
463
|
+
"complexType": {
|
|
464
|
+
"original": "string",
|
|
465
|
+
"resolved": "string | undefined",
|
|
466
|
+
"references": {}
|
|
467
|
+
},
|
|
468
|
+
"required": false,
|
|
469
|
+
"optional": true,
|
|
470
|
+
"docs": {
|
|
471
|
+
"tags": [{
|
|
472
|
+
"name": "description",
|
|
473
|
+
"text": "String displayed after the input value (e.g. `'%'` for a percentage field)."
|
|
474
|
+
}],
|
|
475
|
+
"text": ""
|
|
476
|
+
},
|
|
477
|
+
"attribute": "symbol-after",
|
|
478
|
+
"reflect": false
|
|
479
|
+
},
|
|
480
|
+
"textAfter": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"mutable": false,
|
|
483
|
+
"complexType": {
|
|
484
|
+
"original": "string",
|
|
485
|
+
"resolved": "string | undefined",
|
|
486
|
+
"references": {}
|
|
487
|
+
},
|
|
488
|
+
"required": false,
|
|
489
|
+
"optional": true,
|
|
490
|
+
"docs": {
|
|
491
|
+
"tags": [{
|
|
492
|
+
"name": "description",
|
|
493
|
+
"text": "Text displayed after the input element (outside it). Keep to 55 characters or fewer."
|
|
494
|
+
}],
|
|
495
|
+
"text": ""
|
|
496
|
+
},
|
|
497
|
+
"attribute": "text-after",
|
|
498
|
+
"reflect": false
|
|
499
|
+
},
|
|
500
|
+
"type": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"mutable": false,
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "\"number\" | \"text\"",
|
|
505
|
+
"resolved": "\"number\" | \"text\"",
|
|
506
|
+
"references": {}
|
|
507
|
+
},
|
|
508
|
+
"required": false,
|
|
509
|
+
"optional": false,
|
|
510
|
+
"docs": {
|
|
511
|
+
"tags": [{
|
|
512
|
+
"name": "description",
|
|
513
|
+
"text": "The input type. Use `'number'` for numeric fields; pair with `min`, `max`, and `step`."
|
|
514
|
+
}, {
|
|
515
|
+
"name": "default",
|
|
516
|
+
"text": "\"text\""
|
|
517
|
+
}],
|
|
518
|
+
"text": ""
|
|
519
|
+
},
|
|
520
|
+
"attribute": "type",
|
|
521
|
+
"reflect": false,
|
|
522
|
+
"defaultValue": "\"text\""
|
|
523
|
+
},
|
|
524
|
+
"step": {
|
|
525
|
+
"type": "number",
|
|
526
|
+
"mutable": false,
|
|
527
|
+
"complexType": {
|
|
528
|
+
"original": "number",
|
|
529
|
+
"resolved": "number | undefined",
|
|
530
|
+
"references": {}
|
|
531
|
+
},
|
|
532
|
+
"required": false,
|
|
533
|
+
"optional": true,
|
|
534
|
+
"docs": {
|
|
535
|
+
"tags": [{
|
|
536
|
+
"name": "description",
|
|
537
|
+
"text": "For use with `type='number'`. The interval between values when stepping."
|
|
538
|
+
}, {
|
|
539
|
+
"name": "default",
|
|
540
|
+
"text": "1"
|
|
541
|
+
}],
|
|
542
|
+
"text": ""
|
|
543
|
+
},
|
|
544
|
+
"attribute": "step",
|
|
545
|
+
"reflect": false,
|
|
546
|
+
"defaultValue": "1"
|
|
547
|
+
},
|
|
548
|
+
"min": {
|
|
549
|
+
"type": "number",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "number",
|
|
553
|
+
"resolved": "number | undefined",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": true,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [{
|
|
560
|
+
"name": "description",
|
|
561
|
+
"text": "For use with `type='number'`. The minimum value reachable with the stepper."
|
|
562
|
+
}],
|
|
563
|
+
"text": ""
|
|
564
|
+
},
|
|
565
|
+
"attribute": "min",
|
|
566
|
+
"reflect": false
|
|
567
|
+
},
|
|
568
|
+
"max": {
|
|
569
|
+
"type": "number",
|
|
570
|
+
"mutable": false,
|
|
571
|
+
"complexType": {
|
|
572
|
+
"original": "number",
|
|
573
|
+
"resolved": "number | undefined",
|
|
574
|
+
"references": {}
|
|
575
|
+
},
|
|
576
|
+
"required": false,
|
|
577
|
+
"optional": true,
|
|
578
|
+
"docs": {
|
|
579
|
+
"tags": [{
|
|
580
|
+
"name": "description",
|
|
581
|
+
"text": "For use with `type='number'`. The maximum value reachable with the stepper."
|
|
582
|
+
}],
|
|
583
|
+
"text": ""
|
|
584
|
+
},
|
|
585
|
+
"attribute": "max",
|
|
586
|
+
"reflect": false
|
|
587
|
+
},
|
|
588
|
+
"isSubmit": {
|
|
589
|
+
"type": "boolean",
|
|
590
|
+
"mutable": false,
|
|
591
|
+
"complexType": {
|
|
592
|
+
"original": "boolean",
|
|
593
|
+
"resolved": "boolean",
|
|
594
|
+
"references": {}
|
|
595
|
+
},
|
|
596
|
+
"required": false,
|
|
597
|
+
"optional": false,
|
|
598
|
+
"docs": {
|
|
599
|
+
"tags": [{
|
|
600
|
+
"name": "description",
|
|
601
|
+
"text": "When true, pressing Enter when the input is focused submits the containing form."
|
|
602
|
+
}, {
|
|
603
|
+
"name": "default",
|
|
604
|
+
"text": "false"
|
|
605
|
+
}],
|
|
606
|
+
"text": ""
|
|
607
|
+
},
|
|
608
|
+
"attribute": "is-submit",
|
|
609
|
+
"reflect": false,
|
|
610
|
+
"defaultValue": "false"
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
static get states() {
|
|
615
|
+
return {
|
|
616
|
+
"announcement": {}
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
static get events() {
|
|
620
|
+
return [{
|
|
621
|
+
"method": "wmInputValueChanged",
|
|
622
|
+
"name": "wmInputValueChanged",
|
|
623
|
+
"bubbles": true,
|
|
624
|
+
"cancelable": true,
|
|
625
|
+
"composed": true,
|
|
626
|
+
"docs": {
|
|
627
|
+
"tags": [{
|
|
628
|
+
"name": "description",
|
|
629
|
+
"text": "Fires on blur when the input value has changed since the last blur. Use the\nnative `input` event if you need to react to every keystroke."
|
|
630
|
+
}, {
|
|
631
|
+
"name": "eventDetails",
|
|
632
|
+
"text": "{{ value: string }} value \u2014 the current value of the input at the time of blur."
|
|
633
|
+
}],
|
|
634
|
+
"text": ""
|
|
635
|
+
},
|
|
636
|
+
"complexType": {
|
|
637
|
+
"original": "{ value: string }",
|
|
638
|
+
"resolved": "{ value: string; }",
|
|
639
|
+
"references": {}
|
|
640
|
+
}
|
|
641
|
+
}];
|
|
642
|
+
}
|
|
643
|
+
static get elementRef() { return "el"; }
|
|
644
|
+
static get watchers() {
|
|
645
|
+
return [{
|
|
646
|
+
"propName": "disabled",
|
|
647
|
+
"methodName": "handleDisabledChange"
|
|
648
|
+
}, {
|
|
649
|
+
"propName": "errorMessage",
|
|
650
|
+
"methodName": "announceError"
|
|
651
|
+
}];
|
|
652
|
+
}
|
|
653
|
+
}
|