@watermarkinsights/ripple 3.11.0-5 → 3.11.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/README.md +3 -3
- package/dist/cjs/{chartFunctions-62a62178.js → chartFunctions-847c1e8b.js} +420 -420
- package/dist/cjs/{functions-1a67b971.js → functions-e80fc415.js} +1921 -477
- package/dist/cjs/{global-3be65808.js → global-8910723e.js} +60 -60
- package/dist/cjs/{http-service-494d81de.js → http-service-9e8c4dd5.js} +49 -49
- package/dist/cjs/{index-acad7ab3.js → index-df6a3611.js} +4 -1
- package/dist/cjs/{interfaces-a3338581.js → interfaces-30a74c1f.js} +29 -29
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/priv-chart-popover.cjs.entry.js +87 -87
- package/dist/cjs/priv-datepicker.cjs.entry.js +658 -658
- 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 +3 -3
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +336 -336
- package/dist/cjs/wm-button.cjs.entry.js +227 -227
- package/dist/cjs/wm-chart-slice.cjs.entry.js +14 -14
- package/dist/cjs/wm-chart.cjs.entry.js +111 -117
- package/dist/cjs/wm-datepicker.cjs.entry.js +266 -266
- package/dist/cjs/wm-input.cjs.entry.js +135 -135
- package/dist/cjs/wm-modal-footer.cjs.entry.js +34 -34
- package/dist/cjs/wm-modal-header.cjs.entry.js +37 -37
- package/dist/cjs/wm-modal.cjs.entry.js +164 -164
- package/dist/cjs/wm-navigation_3.cjs.entry.js +228 -228
- package/dist/cjs/wm-navigator.cjs.entry.js +269 -269
- package/dist/cjs/wm-network-uploader.cjs.entry.js +453 -453
- package/dist/cjs/wm-option_2.cjs.entry.js +485 -485
- package/dist/cjs/wm-pagination.cjs.entry.js +168 -168
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +130 -136
- package/dist/cjs/wm-search.cjs.entry.js +233 -233
- package/dist/cjs/wm-snackbar.cjs.entry.js +171 -171
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +297 -297
- package/dist/cjs/wm-tag-input.cjs.entry.js +580 -580
- package/dist/cjs/wm-timepicker.cjs.entry.js +384 -384
- package/dist/cjs/wm-toggletip.cjs.entry.js +125 -125
- package/dist/cjs/wm-uploader.cjs.entry.js +609 -609
- package/dist/cjs/wm-wrapper.cjs.entry.js +13 -13
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +258 -258
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +115 -115
- package/dist/collection/components/charts/wm-chart/wm-chart.js +328 -334
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +195 -201
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +88 -88
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +111 -111
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +448 -448
- package/dist/collection/components/wm-button/wm-button.js +491 -491
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1024 -1024
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +471 -471
- package/dist/collection/components/wm-input/wm-input.js +423 -423
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +444 -444
- package/dist/collection/components/wm-modal/wm-modal-footer.js +136 -136
- package/dist/collection/components/wm-modal/wm-modal-header.js +87 -87
- package/dist/collection/components/wm-modal/wm-modal.js +461 -461
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +162 -162
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +121 -121
- package/dist/collection/components/wm-navigation/wm-navigation.js +218 -218
- 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.js +114 -114
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -468
- package/dist/collection/components/wm-option/wm-option.js +414 -414
- package/dist/collection/components/wm-pagination/wm-pagination.js +368 -368
- package/dist/collection/components/wm-search/wm-search.js +480 -480
- package/dist/collection/components/wm-select/wm-select.js +718 -718
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +297 -297
- 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.js +330 -330
- 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.js +810 -810
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +583 -583
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +241 -241
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +785 -785
- package/dist/collection/components/wm-uploader/wm-uploader.css +1 -1
- package/dist/collection/components/wm-uploader/wm-uploader.js +1051 -1051
- 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/chartFunctions.js +421 -421
- package/dist/collection/global/functions.js +468 -468
- package/dist/collection/global/global.js +67 -67
- 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 +43 -43
- package/dist/collection/lang/piglatin.js +93 -93
- package/dist/esm/{chartFunctions-f315c3e9.js → chartFunctions-60cabc24.js} +420 -420
- package/dist/esm/{functions-61c7bb1f.js → functions-dde318c0.js} +1921 -477
- package/dist/esm/{global-704e9a52.js → global-efcb3f02.js} +60 -60
- package/dist/esm/{http-service-3dc3b3e7.js → http-service-5d037e16.js} +49 -49
- package/dist/esm/{index-7603f98e.js → index-17c79cc6.js} +4 -1
- package/dist/esm/{interfaces-2b97fab2.js → interfaces-61c6305b.js} +29 -29
- package/dist/esm/loader.js +3 -3
- 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 +87 -87
- package/dist/esm/priv-datepicker.entry.js +658 -658
- 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 +3 -3
- package/dist/esm/wm-action-menu_2.entry.js +336 -336
- package/dist/esm/wm-button.entry.js +227 -227
- package/dist/esm/wm-chart-slice.entry.js +14 -14
- package/dist/esm/wm-chart.entry.js +111 -117
- package/dist/esm/wm-datepicker.entry.js +266 -266
- package/dist/esm/wm-input.entry.js +135 -135
- package/dist/esm/wm-modal-footer.entry.js +34 -34
- package/dist/esm/wm-modal-header.entry.js +37 -37
- package/dist/esm/wm-modal.entry.js +164 -164
- package/dist/esm/wm-navigation_3.entry.js +228 -228
- package/dist/esm/wm-navigator.entry.js +269 -269
- package/dist/esm/wm-network-uploader.entry.js +453 -453
- package/dist/esm/wm-option_2.entry.js +485 -485
- package/dist/esm/wm-pagination.entry.js +168 -168
- package/dist/esm/wm-progress-indicator_3.entry.js +130 -136
- package/dist/esm/wm-search.entry.js +233 -233
- package/dist/esm/wm-snackbar.entry.js +171 -171
- package/dist/esm/wm-tab-item_3.entry.js +297 -297
- package/dist/esm/wm-tag-input.entry.js +580 -580
- package/dist/esm/wm-timepicker.entry.js +384 -384
- package/dist/esm/wm-toggletip.entry.js +125 -125
- package/dist/esm/wm-uploader.entry.js +609 -609
- package/dist/esm/wm-wrapper.entry.js +13 -13
- package/dist/esm-es5/{chartFunctions-f315c3e9.js → chartFunctions-60cabc24.js} +1 -1
- package/dist/esm-es5/functions-dde318c0.js +1 -0
- package/dist/esm-es5/global-efcb3f02.js +1 -0
- package/dist/esm-es5/{http-service-3dc3b3e7.js → http-service-5d037e16.js} +0 -0
- package/dist/esm-es5/{index-7603f98e.js → index-17c79cc6.js} +1 -1
- package/dist/esm-es5/{interfaces-2b97fab2.js → interfaces-61c6305b.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-navigation_3.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-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-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/ripple/p-008292f6.system.js +1 -0
- package/dist/ripple/p-05757c14.entry.js +1 -0
- package/dist/ripple/p-06618a34.entry.js +1 -0
- package/dist/ripple/p-068e874b.entry.js +1 -0
- package/dist/ripple/{p-f5df5903.system.js → p-08b7ec08.system.js} +0 -0
- package/dist/ripple/{p-228a7210.system.entry.js → p-0e605966.system.entry.js} +1 -1
- package/dist/ripple/{p-0d2017ae.entry.js → p-0f4a6a8f.entry.js} +1 -1
- package/dist/ripple/{p-68155230.system.entry.js → p-158f538a.system.entry.js} +1 -1
- package/dist/ripple/p-199f825e.js +1 -0
- package/dist/ripple/p-1cee0339.entry.js +1 -0
- package/dist/ripple/{p-eee347b4.system.entry.js → p-1eb5cb0d.system.entry.js} +1 -1
- package/dist/ripple/{p-eacd33cc.system.entry.js → p-25696dab.system.entry.js} +1 -1
- package/dist/ripple/p-262c75ff.entry.js +1 -0
- package/dist/ripple/{p-90ed3268.system.entry.js → p-27253ed2.system.entry.js} +1 -1
- package/dist/ripple/{p-867c6b99.system.entry.js → p-29425d92.system.entry.js} +1 -1
- package/dist/ripple/{p-9d02957d.system.js → p-313b6073.system.js} +0 -0
- package/dist/ripple/p-321daa60.entry.js +1 -0
- package/dist/ripple/{p-d3ed8b65.system.entry.js → p-35f21755.system.entry.js} +1 -1
- package/dist/ripple/{p-d81a4e7c.system.entry.js → p-3b77a3f7.system.entry.js} +1 -1
- package/dist/ripple/{p-398b2486.system.entry.js → p-3d4bf3df.system.entry.js} +1 -1
- package/dist/ripple/p-416944fd.entry.js +1 -0
- package/dist/ripple/p-425ef815.entry.js +1 -0
- package/dist/ripple/p-4296b0ba.entry.js +1 -0
- package/dist/ripple/p-43b09b72.entry.js +1 -0
- package/dist/ripple/{p-fdc4a599.system.entry.js → p-4f393ce8.system.entry.js} +1 -1
- package/dist/ripple/p-57c94258.entry.js +1 -0
- package/dist/ripple/{p-1df2adee.system.entry.js → p-59678b70.system.entry.js} +1 -1
- package/dist/ripple/p-6220c94d.entry.js +1 -0
- package/dist/ripple/{p-c873b490.system.entry.js → p-6bfc949d.system.entry.js} +1 -1
- package/dist/ripple/p-6dbc79be.entry.js +1 -0
- package/dist/ripple/{p-a0c3ef16.system.js → p-726b9452.system.js} +1 -1
- package/dist/ripple/{p-e23a9129.system.js → p-72c1052f.system.js} +1 -1
- package/dist/ripple/p-789e0afa.entry.js +1 -0
- package/dist/ripple/{p-e95a56f5.js → p-7cb0b2a5.js} +1 -1
- package/dist/ripple/{p-43f1298b.js → p-888bec42.js} +0 -0
- package/dist/ripple/{p-42aa51fe.system.entry.js → p-8fab569a.system.entry.js} +1 -1
- package/dist/ripple/p-962f51ff.entry.js +1 -0
- package/dist/ripple/p-98c9b376.entry.js +1 -0
- package/dist/ripple/p-9d069ec5.entry.js +1 -0
- package/dist/ripple/p-9ec9ba5b.entry.js +1 -0
- package/dist/ripple/{p-fd8070fb.js → p-a6d6eae7.js} +0 -0
- package/dist/ripple/p-aacdaa79.entry.js +1 -0
- package/dist/ripple/{p-212aac05.system.entry.js → p-ad60e3ba.system.entry.js} +1 -1
- package/dist/ripple/p-b0536ddb.entry.js +1 -0
- package/dist/ripple/{p-487f7419.system.entry.js → p-b0ba5460.system.entry.js} +1 -1
- package/dist/ripple/p-b1928a70.js +1 -0
- package/dist/ripple/p-b9d5b407.entry.js +1 -0
- package/dist/ripple/{p-3e6498ea.system.entry.js → p-bc207b54.system.entry.js} +1 -1
- package/dist/ripple/{p-44035b02.system.entry.js → p-bd9e6e7b.system.entry.js} +1 -1
- package/dist/ripple/p-c0ab18ce.entry.js +1 -0
- package/dist/ripple/{p-787596f6.system.js → p-c1185f13.system.js} +1 -1
- package/dist/ripple/p-c2abdcba.js +1 -0
- package/dist/ripple/{p-1242752c.system.entry.js → p-c62df7fc.system.entry.js} +1 -1
- package/dist/ripple/{p-ac2485a6.system.entry.js → p-c78f0984.system.entry.js} +1 -1
- package/dist/ripple/{p-9f12284b.system.entry.js → p-d0369e2f.system.entry.js} +1 -1
- package/dist/ripple/{p-5471864e.system.entry.js → p-d1eff01f.system.entry.js} +1 -1
- package/dist/ripple/p-d2996c45.entry.js +1 -0
- package/dist/ripple/{p-75ef731b.system.entry.js → p-d934e3bb.system.entry.js} +1 -1
- package/dist/ripple/p-d9b98c9d.entry.js +1 -0
- package/dist/ripple/{p-ae6cfbca.system.entry.js → p-db44eb6f.system.entry.js} +1 -1
- package/dist/ripple/p-dee93986.entry.js +1 -0
- package/dist/ripple/p-e4e70417.entry.js +1 -0
- package/dist/ripple/{p-3b3e847c.system.entry.js → p-f17076c4.system.entry.js} +1 -1
- package/dist/ripple/p-f2959770.system.entry.js +1 -0
- package/dist/ripple/p-fa8569d2.system.js +1 -0
- package/dist/ripple/{p-72eb5064.system.entry.js → p-fb4d6afd.system.entry.js} +1 -1
- package/dist/ripple/{p-e180001c.system.entry.js → p-fffdb4fb.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +27 -27
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +11 -11
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +36 -36
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +27 -27
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +17 -17
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +10 -10
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +47 -47
- package/dist/types/components/wm-button/wm-button.d.ts +43 -43
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +80 -80
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +41 -41
- 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 +14 -14
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +11 -11
- package/dist/types/components/wm-modal/wm-modal.d.ts +41 -41
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +21 -21
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +13 -13
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +28 -28
- 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 +115 -115
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -7
- package/dist/types/components.d.ts +24 -24
- package/dist/types/global/__mocks__/functions.d.ts +6 -6
- package/dist/types/global/chartFunctions.d.ts +29 -29
- package/dist/types/global/functions.d.ts +42 -42
- package/dist/types/global/global.d.ts +1 -1
- package/dist/types/global/interfaces.d.ts +44 -44
- 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/package.json +47 -47
- package/dist/esm-es5/functions-61c7bb1f.js +0 -15
- package/dist/esm-es5/global-704e9a52.js +0 -1
- package/dist/ripple/p-00fa3d4b.entry.js +0 -1
- package/dist/ripple/p-12299176.entry.js +0 -1
- package/dist/ripple/p-15b1c11b.js +0 -16
- package/dist/ripple/p-286e851c.system.entry.js +0 -1
- package/dist/ripple/p-30745db6.entry.js +0 -1
- package/dist/ripple/p-358bde27.entry.js +0 -1
- package/dist/ripple/p-35cfcf9f.entry.js +0 -1
- package/dist/ripple/p-379b125b.entry.js +0 -1
- package/dist/ripple/p-46e23484.system.js +0 -1
- package/dist/ripple/p-4d59fe86.entry.js +0 -1
- package/dist/ripple/p-520b0f54.entry.js +0 -1
- package/dist/ripple/p-5e041c35.entry.js +0 -1
- package/dist/ripple/p-76ca7498.system.js +0 -15
- package/dist/ripple/p-792c6dd4.js +0 -1
- package/dist/ripple/p-7fae0cc2.entry.js +0 -1
- package/dist/ripple/p-84b356a5.entry.js +0 -1
- package/dist/ripple/p-8d347cd5.entry.js +0 -1
- package/dist/ripple/p-92226595.entry.js +0 -1
- package/dist/ripple/p-9fe64cec.entry.js +0 -1
- package/dist/ripple/p-a82d37d8.entry.js +0 -1
- package/dist/ripple/p-a9e0ce88.entry.js +0 -1
- package/dist/ripple/p-b3c71506.js +0 -1
- package/dist/ripple/p-ba168596.entry.js +0 -1
- package/dist/ripple/p-cd4fda75.entry.js +0 -1
- package/dist/ripple/p-d3603def.entry.js +0 -1
- package/dist/ripple/p-e49b9a96.entry.js +0 -1
- package/dist/ripple/p-e748e22b.entry.js +0 -1
- package/dist/ripple/p-e75e75e0.entry.js +0 -1
- package/dist/ripple/p-ed657559.entry.js +0 -1
- package/dist/ripple/p-f0656464.entry.js +0 -1
- package/dist/ripple/p-f12a510f.entry.js +0 -1
- package/dist/ripple/p-f36b74bf.entry.js +0 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
const version = "3.11.0
|
|
1
|
+
const version = "3.11.0";
|
|
2
2
|
|
|
3
|
-
// PRINT RIPPLE VERSION IN CONSOLE
|
|
4
|
-
// test envs return 0 for plugin.length
|
|
5
|
-
// do not print version number there as it causes issues
|
|
6
|
-
if (window.navigator.plugins.length > 0) {
|
|
7
|
-
console.log("Ripple component library", version);
|
|
8
|
-
}
|
|
9
|
-
// USER-IS-TABBING CLASSES (FOR FOCUS INDICATORS)
|
|
10
|
-
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
11
|
-
function wmComponentKeys(ev) {
|
|
12
|
-
if (ev.key == "Tab") {
|
|
13
|
-
var event = new Event("wmUserIsTabbing");
|
|
14
|
-
window.dispatchEvent(event);
|
|
15
|
-
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
16
|
-
}
|
|
17
|
-
if (ev.key == "ArrowLeft" ||
|
|
18
|
-
ev.key == "ArrowUp" ||
|
|
19
|
-
ev.key == "ArrowRight" ||
|
|
20
|
-
ev.key == "ArrowDown") {
|
|
21
|
-
var event = new Event("wmUserIsKeying");
|
|
22
|
-
window.dispatchEvent(event);
|
|
23
|
-
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function wmComponentMouseDownOnce() {
|
|
27
|
-
var event = new Event("wmUserIsNotTabbing");
|
|
28
|
-
window.dispatchEvent(event);
|
|
29
|
-
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
30
|
-
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
31
|
-
}
|
|
32
|
-
window.addEventListener("keydown", wmComponentKeys);
|
|
33
|
-
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
34
|
-
// TOOLTIP
|
|
35
|
-
// Add a tooltip element
|
|
36
|
-
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
37
|
-
// Element is added withing a container to avoid performance impact
|
|
38
|
-
const tooltipContainer = document.createElement("div");
|
|
39
|
-
tooltipContainer.id = "wm-tooltip-container";
|
|
40
|
-
const tooltipEl = document.createElement("div");
|
|
41
|
-
tooltipEl.id = "wm-tooltip";
|
|
42
|
-
tooltipEl.setAttribute("aria-hidden", "true");
|
|
43
|
-
tooltipEl.style.position = "fixed";
|
|
44
|
-
tooltipEl.style.overflow = "hidden";
|
|
45
|
-
tooltipEl.style.pointerEvents = "none";
|
|
46
|
-
tooltipEl.style.lineHeight = "normal";
|
|
47
|
-
tooltipEl.style.fontFamily = "inherit";
|
|
48
|
-
tooltipEl.style.fontSize = "0.875rem";
|
|
49
|
-
tooltipEl.style.textTransform = "none";
|
|
50
|
-
tooltipEl.style.fontWeight = "normal";
|
|
51
|
-
tooltipEl.style.background = "black";
|
|
52
|
-
tooltipEl.style.color = "#fff";
|
|
53
|
-
tooltipEl.style.zIndex = "999999";
|
|
54
|
-
tooltipEl.style.maxWidth = "13.75rem";
|
|
55
|
-
tooltipEl.style.marginRight = "1.5rem";
|
|
56
|
-
tooltipEl.style.padding = "0.375rem";
|
|
57
|
-
tooltipEl.style.transitionProperty = "opacity";
|
|
58
|
-
tooltipEl.style.transitionDelay = "opacity";
|
|
59
|
-
tooltipEl.style.opacity = "0";
|
|
60
|
-
tooltipContainer.appendChild(tooltipEl);
|
|
61
|
-
const body = document.querySelector("body");
|
|
3
|
+
// PRINT RIPPLE VERSION IN CONSOLE
|
|
4
|
+
// test envs return 0 for plugin.length
|
|
5
|
+
// do not print version number there as it causes issues
|
|
6
|
+
if (window.navigator.plugins.length > 0) {
|
|
7
|
+
console.log("Ripple component library", version);
|
|
8
|
+
}
|
|
9
|
+
// USER-IS-TABBING CLASSES (FOR FOCUS INDICATORS)
|
|
10
|
+
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
11
|
+
function wmComponentKeys(ev) {
|
|
12
|
+
if (ev.key == "Tab") {
|
|
13
|
+
var event = new Event("wmUserIsTabbing");
|
|
14
|
+
window.dispatchEvent(event);
|
|
15
|
+
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
16
|
+
}
|
|
17
|
+
if (ev.key == "ArrowLeft" ||
|
|
18
|
+
ev.key == "ArrowUp" ||
|
|
19
|
+
ev.key == "ArrowRight" ||
|
|
20
|
+
ev.key == "ArrowDown") {
|
|
21
|
+
var event = new Event("wmUserIsKeying");
|
|
22
|
+
window.dispatchEvent(event);
|
|
23
|
+
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function wmComponentMouseDownOnce() {
|
|
27
|
+
var event = new Event("wmUserIsNotTabbing");
|
|
28
|
+
window.dispatchEvent(event);
|
|
29
|
+
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
30
|
+
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
31
|
+
}
|
|
32
|
+
window.addEventListener("keydown", wmComponentKeys);
|
|
33
|
+
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
34
|
+
// TOOLTIP
|
|
35
|
+
// Add a tooltip element
|
|
36
|
+
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
37
|
+
// Element is added withing a container to avoid performance impact
|
|
38
|
+
const tooltipContainer = document.createElement("div");
|
|
39
|
+
tooltipContainer.id = "wm-tooltip-container";
|
|
40
|
+
const tooltipEl = document.createElement("div");
|
|
41
|
+
tooltipEl.id = "wm-tooltip";
|
|
42
|
+
tooltipEl.setAttribute("aria-hidden", "true");
|
|
43
|
+
tooltipEl.style.position = "fixed";
|
|
44
|
+
tooltipEl.style.overflow = "hidden";
|
|
45
|
+
tooltipEl.style.pointerEvents = "none";
|
|
46
|
+
tooltipEl.style.lineHeight = "normal";
|
|
47
|
+
tooltipEl.style.fontFamily = "inherit";
|
|
48
|
+
tooltipEl.style.fontSize = "0.875rem";
|
|
49
|
+
tooltipEl.style.textTransform = "none";
|
|
50
|
+
tooltipEl.style.fontWeight = "normal";
|
|
51
|
+
tooltipEl.style.background = "black";
|
|
52
|
+
tooltipEl.style.color = "#fff";
|
|
53
|
+
tooltipEl.style.zIndex = "999999";
|
|
54
|
+
tooltipEl.style.maxWidth = "13.75rem";
|
|
55
|
+
tooltipEl.style.marginRight = "1.5rem";
|
|
56
|
+
tooltipEl.style.padding = "0.375rem";
|
|
57
|
+
tooltipEl.style.transitionProperty = "opacity";
|
|
58
|
+
tooltipEl.style.transitionDelay = "opacity";
|
|
59
|
+
tooltipEl.style.opacity = "0";
|
|
60
|
+
tooltipContainer.appendChild(tooltipEl);
|
|
61
|
+
const body = document.querySelector("body");
|
|
62
62
|
body.appendChild(tooltipContainer);
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
const getRequest = async (url) => {
|
|
2
|
-
const response = await fetch(url);
|
|
3
|
-
if (!!response && !!response.ok) {
|
|
4
|
-
return await response.json();
|
|
5
|
-
}
|
|
6
|
-
else {
|
|
7
|
-
throw new Error(response.statusText);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const postRequest = async (url, payload) => {
|
|
11
|
-
const response = await fetch(url, {
|
|
12
|
-
method: "POST",
|
|
13
|
-
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
14
|
-
body: JSON.stringify(payload),
|
|
15
|
-
});
|
|
16
|
-
if (!!response && !!response.ok) {
|
|
17
|
-
return await response.json();
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error(response.statusText);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const deleteRequest = async (url) => {
|
|
24
|
-
const response = await fetch(url, { method: "DELETE" });
|
|
25
|
-
if (!!response && !!response.ok) {
|
|
26
|
-
return await response.json();
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
throw new Error(response.statusText);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const putRequest = (url, file, onProgress) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
// there's no way to track progress with the fetch API, so using XHR
|
|
35
|
-
const req = new XMLHttpRequest();
|
|
36
|
-
req.upload.addEventListener("progress", (ev) => onProgress(ev));
|
|
37
|
-
req.addEventListener("readystatechange", function () {
|
|
38
|
-
if (this.readyState === 4 && this.status === 200) {
|
|
39
|
-
resolve(this);
|
|
40
|
-
}
|
|
41
|
-
else if (this.readyState === 4 && this.status !== 200) {
|
|
42
|
-
reject();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
req.onerror = () => reject();
|
|
46
|
-
req.open("PUT", url, true);
|
|
47
|
-
req.setRequestHeader("Content-Disposition", `attachment;filename="${file.name}"`);
|
|
48
|
-
req.send(file);
|
|
49
|
-
});
|
|
1
|
+
const getRequest = async (url) => {
|
|
2
|
+
const response = await fetch(url);
|
|
3
|
+
if (!!response && !!response.ok) {
|
|
4
|
+
return await response.json();
|
|
5
|
+
}
|
|
6
|
+
else {
|
|
7
|
+
throw new Error(response.statusText);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const postRequest = async (url, payload) => {
|
|
11
|
+
const response = await fetch(url, {
|
|
12
|
+
method: "POST",
|
|
13
|
+
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
14
|
+
body: JSON.stringify(payload),
|
|
15
|
+
});
|
|
16
|
+
if (!!response && !!response.ok) {
|
|
17
|
+
return await response.json();
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error(response.statusText);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const deleteRequest = async (url) => {
|
|
24
|
+
const response = await fetch(url, { method: "DELETE" });
|
|
25
|
+
if (!!response && !!response.ok) {
|
|
26
|
+
return await response.json();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new Error(response.statusText);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const putRequest = (url, file, onProgress) => {
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
// there's no way to track progress with the fetch API, so using XHR
|
|
35
|
+
const req = new XMLHttpRequest();
|
|
36
|
+
req.upload.addEventListener("progress", (ev) => onProgress(ev));
|
|
37
|
+
req.addEventListener("readystatechange", function () {
|
|
38
|
+
if (this.readyState === 4 && this.status === 200) {
|
|
39
|
+
resolve(this);
|
|
40
|
+
}
|
|
41
|
+
else if (this.readyState === 4 && this.status !== 200) {
|
|
42
|
+
reject();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
req.onerror = () => reject();
|
|
46
|
+
req.open("PUT", url, true);
|
|
47
|
+
req.setRequestHeader("Content-Disposition", `attachment;filename="${file.name}"`);
|
|
48
|
+
req.send(file);
|
|
49
|
+
});
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export { postRequest as a, deleteRequest as d, getRequest as g, putRequest as p };
|
|
@@ -947,7 +947,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
947
947
|
const flags = hostRef.$flags$;
|
|
948
948
|
const instance = hostRef.$lazyInstance$ ;
|
|
949
949
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
950
|
-
|
|
950
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
951
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
952
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
953
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
951
954
|
// gadzooks! the property's value has changed!!
|
|
952
955
|
// set our new value!
|
|
953
956
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
//List of icon codes with more indicative descriptors to create labels for icon-only buttons
|
|
2
|
-
function getIconCodeFromName(icon) {
|
|
3
|
-
return iconCodes[icon] || icon;
|
|
4
|
-
}
|
|
5
|
-
const iconCodes = {
|
|
6
|
-
close: "f156",
|
|
7
|
-
pencil: "f3eb",
|
|
8
|
-
cancel: "f739",
|
|
9
|
-
check: "f12c",
|
|
10
|
-
delete: "f1c0",
|
|
11
|
-
magnify: "f349",
|
|
12
|
-
export: "f207",
|
|
13
|
-
"dots-vertical": "f1d9",
|
|
14
|
-
"arrow-left": "f04d",
|
|
15
|
-
"arrow-right": "f054",
|
|
16
|
-
"chevron-left": "f141",
|
|
17
|
-
"chevron-right": "f142",
|
|
18
|
-
"menu-left": "f35e",
|
|
19
|
-
"menu-down": "f35d",
|
|
20
|
-
"keyboard-backspace": "f30d",
|
|
21
|
-
"file-tree": "f645",
|
|
22
|
-
"sort-alphabetical": "f4bb",
|
|
23
|
-
"checkbox-marked-circle": "f133",
|
|
24
|
-
"account-settings": "f630",
|
|
25
|
-
"backup-restore": "f06f",
|
|
26
|
-
};
|
|
27
|
-
const defaultMode = "planning";
|
|
28
|
-
const getWmMode = (ref) => {
|
|
29
|
-
return ref.getAttribute("mode") || document.documentElement.getAttribute("mode") || defaultMode;
|
|
1
|
+
//List of icon codes with more indicative descriptors to create labels for icon-only buttons
|
|
2
|
+
function getIconCodeFromName(icon) {
|
|
3
|
+
return iconCodes[icon] || icon;
|
|
4
|
+
}
|
|
5
|
+
const iconCodes = {
|
|
6
|
+
close: "f156",
|
|
7
|
+
pencil: "f3eb",
|
|
8
|
+
cancel: "f739",
|
|
9
|
+
check: "f12c",
|
|
10
|
+
delete: "f1c0",
|
|
11
|
+
magnify: "f349",
|
|
12
|
+
export: "f207",
|
|
13
|
+
"dots-vertical": "f1d9",
|
|
14
|
+
"arrow-left": "f04d",
|
|
15
|
+
"arrow-right": "f054",
|
|
16
|
+
"chevron-left": "f141",
|
|
17
|
+
"chevron-right": "f142",
|
|
18
|
+
"menu-left": "f35e",
|
|
19
|
+
"menu-down": "f35d",
|
|
20
|
+
"keyboard-backspace": "f30d",
|
|
21
|
+
"file-tree": "f645",
|
|
22
|
+
"sort-alphabetical": "f4bb",
|
|
23
|
+
"checkbox-marked-circle": "f133",
|
|
24
|
+
"account-settings": "f630",
|
|
25
|
+
"backup-restore": "f06f",
|
|
26
|
+
};
|
|
27
|
+
const defaultMode = "planning";
|
|
28
|
+
const getWmMode = (ref) => {
|
|
29
|
+
return ref.getAttribute("mode") || document.documentElement.getAttribute("mode") || defaultMode;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export { getWmMode as a, getIconCodeFromName as g };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
import './global-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-17c79cc6.js';
|
|
2
|
+
import './global-efcb3f02.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v2.
|
|
5
|
+
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
1
|
+
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { i as intl } from './functions-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-17c79cc6.js';
|
|
2
|
+
import { i as intl } from './functions-dde318c0.js';
|
|
3
3
|
|
|
4
4
|
const privChartPopoverCss = "priv-chart-popover{position:fixed;z-index:10;border-radius:0.1875rem;-webkit-box-shadow:0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.12);background-color:#fff;font-size:0.875rem;text-align:left}priv-chart-popover.user-is-tabbing .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #3862e9), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}.popover{width:10.5rem;padding:0.625rem 0.9375rem;-webkit-box-sizing:border-box;box-sizing:border-box}.popover h1.title{font-size:1em;font-weight:500;margin:0;padding-top:0;padding-left:0;padding-bottom:0.25rem}.popover .text{margin:0;margin-bottom:0.5rem}.popover .popover-button{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;position:relative;display:inline-block;margin-left:1rem;padding-left:0;padding-right:0;height:auto;border:none;background:transparent;cursor:pointer;text-decoration:none;letter-spacing:0;text-transform:none;text-align:initial;font-size:0.875rem;font-weight:700;color:#575195;line-height:normal}.popover .popover-button .btn-icon{position:absolute;top:0.1875rem;left:-1rem}.popover .popover-button:focus{outline:none}.popover .popover-button::-moz-focus-inner{border:0;outline:none}.popover .popover-button:hover{text-decoration:none;background:none;color:#454077}.popover .popover-button:hover span{text-decoration:underline}";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.wmChartPopoverButtonTriggered = createEvent(this, "wmChartPopoverButtonTriggered", 7);
|
|
10
|
-
this.wmProgressIndicatorButtonTriggered = createEvent(this, "wmProgressIndicatorButtonTriggered", 7);
|
|
11
|
-
this.chartEl = this.el.parentElement.getRootNode().host;
|
|
12
|
-
this.open = false;
|
|
13
|
-
this.coords = {};
|
|
14
|
-
this.popoverWidth = 168;
|
|
15
|
-
this.popoverClicked = false;
|
|
16
|
-
}
|
|
17
|
-
get eventToEmit() {
|
|
18
|
-
return this.chartEl.nodeName === "WM-CHART"
|
|
19
|
-
? this.wmChartPopoverButtonTriggered
|
|
20
|
-
: this.wmProgressIndicatorButtonTriggered;
|
|
21
|
-
}
|
|
22
|
-
handleClickOnDocument() {
|
|
23
|
-
// because this listener is set document-wide, whenever something inside it is clicked
|
|
24
|
-
// the event target returned will always be the host (wm-chart)
|
|
25
|
-
// the element within wm-chart is determined by the other listener and saved as var popoverClicked for use here
|
|
26
|
-
// capture = false in @Listen ensures order of execution
|
|
27
|
-
this.open = this.popoverClicked;
|
|
28
|
-
this.popoverClicked = false;
|
|
29
|
-
}
|
|
30
|
-
handleClick(ev) {
|
|
31
|
-
let popoverBtnClicked = false;
|
|
32
|
-
if (this.btnEl) {
|
|
33
|
-
popoverBtnClicked = ev.target === this.btnEl || this.btnEl.contains(ev.target);
|
|
34
|
-
}
|
|
35
|
-
// if the click is on the popover (except the popover button),
|
|
36
|
-
// set popoverClicked to true. It will be used by the other listener above
|
|
37
|
-
this.popoverClicked = !popoverBtnClicked && (ev.target === this.el || this.el.contains(ev.target));
|
|
38
|
-
}
|
|
39
|
-
handleButtonClick() {
|
|
40
|
-
if (this.sliceRef) {
|
|
41
|
-
this.sliceRef.click();
|
|
42
|
-
this.eventToEmit.emit(this.sliceRef);
|
|
43
|
-
}
|
|
44
|
-
this.open = false;
|
|
45
|
-
}
|
|
46
|
-
renderLiveRegion() {
|
|
47
|
-
if (this.liveRegion) {
|
|
48
|
-
this.liveRegion.innerHTML = "";
|
|
49
|
-
const wrapper = document.createElement("div");
|
|
50
|
-
const titleEl = document.createElement("span");
|
|
51
|
-
titleEl.innerHTML = this.popoverTitle + " " || "";
|
|
52
|
-
wrapper.appendChild(titleEl);
|
|
53
|
-
const textEl = document.createElement("span");
|
|
54
|
-
textEl.innerHTML = this.popoverText + " " || "";
|
|
55
|
-
wrapper.appendChild(textEl);
|
|
56
|
-
if (this.buttonText) {
|
|
57
|
-
const buttonEl = document.createElement("span");
|
|
58
|
-
buttonEl.innerHTML =
|
|
59
|
-
this.buttonText +
|
|
60
|
-
" " +
|
|
61
|
-
intl.formatMessage({
|
|
62
|
-
id: "chart.infoButton",
|
|
63
|
-
defaultMessage: "Button. Click for more information.",
|
|
64
|
-
});
|
|
65
|
-
wrapper.appendChild(buttonEl);
|
|
66
|
-
}
|
|
67
|
-
this.liveRegion.appendChild(wrapper);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
positionPopover() {
|
|
71
|
-
this.el.style.top = this.coords.y + "px";
|
|
72
|
-
if (window.innerWidth - this.coords.x >= this.popoverWidth + 10) {
|
|
73
|
-
this.el.style.left = this.coords.x + "px"; // opens on the right
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
this.el.style.left = this.coords.x - this.popoverWidth + "px"; // opens on the left
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
render() {
|
|
80
|
-
return (h(Host, null, !!this.open ? (h("div", { "aria-hidden": "true", class: "popover" }, h("h1", { class: "title" }, this.popoverTitle), h("p", { class: "text" }, this.popoverText), this.buttonText ? (
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
h("button", { tabindex: "-1",
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
focusable: "false", ref: (el) => (this.btnEl = el), class: "popover-button", onClick: () => this.handleButtonClick() }, h("svg", { class: "btn-icon", height: "9", width: "9" }, h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })), h("span", { class: "button-text" }, this.buttonText))) : (""))) : (""), h("div", { ref: (el) => (this.liveRegion = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.open && this.renderLiveRegion())));
|
|
85
|
-
}
|
|
86
|
-
get el() { return getElement(this); }
|
|
87
|
-
static get watchers() { return {
|
|
88
|
-
"coords": ["positionPopover"]
|
|
89
|
-
}; }
|
|
90
|
-
};
|
|
6
|
+
const ChartPopover = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.wmChartPopoverButtonTriggered = createEvent(this, "wmChartPopoverButtonTriggered", 7);
|
|
10
|
+
this.wmProgressIndicatorButtonTriggered = createEvent(this, "wmProgressIndicatorButtonTriggered", 7);
|
|
11
|
+
this.chartEl = this.el.parentElement.getRootNode().host;
|
|
12
|
+
this.open = false;
|
|
13
|
+
this.coords = {};
|
|
14
|
+
this.popoverWidth = 168;
|
|
15
|
+
this.popoverClicked = false;
|
|
16
|
+
}
|
|
17
|
+
get eventToEmit() {
|
|
18
|
+
return this.chartEl.nodeName === "WM-CHART"
|
|
19
|
+
? this.wmChartPopoverButtonTriggered
|
|
20
|
+
: this.wmProgressIndicatorButtonTriggered;
|
|
21
|
+
}
|
|
22
|
+
handleClickOnDocument() {
|
|
23
|
+
// because this listener is set document-wide, whenever something inside it is clicked
|
|
24
|
+
// the event target returned will always be the host (wm-chart)
|
|
25
|
+
// the element within wm-chart is determined by the other listener and saved as var popoverClicked for use here
|
|
26
|
+
// capture = false in @Listen ensures order of execution
|
|
27
|
+
this.open = this.popoverClicked;
|
|
28
|
+
this.popoverClicked = false;
|
|
29
|
+
}
|
|
30
|
+
handleClick(ev) {
|
|
31
|
+
let popoverBtnClicked = false;
|
|
32
|
+
if (this.btnEl) {
|
|
33
|
+
popoverBtnClicked = ev.target === this.btnEl || this.btnEl.contains(ev.target);
|
|
34
|
+
}
|
|
35
|
+
// if the click is on the popover (except the popover button),
|
|
36
|
+
// set popoverClicked to true. It will be used by the other listener above
|
|
37
|
+
this.popoverClicked = !popoverBtnClicked && (ev.target === this.el || this.el.contains(ev.target));
|
|
38
|
+
}
|
|
39
|
+
handleButtonClick() {
|
|
40
|
+
if (this.sliceRef) {
|
|
41
|
+
this.sliceRef.click();
|
|
42
|
+
this.eventToEmit.emit(this.sliceRef);
|
|
43
|
+
}
|
|
44
|
+
this.open = false;
|
|
45
|
+
}
|
|
46
|
+
renderLiveRegion() {
|
|
47
|
+
if (this.liveRegion) {
|
|
48
|
+
this.liveRegion.innerHTML = "";
|
|
49
|
+
const wrapper = document.createElement("div");
|
|
50
|
+
const titleEl = document.createElement("span");
|
|
51
|
+
titleEl.innerHTML = this.popoverTitle + " " || "";
|
|
52
|
+
wrapper.appendChild(titleEl);
|
|
53
|
+
const textEl = document.createElement("span");
|
|
54
|
+
textEl.innerHTML = this.popoverText + " " || "";
|
|
55
|
+
wrapper.appendChild(textEl);
|
|
56
|
+
if (this.buttonText) {
|
|
57
|
+
const buttonEl = document.createElement("span");
|
|
58
|
+
buttonEl.innerHTML =
|
|
59
|
+
this.buttonText +
|
|
60
|
+
" " +
|
|
61
|
+
intl.formatMessage({
|
|
62
|
+
id: "chart.infoButton",
|
|
63
|
+
defaultMessage: "Button. Click for more information.",
|
|
64
|
+
});
|
|
65
|
+
wrapper.appendChild(buttonEl);
|
|
66
|
+
}
|
|
67
|
+
this.liveRegion.appendChild(wrapper);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
positionPopover() {
|
|
71
|
+
this.el.style.top = this.coords.y + "px";
|
|
72
|
+
if (window.innerWidth - this.coords.x >= this.popoverWidth + 10) {
|
|
73
|
+
this.el.style.left = this.coords.x + "px"; // opens on the right
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.el.style.left = this.coords.x - this.popoverWidth + "px"; // opens on the left
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
return (h(Host, null, !!this.open ? (h("div", { "aria-hidden": "true", class: "popover" }, h("h1", { class: "title" }, this.popoverTitle), h("p", { class: "text" }, this.popoverText), this.buttonText ? (
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
h("button", { tabindex: "-1",
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
focusable: "false", ref: (el) => (this.btnEl = el), class: "popover-button", onClick: () => this.handleButtonClick() }, h("svg", { class: "btn-icon", height: "9", width: "9" }, h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })), h("span", { class: "button-text" }, this.buttonText))) : (""))) : (""), h("div", { ref: (el) => (this.liveRegion = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.open && this.renderLiveRegion())));
|
|
85
|
+
}
|
|
86
|
+
get el() { return getElement(this); }
|
|
87
|
+
static get watchers() { return {
|
|
88
|
+
"coords": ["positionPopover"]
|
|
89
|
+
}; }
|
|
90
|
+
};
|
|
91
91
|
ChartPopover.style = privChartPopoverCss;
|
|
92
92
|
|
|
93
93
|
export { ChartPopover as priv_chart_popover };
|