@watermarkinsights/ripple 3.8.0-2 → 3.8.0-3
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/README.md +3 -3
- package/dist/cjs/{functions-edfdd03f.js → functions-9b5b7f3c.js} +488 -509
- package/dist/cjs/{global-ffd0392c.js → global-fad306c8.js} +65 -65
- package/dist/cjs/{http-service-9e8c4dd5.js → http-service-494d81de.js} +49 -49
- package/dist/cjs/{index-0e7e3668.js → index-cd179539.js} +64 -96
- package/dist/cjs/{interfaces-30a74c1f.js → interfaces-a3338581.js} +29 -29
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/priv-chart-popover.cjs.entry.js +79 -79
- package/dist/cjs/priv-datepicker.cjs.entry.js +674 -674
- package/dist/cjs/priv-navigator-button.cjs.entry.js +19 -19
- package/dist/cjs/priv-navigator-item.cjs.entry.js +24 -24
- package/dist/cjs/ripple.cjs.js +4 -4
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +342 -342
- package/dist/cjs/wm-button.cjs.entry.js +228 -238
- package/dist/cjs/wm-chart-slice.cjs.entry.js +14 -14
- package/dist/cjs/wm-chart.cjs.entry.js +475 -475
- package/dist/cjs/wm-datepicker.cjs.entry.js +273 -273
- package/dist/cjs/wm-input.cjs.entry.js +136 -136
- package/dist/cjs/wm-modal-footer.cjs.entry.js +32 -32
- package/dist/cjs/wm-modal-header.cjs.entry.js +35 -35
- package/dist/cjs/wm-modal.cjs.entry.js +164 -164
- package/dist/cjs/wm-navigator.cjs.entry.js +269 -269
- package/dist/cjs/wm-network-uploader.cjs.entry.js +422 -422
- package/dist/cjs/wm-option_2.cjs.entry.js +497 -497
- package/dist/cjs/wm-pagination.cjs.entry.js +168 -168
- package/dist/cjs/wm-search.cjs.entry.js +233 -233
- package/dist/cjs/wm-snackbar.cjs.entry.js +172 -172
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +297 -297
- package/dist/cjs/wm-tag-input.cjs.entry.js +581 -581
- package/dist/cjs/wm-timepicker.cjs.entry.js +385 -385
- package/dist/cjs/wm-toggletip.cjs.entry.js +126 -126
- package/dist/cjs/wm-uploader.cjs.entry.js +348 -348
- package/dist/cjs/wm-wrapper.cjs.entry.js +13 -13
- package/dist/collection/collection-manifest.json +2 -10
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +460 -460
- package/dist/collection/components/wm-button/wm-button.css +3 -1
- package/dist/collection/components/wm-button/wm-button.js +491 -503
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +1 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -232
- package/dist/collection/components/wm-chart/wm-chart-slice.js +115 -115
- package/dist/collection/components/wm-chart/wm-chart.css +1 -0
- package/dist/collection/components/wm-chart/wm-chart.js +718 -718
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +5 -3
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1039 -1039
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +3 -1
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +483 -483
- package/dist/collection/components/wm-input/wm-input.css +3 -1
- package/dist/collection/components/wm-input/wm-input.js +423 -423
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +1 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +444 -444
- package/dist/collection/components/wm-modal/wm-modal-footer.css +1 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +141 -141
- package/dist/collection/components/wm-modal/wm-modal-header.css +1 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +92 -92
- package/dist/collection/components/wm-modal/wm-modal.css +1 -0
- package/dist/collection/components/wm-modal/wm-modal.js +461 -461
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +1 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -97
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +1 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -114
- package/dist/collection/components/wm-navigator/wm-navigator.css +1 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -468
- package/dist/collection/components/wm-option/wm-option.css +4 -2
- package/dist/collection/components/wm-option/wm-option.js +422 -422
- package/dist/collection/components/wm-pagination/wm-pagination.css +1 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +368 -368
- package/dist/collection/components/wm-search/wm-search.css +1 -0
- package/dist/collection/components/wm-search/wm-search.js +480 -480
- package/dist/collection/components/wm-select/wm-select.css +4 -2
- package/dist/collection/components/wm-select/wm-select.js +720 -720
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +4 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +297 -297
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +1 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +216 -216
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +1 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +330 -330
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +1 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -104
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +4 -2
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +810 -810
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +4 -2
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +583 -583
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +3 -1
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +241 -241
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +3 -1
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -753
- package/dist/collection/components/wm-uploader/wm-uploader.css +3 -1
- package/dist/collection/components/wm-uploader/wm-uploader.js +748 -748
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -27
- package/dist/collection/dev/scripts.js +20 -20
- package/dist/collection/global/__mocks__/functions.js +6 -6
- package/dist/collection/global/functions.js +449 -445
- package/dist/collection/global/global.js +72 -72
- package/dist/collection/global/interfaces.js +49 -49
- package/dist/collection/global/services/__mocks__/http-service.js +130 -130
- package/dist/collection/global/services/http-service.js +50 -50
- package/dist/collection/lang/lang.js +5 -5
- package/dist/collection/lang/missing.js +39 -39
- package/dist/collection/lang/piglatin.js +93 -93
- package/dist/esm/{functions-6cd52dcf.js → functions-a8d1ed3e.js} +488 -510
- package/dist/esm/{global-51d6ea5f.js → global-191b6775.js} +65 -65
- package/dist/esm/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +49 -49
- package/dist/esm/{index-cd8f9ae2.js → index-66f8130e.js} +64 -96
- package/dist/esm/{interfaces-61c6305b.js → interfaces-2b97fab2.js} +29 -29
- package/dist/esm/loader.js +4 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- 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 +79 -79
- package/dist/esm/priv-datepicker.entry.js +674 -674
- package/dist/esm/priv-navigator-button.entry.js +19 -19
- package/dist/esm/priv-navigator-item.entry.js +24 -24
- package/dist/esm/ripple.js +4 -4
- package/dist/esm/wm-action-menu_2.entry.js +342 -342
- package/dist/esm/wm-button.entry.js +228 -238
- package/dist/esm/wm-chart-slice.entry.js +14 -14
- package/dist/esm/wm-chart.entry.js +475 -475
- package/dist/esm/wm-datepicker.entry.js +273 -273
- package/dist/esm/wm-input.entry.js +136 -136
- package/dist/esm/wm-modal-footer.entry.js +32 -32
- package/dist/esm/wm-modal-header.entry.js +35 -35
- package/dist/esm/wm-modal.entry.js +164 -164
- package/dist/esm/wm-navigator.entry.js +269 -269
- package/dist/esm/wm-network-uploader.entry.js +422 -422
- package/dist/esm/wm-option_2.entry.js +497 -497
- package/dist/esm/wm-pagination.entry.js +168 -168
- package/dist/esm/wm-search.entry.js +233 -233
- package/dist/esm/wm-snackbar.entry.js +172 -172
- package/dist/esm/wm-tab-item_3.entry.js +297 -297
- package/dist/esm/wm-tag-input.entry.js +581 -581
- package/dist/esm/wm-timepicker.entry.js +385 -385
- package/dist/esm/wm-toggletip.entry.js +126 -126
- package/dist/esm/wm-uploader.entry.js +348 -348
- package/dist/esm/wm-wrapper.entry.js +13 -13
- package/dist/esm-es5/functions-a8d1ed3e.js +15 -0
- package/dist/esm-es5/{global-51d6ea5f.js → global-191b6775.js} +1 -1
- package/dist/esm-es5/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +1 -1
- package/dist/esm-es5/index-66f8130e.js +1 -0
- package/dist/esm-es5/{interfaces-61c6305b.js → interfaces-2b97fab2.js} +0 -0
- 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-input.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-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-network-uploader.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-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-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/index.d.ts +1 -0
- package/dist/ripple/p-04bd5281.entry.js +1 -0
- package/dist/ripple/p-07353b27.system.js +1 -0
- package/dist/ripple/p-0b2a9a9a.entry.js +1 -0
- package/dist/ripple/p-0c58f50d.entry.js +1 -0
- package/dist/ripple/p-0d8bd4ee.entry.js +1 -0
- package/dist/ripple/p-0deeb79c.system.entry.js +1 -0
- package/dist/ripple/{p-45ee5b9d.system.entry.js → p-1fa979d7.system.entry.js} +1 -1
- package/dist/ripple/p-2145d012.entry.js +1 -0
- package/dist/ripple/p-2544cbd6.system.entry.js +1 -0
- package/dist/ripple/{p-c19298a5.system.entry.js → p-261ea633.system.entry.js} +1 -1
- package/dist/ripple/p-29a232bc.entry.js +1 -0
- package/dist/ripple/{p-9a9743f5.system.entry.js → p-2d49a016.system.entry.js} +1 -1
- package/dist/ripple/{p-284a9749.system.entry.js → p-2d63611b.system.entry.js} +1 -1
- package/dist/ripple/p-32733046.entry.js +1 -0
- package/dist/ripple/p-39b93119.entry.js +1 -0
- package/dist/ripple/p-3fb2fff9.entry.js +1 -0
- package/dist/ripple/{p-888bec42.js → p-43f1298b.js} +0 -0
- package/dist/ripple/p-510c5446.system.entry.js +1 -0
- package/dist/ripple/p-566a8814.entry.js +1 -0
- package/dist/ripple/p-5f3e2db4.entry.js +1 -0
- package/dist/ripple/{p-1d7049b5.system.entry.js → p-616d11c9.system.entry.js} +1 -1
- package/dist/ripple/p-639ad0f5.system.entry.js +1 -0
- package/dist/ripple/p-6a4cc1e1.system.entry.js +1 -0
- package/dist/ripple/p-6facd692.entry.js +1 -0
- package/dist/ripple/p-764def28.system.entry.js +1 -0
- package/dist/ripple/p-78473c96.system.entry.js +1 -0
- package/dist/ripple/p-7a684273.entry.js +1 -0
- package/dist/ripple/{p-e758db14.system.entry.js → p-7a9aac92.system.entry.js} +1 -1
- package/dist/ripple/{p-504579c2.system.entry.js → p-7bc744bf.system.entry.js} +1 -1
- package/dist/ripple/p-7c879f30.system.entry.js +1 -0
- package/dist/ripple/p-7d6552fb.entry.js +1 -0
- package/dist/ripple/{p-83028f2c.js → p-7f41b5fc.js} +1 -1
- package/dist/ripple/p-80d598f9.js +16 -0
- package/dist/ripple/{p-4ed98fb1.system.entry.js → p-831c3da1.system.entry.js} +1 -1
- package/dist/ripple/p-835d8720.system.entry.js +1 -0
- package/dist/ripple/p-8b0eb05e.entry.js +1 -0
- package/dist/ripple/p-8dab4579.entry.js +1 -0
- package/dist/ripple/p-99548d58.system.js +1 -0
- package/dist/ripple/p-99db8501.entry.js +1 -0
- package/dist/ripple/p-9baa3039.js +1 -0
- package/dist/ripple/p-9d02957d.system.js +1 -0
- package/dist/ripple/p-a9a28ef6.entry.js +1 -0
- package/dist/ripple/p-aa5c6a4a.system.entry.js +1 -0
- package/dist/ripple/p-b2f08d3e.system.entry.js +1 -0
- package/dist/ripple/{p-a5177480.system.entry.js → p-b3ce2033.system.entry.js} +1 -1
- package/dist/ripple/p-b6d1ab55.entry.js +1 -0
- package/dist/ripple/p-c6ac6f80.entry.js +1 -0
- package/dist/ripple/{p-15759528.system.entry.js → p-cde0c4bd.system.entry.js} +1 -1
- package/dist/ripple/p-d0643c9b.entry.js +1 -0
- package/dist/ripple/p-d064dbb9.entry.js +1 -0
- package/dist/ripple/p-d0d5fd00.entry.js +1 -0
- package/dist/ripple/p-eb446a26.system.entry.js +1 -0
- package/dist/ripple/{p-aedd95e6.system.js → p-ee93660f.system.js} +1 -1
- package/dist/ripple/{p-f2ba1a0f.system.entry.js → p-f04fb2d2.system.entry.js} +1 -1
- package/dist/ripple/p-f10fbff8.entry.js +1 -0
- package/dist/ripple/p-f3c8868c.entry.js +1 -0
- package/dist/ripple/{p-08b7ec08.system.js → p-f5df5903.system.js} +0 -0
- package/dist/ripple/p-fc0f044d.system.entry.js +1 -0
- package/dist/ripple/{p-a6d6eae7.js → p-fd8070fb.js} +0 -0
- package/dist/ripple/{p-088e3c4c.system.entry.js → p-fd991998.system.entry.js} +1 -1
- package/dist/ripple/p-fe4dd552.system.js +15 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +48 -48
- package/dist/types/components/wm-button/wm-button.d.ts +43 -44
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -23
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +11 -11
- package/dist/types/components/wm-chart/wm-chart.d.ts +82 -82
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +80 -80
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +42 -42
- package/dist/types/components/wm-input/wm-input.d.ts +46 -46
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +34 -34
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -15
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -12
- package/dist/types/components/wm-modal/wm-modal.d.ts +41 -41
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -10
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -13
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -61
- package/dist/types/components/wm-option/wm-option.d.ts +32 -32
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +32 -32
- package/dist/types/components/wm-search/wm-search.d.ts +86 -86
- package/dist/types/components/wm-select/wm-select.d.ts +66 -66
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +35 -35
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +38 -38
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +53 -53
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -20
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +92 -92
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +61 -61
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +27 -27
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -85
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +80 -80
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -7
- package/dist/types/components.d.ts +24 -74
- package/dist/types/global/__mocks__/functions.d.ts +6 -6
- package/dist/types/global/functions.d.ts +41 -40
- package/dist/types/global/global.d.ts +1 -1
- package/dist/types/global/interfaces.d.ts +34 -34
- package/dist/types/global/services/__mocks__/http-service.d.ts +6 -6
- package/dist/types/global/services/http-service.d.ts +4 -4
- package/dist/types/lang/lang.d.ts +5 -5
- package/dist/types/stencil-public-runtime.d.ts +4 -6
- package/package.json +47 -47
- package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +0 -56
- package/dist/cjs/wm-navigation-item.cjs.entry.js +0 -31
- package/dist/cjs/wm-navigation.cjs.entry.js +0 -87
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -86
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -96
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -85
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -101
- package/dist/collection/components/wm-navigation/wm-navigation.css +0 -117
- package/dist/collection/components/wm-navigation/wm-navigation.js +0 -142
- package/dist/esm/wm-navigation-hamburger.entry.js +0 -52
- package/dist/esm/wm-navigation-item.entry.js +0 -27
- package/dist/esm/wm-navigation.entry.js +0 -83
- package/dist/esm-es5/functions-6cd52dcf.js +0 -15
- package/dist/esm-es5/index-cd8f9ae2.js +0 -1
- package/dist/esm-es5/wm-navigation-hamburger.entry.js +0 -1
- package/dist/esm-es5/wm-navigation-item.entry.js +0 -1
- package/dist/esm-es5/wm-navigation.entry.js +0 -1
- package/dist/ripple/p-05b44011.system.entry.js +0 -1
- package/dist/ripple/p-17fef956.entry.js +0 -1
- package/dist/ripple/p-20856a2d.system.js +0 -1
- package/dist/ripple/p-2206c8d0.entry.js +0 -1
- package/dist/ripple/p-244877c8.entry.js +0 -1
- package/dist/ripple/p-2b526a98.entry.js +0 -1
- package/dist/ripple/p-2f63e022.system.entry.js +0 -1
- package/dist/ripple/p-313b6073.system.js +0 -1
- package/dist/ripple/p-323c8fbd.entry.js +0 -1
- package/dist/ripple/p-38062c39.js +0 -1
- package/dist/ripple/p-3ba3afca.entry.js +0 -1
- package/dist/ripple/p-48ab9e16.entry.js +0 -1
- package/dist/ripple/p-4999f5dc.entry.js +0 -1
- package/dist/ripple/p-4ab257fe.entry.js +0 -1
- package/dist/ripple/p-4c0de099.system.entry.js +0 -1
- package/dist/ripple/p-4c75587a.system.entry.js +0 -1
- package/dist/ripple/p-58a1e616.system.entry.js +0 -1
- package/dist/ripple/p-5fd47eac.entry.js +0 -1
- package/dist/ripple/p-664c3f62.entry.js +0 -1
- package/dist/ripple/p-6923b8f6.system.js +0 -15
- package/dist/ripple/p-6e5a35ae.system.entry.js +0 -1
- package/dist/ripple/p-741972e8.system.entry.js +0 -1
- package/dist/ripple/p-764fa608.entry.js +0 -1
- package/dist/ripple/p-77bd8d1b.entry.js +0 -1
- package/dist/ripple/p-7ff67db9.entry.js +0 -1
- package/dist/ripple/p-8139cdfe.system.js +0 -1
- package/dist/ripple/p-864b71bf.system.entry.js +0 -1
- package/dist/ripple/p-87b8fddf.entry.js +0 -1
- package/dist/ripple/p-8a0450fd.entry.js +0 -1
- package/dist/ripple/p-9173f673.entry.js +0 -1
- package/dist/ripple/p-9f442b49.system.entry.js +0 -1
- package/dist/ripple/p-a2c2f475.system.entry.js +0 -1
- package/dist/ripple/p-a3fcdd9f.entry.js +0 -1
- package/dist/ripple/p-a588ae81.entry.js +0 -1
- package/dist/ripple/p-a8358b36.entry.js +0 -1
- package/dist/ripple/p-a88d46f9.system.entry.js +0 -1
- package/dist/ripple/p-a8dfec6d.system.entry.js +0 -1
- package/dist/ripple/p-b1d25dec.entry.js +0 -1
- package/dist/ripple/p-b542340c.system.entry.js +0 -1
- package/dist/ripple/p-c401898d.entry.js +0 -1
- package/dist/ripple/p-ce81ccb4.system.entry.js +0 -1
- package/dist/ripple/p-cfa8106a.system.entry.js +0 -1
- package/dist/ripple/p-dadb6c78.js +0 -16
- package/dist/ripple/p-db7f5d60.entry.js +0 -1
- package/dist/ripple/p-dff01b0a.system.entry.js +0 -1
- package/dist/ripple/p-ecb6a2e0.entry.js +0 -1
- package/dist/ripple/p-ef344252.entry.js +0 -1
- package/dist/ripple/p-f0dfc5d7.entry.js +0 -1
- package/dist/ripple/p-f92f2d83.entry.js +0 -1
- package/dist/ripple/p-fe0a25c1.entry.js +0 -1
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +0 -13
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +0 -10
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +0 -19
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------
|
|
2
|
-
1. Box-shadow
|
|
3
|
-
-------------------------------------- */
|
|
4
|
-
/* --------------------------------------
|
|
5
|
-
2. Border-radius
|
|
6
|
-
-------------------------------------- */
|
|
7
|
-
/* --------------------------------------
|
|
8
|
-
3. Transforms
|
|
9
|
-
-------------------------------------- */
|
|
10
|
-
/* --------------------------------------
|
|
11
|
-
4. Button Focus
|
|
12
|
-
-------------------------------------- */
|
|
13
|
-
/* --------------------------------------
|
|
14
|
-
5. Flex
|
|
15
|
-
-------------------------------------- */
|
|
16
|
-
/* --------------------------------------
|
|
17
|
-
6. Button Hover
|
|
18
|
-
-------------------------------------- */
|
|
19
|
-
/* --------------------------------------
|
|
20
|
-
7. Screen Reader Only
|
|
21
|
-
-------------------------------------- */
|
|
22
|
-
/* --------------------------------------
|
|
23
|
-
8. Label styles
|
|
24
|
-
this mixin includes all the styles for the label
|
|
25
|
-
+ flex rules on the parent container to switch between top and left position
|
|
26
|
-
+ srOnly when label is hidden
|
|
27
|
-
Assumes the following markup:
|
|
28
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
29
|
-
.wrapper is for the flex rules
|
|
30
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
31
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
32
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
33
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
34
|
-
-------------------------------------- */
|
|
35
|
-
/********************************************************************************************/
|
|
36
|
-
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
37
|
-
/********************************************************************************************/
|
|
38
|
-
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
39
|
-
/* TODO: replace with vars above whenever possible */
|
|
40
|
-
/* Buttons */
|
|
41
|
-
/* VIA */
|
|
42
|
-
.link {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
color: inherit;
|
|
47
|
-
text-decoration: none;
|
|
48
|
-
min-height: 4.5rem;
|
|
49
|
-
text-align: center;
|
|
50
|
-
padding: 1.25rem 0.5rem;
|
|
51
|
-
font-weight: 500;
|
|
52
|
-
outline: none;
|
|
53
|
-
position: relative;
|
|
54
|
-
}
|
|
55
|
-
.link:hover {
|
|
56
|
-
background-color: #f2f2f2;
|
|
57
|
-
}
|
|
58
|
-
.link .icon {
|
|
59
|
-
font-size: 1.375rem;
|
|
60
|
-
color: #6b6b6b;
|
|
61
|
-
}
|
|
62
|
-
.link .text {
|
|
63
|
-
font-size: 0.875rem;
|
|
64
|
-
}
|
|
65
|
-
.link.user-is-tabbing:focus {
|
|
66
|
-
box-shadow: inset 0 2px 2px 0 rgba(244, 243, 246, 0.2), inset 0 2px 2px 0 rgba(0, 0, 0, 0.1), inset 0 0 4px 3px #61279e;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.link.active {
|
|
70
|
-
background-color: #e9e7ec;
|
|
71
|
-
}
|
|
72
|
-
.link.active:before {
|
|
73
|
-
content: "";
|
|
74
|
-
background-color: #575195;
|
|
75
|
-
position: absolute;
|
|
76
|
-
height: 100%;
|
|
77
|
-
width: 5px;
|
|
78
|
-
left: 0;
|
|
79
|
-
}
|
|
80
|
-
.link.active .text {
|
|
81
|
-
color: #575195;
|
|
82
|
-
}
|
|
83
|
-
.link.active .icon {
|
|
84
|
-
color: #575195;
|
|
85
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { h, Component, Prop, Host, State, Listen } from "@stencil/core";
|
|
2
|
-
export class NavigationItem {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.isTabbing = false;
|
|
5
|
-
}
|
|
6
|
-
toggleTabbingOn() {
|
|
7
|
-
this.isTabbing = true;
|
|
8
|
-
}
|
|
9
|
-
toggleTabbingOff() {
|
|
10
|
-
this.isTabbing = false;
|
|
11
|
-
}
|
|
12
|
-
componentWillLoad() {
|
|
13
|
-
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
14
|
-
this.toggleTabbingOn();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return (h(Host, { role: "listitem" },
|
|
19
|
-
h("a", { class: `link ${this.active ? "active" : ""} ${this.isTabbing ? "user-is-tabbing" : ""}`, href: this.href },
|
|
20
|
-
h("div", { class: "icon" },
|
|
21
|
-
h("slot", null)),
|
|
22
|
-
h("div", { class: "text" }, this.text))));
|
|
23
|
-
}
|
|
24
|
-
static get is() { return "wm-navigation-item"; }
|
|
25
|
-
static get encapsulation() { return "shadow"; }
|
|
26
|
-
static get originalStyleUrls() { return {
|
|
27
|
-
"$": ["wm-navigation-item.scss"]
|
|
28
|
-
}; }
|
|
29
|
-
static get styleUrls() { return {
|
|
30
|
-
"$": ["wm-navigation-item.css"]
|
|
31
|
-
}; }
|
|
32
|
-
static get properties() { return {
|
|
33
|
-
"href": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"mutable": false,
|
|
36
|
-
"complexType": {
|
|
37
|
-
"original": "string",
|
|
38
|
-
"resolved": "string | undefined",
|
|
39
|
-
"references": {}
|
|
40
|
-
},
|
|
41
|
-
"required": false,
|
|
42
|
-
"optional": true,
|
|
43
|
-
"docs": {
|
|
44
|
-
"tags": [],
|
|
45
|
-
"text": ""
|
|
46
|
-
},
|
|
47
|
-
"attribute": "href",
|
|
48
|
-
"reflect": false
|
|
49
|
-
},
|
|
50
|
-
"text": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"mutable": false,
|
|
53
|
-
"complexType": {
|
|
54
|
-
"original": "string",
|
|
55
|
-
"resolved": "string | undefined",
|
|
56
|
-
"references": {}
|
|
57
|
-
},
|
|
58
|
-
"required": false,
|
|
59
|
-
"optional": true,
|
|
60
|
-
"docs": {
|
|
61
|
-
"tags": [],
|
|
62
|
-
"text": ""
|
|
63
|
-
},
|
|
64
|
-
"attribute": "text",
|
|
65
|
-
"reflect": false
|
|
66
|
-
},
|
|
67
|
-
"active": {
|
|
68
|
-
"type": "boolean",
|
|
69
|
-
"mutable": false,
|
|
70
|
-
"complexType": {
|
|
71
|
-
"original": "boolean",
|
|
72
|
-
"resolved": "boolean | undefined",
|
|
73
|
-
"references": {}
|
|
74
|
-
},
|
|
75
|
-
"required": false,
|
|
76
|
-
"optional": true,
|
|
77
|
-
"docs": {
|
|
78
|
-
"tags": [],
|
|
79
|
-
"text": ""
|
|
80
|
-
},
|
|
81
|
-
"attribute": "active",
|
|
82
|
-
"reflect": false
|
|
83
|
-
}
|
|
84
|
-
}; }
|
|
85
|
-
static get states() { return {
|
|
86
|
-
"isTabbing": {}
|
|
87
|
-
}; }
|
|
88
|
-
static get listeners() { return [{
|
|
89
|
-
"name": "wmUserIsTabbing",
|
|
90
|
-
"method": "toggleTabbingOn",
|
|
91
|
-
"target": "window",
|
|
92
|
-
"capture": false,
|
|
93
|
-
"passive": false
|
|
94
|
-
}, {
|
|
95
|
-
"name": "wmUserIsNotTabbing",
|
|
96
|
-
"method": "toggleTabbingOff",
|
|
97
|
-
"target": "window",
|
|
98
|
-
"capture": false,
|
|
99
|
-
"passive": false
|
|
100
|
-
}]; }
|
|
101
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------
|
|
2
|
-
1. Box-shadow
|
|
3
|
-
-------------------------------------- */
|
|
4
|
-
/* --------------------------------------
|
|
5
|
-
2. Border-radius
|
|
6
|
-
-------------------------------------- */
|
|
7
|
-
/* --------------------------------------
|
|
8
|
-
3. Transforms
|
|
9
|
-
-------------------------------------- */
|
|
10
|
-
/* --------------------------------------
|
|
11
|
-
4. Button Focus
|
|
12
|
-
-------------------------------------- */
|
|
13
|
-
/* --------------------------------------
|
|
14
|
-
5. Flex
|
|
15
|
-
-------------------------------------- */
|
|
16
|
-
/* --------------------------------------
|
|
17
|
-
6. Button Hover
|
|
18
|
-
-------------------------------------- */
|
|
19
|
-
/* --------------------------------------
|
|
20
|
-
7. Screen Reader Only
|
|
21
|
-
-------------------------------------- */
|
|
22
|
-
/* --------------------------------------
|
|
23
|
-
8. Label styles
|
|
24
|
-
this mixin includes all the styles for the label
|
|
25
|
-
+ flex rules on the parent container to switch between top and left position
|
|
26
|
-
+ srOnly when label is hidden
|
|
27
|
-
Assumes the following markup:
|
|
28
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
29
|
-
.wrapper is for the flex rules
|
|
30
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
31
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
32
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
33
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
34
|
-
-------------------------------------- */
|
|
35
|
-
/********************************************************************************************/
|
|
36
|
-
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
37
|
-
/********************************************************************************************/
|
|
38
|
-
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
39
|
-
/* TODO: replace with vars above whenever possible */
|
|
40
|
-
/* Buttons */
|
|
41
|
-
/* VIA */
|
|
42
|
-
.nav {
|
|
43
|
-
-webkit-box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.14);
|
|
44
|
-
-moz-box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.14);
|
|
45
|
-
box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.14);
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
align-items: center;
|
|
49
|
-
width: 7.5625rem;
|
|
50
|
-
background-color: #fff;
|
|
51
|
-
overflow-x: hidden;
|
|
52
|
-
overflow-y: auto;
|
|
53
|
-
-webkit-overflow-scrolling: touch;
|
|
54
|
-
font-size: 0.875rem;
|
|
55
|
-
height: 100%;
|
|
56
|
-
z-index: 10;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.navlist {
|
|
60
|
-
margin: 0;
|
|
61
|
-
padding: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.toggle-wrapper {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* COLLAPSIBLE STYLES */
|
|
69
|
-
@media screen and (max-width: 1023px) {
|
|
70
|
-
.nav {
|
|
71
|
-
-ms-transition: transform 0.33s ease;
|
|
72
|
-
-webkit-transition: transform 0.33s ease;
|
|
73
|
-
-moz-transition: transform 0.33s ease;
|
|
74
|
-
transition: transform 0.33s ease;
|
|
75
|
-
position: fixed;
|
|
76
|
-
top: 0;
|
|
77
|
-
bottom: 0;
|
|
78
|
-
left: 0;
|
|
79
|
-
z-index: 100;
|
|
80
|
-
transform: translateX(-100%);
|
|
81
|
-
}
|
|
82
|
-
.nav ul {
|
|
83
|
-
visibility: hidden;
|
|
84
|
-
}
|
|
85
|
-
.nav[aria-expanded=true] {
|
|
86
|
-
transform: translateX(0);
|
|
87
|
-
}
|
|
88
|
-
.nav[aria-expanded=true] ul {
|
|
89
|
-
visibility: visible;
|
|
90
|
-
}
|
|
91
|
-
.nav .toggle-wrapper {
|
|
92
|
-
display: inline-block;
|
|
93
|
-
min-height: 5rem;
|
|
94
|
-
width: 100%;
|
|
95
|
-
display: flex;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
align-items: center;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.overlay {
|
|
101
|
-
width: 100vw;
|
|
102
|
-
height: 100vh;
|
|
103
|
-
max-width: none;
|
|
104
|
-
max-height: none;
|
|
105
|
-
position: fixed !important;
|
|
106
|
-
top: 0;
|
|
107
|
-
bottom: 0;
|
|
108
|
-
left: 0;
|
|
109
|
-
right: 0;
|
|
110
|
-
transform: translate(0%, 0%);
|
|
111
|
-
background-color: rgba(25, 25, 25, 0.4);
|
|
112
|
-
-ms-transition: opacity 0.5s ease-out;
|
|
113
|
-
-webkit-transition: opacity 0.5s ease-out;
|
|
114
|
-
-moz-transition: opacity 0.5s ease-out;
|
|
115
|
-
transition: opacity 0.5s ease-out;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { h, Component, Element, Prop, State, Listen, Host, Watch, Event } from "@stencil/core";
|
|
2
|
-
import { intl } from "../../global/functions";
|
|
3
|
-
export class Navigation {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.open = false;
|
|
6
|
-
this.isTabbing = false;
|
|
7
|
-
this.openTooltipMessage = intl.formatMessage({
|
|
8
|
-
id: "global.openVerb",
|
|
9
|
-
defaultMessage: "Open",
|
|
10
|
-
description: "For a button, to open a user interface element",
|
|
11
|
-
});
|
|
12
|
-
this.closeTooltipMessage = intl.formatMessage({
|
|
13
|
-
id: "global.closeVerb",
|
|
14
|
-
defaultMessage: "Close",
|
|
15
|
-
description: "For a button, to close a user interface element",
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
get ariaExpanded() {
|
|
19
|
-
return window.innerWidth < 1024
|
|
20
|
-
? // if component is in collapsible mode, set aria-expanded according to expanded state
|
|
21
|
-
this.open.toString()
|
|
22
|
-
: // otherwise, do not render attr at all
|
|
23
|
-
undefined;
|
|
24
|
-
}
|
|
25
|
-
toggleTabbingOn() {
|
|
26
|
-
this.isTabbing = true;
|
|
27
|
-
}
|
|
28
|
-
toggleTabbingOff() {
|
|
29
|
-
this.isTabbing = false;
|
|
30
|
-
}
|
|
31
|
-
componentWillLoad() {
|
|
32
|
-
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
33
|
-
this.toggleTabbingOn();
|
|
34
|
-
}
|
|
35
|
-
this.el.focus = function () {
|
|
36
|
-
this.shadowRoot.querySelector(".toggle").focus();
|
|
37
|
-
/*
|
|
38
|
-
// prevent tooltip from showing on programmatic focus
|
|
39
|
-
requestAnimationFrame(() => {
|
|
40
|
-
this.tooltipVisible = false;
|
|
41
|
-
});
|
|
42
|
-
*/
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
componentDidLoad() {
|
|
46
|
-
// Should fail silently if not found as devs may decide not to use the hamburger component.
|
|
47
|
-
this.hamburgerBtn = document.querySelector("wm-navigation-hamburger");
|
|
48
|
-
}
|
|
49
|
-
updateHamburgerState() {
|
|
50
|
-
this.wmNavigationStateChanged.emit({ open: this.open });
|
|
51
|
-
if (this.open) {
|
|
52
|
-
// wait for nav to be expanded otherwise tooltip will be misplaced.
|
|
53
|
-
// also btn can't be focused right away.
|
|
54
|
-
setTimeout(() => this.toggleEl.focus(), 250);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
// should fail silently if el doesn't exist
|
|
58
|
-
this.hamburgerBtn && this.hamburgerBtn.focus();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
renderOverlay() {
|
|
62
|
-
return (h("div", { class: "overlay", onClick: () => {
|
|
63
|
-
this.open = false;
|
|
64
|
-
} }));
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
return (h(Host, null,
|
|
68
|
-
this.open ? this.renderOverlay() : "",
|
|
69
|
-
h("nav", { class: "nav", "aria-expanded": this.ariaExpanded },
|
|
70
|
-
h("div", { class: "toggle-wrapper" },
|
|
71
|
-
h("wm-button", { ref: (el) => (this.toggleEl = el), class: `toggle ${this.isTabbing ? "user-is-tabbing" : ""}`, "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? this.closeTooltipMessage : this.openTooltipMessage, "tooltip-position": "left", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
72
|
-
this.open = !this.open;
|
|
73
|
-
} })),
|
|
74
|
-
h("ul", { class: "navlist" },
|
|
75
|
-
h("slot", null)))));
|
|
76
|
-
}
|
|
77
|
-
static get is() { return "wm-navigation"; }
|
|
78
|
-
static get encapsulation() { return "shadow"; }
|
|
79
|
-
static get originalStyleUrls() { return {
|
|
80
|
-
"$": ["wm-navigation.scss"]
|
|
81
|
-
}; }
|
|
82
|
-
static get styleUrls() { return {
|
|
83
|
-
"$": ["wm-navigation.css"]
|
|
84
|
-
}; }
|
|
85
|
-
static get properties() { return {
|
|
86
|
-
"open": {
|
|
87
|
-
"type": "boolean",
|
|
88
|
-
"mutable": true,
|
|
89
|
-
"complexType": {
|
|
90
|
-
"original": "boolean",
|
|
91
|
-
"resolved": "boolean",
|
|
92
|
-
"references": {}
|
|
93
|
-
},
|
|
94
|
-
"required": false,
|
|
95
|
-
"optional": false,
|
|
96
|
-
"docs": {
|
|
97
|
-
"tags": [],
|
|
98
|
-
"text": ""
|
|
99
|
-
},
|
|
100
|
-
"attribute": "open",
|
|
101
|
-
"reflect": true,
|
|
102
|
-
"defaultValue": "false"
|
|
103
|
-
}
|
|
104
|
-
}; }
|
|
105
|
-
static get states() { return {
|
|
106
|
-
"isTabbing": {}
|
|
107
|
-
}; }
|
|
108
|
-
static get events() { return [{
|
|
109
|
-
"method": "wmNavigationStateChanged",
|
|
110
|
-
"name": "wmNavigationStateChanged",
|
|
111
|
-
"bubbles": true,
|
|
112
|
-
"cancelable": true,
|
|
113
|
-
"composed": true,
|
|
114
|
-
"docs": {
|
|
115
|
-
"tags": [],
|
|
116
|
-
"text": ""
|
|
117
|
-
},
|
|
118
|
-
"complexType": {
|
|
119
|
-
"original": "any",
|
|
120
|
-
"resolved": "any",
|
|
121
|
-
"references": {}
|
|
122
|
-
}
|
|
123
|
-
}]; }
|
|
124
|
-
static get elementRef() { return "el"; }
|
|
125
|
-
static get watchers() { return [{
|
|
126
|
-
"propName": "open",
|
|
127
|
-
"methodName": "updateHamburgerState"
|
|
128
|
-
}]; }
|
|
129
|
-
static get listeners() { return [{
|
|
130
|
-
"name": "wmUserIsTabbing",
|
|
131
|
-
"method": "toggleTabbingOn",
|
|
132
|
-
"target": "window",
|
|
133
|
-
"capture": false,
|
|
134
|
-
"passive": false
|
|
135
|
-
}, {
|
|
136
|
-
"name": "wmUserIsNotTabbing",
|
|
137
|
-
"method": "toggleTabbingOff",
|
|
138
|
-
"target": "window",
|
|
139
|
-
"capture": false,
|
|
140
|
-
"passive": false
|
|
141
|
-
}]; }
|
|
142
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-cd8f9ae2.js';
|
|
2
|
-
|
|
3
|
-
const wmNavigationHamburgerCss = ":host{width:3.75rem;height:3.75rem}button{width:100%;height:100%;border:none;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1);transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1);background-color:transparent;outline:none;padding:0}button.user-is-tabbing:focus{-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e}button.user-is-tabbing:focus::-moz-focus-inner{border:0}button:hover{background-color:#d7d6d9}.icon:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:\"\\f35c\";font-size:1.5rem;color:#575195}@media screen and (min-width: 1024px){button{display:none}}";
|
|
4
|
-
|
|
5
|
-
let NavigationHamburger = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.isTabbing = false;
|
|
9
|
-
this.open = false;
|
|
10
|
-
}
|
|
11
|
-
toggleTabbingOn() {
|
|
12
|
-
this.isTabbing = true;
|
|
13
|
-
}
|
|
14
|
-
toggleTabbingOff() {
|
|
15
|
-
this.isTabbing = false;
|
|
16
|
-
}
|
|
17
|
-
handleNavigationStateChanged(ev) {
|
|
18
|
-
this.open = ev.detail.open;
|
|
19
|
-
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
this.el.focus = function () {
|
|
22
|
-
// if (!this.disabled) {
|
|
23
|
-
this.shadowRoot.querySelector("button").focus();
|
|
24
|
-
/*
|
|
25
|
-
// prevent tooltip from showing on programmatic focus
|
|
26
|
-
requestAnimationFrame(() => {
|
|
27
|
-
this.tooltipVisible = false;
|
|
28
|
-
});
|
|
29
|
-
*/
|
|
30
|
-
// }
|
|
31
|
-
};
|
|
32
|
-
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
33
|
-
this.toggleTabbingOn();
|
|
34
|
-
}
|
|
35
|
-
if (!this.navId) {
|
|
36
|
-
console.error("wm-navigation-hamburger: nav-id is a required prop");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
componentDidLoad() {
|
|
40
|
-
this.nav = document.getElementById(this.navId);
|
|
41
|
-
if (!this.nav) {
|
|
42
|
-
console.error(`wm-navigation-hamburger: wm-navigation with id ${this.navId} was not found`);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
return (h("button", { class: `${this.isTabbing ? "user-is-tabbing" : ""}`, "aria-expanded": this.open, "aria-controls": this.navId, onClick: () => (this.nav.open = !this.nav.open) }, h("span", { class: "icon" })));
|
|
47
|
-
}
|
|
48
|
-
get el() { return getElement(this); }
|
|
49
|
-
};
|
|
50
|
-
NavigationHamburger.style = wmNavigationHamburgerCss;
|
|
51
|
-
|
|
52
|
-
export { NavigationHamburger as wm_navigation_hamburger };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-cd8f9ae2.js';
|
|
2
|
-
|
|
3
|
-
const wmNavigationItemCss = ".link{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:inherit;text-decoration:none;min-height:4.5rem;text-align:center;padding:1.25rem 0.5rem;font-weight:500;outline:none;position:relative}.link:hover{background-color:#f2f2f2}.link .icon{font-size:1.375rem;color:#6b6b6b}.link .text{font-size:0.875rem}.link.user-is-tabbing:focus{-webkit-box-shadow:inset 0 2px 2px 0 rgba(244, 243, 246, 0.2), inset 0 2px 2px 0 rgba(0, 0, 0, 0.1), inset 0 0 4px 3px #61279e;box-shadow:inset 0 2px 2px 0 rgba(244, 243, 246, 0.2), inset 0 2px 2px 0 rgba(0, 0, 0, 0.1), inset 0 0 4px 3px #61279e}.link.active{background-color:#e9e7ec}.link.active:before{content:\"\";background-color:#575195;position:absolute;height:100%;width:5px;left:0}.link.active .text{color:#575195}.link.active .icon{color:#575195}";
|
|
4
|
-
|
|
5
|
-
let NavigationItem = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.isTabbing = false;
|
|
9
|
-
}
|
|
10
|
-
toggleTabbingOn() {
|
|
11
|
-
this.isTabbing = true;
|
|
12
|
-
}
|
|
13
|
-
toggleTabbingOff() {
|
|
14
|
-
this.isTabbing = false;
|
|
15
|
-
}
|
|
16
|
-
componentWillLoad() {
|
|
17
|
-
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
18
|
-
this.toggleTabbingOn();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (h(Host, { role: "listitem" }, h("a", { class: `link ${this.active ? "active" : ""} ${this.isTabbing ? "user-is-tabbing" : ""}`, href: this.href }, h("div", { class: "icon" }, h("slot", null)), h("div", { class: "text" }, this.text))));
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
NavigationItem.style = wmNavigationItemCss;
|
|
26
|
-
|
|
27
|
-
export { NavigationItem as wm_navigation_item };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-cd8f9ae2.js';
|
|
2
|
-
import { i as intl } from './functions-6cd52dcf.js';
|
|
3
|
-
|
|
4
|
-
const wmNavigationCss = ".nav{-webkit-box-shadow:0 0 14px 0 rgba(0, 0, 0, 0.14);-moz-box-shadow:0 0 14px 0 rgba(0, 0, 0, 0.14);box-shadow:0 0 14px 0 rgba(0, 0, 0, 0.14);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:7.5625rem;background-color:#fff;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;font-size:0.875rem;height:100%;z-index:10}.navlist{margin:0;padding:0}.toggle-wrapper{display:none}@media screen and (max-width: 1023px){.nav{-ms-transition:transform 0.33s ease;-webkit-transition:transform 0.33s ease;-moz-transition:transform 0.33s ease;-webkit-transition:-webkit-transform 0.33s ease;transition:-webkit-transform 0.33s ease;transition:transform 0.33s ease;transition:transform 0.33s ease, -webkit-transform 0.33s ease;position:fixed;top:0;bottom:0;left:0;z-index:100;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.nav ul{visibility:hidden}.nav[aria-expanded=true]{-webkit-transform:translateX(0);transform:translateX(0)}.nav[aria-expanded=true] ul{visibility:visible}.nav .toggle-wrapper{display:inline-block;min-height:5rem;width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.overlay{width:100vw;height:100vh;max-width:none;max-height:none;position:fixed !important;top:0;bottom:0;left:0;right:0;-webkit-transform:translate(0%, 0%);transform:translate(0%, 0%);background-color:rgba(25, 25, 25, 0.4);-ms-transition:opacity 0.5s ease-out;-webkit-transition:opacity 0.5s ease-out;-moz-transition:opacity 0.5s ease-out;transition:opacity 0.5s ease-out}}";
|
|
5
|
-
|
|
6
|
-
let Navigation = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.wmNavigationStateChanged = createEvent(this, "wmNavigationStateChanged", 7);
|
|
10
|
-
this.open = false;
|
|
11
|
-
this.isTabbing = false;
|
|
12
|
-
this.openTooltipMessage = intl.formatMessage({
|
|
13
|
-
id: "global.openVerb",
|
|
14
|
-
defaultMessage: "Open",
|
|
15
|
-
description: "For a button, to open a user interface element",
|
|
16
|
-
});
|
|
17
|
-
this.closeTooltipMessage = intl.formatMessage({
|
|
18
|
-
id: "global.closeVerb",
|
|
19
|
-
defaultMessage: "Close",
|
|
20
|
-
description: "For a button, to close a user interface element",
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
get ariaExpanded() {
|
|
24
|
-
return window.innerWidth < 1024
|
|
25
|
-
? // if component is in collapsible mode, set aria-expanded according to expanded state
|
|
26
|
-
this.open.toString()
|
|
27
|
-
: // otherwise, do not render attr at all
|
|
28
|
-
undefined;
|
|
29
|
-
}
|
|
30
|
-
toggleTabbingOn() {
|
|
31
|
-
this.isTabbing = true;
|
|
32
|
-
}
|
|
33
|
-
toggleTabbingOff() {
|
|
34
|
-
this.isTabbing = false;
|
|
35
|
-
}
|
|
36
|
-
componentWillLoad() {
|
|
37
|
-
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
38
|
-
this.toggleTabbingOn();
|
|
39
|
-
}
|
|
40
|
-
this.el.focus = function () {
|
|
41
|
-
this.shadowRoot.querySelector(".toggle").focus();
|
|
42
|
-
/*
|
|
43
|
-
// prevent tooltip from showing on programmatic focus
|
|
44
|
-
requestAnimationFrame(() => {
|
|
45
|
-
this.tooltipVisible = false;
|
|
46
|
-
});
|
|
47
|
-
*/
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
componentDidLoad() {
|
|
51
|
-
// Should fail silently if not found as devs may decide not to use the hamburger component.
|
|
52
|
-
this.hamburgerBtn = document.querySelector("wm-navigation-hamburger");
|
|
53
|
-
}
|
|
54
|
-
updateHamburgerState() {
|
|
55
|
-
this.wmNavigationStateChanged.emit({ open: this.open });
|
|
56
|
-
if (this.open) {
|
|
57
|
-
// wait for nav to be expanded otherwise tooltip will be misplaced.
|
|
58
|
-
// also btn can't be focused right away.
|
|
59
|
-
setTimeout(() => this.toggleEl.focus(), 250);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
// should fail silently if el doesn't exist
|
|
63
|
-
this.hamburgerBtn && this.hamburgerBtn.focus();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
renderOverlay() {
|
|
67
|
-
return (h("div", { class: "overlay", onClick: () => {
|
|
68
|
-
this.open = false;
|
|
69
|
-
} }));
|
|
70
|
-
}
|
|
71
|
-
render() {
|
|
72
|
-
return (h(Host, null, this.open ? this.renderOverlay() : "", h("nav", { class: "nav", "aria-expanded": this.ariaExpanded }, h("div", { class: "toggle-wrapper" }, h("wm-button", { ref: (el) => (this.toggleEl = el), class: `toggle ${this.isTabbing ? "user-is-tabbing" : ""}`, "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? this.closeTooltipMessage : this.openTooltipMessage, "tooltip-position": "left", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
73
|
-
this.open = !this.open;
|
|
74
|
-
} })), h("ul", { class: "navlist" }, h("slot", null)))));
|
|
75
|
-
}
|
|
76
|
-
get el() { return getElement(this); }
|
|
77
|
-
static get watchers() { return {
|
|
78
|
-
"open": ["updateHamburgerState"]
|
|
79
|
-
}; }
|
|
80
|
-
};
|
|
81
|
-
Navigation.style = wmNavigationCss;
|
|
82
|
-
|
|
83
|
-
export { Navigation as wm_navigation };
|