@watermarkinsights/ripple 0.0.0 → 3.0.1-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{esm/app-globals-18876ad3.js → ripple/app-globals-b5693c90.js} +1 -1
- package/dist/{componentlibrary → ripple}/css-shim-bbdf0cc6.js +0 -0
- package/dist/{componentlibrary → ripple}/dom-1f98a75f.js +0 -0
- package/dist/{componentlibrary → ripple}/functions-316c1b23.js +0 -0
- package/dist/{componentlibrary → ripple}/http-service-5d037e16.js +0 -0
- package/dist/{esm/index-d5997567.js → ripple/index-20b65f86.js} +3 -3
- package/dist/ripple/index.esm.js +1 -0
- package/dist/{componentlibrary → ripple}/interfaces-50753346.js +0 -0
- package/dist/{componentlibrary → ripple}/priv-chart-popover.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/priv-datepicker.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/priv-navigator-button.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/priv-navigator-item.entry.js +1 -1
- package/dist/{componentlibrary/componentlibrary.css → ripple/ripple.css} +0 -0
- package/dist/ripple/ripple.esm.js +125 -0
- package/dist/{componentlibrary → ripple}/shadow-css-67b66845.js +0 -0
- package/dist/{esm → ripple}/wm-action-menu.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-button.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-chart-slice.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-chart.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-datepicker.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-input.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-menuitem.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-modal-footer.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-modal-header.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-modal.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-navigator.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-network-uploader.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-option.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-pagination.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-search.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-select.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-snackbar.entry.js +1 -1
- package/dist/{esm → ripple}/wm-tab-item.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-tab-list.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-tab-panel.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-tag-input.entry.js +31 -6
- package/dist/{componentlibrary → ripple}/wm-timepicker.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-toggletip.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-uploader.entry.js +1 -1
- package/dist/{componentlibrary → ripple}/wm-wrapper.entry.js +1 -1
- package/dist/types/components/wm-tag-input/{wm-tag-input.d.ts → wm-tag-input.d.ts~ds312_tagInputMaxTags} +4 -0
- package/dist/types/{components.d.ts → components.d.ts~ds312_tagInputMaxTags} +2 -0
- package/dist/types/{stencil-public-runtime.d.ts → stencil-public-runtime.d.ts~ds312_tagInputMaxTags} +0 -0
- package/package.json +3 -3
- package/dist/cjs/app-globals-6b0c6e80.js +0 -110
- package/dist/cjs/app-globals-f1dd8fda.js +0 -47
- package/dist/cjs/componentlibrary.cjs.js +0 -20
- package/dist/cjs/css-shim-a7379e2b.js +0 -6
- package/dist/cjs/dom-3e7d9c3b.js +0 -75
- package/dist/cjs/functions-65513c61.js +0 -8360
- package/dist/cjs/functions-f2333f02.js +0 -6129
- package/dist/cjs/global-6849642d.js +0 -38
- package/dist/cjs/http-service-494d81de.js +0 -57
- package/dist/cjs/http-service-9e8c4dd5.js +0 -57
- package/dist/cjs/index-298ebef1.js +0 -2976
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-a3338581.js +0 -35
- package/dist/cjs/interfaces-b2beb752.js +0 -54
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -89
- package/dist/cjs/priv-datepicker.cjs.entry.js +0 -672
- package/dist/cjs/priv-navigator-button.cjs.entry.js +0 -29
- package/dist/cjs/priv-navigator-item.cjs.entry.js +0 -34
- package/dist/cjs/shadow-css-09555044.js +0 -391
- package/dist/cjs/wm-action-menu.cjs.entry.js +0 -206
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -318
- package/dist/cjs/wm-button.cjs.entry.js +0 -152
- package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -22
- package/dist/cjs/wm-chart.cjs.entry.js +0 -508
- package/dist/cjs/wm-datepicker.cjs.entry.js +0 -262
- package/dist/cjs/wm-input.cjs.entry.js +0 -110
- package/dist/cjs/wm-menuitem.cjs.entry.js +0 -118
- package/dist/cjs/wm-modal-footer.cjs.entry.js +0 -43
- package/dist/cjs/wm-modal-header.cjs.entry.js +0 -45
- package/dist/cjs/wm-modal.cjs.entry.js +0 -149
- package/dist/cjs/wm-navigator.cjs.entry.js +0 -279
- package/dist/cjs/wm-network-uploader.cjs.entry.js +0 -431
- package/dist/cjs/wm-option.cjs.entry.js +0 -123
- package/dist/cjs/wm-option_2.cjs.entry.js +0 -483
- package/dist/cjs/wm-pagination.cjs.entry.js +0 -176
- package/dist/cjs/wm-search.cjs.entry.js +0 -231
- package/dist/cjs/wm-select.cjs.entry.js +0 -366
- package/dist/cjs/wm-snackbar.cjs.entry.js +0 -160
- package/dist/cjs/wm-tab-item.cjs.entry.js +0 -82
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -316
- package/dist/cjs/wm-tab-list.cjs.entry.js +0 -205
- package/dist/cjs/wm-tab-panel.cjs.entry.js +0 -42
- package/dist/cjs/wm-tag-input.cjs.entry.js +0 -513
- package/dist/cjs/wm-timepicker.cjs.entry.js +0 -386
- package/dist/cjs/wm-toggletip.cjs.entry.js +0 -128
- package/dist/cjs/wm-uploader.cjs.entry.js +0 -342
- package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
- package/dist/collection/collection-manifest.json +0 -131
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -122
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -392
- package/dist/collection/components/wm-button/wm-button.css +0 -572
- package/dist/collection/components/wm-button/wm-button.js +0 -365
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +0 -132
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +0 -232
- package/dist/collection/components/wm-chart/wm-chart-slice.js +0 -64
- package/dist/collection/components/wm-chart/wm-chart.css +0 -337
- package/dist/collection/components/wm-chart/wm-chart.js +0 -710
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +0 -365
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +0 -1003
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +0 -211
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +0 -445
- package/dist/collection/components/wm-input/wm-input.css +0 -220
- package/dist/collection/components/wm-input/wm-input.js +0 -302
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -118
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -411
- package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -84
- package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -159
- package/dist/collection/components/wm-modal/wm-modal-header.css +0 -78
- package/dist/collection/components/wm-modal/wm-modal-header.js +0 -109
- package/dist/collection/components/wm-modal/wm-modal.css +0 -155
- package/dist/collection/components/wm-modal/wm-modal.js +0 -356
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -94
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -97
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -67
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -114
- package/dist/collection/components/wm-navigator/wm-navigator.css +0 -137
- package/dist/collection/components/wm-navigator/wm-navigator.js +0 -468
- package/dist/collection/components/wm-option/wm-option.css +0 -162
- package/dist/collection/components/wm-option/wm-option.js +0 -394
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -217
- package/dist/collection/components/wm-pagination/wm-pagination.js +0 -348
- package/dist/collection/components/wm-search/wm-search.css +0 -155
- package/dist/collection/components/wm-search/wm-search.js +0 -439
- package/dist/collection/components/wm-select/wm-select.css +0 -315
- package/dist/collection/components/wm-select/wm-select.js +0 -676
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -331
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -240
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -104
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -202
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -73
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -315
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -57
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -104
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -408
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -707
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -370
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -567
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -350
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -217
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +0 -642
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +0 -753
- package/dist/collection/components/wm-uploader/wm-uploader.css +0 -666
- package/dist/collection/components/wm-uploader/wm-uploader.js +0 -673
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -27
- package/dist/collection/dev/scripts.js +0 -20
- package/dist/collection/global/__mocks__/functions.js +0 -5
- package/dist/collection/global/functions.js +0 -420
- package/dist/collection/global/global.js +0 -39
- package/dist/collection/global/interfaces.js +0 -49
- package/dist/collection/global/services/__mocks__/http-service.js +0 -130
- package/dist/collection/global/services/http-service.js +0 -50
- package/dist/collection/lang/lang.js +0 -5
- package/dist/collection/lang/piglatin.js +0 -93
- package/dist/componentlibrary/app-globals-18876ad3.js +0 -45
- package/dist/componentlibrary/app-globals-307a1083.js +0 -108
- package/dist/componentlibrary/componentlibrary.esm.js +0 -1
- package/dist/componentlibrary/index-d5997567.js +0 -2938
- package/dist/componentlibrary/index.esm.js +0 -0
- package/dist/componentlibrary/p-01bdfed8.js +0 -16
- package/dist/componentlibrary/p-0ca70ed4.entry.js +0 -1
- package/dist/componentlibrary/p-126bde92.entry.js +0 -1
- package/dist/componentlibrary/p-12a67d93.entry.js +0 -1
- package/dist/componentlibrary/p-188deaf5.entry.js +0 -1
- package/dist/componentlibrary/p-2514df6f.entry.js +0 -1
- package/dist/componentlibrary/p-269b8a5f.entry.js +0 -1
- package/dist/componentlibrary/p-35e57079.entry.js +0 -1
- package/dist/componentlibrary/p-414e20f7.entry.js +0 -1
- package/dist/componentlibrary/p-43f1298b.js +0 -1
- package/dist/componentlibrary/p-4d387ec6.entry.js +0 -1
- package/dist/componentlibrary/p-59ba81d6.entry.js +0 -1
- package/dist/componentlibrary/p-5e3cbec8.entry.js +0 -1
- package/dist/componentlibrary/p-5e81e830.entry.js +0 -1
- package/dist/componentlibrary/p-64ff5040.js +0 -1
- package/dist/componentlibrary/p-68a871d3.entry.js +0 -1
- package/dist/componentlibrary/p-996a7395.entry.js +0 -1
- package/dist/componentlibrary/p-9b460452.entry.js +0 -1
- package/dist/componentlibrary/p-a416e410.entry.js +0 -1
- package/dist/componentlibrary/p-d550a94f.entry.js +0 -1
- package/dist/componentlibrary/p-e4735c23.entry.js +0 -1
- package/dist/componentlibrary/p-e725f388.entry.js +0 -1
- package/dist/componentlibrary/p-e9532ae5.entry.js +0 -1
- package/dist/componentlibrary/p-edf6f848.entry.js +0 -1
- package/dist/componentlibrary/p-fd8070fb.js +0 -1
- package/dist/componentlibrary/wm-action-menu.entry.js +0 -202
- package/dist/componentlibrary/wm-tab-item.entry.js +0 -78
- package/dist/esm/app-globals-307a1083.js +0 -108
- package/dist/esm/componentlibrary.js +0 -18
- package/dist/esm/css-shim-bbdf0cc6.js +0 -4
- package/dist/esm/dom-1f98a75f.js +0 -73
- package/dist/esm/functions-316c1b23.js +0 -8340
- package/dist/esm/functions-60034bf7.js +0 -6109
- package/dist/esm/global-430cb201.js +0 -36
- package/dist/esm/http-service-3dc3b3e7.js +0 -52
- package/dist/esm/http-service-5d037e16.js +0 -52
- package/dist/esm/index.js +0 -1
- package/dist/esm/interfaces-2b97fab2.js +0 -32
- package/dist/esm/interfaces-50753346.js +0 -51
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/priv-chart-popover.entry.js +0 -85
- package/dist/esm/priv-datepicker.entry.js +0 -668
- package/dist/esm/priv-navigator-button.entry.js +0 -25
- package/dist/esm/priv-navigator-item.entry.js +0 -30
- package/dist/esm/shadow-css-67b66845.js +0 -389
- package/dist/esm/wm-action-menu_2.entry.js +0 -313
- package/dist/esm/wm-button.entry.js +0 -148
- package/dist/esm/wm-chart-slice.entry.js +0 -18
- package/dist/esm/wm-chart.entry.js +0 -504
- package/dist/esm/wm-datepicker.entry.js +0 -258
- package/dist/esm/wm-input.entry.js +0 -106
- package/dist/esm/wm-menuitem.entry.js +0 -114
- package/dist/esm/wm-modal-footer.entry.js +0 -39
- package/dist/esm/wm-modal-header.entry.js +0 -41
- package/dist/esm/wm-modal.entry.js +0 -145
- package/dist/esm/wm-navigator.entry.js +0 -275
- package/dist/esm/wm-network-uploader.entry.js +0 -427
- package/dist/esm/wm-option.entry.js +0 -119
- package/dist/esm/wm-option_2.entry.js +0 -478
- package/dist/esm/wm-pagination.entry.js +0 -172
- package/dist/esm/wm-search.entry.js +0 -227
- package/dist/esm/wm-select.entry.js +0 -362
- package/dist/esm/wm-snackbar.entry.js +0 -156
- package/dist/esm/wm-tab-item_3.entry.js +0 -310
- package/dist/esm/wm-tab-list.entry.js +0 -201
- package/dist/esm/wm-tab-panel.entry.js +0 -38
- package/dist/esm/wm-tag-input.entry.js +0 -509
- package/dist/esm/wm-timepicker.entry.js +0 -382
- package/dist/esm/wm-toggletip.entry.js +0 -124
- package/dist/esm/wm-uploader.entry.js +0 -338
- package/dist/esm/wm-wrapper.entry.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -13
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +0 -43
- package/dist/types/components/wm-button/wm-button.d.ts +0 -36
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +0 -23
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +0 -8
- package/dist/types/components/wm-chart/wm-chart.d.ts +0 -77
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +0 -75
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +0 -39
- package/dist/types/components/wm-input/wm-input.d.ts +0 -30
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +0 -30
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +0 -15
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +0 -12
- package/dist/types/components/wm-modal/wm-modal.d.ts +0 -34
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +0 -10
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +0 -13
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +0 -61
- package/dist/types/components/wm-option/wm-option.d.ts +0 -28
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +0 -31
- package/dist/types/components/wm-search/wm-search.d.ts +0 -78
- package/dist/types/components/wm-select/wm-select.d.ts +0 -63
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +0 -32
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +0 -35
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +0 -50
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +0 -20
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +0 -59
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +0 -25
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +0 -85
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +0 -75
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +0 -7
- package/dist/types/global/__mocks__/functions.d.ts +0 -5
- package/dist/types/global/global.d.ts +0 -1
- package/dist/types/global/interfaces.d.ts +0 -33
- package/dist/types/global/services/__mocks__/http-service.d.ts +0 -6
- package/dist/types/global/services/http-service.d.ts +0 -4
- package/dist/types/lang/lang.d.ts +0 -5
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { h, Component, Prop, Host, Element, Watch, Listen, Event } from "@stencil/core";
|
|
2
|
-
import { intl } from "../../../global/functions";
|
|
3
|
-
export class ChartPopover {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.open = false;
|
|
6
|
-
this.coords = {};
|
|
7
|
-
this.popoverWidth = 168;
|
|
8
|
-
this.popoverClicked = false;
|
|
9
|
-
}
|
|
10
|
-
handleClickOnDocument() {
|
|
11
|
-
// because this listener is set document-wide, whenever something inside it is clicked
|
|
12
|
-
// the event target returned will always be the host (wm-chart)
|
|
13
|
-
// the element within wm-chart is determined by the other listener and saved as var popoverClicked for use here
|
|
14
|
-
// capture = false in @Listen ensures order of execution
|
|
15
|
-
this.open = this.popoverClicked;
|
|
16
|
-
this.popoverClicked = false;
|
|
17
|
-
}
|
|
18
|
-
handleClick(ev) {
|
|
19
|
-
let popoverBtnClicked = false;
|
|
20
|
-
if (this.btnEl) {
|
|
21
|
-
popoverBtnClicked = ev.target === this.btnEl || this.btnEl.contains(ev.target);
|
|
22
|
-
}
|
|
23
|
-
// if the click is on the popover (except the popover button),
|
|
24
|
-
// set popoverClicked to true. It will be used by the other listener above
|
|
25
|
-
this.popoverClicked = !popoverBtnClicked && (ev.target === this.el || this.el.contains(ev.target));
|
|
26
|
-
}
|
|
27
|
-
renderLiveRegion() {
|
|
28
|
-
if (this.liveRegion) {
|
|
29
|
-
this.liveRegion.innerHTML = "";
|
|
30
|
-
const wrapper = document.createElement("div");
|
|
31
|
-
const titleEl = document.createElement("span");
|
|
32
|
-
titleEl.innerHTML = this.popoverTitle + " " || "";
|
|
33
|
-
wrapper.appendChild(titleEl);
|
|
34
|
-
const textEl = document.createElement("span");
|
|
35
|
-
textEl.innerHTML = this.popoverText + " " || "";
|
|
36
|
-
wrapper.appendChild(textEl);
|
|
37
|
-
if (this.buttonText) {
|
|
38
|
-
const buttonEl = document.createElement("span");
|
|
39
|
-
buttonEl.innerHTML =
|
|
40
|
-
this.buttonText +
|
|
41
|
-
" " +
|
|
42
|
-
intl.formatMessage({
|
|
43
|
-
id: "chart.infoButton",
|
|
44
|
-
defaultMessage: "Button. Click for more information.",
|
|
45
|
-
});
|
|
46
|
-
wrapper.appendChild(buttonEl);
|
|
47
|
-
}
|
|
48
|
-
this.liveRegion.appendChild(wrapper);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
positionPopover() {
|
|
52
|
-
this.el.style.top = this.coords.y + "px";
|
|
53
|
-
if (window.innerWidth - this.coords.x >= this.popoverWidth + 10) {
|
|
54
|
-
this.el.style.left = this.coords.x + "px"; // opens on the right
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.el.style.left = this.coords.x - this.popoverWidth + "px"; // opens on the left
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
render() {
|
|
61
|
-
return (h(Host, null,
|
|
62
|
-
!!this.open ? (h("div", { "aria-hidden": "true", class: "popover" },
|
|
63
|
-
h("h1", { class: "title" }, this.popoverTitle),
|
|
64
|
-
h("p", { class: "text" }, this.popoverText),
|
|
65
|
-
this.buttonText ? (
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
h("button", { tabindex: "-1",
|
|
68
|
-
// @ts-ignore
|
|
69
|
-
focusable: "false", ref: (el) => (this.btnEl = el), class: "popover-button", onClick: () => {
|
|
70
|
-
if (this.sliceRef) {
|
|
71
|
-
this.sliceRef.click();
|
|
72
|
-
this.wmChartPopoverButtonTriggered.emit(this.sliceRef);
|
|
73
|
-
}
|
|
74
|
-
this.open = false;
|
|
75
|
-
} },
|
|
76
|
-
h("svg", { class: "btn-icon", height: "9", width: "9" },
|
|
77
|
-
h("path", { fill: "#575195", d: "M0 3.38v2.25h9V3.38H0zM0 0v2.25h4.5V0H0zm6.19 6.75H0V9h6.19V6.75z" })),
|
|
78
|
-
h("span", { class: "button-text" }, this.buttonText))) : (""))) : (""),
|
|
79
|
-
h("div", { ref: (el) => (this.liveRegion = el), class: "live-region sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.open && this.renderLiveRegion())));
|
|
80
|
-
}
|
|
81
|
-
static get is() { return "priv-chart-popover"; }
|
|
82
|
-
static get originalStyleUrls() { return {
|
|
83
|
-
"$": ["priv-chart-popover.scss"]
|
|
84
|
-
}; }
|
|
85
|
-
static get styleUrls() { return {
|
|
86
|
-
"$": ["priv-chart-popover.css"]
|
|
87
|
-
}; }
|
|
88
|
-
static get properties() { return {
|
|
89
|
-
"sliceRef": {
|
|
90
|
-
"type": "unknown",
|
|
91
|
-
"mutable": false,
|
|
92
|
-
"complexType": {
|
|
93
|
-
"original": "HTMLWmChartSliceElement",
|
|
94
|
-
"resolved": "HTMLWmChartSliceElement | undefined",
|
|
95
|
-
"references": {
|
|
96
|
-
"HTMLWmChartSliceElement": {
|
|
97
|
-
"location": "global"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"required": false,
|
|
102
|
-
"optional": true,
|
|
103
|
-
"docs": {
|
|
104
|
-
"tags": [],
|
|
105
|
-
"text": ""
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"popoverTitle": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"mutable": false,
|
|
111
|
-
"complexType": {
|
|
112
|
-
"original": "string",
|
|
113
|
-
"resolved": "string | undefined",
|
|
114
|
-
"references": {}
|
|
115
|
-
},
|
|
116
|
-
"required": false,
|
|
117
|
-
"optional": true,
|
|
118
|
-
"docs": {
|
|
119
|
-
"tags": [],
|
|
120
|
-
"text": ""
|
|
121
|
-
},
|
|
122
|
-
"attribute": "popover-title",
|
|
123
|
-
"reflect": false
|
|
124
|
-
},
|
|
125
|
-
"popoverText": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"mutable": false,
|
|
128
|
-
"complexType": {
|
|
129
|
-
"original": "string",
|
|
130
|
-
"resolved": "string | undefined",
|
|
131
|
-
"references": {}
|
|
132
|
-
},
|
|
133
|
-
"required": false,
|
|
134
|
-
"optional": true,
|
|
135
|
-
"docs": {
|
|
136
|
-
"tags": [],
|
|
137
|
-
"text": ""
|
|
138
|
-
},
|
|
139
|
-
"attribute": "popover-text",
|
|
140
|
-
"reflect": false
|
|
141
|
-
},
|
|
142
|
-
"buttonText": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"mutable": false,
|
|
145
|
-
"complexType": {
|
|
146
|
-
"original": "string",
|
|
147
|
-
"resolved": "string | undefined",
|
|
148
|
-
"references": {}
|
|
149
|
-
},
|
|
150
|
-
"required": false,
|
|
151
|
-
"optional": true,
|
|
152
|
-
"docs": {
|
|
153
|
-
"tags": [],
|
|
154
|
-
"text": ""
|
|
155
|
-
},
|
|
156
|
-
"attribute": "button-text",
|
|
157
|
-
"reflect": false
|
|
158
|
-
},
|
|
159
|
-
"open": {
|
|
160
|
-
"type": "boolean",
|
|
161
|
-
"mutable": true,
|
|
162
|
-
"complexType": {
|
|
163
|
-
"original": "boolean",
|
|
164
|
-
"resolved": "boolean",
|
|
165
|
-
"references": {}
|
|
166
|
-
},
|
|
167
|
-
"required": false,
|
|
168
|
-
"optional": false,
|
|
169
|
-
"docs": {
|
|
170
|
-
"tags": [],
|
|
171
|
-
"text": ""
|
|
172
|
-
},
|
|
173
|
-
"attribute": "open",
|
|
174
|
-
"reflect": false,
|
|
175
|
-
"defaultValue": "false"
|
|
176
|
-
},
|
|
177
|
-
"coords": {
|
|
178
|
-
"type": "unknown",
|
|
179
|
-
"mutable": false,
|
|
180
|
-
"complexType": {
|
|
181
|
-
"original": "{ x?: number; y?: number }",
|
|
182
|
-
"resolved": "{ x?: number | undefined; y?: number | undefined; }",
|
|
183
|
-
"references": {}
|
|
184
|
-
},
|
|
185
|
-
"required": false,
|
|
186
|
-
"optional": false,
|
|
187
|
-
"docs": {
|
|
188
|
-
"tags": [],
|
|
189
|
-
"text": ""
|
|
190
|
-
},
|
|
191
|
-
"defaultValue": "{}"
|
|
192
|
-
}
|
|
193
|
-
}; }
|
|
194
|
-
static get events() { return [{
|
|
195
|
-
"method": "wmChartPopoverButtonTriggered",
|
|
196
|
-
"name": "wmChartPopoverButtonTriggered",
|
|
197
|
-
"bubbles": true,
|
|
198
|
-
"cancelable": true,
|
|
199
|
-
"composed": true,
|
|
200
|
-
"docs": {
|
|
201
|
-
"tags": [],
|
|
202
|
-
"text": ""
|
|
203
|
-
},
|
|
204
|
-
"complexType": {
|
|
205
|
-
"original": "HTMLWmChartSliceElement",
|
|
206
|
-
"resolved": "HTMLWmChartSliceElement",
|
|
207
|
-
"references": {
|
|
208
|
-
"HTMLWmChartSliceElement": {
|
|
209
|
-
"location": "global"
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}]; }
|
|
214
|
-
static get elementRef() { return "el"; }
|
|
215
|
-
static get watchers() { return [{
|
|
216
|
-
"propName": "coords",
|
|
217
|
-
"methodName": "positionPopover"
|
|
218
|
-
}]; }
|
|
219
|
-
static get listeners() { return [{
|
|
220
|
-
"name": "click",
|
|
221
|
-
"method": "handleClickOnDocument",
|
|
222
|
-
"target": "document",
|
|
223
|
-
"capture": false,
|
|
224
|
-
"passive": false
|
|
225
|
-
}, {
|
|
226
|
-
"name": "click",
|
|
227
|
-
"method": "handleClick",
|
|
228
|
-
"target": undefined,
|
|
229
|
-
"capture": false,
|
|
230
|
-
"passive": false
|
|
231
|
-
}]; }
|
|
232
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Component, Prop, Event } from "@stencil/core";
|
|
2
|
-
export class ChartSlice {
|
|
3
|
-
componentDidLoad() {
|
|
4
|
-
if (parseInt(this.amount) > 0 && !this.legend) {
|
|
5
|
-
throw new Error("wm-chart-slice was provided an amount value without a legend. The legend is required unless the amount is 0 or left empty. For more information see https://components.watermarkinsights.com/chart");
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
componentDidUpdate() {
|
|
9
|
-
this.wmChartSliceUpdated.emit();
|
|
10
|
-
}
|
|
11
|
-
static get is() { return "wm-chart-slice"; }
|
|
12
|
-
static get properties() { return {
|
|
13
|
-
"legend": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"mutable": false,
|
|
16
|
-
"complexType": {
|
|
17
|
-
"original": "string",
|
|
18
|
-
"resolved": "string | undefined",
|
|
19
|
-
"references": {}
|
|
20
|
-
},
|
|
21
|
-
"required": false,
|
|
22
|
-
"optional": true,
|
|
23
|
-
"docs": {
|
|
24
|
-
"tags": [],
|
|
25
|
-
"text": ""
|
|
26
|
-
},
|
|
27
|
-
"attribute": "legend",
|
|
28
|
-
"reflect": false
|
|
29
|
-
},
|
|
30
|
-
"amount": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"mutable": false,
|
|
33
|
-
"complexType": {
|
|
34
|
-
"original": "string",
|
|
35
|
-
"resolved": "string | undefined",
|
|
36
|
-
"references": {}
|
|
37
|
-
},
|
|
38
|
-
"required": false,
|
|
39
|
-
"optional": true,
|
|
40
|
-
"docs": {
|
|
41
|
-
"tags": [],
|
|
42
|
-
"text": ""
|
|
43
|
-
},
|
|
44
|
-
"attribute": "amount",
|
|
45
|
-
"reflect": false
|
|
46
|
-
}
|
|
47
|
-
}; }
|
|
48
|
-
static get events() { return [{
|
|
49
|
-
"method": "wmChartSliceUpdated",
|
|
50
|
-
"name": "wmChartSliceUpdated",
|
|
51
|
-
"bubbles": true,
|
|
52
|
-
"cancelable": true,
|
|
53
|
-
"composed": true,
|
|
54
|
-
"docs": {
|
|
55
|
-
"tags": [],
|
|
56
|
-
"text": ""
|
|
57
|
-
},
|
|
58
|
-
"complexType": {
|
|
59
|
-
"original": "void",
|
|
60
|
-
"resolved": "void",
|
|
61
|
-
"references": {}
|
|
62
|
-
}
|
|
63
|
-
}]; }
|
|
64
|
-
}
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------
|
|
2
|
-
1. Box-shadow
|
|
3
|
-
-------------------------------------- */
|
|
4
|
-
/* --------------------------------------
|
|
5
|
-
2. Border-radius
|
|
6
|
-
-------------------------------------- */
|
|
7
|
-
/* --------------------------------------
|
|
8
|
-
3. Transforms
|
|
9
|
-
-------------------------------------- */
|
|
10
|
-
/* --------------------------------------
|
|
11
|
-
4. Button Focus
|
|
12
|
-
-------------------------------------- */
|
|
13
|
-
/* --------------------------------------
|
|
14
|
-
5. Flex
|
|
15
|
-
-------------------------------------- */
|
|
16
|
-
/* --------------------------------------
|
|
17
|
-
6. Button Hover
|
|
18
|
-
-------------------------------------- */
|
|
19
|
-
/* --------------------------------------
|
|
20
|
-
7. Screen Reader Only
|
|
21
|
-
-------------------------------------- */
|
|
22
|
-
/* --------------------------------------
|
|
23
|
-
8. Label styles
|
|
24
|
-
this mixin includes all the styles for the label
|
|
25
|
-
+ flex rules on the parent container to switch between top and left position
|
|
26
|
-
+ srOnly when label is hidden
|
|
27
|
-
Assumes the following markup:
|
|
28
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
29
|
-
.wrapper is for the flex rules
|
|
30
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
31
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
32
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
33
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
34
|
-
-------------------------------------- */
|
|
35
|
-
/********************************************************************************************/
|
|
36
|
-
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
37
|
-
/********************************************************************************************/
|
|
38
|
-
/* USAGE */
|
|
39
|
-
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
40
|
-
/* TODO: replace with vars above whenever possible */
|
|
41
|
-
/* Buttons */
|
|
42
|
-
/* VIA */
|
|
43
|
-
.component-wrapper {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
align-items: center;
|
|
47
|
-
font-size: 0.875rem;
|
|
48
|
-
position: relative;
|
|
49
|
-
/* TYPE-SPECIFIC STUFF */
|
|
50
|
-
}
|
|
51
|
-
.component-wrapper .label {
|
|
52
|
-
display: block;
|
|
53
|
-
margin: 0;
|
|
54
|
-
padding-bottom: 0.25rem;
|
|
55
|
-
font-weight: 500;
|
|
56
|
-
position: relative;
|
|
57
|
-
}
|
|
58
|
-
.component-wrapper .label .subinfo {
|
|
59
|
-
display: block;
|
|
60
|
-
font-weight: normal;
|
|
61
|
-
font-style: italic;
|
|
62
|
-
bottom: 0.25rem;
|
|
63
|
-
width: 100%;
|
|
64
|
-
color: #6b6b6b;
|
|
65
|
-
}
|
|
66
|
-
.component-wrapper .legend-wrapper {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
align-items: center;
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
.component-wrapper .legend-wrapper .legend {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
flex-wrap: wrap;
|
|
77
|
-
text-align: center;
|
|
78
|
-
padding-top: 0.25rem;
|
|
79
|
-
padding-bottom: 0.75rem;
|
|
80
|
-
box-sizing: border-box;
|
|
81
|
-
}
|
|
82
|
-
.component-wrapper .legend-wrapper .legend.--top {
|
|
83
|
-
margin-top: -0.75rem;
|
|
84
|
-
}
|
|
85
|
-
.component-wrapper .legend-wrapper .legend.--top .legend-item {
|
|
86
|
-
padding-top: 0.75rem;
|
|
87
|
-
}
|
|
88
|
-
.component-wrapper .legend-wrapper .legend.--top .legend-color {
|
|
89
|
-
top: 0.75rem;
|
|
90
|
-
}
|
|
91
|
-
.component-wrapper .legend-wrapper .legend.--bottom {
|
|
92
|
-
margin-bottom: -0.75rem;
|
|
93
|
-
}
|
|
94
|
-
.component-wrapper .legend-wrapper .legend.--bottom .legend-item {
|
|
95
|
-
padding-bottom: 0.75rem;
|
|
96
|
-
}
|
|
97
|
-
.component-wrapper .legend-wrapper .legend.--bottom .legend-color {
|
|
98
|
-
top: -0.75rem;
|
|
99
|
-
}
|
|
100
|
-
.component-wrapper .legend-wrapper .legend .legend-item {
|
|
101
|
-
position: relative;
|
|
102
|
-
}
|
|
103
|
-
.component-wrapper .legend-wrapper .legend .legend-item:not(:last-of-type) {
|
|
104
|
-
padding-right: 1.25rem;
|
|
105
|
-
}
|
|
106
|
-
.component-wrapper .legend-wrapper .legend .legend-text {
|
|
107
|
-
padding-left: 1rem;
|
|
108
|
-
line-height: 1;
|
|
109
|
-
}
|
|
110
|
-
.component-wrapper .legend-wrapper .legend .legend-color {
|
|
111
|
-
position: absolute;
|
|
112
|
-
left: 0;
|
|
113
|
-
bottom: 0;
|
|
114
|
-
margin: auto;
|
|
115
|
-
width: 0.6875rem;
|
|
116
|
-
height: 0.6875rem;
|
|
117
|
-
}
|
|
118
|
-
.component-wrapper .legend-wrapper .cluster-warning {
|
|
119
|
-
font-size: 0.75rem;
|
|
120
|
-
font-style: italic;
|
|
121
|
-
max-width: 100%;
|
|
122
|
-
}
|
|
123
|
-
.component-wrapper .chart-svg {
|
|
124
|
-
overflow: visible;
|
|
125
|
-
}
|
|
126
|
-
.component-wrapper .chart-svg:active, .component-wrapper .chart-svg:hover, .component-wrapper .chart-svg:focus {
|
|
127
|
-
outline: none;
|
|
128
|
-
-webkit-box-shadow: none;
|
|
129
|
-
-moz-box-shadow: none;
|
|
130
|
-
box-shadow: none;
|
|
131
|
-
}
|
|
132
|
-
.component-wrapper .chart-svg::-moz-focus-inner {
|
|
133
|
-
border: 0;
|
|
134
|
-
outline: none;
|
|
135
|
-
}
|
|
136
|
-
.component-wrapper .chart-svg path:active, .component-wrapper .chart-svg path:hover, .component-wrapper .chart-svg path:focus, .component-wrapper .chart-svg rect:active, .component-wrapper .chart-svg rect:hover, .component-wrapper .chart-svg rect:focus {
|
|
137
|
-
outline: none;
|
|
138
|
-
-webkit-box-shadow: none;
|
|
139
|
-
-moz-box-shadow: none;
|
|
140
|
-
box-shadow: none;
|
|
141
|
-
filter: url(#wmHoverDropShadow);
|
|
142
|
-
}
|
|
143
|
-
.component-wrapper .chart-svg path::-moz-focus-inner, .component-wrapper .chart-svg rect::-moz-focus-inner {
|
|
144
|
-
border: 0;
|
|
145
|
-
outline: none;
|
|
146
|
-
}
|
|
147
|
-
.component-wrapper .bar-wrapper {
|
|
148
|
-
flex-grow: 1;
|
|
149
|
-
width: 100%;
|
|
150
|
-
}
|
|
151
|
-
.component-wrapper .bar-wrapper rect {
|
|
152
|
-
height: 30px;
|
|
153
|
-
}
|
|
154
|
-
.component-wrapper .doughnut-wrapper .chart-svg {
|
|
155
|
-
-webkit-border-radius: 4px;
|
|
156
|
-
-moz-border-radius: 4px;
|
|
157
|
-
-ms-border-radius: 4px;
|
|
158
|
-
border-radius: 4px;
|
|
159
|
-
}
|
|
160
|
-
.component-wrapper.doughnut1 label,
|
|
161
|
-
.component-wrapper.doughnut1 .label-text, .component-wrapper.doughnut2 label,
|
|
162
|
-
.component-wrapper.doughnut2 .label-text, .component-wrapper.doughnut3 label,
|
|
163
|
-
.component-wrapper.doughnut3 .label-text {
|
|
164
|
-
position: absolute !important;
|
|
165
|
-
width: 1px !important;
|
|
166
|
-
height: 1px !important;
|
|
167
|
-
padding: 0 !important;
|
|
168
|
-
border: 0 !important;
|
|
169
|
-
overflow: hidden !important;
|
|
170
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
171
|
-
clip-path: inset(50%) !important;
|
|
172
|
-
white-space: nowrap !important;
|
|
173
|
-
margin: -1px !important;
|
|
174
|
-
}
|
|
175
|
-
.component-wrapper.doughnut0 {
|
|
176
|
-
align-items: center;
|
|
177
|
-
}
|
|
178
|
-
.component-wrapper.doughnut0 label {
|
|
179
|
-
text-align: center;
|
|
180
|
-
width: 100%;
|
|
181
|
-
padding-bottom: 1.5rem;
|
|
182
|
-
}
|
|
183
|
-
.component-wrapper.doughnut0 label .subinfo {
|
|
184
|
-
position: absolute;
|
|
185
|
-
}
|
|
186
|
-
.component-wrapper.doughnut0 .legend {
|
|
187
|
-
display: flex;
|
|
188
|
-
}
|
|
189
|
-
.component-wrapper.doughnut0 .completion-message {
|
|
190
|
-
padding-top: 0.625rem;
|
|
191
|
-
}
|
|
192
|
-
.component-wrapper .bar-svg {
|
|
193
|
-
width: 100%;
|
|
194
|
-
}
|
|
195
|
-
.component-wrapper .bar-svg foreignObject {
|
|
196
|
-
width: 100%;
|
|
197
|
-
height: 30px;
|
|
198
|
-
overflow: visible;
|
|
199
|
-
}
|
|
200
|
-
.component-wrapper.bar1 {
|
|
201
|
-
padding: 1.25rem;
|
|
202
|
-
position: relative;
|
|
203
|
-
align-items: flex-start;
|
|
204
|
-
}
|
|
205
|
-
.component-wrapper.bar1 label {
|
|
206
|
-
display: flex;
|
|
207
|
-
flex-direction: column;
|
|
208
|
-
}
|
|
209
|
-
.component-wrapper.bar1 label .subinfo {
|
|
210
|
-
position: initial;
|
|
211
|
-
}
|
|
212
|
-
.component-wrapper.bar1 .legend {
|
|
213
|
-
display: none;
|
|
214
|
-
}
|
|
215
|
-
.component-wrapper.bar1 .completion-message {
|
|
216
|
-
position: absolute;
|
|
217
|
-
right: 1.25rem;
|
|
218
|
-
bottom: 0;
|
|
219
|
-
}
|
|
220
|
-
.component-wrapper.bar1 .bar-wrapper {
|
|
221
|
-
display: flex;
|
|
222
|
-
align-items: center;
|
|
223
|
-
}
|
|
224
|
-
.component-wrapper.bar1 .bar-wrapper .single-perc {
|
|
225
|
-
width: 4rem;
|
|
226
|
-
}
|
|
227
|
-
.component-wrapper.bar1 .bar-wrapper .chart-svg {
|
|
228
|
-
flex: 1;
|
|
229
|
-
height: 30px;
|
|
230
|
-
}
|
|
231
|
-
@media screen and (min-width: 768px) {
|
|
232
|
-
.component-wrapper.bar1 {
|
|
233
|
-
flex-direction: row;
|
|
234
|
-
align-items: center;
|
|
235
|
-
}
|
|
236
|
-
.component-wrapper.bar1 label {
|
|
237
|
-
width: 12rem;
|
|
238
|
-
text-align: left;
|
|
239
|
-
padding-right: 1.25rem;
|
|
240
|
-
padding-bottom: 0;
|
|
241
|
-
}
|
|
242
|
-
.component-wrapper.bar1 .completion-message {
|
|
243
|
-
right: 5.75rem;
|
|
244
|
-
}
|
|
245
|
-
.component-wrapper.bar1 .bar-wrapper {
|
|
246
|
-
flex-direction: row-reverse;
|
|
247
|
-
}
|
|
248
|
-
.component-wrapper.bar1 .bar-wrapper .single-perc {
|
|
249
|
-
text-align: center;
|
|
250
|
-
padding-left: 0.5rem;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
.component-wrapper.bar2, .component-wrapper.bar3, .component-wrapper.bar4, .component-wrapper.bar5 {
|
|
254
|
-
align-items: flex-start;
|
|
255
|
-
}
|
|
256
|
-
.component-wrapper.bar2 .legend, .component-wrapper.bar4 .legend, .component-wrapper.bar5 .legend {
|
|
257
|
-
padding-bottom: 0;
|
|
258
|
-
}
|
|
259
|
-
.component-wrapper.bar2 .chart-svg, .component-wrapper.bar4 .chart-svg, .component-wrapper.bar5 .chart-svg {
|
|
260
|
-
height: 30px;
|
|
261
|
-
margin-top: 20px;
|
|
262
|
-
margin-bottom: 0;
|
|
263
|
-
}
|
|
264
|
-
.component-wrapper.bar2 .chart-svg.show-values, .component-wrapper.bar4 .chart-svg.show-values, .component-wrapper.bar5 .chart-svg.show-values {
|
|
265
|
-
height: 60px;
|
|
266
|
-
margin-top: 0;
|
|
267
|
-
margin-bottom: 0;
|
|
268
|
-
}
|
|
269
|
-
.component-wrapper.bar2 .chart-svg .percs, .component-wrapper.bar4 .chart-svg .percs, .component-wrapper.bar5 .chart-svg .percs {
|
|
270
|
-
transform: translateY(24px);
|
|
271
|
-
text-anchor: middle;
|
|
272
|
-
}
|
|
273
|
-
.component-wrapper.bar3 .legend {
|
|
274
|
-
padding-bottom: 1.25rem;
|
|
275
|
-
}
|
|
276
|
-
.component-wrapper.bar3 .svg-wrapper {
|
|
277
|
-
position: relative;
|
|
278
|
-
height: 100px;
|
|
279
|
-
}
|
|
280
|
-
.component-wrapper.bar3 .svg-wrapper .chart-svg {
|
|
281
|
-
position: absolute;
|
|
282
|
-
top: 35px;
|
|
283
|
-
left: 0;
|
|
284
|
-
right: 0;
|
|
285
|
-
bottom: 0;
|
|
286
|
-
height: 30px;
|
|
287
|
-
}
|
|
288
|
-
.component-wrapper.bar3 .svg-wrapper .chart-svg text {
|
|
289
|
-
fill: #4a4a4a;
|
|
290
|
-
}
|
|
291
|
-
.component-wrapper.bar3 .svg-wrapper .chart-svg .percs {
|
|
292
|
-
transform: translateY(-4px);
|
|
293
|
-
text-anchor: middle;
|
|
294
|
-
}
|
|
295
|
-
.component-wrapper.bar3 .svg-wrapper .axis {
|
|
296
|
-
position: absolute;
|
|
297
|
-
top: 0;
|
|
298
|
-
left: 0;
|
|
299
|
-
height: 90px;
|
|
300
|
-
width: 100%;
|
|
301
|
-
overflow: visible;
|
|
302
|
-
transform: translateY(90px);
|
|
303
|
-
}
|
|
304
|
-
.component-wrapper.bar3 .svg-wrapper .axis line {
|
|
305
|
-
stroke: #eeedf4;
|
|
306
|
-
stroke-width: 1px;
|
|
307
|
-
}
|
|
308
|
-
.component-wrapper.bar3 .svg-wrapper .axis text {
|
|
309
|
-
transform: translate(4px, 24px);
|
|
310
|
-
text-anchor: middle;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/* KEYBOARD USERS */
|
|
314
|
-
:host(:focus) {
|
|
315
|
-
outline: none;
|
|
316
|
-
}
|
|
317
|
-
:host(:focus) .chart-svg.user-is-tabbing:not(.show-values) {
|
|
318
|
-
-webkit-box-shadow: 0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;
|
|
319
|
-
-moz-box-shadow: 0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;
|
|
320
|
-
box-shadow: 0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;
|
|
321
|
-
}
|
|
322
|
-
:host(:focus) .chart-svg.user-is-tabbing:not(.show-values)::-moz-focus-inner {
|
|
323
|
-
border: 0;
|
|
324
|
-
}
|
|
325
|
-
:host(:focus) .chart-svg.user-is-tabbing.show-values .tabbing-focus {
|
|
326
|
-
-webkit-box-shadow: 0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;
|
|
327
|
-
-moz-box-shadow: 0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;
|
|
328
|
-
box-shadow: 0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;
|
|
329
|
-
width: 100%;
|
|
330
|
-
height: 30px;
|
|
331
|
-
}
|
|
332
|
-
:host(:focus) .chart-svg.user-is-tabbing.show-values .tabbing-focus::-moz-focus-inner {
|
|
333
|
-
border: 0;
|
|
334
|
-
}
|
|
335
|
-
:host(:focus) .chart-svg.user-is-tabbing.show-values .focus-offset {
|
|
336
|
-
transform: translateY(30px);
|
|
337
|
-
}
|