@ironsource/shared-ui 2.2.0-test.5 → 2.2.0-test.6

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 (64) hide show
  1. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  2. package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
  3. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
  5. package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
  6. package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
  7. package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
  8. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
  9. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  10. package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
  11. package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
  12. package/components/appHeader/AppHeader.vue.js +3 -3
  13. package/components/appHeader/AppHeader.vue2.js +43 -44
  14. package/components/chart/ChartHeader.vue.js +2 -2
  15. package/components/chart/ChartHeader.vue2.js +2 -2
  16. package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
  17. package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
  18. package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
  19. package/components/columnPicker/ColumnPicker.vue.js +3 -3
  20. package/components/columnPicker/ColumnPicker.vue2.js +173 -153
  21. package/components/columnPicker/index.d.ts +7 -1
  22. package/components/dateRange/common/CalendarMonth.common.js +46 -41
  23. package/components/dateRange/common/DateRange.common.d.ts +1 -0
  24. package/components/dateRange/common/DateRange.common.js +39 -38
  25. package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
  26. package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
  27. package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
  28. package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
  29. package/components/dateRange/v3/DateRange.vue.js +2 -2
  30. package/components/dateRange/v3/DateRange.vue2.js +2 -1
  31. package/components/dateRange/v3/index.d.ts +20 -1
  32. package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
  33. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  34. package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
  35. package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
  36. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  37. package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
  38. package/components/dateRange/v4/index.d.ts +20 -1
  39. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  40. package/components/icon/v4/IconV4.vue.js +2 -2
  41. package/components/icon/v4/IconV4.vue2.js +27 -26
  42. package/components/icon/v4/index.d.ts +20 -1
  43. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  44. package/components/switch/v4/SwitchV4.vue.js +4 -4
  45. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  46. package/components/switch/v4/index.d.ts +9 -0
  47. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  48. package/components/table/v4/DataGrid.vue.js +3 -3
  49. package/components/table/v4/DataGrid.vue2.js +126 -124
  50. package/components/table/v4/index.d.ts +7 -1
  51. package/index.d.ts +112 -6
  52. package/index.js +1 -1
  53. package/package.json +1 -1
  54. package/AppHeader.vue_vue_type_style_index_0_scoped_4c813f30_lang.css +0 -1
  55. package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
  56. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
  57. package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
  58. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
  59. package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +0 -1
  60. package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
  61. package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
  62. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  63. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
  64. package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
@@ -1,7 +1,7 @@
1
- import "../../../IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css"; import { defineComponent as S, useCssVars as w, unref as s, useSlots as C, computed as o, watch as _, openBlock as u, createElementBlock as f, normalizeClass as b, createCommentVNode as z, renderSlot as I } from "vue";
2
- import { useStorage as T } from "../../../composables/useStorage.js";
3
- import { ASSETS_BASE_URL as U } from "./consts.js";
4
- const V = ["innerHTML"], B = /* @__PURE__ */ S({
1
+ import "../../../IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css"; import { defineComponent as w, useCssVars as C, unref as l, useSlots as b, computed as o, watch as _, openBlock as u, createElementBlock as f, normalizeClass as p, createCommentVNode as z, renderSlot as B } from "vue";
2
+ import { useStorage as I } from "../../../composables/useStorage.js";
3
+ import { ASSETS_BASE_URL as T } from "./consts.js";
4
+ const U = ["innerHTML"], x = /* @__PURE__ */ w({
5
5
  __name: "IconV4",
6
6
  props: {
7
7
  type: { default: "regular" },
@@ -10,62 +10,63 @@ const V = ["innerHTML"], B = /* @__PURE__ */ S({
10
10
  size: { default: null },
11
11
  height: { default: null },
12
12
  width: { default: null },
13
- platform: { default: null }
13
+ platform: { default: null },
14
+ circled: { type: Boolean, default: !1 }
14
15
  },
15
16
  setup(r) {
16
17
  const e = r;
17
- w((t) => ({
18
- "3d423be4": s(d),
19
- "513646c9": s(m),
20
- ad86ac0c: r.color
18
+ C((t) => ({
19
+ "9a94b0d2": l(m),
20
+ eb9f5d14: l(h),
21
+ "047031a6": r.color
21
22
  }));
22
- const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, p = C(), d = o(() => e.size || e.width), m = o(() => e.size || e.height), h = o(
23
+ const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, d = b(), m = o(() => e.size || e.width), h = o(() => e.size || e.height), y = o(
23
24
  () => e.platform ? `${e.type}/${e.platform}` : e.type
24
- ), y = o(() => {
25
+ ), g = o(() => {
25
26
  if (!e.name)
26
27
  return "";
27
28
  const t = e.name.split("/");
28
29
  return [e.name ? `icon-name--${t.at(-1)}` : ""];
29
30
  }), c = o(() => {
30
- if (p.default)
31
+ if (d.default)
31
32
  return "";
32
33
  if (!e.name)
33
34
  return console.error("Please provided icon name"), "";
34
35
  const t = e.type === "regular" || e.type === "bold" || e.type === "fill" ? "ph/" : "v4/", n = e.type === "bold" || e.type === "fill" ? `-${e.type}` : "";
35
- return `${U}/icons/${t}${h.value}/${e.name}${n}.svg`;
36
- }), l = T(`icon-${e.type}--${e.name}`);
37
- function g(t) {
36
+ return `${T}/icons/${t}${y.value}/${e.name}${n}.svg`;
37
+ }), s = I(`icon-${e.type}--${e.name}`);
38
+ function v(t) {
38
39
  return a[t] || (a[t] = fetch(t).then((n) => n.text()).finally(() => {
39
40
  delete a[t];
40
41
  }).catch((n) => {
41
42
  console.error(n);
42
43
  })), a[t];
43
44
  }
44
- function v(t) {
45
+ function $(t) {
45
46
  return t.replace(
46
47
  /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
47
48
  ""
48
49
  );
49
50
  }
50
51
  function i() {
51
- g(c.value).then((t) => {
52
- typeof t == "string" && t.startsWith("<svg") && (l.value = t);
52
+ v(c.value).then((t) => {
53
+ typeof t == "string" && t.startsWith("<svg") && (s.value = t);
53
54
  });
54
55
  }
55
- !l.value && c.value && i();
56
- const $ = o(() => v(l.value ?? ""));
56
+ !s.value && c.value && i();
57
+ const S = o(() => $(s.value ?? ""));
57
58
  return _(() => e.name, i), (t, n) => (u(), f("span", {
58
- class: b(["icon", s(y)])
59
+ class: p(["icon", l(g)])
59
60
  }, [
60
61
  t.$slots.default ? z("", !0) : (u(), f("span", {
61
62
  key: 0,
62
- class: "icon-wrapper",
63
- innerHTML: s($)
64
- }, null, 8, V)),
65
- I(t.$slots, "default", {}, void 0, !0)
63
+ class: p(["icon-wrapper", { "icon-wrapper--circled": r.circled }]),
64
+ innerHTML: l(S)
65
+ }, null, 10, U)),
66
+ B(t.$slots, "default", {}, void 0, !0)
66
67
  ], 2));
67
68
  }
68
69
  });
69
70
  export {
70
- B as default
71
+ x as default
71
72
  };
@@ -11,6 +11,7 @@ declare const IconTypes: () => ({
11
11
  height: string;
12
12
  width: string;
13
13
  platform: string;
14
+ circled: boolean;
14
15
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
16
  name: {
16
17
  type: import("vue").PropType<string>;
@@ -40,7 +41,11 @@ declare const IconTypes: () => ({
40
41
  type: import("vue").PropType<string>;
41
42
  default: any;
42
43
  };
43
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width" | "platform">;
44
+ circled: {
45
+ type: import("vue").PropType<boolean>;
46
+ default: boolean;
47
+ };
48
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width" | "platform" | "circled">;
44
49
  $attrs: {
45
50
  [x: string]: unknown;
46
51
  };
@@ -83,6 +88,10 @@ declare const IconTypes: () => ({
83
88
  type: import("vue").PropType<string>;
84
89
  default: any;
85
90
  };
91
+ circled: {
92
+ type: import("vue").PropType<boolean>;
93
+ default: boolean;
94
+ };
86
95
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
87
96
  name: string;
88
97
  type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -91,6 +100,7 @@ declare const IconTypes: () => ({
91
100
  height: string;
92
101
  width: string;
93
102
  platform: string;
103
+ circled: boolean;
94
104
  }, {}, string> & {
95
105
  beforeCreate?: (() => void) | (() => void)[];
96
106
  created?: (() => void) | (() => void)[];
@@ -140,6 +150,10 @@ declare const IconTypes: () => ({
140
150
  type: import("vue").PropType<string>;
141
151
  default: any;
142
152
  };
153
+ circled: {
154
+ type: import("vue").PropType<boolean>;
155
+ default: boolean;
156
+ };
143
157
  }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
144
158
  __isFragment?: never;
145
159
  __isTeleport?: never;
@@ -173,6 +187,10 @@ declare const IconTypes: () => ({
173
187
  type: import("vue").PropType<string>;
174
188
  default: any;
175
189
  };
190
+ circled: {
191
+ type: import("vue").PropType<boolean>;
192
+ default: boolean;
193
+ };
176
194
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
177
195
  name: string;
178
196
  type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -181,6 +199,7 @@ declare const IconTypes: () => ({
181
199
  height: string;
182
200
  width: string;
183
201
  platform: string;
202
+ circled: boolean;
184
203
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
185
204
  $slots: {
186
205
  default?(_: {}): any;
@@ -7,12 +7,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  iconKey?: string;
8
8
  tooltipTextKey?: string;
9
9
  tooltipPlacement?: TooltipPositions;
10
+ iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
10
11
  }>, {
11
12
  testId: string;
12
13
  variant: string;
13
14
  iconKey: string;
14
15
  tooltipTextKey: string;
15
16
  tooltipPlacement: string;
17
+ iconSize: string;
16
18
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
19
  "update:modelValue": (...args: any[]) => void;
18
20
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -23,18 +25,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
23
25
  iconKey?: string;
24
26
  tooltipTextKey?: string;
25
27
  tooltipPlacement?: TooltipPositions;
28
+ iconSize?: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
26
29
  }>, {
27
30
  testId: string;
28
31
  variant: string;
29
32
  iconKey: string;
30
33
  tooltipTextKey: string;
31
34
  tooltipPlacement: string;
35
+ iconSize: string;
32
36
  }>>> & {
33
37
  "onUpdate:modelValue"?: (...args: any[]) => any;
34
38
  }, {
35
39
  testId: string;
36
40
  variant: 'primary' | 'default';
37
41
  tooltipPlacement: TooltipPositions;
42
+ iconSize: 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge';
38
43
  iconKey: string;
39
44
  tooltipTextKey: string;
40
45
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./SwitchV4.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0a80c49f"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b71a806e"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as r, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
1
+ import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css"; import { defineComponent as T, ref as h, onMounted as k, openBlock as c, createElementBlock as u, normalizeClass as m, unref as a, Fragment as x, renderList as V, createBlock as w, withCtx as y, createVNode as C } from "vue";
2
2
  import { useVModel as I } from "@vueuse/core";
3
- import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
3
+ import { SwitchTestIdModifiers as r } from "../../../testids/index.js";
4
4
  import "../../button/v4/ButtonV4.vue.js";
5
5
  import $ from "../../button/v4/IconButtonV4.vue.js";
6
6
  import "../../button/v4/ButtonGroup.vue.js";
7
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
8
- import B from "../../tooltip/v4/TooltipV4.vue.js";
9
- const K = ["data-testid"], A = /* @__PURE__ */ T({
8
+ import z from "../../tooltip/v4/TooltipV4.vue.js";
9
+ const B = ["data-testid"], A = /* @__PURE__ */ T({
10
10
  __name: "SwitchV4",
11
11
  props: {
12
12
  options: null,
@@ -15,7 +15,8 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
15
15
  testId: { default: "" },
16
16
  iconKey: { default: "icon" },
17
17
  tooltipTextKey: { default: "tooltipText" },
18
- tooltipPlacement: { default: "top" }
18
+ tooltipPlacement: { default: "top" },
19
+ iconSize: { default: "small" }
19
20
  },
20
21
  emits: ["update:modelValue"],
21
22
  setup(t, { emit: f }) {
@@ -28,11 +29,11 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
28
29
  const v = (e, s) => {
29
30
  n.value = s, p.value = e;
30
31
  };
31
- return (e, s) => (c(), r("div", {
32
+ return (e, s) => (c(), u("div", {
32
33
  class: m(["switch", [`switch--variant-${t.variant}`]]),
33
- "data-testid": `${t.testId}-${a(u).WRAPPER}`
34
+ "data-testid": `${t.testId}-${a(r).WRAPPER}`
34
35
  }, [
35
- (c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
36
+ (c(!0), u(x, null, V(t.options, (o, l) => (c(), w(a(z), {
36
37
  key: l,
37
38
  text: o[t.tooltipTextKey],
38
39
  disabled: !o[t.tooltipTextKey],
@@ -43,15 +44,15 @@ const K = ["data-testid"], A = /* @__PURE__ */ T({
43
44
  C(a($), {
44
45
  class: m(["option", { "option--selected": d(l) }]),
45
46
  "icon-name": o[t.iconKey],
46
- size: "small",
47
+ size: t.iconSize,
47
48
  color: d(l) ? t.variant : "default",
48
- "data-testid": `${t.testId}-${a(u).BUTTON}`,
49
- onClick: (P) => v(o, l)
50
- }, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"])
49
+ "data-testid": `${t.testId}-${a(r).BUTTON}`,
50
+ onClick: (K) => v(o, l)
51
+ }, null, 8, ["class", "icon-name", "size", "color", "data-testid", "onClick"])
51
52
  ]),
52
53
  _: 2
53
54
  }, 1032, ["text", "disabled", "placement"]))), 128))
54
- ], 10, K));
55
+ ], 10, B));
55
56
  }
56
57
  });
57
58
  export {
@@ -16,6 +16,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
16
16
  type: import("vue").PropType<unknown>;
17
17
  required: true;
18
18
  };
19
+ iconSize: {
20
+ type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
21
+ default: string;
22
+ };
19
23
  options: {
20
24
  type: import("vue").PropType<unknown[]>;
21
25
  required: true;
@@ -48,6 +52,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
48
52
  type: import("vue").PropType<unknown>;
49
53
  required: true;
50
54
  };
55
+ iconSize: {
56
+ type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge" | "extraSmall">;
57
+ default: string;
58
+ };
51
59
  options: {
52
60
  type: import("vue").PropType<unknown[]>;
53
61
  required: true;
@@ -66,6 +74,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
66
74
  testId: string;
67
75
  variant: "default" | "primary";
68
76
  tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
77
+ iconSize: "small" | "medium" | "large" | "extraLarge" | "extraSmall";
69
78
  iconKey: string;
70
79
  tooltipTextKey: string;
71
80
  }>[];
@@ -77,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
77
77
  selectAll: (value: boolean) => void;
78
78
  selectRow: (value: boolean) => void;
79
79
  clickRow: (rowIndex: number) => void;
80
+ columnHover: (column: Column) => void;
80
81
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
81
82
  title?: string;
82
83
  columns: Column[];
@@ -153,6 +154,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
153
154
  onOnClearSearch?: () => any;
154
155
  onClickRow?: (rowIndex: number) => any;
155
156
  onSelectRow?: (value: boolean) => any;
157
+ onColumnHover?: (column: Column) => any;
156
158
  }, {
157
159
  sort: Sort;
158
160
  title: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3673e156"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0967498f"]]);
5
5
  export {
6
6
  a as default
7
7
  };