@ironsource/shared-ui 2.1.7-rc.7 → 2.1.7-rc.9
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/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +1 -0
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +39 -38
- package/package.json +1 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_efbbc0bc_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.multi-table-container[data-v-1bdca43d]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-1bdca43d]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-1bdca43d]{position:sticky;top:0;z-index:calc(var(--4c643133) + 3)}.multi-table-container[data-v-1bdca43d] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-1bdca43d] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-1bdca43d] thead.sticky{top:62px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../MultipleDataGrid.
|
|
4
|
-
const
|
|
1
|
+
import o from "./MultipleDataGrid.vue2.js";
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css"; //*');
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1bdca43d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../../../MultipleDataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css"; import { defineComponent as L, useCssVars as V, computed as E, openBlock as l, createElementBlock as d, createElementVNode as y, normalizeClass as $, unref as o, createBlock as c, createCommentVNode as m, isRef as z, Fragment as D, renderList as g, createSlots as M, withCtx as N, renderSlot as O } from "vue";
|
|
2
|
+
import h from "./DataGrid.vue.js";
|
|
3
3
|
import "./DataGridMenu.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import A from "./DataGridRowsCounter.vue.js";
|
|
5
5
|
import "./MultipleDataGrid.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { useVModel as
|
|
8
|
-
import { TableTestIdModifiers as
|
|
9
|
-
const
|
|
6
|
+
import G from "../../search/v4/SearchV4.vue.js";
|
|
7
|
+
import { useVModel as P } from "@vueuse/core";
|
|
8
|
+
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
9
|
+
const p = ["data-testid"], H = ["data-testid"], F = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "tables-container"
|
|
12
|
-
},
|
|
12
|
+
}, Y = /* @__PURE__ */ L({
|
|
13
13
|
__name: "MultipleDataGrid",
|
|
14
14
|
props: {
|
|
15
15
|
tablesSettings: { default: () => [] },
|
|
@@ -34,45 +34,46 @@ const A = ["data-testid"], F = {
|
|
|
34
34
|
emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
|
|
35
35
|
setup(t, { emit: n }) {
|
|
36
36
|
const r = t;
|
|
37
|
-
|
|
38
|
-
"
|
|
37
|
+
V((e) => ({
|
|
38
|
+
"4c643133": t.zIndexBase
|
|
39
39
|
}));
|
|
40
|
-
const
|
|
40
|
+
const w = E(
|
|
41
41
|
() => r.isLoading || !r.tablesSettings.flatMap((e) => e.rows).length
|
|
42
|
-
), u =
|
|
42
|
+
), u = P(r, "search", n), f = (e) => `cell-${e.id}`, k = (e) => {
|
|
43
43
|
n("onScroll", e.target.scrollTop);
|
|
44
|
-
},
|
|
44
|
+
}, x = () => n("onClearSearch"), C = (e, s) => n("clickRow", e, s);
|
|
45
45
|
return (e, s) => (l(), d("div", {
|
|
46
46
|
class: "multi-table-container",
|
|
47
|
-
onScrollPassive:
|
|
47
|
+
onScrollPassive: k
|
|
48
48
|
}, [
|
|
49
49
|
y("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: $(["table-header-container", { sticky: t.isSticky }]),
|
|
51
|
+
"data-testid": `${t.testId}-${o(S).HEADER}`
|
|
51
52
|
}, [
|
|
52
53
|
y("div", {
|
|
53
54
|
class: "rows-counter-container",
|
|
54
|
-
"data-testid": `${t.testId}-${o(
|
|
55
|
+
"data-testid": `${t.testId}-${o(S).TITLE}`
|
|
55
56
|
}, [
|
|
56
|
-
t.isLoading ? m("", !0) : (l(), c(o(
|
|
57
|
+
t.isLoading ? m("", !0) : (l(), c(o(A), {
|
|
57
58
|
key: 0,
|
|
58
59
|
count: t.count,
|
|
59
60
|
"total-count": t.totalCount,
|
|
60
61
|
"total-text": t.totalText,
|
|
61
62
|
"displaying-text": t.displayingText,
|
|
62
63
|
"out-of-text": t.outOfText,
|
|
63
|
-
|
|
64
|
-
}, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "
|
|
65
|
-
], 8,
|
|
66
|
-
t.showSearch ? (l(), c(o(
|
|
64
|
+
"test-id": t.testId
|
|
65
|
+
}, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
|
|
66
|
+
], 8, H),
|
|
67
|
+
t.showSearch ? (l(), c(o(G), {
|
|
67
68
|
key: 0,
|
|
68
69
|
modelValue: o(u),
|
|
69
|
-
"onUpdate:modelValue": s[0] || (s[0] = (a) =>
|
|
70
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => z(u) ? u.value = a : null),
|
|
70
71
|
placeholder: t.searchPlaceholder,
|
|
71
72
|
"test-id": t.testId,
|
|
72
|
-
onOnClear:
|
|
73
|
+
onOnClear: x
|
|
73
74
|
}, null, 8, ["modelValue", "placeholder", "test-id"])) : m("", !0)
|
|
74
|
-
],
|
|
75
|
-
o(
|
|
75
|
+
], 10, p),
|
|
76
|
+
o(w) ? (l(), c(o(h), {
|
|
76
77
|
key: 1,
|
|
77
78
|
"is-loading": t.isLoading,
|
|
78
79
|
columns: t.loadingAndEmptyStatesColumns,
|
|
@@ -83,11 +84,11 @@ const A = ["data-testid"], F = {
|
|
|
83
84
|
"empty-state-subtitle": t.emptyStateSubtitle,
|
|
84
85
|
"loading-row-count": t.loadingRowCount
|
|
85
86
|
}, null, 8, ["is-loading", "columns", "test-id", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "loading-row-count"])) : (l(), d("div", F, [
|
|
86
|
-
(l(!0), d(
|
|
87
|
+
(l(!0), d(D, null, g(t.tablesSettings, (a, b) => (l(), d("div", {
|
|
87
88
|
key: a.testId,
|
|
88
89
|
class: "table-wrapper"
|
|
89
90
|
}, [
|
|
90
|
-
a.rows.length ? (l(), c(o(
|
|
91
|
+
a.rows.length ? (l(), c(o(h), {
|
|
91
92
|
key: 0,
|
|
92
93
|
sections: a.sections,
|
|
93
94
|
columns: a.columns,
|
|
@@ -96,21 +97,21 @@ const A = ["data-testid"], F = {
|
|
|
96
97
|
"is-sticky": t.isSticky,
|
|
97
98
|
"z-index-base": t.zIndexBase,
|
|
98
99
|
"test-id": a.testId,
|
|
99
|
-
onClickRow: (i) =>
|
|
100
|
-
},
|
|
100
|
+
onClickRow: (i) => C(i, b)
|
|
101
|
+
}, M({ _: 2 }, [
|
|
101
102
|
g(a.columns, (i) => ({
|
|
102
103
|
name: f(i),
|
|
103
|
-
fn:
|
|
104
|
-
cell:
|
|
104
|
+
fn: N(({
|
|
105
|
+
cell: I,
|
|
105
106
|
rowIndex: T,
|
|
106
|
-
isLoading:
|
|
107
|
-
cellIndex:
|
|
107
|
+
isLoading: v,
|
|
108
|
+
cellIndex: R,
|
|
108
109
|
row: B
|
|
109
110
|
}) => [
|
|
110
|
-
|
|
111
|
-
cell:
|
|
112
|
-
isLoading:
|
|
113
|
-
cellIndex:
|
|
111
|
+
O(e.$slots, `${f(i)}`, {
|
|
112
|
+
cell: I,
|
|
113
|
+
isLoading: v,
|
|
114
|
+
cellIndex: R,
|
|
114
115
|
row: B,
|
|
115
116
|
rowIndex: T
|
|
116
117
|
}, void 0, !0)
|
|
@@ -123,5 +124,5 @@ const A = ["data-testid"], F = {
|
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
126
|
export {
|
|
126
|
-
|
|
127
|
+
Y as default
|
|
127
128
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.multi-table-container[data-v-efbbc0bc]{border-radius:var(--border-radius-md);border:1px solid var(--common-divider);display:flex;flex-direction:column;overflow-y:auto;width:100%}.multi-table-container .table-header-container[data-v-efbbc0bc]{align-items:center;background-color:var(--background-paper-elevation-0);display:flex;height:calc(var(--spacing-800) - 2px);justify-content:space-between;padding:var(--spacing-300);width:100%}.multi-table-container .table-header-container.sticky[data-v-efbbc0bc]{position:sticky;top:0;z-index:calc(var(--3e16946e) + 3)}.multi-table-container[data-v-efbbc0bc] table{display:table;border:unset;border-radius:unset}.multi-table-container[data-v-efbbc0bc] thead{border-top:1px solid var(--common-divider)}.multi-table-container .tables-container[data-v-efbbc0bc] thead.sticky{top:62px}
|