@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
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./index-3c3d6c9f.js');
|
|
4
|
+
|
|
5
|
+
const version = "5.3.0-0";
|
|
2
6
|
|
|
3
7
|
// PRINT RIPPLE VERSION IN CONSOLE
|
|
4
8
|
// test envs return 0 for plugin.length
|
|
@@ -81,3 +85,8 @@ tooltipStyles.textContent = `
|
|
|
81
85
|
document.head.appendChild(tooltipStyles);
|
|
82
86
|
tooltipContainer.appendChild(tooltipEl);
|
|
83
87
|
document.querySelector("body").appendChild(tooltipContainer);
|
|
88
|
+
const globalFn = () => { };
|
|
89
|
+
|
|
90
|
+
const globalScripts = globalFn;
|
|
91
|
+
|
|
92
|
+
exports.globalScripts = globalScripts;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const functions = require('./functions-
|
|
3
|
+
const index = require('./index-3c3d6c9f.js');
|
|
4
|
+
const functions = require('./functions-b73604c3.js');
|
|
5
5
|
|
|
6
6
|
const colors = {
|
|
7
7
|
salmon: "#ff5f4e",
|
|
@@ -86,7 +86,7 @@ const allChartsDetails = {
|
|
|
86
86
|
bar5: {
|
|
87
87
|
size: 400,
|
|
88
88
|
colors: [
|
|
89
|
-
colors.gray,
|
|
89
|
+
colors.gray, // this is only used if prop notStartedColor is set
|
|
90
90
|
colors.lavender,
|
|
91
91
|
colors.midnight,
|
|
92
92
|
"#0089e4",
|
|
@@ -3090,7 +3090,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3090
3090
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3091
3091
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3092
3092
|
***************************************************************************** */
|
|
3093
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
3093
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
3094
3094
|
|
|
3095
3095
|
var extendStatics = function(d, b) {
|
|
3096
3096
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -3346,7 +3346,7 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
3346
3346
|
throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');
|
|
3347
3347
|
// Weekday
|
|
3348
3348
|
case 'E':
|
|
3349
|
-
result.weekday = len === 4 ? '
|
|
3349
|
+
result.weekday = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';
|
|
3350
3350
|
break;
|
|
3351
3351
|
case 'e':
|
|
3352
3352
|
if (len < 4) {
|
|
@@ -3404,7 +3404,7 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
3404
3404
|
result.timeZoneName = len < 4 ? 'short' : 'long';
|
|
3405
3405
|
break;
|
|
3406
3406
|
case 'Z': // 1..3, 4, 5: The ISO8601 varios formats
|
|
3407
|
-
case 'O': // 1, 4:
|
|
3407
|
+
case 'O': // 1, 4: milliseconds in day short, long
|
|
3408
3408
|
case 'v': // 1, 4: generic non-location format
|
|
3409
3409
|
case 'V': // 1, 2, 3, 4: time zone ID or city
|
|
3410
3410
|
case 'X': // 1, 2, 3, 4: The ISO8601 varios formats
|
|
@@ -3635,6 +3635,27 @@ function parseNumberSkeleton(tokens) {
|
|
|
3635
3635
|
case 'scale':
|
|
3636
3636
|
result.scale = parseFloat(token.options[0]);
|
|
3637
3637
|
continue;
|
|
3638
|
+
case 'rounding-mode-floor':
|
|
3639
|
+
result.roundingMode = 'floor';
|
|
3640
|
+
continue;
|
|
3641
|
+
case 'rounding-mode-ceiling':
|
|
3642
|
+
result.roundingMode = 'ceil';
|
|
3643
|
+
continue;
|
|
3644
|
+
case 'rounding-mode-down':
|
|
3645
|
+
result.roundingMode = 'trunc';
|
|
3646
|
+
continue;
|
|
3647
|
+
case 'rounding-mode-up':
|
|
3648
|
+
result.roundingMode = 'expand';
|
|
3649
|
+
continue;
|
|
3650
|
+
case 'rounding-mode-half-even':
|
|
3651
|
+
result.roundingMode = 'halfEven';
|
|
3652
|
+
continue;
|
|
3653
|
+
case 'rounding-mode-half-down':
|
|
3654
|
+
result.roundingMode = 'halfTrunc';
|
|
3655
|
+
continue;
|
|
3656
|
+
case 'rounding-mode-half-up':
|
|
3657
|
+
result.roundingMode = 'halfExpand';
|
|
3658
|
+
continue;
|
|
3638
3659
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
3639
3660
|
case 'integer-width':
|
|
3640
3661
|
if (token.options.length > 1) {
|
|
@@ -3834,6 +3855,10 @@ var timeData = {
|
|
|
3834
3855
|
"hb",
|
|
3835
3856
|
"H"
|
|
3836
3857
|
],
|
|
3858
|
+
"BI": [
|
|
3859
|
+
"H",
|
|
3860
|
+
"h"
|
|
3861
|
+
],
|
|
3837
3862
|
"BJ": [
|
|
3838
3863
|
"H",
|
|
3839
3864
|
"hB"
|
|
@@ -3883,6 +3908,10 @@ var timeData = {
|
|
|
3883
3908
|
"hb",
|
|
3884
3909
|
"hB"
|
|
3885
3910
|
],
|
|
3911
|
+
"BY": [
|
|
3912
|
+
"H",
|
|
3913
|
+
"h"
|
|
3914
|
+
],
|
|
3886
3915
|
"BZ": [
|
|
3887
3916
|
"H",
|
|
3888
3917
|
"h",
|
|
@@ -3971,6 +4000,10 @@ var timeData = {
|
|
|
3971
4000
|
"H",
|
|
3972
4001
|
"hB"
|
|
3973
4002
|
],
|
|
4003
|
+
"CW": [
|
|
4004
|
+
"H",
|
|
4005
|
+
"hB"
|
|
4006
|
+
],
|
|
3974
4007
|
"CX": [
|
|
3975
4008
|
"H",
|
|
3976
4009
|
"h",
|
|
@@ -4086,6 +4119,10 @@ var timeData = {
|
|
|
4086
4119
|
"H",
|
|
4087
4120
|
"hB"
|
|
4088
4121
|
],
|
|
4122
|
+
"FO": [
|
|
4123
|
+
"H",
|
|
4124
|
+
"h"
|
|
4125
|
+
],
|
|
4089
4126
|
"FR": [
|
|
4090
4127
|
"H",
|
|
4091
4128
|
"hB"
|
|
@@ -4131,6 +4168,10 @@ var timeData = {
|
|
|
4131
4168
|
"hb",
|
|
4132
4169
|
"hB"
|
|
4133
4170
|
],
|
|
4171
|
+
"GL": [
|
|
4172
|
+
"H",
|
|
4173
|
+
"h"
|
|
4174
|
+
],
|
|
4134
4175
|
"GM": [
|
|
4135
4176
|
"h",
|
|
4136
4177
|
"hb",
|
|
@@ -4195,6 +4236,10 @@ var timeData = {
|
|
|
4195
4236
|
"H",
|
|
4196
4237
|
"hB"
|
|
4197
4238
|
],
|
|
4239
|
+
"HU": [
|
|
4240
|
+
"H",
|
|
4241
|
+
"h"
|
|
4242
|
+
],
|
|
4198
4243
|
"IC": [
|
|
4199
4244
|
"H",
|
|
4200
4245
|
"h",
|
|
@@ -4267,8 +4312,8 @@ var timeData = {
|
|
|
4267
4312
|
],
|
|
4268
4313
|
"JP": [
|
|
4269
4314
|
"H",
|
|
4270
|
-
"
|
|
4271
|
-
"
|
|
4315
|
+
"K",
|
|
4316
|
+
"h"
|
|
4272
4317
|
],
|
|
4273
4318
|
"KE": [
|
|
4274
4319
|
"hB",
|
|
@@ -4419,6 +4464,10 @@ var timeData = {
|
|
|
4419
4464
|
"H",
|
|
4420
4465
|
"hB"
|
|
4421
4466
|
],
|
|
4467
|
+
"MG": [
|
|
4468
|
+
"H",
|
|
4469
|
+
"h"
|
|
4470
|
+
],
|
|
4422
4471
|
"MH": [
|
|
4423
4472
|
"h",
|
|
4424
4473
|
"hb",
|
|
@@ -4474,6 +4523,18 @@ var timeData = {
|
|
|
4474
4523
|
"hb",
|
|
4475
4524
|
"hB"
|
|
4476
4525
|
],
|
|
4526
|
+
"MT": [
|
|
4527
|
+
"H",
|
|
4528
|
+
"h"
|
|
4529
|
+
],
|
|
4530
|
+
"MU": [
|
|
4531
|
+
"H",
|
|
4532
|
+
"h"
|
|
4533
|
+
],
|
|
4534
|
+
"MV": [
|
|
4535
|
+
"H",
|
|
4536
|
+
"h"
|
|
4537
|
+
],
|
|
4477
4538
|
"MW": [
|
|
4478
4539
|
"h",
|
|
4479
4540
|
"hb",
|
|
@@ -4531,6 +4592,10 @@ var timeData = {
|
|
|
4531
4592
|
"H",
|
|
4532
4593
|
"hB"
|
|
4533
4594
|
],
|
|
4595
|
+
"NO": [
|
|
4596
|
+
"H",
|
|
4597
|
+
"h"
|
|
4598
|
+
],
|
|
4534
4599
|
"NP": [
|
|
4535
4600
|
"H",
|
|
4536
4601
|
"h",
|
|
@@ -4592,6 +4657,10 @@ var timeData = {
|
|
|
4592
4657
|
"hB",
|
|
4593
4658
|
"H"
|
|
4594
4659
|
],
|
|
4660
|
+
"PL": [
|
|
4661
|
+
"H",
|
|
4662
|
+
"h"
|
|
4663
|
+
],
|
|
4595
4664
|
"PM": [
|
|
4596
4665
|
"H",
|
|
4597
4666
|
"hB"
|
|
@@ -4650,6 +4719,10 @@ var timeData = {
|
|
|
4650
4719
|
"RU": [
|
|
4651
4720
|
"H"
|
|
4652
4721
|
],
|
|
4722
|
+
"RW": [
|
|
4723
|
+
"H",
|
|
4724
|
+
"h"
|
|
4725
|
+
],
|
|
4653
4726
|
"SA": [
|
|
4654
4727
|
"h",
|
|
4655
4728
|
"hB",
|
|
@@ -4782,12 +4855,24 @@ var timeData = {
|
|
|
4782
4855
|
"H",
|
|
4783
4856
|
"hB"
|
|
4784
4857
|
],
|
|
4858
|
+
"TH": [
|
|
4859
|
+
"H",
|
|
4860
|
+
"h"
|
|
4861
|
+
],
|
|
4862
|
+
"TJ": [
|
|
4863
|
+
"H",
|
|
4864
|
+
"h"
|
|
4865
|
+
],
|
|
4785
4866
|
"TL": [
|
|
4786
4867
|
"H",
|
|
4787
4868
|
"hB",
|
|
4788
4869
|
"hb",
|
|
4789
4870
|
"h"
|
|
4790
4871
|
],
|
|
4872
|
+
"TM": [
|
|
4873
|
+
"H",
|
|
4874
|
+
"h"
|
|
4875
|
+
],
|
|
4791
4876
|
"TN": [
|
|
4792
4877
|
"h",
|
|
4793
4878
|
"hB",
|
|
@@ -4883,6 +4968,10 @@ var timeData = {
|
|
|
4883
4968
|
"H",
|
|
4884
4969
|
"hB"
|
|
4885
4970
|
],
|
|
4971
|
+
"VN": [
|
|
4972
|
+
"H",
|
|
4973
|
+
"h"
|
|
4974
|
+
],
|
|
4886
4975
|
"VU": [
|
|
4887
4976
|
"h",
|
|
4888
4977
|
"H"
|
|
@@ -4922,6 +5011,10 @@ var timeData = {
|
|
|
4922
5011
|
"H",
|
|
4923
5012
|
"hB"
|
|
4924
5013
|
],
|
|
5014
|
+
"ZW": [
|
|
5015
|
+
"H",
|
|
5016
|
+
"h"
|
|
5017
|
+
],
|
|
4925
5018
|
"af-ZA": [
|
|
4926
5019
|
"H",
|
|
4927
5020
|
"h",
|
|
@@ -6825,8 +6918,8 @@ function createDefaultFormatters(cache) {
|
|
|
6825
6918
|
}
|
|
6826
6919
|
var IntlMessageFormat = /** @class */ (function () {
|
|
6827
6920
|
function IntlMessageFormat(message, locales, overrideFormats, opts) {
|
|
6828
|
-
if (locales === void 0) { locales = IntlMessageFormat.defaultLocale; }
|
|
6829
6921
|
var _this = this;
|
|
6922
|
+
if (locales === void 0) { locales = IntlMessageFormat.defaultLocale; }
|
|
6830
6923
|
this.formatterCache = {
|
|
6831
6924
|
number: {},
|
|
6832
6925
|
dateTime: {},
|
|
@@ -7563,7 +7656,6 @@ function formatRelativeTime(config, getRelativeTimeFormat, value, unit, options)
|
|
|
7563
7656
|
var NUMBER_FORMAT_OPTIONS = [
|
|
7564
7657
|
'style',
|
|
7565
7658
|
'currency',
|
|
7566
|
-
'currencyDisplay',
|
|
7567
7659
|
'unit',
|
|
7568
7660
|
'unitDisplay',
|
|
7569
7661
|
'useGrouping',
|
|
@@ -7581,6 +7673,11 @@ var NUMBER_FORMAT_OPTIONS = [
|
|
|
7581
7673
|
'unit',
|
|
7582
7674
|
'unitDisplay',
|
|
7583
7675
|
'numberingSystem',
|
|
7676
|
+
// ES2023 NumberFormat
|
|
7677
|
+
'trailingZeroDisplay',
|
|
7678
|
+
'roundingPriority',
|
|
7679
|
+
'roundingIncrement',
|
|
7680
|
+
'roundingMode',
|
|
7584
7681
|
];
|
|
7585
7682
|
function getFormatter(_a, getNumberFormat, options) {
|
|
7586
7683
|
var locale = _a.locale, formats = _a.formats, onError = _a.onError;
|
|
@@ -8041,6 +8138,7 @@ function transposeMatrix(originalMatrix) {
|
|
|
8041
8138
|
}
|
|
8042
8139
|
return newMatrix;
|
|
8043
8140
|
}
|
|
8141
|
+
// wrap around includes 0, so it won't work for something like dates (wrapping around months)
|
|
8044
8142
|
function wrapAround(currentIdx, step, endIdx) {
|
|
8045
8143
|
currentIdx += step;
|
|
8046
8144
|
if (currentIdx > endIdx) {
|
|
@@ -8131,15 +8229,205 @@ function countDecimals(num) {
|
|
|
8131
8229
|
return asString.split(".")[1].length;
|
|
8132
8230
|
}
|
|
8133
8231
|
}
|
|
8232
|
+
function getMonthLength(month, year) {
|
|
8233
|
+
const months30 = [4, 6, 9, 11];
|
|
8234
|
+
const leapYear = year % 4 === 0;
|
|
8235
|
+
return month === 2 ? (leapYear ? 29 : 28) : months30.includes(month) ? 30 : 31;
|
|
8236
|
+
}
|
|
8237
|
+
function dateToISO(date) {
|
|
8238
|
+
return `${date.getUTCFullYear()}-${(date.getUTCMonth() + 1).toString().padStart(2, "0")}-${date
|
|
8239
|
+
.getDate()
|
|
8240
|
+
.toString()
|
|
8241
|
+
.padStart(2, "0")}`;
|
|
8242
|
+
}
|
|
8243
|
+
function splitISO(isoDate) {
|
|
8244
|
+
const [year, month, day] = isoDate.split("-");
|
|
8245
|
+
return {
|
|
8246
|
+
year: { asInt: parseInt(year), asString: year },
|
|
8247
|
+
month: { asInt: parseInt(month), asString: month },
|
|
8248
|
+
day: { asInt: parseInt(day), asString: day },
|
|
8249
|
+
};
|
|
8250
|
+
}
|
|
8251
|
+
function makeISO(y, m, d) {
|
|
8252
|
+
return `${y}-${m.toString().padStart(2, "0")}-${d.toString().padStart(2, "0")}`;
|
|
8253
|
+
}
|
|
8254
|
+
const dateFind = {
|
|
8255
|
+
year: {
|
|
8256
|
+
asString: (date) => splitISO(date).year.asString,
|
|
8257
|
+
asInt: (date) => splitISO(date).year.asInt,
|
|
8258
|
+
increase: (date, n) => {
|
|
8259
|
+
const _date = splitISO(date);
|
|
8260
|
+
const y = _date.year.asInt;
|
|
8261
|
+
const m = _date.month.asInt;
|
|
8262
|
+
const d = _date.day.asInt;
|
|
8263
|
+
return makeISO(y + n, m, d);
|
|
8264
|
+
},
|
|
8265
|
+
decrease: (date, n) => {
|
|
8266
|
+
const _date = splitISO(date);
|
|
8267
|
+
const y = _date.year.asInt;
|
|
8268
|
+
const m = _date.month.asInt;
|
|
8269
|
+
const d = _date.day.asInt;
|
|
8270
|
+
return makeISO(y - n, m, d);
|
|
8271
|
+
},
|
|
8272
|
+
},
|
|
8273
|
+
month: {
|
|
8274
|
+
asString: (date) => splitISO(date).month.asString,
|
|
8275
|
+
asInt: (date) => splitISO(date).month.asInt,
|
|
8276
|
+
increase: (date, n) => {
|
|
8277
|
+
const _date = splitISO(date);
|
|
8278
|
+
const yearsToAdd = Math.floor(n / 12);
|
|
8279
|
+
const monthsToAdd = n % 12;
|
|
8280
|
+
let y = _date.year.asInt;
|
|
8281
|
+
let m = _date.month.asInt;
|
|
8282
|
+
const d = _date.day.asInt;
|
|
8283
|
+
y = m + monthsToAdd > 12 ? y + 1 : y;
|
|
8284
|
+
y = y + yearsToAdd;
|
|
8285
|
+
m = m + monthsToAdd;
|
|
8286
|
+
// modulo requires zero-indexing
|
|
8287
|
+
m = ((m - 1) % 12) + 1;
|
|
8288
|
+
return makeISO(y, m, d);
|
|
8289
|
+
},
|
|
8290
|
+
decrease: (date, n) => {
|
|
8291
|
+
const _date = splitISO(date);
|
|
8292
|
+
const yearsToRemove = Math.floor(n / 12);
|
|
8293
|
+
const monthsToRemove = n % 12;
|
|
8294
|
+
let y = _date.year.asInt;
|
|
8295
|
+
let m = _date.month.asInt;
|
|
8296
|
+
const d = _date.day.asInt;
|
|
8297
|
+
y = m - monthsToRemove < 1 ? y - 1 : y;
|
|
8298
|
+
y = y - yearsToRemove;
|
|
8299
|
+
// ensure no negative value by shifting up
|
|
8300
|
+
m = m + 12;
|
|
8301
|
+
m = m - monthsToRemove;
|
|
8302
|
+
// modulo needs zero-indexing
|
|
8303
|
+
m = ((m - 1) % 12) + 1;
|
|
8304
|
+
return makeISO(y, m, d);
|
|
8305
|
+
},
|
|
8306
|
+
},
|
|
8307
|
+
day: {
|
|
8308
|
+
asString: (date) => splitISO(date).day.asString,
|
|
8309
|
+
asInt: (date) => splitISO(date).day.asInt,
|
|
8310
|
+
increase: (date, n) => {
|
|
8311
|
+
if (n > 7)
|
|
8312
|
+
throw new Error("this.dateFind.day.increase(): max 7 days");
|
|
8313
|
+
const _date = splitISO(date);
|
|
8314
|
+
let y = _date.year.asInt;
|
|
8315
|
+
let m = _date.month.asInt;
|
|
8316
|
+
let d = _date.day.asInt;
|
|
8317
|
+
const maxDays = getMonthLength(m, y);
|
|
8318
|
+
const goesToNextMonth = d + n > maxDays;
|
|
8319
|
+
const goesToNextYear = goesToNextMonth && m === 12;
|
|
8320
|
+
m = goesToNextMonth ? (goesToNextYear ? 1 : m + 1) : m;
|
|
8321
|
+
y = goesToNextYear ? y + 1 : y;
|
|
8322
|
+
d = ((d - 1 + n) % maxDays) + 1;
|
|
8323
|
+
return makeISO(y, m, d);
|
|
8324
|
+
},
|
|
8325
|
+
decrease: (date, n) => {
|
|
8326
|
+
if (n > 7)
|
|
8327
|
+
throw new Error("this.dateFind.day.decrease(): max 7 days");
|
|
8328
|
+
const _date = splitISO(date);
|
|
8329
|
+
let y = _date.year.asInt;
|
|
8330
|
+
let m = _date.month.asInt;
|
|
8331
|
+
let d = _date.day.asInt;
|
|
8332
|
+
const prevMonth = m === 1 ? 12 : m - 1;
|
|
8333
|
+
const maxDays = getMonthLength(prevMonth, y);
|
|
8334
|
+
const goesToPreviousMonth = d - n < 1;
|
|
8335
|
+
const goesToPreviousYear = goesToPreviousMonth && m === 1;
|
|
8336
|
+
// ensure no negative value by shifting up
|
|
8337
|
+
d = d + maxDays;
|
|
8338
|
+
d = d - n;
|
|
8339
|
+
// modulo needs zero-indexing
|
|
8340
|
+
d = ((d - 1) % maxDays) + 1;
|
|
8341
|
+
m = goesToPreviousMonth ? (goesToPreviousYear ? 12 : m - 1) : m;
|
|
8342
|
+
y = goesToPreviousYear ? y - 1 : y;
|
|
8343
|
+
return makeISO(y, m, d);
|
|
8344
|
+
},
|
|
8345
|
+
},
|
|
8346
|
+
};
|
|
8347
|
+
const calendar_months = [
|
|
8348
|
+
intl.formatMessage({
|
|
8349
|
+
id: "date.january",
|
|
8350
|
+
defaultMessage: "January",
|
|
8351
|
+
description: "Month of the year",
|
|
8352
|
+
}),
|
|
8353
|
+
intl.formatMessage({
|
|
8354
|
+
id: "date.february",
|
|
8355
|
+
defaultMessage: "February",
|
|
8356
|
+
description: "Month of the year",
|
|
8357
|
+
}),
|
|
8358
|
+
intl.formatMessage({
|
|
8359
|
+
id: "date.march",
|
|
8360
|
+
defaultMessage: "March",
|
|
8361
|
+
description: "Month of the year",
|
|
8362
|
+
}),
|
|
8363
|
+
intl.formatMessage({
|
|
8364
|
+
id: "date.april",
|
|
8365
|
+
defaultMessage: "April",
|
|
8366
|
+
description: "Month of the year",
|
|
8367
|
+
}),
|
|
8368
|
+
intl.formatMessage({
|
|
8369
|
+
id: "date.may",
|
|
8370
|
+
defaultMessage: "May",
|
|
8371
|
+
description: "Month of the year",
|
|
8372
|
+
}),
|
|
8373
|
+
intl.formatMessage({
|
|
8374
|
+
id: "date.june",
|
|
8375
|
+
defaultMessage: "June",
|
|
8376
|
+
description: "Month of the year",
|
|
8377
|
+
}),
|
|
8378
|
+
intl.formatMessage({
|
|
8379
|
+
id: "date.july",
|
|
8380
|
+
defaultMessage: "July",
|
|
8381
|
+
description: "Month of the year",
|
|
8382
|
+
}),
|
|
8383
|
+
intl.formatMessage({
|
|
8384
|
+
id: "date.august",
|
|
8385
|
+
defaultMessage: "August",
|
|
8386
|
+
description: "Month of the year",
|
|
8387
|
+
}),
|
|
8388
|
+
intl.formatMessage({
|
|
8389
|
+
id: "date.september",
|
|
8390
|
+
defaultMessage: "September",
|
|
8391
|
+
description: "Month of the year",
|
|
8392
|
+
}),
|
|
8393
|
+
intl.formatMessage({
|
|
8394
|
+
id: "date.october",
|
|
8395
|
+
defaultMessage: "October",
|
|
8396
|
+
description: "Month of the year",
|
|
8397
|
+
}),
|
|
8398
|
+
intl.formatMessage({
|
|
8399
|
+
id: "date.november",
|
|
8400
|
+
defaultMessage: "November",
|
|
8401
|
+
description: "Month of the year",
|
|
8402
|
+
}),
|
|
8403
|
+
intl.formatMessage({
|
|
8404
|
+
id: "date.december",
|
|
8405
|
+
defaultMessage: "December",
|
|
8406
|
+
description: "Month of the year",
|
|
8407
|
+
}),
|
|
8408
|
+
];
|
|
8409
|
+
const weekdays = [
|
|
8410
|
+
intl.formatMessage({ id: "date.sunday", defaultMessage: "Sunday" }),
|
|
8411
|
+
intl.formatMessage({ id: "date.monday", defaultMessage: "Monday" }),
|
|
8412
|
+
intl.formatMessage({ id: "date.tuesday", defaultMessage: "Tuesday" }),
|
|
8413
|
+
intl.formatMessage({ id: "date.wednesday", defaultMessage: "Wednesday" }),
|
|
8414
|
+
intl.formatMessage({ id: "date.thursday", defaultMessage: "Thursday" }),
|
|
8415
|
+
intl.formatMessage({ id: "date.friday", defaultMessage: "Friday" }),
|
|
8416
|
+
intl.formatMessage({ id: "date.saturday", defaultMessage: "Saturday" }),
|
|
8417
|
+
];
|
|
8134
8418
|
|
|
8135
8419
|
exports.calcPercentageInRange = calcPercentageInRange;
|
|
8420
|
+
exports.calendar_months = calendar_months;
|
|
8136
8421
|
exports.checkForActiveElInShadow = checkForActiveElInShadow;
|
|
8137
8422
|
exports.csvToArray = csvToArray;
|
|
8423
|
+
exports.dateFind = dateFind;
|
|
8424
|
+
exports.dateToISO = dateToISO;
|
|
8138
8425
|
exports.debounce = debounce;
|
|
8139
8426
|
exports.findNext = findNext;
|
|
8140
8427
|
exports.findParentWithScrollbar = findParentWithScrollbar;
|
|
8141
8428
|
exports.findPrev = findPrev;
|
|
8142
8429
|
exports.generateId = generateId;
|
|
8430
|
+
exports.getMonthLength = getMonthLength;
|
|
8143
8431
|
exports.getNewIndexToFocus = getNewIndexToFocus;
|
|
8144
8432
|
exports.getPosition = getPosition;
|
|
8145
8433
|
exports.getSmallestSkipInterval = getSmallestSkipInterval;
|
|
@@ -8148,6 +8436,7 @@ exports.handleDisabledAttribute = handleDisabledAttribute;
|
|
|
8148
8436
|
exports.hasRoomRight = hasRoomRight;
|
|
8149
8437
|
exports.hideTooltip = hideTooltip;
|
|
8150
8438
|
exports.intl = intl;
|
|
8439
|
+
exports.makeISO = makeISO;
|
|
8151
8440
|
exports.measureText = measureText;
|
|
8152
8441
|
exports.safeMultiplyFloat = safeMultiplyFloat;
|
|
8153
8442
|
exports.shouldOpenDown = shouldOpenDown;
|
|
@@ -8161,4 +8450,5 @@ exports.toBool = toBool;
|
|
|
8161
8450
|
exports.transposeMatrix = transposeMatrix;
|
|
8162
8451
|
exports.triggerFormSubmit = triggerFormSubmit;
|
|
8163
8452
|
exports.truncateText = truncateText;
|
|
8453
|
+
exports.weekdays = weekdays;
|
|
8164
8454
|
exports.wrapAround = wrapAround;
|