@watermarkinsights/ripple 5.13.0-alpha.1 → 5.13.0-alpha.3
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-DztnjEf7.js +92 -0
- package/dist/cjs/chartFunctions-CM2Nah_s.js +731 -0
- package/dist/cjs/functions-CoXfjC6r.js +10450 -0
- package/dist/cjs/index-Cig4P4gJ.js +2082 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-C7YbtGnk.js +37 -0
- package/dist/cjs/intl-DVt1J717.js +283 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +568 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +136 -0
- package/dist/cjs/priv-navigator-button_2.cjs.entry.js +54 -0
- package/dist/cjs/priv-option-list_2.cjs.entry.js +556 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_4.cjs.entry.js +702 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +20 -0
- package/dist/cjs/wm-chart.cjs.entry.js +159 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +479 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +249 -0
- package/dist/cjs/wm-file-list.cjs.entry.js +20 -0
- package/dist/cjs/wm-file.cjs.entry.js +184 -0
- package/dist/cjs/wm-input.cjs.entry.js +113 -0
- package/dist/cjs/wm-line-chart.cjs.entry.js +451 -0
- package/dist/cjs/wm-modal-footer.cjs.entry.js +46 -0
- package/dist/cjs/wm-modal-header.cjs.entry.js +38 -0
- package/dist/cjs/wm-modal-pss-footer.cjs.entry.js +42 -0
- package/dist/cjs/wm-modal-pss-header.cjs.entry.js +41 -0
- package/dist/cjs/wm-modal-pss.cjs.entry.js +137 -0
- package/dist/cjs/wm-modal.cjs.entry.js +135 -0
- package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +50 -0
- package/dist/cjs/wm-navigation-item.cjs.entry.js +20 -0
- package/dist/cjs/wm-navigation.cjs.entry.js +118 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +329 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +310 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +70 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +225 -0
- package/dist/cjs/wm-progress-indicator.cjs.entry.js +109 -0
- package/dist/cjs/wm-progress-monitor.cjs.entry.js +73 -0
- package/dist/cjs/wm-progress-slice.cjs.entry.js +15 -0
- package/dist/cjs/wm-search.cjs.entry.js +210 -0
- package/dist/cjs/wm-select.cjs.entry.js +251 -0
- package/dist/cjs/wm-tab-item.cjs.entry.js +65 -0
- package/dist/cjs/wm-tab-list.cjs.entry.js +177 -0
- package/dist/cjs/wm-tab-panel.cjs.entry.js +34 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +879 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +37 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +81 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +302 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +178 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +315 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +19 -0
- package/dist/collection/collection-manifest.json +58 -0
- package/dist/collection/components/charts/chartFunctions.js +665 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +908 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +261 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +128 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1274 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +445 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1067 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +742 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1274 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +271 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +909 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +154 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +124 -0
- package/dist/collection/components/datepickers/datepicker.css +1044 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1279 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +849 -0
- package/dist/collection/components/datepickers/wm-date-range.js +869 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +538 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +918 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +791 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1181 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +644 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +830 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +265 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +931 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +539 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1104 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +606 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +891 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +444 -0
- package/dist/collection/components/wm-button/wm-button.css +1261 -0
- package/dist/collection/components/wm-button/wm-button.js +510 -0
- package/dist/collection/components/wm-file/wm-file.css +927 -0
- package/dist/collection/components/wm-file/wm-file.js +423 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +820 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +47 -0
- package/dist/collection/components/wm-input/wm-input.css +993 -0
- package/dist/collection/components/wm-input/wm-input.js +498 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +891 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +425 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +845 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +152 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +844 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +83 -0
- package/dist/collection/components/wm-modal/wm-modal.css +892 -0
- package/dist/collection/components/wm-modal/wm-modal.js +356 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +852 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +148 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +846 -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 +928 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +847 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +120 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +856 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +99 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +898 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +192 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +850 -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 +830 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +130 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +903 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +515 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +971 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +373 -0
- package/dist/collection/components/wm-search/wm-search.css +896 -0
- package/dist/collection/components/wm-search/wm-search.js +462 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1078 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +280 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +869 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +187 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +841 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +276 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +825 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +97 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1276 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1245 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +251 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +980 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +331 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1094 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +559 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1152 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +295 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1563 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +618 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +6 -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/input.js +6 -0
- package/dist/collection/dev/line-chart.js +0 -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 +60 -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 +825 -0
- package/dist/collection/global/global.js +88 -0
- package/dist/collection/global/interfaces.js +51 -0
- package/dist/collection/global/intl.js +274 -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/components/chartFunctions.js +1 -2
- package/dist/components/functions.js +844 -7899
- package/dist/components/index.js +1 -48
- package/dist/components/interfaces.js +0 -19
- package/dist/components/wm-chart.js +1 -1
- package/dist/components/wm-file.js +1 -1
- package/dist/components/wm-navigation.js +1 -1
- package/dist/components/wm-navigator.js +0 -41
- package/dist/components/wm-progress-monitor.js +2 -2
- package/dist/components/wm-snackbar.js +23 -15
- package/dist/components/wm-tab-list.js +1 -1
- package/dist/components/wm-tag-input.js +1 -1
- package/dist/components/wm-toggletip.js +1 -1
- package/dist/esm/app-globals-9HoPoE5v.js +90 -0
- package/dist/esm/chartFunctions-BFCUD5JX.js +714 -0
- package/dist/esm/functions-ZDMCMR3o.js +10410 -0
- package/dist/esm/index-EopL5zo4.js +2071 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-CyJHzEjr.js +34 -0
- package/dist/esm/intl-DYVRT1s6.js +277 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/priv-calendar.entry.js +566 -0
- package/dist/esm/priv-chart-popover.entry.js +134 -0
- package/dist/esm/priv-navigator-button_2.entry.js +51 -0
- package/dist/esm/priv-option-list_2.entry.js +553 -0
- package/dist/esm/ripple.js +21 -0
- package/dist/esm/wm-action-menu_4.entry.js +697 -0
- package/dist/esm/wm-chart-slice.entry.js +18 -0
- package/dist/esm/wm-chart.entry.js +157 -0
- package/dist/esm/wm-date-range.entry.js +477 -0
- package/dist/esm/wm-datepicker.entry.js +247 -0
- package/dist/esm/wm-file-list.entry.js +18 -0
- package/dist/esm/wm-file.entry.js +182 -0
- package/dist/esm/wm-input.entry.js +111 -0
- package/dist/esm/wm-line-chart.entry.js +449 -0
- package/dist/esm/wm-modal-footer.entry.js +44 -0
- package/dist/esm/wm-modal-header.entry.js +36 -0
- package/dist/esm/wm-modal-pss-footer.entry.js +40 -0
- package/dist/esm/wm-modal-pss-header.entry.js +39 -0
- package/dist/esm/wm-modal-pss.entry.js +135 -0
- package/dist/esm/wm-modal.entry.js +133 -0
- package/dist/esm/wm-navigation-hamburger.entry.js +48 -0
- package/dist/esm/wm-navigation-item.entry.js +18 -0
- package/dist/esm/wm-navigation.entry.js +116 -0
- package/dist/esm/wm-navigator.entry.js +327 -0
- package/dist/esm/wm-nested-select.entry.js +308 -0
- package/dist/esm/wm-optgroup.entry.js +68 -0
- package/dist/esm/wm-pagination.entry.js +223 -0
- package/dist/esm/wm-progress-indicator.entry.js +107 -0
- package/dist/esm/wm-progress-monitor.entry.js +71 -0
- package/dist/esm/wm-progress-slice.entry.js +13 -0
- package/dist/esm/wm-search.entry.js +208 -0
- package/dist/esm/wm-select.entry.js +249 -0
- package/dist/esm/wm-tab-item.entry.js +63 -0
- package/dist/esm/wm-tab-list.entry.js +175 -0
- package/dist/esm/wm-tab-panel.entry.js +32 -0
- package/dist/esm/wm-tag-input.entry.js +877 -0
- package/dist/esm/wm-tag-option.entry.js +35 -0
- package/dist/esm/wm-textarea.entry.js +79 -0
- package/dist/esm/wm-timepicker.entry.js +300 -0
- package/dist/esm/wm-toggletip.entry.js +176 -0
- package/dist/esm/wm-uploader.entry.js +313 -0
- package/dist/esm/wm-wrapper.entry.js +17 -0
- package/dist/esm-es5/app-globals-9HoPoE5v.js +1 -0
- package/dist/esm-es5/chartFunctions-BFCUD5JX.js +1 -0
- package/dist/esm-es5/functions-ZDMCMR3o.js +1 -0
- package/dist/esm-es5/index-EopL5zo4.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-CyJHzEjr.js +1 -0
- package/dist/esm-es5/intl-DYVRT1s6.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/priv-calendar.entry.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-button_2.entry.js +1 -0
- package/dist/esm-es5/priv-option-list_2.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -0
- package/dist/esm-es5/wm-action-menu_4.entry.js +1 -0
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
- package/dist/esm-es5/wm-chart.entry.js +1 -0
- package/dist/esm-es5/wm-date-range.entry.js +1 -0
- package/dist/esm-es5/wm-datepicker.entry.js +1 -0
- package/dist/esm-es5/wm-file-list.entry.js +1 -0
- package/dist/esm-es5/wm-file.entry.js +1 -0
- package/dist/esm-es5/wm-input.entry.js +1 -0
- package/dist/esm-es5/wm-line-chart.entry.js +1 -0
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss.entry.js +1 -0
- package/dist/esm-es5/wm-modal.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-hamburger.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-item.entry.js +1 -0
- package/dist/esm-es5/wm-navigation.entry.js +1 -0
- package/dist/esm-es5/wm-navigator.entry.js +1 -0
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- package/dist/esm-es5/wm-pagination.entry.js +1 -0
- package/dist/esm-es5/wm-progress-indicator.entry.js +1 -0
- package/dist/esm-es5/wm-progress-monitor.entry.js +1 -0
- package/dist/esm-es5/wm-progress-slice.entry.js +1 -0
- package/dist/esm-es5/wm-search.entry.js +1 -0
- package/dist/esm-es5/wm-select.entry.js +1 -0
- package/dist/esm-es5/wm-tab-item.entry.js +1 -0
- package/dist/esm-es5/wm-tab-list.entry.js +1 -0
- package/dist/esm-es5/wm-tab-panel.entry.js +1 -0
- package/dist/esm-es5/wm-tag-input.entry.js +1 -0
- package/dist/esm-es5/wm-tag-option.entry.js +1 -0
- package/dist/esm-es5/wm-textarea.entry.js +1 -0
- package/dist/esm-es5/wm-timepicker.entry.js +1 -0
- package/dist/esm-es5/wm-toggletip.entry.js +1 -0
- package/dist/esm-es5/wm-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-wrapper.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +2 -0
- package/dist/loader/index.cjs.js +2 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +2 -0
- package/dist/loader/index.js +3 -0
- package/dist/ripple/index.esm.js +0 -0
- package/dist/ripple/p-032f127e.entry.js +1 -0
- package/dist/ripple/p-0bd43518.system.entry.js +1 -0
- package/dist/ripple/p-0dccd9b4.system.entry.js +1 -0
- package/dist/ripple/p-0dffa9ff.system.entry.js +1 -0
- package/dist/ripple/p-10d2b86e.entry.js +1 -0
- package/dist/ripple/p-1818d7f9.entry.js +1 -0
- package/dist/ripple/p-18d22114.system.entry.js +1 -0
- package/dist/ripple/p-1a769629.system.entry.js +1 -0
- package/dist/ripple/p-271ba485.system.entry.js +1 -0
- package/dist/ripple/p-2d41fbed.system.entry.js +1 -0
- package/dist/ripple/p-2f26b6ac.entry.js +1 -0
- package/dist/ripple/p-3065bbe5.system.entry.js +1 -0
- package/dist/ripple/p-306caa10.entry.js +1 -0
- package/dist/ripple/p-32f2f3b4.system.entry.js +1 -0
- package/dist/ripple/p-340b73a9.system.entry.js +1 -0
- package/dist/ripple/p-42f9cd3d.entry.js +1 -0
- package/dist/ripple/p-47b525bd.entry.js +1 -0
- package/dist/ripple/p-492a8a9f.entry.js +1 -0
- package/dist/ripple/p-4c316652.system.entry.js +1 -0
- package/dist/ripple/p-54aeadde.entry.js +1 -0
- package/dist/ripple/p-568e29d3.entry.js +1 -0
- package/dist/ripple/p-588a86ed.system.entry.js +1 -0
- package/dist/ripple/p-591fd100.entry.js +1 -0
- package/dist/ripple/p-5a6cbc14.system.entry.js +1 -0
- package/dist/ripple/p-5abe1171.system.entry.js +1 -0
- package/dist/ripple/p-5ae17300.system.entry.js +1 -0
- package/dist/ripple/p-5b02ae40.entry.js +1 -0
- package/dist/ripple/p-5e438798.system.entry.js +1 -0
- package/dist/ripple/p-5ed4177e.entry.js +1 -0
- package/dist/ripple/p-6133160d.system.entry.js +1 -0
- package/dist/ripple/p-620aff89.entry.js +1 -0
- package/dist/ripple/p-65db2c0f.entry.js +1 -0
- package/dist/ripple/p-70ed57bf.entry.js +1 -0
- package/dist/ripple/p-735d033a.entry.js +1 -0
- package/dist/ripple/p-74b1e110.entry.js +1 -0
- package/dist/ripple/p-77a8306c.entry.js +1 -0
- package/dist/ripple/p-7886fe5e.system.entry.js +1 -0
- package/dist/ripple/p-7ce09692.system.entry.js +1 -0
- package/dist/ripple/p-7cf1d9eb.system.entry.js +1 -0
- package/dist/ripple/p-7e786c28.system.entry.js +1 -0
- package/dist/ripple/p-812615ae.entry.js +1 -0
- package/dist/ripple/p-8a33538f.entry.js +1 -0
- package/dist/ripple/p-8b9c4e3e.entry.js +1 -0
- package/dist/ripple/p-90925ea9.entry.js +1 -0
- package/dist/ripple/p-959afdcf.entry.js +1 -0
- package/dist/ripple/p-997bdd2e.system.entry.js +1 -0
- package/dist/ripple/p-9db5f78e.entry.js +1 -0
- package/dist/ripple/p-BexWEx3U.system.js +1 -0
- package/dist/ripple/p-BgmAsS86.system.js +1 -0
- package/dist/ripple/p-Buh1DT2-.js +1 -0
- package/dist/ripple/p-CLZytLAw.system.js +1 -0
- package/dist/ripple/p-CTau6pR2.system.js +2 -0
- package/dist/ripple/p-CwkTkxrj.system.js +1 -0
- package/dist/ripple/p-CyJHzEjr.js +1 -0
- package/dist/ripple/p-DXsimRMV.js +1 -0
- package/dist/ripple/p-EopL5zo4.js +2 -0
- package/dist/ripple/p-GXdCI-yj.system.js +1 -0
- package/dist/ripple/p-UJrCrAlw.system.js +1 -0
- package/dist/ripple/p-YWpyar7R.system.js +1 -0
- package/dist/ripple/p-ZDMCMR3o.js +1 -0
- package/dist/ripple/p-b0b94ac4.system.entry.js +1 -0
- package/dist/ripple/p-b12640bd.entry.js +1 -0
- package/dist/ripple/p-b16431b0.system.entry.js +1 -0
- package/dist/ripple/p-b43cc69f.entry.js +1 -0
- package/dist/ripple/p-b4917824.entry.js +1 -0
- package/dist/ripple/p-b55babe1.system.entry.js +1 -0
- package/dist/ripple/p-ba48d47a.entry.js +1 -0
- package/dist/ripple/p-ba8ca46b.system.entry.js +1 -0
- package/dist/ripple/p-bee35fef.entry.js +1 -0
- package/dist/ripple/p-c273bb1c.system.entry.js +1 -0
- package/dist/ripple/p-cdebe76b.system.entry.js +1 -0
- package/dist/ripple/p-ce9634a2.entry.js +1 -0
- package/dist/ripple/p-d20ed498.entry.js +1 -0
- package/dist/ripple/p-d3e6498c.system.entry.js +1 -0
- package/dist/ripple/p-d40b6ef1.system.entry.js +1 -0
- package/dist/ripple/p-d4481342.system.entry.js +1 -0
- package/dist/ripple/p-d5bcab58.entry.js +1 -0
- package/dist/ripple/p-d7660e7d.entry.js +1 -0
- package/dist/ripple/p-d85f017a.system.entry.js +1 -0
- package/dist/ripple/p-da5ad94c.system.entry.js +1 -0
- package/dist/ripple/p-dcca5771.system.entry.js +1 -0
- package/dist/ripple/p-dd236f42.system.entry.js +1 -0
- package/dist/ripple/p-de33fd67.entry.js +1 -0
- package/dist/ripple/p-e0c9798d.system.entry.js +1 -0
- package/dist/ripple/p-e3700f4c.entry.js +1 -0
- package/dist/ripple/p-e901154b.entry.js +1 -0
- package/dist/ripple/p-e9fc862d.entry.js +1 -0
- package/dist/ripple/p-ea885cf3.system.entry.js +1 -0
- package/dist/ripple/p-f4c4218c.system.entry.js +1 -0
- package/dist/ripple/p-f57eb234.system.entry.js +1 -0
- package/dist/ripple/p-f858f5f9.system.entry.js +1 -0
- package/dist/ripple/p-f8721463.system.entry.js +1 -0
- package/dist/ripple/p-f881be15.entry.js +1 -0
- package/dist/ripple/p-f98949ad.entry.js +1 -0
- package/dist/ripple/p-fdcbcdf5.entry.js +1 -0
- package/dist/ripple/p-sXfORL9J.js +1 -0
- package/dist/ripple/ripple.css +1 -0
- package/dist/ripple/ripple.esm.js +1 -0
- package/dist/ripple/ripple.js +127 -0
- package/package.json +2 -2
- /package/dist/{types/test-setup.d.ts → collection/dev/action-menu.js} +0 -0
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
import { h, Host, Fragment, } from "@stencil/core";
|
|
2
|
+
import { intl, dateFind, toBool, handleDisabledAttribute, getContextMeasurements, findParentWithHiddenOverflow, dateToISO, shouldOpenUp, calendar_months, } from "../../global/functions";
|
|
3
|
+
export class DateRange {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.dateFormat = "mm/dd/yyyy";
|
|
6
|
+
this.disabled = false;
|
|
7
|
+
this.invalidStart = false;
|
|
8
|
+
this.invalidEnd = false;
|
|
9
|
+
this.labelStart = "";
|
|
10
|
+
this.labelEnd = "";
|
|
11
|
+
this.requiredField = false;
|
|
12
|
+
this.valueStart = ""; // in user format (INT, US...)
|
|
13
|
+
this.valueEnd = "";
|
|
14
|
+
this.openUp = false;
|
|
15
|
+
this.calWidth = 681; // 673 + 8px of room
|
|
16
|
+
this.availSpace = 0;
|
|
17
|
+
this.popupClicked = false;
|
|
18
|
+
this.toggleButtonClicked = false;
|
|
19
|
+
this.isExpanded = false;
|
|
20
|
+
this.formats = { "mm/dd/yyyy": "US", "dd/mm/yyyy": "INT", "yyyy/mm/dd": "ISO" };
|
|
21
|
+
}
|
|
22
|
+
get _disabled() {
|
|
23
|
+
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
24
|
+
return toBool(this.disabled);
|
|
25
|
+
}
|
|
26
|
+
get focusDates() {
|
|
27
|
+
// the date the first calendar will open to. either:
|
|
28
|
+
// - value-start
|
|
29
|
+
// - a date provided by the dev via prop preselected
|
|
30
|
+
// - today's date
|
|
31
|
+
const isoStart = this.toISO(this.valueStart);
|
|
32
|
+
// fallback:
|
|
33
|
+
let startFocusDate = dateToISO(new Date());
|
|
34
|
+
if (this._isValidISO(isoStart)) {
|
|
35
|
+
startFocusDate = isoStart;
|
|
36
|
+
}
|
|
37
|
+
else if (this.preselected && this._isValidISO(this.preselected)) {
|
|
38
|
+
startFocusDate = this.preselected;
|
|
39
|
+
}
|
|
40
|
+
// the date the second calendar will open to. either:
|
|
41
|
+
// - value-end, if exists and not same month as value-start
|
|
42
|
+
// - the month after the first calendar
|
|
43
|
+
let firstOfNextMonth = this.toJSDate(startFocusDate);
|
|
44
|
+
if (firstOfNextMonth.getUTCMonth() == 11) {
|
|
45
|
+
firstOfNextMonth.setYear(firstOfNextMonth.getUTCFullYear() + 1);
|
|
46
|
+
}
|
|
47
|
+
firstOfNextMonth.setMonth((firstOfNextMonth.getUTCMonth() + 1) % 12, 1);
|
|
48
|
+
let endFocusDate = dateToISO(firstOfNextMonth); // fallback
|
|
49
|
+
const isoEnd = this.toISO(this.valueEnd);
|
|
50
|
+
if (this._isValidISO(isoEnd)) {
|
|
51
|
+
const sameMonth = this.isSameMonth(startFocusDate, isoEnd);
|
|
52
|
+
if (!sameMonth) {
|
|
53
|
+
endFocusDate = isoEnd;
|
|
54
|
+
// if there is a valueEnd and no valueStart, set valueStart to the month before valueEnd;
|
|
55
|
+
if (!isoStart) {
|
|
56
|
+
let firstOfPrevMonth = this.toJSDate(endFocusDate);
|
|
57
|
+
let month = firstOfPrevMonth.getUTCMonth() - 1;
|
|
58
|
+
if (month == -1) {
|
|
59
|
+
month = 11;
|
|
60
|
+
firstOfPrevMonth.setYear(firstOfPrevMonth.getUTCFullYear() - 1);
|
|
61
|
+
}
|
|
62
|
+
firstOfPrevMonth.setMonth(month, 1);
|
|
63
|
+
startFocusDate = dateToISO(firstOfPrevMonth);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return [startFocusDate, endFocusDate];
|
|
68
|
+
}
|
|
69
|
+
// same month of the same year
|
|
70
|
+
isSameMonth(date1, date2) {
|
|
71
|
+
if (date1 && date2) {
|
|
72
|
+
return date1.slice(0, -3) === date2.slice(0, -3);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
toJSDate(date) {
|
|
79
|
+
if (date && this._isValidISO(date)) {
|
|
80
|
+
let newDate = new Date();
|
|
81
|
+
newDate.setUTCFullYear(parseInt(date.split("-")[0]), parseInt(date.split("-")[1]) - 1, parseInt(date.split("-")[2]));
|
|
82
|
+
return newDate;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
toISO(date) {
|
|
89
|
+
// returns the input when it can't reformat
|
|
90
|
+
return this._reformatDate(this.formats[this.dateFormat], "ISO", date);
|
|
91
|
+
}
|
|
92
|
+
handleDisabled() {
|
|
93
|
+
handleDisabledAttribute(this.el, this._disabled);
|
|
94
|
+
}
|
|
95
|
+
updateValueStart() {
|
|
96
|
+
this.startInputEl.value = this.valueStart ? this.valueStart : "";
|
|
97
|
+
}
|
|
98
|
+
updateValueEnd() {
|
|
99
|
+
this.endInputEl.value = this.valueEnd ? this.valueEnd : "";
|
|
100
|
+
}
|
|
101
|
+
handleErrorMessage() {
|
|
102
|
+
if (this.errorMessage) {
|
|
103
|
+
setTimeout(() => this.announce(this.errorMessage), 100);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
togglePopup() {
|
|
107
|
+
this.isExpanded ? this.closePopup() : this.openPopup();
|
|
108
|
+
this.toggleButtonClicked = true;
|
|
109
|
+
}
|
|
110
|
+
closePopup(returnFocus = false) {
|
|
111
|
+
// reset
|
|
112
|
+
// clearing these in case the user closes without finishing the process
|
|
113
|
+
this.date1 = undefined;
|
|
114
|
+
this.date2 = undefined;
|
|
115
|
+
this.startCalEl.startDate = undefined;
|
|
116
|
+
this.startCalEl.endDate = undefined;
|
|
117
|
+
this.startCalEl.hoverDate = undefined;
|
|
118
|
+
this.endCalEl.startDate = undefined;
|
|
119
|
+
this.endCalEl.endDate = undefined;
|
|
120
|
+
this.endCalEl.hoverDate = undefined;
|
|
121
|
+
this.isExpanded = false;
|
|
122
|
+
this.startCalEl.view = "day";
|
|
123
|
+
this.endCalEl.view = "day";
|
|
124
|
+
this.popupEl.classList.remove("open");
|
|
125
|
+
window.setTimeout(() => {
|
|
126
|
+
//not using display none in order to get measurements of the popup while hidden
|
|
127
|
+
this.popupEl.style.visibility = "hidden";
|
|
128
|
+
}, 250);
|
|
129
|
+
//Reset values so that menu reopens to day view with selected date in focus
|
|
130
|
+
if (returnFocus) {
|
|
131
|
+
this.toggleEl.focus();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
openPopup() {
|
|
135
|
+
// display stuff
|
|
136
|
+
this.openUp = shouldOpenUp(this.el, this.popupEl.clientHeight, this.labelEl.clientHeight);
|
|
137
|
+
const { spaceLeft, spaceRight } = getContextMeasurements(this.el);
|
|
138
|
+
if (spaceRight >= this.calWidth - this.el.clientWidth) {
|
|
139
|
+
this.popupEl.style.left = "0";
|
|
140
|
+
this.popupEl.style.right = "auto";
|
|
141
|
+
}
|
|
142
|
+
else if (spaceLeft >= this.calWidth - this.el.clientWidth) {
|
|
143
|
+
this.popupEl.style.right = "0";
|
|
144
|
+
this.popupEl.style.left = "auto";
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
const offset = (this.availSpace - this.calWidth) / 2 - spaceLeft;
|
|
148
|
+
this.popupEl.style.left = `${offset}px`;
|
|
149
|
+
this.popupEl.style.right = "auto";
|
|
150
|
+
}
|
|
151
|
+
this.popupEl.style.visibility = "visible";
|
|
152
|
+
window.requestAnimationFrame(() => {
|
|
153
|
+
this.popupEl.classList.add("open");
|
|
154
|
+
});
|
|
155
|
+
this.isExpanded = true;
|
|
156
|
+
// state stuff
|
|
157
|
+
this.startCalEl.focusDate = this.focusDates[0];
|
|
158
|
+
this.endCalEl.focusDate = this.focusDates[1];
|
|
159
|
+
this.startCalEl.focusCell();
|
|
160
|
+
if (this.valueStart) {
|
|
161
|
+
const startISO = this.toISO(this.valueStart);
|
|
162
|
+
if (this._isValidISO(startISO)) {
|
|
163
|
+
this.startCalEl.startDate = startISO;
|
|
164
|
+
}
|
|
165
|
+
if (this.valueEnd) {
|
|
166
|
+
const endISO = this.toISO(this.valueEnd);
|
|
167
|
+
if (this._isValidISO(endISO)) {
|
|
168
|
+
if (this.isSameMonth(startISO, endISO)) {
|
|
169
|
+
this.startCalEl.endDate = endISO;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
this.endCalEl.endDate = endISO;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
handleFocus() {
|
|
179
|
+
this.wrapperEl.classList.add("focus");
|
|
180
|
+
}
|
|
181
|
+
handleBlur() {
|
|
182
|
+
this.wrapperEl.classList.remove("focus");
|
|
183
|
+
}
|
|
184
|
+
handleStartInputBlur() {
|
|
185
|
+
this.wmStartInputBlur.emit();
|
|
186
|
+
}
|
|
187
|
+
handleEndInputBlur() {
|
|
188
|
+
this.wmEndInputBlur.emit();
|
|
189
|
+
}
|
|
190
|
+
handleStartInput(ev) {
|
|
191
|
+
// keep component's value in sync with input's value
|
|
192
|
+
this.valueStart = ev.target.value;
|
|
193
|
+
}
|
|
194
|
+
handleEndInput(ev) {
|
|
195
|
+
// keep component's value in sync with input's value
|
|
196
|
+
this.valueEnd = ev.target.value;
|
|
197
|
+
}
|
|
198
|
+
handleKey(ev) {
|
|
199
|
+
switch (ev.key) {
|
|
200
|
+
case "Escape":
|
|
201
|
+
ev.preventDefault();
|
|
202
|
+
ev.stopPropagation(); // prevents closing of parent modal
|
|
203
|
+
this.closePopup(true);
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
blurHandler() {
|
|
208
|
+
if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
|
|
209
|
+
this.closePopup();
|
|
210
|
+
}
|
|
211
|
+
this.popupClicked = false;
|
|
212
|
+
this.toggleButtonClicked = false;
|
|
213
|
+
}
|
|
214
|
+
// for cases where the user clicks or uses a shortcut to leave the document
|
|
215
|
+
handleBlurOnWindow() {
|
|
216
|
+
if (this.isExpanded) {
|
|
217
|
+
this.closePopup();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
handleDateFocus(ev) {
|
|
221
|
+
const cal = ev.target;
|
|
222
|
+
const newFocusVal = cal.focusDate;
|
|
223
|
+
// keeping calendars in sync
|
|
224
|
+
// (left one should always be before right one)
|
|
225
|
+
const startYearMonth = this.startCalEl.focusDate.slice(0, -3);
|
|
226
|
+
const endYearMonth = this.endCalEl.focusDate.slice(0, -3);
|
|
227
|
+
if (cal == this.startCalEl) {
|
|
228
|
+
if (startYearMonth >= endYearMonth) {
|
|
229
|
+
this.endCalEl.focusDate = dateFind.month.increase(this.startCalEl.focusDate, 1);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
else if (cal == this.endCalEl) {
|
|
233
|
+
if (endYearMonth <= startYearMonth) {
|
|
234
|
+
this.startCalEl.focusDate = dateFind.month.decrease(this.endCalEl.focusDate, 1);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
// SR announcements
|
|
238
|
+
if (this.oldFocusVal) {
|
|
239
|
+
const newYear = dateFind.year.asInt(newFocusVal);
|
|
240
|
+
const oldYear = dateFind.year.asInt(this.oldFocusVal);
|
|
241
|
+
const newMonth = dateFind.month.asInt(newFocusVal);
|
|
242
|
+
const oldMonth = dateFind.month.asInt(this.oldFocusVal);
|
|
243
|
+
if (cal.view === "day") {
|
|
244
|
+
if (newYear != oldYear || newMonth != oldMonth) {
|
|
245
|
+
this.liveRegionEl.innerHTML = intl.formatMessage({
|
|
246
|
+
id: "date.viewingMonth",
|
|
247
|
+
defaultMessage: "Viewing {month}, {year}",
|
|
248
|
+
description: "Announcement indicating current month and year visible in a date picker",
|
|
249
|
+
}, {
|
|
250
|
+
month: calendar_months[newMonth - 1],
|
|
251
|
+
year: newYear,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
if (newYear != oldYear) {
|
|
257
|
+
this.liveRegionEl.innerHTML = intl.formatMessage({
|
|
258
|
+
id: "date.yearSelected",
|
|
259
|
+
defaultMessage: "{year} selected.",
|
|
260
|
+
description: "Announcement after the user selects a year in a date picker",
|
|
261
|
+
}, { year: newYear });
|
|
262
|
+
}
|
|
263
|
+
else if (newMonth != oldMonth) {
|
|
264
|
+
this.liveRegionEl.innerHTML = `${calendar_months[newMonth - 1]}, ${newYear}`;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
this.oldFocusVal = cal.focusDate;
|
|
269
|
+
}
|
|
270
|
+
handlePopupBlurred(ev) {
|
|
271
|
+
// emit blur event when leaving component from priv-calendar
|
|
272
|
+
if (ev.detail.relatedTarget !== this.el) {
|
|
273
|
+
const event = new CustomEvent("blur");
|
|
274
|
+
// @ts-ignore
|
|
275
|
+
event.relatedTarget = ev.detail.relatedTarget;
|
|
276
|
+
this.el.dispatchEvent(event);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
handleCellTriggered(ev) {
|
|
280
|
+
const cal = ev.detail.cal;
|
|
281
|
+
const dateElement = ev.detail.cell;
|
|
282
|
+
const newDate = dateElement.getAttribute("data-year") +
|
|
283
|
+
"-" +
|
|
284
|
+
dateElement.getAttribute("data-month") +
|
|
285
|
+
"-" +
|
|
286
|
+
dateElement.textContent.padStart(2, "0");
|
|
287
|
+
if (this.startCalEl.endDate || this.endCalEl.endDate) {
|
|
288
|
+
// there were already 2 dates, user is setting a new range.
|
|
289
|
+
// set calendar state
|
|
290
|
+
this.startCalEl.startDate = undefined;
|
|
291
|
+
this.startCalEl.endDate = undefined;
|
|
292
|
+
this.endCalEl.startDate = undefined;
|
|
293
|
+
this.endCalEl.endDate = undefined;
|
|
294
|
+
cal.startDate = newDate;
|
|
295
|
+
// set component state
|
|
296
|
+
this.date1 = newDate;
|
|
297
|
+
this.date2 = undefined;
|
|
298
|
+
}
|
|
299
|
+
else if (this.date1 && newDate !== this.date1) {
|
|
300
|
+
// user is setting the end of the range
|
|
301
|
+
// ignore if same date as first is selected
|
|
302
|
+
// (acts as if it was re-selected as the first date)
|
|
303
|
+
// reorder if necessary
|
|
304
|
+
if (this.date1 > newDate) {
|
|
305
|
+
this.date2 = this.date1;
|
|
306
|
+
this.date1 = newDate;
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
this.date2 = newDate;
|
|
310
|
+
}
|
|
311
|
+
const detail = {
|
|
312
|
+
startDate: {
|
|
313
|
+
iso: this.date1,
|
|
314
|
+
us: this._reformatDate("ISO", "US", this.date1),
|
|
315
|
+
int: this._reformatDate("ISO", "INT", this.date1),
|
|
316
|
+
},
|
|
317
|
+
endDate: {
|
|
318
|
+
iso: this.date2,
|
|
319
|
+
us: this._reformatDate("ISO", "US", this.date2),
|
|
320
|
+
int: this._reformatDate("ISO", "INT", this.date2),
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
this.wmRangeSelection.emit(detail);
|
|
324
|
+
this.closePopup(true);
|
|
325
|
+
this.date1 = undefined;
|
|
326
|
+
this.date2 = undefined;
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
// calendars were clear, user sets first date
|
|
330
|
+
cal.startDate = newDate;
|
|
331
|
+
// component state
|
|
332
|
+
this.date1 = newDate;
|
|
333
|
+
}
|
|
334
|
+
// Create events to trigger onInput and onChange on host element, to get the updated value
|
|
335
|
+
// Because there are more ways to input than just typing, we are firing this event upon cellTriggered
|
|
336
|
+
const inputEvent = new CustomEvent("input");
|
|
337
|
+
this.el.dispatchEvent(inputEvent);
|
|
338
|
+
const changeEvent = new CustomEvent("change");
|
|
339
|
+
this.el.dispatchEvent(changeEvent);
|
|
340
|
+
}
|
|
341
|
+
handleOutOfCal() {
|
|
342
|
+
this.startCalEl.hoverDate = undefined;
|
|
343
|
+
this.endCalEl.hoverDate = undefined;
|
|
344
|
+
}
|
|
345
|
+
handleCellHovered(ev) {
|
|
346
|
+
this.startCalEl.hoverDate = this.startCalEl.startDate === ev.detail ? undefined : ev.detail;
|
|
347
|
+
this.endCalEl.hoverDate = this.endCalEl.startDate === ev.detail ? undefined : ev.detail;
|
|
348
|
+
}
|
|
349
|
+
async reformatDate(inputFormat, outputFormat, date) {
|
|
350
|
+
return this._reformatDate(inputFormat, outputFormat, date);
|
|
351
|
+
}
|
|
352
|
+
_reformatDate(inputFormat, outputFormat, date) {
|
|
353
|
+
// this function reformats date strings to/from the storage format ONLY. US -> INT and vice versa is not supported.
|
|
354
|
+
if (inputFormat !== "ISO" && outputFormat !== "ISO")
|
|
355
|
+
return "";
|
|
356
|
+
// return if missing args
|
|
357
|
+
if (!inputFormat || !outputFormat || !date)
|
|
358
|
+
return "";
|
|
359
|
+
// 1, 2, or 4 digits, separator, 1 or 2 digits, separator, then 1 or 2 or 4 digits
|
|
360
|
+
const parsableEntry = /^(\d{1}|\d{2}|\d{4})[\-\.\/]\d{1,2}[\-\.\/](\d{1}|\d{2}|\d{4})$/;
|
|
361
|
+
if (!parsableEntry.test(date)) {
|
|
362
|
+
return date;
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
const dateArr = date.replace(/[\-\.]/gi, "/").split("/");
|
|
366
|
+
switch (outputFormat) {
|
|
367
|
+
case "US":
|
|
368
|
+
return dateArr[1].padStart(2, "0") + "/" + dateArr[2].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
|
|
369
|
+
case "INT":
|
|
370
|
+
return dateArr[2].padStart(2, "0") + "/" + dateArr[1].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
|
|
371
|
+
case "ISO":
|
|
372
|
+
if (inputFormat === "US") {
|
|
373
|
+
return dateArr[2].padStart(4, "20") + "-" + dateArr[0].padStart(2, "0") + "-" + dateArr[1].padStart(2, "0");
|
|
374
|
+
}
|
|
375
|
+
else if (inputFormat === "INT") {
|
|
376
|
+
return dateArr[2].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[0].padStart(2, "0");
|
|
377
|
+
}
|
|
378
|
+
else if (inputFormat === "ISO") {
|
|
379
|
+
return dateArr[0].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[2].padStart(2, "0");
|
|
380
|
+
}
|
|
381
|
+
default:
|
|
382
|
+
return dateArr.join("/");
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
async isValidISO(input) {
|
|
387
|
+
return this._isValidISO(input);
|
|
388
|
+
}
|
|
389
|
+
_isValidISO(input) {
|
|
390
|
+
const ISOFormat = /^\d\d\d\d[-]\d\d[-]\d\d$/;
|
|
391
|
+
if (!input || !ISOFormat.test(input)) {
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
// Parse the ISO date parts to integers
|
|
396
|
+
const parts = input.split("-");
|
|
397
|
+
const day = parseInt(parts[2], 10);
|
|
398
|
+
const month = parseInt(parts[1], 10);
|
|
399
|
+
const year = parseInt(parts[0], 10);
|
|
400
|
+
// Check the ranges of month and year
|
|
401
|
+
if (year < 1000 || year > 3000 || month == 0 || month > 12)
|
|
402
|
+
return false;
|
|
403
|
+
let monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
404
|
+
// Adjust for leap years
|
|
405
|
+
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0))
|
|
406
|
+
monthLength[1] = 29;
|
|
407
|
+
// Check the range of the day
|
|
408
|
+
return day > 0 && day <= monthLength[month - 1];
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
setAvailSpace() {
|
|
412
|
+
this.availSpace = (this.hiddenOverflowParent || document.body).clientWidth;
|
|
413
|
+
}
|
|
414
|
+
componentWillLoad() {
|
|
415
|
+
if (this.labelStart === "" || this.labelEnd === "") {
|
|
416
|
+
console.error("For accessibility reasons you must specify labels for the date range inputs.");
|
|
417
|
+
}
|
|
418
|
+
handleDisabledAttribute(this.el, this._disabled);
|
|
419
|
+
this.hiddenOverflowParent = findParentWithHiddenOverflow(this.el);
|
|
420
|
+
if (this.hiddenOverflowParent) {
|
|
421
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
422
|
+
this.availSpace = this.hiddenOverflowParent.clientWidth;
|
|
423
|
+
});
|
|
424
|
+
resizeObserver.observe(this.hiddenOverflowParent);
|
|
425
|
+
}
|
|
426
|
+
this.setAvailSpace();
|
|
427
|
+
}
|
|
428
|
+
announce(message) {
|
|
429
|
+
// \u00A0 is a non-breaking space character, which causes the message to be read as a new one
|
|
430
|
+
if (this.liveRegionEl.textContent === message) {
|
|
431
|
+
message += "\u00A0";
|
|
432
|
+
}
|
|
433
|
+
this.liveRegionEl.textContent = message;
|
|
434
|
+
}
|
|
435
|
+
renderCalendars() {
|
|
436
|
+
if (this.calWidth <= this.availSpace) {
|
|
437
|
+
return (h(Fragment, null, h("div", { class: `popup-wrapper ${this.startCalEl && this.startCalEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true), style: { display: "flex" } }, h("div", { class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.endCalEl.focusLastFocusable() }), h("priv-calendar", { ref: (el) => (this.startCalEl = el), onClick: () => (this.popupClicked = true), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("priv-calendar", { ref: (el) => (this.endCalEl = el), onClick: () => (this.popupClicked = true), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("div", { class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.startCalEl.focusFirstFocusable() }))));
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
render() {
|
|
441
|
+
return (h(Host, { key: 'e15e7d0122385b7038ab66267c6bd97a0484403e', "aria-busy": "false" }, h("div", { key: '1074c893c309a965181575e65ddab158e7b34661', ref: (d) => (this.wrapperEl = d), class: "wrapper" }, h("div", { key: '318998d9218b262a13c2842a03c8e493f889b327', class: `range-wrapper ${this.calWidth <= this.availSpace ? "cal" : ""}` }, h("div", { key: 'e2df44669d920d0fa287d3020a0ad29485cd03d7', class: "label-wrapper", id: "start-label-wrapper" }, h("label", { key: '34bdc1d6844cfca7b50c79c7dd2f7115889665a2', ref: (e) => (this.labelEl = e), id: "startlabel", htmlFor: "start-date-input", class: "label", title: `${this.labelStart} (${this.dateFormat})` }, this.labelStart, this.requiredField && (h("span", { key: '50d76500d1ddd31478ec3a1fb737fca8a2957e24', "aria-hidden": "true", class: "required" }, "*")))), h("div", { key: 'e7d8fcb4399881832d7a37042aee7a820512e2f0', class: "label-wrapper", id: "end-label-wrapper" }, h("label", { key: '86b127ee4ecc42fca26521bf19777553c55bdc79', id: "endlabel", htmlFor: "end-date-input", class: "label", title: `${this.labelEnd} (${this.dateFormat})` }, this.labelEnd, this.requiredField && (h("span", { key: '14ccfb0e9fee57f645112e1925b47e6697852f76', "aria-hidden": "true", class: "required" }, "*")))), h("input", { key: '4fbee8adcdd045ff543c530dcce96b8e1c812561', disabled: this._disabled, type: "text", id: "start-date-input", class: `date-input input ${this.invalidStart ? "invalid" : ""}`, name: "start-date", placeholder: this.dateFormat, value: this.valueStart, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleStartInput(ev), onBlur: () => this.handleStartInputBlur(), ref: (input) => (this.startInputEl = input), "aria-describedby": "error", "aria-label": this.labelStart, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '8532a1ee3ab5ed0eb678e0626d15ed59a30b159d', id: "hyphen" }, "\u00A0-\u00A0"), h("input", { key: '5083b4873f884f26221b756f1ab2b39f359aecdd', disabled: this._disabled, type: "text", id: "end-date-input", class: `date-input input ${this.invalidEnd ? "invalid" : ""}`, name: "end-date", placeholder: this.dateFormat, value: this.valueEnd, onFocus: () => this.handleFocus(), onInput: (ev) => this.handleEndInput(ev), onBlur: () => this.handleEndInputBlur(), ref: (input) => (this.endInputEl = input), "aria-describedby": "error", "aria-label": this.labelEnd, "aria-required": this.requiredField ? "true" : null }), h("div", { key: '4c6fefec380fae6c6964e10bc2e6eeae1dbb560a', class: "toggle-wrapper", id: "toggle-wrapper" }, this.calWidth <= this.availSpace && (h("button", { key: 'dd11cd572ddf6ce4c44af9bdffc6a129174ede8b', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "start-date-input end-date-input", "aria-label": intl.formatMessage({
|
|
442
|
+
id: "date.selectRange",
|
|
443
|
+
defaultMessage: "Select range",
|
|
444
|
+
description: "Button text for screen readers.",
|
|
445
|
+
}), ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '4539c027127c567bfd09039e63975e849dd96fae', class: "svg-icon svg-date" }), h("span", { key: '0fcd41cd2415908975cc8b8f7cebd4bd47f01d3e', class: "calendar", title: intl.formatMessage({
|
|
446
|
+
id: "date.calendarView",
|
|
447
|
+
defaultMessage: "Calendar View",
|
|
448
|
+
description: "Calendar button",
|
|
449
|
+
}) })))), this.renderCalendars()), h("div", { key: '96d2b3a31aafb89abdbd80e58ecc0efab1a582c4' }, h("div", { key: '75a3aca3bd7ef18924b81f47ab017eef108c10df', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'f7af6d97177bdf7cef6516950eee49e242826e06', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
450
|
+
id: "date.selectMonth",
|
|
451
|
+
defaultMessage: "Activate to select a month.",
|
|
452
|
+
description: "Calendar button",
|
|
453
|
+
})), h("div", { key: 'aab9385f49a28dc1306e59451234a9a7368aca4d', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
454
|
+
id: "date.selectYear",
|
|
455
|
+
defaultMessage: "Activate to select a year.",
|
|
456
|
+
description: "Calendar button",
|
|
457
|
+
}))), h("div", { key: '21c76d46ebc51dbfd8b2658512f7e6f7ef4f4ae7', id: "error", class: "error" }, this.errorMessage), h("div", { key: '0312341364d0cf20c63be7f38724b64b13ffd424', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }))));
|
|
458
|
+
}
|
|
459
|
+
static get is() { return "wm-date-range"; }
|
|
460
|
+
static get encapsulation() { return "shadow"; }
|
|
461
|
+
static get delegatesFocus() { return true; }
|
|
462
|
+
static get originalStyleUrls() {
|
|
463
|
+
return {
|
|
464
|
+
"$": ["datepicker.scss"]
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
static get styleUrls() {
|
|
468
|
+
return {
|
|
469
|
+
"$": ["datepicker.css"]
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
static get properties() {
|
|
473
|
+
return {
|
|
474
|
+
"dateFormat": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"attribute": "date-format",
|
|
477
|
+
"mutable": false,
|
|
478
|
+
"complexType": {
|
|
479
|
+
"original": "string",
|
|
480
|
+
"resolved": "string",
|
|
481
|
+
"references": {}
|
|
482
|
+
},
|
|
483
|
+
"required": false,
|
|
484
|
+
"optional": false,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [],
|
|
487
|
+
"text": ""
|
|
488
|
+
},
|
|
489
|
+
"getter": false,
|
|
490
|
+
"setter": false,
|
|
491
|
+
"reflect": false,
|
|
492
|
+
"defaultValue": "\"mm/dd/yyyy\""
|
|
493
|
+
},
|
|
494
|
+
"disabled": {
|
|
495
|
+
"type": "boolean",
|
|
496
|
+
"attribute": "disabled",
|
|
497
|
+
"mutable": false,
|
|
498
|
+
"complexType": {
|
|
499
|
+
"original": "boolean",
|
|
500
|
+
"resolved": "boolean",
|
|
501
|
+
"references": {}
|
|
502
|
+
},
|
|
503
|
+
"required": false,
|
|
504
|
+
"optional": false,
|
|
505
|
+
"docs": {
|
|
506
|
+
"tags": [],
|
|
507
|
+
"text": ""
|
|
508
|
+
},
|
|
509
|
+
"getter": false,
|
|
510
|
+
"setter": false,
|
|
511
|
+
"reflect": false,
|
|
512
|
+
"defaultValue": "false"
|
|
513
|
+
},
|
|
514
|
+
"errorMessage": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"attribute": "error-message",
|
|
517
|
+
"mutable": false,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "string",
|
|
520
|
+
"resolved": "string | undefined",
|
|
521
|
+
"references": {}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": ""
|
|
528
|
+
},
|
|
529
|
+
"getter": false,
|
|
530
|
+
"setter": false,
|
|
531
|
+
"reflect": true
|
|
532
|
+
},
|
|
533
|
+
"invalidStart": {
|
|
534
|
+
"type": "boolean",
|
|
535
|
+
"attribute": "invalid-start",
|
|
536
|
+
"mutable": false,
|
|
537
|
+
"complexType": {
|
|
538
|
+
"original": "boolean",
|
|
539
|
+
"resolved": "boolean",
|
|
540
|
+
"references": {}
|
|
541
|
+
},
|
|
542
|
+
"required": false,
|
|
543
|
+
"optional": false,
|
|
544
|
+
"docs": {
|
|
545
|
+
"tags": [],
|
|
546
|
+
"text": ""
|
|
547
|
+
},
|
|
548
|
+
"getter": false,
|
|
549
|
+
"setter": false,
|
|
550
|
+
"reflect": false,
|
|
551
|
+
"defaultValue": "false"
|
|
552
|
+
},
|
|
553
|
+
"invalidEnd": {
|
|
554
|
+
"type": "boolean",
|
|
555
|
+
"attribute": "invalid-end",
|
|
556
|
+
"mutable": false,
|
|
557
|
+
"complexType": {
|
|
558
|
+
"original": "boolean",
|
|
559
|
+
"resolved": "boolean",
|
|
560
|
+
"references": {}
|
|
561
|
+
},
|
|
562
|
+
"required": false,
|
|
563
|
+
"optional": false,
|
|
564
|
+
"docs": {
|
|
565
|
+
"tags": [],
|
|
566
|
+
"text": ""
|
|
567
|
+
},
|
|
568
|
+
"getter": false,
|
|
569
|
+
"setter": false,
|
|
570
|
+
"reflect": false,
|
|
571
|
+
"defaultValue": "false"
|
|
572
|
+
},
|
|
573
|
+
"labelStart": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"attribute": "label-start",
|
|
576
|
+
"mutable": false,
|
|
577
|
+
"complexType": {
|
|
578
|
+
"original": "string",
|
|
579
|
+
"resolved": "string",
|
|
580
|
+
"references": {}
|
|
581
|
+
},
|
|
582
|
+
"required": false,
|
|
583
|
+
"optional": false,
|
|
584
|
+
"docs": {
|
|
585
|
+
"tags": [],
|
|
586
|
+
"text": ""
|
|
587
|
+
},
|
|
588
|
+
"getter": false,
|
|
589
|
+
"setter": false,
|
|
590
|
+
"reflect": false,
|
|
591
|
+
"defaultValue": "\"\""
|
|
592
|
+
},
|
|
593
|
+
"labelEnd": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"attribute": "label-end",
|
|
596
|
+
"mutable": false,
|
|
597
|
+
"complexType": {
|
|
598
|
+
"original": "string",
|
|
599
|
+
"resolved": "string",
|
|
600
|
+
"references": {}
|
|
601
|
+
},
|
|
602
|
+
"required": false,
|
|
603
|
+
"optional": false,
|
|
604
|
+
"docs": {
|
|
605
|
+
"tags": [],
|
|
606
|
+
"text": ""
|
|
607
|
+
},
|
|
608
|
+
"getter": false,
|
|
609
|
+
"setter": false,
|
|
610
|
+
"reflect": false,
|
|
611
|
+
"defaultValue": "\"\""
|
|
612
|
+
},
|
|
613
|
+
"preselected": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"attribute": "preselected",
|
|
616
|
+
"mutable": false,
|
|
617
|
+
"complexType": {
|
|
618
|
+
"original": "string",
|
|
619
|
+
"resolved": "string | undefined",
|
|
620
|
+
"references": {}
|
|
621
|
+
},
|
|
622
|
+
"required": false,
|
|
623
|
+
"optional": true,
|
|
624
|
+
"docs": {
|
|
625
|
+
"tags": [],
|
|
626
|
+
"text": ""
|
|
627
|
+
},
|
|
628
|
+
"getter": false,
|
|
629
|
+
"setter": false,
|
|
630
|
+
"reflect": false
|
|
631
|
+
},
|
|
632
|
+
"requiredField": {
|
|
633
|
+
"type": "boolean",
|
|
634
|
+
"attribute": "required-field",
|
|
635
|
+
"mutable": false,
|
|
636
|
+
"complexType": {
|
|
637
|
+
"original": "boolean",
|
|
638
|
+
"resolved": "boolean",
|
|
639
|
+
"references": {}
|
|
640
|
+
},
|
|
641
|
+
"required": false,
|
|
642
|
+
"optional": false,
|
|
643
|
+
"docs": {
|
|
644
|
+
"tags": [],
|
|
645
|
+
"text": ""
|
|
646
|
+
},
|
|
647
|
+
"getter": false,
|
|
648
|
+
"setter": false,
|
|
649
|
+
"reflect": false,
|
|
650
|
+
"defaultValue": "false"
|
|
651
|
+
},
|
|
652
|
+
"valueStart": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"attribute": "value-start",
|
|
655
|
+
"mutable": true,
|
|
656
|
+
"complexType": {
|
|
657
|
+
"original": "string",
|
|
658
|
+
"resolved": "string | undefined",
|
|
659
|
+
"references": {}
|
|
660
|
+
},
|
|
661
|
+
"required": false,
|
|
662
|
+
"optional": true,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [],
|
|
665
|
+
"text": ""
|
|
666
|
+
},
|
|
667
|
+
"getter": false,
|
|
668
|
+
"setter": false,
|
|
669
|
+
"reflect": false,
|
|
670
|
+
"defaultValue": "\"\""
|
|
671
|
+
},
|
|
672
|
+
"valueEnd": {
|
|
673
|
+
"type": "string",
|
|
674
|
+
"attribute": "value-end",
|
|
675
|
+
"mutable": true,
|
|
676
|
+
"complexType": {
|
|
677
|
+
"original": "string",
|
|
678
|
+
"resolved": "string | undefined",
|
|
679
|
+
"references": {}
|
|
680
|
+
},
|
|
681
|
+
"required": false,
|
|
682
|
+
"optional": true,
|
|
683
|
+
"docs": {
|
|
684
|
+
"tags": [],
|
|
685
|
+
"text": ""
|
|
686
|
+
},
|
|
687
|
+
"getter": false,
|
|
688
|
+
"setter": false,
|
|
689
|
+
"reflect": false,
|
|
690
|
+
"defaultValue": "\"\""
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
static get states() {
|
|
695
|
+
return {
|
|
696
|
+
"availSpace": {},
|
|
697
|
+
"isExpanded": {}
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
static get events() {
|
|
701
|
+
return [{
|
|
702
|
+
"method": "wmRangeSelection",
|
|
703
|
+
"name": "wmRangeSelection",
|
|
704
|
+
"bubbles": true,
|
|
705
|
+
"cancelable": true,
|
|
706
|
+
"composed": true,
|
|
707
|
+
"docs": {
|
|
708
|
+
"tags": [],
|
|
709
|
+
"text": ""
|
|
710
|
+
},
|
|
711
|
+
"complexType": {
|
|
712
|
+
"original": "any",
|
|
713
|
+
"resolved": "any",
|
|
714
|
+
"references": {}
|
|
715
|
+
}
|
|
716
|
+
}, {
|
|
717
|
+
"method": "wmStartInputBlur",
|
|
718
|
+
"name": "wmStartInputBlur",
|
|
719
|
+
"bubbles": true,
|
|
720
|
+
"cancelable": true,
|
|
721
|
+
"composed": true,
|
|
722
|
+
"docs": {
|
|
723
|
+
"tags": [],
|
|
724
|
+
"text": ""
|
|
725
|
+
},
|
|
726
|
+
"complexType": {
|
|
727
|
+
"original": "any",
|
|
728
|
+
"resolved": "any",
|
|
729
|
+
"references": {}
|
|
730
|
+
}
|
|
731
|
+
}, {
|
|
732
|
+
"method": "wmEndInputBlur",
|
|
733
|
+
"name": "wmEndInputBlur",
|
|
734
|
+
"bubbles": true,
|
|
735
|
+
"cancelable": true,
|
|
736
|
+
"composed": true,
|
|
737
|
+
"docs": {
|
|
738
|
+
"tags": [],
|
|
739
|
+
"text": ""
|
|
740
|
+
},
|
|
741
|
+
"complexType": {
|
|
742
|
+
"original": "any",
|
|
743
|
+
"resolved": "any",
|
|
744
|
+
"references": {}
|
|
745
|
+
}
|
|
746
|
+
}];
|
|
747
|
+
}
|
|
748
|
+
static get methods() {
|
|
749
|
+
return {
|
|
750
|
+
"reformatDate": {
|
|
751
|
+
"complexType": {
|
|
752
|
+
"signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
|
|
753
|
+
"parameters": [{
|
|
754
|
+
"name": "inputFormat",
|
|
755
|
+
"type": "string",
|
|
756
|
+
"docs": ""
|
|
757
|
+
}, {
|
|
758
|
+
"name": "outputFormat",
|
|
759
|
+
"type": "string",
|
|
760
|
+
"docs": ""
|
|
761
|
+
}, {
|
|
762
|
+
"name": "date",
|
|
763
|
+
"type": "string | undefined",
|
|
764
|
+
"docs": ""
|
|
765
|
+
}],
|
|
766
|
+
"references": {
|
|
767
|
+
"Promise": {
|
|
768
|
+
"location": "global",
|
|
769
|
+
"id": "global::Promise"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
"return": "Promise<string>"
|
|
773
|
+
},
|
|
774
|
+
"docs": {
|
|
775
|
+
"text": "",
|
|
776
|
+
"tags": []
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"isValidISO": {
|
|
780
|
+
"complexType": {
|
|
781
|
+
"signature": "(input?: string) => Promise<boolean>",
|
|
782
|
+
"parameters": [{
|
|
783
|
+
"name": "input",
|
|
784
|
+
"type": "string | undefined",
|
|
785
|
+
"docs": ""
|
|
786
|
+
}],
|
|
787
|
+
"references": {
|
|
788
|
+
"Promise": {
|
|
789
|
+
"location": "global",
|
|
790
|
+
"id": "global::Promise"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"return": "Promise<boolean>"
|
|
794
|
+
},
|
|
795
|
+
"docs": {
|
|
796
|
+
"text": "",
|
|
797
|
+
"tags": []
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
static get elementRef() { return "el"; }
|
|
803
|
+
static get watchers() {
|
|
804
|
+
return [{
|
|
805
|
+
"propName": "disabled",
|
|
806
|
+
"methodName": "handleDisabled"
|
|
807
|
+
}, {
|
|
808
|
+
"propName": "valueStart",
|
|
809
|
+
"methodName": "updateValueStart"
|
|
810
|
+
}, {
|
|
811
|
+
"propName": "valueEnd",
|
|
812
|
+
"methodName": "updateValueEnd"
|
|
813
|
+
}, {
|
|
814
|
+
"propName": "errorMessage",
|
|
815
|
+
"methodName": "handleErrorMessage"
|
|
816
|
+
}];
|
|
817
|
+
}
|
|
818
|
+
static get listeners() {
|
|
819
|
+
return [{
|
|
820
|
+
"name": "keydown",
|
|
821
|
+
"method": "handleKey",
|
|
822
|
+
"target": undefined,
|
|
823
|
+
"capture": false,
|
|
824
|
+
"passive": false
|
|
825
|
+
}, {
|
|
826
|
+
"name": "click",
|
|
827
|
+
"method": "blurHandler",
|
|
828
|
+
"target": "document",
|
|
829
|
+
"capture": false,
|
|
830
|
+
"passive": false
|
|
831
|
+
}, {
|
|
832
|
+
"name": "blur",
|
|
833
|
+
"method": "handleBlurOnWindow",
|
|
834
|
+
"target": "window",
|
|
835
|
+
"capture": false,
|
|
836
|
+
"passive": false
|
|
837
|
+
}, {
|
|
838
|
+
"name": "popupBlurred",
|
|
839
|
+
"method": "handlePopupBlurred",
|
|
840
|
+
"target": undefined,
|
|
841
|
+
"capture": false,
|
|
842
|
+
"passive": false
|
|
843
|
+
}, {
|
|
844
|
+
"name": "cellTriggered",
|
|
845
|
+
"method": "handleCellTriggered",
|
|
846
|
+
"target": undefined,
|
|
847
|
+
"capture": false,
|
|
848
|
+
"passive": false
|
|
849
|
+
}, {
|
|
850
|
+
"name": "outOfCal",
|
|
851
|
+
"method": "handleOutOfCal",
|
|
852
|
+
"target": undefined,
|
|
853
|
+
"capture": false,
|
|
854
|
+
"passive": false
|
|
855
|
+
}, {
|
|
856
|
+
"name": "cellHovered",
|
|
857
|
+
"method": "handleCellHovered",
|
|
858
|
+
"target": undefined,
|
|
859
|
+
"capture": false,
|
|
860
|
+
"passive": false
|
|
861
|
+
}, {
|
|
862
|
+
"name": "resize",
|
|
863
|
+
"method": "setAvailSpace",
|
|
864
|
+
"target": "window",
|
|
865
|
+
"capture": false,
|
|
866
|
+
"passive": true
|
|
867
|
+
}];
|
|
868
|
+
}
|
|
869
|
+
}
|