@watermarkinsights/ripple 3.0.1-0 → 3.0.2-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ripple/functions-316c1b23.js → cjs/functions-e3f5ae65.js} +188 -2391
- package/dist/cjs/global-1e540de6.js +38 -0
- package/dist/cjs/http-service-9e8c4dd5.js +57 -0
- package/dist/cjs/index-d930307d.js +1392 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-30a74c1f.js +35 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +89 -0
- package/dist/cjs/priv-datepicker.cjs.entry.js +672 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +34 -0
- package/dist/cjs/ripple.cjs.js +20 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +318 -0
- package/dist/cjs/wm-button.cjs.entry.js +152 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +22 -0
- package/dist/cjs/wm-chart.cjs.entry.js +508 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +257 -0
- package/dist/cjs/wm-input.cjs.entry.js +110 -0
- package/dist/cjs/wm-modal-footer.cjs.entry.js +43 -0
- package/dist/cjs/wm-modal-header.cjs.entry.js +45 -0
- package/dist/cjs/wm-modal.cjs.entry.js +149 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +279 -0
- package/dist/cjs/wm-network-uploader.cjs.entry.js +431 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +483 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +176 -0
- package/dist/cjs/wm-search.cjs.entry.js +231 -0
- package/dist/cjs/wm-snackbar.cjs.entry.js +160 -0
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +316 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +538 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +386 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +128 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +342 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +131 -0
- package/dist/{ripple/ripple.css → collection/components/wm-action-menu/wm-action-menu.css} +80 -42
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +392 -0
- package/dist/collection/components/wm-button/wm-button.css +572 -0
- package/dist/collection/components/wm-button/wm-button.js +365 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +132 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -0
- package/dist/collection/components/wm-chart/wm-chart-slice.js +64 -0
- package/dist/collection/components/wm-chart/wm-chart.css +337 -0
- package/dist/collection/components/wm-chart/wm-chart.js +710 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +374 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1003 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +211 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +439 -0
- package/dist/collection/components/wm-input/wm-input.css +220 -0
- package/dist/collection/components/wm-input/wm-input.js +302 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +118 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +411 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +84 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +159 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +78 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +109 -0
- package/dist/collection/components/wm-modal/wm-modal.css +155 -0
- package/dist/collection/components/wm-modal/wm-modal.js +356 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +94 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +67 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +137 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -0
- package/dist/collection/components/wm-option/wm-option.css +162 -0
- package/dist/collection/components/wm-option/wm-option.js +394 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +217 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +348 -0
- package/dist/collection/components/wm-search/wm-search.css +155 -0
- package/dist/collection/components/wm-search/wm-search.js +439 -0
- package/dist/collection/components/wm-select/wm-select.css +315 -0
- package/dist/collection/components/wm-select/wm-select.js +676 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +331 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +240 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +104 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +202 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +73 -0
- package/dist/{ripple/wm-tab-list.entry.js → collection/components/wm-tabs/wm-tab-list/wm-tab-list.js} +131 -17
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +57 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +431 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +754 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +370 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +567 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +350 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +217 -0
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +642 -0
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +666 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +673 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -0
- package/dist/collection/dev/scripts.js +20 -0
- package/dist/collection/global/__mocks__/functions.js +5 -0
- package/dist/collection/global/functions.js +420 -0
- package/dist/{ripple/app-globals-b5693c90.js → collection/global/global.js} +3 -8
- package/dist/{ripple/interfaces-50753346.js → collection/global/interfaces.js} +4 -6
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/piglatin.js +93 -0
- package/dist/esm/functions-0deb7f8e.js +6117 -0
- package/dist/esm/global-d6b49e98.js +36 -0
- package/dist/{ripple → esm}/http-service-5d037e16.js +0 -0
- package/dist/esm/index-5a842e48.js +1363 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-61c6305b.js +32 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/{ripple → esm}/priv-chart-popover.entry.js +2 -2
- package/dist/{ripple → esm}/priv-datepicker.entry.js +3 -3
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +1 -1
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +18 -0
- package/dist/{ripple/wm-action-menu.entry.js → esm/wm-action-menu_2.entry.js} +114 -3
- package/dist/{ripple → esm}/wm-button.entry.js +3 -3
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +1 -1
- package/dist/{ripple → esm}/wm-chart.entry.js +2 -2
- package/dist/{ripple → esm}/wm-datepicker.entry.js +27 -32
- package/dist/{ripple → esm}/wm-input.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal-footer.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal-header.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal.entry.js +2 -2
- package/dist/{ripple → esm}/wm-navigator.entry.js +3 -3
- package/dist/{ripple → esm}/wm-network-uploader.entry.js +2 -2
- package/dist/{ripple/wm-select.entry.js → esm/wm-option_2.entry.js} +119 -3
- package/dist/{ripple → esm}/wm-pagination.entry.js +2 -2
- package/dist/{ripple → esm}/wm-search.entry.js +2 -2
- package/dist/{ripple → esm}/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +310 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +2 -2
- package/dist/{ripple → esm}/wm-timepicker.entry.js +2 -2
- package/dist/{ripple → esm}/wm-toggletip.entry.js +2 -2
- package/dist/{ripple → esm}/wm-uploader.entry.js +2 -2
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +13 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +10 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-103f8cae.entry.js +1 -0
- package/dist/ripple/p-129d94fa.entry.js +1 -0
- package/dist/ripple/p-139fe143.entry.js +1 -0
- package/dist/ripple/p-16367805.entry.js +1 -0
- package/dist/ripple/p-1d334060.entry.js +1 -0
- package/dist/ripple/p-2562f330.entry.js +1 -0
- package/dist/ripple/p-278b26ef.entry.js +1 -0
- package/dist/ripple/p-2c21bb72.entry.js +1 -0
- package/dist/ripple/p-2f5fda71.entry.js +1 -0
- package/dist/ripple/p-3e6f04d5.entry.js +1 -0
- package/dist/ripple/p-7185de7f.entry.js +1 -0
- package/dist/ripple/p-770d0798.entry.js +1 -0
- package/dist/ripple/p-846b4c5f.entry.js +1 -0
- package/dist/ripple/p-888bec42.js +1 -0
- package/dist/ripple/p-90779d53.entry.js +1 -0
- package/dist/ripple/p-934543f2.js +1 -0
- package/dist/ripple/p-9a087fee.entry.js +1 -0
- package/dist/ripple/p-a6d6eae7.js +1 -0
- package/dist/ripple/p-a942ad10.entry.js +1 -0
- package/dist/ripple/p-bfb4652d.entry.js +1 -0
- package/dist/ripple/p-c0fe5201.entry.js +1 -0
- package/dist/ripple/p-c2e27acc.entry.js +1 -0
- package/dist/ripple/p-c2edda64.entry.js +1 -0
- package/dist/ripple/p-d1fdcbcf.entry.js +1 -0
- package/dist/ripple/p-d40b6afb.entry.js +1 -0
- package/dist/ripple/p-da73db1c.entry.js +1 -0
- package/dist/ripple/p-e3843249.js +1 -0
- package/dist/ripple/p-ea5cd8b8.js +16 -0
- package/dist/ripple/p-ed0f43f4.entry.js +1 -0
- package/dist/ripple/p-ffafd363.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -125
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +43 -0
- package/dist/types/components/wm-button/wm-button.d.ts +36 -0
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -0
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +8 -0
- package/dist/types/components/wm-chart/wm-chart.d.ts +77 -0
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +75 -0
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +39 -0
- package/dist/types/components/wm-input/wm-input.d.ts +30 -0
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +34 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -0
- package/dist/types/components/wm-option/wm-option.d.ts +28 -0
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +31 -0
- package/dist/types/components/wm-search/wm-search.d.ts +78 -0
- package/dist/types/components/wm-select/wm-select.d.ts +63 -0
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +32 -0
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +35 -0
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +50 -0
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -0
- package/dist/types/components/wm-tag-input/{wm-tag-input.d.ts~ds312_tagInputMaxTags → wm-tag-input.d.ts} +1 -1
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +59 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +25 -0
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +75 -0
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -0
- package/dist/types/{components.d.ts~ds312_tagInputMaxTags → components.d.ts} +0 -0
- package/dist/types/global/__mocks__/functions.d.ts +5 -0
- package/dist/types/global/global.d.ts +1 -0
- package/dist/types/global/interfaces.d.ts +33 -0
- package/dist/types/global/services/__mocks__/http-service.d.ts +6 -0
- package/dist/types/global/services/http-service.d.ts +4 -0
- package/dist/types/lang/lang.d.ts +5 -0
- package/dist/types/{stencil-public-runtime.d.ts~ds312_tagInputMaxTags → stencil-public-runtime.d.ts} +190 -182
- package/package.json +1 -1
- package/dist/ripple/css-shim-bbdf0cc6.js +0 -4
- package/dist/ripple/dom-1f98a75f.js +0 -73
- package/dist/ripple/index-20b65f86.js +0 -2938
- package/dist/ripple/shadow-css-67b66845.js +0 -389
- package/dist/ripple/wm-menuitem.entry.js +0 -114
- package/dist/ripple/wm-option.entry.js +0 -119
- package/dist/ripple/wm-tab-item.entry.js +0 -78
- package/dist/ripple/wm-tab-panel.entry.js +0 -38
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,337 @@
|
|
|
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
|
+
}
|