@ironsource/shared-ui 2.2.0-rc.1 → 2.2.0-test.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/Alert.vue_vue_type_style_index_0_scoped_f18c2785_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c3062e84_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_9202b5db_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_bbfd249c_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
- package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
- package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_b3d96cf5_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +3 -13
- package/components/alert/Alert.vue.js +5 -5
- package/components/alert/Alert.vue2.js +48 -47
- package/components/alert/index.d.ts +8 -46
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +7 -7
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +4 -4
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +19 -16
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +33 -22
- package/components/chart/utils/utils.d.ts +5 -1
- package/components/chart/utils/utils.js +32 -22
- package/components/checkbox/v4/CheckboxV4.vue.js +2 -2
- package/components/checkbox/v4/CheckboxV4.vue2.js +59 -79
- package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
- package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
- package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -13
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +1 -1
- package/components/columnPicker/ColumnPicker.vue.js +2 -2
- package/components/columnPicker/ColumnPicker.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +2 -2
- package/components/dropdown/v4/GroupOption.vue.js +3 -3
- package/components/dropdown/v4/GroupOption.vue2.js +1 -1
- package/components/helpText/HelpText.vue.d.ts +68 -0
- package/components/helpText/HelpText.vue.js +7 -0
- package/components/helpText/HelpText.vue2.js +45 -0
- package/components/helpText/index.d.ts +190 -0
- package/components/helpText/index.js +6 -0
- package/components/input/v4/TextField.vue.js +2 -2
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/link/Link.vue.d.ts +3 -3
- package/components/link/Link.vue.js +5 -5
- package/components/link/Link.vue2.js +1 -1
- package/components/link/index.d.ts +7 -7
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +1 -1
- package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/design-foundation.stories/colors/ColorsData.d.ts +51 -47
- package/index.d.ts +1 -0
- package/index.js +95 -91
- package/package.json +7 -2
- package/style/v4/colors.scss +88 -83
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +38 -37
- package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_445ebb01_lang.css +0 -1
- package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +0 -1
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
- package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
- package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
- package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../AppHeader.
|
|
1
|
+
import "../../AppHeader.vue_vue_type_style_index_0_scoped_9202b5db_lang.css"; import { defineComponent as h, computed as o, openBlock as m, createElementBlock as p, normalizeClass as C, createElementVNode as n, mergeProps as r, unref as e, createVNode as i, withCtx as b, createTextVNode as v, toDisplayString as z, createCommentVNode as A } from "vue";
|
|
2
2
|
import c from "../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../icon/v4/IconFlag.vue.js";
|
|
4
4
|
import T from "../typography/v4/Typography.vue.js";
|
|
@@ -17,11 +17,11 @@ const w = { class: "image-container" }, k = ["src", "alt"], B = ["data-platform"
|
|
|
17
17
|
showAbIcon: { type: Boolean, default: !1 }
|
|
18
18
|
},
|
|
19
19
|
emits: ["copyToClipboard"],
|
|
20
|
-
setup(t, { emit:
|
|
21
|
-
const a = t,
|
|
20
|
+
setup(t, { emit: y }) {
|
|
21
|
+
const a = t, f = o(
|
|
22
22
|
() => a.platform ? a.platform.toLowerCase() : ""
|
|
23
23
|
), u = o(
|
|
24
|
-
() => a.type === "normal" ? "24px" : "
|
|
24
|
+
() => a.type === "normal" ? "24px" : "16px"
|
|
25
25
|
), x = o(
|
|
26
26
|
() => a.type === "small" ? "18px" : null
|
|
27
27
|
), I = o(
|
|
@@ -37,12 +37,12 @@ const w = { class: "image-container" }, k = ["src", "alt"], B = ["data-platform"
|
|
|
37
37
|
}, null, 8, k)
|
|
38
38
|
]),
|
|
39
39
|
n("div", r({
|
|
40
|
-
class: "icon-container",
|
|
40
|
+
class: ["icon-container", `icon-container--${t.type}`],
|
|
41
41
|
"data-platform": t.platform
|
|
42
42
|
}, e(s)[e(l).APP_PLATFORM]), [
|
|
43
43
|
i(e(c), {
|
|
44
44
|
type: "branded",
|
|
45
|
-
name: e(
|
|
45
|
+
name: e(f),
|
|
46
46
|
size: e(u)
|
|
47
47
|
}, null, 8, ["name", "size"])
|
|
48
48
|
], 16, B),
|
|
@@ -65,7 +65,7 @@ const w = { class: "image-container" }, k = ["src", "alt"], B = ["data-platform"
|
|
|
65
65
|
"icon-size": e(x),
|
|
66
66
|
"tooltip-header": "Copy app key",
|
|
67
67
|
"tooltip-text": t.appKey,
|
|
68
|
-
onCopy: d[0] || (d[0] = (V) =>
|
|
68
|
+
onCopy: d[0] || (d[0] = (V) => y("copyToClipboard"))
|
|
69
69
|
}, null, 8, ["text", "hide-text-value", "test-id", "icon-size", "tooltip-text"])
|
|
70
70
|
]),
|
|
71
71
|
t.showAbIcon ? (m(), p("div", r({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ToggleButtonGroupAB.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ToggleButtonGroupAB.
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0fc9ddf5"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../ToggleButtonGroupAB.
|
|
1
|
+
import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css"; import { defineComponent as b, ref as u, computed as A, openBlock as f, createElementBlock as C, createVNode as n, mergeProps as s, unref as e, withCtx as t, createTextVNode as B, createBlock as y, createElementVNode as N, renderSlot as w, createCommentVNode as O } from "vue";
|
|
2
2
|
import c from "./ButtonV4.vue.js";
|
|
3
3
|
import { useVModel as R } from "@vueuse/core";
|
|
4
4
|
import x from "../../icon/v4/IconV4.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartPlane.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3c887f7e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ChartPlane.
|
|
1
|
+
import "../../ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ce, openBlock as p, createElementBlock as S, createVNode as ue, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
|
|
2
2
|
import { Chart as V, ArcElement as ye, LineElement as Ce, BarElement as ge, PointElement as be, LineController as xe, BarController as Ae, PieController as ke, ScatterController as Ee, CategoryScale as Se, LinearScale as Le, Filler as Re, Tooltip as Ie } from "chart.js";
|
|
3
3
|
import { HoverVerticalLine as De } from "./plugins/HoverVerticalLine.js";
|
|
4
4
|
import { prepareTickLabel as Be, formatValue as Oe } from "./utils/utils.js";
|
|
@@ -69,8 +69,8 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
69
69
|
setup(o, { emit: z }) {
|
|
70
70
|
const e = o;
|
|
71
71
|
se((t) => ({
|
|
72
|
-
"
|
|
73
|
-
"
|
|
72
|
+
"4efc2842": n(oe),
|
|
73
|
+
"60310e6c": o.height
|
|
74
74
|
}));
|
|
75
75
|
const W = Xe(Be);
|
|
76
76
|
V.register(
|
|
@@ -272,7 +272,7 @@ const rt = { class: "chart-plane-container" }, it = {
|
|
|
272
272
|
count: e.tickCount + 1,
|
|
273
273
|
padding: 8,
|
|
274
274
|
min: 0,
|
|
275
|
-
callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, !0) + e.valueSuffix
|
|
275
|
+
callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, { formatLowDigits: !0 }) + e.valueSuffix
|
|
276
276
|
},
|
|
277
277
|
// grid lines
|
|
278
278
|
grid: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChartTooltip.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartTooltip.
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc7e6298"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../../ChartTooltip.
|
|
1
|
+
import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css"; import { defineComponent as v, openBlock as l, createElementBlock as o, mergeProps as h, unref as e, createBlock as f, createCommentVNode as r, Fragment as b, renderList as g, createElementVNode as c, normalizeStyle as C, createVNode as i, withCtx as s, createTextVNode as u, toDisplayString as n } from "vue";
|
|
2
2
|
import d from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import k from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import { formatValue as m } from "./utils/utils.js";
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
6
|
+
import A from "./TooltipHeader.vue.js";
|
|
7
|
+
import { useTestIdAttrs as I } from "../../utils/testIds.js";
|
|
8
8
|
import { ChartTooltipTestIdModifiers as x } from "../../testids/index.js";
|
|
9
|
-
const
|
|
9
|
+
const T = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "list"
|
|
12
|
-
}, p = { class: "popover-label-wrapper" },
|
|
12
|
+
}, p = { class: "popover-label-wrapper" }, S = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "tooltip-footer"
|
|
15
15
|
}, O = /* @__PURE__ */ v({
|
|
@@ -28,9 +28,9 @@ const g = {
|
|
|
28
28
|
testId: { default: "" }
|
|
29
29
|
},
|
|
30
30
|
setup(t) {
|
|
31
|
-
const y =
|
|
32
|
-
return (
|
|
33
|
-
t.title ? (l(), f(
|
|
31
|
+
const y = I(t.testId, x);
|
|
32
|
+
return (w, F) => (l(), o("div", h({ class: "chart-tooltip" }, e(y)[e(x).CONTAINER]), [
|
|
33
|
+
t.title ? (l(), f(A, {
|
|
34
34
|
key: 0,
|
|
35
35
|
title: t.title,
|
|
36
36
|
"data-points": t.dataPoints,
|
|
@@ -38,18 +38,18 @@ const g = {
|
|
|
38
38
|
"x-axis-format": t.xAxisFormat,
|
|
39
39
|
"x-axis-date-interval": t.xAxisDateInterval
|
|
40
40
|
}, null, 8, ["title", "data-points", "totals-chart", "x-axis-format", "x-axis-date-interval"])) : r("", !0),
|
|
41
|
-
t.totalsChart ? r("", !0) : (l(), o("ul",
|
|
42
|
-
(l(!0), o(b, null,
|
|
41
|
+
t.totalsChart ? r("", !0) : (l(), o("ul", T, [
|
|
42
|
+
(l(!0), o(b, null, g(t.dataPoints, (a) => (l(), o("li", {
|
|
43
43
|
key: a.datasetIndex,
|
|
44
44
|
class: "list__item"
|
|
45
45
|
}, [
|
|
46
46
|
c("span", {
|
|
47
47
|
class: "color-box",
|
|
48
|
-
style:
|
|
48
|
+
style: C({
|
|
49
49
|
backgroundColor: String(a.dataset.pointBackgroundColor)
|
|
50
50
|
})
|
|
51
51
|
}, null, 4),
|
|
52
|
-
a.dataset.icon ? (l(), f(e(
|
|
52
|
+
a.dataset.icon ? (l(), f(e(k), {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "platform-icon",
|
|
55
55
|
type: a.dataset.iconType,
|
|
@@ -70,13 +70,16 @@ const g = {
|
|
|
70
70
|
]),
|
|
71
71
|
i(e(d), { variant: "body2" }, {
|
|
72
72
|
default: s(() => [
|
|
73
|
-
u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat,
|
|
73
|
+
u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat, {
|
|
74
|
+
formatLowDigits: !0,
|
|
75
|
+
withSuffixSpace: !1
|
|
76
|
+
}) + t.valueSuffix), 1)
|
|
74
77
|
]),
|
|
75
78
|
_: 2
|
|
76
79
|
}, 1024)
|
|
77
80
|
]))), 128))
|
|
78
81
|
])),
|
|
79
|
-
t.totalValue !== null ? (l(), o("div",
|
|
82
|
+
t.totalValue !== null ? (l(), o("div", S, [
|
|
80
83
|
i(e(d), {
|
|
81
84
|
variant: "body2",
|
|
82
85
|
class: "flex-grow"
|
|
@@ -88,7 +91,7 @@ const g = {
|
|
|
88
91
|
}),
|
|
89
92
|
i(e(d), { variant: "body2" }, {
|
|
90
93
|
default: s(() => [
|
|
91
|
-
u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, !0) + t.valueSuffix), 1)
|
|
94
|
+
u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, { formatLowDigits: !0 }) + t.valueSuffix), 1)
|
|
92
95
|
]),
|
|
93
96
|
_: 1
|
|
94
97
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TooltipHeader.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../TooltipHeader.
|
|
4
|
-
const
|
|
3
|
+
// import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2177211f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "../../TooltipHeader.
|
|
1
|
+
import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css"; import { defineComponent as g, computed as f, openBlock as i, createElementBlock as d, createElementVNode as v, unref as t, createCommentVNode as s, createBlock as u, createVNode as A, withCtx as x, createTextVNode as p, toDisplayString as h } from "vue";
|
|
2
2
|
import { formatValue as o } from "./utils/utils.js";
|
|
3
3
|
import y from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import { DateInterval as c } from "./types.js";
|
|
5
5
|
import k from "../icon/v4/IconV4.vue.js";
|
|
6
6
|
import O from "../icon/v4/IconFlag.vue.js";
|
|
7
|
-
import { startOfWeek as
|
|
8
|
-
import { LONG_DATE_FORMAT as
|
|
9
|
-
|
|
7
|
+
import { startOfWeek as F, startOfDay as T, endOfWeek as I, startOfMonth as w, endOfMonth as E } from "date-fns";
|
|
8
|
+
import { LONG_DATE_FORMAT as n } from "./consts.js";
|
|
9
|
+
import { getUTCDate as m } from "../../utils/date.js";
|
|
10
|
+
const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], S = /* @__PURE__ */ g({
|
|
10
11
|
__name: "TooltipHeader",
|
|
11
12
|
props: {
|
|
12
13
|
title: { default: "" },
|
|
@@ -16,48 +17,58 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
|
|
|
16
17
|
totalsChart: { type: Boolean, default: !1 }
|
|
17
18
|
},
|
|
18
19
|
setup(a) {
|
|
19
|
-
const e = a, r =
|
|
20
|
-
${o(
|
|
21
|
-
|
|
20
|
+
const e = a, r = f(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), C = f(() => e.totalsChart ? r.value?.label || e.title : e.xAxisFormat === "date" ? D(new Date(e.title)) : o(e.title, e.xAxisFormat)), D = (l) => e.xAxisDateInterval === c.WEEKLY ? `
|
|
21
|
+
${o(F(m(l)), n, {
|
|
22
|
+
withUTC: !1
|
|
23
|
+
})} -
|
|
24
|
+
${o(T(I(m(l))), n, {
|
|
25
|
+
withUTC: !1
|
|
26
|
+
})}
|
|
22
27
|
` : e.xAxisDateInterval === c.MONTHLY ? `
|
|
23
|
-
${o(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
${o(w(m(l)), n, {
|
|
29
|
+
withUTC: !1
|
|
30
|
+
})} -
|
|
31
|
+
${o(
|
|
32
|
+
T(E(m(l))),
|
|
33
|
+
n,
|
|
34
|
+
{ withUTC: !1 }
|
|
35
|
+
)}
|
|
36
|
+
` : o(l, n);
|
|
37
|
+
return (l, U) => (i(), d("div", N, [
|
|
38
|
+
v("div", L, [
|
|
39
|
+
a.totalsChart && t(r)?.image ? (i(), d("img", {
|
|
29
40
|
key: 0,
|
|
30
41
|
class: "title-image",
|
|
31
42
|
src: t(r)?.image
|
|
32
43
|
}, null, 8, M)) : s("", !0),
|
|
33
|
-
a.totalsChart && t(r)?.countryFlag ? (
|
|
44
|
+
a.totalsChart && t(r)?.countryFlag ? (i(), u(t(O), {
|
|
34
45
|
key: 1,
|
|
35
46
|
"country-code": t(r).countryFlag
|
|
36
47
|
}, null, 8, ["country-code"])) : s("", !0),
|
|
37
|
-
a.totalsChart && t(r)?.icon ? (
|
|
48
|
+
a.totalsChart && t(r)?.icon ? (i(), u(t(k), {
|
|
38
49
|
key: 2,
|
|
39
50
|
class: "platform-icon",
|
|
40
51
|
type: t(r)?.iconType,
|
|
41
52
|
name: t(r)?.icon,
|
|
42
53
|
size: "16px"
|
|
43
54
|
}, null, 8, ["type", "name"])) : s("", !0),
|
|
44
|
-
|
|
55
|
+
A(t(y), {
|
|
45
56
|
class: "title-text",
|
|
46
57
|
variant: "subtitle2"
|
|
47
58
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
59
|
+
default: x(() => [
|
|
60
|
+
p(h(t(C)), 1)
|
|
50
61
|
]),
|
|
51
62
|
_: 1
|
|
52
63
|
})
|
|
53
64
|
]),
|
|
54
|
-
a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (
|
|
65
|
+
a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (i(), u(t(y), {
|
|
55
66
|
key: 0,
|
|
56
67
|
class: "tooltip-sub-title",
|
|
57
68
|
variant: "caption"
|
|
58
69
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
70
|
+
default: x(() => [
|
|
71
|
+
p(h(t(o)(a.title, "day")), 1)
|
|
61
72
|
]),
|
|
62
73
|
_: 1
|
|
63
74
|
})) : s("", !0)
|
|
@@ -65,5 +76,5 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
|
|
|
65
76
|
}
|
|
66
77
|
});
|
|
67
78
|
export {
|
|
68
|
-
|
|
79
|
+
S as default
|
|
69
80
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { PrepareTicksLabelArgs, ValueFormat } from '@/components/chart/types';
|
|
2
|
-
export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat,
|
|
2
|
+
export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat, options?: {
|
|
3
|
+
formatLowDigits?: boolean;
|
|
4
|
+
withSuffixSpace?: boolean;
|
|
5
|
+
withUTC?: boolean;
|
|
6
|
+
}) => string;
|
|
3
7
|
export declare const prepareTickLabel: ({ label, format, availableSpace, truncate, }: PrepareTicksLabelArgs) => string | string[];
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
import { getUTCDate as
|
|
2
|
-
import { format as
|
|
3
|
-
import { TICK_LABEL_FONT as
|
|
4
|
-
import { nFormatter as
|
|
5
|
-
import { truncateTextToFit as
|
|
6
|
-
import { REGEX_LINEBREAK as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
n
|
|
12
|
-
) : t === "date" ? f(e(r), "MMM dd") : t === "dateLong" ? f(e(r), "MMM dd, yyyy") : String(r), B = ({
|
|
13
|
-
label: r,
|
|
14
|
-
format: t,
|
|
15
|
-
availableSpace: o,
|
|
16
|
-
truncate: n = !1
|
|
1
|
+
import { getUTCDate as f } from "../../../utils/date.js";
|
|
2
|
+
import { format as m } from "date-fns";
|
|
3
|
+
import { TICK_LABEL_FONT as c } from "../consts.js";
|
|
4
|
+
import { nFormatter as E, DEFAULT_FALLBACK as T } from "../../../utils/formatNumbers.js";
|
|
5
|
+
import { truncateTextToFit as a } from "../../../utils/text.js";
|
|
6
|
+
import { REGEX_LINEBREAK as p } from "../../../consts/regex.js";
|
|
7
|
+
const d = (t, r, e = {
|
|
8
|
+
formatLowDigits: !1,
|
|
9
|
+
withSuffixSpace: !0,
|
|
10
|
+
withUTC: !0
|
|
17
11
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const { formatLowDigits: i, withSuffixSpace: n, withUTC: o } = e;
|
|
13
|
+
return r === "day" ? m(o ? f(t) : new Date(t), "EEEE") : r === "number" ? E(
|
|
14
|
+
t,
|
|
15
|
+
i,
|
|
16
|
+
T,
|
|
17
|
+
n
|
|
18
|
+
) : r === "date" ? m(o ? f(t) : new Date(t), "MMM dd") : r === "dateLong" ? m(
|
|
19
|
+
o ? f(t) : new Date(t),
|
|
20
|
+
"MMM dd, yyyy"
|
|
21
|
+
) : String(t);
|
|
22
|
+
}, h = ({
|
|
23
|
+
label: t,
|
|
24
|
+
format: r,
|
|
25
|
+
availableSpace: e,
|
|
26
|
+
truncate: i = !1
|
|
27
|
+
}) => {
|
|
28
|
+
const n = p.test(t), o = (L) => {
|
|
29
|
+
const s = d(L, r);
|
|
30
|
+
return i && e > 0 ? a(s, c, e) : s;
|
|
21
31
|
};
|
|
22
|
-
return
|
|
32
|
+
return n ? t.split(p).map(o) : o(t);
|
|
23
33
|
};
|
|
24
34
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
d as formatValue,
|
|
36
|
+
h as prepareTickLabel
|
|
27
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CheckboxV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../CheckboxV4.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_bbfd249c_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bbfd249c"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import "../../../CheckboxV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_bbfd249c_lang.css"; import { defineComponent as S, openBlock as l, createElementBlock as V, mergeProps as a, unref as e, createElementVNode as r, createBlock as i, createCommentVNode as n, normalizeClass as I, withCtx as $, renderSlot as A, createTextVNode as F, toDisplayString as T, pushScopeId as g, popScopeId as v } from "vue";
|
|
2
|
+
import D from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import L from "./icons/UncheckedState.vue.js";
|
|
4
4
|
import N from "./icons/CheckedState.vue.js";
|
|
5
5
|
import P from "./icons/IndeterminateState.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import { checkboxCommon as R } from "../common/Checkbox.common.js";
|
|
11
|
-
import { useTestIdAttrs as U } from "../../../utils/testIds.js";
|
|
12
|
-
const M = (t) => (A("data-v-af4ae3c3"), t = t(), T(), t), W = ["for"], j = { class: "checkboxes" }, q = ["id", "disabled", "checked", ".indeterminate"], z = /* @__PURE__ */ M(() => /* @__PURE__ */ u("span", { class: "checkbox__inner" }, null, -1)), G = { class: "states" }, le = /* @__PURE__ */ D({
|
|
6
|
+
import { CheckboxTestIdModifiers as d } from "../../../testids/index.js";
|
|
7
|
+
import { checkboxCommon as w } from "../common/Checkbox.common.js";
|
|
8
|
+
import { useTestIdAttrs as R } from "../../../utils/testIds.js";
|
|
9
|
+
const z = (t) => (g("data-v-bbfd249c"), t = t(), v(), t), H = ["for"], K = { class: "checkboxes" }, M = ["id", "disabled", "checked", ".indeterminate"], U = /* @__PURE__ */ z(() => /* @__PURE__ */ r("span", { class: "checkbox__inner" }, null, -1)), W = { class: "states" }, Z = /* @__PURE__ */ S({
|
|
13
10
|
__name: "CheckboxV4",
|
|
14
11
|
props: {
|
|
15
12
|
isChecked: { type: Boolean },
|
|
@@ -21,91 +18,74 @@ const M = (t) => (A("data-v-af4ae3c3"), t = t(), T(), t), W = ["for"], j = { cla
|
|
|
21
18
|
},
|
|
22
19
|
emits: ["update:isChecked", "click"],
|
|
23
20
|
setup(t, { emit: b }) {
|
|
24
|
-
const
|
|
25
|
-
id:
|
|
26
|
-
checkbox:
|
|
27
|
-
isFocusVisible:
|
|
28
|
-
handleFocus:
|
|
29
|
-
handleBlur:
|
|
30
|
-
indeterminate:
|
|
31
|
-
checked:
|
|
32
|
-
unchecked:
|
|
33
|
-
updateValue:
|
|
34
|
-
} =
|
|
35
|
-
return (
|
|
36
|
-
for: e(
|
|
21
|
+
const k = t, {
|
|
22
|
+
id: f,
|
|
23
|
+
checkbox: x,
|
|
24
|
+
isFocusVisible: B,
|
|
25
|
+
handleFocus: h,
|
|
26
|
+
handleBlur: p,
|
|
27
|
+
indeterminate: u,
|
|
28
|
+
checked: y,
|
|
29
|
+
unchecked: E,
|
|
30
|
+
updateValue: C
|
|
31
|
+
} = w(k, b), c = R(k.testId, d);
|
|
32
|
+
return (m, o) => (l(), V("label", a({
|
|
33
|
+
for: e(f),
|
|
37
34
|
class: [{
|
|
38
|
-
"focus-visible": e(
|
|
35
|
+
"focus-visible": e(B),
|
|
39
36
|
disabled: t.disabled
|
|
40
37
|
}, "checkbox"]
|
|
41
|
-
}, e(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
id: e(
|
|
45
|
-
ref: e(
|
|
38
|
+
}, e(c)[e(d).WRAPPER]), [
|
|
39
|
+
r("span", K, [
|
|
40
|
+
r("input", a({ ...m.$attrs, ...e(c)[e(d).FIELD] }, {
|
|
41
|
+
id: e(f),
|
|
42
|
+
ref: e(x),
|
|
46
43
|
disabled: t.disabled,
|
|
47
|
-
checked: e(
|
|
44
|
+
checked: e(y),
|
|
48
45
|
class: "input",
|
|
49
|
-
".indeterminate": e(
|
|
46
|
+
".indeterminate": e(u),
|
|
50
47
|
type: "checkbox",
|
|
51
|
-
onBlur:
|
|
52
|
-
(...s) => e(
|
|
53
|
-
onFocus:
|
|
54
|
-
(...s) => e(
|
|
55
|
-
onClick:
|
|
56
|
-
onInput:
|
|
57
|
-
(...s) => e(
|
|
58
|
-
}), null, 16,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
})) : c("", !0)
|
|
76
|
-
], 64)),
|
|
77
|
-
t.disabled ? (o(), f(B, { key: 1 }, [
|
|
78
|
-
e(m) ? (o(), n(H, a({
|
|
79
|
-
key: 0,
|
|
80
|
-
color: t.color,
|
|
81
|
-
class: "icon checked"
|
|
82
|
-
}, e(r)[e(i).CHECKED]), null, 16, ["color"])) : c("", !0),
|
|
83
|
-
e(d) ? (o(), n(K, {
|
|
84
|
-
key: 1,
|
|
85
|
-
class: "icon indeterminate"
|
|
86
|
-
})) : c("", !0),
|
|
87
|
-
e(I) && !e(d) ? (o(), n(w, {
|
|
88
|
-
key: 2,
|
|
89
|
-
class: "icon unchecked"
|
|
90
|
-
})) : c("", !0)
|
|
91
|
-
], 64)) : c("", !0)
|
|
48
|
+
onBlur: o[0] || (o[0] = //@ts-ignore
|
|
49
|
+
(...s) => e(p) && e(p)(...s)),
|
|
50
|
+
onFocus: o[1] || (o[1] = //@ts-ignore
|
|
51
|
+
(...s) => e(h) && e(h)(...s)),
|
|
52
|
+
onClick: o[2] || (o[2] = (s) => b("click", s)),
|
|
53
|
+
onInput: o[3] || (o[3] = //@ts-ignore
|
|
54
|
+
(...s) => e(C) && e(C)(...s))
|
|
55
|
+
}), null, 16, M),
|
|
56
|
+
U,
|
|
57
|
+
r("span", W, [
|
|
58
|
+
e(y) ? (l(), i(N, a({
|
|
59
|
+
key: 0,
|
|
60
|
+
class: ["icon checked", { disabled: t.disabled }],
|
|
61
|
+
color: t.color
|
|
62
|
+
}, e(c)[e(d).CHECKED]), null, 16, ["class", "color"])) : n("", !0),
|
|
63
|
+
e(u) ? (l(), i(P, {
|
|
64
|
+
key: 1,
|
|
65
|
+
color: t.color,
|
|
66
|
+
class: I(["icon indeterminate", { disabled: t.disabled }])
|
|
67
|
+
}, null, 8, ["color", "class"])) : n("", !0),
|
|
68
|
+
e(E) && !e(u) ? (l(), i(L, {
|
|
69
|
+
key: 2,
|
|
70
|
+
class: I(["icon unchecked", { disabled: t.disabled }])
|
|
71
|
+
}, null, 8, ["class"])) : n("", !0)
|
|
92
72
|
])
|
|
93
73
|
]),
|
|
94
|
-
t.label ||
|
|
74
|
+
t.label || m.$slots.default ? (l(), i(e(D), a({
|
|
95
75
|
key: 0,
|
|
96
76
|
variant: "body2",
|
|
97
77
|
class: "checkbox-label"
|
|
98
|
-
}, e(
|
|
99
|
-
default:
|
|
100
|
-
|
|
101
|
-
F(
|
|
78
|
+
}, e(c)[e(d).LABEL]), {
|
|
79
|
+
default: $(() => [
|
|
80
|
+
A(m.$slots, "default", {}, () => [
|
|
81
|
+
F(T(t.label), 1)
|
|
102
82
|
], !0)
|
|
103
83
|
]),
|
|
104
84
|
_: 3
|
|
105
|
-
}, 16)) :
|
|
106
|
-
], 16,
|
|
85
|
+
}, 16)) : n("", !0)
|
|
86
|
+
], 16, H));
|
|
107
87
|
}
|
|
108
88
|
});
|
|
109
89
|
export {
|
|
110
|
-
|
|
90
|
+
Z as default
|
|
111
91
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as r, createElementBlock as
|
|
2
|
-
import { darkerColor as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, openBlock as r, createElementBlock as n, createElementVNode as t, unref as l } from "vue";
|
|
2
|
+
import { darkerColor as i } from "../../../../utils/color.js";
|
|
3
|
+
const c = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
viewBox: "0 0 16 16",
|
|
6
6
|
fill: "none"
|
|
7
|
-
}, s = ["fill"],
|
|
7
|
+
}, s = ["fill"], a = ["stroke"], d = /* @__PURE__ */ t("path", {
|
|
8
8
|
d: "M12.125 5.375L6.875 10.625L4.25 8",
|
|
9
9
|
stroke: "white",
|
|
10
10
|
"stroke-width": "1.5",
|
|
11
11
|
"stroke-linecap": "round",
|
|
12
12
|
"stroke-linejoin": "round"
|
|
13
|
-
}, null, -1),
|
|
13
|
+
}, null, -1), f = /* @__PURE__ */ o({
|
|
14
14
|
__name: "CheckedState",
|
|
15
15
|
props: {
|
|
16
16
|
color: { default: null }
|
|
17
17
|
},
|
|
18
18
|
setup(e) {
|
|
19
|
-
return (
|
|
19
|
+
return (h, m) => (r(), n("svg", c, [
|
|
20
20
|
t("rect", {
|
|
21
21
|
x: "0.5",
|
|
22
22
|
y: "0.5",
|
|
23
23
|
width: "15",
|
|
24
24
|
height: "15",
|
|
25
25
|
rx: "3.5",
|
|
26
|
-
fill: e.color || "
|
|
26
|
+
fill: e.color || "var(--primary-main)"
|
|
27
27
|
}, null, 8, s),
|
|
28
28
|
t("rect", {
|
|
29
29
|
x: "0.5",
|
|
@@ -31,12 +31,12 @@ const i = {
|
|
|
31
31
|
width: "15",
|
|
32
32
|
height: "15",
|
|
33
33
|
rx: "3.5",
|
|
34
|
-
stroke: e.color ?
|
|
35
|
-
}, null, 8,
|
|
36
|
-
|
|
34
|
+
stroke: e.color ? l(i)(e.color) : "var(--primary-dark)"
|
|
35
|
+
}, null, 8, a),
|
|
36
|
+
d
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
f as default
|
|
42
42
|
};
|