@watermarkinsights/ripple 3.8.2 → 3.9.0-2
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-a1dd1291.js +429 -0
- package/dist/cjs/{functions-b90816b8.js → functions-0750b767.js} +506 -532
- package/dist/cjs/{global-cf9485c4.js → global-0a6b313f.js} +60 -60
- package/dist/cjs/{http-service-9e8c4dd5.js → http-service-494d81de.js} +49 -49
- package/dist/cjs/{index-0e7e3668.js → index-98c6524c.js} +69 -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 +87 -79
- package/dist/cjs/priv-datepicker.cjs.entry.js +659 -659
- 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 -228
- package/dist/cjs/wm-chart-slice.cjs.entry.js +14 -14
- package/dist/cjs/wm-chart.cjs.entry.js +117 -473
- package/dist/cjs/wm-datepicker.cjs.entry.js +267 -267
- 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-navigation_3.cjs.entry.js +222 -222
- 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 +487 -487
- package/dist/cjs/wm-pagination.cjs.entry.js +168 -168
- package/dist/cjs/wm-progress-indicator.cjs.entry.js +92 -0
- package/dist/cjs/wm-progress-monitor.cjs.entry.js +57 -0
- package/dist/cjs/wm-progress-slice.cjs.entry.js +17 -0
- 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 +298 -298
- 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 +8 -5
- package/dist/collection/components/{wm-chart → charts}/priv-chart-popover/priv-chart-popover.css +0 -0
- package/dist/collection/components/{wm-chart → charts}/priv-chart-popover/priv-chart-popover.js +258 -232
- package/dist/collection/components/{wm-chart → charts/wm-chart}/wm-chart-slice.js +115 -115
- package/dist/collection/components/charts/wm-chart/wm-chart.css +460 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +332 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +460 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +199 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +53 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +95 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +111 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +460 -460
- package/dist/collection/components/wm-button/wm-button.css +2 -1
- package/dist/collection/components/wm-button/wm-button.js +491 -491
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +4 -3
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1024 -1024
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +2 -1
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +471 -471
- package/dist/collection/components/wm-input/wm-input.css +2 -1
- 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 +141 -141
- package/dist/collection/components/wm-modal/wm-modal-header.js +92 -92
- package/dist/collection/components/wm-modal/wm-modal.js +461 -461
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +2 -1
- 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 +211 -211
- 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.css +3 -2
- 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.css +3 -2
- package/dist/collection/components/wm-select/wm-select.js +718 -718
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +3 -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 +2 -2
- 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.css +3 -2
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +810 -810
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +3 -2
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +583 -583
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +2 -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 +2 -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 +2 -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/chartFunctions.js +417 -0
- 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 +39 -39
- package/dist/collection/lang/piglatin.js +93 -93
- package/dist/esm/chartFunctions-fc11df2b.js +420 -0
- package/dist/esm/{functions-8d09a511.js → functions-b478ef24.js} +506 -532
- package/dist/esm/{global-d1d68bab.js → global-b8be90a6.js} +60 -60
- package/dist/esm/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +49 -49
- package/dist/esm/{index-cd8f9ae2.js → index-d649a861.js} +69 -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 +87 -79
- package/dist/esm/priv-datepicker.entry.js +659 -659
- 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 -228
- package/dist/esm/wm-chart-slice.entry.js +14 -14
- package/dist/esm/wm-chart.entry.js +117 -473
- package/dist/esm/wm-datepicker.entry.js +267 -267
- 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-navigation_3.entry.js +222 -222
- 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 +487 -487
- package/dist/esm/wm-pagination.entry.js +168 -168
- package/dist/esm/wm-progress-indicator.entry.js +88 -0
- package/dist/esm/wm-progress-monitor.entry.js +53 -0
- package/dist/esm/wm-progress-slice.entry.js +13 -0
- 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 +298 -298
- 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/chartFunctions-fc11df2b.js +1 -0
- package/dist/esm-es5/functions-b478ef24.js +15 -0
- package/dist/esm-es5/global-b8be90a6.js +1 -0
- package/dist/esm-es5/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +1 -1
- package/dist/esm-es5/index-d649a861.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-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.entry.js +1 -0
- package/dist/esm-es5/wm-progress-monitor.entry.js +1 -0
- package/dist/esm-es5/wm-progress-slice.entry.js +1 -0
- 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-063bc67c.system.entry.js +1 -0
- package/dist/ripple/{p-504579c2.system.entry.js → p-099df7b7.system.entry.js} +1 -1
- package/dist/ripple/p-0b23a4fe.entry.js +1 -0
- package/dist/ripple/p-1b2c3251.system.entry.js +1 -0
- package/dist/ripple/{p-34e0410e.system.entry.js → p-1b7be30d.system.entry.js} +1 -1
- package/dist/ripple/p-1e2c46f1.entry.js +1 -0
- package/dist/ripple/p-1e7fc028.entry.js +1 -0
- package/dist/ripple/p-2296c2c3.entry.js +1 -0
- package/dist/ripple/p-24cd6213.system.entry.js +1 -0
- package/dist/ripple/p-2587031d.system.entry.js +1 -0
- package/dist/ripple/p-29d527c8.entry.js +1 -0
- package/dist/ripple/p-2b6246d9.entry.js +1 -0
- package/dist/ripple/{p-a5177480.system.entry.js → p-2b63995f.system.entry.js} +1 -1
- package/dist/ripple/p-2b9c54e7.system.entry.js +1 -0
- package/dist/ripple/p-2cc9e6cf.system.entry.js +1 -0
- package/dist/ripple/p-30db4ad7.entry.js +1 -0
- package/dist/ripple/{p-dc0e6d55.system.entry.js → p-30e1daf7.system.entry.js} +1 -1
- package/dist/ripple/p-3388ca40.entry.js +1 -0
- package/dist/ripple/p-34736928.entry.js +1 -0
- package/dist/ripple/p-366e00f9.js +1 -0
- package/dist/ripple/p-36be0612.js +1 -0
- package/dist/ripple/p-3b31eaec.system.js +1 -0
- package/dist/ripple/p-3eb3a1f8.entry.js +1 -0
- package/dist/ripple/{p-888bec42.js → p-43f1298b.js} +0 -0
- package/dist/ripple/p-492ad5d0.system.entry.js +1 -0
- package/dist/ripple/p-4f23cdc6.entry.js +1 -0
- package/dist/ripple/p-50be3b44.js +1 -0
- package/dist/ripple/p-5743d4bc.system.entry.js +1 -0
- package/dist/ripple/p-59963be9.system.entry.js +1 -0
- package/dist/ripple/p-5d6cc9da.system.js +1 -0
- package/dist/ripple/p-5e5f162c.system.entry.js +1 -0
- package/dist/ripple/{p-53caf7e4.system.entry.js → p-647edff3.system.entry.js} +1 -1
- package/dist/ripple/p-6c295beb.entry.js +1 -0
- package/dist/ripple/p-6c751341.entry.js +1 -0
- package/dist/ripple/p-6f9e8fbc.entry.js +1 -0
- package/dist/ripple/p-70ececb5.entry.js +1 -0
- package/dist/ripple/p-7674c9b0.system.entry.js +1 -0
- package/dist/ripple/p-76b96f77.entry.js +1 -0
- package/dist/ripple/p-7a2a0d2e.js +16 -0
- package/dist/ripple/p-7c2b1682.entry.js +1 -0
- package/dist/ripple/p-7f0c64ac.entry.js +1 -0
- package/dist/ripple/p-803f1f22.entry.js +1 -0
- package/dist/ripple/p-84fb34b5.entry.js +1 -0
- package/dist/ripple/p-8a583f84.entry.js +1 -0
- package/dist/ripple/p-8daa2613.system.entry.js +1 -0
- package/dist/ripple/p-935a266f.entry.js +1 -0
- package/dist/ripple/p-9d02957d.system.js +1 -0
- package/dist/ripple/p-a14ac623.entry.js +1 -0
- package/dist/ripple/{p-e758db14.system.entry.js → p-a1511315.system.entry.js} +1 -1
- package/dist/ripple/p-b325c35a.system.entry.js +1 -0
- package/dist/ripple/{p-9a9743f5.system.entry.js → p-bfc1ab2e.system.entry.js} +1 -1
- package/dist/ripple/p-bfe93d8d.system.entry.js +1 -0
- package/dist/ripple/p-c1c7b0b1.system.js +15 -0
- package/dist/ripple/p-c20a179f.system.entry.js +1 -0
- package/dist/ripple/p-c8bbf15e.entry.js +1 -0
- package/dist/ripple/{p-7913283e.system.entry.js → p-cb7d8ade.system.entry.js} +1 -1
- package/dist/ripple/p-cfb62ded.entry.js +1 -0
- package/dist/ripple/p-d12e0f49.system.js +1 -0
- package/dist/ripple/p-d648d193.entry.js +1 -0
- package/dist/ripple/p-d7ff84eb.entry.js +1 -0
- package/dist/ripple/{p-c19298a5.system.entry.js → p-ddf157c8.system.entry.js} +1 -1
- package/dist/ripple/p-e90f6915.system.js +1 -0
- package/dist/ripple/p-ea33bda7.system.entry.js +1 -0
- package/dist/ripple/p-f2566a42.system.entry.js +1 -0
- package/dist/ripple/{p-08b7ec08.system.js → p-f5df5903.system.js} +0 -0
- package/dist/ripple/p-f62fc5ea.system.entry.js +1 -0
- package/dist/ripple/{p-a6d6eae7.js → p-fd8070fb.js} +0 -0
- package/dist/ripple/{p-dcfe93ea.system.entry.js → p-fd9380f2.system.entry.js} +1 -1
- package/dist/ripple/p-fe0abd10.system.entry.js +1 -0
- package/dist/ripple/p-fe2a30d3.entry.js +1 -0
- package/dist/ripple/p-ffbc5db3.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/{wm-chart → charts}/priv-chart-popover/priv-chart-popover.d.ts +27 -23
- package/dist/types/components/{wm-chart → charts/wm-chart}/wm-chart-slice.d.ts +11 -11
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +35 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +26 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +17 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +10 -0
- 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 -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 +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-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 +30 -30
- 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 +86 -24
- package/dist/types/global/__mocks__/functions.d.ts +6 -6
- package/dist/types/global/chartFunctions.d.ts +28 -0
- 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 -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/collection/components/wm-chart/wm-chart.css +0 -346
- package/dist/collection/components/wm-chart/wm-chart.js +0 -715
- package/dist/esm-es5/functions-8d09a511.js +0 -15
- package/dist/esm-es5/global-d1d68bab.js +0 -1
- package/dist/esm-es5/index-cd8f9ae2.js +0 -1
- package/dist/ripple/p-09508c2d.entry.js +0 -1
- package/dist/ripple/p-0a916c6e.entry.js +0 -1
- package/dist/ripple/p-11a9ce3f.system.js +0 -1
- package/dist/ripple/p-1ef19ec1.entry.js +0 -1
- package/dist/ripple/p-20856a2d.system.js +0 -1
- package/dist/ripple/p-244877c8.entry.js +0 -1
- package/dist/ripple/p-253a08fe.system.js +0 -15
- package/dist/ripple/p-268622b5.system.entry.js +0 -1
- package/dist/ripple/p-27f0d9be.entry.js +0 -1
- package/dist/ripple/p-29d3ca15.system.entry.js +0 -1
- package/dist/ripple/p-2a27dba5.entry.js +0 -1
- package/dist/ripple/p-2b209cf3.js +0 -1
- package/dist/ripple/p-313b6073.system.js +0 -1
- package/dist/ripple/p-38062c39.js +0 -1
- package/dist/ripple/p-39eea6bd.system.entry.js +0 -1
- package/dist/ripple/p-3b6b7618.entry.js +0 -1
- package/dist/ripple/p-3ba3afca.entry.js +0 -1
- package/dist/ripple/p-4de0799d.entry.js +0 -1
- package/dist/ripple/p-56963e2f.system.entry.js +0 -1
- package/dist/ripple/p-597985b9.entry.js +0 -1
- package/dist/ripple/p-5adc422a.entry.js +0 -1
- package/dist/ripple/p-5e0d47b9.system.entry.js +0 -1
- package/dist/ripple/p-67f74636.entry.js +0 -1
- package/dist/ripple/p-69735b23.system.entry.js +0 -1
- package/dist/ripple/p-6c65643e.system.entry.js +0 -1
- package/dist/ripple/p-7484c4e6.system.entry.js +0 -1
- package/dist/ripple/p-764fa608.entry.js +0 -1
- package/dist/ripple/p-81c023a7.entry.js +0 -1
- package/dist/ripple/p-8a0450fd.entry.js +0 -1
- package/dist/ripple/p-8e2cbae6.system.entry.js +0 -1
- package/dist/ripple/p-93b1c864.system.entry.js +0 -1
- package/dist/ripple/p-991abdb9.system.entry.js +0 -1
- package/dist/ripple/p-99d610f9.entry.js +0 -1
- package/dist/ripple/p-a8d66745.js +0 -16
- package/dist/ripple/p-b53962af.entry.js +0 -1
- package/dist/ripple/p-b53cecad.system.entry.js +0 -1
- package/dist/ripple/p-bdbc14ee.system.entry.js +0 -1
- package/dist/ripple/p-bf3c22d9.entry.js +0 -1
- package/dist/ripple/p-c58520e4.entry.js +0 -1
- package/dist/ripple/p-c7660ed9.entry.js +0 -1
- package/dist/ripple/p-c8040acd.system.entry.js +0 -1
- package/dist/ripple/p-c9284e6b.entry.js +0 -1
- package/dist/ripple/p-cd75be7a.entry.js +0 -1
- package/dist/ripple/p-cdd5ce00.entry.js +0 -1
- package/dist/ripple/p-d680d98f.entry.js +0 -1
- package/dist/ripple/p-e597d7bb.system.entry.js +0 -1
- package/dist/ripple/p-e6bcfdd5.entry.js +0 -1
- package/dist/ripple/p-e8761ba1.system.js +0 -1
- package/dist/ripple/p-ef344252.entry.js +0 -1
- package/dist/ripple/p-fc254870.system.entry.js +0 -1
- package/dist/types/components/wm-chart/wm-chart.d.ts +0 -82
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { Component, Element, h, Host, Prop, State, Listen } from "@stencil/core";
|
|
2
|
+
import { forceUpdate } from "@stencil/core";
|
|
3
|
+
import { debounce, generateId, intl } from "../../../global/functions";
|
|
4
|
+
import { amountToPercent, handleChartKeydown, getData, renderBar, renderCompletionMessage, renderDoughnut, renderLegend, types, } from "../../../global/chartFunctions";
|
|
5
|
+
export class Chart {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.chartType = "doughnut1";
|
|
8
|
+
this.showLegend = true;
|
|
9
|
+
this.notStartedColor = false;
|
|
10
|
+
// left labels are a temporary solution for the lack of a stacked bar chart and is undocumented
|
|
11
|
+
// it only works with bar4 and should be used without a legend
|
|
12
|
+
this.labelPosition = "top";
|
|
13
|
+
this.isTabbing = false;
|
|
14
|
+
this.uid = generateId();
|
|
15
|
+
this.slicesData = [];
|
|
16
|
+
this.chartLabelMessage = intl.formatMessage({
|
|
17
|
+
id: "chart.interactiveChart",
|
|
18
|
+
defaultMessage: "Interactive chart. Use arrow keys to browse elements, press Tab to exit.",
|
|
19
|
+
});
|
|
20
|
+
/* LIFECYCLE METHODS + EVENTS FROM THE CHILDREN */
|
|
21
|
+
this.debouncedResize = debounce(async () => {
|
|
22
|
+
await getData.call(this, this.currentChartType);
|
|
23
|
+
forceUpdate(this.el);
|
|
24
|
+
}, 10);
|
|
25
|
+
this.debouncedSliceUpdate = debounce(async () => {
|
|
26
|
+
await getData.call(this, this.currentChartType);
|
|
27
|
+
forceUpdate(this.el);
|
|
28
|
+
}, 100);
|
|
29
|
+
}
|
|
30
|
+
get tempValueFormat() {
|
|
31
|
+
// use of this getter should be replaced with dateFormat when showValues is fully phased out
|
|
32
|
+
return this.valueFormat || this.showValues || "none";
|
|
33
|
+
}
|
|
34
|
+
get hybridType() {
|
|
35
|
+
return window.innerWidth > 1340 ? "doughnut0" : "bar1";
|
|
36
|
+
}
|
|
37
|
+
get popoverEl() {
|
|
38
|
+
return this.el.shadowRoot.querySelector("priv-chart-popover");
|
|
39
|
+
}
|
|
40
|
+
get sliceEls() {
|
|
41
|
+
const isBarType = this.currentChartType.includes("bar");
|
|
42
|
+
const isDoughnutType = this.currentChartType.includes("doughnut");
|
|
43
|
+
return isBarType
|
|
44
|
+
? Array.from(this.el.shadowRoot.querySelectorAll(".bar-segment"))
|
|
45
|
+
: isDoughnutType
|
|
46
|
+
? Array.from(this.el.shadowRoot.querySelectorAll(".doughnut-segment"))
|
|
47
|
+
: undefined;
|
|
48
|
+
}
|
|
49
|
+
get currentChartType() {
|
|
50
|
+
return this.chartType === "hybrid" ? this.hybridType : this.chartType;
|
|
51
|
+
}
|
|
52
|
+
get chartData() {
|
|
53
|
+
return types[this.currentChartType];
|
|
54
|
+
}
|
|
55
|
+
get ariaLabelText() {
|
|
56
|
+
let text = `${this.label}, ${this.chartLabelMessage}`;
|
|
57
|
+
if (this.subinfo) {
|
|
58
|
+
text += ` ${this.subinfo}`;
|
|
59
|
+
}
|
|
60
|
+
return text;
|
|
61
|
+
}
|
|
62
|
+
toggleTabbingOn() {
|
|
63
|
+
this.isTabbing = true;
|
|
64
|
+
}
|
|
65
|
+
toggleTabbingOff() {
|
|
66
|
+
this.isTabbing = false;
|
|
67
|
+
}
|
|
68
|
+
handleKeydown(ev) {
|
|
69
|
+
handleChartKeydown.call(this, ev);
|
|
70
|
+
}
|
|
71
|
+
handleResize() {
|
|
72
|
+
if (this.chartType === "hybrid") {
|
|
73
|
+
this.debouncedResize();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
async componentWillLoad() {
|
|
77
|
+
if (!this.label) {
|
|
78
|
+
throw new Error("For accessibility purposes, you must provide a label for the chart. See https://components.watermarkinsights.com/chart for more information.");
|
|
79
|
+
}
|
|
80
|
+
if (this.showValues) {
|
|
81
|
+
console.warn("wm-chart: show-values has been deprecated as of v3.1.0. Please use value-format instead.");
|
|
82
|
+
}
|
|
83
|
+
await getData.call(this, this.currentChartType);
|
|
84
|
+
}
|
|
85
|
+
handleSliceUpdate() {
|
|
86
|
+
this.debouncedSliceUpdate();
|
|
87
|
+
}
|
|
88
|
+
/* RENDERING */
|
|
89
|
+
renderBarText(s, idx) {
|
|
90
|
+
let val;
|
|
91
|
+
if (this.tempValueFormat === "percentage") {
|
|
92
|
+
val = s.perc + "%";
|
|
93
|
+
}
|
|
94
|
+
else if (this.tempValueFormat === "amount") {
|
|
95
|
+
val = s.amount;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
return (h("span", { class: "value", style: {
|
|
101
|
+
width: `calc(${amountToPercent(s.amount, this.total, false)}%
|
|
102
|
+
${idx !== this.slicesData.length - 1 ? " - 2px" : ""}`,
|
|
103
|
+
} }, val));
|
|
104
|
+
}
|
|
105
|
+
drawAxis() {
|
|
106
|
+
if (this.currentChartType === "bar3") {
|
|
107
|
+
return (h("svg", { class: "axis" },
|
|
108
|
+
h("line", { x1: "0", x2: "100%", y1: "0", y2: "0" }),
|
|
109
|
+
h("line", { x1: "0", x2: "0", y1: "0", y2: "-85px" }),
|
|
110
|
+
h("line", { class: "tick", x1: "0.5", x2: "0.5", y1: "0", y2: "6" }),
|
|
111
|
+
h("text", { x: "0.5", y: "-6" }, "0%"),
|
|
112
|
+
h("line", { class: "tick", x1: "100%", x2: "100%", y1: "0", y2: "6" }),
|
|
113
|
+
h("text", { x: "100%", y: "-6" }, "100%")));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
return (h(Host, { role: "application", "aria-label": this.ariaLabelText, tabindex: "0" },
|
|
118
|
+
h("div", { class: `component-wrapper ${this.currentChartType} ${this.isTabbing ? "user-is-tabbing" : ""} ${this.labelPosition === "left" && this.chartType === "bar4" ? "left-label" : ""}` },
|
|
119
|
+
h("label", { class: "label", id: `label-${this.uid}`, htmlFor: `graphic-${this.uid}` },
|
|
120
|
+
h("span", { class: "label-text" }, this.label),
|
|
121
|
+
this.subinfo ? h("span", { class: "subinfo" }, this.subinfo) : ""),
|
|
122
|
+
this.chartData.isBar ? renderLegend.call(this) : "",
|
|
123
|
+
this.total > 0 && this.chartData.isBar
|
|
124
|
+
? renderBar.call(this, this.currentChartType)
|
|
125
|
+
: renderDoughnut.call(this, this.currentChartType),
|
|
126
|
+
!this.chartData.isBar ? renderLegend.call(this) : "",
|
|
127
|
+
h("priv-chart-popover", { class: this.isTabbing ? "user-is-tabbing" : "" }),
|
|
128
|
+
this.currentChartType === "doughnut0" ? renderCompletionMessage.call(this) : "")));
|
|
129
|
+
}
|
|
130
|
+
static get is() { return "wm-chart"; }
|
|
131
|
+
static get encapsulation() { return "shadow"; }
|
|
132
|
+
static get originalStyleUrls() { return {
|
|
133
|
+
"$": ["wm-chart.scss"]
|
|
134
|
+
}; }
|
|
135
|
+
static get styleUrls() { return {
|
|
136
|
+
"$": ["wm-chart.css"]
|
|
137
|
+
}; }
|
|
138
|
+
static get properties() { return {
|
|
139
|
+
"chartType": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "\"doughnut1\" | \"doughnut2\" | \"doughnut3\" | \"hybrid\" | \"bar1\" | \"bar2\" | \"bar3\" | \"bar4\" | \"bar5\"",
|
|
144
|
+
"resolved": "\"bar1\" | \"bar2\" | \"bar3\" | \"bar4\" | \"bar5\" | \"doughnut1\" | \"doughnut2\" | \"doughnut3\" | \"hybrid\"",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"attribute": "chart-type",
|
|
154
|
+
"reflect": false,
|
|
155
|
+
"defaultValue": "\"doughnut1\""
|
|
156
|
+
},
|
|
157
|
+
"label": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "string",
|
|
162
|
+
"resolved": "string | undefined",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": true,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"attribute": "label",
|
|
172
|
+
"reflect": false
|
|
173
|
+
},
|
|
174
|
+
"subinfo": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "string",
|
|
179
|
+
"resolved": "string | undefined",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": true,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"attribute": "subinfo",
|
|
189
|
+
"reflect": false
|
|
190
|
+
},
|
|
191
|
+
"completionMessage": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string | undefined",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": true,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": ""
|
|
204
|
+
},
|
|
205
|
+
"attribute": "completion-message",
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
208
|
+
"valueFormat": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "\"percentage\" | \"amount\"",
|
|
213
|
+
"resolved": "\"amount\" | \"percentage\" | undefined",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": true,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"attribute": "value-format",
|
|
223
|
+
"reflect": false
|
|
224
|
+
},
|
|
225
|
+
"showValues": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "\"percentage\" | \"amount\"",
|
|
230
|
+
"resolved": "\"amount\" | \"percentage\" | undefined",
|
|
231
|
+
"references": {}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": true,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": ""
|
|
238
|
+
},
|
|
239
|
+
"attribute": "show-values",
|
|
240
|
+
"reflect": false
|
|
241
|
+
},
|
|
242
|
+
"showLegend": {
|
|
243
|
+
"type": "boolean",
|
|
244
|
+
"mutable": false,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "boolean",
|
|
247
|
+
"resolved": "boolean",
|
|
248
|
+
"references": {}
|
|
249
|
+
},
|
|
250
|
+
"required": false,
|
|
251
|
+
"optional": false,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": ""
|
|
255
|
+
},
|
|
256
|
+
"attribute": "show-legend",
|
|
257
|
+
"reflect": false,
|
|
258
|
+
"defaultValue": "true"
|
|
259
|
+
},
|
|
260
|
+
"notStartedColor": {
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "boolean",
|
|
265
|
+
"resolved": "boolean",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": false,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": ""
|
|
273
|
+
},
|
|
274
|
+
"attribute": "not-started-color",
|
|
275
|
+
"reflect": false,
|
|
276
|
+
"defaultValue": "false"
|
|
277
|
+
},
|
|
278
|
+
"labelPosition": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "\"left\" | \"top\"",
|
|
283
|
+
"resolved": "\"left\" | \"top\"",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": false,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": ""
|
|
291
|
+
},
|
|
292
|
+
"attribute": "label-position",
|
|
293
|
+
"reflect": false,
|
|
294
|
+
"defaultValue": "\"top\""
|
|
295
|
+
}
|
|
296
|
+
}; }
|
|
297
|
+
static get states() { return {
|
|
298
|
+
"isTabbing": {}
|
|
299
|
+
}; }
|
|
300
|
+
static get elementRef() { return "el"; }
|
|
301
|
+
static get listeners() { return [{
|
|
302
|
+
"name": "wmUserIsTabbing",
|
|
303
|
+
"method": "toggleTabbingOn",
|
|
304
|
+
"target": "window",
|
|
305
|
+
"capture": false,
|
|
306
|
+
"passive": false
|
|
307
|
+
}, {
|
|
308
|
+
"name": "wmUserIsNotTabbing",
|
|
309
|
+
"method": "toggleTabbingOff",
|
|
310
|
+
"target": "window",
|
|
311
|
+
"capture": false,
|
|
312
|
+
"passive": false
|
|
313
|
+
}, {
|
|
314
|
+
"name": "keydown",
|
|
315
|
+
"method": "handleKeydown",
|
|
316
|
+
"target": undefined,
|
|
317
|
+
"capture": false,
|
|
318
|
+
"passive": false
|
|
319
|
+
}, {
|
|
320
|
+
"name": "resize",
|
|
321
|
+
"method": "handleResize",
|
|
322
|
+
"target": "window",
|
|
323
|
+
"capture": false,
|
|
324
|
+
"passive": true
|
|
325
|
+
}, {
|
|
326
|
+
"name": "wmChartSliceUpdated",
|
|
327
|
+
"method": "handleSliceUpdate",
|
|
328
|
+
"target": undefined,
|
|
329
|
+
"capture": false,
|
|
330
|
+
"passive": false
|
|
331
|
+
}]; }
|
|
332
|
+
}
|