@ironsource/shared-ui 2.1.12-rc.31 → 2.1.12-rc.33

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 (61) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  2. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  3. package/ChartPlane.vue_vue_type_style_index_0_scoped_f871962e_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_36ec94a7_lang.css +1 -0
  5. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  6. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  7. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  8. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  9. package/TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css +1 -0
  10. package/components/chart/Chart.vue.d.ts +10 -0
  11. package/components/chart/Chart.vue.js +2 -2
  12. package/components/chart/Chart.vue2.js +29 -25
  13. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  14. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  15. package/components/chart/ChartPlane.vue.d.ts +10 -0
  16. package/components/chart/ChartPlane.vue.js +4 -4
  17. package/components/chart/ChartPlane.vue2.js +158 -147
  18. package/components/chart/ChartStoryArgs.d.ts +12 -0
  19. package/components/chart/TooltipHeader.vue.js +2 -2
  20. package/components/chart/TooltipHeader.vue2.js +21 -20
  21. package/components/chart/consts.d.ts +4 -0
  22. package/components/chart/consts.js +30 -26
  23. package/components/chart/index.d.ts +39 -1
  24. package/components/chart/mockData.d.ts +15 -0
  25. package/components/chart/types.d.ts +2 -1
  26. package/components/chart/types.js +5 -5
  27. package/components/chart/utils/utils.js +14 -13
  28. package/components/dateRange/common/DateRange.common.js +60 -60
  29. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  30. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  31. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  32. package/components/radioButton/v3/index.d.ts +20 -1
  33. package/components/table/v4/DataGrid.vue.d.ts +4 -4
  34. package/components/table/v4/DataGrid.vue.js +3 -3
  35. package/components/table/v4/DataGrid.vue2.js +237 -245
  36. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  37. package/components/table/v4/DataGridHeader.vue.js +7 -0
  38. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  39. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  40. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  41. package/components/table/v4/MultipleDataGrid.vue.d.ts +6 -5
  42. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  43. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  44. package/components/table/v4/index.d.ts +552 -305
  45. package/components/table/v4/index.js +7 -4
  46. package/components/table/v4/storyUtils.d.ts +8 -0
  47. package/index.d.ts +1578 -1085
  48. package/index.js +1 -1
  49. package/package.json +1 -1
  50. package/utils/date.d.ts +1 -0
  51. package/utils/date.js +9 -0
  52. package/utils/formatNumbers.d.ts +1 -1
  53. package/utils/formatNumbers.js +38 -21
  54. package/Chart.vue_vue_type_style_index_0_scoped_fa533a3d_lang.css +0 -1
  55. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  56. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  57. package/DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css +0 -1
  58. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  59. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  60. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  61. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
@@ -1,9 +1,9 @@
1
- import "../../../RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css"; import { defineComponent as E, openBlock as n, createElementBlock as I, normalizeClass as b, unref as e, createElementVNode as r, withDirectives as y, mergeProps as i, isRef as C, vModelRadio as N, renderSlot as g, createVNode as w, withCtx as u, createTextVNode as m, toDisplayString as f, createBlock as v, createCommentVNode as R } from "vue";
2
- import c from "../../typography/Text.vue.js";
3
- import { useRadio as z } from "../common/useRadio.js";
4
- import { RadioTestIdModifiers as o } from "../../../testids/index.js";
5
- import { useTestIdAttrs as A } from "../../../utils/testIds.js";
6
- const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PURE__ */ E({
1
+ import "../../../RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css"; import { defineComponent as E, computed as I, openBlock as u, createElementBlock as C, normalizeClass as T, unref as e, createElementVNode as o, withDirectives as N, mergeProps as i, isRef as g, vModelRadio as w, renderSlot as z, createVNode as A, withCtx as m, createTextVNode as f, toDisplayString as c, createBlock as v, createCommentVNode as R } from "vue";
2
+ import p from "../../typography/Text.vue.js";
3
+ import { useRadio as D } from "../common/useRadio.js";
4
+ import { RadioTestIdModifiers as r } from "../../../testids/index.js";
5
+ import { useTestIdAttrs as L } from "../../../utils/testIds.js";
6
+ const $ = { class: "wrapper" }, F = ["value", "name", "disabled"], U = /* @__PURE__ */ E({
7
7
  __name: "RadioButton",
8
8
  props: {
9
9
  label: { default: "" },
@@ -11,62 +11,65 @@ const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PUR
11
11
  helperText: { default: "" },
12
12
  errorText: { default: "" },
13
13
  modelValue: { default: void 0 },
14
- testId: { default: "" }
14
+ testId: { default: "" },
15
+ disabledButton: { type: Boolean, default: !1 }
15
16
  },
16
17
  emits: ["update:modelValue", "change"],
17
- setup(t, { emit: V }) {
18
- const p = t, { radioRef: h, focus: x, disabled: T, modelValue: a, radioGroup: k } = z(
19
- p,
20
- V
21
- ), d = A(p.testId, o);
22
- return (B, l) => (n(), I("label", {
23
- class: b(["radio-button", { "radio-button--disabled": e(T) }])
18
+ setup(t, { emit: B }) {
19
+ const d = t, { radioRef: V, focus: x, disabled: h, modelValue: a, radioGroup: k } = D(
20
+ d,
21
+ B
22
+ ), s = L(d.testId, r), b = I(
23
+ () => h.value || d.disabledButton
24
+ );
25
+ return (y, l) => (u(), C("label", {
26
+ class: T(["radio-button", { "radio-button--disabled": e(b) }])
24
27
  }, [
25
- r("span", D, [
26
- y(r("input", i({
28
+ o("span", $, [
29
+ N(o("input", i({
27
30
  ref_key: "radioRef",
28
- ref: h,
29
- "onUpdate:modelValue": l[0] || (l[0] = (s) => C(a) ? a.value = s : null),
31
+ ref: V,
32
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => g(a) ? a.value = n : null),
30
33
  value: t.label,
31
34
  name: t.name || e(k)?.name,
32
35
  type: "radio",
33
- disabled: e(T)
34
- }, e(d)[e(o).FIELD], {
35
- onFocus: l[1] || (l[1] = (s) => x.value = !0),
36
- onBlur: l[2] || (l[2] = (s) => x.value = !1)
37
- }), null, 16, L), [
38
- [N, e(a)]
36
+ disabled: e(b)
37
+ }, e(s)[e(r).FIELD], {
38
+ onFocus: l[1] || (l[1] = (n) => x.value = !0),
39
+ onBlur: l[2] || (l[2] = (n) => x.value = !1)
40
+ }), null, 16, F), [
41
+ [w, e(a)]
39
42
  ]),
40
- r("span", {
41
- class: b([{ "circle--selected": e(a) === t.label }, "circle"])
43
+ o("span", {
44
+ class: T([{ "circle--selected": e(a) === t.label }, "circle"])
42
45
  }, null, 2)
43
46
  ]),
44
- r("span", i({ class: "label" }, e(d)[e(o).LABEL]), [
45
- g(B.$slots, "default", {}, () => [
46
- w(c, { "is-truncated": "" }, {
47
- default: u(() => [
48
- m(f(t.label), 1)
47
+ o("span", i({ class: "label" }, e(s)[e(r).LABEL]), [
48
+ z(y.$slots, "default", {}, () => [
49
+ A(p, { "is-truncated": "" }, {
50
+ default: m(() => [
51
+ f(c(t.label), 1)
49
52
  ]),
50
53
  _: 1
51
54
  })
52
55
  ], !0),
53
- !t.errorText && t.helperText ? (n(), v(c, {
56
+ !t.errorText && t.helperText ? (u(), v(p, {
54
57
  key: 0,
55
58
  class: "helper-text--text helper-text",
56
59
  size: "caption"
57
60
  }, {
58
- default: u(() => [
59
- m(f(t.helperText), 1)
61
+ default: m(() => [
62
+ f(c(t.helperText), 1)
60
63
  ]),
61
64
  _: 1
62
65
  })) : R("", !0),
63
- t.errorText ? (n(), v(c, i({
66
+ t.errorText ? (u(), v(p, i({
64
67
  key: 1,
65
68
  size: "caption",
66
69
  class: "helper-text--error helper-text"
67
- }, e(d)[e(o).ERROR_TEXT]), {
68
- default: u(() => [
69
- m(f(t.errorText), 1)
70
+ }, e(s)[e(r).ERROR_TEXT]), {
71
+ default: m(() => [
72
+ f(c(t.errorText), 1)
70
73
  ]),
71
74
  _: 1
72
75
  }, 16)) : R("", !0)
@@ -75,5 +78,5 @@ const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PUR
75
78
  }
76
79
  });
77
80
  export {
78
- O as default
81
+ U as default
79
82
  };
@@ -11,6 +11,7 @@ declare const RadioButtonTypes: () => (({
11
11
  modelValue: string;
12
12
  helperText: string;
13
13
  errorText: string;
14
+ disabledButton: boolean;
14
15
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
16
  name: {
16
17
  type: import("vue").PropType<string>;
@@ -37,10 +38,14 @@ declare const RadioButtonTypes: () => (({
37
38
  type: import("vue").PropType<string>;
38
39
  default: string;
39
40
  };
41
+ disabledButton: {
42
+ type: import("vue").PropType<boolean>;
43
+ default: boolean;
44
+ };
40
45
  }>> & {
41
46
  onChange?: (...args: any[]) => any;
42
47
  "onUpdate:modelValue"?: (...args: any[]) => any;
43
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "label" | "testId" | "modelValue" | "helperText" | "errorText">;
48
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "label" | "testId" | "modelValue" | "helperText" | "errorText" | "disabledButton">;
44
49
  $attrs: {
45
50
  [x: string]: unknown;
46
51
  };
@@ -80,6 +85,10 @@ declare const RadioButtonTypes: () => (({
80
85
  type: import("vue").PropType<string>;
81
86
  default: string;
82
87
  };
88
+ disabledButton: {
89
+ type: import("vue").PropType<boolean>;
90
+ default: boolean;
91
+ };
83
92
  }>> & {
84
93
  onChange?: (...args: any[]) => any;
85
94
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -93,6 +102,7 @@ declare const RadioButtonTypes: () => (({
93
102
  modelValue: string;
94
103
  helperText: string;
95
104
  errorText: string;
105
+ disabledButton: boolean;
96
106
  }, {}, string> & {
97
107
  beforeCreate?: (() => void) | (() => void)[];
98
108
  created?: (() => void) | (() => void)[];
@@ -139,6 +149,10 @@ declare const RadioButtonTypes: () => (({
139
149
  type: import("vue").PropType<string>;
140
150
  default: string;
141
151
  };
152
+ disabledButton: {
153
+ type: import("vue").PropType<boolean>;
154
+ default: boolean;
155
+ };
142
156
  }>> & {
143
157
  onChange?: (...args: any[]) => any;
144
158
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -172,6 +186,10 @@ declare const RadioButtonTypes: () => (({
172
186
  type: import("vue").PropType<string>;
173
187
  default: string;
174
188
  };
189
+ disabledButton: {
190
+ type: import("vue").PropType<boolean>;
191
+ default: boolean;
192
+ };
175
193
  }>> & {
176
194
  onChange?: (...args: any[]) => any;
177
195
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -185,6 +203,7 @@ declare const RadioButtonTypes: () => (({
185
203
  modelValue: string;
186
204
  helperText: string;
187
205
  errorText: string;
206
+ disabledButton: boolean;
188
207
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
189
208
  $slots: {
190
209
  default?(_: {}): any;
@@ -146,9 +146,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
146
146
  "onUpdate:sort"?: (newSort: Sort) => any;
147
147
  onSaveRow?: (args_0: SaveRowEvent) => any;
148
148
  onOnClearSearch?: () => any;
149
+ onClickRow?: (rowIndex: number) => any;
149
150
  "onUpdate:selection"?: (selection: unknown[]) => any;
150
151
  onSelectRow?: (value: boolean) => any;
151
- onClickRow?: (rowIndex: number) => any;
152
152
  }, {
153
153
  sort: Sort;
154
154
  title: string;
@@ -172,11 +172,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
172
172
  defaultScrollPosition: number;
173
173
  getRowId: (row: Row, index: number) => unknown;
174
174
  getRowKey: (row: Row, index: number) => string | number;
175
- selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
176
175
  emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
177
- helpTooltipVariant: "icon" | "underline";
178
176
  rowCustomClassKey: string;
179
177
  rowDataKey: string;
178
+ helpTooltipVariant: "icon" | "underline";
179
+ selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
180
180
  isSelectionSticky: boolean;
181
181
  isSelectionBordered: boolean;
182
182
  }>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
@@ -193,8 +193,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
193
193
  rowIndex: number;
194
194
  }) => any>> & {
195
195
  title?(_: {}): any;
196
- "table-header-pre-search"?(_: {}): any;
197
196
  search?(_: {}): any;
197
+ "table-header-pre-search"?(_: {}): any;
198
198
  "table-header-actions"?(_: {}): any;
199
199
  "select-all-checkbox"?(_: {}): any;
200
200
  loader?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataGrid.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_8e8df067_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8e8df067"]]);
3
+ // import "../../../DataGrid.vue_vue_type_style_index_0_scoped_36ec94a7_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-36ec94a7"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };