@ironsource/shared-ui 2.1.12-rc.50 → 2.1.12-rc.51

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 (55) 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/DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css +1 -0
  8. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  9. 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
  10. package/components/chart/Chart.vue.d.ts +5 -0
  11. package/components/chart/Chart.vue.js +4 -4
  12. package/components/chart/Chart.vue2.js +122 -112
  13. package/components/chart/ChartHeader.vue.d.ts +5 -0
  14. package/components/chart/ChartHeader.vue.js +3 -3
  15. package/components/chart/ChartHeader.vue2.js +49 -44
  16. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  17. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  18. package/components/chart/ChartHeaderTrend.vue2.js +42 -39
  19. package/components/chart/ChartLegend.vue.d.ts +5 -0
  20. package/components/chart/ChartLegend.vue.js +3 -3
  21. package/components/chart/ChartLegend.vue2.js +76 -71
  22. package/components/chart/ChartPlane.vue.d.ts +5 -0
  23. package/components/chart/ChartPlane.vue.js +3 -3
  24. package/components/chart/ChartPlane.vue2.js +125 -119
  25. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  26. package/components/chart/ChartTooltip.vue.js +2 -2
  27. package/components/chart/ChartTooltip.vue2.js +38 -34
  28. package/components/chart/LegendSorting.vue.d.ts +5 -0
  29. package/components/chart/LegendSorting.vue.js +16 -14
  30. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  31. package/components/chart/SettingsHeader.vue.js +3 -3
  32. package/components/chart/SettingsHeader.vue2.js +36 -29
  33. package/components/chart/index.d.ts +20 -1
  34. package/components/columnConfigurator/index.d.ts +1 -0
  35. package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -0
  36. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  37. package/components/dropdown/v4/DropdownV4.vue2.js +3 -2
  38. package/components/dropdown/v4/index.d.ts +1 -0
  39. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  40. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  41. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  42. package/components/emptyState/v4/index.d.ts +20 -1
  43. package/index.d.ts +42 -2
  44. package/index.js +1 -1
  45. package/package.json +2 -1
  46. package/testids/index.d.ts +23 -0
  47. package/testids/index.js +28 -24
  48. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
  49. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  50. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
  51. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  52. package/ChartPlane.vue_vue_type_style_index_0_scoped_908ef54f_lang.css +0 -1
  53. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_lang.css +0 -1
  54. package/DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css +0 -1
  55. 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;
@@ -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
  };
@@ -1,14 +1,16 @@
1
- import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css"; import p from "../../../_virtual/dynamic-import-helper.js";
2
- import { defineComponent as v, computed as y, defineAsyncComponent as b, openBlock as e, createElementBlock as k, createBlock as i, unref as n, createCommentVNode as a, createElementVNode as N, renderSlot as s, withCtx as c, createTextVNode as r, toDisplayString as l } from "vue";
3
- import I from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css"; import I from "../../../_virtual/dynamic-import-helper.js";
2
+ import { defineComponent as T, computed as N, defineAsyncComponent as b, openBlock as o, createElementBlock as k, mergeProps as s, unref as e, createBlock as n, createCommentVNode as a, createElementVNode as C, renderSlot as p, withCtx as m, createTextVNode as l, toDisplayString as u } from "vue";
3
+ import E from "../../button/v4/ButtonV4.vue.js";
4
4
  import "../../button/v4/IconButtonV4.vue.js";
5
5
  import "../../button/v4/ButtonGroup.vue.js";
6
6
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
7
- import u from "../../typography/v4/Typography.vue.js";
8
- import { capitalizeFirstLetter as C, snakeCaseToCamelCase as T } from "../../../utils/string.js";
9
- import S from "../../icon/v4/IconV4.vue.js";
7
+ import y from "../../typography/v4/Typography.vue.js";
8
+ import { capitalizeFirstLetter as S, snakeCaseToCamelCase as g } from "../../../utils/string.js";
9
+ import x from "../../icon/v4/IconV4.vue.js";
10
10
  import "../../icon/v4/IconFlag.vue.js";
11
- const g = { class: "empty-state" }, x = { class: "title-wrapper" }, j = /* @__PURE__ */ v({
11
+ import { useTestIdAttrs as z } from "../../../utils/testIds.js";
12
+ import { EmptyStateTestIdModifiers as r } from "../../../testids/index.js";
13
+ const A = { class: "title-wrapper" }, P = /* @__PURE__ */ T({
12
14
  __name: "EmptyStateV4",
13
15
  props: {
14
16
  title: { default: "No data to display" },
@@ -17,67 +19,68 @@ const g = { class: "empty-state" }, x = { class: "title-wrapper" }, j = /* @__PU
17
19
  buttonText: { default: void 0 },
18
20
  iconName: { default: null },
19
21
  iconType: { default: "regular" },
20
- iconSize: { default: "48px" }
22
+ iconSize: { default: "48px" },
23
+ testId: { default: "" }
21
24
  },
22
25
  emits: ["click"],
23
26
  setup(t) {
24
- const d = t, f = y(() => {
25
- const o = C(T(d.variant));
26
- return b(() => p(/* @__PURE__ */ Object.assign({ "./icons/IconError.vue": () => import("./icons/IconError.vue.js"), "./icons/IconFiles.vue": () => import("./icons/IconFiles.vue.js"), "./icons/IconNoAccess.vue": () => import("./icons/IconNoAccess.vue.js"), "./icons/IconNoData.vue": () => import("./icons/IconNoData.vue.js"), "./icons/IconNoResults.vue": () => import("./icons/IconNoResults.vue.js"), "./icons/IconSettings.vue": () => import("./icons/IconSettings.vue.js") }), `./icons/Icon${o}.vue`));
27
- });
28
- return (o, m) => (e(), k("div", g, [
29
- t.variant && !t.iconName ? (e(), i(n(f), {
27
+ const d = t, v = N(() => {
28
+ const i = S(g(d.variant));
29
+ return b(() => I(/* @__PURE__ */ Object.assign({ "./icons/IconError.vue": () => import("./icons/IconError.vue.js"), "./icons/IconFiles.vue": () => import("./icons/IconFiles.vue.js"), "./icons/IconNoAccess.vue": () => import("./icons/IconNoAccess.vue.js"), "./icons/IconNoData.vue": () => import("./icons/IconNoData.vue.js"), "./icons/IconNoResults.vue": () => import("./icons/IconNoResults.vue.js"), "./icons/IconSettings.vue": () => import("./icons/IconSettings.vue.js") }), `./icons/Icon${i}.vue`));
30
+ }), c = z(d.testId, r);
31
+ return (i, f) => (o(), k("div", s({ class: "empty-state" }, e(c)[e(r).CONTAINER]), [
32
+ t.variant && !t.iconName ? (o(), n(e(v), {
30
33
  key: 0,
31
34
  class: "empty-variant-icon"
32
35
  })) : a("", !0),
33
- t.iconName ? (e(), i(n(S), {
36
+ t.iconName ? (o(), n(e(x), {
34
37
  key: 1,
35
38
  class: "custom-empty-icon",
36
39
  name: t.iconName,
37
40
  size: t.iconSize,
38
41
  type: t.iconType
39
42
  }, null, 8, ["name", "size", "type"])) : a("", !0),
40
- N("div", x, [
41
- s(o.$slots, "content", {}, () => [
42
- t.title ? (e(), i(n(u), {
43
+ C("div", A, [
44
+ p(i.$slots, "content", {}, () => [
45
+ t.title ? (o(), n(e(y), s({
43
46
  key: 0,
44
47
  variant: "h4",
45
48
  class: "title"
46
- }, {
47
- default: c(() => [
48
- r(l(t.title), 1)
49
+ }, e(c)[e(r).TITLE]), {
50
+ default: m(() => [
51
+ l(u(t.title), 1)
49
52
  ]),
50
53
  _: 1
51
- })) : a("", !0),
52
- t.subtitle ? (e(), i(n(u), {
54
+ }, 16)) : a("", !0),
55
+ t.subtitle ? (o(), n(e(y), s({
53
56
  key: 1,
54
57
  variant: "body1",
55
58
  class: "subtitle"
56
- }, {
57
- default: c(() => [
58
- r(l(t.subtitle), 1)
59
+ }, e(c)[e(r).SUBTITLE]), {
60
+ default: m(() => [
61
+ l(u(t.subtitle), 1)
59
62
  ]),
60
63
  _: 1
61
- })) : a("", !0)
64
+ }, 16)) : a("", !0)
62
65
  ], !0)
63
66
  ]),
64
- s(o.$slots, "button", {}, () => [
65
- t.buttonText ? (e(), i(n(I), {
67
+ p(i.$slots, "button", {}, () => [
68
+ t.buttonText ? (o(), n(e(E), {
66
69
  key: 0,
67
70
  variant: "outlined",
68
71
  color: "default",
69
72
  class: "button",
70
- onClick: m[0] || (m[0] = (z) => o.$emit("click"))
73
+ onClick: f[0] || (f[0] = (B) => i.$emit("click"))
71
74
  }, {
72
- default: c(() => [
73
- r(l(t.buttonText), 1)
75
+ default: m(() => [
76
+ l(u(t.buttonText), 1)
74
77
  ]),
75
78
  _: 1
76
79
  })) : a("", !0)
77
80
  ], !0)
78
- ]));
81
+ ], 16));
79
82
  }
80
83
  });
81
84
  export {
82
- j as default
85
+ P as default
83
86
  };
@@ -5,6 +5,7 @@ declare const EmptyStateTypes: () => ({
5
5
  $data: {};
6
6
  $props: Partial<{
7
7
  title: string;
8
+ testId: string;
8
9
  variant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
9
10
  iconName: string;
10
11
  iconSize: string;
@@ -16,6 +17,10 @@ declare const EmptyStateTypes: () => ({
16
17
  type: import("vue").PropType<string>;
17
18
  default: string;
18
19
  };
20
+ testId: {
21
+ type: import("vue").PropType<string>;
22
+ default: string;
23
+ };
19
24
  variant: {
20
25
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
21
26
  default: string;
@@ -42,7 +47,7 @@ declare const EmptyStateTypes: () => ({
42
47
  };
43
48
  }>> & {
44
49
  onClick?: () => any;
45
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "iconName" | "iconSize" | "subtitle" | "iconType" | "buttonText">;
50
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "testId" | "variant" | "iconName" | "iconSize" | "subtitle" | "iconType" | "buttonText">;
46
51
  $attrs: {
47
52
  [x: string]: unknown;
48
53
  };
@@ -61,6 +66,10 @@ declare const EmptyStateTypes: () => ({
61
66
  type: import("vue").PropType<string>;
62
67
  default: string;
63
68
  };
69
+ testId: {
70
+ type: import("vue").PropType<string>;
71
+ default: string;
72
+ };
64
73
  variant: {
65
74
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
66
75
  default: string;
@@ -91,6 +100,7 @@ declare const EmptyStateTypes: () => ({
91
100
  click: () => void;
92
101
  }, string, {
93
102
  title: string;
103
+ testId: string;
94
104
  variant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
95
105
  iconName: string;
96
106
  iconSize: string;
@@ -122,6 +132,10 @@ declare const EmptyStateTypes: () => ({
122
132
  type: import("vue").PropType<string>;
123
133
  default: string;
124
134
  };
135
+ testId: {
136
+ type: import("vue").PropType<string>;
137
+ default: string;
138
+ };
125
139
  variant: {
126
140
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
127
141
  default: string;
@@ -157,6 +171,10 @@ declare const EmptyStateTypes: () => ({
157
171
  type: import("vue").PropType<string>;
158
172
  default: string;
159
173
  };
174
+ testId: {
175
+ type: import("vue").PropType<string>;
176
+ default: string;
177
+ };
160
178
  variant: {
161
179
  type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
162
180
  default: string;
@@ -187,6 +205,7 @@ declare const EmptyStateTypes: () => ({
187
205
  click: () => void;
188
206
  }, string, {
189
207
  title: string;
208
+ testId: string;
190
209
  variant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
191
210
  iconName: string;
192
211
  iconSize: string;