@watermarkinsights/ripple 5.2.0 → 5.2.1-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-595657ce.js} +10 -1
- package/dist/cjs/{chartFunctions-2195a9d2.js → chartFunctions-e86ed63c.js} +3 -3
- package/dist/cjs/{functions-48a748f0.js → functions-698530be.js} +103 -6
- package/dist/cjs/index-4853a7b4.js +1800 -0
- package/dist/cjs/{intl-29d2cc42.js → intl-6751b1c3.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
- package/dist/cjs/priv-datepicker.cjs.entry.js +9 -8
- 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 +8 -6
- package/dist/cjs/wm-button.cjs.entry.js +5 -4
- 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-datepicker.cjs.entry.js +5 -4
- 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 -4
- package/dist/cjs/wm-modal-header.cjs.entry.js +6 -6
- package/dist/cjs/wm-modal.cjs.entry.js +9 -11
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
- 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 +2 -2
- 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-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +5 -5
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +13 -9
- 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 -2
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -2
- package/dist/collection/components/wm-modal/wm-modal.js +8 -28
- 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/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/{cjs/global-d5e26274.js → esm/app-globals-275ee9d8.js} +7 -2
- package/dist/esm/{chartFunctions-d2d8f1b2.js → chartFunctions-8098e455.js} +3 -3
- package/dist/esm/{functions-58918a32.js → functions-f317d2d6.js} +103 -6
- package/dist/esm/index-7923308f.js +1770 -0
- package/dist/esm/{intl-f9d79dff.js → intl-00a637cf.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-chart-popover.entry.js +6 -5
- package/dist/esm/priv-datepicker.entry.js +9 -8
- 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 +8 -6
- package/dist/esm/wm-button.entry.js +5 -4
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +7 -6
- package/dist/esm/wm-datepicker.entry.js +5 -4
- 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 -4
- package/dist/esm/wm-modal-header.entry.js +6 -6
- package/dist/esm/wm-modal.entry.js +9 -11
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +4 -3
- 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-275ee9d8.js +1 -0
- package/dist/esm-es5/{chartFunctions-d2d8f1b2.js → chartFunctions-8098e455.js} +1 -1
- package/dist/esm-es5/functions-f317d2d6.js +1 -0
- package/dist/esm-es5/index-7923308f.js +1 -0
- package/dist/esm-es5/{intl-f9d79dff.js → intl-00a637cf.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 +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-4fc6019b.system.entry.js → p-00f8637e.system.entry.js} +1 -1
- package/dist/ripple/{p-0ba8d3b6.system.entry.js → p-06c018cf.system.entry.js} +1 -1
- package/dist/ripple/p-0707b4c2.entry.js +1 -0
- package/dist/ripple/p-09bfc1b8.system.entry.js +1 -0
- package/dist/ripple/{p-3e9fcb47.entry.js → p-0bb464b1.entry.js} +1 -1
- package/dist/ripple/{p-add75652.system.entry.js → p-0d0e0a1e.system.entry.js} +1 -1
- package/dist/ripple/p-0ec1e075.entry.js +1 -0
- package/dist/ripple/{p-65420b71.entry.js → p-18c1593b.entry.js} +1 -1
- package/dist/ripple/p-19f29a48.entry.js +1 -0
- package/dist/ripple/p-1bf85dc1.entry.js +1 -0
- package/dist/ripple/p-1ee68e06.system.entry.js +1 -0
- package/dist/ripple/p-1fcc8007.system.entry.js +1 -0
- package/dist/ripple/p-28119849.system.entry.js +1 -0
- package/dist/ripple/p-2849847d.system.entry.js +1 -0
- package/dist/ripple/p-2ec13501.entry.js +1 -0
- package/dist/ripple/{p-25446670.entry.js → p-2f39732e.entry.js} +1 -1
- package/dist/ripple/p-3132d4d3.entry.js +1 -0
- package/dist/ripple/p-340f96b5.entry.js +1 -0
- package/dist/ripple/{p-406f1e79.system.entry.js → p-3639dbbc.system.entry.js} +1 -1
- package/dist/ripple/p-3e605541.entry.js +1 -0
- package/dist/ripple/p-439d839b.system.entry.js +1 -0
- package/dist/ripple/p-445d6915.entry.js +1 -0
- package/dist/ripple/p-48ed56a0.entry.js +1 -0
- package/dist/ripple/p-4978ff1b.system.entry.js +1 -0
- package/dist/ripple/{p-abe3242c.entry.js → p-49f94f8a.entry.js} +1 -1
- package/dist/ripple/p-4c3f4047.system.js +1 -0
- package/dist/ripple/p-4d511ecc.system.entry.js +1 -0
- package/dist/ripple/p-510fab1c.system.entry.js +1 -0
- package/dist/ripple/p-53801a61.system.js +1 -0
- package/dist/ripple/p-539b7be9.system.js +2 -0
- package/dist/ripple/p-56475435.entry.js +1 -0
- package/dist/ripple/{p-a03df46c.entry.js → p-636ca7f2.entry.js} +1 -1
- package/dist/ripple/{p-fa3d10db.js → p-644092fd.js} +1 -1
- package/dist/ripple/{p-29509665.system.entry.js → p-66a57d81.system.entry.js} +1 -1
- package/dist/ripple/{p-eda4d59c.js → p-681c1853.js} +1 -1
- package/dist/ripple/p-6b71806b.entry.js +1 -0
- package/dist/ripple/p-7afa2fdc.system.entry.js +1 -0
- package/dist/ripple/{p-6a9f7651.entry.js → p-7cb98aa5.entry.js} +1 -1
- package/dist/ripple/p-7dbc4abc.system.entry.js +1 -0
- package/dist/ripple/{p-02b625f6.system.entry.js → p-8151c39b.system.entry.js} +1 -1
- package/dist/ripple/{p-aecd5a1a.system.js → p-94a54d68.system.js} +1 -1
- package/dist/ripple/p-950edf62.entry.js +1 -0
- package/dist/ripple/p-9bda128e.system.entry.js +1 -0
- package/dist/ripple/p-9ca027b7.entry.js +1 -0
- package/dist/ripple/{p-3a070f35.entry.js → p-9d4ea9f8.entry.js} +1 -1
- package/dist/ripple/{p-7e56da2e.system.entry.js → p-9d8817a7.system.entry.js} +1 -1
- package/dist/ripple/p-a431d6e5.js +2 -0
- package/dist/ripple/p-a6119885.system.entry.js +1 -0
- package/dist/ripple/p-a77f2168.entry.js +1 -0
- package/dist/ripple/p-adfaeeea.entry.js +1 -0
- package/dist/ripple/{p-c9943d2e.system.entry.js → p-b02c0c41.system.entry.js} +1 -1
- package/dist/ripple/p-b2596afc.entry.js +1 -0
- package/dist/ripple/p-bb100d77.system.js +1 -0
- package/dist/ripple/p-bbb8c02f.system.entry.js +1 -0
- package/dist/ripple/p-bd7e892d.entry.js +1 -0
- package/dist/ripple/p-c9552e88.system.entry.js +1 -0
- package/dist/ripple/p-d344e490.entry.js +1 -0
- package/dist/ripple/p-d87e105b.system.entry.js +1 -0
- package/dist/ripple/p-dd40858d.system.entry.js +1 -0
- package/dist/ripple/{p-011a4acc.system.entry.js → p-e0ff556b.system.entry.js} +1 -1
- package/dist/ripple/p-e19e1ece.system.entry.js +1 -0
- package/dist/ripple/p-e28cadd0.system.entry.js +1 -0
- package/dist/ripple/{p-f9689d7a.entry.js → p-e3d8f2f6.entry.js} +1 -1
- package/dist/ripple/p-e8eef357.entry.js +1 -0
- package/dist/ripple/p-eb596891.entry.js +1 -0
- package/dist/ripple/p-ec384895.system.entry.js +1 -0
- package/dist/ripple/p-eccb5aaf.entry.js +1 -0
- package/dist/ripple/{p-0d15e3f0.system.js → p-ed372e19.system.js} +1 -1
- package/dist/ripple/{p-a99b05de.system.entry.js → p-edcb8f48.system.entry.js} +1 -1
- package/dist/ripple/p-ef8f7363.js +1 -0
- package/dist/ripple/p-f4bc9c19.entry.js +1 -0
- package/dist/ripple/p-fc710a30.js +1 -0
- package/dist/ripple/p-ff7dac66.system.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +76 -0
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +1 -1
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +0 -1
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +0 -1
- package/dist/types/components/wm-modal/wm-modal.d.ts +0 -1
- package/dist/types/components.d.ts +2 -4
- 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/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.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-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/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
|
@@ -34,7 +34,7 @@ export class NavigationHamburger {
|
|
|
34
34
|
this.wmNavigationHamburgerClicked.emit();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { class: "icon" }))));
|
|
37
|
+
return (h(Host, { key: 'bb783acfebdfcf8ac95b2afc89f073896ea9b7e4', class: `hamburger ${this.open ? "nav-open" : "nav-closed"}` }, h("button", { key: '708812a3c933396c95185d6622f9d5d52b270ff0', "aria-expanded": this.open, "aria-label": this.showNavMessage, onMouseEnter: () => showTooltip("right", this.el, this.showNavMessage), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing && showTooltip("right", this.el, this.showNavMessage), onBlur: () => hideTooltip(), onClick: () => this.handleClick() }, h("span", { key: 'f1f34d7ed178f4f609e5adf2122399cffdd76a68', class: "icon" }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "wm-navigation-hamburger"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ export class NavigationItem {
|
|
|
6
6
|
this.active = undefined;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { role: "listitem" }, h("a", { class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { class: "icon", "aria-hidden": "true" }, h("slot",
|
|
9
|
+
return (h(Host, { key: '33217bc2b481b331425cbc7ece6195cb436e7bf0', role: "listitem" }, h("a", { key: 'a7b6d4e959a2ca4773f70859cf10789f5d97a4a4', class: `link ${this.active ? "active" : ""}`, href: this.href, onClick: () => this.wmNavigationItemClicked.emit() }, h("div", { key: 'f0d37d22d32fb7659adc2a3a9911f9e68928fc93', class: "icon", "aria-hidden": "true" }, h("slot", { key: '8678da1761b5192c821a3fcb736c1ac96b2ce43c' })), h("div", { key: 'a21f01425d6adc2da148449b34733c9e6ed39be5', class: "text" }, this.text))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "wm-navigation-item"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,9 +96,9 @@ export class Navigation {
|
|
|
96
96
|
} }));
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { class: "tray" }, h("div", { class: "toggle-wrapper" }, h("wm-button", { ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
99
|
+
return (h(Host, { key: '438a0fb1164b8ce7ce05d3032a03cbc14b6dbbf9', role: "navigation", "aria-expanded": this.ariaExpanded, "aria-label": this.mainNavigationMessage }, this.open ? this.renderOverlay() : "", this.isCollapsible && (h("div", { key: '05214ccbadf96b315e0b35cd5c6fa5299582ac08', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.focusLastItem() })), h("div", { key: 'f9b8092df608206c64251abe889ead679fd91e8b', class: "tray" }, h("div", { key: '23ab4007600faafd5e159400c7950c6da27f6fc6', class: "toggle-wrapper" }, h("wm-button", { key: '08626268ecd50d66fca80f0081af427c9902742a', ref: (el) => (this.toggleEl = el), class: "toggle", "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? globalMessages.close : globalMessages.open, "tooltip-position": "right", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
100
100
|
this.open = !this.open;
|
|
101
|
-
} })), h("ul", { class: "navlist" }, h("slot",
|
|
101
|
+
} })), h("ul", { key: 'c50bb2f99877871b6ba28ded7e78f74f8c8c5d1f', class: "navlist" }, h("slot", { key: '50c4f79ab19f853abeb9ba8e41caf180d04a605c' }))), this.isCollapsible && (h("div", { key: '87b371694aab525291eb397521140087d2b0c9f3', class: "trapfocus", tabindex: this.open ? 0 : undefined, onFocus: () => this.toggleEl.focus() }))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-navigation"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js
CHANGED
|
@@ -9,7 +9,7 @@ export class PrivNavigatorButton {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const { handleClick, altText } = this;
|
|
12
|
-
return (h("button", { "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
12
|
+
return (h("button", { key: 'a3581aedd9455ccc209a083465be4015306288aa', "aria-expanded": this.expanded.toString(), class: "navigator", onClick: handleClick.bind(this), "aria-label": altText }));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "priv-navigator-button"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class PrivNavigatorItem {
|
|
|
16
16
|
render() {
|
|
17
17
|
const selectedClass = this.selected ? "selected" : "";
|
|
18
18
|
const focusedClass = this.focused ? "focused" : "";
|
|
19
|
-
return (h("div", { class: `navoption ${selectedClass} ${focusedClass}` }, h("slot",
|
|
19
|
+
return (h("div", { key: '0eb72db17cdc3631eb2febb8f69cad9f27c92ab3', class: `navoption ${selectedClass} ${focusedClass}` }, h("slot", { key: '8d32384ba6f921a248db3f5c1a05cb70dc96645c' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "priv-navigator-item"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -137,7 +137,7 @@ export class Option {
|
|
|
137
137
|
this.parentSelectEl.addEventListener("wmSelectSearchChanged", (ev) => this.handleSearch(ev));
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
|
-
return (h(Host, { role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { class: `option-wrapper ${this.parentSelectEl.multiple ? "checkbox" : ""}` }, h("span", { class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { class: "sr-only" }, this.el.textContent)), h("div", { class: "subinfo" }, this.subinfo)));
|
|
140
|
+
return (h(Host, { key: '8cbc11751fd37bc0e031c25e4bd17664332b60a7', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '497bc52a071d74ad08650fbec15c75f4826a301a', class: `option-wrapper ${this.parentSelectEl.multiple ? "checkbox" : ""}` }, h("span", { key: '926aa9bd609bdb9d66b881f2a1e9f94fb209f209', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: 'e5fc6d405291a4845b2aae00d403f611640be4cd', class: "sr-only" }, this.el.textContent)), h("div", { key: '2b2210bc34b97efe6e4b2c6803e6d1071f123e47', class: "subinfo" }, this.subinfo)));
|
|
141
141
|
}
|
|
142
142
|
static get is() { return "wm-option"; }
|
|
143
143
|
static get encapsulation() { return "shadow"; }
|
|
@@ -151,7 +151,7 @@ export class Pagination {
|
|
|
151
151
|
render() {
|
|
152
152
|
return (
|
|
153
153
|
// do not render the component if there's only one page
|
|
154
|
-
this.totalItems > this.itemsPerPage && (h("nav", { "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
154
|
+
this.totalItems > this.itemsPerPage && (h("nav", { key: '5dd60b67a0af0e874e3f5cf4889ec47ad315a8aa', "aria-label": `Pagination Navigation. ${this.getCurrentPagesInView()}. Current page, ${this.currentPage}.` }, this.isLargeSize ? this.renderLarge() : this.renderSmall(), h("div", { key: 'c79dbda4859575587c59f32eb4a8972441393cea', id: "status", class: "sr-only", "aria-live": "polite", "aria-relevant": "text", "aria-atomic": "true" }, this.srAnnouncement))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "wm-pagination"; }
|
|
157
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -166,10 +166,10 @@ export class Search {
|
|
|
166
166
|
* End search and find render helpers
|
|
167
167
|
*/
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host,
|
|
169
|
+
return (h(Host, { key: '280b47dbcf6eb02dedfdbe3e10b91598c650bd08' }, h("div", { key: 'd66f5a5a1cb14843623e900ceea640c8d300642f', id: "wm-search-wrapper", class: `wm-search-wrapper ${this.searchType}` }, h("input", { key: 'a03aaf36657e05595e69ba93df05d4d7f24caefc', disabled: this.isDisabled, id: "wm-search-input", placeholder: this.placeholder, "aria-label": `${this.label ? this.label + ". " : ""}${intl.formatMessage({
|
|
170
170
|
id: "search.typeToFilterResults",
|
|
171
171
|
defaultMessage: "Type to filter the results",
|
|
172
|
-
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
|
|
172
|
+
})}`, onInput: (ev) => this.updateValue(ev.target.value), onBlur: () => this.handleBlur(), "aria-autocomplete": "none", autocomplete: "off", value: this.value }), h("span", { key: '15150abbffc25d3675d7886fb74e624f54d9feb7', class: "mdi search-icon" }, String.fromCodePoint(parseInt(`0xf349`))), this.searchType === "find" && this.renderResultsAndBrowseButtons(), h("div", { key: '9750983b8b70aa6d83bee49aead3fcddb128c094', id: "wm-search-live", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.resultsLiveRegion = el) }, this.announcement)), this.searchType === "find" && this.renderJumpToLink()));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "wm-search"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -380,8 +380,9 @@ export class Search {
|
|
|
380
380
|
"complexType": {
|
|
381
381
|
"signature": "(value: string) => Promise<void>",
|
|
382
382
|
"parameters": [{
|
|
383
|
-
"
|
|
384
|
-
"
|
|
383
|
+
"name": "value",
|
|
384
|
+
"type": "string",
|
|
385
|
+
"docs": ""
|
|
385
386
|
}],
|
|
386
387
|
"references": {
|
|
387
388
|
"Promise": {
|
|
@@ -553,9 +553,9 @@ export class Select {
|
|
|
553
553
|
["aria-expanded"]: this.isExpanded ? "true" : "false",
|
|
554
554
|
onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
555
555
|
};
|
|
556
|
-
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
556
|
+
return (h(Host, { key: 'b8656f0d3d1b17b617b3eb15e1ee29181d4bc1ea', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '66bf9599c8b862d3218432603c19473348cfdee0', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'db74941a314ab811607cfec02b29b5828de3e8c2', class: "label-wrapper" }, h("label", { key: 'd2d29ab1b29b3ad46f580b5e209d57e8bc81544a', class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
557
557
|
// we can't use aria-required or required attributes because it's invalid on the elements we're using (button controlling a listbox)
|
|
558
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev), onFocus: () => this.close() }), h("span", { class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount()), h("div", { class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton(), h("div", { id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el) }, this.search && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot",
|
|
558
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { key: 'aafa5ae03c194944d996eb72f49e74efc9e90a52', class: "button-wrapper" }, h("button", Object.assign({ key: '3b750d66778ce5bd221f1abd391ed8bd612c7735' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev), onFocus: () => this.close() }), h("span", { key: 'd8a89fe774a7dc779270ff774a831ceea0973465', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '6c895b0e0d8d14eb00746c0d21664a7b8b8dcd8c', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'c2ebabdaffa8cdef1c17de42e06d2ada3eba56f0', class: "subinfo" }, this.selectedOptions[0].subinfo)), this.renderOverflowCount()), h("div", { key: '63482f1de9aa5ab82187844d15fa88a890978c1c', class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton(), h("div", { key: 'ca643cd551f6cd0fac7c9d047e13891648eac2da', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", ref: (el) => (this.listboxEl = el) }, this.search && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: '3bfc9e9167a7fe7c367b2f6f1c358b5ba01e5951' }))), h("div", { key: 'ae150866a2cdf9f7c82fd8eec3e96f75e5658efe', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'b631744fa098439b91d37d48f91d3ed095bf03cd', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
559
559
|
}
|
|
560
560
|
static get is() { return "wm-select"; }
|
|
561
561
|
static get encapsulation() { return "shadow"; }
|
|
@@ -105,11 +105,11 @@ export class Snackbar {
|
|
|
105
105
|
}, onKeyDown: (ev) => ev.key === "Enter" && this.snackLinkClicked(notification) }, h("span", { "aria-hidden": "true" }, notification.link)))), h("button", { id: `close-button-${notification.id}`, "aria-label": "Close this notification", class: "closesnack", tabindex: notification.link ? 0 : -1, onClick: () => this.snackDismissed(notification), onMouseEnter: (ev) => showTooltip("bottom", ev.target, globalMessages.close), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.isTabbing && showTooltip("bottom", ev.target, globalMessages.close), onBlur: () => hideTooltip() })), h("div", { class: "sr-only", tabindex: notification.link ? 0 : -1, onFocus: () => notification.link && this.snackDismissed(notification) })))));
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (h("div", { class: {
|
|
108
|
+
return (h("div", { key: '617193748c9598e9174afd35040ee1e5e2fe30a7', class: {
|
|
109
109
|
"wm-snackbars": true,
|
|
110
110
|
empty: this.parsedNotifications.length === 0,
|
|
111
111
|
"user-is-tabbing": this.isTabbing,
|
|
112
|
-
} }, h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement), this.renderSnackbars()));
|
|
112
|
+
} }, h("div", { key: '378271fcda38d38b9df1f89f54cf28e46ce0b0e7', class: "sr-only", "aria-live": "polite", "aria-atomic": "false", id: `wm-live-region-${this.uid}`, ref: (el) => (this.liveRegionEl = el) }, this.announcement), this.renderSnackbars()));
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "wm-snackbar"; }
|
|
115
115
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class TabItem {
|
|
|
40
40
|
"background-size": `calc(100% - ${bkgSize}${units}) 3px`,
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
return (h(Host, { role: "presentation" }, h("li", { class: "tab-item", role: "presentation" }, h("a", { class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot",
|
|
43
|
+
return (h(Host, { key: 'd5abb94af87c1969ffaa8bb1230910b9455e0279', role: "presentation" }, h("li", { key: '030939b9181461260624ddd8ec36b6838891918b', class: "tab-item", role: "presentation" }, h("a", { key: 'deadcc1ab9a77f852a11ce5d38f4afe088572da4', class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 }, h("slot", { key: '92c6e1c0f86c69ce39570efec458f4015f2f4f29' })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "wm-tab-item"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class TabList {
|
|
|
155
155
|
} }, t.textContent)));
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return h(Host, { class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
|
|
158
|
+
return h(Host, { key: 'ae6a2b38bbbc22a06e52d5971850d197bec72187', class: this.menuLayout ? "menu" : "" }, this.renderMenuOrTabs());
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "wm-tab-list"; }
|
|
161
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class TabPanel {
|
|
|
12
12
|
this.tabPanelLoaded.emit({ tabId: this.tabId });
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h(Host, { role: "tabpanel", class: { "tab-hidden": !this.active } });
|
|
15
|
+
return h(Host, { key: '7c85919cac0154edb77c7148c49b2f6079b4cb44', role: "tabpanel", class: { "tab-hidden": !this.active } });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "wm-tab-panel"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -858,12 +858,12 @@ export class TagInput {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
render() {
|
|
861
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { class: "upper-row" }, h("div", { class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
861
|
+
return (h("div", { key: '42689cfb6470742fa6cbdada937940b6e51edf4e', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '1cebc78175238c435c61144af94c38e2e21c62b2', class: "label-wrapper" }, h("label", { key: 'a009c754cae8b9051bbe34877a3b1ab2b3da00fd', class: "label", htmlFor: "input" }, this.label, this.requiredField && (h("span", { key: 'dc7088f601b9cfc761dca448761d6500e7bcaadb', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: '10b3e8e2e44ca41e3a7a894c5fdbb6378a697a6d', class: `field-wrapper ${this.el.shadowRoot.activeElement === this.inputEl ? "focused" : ""} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.fieldWrapperEl = el) }, h("div", { key: '43a3cb290af6011ee72a8b56a957506b53cdc321', class: "upper-row" }, h("div", { key: '43c32f316b8584b16b7428c68217bd906582e083', class: `tags-and-input-wrapper ${this.inModal ? "in-modal" : ""}` }, h("ul", { key: '15e56a242f297fb39024fc98f68c7157b2d890f1', ref: (el) => (this.tagAreaEl = el), class: `tag-area ${this.taggedOptions.length === 0 && "empty"} ${this.isKeying ? "user-is-keying" : ""}`, role: "listbox", "aria-activedescendant": this.focusedTag ? this.focusedTag.id : null, "aria-orientation": "horizontal", "aria-label": `${this.label} ${this.tagAreaInstructions}`, tabindex: this._tagEls.length > 0 ? 0 : -1, "aria-describedby": `info max-tags`, onFocus: (ev) => this.handleTagAreaFocus(ev), onBlur: (ev) => {
|
|
862
862
|
this.focusedTagIndex = undefined;
|
|
863
863
|
this.handleBlur(ev);
|
|
864
|
-
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
|
|
864
|
+
}, onKeyDown: (ev) => this.handleTagAreaKeyDown(ev) }, this.renderTags()), h("input", { key: 'eb8ac481f3d8aa8f384598ceb3ab111309c4db37', id: "input", class: "input", role: "combobox", ref: (el) => (this.inputEl = el), autocomplete: "off", "aria-required": this.requiredField ? "true" : null, "aria-controls": this.tagInputType, "aria-describedby": `help-text${this.errorMessage ? " error " : ""} max-tags`, "aria-label": `${this.label} ${this.isDropdown ? globalMessages.getCharacterLimit(this.characterLimit) : ""}`, "aria-expanded": this.isDropdown ? this.isExpanded.toString() : null, "aria-activedescendant": this.inputActiveDescendantId, placeholder: this.placeholder, maxLength: this.isDropdown ? this.characterLimit : undefined, onInput: (ev) => this.handleInputChanged(ev), onBlur: (ev) => {
|
|
865
865
|
this.handleBlur(ev);
|
|
866
|
-
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { id: "info", class: "info-text" }, this.info)), h("div", { id: "error" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
866
|
+
}, onFocus: () => this.handleInputFocus(), onKeyDown: (ev) => this.handleInputKeyDown(ev) })), this.isDropdown && (h("div", { key: '6f9616ab086ef5ceaa443dc990866403c30025bf', class: "character-count" }, this.charCount, "/", this.characterLimit))), this.renderTagCounter(), this.isDropdown && this.renderDropdown()), this.info && (h("div", { key: '62598c8911b5160d499feca29d7e1408b13fbff4', id: "info", class: "info-text" }, this.info)), h("div", { key: '36b6e15fc893c8e147f072ea61b4036c4d542823', id: "error" }, this.errorMessage), h("div", { key: '1dce155e6ea79b47fbb4b21e5d08b8eb1ac81a11', class: "sr-only", "aria-live": "polite", ref: (el) => (this.liveRegionEl = el), "aria-atomic": "true" }, this.liveRegionMessage), this.isTable && this.renderTable()));
|
|
867
867
|
}
|
|
868
868
|
static get is() { return "wm-tag-input"; }
|
|
869
869
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,7 +65,7 @@ export class Textarea {
|
|
|
65
65
|
this.announcement = message;
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: "inner-wrapper" }, h("div", { class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
68
|
+
return (h("div", { key: 'ad77d3d9220eb010252ccedb8add52e7d141774e', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '4be11635c42e30517ea66775a164f2be12c7065c', class: "label-wrapper" }, h("label", { key: '0770600c79c77c5d14f863bcdd118e8250548cd9', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: '3b8559fe869fcdda34f3d03fb4c80c410d4d05a1', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: 'a4333b22a989b92d0d189f8098586c3a6191d5d2', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: 'c3e21a23da93afaacc9f7492802c9db0b956b9de', class: "inner-wrapper" }, h("div", { key: '9a0b7a597bfd4803f6287d8443eda286bb25e093', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '7ec44610539244fb4c8f66321d36361bef94ba6f', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '51c2c404d55b271d603a26e8e91bf7b100dd4491', id: "info", class: "info" }, this.info)), h("div", { key: 'ab404e1446c00ea66700b97f9a68d13e65274cfd', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '797b7c6014e378c0e1b54cbbb87e648785071ad0', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "wm-textarea"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -275,13 +275,13 @@ export class Timepicker {
|
|
|
275
275
|
return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
|
|
276
276
|
}
|
|
277
277
|
render() {
|
|
278
|
-
return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*"))))), h("div",
|
|
278
|
+
return (h(Host, { key: 'ee9e14b112e3b11d9f1628c078a164e270ce70e2', onBlur: () => this.close(false) }, h("div", { key: '3f8af029d41f9f73296c86ac79589dd088df6434', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: 'dd554b5e654effab5cabeb6100e17572606ebcd9', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '0aba4e99183eacc07319241ca9f039e05b38c417', id: "label", class: "label", htmlFor: "time-input" }, this.label, this.requiredField && (h("span", { key: '062f38199696172947ce372516f17cad7f98c734', class: "required", "aria-hidden": "true" }, "*"))))), h("div", { key: 'bab8b143036dacfc44bab8876fd07a74ad5c82b4' }, h("div", { key: 'fdce06d1c033ca52d675266fc22c425088ca1344', class: "inner-wrapper" }, h("input", { key: 'f431f927cf50efa38e4c4e28371015908758a8e1', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: 'bb948a432dacab0a5e26be08a8ac12c346e46f5b', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
279
279
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
280
280
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
281
281
|
onMouseDown: (ev) => {
|
|
282
282
|
ev.preventDefault();
|
|
283
283
|
this.buttonEl.focus();
|
|
284
|
-
} }, h("span", { class: "clock" })), h("ul", { class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { id: "error", class: "error" }, this.errorMessage)), h("div", { id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
284
|
+
} }, h("span", { key: '9fa145496b91b3e202f4e844814a3983c4383ead', class: "clock" })), h("ul", { key: 'a507114d7751047b3ebac56e806c96bb03ead231', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '754203e8529db486370254e09643342add95a7b6', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '7847cbb2f4a4eb170815eee2a7c49a2b5f9351a5', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
285
285
|
}
|
|
286
286
|
static get is() { return "wm-timepicker"; }
|
|
287
287
|
static get encapsulation() { return "shadow"; }
|
|
@@ -468,8 +468,9 @@ export class Timepicker {
|
|
|
468
468
|
"complexType": {
|
|
469
469
|
"signature": "(input: string) => Promise<boolean>",
|
|
470
470
|
"parameters": [{
|
|
471
|
-
"
|
|
472
|
-
"
|
|
471
|
+
"name": "input",
|
|
472
|
+
"type": "string",
|
|
473
|
+
"docs": ""
|
|
473
474
|
}],
|
|
474
475
|
"references": {
|
|
475
476
|
"Promise": {
|
|
@@ -488,11 +489,13 @@ export class Timepicker {
|
|
|
488
489
|
"complexType": {
|
|
489
490
|
"signature": "(format: \"12\" | \"24\", time: TimeFormat12 | TimeFormat24) => Promise<string>",
|
|
490
491
|
"parameters": [{
|
|
491
|
-
"
|
|
492
|
-
"
|
|
492
|
+
"name": "format",
|
|
493
|
+
"type": "\"12\" | \"24\"",
|
|
494
|
+
"docs": ""
|
|
493
495
|
}, {
|
|
494
|
-
"
|
|
495
|
-
"
|
|
496
|
+
"name": "time",
|
|
497
|
+
"type": "string",
|
|
498
|
+
"docs": ""
|
|
496
499
|
}],
|
|
497
500
|
"references": {
|
|
498
501
|
"Promise": {
|
|
@@ -97,9 +97,9 @@ export class Toggletip {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { class: `size-${this.targetSize}` }, h("button", { class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
|
|
100
|
+
return (h(Host, { key: '643fbf2de6e3b8438f6899557532008c4c7a342b', class: `size-${this.targetSize}` }, h("button", { key: '8e7e0025c2dd12361a68c86e48e514e3c817ce3b', class: "button", type: "button", "aria-label": this.label, onClick: () => this.open(),
|
|
101
101
|
// In order to position the tooltip identically to the toggletip, it's presence is determined by these four events
|
|
102
|
-
onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
102
|
+
onMouseEnter: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip(this.tooltipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }), h("div", { key: '77bddadb74b49f5c46631c160a95597a1fe432d0', ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.isOpen ? "" : "hidden"} ${this.tooltipPosition}` }, this.tooltip), h("div", { key: '5037247de94493cfe9ef7644fe18144f4e046327', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "wm-toggletip"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,9 +195,9 @@ export class Uploader {
|
|
|
195
195
|
return (h("div", { class: `wrapper ${this.errorMessage ? "invalid" : ""}` }, h("div", { id: "label", class: `label` }, this.label, this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))));
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h(Host,
|
|
198
|
+
return (h(Host, { key: 'bd3db6cd234170ccd16da6868a672489a7ee207f' }, this.label && this.renderLabel(), this.renderHeader(), this.renderListContainer(), h("div", { key: 'aaf03bc1b068d79b1e9c9a8bae78ca560c25412c', ref: (el) => (this.assertiveLiveRegionEl = el), class: "live-region sr-only", "aria-live": "assertive" // since it's directly linked to the action the user took, it should be read in priority. With polite, some messages get dismissed in favor of the page title
|
|
199
199
|
,
|
|
200
|
-
"aria-atomic": "true" }), h("div", { ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
200
|
+
"aria-atomic": "true" }), h("div", { key: '1a0c1343c241c9e257b52b41973940cc75145b7a', ref: (el) => (this.politeLiveRegionEl = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" })));
|
|
201
201
|
}
|
|
202
202
|
static get is() { return "wm-uploader"; }
|
|
203
203
|
static get encapsulation() { return "shadow"; }
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
function showModal(id) {
|
|
2
|
+
const modal = document.getElementById(id);
|
|
3
|
+
modal.open = true;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
function showDialog(id) {
|
|
7
|
+
const event = new Event("wmShowModal");
|
|
8
|
+
event.detail = "dialog";
|
|
9
|
+
window.dispatchEvent(event);
|
|
10
|
+
const dialog = document.getElementById(id);
|
|
11
|
+
dialog.open = true;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const modal = document.getElementById("modal");
|
|
15
|
+
const innerModal = document.getElementById("inner-modal");
|
|
16
|
+
const innerDialog = document.getElementById("inner-dialog");
|
|
17
|
+
const nestedModal = document.getElementById("nested-modal");
|
|
18
|
+
|
|
19
|
+
const modalInput = document.getElementById("modal-input");
|
|
20
|
+
const count = document.getElementById("count");
|
|
21
|
+
const modalFooter = document.getElementById("modal-footer");
|
|
22
|
+
|
|
23
|
+
modalInput &&
|
|
24
|
+
modalInput.addEventListener("change", function () {
|
|
25
|
+
if (modalInput.value !== "") {
|
|
26
|
+
modalFooter.primaryActionDisabled = false;
|
|
27
|
+
} else {
|
|
28
|
+
modalFooter.primaryActionDisabled = true;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
count &&
|
|
33
|
+
count.addEventListener("change", (ev) => {
|
|
34
|
+
modalFooter.setAttribute("info-text", ev.target.value + " things ready to launch");
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const nestingModals = [modal, innerModal, innerDialog, nestedModal];
|
|
38
|
+
|
|
39
|
+
nestingModals.forEach((modal) => {
|
|
40
|
+
modal && modal.addEventListener("wmModalPrimaryTriggered", actionTriggered);
|
|
41
|
+
modal && modal.addEventListener("wmModalSecondaryTriggered", modalDismissed);
|
|
42
|
+
modal && modal.addEventListener("wmModalCloseTriggered", modalDismissed);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
function actionTriggered(element) {
|
|
46
|
+
modalInput.value = "";
|
|
47
|
+
console.log("Changes saved");
|
|
48
|
+
modalFooter.actionDisabled = true;
|
|
49
|
+
this.open = false;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function modalDismissed(element) {
|
|
53
|
+
this.open = false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const dialog = document.getElementById("dialog");
|
|
57
|
+
|
|
58
|
+
dialog &&
|
|
59
|
+
dialog.addEventListener("wmModalCloseTriggered", function () {
|
|
60
|
+
dialog.open = false;
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
dialog &&
|
|
64
|
+
dialog.addEventListener("wmModalSecondaryTriggered", function () {
|
|
65
|
+
dialog.open = false;
|
|
66
|
+
alert("Secondary clicked!");
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
dialog &&
|
|
70
|
+
dialog.addEventListener("wmModalPrimaryTriggered", function () {
|
|
71
|
+
console.log("Deleted");
|
|
72
|
+
dialog.open = false;
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
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();
|