@watermarkinsights/ripple 5.2.0 → 5.3.0-0
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/{esm/global-cb4fb91c.js → cjs/app-globals-7025eb63.js} +10 -1
- package/dist/cjs/{chartFunctions-2195a9d2.js → chartFunctions-9075d687.js} +3 -3
- package/dist/cjs/{functions-48a748f0.js → functions-b73604c3.js} +297 -7
- package/dist/cjs/index-3c3d6c9f.js +1810 -0
- package/dist/cjs/{interfaces-ad9e80a6.js → interfaces-85d78ae9.js} +3 -4
- package/dist/cjs/{intl-29d2cc42.js → intl-b20d5420.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/priv-calendar.cjs.entry.js +554 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
- package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
- package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
- package/dist/cjs/ripple.cjs.js +13 -12
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +9 -7
- package/dist/cjs/wm-button.cjs.entry.js +6 -5
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +7 -6
- package/dist/cjs/wm-date-range.cjs.entry.js +446 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +90 -20
- package/dist/cjs/wm-file-list.cjs.entry.js +5 -4
- package/dist/cjs/wm-file.cjs.entry.js +5 -4
- package/dist/cjs/wm-input.cjs.entry.js +6 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
- package/dist/cjs/wm-modal-footer.cjs.entry.js +4 -3
- package/dist/cjs/wm-modal-header.cjs.entry.js +6 -5
- package/dist/cjs/wm-modal.cjs.entry.js +6 -5
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigator.cjs.entry.js +5 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
- package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
- package/dist/cjs/wm-search.cjs.entry.js +7 -6
- package/dist/cjs/wm-snackbar.cjs.entry.js +7 -6
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
- package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
- package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
- package/dist/cjs/wm-uploader.cjs.entry.js +7 -6
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +5 -4
- package/dist/collection/components/charts/chartFunctions.js +1 -1
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/{wm-datepicker/wm-datepicker.css → datepickers/datepicker.css} +40 -28
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +479 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +816 -0
- package/dist/collection/components/datepickers/wm-date-range.js +804 -0
- package/dist/collection/components/{wm-datepicker → datepickers}/wm-datepicker.js +114 -29
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +5 -5
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-option/wm-option.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.js +5 -4
- package/dist/collection/components/wm-select/wm-select.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/dev/action-menu.js +0 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart.js +37 -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 +75 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/scripts.js +31 -748
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +38 -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 +0 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/functions.js +187 -0
- package/dist/collection/global/interfaces.js +3 -4
- package/dist/{cjs/global-d5e26274.js → esm/app-globals-0c592c57.js} +7 -2
- package/dist/esm/{chartFunctions-d2d8f1b2.js → chartFunctions-730742b7.js} +3 -3
- package/dist/esm/{functions-58918a32.js → functions-eda88c5f.js} +292 -8
- package/dist/esm/index-0ed3ed7d.js +1780 -0
- package/dist/esm/{interfaces-9b75fb61.js → interfaces-cc5b177f.js} +3 -4
- package/dist/esm/{intl-f9d79dff.js → intl-de8432e2.js} +1 -1
- package/dist/esm/loader.js +6 -5
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/priv-calendar.entry.js +550 -0
- package/dist/esm/priv-chart-popover.entry.js +6 -5
- package/dist/esm/priv-navigator-button.entry.js +4 -3
- package/dist/esm/priv-navigator-item.entry.js +4 -3
- package/dist/esm/ripple.js +14 -13
- package/dist/esm/wm-action-menu_2.entry.js +9 -7
- package/dist/esm/wm-button.entry.js +6 -5
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +7 -6
- package/dist/esm/wm-date-range.entry.js +442 -0
- package/dist/esm/wm-datepicker.entry.js +90 -20
- package/dist/esm/wm-file-list.entry.js +5 -4
- package/dist/esm/wm-file.entry.js +5 -4
- package/dist/esm/wm-input.entry.js +6 -5
- package/dist/esm/wm-line-chart.entry.js +15 -14
- package/dist/esm/wm-modal-footer.entry.js +4 -3
- package/dist/esm/wm-modal-header.entry.js +6 -5
- package/dist/esm/wm-modal.entry.js +6 -5
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +5 -4
- package/dist/esm/wm-option_2.entry.js +10 -8
- package/dist/esm/wm-pagination.entry.js +5 -4
- package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
- package/dist/esm/wm-search.entry.js +7 -6
- package/dist/esm/wm-snackbar.entry.js +7 -6
- package/dist/esm/wm-tab-item_3.entry.js +11 -8
- package/dist/esm/wm-tag-input.entry.js +8 -7
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +6 -5
- package/dist/esm/wm-timepicker.entry.js +6 -5
- package/dist/esm/wm-toggletip.entry.js +6 -5
- package/dist/esm/wm-uploader.entry.js +7 -6
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-0c592c57.js +1 -0
- package/dist/esm-es5/{chartFunctions-d2d8f1b2.js → chartFunctions-730742b7.js} +1 -1
- package/dist/esm-es5/functions-eda88c5f.js +1 -0
- package/dist/esm-es5/index-0ed3ed7d.js +1 -0
- package/dist/esm-es5/{intl-f9d79dff.js → intl-de8432e2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -0
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/cdn.js +1 -2
- package/dist/loader/index.cjs.js +1 -2
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/ripple/p-0096e233.system.entry.js +1 -0
- package/dist/ripple/p-0ad27de3.system.entry.js +1 -0
- package/dist/ripple/p-0ccf9f96.entry.js +1 -0
- package/dist/ripple/{p-65420b71.entry.js → p-0e1523db.entry.js} +1 -1
- package/dist/ripple/{p-406f1e79.system.entry.js → p-0f117524.system.entry.js} +1 -1
- package/dist/ripple/p-0f7a85f4.entry.js +1 -0
- package/dist/ripple/p-13760c2c.entry.js +1 -0
- package/dist/ripple/p-14bab3fa.system.entry.js +1 -0
- package/dist/ripple/{p-add75652.system.entry.js → p-181068af.system.entry.js} +1 -1
- package/dist/ripple/p-1e536698.js +1 -0
- package/dist/ripple/{p-f9689d7a.entry.js → p-245f0080.entry.js} +1 -1
- package/dist/ripple/p-2c18b6d1.system.entry.js +1 -0
- package/dist/ripple/{p-fa3d10db.js → p-3036a712.js} +1 -1
- package/dist/ripple/p-340b18ea.entry.js +1 -0
- package/dist/ripple/p-37c39a40.system.entry.js +1 -0
- package/dist/ripple/{p-011a4acc.system.entry.js → p-39f4fca0.system.entry.js} +1 -1
- package/dist/ripple/p-3f5e94e3.system.js +1 -0
- package/dist/ripple/{p-a99b05de.system.entry.js → p-47d993b9.system.entry.js} +1 -1
- package/dist/ripple/p-48beea19.system.js +1 -0
- package/dist/ripple/{p-3a070f35.entry.js → p-4aae5688.entry.js} +1 -1
- package/dist/ripple/p-4ea963f3.system.entry.js +1 -0
- package/dist/ripple/p-501d3115.entry.js +1 -0
- package/dist/ripple/p-527581c5.entry.js +1 -0
- package/dist/ripple/p-563b5820.entry.js +1 -0
- package/dist/ripple/p-57695dba.js +2 -0
- package/dist/ripple/{p-6a9f7651.entry.js → p-5ab8174c.entry.js} +1 -1
- package/dist/ripple/p-5c6c325e.system.entry.js +1 -0
- package/dist/ripple/p-5f4c8d63.system.entry.js +1 -0
- package/dist/ripple/p-68e3e7c0.entry.js +1 -0
- package/dist/ripple/p-68fec757.system.entry.js +1 -0
- package/dist/ripple/p-6982bc34.entry.js +1 -0
- package/dist/ripple/p-6a793c40.system.entry.js +1 -0
- package/dist/ripple/p-6c31f0ad.system.entry.js +1 -0
- package/dist/ripple/p-6daf1bd3.system.entry.js +1 -0
- package/dist/ripple/p-6e406e8b.entry.js +1 -0
- package/dist/ripple/p-77210f26.entry.js +1 -0
- package/dist/ripple/p-7a844f5d.system.js +2 -0
- package/dist/ripple/{p-a03df46c.entry.js → p-7b5ac088.entry.js} +1 -1
- package/dist/ripple/p-7d5aaa73.system.entry.js +1 -0
- package/dist/ripple/p-80c92919.system.entry.js +1 -0
- package/dist/ripple/p-81fd2ed5.system.entry.js +1 -0
- package/dist/ripple/p-84d294d1.system.js +1 -0
- package/dist/ripple/p-85178a0d.entry.js +1 -0
- package/dist/ripple/p-8768ba4d.system.entry.js +1 -0
- package/dist/ripple/p-8af21b69.entry.js +1 -0
- package/dist/ripple/{p-eda4d59c.js → p-96cc3c63.js} +1 -1
- package/dist/ripple/{p-abe3242c.entry.js → p-98e77431.entry.js} +1 -1
- package/dist/ripple/p-a30eef53.entry.js +1 -0
- package/dist/ripple/{p-0ba8d3b6.system.entry.js → p-a36f5e7d.system.entry.js} +1 -1
- package/dist/ripple/p-ad6c979f.entry.js +1 -0
- package/dist/ripple/p-af8c1cfa.entry.js +1 -0
- package/dist/ripple/p-b19be746.entry.js +1 -0
- package/dist/ripple/p-b483ec14.entry.js +1 -0
- package/dist/ripple/p-b4a34241.entry.js +1 -0
- package/dist/ripple/{p-c9943d2e.system.entry.js → p-b6dcc6d8.system.entry.js} +1 -1
- package/dist/ripple/p-be28a95e.system.entry.js +1 -0
- package/dist/ripple/p-c6d970a4.entry.js +1 -0
- package/dist/ripple/{p-0d15e3f0.system.js → p-ce028b38.system.js} +1 -1
- package/dist/ripple/p-dba63006.system.entry.js +1 -0
- package/dist/ripple/p-dbb37269.system.entry.js +1 -0
- package/dist/ripple/{p-aecd5a1a.system.js → p-e0929c38.system.js} +1 -1
- package/dist/ripple/p-e19f8c43.js +1 -0
- package/dist/ripple/{p-02b625f6.system.entry.js → p-e3a15de3.system.entry.js} +1 -1
- package/dist/ripple/p-e3d66797.entry.js +1 -0
- package/dist/ripple/p-e64276f2.entry.js +1 -0
- package/dist/ripple/p-e9978b2f.entry.js +1 -0
- package/dist/ripple/p-ecbd3ea9.system.entry.js +1 -0
- package/dist/ripple/p-ecd26b33.system.entry.js +1 -0
- package/dist/ripple/p-ee49cb03.entry.js +1 -0
- package/dist/ripple/p-f0fbb86b.system.entry.js +1 -0
- package/dist/ripple/{p-7e56da2e.system.entry.js → p-f170963b.system.entry.js} +1 -1
- package/dist/ripple/{p-29509665.system.entry.js → p-f4f3bf9f.system.entry.js} +1 -1
- package/dist/ripple/{p-3e9fcb47.entry.js → p-f95bc54b.entry.js} +1 -1
- package/dist/ripple/{p-4fc6019b.system.entry.js → p-fd34619f.system.entry.js} +1 -1
- package/dist/ripple/{p-25446670.entry.js → p-ff095cec.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +72 -0
- package/dist/types/components/datepickers/wm-date-range.d.ts +68 -0
- package/dist/types/components/{wm-datepicker → datepickers}/wm-datepicker.d.ts +16 -2
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +1 -1
- package/dist/types/components.d.ts +111 -57
- package/dist/types/global/functions.d.ts +25 -0
- package/dist/types/global/interfaces.d.ts +14 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/package.json +1 -1
- package/dist/cjs/index-f8ef86de.js +0 -2578
- package/dist/cjs/priv-datepicker.cjs.entry.js +0 -654
- package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
- package/dist/collection/components/charts/screenshots.e2e.js +0 -96
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
- package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
- package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +0 -323
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +0 -942
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.spec.js +0 -76
- package/dist/collection/components/wm-datepicker/wm-datepicker.e2e.js +0 -382
- package/dist/collection/components/wm-datepicker/wm-datepicker.spec.js +0 -21
- package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
- package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
- package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
- package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
- package/dist/collection/components/wm-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/wm-option/wm-option.spec.js +0 -63
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
- package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
- package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
- package/dist/collection/components/wm-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/wm-select/wm-select.spec.js +0 -271
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
- package/dist/collection/global/functions.spec.js +0 -126
- package/dist/collection/lang/lang.spec.js +0 -20
- package/dist/esm/index-f164fbca.js +0 -2548
- package/dist/esm/priv-datepicker.entry.js +0 -650
- package/dist/esm-es5/functions-58918a32.js +0 -1
- package/dist/esm-es5/global-cb4fb91c.js +0 -1
- package/dist/esm-es5/index-f164fbca.js +0 -1
- package/dist/esm-es5/priv-datepicker.entry.js +0 -1
- package/dist/ripple/p-0fe97e85.system.js +0 -2
- package/dist/ripple/p-105f479a.system.entry.js +0 -1
- package/dist/ripple/p-1453ea51.system.entry.js +0 -1
- package/dist/ripple/p-194bdaa4.system.entry.js +0 -1
- package/dist/ripple/p-30a9ba6e.entry.js +0 -1
- package/dist/ripple/p-31f97455.system.entry.js +0 -1
- package/dist/ripple/p-39dc88f3.system.entry.js +0 -1
- package/dist/ripple/p-3dfc4242.entry.js +0 -1
- package/dist/ripple/p-4428c4f0.entry.js +0 -1
- package/dist/ripple/p-45126063.system.entry.js +0 -1
- package/dist/ripple/p-4bc27adf.entry.js +0 -1
- package/dist/ripple/p-4de51706.js +0 -2
- package/dist/ripple/p-4fb3748d.js +0 -1
- package/dist/ripple/p-5a4f76e1.entry.js +0 -1
- package/dist/ripple/p-5ca67373.entry.js +0 -1
- package/dist/ripple/p-5ceb9894.entry.js +0 -1
- package/dist/ripple/p-5f89831f.system.entry.js +0 -1
- package/dist/ripple/p-63d5db34.entry.js +0 -1
- package/dist/ripple/p-63fabfed.entry.js +0 -1
- package/dist/ripple/p-75592b7a.entry.js +0 -1
- package/dist/ripple/p-7e8daaac.entry.js +0 -1
- package/dist/ripple/p-7ea95937.entry.js +0 -1
- package/dist/ripple/p-7f1efb21.entry.js +0 -1
- package/dist/ripple/p-82d5ea8d.system.entry.js +0 -1
- package/dist/ripple/p-82f7eca7.entry.js +0 -1
- package/dist/ripple/p-88406560.system.entry.js +0 -1
- package/dist/ripple/p-895bfa1f.system.js +0 -1
- package/dist/ripple/p-8d840770.system.js +0 -1
- package/dist/ripple/p-8e1fd831.entry.js +0 -1
- package/dist/ripple/p-95e3ee3d.js +0 -1
- package/dist/ripple/p-994dc497.system.entry.js +0 -1
- package/dist/ripple/p-9dff37db.system.entry.js +0 -1
- package/dist/ripple/p-a71bc14f.entry.js +0 -1
- package/dist/ripple/p-b0579a2a.system.entry.js +0 -1
- package/dist/ripple/p-b1a4f626.system.entry.js +0 -1
- package/dist/ripple/p-b3dfb34a.entry.js +0 -1
- package/dist/ripple/p-b4cb2b12.entry.js +0 -1
- package/dist/ripple/p-c717d895.entry.js +0 -1
- package/dist/ripple/p-cd5fdcb1.entry.js +0 -1
- package/dist/ripple/p-cd659e3e.system.entry.js +0 -1
- package/dist/ripple/p-d02bc2f2.system.entry.js +0 -1
- package/dist/ripple/p-d87de822.system.entry.js +0 -1
- package/dist/ripple/p-da9937f5.system.js +0 -1
- package/dist/ripple/p-dd479c47.entry.js +0 -1
- package/dist/ripple/p-df78942e.entry.js +0 -1
- package/dist/ripple/p-e1b60b9e.system.entry.js +0 -1
- package/dist/ripple/p-e5de7cae.system.entry.js +0 -1
- package/dist/ripple/p-eb9cb021.system.entry.js +0 -1
- package/dist/ripple/p-ef3e35fa.entry.js +0 -1
- package/dist/ripple/p-f2556f03.system.entry.js +0 -1
- package/dist/ripple/p-f7ac9698.system.entry.js +0 -1
- /package/dist/esm-es5/{interfaces-9b75fb61.js → interfaces-cc5b177f.js} +0 -0
- /package/dist/ripple/{p-196eb2f3.js → p-2732bddd.js} +0 -0
- /package/dist/ripple/{p-1402cfa2.system.js → p-42fa7a77.system.js} +0 -0
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { intl, dateFind, toBool, handleDisabledAttribute, hasRoomRight, dateToISO, shouldOpenUp, calendar_months, } from "../../global/functions";
|
|
3
|
+
export class DateRange {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.openUp = false;
|
|
6
|
+
this.popupClicked = false;
|
|
7
|
+
this.toggleButtonClicked = false;
|
|
8
|
+
this.formats = { "mm/dd/yyyy": "US", "dd/mm/yyyy": "INT", "yyyy/mm/dd": "ISO" };
|
|
9
|
+
this.dateFormat = "mm/dd/yyyy";
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
this.errorMessage = undefined;
|
|
12
|
+
this.invalidStart = false;
|
|
13
|
+
this.invalidEnd = false;
|
|
14
|
+
this.label = "";
|
|
15
|
+
this.labelPosition = "top";
|
|
16
|
+
this.preselected = undefined;
|
|
17
|
+
this.requiredField = false;
|
|
18
|
+
this.valueStart = "";
|
|
19
|
+
this.valueEnd = "";
|
|
20
|
+
this.isExpanded = false;
|
|
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
|
+
isSameMonth(date1, date2) {
|
|
70
|
+
if (date1 && date2) {
|
|
71
|
+
let month1 = parseInt(date1.split("-")[1]);
|
|
72
|
+
let month2 = parseInt(date2.split("-")[1]);
|
|
73
|
+
return month1 == month2;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
toJSDate(date) {
|
|
80
|
+
if (date && this._isValidISO(date)) {
|
|
81
|
+
let newDate = new Date();
|
|
82
|
+
newDate.setUTCFullYear(parseInt(date.split("-")[0]), parseInt(date.split("-")[1]) - 1, parseInt(date.split("-")[2]));
|
|
83
|
+
return newDate;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
toISO(date) {
|
|
90
|
+
// returns the input when it can't reformat
|
|
91
|
+
return this._reformatDate(this.formats[this.dateFormat], "ISO", date);
|
|
92
|
+
}
|
|
93
|
+
handleDisabled() {
|
|
94
|
+
handleDisabledAttribute(this.el, this._disabled);
|
|
95
|
+
}
|
|
96
|
+
updateValueStart() {
|
|
97
|
+
this.startInputEl.value = this.valueStart ? this.valueStart : "";
|
|
98
|
+
}
|
|
99
|
+
updateValueEnd() {
|
|
100
|
+
this.endInputEl.value = this.valueEnd ? this.valueEnd : "";
|
|
101
|
+
}
|
|
102
|
+
handleErrorMessage() {
|
|
103
|
+
if (this.errorMessage) {
|
|
104
|
+
setTimeout(() => this.announce(this.errorMessage), 100);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
togglePopup() {
|
|
108
|
+
this.isExpanded ? this.closePopup() : this.openPopup();
|
|
109
|
+
this.toggleButtonClicked = true;
|
|
110
|
+
}
|
|
111
|
+
closePopup(returnFocus = false) {
|
|
112
|
+
// reset
|
|
113
|
+
// clearing these in case the user closes without finishing the process
|
|
114
|
+
this.date1 = undefined;
|
|
115
|
+
this.date2 = undefined;
|
|
116
|
+
this.startCalEl.startDate = undefined;
|
|
117
|
+
this.startCalEl.endDate = undefined;
|
|
118
|
+
this.startCalEl.hoverDate = undefined;
|
|
119
|
+
this.endCalEl.startDate = undefined;
|
|
120
|
+
this.endCalEl.endDate = undefined;
|
|
121
|
+
this.endCalEl.hoverDate = undefined;
|
|
122
|
+
this.isExpanded = false;
|
|
123
|
+
this.startCalEl.view = "day";
|
|
124
|
+
this.endCalEl.view = "day";
|
|
125
|
+
this.popupEl.classList.remove("open");
|
|
126
|
+
window.setTimeout(() => {
|
|
127
|
+
//not using display none in order to get measurements of the popup while hidden
|
|
128
|
+
this.popupEl.style.visibility = "hidden";
|
|
129
|
+
}, 250);
|
|
130
|
+
//Reset values so that menu reopens to day view with selected date in focus
|
|
131
|
+
if (returnFocus) {
|
|
132
|
+
this.toggleEl.focus();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
openPopup() {
|
|
136
|
+
// display stuff
|
|
137
|
+
this.openUp = shouldOpenUp(this.el, this.popupEl.clientHeight, this.labelWrapperEl.clientHeight);
|
|
138
|
+
if (hasRoomRight(this.el, 336)) {
|
|
139
|
+
this.popupEl.style.left = "0";
|
|
140
|
+
this.popupEl.style.right = "auto";
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.popupEl.style.right = "0";
|
|
144
|
+
this.popupEl.style.left = "auto";
|
|
145
|
+
}
|
|
146
|
+
this.popupEl.style.visibility = "visible";
|
|
147
|
+
window.requestAnimationFrame(() => {
|
|
148
|
+
this.popupEl.classList.add("open");
|
|
149
|
+
});
|
|
150
|
+
this.isExpanded = true;
|
|
151
|
+
// state stuff
|
|
152
|
+
this.startCalEl.focusDate = this.focusDates[0];
|
|
153
|
+
this.endCalEl.focusDate = this.focusDates[1];
|
|
154
|
+
this.startCalEl.focusCell();
|
|
155
|
+
if (this.valueStart) {
|
|
156
|
+
const startISO = this.toISO(this.valueStart);
|
|
157
|
+
if (this._isValidISO(startISO)) {
|
|
158
|
+
this.startCalEl.startDate = startISO;
|
|
159
|
+
}
|
|
160
|
+
if (this.valueEnd) {
|
|
161
|
+
const endISO = this.toISO(this.valueEnd);
|
|
162
|
+
if (this._isValidISO(endISO)) {
|
|
163
|
+
if (this.isSameMonth(startISO, endISO)) {
|
|
164
|
+
this.startCalEl.endDate = endISO;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
this.endCalEl.endDate = endISO;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
handleFocus() {
|
|
174
|
+
this.wrapperEl.classList.add("focus");
|
|
175
|
+
}
|
|
176
|
+
handleBlur() {
|
|
177
|
+
this.wrapperEl.classList.remove("focus");
|
|
178
|
+
}
|
|
179
|
+
handleStartInputBlur() {
|
|
180
|
+
this.wmStartInputBlur.emit();
|
|
181
|
+
}
|
|
182
|
+
handleEndInputBlur() {
|
|
183
|
+
this.wmEndInputBlur.emit();
|
|
184
|
+
}
|
|
185
|
+
handleStartInput(ev) {
|
|
186
|
+
// keep component's value in sync with input's value
|
|
187
|
+
this.valueStart = ev.target.value;
|
|
188
|
+
}
|
|
189
|
+
handleEndInput(ev) {
|
|
190
|
+
// keep component's value in sync with input's value
|
|
191
|
+
this.valueEnd = ev.target.value;
|
|
192
|
+
}
|
|
193
|
+
handleKey(ev) {
|
|
194
|
+
switch (ev.key) {
|
|
195
|
+
case "Escape":
|
|
196
|
+
ev.preventDefault();
|
|
197
|
+
ev.stopPropagation(); // prevents closing of parent modal
|
|
198
|
+
this.closePopup(true);
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
blurHandler() {
|
|
203
|
+
if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
|
|
204
|
+
this.closePopup();
|
|
205
|
+
}
|
|
206
|
+
this.popupClicked = false;
|
|
207
|
+
this.toggleButtonClicked = false;
|
|
208
|
+
}
|
|
209
|
+
// for cases where the user clicks or uses a shortcut to leave the document
|
|
210
|
+
handleBlurOnWindow() {
|
|
211
|
+
if (this.isExpanded) {
|
|
212
|
+
this.closePopup();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
handleDateFocus(ev) {
|
|
216
|
+
const cal = ev.target;
|
|
217
|
+
const newFocusVal = cal.focusDate;
|
|
218
|
+
// keeping calendars in sync
|
|
219
|
+
// (left one should always be before right one)
|
|
220
|
+
const startYearMonth = this.startCalEl.focusDate.slice(0, -3);
|
|
221
|
+
const endYearMonth = this.endCalEl.focusDate.slice(0, -3);
|
|
222
|
+
if (cal == this.startCalEl) {
|
|
223
|
+
if (startYearMonth >= endYearMonth) {
|
|
224
|
+
this.endCalEl.focusDate = dateFind.month.increase(this.startCalEl.focusDate, 1);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
else if (cal == this.endCalEl) {
|
|
228
|
+
if (endYearMonth <= startYearMonth) {
|
|
229
|
+
this.startCalEl.focusDate = dateFind.month.decrease(this.endCalEl.focusDate, 1);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
// SR announcements
|
|
233
|
+
if (this.oldFocusVal) {
|
|
234
|
+
const newYear = dateFind.year.asInt(newFocusVal);
|
|
235
|
+
const oldYear = dateFind.year.asInt(this.oldFocusVal);
|
|
236
|
+
const newMonth = dateFind.month.asInt(newFocusVal);
|
|
237
|
+
const oldMonth = dateFind.month.asInt(this.oldFocusVal);
|
|
238
|
+
if (cal.view === "day") {
|
|
239
|
+
if (newYear != oldYear || newMonth != oldMonth) {
|
|
240
|
+
this.liveRegionEl.innerHTML = `Viewing ${calendar_months[newMonth - 1]}, ${newYear}`;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
if (newYear != oldYear) {
|
|
245
|
+
this.liveRegionEl.innerHTML = `${newYear} selected.`;
|
|
246
|
+
}
|
|
247
|
+
else if (newMonth != oldMonth) {
|
|
248
|
+
this.liveRegionEl.innerHTML = `${calendar_months[newMonth - 1]}, ${newYear}`;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
this.oldFocusVal = cal.focusDate;
|
|
253
|
+
}
|
|
254
|
+
handlePopupBlurred(ev) {
|
|
255
|
+
// emit blur event when leaving component from priv-calendar
|
|
256
|
+
if (ev.detail.relatedTarget !== this.el) {
|
|
257
|
+
const event = new CustomEvent("blur");
|
|
258
|
+
// @ts-ignore
|
|
259
|
+
event.relatedTarget = ev.detail.relatedTarget;
|
|
260
|
+
this.el.dispatchEvent(event);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
handleCellTriggered(ev) {
|
|
264
|
+
const cal = ev.detail.cal;
|
|
265
|
+
const dateElement = ev.detail.cell;
|
|
266
|
+
const newDate = dateElement.getAttribute("data-year") +
|
|
267
|
+
"-" +
|
|
268
|
+
dateElement.getAttribute("data-month") +
|
|
269
|
+
"-" +
|
|
270
|
+
dateElement.textContent.padStart(2, "0");
|
|
271
|
+
if (this.startCalEl.endDate || this.endCalEl.endDate) {
|
|
272
|
+
// there were already 2 dates, user is setting a new range.
|
|
273
|
+
// set calendar state
|
|
274
|
+
this.startCalEl.startDate = undefined;
|
|
275
|
+
this.startCalEl.endDate = undefined;
|
|
276
|
+
this.endCalEl.startDate = undefined;
|
|
277
|
+
this.endCalEl.endDate = undefined;
|
|
278
|
+
cal.startDate = newDate;
|
|
279
|
+
// set component state
|
|
280
|
+
this.date1 = newDate;
|
|
281
|
+
this.date2 = undefined;
|
|
282
|
+
}
|
|
283
|
+
else if (this.date1 && newDate !== this.date1) {
|
|
284
|
+
// user is setting the end of the range
|
|
285
|
+
// ignore if same date as first is selected
|
|
286
|
+
// (acts as if it was re-selected as the first date)
|
|
287
|
+
// reorder if necessary
|
|
288
|
+
if (this.date1 > newDate) {
|
|
289
|
+
this.date2 = this.date1;
|
|
290
|
+
this.date1 = newDate;
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
this.date2 = newDate;
|
|
294
|
+
}
|
|
295
|
+
const detail = {
|
|
296
|
+
startDate: {
|
|
297
|
+
iso: this.date1,
|
|
298
|
+
us: this._reformatDate("ISO", "US", this.date1),
|
|
299
|
+
int: this._reformatDate("ISO", "INT", this.date1),
|
|
300
|
+
},
|
|
301
|
+
endDate: {
|
|
302
|
+
iso: this.date2,
|
|
303
|
+
us: this._reformatDate("ISO", "US", this.date2),
|
|
304
|
+
int: this._reformatDate("ISO", "INT", this.date2),
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
this.wmRangeSelection.emit(detail);
|
|
308
|
+
this.closePopup(true);
|
|
309
|
+
this.date1 = undefined;
|
|
310
|
+
this.date2 = undefined;
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
// calendars were clear, user sets first date
|
|
314
|
+
cal.startDate = newDate;
|
|
315
|
+
// component state
|
|
316
|
+
this.date1 = newDate;
|
|
317
|
+
}
|
|
318
|
+
// Create events to trigger onInput and onChange on host element, to get the updated value
|
|
319
|
+
// Because there are more ways to input than just typing, we are firing this event upon cellTriggered
|
|
320
|
+
const inputEvent = new CustomEvent("input");
|
|
321
|
+
this.el.dispatchEvent(inputEvent);
|
|
322
|
+
const changeEvent = new CustomEvent("change");
|
|
323
|
+
this.el.dispatchEvent(changeEvent);
|
|
324
|
+
}
|
|
325
|
+
handleOutOfCal() {
|
|
326
|
+
this.startCalEl.hoverDate = undefined;
|
|
327
|
+
this.endCalEl.hoverDate = undefined;
|
|
328
|
+
}
|
|
329
|
+
handleCellHovered(ev) {
|
|
330
|
+
this.startCalEl.hoverDate = this.startCalEl.startDate === ev.detail ? undefined : ev.detail;
|
|
331
|
+
this.endCalEl.hoverDate = this.endCalEl.startDate === ev.detail ? undefined : ev.detail;
|
|
332
|
+
}
|
|
333
|
+
async reformatDate(inputFormat, outputFormat, date) {
|
|
334
|
+
return this._reformatDate(inputFormat, outputFormat, date);
|
|
335
|
+
}
|
|
336
|
+
_reformatDate(inputFormat, outputFormat, date) {
|
|
337
|
+
// this function reformats date strings to/from the storage format ONLY. US -> INT and vice versa is not supported.
|
|
338
|
+
if (inputFormat !== "ISO" && outputFormat !== "ISO")
|
|
339
|
+
return "";
|
|
340
|
+
// return if missing args
|
|
341
|
+
if (!inputFormat || !outputFormat || !date)
|
|
342
|
+
return "";
|
|
343
|
+
// 1, 2, or 4 digits, separator, 1 or 2 digits, separator, then 1 or 2 or 4 digits
|
|
344
|
+
const parsableEntry = /^(\d{1}|\d{2}|\d{4})[\-\.\/]\d{1,2}[\-\.\/](\d{1}|\d{2}|\d{4})$/;
|
|
345
|
+
if (!parsableEntry.test(date)) {
|
|
346
|
+
return date;
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
const dateArr = date.replace(/[\-\.]/gi, "/").split("/");
|
|
350
|
+
switch (outputFormat) {
|
|
351
|
+
case "US":
|
|
352
|
+
return dateArr[1].padStart(2, "0") + "/" + dateArr[2].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
|
|
353
|
+
case "INT":
|
|
354
|
+
return dateArr[2].padStart(2, "0") + "/" + dateArr[1].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
|
|
355
|
+
case "ISO":
|
|
356
|
+
if (inputFormat === "US") {
|
|
357
|
+
return dateArr[2].padStart(4, "20") + "-" + dateArr[0].padStart(2, "0") + "-" + dateArr[1].padStart(2, "0");
|
|
358
|
+
}
|
|
359
|
+
else if (inputFormat === "INT") {
|
|
360
|
+
return dateArr[2].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[0].padStart(2, "0");
|
|
361
|
+
}
|
|
362
|
+
else if (inputFormat === "ISO") {
|
|
363
|
+
return dateArr[0].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[2].padStart(2, "0");
|
|
364
|
+
}
|
|
365
|
+
default:
|
|
366
|
+
return dateArr.join("/");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
async isValidISO(input) {
|
|
371
|
+
return this._isValidISO(input);
|
|
372
|
+
}
|
|
373
|
+
_isValidISO(input) {
|
|
374
|
+
const ISOFormat = /^\d\d\d\d[-]\d\d[-]\d\d$/;
|
|
375
|
+
if (!input || !ISOFormat.test(input)) {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
// Parse the ISO date parts to integers
|
|
380
|
+
const parts = input.split("-");
|
|
381
|
+
const day = parseInt(parts[2], 10);
|
|
382
|
+
const month = parseInt(parts[1], 10);
|
|
383
|
+
const year = parseInt(parts[0], 10);
|
|
384
|
+
// Check the ranges of month and year
|
|
385
|
+
if (year < 1000 || year > 3000 || month == 0 || month > 12)
|
|
386
|
+
return false;
|
|
387
|
+
let monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
388
|
+
// Adjust for leap years
|
|
389
|
+
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0))
|
|
390
|
+
monthLength[1] = 29;
|
|
391
|
+
// Check the range of the day
|
|
392
|
+
return day > 0 && day <= monthLength[month - 1];
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
componentWillLoad() {
|
|
396
|
+
if (this.label === "") {
|
|
397
|
+
console.error("You must include a label prop for the datepicker input (for accessibility reasons), even if the label position is none.");
|
|
398
|
+
}
|
|
399
|
+
handleDisabledAttribute(this.el, this._disabled);
|
|
400
|
+
}
|
|
401
|
+
announce(message) {
|
|
402
|
+
// \u00A0 is a non-breaking space character, which causes the message to be read as a new one
|
|
403
|
+
if (this.liveRegionEl.textContent === message) {
|
|
404
|
+
message += "\u00A0";
|
|
405
|
+
}
|
|
406
|
+
this.liveRegionEl.textContent = message;
|
|
407
|
+
}
|
|
408
|
+
render() {
|
|
409
|
+
return (h(Host, { key: 'e4b973ea71bd8ebdb2a27613734d23b82a47b94f', "aria-busy": "false" }, h("div", { key: '31430bc3aad1dc7dc657f265b7d1ddcdda2c80a8', ref: (d) => (this.wrapperEl = d), class: `wrapper label-${this.labelPosition}` }, h("div", { key: '94a9f48ae0e4cfe662a55c57305fe66b80fa0c97', class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { key: '785315289563fcdaded7b6a3558c0c57bd44e68d', id: "dateRangeLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { key: 'd920a980a492bdf663d8d4a6676d250e6ab08f12', "aria-hidden": "true", class: "required" }, "*"))))), h("div", { key: '341bd2b004e623f9222e5911d2c3eb86aaa0595a' }, h("div", { key: 'fde4a88c62e793f8d74d1ec2c6b95c0ed8ccd6bb', class: "range-wrapper" }, h("input", { key: '7397419c42ef7e9a72fa5d05cd5b5b9eead4fd5a', 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.label, "aria-required": this.requiredField ? "true" : null }), "\u00A0-\u00A0", h("input", { key: '0f4cd5c1c9ab24fd7159869921b81abf0cb484ab', 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.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: 'ca243dd352e1a03188f25c9b339e3a9bd8c49237', class: "container", id: "wm-container" }, h("button", { key: '690818b3f86aadedf0f5f5500eee51950dc9cb3f', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-describedby": "date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '9316263f1c0d861b4b818c793604ce0a34f66aff', class: "calendar", title: intl.formatMessage({
|
|
410
|
+
id: "date.calendarView",
|
|
411
|
+
defaultMessage: "Calendar View",
|
|
412
|
+
description: "Calendar button",
|
|
413
|
+
}) })), h("div", { key: '443f8cae814de4b7256de39b05790f629c336b48', 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", { key: '3bc56e6abc8150bd648cde6deeb66327bcf19aac', class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.endCalEl.focusLastFocusable() }), h("priv-calendar", { key: '5e4bdcf5ceee6d116d833a5fae09c271eb145263', ref: (el) => (this.startCalEl = el), onClick: () => (this.popupClicked = true), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("priv-calendar", { key: '83414ce9ae70b3f9c7fa453183d356214993da1b', ref: (el) => (this.endCalEl = el), onClick: () => (this.popupClicked = true), onDateFocus: (ev) => this.handleDateFocus(ev) }), h("div", { key: 'fc707a6d41d0b5d82d2b0428772883844fd08f9b', class: "trapfocus", tabIndex: this.isExpanded ? 0 : undefined, onFocus: () => this.startCalEl.focusFirstFocusable() })), h("div", { key: '681f679b6e360fe6ecb53ea63e6541937622e6e9', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '442f00d796ef3be3aa0a20173ccca0d7c8529878', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
414
|
+
id: "date.selectMonth",
|
|
415
|
+
defaultMessage: "Activate to select a month.",
|
|
416
|
+
description: "Calendar button",
|
|
417
|
+
})), h("div", { key: '25706e52be250bfb44c95417e874d5411f9d5cc5', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
418
|
+
id: "date.selectYear",
|
|
419
|
+
defaultMessage: "Activate to select a year.",
|
|
420
|
+
description: "Calendar button",
|
|
421
|
+
})))), h("div", { key: '5d29a04c792e3330620bc14e17c312a85e635553', id: "error", class: "error" }, this.errorMessage), h("div", { key: '1d4bd320bb3a2e088aa7b55997d51a497f567d1d', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
422
|
+
}
|
|
423
|
+
static get is() { return "wm-date-range"; }
|
|
424
|
+
static get encapsulation() { return "shadow"; }
|
|
425
|
+
static get delegatesFocus() { return true; }
|
|
426
|
+
static get originalStyleUrls() {
|
|
427
|
+
return {
|
|
428
|
+
"$": ["datepicker.scss"]
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
static get styleUrls() {
|
|
432
|
+
return {
|
|
433
|
+
"$": ["datepicker.css"]
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
static get properties() {
|
|
437
|
+
return {
|
|
438
|
+
"dateFormat": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"mutable": false,
|
|
441
|
+
"complexType": {
|
|
442
|
+
"original": "string",
|
|
443
|
+
"resolved": "string",
|
|
444
|
+
"references": {}
|
|
445
|
+
},
|
|
446
|
+
"required": false,
|
|
447
|
+
"optional": false,
|
|
448
|
+
"docs": {
|
|
449
|
+
"tags": [],
|
|
450
|
+
"text": ""
|
|
451
|
+
},
|
|
452
|
+
"attribute": "date-format",
|
|
453
|
+
"reflect": false,
|
|
454
|
+
"defaultValue": "\"mm/dd/yyyy\""
|
|
455
|
+
},
|
|
456
|
+
"disabled": {
|
|
457
|
+
"type": "boolean",
|
|
458
|
+
"mutable": false,
|
|
459
|
+
"complexType": {
|
|
460
|
+
"original": "boolean",
|
|
461
|
+
"resolved": "boolean",
|
|
462
|
+
"references": {}
|
|
463
|
+
},
|
|
464
|
+
"required": false,
|
|
465
|
+
"optional": false,
|
|
466
|
+
"docs": {
|
|
467
|
+
"tags": [],
|
|
468
|
+
"text": ""
|
|
469
|
+
},
|
|
470
|
+
"attribute": "disabled",
|
|
471
|
+
"reflect": false,
|
|
472
|
+
"defaultValue": "false"
|
|
473
|
+
},
|
|
474
|
+
"errorMessage": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"mutable": false,
|
|
477
|
+
"complexType": {
|
|
478
|
+
"original": "string",
|
|
479
|
+
"resolved": "string | undefined",
|
|
480
|
+
"references": {}
|
|
481
|
+
},
|
|
482
|
+
"required": false,
|
|
483
|
+
"optional": true,
|
|
484
|
+
"docs": {
|
|
485
|
+
"tags": [],
|
|
486
|
+
"text": ""
|
|
487
|
+
},
|
|
488
|
+
"attribute": "error-message",
|
|
489
|
+
"reflect": true
|
|
490
|
+
},
|
|
491
|
+
"invalidStart": {
|
|
492
|
+
"type": "boolean",
|
|
493
|
+
"mutable": false,
|
|
494
|
+
"complexType": {
|
|
495
|
+
"original": "boolean",
|
|
496
|
+
"resolved": "boolean",
|
|
497
|
+
"references": {}
|
|
498
|
+
},
|
|
499
|
+
"required": false,
|
|
500
|
+
"optional": false,
|
|
501
|
+
"docs": {
|
|
502
|
+
"tags": [],
|
|
503
|
+
"text": ""
|
|
504
|
+
},
|
|
505
|
+
"attribute": "invalid-start",
|
|
506
|
+
"reflect": false,
|
|
507
|
+
"defaultValue": "false"
|
|
508
|
+
},
|
|
509
|
+
"invalidEnd": {
|
|
510
|
+
"type": "boolean",
|
|
511
|
+
"mutable": false,
|
|
512
|
+
"complexType": {
|
|
513
|
+
"original": "boolean",
|
|
514
|
+
"resolved": "boolean",
|
|
515
|
+
"references": {}
|
|
516
|
+
},
|
|
517
|
+
"required": false,
|
|
518
|
+
"optional": false,
|
|
519
|
+
"docs": {
|
|
520
|
+
"tags": [],
|
|
521
|
+
"text": ""
|
|
522
|
+
},
|
|
523
|
+
"attribute": "invalid-end",
|
|
524
|
+
"reflect": false,
|
|
525
|
+
"defaultValue": "false"
|
|
526
|
+
},
|
|
527
|
+
"label": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"mutable": false,
|
|
530
|
+
"complexType": {
|
|
531
|
+
"original": "string",
|
|
532
|
+
"resolved": "string",
|
|
533
|
+
"references": {}
|
|
534
|
+
},
|
|
535
|
+
"required": false,
|
|
536
|
+
"optional": false,
|
|
537
|
+
"docs": {
|
|
538
|
+
"tags": [],
|
|
539
|
+
"text": ""
|
|
540
|
+
},
|
|
541
|
+
"attribute": "label",
|
|
542
|
+
"reflect": false,
|
|
543
|
+
"defaultValue": "\"\""
|
|
544
|
+
},
|
|
545
|
+
"labelPosition": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"mutable": false,
|
|
548
|
+
"complexType": {
|
|
549
|
+
"original": "\"top\" | \"left\" | \"none\"",
|
|
550
|
+
"resolved": "\"left\" | \"none\" | \"top\"",
|
|
551
|
+
"references": {}
|
|
552
|
+
},
|
|
553
|
+
"required": false,
|
|
554
|
+
"optional": false,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": ""
|
|
558
|
+
},
|
|
559
|
+
"attribute": "label-position",
|
|
560
|
+
"reflect": false,
|
|
561
|
+
"defaultValue": "\"top\""
|
|
562
|
+
},
|
|
563
|
+
"preselected": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"mutable": false,
|
|
566
|
+
"complexType": {
|
|
567
|
+
"original": "string",
|
|
568
|
+
"resolved": "string | undefined",
|
|
569
|
+
"references": {}
|
|
570
|
+
},
|
|
571
|
+
"required": false,
|
|
572
|
+
"optional": true,
|
|
573
|
+
"docs": {
|
|
574
|
+
"tags": [],
|
|
575
|
+
"text": ""
|
|
576
|
+
},
|
|
577
|
+
"attribute": "preselected",
|
|
578
|
+
"reflect": false
|
|
579
|
+
},
|
|
580
|
+
"requiredField": {
|
|
581
|
+
"type": "boolean",
|
|
582
|
+
"mutable": false,
|
|
583
|
+
"complexType": {
|
|
584
|
+
"original": "boolean",
|
|
585
|
+
"resolved": "boolean",
|
|
586
|
+
"references": {}
|
|
587
|
+
},
|
|
588
|
+
"required": false,
|
|
589
|
+
"optional": false,
|
|
590
|
+
"docs": {
|
|
591
|
+
"tags": [],
|
|
592
|
+
"text": ""
|
|
593
|
+
},
|
|
594
|
+
"attribute": "required-field",
|
|
595
|
+
"reflect": false,
|
|
596
|
+
"defaultValue": "false"
|
|
597
|
+
},
|
|
598
|
+
"valueStart": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"mutable": true,
|
|
601
|
+
"complexType": {
|
|
602
|
+
"original": "string",
|
|
603
|
+
"resolved": "string | undefined",
|
|
604
|
+
"references": {}
|
|
605
|
+
},
|
|
606
|
+
"required": false,
|
|
607
|
+
"optional": true,
|
|
608
|
+
"docs": {
|
|
609
|
+
"tags": [],
|
|
610
|
+
"text": ""
|
|
611
|
+
},
|
|
612
|
+
"attribute": "value-start",
|
|
613
|
+
"reflect": false,
|
|
614
|
+
"defaultValue": "\"\""
|
|
615
|
+
},
|
|
616
|
+
"valueEnd": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"mutable": true,
|
|
619
|
+
"complexType": {
|
|
620
|
+
"original": "string",
|
|
621
|
+
"resolved": "string | undefined",
|
|
622
|
+
"references": {}
|
|
623
|
+
},
|
|
624
|
+
"required": false,
|
|
625
|
+
"optional": true,
|
|
626
|
+
"docs": {
|
|
627
|
+
"tags": [],
|
|
628
|
+
"text": ""
|
|
629
|
+
},
|
|
630
|
+
"attribute": "value-end",
|
|
631
|
+
"reflect": false,
|
|
632
|
+
"defaultValue": "\"\""
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
static get states() {
|
|
637
|
+
return {
|
|
638
|
+
"isExpanded": {}
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
static get events() {
|
|
642
|
+
return [{
|
|
643
|
+
"method": "wmRangeSelection",
|
|
644
|
+
"name": "wmRangeSelection",
|
|
645
|
+
"bubbles": true,
|
|
646
|
+
"cancelable": true,
|
|
647
|
+
"composed": true,
|
|
648
|
+
"docs": {
|
|
649
|
+
"tags": [],
|
|
650
|
+
"text": ""
|
|
651
|
+
},
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "any",
|
|
654
|
+
"resolved": "any",
|
|
655
|
+
"references": {}
|
|
656
|
+
}
|
|
657
|
+
}, {
|
|
658
|
+
"method": "wmStartInputBlur",
|
|
659
|
+
"name": "wmStartInputBlur",
|
|
660
|
+
"bubbles": true,
|
|
661
|
+
"cancelable": true,
|
|
662
|
+
"composed": true,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [],
|
|
665
|
+
"text": ""
|
|
666
|
+
},
|
|
667
|
+
"complexType": {
|
|
668
|
+
"original": "any",
|
|
669
|
+
"resolved": "any",
|
|
670
|
+
"references": {}
|
|
671
|
+
}
|
|
672
|
+
}, {
|
|
673
|
+
"method": "wmEndInputBlur",
|
|
674
|
+
"name": "wmEndInputBlur",
|
|
675
|
+
"bubbles": true,
|
|
676
|
+
"cancelable": true,
|
|
677
|
+
"composed": true,
|
|
678
|
+
"docs": {
|
|
679
|
+
"tags": [],
|
|
680
|
+
"text": ""
|
|
681
|
+
},
|
|
682
|
+
"complexType": {
|
|
683
|
+
"original": "any",
|
|
684
|
+
"resolved": "any",
|
|
685
|
+
"references": {}
|
|
686
|
+
}
|
|
687
|
+
}];
|
|
688
|
+
}
|
|
689
|
+
static get methods() {
|
|
690
|
+
return {
|
|
691
|
+
"reformatDate": {
|
|
692
|
+
"complexType": {
|
|
693
|
+
"signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
|
|
694
|
+
"parameters": [{
|
|
695
|
+
"name": "inputFormat",
|
|
696
|
+
"type": "string",
|
|
697
|
+
"docs": ""
|
|
698
|
+
}, {
|
|
699
|
+
"name": "outputFormat",
|
|
700
|
+
"type": "string",
|
|
701
|
+
"docs": ""
|
|
702
|
+
}, {
|
|
703
|
+
"name": "date",
|
|
704
|
+
"type": "string | undefined",
|
|
705
|
+
"docs": ""
|
|
706
|
+
}],
|
|
707
|
+
"references": {
|
|
708
|
+
"Promise": {
|
|
709
|
+
"location": "global",
|
|
710
|
+
"id": "global::Promise"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"return": "Promise<string>"
|
|
714
|
+
},
|
|
715
|
+
"docs": {
|
|
716
|
+
"text": "",
|
|
717
|
+
"tags": []
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"isValidISO": {
|
|
721
|
+
"complexType": {
|
|
722
|
+
"signature": "(input?: string) => Promise<boolean>",
|
|
723
|
+
"parameters": [{
|
|
724
|
+
"name": "input",
|
|
725
|
+
"type": "string | undefined",
|
|
726
|
+
"docs": ""
|
|
727
|
+
}],
|
|
728
|
+
"references": {
|
|
729
|
+
"Promise": {
|
|
730
|
+
"location": "global",
|
|
731
|
+
"id": "global::Promise"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"return": "Promise<boolean>"
|
|
735
|
+
},
|
|
736
|
+
"docs": {
|
|
737
|
+
"text": "",
|
|
738
|
+
"tags": []
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
static get elementRef() { return "el"; }
|
|
744
|
+
static get watchers() {
|
|
745
|
+
return [{
|
|
746
|
+
"propName": "disabled",
|
|
747
|
+
"methodName": "handleDisabled"
|
|
748
|
+
}, {
|
|
749
|
+
"propName": "valueStart",
|
|
750
|
+
"methodName": "updateValueStart"
|
|
751
|
+
}, {
|
|
752
|
+
"propName": "valueEnd",
|
|
753
|
+
"methodName": "updateValueEnd"
|
|
754
|
+
}, {
|
|
755
|
+
"propName": "errorMessage",
|
|
756
|
+
"methodName": "handleErrorMessage"
|
|
757
|
+
}];
|
|
758
|
+
}
|
|
759
|
+
static get listeners() {
|
|
760
|
+
return [{
|
|
761
|
+
"name": "keydown",
|
|
762
|
+
"method": "handleKey",
|
|
763
|
+
"target": undefined,
|
|
764
|
+
"capture": false,
|
|
765
|
+
"passive": false
|
|
766
|
+
}, {
|
|
767
|
+
"name": "click",
|
|
768
|
+
"method": "blurHandler",
|
|
769
|
+
"target": "document",
|
|
770
|
+
"capture": false,
|
|
771
|
+
"passive": false
|
|
772
|
+
}, {
|
|
773
|
+
"name": "blur",
|
|
774
|
+
"method": "handleBlurOnWindow",
|
|
775
|
+
"target": "window",
|
|
776
|
+
"capture": false,
|
|
777
|
+
"passive": false
|
|
778
|
+
}, {
|
|
779
|
+
"name": "popupBlurred",
|
|
780
|
+
"method": "handlePopupBlurred",
|
|
781
|
+
"target": undefined,
|
|
782
|
+
"capture": false,
|
|
783
|
+
"passive": false
|
|
784
|
+
}, {
|
|
785
|
+
"name": "cellTriggered",
|
|
786
|
+
"method": "handleCellTriggered",
|
|
787
|
+
"target": undefined,
|
|
788
|
+
"capture": false,
|
|
789
|
+
"passive": false
|
|
790
|
+
}, {
|
|
791
|
+
"name": "outOfCal",
|
|
792
|
+
"method": "handleOutOfCal",
|
|
793
|
+
"target": undefined,
|
|
794
|
+
"capture": false,
|
|
795
|
+
"passive": false
|
|
796
|
+
}, {
|
|
797
|
+
"name": "cellHovered",
|
|
798
|
+
"method": "handleCellHovered",
|
|
799
|
+
"target": undefined,
|
|
800
|
+
"capture": false,
|
|
801
|
+
"passive": false
|
|
802
|
+
}];
|
|
803
|
+
}
|
|
804
|
+
}
|