@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.
Files changed (58) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. 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
  8. package/DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css +1 -0
  9. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  10. 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
  11. package/components/chart/Chart.vue.d.ts +5 -0
  12. package/components/chart/Chart.vue.js +4 -4
  13. package/components/chart/Chart.vue2.js +122 -112
  14. package/components/chart/ChartHeader.vue.d.ts +5 -0
  15. package/components/chart/ChartHeader.vue.js +3 -3
  16. package/components/chart/ChartHeader.vue2.js +49 -44
  17. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  18. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  19. package/components/chart/ChartHeaderTrend.vue2.js +42 -39
  20. package/components/chart/ChartLegend.vue.d.ts +5 -0
  21. package/components/chart/ChartLegend.vue.js +3 -3
  22. package/components/chart/ChartLegend.vue2.js +76 -71
  23. package/components/chart/ChartPlane.vue.d.ts +5 -0
  24. package/components/chart/ChartPlane.vue.js +3 -3
  25. package/components/chart/ChartPlane.vue2.js +125 -119
  26. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  27. package/components/chart/ChartTooltip.vue.js +2 -2
  28. package/components/chart/ChartTooltip.vue2.js +38 -34
  29. package/components/chart/LegendSorting.vue.d.ts +5 -0
  30. package/components/chart/LegendSorting.vue.js +16 -14
  31. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  32. package/components/chart/SettingsHeader.vue.js +3 -3
  33. package/components/chart/SettingsHeader.vue2.js +36 -29
  34. package/components/chart/index.d.ts +20 -1
  35. package/components/columnConfigurator/ColumnConfigurator.vue.js +3 -3
  36. package/components/columnConfigurator/ColumnConfigurator.vue2.js +19 -19
  37. package/components/columnConfigurator/index.d.ts +1 -0
  38. package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -0
  39. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  40. package/components/dropdown/v4/DropdownV4.vue2.js +3 -2
  41. package/components/dropdown/v4/index.d.ts +1 -0
  42. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  43. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  44. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  45. package/components/emptyState/v4/index.d.ts +20 -1
  46. package/index.d.ts +42 -2
  47. package/index.js +1 -1
  48. package/package.json +2 -1
  49. package/testids/index.d.ts +23 -0
  50. package/testids/index.js +28 -24
  51. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
  52. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  53. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
  54. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  55. package/ChartPlane.vue_vue_type_style_index_0_scoped_908ef54f_lang.css +0 -1
  56. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_lang.css +0 -1
  57. package/DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css +0 -1
  58. 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 m, createElementBlock as s, createVNode as r, unref as n, isRef as d, withCtx as a, mergeProps as c } from "vue";
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(o, { emit: p }) {
22
- const t = g(o, "selected", p);
23
- return (v, i) => (m(), s("div", y, [
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(t),
26
- "onUpdate:selected": i[0] || (i[0] = (e) => d(t) ? t.value = e : null),
27
- "display-value": (e) => e[o.optionNameKey],
28
- options: o.options,
29
- "option-name-key": o.optionNameKey,
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: e }) => [
33
- r(n(f), c(e, {
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.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css"; //*');
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-01f78cd7"]]);
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
- c as default
6
+ a as default
7
7
  };
@@ -1,66 +1,73 @@
1
- import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css"; import { defineComponent as h, computed as g, openBlock as y, createElementBlock as f, createElementVNode as r, normalizeClass as l, renderSlot as i, createVNode as p, unref as t, isRef as v, withCtx as T, mergeProps as b } from "vue";
2
- import w from "../dropdown/v4/DropdownV4.vue.js";
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 k from "../dropdown/v4/ButtonDropdownTrigger.vue.js";
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 c } from "./consts.js";
13
- const B = { class: "settings-header-container" }, C = { class: "chart-type-selection" }, H = /* @__PURE__ */ h({
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(s, { emit: m }) {
21
- const u = s, o = g({
23
+ setup(r, { emit: h }) {
24
+ const a = r, o = T({
22
25
  get() {
23
- return c.find(({ id: e }) => e === u.chartType);
26
+ return f.find(({ id: e }) => e === a.chartType);
24
27
  },
25
28
  set(e) {
26
- m("update:chartType", e.id);
29
+ h("update:chartType", e.id);
27
30
  }
28
- }), d = (e) => `Chart: ${e.name}`;
29
- return (e, a) => (y(), f("div", B, [
30
- r("div", {
31
- class: l(["settings", { "settings-spacer": !s.hideLegend }])
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
- r("div", C, [
35
- p(t(w), {
40
+ s("div", C, [
41
+ u(t(N), {
36
42
  selected: t(o),
37
- "onUpdate:selected": a[0] || (a[0] = (n) => v(o) ? o.value = n : null),
38
- options: t(c),
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": d,
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": T(({ buttonTriggerProps: n }) => [
45
- p(t(k), b(n, {
46
- label: d(t(o))
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
- r("div", null, [
59
+ s("div", null, [
53
60
  i(e.$slots, "metric", {}, void 0, !0)
54
61
  ])
55
62
  ], 2),
56
- r("div", {
57
- class: l(["breakdowns", { "breakdowns-border": !s.hideLegend }])
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
- H as default
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 _ from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c13770d4"]]);
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.vue_vue_type_style_index_0_scoped_c13770d4_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";
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, l) => (t[l.sectionId] = (i.selection ?? []).map((e) => P(l, e)).filter((e) => e), 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, l) => {
40
- const e = l;
41
- a.value[t] = e, e.forEach((o) => {
42
- o.children?.length > 0 && (d.value = {
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
- [o.id]: o.children[0].id
44
+ [l.id]: l.children[0].id
45
45
  });
46
46
  });
47
47
  }, $ = f(
48
48
  () => Object.values(a.value).reduce(
49
- (t, l) => t.concat(l.map(({ id: e }) => e)),
49
+ (t, o) => t.concat(o.map(({ id: e }) => e)),
50
50
  []
51
51
  )
52
52
  );
53
- I($, (t, l) => {
54
- JSON.stringify(t) !== JSON.stringify(l) && m("update:selection", t);
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((l) => l !== t)
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, l) => (p(), v("div", O({ class: "column-configurator" }, s(y)[s(c).WRAPPER]), [
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": (o) => a.value[e.sectionId] = o,
72
+ "onUpdate:items": (l) => a.value[e.sectionId] = l,
73
73
  "open-id": r.value,
74
- "onUpdate:open-id": l[0] || (l[0] = (o) => r.value = o),
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": l[1] || (l[1] = (o) => U(d) ? d.value = o : null),
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": (o) => S(e.sectionId, o)
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: o }) => [
99
+ menu: h(({ item: l }) => [
100
100
  u(k, {
101
- "test-id": `${n.testId}-${s(c).REMOVE_BUTTON}-${o.id}`,
102
- onClick: (j) => b(o.id)
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 };
@@ -368,6 +368,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
368
368
  disabled: boolean;
369
369
  label: any;
370
370
  onClick: () => void;
371
+ testId: string;
371
372
  };
372
373
  defaultTriggerProps: {
373
374
  placeholder: string;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
- /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css"; //*');
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__ */ e(o, [["__scopeId", "data-v-f9907ea0"]]);
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.vue_vue_type_style_index_0_scoped_f9907ea0_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";
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,
@@ -3206,6 +3206,7 @@ declare const DropdownTypes: () => (({
3206
3206
  disabled: boolean;
3207
3207
  label: any;
3208
3208
  onClick: () => void;
3209
+ testId: string;
3209
3210
  };
3210
3211
  defaultTriggerProps: {
3211
3212
  placeholder: string;
@@ -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.vue_vue_type_style_index_0_scoped_18728498_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-18728498"]]);
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
  };