@ironsource/shared-ui 2.1.12-rc.50 → 2.1.12-rc.52
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_c13770d4_lang.css → ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css} +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_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/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +122 -112
- 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 +42 -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 +5 -0
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +125 -119
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +38 -34
- 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/index.d.ts +20 -1
- package/components/columnConfigurator/ColumnConfigurator.vue.js +3 -3
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +19 -19
- package/components/columnConfigurator/index.d.ts +1 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +3 -2
- package/components/dropdown/v4/index.d.ts +1 -0
- 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/index.d.ts +42 -2
- package/index.js +1 -1
- package/package.json +2 -1
- package/testids/index.d.ts +23 -0
- package/testids/index.js +28 -24
- package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_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_2f916aeb_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_908ef54f_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
|
@@ -2,19 +2,24 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
2
2
|
selected: unknown;
|
|
3
3
|
options: unknown[];
|
|
4
4
|
optionNameKey: string;
|
|
5
|
+
testId?: string;
|
|
5
6
|
}>, {
|
|
6
7
|
options: () => any[];
|
|
8
|
+
testId: string;
|
|
7
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
10
|
"update:selected": (option: unknown) => void;
|
|
9
11
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
12
|
selected: unknown;
|
|
11
13
|
options: unknown[];
|
|
12
14
|
optionNameKey: string;
|
|
15
|
+
testId?: string;
|
|
13
16
|
}>, {
|
|
14
17
|
options: () => any[];
|
|
18
|
+
testId: string;
|
|
15
19
|
}>>> & {
|
|
16
20
|
"onUpdate:selected"?: (option: unknown) => any;
|
|
17
21
|
}, {
|
|
22
|
+
testId: string;
|
|
18
23
|
options: unknown[];
|
|
19
24
|
}>;
|
|
20
25
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as
|
|
1
|
+
import { defineComponent as l, openBlock as s, createElementBlock as m, createVNode as r, unref as n, isRef as d, withCtx as a, mergeProps as c } from "vue";
|
|
2
2
|
import u from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import f from "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -15,28 +15,30 @@ const y = { class: "legend-sorting" }, L = /* @__PURE__ */ l({
|
|
|
15
15
|
props: {
|
|
16
16
|
selected: null,
|
|
17
17
|
options: { default: () => [] },
|
|
18
|
-
optionNameKey: null
|
|
18
|
+
optionNameKey: null,
|
|
19
|
+
testId: { default: "" }
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:selected"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
return (v, i) => (
|
|
22
|
+
setup(e, { emit: p }) {
|
|
23
|
+
const o = g(e, "selected", p);
|
|
24
|
+
return (v, i) => (s(), m("div", y, [
|
|
24
25
|
r(n(u), {
|
|
25
|
-
selected: n(
|
|
26
|
-
"onUpdate:selected": i[0] || (i[0] = (
|
|
27
|
-
"display-value": (
|
|
28
|
-
options:
|
|
29
|
-
"option-name-key":
|
|
30
|
-
placement: "bottom-end"
|
|
26
|
+
selected: n(o),
|
|
27
|
+
"onUpdate:selected": i[0] || (i[0] = (t) => d(o) ? o.value = t : null),
|
|
28
|
+
"display-value": (t) => t[e.optionNameKey],
|
|
29
|
+
options: e.options,
|
|
30
|
+
"option-name-key": e.optionNameKey,
|
|
31
|
+
placement: "bottom-end",
|
|
32
|
+
"test-id": e.testId
|
|
31
33
|
}, {
|
|
32
|
-
"dropdown-trigger": a(({ buttonTriggerProps:
|
|
33
|
-
r(n(f), c(
|
|
34
|
+
"dropdown-trigger": a(({ buttonTriggerProps: t }) => [
|
|
35
|
+
r(n(f), c(t, {
|
|
34
36
|
"icon-name": "funnel-simple",
|
|
35
37
|
"icon-type": "regular"
|
|
36
38
|
}), null, 16)
|
|
37
39
|
]),
|
|
38
40
|
_: 1
|
|
39
|
-
}, 8, ["selected", "display-value", "options", "option-name-key"])
|
|
41
|
+
}, 8, ["selected", "display-value", "options", "option-name-key", "test-id"])
|
|
40
42
|
]));
|
|
41
43
|
}
|
|
42
44
|
});
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { ChartType } from './types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
chartType: ChartType;
|
|
4
4
|
hideLegend: boolean;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}>, {
|
|
7
|
+
testId: string;
|
|
5
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
9
|
"update:chartType": (type: ChartType) => void;
|
|
7
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
11
|
chartType: ChartType;
|
|
9
12
|
hideLegend: boolean;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}>, {
|
|
15
|
+
testId: string;
|
|
10
16
|
}>>> & {
|
|
11
17
|
"onUpdate:chartType"?: (type: ChartType) => any;
|
|
12
|
-
}, {
|
|
18
|
+
}, {
|
|
19
|
+
testId: string;
|
|
20
|
+
}>, {
|
|
13
21
|
"before-chart-type"?(_: {}): any;
|
|
14
22
|
metric?(_: {}): any;
|
|
15
23
|
breakdowns?(_: {}): any;
|
|
@@ -24,6 +32,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
24
32
|
required: true;
|
|
25
33
|
};
|
|
26
34
|
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
27
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
44
|
new (): {
|
|
29
45
|
$slots: S;
|
|
@@ -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_a869d327_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a869d327"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,66 +1,73 @@
|
|
|
1
|
-
import "../../SettingsHeader.
|
|
2
|
-
import
|
|
1
|
+
import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css"; import { defineComponent as y, computed as T, openBlock as v, createElementBlock as I, mergeProps as m, unref as t, createElementVNode as s, normalizeClass as c, renderSlot as i, createVNode as u, isRef as b, withCtx as w } from "vue";
|
|
2
|
+
import N 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
|
|
7
|
+
import O 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
11
|
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
12
|
-
import { DROPDOWN_TYPE_OPTIONS as
|
|
13
|
-
|
|
12
|
+
import { DROPDOWN_TYPE_OPTIONS as f } from "./consts.js";
|
|
13
|
+
import { useTestIdAttrs as k } from "../../utils/testIds.js";
|
|
14
|
+
import { ChartSettingsHeaderTestIdModifiers as n } from "../../testids/index.js";
|
|
15
|
+
const C = { class: "chart-type-selection" }, M = /* @__PURE__ */ y({
|
|
14
16
|
__name: "SettingsHeader",
|
|
15
17
|
props: {
|
|
16
18
|
chartType: null,
|
|
17
|
-
hideLegend: { type: Boolean }
|
|
19
|
+
hideLegend: { type: Boolean },
|
|
20
|
+
testId: { default: "" }
|
|
18
21
|
},
|
|
19
22
|
emits: ["update:chartType"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
23
|
+
setup(r, { emit: h }) {
|
|
24
|
+
const a = r, o = T({
|
|
22
25
|
get() {
|
|
23
|
-
return
|
|
26
|
+
return f.find(({ id: e }) => e === a.chartType);
|
|
24
27
|
},
|
|
25
28
|
set(e) {
|
|
26
|
-
|
|
29
|
+
h("update:chartType", e.id);
|
|
27
30
|
}
|
|
28
|
-
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
}), l = (e) => `Chart: ${e.name}`, g = k(
|
|
32
|
+
a.testId,
|
|
33
|
+
n
|
|
34
|
+
);
|
|
35
|
+
return (e, p) => (v(), I("div", m({ class: "settings-header-container" }, t(g)[t(n).CONTAINER]), [
|
|
36
|
+
s("div", {
|
|
37
|
+
class: c(["settings", { "settings-spacer": !r.hideLegend }])
|
|
32
38
|
}, [
|
|
33
39
|
i(e.$slots, "before-chart-type", {}, void 0, !0),
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
s("div", C, [
|
|
41
|
+
u(t(N), {
|
|
36
42
|
selected: t(o),
|
|
37
|
-
"onUpdate:selected":
|
|
38
|
-
options: t(
|
|
43
|
+
"onUpdate:selected": p[0] || (p[0] = (d) => b(o) ? o.value = d : null),
|
|
44
|
+
options: t(f),
|
|
39
45
|
"option-name-key": "name",
|
|
40
|
-
"display-value":
|
|
46
|
+
"display-value": l,
|
|
41
47
|
placeholder: "Select chart type",
|
|
42
|
-
size: "small"
|
|
48
|
+
size: "small",
|
|
49
|
+
"test-id": `${r.testId}-${t(n).TYPE_DROPDOWN}`
|
|
43
50
|
}, {
|
|
44
|
-
"dropdown-trigger":
|
|
45
|
-
|
|
46
|
-
label:
|
|
51
|
+
"dropdown-trigger": w(({ buttonTriggerProps: d }) => [
|
|
52
|
+
u(t(O), m(d, {
|
|
53
|
+
label: l(t(o))
|
|
47
54
|
}), null, 16, ["label"])
|
|
48
55
|
]),
|
|
49
56
|
_: 1
|
|
50
|
-
}, 8, ["selected", "options"])
|
|
57
|
+
}, 8, ["selected", "options", "test-id"])
|
|
51
58
|
]),
|
|
52
|
-
|
|
59
|
+
s("div", null, [
|
|
53
60
|
i(e.$slots, "metric", {}, void 0, !0)
|
|
54
61
|
])
|
|
55
62
|
], 2),
|
|
56
|
-
|
|
57
|
-
class:
|
|
63
|
+
s("div", {
|
|
64
|
+
class: c(["breakdowns", { "breakdowns-border": !r.hideLegend }])
|
|
58
65
|
}, [
|
|
59
66
|
i(e.$slots, "breakdowns", {}, void 0, !0)
|
|
60
67
|
], 2)
|
|
61
|
-
]));
|
|
68
|
+
], 16));
|
|
62
69
|
}
|
|
63
70
|
});
|
|
64
71
|
export {
|
|
65
|
-
|
|
72
|
+
M as default
|
|
66
73
|
};
|
|
@@ -6,6 +6,7 @@ declare const ChartTypes: () => ({
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: Partial<{
|
|
8
8
|
header: string;
|
|
9
|
+
testId: string;
|
|
9
10
|
loading: boolean;
|
|
10
11
|
visibleIds: unknown[];
|
|
11
12
|
minVisible: number;
|
|
@@ -53,6 +54,10 @@ declare const ChartTypes: () => ({
|
|
|
53
54
|
type: import("vue").PropType<string>;
|
|
54
55
|
default: string;
|
|
55
56
|
};
|
|
57
|
+
testId: {
|
|
58
|
+
type: import("vue").PropType<string>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
56
61
|
loading: {
|
|
57
62
|
type: import("vue").PropType<boolean>;
|
|
58
63
|
default: boolean;
|
|
@@ -234,7 +239,7 @@ declare const ChartTypes: () => ({
|
|
|
234
239
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
235
240
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
236
241
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
237
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "valueSuffix" | "valuePrefix" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "indicateIncompleteData" | "tooltipExcludeTotalItem" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
|
|
242
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "testId" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "valueSuffix" | "valuePrefix" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "indicateIncompleteData" | "tooltipExcludeTotalItem" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
|
|
238
243
|
$attrs: {
|
|
239
244
|
[x: string]: unknown;
|
|
240
245
|
};
|
|
@@ -253,6 +258,10 @@ declare const ChartTypes: () => ({
|
|
|
253
258
|
type: import("vue").PropType<string>;
|
|
254
259
|
default: string;
|
|
255
260
|
};
|
|
261
|
+
testId: {
|
|
262
|
+
type: import("vue").PropType<string>;
|
|
263
|
+
default: string;
|
|
264
|
+
};
|
|
256
265
|
loading: {
|
|
257
266
|
type: import("vue").PropType<boolean>;
|
|
258
267
|
default: boolean;
|
|
@@ -440,6 +449,7 @@ declare const ChartTypes: () => ({
|
|
|
440
449
|
"update:sortSelected": (sortOption: unknown) => void;
|
|
441
450
|
}, string, {
|
|
442
451
|
header: string;
|
|
452
|
+
testId: string;
|
|
443
453
|
loading: boolean;
|
|
444
454
|
visibleIds: unknown[];
|
|
445
455
|
minVisible: number;
|
|
@@ -507,6 +517,10 @@ declare const ChartTypes: () => ({
|
|
|
507
517
|
type: import("vue").PropType<string>;
|
|
508
518
|
default: string;
|
|
509
519
|
};
|
|
520
|
+
testId: {
|
|
521
|
+
type: import("vue").PropType<string>;
|
|
522
|
+
default: string;
|
|
523
|
+
};
|
|
510
524
|
loading: {
|
|
511
525
|
type: import("vue").PropType<boolean>;
|
|
512
526
|
default: boolean;
|
|
@@ -697,6 +711,10 @@ declare const ChartTypes: () => ({
|
|
|
697
711
|
type: import("vue").PropType<string>;
|
|
698
712
|
default: string;
|
|
699
713
|
};
|
|
714
|
+
testId: {
|
|
715
|
+
type: import("vue").PropType<string>;
|
|
716
|
+
default: string;
|
|
717
|
+
};
|
|
700
718
|
loading: {
|
|
701
719
|
type: import("vue").PropType<boolean>;
|
|
702
720
|
default: boolean;
|
|
@@ -884,6 +902,7 @@ declare const ChartTypes: () => ({
|
|
|
884
902
|
"update:sortSelected": (sortOption: unknown) => void;
|
|
885
903
|
}, string, {
|
|
886
904
|
header: string;
|
|
905
|
+
testId: string;
|
|
887
906
|
loading: boolean;
|
|
888
907
|
visibleIds: unknown[];
|
|
889
908
|
minVisible: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnConfigurator.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ColumnConfigurator.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-702ad52e"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ColumnConfigurator.
|
|
1
|
+
import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css"; import { defineComponent as E, ref as g, computed as f, watch as I, openBlock as p, createElementBlock as v, mergeProps as O, unref as s, Fragment as w, renderList as T, createVNode as u, isRef as U, withCtx as h, createElementVNode as x } from "vue";
|
|
2
2
|
import N from "./SectionHeaderText.vue.js";
|
|
3
3
|
import R from "../sortableList/SortableSelectableList.vue.js";
|
|
4
4
|
import k from "../columnPicker/RemoveButton.vue.js";
|
|
@@ -30,50 +30,50 @@ const M = { class: "section-header" }, Q = /* @__PURE__ */ E({
|
|
|
30
30
|
I(
|
|
31
31
|
[() => i.selection, () => i.columnsConfig],
|
|
32
32
|
() => {
|
|
33
|
-
a.value = i.columnsConfig.reduce((t,
|
|
33
|
+
a.value = i.columnsConfig.reduce((t, o) => (t[o.sectionId] = (i.selection ?? []).map((e) => P(o, e)).filter((e) => e), t), {});
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
immediate: !0
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
const S = (t,
|
|
40
|
-
const e =
|
|
41
|
-
a.value[t] = e, e.forEach((
|
|
42
|
-
|
|
39
|
+
const S = (t, o) => {
|
|
40
|
+
const e = o;
|
|
41
|
+
a.value[t] = e, e.forEach((l) => {
|
|
42
|
+
l.children?.length > 0 && (d.value = {
|
|
43
43
|
...d.value,
|
|
44
|
-
[
|
|
44
|
+
[l.id]: l.children[0].id
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}, $ = f(
|
|
48
48
|
() => Object.values(a.value).reduce(
|
|
49
|
-
(t,
|
|
49
|
+
(t, o) => t.concat(o.map(({ id: e }) => e)),
|
|
50
50
|
[]
|
|
51
51
|
)
|
|
52
52
|
);
|
|
53
|
-
I($, (t
|
|
54
|
-
JSON.stringify(t) !== JSON.stringify(
|
|
53
|
+
I($, (t) => {
|
|
54
|
+
JSON.stringify(t) !== JSON.stringify(i.selection) && m("update:selection", t);
|
|
55
55
|
});
|
|
56
56
|
const b = (t) => {
|
|
57
57
|
m(
|
|
58
58
|
"update:selection",
|
|
59
|
-
i.selection.filter((
|
|
59
|
+
i.selection.filter((o) => o !== t)
|
|
60
60
|
), r.value === t && (r.value = null), d.value = A(d.value, [String(t)]);
|
|
61
61
|
}, y = V(
|
|
62
62
|
i.testId,
|
|
63
63
|
c
|
|
64
64
|
);
|
|
65
|
-
return (t,
|
|
65
|
+
return (t, o) => (p(), v("div", O({ class: "column-configurator" }, s(y)[s(c).WRAPPER]), [
|
|
66
66
|
(p(!0), v(w, null, T(n.columnsConfig, (e) => (p(), v("div", {
|
|
67
67
|
key: e.sectionId,
|
|
68
68
|
class: "column-section"
|
|
69
69
|
}, [
|
|
70
70
|
u(R, {
|
|
71
71
|
items: a.value[e.sectionId],
|
|
72
|
-
"onUpdate:items": (
|
|
72
|
+
"onUpdate:items": (l) => a.value[e.sectionId] = l,
|
|
73
73
|
"open-id": r.value,
|
|
74
|
-
"onUpdate:open-id":
|
|
74
|
+
"onUpdate:open-id": o[0] || (o[0] = (l) => r.value = l),
|
|
75
75
|
"selected-child-per-item": s(d),
|
|
76
|
-
"onUpdate:selected-child-per-item":
|
|
76
|
+
"onUpdate:selected-child-per-item": o[1] || (o[1] = (l) => U(d) ? d.value = l : null),
|
|
77
77
|
"always-visible-count": n.alwaysVisibleCount,
|
|
78
78
|
"is-loading": n.loading,
|
|
79
79
|
variant: "compact",
|
|
@@ -92,14 +92,14 @@ const M = { class: "section-header" }, Q = /* @__PURE__ */ E({
|
|
|
92
92
|
selected: a.value[e.sectionId],
|
|
93
93
|
section: e,
|
|
94
94
|
"test-id": n.testId,
|
|
95
|
-
"onUpdate:selected": (
|
|
95
|
+
"onUpdate:selected": (l) => S(e.sectionId, l)
|
|
96
96
|
}, null, 8, ["selected", "section", "test-id", "onUpdate:selected"])
|
|
97
97
|
])
|
|
98
98
|
]),
|
|
99
|
-
menu: h(({ item:
|
|
99
|
+
menu: h(({ item: l }) => [
|
|
100
100
|
u(k, {
|
|
101
|
-
"test-id": `${n.testId}-${s(c).REMOVE_BUTTON}-${
|
|
102
|
-
onClick: (j) => b(
|
|
101
|
+
"test-id": `${n.testId}-${s(c).REMOVE_BUTTON}-${l.id}`,
|
|
102
|
+
onClick: (j) => b(l.id)
|
|
103
103
|
}, null, 8, ["test-id", "onClick"])
|
|
104
104
|
]),
|
|
105
105
|
_: 2
|
|
@@ -69,4 +69,5 @@ declare const ColumnConfiguratorTypes: () => import("vue").DefineComponent<{
|
|
|
69
69
|
columnsConfig: import("./ColumnConfigurator.types").ColumnConfigSection[];
|
|
70
70
|
childSelection: Record<string, string | number>;
|
|
71
71
|
}>[];
|
|
72
|
+
export type { ColumnConfigSection } from './ColumnConfigurator.types';
|
|
72
73
|
export { ColumnConfigurator, ColumnConfiguratorTypes };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */
|
|
5
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2d66b7b6"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as B, watch as Te, toRaw as v, openBlock as a, createElementBlock as r, mergeProps as m, unref as t, renderSlot as u, createElementVNode as f, createVNode as d, withCtx as c, Transition as we, normalizeClass as x, normalizeStyle as be, createTextVNode as T, createCommentVNode as s, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as ve, renderList as Se, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
|
|
2
2
|
import N from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
@@ -461,7 +461,8 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
461
461
|
open: t(y),
|
|
462
462
|
disabled: e.disabled,
|
|
463
463
|
label: t(le) || e.placeholder,
|
|
464
|
-
onClick: () => t(S)()
|
|
464
|
+
onClick: () => t(S)(),
|
|
465
|
+
testId: e.testId
|
|
465
466
|
},
|
|
466
467
|
defaultTriggerProps: {
|
|
467
468
|
placeholder: e.placeholder,
|
|
@@ -6,6 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
iconName?: string;
|
|
7
7
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
8
8
|
iconSize?: string;
|
|
9
|
+
testId?: string;
|
|
9
10
|
}>, {
|
|
10
11
|
title: string;
|
|
11
12
|
subtitle: any;
|
|
@@ -14,6 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
15
|
iconName: any;
|
|
15
16
|
iconType: string;
|
|
16
17
|
iconSize: string;
|
|
18
|
+
testId: string;
|
|
17
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
20
|
click: () => void;
|
|
19
21
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -24,6 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
26
|
iconName?: string;
|
|
25
27
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
26
28
|
iconSize?: string;
|
|
29
|
+
testId?: string;
|
|
27
30
|
}>, {
|
|
28
31
|
title: string;
|
|
29
32
|
subtitle: any;
|
|
@@ -32,10 +35,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
35
|
iconName: any;
|
|
33
36
|
iconType: string;
|
|
34
37
|
iconSize: string;
|
|
38
|
+
testId: string;
|
|
35
39
|
}>>> & {
|
|
36
40
|
onClick?: () => any;
|
|
37
41
|
}, {
|
|
38
42
|
title: string;
|
|
43
|
+
testId: string;
|
|
39
44
|
variant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
|
|
40
45
|
iconName: string;
|
|
41
46
|
iconSize: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./EmptyStateV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../EmptyStateV4.
|
|
4
|
-
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-76757f22"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|