@ironsource/shared-ui 2.1.6-rc.35 → 2.1.6-rc.36
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_ac14037f_lang.css +1 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +51 -50
- package/components/table/v4/index.d.ts +7 -1
- package/index.d.ts +14 -2
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_b5729ec6_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-ac14037f]{position:sticky}.table-container[data-v-ac14037f]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-ac14037f]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-ac14037f]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-ac14037f]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-ac14037f]{width:13.75rem}.table-header.isStickyHeader[data-v-ac14037f]{z-index:calc(var(--27aa1cb6) + 3);top:0}.table-head-container[data-v-ac14037f]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-ac14037f]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-ac14037f]{display:inline-table}.table-header-actions[data-v-ac14037f]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-ac14037f]{position:relative}.table-row.loading[data-v-ac14037f]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-ac14037f]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-ac14037f]{border-bottom:none}.expanded-row[data-v-ac14037f]{grid-column:var(--db2e22ac);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-ac14037f]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-ac14037f]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-ac14037f],table th[data-v-ac14037f]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-ac14037f]:first-of-type,table th[data-v-ac14037f]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-ac14037f]:last-of-type,table th[data-v-ac14037f]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-ac14037f],table th.expand-toggle-cell[data-v-ac14037f]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-ac14037f]{border-bottom:none;z-index:calc(var(--27aa1cb6) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-ac14037f]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--63b3ff23)}table>thead>tr>th[data-v-ac14037f]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-ac14037f]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-ac14037f]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-ac14037f]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-ac14037f]{cursor:pointer}table>thead.sticky[data-v-ac14037f]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-ac14037f]{z-index:calc(var(--27aa1cb6) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-ac14037f]{display:block}table>tbody>*>tr[data-v-ac14037f]{background-color:var(--background-default);min-height:var(--41c9b22a);height:auto;display:grid;align-items:center;grid-template-columns:var(--63b3ff23)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-ac14037f]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-ac14037f],table>tbody>*>tr.activeMenu>td[data-v-ac14037f]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-ac14037f]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--41c9b22a);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-ac14037f]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-ac14037f]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-ac14037f]{justify-content:flex-end;text-align:right}.section-container[data-v-ac14037f]{left:0}.sections[data-v-ac14037f]{display:flex}.section[data-v-ac14037f]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-ac14037f]{width:100%}.empty-state[data-v-ac14037f]{min-height:250px}
|
|
@@ -64,6 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
64
|
loadMore: () => void;
|
|
65
65
|
selectAll: (value: boolean) => void;
|
|
66
66
|
selectRow: (value: boolean) => void;
|
|
67
|
+
clickRow: (rowIndex: number) => void;
|
|
67
68
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
68
69
|
title?: string;
|
|
69
70
|
columns: Column[];
|
|
@@ -129,6 +130,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
129
130
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
130
131
|
onOnClearSearch?: () => any;
|
|
131
132
|
onSelectRow?: (value: boolean) => any;
|
|
133
|
+
onClickRow?: (rowIndex: number) => any;
|
|
132
134
|
}, {
|
|
133
135
|
sort: Sort;
|
|
134
136
|
title: string;
|
|
@@ -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 _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ac14037f_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-ac14037f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ac14037f_lang.css"; import { defineComponent as se, useCssVars as ae, unref as t, useSlots as le, computed as g, openBlock as l, createElementBlock as d, createElementVNode as h, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as y, withCtx as C, createTextVNode as T, toDisplayString as E, isRef as ie, createCommentVNode as u, Fragment as w, renderList as B, createBlock as z, mergeProps as de } from "vue";
|
|
2
2
|
import I from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import oe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import D from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
7
|
+
import { tableCommon as ce } from "../common/Table.common.js";
|
|
8
|
+
import re from "./SortIcon.vue.js";
|
|
9
9
|
import ue from "./HelpIcon.vue.js";
|
|
10
10
|
import he from "./ExpandRowToggle.vue.js";
|
|
11
11
|
import ye from "../../search/v4/SearchV4.vue.js";
|
|
@@ -13,10 +13,10 @@ import { useVModel as fe } from "@vueuse/core";
|
|
|
13
13
|
const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox-cell"
|
|
16
|
-
},
|
|
16
|
+
}, Ce = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
19
|
+
}, Te = ["onClick"], Ee = { class: "table-head-container" }, we = ["data-testid"], Be = ["onMouseenter", "onClick"], Ie = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "checkbox-cell"
|
|
22
22
|
}, pe = {
|
|
@@ -37,8 +37,8 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
37
37
|
sections: { default: null },
|
|
38
38
|
sort: { default: null },
|
|
39
39
|
selection: { default: null },
|
|
40
|
-
getRowId: { type: Function, default: (s,
|
|
41
|
-
selectedMatcher: { type: Function, default: (s,
|
|
40
|
+
getRowId: { type: Function, default: (s, c) => c },
|
|
41
|
+
selectedMatcher: { type: Function, default: (s, c) => s === c },
|
|
42
42
|
isSticky: { type: Boolean, default: !0 },
|
|
43
43
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
44
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -57,14 +57,14 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
57
57
|
searchAutoFocus: { type: Boolean, default: !1 },
|
|
58
58
|
zIndexBase: { default: 100 }
|
|
59
59
|
},
|
|
60
|
-
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow"],
|
|
61
|
-
setup(s, { emit:
|
|
60
|
+
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
61
|
+
setup(s, { emit: c }) {
|
|
62
62
|
const o = s;
|
|
63
63
|
ae((a) => ({
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
64
|
+
"27aa1cb6": s.zIndexBase,
|
|
65
|
+
db2e22ac: t(J),
|
|
66
|
+
"63b3ff23": t(V),
|
|
67
|
+
"41c9b22a": t(q)
|
|
68
68
|
}));
|
|
69
69
|
const v = le(), {
|
|
70
70
|
list: P,
|
|
@@ -85,7 +85,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
85
85
|
isRowExpanded: A,
|
|
86
86
|
hasCheckboxes: F,
|
|
87
87
|
activeMenuRow: K
|
|
88
|
-
} =
|
|
88
|
+
} = ce(o, c), O = g(() => !!v.footer), m = fe(o, "search", c), X = g(() => o.selection.length || 0), M = g(() => {
|
|
89
89
|
const a = o.rows.map((i, e) => o.getRowId(i, e));
|
|
90
90
|
return a.length && a.every((i) => $(i));
|
|
91
91
|
}), $ = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, Z = (a) => {
|
|
@@ -93,20 +93,20 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
93
93
|
o.selection.filter(
|
|
94
94
|
(i) => !o.selectedMatcher(a, i)
|
|
95
95
|
)
|
|
96
|
-
),
|
|
96
|
+
), c("selectRow", !1)) : (R([...o.selection, a]), c("selectRow", !0));
|
|
97
97
|
}, _ = () => {
|
|
98
98
|
if (M.value)
|
|
99
|
-
R([]),
|
|
99
|
+
R([]), c("selectAll", !1);
|
|
100
100
|
else {
|
|
101
101
|
const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !$(i));
|
|
102
|
-
R([...o.selection, ...a]),
|
|
102
|
+
R([...o.selection, ...a]), c("selectAll", !0);
|
|
103
103
|
}
|
|
104
104
|
}, R = (a) => {
|
|
105
|
-
|
|
105
|
+
c("update:selection", a);
|
|
106
106
|
}, ee = g(
|
|
107
|
-
() => o.emptyStateVariant ?? (
|
|
107
|
+
() => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
|
|
108
108
|
), te = g(
|
|
109
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
109
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
|
|
110
110
|
);
|
|
111
111
|
return (a, i) => (l(), d("div", {
|
|
112
112
|
class: "table-container",
|
|
@@ -132,10 +132,10 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
132
132
|
class: "table-title",
|
|
133
133
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
134
134
|
}, [
|
|
135
|
-
|
|
135
|
+
r(a.$slots, "title", {}, () => [
|
|
136
136
|
y(t(I), { variant: "h3" }, {
|
|
137
|
-
default:
|
|
138
|
-
|
|
137
|
+
default: C(() => [
|
|
138
|
+
T(E(s.title), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
})
|
|
@@ -145,15 +145,15 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
145
145
|
class: "table-header-right",
|
|
146
146
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
147
147
|
}, [
|
|
148
|
-
s.showSearch ?
|
|
148
|
+
s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
|
|
149
149
|
h("div", be, [
|
|
150
150
|
y(t(ye), {
|
|
151
|
-
modelValue: t(
|
|
152
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) => ie(
|
|
151
|
+
modelValue: t(m),
|
|
152
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => ie(m) ? m.value = e : null),
|
|
153
153
|
placeholder: s.searchPlaceholder,
|
|
154
154
|
"auto-focus": s.searchAutoFocus,
|
|
155
155
|
"test-id": s.testId,
|
|
156
|
-
onOnClear: i[1] || (i[1] = (e) =>
|
|
156
|
+
onOnClear: i[1] || (i[1] = (e) => c("onClearSearch"))
|
|
157
157
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
158
158
|
])
|
|
159
159
|
], !0) : u("", !0)
|
|
@@ -163,7 +163,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
163
163
|
class: "table-header-actions",
|
|
164
164
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
165
165
|
}, [
|
|
166
|
-
|
|
166
|
+
r(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
167
167
|
], 8, $e)) : u("", !0)
|
|
168
168
|
], 10, me)) : u("", !0),
|
|
169
169
|
h("thead", {
|
|
@@ -177,14 +177,14 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
177
177
|
key: e.id,
|
|
178
178
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
179
179
|
}, [
|
|
180
|
-
|
|
180
|
+
r(a.$slots, `section-${e.id}`, {}, () => [
|
|
181
181
|
h("div", {
|
|
182
182
|
style: x({ width: e.width + "px" }),
|
|
183
183
|
class: f({ section: !0 })
|
|
184
184
|
}, [
|
|
185
185
|
y(t(I), { variant: "body2" }, {
|
|
186
|
-
default:
|
|
187
|
-
|
|
186
|
+
default: C(() => [
|
|
187
|
+
T(E(e.title), 1)
|
|
188
188
|
]),
|
|
189
189
|
_: 2
|
|
190
190
|
}, 1024)
|
|
@@ -194,7 +194,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
194
194
|
], 8, Re),
|
|
195
195
|
h("tr", null, [
|
|
196
196
|
t(F) ? (l(), d("th", xe, [
|
|
197
|
-
|
|
197
|
+
r(a.$slots, "select-all-checkbox", {}, () => [
|
|
198
198
|
y(t(D), {
|
|
199
199
|
disabled: s.isLoading,
|
|
200
200
|
"is-checked": t(M),
|
|
@@ -203,7 +203,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
203
203
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
204
204
|
], !0)
|
|
205
205
|
])) : u("", !0),
|
|
206
|
-
t(b) ? (l(), d("th",
|
|
206
|
+
t(b) ? (l(), d("th", Ce)) : u("", !0),
|
|
207
207
|
(l(!0), d(w, null, B(s.columns, (e) => (l(), d("th", {
|
|
208
208
|
key: e.id,
|
|
209
209
|
class: f({
|
|
@@ -215,13 +215,13 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
215
215
|
[`column-${e.id}`]: !0
|
|
216
216
|
}),
|
|
217
217
|
style: x(e.isSticky ? t(H)[e.id] : null),
|
|
218
|
-
onClick: (
|
|
218
|
+
onClick: (k) => e.isSortable ? t(Y)(e) : null
|
|
219
219
|
}, [
|
|
220
220
|
h("div", Ee, [
|
|
221
|
-
|
|
221
|
+
r(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
222
222
|
y(t(I), { variant: "tableLabel" }, {
|
|
223
|
-
default:
|
|
224
|
-
|
|
223
|
+
default: C(() => [
|
|
224
|
+
T(E(e.title), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 2
|
|
227
227
|
}, 1024)
|
|
@@ -231,12 +231,12 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
231
231
|
"hover-help-text": e.helpText,
|
|
232
232
|
"hover-help-text-placement": e.helpTextPlacement
|
|
233
233
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : u("", !0),
|
|
234
|
-
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(
|
|
234
|
+
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(re, {
|
|
235
235
|
key: 1,
|
|
236
236
|
"sort-order": s.sort.sortOrder
|
|
237
237
|
}, null, 8, ["sort-order"])) : u("", !0)
|
|
238
238
|
])
|
|
239
|
-
], 14,
|
|
239
|
+
], 14, Te))), 128))
|
|
240
240
|
])
|
|
241
241
|
], 2),
|
|
242
242
|
h("tbody", null, [
|
|
@@ -253,22 +253,23 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
253
253
|
activeMenu: t(K) === e.index,
|
|
254
254
|
expanded: t(b) && t(A)(e.index)
|
|
255
255
|
}]),
|
|
256
|
-
onMouseenter: (
|
|
256
|
+
onMouseenter: (k) => p.value = e.index,
|
|
257
|
+
onClick: (k) => c("clickRow", e.index)
|
|
257
258
|
}, [
|
|
258
259
|
t(F) ? (l(), d("td", Ie, [
|
|
259
260
|
y(t(D), {
|
|
260
261
|
"is-checked": $(s.getRowId(e.data, e.index)),
|
|
261
262
|
size: "sm",
|
|
262
|
-
"onUpdate:isChecked": (
|
|
263
|
+
"onUpdate:isChecked": (k) => Z(s.getRowId(e.data, e.index))
|
|
263
264
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
264
265
|
])) : u("", !0),
|
|
265
266
|
t(b) ? (l(), d("td", pe, [
|
|
266
267
|
y(he, {
|
|
267
268
|
expanded: t(A)(e.index),
|
|
268
|
-
onClick: (
|
|
269
|
+
onClick: (k) => t(j)(e.index, k)
|
|
269
270
|
}, null, 8, ["expanded", "onClick"])
|
|
270
271
|
])) : u("", !0),
|
|
271
|
-
(l(!0), d(w, null, B(s.columns, (
|
|
272
|
+
(l(!0), d(w, null, B(s.columns, (k, n) => (l(), d("td", {
|
|
272
273
|
key: n,
|
|
273
274
|
class: f({
|
|
274
275
|
sticky: s.columns[n].isSticky,
|
|
@@ -285,7 +286,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
285
286
|
key: 0,
|
|
286
287
|
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
287
288
|
}, [
|
|
288
|
-
|
|
289
|
+
r(a.$slots, `cell-${s.columns[n].id}`, {
|
|
289
290
|
cell: e.data[n],
|
|
290
291
|
isLoading: t(N).includes(e.index),
|
|
291
292
|
cellIndex: n,
|
|
@@ -293,25 +294,25 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
293
294
|
rowIndex: e.index
|
|
294
295
|
}, () => [
|
|
295
296
|
y(t(I), { variant: "body1" }, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
297
|
+
default: C(() => [
|
|
298
|
+
T(E(e.data[n]), 1)
|
|
298
299
|
]),
|
|
299
300
|
_: 2
|
|
300
301
|
}, 1024)
|
|
301
302
|
], !0)
|
|
302
|
-
], 2)) :
|
|
303
|
+
], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
|
|
303
304
|
y(t(oe), { round: "" })
|
|
304
305
|
], !0)
|
|
305
306
|
], 6))), 128)),
|
|
306
307
|
t(b) && t(A)(e.index) ? (l(), d("div", Ae, [
|
|
307
|
-
|
|
308
|
+
r(a.$slots, "expanded", {
|
|
308
309
|
row: e,
|
|
309
310
|
gridColumnTemplate: t(V)
|
|
310
311
|
}, void 0, !0)
|
|
311
312
|
])) : u("", !0)
|
|
312
313
|
], 42, Be))), 128))
|
|
313
314
|
], 16, we)) : (l(), d("div", Me, [
|
|
314
|
-
|
|
315
|
+
r(a.$slots, "empty-state", {}, () => [
|
|
315
316
|
y(t(ne), {
|
|
316
317
|
class: "empty-state",
|
|
317
318
|
title: s.emptyStateTitle,
|
|
@@ -324,7 +325,7 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
324
325
|
])
|
|
325
326
|
], 46, ke),
|
|
326
327
|
t(O) ? (l(), d("div", Pe, [
|
|
327
|
-
|
|
328
|
+
r(a.$slots, "footer", {}, void 0, !0)
|
|
328
329
|
])) : u("", !0)
|
|
329
330
|
], 40, Se));
|
|
330
331
|
}
|
|
@@ -145,6 +145,7 @@ declare const DataGridTypes: () => (({
|
|
|
145
145
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
146
146
|
onOnClearSearch?: () => any;
|
|
147
147
|
onSelectRow?: (value: boolean) => any;
|
|
148
|
+
onClickRow?: (rowIndex: number) => any;
|
|
148
149
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
|
|
149
150
|
$attrs: {
|
|
150
151
|
[x: string]: unknown;
|
|
@@ -162,7 +163,7 @@ declare const DataGridTypes: () => (({
|
|
|
162
163
|
confirm: () => void;
|
|
163
164
|
rowIndex: number;
|
|
164
165
|
cellIndex: number;
|
|
165
|
-
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void);
|
|
166
|
+
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
166
167
|
$el: any;
|
|
167
168
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
168
169
|
sort: {
|
|
@@ -280,6 +281,7 @@ declare const DataGridTypes: () => (({
|
|
|
280
281
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
281
282
|
onOnClearSearch?: () => any;
|
|
282
283
|
onSelectRow?: (value: boolean) => any;
|
|
284
|
+
onClickRow?: (rowIndex: number) => any;
|
|
283
285
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
284
286
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
285
287
|
"update:search": (query: string) => void;
|
|
@@ -295,6 +297,7 @@ declare const DataGridTypes: () => (({
|
|
|
295
297
|
loadMore: () => void;
|
|
296
298
|
selectAll: (value: boolean) => void;
|
|
297
299
|
selectRow: (value: boolean) => void;
|
|
300
|
+
clickRow: (rowIndex: number) => void;
|
|
298
301
|
}, string, {
|
|
299
302
|
sort: import("../common/Table.types").Sort;
|
|
300
303
|
title: string;
|
|
@@ -455,6 +458,7 @@ declare const DataGridTypes: () => (({
|
|
|
455
458
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
456
459
|
onOnClearSearch?: () => any;
|
|
457
460
|
onSelectRow?: (value: boolean) => any;
|
|
461
|
+
onClickRow?: (rowIndex: number) => any;
|
|
458
462
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
459
463
|
__isFragment?: never;
|
|
460
464
|
__isTeleport?: never;
|
|
@@ -575,6 +579,7 @@ declare const DataGridTypes: () => (({
|
|
|
575
579
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
576
580
|
onOnClearSearch?: () => any;
|
|
577
581
|
onSelectRow?: (value: boolean) => any;
|
|
582
|
+
onClickRow?: (rowIndex: number) => any;
|
|
578
583
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
579
584
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
580
585
|
"update:search": (query: string) => void;
|
|
@@ -590,6 +595,7 @@ declare const DataGridTypes: () => (({
|
|
|
590
595
|
loadMore: () => void;
|
|
591
596
|
selectAll: (value: boolean) => void;
|
|
592
597
|
selectRow: (value: boolean) => void;
|
|
598
|
+
clickRow: (rowIndex: number) => void;
|
|
593
599
|
}, string, {
|
|
594
600
|
sort: import("../common/Table.types").Sort;
|
|
595
601
|
title: string;
|
package/index.d.ts
CHANGED
|
@@ -2883,6 +2883,7 @@ declare const _default: {
|
|
|
2883
2883
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
2884
2884
|
onOnClearSearch?: () => any;
|
|
2885
2885
|
onSelectRow?: (value: boolean) => any;
|
|
2886
|
+
onClickRow?: (rowIndex: number) => any;
|
|
2886
2887
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
|
|
2887
2888
|
$attrs: {
|
|
2888
2889
|
[x: string]: unknown;
|
|
@@ -2900,7 +2901,7 @@ declare const _default: {
|
|
|
2900
2901
|
confirm: () => void;
|
|
2901
2902
|
rowIndex: number;
|
|
2902
2903
|
cellIndex: number;
|
|
2903
|
-
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void);
|
|
2904
|
+
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
2904
2905
|
$el: any;
|
|
2905
2906
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
2906
2907
|
sort: {
|
|
@@ -3018,6 +3019,7 @@ declare const _default: {
|
|
|
3018
3019
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
3019
3020
|
onOnClearSearch?: () => any;
|
|
3020
3021
|
onSelectRow?: (value: boolean) => any;
|
|
3022
|
+
onClickRow?: (rowIndex: number) => any;
|
|
3021
3023
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3022
3024
|
"update:sort": (newSort: tableV3.Sort) => void;
|
|
3023
3025
|
"update:search": (query: string) => void;
|
|
@@ -3033,6 +3035,7 @@ declare const _default: {
|
|
|
3033
3035
|
loadMore: () => void;
|
|
3034
3036
|
selectAll: (value: boolean) => void;
|
|
3035
3037
|
selectRow: (value: boolean) => void;
|
|
3038
|
+
clickRow: (rowIndex: number) => void;
|
|
3036
3039
|
}, string, {
|
|
3037
3040
|
sort: tableV3.Sort;
|
|
3038
3041
|
title: string;
|
|
@@ -3193,6 +3196,7 @@ declare const _default: {
|
|
|
3193
3196
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
3194
3197
|
onOnClearSearch?: () => any;
|
|
3195
3198
|
onSelectRow?: (value: boolean) => any;
|
|
3199
|
+
onClickRow?: (rowIndex: number) => any;
|
|
3196
3200
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
3197
3201
|
__isFragment?: never;
|
|
3198
3202
|
__isTeleport?: never;
|
|
@@ -3313,6 +3317,7 @@ declare const _default: {
|
|
|
3313
3317
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
3314
3318
|
onOnClearSearch?: () => any;
|
|
3315
3319
|
onSelectRow?: (value: boolean) => any;
|
|
3320
|
+
onClickRow?: (rowIndex: number) => any;
|
|
3316
3321
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3317
3322
|
"update:sort": (newSort: tableV3.Sort) => void;
|
|
3318
3323
|
"update:search": (query: string) => void;
|
|
@@ -3328,6 +3333,7 @@ declare const _default: {
|
|
|
3328
3333
|
loadMore: () => void;
|
|
3329
3334
|
selectAll: (value: boolean) => void;
|
|
3330
3335
|
selectRow: (value: boolean) => void;
|
|
3336
|
+
clickRow: (rowIndex: number) => void;
|
|
3331
3337
|
}, string, {
|
|
3332
3338
|
sort: tableV3.Sort;
|
|
3333
3339
|
title: string;
|
|
@@ -3596,6 +3602,7 @@ declare const _default: {
|
|
|
3596
3602
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
3597
3603
|
onOnClearSearch?: () => any;
|
|
3598
3604
|
onSelectRow?: (value: boolean) => any;
|
|
3605
|
+
onClickRow?: (rowIndex: number) => any;
|
|
3599
3606
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
|
|
3600
3607
|
$attrs: {
|
|
3601
3608
|
[x: string]: unknown;
|
|
@@ -3613,7 +3620,7 @@ declare const _default: {
|
|
|
3613
3620
|
confirm: () => void;
|
|
3614
3621
|
rowIndex: number;
|
|
3615
3622
|
cellIndex: number;
|
|
3616
|
-
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void);
|
|
3623
|
+
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
3617
3624
|
$el: any;
|
|
3618
3625
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3619
3626
|
sort: {
|
|
@@ -3731,6 +3738,7 @@ declare const _default: {
|
|
|
3731
3738
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
3732
3739
|
onOnClearSearch?: () => any;
|
|
3733
3740
|
onSelectRow?: (value: boolean) => any;
|
|
3741
|
+
onClickRow?: (rowIndex: number) => any;
|
|
3734
3742
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3735
3743
|
"update:sort": (newSort: tableV3.Sort) => void;
|
|
3736
3744
|
"update:search": (query: string) => void;
|
|
@@ -3746,6 +3754,7 @@ declare const _default: {
|
|
|
3746
3754
|
loadMore: () => void;
|
|
3747
3755
|
selectAll: (value: boolean) => void;
|
|
3748
3756
|
selectRow: (value: boolean) => void;
|
|
3757
|
+
clickRow: (rowIndex: number) => void;
|
|
3749
3758
|
}, string, {
|
|
3750
3759
|
sort: tableV3.Sort;
|
|
3751
3760
|
title: string;
|
|
@@ -3906,6 +3915,7 @@ declare const _default: {
|
|
|
3906
3915
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
3907
3916
|
onOnClearSearch?: () => any;
|
|
3908
3917
|
onSelectRow?: (value: boolean) => any;
|
|
3918
|
+
onClickRow?: (rowIndex: number) => any;
|
|
3909
3919
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
3910
3920
|
__isFragment?: never;
|
|
3911
3921
|
__isTeleport?: never;
|
|
@@ -4026,6 +4036,7 @@ declare const _default: {
|
|
|
4026
4036
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
4027
4037
|
onOnClearSearch?: () => any;
|
|
4028
4038
|
onSelectRow?: (value: boolean) => any;
|
|
4039
|
+
onClickRow?: (rowIndex: number) => any;
|
|
4029
4040
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4030
4041
|
"update:sort": (newSort: tableV3.Sort) => void;
|
|
4031
4042
|
"update:search": (query: string) => void;
|
|
@@ -4041,6 +4052,7 @@ declare const _default: {
|
|
|
4041
4052
|
loadMore: () => void;
|
|
4042
4053
|
selectAll: (value: boolean) => void;
|
|
4043
4054
|
selectRow: (value: boolean) => void;
|
|
4055
|
+
clickRow: (rowIndex: number) => void;
|
|
4044
4056
|
}, string, {
|
|
4045
4057
|
sort: tableV3.Sort;
|
|
4046
4058
|
title: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sticky[data-v-b5729ec6]{position:sticky}.table-container[data-v-b5729ec6]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-b5729ec6]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-b5729ec6]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-b5729ec6]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-b5729ec6]{width:13.75rem}.table-header.isStickyHeader[data-v-b5729ec6]{z-index:calc(var(--1d168568) + 3);top:0}.table-head-container[data-v-b5729ec6]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-b5729ec6]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-b5729ec6]{display:inline-table}.table-header-actions[data-v-b5729ec6]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-b5729ec6]{position:relative}.table-row.loading[data-v-b5729ec6]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-b5729ec6]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-b5729ec6]{border-bottom:none}.expanded-row[data-v-b5729ec6]{grid-column:var(--40a246c0);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-b5729ec6]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-b5729ec6]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-b5729ec6],table th[data-v-b5729ec6]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-b5729ec6]:first-of-type,table th[data-v-b5729ec6]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-b5729ec6]:last-of-type,table th[data-v-b5729ec6]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-b5729ec6],table th.expand-toggle-cell[data-v-b5729ec6]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-b5729ec6]{border-bottom:none;z-index:calc(var(--1d168568) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-b5729ec6]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--68f7a9b9)}table>thead>tr>th[data-v-b5729ec6]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-b5729ec6]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-b5729ec6]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-b5729ec6]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-b5729ec6]{cursor:pointer}table>thead.sticky[data-v-b5729ec6]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-b5729ec6]{z-index:calc(var(--1d168568) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-b5729ec6]{display:block}table>tbody>*>tr[data-v-b5729ec6]{background-color:var(--background-default);min-height:var(--60bffa01);height:auto;display:grid;align-items:center;grid-template-columns:var(--68f7a9b9)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-b5729ec6]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-b5729ec6],table>tbody>*>tr.activeMenu>td[data-v-b5729ec6]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-b5729ec6]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--60bffa01);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-b5729ec6]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-b5729ec6]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-b5729ec6]{justify-content:flex-end;text-align:right}.section-container[data-v-b5729ec6]{left:0}.sections[data-v-b5729ec6]{display:flex}.section[data-v-b5729ec6]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-b5729ec6]{width:100%}.empty-state[data-v-b5729ec6]{min-height:250px}
|