@ironsource/shared-ui 2.1.12-rc.25 → 2.1.12-rc.27

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 (93) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  5. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
  6. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
  11. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
  12. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
  13. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
  14. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  15. package/components/button/v4/ButtonV4.vue.d.ts +1 -0
  16. package/components/button/v4/ButtonV4.vue.js +3 -3
  17. package/components/button/v4/ButtonV4.vue2.js +28 -27
  18. package/components/chart/Chart.vue.d.ts +6 -1
  19. package/components/chart/Chart.vue.js +3 -3
  20. package/components/chart/Chart.vue2.js +6 -4
  21. package/components/chart/ChartHeader.vue.d.ts +5 -0
  22. package/components/chart/ChartHeader.vue.js +2 -2
  23. package/components/chart/ChartHeader.vue2.js +43 -35
  24. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  25. package/components/chart/ChartHeaderTrend.vue2.js +17 -17
  26. package/components/chart/ChartLegend.vue.js +3 -3
  27. package/components/chart/ChartLegend.vue2.js +1 -1
  28. package/components/chart/ChartPlane.vue.d.ts +6 -1
  29. package/components/chart/ChartPlane.vue.js +5 -5
  30. package/components/chart/ChartPlane.vue2.js +140 -138
  31. package/components/chart/ChartTooltip.vue.js +2 -2
  32. package/components/chart/ChartTooltip.vue2.js +5 -5
  33. package/components/chart/index.d.ts +43 -24
  34. package/components/chart/utils/utils.d.ts +1 -2
  35. package/components/chart/utils/utils.js +13 -19
  36. package/components/dateRange/common/DateRange.common.js +81 -75
  37. package/components/dateRange/common/DateServices.common.d.ts +1 -1
  38. package/components/dateRange/common/DateServices.common.js +1 -0
  39. package/components/dropdown/common/Dropdown.common.js +82 -78
  40. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  41. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  42. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  43. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +17 -9
  44. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  45. package/components/dropdown/v4/ConditionalDropdown.vue2.js +142 -123
  46. package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
  47. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  48. package/components/dropdown/v4/DropdownV4.vue2.js +174 -163
  49. package/components/dropdown/v4/OptionV4.vue.d.ts +10 -5
  50. package/components/dropdown/v4/OptionV4.vue.js +4 -4
  51. package/components/dropdown/v4/OptionV4.vue2.js +106 -99
  52. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  53. package/components/dropdown/v4/index.d.ts +510 -127
  54. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  55. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  56. package/components/includeExclude/index.d.ts +40 -40
  57. package/components/link/Link.vue.d.ts +70 -0
  58. package/components/link/Link.vue.js +7 -0
  59. package/components/link/Link.vue2.js +43 -0
  60. package/components/link/index.d.ts +201 -0
  61. package/components/link/index.js +6 -0
  62. package/components/switch/v4/SwitchV4.vue.d.ts +11 -0
  63. package/components/switch/v4/SwitchV4.vue.js +2 -2
  64. package/components/switch/v4/SwitchV4.vue2.js +39 -26
  65. package/components/switch/v4/index.d.ts +18 -0
  66. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  67. package/components/table/v4/DataGrid.vue.js +3 -3
  68. package/components/table/v4/DataGrid.vue2.js +111 -110
  69. package/components/table/v4/index.d.ts +2 -0
  70. package/composables/useDateService.d.ts +7 -0
  71. package/composables/useDateService.js +10 -0
  72. package/index.d.ts +1120 -310
  73. package/index.js +111 -105
  74. package/mocks/apps.d.ts +1 -0
  75. package/mocks/optionsWithIcons.d.ts +2 -0
  76. package/package.json +9 -1
  77. package/testids/index.d.ts +4 -0
  78. package/testids/index.js +31 -30
  79. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
  80. package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
  81. package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
  82. package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
  83. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +0 -1
  84. package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +0 -1
  85. package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
  86. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
  87. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css +0 -1
  88. package/DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css +0 -1
  89. package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +0 -1
  90. package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +0 -1
  91. package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +0 -1
  92. package/components/chart/composables/useChartValues.d.ts +0 -12
  93. package/components/chart/composables/useChartValues.js +0 -32
@@ -1,13 +1,18 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
1
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
3
  options: unknown[];
3
4
  modelValue: unknown;
4
5
  variant: 'primary' | 'default';
5
6
  testId?: string;
6
7
  iconKey?: string;
8
+ tooltipTextKey?: string;
9
+ tooltipPlacement?: TooltipPositions;
7
10
  }>, {
8
11
  testId: string;
9
12
  variant: string;
10
13
  iconKey: string;
14
+ tooltipTextKey: string;
15
+ tooltipPlacement: string;
11
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
17
  "update:modelValue": (...args: any[]) => void;
13
18
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -16,16 +21,22 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
21
  variant: 'primary' | 'default';
17
22
  testId?: string;
18
23
  iconKey?: string;
24
+ tooltipTextKey?: string;
25
+ tooltipPlacement?: TooltipPositions;
19
26
  }>, {
20
27
  testId: string;
21
28
  variant: string;
22
29
  iconKey: string;
30
+ tooltipTextKey: string;
31
+ tooltipPlacement: string;
23
32
  }>>> & {
24
33
  "onUpdate:modelValue"?: (...args: any[]) => any;
25
34
  }, {
26
35
  testId: string;
27
36
  variant: 'primary' | 'default';
37
+ tooltipPlacement: TooltipPositions;
28
38
  iconKey: string;
39
+ tooltipTextKey: string;
29
40
  }>;
30
41
  export default _default;
31
42
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./SwitchV4.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-fa120cf6"]]);
3
+ // import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-cd6621a7"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,46 +1,59 @@
1
- import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css"; import { defineComponent as k, ref as h, onMounted as I, openBlock as l, createElementBlock as r, normalizeClass as u, unref as i, Fragment as V, renderList as $, createBlock as B } from "vue";
2
- import { useVModel as C } from "@vueuse/core";
1
+ import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_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";
2
+ import { useVModel as I } from "@vueuse/core";
3
+ import { SwitchTestIdModifiers as u } from "../../../testids/index.js";
3
4
  import "../../button/v4/ButtonV4.vue.js";
4
- import w from "../../button/v4/IconButtonV4.vue.js";
5
+ import $ from "../../button/v4/IconButtonV4.vue.js";
5
6
  import "../../button/v4/ButtonGroup.vue.js";
6
7
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
7
- import { SwitchTestIdModifiers as m } from "../../../testids/index.js";
8
- const y = ["data-testid"], g = /* @__PURE__ */ k({
8
+ import B from "../../tooltip/v4/TooltipV4.vue.js";
9
+ const K = ["data-testid"], A = /* @__PURE__ */ T({
9
10
  __name: "SwitchV4",
10
11
  props: {
11
12
  options: null,
12
13
  modelValue: null,
13
14
  variant: { default: "default" },
14
15
  testId: { default: "" },
15
- iconKey: { default: "icon" }
16
+ iconKey: { default: "icon" },
17
+ tooltipTextKey: { default: "tooltipText" },
18
+ tooltipPlacement: { default: "top" }
16
19
  },
17
20
  emits: ["update:modelValue"],
18
21
  setup(t, { emit: f }) {
19
- const a = t, n = h(), v = C(a, "modelValue", f), c = (e) => n.value === e;
20
- I(() => {
21
- n.value = a.options.findIndex(
22
- (e) => e === a.modelValue
22
+ const i = t, n = h(), p = I(i, "modelValue", f), d = (e) => n.value === e;
23
+ k(() => {
24
+ n.value = i.options.findIndex(
25
+ (e) => e === i.modelValue
23
26
  );
24
27
  });
25
- const p = (e, s) => {
26
- n.value = s, v.value = e;
28
+ const v = (e, s) => {
29
+ n.value = s, p.value = e;
27
30
  };
28
- return (e, s) => (l(), r("div", {
29
- class: u(["switch", [`switch--variant-${t.variant}`]]),
30
- "data-testid": `${t.testId}-${i(m).WRAPPER}`
31
+ return (e, s) => (c(), r("div", {
32
+ class: m(["switch", [`switch--variant-${t.variant}`]]),
33
+ "data-testid": `${t.testId}-${a(u).WRAPPER}`
31
34
  }, [
32
- (l(!0), r(V, null, $(t.options, (d, o) => (l(), B(i(w), {
33
- key: o,
34
- class: u(["option", { "option--selected": c(o) }]),
35
- "icon-name": d[t.iconKey],
36
- size: "small",
37
- color: c(o) ? t.variant : "default",
38
- "data-testid": `${t.testId}-${i(m).BUTTON}`,
39
- onClick: (M) => p(d, o)
40
- }, null, 8, ["class", "icon-name", "color", "data-testid", "onClick"]))), 128))
41
- ], 10, y));
35
+ (c(!0), r(x, null, V(t.options, (o, l) => (c(), w(a(B), {
36
+ key: l,
37
+ text: o[t.tooltipTextKey],
38
+ disabled: !o[t.tooltipTextKey],
39
+ placement: t.tooltipPlacement,
40
+ class: "option-wrapper"
41
+ }, {
42
+ default: y(() => [
43
+ C(a($), {
44
+ class: m(["option", { "option--selected": d(l) }]),
45
+ "icon-name": o[t.iconKey],
46
+ size: "small",
47
+ 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"])
51
+ ]),
52
+ _: 2
53
+ }, 1032, ["text", "disabled", "placement"]))), 128))
54
+ ], 10, K));
42
55
  }
43
56
  });
44
57
  export {
45
- g as default
58
+ A as default
46
59
  };
@@ -8,6 +8,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
8
8
  required: true;
9
9
  default: string;
10
10
  };
11
+ tooltipPlacement: {
12
+ type: import("vue").PropType<"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">;
13
+ default: string;
14
+ };
11
15
  modelValue: {
12
16
  type: import("vue").PropType<unknown>;
13
17
  required: true;
@@ -20,6 +24,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
20
24
  type: import("vue").PropType<string>;
21
25
  default: string;
22
26
  };
27
+ tooltipTextKey: {
28
+ type: import("vue").PropType<string>;
29
+ default: string;
30
+ };
23
31
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
32
  "update:modelValue": (...args: any[]) => void;
25
33
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -32,6 +40,10 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
32
40
  required: true;
33
41
  default: string;
34
42
  };
43
+ tooltipPlacement: {
44
+ type: import("vue").PropType<"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">;
45
+ default: string;
46
+ };
35
47
  modelValue: {
36
48
  type: import("vue").PropType<unknown>;
37
49
  required: true;
@@ -44,12 +56,18 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
44
56
  type: import("vue").PropType<string>;
45
57
  default: string;
46
58
  };
59
+ tooltipTextKey: {
60
+ type: import("vue").PropType<string>;
61
+ default: string;
62
+ };
47
63
  }>> & {
48
64
  "onUpdate:modelValue"?: (...args: any[]) => any;
49
65
  }, {
50
66
  testId: string;
51
67
  variant: "default" | "primary";
68
+ 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";
52
69
  iconKey: string;
70
+ tooltipTextKey: string;
53
71
  }>[];
54
72
  export { default as Switch } from './SwitchV4.vue';
55
73
  export { SwitchTypes };
@@ -181,6 +181,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
181
181
  isSelectionBordered: boolean;
182
182
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
183
183
  column: Column;
184
+ }) => any>> & Partial<Record<`after-header-${string}`, (_: {
185
+ column: Column;
184
186
  }) => any>> & Partial<Record<`total-${string}`, (_: {
185
187
  column: Column;
186
188
  }) => any>> & Partial<Record<`cell-${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_5b72e35a_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5b72e35a"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-b21a79b1"]]);
5
5
  export {
6
6
  s as default
7
7
  };