@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-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 (49) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
  3. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  4. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  5. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  6. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  7. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  8. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  9. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  10. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  11. package/components/input/v4/TextField.vue.js +3 -3
  12. package/components/input/v4/TextField.vue2.js +1 -1
  13. package/components/sortableList/SortableList.vue.d.ts +25 -0
  14. package/components/sortableList/SortableList.vue.js +4 -4
  15. package/components/sortableList/SortableList.vue2.js +129 -89
  16. package/components/sortableList/index.d.ts +88 -2
  17. package/components/table/common/Table.common.js +71 -68
  18. package/components/table/v3/Table.vue.d.ts +2 -2
  19. package/components/table/v3/index.d.ts +39 -39
  20. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  21. package/components/table/v4/DataGrid.vue.js +4 -4
  22. package/components/table/v4/DataGrid.vue2.js +103 -100
  23. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  24. package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
  25. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  26. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  27. package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
  28. package/components/table/v4/index.d.ts +126 -75
  29. package/components/table/v4/storyUtils.d.ts +4 -0
  30. package/components/table-cells/common/Editable.common.js +37 -26
  31. package/components/table-cells/common/EditableContext.d.ts +1 -0
  32. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  33. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  34. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  35. package/components/table-cells/v4/index.d.ts +20 -1
  36. package/components/tabs/v4/TabsV4.vue.js +4 -4
  37. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  38. package/index.d.ts +546 -234
  39. package/package.json +1 -1
  40. package/utils/formatNumbers.d.ts +4 -0
  41. package/utils/formatNumbers.js +11 -0
  42. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  43. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
  44. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  45. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
  46. package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
  47. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  48. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  49. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
@@ -1,13 +1,13 @@
1
- import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
2
- import { editableCommon as x } from "../common/Editable.common.js";
3
- import v from "../../typography/v4/Typography.vue.js";
4
- import w from "../../input/v4/TextField.vue.js";
5
- import C from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as i, unref as t, createElementVNode as f, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
2
+ import { editableCommon as v } from "../common/Editable.common.js";
3
+ import x from "../../typography/v4/Typography.vue.js";
4
+ import C from "../../input/v4/TextField.vue.js";
5
+ import w from "../../icon/v4/IconV4.vue.js";
6
6
  import "../../icon/v4/IconFlag.vue.js";
7
- const E = { class: "editable-wrapper" }, B = {
7
+ const B = { class: "editable-wrapper" }, E = {
8
8
  key: 1,
9
9
  class: "editable-content"
10
- }, _ = /* @__PURE__ */ m({
10
+ }, S = /* @__PURE__ */ m({
11
11
  __name: "EditableV4",
12
12
  props: {
13
13
  cell: { default: "" },
@@ -15,30 +15,31 @@ const E = { class: "editable-wrapper" }, B = {
15
15
  rowIndex: null,
16
16
  cellIndex: null,
17
17
  type: { default: "input" },
18
+ saveOnClickOutside: { type: Boolean, default: !0 },
18
19
  validateFunction: { type: Function, default: () => !1 },
19
20
  displayValue: { type: Function, default: (e) => e }
20
21
  },
21
22
  setup(e) {
22
- const c = e, { onEdit: n, target: s, isEditing: p } = x(c);
23
+ const s = e, { onEdit: n, target: c, isEditing: u } = v(s);
23
24
  return (l, a) => (o(), i("div", {
24
25
  ref_key: "target",
25
- ref: s,
26
+ ref: c,
26
27
  class: "editable",
27
28
  onClick: a[0] || (a[0] = //@ts-ignore
28
- (...u) => t(n) && t(n)(...u))
29
+ (...p) => t(n) && t(n)(...p))
29
30
  }, [
30
- f("div", E, [
31
- t(p) ? r(l.$slots, "input", { key: 0 }, () => [
32
- d(t(w))
33
- ], !0) : (o(), i("div", B, [
31
+ f("div", B, [
32
+ t(u) ? r(l.$slots, "input", { key: 0 }, () => [
33
+ d(t(C))
34
+ ], !0) : (o(), i("div", E, [
34
35
  r(l.$slots, "content", {}, () => [
35
- d(t(v), { variant: "body1" }, {
36
+ d(t(x), { variant: "body1" }, {
36
37
  default: y(() => [
37
38
  k(V(e.displayValue(e.cell)), 1)
38
39
  ]),
39
40
  _: 1
40
41
  }),
41
- e.type === "dropdown" ? (o(), b(t(C), {
42
+ e.type === "dropdown" ? (o(), b(t(w), {
42
43
  key: 0,
43
44
  class: "caret-icon",
44
45
  name: "caret-down",
@@ -51,5 +52,5 @@ const E = { class: "editable-wrapper" }, B = {
51
52
  }
52
53
  });
53
54
  export {
54
- _ as default
55
+ S as default
55
56
  };
@@ -6,6 +6,7 @@ declare const EditableTypes: () => ({
6
6
  $props: Partial<{
7
7
  type: "input" | "dropdown";
8
8
  cell: string;
9
+ saveOnClickOutside: boolean;
9
10
  validateFunction: (value: unknown) => string | boolean;
10
11
  isLoading: boolean;
11
12
  displayValue: (option: unknown) => unknown;
@@ -19,6 +20,10 @@ declare const EditableTypes: () => ({
19
20
  type: import("vue").PropType<string>;
20
21
  default: string;
21
22
  };
23
+ saveOnClickOutside: {
24
+ type: import("vue").PropType<boolean>;
25
+ default: boolean;
26
+ };
22
27
  validateFunction: {
23
28
  type: import("vue").PropType<(value: unknown) => string | boolean>;
24
29
  default: () => false;
@@ -39,7 +44,7 @@ declare const EditableTypes: () => ({
39
44
  type: import("vue").PropType<(option: unknown) => unknown>;
40
45
  default: (cell: unknown) => unknown;
41
46
  };
42
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "validateFunction" | "isLoading" | "displayValue">;
47
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "saveOnClickOutside" | "validateFunction" | "isLoading" | "displayValue">;
43
48
  $attrs: {
44
49
  [x: string]: unknown;
45
50
  };
@@ -63,6 +68,10 @@ declare const EditableTypes: () => ({
63
68
  type: import("vue").PropType<string>;
64
69
  default: string;
65
70
  };
71
+ saveOnClickOutside: {
72
+ type: import("vue").PropType<boolean>;
73
+ default: boolean;
74
+ };
66
75
  validateFunction: {
67
76
  type: import("vue").PropType<(value: unknown) => string | boolean>;
68
77
  default: () => false;
@@ -86,6 +95,7 @@ declare const EditableTypes: () => ({
86
95
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
87
96
  type: "input" | "dropdown";
88
97
  cell: string;
98
+ saveOnClickOutside: boolean;
89
99
  validateFunction: (value: unknown) => string | boolean;
90
100
  isLoading: boolean;
91
101
  displayValue: (option: unknown) => unknown;
@@ -119,6 +129,10 @@ declare const EditableTypes: () => ({
119
129
  type: import("vue").PropType<string>;
120
130
  default: string;
121
131
  };
132
+ saveOnClickOutside: {
133
+ type: import("vue").PropType<boolean>;
134
+ default: boolean;
135
+ };
122
136
  validateFunction: {
123
137
  type: import("vue").PropType<(value: unknown) => string | boolean>;
124
138
  default: () => false;
@@ -153,6 +167,10 @@ declare const EditableTypes: () => ({
153
167
  type: import("vue").PropType<string>;
154
168
  default: string;
155
169
  };
170
+ saveOnClickOutside: {
171
+ type: import("vue").PropType<boolean>;
172
+ default: boolean;
173
+ };
156
174
  validateFunction: {
157
175
  type: import("vue").PropType<(value: unknown) => string | boolean>;
158
176
  default: () => false;
@@ -176,6 +194,7 @@ declare const EditableTypes: () => ({
176
194
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
177
195
  type: "input" | "dropdown";
178
196
  cell: string;
197
+ saveOnClickOutside: boolean;
179
198
  validateFunction: (value: unknown) => string | boolean;
180
199
  isLoading: boolean;
181
200
  displayValue: (option: unknown) => unknown;
@@ -1,7 +1,7 @@
1
1
  import o from "./TabsV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css"; //*');
4
- const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bab40cfe"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css"; //*');
4
+ const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f9433b11"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import "../../../TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css"; import { defineComponent as h, useCssVars as C, ref as v, watch as w, nextTick as $, openBlock as r, createElementBlock as l, mergeProps as y, unref as s, Fragment as S, renderList as g, normalizeClass as A, renderSlot as N, createBlock as V, withCtx as B, createTextVNode as M, toDisplayString as E, createCommentVNode as P, pushScopeId as W, popScopeId as _, createElementVNode as H } from "vue";
2
- import R from "../../typography/v4/Typography.vue.js";
3
- import { TabsTestIdModifiers as c } from "../../../testids/index.js";
1
+ import "../../../TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css"; import { defineComponent as x, useCssVars as y, ref as l, watch as C, nextTick as $, openBlock as o, createElementBlock as c, mergeProps as w, unref as s, Fragment as A, renderList as S, normalizeClass as g, renderSlot as V, createBlock as B, withCtx as M, createTextVNode as N, toDisplayString as R, createCommentVNode as _, pushScopeId as E, popScopeId as P, createElementVNode as W } from "vue";
2
+ import H from "../../typography/v4/Typography.vue.js";
3
+ import { TabsTestIdModifiers as m } from "../../../testids/index.js";
4
4
  import { tabsCommon as z } from "../common/tabsCommon.js";
5
5
  import { useTestIdAttrs as D } from "../../../utils/testIds.js";
6
- const F = (t) => (W("data-v-bab40cfe"), t = t(), _(), t), U = ["data-testid", "onClick", "onMouseover"], j = /* @__PURE__ */ F(() => /* @__PURE__ */ H("div", { class: "tabs-border-line" }, null, -1)), Q = /* @__PURE__ */ h({
6
+ const F = (t) => (E("data-v-f9433b11"), t = t(), P(), t), U = ["data-testid", "onClick", "onMouseover"], j = /* @__PURE__ */ F(() => /* @__PURE__ */ W("div", { class: "tabs-border-line" }, null, -1)), Q = /* @__PURE__ */ x({
7
7
  __name: "TabsV4",
8
8
  props: {
9
9
  tabsList: { default: () => [] },
@@ -12,59 +12,56 @@ const F = (t) => (W("data-v-bab40cfe"), t = t(), _(), t), U = ["data-testid", "o
12
12
  testId: { default: "" }
13
13
  },
14
14
  emits: ["update:selectedTab"],
15
- setup(t, { emit: f }) {
16
- const a = t;
17
- C((o) => ({
18
- "57c21ae0": b.value,
19
- bdc3e3e6: m.value
15
+ setup(t, { emit: p }) {
16
+ const r = t;
17
+ y((a) => ({
18
+ "167b065e": v.value,
19
+ "8cfadb62": b.value
20
20
  }));
21
- const {
22
- skipUnwrap: p,
23
- selectTab: T,
24
- setHover: I,
25
- clearHover: u,
26
- tabsNewList: L,
27
- getSelectedTabIndex: k
28
- } = z(a, f), x = D(a.testId, c), d = (o) => o.id === a.selectedTab, m = v(), b = v();
29
- return w(
30
- [() => a.variant, () => a.selectedTab, () => a.tabsList],
21
+ const { skipUnwrap: T, selectTab: I, setHover: L, clearHover: u, getSelectedTabIndex: k } = z(r, p), f = l(null), h = D(r.testId, m), i = (a) => a.id === r.selectedTab, b = l(), v = l();
22
+ return C(
23
+ [() => r.variant, () => r.selectedTab, () => r.tabsList],
31
24
  async () => {
32
- const o = k();
25
+ const a = k();
26
+ if (a === -1)
27
+ return;
33
28
  await $();
34
- const i = L.value[o];
35
- m.value = i?.clientWidth + "px", b.value = i?.offsetLeft + "px";
29
+ const e = Array.from(f.value?.children || []).at(a);
30
+ b.value = e?.clientWidth + "px", v.value = e?.offsetLeft + "px";
36
31
  },
37
32
  { immediate: !0 }
38
- ), (o, i) => (r(), l("ul", y({
33
+ ), (a, n) => (o(), c("ul", w({
34
+ ref_key: "tabsListRef",
35
+ ref: f,
39
36
  class: ["tabs-list", [`tabs-list--${t.variant}`]]
40
- }, s(x)[s(c).WRAPPER]), [
41
- (r(!0), l(S, null, g(t.tabsList, (e) => (r(), l("li", {
37
+ }, s(h)[s(m).WRAPPER]), [
38
+ (o(!0), c(A, null, S(t.tabsList, (e) => (o(), c("li", {
42
39
  ref_for: !0,
43
- ref: s(p).tabsNewList,
40
+ ref: s(T).tabsNewList,
44
41
  key: e.id,
45
- class: A(["tab-item", {
42
+ class: g(["tab-item", {
46
43
  "tab-item--disabled": e.disabled,
47
- "tab-item--active": d(e)
44
+ "tab-item--active": i(e)
48
45
  }]),
49
- "data-testid": t.testId ? `${t.testId}-${s(c).TAB}-${e.id}` : void 0,
50
- onClick: (n) => s(T)(e),
51
- onMouseover: (n) => s(I)(e),
52
- onMouseleave: i[0] || (i[0] = //@ts-ignore
53
- (...n) => s(u) && s(u)(...n))
46
+ "data-testid": t.testId ? `${t.testId}-${s(m).TAB}-${e.id}` : void 0,
47
+ onClick: (d) => s(I)(e),
48
+ onMouseover: (d) => s(L)(e),
49
+ onMouseleave: n[0] || (n[0] = //@ts-ignore
50
+ (...d) => s(u) && s(u)(...d))
54
51
  }, [
55
- N(o.$slots, "tab-icon", {
52
+ V(a.$slots, "tab-icon", {
56
53
  tab: e,
57
- active: d(e)
54
+ active: i(e)
58
55
  }, void 0, !0),
59
- e.name ? (r(), V(s(R), {
56
+ e.name ? (o(), B(s(H), {
60
57
  key: 0,
61
- variant: d(e) ? "tabLabel2" : "tabLabel1"
58
+ variant: i(e) ? "tabLabel2" : "tabLabel1"
62
59
  }, {
63
- default: B(() => [
64
- M(E(e.name), 1)
60
+ default: M(() => [
61
+ N(R(e.name), 1)
65
62
  ]),
66
63
  _: 2
67
- }, 1032, ["variant"])) : P("", !0)
64
+ }, 1032, ["variant"])) : _("", !0)
68
65
  ], 42, U))), 128)),
69
66
  j
70
67
  ], 16));