@ironsource/shared-ui 2.1.7-test.1 → 2.1.7-test.3
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/Autocomplete.vue_vue_type_style_index_0_scoped_e361f9fd_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_f06a4764_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_47877984_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +2 -2
- package/components/autocomplete/Autocomplete.vue2.js +57 -45
- package/components/autocomplete/index.d.ts +20 -1
- package/components/chart/Chart.vue.js +7 -0
- package/components/chart/Chart.vue2.js +281 -0
- package/components/chart/ChartHeader.vue.js +7 -0
- package/components/chart/ChartHeader.vue2.js +51 -0
- package/components/chart/ChartLegend.vue.js +7 -0
- package/components/chart/ChartLegend.vue2.js +65 -0
- package/components/chart/ChartLoader.vue.js +25 -0
- package/components/chart/ChartLoader.vue2.js +0 -0
- package/components/chart/ChartTooltip.vue.js +7 -0
- package/components/chart/ChartTooltip.vue2.js +81 -0
- package/components/chart/composables/useChartValues.js +32 -0
- package/components/chart/composables/useTooltipPosition.js +22 -0
- package/components/chart/consts.js +21 -0
- package/components/chart/index.js +6 -0
- package/components/chart/plugins/HoverVerticalLine.js +12 -0
- package/components/chart/types.js +4 -0
- package/components/chart/utils/formatNumber.js +11 -0
- package/components/chart/utils/utils.js +12 -0
- package/components/input/v4/TextField.vue.d.ts +6 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +95 -90
- package/components/input/v4/index.d.ts +20 -1
- package/components/shared/FieldMaxLength.vue.js +3 -3
- package/components/shared/FieldMaxLength.vue2.js +2 -2
- package/components/shared/commonTypes.d.ts +2 -0
- package/components/sortableList/SortableItem.vue.js +7 -0
- package/components/sortableList/SortableItem.vue2.js +140 -0
- package/components/sortableList/SortableItemLabel.vue.js +7 -0
- package/components/sortableList/SortableItemLabel.vue2.js +60 -0
- package/components/sortableList/SortableList.vue.js +7 -0
- package/components/sortableList/SortableList.vue2.js +120 -0
- package/components/sortableList/composables/useHoverEffect.js +19 -0
- package/components/sortableList/consts.js +4 -0
- package/components/sortableList/index.js +6 -0
- package/components/textArea/v4/TextAreaV4.vue.d.ts +6 -1
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +18 -12
- package/components/textArea/v4/index.d.ts +9 -0
- package/index.d.ts +651 -2
- package/index.js +131 -126
- package/package.json +9 -1
- package/testids/index.js +5 -4
- package/utils/search.js +4 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +0 -1
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./ChartHeader.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-88d4532f"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "../../ChartHeader.vue_vue_type_style_index_0_scoped_88d4532f_lang.css"; import { defineComponent as f, computed as y, openBlock as T, createElementBlock as V, createElementVNode as _, createVNode as n, unref as t, withCtx as c, createTextVNode as l, toDisplayString as p, isRef as v } from "vue";
|
|
2
|
+
import s from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import x from "../switch/v4/SwitchV4.vue.js";
|
|
4
|
+
import { ChartType as a } from "./types.js";
|
|
5
|
+
const C = { class: "chart-header" }, b = { class: "header-texts" }, N = /* @__PURE__ */ f({
|
|
6
|
+
__name: "ChartHeader",
|
|
7
|
+
props: {
|
|
8
|
+
chartType: { default: a.Line },
|
|
9
|
+
header: { default: "" },
|
|
10
|
+
subheader: { default: "" }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:chartType"],
|
|
13
|
+
setup(r, { emit: u }) {
|
|
14
|
+
const h = r, d = [
|
|
15
|
+
{ id: a.Line, icon: "chart-line-up" },
|
|
16
|
+
{ id: a.Bar, icon: "chart-bar" },
|
|
17
|
+
{ id: a.StackedLine, icon: "chart-line" }
|
|
18
|
+
], o = y({
|
|
19
|
+
get() {
|
|
20
|
+
return d.find(({ id: e }) => e === h.chartType);
|
|
21
|
+
},
|
|
22
|
+
set(e) {
|
|
23
|
+
u("update:chartType", e.id);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return (e, i) => (T(), V("div", C, [
|
|
27
|
+
_("div", b, [
|
|
28
|
+
n(t(s), { variant: "chart2" }, {
|
|
29
|
+
default: c(() => [
|
|
30
|
+
l(p(r.header), 1)
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
}),
|
|
34
|
+
n(t(s), { variant: "caption" }, {
|
|
35
|
+
default: c(() => [
|
|
36
|
+
l(p(r.subheader), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
n(t(x), {
|
|
42
|
+
modelValue: t(o),
|
|
43
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => v(o) ? o.value = m : null),
|
|
44
|
+
options: d
|
|
45
|
+
}, null, 8, ["modelValue"])
|
|
46
|
+
]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
N as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./ChartLegend.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-efc608f9"]]);
|
|
5
|
+
export {
|
|
6
|
+
c as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css"; import { defineComponent as E, ref as T, computed as a, openBlock as d, createElementBlock as n, createElementVNode as c, createVNode as u, unref as l, mergeProps as m, Fragment as y, renderList as S, withCtx as U, createTextVNode as w, toDisplayString as B } from "vue";
|
|
2
|
+
import { useVirtualList as D } from "@vueuse/core";
|
|
3
|
+
import N from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import A from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import F from "../search/v4/SearchV4.vue.js";
|
|
6
|
+
import { DEFAULT_MIN_VISIBLE as H, DEFAULT_MAX_VISIBLE as M } from "./consts.js";
|
|
7
|
+
const P = { class: "chart-legend" }, R = { class: "search-box" }, K = /* @__PURE__ */ E({
|
|
8
|
+
__name: "ChartLegend",
|
|
9
|
+
props: {
|
|
10
|
+
items: { default: () => [] },
|
|
11
|
+
visibleIds: { default: () => [] },
|
|
12
|
+
minVisible: { default: H },
|
|
13
|
+
maxVisible: { default: M }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:visibleIds"],
|
|
16
|
+
setup(p, { emit: b }) {
|
|
17
|
+
const t = p, h = 32, o = T(""), f = a(() => {
|
|
18
|
+
const e = o.value.toLowerCase();
|
|
19
|
+
return t.items.filter(
|
|
20
|
+
(i) => i.label.toLowerCase().includes(e)
|
|
21
|
+
);
|
|
22
|
+
}), r = (e) => t.visibleIds.includes(e.id), v = a(
|
|
23
|
+
() => t.visibleIds.length >= t.maxVisible
|
|
24
|
+
), I = a(
|
|
25
|
+
() => t.visibleIds.length <= t.minVisible
|
|
26
|
+
), _ = (e) => I.value && r(e) || v.value && !r(e), V = (e, i) => {
|
|
27
|
+
b(
|
|
28
|
+
"update:visibleIds",
|
|
29
|
+
e ? [...t.visibleIds, i.id] : t.visibleIds.filter((s) => s !== i.id)
|
|
30
|
+
);
|
|
31
|
+
}, { list: L, containerProps: g, wrapperProps: k } = D(f, {
|
|
32
|
+
itemHeight: h,
|
|
33
|
+
overscan: 10
|
|
34
|
+
});
|
|
35
|
+
return (e, i) => (d(), n("div", P, [
|
|
36
|
+
c("div", R, [
|
|
37
|
+
u(l(F), {
|
|
38
|
+
modelValue: o.value,
|
|
39
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s)
|
|
40
|
+
}, null, 8, ["modelValue"])
|
|
41
|
+
]),
|
|
42
|
+
c("div", m({ class: "legend" }, l(g)), [
|
|
43
|
+
c("ul", m({ class: "legend__list" }, l(k)), [
|
|
44
|
+
(d(!0), n(y, null, S(l(L), ({ data: s, index: C }) => (d(), n("li", { key: C }, [
|
|
45
|
+
u(l(A), {
|
|
46
|
+
color: s.color,
|
|
47
|
+
"is-checked": r(s),
|
|
48
|
+
disabled: _(s),
|
|
49
|
+
"onUpdate:isChecked": (x) => V(x, s)
|
|
50
|
+
}, null, 8, ["color", "is-checked", "disabled", "onUpdate:isChecked"]),
|
|
51
|
+
u(l(N), { variant: "body2" }, {
|
|
52
|
+
default: U(() => [
|
|
53
|
+
w(B(s.label), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1024)
|
|
57
|
+
]))), 128))
|
|
58
|
+
], 16)
|
|
59
|
+
], 16)
|
|
60
|
+
]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
K as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { openBlock as o, createElementBlock as c, pushScopeId as r, popScopeId as s, createElementVNode as t } from "vue";
|
|
2
|
+
/* empty css */import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const d = {}, i = (e) => (r("data-v-142c444a"), e = e(), s(), e), n = { class: "chart-loader" }, p = /* @__PURE__ */ i(() => /* @__PURE__ */ t("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 1072 275",
|
|
6
|
+
preserveAspectRatio: "none",
|
|
7
|
+
width: "100%",
|
|
8
|
+
height: "100%",
|
|
9
|
+
fill: "none"
|
|
10
|
+
}, [
|
|
11
|
+
/* @__PURE__ */ t("path", {
|
|
12
|
+
d: "M499.744 87.7024L499 87.4816C399.137 70.0475 293 138.418 218 173.72C120 219.848 87 235.892 0 275L1072 275C979 -57.3526 836.258 -31.5829 732 59.404C648.885 131.939 570.549 108.704 499.744 87.7024Z",
|
|
13
|
+
fill: "black",
|
|
14
|
+
"fill-opacity": "0.05"
|
|
15
|
+
})
|
|
16
|
+
], -1)), _ = [
|
|
17
|
+
p
|
|
18
|
+
];
|
|
19
|
+
function l(e, h) {
|
|
20
|
+
return o(), c("div", n, _);
|
|
21
|
+
}
|
|
22
|
+
const w = /* @__PURE__ */ a(d, [["render", l], ["__scopeId", "data-v-142c444a"]]);
|
|
23
|
+
export {
|
|
24
|
+
w as default
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./ChartTooltip.vue2.js";
|
|
2
|
+
/* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ec636f18"]]);
|
|
5
|
+
export {
|
|
6
|
+
s as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css"; import { defineComponent as y, computed as b, openBlock as a, createElementBlock as s, createElementVNode as u, createBlock as g, unref as e, withCtx as l, createTextVNode as o, toDisplayString as r, createCommentVNode as f, Fragment as h, renderList as k, normalizeStyle as v, createVNode as d } from "vue";
|
|
2
|
+
import i from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import { formatValue as c } from "./utils/utils.js";
|
|
4
|
+
const F = { class: "chart-tooltip" }, V = { class: "tooltip-title" }, p = { class: "list" }, A = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "tooltip-footer"
|
|
7
|
+
}, T = /* @__PURE__ */ y({
|
|
8
|
+
__name: "ChartTooltip",
|
|
9
|
+
props: {
|
|
10
|
+
title: { default: "" },
|
|
11
|
+
dataPoints: { default: () => [] },
|
|
12
|
+
xAxisFormat: { default: null },
|
|
13
|
+
yAxisFormat: { default: null },
|
|
14
|
+
totalLabel: { default: "Total" },
|
|
15
|
+
totalValue: { default: null }
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const m = t, x = b(() => m.xAxisFormat === "date" ? "dateLong" : m.xAxisFormat);
|
|
19
|
+
return (C, _) => (a(), s("div", F, [
|
|
20
|
+
u("div", V, [
|
|
21
|
+
t.title ? (a(), g(e(i), {
|
|
22
|
+
key: 0,
|
|
23
|
+
variant: "subtitle2"
|
|
24
|
+
}, {
|
|
25
|
+
default: l(() => [
|
|
26
|
+
o(r(e(c)(t.title, e(x))), 1)
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
})) : f("", !0)
|
|
30
|
+
]),
|
|
31
|
+
u("ul", p, [
|
|
32
|
+
(a(!0), s(h, null, k(t.dataPoints, (n) => (a(), s("li", {
|
|
33
|
+
key: n.datasetIndex,
|
|
34
|
+
class: "list__item"
|
|
35
|
+
}, [
|
|
36
|
+
u("span", {
|
|
37
|
+
class: "color-box",
|
|
38
|
+
style: v({
|
|
39
|
+
backgroundColor: String(n.dataset.pointBackgroundColor)
|
|
40
|
+
})
|
|
41
|
+
}, null, 4),
|
|
42
|
+
d(e(i), {
|
|
43
|
+
variant: "body2",
|
|
44
|
+
class: "flex-grow"
|
|
45
|
+
}, {
|
|
46
|
+
default: l(() => [
|
|
47
|
+
o(r(n.dataset.label), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1024),
|
|
51
|
+
d(e(i), { variant: "body2" }, {
|
|
52
|
+
default: l(() => [
|
|
53
|
+
o(r(e(c)(n.parsed.y, t.yAxisFormat)), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1024)
|
|
57
|
+
]))), 128))
|
|
58
|
+
]),
|
|
59
|
+
t.totalValue !== null ? (a(), s("div", A, [
|
|
60
|
+
d(e(i), {
|
|
61
|
+
variant: "body2",
|
|
62
|
+
class: "flex-grow"
|
|
63
|
+
}, {
|
|
64
|
+
default: l(() => [
|
|
65
|
+
o(r(t.totalLabel), 1)
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
d(e(i), { variant: "body2" }, {
|
|
70
|
+
default: l(() => [
|
|
71
|
+
o(r(e(c)(t.totalValue, t.yAxisFormat)), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})
|
|
75
|
+
])) : f("", !0)
|
|
76
|
+
]));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
T as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { computed as t } from "vue";
|
|
2
|
+
const V = ({
|
|
3
|
+
parsingConfig: s,
|
|
4
|
+
dataSets: m,
|
|
5
|
+
isStacked: v
|
|
6
|
+
}) => {
|
|
7
|
+
const l = (e) => e ? e[s?.yAxisKey] : null, r = (e) => e ? e[s?.xAxisKey] : null, o = t(
|
|
8
|
+
() => m.value.flatMap(
|
|
9
|
+
(e) => e.data.map(l)
|
|
10
|
+
)
|
|
11
|
+
), p = t(() => m.value.reduce((e, n) => (n.data.forEach((a) => {
|
|
12
|
+
const u = String(r(a));
|
|
13
|
+
e[u] || (e[u] = []), e[u].push(l(a));
|
|
14
|
+
}), e), {})), x = t(() => Math.min(0, ...o.value.map(Number))), h = t(() => {
|
|
15
|
+
if (v.value) {
|
|
16
|
+
const e = Object.values(p.value).map(
|
|
17
|
+
(n) => n.reduce((a, u) => a + u, 0)
|
|
18
|
+
);
|
|
19
|
+
return Math.max(...e);
|
|
20
|
+
}
|
|
21
|
+
return Math.max(...o.value.map(Number));
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
getXValue: r,
|
|
25
|
+
getYValue: l,
|
|
26
|
+
minValue: x,
|
|
27
|
+
maxValue: h
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
V as useChartValues
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { computed as c } from "vue";
|
|
2
|
+
import { useElementSize as u } from "@vueuse/core";
|
|
3
|
+
const a = (o, s, n) => {
|
|
4
|
+
const t = u(s);
|
|
5
|
+
return {
|
|
6
|
+
position: c(() => {
|
|
7
|
+
if (!o.value || !n.value)
|
|
8
|
+
return { top: 0, left: 0 };
|
|
9
|
+
const i = o.value.getBoundingClientRect(), { caretX: F, caretY: e } = n.value, E = F + t.width.value + 20 >= i.width, _ = e + t.height.value + -20 >= i.height;
|
|
10
|
+
return {
|
|
11
|
+
left: F + (E ? -(t.width.value + 20) : 20),
|
|
12
|
+
top: e + (_ ? -1 * Math.min(
|
|
13
|
+
e - 8,
|
|
14
|
+
t.height.value + 8
|
|
15
|
+
) : -20)
|
|
16
|
+
};
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
a as useTooltipPosition
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const E = "#fcfcfc", L = "#E4E4E4", _ = "#646464", C = {
|
|
2
|
+
size: 12,
|
|
3
|
+
weight: 400,
|
|
4
|
+
family: "Inter"
|
|
5
|
+
}, I = [
|
|
6
|
+
"#80BCFE",
|
|
7
|
+
"#9999FF",
|
|
8
|
+
"#5883E4",
|
|
9
|
+
"#80CBC4",
|
|
10
|
+
"#FFC670"
|
|
11
|
+
], O = 4, c = 1, t = 5;
|
|
12
|
+
export {
|
|
13
|
+
I as COLOR_PALETTE,
|
|
14
|
+
t as DEFAULT_MAX_VISIBLE,
|
|
15
|
+
c as DEFAULT_MIN_VISIBLE,
|
|
16
|
+
O as DEFAULT_TICK_COUNT,
|
|
17
|
+
L as GRID_LINE_COLOR,
|
|
18
|
+
E as POINT_BORDER_COLOR,
|
|
19
|
+
_ as TICK_LABEL_COLOR,
|
|
20
|
+
C as TICK_LABEL_FONT
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
id: "hoverVerticalLine",
|
|
3
|
+
beforeDraw: (t) => {
|
|
4
|
+
if (t.getActiveElements().length) {
|
|
5
|
+
const o = t.getActiveElements()[0], n = t.chartArea, e = t.ctx;
|
|
6
|
+
e.save(), e.beginPath(), e.moveTo(o.element.x, n.top), e.lineTo(o.element.x, n.bottom), e.lineWidth = 1, e.strokeStyle = "rgba(0,0,0, 0.1)", e.stroke(), e.restore();
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as HoverVerticalLine
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const s = "N/A", r = (n, e, t) => n.toLocaleString("en", {
|
|
2
|
+
minimumFractionDigits: e,
|
|
3
|
+
maximumFractionDigits: t
|
|
4
|
+
}), u = (n, e = s) => {
|
|
5
|
+
const t = Number(n), a = t % 1 !== 0;
|
|
6
|
+
return isNaN(t) && e ? e : Math.abs(t) >= 1e12 ? "∞" : Math.abs(t) >= 1e9 ? `${r(t / 1e9, 0, 1)}B` : Math.abs(t) >= 1e6 ? `${r(t / 1e6, 0, 1)}M` : Math.abs(t) >= 1e3 ? `${r(t / 1e3, 0, 1)}K` : a && Math.abs(t) >= 100 ? r(t, 0, 0) : a && Math.abs(t) >= 10 ? r(t, 0, 1) : a ? r(t, 2, 2) : r(t, 0, 0);
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
s as DEFAULT_FALLBACK,
|
|
10
|
+
u as formatNumber
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { format as f } from "date-fns";
|
|
2
|
+
import { formatNumber as m } from "./formatNumber.js";
|
|
3
|
+
const p = (r, t, e) => {
|
|
4
|
+
if (e === 0)
|
|
5
|
+
return 0;
|
|
6
|
+
const n = t - r, o = n / e * 0.4;
|
|
7
|
+
return (n + o) / e;
|
|
8
|
+
}, M = (r, t) => t === "number" ? m(r) : t === "date" ? f(new Date(r), "MMM dd") : t === "dateLong" ? f(new Date(r), "dd MMM yyyy") : String(r);
|
|
9
|
+
export {
|
|
10
|
+
p as calcStepSize,
|
|
11
|
+
M as formatValue
|
|
12
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
|
|
2
2
|
import { LabelDirection, FieldSize, FieldType } from './TextField.types';
|
|
3
|
-
import { FeedbackVariant } from '@/components/shared/commonTypes';
|
|
3
|
+
import { FeedbackVariant, MaxLengthCounterPositions } from '@/components/shared/commonTypes';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
modelValue?: string | number;
|
|
6
6
|
placeholder?: string;
|
|
@@ -25,6 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
25
|
prefix?: string;
|
|
26
26
|
suffix?: string;
|
|
27
27
|
maxLength?: number;
|
|
28
|
+
maxLengthCounterPosition?: MaxLengthCounterPositions;
|
|
28
29
|
showApply?: boolean;
|
|
29
30
|
inlineError?: boolean;
|
|
30
31
|
inlineErrorText?: string;
|
|
@@ -49,6 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
50
|
prefix: string;
|
|
50
51
|
suffix: string;
|
|
51
52
|
maxLength: any;
|
|
53
|
+
maxLengthCounterPosition: string;
|
|
52
54
|
showApply: boolean;
|
|
53
55
|
inlineError: boolean;
|
|
54
56
|
inlineErrorText: string;
|
|
@@ -86,6 +88,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
86
88
|
prefix?: string;
|
|
87
89
|
suffix?: string;
|
|
88
90
|
maxLength?: number;
|
|
91
|
+
maxLengthCounterPosition?: MaxLengthCounterPositions;
|
|
89
92
|
showApply?: boolean;
|
|
90
93
|
inlineError?: boolean;
|
|
91
94
|
inlineErrorText?: string;
|
|
@@ -110,6 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
110
113
|
prefix: string;
|
|
111
114
|
suffix: string;
|
|
112
115
|
maxLength: any;
|
|
116
|
+
maxLengthCounterPosition: string;
|
|
113
117
|
showApply: boolean;
|
|
114
118
|
inlineError: boolean;
|
|
115
119
|
inlineErrorText: string;
|
|
@@ -141,6 +145,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
141
145
|
onlyDigits: boolean;
|
|
142
146
|
prefix: string;
|
|
143
147
|
suffix: string;
|
|
148
|
+
maxLengthCounterPosition: MaxLengthCounterPositions;
|
|
144
149
|
showApply: boolean;
|
|
145
150
|
inlineError: boolean;
|
|
146
151
|
inlineErrorText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextField.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextField.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb472aa3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|