@ironsource/shared-ui 2.1.12-test.70 → 2.1.12-test.71
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_0dff3241_lang.css +1 -0
- package/components/table/common/Table.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +268 -229
- package/components/table/v4/index.d.ts +14 -0
- package/components/table/v4/storyUtils.d.ts +2 -0
- package/index.d.ts +28 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-0dff3241]{position:sticky}.table-container[data-v-0dff3241]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-0dff3241]{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-0dff3241]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-0dff3241]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-0dff3241]{width:13.75rem}.table-header.isStickyHeader[data-v-0dff3241]{z-index:calc(var(--35c47222) + 3);top:0}.table-head-container[data-v-0dff3241]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-0dff3241]{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-0dff3241]{display:inline-table}.table-header-pre-search-content[data-v-0dff3241]{margin-right:var(--spacing-100);display:flex;align-items:center}.table-header-actions[data-v-0dff3241]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-0dff3241]{position:relative}.table-row.loading[data-v-0dff3241]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-0dff3241]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-0dff3241]{border-bottom:none}.expanded-row[data-v-0dff3241]{grid-column:var(--4f8f6bba);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-0dff3241]{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-0dff3241]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-0dff3241],table th[data-v-0dff3241]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-0dff3241]:first-of-type,table th[data-v-0dff3241]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-0dff3241]:last-of-type,table th[data-v-0dff3241]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-0dff3241],table th.expand-toggle-cell[data-v-0dff3241]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-0dff3241]{border-bottom:none;z-index:calc(var(--35c47222) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-0dff3241]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--731a605c)}table>thead>tr>th[data-v-0dff3241]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-0dff3241]{cursor:pointer}table>thead>tr>td[data-v-0dff3241]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-0dff3241],table>thead>tr>td.bordered[data-v-0dff3241]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-0dff3241],table>thead>tr>td.bordered.isStickyRight[data-v-0dff3241]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-0dff3241],table>thead>tr>td.isTextRight[data-v-0dff3241]{justify-content:flex-end}table>thead.sticky[data-v-0dff3241]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-0dff3241]{z-index:calc(var(--35c47222) + 2);top:calc(var(--spacing-800) - 1px)}table .totals-row[data-v-0dff3241]{height:40px}table .totals-row[data-v-0dff3241]:hover{background:var(--background-paper-elevation-1)}table>tbody[data-v-0dff3241]{display:block}table>tbody>*>tr[data-v-0dff3241]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--731a605c)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-0dff3241]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-0dff3241],table>tbody>*>tr.activeMenu>td[data-v-0dff3241]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-0dff3241]{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-0dff3241]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-0dff3241]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-0dff3241]{justify-content:flex-end;text-align:right}.section-container[data-v-0dff3241]{left:0}.sections[data-v-0dff3241]{display:flex}.section[data-v-0dff3241]{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-0dff3241]{width:100%}.empty-state[data-v-0dff3241]{min-height:250px}.floating-row[data-v-0dff3241]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--35c47222) + 1)}.floating-row *[data-v-0dff3241-s]{pointer-events:auto}.bg[data-v-0dff3241]{background:var(--background-default)}
|
|
@@ -31,7 +31,6 @@ export declare const tableCommon: (props: any, emit: any) => {
|
|
|
31
31
|
hasCheckboxes: import("vue").ComputedRef<boolean>;
|
|
32
32
|
toggleExpandRow: (index: number, event: any) => Promise<void>;
|
|
33
33
|
isRowExpanded: (rowIndex: number) => boolean;
|
|
34
|
-
cssRowHeight: import("vue").ComputedRef<string>;
|
|
35
34
|
cssExpandGridCol: import("vue").ComputedRef<string>;
|
|
36
35
|
activeMenuRow: import("vue").Ref<number>;
|
|
37
36
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { useVirtualList as
|
|
3
|
-
import { TableContext as
|
|
4
|
-
import { CHECKBOX_STICKY_COL_WIDTH as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
1
|
+
import { useSlots as U, ref as a, provide as V, computed as n, onMounted as Y, nextTick as j } from "vue";
|
|
2
|
+
import { useVirtualList as q, useInfiniteScroll as F } from "@vueuse/core";
|
|
3
|
+
import { TableContext as J } from "./TableContext.js";
|
|
4
|
+
import { CHECKBOX_STICKY_COL_WIDTH as Q, CHECKBOX_COL_WIDTH as Z, EXPAND_COL_WIDTH as p, CHECKBOX_COLUMN_ID as tt } from "./consts.js";
|
|
5
|
+
const it = (e, d) => {
|
|
6
|
+
const T = U(), u = a([]);
|
|
7
|
+
V(J, {
|
|
8
8
|
onClose({ rowIndex: t, cellIndex: o, value: i } = {}) {
|
|
9
9
|
u.value = [...u.value, t], d("saveRow", {
|
|
10
10
|
rowIndex: t,
|
|
@@ -19,27 +19,27 @@ const rt = (e, d) => {
|
|
|
19
19
|
R.value = t;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
23
|
-
const t = (
|
|
22
|
+
const g = n(() => !!e.selection), x = n(() => e.isSelectionSticky ? Q : Z), O = n(() => {
|
|
23
|
+
const t = (g.value ? `${x.value}px ` : "") + (h.value ? `${p}px ` : "");
|
|
24
24
|
return e.columns.reduce((o, { width: i, colSpan: l }) => {
|
|
25
25
|
const s = typeof i == "number" ? `${i}px` : i, S = s || `${l || 1}fr`;
|
|
26
26
|
return `${o} ${S}`;
|
|
27
27
|
}, t);
|
|
28
|
-
}),
|
|
28
|
+
}), h = n(() => !!T.expanded), H = a(null), R = a(null), k = n(() => Array(e.loadingRowCount).fill(
|
|
29
29
|
Array(e.columns.length).fill("")
|
|
30
30
|
)), I = n(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...k.value] : e.rows : e.isLoading ? [
|
|
31
31
|
...e.rows.map((o) => o[e.rowDataKey]),
|
|
32
32
|
...k.value
|
|
33
|
-
] : e.rows.map((o) => o[e.rowDataKey])), { list:
|
|
33
|
+
] : e.rows.map((o) => o[e.rowDataKey])), { list: b, containerProps: r, wrapperProps: A, scrollTo: B } = q(
|
|
34
34
|
I,
|
|
35
35
|
{
|
|
36
|
-
itemHeight:
|
|
36
|
+
itemHeight: h.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
|
|
37
37
|
}
|
|
38
|
-
),
|
|
39
|
-
r.onScroll(),
|
|
38
|
+
), L = a(null), m = a(0), _ = n(() => !!T.search), $ = (t) => {
|
|
39
|
+
r.onScroll(), m.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, d("onScroll", t.target.scrollTop);
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
Y(() => {
|
|
42
|
+
m.value = r.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
|
|
43
43
|
r.ref.value?.scrollTo({
|
|
44
44
|
top: e.defaultScrollPosition,
|
|
45
45
|
behavior: "smooth"
|
|
@@ -47,17 +47,17 @@ const rt = (e, d) => {
|
|
|
47
47
|
}, 300);
|
|
48
48
|
});
|
|
49
49
|
const E = n(() => {
|
|
50
|
-
const [t] =
|
|
50
|
+
const [t] = b.value;
|
|
51
51
|
return t && t.index > 0;
|
|
52
52
|
}), P = n(() => r.style), D = n(() => {
|
|
53
53
|
const t = {
|
|
54
|
-
id:
|
|
54
|
+
id: tt,
|
|
55
55
|
isSticky: e.isSelectionSticky,
|
|
56
|
-
width:
|
|
56
|
+
width: x.value
|
|
57
57
|
};
|
|
58
|
-
return
|
|
58
|
+
return g.value ? [t] : [];
|
|
59
59
|
}), f = n(() => [...D.value, ...e.columns]), K = n(() => f.value.reduce((t, o) => (o.isSticky && (t[o.id] = X(o)), t), {}));
|
|
60
|
-
|
|
60
|
+
F(
|
|
61
61
|
r.ref,
|
|
62
62
|
() => {
|
|
63
63
|
e.isInfiniteScroll && d("loadMore");
|
|
@@ -89,43 +89,42 @@ const rt = (e, d) => {
|
|
|
89
89
|
zIndex: 1
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
const
|
|
93
|
-
const i =
|
|
92
|
+
const v = a([]), w = {}, N = (t) => v.value.includes(t), z = async (t, o) => {
|
|
93
|
+
const i = v.value.indexOf(t);
|
|
94
94
|
if (i === -1) {
|
|
95
|
-
|
|
95
|
+
v.value.push(t);
|
|
96
96
|
const l = o.target.closest("tr");
|
|
97
|
-
await
|
|
97
|
+
await j(), l && (w[t] = l.offsetHeight);
|
|
98
98
|
} else
|
|
99
|
-
|
|
100
|
-
}, G = n(
|
|
99
|
+
v.value.splice(i, 1), delete w[t];
|
|
100
|
+
}, G = n(
|
|
101
101
|
() => `1 / span ${e.columns.length + 1}`
|
|
102
102
|
);
|
|
103
103
|
return {
|
|
104
|
-
list:
|
|
104
|
+
list: b,
|
|
105
105
|
containerProps: r,
|
|
106
106
|
wrapperProps: A,
|
|
107
|
-
activeRow:
|
|
108
|
-
gridColumnTemplate:
|
|
109
|
-
floatingActionRef:
|
|
107
|
+
activeRow: H,
|
|
108
|
+
gridColumnTemplate: O,
|
|
109
|
+
floatingActionRef: L,
|
|
110
110
|
scrollToTop: M,
|
|
111
111
|
toggleSortOrder: W,
|
|
112
112
|
columnsStickyPositions: K,
|
|
113
|
-
hasSearchSlot:
|
|
113
|
+
hasSearchSlot: _,
|
|
114
114
|
showBackToTopButton: E,
|
|
115
115
|
containerStyle: P,
|
|
116
|
-
onScroll:
|
|
116
|
+
onScroll: $,
|
|
117
117
|
scrollTo: B,
|
|
118
118
|
savingRows: u,
|
|
119
|
-
floatingActionPosition:
|
|
120
|
-
hasExpandSlot:
|
|
121
|
-
hasCheckboxes:
|
|
119
|
+
floatingActionPosition: m,
|
|
120
|
+
hasExpandSlot: h,
|
|
121
|
+
hasCheckboxes: g,
|
|
122
122
|
toggleExpandRow: z,
|
|
123
123
|
isRowExpanded: N,
|
|
124
|
-
|
|
125
|
-
cssExpandGridCol: U,
|
|
124
|
+
cssExpandGridCol: G,
|
|
126
125
|
activeMenuRow: R
|
|
127
126
|
};
|
|
128
127
|
};
|
|
129
128
|
export {
|
|
130
|
-
|
|
129
|
+
it as tableCommon
|
|
131
130
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57;
|
|
1
|
+
const _ = "__CHECKBOX_COLUMN_ID__", C = 46, O = 46, H = 57, D = 48;
|
|
2
2
|
export {
|
|
3
3
|
_ as CHECKBOX_COLUMN_ID,
|
|
4
4
|
O as CHECKBOX_COL_WIDTH,
|
|
5
5
|
H as CHECKBOX_STICKY_COL_WIDTH,
|
|
6
|
+
D as DEFAULT_ROW_HEIGHT,
|
|
6
7
|
C as EXPAND_COL_WIDTH
|
|
7
8
|
};
|
|
@@ -16,6 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
emptyStateTitle?: string;
|
|
17
17
|
emptyStateSubtitle?: string;
|
|
18
18
|
isInfiniteScroll?: boolean;
|
|
19
|
+
showTotalsRow?: boolean;
|
|
19
20
|
infiniteScrollThreshold?: number;
|
|
20
21
|
rowHeight?: number | ((index: number) => number);
|
|
21
22
|
loadingRowCount?: number;
|
|
@@ -89,6 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
90
|
emptyStateTitle?: string;
|
|
90
91
|
emptyStateSubtitle?: string;
|
|
91
92
|
isInfiniteScroll?: boolean;
|
|
93
|
+
showTotalsRow?: boolean;
|
|
92
94
|
infiniteScrollThreshold?: number;
|
|
93
95
|
rowHeight?: number | ((index: number) => number);
|
|
94
96
|
loadingRowCount?: number;
|
|
@@ -174,6 +176,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
174
176
|
isSelectionBordered: boolean;
|
|
175
177
|
}>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
176
178
|
column: Column;
|
|
179
|
+
}) => any>> & Partial<Record<`total-${string}`, (_: {
|
|
180
|
+
column: Column;
|
|
177
181
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
178
182
|
cell: unknown;
|
|
179
183
|
isLoading: boolean;
|
|
@@ -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_0dff3241_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-0dff3241"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { TableTestIdModifiers as
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useVModel as
|
|
13
|
-
import { CHECKBOX_COLUMN_ID as
|
|
14
|
-
const
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as o, createElementVNode as h, normalizeStyle as v, normalizeClass as y, renderSlot as c, createVNode as f, withCtx as $, createTextVNode as R, toDisplayString as P, createCommentVNode as n, isRef as Se, Fragment as x, renderList as T, mergeProps as M, createBlock as D } from "vue";
|
|
2
|
+
import w from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import ke from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import ge from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
|
+
import Y from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
|
+
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
+
import { tableCommon as me } from "../common/Table.common.js";
|
|
8
|
+
import ve from "./SortIcon.vue.js";
|
|
9
|
+
import be from "./HelpIcon.vue.js";
|
|
10
|
+
import Ce from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import $e from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as Re } from "@vueuse/core";
|
|
13
|
+
import { DEFAULT_ROW_HEIGHT as xe, CHECKBOX_COLUMN_ID as Te } from "../common/consts.js";
|
|
14
|
+
const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["data-testid"], pe = ["data-testid"], Ie = ["data-testid"], Ae = { class: "search-wrapper" }, Le = ["data-testid"], Pe = ["data-testid"], Me = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "expand-toggle-cell"
|
|
17
|
-
},
|
|
18
|
-
key:
|
|
19
|
-
class: "
|
|
20
|
-
},
|
|
17
|
+
}, Ve = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "totals-row"
|
|
20
|
+
}, Oe = ["data-testid"], De = ["onMouseenter", "onClick"], Ke = {
|
|
21
21
|
key: 2,
|
|
22
22
|
class: "expanded-row"
|
|
23
|
-
},
|
|
23
|
+
}, Ue = {
|
|
24
24
|
key: 3,
|
|
25
25
|
class: "floating-row"
|
|
26
|
-
},
|
|
26
|
+
}, ze = { key: 1 }, Ge = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "table-footer"
|
|
29
|
-
},
|
|
29
|
+
}, at = /* @__PURE__ */ he({
|
|
30
30
|
__name: "DataGrid",
|
|
31
31
|
props: {
|
|
32
32
|
title: { default: "" },
|
|
@@ -35,9 +35,9 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
|
|
|
35
35
|
sections: { default: null },
|
|
36
36
|
sort: { default: null },
|
|
37
37
|
selection: { default: null },
|
|
38
|
-
getRowId: { type: Function, default: (s,
|
|
39
|
-
getRowKey: { type: Function, default: (s,
|
|
40
|
-
selectedMatcher: { type: Function, default: (s,
|
|
38
|
+
getRowId: { type: Function, default: (s, m) => m },
|
|
39
|
+
getRowKey: { type: Function, default: (s, m) => m },
|
|
40
|
+
selectedMatcher: { type: Function, default: (s, m) => s === m },
|
|
41
41
|
isSticky: { type: Boolean, default: !0 },
|
|
42
42
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
43
43
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -45,8 +45,9 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
|
|
|
45
45
|
emptyStateTitle: { default: "No data to display" },
|
|
46
46
|
emptyStateSubtitle: { default: "" },
|
|
47
47
|
isInfiniteScroll: { type: Boolean, default: !1 },
|
|
48
|
+
showTotalsRow: { type: Boolean },
|
|
48
49
|
infiniteScrollThreshold: { default: 100 },
|
|
49
|
-
rowHeight: { type: [Number, Function], default:
|
|
50
|
+
rowHeight: { type: [Number, Function], default: xe },
|
|
50
51
|
loadingRowCount: { default: 3 },
|
|
51
52
|
defaultScrollPosition: { default: null },
|
|
52
53
|
testId: { default: "" },
|
|
@@ -61,309 +62,347 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
|
|
|
61
62
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
62
63
|
},
|
|
63
64
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
64
|
-
setup(s, { expose:
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
"43af326c": t(Z)
|
|
65
|
+
setup(s, { expose: m, emit: k }) {
|
|
66
|
+
const a = s;
|
|
67
|
+
ye((l) => ({
|
|
68
|
+
"35c47222": s.zIndexBase,
|
|
69
|
+
"4f8f6bba": t(ee),
|
|
70
|
+
"731a605c": t(K)
|
|
71
71
|
}));
|
|
72
|
-
const
|
|
73
|
-
list:
|
|
74
|
-
containerProps:
|
|
75
|
-
wrapperProps:
|
|
76
|
-
activeRow:
|
|
77
|
-
gridColumnTemplate:
|
|
78
|
-
toggleSortOrder:
|
|
79
|
-
columnsStickyPositions:
|
|
80
|
-
hasSearchSlot:
|
|
81
|
-
containerStyle:
|
|
82
|
-
onScroll:
|
|
83
|
-
savingRows:
|
|
84
|
-
hasExpandSlot:
|
|
85
|
-
toggleExpandRow:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(o) => !l.selectedMatcher(a, o)
|
|
72
|
+
const b = fe(), Q = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
|
|
73
|
+
list: E,
|
|
74
|
+
containerProps: X,
|
|
75
|
+
wrapperProps: j,
|
|
76
|
+
activeRow: H,
|
|
77
|
+
gridColumnTemplate: K,
|
|
78
|
+
toggleSortOrder: q,
|
|
79
|
+
columnsStickyPositions: B,
|
|
80
|
+
hasSearchSlot: J,
|
|
81
|
+
containerStyle: Z,
|
|
82
|
+
onScroll: U,
|
|
83
|
+
savingRows: z,
|
|
84
|
+
hasExpandSlot: p,
|
|
85
|
+
toggleExpandRow: _,
|
|
86
|
+
cssExpandGridCol: ee,
|
|
87
|
+
isRowExpanded: V,
|
|
88
|
+
hasCheckboxes: F,
|
|
89
|
+
activeMenuRow: te,
|
|
90
|
+
scrollTo: se
|
|
91
|
+
} = me(a, k), G = g(() => !!b.footer), le = g(
|
|
92
|
+
() => a.title || b.title || J.value || b["table-header-actions"] || b["table-header-pre-search"]
|
|
93
|
+
), C = Re(a, "search", k), ae = g(() => a.selection.length || 0), N = g(() => {
|
|
94
|
+
const l = a.rows.map((d, e) => a.getRowId(d, e));
|
|
95
|
+
return !!l.length && l.every((d) => I(d));
|
|
96
|
+
}), I = (l) => a.selection.findIndex((d) => a.selectedMatcher(l, d)) !== -1, ie = (l) => {
|
|
97
|
+
I(l) ? (A(
|
|
98
|
+
a.selection.filter(
|
|
99
|
+
(d) => !a.selectedMatcher(l, d)
|
|
101
100
|
)
|
|
102
|
-
),
|
|
103
|
-
},
|
|
104
|
-
if (
|
|
105
|
-
|
|
101
|
+
), k("selectRow", !1)) : (A([...a.selection, l]), k("selectRow", !0));
|
|
102
|
+
}, oe = () => {
|
|
103
|
+
if (N.value)
|
|
104
|
+
A([]), k("selectAll", !1);
|
|
106
105
|
else {
|
|
107
|
-
const
|
|
108
|
-
|
|
106
|
+
const l = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !I(d));
|
|
107
|
+
A([...a.selection, ...l]), k("selectAll", !0);
|
|
109
108
|
}
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
}, de = (
|
|
113
|
-
() =>
|
|
114
|
-
),
|
|
115
|
-
() =>
|
|
116
|
-
),
|
|
109
|
+
}, A = (l) => {
|
|
110
|
+
k("update:selection", l);
|
|
111
|
+
}, de = (l) => !a.isLoading && H.value === l, ne = g(
|
|
112
|
+
() => a.emptyStateVariant ?? (C.value ? "no-results" : "no-data")
|
|
113
|
+
), re = g(
|
|
114
|
+
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : C.value ? "Search again with different filters" : void 0
|
|
115
|
+
), O = g(() => ({
|
|
117
116
|
class: {
|
|
118
|
-
sticky:
|
|
119
|
-
bordered:
|
|
117
|
+
sticky: a.isSelectionSticky,
|
|
118
|
+
bordered: a.isSelectionBordered
|
|
120
119
|
},
|
|
121
|
-
style:
|
|
122
|
-
}))
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
style: a.isSelectionSticky ? B.value[Te] : null
|
|
121
|
+
})), ce = (l) => ({
|
|
122
|
+
sticky: l.isSticky,
|
|
123
|
+
isStickyRight: l.isStickyRight,
|
|
124
|
+
bordered: l.isBordered,
|
|
125
|
+
isTextRight: l.isTextRight
|
|
126
|
+
}), W = g(
|
|
127
|
+
() => a.columns.map((l) => ce(l))
|
|
128
|
+
), ue = (l) => ({
|
|
129
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(l) : a.rowHeight) + "px"
|
|
130
|
+
}), L = g(() => E.value.reduce((l, d) => (l[d.index] = ue(d.index), l), {}));
|
|
131
|
+
return m({
|
|
132
|
+
scrollTo: se
|
|
133
|
+
}), (l, d) => (i(), o("div", {
|
|
126
134
|
class: "table-container",
|
|
127
|
-
"data-testid": `${s.testId}-${t(
|
|
128
|
-
onMouseleave:
|
|
135
|
+
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
136
|
+
onMouseleave: d[3] || (d[3] = (e) => H.value = null)
|
|
129
137
|
}, [
|
|
130
|
-
|
|
131
|
-
ref: t(
|
|
132
|
-
style:
|
|
133
|
-
class:
|
|
134
|
-
hasFooter: t(
|
|
138
|
+
h("table", {
|
|
139
|
+
ref: t(X).ref,
|
|
140
|
+
style: v(t(Z)),
|
|
141
|
+
class: y({
|
|
142
|
+
hasFooter: t(G)
|
|
135
143
|
}),
|
|
136
|
-
"data-testid": `${s.testId}-${t(
|
|
137
|
-
onScrollPassive:
|
|
138
|
-
(...e) => t(
|
|
144
|
+
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
145
|
+
onScrollPassive: d[2] || (d[2] = //@ts-ignore
|
|
146
|
+
(...e) => t(U) && t(U)(...e))
|
|
139
147
|
}, [
|
|
140
|
-
t(
|
|
148
|
+
t(le) ? (i(), o("div", {
|
|
141
149
|
key: 0,
|
|
142
|
-
class:
|
|
143
|
-
"data-testid": `${s.testId}-${t(
|
|
150
|
+
class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
151
|
+
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
144
152
|
}, [
|
|
145
|
-
|
|
153
|
+
h("div", {
|
|
146
154
|
class: "table-title",
|
|
147
|
-
"data-testid": `${s.testId}-${t(
|
|
155
|
+
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
148
156
|
}, [
|
|
149
|
-
c(
|
|
150
|
-
|
|
151
|
-
default:
|
|
152
|
-
|
|
157
|
+
c(l.$slots, "title", {}, () => [
|
|
158
|
+
f(t(w), { variant: "h3" }, {
|
|
159
|
+
default: $(() => [
|
|
160
|
+
R(P(s.title), 1)
|
|
153
161
|
]),
|
|
154
162
|
_: 1
|
|
155
163
|
})
|
|
156
164
|
])
|
|
157
|
-
], 8,
|
|
158
|
-
t(
|
|
165
|
+
], 8, Be),
|
|
166
|
+
t(b)["table-header-pre-search"] ? (i(), o("div", {
|
|
159
167
|
key: 0,
|
|
160
168
|
class: "table-header-pre-search-content",
|
|
161
|
-
"data-testid": `${s.testId}-${t(
|
|
169
|
+
"data-testid": `${s.testId}-${t(S).PRE_SEARCH_HEADER}`
|
|
162
170
|
}, [
|
|
163
|
-
c(
|
|
164
|
-
], 8,
|
|
165
|
-
|
|
171
|
+
c(l.$slots, "table-header-pre-search")
|
|
172
|
+
], 8, pe)) : n("", !0),
|
|
173
|
+
h("div", {
|
|
166
174
|
class: "table-header-right",
|
|
167
|
-
"data-testid": `${s.testId}-${t(
|
|
175
|
+
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
168
176
|
}, [
|
|
169
|
-
s.showSearch ? c(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
modelValue: t(
|
|
173
|
-
"onUpdate:modelValue":
|
|
177
|
+
s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
|
|
178
|
+
h("div", Ae, [
|
|
179
|
+
f(t($e), {
|
|
180
|
+
modelValue: t(C),
|
|
181
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => Se(C) ? C.value = e : null),
|
|
174
182
|
placeholder: s.searchPlaceholder,
|
|
175
183
|
"auto-focus": s.searchAutoFocus,
|
|
176
184
|
"test-id": s.testId,
|
|
177
|
-
onOnClear:
|
|
185
|
+
onOnClear: d[1] || (d[1] = (e) => k("onClearSearch"))
|
|
178
186
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
179
187
|
])
|
|
180
|
-
]) :
|
|
181
|
-
], 8,
|
|
182
|
-
t(
|
|
188
|
+
]) : n("", !0)
|
|
189
|
+
], 8, Ie),
|
|
190
|
+
t(b)["table-header-actions"] ? (i(), o("div", {
|
|
183
191
|
key: 1,
|
|
184
192
|
class: "table-header-actions",
|
|
185
|
-
"data-testid": `${s.testId}-${t(
|
|
193
|
+
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
186
194
|
}, [
|
|
187
|
-
c(
|
|
188
|
-
], 8,
|
|
189
|
-
], 10,
|
|
190
|
-
|
|
191
|
-
class:
|
|
195
|
+
c(l.$slots, "table-header-actions")
|
|
196
|
+
], 8, Le)) : n("", !0)
|
|
197
|
+
], 10, He)) : n("", !0),
|
|
198
|
+
h("thead", {
|
|
199
|
+
class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
192
200
|
}, [
|
|
193
|
-
|
|
201
|
+
h("div", {
|
|
194
202
|
class: "sections",
|
|
195
|
-
"data-testid": `${s.testId}-${t(
|
|
203
|
+
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
196
204
|
}, [
|
|
197
|
-
(i(!0),
|
|
205
|
+
(i(!0), o(x, null, T(s.sections, (e) => (i(), o("div", {
|
|
198
206
|
key: e.id,
|
|
199
|
-
class:
|
|
207
|
+
class: y(["section-container", { sticky: e.isSticky }])
|
|
200
208
|
}, [
|
|
201
|
-
c(
|
|
202
|
-
|
|
203
|
-
style:
|
|
204
|
-
class:
|
|
209
|
+
c(l.$slots, `section-${e.id}`, {}, () => [
|
|
210
|
+
h("div", {
|
|
211
|
+
style: v({ width: e.width + "px" }),
|
|
212
|
+
class: y({ section: !0 })
|
|
205
213
|
}, [
|
|
206
|
-
|
|
207
|
-
default:
|
|
208
|
-
|
|
214
|
+
f(t(w), { variant: "body2" }, {
|
|
215
|
+
default: $(() => [
|
|
216
|
+
R(P(e.title), 1)
|
|
209
217
|
]),
|
|
210
218
|
_: 2
|
|
211
219
|
}, 1024)
|
|
212
220
|
], 4)
|
|
213
221
|
])
|
|
214
222
|
], 2))), 128))
|
|
215
|
-
], 8,
|
|
216
|
-
|
|
217
|
-
t(
|
|
223
|
+
], 8, Pe),
|
|
224
|
+
h("tr", null, [
|
|
225
|
+
t(F) ? (i(), o("th", M({
|
|
218
226
|
key: 0,
|
|
219
227
|
class: "checkbox-cell"
|
|
220
|
-
}, t(
|
|
221
|
-
c(
|
|
222
|
-
|
|
228
|
+
}, t(O)), [
|
|
229
|
+
c(l.$slots, "select-all-checkbox", {}, () => [
|
|
230
|
+
f(t(Y), {
|
|
223
231
|
disabled: s.isLoading,
|
|
224
|
-
"is-checked": t(
|
|
225
|
-
"is-indeterminate": !t(
|
|
226
|
-
"onUpdate:isChecked":
|
|
232
|
+
"is-checked": t(N),
|
|
233
|
+
"is-indeterminate": !t(N) && t(ae) > 0,
|
|
234
|
+
"onUpdate:isChecked": oe
|
|
227
235
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
228
236
|
])
|
|
229
|
-
], 16)) :
|
|
230
|
-
t(
|
|
231
|
-
(i(!0),
|
|
237
|
+
], 16)) : n("", !0),
|
|
238
|
+
t(p) ? (i(), o("th", Me)) : n("", !0),
|
|
239
|
+
(i(!0), o(x, null, T(s.columns, (e, u) => (i(), o("th", {
|
|
232
240
|
key: e.id,
|
|
233
|
-
class:
|
|
234
|
-
|
|
235
|
-
isStickyRight: e.isStickyRight,
|
|
236
|
-
bordered: e.isBordered,
|
|
237
|
-
isTextRight: e.isTextRight,
|
|
241
|
+
class: y({
|
|
242
|
+
...t(W)[u],
|
|
238
243
|
isSortable: e.isSortable,
|
|
239
244
|
[`column-${e.id}`]: !0
|
|
240
245
|
}),
|
|
241
|
-
style:
|
|
242
|
-
onClick: (
|
|
246
|
+
style: v(e.isSticky ? t(B)[e.id] : null),
|
|
247
|
+
onClick: (r) => e.isSortable ? t(q)(e) : null
|
|
243
248
|
}, [
|
|
244
|
-
|
|
245
|
-
c(
|
|
246
|
-
|
|
247
|
-
default:
|
|
248
|
-
|
|
249
|
+
h("div", Fe, [
|
|
250
|
+
c(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
251
|
+
f(t(w), { variant: "tableLabel" }, {
|
|
252
|
+
default: $(() => [
|
|
253
|
+
R(P(e.title), 1)
|
|
249
254
|
]),
|
|
250
255
|
_: 2
|
|
251
256
|
}, 1024)
|
|
252
257
|
]),
|
|
253
|
-
e.helpText ? (i(),
|
|
258
|
+
e.helpText ? (i(), D(be, {
|
|
254
259
|
key: 0,
|
|
255
260
|
"hover-help-text": e.helpText,
|
|
256
261
|
"hover-help-text-placement": e.helpTextPlacement
|
|
257
|
-
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) :
|
|
258
|
-
e.isSortable && e.id === s.sort?.sortBy ? (i(),
|
|
262
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : n("", !0),
|
|
263
|
+
e.isSortable && e.id === s.sort?.sortBy ? (i(), D(ve, {
|
|
259
264
|
key: 1,
|
|
260
265
|
"sort-order": s.sort.sortOrder
|
|
261
|
-
}, null, 8, ["sort-order"])) :
|
|
266
|
+
}, null, 8, ["sort-order"])) : n("", !0)
|
|
267
|
+
])
|
|
268
|
+
], 14, Ve))), 128))
|
|
269
|
+
]),
|
|
270
|
+
s.showTotalsRow && t(E).length > 0 ? (i(), o("tr", Ne, [
|
|
271
|
+
t(F) ? (i(), o("td", M({
|
|
272
|
+
key: 0,
|
|
273
|
+
class: "bg"
|
|
274
|
+
}, t(O)), null, 16)) : n("", !0),
|
|
275
|
+
(i(!0), o(x, null, T(s.columns, (e, u) => (i(), o("td", {
|
|
276
|
+
key: e.id,
|
|
277
|
+
class: y({
|
|
278
|
+
...t(W)[u],
|
|
279
|
+
[`total-${e.id}`]: !0
|
|
280
|
+
}),
|
|
281
|
+
style: v(e.isSticky ? t(B)[e.id] : null)
|
|
282
|
+
}, [
|
|
283
|
+
c(l.$slots, `total-${e.id}`, { column: e }, () => [
|
|
284
|
+
u === 0 ? (i(), D(t(w), {
|
|
285
|
+
key: 0,
|
|
286
|
+
variant: "h6"
|
|
287
|
+
}, {
|
|
288
|
+
default: $(() => [
|
|
289
|
+
R("Totals")
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
})) : n("", !0)
|
|
262
293
|
])
|
|
263
|
-
],
|
|
264
|
-
])
|
|
294
|
+
], 6))), 128))
|
|
295
|
+
])) : n("", !0)
|
|
265
296
|
], 2),
|
|
266
|
-
|
|
267
|
-
t(
|
|
297
|
+
h("tbody", null, [
|
|
298
|
+
t(E).length > 0 ? (i(), o("div", M({
|
|
268
299
|
key: 0,
|
|
269
300
|
class: "table-body-wrapper",
|
|
270
|
-
"data-testid": `${s.testId}-${t(
|
|
271
|
-
}, t(
|
|
272
|
-
(i(!0),
|
|
301
|
+
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
302
|
+
}, t(j)), [
|
|
303
|
+
(i(!0), o(x, null, T(t(E), (e) => (i(), o("tr", {
|
|
273
304
|
key: s.getRowKey(e.data, e.index),
|
|
274
|
-
class:
|
|
275
|
-
loading: s.isLoading || s.isLoading && !e.data || t(
|
|
276
|
-
active: t(
|
|
277
|
-
activeMenu: t(
|
|
278
|
-
expanded: t(
|
|
279
|
-
[
|
|
305
|
+
class: y(["table-row", {
|
|
306
|
+
loading: s.isLoading || s.isLoading && !e.data || t(z).includes(e.index),
|
|
307
|
+
active: t(H) === e.index,
|
|
308
|
+
activeMenu: t(te) === e.index,
|
|
309
|
+
expanded: t(p) && t(V)(e.index),
|
|
310
|
+
[Q(e.index)]: !0
|
|
280
311
|
}]),
|
|
281
|
-
|
|
282
|
-
|
|
312
|
+
style: v(t(L)[e.index]),
|
|
313
|
+
onMouseenter: (u) => H.value = e.index,
|
|
314
|
+
onClick: (u) => k("clickRow", e.index)
|
|
283
315
|
}, [
|
|
284
|
-
t(
|
|
316
|
+
t(F) ? (i(), o("td", M({
|
|
285
317
|
key: 0,
|
|
286
318
|
class: "checkbox-cell"
|
|
287
|
-
}, t(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
319
|
+
}, t(O), {
|
|
320
|
+
style: t(L)[e.index]
|
|
321
|
+
}), [
|
|
322
|
+
f(t(Y), {
|
|
323
|
+
"is-checked": I(s.getRowId(e.data, e.index)),
|
|
324
|
+
"onUpdate:isChecked": (u) => ie(s.getRowId(e.data, e.index))
|
|
291
325
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
292
|
-
], 16)) :
|
|
293
|
-
t(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
326
|
+
], 16)) : n("", !0),
|
|
327
|
+
t(p) ? (i(), o("td", {
|
|
328
|
+
key: 1,
|
|
329
|
+
class: "expand-toggle-cell",
|
|
330
|
+
style: v(t(L)[e.index])
|
|
331
|
+
}, [
|
|
332
|
+
f(Ce, {
|
|
333
|
+
expanded: t(V)(e.index),
|
|
334
|
+
onClick: (u) => t(_)(e.index, u)
|
|
297
335
|
}, null, 8, ["expanded", "onClick"])
|
|
298
|
-
])) :
|
|
299
|
-
(i(!0),
|
|
300
|
-
key:
|
|
301
|
-
class:
|
|
302
|
-
sticky: s.columns[
|
|
303
|
-
isStickyRight: s.columns[
|
|
304
|
-
bordered: s.columns[
|
|
305
|
-
isTextRight: s.columns[
|
|
306
|
-
[`column-${s.columns[
|
|
336
|
+
], 4)) : n("", !0),
|
|
337
|
+
(i(!0), o(x, null, T(s.columns, (u, r) => (i(), o("td", {
|
|
338
|
+
key: r,
|
|
339
|
+
class: y({
|
|
340
|
+
sticky: s.columns[r].isSticky,
|
|
341
|
+
isStickyRight: s.columns[r].isStickyRight,
|
|
342
|
+
bordered: s.columns[r].isBordered,
|
|
343
|
+
isTextRight: s.columns[r].isTextRight,
|
|
344
|
+
[`column-${s.columns[r].id}`]: !0
|
|
307
345
|
}),
|
|
308
|
-
style:
|
|
309
|
-
s.columns[
|
|
310
|
-
|
|
346
|
+
style: v([
|
|
347
|
+
s.columns[r].isSticky ? t(B)[s.columns[r].id] : null,
|
|
348
|
+
t(L)[e.index]
|
|
349
|
+
])
|
|
311
350
|
}, [
|
|
312
|
-
!s.isLoading || s.isLoading && e.data[
|
|
351
|
+
!s.isLoading || s.isLoading && e.data[r] ? (i(), o("div", {
|
|
313
352
|
key: 0,
|
|
314
|
-
class:
|
|
353
|
+
class: y(["table-cell", { last: r === e.data.length - 1 }])
|
|
315
354
|
}, [
|
|
316
|
-
c(
|
|
317
|
-
cell: e.data[
|
|
318
|
-
isLoading: t(
|
|
319
|
-
cellIndex:
|
|
355
|
+
c(l.$slots, `cell-${s.columns[r].id}`, {
|
|
356
|
+
cell: e.data[r],
|
|
357
|
+
isLoading: t(z).includes(e.index),
|
|
358
|
+
cellIndex: r,
|
|
320
359
|
row: e,
|
|
321
360
|
rowIndex: e.index
|
|
322
361
|
}, () => [
|
|
323
|
-
|
|
324
|
-
default:
|
|
325
|
-
|
|
362
|
+
f(t(w), { variant: "body1" }, {
|
|
363
|
+
default: $(() => [
|
|
364
|
+
R(P(e.data[r]), 1)
|
|
326
365
|
]),
|
|
327
366
|
_: 2
|
|
328
367
|
}, 1024)
|
|
329
368
|
])
|
|
330
|
-
], 2)) : c(
|
|
331
|
-
|
|
369
|
+
], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
|
|
370
|
+
f(t(ke), { round: "" })
|
|
332
371
|
])
|
|
333
372
|
], 6))), 128)),
|
|
334
|
-
t(
|
|
335
|
-
c(
|
|
373
|
+
t(p) && t(V)(e.index) ? (i(), o("div", Ke, [
|
|
374
|
+
c(l.$slots, "expanded", {
|
|
336
375
|
row: e,
|
|
337
|
-
gridColumnTemplate: t(
|
|
376
|
+
gridColumnTemplate: t(K)
|
|
338
377
|
})
|
|
339
|
-
])) :
|
|
340
|
-
de(e.index) ? (i(),
|
|
341
|
-
c(
|
|
378
|
+
])) : n("", !0),
|
|
379
|
+
de(e.index) ? (i(), o("div", Ue, [
|
|
380
|
+
c(l.$slots, "floating-row", {
|
|
342
381
|
row: e,
|
|
343
382
|
rowIndex: e.index
|
|
344
383
|
})
|
|
345
|
-
])) :
|
|
346
|
-
],
|
|
347
|
-
], 16,
|
|
348
|
-
c(
|
|
349
|
-
|
|
384
|
+
])) : n("", !0)
|
|
385
|
+
], 46, De))), 128))
|
|
386
|
+
], 16, Oe)) : (i(), o("div", ze, [
|
|
387
|
+
c(l.$slots, "empty-state", {}, () => [
|
|
388
|
+
f(t(ge), {
|
|
350
389
|
class: "empty-state",
|
|
351
390
|
title: s.emptyStateTitle,
|
|
352
|
-
subtitle: t(
|
|
353
|
-
variant: t(
|
|
391
|
+
subtitle: t(re),
|
|
392
|
+
variant: t(ne),
|
|
354
393
|
"icon-name": "file-search",
|
|
355
|
-
"test-id": `${s.testId}-${t(
|
|
394
|
+
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
356
395
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
357
396
|
])
|
|
358
397
|
]))
|
|
359
398
|
])
|
|
360
|
-
], 46,
|
|
361
|
-
t(
|
|
362
|
-
c(
|
|
363
|
-
])) :
|
|
364
|
-
], 40,
|
|
399
|
+
], 46, Ee),
|
|
400
|
+
t(G) ? (i(), o("div", Ge, [
|
|
401
|
+
c(l.$slots, "footer")
|
|
402
|
+
])) : n("", !0)
|
|
403
|
+
], 40, we));
|
|
365
404
|
}
|
|
366
405
|
});
|
|
367
406
|
export {
|
|
368
|
-
|
|
407
|
+
at as default
|
|
369
408
|
};
|
|
@@ -140,6 +140,9 @@ declare const DataGridTypes: () => (({
|
|
|
140
140
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
141
141
|
default: any;
|
|
142
142
|
};
|
|
143
|
+
showTotalsRow: {
|
|
144
|
+
type: import("vue").PropType<boolean>;
|
|
145
|
+
};
|
|
143
146
|
rowCustomClassKey: {
|
|
144
147
|
type: import("vue").PropType<string>;
|
|
145
148
|
default: string;
|
|
@@ -286,6 +289,9 @@ declare const DataGridTypes: () => (({
|
|
|
286
289
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
287
290
|
default: any;
|
|
288
291
|
};
|
|
292
|
+
showTotalsRow: {
|
|
293
|
+
type: import("vue").PropType<boolean>;
|
|
294
|
+
};
|
|
289
295
|
rowCustomClassKey: {
|
|
290
296
|
type: import("vue").PropType<string>;
|
|
291
297
|
default: string;
|
|
@@ -480,6 +486,9 @@ declare const DataGridTypes: () => (({
|
|
|
480
486
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
481
487
|
default: any;
|
|
482
488
|
};
|
|
489
|
+
showTotalsRow: {
|
|
490
|
+
type: import("vue").PropType<boolean>;
|
|
491
|
+
};
|
|
483
492
|
rowCustomClassKey: {
|
|
484
493
|
type: import("vue").PropType<string>;
|
|
485
494
|
default: string;
|
|
@@ -618,6 +627,9 @@ declare const DataGridTypes: () => (({
|
|
|
618
627
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
619
628
|
default: any;
|
|
620
629
|
};
|
|
630
|
+
showTotalsRow: {
|
|
631
|
+
type: import("vue").PropType<boolean>;
|
|
632
|
+
};
|
|
621
633
|
rowCustomClassKey: {
|
|
622
634
|
type: import("vue").PropType<string>;
|
|
623
635
|
default: string;
|
|
@@ -690,6 +702,8 @@ declare const DataGridTypes: () => (({
|
|
|
690
702
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
691
703
|
$slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
692
704
|
column: import("../common/Table.types").Column;
|
|
705
|
+
}) => any>> & Partial<Record<`total-${string}`, (_: {
|
|
706
|
+
column: import("../common/Table.types").Column;
|
|
693
707
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
694
708
|
cell: unknown;
|
|
695
709
|
isLoading: boolean;
|
package/index.d.ts
CHANGED
|
@@ -5901,6 +5901,9 @@ declare const _default: {
|
|
|
5901
5901
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
5902
5902
|
default: any;
|
|
5903
5903
|
};
|
|
5904
|
+
showTotalsRow: {
|
|
5905
|
+
type: import("vue").PropType<boolean>;
|
|
5906
|
+
};
|
|
5904
5907
|
rowCustomClassKey: {
|
|
5905
5908
|
type: import("vue").PropType<string>;
|
|
5906
5909
|
default: string;
|
|
@@ -6047,6 +6050,9 @@ declare const _default: {
|
|
|
6047
6050
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
6048
6051
|
default: any;
|
|
6049
6052
|
};
|
|
6053
|
+
showTotalsRow: {
|
|
6054
|
+
type: import("vue").PropType<boolean>;
|
|
6055
|
+
};
|
|
6050
6056
|
rowCustomClassKey: {
|
|
6051
6057
|
type: import("vue").PropType<string>;
|
|
6052
6058
|
default: string;
|
|
@@ -6241,6 +6247,9 @@ declare const _default: {
|
|
|
6241
6247
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
6242
6248
|
default: any;
|
|
6243
6249
|
};
|
|
6250
|
+
showTotalsRow: {
|
|
6251
|
+
type: import("vue").PropType<boolean>;
|
|
6252
|
+
};
|
|
6244
6253
|
rowCustomClassKey: {
|
|
6245
6254
|
type: import("vue").PropType<string>;
|
|
6246
6255
|
default: string;
|
|
@@ -6379,6 +6388,9 @@ declare const _default: {
|
|
|
6379
6388
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
6380
6389
|
default: any;
|
|
6381
6390
|
};
|
|
6391
|
+
showTotalsRow: {
|
|
6392
|
+
type: import("vue").PropType<boolean>;
|
|
6393
|
+
};
|
|
6382
6394
|
rowCustomClassKey: {
|
|
6383
6395
|
type: import("vue").PropType<string>;
|
|
6384
6396
|
default: string;
|
|
@@ -6451,6 +6463,8 @@ declare const _default: {
|
|
|
6451
6463
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
6452
6464
|
$slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
6453
6465
|
column: tableV3.Column;
|
|
6466
|
+
}) => any>> & Partial<Record<`total-${string}`, (_: {
|
|
6467
|
+
column: tableV3.Column;
|
|
6454
6468
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
6455
6469
|
cell: unknown;
|
|
6456
6470
|
isLoading: boolean;
|
|
@@ -6709,6 +6723,9 @@ declare const _default: {
|
|
|
6709
6723
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
6710
6724
|
default: any;
|
|
6711
6725
|
};
|
|
6726
|
+
showTotalsRow: {
|
|
6727
|
+
type: import("vue").PropType<boolean>;
|
|
6728
|
+
};
|
|
6712
6729
|
rowCustomClassKey: {
|
|
6713
6730
|
type: import("vue").PropType<string>;
|
|
6714
6731
|
default: string;
|
|
@@ -6855,6 +6872,9 @@ declare const _default: {
|
|
|
6855
6872
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
6856
6873
|
default: any;
|
|
6857
6874
|
};
|
|
6875
|
+
showTotalsRow: {
|
|
6876
|
+
type: import("vue").PropType<boolean>;
|
|
6877
|
+
};
|
|
6858
6878
|
rowCustomClassKey: {
|
|
6859
6879
|
type: import("vue").PropType<string>;
|
|
6860
6880
|
default: string;
|
|
@@ -7049,6 +7069,9 @@ declare const _default: {
|
|
|
7049
7069
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
7050
7070
|
default: any;
|
|
7051
7071
|
};
|
|
7072
|
+
showTotalsRow: {
|
|
7073
|
+
type: import("vue").PropType<boolean>;
|
|
7074
|
+
};
|
|
7052
7075
|
rowCustomClassKey: {
|
|
7053
7076
|
type: import("vue").PropType<string>;
|
|
7054
7077
|
default: string;
|
|
@@ -7187,6 +7210,9 @@ declare const _default: {
|
|
|
7187
7210
|
type: import("vue").PropType<"error" | "settings" | "no-access" | "no-results" | "no-data" | "files">;
|
|
7188
7211
|
default: any;
|
|
7189
7212
|
};
|
|
7213
|
+
showTotalsRow: {
|
|
7214
|
+
type: import("vue").PropType<boolean>;
|
|
7215
|
+
};
|
|
7190
7216
|
rowCustomClassKey: {
|
|
7191
7217
|
type: import("vue").PropType<string>;
|
|
7192
7218
|
default: string;
|
|
@@ -7259,6 +7285,8 @@ declare const _default: {
|
|
|
7259
7285
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
7260
7286
|
$slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
7261
7287
|
column: tableV3.Column;
|
|
7288
|
+
}) => any>> & Partial<Record<`total-${string}`, (_: {
|
|
7289
|
+
column: tableV3.Column;
|
|
7262
7290
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
7263
7291
|
cell: unknown;
|
|
7264
7292
|
isLoading: boolean;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_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-86ea5d2a]{position:sticky}.table-container[data-v-86ea5d2a]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-86ea5d2a]{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-86ea5d2a]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-86ea5d2a]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-86ea5d2a]{width:13.75rem}.table-header.isStickyHeader[data-v-86ea5d2a]{z-index:calc(var(--1d1d1477) + 3);top:0}.table-head-container[data-v-86ea5d2a]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-86ea5d2a]{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-86ea5d2a]{display:inline-table}.table-header-pre-search-content[data-v-86ea5d2a]{margin-right:var(--spacing-100);display:flex;align-items:center}.table-header-actions[data-v-86ea5d2a]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-86ea5d2a]{position:relative}.table-row.loading[data-v-86ea5d2a]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-86ea5d2a]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-86ea5d2a]{border-bottom:none}.expanded-row[data-v-86ea5d2a]{grid-column:var(--2f1951ab);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-86ea5d2a]{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-86ea5d2a]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-86ea5d2a],table th[data-v-86ea5d2a]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-86ea5d2a]:first-of-type,table th[data-v-86ea5d2a]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-86ea5d2a]:last-of-type,table th[data-v-86ea5d2a]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-86ea5d2a],table th.expand-toggle-cell[data-v-86ea5d2a]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-86ea5d2a]{border-bottom:none;z-index:calc(var(--1d1d1477) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-86ea5d2a]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--d450b438)}table>thead>tr>th[data-v-86ea5d2a]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-86ea5d2a]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-86ea5d2a]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-86ea5d2a]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-86ea5d2a]{cursor:pointer}table>thead.sticky[data-v-86ea5d2a]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-86ea5d2a]{z-index:calc(var(--1d1d1477) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-86ea5d2a]{display:block}table>tbody>*>tr[data-v-86ea5d2a]{background-color:var(--background-default);min-height:var(--43af326c);height:auto;display:grid;align-items:center;grid-template-columns:var(--d450b438)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-86ea5d2a]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-86ea5d2a],table>tbody>*>tr.activeMenu>td[data-v-86ea5d2a]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-86ea5d2a]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--43af326c);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-86ea5d2a]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-86ea5d2a]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-86ea5d2a]{justify-content:flex-end;text-align:right}.section-container[data-v-86ea5d2a]{left:0}.sections[data-v-86ea5d2a]{display:flex}.section[data-v-86ea5d2a]{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-86ea5d2a]{width:100%}.empty-state[data-v-86ea5d2a]{min-height:250px}.floating-row[data-v-86ea5d2a]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--1d1d1477) + 1)}.floating-row *[data-v-86ea5d2a-s]{pointer-events:auto}
|