@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.
- 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/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/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/index.d.ts +546 -234
- 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/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,15 +1,15 @@
|
|
|
1
|
-
import "../../../MultipleDataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css"; import { defineComponent as A, useCssVars as D, useSlots as H, computed as O, openBlock as s, createElementBlock as r, createElementVNode as w, normalizeClass as G, unref as o, renderSlot as n, createBlock as C, createCommentVNode as f, createVNode as M, isRef as $, Fragment as P, renderList as y, createSlots as b, withCtx as u } from "vue";
|
|
2
|
+
import v from "./DataGrid.vue.js";
|
|
3
3
|
import "./DataGridMenu.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import U from "./DataGridRowsCounter.vue.js";
|
|
5
5
|
import "./MultipleDataGrid.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { useVModel as
|
|
8
|
-
import { TableTestIdModifiers as
|
|
9
|
-
const p = ["data-testid"],
|
|
6
|
+
import F from "../../search/v4/SearchV4.vue.js";
|
|
7
|
+
import { useVModel as Q } from "@vueuse/core";
|
|
8
|
+
import { TableTestIdModifiers as h } from "../../../testids/index.js";
|
|
9
|
+
const j = ["data-testid"], p = ["data-testid"], q = ["data-testid"], J = ["data-testid"], K = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "tables-container"
|
|
12
|
-
},
|
|
12
|
+
}, ot = /* @__PURE__ */ A({
|
|
13
13
|
__name: "MultipleDataGrid",
|
|
14
14
|
props: {
|
|
15
15
|
tablesSettings: { default: () => [] },
|
|
@@ -32,63 +32,92 @@ const p = ["data-testid"], H = ["data-testid"], F = {
|
|
|
32
32
|
testId: { default: "" }
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
|
|
35
|
-
setup(t, { emit:
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
"
|
|
35
|
+
setup(t, { emit: c }) {
|
|
36
|
+
const g = t;
|
|
37
|
+
D((e) => ({
|
|
38
|
+
"5d3fa26e": t.zIndexBase
|
|
39
39
|
}));
|
|
40
|
-
const
|
|
41
|
-
() =>
|
|
42
|
-
),
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
return (e,
|
|
40
|
+
const I = H(), T = O(
|
|
41
|
+
() => g.isLoading || !g.tablesSettings.flatMap((e) => e.rows).length
|
|
42
|
+
), d = Q(g, "search", c), m = (e) => `header-${e.id}`, k = (e) => `cell-${e.id}`, x = (e) => {
|
|
43
|
+
c("onScroll", e.target.scrollTop);
|
|
44
|
+
}, R = () => c("onClearSearch"), E = (e, i) => c("clickRow", e, i);
|
|
45
|
+
return (e, i) => (s(), r("div", {
|
|
46
46
|
class: "multi-table-container",
|
|
47
|
-
onScrollPassive:
|
|
47
|
+
onScrollPassive: x
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
class:
|
|
51
|
-
"data-testid": `${t.testId}-${o(
|
|
49
|
+
w("div", {
|
|
50
|
+
class: G(["table-header-container", { sticky: t.isSticky }]),
|
|
51
|
+
"data-testid": `${t.testId}-${o(h).HEADER}`
|
|
52
52
|
}, [
|
|
53
|
-
|
|
53
|
+
w("div", {
|
|
54
54
|
class: "rows-counter-container",
|
|
55
|
-
"data-testid": `${t.testId}-${o(
|
|
55
|
+
"data-testid": `${t.testId}-${o(h).TITLE}`
|
|
56
56
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
57
|
+
n(e.$slots, "title", {}, () => [
|
|
58
|
+
t.isLoading ? f("", !0) : (s(), C(o(U), {
|
|
59
|
+
key: 0,
|
|
60
|
+
count: t.count,
|
|
61
|
+
"total-count": t.totalCount,
|
|
62
|
+
"total-text": t.totalText,
|
|
63
|
+
"displaying-text": t.displayingText,
|
|
64
|
+
"out-of-text": t.outOfText,
|
|
65
|
+
"test-id": t.testId
|
|
66
|
+
}, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
|
|
67
|
+
], !0)
|
|
68
|
+
], 8, p),
|
|
69
|
+
w("div", {
|
|
70
|
+
class: "table-header-right",
|
|
71
|
+
"data-testid": `${t.testId}-${o(h).HEADER_RIGHT}`
|
|
72
|
+
}, [
|
|
73
|
+
t.showSearch ? n(e.$slots, "search", { key: 0 }, () => [
|
|
74
|
+
M(o(F), {
|
|
75
|
+
modelValue: o(d),
|
|
76
|
+
"onUpdate:modelValue": i[0] || (i[0] = (a) => $(d) ? d.value = a : null),
|
|
77
|
+
placeholder: t.searchPlaceholder,
|
|
78
|
+
"test-id": t.testId,
|
|
79
|
+
onOnClear: R
|
|
80
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])
|
|
81
|
+
], !0) : f("", !0),
|
|
82
|
+
o(I)["table-header-actions"] ? (s(), r("div", {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "table-header-actions",
|
|
85
|
+
"data-testid": `${t.testId}-${o(h).ACTIONS}`
|
|
86
|
+
}, [
|
|
87
|
+
n(e.$slots, "table-header-actions", {}, void 0, !0)
|
|
88
|
+
], 8, J)) : f("", !0)
|
|
89
|
+
], 8, q)
|
|
90
|
+
], 10, j),
|
|
91
|
+
o(T) ? (s(), C(o(v), {
|
|
77
92
|
key: 1,
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
search: o(d),
|
|
94
|
+
"onUpdate:search": i[1] || (i[1] = (a) => $(d) ? d.value = a : null),
|
|
80
95
|
rows: [],
|
|
81
|
-
|
|
96
|
+
columns: t.loadingAndEmptyStatesColumns,
|
|
97
|
+
"is-loading": t.isLoading,
|
|
98
|
+
"loading-row-count": t.loadingRowCount,
|
|
82
99
|
"empty-state-variant": t.emptyStateVariant,
|
|
83
100
|
"empty-state-title": t.emptyStateTitle,
|
|
84
101
|
"empty-state-subtitle": t.emptyStateSubtitle,
|
|
85
|
-
"
|
|
86
|
-
},
|
|
87
|
-
|
|
102
|
+
"test-id": t.testId
|
|
103
|
+
}, b({
|
|
104
|
+
"empty-state": u(() => [
|
|
105
|
+
n(e.$slots, "empty-state", {}, void 0, !0)
|
|
106
|
+
]),
|
|
107
|
+
_: 2
|
|
108
|
+
}, [
|
|
109
|
+
y(t.loadingAndEmptyStatesColumns, (a) => ({
|
|
110
|
+
name: m(a),
|
|
111
|
+
fn: u(() => [
|
|
112
|
+
n(e.$slots, `${m(a)}`, { column: a }, void 0, !0)
|
|
113
|
+
])
|
|
114
|
+
}))
|
|
115
|
+
]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (s(), r("div", K, [
|
|
116
|
+
(s(!0), r(P, null, y(t.tablesSettings, (a, V) => (s(), r("div", {
|
|
88
117
|
key: a.testId,
|
|
89
118
|
class: "table-wrapper"
|
|
90
119
|
}, [
|
|
91
|
-
a.rows.length ? (
|
|
120
|
+
a.rows.length ? (s(), C(o(v), {
|
|
92
121
|
key: 0,
|
|
93
122
|
sections: a.sections,
|
|
94
123
|
columns: a.columns,
|
|
@@ -97,32 +126,46 @@ const p = ["data-testid"], H = ["data-testid"], F = {
|
|
|
97
126
|
"is-sticky": t.isSticky,
|
|
98
127
|
"z-index-base": t.zIndexBase,
|
|
99
128
|
"test-id": a.testId,
|
|
100
|
-
onClickRow: (
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
129
|
+
onClickRow: (l) => E(l, V)
|
|
130
|
+
}, b({
|
|
131
|
+
"floating-row": u(({ row: l, rowIndex: S }) => [
|
|
132
|
+
n(e.$slots, "floating-row", {
|
|
133
|
+
row: l,
|
|
134
|
+
rowIndex: S
|
|
135
|
+
}, void 0, !0)
|
|
136
|
+
]),
|
|
137
|
+
_: 2
|
|
138
|
+
}, [
|
|
139
|
+
y(a.columns, (l) => ({
|
|
140
|
+
name: m(l),
|
|
141
|
+
fn: u(() => [
|
|
142
|
+
n(e.$slots, `${m(l)}`, { column: l }, void 0, !0)
|
|
143
|
+
])
|
|
144
|
+
})),
|
|
145
|
+
y(a.columns, (l) => ({
|
|
146
|
+
name: k(l),
|
|
147
|
+
fn: u(({
|
|
148
|
+
cell: S,
|
|
149
|
+
rowIndex: B,
|
|
150
|
+
isLoading: L,
|
|
151
|
+
cellIndex: N,
|
|
152
|
+
row: z
|
|
110
153
|
}) => [
|
|
111
|
-
|
|
112
|
-
cell:
|
|
113
|
-
isLoading:
|
|
114
|
-
cellIndex:
|
|
115
|
-
row:
|
|
116
|
-
rowIndex:
|
|
154
|
+
n(e.$slots, `${k(l)}`, {
|
|
155
|
+
cell: S,
|
|
156
|
+
isLoading: L,
|
|
157
|
+
cellIndex: N,
|
|
158
|
+
row: z,
|
|
159
|
+
rowIndex: B
|
|
117
160
|
}, void 0, !0)
|
|
118
161
|
])
|
|
119
162
|
}))
|
|
120
|
-
]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) :
|
|
163
|
+
]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : f("", !0)
|
|
121
164
|
]))), 128))
|
|
122
165
|
]))
|
|
123
166
|
], 32));
|
|
124
167
|
}
|
|
125
168
|
});
|
|
126
169
|
export {
|
|
127
|
-
|
|
170
|
+
ot as default
|
|
128
171
|
};
|