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