@ironsource/shared-ui 2.1.12-test.98 → 2.1.12
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/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
- package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
- package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
- package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
- package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
- package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_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_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +21 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +130 -114
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +43 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +15 -0
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +173 -156
- package/components/chart/ChartStoryArgs.d.ts +17 -0
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +39 -35
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/TooltipHeader.vue.js +3 -3
- package/components/chart/TooltipHeader.vue2.js +26 -26
- package/components/chart/colorPalette.d.ts +2 -1
- package/components/chart/colorPalette.js +47 -33
- package/components/chart/composables/useColorsMap.d.ts +3 -1
- package/components/chart/composables/useColorsMap.js +32 -30
- package/components/chart/consts.d.ts +5 -1
- package/components/chart/consts.js +30 -26
- package/components/chart/index.d.ts +77 -1
- package/components/chart/mockData.d.ts +15 -0
- package/components/chart/types.d.ts +3 -1
- package/components/chart/types.js +5 -5
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +20 -14
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
- package/components/columnPicker/ColumnPicker.vue.js +7 -0
- package/components/columnPicker/ColumnPicker.vue2.js +322 -0
- package/components/columnPicker/OptionChip.vue.d.ts +53 -0
- package/components/columnPicker/OptionChip.vue.js +7 -0
- package/components/columnPicker/OptionChip.vue2.js +46 -0
- package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
- package/components/columnPicker/RemoveButton.vue.js +7 -0
- package/components/columnPicker/RemoveButton.vue2.js +35 -0
- package/components/columnPicker/index.d.ts +388 -0
- package/components/columnPicker/index.js +6 -0
- package/components/columnPicker/mockData.d.ts +8 -0
- package/components/dateRange/common/DateRange.common.js +60 -60
- package/components/dialog/v3/Dialog.vue.d.ts +3 -3
- package/components/dialog/v3/index.d.ts +46 -46
- package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
- package/components/dialog/v4/DialogFooter.vue.js +7 -0
- package/components/dialog/v4/DialogFooter.vue2.js +60 -0
- package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
- package/components/dialog/v4/DialogHeader.vue.js +7 -0
- package/components/dialog/v4/DialogHeader.vue2.js +58 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +65 -107
- package/components/dialog/v4/index.d.ts +157 -157
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +81 -3
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/v4/index.d.ts +20 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/components/link/Link.vue.d.ts +95 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +65 -0
- package/components/link/index.d.ts +296 -0
- package/components/link/index.js +6 -0
- package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
- package/components/radioButton/v3/RadioButton.vue.js +3 -3
- package/components/radioButton/v3/RadioButton.vue2.js +42 -39
- package/components/radioButton/v3/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.d.ts +17 -2
- package/components/sortableList/SortableItem.vue.js +5 -5
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +26 -23
- package/components/sortableList/SortableList.types.d.ts +1 -0
- package/components/sortableList/SortableList.vue.d.ts +12 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +111 -113
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/composables/useHoverEffect.js +1 -1
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +77 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +12 -7
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +273 -268
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
- package/components/table/v4/DataGridHeader.vue.js +7 -0
- package/components/table/v4/DataGridHeader.vue2.js +84 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
- package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
- package/components/table/v4/MultipleDataGrid.vue.js +2 -2
- package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
- package/components/table/v4/index.d.ts +646 -332
- package/components/table/v4/index.js +11 -5
- package/components/table/v4/storyUtils.d.ts +25 -0
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +2675 -1649
- package/index.js +137 -121
- package/package.json +18 -1
- package/testids/index.d.ts +47 -1
- package/testids/index.js +40 -32
- package/utils/date.d.ts +1 -0
- package/utils/date.js +9 -0
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +38 -21
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -1,54 +1,59 @@
|
|
|
1
|
-
import "../../ChartHeaderTrend.
|
|
2
|
-
import
|
|
1
|
+
import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css"; import { defineComponent as I, computed as p, openBlock as n, createElementBlock as m, mergeProps as C, unref as e, createVNode as i, withCtx as o, createElementVNode as u, createBlock as c, createTextVNode as a, toDisplayString as l, createCommentVNode as s, pushScopeId as _, popScopeId as x } from "vue";
|
|
2
|
+
import d from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import b from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import k from "../tooltip/v4/TooltipV4.vue.js";
|
|
6
|
-
import { TrendDirection as
|
|
7
|
-
|
|
6
|
+
import { TrendDirection as f } from "./types.js";
|
|
7
|
+
import { useTestIdAttrs as N } from "../../utils/testIds.js";
|
|
8
|
+
import { ChartTestIdModifiers as T } from "../../testids/index.js";
|
|
9
|
+
const h = (t) => (_("data-v-ca558859"), t = t(), x(), t), P = { class: "trend-tooltip" }, E = {
|
|
8
10
|
key: 2,
|
|
9
11
|
class: "separator"
|
|
10
|
-
},
|
|
12
|
+
}, S = /* @__PURE__ */ h(() => /* @__PURE__ */ u("hr", null, null, -1)), V = /* @__PURE__ */ h(() => /* @__PURE__ */ u("hr", null, null, -1)), M = /* @__PURE__ */ I({
|
|
11
13
|
__name: "ChartHeaderTrend",
|
|
12
14
|
props: {
|
|
13
15
|
value: { default: null },
|
|
14
|
-
direction: { default:
|
|
15
|
-
trendTooltip: { default: null }
|
|
16
|
+
direction: { default: f.UP },
|
|
17
|
+
trendTooltip: { default: null },
|
|
18
|
+
testId: { default: "" }
|
|
16
19
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
() =>
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
setup(t) {
|
|
21
|
+
const r = t, v = p(
|
|
22
|
+
() => r.trendTooltip?.header || r.trendTooltip?.rangeCurrent || r.trendTooltip?.rangePrevious
|
|
23
|
+
), g = p(
|
|
24
|
+
() => r.direction === f.NEUTRAL ? "minus" : `arrow-${r.direction}`
|
|
25
|
+
), y = N(r.testId, T);
|
|
26
|
+
return (w, A) => (n(), m("div", C({
|
|
27
|
+
class: ["chart-trend", [`chart-trend--${t.direction}`]]
|
|
28
|
+
}, e(y)[e(T).TREND]), [
|
|
29
|
+
i(e(k), {
|
|
30
|
+
disabled: !e(v)
|
|
26
31
|
}, {
|
|
27
32
|
tooltip: o(() => [
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
u("div", P, [
|
|
34
|
+
t.trendTooltip?.header ? (n(), c(e(d), {
|
|
30
35
|
key: 0,
|
|
31
36
|
class: "trend-tooltip__header",
|
|
32
37
|
variant: "subtitle2"
|
|
33
38
|
}, {
|
|
34
39
|
default: o(() => [
|
|
35
|
-
a(
|
|
40
|
+
a(l(t.trendTooltip.header), 1)
|
|
36
41
|
]),
|
|
37
42
|
_: 1
|
|
38
|
-
})) :
|
|
39
|
-
|
|
43
|
+
})) : s("", !0),
|
|
44
|
+
t.trendTooltip?.rangeCurrent ? (n(), c(e(d), {
|
|
40
45
|
key: 1,
|
|
41
46
|
variant: "body2",
|
|
42
47
|
class: "trend-tooltip__text"
|
|
43
48
|
}, {
|
|
44
49
|
default: o(() => [
|
|
45
|
-
a(
|
|
50
|
+
a(l(t.trendTooltip.rangeCurrent), 1)
|
|
46
51
|
]),
|
|
47
52
|
_: 1
|
|
48
|
-
})) :
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
})) : s("", !0),
|
|
54
|
+
t.trendTooltip?.rangeCurrent && t.trendTooltip?.rangePrevious ? (n(), m("div", E, [
|
|
55
|
+
S,
|
|
56
|
+
i(e(d), {
|
|
52
57
|
class: "separator__text",
|
|
53
58
|
variant: "caption"
|
|
54
59
|
}, {
|
|
@@ -57,40 +62,39 @@ const h = (e) => (g("data-v-db8a902c"), e = e(), C(), e), x = { class: "trend-to
|
|
|
57
62
|
]),
|
|
58
63
|
_: 1
|
|
59
64
|
}),
|
|
60
|
-
|
|
61
|
-
])) :
|
|
62
|
-
|
|
65
|
+
V
|
|
66
|
+
])) : s("", !0),
|
|
67
|
+
t.trendTooltip?.rangePrevious ? (n(), c(e(d), {
|
|
63
68
|
key: 3,
|
|
64
69
|
variant: "body2",
|
|
65
70
|
class: "trend-tooltip__text"
|
|
66
71
|
}, {
|
|
67
72
|
default: o(() => [
|
|
68
|
-
a(
|
|
73
|
+
a(l(t.trendTooltip.rangePrevious), 1)
|
|
69
74
|
]),
|
|
70
75
|
_: 1
|
|
71
|
-
})) :
|
|
76
|
+
})) : s("", !0)
|
|
72
77
|
])
|
|
73
78
|
]),
|
|
74
79
|
default: o(() => [
|
|
75
|
-
e
|
|
76
|
-
key: 0,
|
|
80
|
+
i(e(b), {
|
|
77
81
|
class: "trend-icon",
|
|
78
82
|
type: "bold",
|
|
79
|
-
name:
|
|
83
|
+
name: e(g),
|
|
80
84
|
size: "15px"
|
|
81
|
-
}, null, 8, ["name"])
|
|
82
|
-
|
|
85
|
+
}, null, 8, ["name"]),
|
|
86
|
+
i(e(d), { variant: "chipLabel" }, {
|
|
83
87
|
default: o(() => [
|
|
84
|
-
a(
|
|
88
|
+
a(l(t.value), 1)
|
|
85
89
|
]),
|
|
86
90
|
_: 1
|
|
87
91
|
})
|
|
88
92
|
]),
|
|
89
93
|
_: 1
|
|
90
94
|
}, 8, ["disabled"])
|
|
91
|
-
],
|
|
95
|
+
], 16));
|
|
92
96
|
}
|
|
93
97
|
});
|
|
94
98
|
export {
|
|
95
|
-
|
|
99
|
+
M as default
|
|
96
100
|
};
|
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9
9
|
sortSelected?: unknown;
|
|
10
10
|
sortOptions?: unknown[];
|
|
11
11
|
sortOptionNameKey?: string;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}>, {
|
|
13
14
|
items: () => any[];
|
|
14
15
|
visibleIds: () => any[];
|
|
@@ -19,6 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
20
|
sortSelected: any;
|
|
20
21
|
sortOptions: () => any[];
|
|
21
22
|
sortOptionNameKey: string;
|
|
23
|
+
testId: string;
|
|
22
24
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
25
|
"update:visibleIds": (visibleIds: unknown[]) => void;
|
|
24
26
|
"update:sortSelected": (sortOption: unknown) => void;
|
|
@@ -33,6 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
33
35
|
sortSelected?: unknown;
|
|
34
36
|
sortOptions?: unknown[];
|
|
35
37
|
sortOptionNameKey?: string;
|
|
38
|
+
testId?: string;
|
|
36
39
|
}>, {
|
|
37
40
|
items: () => any[];
|
|
38
41
|
visibleIds: () => any[];
|
|
@@ -43,11 +46,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
46
|
sortSelected: any;
|
|
44
47
|
sortOptions: () => any[];
|
|
45
48
|
sortOptionNameKey: string;
|
|
49
|
+
testId: string;
|
|
46
50
|
}>>> & {
|
|
47
51
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
48
52
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
49
53
|
"onUpdate:highlightedId"?: (id: string | number) => any;
|
|
50
54
|
}, {
|
|
55
|
+
testId: string;
|
|
51
56
|
items: LegendItem[];
|
|
52
57
|
visibleIds: unknown[];
|
|
53
58
|
highlightedId: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartLegend.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartLegend.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9c4df598"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,114 +1,119 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
2
|
-
import { useVModel as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { DEFAULT_MIN_VISIBLE as
|
|
7
|
-
import
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css"; import { defineComponent as F, ref as G, computed as b, openBlock as n, createElementBlock as u, mergeProps as v, unref as o, createElementVNode as r, createVNode as c, createBlock as g, isRef as H, createCommentVNode as x, withCtx as p, createTextVNode as k, Fragment as z, renderList as K, normalizeClass as q, withModifiers as X, toDisplayString as E } from "vue";
|
|
2
|
+
import { useVModel as _, useVirtualList as j } from "@vueuse/core";
|
|
3
|
+
import y from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import J from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import Q from "../search/v4/SearchV4.vue.js";
|
|
6
|
+
import { DEFAULT_MIN_VISIBLE as W, DEFAULT_MAX_VISIBLE as Y } from "./consts.js";
|
|
7
|
+
import Z from "../icon/v4/IconV4.vue.js";
|
|
8
8
|
import "../icon/v4/IconFlag.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
9
|
+
import ee from "../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
import te from "./LegendSorting.vue.js";
|
|
11
|
+
import { useTestIdAttrs as oe } from "../../utils/testIds.js";
|
|
12
|
+
import { ChartTestIdModifiers as L } from "../../testids/index.js";
|
|
13
|
+
const le = { class: "search-box" }, se = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "empty-list"
|
|
14
|
-
},
|
|
16
|
+
}, ie = ["onMouseenter"], ne = ["onClick"], ae = { class: "label-container" }, xe = /* @__PURE__ */ F({
|
|
15
17
|
__name: "ChartLegend",
|
|
16
18
|
props: {
|
|
17
19
|
items: { default: () => [] },
|
|
18
20
|
visibleIds: { default: () => [] },
|
|
19
21
|
highlightedId: { default: null },
|
|
20
|
-
minVisible: { default:
|
|
21
|
-
maxVisible: { default:
|
|
22
|
+
minVisible: { default: W },
|
|
23
|
+
maxVisible: { default: Y },
|
|
22
24
|
maxLimitTooltipText: { default: "" },
|
|
23
25
|
sortSelected: { default: null },
|
|
24
26
|
sortOptions: { default: () => [] },
|
|
25
|
-
sortOptionNameKey: { default: "" }
|
|
27
|
+
sortOptionNameKey: { default: "" },
|
|
28
|
+
testId: { default: "" }
|
|
26
29
|
},
|
|
27
30
|
emits: ["update:visibleIds", "update:sortSelected", "update:highlightedId"],
|
|
28
|
-
setup(
|
|
29
|
-
const l =
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
const t =
|
|
31
|
+
setup(i, { emit: m }) {
|
|
32
|
+
const l = i, M = 32, f = _(l, "sortSelected", m), T = _(l, "highlightedId", m), N = (t) => {
|
|
33
|
+
T.value = a(t) ? t.id : null;
|
|
34
|
+
}, w = () => {
|
|
35
|
+
T.value = null;
|
|
36
|
+
}, h = G(""), S = b(() => {
|
|
37
|
+
const t = h.value.toLowerCase();
|
|
35
38
|
return l.items.filter(
|
|
36
|
-
(
|
|
39
|
+
(s) => s.label.toLowerCase().includes(t)
|
|
37
40
|
);
|
|
38
|
-
}),
|
|
41
|
+
}), a = (t) => l.visibleIds.includes(t.id), C = b(
|
|
39
42
|
() => l.visibleIds.length >= l.maxVisible
|
|
40
|
-
),
|
|
43
|
+
), D = b(
|
|
41
44
|
() => l.visibleIds.length <= l.minVisible
|
|
42
|
-
), d = (t) =>
|
|
45
|
+
), d = (t) => D.value && a(t) || C.value && !a(t), O = (t) => !l.maxLimitTooltipText || a(t) || !C.value, A = (t, s) => {
|
|
43
46
|
m(
|
|
44
47
|
"update:visibleIds",
|
|
45
|
-
t ? [...l.visibleIds,
|
|
48
|
+
t ? [...l.visibleIds, s.id] : l.visibleIds.filter((e) => e !== s.id)
|
|
46
49
|
);
|
|
47
|
-
}, { list:
|
|
50
|
+
}, { list: V, containerProps: B, wrapperProps: R } = j(S, {
|
|
48
51
|
itemHeight: M,
|
|
49
52
|
overscan: 10
|
|
50
|
-
}),
|
|
51
|
-
d(t) ||
|
|
52
|
-
};
|
|
53
|
-
return (t,
|
|
54
|
-
r("div",
|
|
55
|
-
c(o(
|
|
56
|
-
modelValue:
|
|
57
|
-
"onUpdate:modelValue":
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
}), $ = (t) => {
|
|
54
|
+
d(t) || A(!a(t), t);
|
|
55
|
+
}, P = oe(l.testId, L);
|
|
56
|
+
return (t, s) => (n(), u("div", v({ class: "chart-legend" }, o(P)[o(L).LEGEND_CONTAINER]), [
|
|
57
|
+
r("div", le, [
|
|
58
|
+
c(o(Q), {
|
|
59
|
+
modelValue: h.value,
|
|
60
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => h.value = e),
|
|
61
|
+
"test-id": i.testId
|
|
62
|
+
}, null, 8, ["modelValue", "test-id"]),
|
|
63
|
+
i.sortOptions?.length > 0 ? (n(), g(te, {
|
|
60
64
|
key: 0,
|
|
61
|
-
selected: o(
|
|
62
|
-
"onUpdate:selected":
|
|
63
|
-
options:
|
|
64
|
-
"option-name-key":
|
|
65
|
-
|
|
65
|
+
selected: o(f),
|
|
66
|
+
"onUpdate:selected": s[1] || (s[1] = (e) => H(f) ? f.value = e : null),
|
|
67
|
+
options: i.sortOptions,
|
|
68
|
+
"option-name-key": i.sortOptionNameKey,
|
|
69
|
+
"test-id": `${i.testId}-${o(L).LEGEND_SORT}`
|
|
70
|
+
}, null, 8, ["selected", "options", "option-name-key", "test-id"])) : x("", !0)
|
|
66
71
|
]),
|
|
67
|
-
r("div",
|
|
68
|
-
r("ul",
|
|
69
|
-
o(
|
|
70
|
-
c(o(
|
|
72
|
+
r("div", v({ class: "legend" }, o(B)), [
|
|
73
|
+
r("ul", v({ class: "legend__list" }, o(R)), [
|
|
74
|
+
o(V).length === 0 ? (n(), u("li", se, [
|
|
75
|
+
c(o(y), { variant: "body2" }, {
|
|
71
76
|
default: p(() => [
|
|
72
|
-
|
|
77
|
+
k("No results")
|
|
73
78
|
]),
|
|
74
79
|
_: 1
|
|
75
80
|
})
|
|
76
|
-
])) : (
|
|
77
|
-
key:
|
|
78
|
-
class:
|
|
79
|
-
onMouseenter: (
|
|
80
|
-
onMouseleave:
|
|
81
|
+
])) : (n(!0), u(z, { key: 1 }, K(o(V), ({ data: e, index: U }) => (n(), u("li", {
|
|
82
|
+
key: U,
|
|
83
|
+
class: q({ "disabled-item": d(e) }),
|
|
84
|
+
onMouseenter: (I) => N(e),
|
|
85
|
+
onMouseleave: w
|
|
81
86
|
}, [
|
|
82
|
-
c(o(
|
|
83
|
-
text:
|
|
84
|
-
disabled:
|
|
87
|
+
c(o(ee), {
|
|
88
|
+
text: i.maxLimitTooltipText,
|
|
89
|
+
disabled: O(e),
|
|
85
90
|
class: "disabled-tooltip"
|
|
86
91
|
}, {
|
|
87
92
|
default: p(() => [
|
|
88
93
|
r("div", {
|
|
89
94
|
class: "item-wrapper",
|
|
90
|
-
onClick: (
|
|
95
|
+
onClick: (I) => $(e)
|
|
91
96
|
}, [
|
|
92
|
-
c(o(
|
|
97
|
+
c(o(J), {
|
|
93
98
|
color: e.color,
|
|
94
|
-
"is-checked":
|
|
99
|
+
"is-checked": a(e),
|
|
95
100
|
disabled: d(e),
|
|
96
|
-
onClick:
|
|
97
|
-
(
|
|
98
|
-
|
|
101
|
+
onClick: s[2] || (s[2] = X(
|
|
102
|
+
(I) => {
|
|
103
|
+
I.stopPropagation();
|
|
99
104
|
},
|
|
100
105
|
["stop"]
|
|
101
106
|
))
|
|
102
107
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
103
|
-
e.icon ? (
|
|
108
|
+
e.icon ? (n(), g(o(Z), {
|
|
104
109
|
key: 0,
|
|
105
110
|
class: "icon-color",
|
|
106
111
|
type: e.iconType,
|
|
107
112
|
name: e.icon,
|
|
108
113
|
size: "16px"
|
|
109
114
|
}, null, 8, ["type", "name"])) : x("", !0),
|
|
110
|
-
r("div",
|
|
111
|
-
c(o(
|
|
115
|
+
r("div", ae, [
|
|
116
|
+
c(o(y), {
|
|
112
117
|
variant: "body2",
|
|
113
118
|
class: "legend-label",
|
|
114
119
|
"is-truncated": "",
|
|
@@ -117,11 +122,11 @@ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
|
|
|
117
122
|
"tooltip-placement": "left"
|
|
118
123
|
}, {
|
|
119
124
|
default: p(() => [
|
|
120
|
-
|
|
125
|
+
k(E(e.label), 1)
|
|
121
126
|
]),
|
|
122
127
|
_: 2
|
|
123
128
|
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
124
|
-
e.caption ? (
|
|
129
|
+
e.caption ? (n(), g(o(y), {
|
|
125
130
|
key: 0,
|
|
126
131
|
variant: "caption",
|
|
127
132
|
class: "legend-caption legend-label",
|
|
@@ -131,21 +136,21 @@ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
|
|
|
131
136
|
"tooltip-placement": "left"
|
|
132
137
|
}, {
|
|
133
138
|
default: p(() => [
|
|
134
|
-
|
|
139
|
+
k(E(e.caption), 1)
|
|
135
140
|
]),
|
|
136
141
|
_: 2
|
|
137
142
|
}, 1032, ["with-tooltip", "tooltip-text"])) : x("", !0)
|
|
138
143
|
])
|
|
139
|
-
], 8,
|
|
144
|
+
], 8, ne)
|
|
140
145
|
]),
|
|
141
146
|
_: 2
|
|
142
147
|
}, 1032, ["text", "disabled"])
|
|
143
|
-
], 42,
|
|
148
|
+
], 42, ie))), 128))
|
|
144
149
|
], 16)
|
|
145
150
|
], 16)
|
|
146
|
-
]));
|
|
151
|
+
], 16));
|
|
147
152
|
}
|
|
148
153
|
});
|
|
149
154
|
export {
|
|
150
|
-
|
|
155
|
+
xe as default
|
|
151
156
|
};
|
|
@@ -43,6 +43,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
43
43
|
colorsMap: Record<string, string>;
|
|
44
44
|
valueSuffix?: string;
|
|
45
45
|
valuePrefix?: string;
|
|
46
|
+
indicateIncompleteData?: boolean;
|
|
47
|
+
tooltipExcludeTotalItem?: boolean;
|
|
48
|
+
testId?: string;
|
|
46
49
|
}>, {
|
|
47
50
|
chartType: ChartType;
|
|
48
51
|
dataSets: () => any[];
|
|
@@ -79,6 +82,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
79
82
|
colorsMap: () => {};
|
|
80
83
|
valueSuffix: string;
|
|
81
84
|
valuePrefix: string;
|
|
85
|
+
indicateIncompleteData: boolean;
|
|
86
|
+
tooltipExcludeTotalItem: boolean;
|
|
87
|
+
testId: string;
|
|
82
88
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
89
|
"update:chartType": (chartType: ChartType) => void;
|
|
84
90
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -124,6 +130,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
124
130
|
colorsMap: Record<string, string>;
|
|
125
131
|
valueSuffix?: string;
|
|
126
132
|
valuePrefix?: string;
|
|
133
|
+
indicateIncompleteData?: boolean;
|
|
134
|
+
tooltipExcludeTotalItem?: boolean;
|
|
135
|
+
testId?: string;
|
|
127
136
|
}>, {
|
|
128
137
|
chartType: ChartType;
|
|
129
138
|
dataSets: () => any[];
|
|
@@ -160,10 +169,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
160
169
|
colorsMap: () => {};
|
|
161
170
|
valueSuffix: string;
|
|
162
171
|
valuePrefix: string;
|
|
172
|
+
indicateIncompleteData: boolean;
|
|
173
|
+
tooltipExcludeTotalItem: boolean;
|
|
174
|
+
testId: string;
|
|
163
175
|
}>>> & {
|
|
164
176
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
165
177
|
}, {
|
|
166
178
|
header: string;
|
|
179
|
+
testId: string;
|
|
167
180
|
height: string;
|
|
168
181
|
loading: boolean;
|
|
169
182
|
visibleIds: unknown[];
|
|
@@ -198,6 +211,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
198
211
|
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
199
212
|
tooltipOrder: TooltipOrder;
|
|
200
213
|
colorsMap: Record<string, string>;
|
|
214
|
+
indicateIncompleteData: boolean;
|
|
215
|
+
tooltipExcludeTotalItem: boolean;
|
|
201
216
|
}>, {
|
|
202
217
|
"subheader-tooltip"?(_: {}): any;
|
|
203
218
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const
|
|
1
|
+
import e from "./ChartPlane.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a685cf5e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|