@ironsource/shared-ui 2.2.0-rc.7 → 2.2.0-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/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +1 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +78 -77
- package/index.js +1 -1
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-46851fcb]{position:sticky}.table-container[data-v-46851fcb]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-46851fcb]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-46851fcb]{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-46851fcb]{display:inline-table}.table-row[data-v-46851fcb]{position:relative}.table-row.loading[data-v-46851fcb]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-46851fcb]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-46851fcb]{border-bottom:none}.expanded-row[data-v-46851fcb]{grid-column:var(--5caaa606);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-46851fcb]{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-46851fcb]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-46851fcb],table th[data-v-46851fcb]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-46851fcb]:first-of-type,table th[data-v-46851fcb]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-46851fcb]:last-of-type,table th[data-v-46851fcb]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-46851fcb],table th.expand-toggle-cell[data-v-46851fcb]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-46851fcb]{border-bottom:none;z-index:calc(var(--55ef8912) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-46851fcb]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--b7356102)}table>thead>tr>th[data-v-46851fcb]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-46851fcb]{cursor:pointer}table>thead>tr>td[data-v-46851fcb]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-46851fcb],table>thead>tr>td.bordered[data-v-46851fcb]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-46851fcb],table>thead>tr>td.bordered.isStickyRight[data-v-46851fcb]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-46851fcb],table>thead>tr>td.isTextRight[data-v-46851fcb]{justify-content:flex-end}table>thead.sticky[data-v-46851fcb]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-46851fcb]{z-index:calc(var(--55ef8912) + 2);top:var(--7d96c2a6)}table .totals-row[data-v-46851fcb]{height:40px}table .totals-row[data-v-46851fcb]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-46851fcb]{background-color:var(--background-default)}table>tbody[data-v-46851fcb]{display:block}table>tbody>*>tr[data-v-46851fcb]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--b7356102)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-46851fcb]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-46851fcb],table>tbody>*>tr.activeMenu>td[data-v-46851fcb]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-46851fcb]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-46851fcb]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-46851fcb]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-46851fcb]{justify-content:flex-end;text-align:right}.underlined[data-v-46851fcb]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-46851fcb]:hover{cursor:pointer}.section-container[data-v-46851fcb]{left:0}.sections[data-v-46851fcb]{display:flex}.section[data-v-46851fcb]{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-46851fcb]{width:100%}.empty-state[data-v-46851fcb]{min-height:250px}.floating-row[data-v-46851fcb]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--55ef8912) + 1)}.floating-row *[data-v-46851fcb-s]{pointer-events:auto}.bg[data-v-46851fcb]{background:var(--background-default)}.useAvailableHeight[data-v-46851fcb]{height:100%}.disabled-scrolling[data-v-46851fcb]{overflow:hidden}
|
|
@@ -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_46851fcb_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-46851fcb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as be, computed as u, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeStyle as S, normalizeClass as y, createBlock as I, isRef as pe, createSlots as ve, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as R, createVNode as k, createTextVNode as P, toDisplayString as O, mergeProps as L } from "vue";
|
|
2
2
|
import V from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import xe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -10,7 +10,7 @@ import "./DataGridRowsCounter.vue.js";
|
|
|
10
10
|
import $e from "./DataGridHeader.vue.js";
|
|
11
11
|
import "./DataGridContainer.vue.js";
|
|
12
12
|
import "./MultipleDataGrid.vue.js";
|
|
13
|
-
import { TableTestIdModifiers as
|
|
13
|
+
import { TableTestIdModifiers as $ } from "../../../testids/index.js";
|
|
14
14
|
import { tableCommon as Te } from "../common/Table.common.js";
|
|
15
15
|
import He from "./SortIcon.vue.js";
|
|
16
16
|
import we from "./HelpIcon.vue.js";
|
|
@@ -71,15 +71,15 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
71
71
|
},
|
|
72
72
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
73
73
|
setup(l, { expose: m, emit: f }) {
|
|
74
|
-
const
|
|
75
|
-
me((
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
"
|
|
74
|
+
const s = l;
|
|
75
|
+
me((a) => ({
|
|
76
|
+
"55ef8912": l.zIndexBase,
|
|
77
|
+
"5caaa606": t(le),
|
|
78
|
+
b7356102: t(G),
|
|
79
|
+
"7d96c2a6": t(fe)
|
|
80
80
|
}));
|
|
81
|
-
const p = be(), q = (
|
|
82
|
-
list:
|
|
81
|
+
const p = be(), q = (a) => s.rowCustomClassKey && s.rows[a] ? s.rows[a][s.rowCustomClassKey] : "", {
|
|
82
|
+
list: v,
|
|
83
83
|
containerProps: z,
|
|
84
84
|
wrapperProps: J,
|
|
85
85
|
activeRow: T,
|
|
@@ -95,74 +95,75 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
95
95
|
cssExpandGridCol: le,
|
|
96
96
|
isRowExpanded: M,
|
|
97
97
|
hasCheckboxes: D,
|
|
98
|
-
activeMenuRow:
|
|
99
|
-
scrollTo:
|
|
100
|
-
} = Te(
|
|
101
|
-
() =>
|
|
102
|
-
),
|
|
103
|
-
get: () =>
|
|
104
|
-
set: (
|
|
105
|
-
}), oe = u(() =>
|
|
106
|
-
const
|
|
107
|
-
return !!
|
|
108
|
-
}), E = (
|
|
109
|
-
E(
|
|
110
|
-
|
|
111
|
-
(o) => !
|
|
98
|
+
activeMenuRow: ae,
|
|
99
|
+
scrollTo: se
|
|
100
|
+
} = Te(s, f), W = u(() => !!p.footer), ie = u(
|
|
101
|
+
() => s.title || p.title || _.value || p["table-header-actions"] || p["table-header-pre-search"]
|
|
102
|
+
), x = u({
|
|
103
|
+
get: () => s.search,
|
|
104
|
+
set: (a) => f("update:search", a)
|
|
105
|
+
}), oe = u(() => s.selection.length || 0), F = u(() => {
|
|
106
|
+
const a = s.rows.map((o, e) => s.getRowId(o, e));
|
|
107
|
+
return !!a.length && a.every((o) => E(o));
|
|
108
|
+
}), E = (a) => s.selection.findIndex((o) => s.selectedMatcher(a, o)) !== -1, de = (a) => {
|
|
109
|
+
E(a) ? (B(
|
|
110
|
+
s.selection.filter(
|
|
111
|
+
(o) => !s.selectedMatcher(a, o)
|
|
112
112
|
)
|
|
113
|
-
), f("selectRow", !1)) : (B([...
|
|
113
|
+
), f("selectRow", !1)) : (B([...s.selection, a]), f("selectRow", !0));
|
|
114
114
|
}, ne = () => {
|
|
115
115
|
if (F.value)
|
|
116
116
|
B([]), f("selectAll", !1);
|
|
117
117
|
else {
|
|
118
|
-
const
|
|
119
|
-
B([...
|
|
118
|
+
const a = s.rows.map((o, e) => s.getRowId(o, e)).filter((o) => !E(o));
|
|
119
|
+
B([...s.selection, ...a]), f("selectAll", !0);
|
|
120
120
|
}
|
|
121
|
-
}, B = (
|
|
122
|
-
f("update:selection",
|
|
123
|
-
}, re = (
|
|
124
|
-
() =>
|
|
121
|
+
}, B = (a) => {
|
|
122
|
+
f("update:selection", a);
|
|
123
|
+
}, re = (a) => !s.isLoading && T.value === a, ce = u(
|
|
124
|
+
() => s.emptyStateVariant ?? (x.value ? "no-results" : "no-data")
|
|
125
125
|
), ue = u(
|
|
126
|
-
() =>
|
|
126
|
+
() => s.emptyStateSubtitle ? s.emptyStateSubtitle : x.value ? "Search again with different filters" : void 0
|
|
127
127
|
), N = u(() => ({
|
|
128
128
|
class: {
|
|
129
|
-
sticky:
|
|
130
|
-
bordered:
|
|
129
|
+
sticky: s.isSelectionSticky,
|
|
130
|
+
bordered: s.isSelectionBordered
|
|
131
131
|
},
|
|
132
|
-
style:
|
|
133
|
-
})), he = (
|
|
134
|
-
sticky:
|
|
135
|
-
isStickyRight:
|
|
136
|
-
bordered:
|
|
137
|
-
isTextRight:
|
|
132
|
+
style: s.isSelectionSticky ? H.value[Ae] : null
|
|
133
|
+
})), he = (a) => ({
|
|
134
|
+
sticky: a.isSticky,
|
|
135
|
+
isStickyRight: a.isStickyRight,
|
|
136
|
+
bordered: a.isBordered,
|
|
137
|
+
isTextRight: a.isTextRight
|
|
138
138
|
}), Y = u(
|
|
139
|
-
() =>
|
|
140
|
-
), ye = (
|
|
141
|
-
minHeight: (typeof
|
|
142
|
-
}), A = u(() =>
|
|
139
|
+
() => s.columns.map((a) => he(a))
|
|
140
|
+
), ye = (a) => ({
|
|
141
|
+
minHeight: (typeof s.rowHeight == "function" ? s.rowHeight(a) : s.rowHeight) + "px"
|
|
142
|
+
}), A = u(() => v.value.reduce((a, o) => (a[o.index] = ye(o.index), a), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
|
|
143
143
|
() => Se.value - j - X
|
|
144
144
|
);
|
|
145
145
|
return m({
|
|
146
|
-
scrollTo:
|
|
147
|
-
}), (
|
|
146
|
+
scrollTo: se
|
|
147
|
+
}), (a, o) => (i(), d("div", {
|
|
148
148
|
class: "table-container",
|
|
149
|
-
"data-testid": `${l.testId}-${t(
|
|
149
|
+
"data-testid": `${l.testId}-${t($).CONTAINER}`,
|
|
150
150
|
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
151
151
|
}, [
|
|
152
152
|
b("table", {
|
|
153
153
|
ref: t(z).ref,
|
|
154
154
|
style: S(t(ee)),
|
|
155
155
|
class: y({
|
|
156
|
-
hasFooter: t(W)
|
|
156
|
+
hasFooter: t(W),
|
|
157
|
+
"disabled-scrolling": t(v).length === 0
|
|
157
158
|
}),
|
|
158
|
-
"data-testid": `${l.testId}-${t(
|
|
159
|
+
"data-testid": `${l.testId}-${t($).TABLE}`,
|
|
159
160
|
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
160
161
|
(...e) => t(K) && t(K)(...e))
|
|
161
162
|
}, [
|
|
162
163
|
t(ie) ? (i(), I(t($e), {
|
|
163
164
|
key: 0,
|
|
164
|
-
search: t(
|
|
165
|
-
"onUpdate:search": o[0] || (o[0] = (e) => pe(
|
|
165
|
+
search: t(x),
|
|
166
|
+
"onUpdate:search": o[0] || (o[0] = (e) => pe(x) ? x.value = e : null),
|
|
166
167
|
title: l.title,
|
|
167
168
|
"is-sticky": l.isStickyHeader,
|
|
168
169
|
"show-search": l.showSearch,
|
|
@@ -173,24 +174,24 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
173
174
|
onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
174
175
|
}, ve({
|
|
175
176
|
title: g(() => [
|
|
176
|
-
r(
|
|
177
|
+
r(a.$slots, "title")
|
|
177
178
|
]),
|
|
178
179
|
search: g(() => [
|
|
179
|
-
r(
|
|
180
|
+
r(a.$slots, "search")
|
|
180
181
|
]),
|
|
181
182
|
_: 2
|
|
182
183
|
}, [
|
|
183
184
|
t(p)["table-header-pre-search"] ? {
|
|
184
185
|
name: "table-header-pre-search",
|
|
185
186
|
fn: g(() => [
|
|
186
|
-
r(
|
|
187
|
+
r(a.$slots, "table-header-pre-search")
|
|
187
188
|
]),
|
|
188
189
|
key: "0"
|
|
189
190
|
} : void 0,
|
|
190
191
|
t(p)["table-header-actions"] ? {
|
|
191
192
|
name: "table-header-actions",
|
|
192
193
|
fn: g(() => [
|
|
193
|
-
r(
|
|
194
|
+
r(a.$slots, "table-header-actions")
|
|
194
195
|
]),
|
|
195
196
|
key: "1"
|
|
196
197
|
} : void 0
|
|
@@ -200,13 +201,13 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
200
201
|
}, [
|
|
201
202
|
b("div", {
|
|
202
203
|
class: "sections",
|
|
203
|
-
"data-testid": `${l.testId}-${t(
|
|
204
|
+
"data-testid": `${l.testId}-${t($).SECTIONS}`
|
|
204
205
|
}, [
|
|
205
|
-
(i(!0), d(
|
|
206
|
+
(i(!0), d(C, null, R(l.sections, (e) => (i(), d("div", {
|
|
206
207
|
key: e.id,
|
|
207
208
|
class: y(["section-container", { sticky: e.isSticky }])
|
|
208
209
|
}, [
|
|
209
|
-
r(
|
|
210
|
+
r(a.$slots, `section-${e.id}`, {}, () => [
|
|
210
211
|
b("div", {
|
|
211
212
|
style: S({ width: e.width + "px" }),
|
|
212
213
|
class: y({ section: !0 })
|
|
@@ -228,7 +229,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
228
229
|
key: 0,
|
|
229
230
|
class: "checkbox-cell"
|
|
230
231
|
}, t(N)), [
|
|
231
|
-
r(
|
|
232
|
+
r(a.$slots, "select-all-checkbox", {}, () => [
|
|
232
233
|
k(t(Q), {
|
|
233
234
|
disabled: l.isLoading,
|
|
234
235
|
"is-checked": t(F),
|
|
@@ -238,7 +239,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
238
239
|
])
|
|
239
240
|
], 16)) : c("", !0),
|
|
240
241
|
t(w) ? (i(), d("th", Me)) : c("", !0),
|
|
241
|
-
(i(!0), d(
|
|
242
|
+
(i(!0), d(C, null, R(l.columns, (e, h) => (i(), d("th", {
|
|
242
243
|
key: e.id,
|
|
243
244
|
class: y({
|
|
244
245
|
...t(Y)[h],
|
|
@@ -249,7 +250,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
249
250
|
onClick: (n) => e.isSortable ? t(Z)(e) : null
|
|
250
251
|
}, [
|
|
251
252
|
b("div", Fe, [
|
|
252
|
-
r(
|
|
253
|
+
r(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
254
|
k(t(Re), {
|
|
254
255
|
text: e.helpText,
|
|
255
256
|
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
@@ -278,7 +279,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
278
279
|
"hover-help-text-placement": e.helpTextPlacement,
|
|
279
280
|
"test-id": `help-tooltip-${e.id}`
|
|
280
281
|
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
281
|
-
r(
|
|
282
|
+
r(a.$slots, `after-header-${e.id}`, { column: e }),
|
|
282
283
|
e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
|
|
283
284
|
key: 1,
|
|
284
285
|
"sort-order": l.sort.sortOrder
|
|
@@ -286,12 +287,12 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
286
287
|
])
|
|
287
288
|
], 14, De))), 128))
|
|
288
289
|
], 4),
|
|
289
|
-
l.showTotalsRow && t(
|
|
290
|
+
l.showTotalsRow && t(v).length > 0 ? (i(), d("tr", Ne, [
|
|
290
291
|
t(D) ? (i(), d("td", L({
|
|
291
292
|
key: 0,
|
|
292
293
|
class: "bg"
|
|
293
294
|
}, t(N)), null, 16)) : c("", !0),
|
|
294
|
-
(i(!0), d(
|
|
295
|
+
(i(!0), d(C, null, R(l.columns, (e, h) => (i(), d("td", {
|
|
295
296
|
key: e.id,
|
|
296
297
|
class: y({
|
|
297
298
|
...t(Y)[h],
|
|
@@ -299,7 +300,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
299
300
|
}),
|
|
300
301
|
style: S(e.isSticky ? t(H)[e.id] : null)
|
|
301
302
|
}, [
|
|
302
|
-
r(
|
|
303
|
+
r(a.$slots, `total-${e.id}`, { column: e }, () => [
|
|
303
304
|
h === 0 ? (i(), I(t(V), {
|
|
304
305
|
key: 0,
|
|
305
306
|
variant: "h6"
|
|
@@ -314,17 +315,17 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
314
315
|
])) : c("", !0)
|
|
315
316
|
], 2),
|
|
316
317
|
b("tbody", null, [
|
|
317
|
-
t(
|
|
318
|
+
t(v).length > 0 ? (i(), d("div", L({
|
|
318
319
|
key: 0,
|
|
319
320
|
class: "table-body-wrapper",
|
|
320
|
-
"data-testid": `${l.testId}-${t(
|
|
321
|
+
"data-testid": `${l.testId}-${t($).BODY_WRAPPER}`
|
|
321
322
|
}, t(J)), [
|
|
322
|
-
(i(!0), d(
|
|
323
|
+
(i(!0), d(C, null, R(t(v), (e) => (i(), d("tr", {
|
|
323
324
|
key: l.getRowKey(e.data, e.index),
|
|
324
325
|
class: y(["table-row", {
|
|
325
326
|
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
326
327
|
active: t(T) === e.index,
|
|
327
|
-
activeMenu: t(
|
|
328
|
+
activeMenu: t(ae) === e.index,
|
|
328
329
|
expanded: t(w) && t(M)(e.index),
|
|
329
330
|
[q(e.index)]: !0
|
|
330
331
|
}]),
|
|
@@ -353,7 +354,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
353
354
|
onClick: (h) => t(te)(e.index, h)
|
|
354
355
|
}, null, 8, ["expanded", "onClick"])
|
|
355
356
|
], 4)) : c("", !0),
|
|
356
|
-
(i(!0), d(
|
|
357
|
+
(i(!0), d(C, null, R(l.columns, (h, n) => (i(), d("td", {
|
|
357
358
|
key: n,
|
|
358
359
|
class: y({
|
|
359
360
|
sticky: l.columns[n].isSticky,
|
|
@@ -371,7 +372,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
371
372
|
key: 0,
|
|
372
373
|
class: y(["table-cell", { last: n === e.data.length - 1 }])
|
|
373
374
|
}, [
|
|
374
|
-
r(
|
|
375
|
+
r(a.$slots, `cell-${l.columns[n].id}`, {
|
|
375
376
|
cell: e.data[n],
|
|
376
377
|
isLoading: t(U).includes(e.index),
|
|
377
378
|
cellIndex: n,
|
|
@@ -385,18 +386,18 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
385
386
|
_: 2
|
|
386
387
|
}, 1024)
|
|
387
388
|
])
|
|
388
|
-
], 2)) : r(
|
|
389
|
+
], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
|
|
389
390
|
k(t(xe), { round: "" })
|
|
390
391
|
])
|
|
391
392
|
], 6))), 128)),
|
|
392
393
|
t(w) && t(M)(e.index) ? (i(), d("div", Ge, [
|
|
393
|
-
r(
|
|
394
|
+
r(a.$slots, "expanded", {
|
|
394
395
|
row: e,
|
|
395
396
|
gridColumnTemplate: t(G)
|
|
396
397
|
})
|
|
397
398
|
])) : c("", !0),
|
|
398
399
|
re(e.index) ? (i(), d("div", Ke, [
|
|
399
|
-
r(
|
|
400
|
+
r(a.$slots, "floating-row", {
|
|
400
401
|
row: e,
|
|
401
402
|
rowIndex: e.index
|
|
402
403
|
})
|
|
@@ -408,21 +409,21 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
408
409
|
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
|
409
410
|
)
|
|
410
411
|
}, [
|
|
411
|
-
r(
|
|
412
|
+
r(a.$slots, "empty-state", {}, () => [
|
|
412
413
|
k(t(Ce), {
|
|
413
414
|
class: "empty-state",
|
|
414
415
|
title: l.emptyStateTitle,
|
|
415
416
|
subtitle: t(ue),
|
|
416
417
|
variant: t(ce),
|
|
417
418
|
"icon-name": "file-search",
|
|
418
|
-
"test-id": `${l.testId}-${t(
|
|
419
|
+
"test-id": `${l.testId}-${t($).EMPTY_STATE}`
|
|
419
420
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
420
421
|
])
|
|
421
422
|
], 4))
|
|
422
423
|
])
|
|
423
424
|
], 46, Le),
|
|
424
425
|
t(W) ? (i(), d("div", Ue, [
|
|
425
|
-
r(
|
|
426
|
+
r(a.$slots, "footer")
|
|
426
427
|
])) : c("", !0)
|
|
427
428
|
], 40, Pe));
|
|
428
429
|
}
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sticky[data-v-cd41c5ca]{position:sticky}.table-container[data-v-cd41c5ca]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-cd41c5ca]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-cd41c5ca]{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-cd41c5ca]{display:inline-table}.table-row[data-v-cd41c5ca]{position:relative}.table-row.loading[data-v-cd41c5ca]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-cd41c5ca]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-cd41c5ca]{border-bottom:none}.expanded-row[data-v-cd41c5ca]{grid-column:var(--38b7f4c1);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-cd41c5ca]{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-cd41c5ca]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-cd41c5ca],table th[data-v-cd41c5ca]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-cd41c5ca]:first-of-type,table th[data-v-cd41c5ca]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-cd41c5ca]:last-of-type,table th[data-v-cd41c5ca]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-cd41c5ca],table th.expand-toggle-cell[data-v-cd41c5ca]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-cd41c5ca]{border-bottom:none;z-index:calc(var(--423d7fe6) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-cd41c5ca]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--9b4c490c)}table>thead>tr>th[data-v-cd41c5ca]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-cd41c5ca]{cursor:pointer}table>thead>tr>td[data-v-cd41c5ca]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-cd41c5ca],table>thead>tr>td.bordered[data-v-cd41c5ca]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-cd41c5ca],table>thead>tr>td.bordered.isStickyRight[data-v-cd41c5ca]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-cd41c5ca],table>thead>tr>td.isTextRight[data-v-cd41c5ca]{justify-content:flex-end}table>thead.sticky[data-v-cd41c5ca]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-cd41c5ca]{z-index:calc(var(--423d7fe6) + 2);top:var(--243617e8)}table .totals-row[data-v-cd41c5ca]{height:40px}table .totals-row[data-v-cd41c5ca]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-cd41c5ca]{background-color:var(--background-default)}table>tbody[data-v-cd41c5ca]{display:block}table>tbody>*>tr[data-v-cd41c5ca]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--9b4c490c)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-cd41c5ca]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-cd41c5ca],table>tbody>*>tr.activeMenu>td[data-v-cd41c5ca]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-cd41c5ca]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-cd41c5ca]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-cd41c5ca]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-cd41c5ca]{justify-content:flex-end;text-align:right}.underlined[data-v-cd41c5ca]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-cd41c5ca]:hover{cursor:pointer}.section-container[data-v-cd41c5ca]{left:0}.sections[data-v-cd41c5ca]{display:flex}.section[data-v-cd41c5ca]{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-cd41c5ca]{width:100%}.empty-state[data-v-cd41c5ca]{min-height:250px}.floating-row[data-v-cd41c5ca]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--423d7fe6) + 1)}.floating-row *[data-v-cd41c5ca-s]{pointer-events:auto}.bg[data-v-cd41c5ca]{background:var(--background-default)}.useAvailableHeight[data-v-cd41c5ca]{height:100%}
|