@ironsource/shared-ui 2.1.7-rc.10 → 2.1.7-rc.12
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_706b324e_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_402063dc_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 +8 -8
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +20 -20
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +16 -16
- package/components/sortableList/SortableList.vue.d.ts +17 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +122 -86
- package/components/sortableList/index.d.ts +60 -1
- 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 +6 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +131 -122
- 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 +92 -75
- 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/tooltip/v4/TooltipV4.vue.d.ts +1 -1
- package/components/tooltip/v4/index.d.ts +20 -20
- package/index.d.ts +502 -312
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_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/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_1cff50cb_lang.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-706b324e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css"; import { defineComponent as ie, useCssVars as de, unref as t, useSlots as oe, computed as v, openBlock as l, createElementBlock as i, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as E, createTextVNode as w, toDisplayString as I, isRef as ne, createCommentVNode as r, Fragment as B, renderList as p, createBlock as z, mergeProps as ce } from "vue";
|
|
2
|
+
import A from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import re from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import ue from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import U from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useVModel as
|
|
13
|
-
const me = ["data-testid"],
|
|
7
|
+
import { tableCommon as he } from "../common/Table.common.js";
|
|
8
|
+
import ye from "./SortIcon.vue.js";
|
|
9
|
+
import fe from "./HelpIcon.vue.js";
|
|
10
|
+
import Se from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import ke from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as ge } from "@vueuse/core";
|
|
13
|
+
const me = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = { class: "search-wrapper" }, Ce = ["data-testid"], Te = ["data-testid"], Ee = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox-cell"
|
|
16
|
-
},
|
|
16
|
+
}, we = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
19
|
+
}, Ie = ["onClick"], Be = { class: "table-head-container" }, pe = ["data-testid"], Ae = ["onMouseenter", "onClick"], Le = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "checkbox-cell"
|
|
22
22
|
}, Me = {
|
|
@@ -25,10 +25,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
25
25
|
}, Pe = {
|
|
26
26
|
key: 2,
|
|
27
27
|
class: "expanded-row"
|
|
28
|
-
}, Ve = {
|
|
28
|
+
}, Ve = {
|
|
29
|
+
key: 3,
|
|
30
|
+
class: "floating-row"
|
|
31
|
+
}, He = { key: 1 }, Ne = {
|
|
29
32
|
key: 0,
|
|
30
33
|
class: "table-footer"
|
|
31
|
-
},
|
|
34
|
+
}, Ke = /* @__PURE__ */ ie({
|
|
32
35
|
__name: "DataGrid",
|
|
33
36
|
props: {
|
|
34
37
|
title: { default: "" },
|
|
@@ -37,8 +40,8 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
37
40
|
sections: { default: null },
|
|
38
41
|
sort: { default: null },
|
|
39
42
|
selection: { default: null },
|
|
40
|
-
getRowId: { type: Function, default: (s,
|
|
41
|
-
selectedMatcher: { type: Function, default: (s,
|
|
43
|
+
getRowId: { type: Function, default: (s, g) => g },
|
|
44
|
+
selectedMatcher: { type: Function, default: (s, g) => s === g },
|
|
42
45
|
isSticky: { type: Boolean, default: !0 },
|
|
43
46
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
47
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -58,75 +61,75 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
58
61
|
zIndexBase: { default: 100 }
|
|
59
62
|
},
|
|
60
63
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
61
|
-
setup(s, { expose:
|
|
64
|
+
setup(s, { expose: g, emit: y }) {
|
|
62
65
|
const o = s;
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
de((a) => ({
|
|
67
|
+
"6e46e9f4": s.zIndexBase,
|
|
68
|
+
bd8b5530: t(K),
|
|
69
|
+
"03c6ae61": t(V),
|
|
70
|
+
"1c8cc6ae": t(J)
|
|
68
71
|
}));
|
|
69
|
-
const b =
|
|
70
|
-
list:
|
|
72
|
+
const b = oe(), {
|
|
73
|
+
list: P,
|
|
71
74
|
containerProps: G,
|
|
72
75
|
wrapperProps: Y,
|
|
73
|
-
activeRow:
|
|
74
|
-
gridColumnTemplate:
|
|
76
|
+
activeRow: $,
|
|
77
|
+
gridColumnTemplate: V,
|
|
75
78
|
toggleSortOrder: Q,
|
|
76
|
-
columnsStickyPositions:
|
|
79
|
+
columnsStickyPositions: H,
|
|
77
80
|
hasSearchSlot: W,
|
|
78
81
|
containerStyle: j,
|
|
79
82
|
onScroll: N,
|
|
80
83
|
savingRows: F,
|
|
81
|
-
hasExpandSlot:
|
|
84
|
+
hasExpandSlot: R,
|
|
82
85
|
toggleExpandRow: q,
|
|
83
86
|
cssRowHeight: J,
|
|
84
87
|
cssExpandGridCol: K,
|
|
85
|
-
isRowExpanded:
|
|
88
|
+
isRowExpanded: L,
|
|
86
89
|
hasCheckboxes: O,
|
|
87
90
|
activeMenuRow: X,
|
|
88
91
|
scrollTo: Z
|
|
89
|
-
} =
|
|
90
|
-
const a = o.rows.map((
|
|
91
|
-
return a.length && a.every((
|
|
92
|
-
}),
|
|
93
|
-
|
|
92
|
+
} = he(o, y), D = v(() => !!b.footer), m = ge(o, "search", y), _ = v(() => o.selection.length || 0), M = v(() => {
|
|
93
|
+
const a = o.rows.map((d, e) => o.getRowId(d, e));
|
|
94
|
+
return a.length && a.every((d) => x(d));
|
|
95
|
+
}), x = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, ee = (a) => {
|
|
96
|
+
x(a) ? (C(
|
|
94
97
|
o.selection.filter(
|
|
95
|
-
(
|
|
98
|
+
(d) => !o.selectedMatcher(a, d)
|
|
96
99
|
)
|
|
97
|
-
), y("selectRow", !1)) : (
|
|
100
|
+
), y("selectRow", !1)) : (C([...o.selection, a]), y("selectRow", !0));
|
|
98
101
|
}, te = () => {
|
|
99
|
-
if (
|
|
100
|
-
|
|
102
|
+
if (M.value)
|
|
103
|
+
C([]), y("selectAll", !1);
|
|
101
104
|
else {
|
|
102
|
-
const a = o.rows.map((
|
|
103
|
-
|
|
105
|
+
const a = o.rows.map((d, e) => o.getRowId(d, e)).filter((d) => !x(d));
|
|
106
|
+
C([...o.selection, ...a]), y("selectAll", !0);
|
|
104
107
|
}
|
|
105
|
-
},
|
|
108
|
+
}, C = (a) => {
|
|
106
109
|
y("update:selection", a);
|
|
107
|
-
}, se = v(
|
|
108
|
-
() => o.emptyStateVariant ?? (
|
|
109
|
-
),
|
|
110
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
110
|
+
}, se = (a) => !o.isLoading && $.value === a, ae = v(
|
|
111
|
+
() => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
|
|
112
|
+
), le = v(
|
|
113
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
|
|
111
114
|
);
|
|
112
|
-
return
|
|
115
|
+
return g({
|
|
113
116
|
scrollTo: Z
|
|
114
|
-
}), (a,
|
|
117
|
+
}), (a, d) => (l(), i("div", {
|
|
115
118
|
class: "table-container",
|
|
116
119
|
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
117
|
-
onMouseleave:
|
|
120
|
+
onMouseleave: d[3] || (d[3] = (e) => $.value = null)
|
|
118
121
|
}, [
|
|
119
122
|
u("table", {
|
|
120
123
|
ref: t(G).ref,
|
|
121
|
-
style:
|
|
124
|
+
style: T(t(j)),
|
|
122
125
|
class: f({
|
|
123
126
|
hasFooter: t(D)
|
|
124
127
|
}),
|
|
125
128
|
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
126
|
-
onScrollPassive:
|
|
129
|
+
onScrollPassive: d[2] || (d[2] = //@ts-ignore
|
|
127
130
|
(...e) => t(N) && t(N)(...e))
|
|
128
131
|
}, [
|
|
129
|
-
s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(),
|
|
132
|
+
s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (l(), i("div", {
|
|
130
133
|
key: 0,
|
|
131
134
|
class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
132
135
|
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
@@ -136,39 +139,39 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
136
139
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
137
140
|
}, [
|
|
138
141
|
c(a.$slots, "title", {}, () => [
|
|
139
|
-
h(t(
|
|
140
|
-
default:
|
|
141
|
-
|
|
142
|
+
h(t(A), { variant: "h3" }, {
|
|
143
|
+
default: E(() => [
|
|
144
|
+
w(I(s.title), 1)
|
|
142
145
|
]),
|
|
143
146
|
_: 1
|
|
144
147
|
})
|
|
145
|
-
]
|
|
146
|
-
], 8,
|
|
148
|
+
])
|
|
149
|
+
], 8, $e),
|
|
147
150
|
u("div", {
|
|
148
151
|
class: "table-header-right",
|
|
149
152
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
150
153
|
}, [
|
|
151
154
|
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
152
|
-
u("div",
|
|
153
|
-
h(t(
|
|
154
|
-
modelValue: t(
|
|
155
|
-
"onUpdate:modelValue":
|
|
155
|
+
u("div", xe, [
|
|
156
|
+
h(t(ke), {
|
|
157
|
+
modelValue: t(m),
|
|
158
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => ne(m) ? m.value = e : null),
|
|
156
159
|
placeholder: s.searchPlaceholder,
|
|
157
160
|
"auto-focus": s.searchAutoFocus,
|
|
158
161
|
"test-id": s.testId,
|
|
159
|
-
onOnClear:
|
|
162
|
+
onOnClear: d[1] || (d[1] = (e) => y("onClearSearch"))
|
|
160
163
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
161
164
|
])
|
|
162
|
-
]
|
|
163
|
-
], 8,
|
|
164
|
-
t(b)["table-header-actions"] ? (l(),
|
|
165
|
+
]) : r("", !0)
|
|
166
|
+
], 8, Re),
|
|
167
|
+
t(b)["table-header-actions"] ? (l(), i("div", {
|
|
165
168
|
key: 0,
|
|
166
169
|
class: "table-header-actions",
|
|
167
170
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
168
171
|
}, [
|
|
169
|
-
c(a.$slots, "table-header-actions"
|
|
170
|
-
], 8,
|
|
171
|
-
], 10,
|
|
172
|
+
c(a.$slots, "table-header-actions")
|
|
173
|
+
], 8, Ce)) : r("", !0)
|
|
174
|
+
], 10, be)) : r("", !0),
|
|
172
175
|
u("thead", {
|
|
173
176
|
class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
174
177
|
}, [
|
|
@@ -176,38 +179,38 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
176
179
|
class: "sections",
|
|
177
180
|
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
178
181
|
}, [
|
|
179
|
-
(l(!0),
|
|
182
|
+
(l(!0), i(B, null, p(s.sections, (e) => (l(), i("div", {
|
|
180
183
|
key: e.id,
|
|
181
184
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
182
185
|
}, [
|
|
183
186
|
c(a.$slots, `section-${e.id}`, {}, () => [
|
|
184
187
|
u("div", {
|
|
185
|
-
style:
|
|
188
|
+
style: T({ width: e.width + "px" }),
|
|
186
189
|
class: f({ section: !0 })
|
|
187
190
|
}, [
|
|
188
|
-
h(t(
|
|
189
|
-
default:
|
|
190
|
-
|
|
191
|
+
h(t(A), { variant: "body2" }, {
|
|
192
|
+
default: E(() => [
|
|
193
|
+
w(I(e.title), 1)
|
|
191
194
|
]),
|
|
192
195
|
_: 2
|
|
193
196
|
}, 1024)
|
|
194
197
|
], 4)
|
|
195
|
-
]
|
|
198
|
+
])
|
|
196
199
|
], 2))), 128))
|
|
197
|
-
], 8,
|
|
200
|
+
], 8, Te),
|
|
198
201
|
u("tr", null, [
|
|
199
|
-
t(O) ? (l(),
|
|
202
|
+
t(O) ? (l(), i("th", Ee, [
|
|
200
203
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
201
204
|
h(t(U), {
|
|
202
205
|
disabled: s.isLoading,
|
|
203
|
-
"is-checked": t(
|
|
204
|
-
"is-indeterminate": !t(
|
|
206
|
+
"is-checked": t(M),
|
|
207
|
+
"is-indeterminate": !t(M) && t(_) > 0,
|
|
205
208
|
"onUpdate:isChecked": te
|
|
206
209
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
207
|
-
]
|
|
210
|
+
])
|
|
208
211
|
])) : r("", !0),
|
|
209
|
-
t(
|
|
210
|
-
(l(!0),
|
|
212
|
+
t(R) ? (l(), i("th", we)) : r("", !0),
|
|
213
|
+
(l(!0), i(B, null, p(s.columns, (e) => (l(), i("th", {
|
|
211
214
|
key: e.id,
|
|
212
215
|
class: f({
|
|
213
216
|
sticky: e.isSticky,
|
|
@@ -217,61 +220,61 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
217
220
|
isSortable: e.isSortable,
|
|
218
221
|
[`column-${e.id}`]: !0
|
|
219
222
|
}),
|
|
220
|
-
style:
|
|
223
|
+
style: T(e.isSticky ? t(H)[e.id] : null),
|
|
221
224
|
onClick: (k) => e.isSortable ? t(Q)(e) : null
|
|
222
225
|
}, [
|
|
223
226
|
u("div", Be, [
|
|
224
227
|
c(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
225
|
-
h(t(
|
|
226
|
-
default:
|
|
227
|
-
|
|
228
|
+
h(t(A), { variant: "tableLabel" }, {
|
|
229
|
+
default: E(() => [
|
|
230
|
+
w(I(e.title), 1)
|
|
228
231
|
]),
|
|
229
232
|
_: 2
|
|
230
233
|
}, 1024)
|
|
231
|
-
]
|
|
232
|
-
e.helpText ? (l(), z(
|
|
234
|
+
]),
|
|
235
|
+
e.helpText ? (l(), z(fe, {
|
|
233
236
|
key: 0,
|
|
234
237
|
"hover-help-text": e.helpText,
|
|
235
238
|
"hover-help-text-placement": e.helpTextPlacement
|
|
236
239
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
|
|
237
|
-
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(
|
|
240
|
+
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(ye, {
|
|
238
241
|
key: 1,
|
|
239
242
|
"sort-order": s.sort.sortOrder
|
|
240
243
|
}, null, 8, ["sort-order"])) : r("", !0)
|
|
241
244
|
])
|
|
242
|
-
], 14,
|
|
245
|
+
], 14, Ie))), 128))
|
|
243
246
|
])
|
|
244
247
|
], 2),
|
|
245
248
|
u("tbody", null, [
|
|
246
|
-
t(
|
|
249
|
+
t(P).length > 0 ? (l(), i("div", ce({
|
|
247
250
|
key: 0,
|
|
248
251
|
class: "table-body-wrapper",
|
|
249
252
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
250
253
|
}, t(Y)), [
|
|
251
|
-
(l(!0),
|
|
254
|
+
(l(!0), i(B, null, p(t(P), (e) => (l(), i("tr", {
|
|
252
255
|
key: e.index,
|
|
253
256
|
class: f(["table-row", {
|
|
254
257
|
loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
|
|
255
|
-
active: t(
|
|
258
|
+
active: t($) === e.index,
|
|
256
259
|
activeMenu: t(X) === e.index,
|
|
257
|
-
expanded: t(
|
|
260
|
+
expanded: t(R) && t(L)(e.index)
|
|
258
261
|
}]),
|
|
259
|
-
onMouseenter: (k) =>
|
|
262
|
+
onMouseenter: (k) => $.value = e.index,
|
|
260
263
|
onClick: (k) => y("clickRow", e.index)
|
|
261
264
|
}, [
|
|
262
|
-
t(O) ? (l(),
|
|
265
|
+
t(O) ? (l(), i("td", Le, [
|
|
263
266
|
h(t(U), {
|
|
264
|
-
"is-checked":
|
|
267
|
+
"is-checked": x(s.getRowId(e.data, e.index)),
|
|
265
268
|
"onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
|
|
266
269
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
267
270
|
])) : r("", !0),
|
|
268
|
-
t(
|
|
269
|
-
h(
|
|
270
|
-
expanded: t(
|
|
271
|
+
t(R) ? (l(), i("td", Me, [
|
|
272
|
+
h(Se, {
|
|
273
|
+
expanded: t(L)(e.index),
|
|
271
274
|
onClick: (k) => t(q)(e.index, k)
|
|
272
275
|
}, null, 8, ["expanded", "onClick"])
|
|
273
276
|
])) : r("", !0),
|
|
274
|
-
(l(!0),
|
|
277
|
+
(l(!0), i(B, null, p(s.columns, (k, n) => (l(), i("td", {
|
|
275
278
|
key: n,
|
|
276
279
|
class: f({
|
|
277
280
|
sticky: s.columns[n].isSticky,
|
|
@@ -280,11 +283,11 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
280
283
|
isTextRight: s.columns[n].isTextRight,
|
|
281
284
|
[`column-${s.columns[n].id}`]: !0
|
|
282
285
|
}),
|
|
283
|
-
style:
|
|
284
|
-
s.columns[n].isSticky ? t(
|
|
286
|
+
style: T(
|
|
287
|
+
s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
|
|
285
288
|
)
|
|
286
289
|
}, [
|
|
287
|
-
!s.isLoading || s.isLoading && e.data[n] ? (l(),
|
|
290
|
+
!s.isLoading || s.isLoading && e.data[n] ? (l(), i("div", {
|
|
288
291
|
key: 0,
|
|
289
292
|
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
290
293
|
}, [
|
|
@@ -295,43 +298,49 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
295
298
|
row: e,
|
|
296
299
|
rowIndex: e.index
|
|
297
300
|
}, () => [
|
|
298
|
-
h(t(
|
|
299
|
-
default:
|
|
300
|
-
|
|
301
|
+
h(t(A), { variant: "body1" }, {
|
|
302
|
+
default: E(() => [
|
|
303
|
+
w(I(e.data[n]), 1)
|
|
301
304
|
]),
|
|
302
305
|
_: 2
|
|
303
306
|
}, 1024)
|
|
304
|
-
]
|
|
307
|
+
])
|
|
305
308
|
], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
|
|
306
|
-
h(t(
|
|
307
|
-
]
|
|
309
|
+
h(t(re), { round: "" })
|
|
310
|
+
])
|
|
308
311
|
], 6))), 128)),
|
|
309
|
-
t(
|
|
312
|
+
t(R) && t(L)(e.index) ? (l(), i("div", Pe, [
|
|
310
313
|
c(a.$slots, "expanded", {
|
|
311
314
|
row: e,
|
|
312
|
-
gridColumnTemplate: t(
|
|
313
|
-
}
|
|
315
|
+
gridColumnTemplate: t(V)
|
|
316
|
+
})
|
|
317
|
+
])) : r("", !0),
|
|
318
|
+
se(e.index) ? (l(), i("div", Ve, [
|
|
319
|
+
c(a.$slots, "floating-row", {
|
|
320
|
+
row: e,
|
|
321
|
+
rowIndex: e.index
|
|
322
|
+
})
|
|
314
323
|
])) : r("", !0)
|
|
315
|
-
], 42,
|
|
316
|
-
], 16,
|
|
324
|
+
], 42, Ae))), 128))
|
|
325
|
+
], 16, pe)) : (l(), i("div", He, [
|
|
317
326
|
c(a.$slots, "empty-state", {}, () => [
|
|
318
|
-
h(t(
|
|
327
|
+
h(t(ue), {
|
|
319
328
|
class: "empty-state",
|
|
320
329
|
title: s.emptyStateTitle,
|
|
321
|
-
subtitle: t(
|
|
322
|
-
variant: t(
|
|
330
|
+
subtitle: t(le),
|
|
331
|
+
variant: t(ae),
|
|
323
332
|
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
324
333
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
325
|
-
]
|
|
334
|
+
])
|
|
326
335
|
]))
|
|
327
336
|
])
|
|
328
|
-
], 46,
|
|
329
|
-
t(D) ? (l(),
|
|
330
|
-
c(a.$slots, "footer"
|
|
337
|
+
], 46, ve),
|
|
338
|
+
t(D) ? (l(), i("div", Ne, [
|
|
339
|
+
c(a.$slots, "footer")
|
|
331
340
|
])) : r("", !0)
|
|
332
341
|
], 40, me));
|
|
333
342
|
}
|
|
334
343
|
});
|
|
335
344
|
export {
|
|
336
|
-
|
|
345
|
+
Ke as default
|
|
337
346
|
};
|
|
@@ -93,10 +93,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
93
93
|
searchPlaceholder: string;
|
|
94
94
|
count: number;
|
|
95
95
|
showSearch: boolean;
|
|
96
|
-
|
|
96
|
+
loadingRowCount: number;
|
|
97
97
|
emptyStateTitle: string;
|
|
98
|
+
isSticky: boolean;
|
|
98
99
|
emptyStateSubtitle: string;
|
|
99
|
-
loadingRowCount: number;
|
|
100
100
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
101
101
|
zIndexBase: number;
|
|
102
102
|
totalCount: number;
|
|
@@ -106,12 +106,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
106
|
tablesSettings: TableSettings[];
|
|
107
107
|
loadingAndEmptyStatesColumns: Column[];
|
|
108
108
|
}>, Partial<Record<string, (_: {
|
|
109
|
+
column: Column;
|
|
110
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
109
111
|
cell: any;
|
|
110
112
|
isLoading: any;
|
|
111
113
|
cellIndex: any;
|
|
112
114
|
row: any;
|
|
113
115
|
rowIndex: any;
|
|
114
|
-
}) => any
|
|
116
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
117
|
+
column: Column;
|
|
118
|
+
}) => any>> & {
|
|
119
|
+
title?(_: {}): any;
|
|
120
|
+
search?(_: {}): any;
|
|
121
|
+
"table-header-actions"?(_: {}): any;
|
|
122
|
+
"floating-row"?(_: {
|
|
123
|
+
row: import("@vueuse/core").UseVirtualListItem<import("@is-ssp/table/common/Table.types").Row>;
|
|
124
|
+
rowIndex: number;
|
|
125
|
+
}): any;
|
|
126
|
+
"empty-state"?(_: {}): any;
|
|
127
|
+
}>;
|
|
115
128
|
export default _default;
|
|
116
129
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
117
130
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../MultipleDataGrid.
|
|
4
|
-
const
|
|
1
|
+
import e from "./MultipleDataGrid.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-82ba0e12"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|