@ironsource/shared-ui 2.1.7-test.7 → 2.1.7-test.8
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_467ea11a_lang.css +1 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +60 -60
- package/components/table/v4/storyUtils.d.ts +4 -0
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-467ea11a]{position:sticky}.table-container[data-v-467ea11a]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-467ea11a]{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-467ea11a]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-467ea11a]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-467ea11a]{width:13.75rem}.table-header.isStickyHeader[data-v-467ea11a]{z-index:calc(var(--30600d2f) + 3);top:0}.table-head-container[data-v-467ea11a]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-467ea11a]{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-467ea11a]{display:inline-table}.table-header-actions[data-v-467ea11a]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-467ea11a]{position:relative}.table-row.loading[data-v-467ea11a]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-467ea11a]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-467ea11a]{border-bottom:none}.expanded-row[data-v-467ea11a]{grid-column:var(--57bce063);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-467ea11a]{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-467ea11a]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-467ea11a],table th[data-v-467ea11a]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-467ea11a]:first-of-type,table th[data-v-467ea11a]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-467ea11a]:last-of-type,table th[data-v-467ea11a]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-467ea11a],table th.expand-toggle-cell[data-v-467ea11a]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-467ea11a]{border-bottom:none;z-index:calc(var(--30600d2f) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-467ea11a]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--23d2669c)}table>thead>tr>th[data-v-467ea11a]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-467ea11a]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-467ea11a]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-467ea11a]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-467ea11a]{cursor:pointer}table>thead.sticky[data-v-467ea11a]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-467ea11a]{z-index:calc(var(--30600d2f) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-467ea11a]{display:block}table>tbody>*>tr[data-v-467ea11a]{background-color:var(--background-default);min-height:var(--dbd245b8);height:auto;display:grid;align-items:center;grid-template-columns:var(--23d2669c)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-467ea11a]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-467ea11a],table>tbody>*>tr.activeMenu>td[data-v-467ea11a]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-467ea11a]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--dbd245b8);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-467ea11a]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-467ea11a]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-467ea11a]{justify-content:flex-end;text-align:right}.section-container[data-v-467ea11a]{left:0}.sections[data-v-467ea11a]{display:flex}.section[data-v-467ea11a]{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-467ea11a]{width:100%}.empty-state[data-v-467ea11a]{min-height:250px}
|
|
@@ -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 a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_467ea11a_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ a(o, [["__scopeId", "data-v-467ea11a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_467ea11a_lang.css"; import { defineComponent as ie, useCssVars as de, unref as t, useSlots as oe, computed as v, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as h, withCtx as T, createTextVNode as w, toDisplayString as E, isRef as ne, createCommentVNode as c, Fragment as B, renderList as I, createBlock as z, mergeProps as re } from "vue";
|
|
2
2
|
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ce from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ue from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -61,14 +61,14 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
61
61
|
},
|
|
62
62
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
63
63
|
setup(s, { expose: m, emit: y }) {
|
|
64
|
-
const
|
|
65
|
-
de((
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
64
|
+
const d = s;
|
|
65
|
+
de((l) => ({
|
|
66
|
+
"30600d2f": s.zIndexBase,
|
|
67
|
+
"57bce063": t(X),
|
|
68
|
+
"23d2669c": t(H),
|
|
69
|
+
dbd245b8: t(J)
|
|
70
70
|
}));
|
|
71
|
-
const b = oe(), U = (a) =>
|
|
71
|
+
const b = oe(), U = (l, a) => d.rowCustomClassKey ? (console.log("row", a), console.log("rowIndex", d.rows[l]), d.rows[l] ? d.rows[l][d.rowCustomClassKey] : "") : "", {
|
|
72
72
|
list: P,
|
|
73
73
|
containerProps: G,
|
|
74
74
|
wrapperProps: Y,
|
|
@@ -88,35 +88,35 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
88
88
|
hasCheckboxes: O,
|
|
89
89
|
activeMenuRow: Z,
|
|
90
90
|
scrollTo: _
|
|
91
|
-
} = he(
|
|
92
|
-
const
|
|
93
|
-
return
|
|
94
|
-
}), R = (
|
|
95
|
-
R(
|
|
96
|
-
|
|
97
|
-
(
|
|
91
|
+
} = he(d, y), D = v(() => !!b.footer), g = me(d, "search", y), ee = v(() => d.selection.length || 0), M = v(() => {
|
|
92
|
+
const l = d.rows.map((a, e) => d.getRowId(a, e));
|
|
93
|
+
return l.length && l.every((a) => R(a));
|
|
94
|
+
}), R = (l) => d.selection.findIndex((a) => d.selectedMatcher(l, a)) !== -1, te = (l) => {
|
|
95
|
+
R(l) ? (C(
|
|
96
|
+
d.selection.filter(
|
|
97
|
+
(a) => !d.selectedMatcher(l, a)
|
|
98
98
|
)
|
|
99
|
-
), y("selectRow", !1)) : (C([...
|
|
99
|
+
), y("selectRow", !1)) : (C([...d.selection, l]), y("selectRow", !0));
|
|
100
100
|
}, se = () => {
|
|
101
101
|
if (M.value)
|
|
102
102
|
C([]), y("selectAll", !1);
|
|
103
103
|
else {
|
|
104
|
-
const
|
|
105
|
-
C([...
|
|
104
|
+
const l = d.rows.map((a, e) => d.getRowId(a, e)).filter((a) => !R(a));
|
|
105
|
+
C([...d.selection, ...l]), y("selectAll", !0);
|
|
106
106
|
}
|
|
107
|
-
}, C = (
|
|
108
|
-
y("update:selection",
|
|
109
|
-
},
|
|
110
|
-
() =>
|
|
111
|
-
),
|
|
112
|
-
() =>
|
|
107
|
+
}, C = (l) => {
|
|
108
|
+
y("update:selection", l);
|
|
109
|
+
}, le = v(
|
|
110
|
+
() => d.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
|
|
111
|
+
), ae = v(
|
|
112
|
+
() => d.emptyStateSubtitle ? d.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
|
|
113
113
|
);
|
|
114
114
|
return m({
|
|
115
115
|
scrollTo: _
|
|
116
|
-
}), (
|
|
116
|
+
}), (l, a) => (i(), o("div", {
|
|
117
117
|
class: "table-container",
|
|
118
118
|
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
119
|
-
onMouseleave:
|
|
119
|
+
onMouseleave: a[3] || (a[3] = (e) => A.value = null)
|
|
120
120
|
}, [
|
|
121
121
|
u("table", {
|
|
122
122
|
ref: t(G).ref,
|
|
@@ -125,10 +125,10 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
125
125
|
hasFooter: t(D)
|
|
126
126
|
}),
|
|
127
127
|
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
128
|
-
onScrollPassive:
|
|
128
|
+
onScrollPassive: a[2] || (a[2] = //@ts-ignore
|
|
129
129
|
(...e) => t(N) && t(N)(...e))
|
|
130
130
|
}, [
|
|
131
|
-
s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (
|
|
131
|
+
s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (i(), o("div", {
|
|
132
132
|
key: 0,
|
|
133
133
|
class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
134
134
|
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
@@ -137,7 +137,7 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
137
137
|
class: "table-title",
|
|
138
138
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
139
139
|
}, [
|
|
140
|
-
r(
|
|
140
|
+
r(l.$slots, "title", {}, () => [
|
|
141
141
|
h(t(p), { variant: "h3" }, {
|
|
142
142
|
default: T(() => [
|
|
143
143
|
w(E(s.title), 1)
|
|
@@ -150,25 +150,25 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
150
150
|
class: "table-header-right",
|
|
151
151
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
152
152
|
}, [
|
|
153
|
-
s.showSearch ? r(
|
|
153
|
+
s.showSearch ? r(l.$slots, "search", { key: 0 }, () => [
|
|
154
154
|
u("div", Ce, [
|
|
155
155
|
h(t(ke), {
|
|
156
156
|
modelValue: t(g),
|
|
157
|
-
"onUpdate:modelValue":
|
|
157
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => ne(g) ? g.value = e : null),
|
|
158
158
|
placeholder: s.searchPlaceholder,
|
|
159
159
|
"auto-focus": s.searchAutoFocus,
|
|
160
160
|
"test-id": s.testId,
|
|
161
|
-
onOnClear:
|
|
161
|
+
onOnClear: a[1] || (a[1] = (e) => y("onClearSearch"))
|
|
162
162
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
163
163
|
])
|
|
164
164
|
], !0) : c("", !0)
|
|
165
165
|
], 8, Re),
|
|
166
|
-
t(b)["table-header-actions"] ? (
|
|
166
|
+
t(b)["table-header-actions"] ? (i(), o("div", {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: "table-header-actions",
|
|
169
169
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
170
170
|
}, [
|
|
171
|
-
r(
|
|
171
|
+
r(l.$slots, "table-header-actions", {}, void 0, !0)
|
|
172
172
|
], 8, xe)) : c("", !0)
|
|
173
173
|
], 10, be)) : c("", !0),
|
|
174
174
|
u("thead", {
|
|
@@ -178,11 +178,11 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
178
178
|
class: "sections",
|
|
179
179
|
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
180
180
|
}, [
|
|
181
|
-
(
|
|
181
|
+
(i(!0), o(B, null, I(s.sections, (e) => (i(), o("div", {
|
|
182
182
|
key: e.id,
|
|
183
183
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
184
184
|
}, [
|
|
185
|
-
r(
|
|
185
|
+
r(l.$slots, `section-${e.id}`, {}, () => [
|
|
186
186
|
u("div", {
|
|
187
187
|
style: x({ width: e.width + "px" }),
|
|
188
188
|
class: f({ section: !0 })
|
|
@@ -198,8 +198,8 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
198
198
|
], 2))), 128))
|
|
199
199
|
], 8, Te),
|
|
200
200
|
u("tr", null, [
|
|
201
|
-
t(O) ? (
|
|
202
|
-
r(
|
|
201
|
+
t(O) ? (i(), o("th", we, [
|
|
202
|
+
r(l.$slots, "select-all-checkbox", {}, () => [
|
|
203
203
|
h(t(K), {
|
|
204
204
|
disabled: s.isLoading,
|
|
205
205
|
"is-checked": t(M),
|
|
@@ -208,8 +208,8 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
208
208
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
209
209
|
], !0)
|
|
210
210
|
])) : c("", !0),
|
|
211
|
-
t($) ? (
|
|
212
|
-
(
|
|
211
|
+
t($) ? (i(), o("th", Ee)) : c("", !0),
|
|
212
|
+
(i(!0), o(B, null, I(s.columns, (e) => (i(), o("th", {
|
|
213
213
|
key: e.id,
|
|
214
214
|
class: f({
|
|
215
215
|
sticky: e.isSticky,
|
|
@@ -223,7 +223,7 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
223
223
|
onClick: (k) => e.isSortable ? t(Q)(e) : null
|
|
224
224
|
}, [
|
|
225
225
|
u("div", Ie, [
|
|
226
|
-
r(
|
|
226
|
+
r(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
227
227
|
h(t(p), { variant: "tableLabel" }, {
|
|
228
228
|
default: T(() => [
|
|
229
229
|
w(E(e.title), 1)
|
|
@@ -231,12 +231,12 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
231
231
|
_: 2
|
|
232
232
|
}, 1024)
|
|
233
233
|
], !0),
|
|
234
|
-
e.helpText ? (
|
|
234
|
+
e.helpText ? (i(), z(fe, {
|
|
235
235
|
key: 0,
|
|
236
236
|
"hover-help-text": e.helpText,
|
|
237
237
|
"hover-help-text-placement": e.helpTextPlacement
|
|
238
238
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : c("", !0),
|
|
239
|
-
e.isSortable && e.id === s.sort?.sortBy ? (
|
|
239
|
+
e.isSortable && e.id === s.sort?.sortBy ? (i(), z(ye, {
|
|
240
240
|
key: 1,
|
|
241
241
|
"sort-order": s.sort.sortOrder
|
|
242
242
|
}, null, 8, ["sort-order"])) : c("", !0)
|
|
@@ -245,36 +245,36 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
245
245
|
])
|
|
246
246
|
], 2),
|
|
247
247
|
u("tbody", null, [
|
|
248
|
-
t(P).length > 0 ? (
|
|
248
|
+
t(P).length > 0 ? (i(), o("div", re({
|
|
249
249
|
key: 0,
|
|
250
250
|
class: "table-body-wrapper",
|
|
251
251
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
252
252
|
}, t(Y)), [
|
|
253
|
-
(
|
|
253
|
+
(i(!0), o(B, null, I(t(P), (e) => (i(), o("tr", {
|
|
254
254
|
key: e.index,
|
|
255
255
|
class: f(["table-row", {
|
|
256
256
|
loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
|
|
257
257
|
active: t(A) === e.index,
|
|
258
258
|
activeMenu: t(Z) === e.index,
|
|
259
259
|
expanded: t($) && t(V)(e.index),
|
|
260
|
-
[U(e.index)]: !0
|
|
260
|
+
[U(e.index, e)]: !0
|
|
261
261
|
}]),
|
|
262
262
|
onMouseenter: (k) => A.value = e.index,
|
|
263
263
|
onClick: (k) => y("clickRow", e.index)
|
|
264
264
|
}, [
|
|
265
|
-
t(O) ? (
|
|
265
|
+
t(O) ? (i(), o("td", Ve, [
|
|
266
266
|
h(t(K), {
|
|
267
267
|
"is-checked": R(s.getRowId(e.data, e.index)),
|
|
268
268
|
"onUpdate:isChecked": (k) => te(s.getRowId(e.data, e.index))
|
|
269
269
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
270
270
|
])) : c("", !0),
|
|
271
|
-
t($) ? (
|
|
271
|
+
t($) ? (i(), o("td", Me, [
|
|
272
272
|
h(Se, {
|
|
273
273
|
expanded: t(V)(e.index),
|
|
274
274
|
onClick: (k) => t(q)(e.index, k)
|
|
275
275
|
}, null, 8, ["expanded", "onClick"])
|
|
276
276
|
])) : c("", !0),
|
|
277
|
-
(
|
|
277
|
+
(i(!0), o(B, null, I(s.columns, (k, n) => (i(), o("td", {
|
|
278
278
|
key: n,
|
|
279
279
|
class: f({
|
|
280
280
|
sticky: s.columns[n].isSticky,
|
|
@@ -287,11 +287,11 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
287
287
|
s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
|
|
288
288
|
)
|
|
289
289
|
}, [
|
|
290
|
-
!s.isLoading || s.isLoading && e.data[n] ? (
|
|
290
|
+
!s.isLoading || s.isLoading && e.data[n] ? (i(), o("div", {
|
|
291
291
|
key: 0,
|
|
292
292
|
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
293
293
|
}, [
|
|
294
|
-
r(
|
|
294
|
+
r(l.$slots, `cell-${s.columns[n].id}`, {
|
|
295
295
|
cell: e.data[n],
|
|
296
296
|
isLoading: t(F).includes(e.index),
|
|
297
297
|
cellIndex: n,
|
|
@@ -305,32 +305,32 @@ const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["d
|
|
|
305
305
|
_: 2
|
|
306
306
|
}, 1024)
|
|
307
307
|
], !0)
|
|
308
|
-
], 2)) : r(
|
|
308
|
+
], 2)) : r(l.$slots, "loader", { key: 1 }, () => [
|
|
309
309
|
h(t(ce), { round: "" })
|
|
310
310
|
], !0)
|
|
311
311
|
], 6))), 128)),
|
|
312
|
-
t($) && t(V)(e.index) ? (
|
|
313
|
-
r(
|
|
312
|
+
t($) && t(V)(e.index) ? (i(), o("div", Pe, [
|
|
313
|
+
r(l.$slots, "expanded", {
|
|
314
314
|
row: e,
|
|
315
315
|
gridColumnTemplate: t(H)
|
|
316
316
|
}, void 0, !0)
|
|
317
317
|
])) : c("", !0)
|
|
318
318
|
], 42, Ae))), 128))
|
|
319
|
-
], 16, pe)) : (
|
|
320
|
-
r(
|
|
319
|
+
], 16, pe)) : (i(), o("div", He, [
|
|
320
|
+
r(l.$slots, "empty-state", {}, () => [
|
|
321
321
|
h(t(ue), {
|
|
322
322
|
class: "empty-state",
|
|
323
323
|
title: s.emptyStateTitle,
|
|
324
|
-
subtitle: t(
|
|
325
|
-
variant: t(
|
|
324
|
+
subtitle: t(ae),
|
|
325
|
+
variant: t(le),
|
|
326
326
|
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
327
327
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
328
328
|
], !0)
|
|
329
329
|
]))
|
|
330
330
|
])
|
|
331
331
|
], 46, ve),
|
|
332
|
-
t(D) ? (
|
|
333
|
-
r(
|
|
332
|
+
t(D) ? (i(), o("div", Le, [
|
|
333
|
+
r(l.$slots, "footer", {}, void 0, !0)
|
|
334
334
|
])) : c("", !0)
|
|
335
335
|
], 40, ge));
|
|
336
336
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const getRandomRows: (count: number, template?: string[]) => any[][];
|
|
2
|
+
export declare const getRandomObjectRows: (count: number, template?: string[]) => {
|
|
3
|
+
rowData: any[];
|
|
4
|
+
customClass: string;
|
|
5
|
+
}[];
|
|
2
6
|
export declare const searchRows: (array: string[][], query: string) => string[][];
|
|
3
7
|
export declare const exampleRows: string[][];
|
|
4
8
|
export declare const moreExampleRows: string[][];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sticky[data-v-5273976b]{position:sticky}.table-container[data-v-5273976b]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-5273976b]{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-5273976b]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-5273976b]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-5273976b]{width:13.75rem}.table-header.isStickyHeader[data-v-5273976b]{z-index:calc(var(--2d374a62) + 3);top:0}.table-head-container[data-v-5273976b]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-5273976b]{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-5273976b]{display:inline-table}.table-header-actions[data-v-5273976b]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-5273976b]{position:relative}.table-row.loading[data-v-5273976b]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-5273976b]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-5273976b]{border-bottom:none}.expanded-row[data-v-5273976b]{grid-column:var(--7d502b56);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-5273976b]{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-5273976b]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-5273976b],table th[data-v-5273976b]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-5273976b]:first-of-type,table th[data-v-5273976b]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-5273976b]:last-of-type,table th[data-v-5273976b]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-5273976b],table th.expand-toggle-cell[data-v-5273976b]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-5273976b]{border-bottom:none;z-index:calc(var(--2d374a62) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-5273976b]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--31bec0cf)}table>thead>tr>th[data-v-5273976b]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-5273976b]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-5273976b]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-5273976b]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-5273976b]{cursor:pointer}table>thead.sticky[data-v-5273976b]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-5273976b]{z-index:calc(var(--2d374a62) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-5273976b]{display:block}table>tbody>*>tr[data-v-5273976b]{background-color:var(--background-default);min-height:var(--93d8ccd2);height:auto;display:grid;align-items:center;grid-template-columns:var(--31bec0cf)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-5273976b]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-5273976b],table>tbody>*>tr.activeMenu>td[data-v-5273976b]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-5273976b]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--93d8ccd2);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-5273976b]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-5273976b]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-5273976b]{justify-content:flex-end;text-align:right}.section-container[data-v-5273976b]{left:0}.sections[data-v-5273976b]{display:flex}.section[data-v-5273976b]{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-5273976b]{width:100%}.empty-state[data-v-5273976b]{min-height:250px}
|