@ironsource/shared-ui 2.1.11-rc.6 → 2.1.11-rc.60
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css +1 -0
- package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2a77c137_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_5ff4b654_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +145 -123
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +110 -50
- package/components/chart/ChartLoader.vue.js +5 -23
- package/components/chart/ChartLoader.vue2.js +15 -0
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +34 -26
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +22 -1
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +200 -189
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +133 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +246 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
- package/components/dropdown/v4/DropdownV4.vue.d.ts +26 -6
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +187 -167
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +116 -91
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +123 -113
- package/components/dropdown/v4/index.d.ts +431 -95
- package/components/dropdown/v4/index.js +6 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -26
- package/components/popover/v4/index.d.ts +46 -8
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +83 -77
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +4 -3
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +2 -2
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1570 -328
- package/index.js +1 -1
- package/mocks/options.d.ts +19 -0
- package/mocks/words.d.ts +1 -1
- package/package.json +2 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_111642c6_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
- package/consts/configs.js +0 -4
|
@@ -1,72 +1,132 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
2
|
-
import { useVirtualList as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { DEFAULT_MIN_VISIBLE as
|
|
7
|
-
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css"; import { defineComponent as D, ref as M, computed as m, openBlock as n, createElementBlock as d, createElementVNode as r, createVNode as s, unref as o, mergeProps as I, withCtx as c, createTextVNode as b, Fragment as S, renderList as P, normalizeClass as A, withModifiers as F, createBlock as H, createCommentVNode as U, toDisplayString as L } from "vue";
|
|
2
|
+
import { useVirtualList as z } from "@vueuse/core";
|
|
3
|
+
import f from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import R from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import q from "../search/v4/SearchV4.vue.js";
|
|
6
|
+
import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
|
|
7
|
+
import $ from "../icon/v4/IconV4.vue.js";
|
|
8
|
+
import "../icon/v4/IconFlag.vue.js";
|
|
9
|
+
import j from "../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "empty-list"
|
|
13
|
+
}, Q = ["onClick"], W = { class: "label-container" }, ne = /* @__PURE__ */ D({
|
|
8
14
|
__name: "ChartLegend",
|
|
9
15
|
props: {
|
|
10
16
|
items: { default: () => [] },
|
|
11
17
|
visibleIds: { default: () => [] },
|
|
12
|
-
minVisible: { default:
|
|
13
|
-
maxVisible: { default:
|
|
18
|
+
minVisible: { default: G },
|
|
19
|
+
maxVisible: { default: X },
|
|
20
|
+
maxLimitTooltipText: { default: "" }
|
|
14
21
|
},
|
|
15
22
|
emits: ["update:visibleIds"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
const t =
|
|
19
|
-
return
|
|
20
|
-
(
|
|
23
|
+
setup(v, { emit: g }) {
|
|
24
|
+
const l = v, k = 32, p = M(""), T = m(() => {
|
|
25
|
+
const t = p.value.toLowerCase();
|
|
26
|
+
return l.items.filter(
|
|
27
|
+
(i) => i.label.toLowerCase().includes(t)
|
|
21
28
|
);
|
|
22
|
-
}), a = (t) =>
|
|
23
|
-
() =>
|
|
24
|
-
),
|
|
25
|
-
() =>
|
|
26
|
-
),
|
|
27
|
-
|
|
29
|
+
}), a = (t) => l.visibleIds.includes(t.id), h = m(
|
|
30
|
+
() => l.visibleIds.length >= l.maxVisible
|
|
31
|
+
), y = m(
|
|
32
|
+
() => l.visibleIds.length <= l.minVisible
|
|
33
|
+
), u = (t) => y.value && a(t) || h.value && !a(t), C = (t) => !l.maxLimitTooltipText || a(t) || !h.value, V = (t, i) => {
|
|
34
|
+
g(
|
|
28
35
|
"update:visibleIds",
|
|
29
|
-
t ? [...
|
|
36
|
+
t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
|
|
30
37
|
);
|
|
31
|
-
}, { list:
|
|
32
|
-
itemHeight:
|
|
38
|
+
}, { list: x, containerProps: w, wrapperProps: E } = z(T, {
|
|
39
|
+
itemHeight: k,
|
|
33
40
|
overscan: 10
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
}), N = (t) => {
|
|
42
|
+
u(t) || V(!a(t), t);
|
|
43
|
+
};
|
|
44
|
+
return (t, i) => (n(), d("div", J, [
|
|
45
|
+
r("div", K, [
|
|
46
|
+
s(o(q), {
|
|
47
|
+
modelValue: p.value,
|
|
48
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => p.value = e)
|
|
40
49
|
}, null, 8, ["modelValue"])
|
|
41
50
|
]),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
r("div", I({ class: "legend" }, o(w)), [
|
|
52
|
+
r("ul", I({ class: "legend__list" }, o(E)), [
|
|
53
|
+
o(x).length === 0 ? (n(), d("li", O, [
|
|
54
|
+
s(o(f), { variant: "body2" }, {
|
|
55
|
+
default: c(() => [
|
|
56
|
+
b("No results")
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
})
|
|
60
|
+
])) : (n(!0), d(S, { key: 1 }, P(o(x), ({ data: e, index: B }) => (n(), d("li", {
|
|
61
|
+
key: B,
|
|
62
|
+
class: A({ "disabled-item": u(e) })
|
|
63
|
+
}, [
|
|
64
|
+
s(o(j), {
|
|
65
|
+
text: v.maxLimitTooltipText,
|
|
66
|
+
disabled: C(e),
|
|
67
|
+
class: "disabled-tooltip"
|
|
58
68
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
69
|
+
default: c(() => [
|
|
70
|
+
r("div", {
|
|
71
|
+
class: "item-wrapper",
|
|
72
|
+
onClick: (_) => N(e)
|
|
73
|
+
}, [
|
|
74
|
+
s(o(R), {
|
|
75
|
+
color: e.color,
|
|
76
|
+
"is-checked": a(e),
|
|
77
|
+
disabled: u(e),
|
|
78
|
+
onClick: i[1] || (i[1] = F(
|
|
79
|
+
(_) => {
|
|
80
|
+
_.stopPropagation();
|
|
81
|
+
},
|
|
82
|
+
["stop"]
|
|
83
|
+
))
|
|
84
|
+
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
85
|
+
e.icon ? (n(), H(o($), {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "icon-color",
|
|
88
|
+
type: e.iconType,
|
|
89
|
+
name: e.icon,
|
|
90
|
+
size: "16px"
|
|
91
|
+
}, null, 8, ["type", "name"])) : U("", !0),
|
|
92
|
+
r("div", W, [
|
|
93
|
+
s(o(f), {
|
|
94
|
+
variant: "body2",
|
|
95
|
+
class: "legend-label",
|
|
96
|
+
"is-truncated": "",
|
|
97
|
+
"with-tooltip": "",
|
|
98
|
+
"tooltip-text": e.label,
|
|
99
|
+
"tooltip-placement": "left"
|
|
100
|
+
}, {
|
|
101
|
+
default: c(() => [
|
|
102
|
+
b(L(e.label), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["tooltip-text"]),
|
|
106
|
+
s(o(f), {
|
|
107
|
+
variant: "caption",
|
|
108
|
+
class: "legend-caption legend-label",
|
|
109
|
+
"is-truncated": "",
|
|
110
|
+
"with-tooltip": "",
|
|
111
|
+
"tooltip-text": e.caption,
|
|
112
|
+
"tooltip-placement": "left"
|
|
113
|
+
}, {
|
|
114
|
+
default: c(() => [
|
|
115
|
+
b(L(e.caption), 1)
|
|
116
|
+
]),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1032, ["tooltip-text"])
|
|
119
|
+
])
|
|
120
|
+
], 8, Q)
|
|
61
121
|
]),
|
|
62
122
|
_: 2
|
|
63
|
-
}, 1032, ["
|
|
64
|
-
]))), 128))
|
|
123
|
+
}, 1032, ["text", "disabled"])
|
|
124
|
+
], 2))), 128))
|
|
65
125
|
], 16)
|
|
66
126
|
], 16)
|
|
67
127
|
]));
|
|
68
128
|
}
|
|
69
129
|
});
|
|
70
130
|
export {
|
|
71
|
-
|
|
131
|
+
ne as default
|
|
72
132
|
};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
|
|
4
|
-
|
|
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"]]);
|
|
1
|
+
import o from "./ChartLoader.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ffa4cc66"]]);
|
|
23
5
|
export {
|
|
24
|
-
|
|
6
|
+
c as default
|
|
25
7
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css"; import { defineComponent as e, openBlock as o, createElementBlock as r, createElementVNode as t, createVNode as a } from "vue";
|
|
2
|
+
import c from "../loader/v4/Loader.vue.js";
|
|
3
|
+
const n = { class: "chart-loader" }, s = { class: "chart-loader-wrapper" }, i = /* @__PURE__ */ e({
|
|
4
|
+
__name: "ChartLoader",
|
|
5
|
+
setup(d) {
|
|
6
|
+
return (_, p) => (o(), r("div", n, [
|
|
7
|
+
t("div", s, [
|
|
8
|
+
a(c)
|
|
9
|
+
])
|
|
10
|
+
]));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
i as default
|
|
15
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ValueFormat } from '@/components/chart/types';
|
|
1
|
+
import { MyTooltipItem, ValueFormat } from '@/components/chart/types';
|
|
3
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
3
|
title?: string;
|
|
5
|
-
dataPoints:
|
|
4
|
+
dataPoints: MyTooltipItem<'line'>[];
|
|
6
5
|
xAxisFormat?: ValueFormat;
|
|
7
6
|
yAxisFormat?: ValueFormat;
|
|
8
7
|
totalLabel?: string;
|
|
@@ -16,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
15
|
totalValue: any;
|
|
17
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
17
|
title?: string;
|
|
19
|
-
dataPoints:
|
|
18
|
+
dataPoints: MyTooltipItem<'line'>[];
|
|
20
19
|
xAxisFormat?: ValueFormat;
|
|
21
20
|
yAxisFormat?: ValueFormat;
|
|
22
21
|
totalLabel?: string;
|
|
@@ -30,7 +29,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
29
|
totalValue: any;
|
|
31
30
|
}>>>, {
|
|
32
31
|
title: string;
|
|
33
|
-
dataPoints:
|
|
32
|
+
dataPoints: MyTooltipItem<'line'>[];
|
|
34
33
|
xAxisFormat: ValueFormat;
|
|
35
34
|
yAxisFormat: ValueFormat;
|
|
36
35
|
totalLabel: string;
|
|
@@ -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_6744325c_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6744325c"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import "../../ChartTooltip.
|
|
2
|
-
import
|
|
3
|
-
import { formatValue as
|
|
4
|
-
|
|
1
|
+
import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css"; import { defineComponent as b, computed as x, openBlock as l, createElementBlock as c, createVNode as o, unref as t, withCtx as r, createTextVNode as i, toDisplayString as s, createCommentVNode as m, createElementVNode as f, Fragment as v, renderList as F, normalizeStyle as h, createBlock as g } from "vue";
|
|
2
|
+
import n from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import { formatValue as d } from "./utils/utils.js";
|
|
4
|
+
import k from "../icon/v4/IconV4.vue.js";
|
|
5
|
+
import "../icon/v4/IconFlag.vue.js";
|
|
6
|
+
const A = { class: "chart-tooltip" }, V = {
|
|
5
7
|
key: 0,
|
|
8
|
+
class: "tooltip-title-wrapper"
|
|
9
|
+
}, C = { class: "list" }, T = { class: "popover-label-wrapper" }, _ = {
|
|
10
|
+
key: 1,
|
|
6
11
|
class: "tooltip-footer"
|
|
7
|
-
},
|
|
12
|
+
}, I = /* @__PURE__ */ b({
|
|
8
13
|
__name: "ChartTooltip",
|
|
9
14
|
props: {
|
|
10
15
|
title: { default: "" },
|
|
@@ -14,68 +19,84 @@ const F = { class: "chart-tooltip" }, V = { class: "tooltip-title" }, p = { clas
|
|
|
14
19
|
totalLabel: { default: "Total" },
|
|
15
20
|
totalValue: { default: null }
|
|
16
21
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
t
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
setup(e) {
|
|
23
|
+
const u = e, y = x(() => u.xAxisFormat === "date" ? "dateLong" : u.xAxisFormat), p = x(() => u.xAxisFormat === "date" ? "day" : u.xAxisFormat);
|
|
24
|
+
return (w, B) => (l(), c("div", A, [
|
|
25
|
+
e.title ? (l(), c("div", V, [
|
|
26
|
+
o(t(n), { variant: "subtitle2" }, {
|
|
27
|
+
default: r(() => [
|
|
28
|
+
i(s(t(d)(e.title, t(y))), 1)
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}),
|
|
32
|
+
o(t(n), {
|
|
33
|
+
class: "tooltip-sub-title",
|
|
34
|
+
variant: "caption"
|
|
24
35
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
|
|
36
|
+
default: r(() => [
|
|
37
|
+
i(s(t(d)(e.title, t(p))), 1)
|
|
27
38
|
]),
|
|
28
39
|
_: 1
|
|
29
|
-
})
|
|
30
|
-
]),
|
|
31
|
-
|
|
32
|
-
(
|
|
33
|
-
key:
|
|
40
|
+
})
|
|
41
|
+
])) : m("", !0),
|
|
42
|
+
f("ul", C, [
|
|
43
|
+
(l(!0), c(v, null, F(e.dataPoints, (a) => (l(), c("li", {
|
|
44
|
+
key: a.datasetIndex,
|
|
34
45
|
class: "list__item"
|
|
35
46
|
}, [
|
|
36
|
-
|
|
47
|
+
f("span", {
|
|
37
48
|
class: "color-box",
|
|
38
|
-
style:
|
|
39
|
-
backgroundColor: String(
|
|
49
|
+
style: h({
|
|
50
|
+
backgroundColor: String(a.dataset.pointBackgroundColor)
|
|
40
51
|
})
|
|
41
52
|
}, null, 4),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class: "
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
a.dataset.icon ? (l(), g(t(k), {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "platform-icon",
|
|
56
|
+
type: a.dataset.iconType,
|
|
57
|
+
name: a.dataset.icon,
|
|
58
|
+
size: "16px"
|
|
59
|
+
}, null, 8, ["type", "name"])) : m("", !0),
|
|
60
|
+
f("div", T, [
|
|
61
|
+
o(t(n), {
|
|
62
|
+
variant: "body2",
|
|
63
|
+
class: "flex-grow truncated-label",
|
|
64
|
+
"is-truncated": ""
|
|
65
|
+
}, {
|
|
66
|
+
default: r(() => [
|
|
67
|
+
i(s(a.dataset.label), 1)
|
|
68
|
+
]),
|
|
69
|
+
_: 2
|
|
70
|
+
}, 1024)
|
|
71
|
+
]),
|
|
72
|
+
o(t(n), { variant: "body2" }, {
|
|
73
|
+
default: r(() => [
|
|
74
|
+
i(s(t(d)(a.parsed.y, e.yAxisFormat)), 1)
|
|
54
75
|
]),
|
|
55
76
|
_: 2
|
|
56
77
|
}, 1024)
|
|
57
78
|
]))), 128))
|
|
58
79
|
]),
|
|
59
|
-
|
|
60
|
-
|
|
80
|
+
e.totalValue !== null ? (l(), c("div", _, [
|
|
81
|
+
o(t(n), {
|
|
61
82
|
variant: "body2",
|
|
62
83
|
class: "flex-grow"
|
|
63
84
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
|
|
85
|
+
default: r(() => [
|
|
86
|
+
i(s(e.totalLabel), 1)
|
|
66
87
|
]),
|
|
67
88
|
_: 1
|
|
68
89
|
}),
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
90
|
+
o(t(n), { variant: "body2" }, {
|
|
91
|
+
default: r(() => [
|
|
92
|
+
i(s(t(d)(e.totalValue, e.yAxisFormat)), 1)
|
|
72
93
|
]),
|
|
73
94
|
_: 1
|
|
74
95
|
})
|
|
75
|
-
])) :
|
|
96
|
+
])) : m("", !0)
|
|
76
97
|
]));
|
|
77
98
|
}
|
|
78
99
|
});
|
|
79
100
|
export {
|
|
80
|
-
|
|
101
|
+
I as default
|
|
81
102
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./SettingsHeader.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../SettingsHeader.
|
|
4
|
-
const
|
|
3
|
+
// import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css"; //*');
|
|
4
|
+
const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9b6cd9d9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,57 +1,65 @@
|
|
|
1
|
-
import "../../SettingsHeader.
|
|
2
|
-
import
|
|
1
|
+
import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css"; import { defineComponent as h, computed as g, openBlock as y, createElementBlock as f, createElementVNode as r, normalizeClass as a, createVNode as l, unref as t, isRef as v, withCtx as T, mergeProps as w, renderSlot as p } from "vue";
|
|
2
|
+
import b from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
-
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
7
|
+
import k from "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import "../dropdown/v4/OptionV4.vue.js";
|
|
11
|
-
import
|
|
12
|
-
|
|
11
|
+
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
12
|
+
import { DROPDOWN_TYPE_OPTIONS as c } from "./consts.js";
|
|
13
|
+
const _ = { class: "settings-header-container" }, B = { class: "chart-type-selection" }, x = /* @__PURE__ */ h({
|
|
13
14
|
__name: "SettingsHeader",
|
|
14
15
|
props: {
|
|
15
16
|
chartType: null,
|
|
16
17
|
hideLegend: { type: Boolean }
|
|
17
18
|
},
|
|
18
19
|
emits: ["update:chartType"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
20
|
+
setup(s, { emit: m }) {
|
|
21
|
+
const u = s, o = g({
|
|
21
22
|
get() {
|
|
22
|
-
return
|
|
23
|
+
return c.find(({ id: e }) => e === u.chartType);
|
|
23
24
|
},
|
|
24
25
|
set(e) {
|
|
25
|
-
|
|
26
|
+
m("update:chartType", e.id);
|
|
26
27
|
}
|
|
27
|
-
}),
|
|
28
|
-
return (e,
|
|
29
|
-
|
|
30
|
-
class:
|
|
28
|
+
}), i = (e) => `Chart: ${e.name}`;
|
|
29
|
+
return (e, d) => (y(), f("div", _, [
|
|
30
|
+
r("div", {
|
|
31
|
+
class: a(["settings", { "settings-spacer": !s.hideLegend }])
|
|
31
32
|
}, [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
selected:
|
|
35
|
-
"onUpdate:selected":
|
|
36
|
-
options:
|
|
33
|
+
r("div", B, [
|
|
34
|
+
l(t(b), {
|
|
35
|
+
selected: t(o),
|
|
36
|
+
"onUpdate:selected": d[0] || (d[0] = (n) => v(o) ? o.value = n : null),
|
|
37
|
+
options: t(c),
|
|
37
38
|
"option-name-key": "name",
|
|
38
|
-
"display-value":
|
|
39
|
+
"display-value": i,
|
|
39
40
|
placeholder: "Select chart type",
|
|
40
41
|
size: "small"
|
|
41
|
-
},
|
|
42
|
+
}, {
|
|
43
|
+
"dropdown-trigger": T(({ buttonTriggerProps: n }) => [
|
|
44
|
+
l(t(k), w(n, {
|
|
45
|
+
label: i(t(o))
|
|
46
|
+
}), null, 16, ["label"])
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["selected", "options"])
|
|
42
50
|
]),
|
|
43
|
-
|
|
44
|
-
|
|
51
|
+
r("div", null, [
|
|
52
|
+
p(e.$slots, "metric", {}, void 0, !0)
|
|
45
53
|
])
|
|
46
54
|
], 2),
|
|
47
|
-
|
|
48
|
-
class:
|
|
55
|
+
r("div", {
|
|
56
|
+
class: a(["breakdowns", { "breakdowns-border": !s.hideLegend }])
|
|
49
57
|
}, [
|
|
50
|
-
|
|
58
|
+
p(e.$slots, "breakdowns", {}, void 0, !0)
|
|
51
59
|
], 2)
|
|
52
60
|
]));
|
|
53
61
|
}
|
|
54
62
|
});
|
|
55
63
|
export {
|
|
56
|
-
|
|
64
|
+
x as default
|
|
57
65
|
};
|