@watermarkinsights/ripple 5.2.1-2 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{chartFunctions-e86ed63c.js → chartFunctions-51de43eb.js} +4 -4
- package/dist/cjs/{functions-698530be.js → functions-48a748f0.js} +6 -103
- package/dist/{esm/app-globals-f193ab33.js → cjs/global-c8dd677d.js} +2 -7
- package/dist/cjs/index-f8ef86de.js +2578 -0
- package/dist/cjs/{intl-6751b1c3.js → intl-29d2cc42.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/priv-chart-popover.cjs.entry.js +5 -6
- package/dist/cjs/priv-datepicker.cjs.entry.js +8 -9
- package/dist/cjs/priv-navigator-button.cjs.entry.js +3 -4
- package/dist/cjs/priv-navigator-item.cjs.entry.js +3 -4
- package/dist/cjs/ripple.cjs.js +11 -12
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +6 -8
- package/dist/cjs/wm-button.cjs.entry.js +4 -5
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +6 -7
- package/dist/cjs/wm-datepicker.cjs.entry.js +4 -5
- package/dist/cjs/wm-file-list.cjs.entry.js +4 -5
- package/dist/cjs/wm-file.cjs.entry.js +4 -5
- package/dist/cjs/wm-input.cjs.entry.js +5 -6
- package/dist/cjs/wm-line-chart.cjs.entry.js +14 -15
- package/dist/cjs/wm-modal-footer.cjs.entry.js +3 -4
- package/dist/cjs/wm-modal-header.cjs.entry.js +5 -6
- package/dist/cjs/wm-modal.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigation_3.cjs.entry.js +10 -13
- package/dist/cjs/wm-navigator.cjs.entry.js +3 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +8 -10
- package/dist/cjs/wm-pagination.cjs.entry.js +4 -5
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +7 -9
- package/dist/cjs/wm-search.cjs.entry.js +6 -7
- package/dist/cjs/wm-snackbar.cjs.entry.js +6 -7
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +8 -11
- package/dist/cjs/wm-tag-input.cjs.entry.js +7 -8
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +5 -6
- package/dist/cjs/wm-timepicker.cjs.entry.js +5 -6
- package/dist/cjs/wm-toggletip.cjs.entry.js +5 -6
- package/dist/cjs/wm-uploader.cjs.entry.js +6 -7
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +2 -2
- package/dist/collection/components/charts/chartFunctions.spec.js +16 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +81 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/screenshots.e2e.js +96 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +213 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +37 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +176 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +163 -0
- 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.e2e.js +69 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +79 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +200 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +48 -0
- package/dist/collection/components/wm-button/wm-button.e2e.js +55 -0
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-button/wm-button.spec.js +74 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +5 -5
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.spec.js +76 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.e2e.js +382 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +9 -13
- package/dist/collection/components/wm-datepicker/wm-datepicker.spec.js +21 -0
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file/wm-file.spec.js +194 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +5 -5
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +69 -0
- package/dist/collection/components/wm-input/wm-input.e2e.js +32 -0
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-input/wm-input.spec.js +173 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +23 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +54 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +11 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +8 -0
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +104 -0
- package/dist/collection/components/wm-modal/wm-modal.js +3 -2
- package/dist/collection/components/wm-modal/wm-modal.spec.js +30 -0
- 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.e2e.js +102 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +91 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +50 -0
- 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-navigator/wm-navigator.e2e.js +209 -0
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +177 -0
- package/dist/collection/components/wm-option/wm-option.e2e.js +22 -0
- package/dist/collection/components/wm-option/wm-option.js +1 -1
- package/dist/collection/components/wm-option/wm-option.spec.js +63 -0
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +312 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.e2e.js +76 -0
- package/dist/collection/components/wm-search/wm-search.js +4 -5
- package/dist/collection/components/wm-search/wm-search.spec.js +71 -0
- package/dist/collection/components/wm-select/wm-select.e2e.js +521 -0
- package/dist/collection/components/wm-select/wm-select.js +2 -2
- package/dist/collection/components/wm-select/wm-select.spec.js +271 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +112 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +9 -0
- 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-tabs/wm-tabs.e2e.js +91 -0
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +12 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +204 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +195 -0
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +41 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +79 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +163 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +8 -11
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +147 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +69 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +21 -0
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +70 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +234 -0
- package/dist/collection/dev/scripts.js +748 -31
- package/dist/collection/global/functions.spec.js +126 -0
- package/dist/collection/lang/lang.spec.js +20 -0
- package/dist/esm/{chartFunctions-8098e455.js → chartFunctions-cb845edd.js} +4 -4
- package/dist/esm/{functions-f317d2d6.js → functions-58918a32.js} +6 -103
- package/dist/{cjs/app-globals-46a0b37c.js → esm/global-7c286bb3.js} +1 -10
- package/dist/esm/index-f164fbca.js +2548 -0
- package/dist/esm/{intl-00a637cf.js → intl-f9d79dff.js} +1 -1
- package/dist/esm/loader.js +4 -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-chart-popover.entry.js +5 -6
- package/dist/esm/priv-datepicker.entry.js +8 -9
- package/dist/esm/priv-navigator-button.entry.js +3 -4
- package/dist/esm/priv-navigator-item.entry.js +3 -4
- package/dist/esm/ripple.js +12 -13
- package/dist/esm/wm-action-menu_2.entry.js +6 -8
- package/dist/esm/wm-button.entry.js +4 -5
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +6 -7
- package/dist/esm/wm-datepicker.entry.js +4 -5
- package/dist/esm/wm-file-list.entry.js +4 -5
- package/dist/esm/wm-file.entry.js +4 -5
- package/dist/esm/wm-input.entry.js +5 -6
- package/dist/esm/wm-line-chart.entry.js +14 -15
- package/dist/esm/wm-modal-footer.entry.js +3 -4
- package/dist/esm/wm-modal-header.entry.js +5 -6
- package/dist/esm/wm-modal.entry.js +6 -6
- package/dist/esm/wm-navigation_3.entry.js +10 -13
- package/dist/esm/wm-navigator.entry.js +3 -4
- package/dist/esm/wm-option_2.entry.js +8 -10
- package/dist/esm/wm-pagination.entry.js +4 -5
- package/dist/esm/wm-progress-indicator_3.entry.js +7 -9
- package/dist/esm/wm-search.entry.js +6 -7
- package/dist/esm/wm-snackbar.entry.js +6 -7
- package/dist/esm/wm-tab-item_3.entry.js +8 -11
- package/dist/esm/wm-tag-input.entry.js +7 -8
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +5 -6
- package/dist/esm/wm-timepicker.entry.js +5 -6
- package/dist/esm/wm-toggletip.entry.js +5 -6
- package/dist/esm/wm-uploader.entry.js +6 -7
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/{chartFunctions-8098e455.js → chartFunctions-cb845edd.js} +1 -1
- package/dist/esm-es5/functions-58918a32.js +1 -0
- package/dist/esm-es5/global-7c286bb3.js +1 -0
- package/dist/esm-es5/index-f164fbca.js +1 -0
- package/dist/esm-es5/{intl-00a637cf.js → intl-f9d79dff.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-datepicker.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-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 +2 -1
- package/dist/loader/index.cjs.js +2 -1
- package/dist/loader/index.d.ts +0 -3
- package/dist/loader/index.es2017.js +2 -1
- package/dist/loader/index.js +2 -1
- package/dist/ripple/{p-e0ff556b.system.entry.js → p-011a4acc.system.entry.js} +1 -1
- package/dist/ripple/{p-8151c39b.system.entry.js → p-02b625f6.system.entry.js} +1 -1
- package/dist/ripple/{p-636ca7f2.entry.js → p-071fde45.entry.js} +1 -1
- package/dist/ripple/{p-06c018cf.system.entry.js → p-0ba8d3b6.system.entry.js} +1 -1
- package/dist/ripple/{p-ed372e19.system.js → p-0d15e3f0.system.js} +1 -1
- package/dist/ripple/p-0fe97e85.system.js +2 -0
- package/dist/ripple/p-105f479a.system.entry.js +1 -0
- package/dist/ripple/p-1453ea51.system.entry.js +1 -0
- package/dist/ripple/p-194bdaa4.system.entry.js +1 -0
- package/dist/ripple/p-1b43e46e.js +1 -0
- package/dist/ripple/{p-2f39732e.entry.js → p-25446670.entry.js} +1 -1
- package/dist/ripple/{p-66a57d81.system.entry.js → p-29509665.system.entry.js} +1 -1
- package/dist/ripple/p-30a9ba6e.entry.js +1 -0
- package/dist/ripple/p-31f97455.system.entry.js +1 -0
- package/dist/ripple/p-32dd0a11.entry.js +1 -0
- package/dist/ripple/p-39dc88f3.system.entry.js +1 -0
- package/dist/ripple/{p-9d4ea9f8.entry.js → p-3a070f35.entry.js} +1 -1
- package/dist/ripple/{p-0bb464b1.entry.js → p-3e9fcb47.entry.js} +1 -1
- package/dist/ripple/p-45126063.system.entry.js +1 -0
- package/dist/ripple/p-4bc27adf.entry.js +1 -0
- package/dist/ripple/p-4de51706.js +2 -0
- package/dist/ripple/p-4ee9f962.entry.js +1 -0
- package/dist/ripple/p-4fb3748d.js +1 -0
- package/dist/ripple/{p-00f8637e.system.entry.js → p-4fc6019b.system.entry.js} +1 -1
- package/dist/ripple/p-568818bb.js +1 -0
- package/dist/ripple/p-5a4f76e1.entry.js +1 -0
- package/dist/ripple/p-5ca67373.entry.js +1 -0
- package/dist/ripple/p-5ceb9894.entry.js +1 -0
- package/dist/ripple/p-63d5db34.entry.js +1 -0
- package/dist/ripple/p-63fabfed.entry.js +1 -0
- package/dist/ripple/{p-18c1593b.entry.js → p-65420b71.entry.js} +1 -1
- package/dist/ripple/{p-7cb98aa5.entry.js → p-6a9f7651.entry.js} +1 -1
- package/dist/ripple/{p-0d0e0a1e.system.entry.js → p-6d70b692.system.entry.js} +1 -1
- package/dist/ripple/p-75592b7a.entry.js +1 -0
- package/dist/ripple/{p-9d8817a7.system.entry.js → p-7e56da2e.system.entry.js} +1 -1
- package/dist/ripple/p-7e8daaac.entry.js +1 -0
- package/dist/ripple/p-7ea95937.entry.js +1 -0
- package/dist/ripple/p-7f1efb21.entry.js +1 -0
- package/dist/ripple/p-82d5ea8d.system.entry.js +1 -0
- package/dist/ripple/{p-3639dbbc.system.entry.js → p-82f3bd04.system.entry.js} +1 -1
- package/dist/ripple/p-82f7eca7.entry.js +1 -0
- package/dist/ripple/p-88406560.system.entry.js +1 -0
- package/dist/ripple/{p-94a54d68.system.js → p-8d177669.system.js} +1 -1
- package/dist/ripple/p-8d840770.system.js +1 -0
- package/dist/ripple/p-8e1fd831.entry.js +1 -0
- package/dist/ripple/p-994dc497.system.entry.js +1 -0
- package/dist/ripple/p-9dff37db.system.entry.js +1 -0
- package/dist/ripple/p-a71bc14f.entry.js +1 -0
- package/dist/ripple/p-a768d7f1.system.js +1 -0
- package/dist/ripple/{p-edcb8f48.system.entry.js → p-a99b05de.system.entry.js} +1 -1
- package/dist/ripple/{p-49f94f8a.entry.js → p-abe3242c.entry.js} +1 -1
- package/dist/ripple/p-b0579a2a.system.entry.js +1 -0
- package/dist/ripple/p-b1a4f626.system.entry.js +1 -0
- package/dist/ripple/p-b3dfb34a.entry.js +1 -0
- package/dist/ripple/p-b4cb2b12.entry.js +1 -0
- package/dist/ripple/p-c3283bce.system.entry.js +1 -0
- package/dist/ripple/p-c717d895.entry.js +1 -0
- package/dist/ripple/{p-b02c0c41.system.entry.js → p-c9943d2e.system.entry.js} +1 -1
- package/dist/ripple/p-cd5fdcb1.entry.js +1 -0
- package/dist/ripple/p-cd659e3e.system.entry.js +1 -0
- package/dist/ripple/p-d02bc2f2.system.entry.js +1 -0
- package/dist/ripple/p-d87de822.system.entry.js +1 -0
- package/dist/ripple/p-dd479c47.entry.js +1 -0
- package/dist/ripple/p-df78942e.entry.js +1 -0
- package/dist/ripple/p-e1b60b9e.system.entry.js +1 -0
- package/dist/ripple/p-e5de7cae.system.entry.js +1 -0
- package/dist/ripple/p-eb9cb021.system.entry.js +1 -0
- package/dist/ripple/p-ef3e35fa.entry.js +1 -0
- package/dist/ripple/p-ef7b1f3d.system.js +1 -0
- package/dist/ripple/p-f2556f03.system.entry.js +1 -0
- package/dist/ripple/p-f7ac9698.system.entry.js +1 -0
- package/dist/ripple/{p-e3d8f2f6.entry.js → p-f9689d7a.entry.js} +1 -1
- package/dist/ripple/{p-644092fd.js → p-fa3d10db.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +10 -3
- package/package.json +1 -1
- package/dist/cjs/index-4853a7b4.js +0 -1800
- package/dist/collection/dev/action-menu.js +0 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +0 -56
- package/dist/collection/dev/chart.js +0 -37
- 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 -45
- package/dist/collection/dev/navigation.js +0 -13
- package/dist/collection/dev/navigator.js +0 -34
- package/dist/collection/dev/pagination.js +0 -7
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/search.js +0 -72
- package/dist/collection/dev/select.js +0 -57
- package/dist/collection/dev/snackbar.js +0 -38
- 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 -0
- package/dist/collection/dev/uploader.js +0 -139
- package/dist/esm/index-7923308f.js +0 -1770
- package/dist/esm-es5/app-globals-f193ab33.js +0 -1
- package/dist/esm-es5/functions-f317d2d6.js +0 -1
- package/dist/esm-es5/index-7923308f.js +0 -1
- package/dist/ripple/p-0707b4c2.entry.js +0 -1
- package/dist/ripple/p-0ec1e075.entry.js +0 -1
- package/dist/ripple/p-0f72ed3a.entry.js +0 -1
- package/dist/ripple/p-19f29a48.entry.js +0 -1
- package/dist/ripple/p-1ee68e06.system.entry.js +0 -1
- package/dist/ripple/p-1fcc8007.system.entry.js +0 -1
- package/dist/ripple/p-28119849.system.entry.js +0 -1
- package/dist/ripple/p-2849847d.system.entry.js +0 -1
- package/dist/ripple/p-2ec13501.entry.js +0 -1
- package/dist/ripple/p-3132d4d3.entry.js +0 -1
- package/dist/ripple/p-340f96b5.entry.js +0 -1
- package/dist/ripple/p-3e605541.entry.js +0 -1
- package/dist/ripple/p-439d839b.system.entry.js +0 -1
- package/dist/ripple/p-445d6915.entry.js +0 -1
- package/dist/ripple/p-48ed56a0.entry.js +0 -1
- package/dist/ripple/p-4978ff1b.system.entry.js +0 -1
- package/dist/ripple/p-4c3f4047.system.js +0 -1
- package/dist/ripple/p-4d511ecc.system.entry.js +0 -1
- package/dist/ripple/p-510fab1c.system.entry.js +0 -1
- package/dist/ripple/p-539b7be9.system.js +0 -2
- package/dist/ripple/p-58a286e8.system.entry.js +0 -1
- package/dist/ripple/p-5ff41948.entry.js +0 -1
- package/dist/ripple/p-681c1853.js +0 -1
- package/dist/ripple/p-6b71806b.entry.js +0 -1
- package/dist/ripple/p-7afa2fdc.system.entry.js +0 -1
- package/dist/ripple/p-7b329a58.system.js +0 -1
- package/dist/ripple/p-7dbc4abc.system.entry.js +0 -1
- package/dist/ripple/p-950edf62.entry.js +0 -1
- package/dist/ripple/p-9bda128e.system.entry.js +0 -1
- package/dist/ripple/p-9ca027b7.entry.js +0 -1
- package/dist/ripple/p-a1f60f8e.entry.js +0 -1
- package/dist/ripple/p-a431d6e5.js +0 -2
- package/dist/ripple/p-a6119885.system.entry.js +0 -1
- package/dist/ripple/p-a77f2168.entry.js +0 -1
- package/dist/ripple/p-adfaeeea.entry.js +0 -1
- package/dist/ripple/p-bbb8c02f.system.entry.js +0 -1
- package/dist/ripple/p-bd7e892d.entry.js +0 -1
- package/dist/ripple/p-c096b90c.system.js +0 -1
- package/dist/ripple/p-c9552e88.system.entry.js +0 -1
- package/dist/ripple/p-cd0a862f.system.entry.js +0 -1
- package/dist/ripple/p-d344e490.entry.js +0 -1
- package/dist/ripple/p-d87e105b.system.entry.js +0 -1
- package/dist/ripple/p-e19e1ece.system.entry.js +0 -1
- package/dist/ripple/p-e8eef357.entry.js +0 -1
- package/dist/ripple/p-eb596891.entry.js +0 -1
- package/dist/ripple/p-ec384895.system.entry.js +0 -1
- package/dist/ripple/p-eccb5aaf.entry.js +0 -1
- package/dist/ripple/p-f4bc9c19.entry.js +0 -1
- package/dist/ripple/p-f7c47815.js +0 -1
- package/dist/ripple/p-fa5a601e.system.entry.js +0 -1
- package/dist/ripple/p-fc710a30.js +0 -1
- package/dist/ripple/p-ff7dac66.system.entry.js +0 -1
|
File without changes
|
|
File without changes
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
function chartAction() {
|
|
2
|
-
function getRandomColor() {
|
|
3
|
-
return `hsl(${Math.round(Math.random() * 360)}, ${Math.round(Math.random() * 50) + 50}%, ${
|
|
4
|
-
Math.round(Math.random() * 30) + 50
|
|
5
|
-
}%)`;
|
|
6
|
-
}
|
|
7
|
-
document.querySelector("body").style.backgroundColor = getRandomColor();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
let counter = 1;
|
|
11
|
-
function makeChart(amounts) {
|
|
12
|
-
const target = document.querySelector("#autochart");
|
|
13
|
-
if (target) {
|
|
14
|
-
const chart = document.createElement("wm-chart");
|
|
15
|
-
chart.id = `generated-4${counter}`;
|
|
16
|
-
counter++;
|
|
17
|
-
chart.setAttribute("chart-type", "doughnut3");
|
|
18
|
-
chart.setAttribute("label", "auto chart");
|
|
19
|
-
const bigindex = Math.floor(Math.random() * 7);
|
|
20
|
-
const total = amounts.reduce((total, newval) => (total += newval), 0);
|
|
21
|
-
for (var i = 0; i < 7; i++) {
|
|
22
|
-
const chartSlice = document.createElement("wm-chart-slice");
|
|
23
|
-
chartSlice.setAttribute("amount", amounts[i]);
|
|
24
|
-
chartSlice.setAttribute("legend", `slice ${i + 1}`);
|
|
25
|
-
chartSlice.setAttribute("popover-title", `${amounts[i]} / ${total}`);
|
|
26
|
-
chartSlice.setAttribute("popover-text", (i % 2 ? "" : "Not ") + ["Boiled", "Washed", "Rinsed", "Roasted"][i % 4]);
|
|
27
|
-
chart.appendChild(chartSlice);
|
|
28
|
-
}
|
|
29
|
-
target.appendChild(chart);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function spawnCharts() {
|
|
34
|
-
makeChart([1, 1, 1, 1, 1, 1, 94]);
|
|
35
|
-
makeChart([1, 2, 1, 2, 1, 2, 91]);
|
|
36
|
-
makeChart([2, 3, 2, 3, 2, 3, 85]);
|
|
37
|
-
makeChart([3, 4, 3, 79, 4, 3, 4]);
|
|
38
|
-
makeChart([3, 4, 5, 76, 3, 4, 5]);
|
|
39
|
-
makeChart([4, 4, 4, 4, 76, 4, 4]);
|
|
40
|
-
makeChart([70, 4, 5, 6, 4, 5, 6]);
|
|
41
|
-
for (var i = 0; i < 5; i++) {
|
|
42
|
-
const amounts = [];
|
|
43
|
-
for (var j = 0; j < 7; j++) {
|
|
44
|
-
if (Math.random() > 0.9) {
|
|
45
|
-
// 10% chance of a big number
|
|
46
|
-
amounts.push(Math.floor(Math.random() * 5000));
|
|
47
|
-
} else {
|
|
48
|
-
amounts.push(Math.floor(Math.random() * 100));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
makeChart(amounts);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
spawnCharts();
|
|
55
|
-
|
|
56
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
function changeBkgColor() {
|
|
2
|
-
function getRandomColor() {
|
|
3
|
-
return `hsl(${Math.round(Math.random() * 360)}, ${Math.round(Math.random() * 50) + 50}%, ${
|
|
4
|
-
Math.round(Math.random() * 30) + 50
|
|
5
|
-
}%)`;
|
|
6
|
-
}
|
|
7
|
-
document.querySelector("body").style.backgroundColor = getRandomColor();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function toggleSubinfo() {
|
|
11
|
-
document
|
|
12
|
-
.querySelectorAll("wm-chart")
|
|
13
|
-
.forEach((chart) => (chart.subinfo = chart.subinfo ? "" : "My subinfo text"));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function createDropdownOptions() {
|
|
17
|
-
const select = document.querySelector("#prog-focus-select");
|
|
18
|
-
document.querySelectorAll("wm-chart").forEach((c, i) => {
|
|
19
|
-
const optn = document.createElement("option");
|
|
20
|
-
optn.textContent = "#" + (i + 1) + " (" + c.chartType + ")";
|
|
21
|
-
select.appendChild(optn);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
createDropdownOptions();
|
|
26
|
-
|
|
27
|
-
window.addEventListener("wmChartPopoverButtonTriggered", (e) =>
|
|
28
|
-
console.log("wmChartPopoverButtonTriggered event", e)
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
function focusChart(num) {
|
|
32
|
-
const select = document.getElementById("prog-focus-select");
|
|
33
|
-
const charts = document.querySelectorAll("wm-chart");
|
|
34
|
-
charts[select.selectedIndex].focus();
|
|
35
|
-
console.log(document.activeElement);
|
|
36
|
-
}
|
|
37
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
function customizedError() {
|
|
2
|
-
let dp = document.getElementById("firstDP");
|
|
3
|
-
if (dp) {
|
|
4
|
-
if (dp.value.includes("2013")) {
|
|
5
|
-
dp.errorMessage = "Year cannot be 2013!";
|
|
6
|
-
} else {
|
|
7
|
-
dp.errorMessage = "";
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
customizedError();
|
|
12
|
-
|
|
13
|
-
document.querySelectorAll("wm-datepicker").forEach((datepicker) => {
|
|
14
|
-
// this is flexible to test for many types of date formats, but this is typically uniform across datepicker instances
|
|
15
|
-
const dateFormat = datepicker.getAttribute("date-format");
|
|
16
|
-
const dateFormatUnit =
|
|
17
|
-
dateFormat === "mm/dd/yyyy" || dateFormat === null ? "US" : dateFormat === "dd/mm/yyyy" ? "INT" : "ISO";
|
|
18
|
-
|
|
19
|
-
datepicker.addEventListener("wmDatepickerInputBlurred", async (ev) => {
|
|
20
|
-
if (datepicker.value) {
|
|
21
|
-
const isoDate = await datepicker.reformatDate(dateFormatUnit, "ISO", datepicker.value);
|
|
22
|
-
|
|
23
|
-
if (await datepicker.isValidIso(isoDate)) {
|
|
24
|
-
// if valid date, clean up formatting and set properties
|
|
25
|
-
const displayDate = await datepicker.reformatDate("ISO", dateFormatUnit, isoDate);
|
|
26
|
-
|
|
27
|
-
datepicker.value = displayDate;
|
|
28
|
-
datepicker.errorMessage = "";
|
|
29
|
-
} else {
|
|
30
|
-
// if invalid date, leave value and display error
|
|
31
|
-
datepicker.errorMessage = `Please enter a valid date in the format ${dateFormat ? dateFormat : "mm/dd/yyyy"}`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
datepicker.addEventListener("wmDatepickerDateSelected", async (ev) => {
|
|
37
|
-
datepicker.errorMessage = "";
|
|
38
|
-
datepicker.value = await datepicker.reformatDate("ISO", dateFormatUnit, ev.detail.date);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
datepicker.addEventListener("blur", (ev) => {
|
|
42
|
-
if (datepicker.requiredField && datepicker.value === "") {
|
|
43
|
-
datepicker.errorMessage = "A date is required";
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* FILE LIST */
|
|
2
|
-
const fileLists = document.querySelectorAll("wm-file-list");
|
|
3
|
-
fileLists &&
|
|
4
|
-
fileLists.forEach((fileList) => {
|
|
5
|
-
fileList.addEventListener("wmFileDownload", (ev) => {
|
|
6
|
-
alert("downloading", ev.target.id);
|
|
7
|
-
});
|
|
8
|
-
fileList.addEventListener("wmFilePreview", (ev) => {
|
|
9
|
-
alert("previewing", ev.target.id);
|
|
10
|
-
});
|
|
11
|
-
fileList.addEventListener("wmFileDelete", (ev) => {
|
|
12
|
-
alert("deleting", ev.target.id);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
|
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
function changeValue() {
|
|
2
|
-
const values = ["Gomez", "Morticia", "Wednesday", "Pugsley", "Uncle Fester", "Lurch", "Aristotle", "Thing"];
|
|
3
|
-
const randomValue = () => values[~~(Math.random() * values.length)];
|
|
4
|
-
document.querySelector("wm-input").setAttribute("value", randomValue());
|
|
5
|
-
}
|
|
6
|
-
|
|
File without changes
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
function showModal(id) {
|
|
2
|
-
const modal = document.getElementById(id);
|
|
3
|
-
modal.open = true;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
function hideModal(ev) {
|
|
7
|
-
ev.target.open = false;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// hook up each modal and its button
|
|
11
|
-
const ids = ["modal", "inner-modal", "inner-dialog", "nested-modal", "dialog"];
|
|
12
|
-
ids.forEach((id) => {
|
|
13
|
-
const modalBtn = document.getElementById(`${id}-btn`);
|
|
14
|
-
modalBtn && modalBtn.addEventListener("click", () => showModal(id));
|
|
15
|
-
|
|
16
|
-
const modal = document.getElementById(id);
|
|
17
|
-
modal && modal.addEventListener("wmModalPrimaryTriggered", actionTriggered);
|
|
18
|
-
modal && modal.addEventListener("wmModalSecondaryTriggered", hideModal);
|
|
19
|
-
modal && modal.addEventListener("wmModalCloseTriggered", hideModal);
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const modalInput = document.getElementById("modal-input");
|
|
23
|
-
const count = document.getElementById("count");
|
|
24
|
-
const modalFooter = document.getElementById("modal-footer");
|
|
25
|
-
|
|
26
|
-
modalInput &&
|
|
27
|
-
modalInput.addEventListener("change", function () {
|
|
28
|
-
if (modalInput.value !== "") {
|
|
29
|
-
modalFooter.primaryActionDisabled = false;
|
|
30
|
-
} else {
|
|
31
|
-
modalFooter.primaryActionDisabled = true;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
count &&
|
|
36
|
-
count.addEventListener("change", (ev) => {
|
|
37
|
-
modalFooter.setAttribute("info-text", ev.target.value + " things ready to launch");
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
function actionTriggered(ev) {
|
|
41
|
-
modalInput.value = "";
|
|
42
|
-
console.log("Changes saved");
|
|
43
|
-
modalFooter.actionDisabled = true;
|
|
44
|
-
ev.target.open = false;
|
|
45
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// page is reloaded on click, so we can't setup onclick funcs like we would in real situation.
|
|
2
|
-
// for testing purposes we just set a url param and read that on load
|
|
3
|
-
function setActiveOnLoad() {
|
|
4
|
-
Array.from(document.querySelectorAll("wm-navigation-item")).map((el, index) => {
|
|
5
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
6
|
-
const indexParam = urlParams.get("item");
|
|
7
|
-
if (indexParam) {
|
|
8
|
-
el.active = index == indexParam;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
setActiveOnLoad();
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
function setProds() {
|
|
2
|
-
const navigator = document.getElementById("nav");
|
|
3
|
-
const userModules = [
|
|
4
|
-
{
|
|
5
|
-
id: "aqua",
|
|
6
|
-
linkUrl: "/aqua",
|
|
7
|
-
samlLinkUrl: "/saml/aqua",
|
|
8
|
-
iconUrl: "https://cdn.watermarkinsights.com/images/login/aqua.svg",
|
|
9
|
-
name: "Aqua",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: "dm",
|
|
13
|
-
linkUrl: "",
|
|
14
|
-
samlLinkUrl: "",
|
|
15
|
-
iconUrl: "https://cdn.watermarkinsights.com/images/login/digitalmeasures.svg",
|
|
16
|
-
name: "DM",
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
if (navigator) {
|
|
21
|
-
navigator.ref = (function () {
|
|
22
|
-
navigator.products = userModules;
|
|
23
|
-
})();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
setProds();
|
|
28
|
-
|
|
29
|
-
document.addEventListener(
|
|
30
|
-
"wmNavigatorLogout",
|
|
31
|
-
() => console.log("user logged out") // make sure to make the log persistent if you want to see this in the browser console.
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
|
|
File without changes
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
const search = document.getElementById("search-example");
|
|
2
|
-
if (search) search.oninput = (e) => sInputCallback(e);
|
|
3
|
-
let results = [];
|
|
4
|
-
|
|
5
|
-
const searchAndFind = document.getElementById("search-find-example");
|
|
6
|
-
if (searchAndFind) searchAndFind.oninput = (e) => sfInputCallback(e, ".foodlist");
|
|
7
|
-
|
|
8
|
-
const searchAndFindDatabase = document.getElementById("search-find-database-example");
|
|
9
|
-
if (searchAndFindDatabase)
|
|
10
|
-
searchAndFindDatabase.oninput = (e) => {
|
|
11
|
-
window.setTimeout(() => sfInputCallback(e, ".namelist"), 1000);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
function sfInputCallback(e, list) {
|
|
15
|
-
results = searchList(list, e.target.value);
|
|
16
|
-
e.target.numResults = results.length;
|
|
17
|
-
if (results.length) {
|
|
18
|
-
e.target.highlightedId = results[0].toLowerCase();
|
|
19
|
-
e.target.highlightedName = results[0];
|
|
20
|
-
} else {
|
|
21
|
-
e.target.highlightedId = "";
|
|
22
|
-
e.target.highlightedName = "";
|
|
23
|
-
}
|
|
24
|
-
highlight(e.target.highlightedId);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
searchAndFind &&
|
|
28
|
-
searchAndFind.addEventListener("wmSearchBrowseResults", (ev) => {
|
|
29
|
-
const results = searchList(".foodlist", ev.target.value);
|
|
30
|
-
const index = ev.detail.position - 1;
|
|
31
|
-
searchAndFind.highlightedId = results[index].toLowerCase();
|
|
32
|
-
searchAndFind.highlightedName = results[index];
|
|
33
|
-
highlight(searchAndFind.highlightedId);
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
searchAndFindDatabase &&
|
|
37
|
-
searchAndFindDatabase.addEventListener("wmSearchBrowseResults", (ev) => {
|
|
38
|
-
const results = searchList(".namelist", ev.target.value);
|
|
39
|
-
const index = ev.detail.position - 1;
|
|
40
|
-
ev.target.highlightedId = results[index].toLowerCase();
|
|
41
|
-
ev.target.highlightedName = results[index];
|
|
42
|
-
highlight(ev.target.highlightedId);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
function sInputCallback(e) {
|
|
46
|
-
results = searchList(".foodlist", e.target.value);
|
|
47
|
-
search.numResults = results.length;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function searchList(querySelector, searchString) {
|
|
51
|
-
const results = [];
|
|
52
|
-
let foods = [];
|
|
53
|
-
if (searchString) {
|
|
54
|
-
Array.from(document.querySelector(querySelector).children).map((item) => foods.push(item.textContent));
|
|
55
|
-
for (let i = 0; i < foods.length; i++) {
|
|
56
|
-
const food = foods[i].toLowerCase();
|
|
57
|
-
if (food.indexOf(searchString.toLowerCase()) === 0) {
|
|
58
|
-
results.push(foods[i]);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return results;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function highlight(id) {
|
|
66
|
-
document.querySelectorAll("li").forEach((i) => i.classList.remove("highlighted"));
|
|
67
|
-
if (id) {
|
|
68
|
-
document.querySelector("#" + id).classList.add("highlighted");
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
document.addEventListener("wmSelectBlurred", renderErrors);
|
|
2
|
-
|
|
3
|
-
function renderErrors() {
|
|
4
|
-
const errorDiv = document.getElementById("errors");
|
|
5
|
-
const select = document.getElementById("select1");
|
|
6
|
-
const selectedOption = Array.from(select.querySelectorAll("wm-option")).filter((o) => o.selected)[0];
|
|
7
|
-
|
|
8
|
-
if (selectedOption.value === "C") {
|
|
9
|
-
select.invalid = true;
|
|
10
|
-
select.errorMessage = "C is my least favorite letter.";
|
|
11
|
-
} else {
|
|
12
|
-
select.invalid = false;
|
|
13
|
-
select.errorMessage = null;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function testSelectedOption(selectComp) {
|
|
18
|
-
setTimeout(() => {
|
|
19
|
-
// making sure the selected and aria-selected attributes are always in sync
|
|
20
|
-
const options = selectComp.querySelectorAll("wm-option");
|
|
21
|
-
let selectedOption = Array.from(options).filter((option) => !!option.selected)[0];
|
|
22
|
-
const ariaSelectedOption = Array.from(options).filter((option) => !!option.getAttribute("aria-selected"))[0];
|
|
23
|
-
if (selectedOption != ariaSelectedOption) {
|
|
24
|
-
console.log(selectComp.id, selectedOption, ariaSelectedOption);
|
|
25
|
-
}
|
|
26
|
-
}, 150);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const selects = document.querySelectorAll("wm-select");
|
|
30
|
-
selects.forEach((select) => {
|
|
31
|
-
select.addEventListener("wmOptionSelected", (ev) => handleOptionSelected(ev));
|
|
32
|
-
select.addEventListener("wmOptionDeselected", (ev) => handleOptionDeselected(ev));
|
|
33
|
-
select.addEventListener("wmSelectAllSelected", (ev) => handleAllSelected(ev));
|
|
34
|
-
select.addEventListener("wmSelectAllDeselected", (ev) => handleAllDeselected(ev));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
function handleOptionSelected(ev) {
|
|
38
|
-
const parentSelect = ev.target.parentElement;
|
|
39
|
-
|
|
40
|
-
if (!parentSelect.multiple) {
|
|
41
|
-
// in single select, deselect all other options
|
|
42
|
-
parentSelect.querySelectorAll("wm-option").forEach((option) => (option.selected = false));
|
|
43
|
-
}
|
|
44
|
-
ev.target.selected = true;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function handleOptionDeselected(ev) {
|
|
48
|
-
ev.target.selected = false;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function handleAllSelected(ev) {
|
|
52
|
-
ev.target.querySelectorAll("wm-option").forEach((option) => (option.selected = true));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function handleAllDeselected(ev) {
|
|
56
|
-
ev.target.querySelectorAll("wm-option").forEach((option) => (option.selected = false));
|
|
57
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
function generateSnackbar(isDefault = false) {
|
|
2
|
-
const id = Math.floor(Math.random() * 100) + 1;
|
|
3
|
-
const message = isDefault ? `Here's a snackbar ${id}` : document.getElementById("custom-notif").value;
|
|
4
|
-
const link = isDefault ? "View this person in the table" : document.getElementById("custom-link").value;
|
|
5
|
-
const newWindow = isDefault ? true : link && document.getElementById("new-window").checked;
|
|
6
|
-
|
|
7
|
-
let newNotification = {
|
|
8
|
-
id: id,
|
|
9
|
-
message: message,
|
|
10
|
-
link: link,
|
|
11
|
-
newWindow: newWindow,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const snackbar = document.getElementById("snackbar");
|
|
15
|
-
const notifications = JSON.parse(snackbar.notifications);
|
|
16
|
-
let updatedNotifications = [newNotification, ...notifications];
|
|
17
|
-
snackbar.notifications = JSON.stringify(updatedNotifications);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
document.addEventListener("wmSnackbarSnackFinished", function (ev) {
|
|
21
|
-
console.log("in listener for finished snack");
|
|
22
|
-
const snackbar = document.getElementById("snackbar");
|
|
23
|
-
let newSnacks = JSON.parse(snackbar.notifications).filter(function (snack) {
|
|
24
|
-
return snack.id !== +ev.detail.id;
|
|
25
|
-
});
|
|
26
|
-
snackbar.notifications = JSON.stringify(newSnacks);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
document.addEventListener("wmSnackbarActionTriggered", function (ev) {
|
|
30
|
-
const snackbar = document.getElementById("snackbar");
|
|
31
|
-
let newSnacks = JSON.parse(snackbar.notifications).filter(function (snack) {
|
|
32
|
-
return snack.id !== +ev.detail.id;
|
|
33
|
-
});
|
|
34
|
-
snackbar.notifications = JSON.stringify(newSnacks);
|
|
35
|
-
console.log("You clicked the action.");
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const tab1 = document.getElementById("tab-1");
|
|
2
|
-
if (tab1) {
|
|
3
|
-
tab1.addEventListener("wmTabSelected", function (ev) {
|
|
4
|
-
let activeTab = ev.detail.tabId;
|
|
5
|
-
let tabContainer = document.getElementById("tab-1-wrapper");
|
|
6
|
-
let panel = tabContainer.querySelector("#tab-panel");
|
|
7
|
-
let tabList = document.getElementById("tab-1");
|
|
8
|
-
|
|
9
|
-
tabList.selectedTab = activeTab;
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const cloudTabs = document.getElementById("cloud-tabs");
|
|
13
|
-
cloudTabs &&
|
|
14
|
-
cloudTabs.addEventListener("wmTabSelected", (ev) => {
|
|
15
|
-
const tabId = ev.detail.tabId;
|
|
16
|
-
const cloudTabs = document.getElementById("cloud-tabs");
|
|
17
|
-
cloudTabs.selectedTab = tabId;
|
|
18
|
-
let panel = document.querySelector(`wm-tab-panel[tab-id=${tabId}]`);
|
|
19
|
-
console.log(panel);
|
|
20
|
-
|
|
21
|
-
if (panel) {
|
|
22
|
-
let text;
|
|
23
|
-
|
|
24
|
-
switch (tabId) {
|
|
25
|
-
case "cumulonimbus":
|
|
26
|
-
text =
|
|
27
|
-
'Cumulonimbus (from Latin cumulus, "heaped" and nimbus, "rainstorm") is a dense, towering vertical cloud.';
|
|
28
|
-
break;
|
|
29
|
-
case "cirrostratus":
|
|
30
|
-
text =
|
|
31
|
-
"Cirrostratus /ˌsɪroʊˈstrɑːtəs/ is a high-level, very thin, generally uniform stratiform genus-type of cloud.";
|
|
32
|
-
break;
|
|
33
|
-
case "altostratus":
|
|
34
|
-
text =
|
|
35
|
-
"Altostratus is a middle altitude cloud genus belonging to the stratiform physical category characterized by a generally uniform gray to bluish-green sheet or layer.";
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
text = "";
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
panel.innerHTML = text;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const allTagInputs = document.querySelectorAll("wm-tag-input");
|
|
2
|
-
|
|
3
|
-
allTagInputs.forEach((ti) => {
|
|
4
|
-
const initialTags = Array.from(ti.querySelectorAll("wm-tag-option")).map((o) => o.textContent);
|
|
5
|
-
|
|
6
|
-
ti.addEventListener("wmTagInputTagAdded", (ev) => {
|
|
7
|
-
const ciTagName = ev.detail.toLowerCase().trim();
|
|
8
|
-
const ciExistingTagNames = Array.from(ti.querySelectorAll("wm-tag-option")).map((o) =>
|
|
9
|
-
o.textContent.toLowerCase().trim()
|
|
10
|
-
);
|
|
11
|
-
if (ti.tagInputType === "dropdown" && !ciExistingTagNames.includes(ciTagName)) {
|
|
12
|
-
const to = document.createElement("wm-tag-option");
|
|
13
|
-
to.textContent = ev.detail;
|
|
14
|
-
to.id = "tag" + Math.random().toString(36).substr(2, 6);
|
|
15
|
-
to.selected = true;
|
|
16
|
-
ti.appendChild(to);
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
ti.addEventListener("wmTagOptionSelected", (ev) => {
|
|
21
|
-
ev.target.selected = true;
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
ti.addEventListener("wmTagOptionDeselected", (ev) => {
|
|
25
|
-
const isUserTag = !initialTags.includes(ev.target.textContent);
|
|
26
|
-
if (isUserTag) {
|
|
27
|
-
ev.target.remove();
|
|
28
|
-
} else {
|
|
29
|
-
ev.target.selected = false;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const textAreaEls = document.querySelectorAll("wm-textarea");
|
|
2
|
-
|
|
3
|
-
textAreaEls.forEach((textAreaEl) => {
|
|
4
|
-
textAreaEl.addEventListener("wmTextareaValueChanged", (ev) => {
|
|
5
|
-
console.log("wmTextareaValueChanged heard: ", ev.target.value);
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
textAreaEl.addEventListener("blur", (ev) => {
|
|
9
|
-
textAreaEl.characterLimit && handleCharacterLimit(textAreaEl);
|
|
10
|
-
textAreaEl.requiredField && handleRequiredTextArea(textAreaEl);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
function handleCharacterLimit(textAreaEl) {
|
|
14
|
-
if (textAreaEl.value.length > textAreaEl.characterLimit) {
|
|
15
|
-
textAreaEl.errorMessage = "Character limit exceeded, please reduce entered text.";
|
|
16
|
-
} else if (textAreaEl.errorMessage == "Character limit exceeded, please reduce entered text.") {
|
|
17
|
-
textAreaEl.errorMessage = "";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function handleRequiredTextArea(textAreaEl) {
|
|
22
|
-
if (textAreaEl.value.length == 0) {
|
|
23
|
-
textAreaEl.errorMessage = "This field is required.";
|
|
24
|
-
} else if (textAreaEl.errorMessage == "This field is required.") {
|
|
25
|
-
textAreaEl.errorMessage = "";
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const timepickers = document.querySelectorAll("wm-timepicker");
|
|
2
|
-
|
|
3
|
-
timepickers.forEach((timepicker) => {
|
|
4
|
-
timepicker.addEventListener("wmTimepickerInputBlurred", async (ev) => {
|
|
5
|
-
// reformat time and validate for invalid date
|
|
6
|
-
if (timepicker.value) {
|
|
7
|
-
if (await timepicker.isValidTime(ev.target.value)) {
|
|
8
|
-
const displayTime = await timepicker.reformatTime("12", timepicker.value);
|
|
9
|
-
|
|
10
|
-
timepicker.errorMessage = "";
|
|
11
|
-
timepicker.value = displayTime;
|
|
12
|
-
} else {
|
|
13
|
-
timepicker.errorMessage = "Please enter a valid time";
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
timepicker.addEventListener("blur", (ev) => {
|
|
19
|
-
// validate for required time
|
|
20
|
-
if (timepicker.requiredField && timepicker.value === "") {
|
|
21
|
-
timepicker.errorMessage = "A time is required";
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
timepicker.addEventListener("wmTimepickerTimeSelected", async (ev) => {
|
|
26
|
-
// handle user time selection
|
|
27
|
-
const selectedTime = ev.detail.time;
|
|
28
|
-
|
|
29
|
-
timepicker.errorMessage = "";
|
|
30
|
-
timepicker.value = await timepicker.reformatTime("12", selectedTime);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
File without changes
|