@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-test.5
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.
- package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/icon/v4/IconV4.vue.d.ts +0 -5
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +26 -29
- package/components/icon/v4/index.d.ts +1 -20
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +129 -89
- package/components/sortableList/index.d.ts +88 -2
- package/components/table/common/Table.common.js +71 -68
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +103 -100
- package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
- package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
- package/components/table/v4/index.d.ts +126 -75
- package/components/table/v4/storyUtils.d.ts +4 -0
- package/components/table-cells/common/Editable.common.js +37 -26
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/design-foundation.stories/icons/iconsData.d.ts +2 -6
- package/index.d.ts +566 -292
- package/package.json +1 -1
- package/utils/formatNumbers.d.ts +4 -0
- package/utils/formatNumbers.js +11 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../EditableV4.
|
|
2
|
-
import { editableCommon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
|
7
|
+
const B = { class: "editable-wrapper" }, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "editable-content"
|
|
10
|
-
},
|
|
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
|
|
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:
|
|
26
|
+
ref: c,
|
|
26
27
|
class: "editable",
|
|
27
28
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
28
|
-
(...
|
|
29
|
+
(...p) => t(n) && t(n)(...p))
|
|
29
30
|
}, [
|
|
30
|
-
f("div",
|
|
31
|
-
t(
|
|
32
|
-
d(t(
|
|
33
|
-
], !0) : (o(), i("div",
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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
|
|
3
|
-
// import "../../../TabsV4.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../../TabsV4.
|
|
2
|
-
import
|
|
3
|
-
import { TabsTestIdModifiers as
|
|
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) => (
|
|
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:
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
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
|
-
|
|
23
|
-
|
|
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
|
|
25
|
+
const a = k();
|
|
26
|
+
if (a === -1)
|
|
27
|
+
return;
|
|
33
28
|
await $();
|
|
34
|
-
const
|
|
35
|
-
|
|
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
|
-
), (
|
|
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(
|
|
41
|
-
(
|
|
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(
|
|
40
|
+
ref: s(T).tabsNewList,
|
|
44
41
|
key: e.id,
|
|
45
|
-
class:
|
|
42
|
+
class: g(["tab-item", {
|
|
46
43
|
"tab-item--disabled": e.disabled,
|
|
47
|
-
"tab-item--active":
|
|
44
|
+
"tab-item--active": i(e)
|
|
48
45
|
}]),
|
|
49
|
-
"data-testid": t.testId ? `${t.testId}-${s(
|
|
50
|
-
onClick: (
|
|
51
|
-
onMouseover: (
|
|
52
|
-
onMouseleave:
|
|
53
|
-
(...
|
|
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
|
-
|
|
52
|
+
V(a.$slots, "tab-icon", {
|
|
56
53
|
tab: e,
|
|
57
|
-
active:
|
|
54
|
+
active: i(e)
|
|
58
55
|
}, void 0, !0),
|
|
59
|
-
e.name ? (
|
|
56
|
+
e.name ? (o(), B(s(H), {
|
|
60
57
|
key: 0,
|
|
61
|
-
variant:
|
|
58
|
+
variant: i(e) ? "tabLabel2" : "tabLabel1"
|
|
62
59
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
60
|
+
default: M(() => [
|
|
61
|
+
N(R(e.name), 1)
|
|
65
62
|
]),
|
|
66
63
|
_: 2
|
|
67
|
-
}, 1032, ["variant"])) :
|
|
64
|
+
}, 1032, ["variant"])) : _("", !0)
|
|
68
65
|
], 42, U))), 128)),
|
|
69
66
|
j
|
|
70
67
|
], 16));
|
|
@@ -15,12 +15,8 @@ declare const iconsAdNetworks: {
|
|
|
15
15
|
name: string;
|
|
16
16
|
path: string;
|
|
17
17
|
}[];
|
|
18
|
-
declare const
|
|
18
|
+
declare const iconsContentRateData: {
|
|
19
19
|
name: string;
|
|
20
20
|
path: string;
|
|
21
21
|
}[];
|
|
22
|
-
|
|
23
|
-
name: string;
|
|
24
|
-
path: string;
|
|
25
|
-
}[];
|
|
26
|
-
export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, iconsIosContentRateData, iconsAndroidContentRateData, };
|
|
22
|
+
export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, iconsContentRateData, };
|