@ironsource/shared-ui 2.1.12-test.101 → 2.1.12-test.102
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_cd41c5ca_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/components/table/v4/DataGrid.vue.d.ts +7 -9
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +335 -353
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/MultipleDataGrid.vue2.js +13 -12
- package/components/table/v4/index.d.ts +49 -2
- package/components/table/v4/index.js +9 -6
- package/index.d.ts +95 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c04877bd_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
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%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.data-grid-container[data-v-9a30b10c]{width:100%;display:flex;flex-direction:row;max-height:100%;align-items:stretch}.data-grid-container[data-v-9a30b10c] .table-container{width:calc(100% - 201px);flex:1}.data-grid-container[data-v-9a30b10c] table{flex:1;background:var(--background-default);border-top-right-radius:0;border-bottom-right-radius:0}.data-grid-container[data-v-9a30b10c] .table-row:last-child{border-bottom:1px solid var(--common-divider)}.side-panel-container[data-v-9a30b10c]{width:201px;max-width:201px;flex:1}.side-panel-container[data-v-9a30b10c] .column-configurator{height:100%;border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Column,
|
|
2
|
-
import { EmptyStateVariants } from '@/components/emptyState/v4/EmptyStateV4.types';
|
|
1
|
+
import { Column, Row, SaveRowEvent, Section, Sort } from '../common/Table.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
3
|
title?: string;
|
|
5
4
|
columns: Column[];
|
|
@@ -13,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
12
|
isSticky?: boolean;
|
|
14
13
|
isStickyHeader?: boolean;
|
|
15
14
|
isLoading?: boolean;
|
|
16
|
-
emptyStateVariant?:
|
|
15
|
+
emptyStateVariant?: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
|
|
17
16
|
emptyStateTitle?: string;
|
|
18
17
|
emptyStateSubtitle?: string;
|
|
19
18
|
isInfiniteScroll?: boolean;
|
|
@@ -22,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
21
|
rowHeight?: number | ((index: number) => number);
|
|
23
22
|
loadingRowCount?: number;
|
|
24
23
|
defaultScrollPosition?: number;
|
|
25
|
-
helpTooltipVariant?:
|
|
24
|
+
helpTooltipVariant?: "icon" | "underline";
|
|
26
25
|
testId?: string;
|
|
27
26
|
useAvailableHeight?: boolean;
|
|
28
27
|
search?: string;
|
|
@@ -91,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
91
90
|
isSticky?: boolean;
|
|
92
91
|
isStickyHeader?: boolean;
|
|
93
92
|
isLoading?: boolean;
|
|
94
|
-
emptyStateVariant?:
|
|
93
|
+
emptyStateVariant?: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
|
|
95
94
|
emptyStateTitle?: string;
|
|
96
95
|
emptyStateSubtitle?: string;
|
|
97
96
|
isInfiniteScroll?: boolean;
|
|
@@ -100,7 +99,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
99
|
rowHeight?: number | ((index: number) => number);
|
|
101
100
|
loadingRowCount?: number;
|
|
102
101
|
defaultScrollPosition?: number;
|
|
103
|
-
helpTooltipVariant?:
|
|
102
|
+
helpTooltipVariant?: "icon" | "underline";
|
|
104
103
|
testId?: string;
|
|
105
104
|
useAvailableHeight?: boolean;
|
|
106
105
|
search?: string;
|
|
@@ -177,10 +176,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
177
176
|
defaultScrollPosition: number;
|
|
178
177
|
getRowId: (row: Row, index: number) => unknown;
|
|
179
178
|
getRowKey: (row: Row, index: number) => string | number;
|
|
180
|
-
emptyStateVariant:
|
|
179
|
+
emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
|
|
181
180
|
rowCustomClassKey: string;
|
|
182
181
|
rowDataKey: string;
|
|
183
|
-
helpTooltipVariant:
|
|
182
|
+
helpTooltipVariant: "icon" | "underline";
|
|
184
183
|
useAvailableHeight: boolean;
|
|
185
184
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
186
185
|
isSelectionSticky: boolean;
|
|
@@ -214,7 +213,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
214
213
|
}): any;
|
|
215
214
|
"empty-state"?(_: {}): any;
|
|
216
215
|
footer?(_: {}): any;
|
|
217
|
-
"side-panel"?(_: {}): any;
|
|
218
216
|
}>;
|
|
219
217
|
export default _default;
|
|
220
218
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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 c from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css"; //*');
|
|
4
|
+
const e = /* @__PURE__ */ c(o, [["__scopeId", "data-v-cd41c5ca"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,43 +1,38 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_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 x, renderList as C, 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
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import xe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
|
+
import Q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import Re from "../../tooltip/v4/TooltipV4.vue.js";
|
|
7
7
|
import "./DataGrid.vue.js";
|
|
8
8
|
import "./DataGridMenu.vue.js";
|
|
9
9
|
import "./DataGridRowsCounter.vue.js";
|
|
10
|
-
import
|
|
10
|
+
import $e from "./DataGridHeader.vue.js";
|
|
11
|
+
import "./DataGridContainer.vue.js";
|
|
11
12
|
import "./MultipleDataGrid.vue.js";
|
|
12
13
|
import { TableTestIdModifiers as R } from "../../../testids/index.js";
|
|
13
|
-
import { tableCommon as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { DEFAULT_ROW_HEIGHT as
|
|
18
|
-
import { useElementSize as
|
|
19
|
-
const
|
|
14
|
+
import { tableCommon as Te } from "../common/Table.common.js";
|
|
15
|
+
import He from "./SortIcon.vue.js";
|
|
16
|
+
import we from "./HelpIcon.vue.js";
|
|
17
|
+
import Ee from "./ExpandRowToggle.vue.js";
|
|
18
|
+
import { DEFAULT_ROW_HEIGHT as Be, CHECKBOX_COLUMN_ID as Ae, DATA_GRID_HEADER_HEIGHT as X, HEADER_ROW_HEIGHT as j } from "../common/consts.js";
|
|
19
|
+
import { useElementSize as Ie } from "@vueuse/core";
|
|
20
|
+
const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
20
21
|
key: 1,
|
|
21
22
|
class: "expand-toggle-cell"
|
|
22
|
-
},
|
|
23
|
+
}, De = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "totals-row"
|
|
25
|
-
},
|
|
26
|
+
}, Oe = ["data-testid"], ze = ["onMouseenter", "onClick"], Ge = {
|
|
26
27
|
key: 2,
|
|
27
28
|
class: "expanded-row"
|
|
28
|
-
},
|
|
29
|
+
}, Ke = {
|
|
29
30
|
key: 3,
|
|
30
31
|
class: "floating-row"
|
|
31
|
-
},
|
|
32
|
+
}, Ue = {
|
|
32
33
|
key: 0,
|
|
33
34
|
class: "table-footer"
|
|
34
|
-
},
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "side-panel-container"
|
|
37
|
-
}, Qe = {
|
|
38
|
-
inheritAttrs: !1
|
|
39
|
-
}, ht = /* @__PURE__ */ me({
|
|
40
|
-
...Qe,
|
|
35
|
+
}, ct = /* @__PURE__ */ ke({
|
|
41
36
|
__name: "DataGrid",
|
|
42
37
|
props: {
|
|
43
38
|
title: { default: "" },
|
|
@@ -46,9 +41,9 @@ const Le = ["data-testid"], Ve = ["data-testid"], Me = ["data-testid"], De = {
|
|
|
46
41
|
sections: { default: null },
|
|
47
42
|
sort: { default: null },
|
|
48
43
|
selection: { default: null },
|
|
49
|
-
getRowId: { type: Function, default: (
|
|
50
|
-
getRowKey: { type: Function, default: (
|
|
51
|
-
selectedMatcher: { type: Function, default: (
|
|
44
|
+
getRowId: { type: Function, default: (l, m) => m },
|
|
45
|
+
getRowKey: { type: Function, default: (l, m) => m },
|
|
46
|
+
selectedMatcher: { type: Function, default: (l, m) => l === m },
|
|
52
47
|
isSticky: { type: Boolean, default: !0 },
|
|
53
48
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
54
49
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -58,7 +53,7 @@ const Le = ["data-testid"], Ve = ["data-testid"], Me = ["data-testid"], De = {
|
|
|
58
53
|
isInfiniteScroll: { type: Boolean, default: !1 },
|
|
59
54
|
showTotalsRow: { type: Boolean },
|
|
60
55
|
infiniteScrollThreshold: { default: 100 },
|
|
61
|
-
rowHeight: { type: [Number, Function], default:
|
|
56
|
+
rowHeight: { type: [Number, Function], default: Be },
|
|
62
57
|
loadingRowCount: { default: 3 },
|
|
63
58
|
defaultScrollPosition: { default: null },
|
|
64
59
|
helpTooltipVariant: { default: "icon" },
|
|
@@ -75,376 +70,363 @@ const Le = ["data-testid"], Ve = ["data-testid"], Me = ["data-testid"], De = {
|
|
|
75
70
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
76
71
|
},
|
|
77
72
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
78
|
-
setup(
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
73
|
+
setup(l, { expose: m, emit: f }) {
|
|
74
|
+
const a = l;
|
|
75
|
+
me((s) => ({
|
|
76
|
+
"423d7fe6": l.zIndexBase,
|
|
77
|
+
"38b7f4c1": t(le),
|
|
78
|
+
"9b4c490c": t(G),
|
|
79
|
+
"243617e8": t(fe)
|
|
85
80
|
}));
|
|
86
|
-
const
|
|
87
|
-
list:
|
|
81
|
+
const p = be(), q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
82
|
+
list: $,
|
|
88
83
|
containerProps: z,
|
|
89
|
-
wrapperProps:
|
|
90
|
-
activeRow:
|
|
84
|
+
wrapperProps: J,
|
|
85
|
+
activeRow: T,
|
|
91
86
|
gridColumnTemplate: G,
|
|
92
|
-
toggleSortOrder:
|
|
93
|
-
columnsStickyPositions:
|
|
94
|
-
hasSearchSlot:
|
|
95
|
-
containerStyle:
|
|
87
|
+
toggleSortOrder: Z,
|
|
88
|
+
columnsStickyPositions: H,
|
|
89
|
+
hasSearchSlot: _,
|
|
90
|
+
containerStyle: ee,
|
|
96
91
|
onScroll: K,
|
|
97
92
|
savingRows: U,
|
|
98
|
-
hasExpandSlot:
|
|
99
|
-
toggleExpandRow:
|
|
100
|
-
cssExpandGridCol:
|
|
93
|
+
hasExpandSlot: w,
|
|
94
|
+
toggleExpandRow: te,
|
|
95
|
+
cssExpandGridCol: le,
|
|
101
96
|
isRowExpanded: M,
|
|
102
97
|
hasCheckboxes: D,
|
|
103
|
-
activeMenuRow:
|
|
104
|
-
scrollTo:
|
|
105
|
-
} =
|
|
106
|
-
() =>
|
|
107
|
-
),
|
|
108
|
-
get: () =>
|
|
98
|
+
activeMenuRow: se,
|
|
99
|
+
scrollTo: ae
|
|
100
|
+
} = Te(a, f), W = u(() => !!p.footer), ie = u(
|
|
101
|
+
() => a.title || p.title || _.value || p["table-header-actions"] || p["table-header-pre-search"]
|
|
102
|
+
), v = u({
|
|
103
|
+
get: () => a.search,
|
|
109
104
|
set: (s) => f("update:search", s)
|
|
110
|
-
}),
|
|
111
|
-
const s =
|
|
112
|
-
return !!s.length && s.every((o) =>
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
(o) => !
|
|
105
|
+
}), oe = u(() => a.selection.length || 0), F = u(() => {
|
|
106
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e));
|
|
107
|
+
return !!s.length && s.every((o) => E(o));
|
|
108
|
+
}), E = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, de = (s) => {
|
|
109
|
+
E(s) ? (B(
|
|
110
|
+
a.selection.filter(
|
|
111
|
+
(o) => !a.selectedMatcher(s, o)
|
|
117
112
|
)
|
|
118
|
-
), f("selectRow", !1)) : (
|
|
119
|
-
},
|
|
113
|
+
), f("selectRow", !1)) : (B([...a.selection, s]), f("selectRow", !0));
|
|
114
|
+
}, ne = () => {
|
|
120
115
|
if (F.value)
|
|
121
|
-
|
|
116
|
+
B([]), f("selectAll", !1);
|
|
122
117
|
else {
|
|
123
|
-
const s =
|
|
124
|
-
|
|
118
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
|
|
119
|
+
B([...a.selection, ...s]), f("selectAll", !0);
|
|
125
120
|
}
|
|
126
|
-
},
|
|
121
|
+
}, B = (s) => {
|
|
127
122
|
f("update:selection", s);
|
|
128
|
-
},
|
|
129
|
-
() =>
|
|
130
|
-
),
|
|
131
|
-
() =>
|
|
123
|
+
}, re = (s) => !a.isLoading && T.value === s, ce = u(
|
|
124
|
+
() => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
|
|
125
|
+
), ue = u(
|
|
126
|
+
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
|
|
132
127
|
), N = u(() => ({
|
|
133
128
|
class: {
|
|
134
|
-
sticky:
|
|
135
|
-
bordered:
|
|
129
|
+
sticky: a.isSelectionSticky,
|
|
130
|
+
bordered: a.isSelectionBordered
|
|
136
131
|
},
|
|
137
|
-
style:
|
|
138
|
-
})),
|
|
132
|
+
style: a.isSelectionSticky ? H.value[Ae] : null
|
|
133
|
+
})), he = (s) => ({
|
|
139
134
|
sticky: s.isSticky,
|
|
140
135
|
isStickyRight: s.isStickyRight,
|
|
141
136
|
bordered: s.isBordered,
|
|
142
137
|
isTextRight: s.isTextRight
|
|
143
138
|
}), Y = u(
|
|
144
|
-
() =>
|
|
145
|
-
),
|
|
146
|
-
minHeight: (typeof
|
|
147
|
-
}),
|
|
148
|
-
() =>
|
|
139
|
+
() => a.columns.map((s) => he(s))
|
|
140
|
+
), ye = (s) => ({
|
|
141
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
|
|
142
|
+
}), A = u(() => $.value.reduce((s, o) => (s[o.index] = ye(o.index), s), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
|
|
143
|
+
() => Se.value - j - X
|
|
149
144
|
);
|
|
150
|
-
return
|
|
151
|
-
scrollTo:
|
|
145
|
+
return m({
|
|
146
|
+
scrollTo: ae
|
|
152
147
|
}), (s, o) => (i(), d("div", {
|
|
153
|
-
class:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
})
|
|
148
|
+
class: "table-container",
|
|
149
|
+
"data-testid": `${l.testId}-${t(R).CONTAINER}`,
|
|
150
|
+
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
157
151
|
}, [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
152
|
+
b("table", {
|
|
153
|
+
ref: t(z).ref,
|
|
154
|
+
style: S(t(ee)),
|
|
155
|
+
class: y({
|
|
156
|
+
hasFooter: t(W)
|
|
157
|
+
}),
|
|
158
|
+
"data-testid": `${l.testId}-${t(R).TABLE}`,
|
|
159
|
+
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
160
|
+
(...e) => t(K) && t(K)(...e))
|
|
161
|
+
}, [
|
|
162
|
+
t(ie) ? (i(), I(t($e), {
|
|
163
|
+
key: 0,
|
|
164
|
+
search: t(v),
|
|
165
|
+
"onUpdate:search": o[0] || (o[0] = (e) => pe(v) ? v.value = e : null),
|
|
166
|
+
title: l.title,
|
|
167
|
+
"is-sticky": l.isStickyHeader,
|
|
168
|
+
"show-search": l.showSearch,
|
|
169
|
+
"search-placeholder": l.searchPlaceholder,
|
|
170
|
+
"search-auto-focus": l.searchAutoFocus,
|
|
171
|
+
"z-index-base": l.zIndexBase,
|
|
172
|
+
"test-id": l.testId,
|
|
173
|
+
onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
174
|
+
}, ve({
|
|
175
|
+
title: g(() => [
|
|
176
|
+
r(s.$slots, "title")
|
|
177
|
+
]),
|
|
178
|
+
search: g(() => [
|
|
179
|
+
r(s.$slots, "search")
|
|
180
|
+
]),
|
|
181
|
+
_: 2
|
|
171
182
|
}, [
|
|
172
|
-
t(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
title: a.title,
|
|
177
|
-
"is-sticky": a.isStickyHeader,
|
|
178
|
-
"show-search": a.showSearch,
|
|
179
|
-
"search-placeholder": a.searchPlaceholder,
|
|
180
|
-
"search-auto-focus": a.searchAutoFocus,
|
|
181
|
-
"z-index-base": a.zIndexBase,
|
|
182
|
-
"test-id": a.testId,
|
|
183
|
-
onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
184
|
-
}, $e({
|
|
185
|
-
title: g(() => [
|
|
186
|
-
n(s.$slots, "title")
|
|
183
|
+
t(p)["table-header-pre-search"] ? {
|
|
184
|
+
name: "table-header-pre-search",
|
|
185
|
+
fn: g(() => [
|
|
186
|
+
r(s.$slots, "table-header-pre-search")
|
|
187
187
|
]),
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
key: "0"
|
|
189
|
+
} : void 0,
|
|
190
|
+
t(p)["table-header-actions"] ? {
|
|
191
|
+
name: "table-header-actions",
|
|
192
|
+
fn: g(() => [
|
|
193
|
+
r(s.$slots, "table-header-actions")
|
|
190
194
|
]),
|
|
191
|
-
|
|
195
|
+
key: "1"
|
|
196
|
+
} : void 0
|
|
197
|
+
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
198
|
+
b("thead", {
|
|
199
|
+
class: y({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
200
|
+
}, [
|
|
201
|
+
b("div", {
|
|
202
|
+
class: "sections",
|
|
203
|
+
"data-testid": `${l.testId}-${t(R).SECTIONS}`
|
|
192
204
|
}, [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
(i(!0), d(x, null, C(l.sections, (e) => (i(), d("div", {
|
|
206
|
+
key: e.id,
|
|
207
|
+
class: y(["section-container", { sticky: e.isSticky }])
|
|
208
|
+
}, [
|
|
209
|
+
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
210
|
+
b("div", {
|
|
211
|
+
style: S({ width: e.width + "px" }),
|
|
212
|
+
class: y({ section: !0 })
|
|
213
|
+
}, [
|
|
214
|
+
k(t(V), { variant: "body2" }, {
|
|
215
|
+
default: g(() => [
|
|
216
|
+
P(O(e.title), 1)
|
|
217
|
+
]),
|
|
218
|
+
_: 2
|
|
219
|
+
}, 1024)
|
|
220
|
+
], 4)
|
|
221
|
+
])
|
|
222
|
+
], 2))), 128))
|
|
223
|
+
], 8, Ve),
|
|
224
|
+
b("tr", {
|
|
225
|
+
style: S({ height: `${t(j)}px` })
|
|
210
226
|
}, [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
"
|
|
227
|
+
t(D) ? (i(), d("th", L({
|
|
228
|
+
key: 0,
|
|
229
|
+
class: "checkbox-cell"
|
|
230
|
+
}, t(N)), [
|
|
231
|
+
r(s.$slots, "select-all-checkbox", {}, () => [
|
|
232
|
+
k(t(Q), {
|
|
233
|
+
disabled: l.isLoading,
|
|
234
|
+
"is-checked": t(F),
|
|
235
|
+
"is-indeterminate": !t(F) && t(oe) > 0,
|
|
236
|
+
"onUpdate:isChecked": ne
|
|
237
|
+
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
238
|
+
])
|
|
239
|
+
], 16)) : c("", !0),
|
|
240
|
+
t(w) ? (i(), d("th", Me)) : c("", !0),
|
|
241
|
+
(i(!0), d(x, null, C(l.columns, (e, h) => (i(), d("th", {
|
|
242
|
+
key: e.id,
|
|
243
|
+
class: y({
|
|
244
|
+
...t(Y)[h],
|
|
245
|
+
isSortable: e.isSortable,
|
|
246
|
+
[`column-${e.id}`]: !0
|
|
247
|
+
}),
|
|
248
|
+
style: S(e.isSticky ? t(H)[e.id] : null),
|
|
249
|
+
onClick: (n) => e.isSortable ? t(Z)(e) : null
|
|
214
250
|
}, [
|
|
215
|
-
(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
251
|
+
b("div", Fe, [
|
|
252
|
+
r(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
|
+
k(t(Re), {
|
|
254
|
+
text: e.helpText,
|
|
255
|
+
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
256
|
+
placement: e.helpTextPlacement || "top",
|
|
257
|
+
"test-id": `help-tooltip-underlined-${e.id}`
|
|
258
|
+
}, {
|
|
259
|
+
default: g(() => [
|
|
260
|
+
k(t(V), {
|
|
261
|
+
variant: "tableLabel",
|
|
262
|
+
class: y({
|
|
263
|
+
underlined: e.helpText && l.helpTooltipVariant === "underline"
|
|
264
|
+
})
|
|
265
|
+
}, {
|
|
266
|
+
default: g(() => [
|
|
267
|
+
P(O(e.title), 1)
|
|
268
|
+
]),
|
|
269
|
+
_: 2
|
|
270
|
+
}, 1032, ["class"])
|
|
271
|
+
]),
|
|
272
|
+
_: 2
|
|
273
|
+
}, 1032, ["text", "disabled", "placement", "test-id"])
|
|
274
|
+
]),
|
|
275
|
+
e.helpText && l.helpTooltipVariant === "icon" ? (i(), I(we, {
|
|
276
|
+
key: 0,
|
|
277
|
+
"hover-help-text": e.helpText,
|
|
278
|
+
"hover-help-text-placement": e.helpTextPlacement,
|
|
279
|
+
"test-id": `help-tooltip-${e.id}`
|
|
280
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
281
|
+
r(s.$slots, `after-header-${e.id}`, { column: e }),
|
|
282
|
+
e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
|
|
283
|
+
key: 1,
|
|
284
|
+
"sort-order": l.sort.sortOrder
|
|
285
|
+
}, null, 8, ["sort-order"])) : c("", !0)
|
|
286
|
+
])
|
|
287
|
+
], 14, De))), 128))
|
|
288
|
+
], 4),
|
|
289
|
+
l.showTotalsRow && t($).length > 0 ? (i(), d("tr", Ne, [
|
|
290
|
+
t(D) ? (i(), d("td", L({
|
|
291
|
+
key: 0,
|
|
292
|
+
class: "bg"
|
|
293
|
+
}, t(N)), null, 16)) : c("", !0),
|
|
294
|
+
(i(!0), d(x, null, C(l.columns, (e, h) => (i(), d("td", {
|
|
295
|
+
key: e.id,
|
|
296
|
+
class: y({
|
|
297
|
+
...t(Y)[h],
|
|
298
|
+
[`total-${e.id}`]: !0
|
|
299
|
+
}),
|
|
300
|
+
style: S(e.isSticky ? t(H)[e.id] : null)
|
|
236
301
|
}, [
|
|
237
|
-
|
|
302
|
+
r(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
303
|
+
h === 0 ? (i(), I(t(V), {
|
|
304
|
+
key: 0,
|
|
305
|
+
variant: "h6"
|
|
306
|
+
}, {
|
|
307
|
+
default: g(() => [
|
|
308
|
+
P("Totals")
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
})) : c("", !0)
|
|
312
|
+
])
|
|
313
|
+
], 6))), 128))
|
|
314
|
+
])) : c("", !0)
|
|
315
|
+
], 2),
|
|
316
|
+
b("tbody", null, [
|
|
317
|
+
t($).length > 0 ? (i(), d("div", L({
|
|
318
|
+
key: 0,
|
|
319
|
+
class: "table-body-wrapper",
|
|
320
|
+
"data-testid": `${l.testId}-${t(R).BODY_WRAPPER}`
|
|
321
|
+
}, t(J)), [
|
|
322
|
+
(i(!0), d(x, null, C(t($), (e) => (i(), d("tr", {
|
|
323
|
+
key: l.getRowKey(e.data, e.index),
|
|
324
|
+
class: y(["table-row", {
|
|
325
|
+
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
326
|
+
active: t(T) === e.index,
|
|
327
|
+
activeMenu: t(se) === e.index,
|
|
328
|
+
expanded: t(w) && t(M)(e.index),
|
|
329
|
+
[q(e.index)]: !0
|
|
330
|
+
}]),
|
|
331
|
+
style: S(t(A)[e.index]),
|
|
332
|
+
onMouseenter: (h) => T.value = e.index,
|
|
333
|
+
onClick: (h) => f("clickRow", e.index)
|
|
334
|
+
}, [
|
|
335
|
+
t(D) ? (i(), d("td", L({
|
|
238
336
|
key: 0,
|
|
239
337
|
class: "checkbox-cell"
|
|
240
|
-
}, t(N)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
248
|
-
])
|
|
338
|
+
}, t(N), {
|
|
339
|
+
style: t(A)[e.index]
|
|
340
|
+
}), [
|
|
341
|
+
k(t(Q), {
|
|
342
|
+
"is-checked": E(l.getRowId(e.data, e.index)),
|
|
343
|
+
"onUpdate:isChecked": (h) => de(l.getRowId(e.data, e.index))
|
|
344
|
+
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
249
345
|
], 16)) : c("", !0),
|
|
250
|
-
t(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
...t(Y)[y],
|
|
255
|
-
isSortable: e.isSortable,
|
|
256
|
-
[`column-${e.id}`]: !0
|
|
257
|
-
}),
|
|
258
|
-
style: S(
|
|
259
|
-
e.isSticky ? t(w)[e.id] : null
|
|
260
|
-
),
|
|
261
|
-
onClick: (r) => e.isSortable ? t(_)(e) : null
|
|
346
|
+
t(w) ? (i(), d("td", {
|
|
347
|
+
key: 1,
|
|
348
|
+
class: "expand-toggle-cell",
|
|
349
|
+
style: S(t(A)[e.index])
|
|
262
350
|
}, [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
})
|
|
277
|
-
}, {
|
|
278
|
-
default: g(() => [
|
|
279
|
-
L(O(e.title), 1)
|
|
280
|
-
]),
|
|
281
|
-
_: 2
|
|
282
|
-
}, 1032, ["class"])
|
|
283
|
-
]),
|
|
284
|
-
_: 2
|
|
285
|
-
}, 1032, ["text", "disabled", "placement", "test-id"])
|
|
286
|
-
]),
|
|
287
|
-
e.helpText && a.helpTooltipVariant === "icon" ? (i(), P(Ee, {
|
|
288
|
-
key: 0,
|
|
289
|
-
"hover-help-text": e.helpText,
|
|
290
|
-
"hover-help-text-placement": e.helpTextPlacement,
|
|
291
|
-
"test-id": `help-tooltip-${e.id}`
|
|
292
|
-
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
293
|
-
n(s.$slots, `after-header-${e.id}`, { column: e }),
|
|
294
|
-
e.isSortable && e.id === a.sort?.sortBy ? (i(), P(we, {
|
|
295
|
-
key: 1,
|
|
296
|
-
"sort-order": a.sort.sortOrder
|
|
297
|
-
}, null, 8, ["sort-order"])) : c("", !0)
|
|
298
|
-
])
|
|
299
|
-
], 14, Fe))), 128))
|
|
300
|
-
], 4),
|
|
301
|
-
a.showTotalsRow && t(T).length > 0 ? (i(), d("tr", Oe, [
|
|
302
|
-
t(D) ? (i(), d("td", $({
|
|
303
|
-
key: 0,
|
|
304
|
-
class: "bg"
|
|
305
|
-
}, t(N)), null, 16)) : c("", !0),
|
|
306
|
-
(i(!0), d(C, null, x(a.columns, (e, y) => (i(), d("td", {
|
|
307
|
-
key: e.id,
|
|
308
|
-
class: h({
|
|
309
|
-
...t(Y)[y],
|
|
310
|
-
[`total-${e.id}`]: !0
|
|
351
|
+
k(Ee, {
|
|
352
|
+
expanded: t(M)(e.index),
|
|
353
|
+
onClick: (h) => t(te)(e.index, h)
|
|
354
|
+
}, null, 8, ["expanded", "onClick"])
|
|
355
|
+
], 4)) : c("", !0),
|
|
356
|
+
(i(!0), d(x, null, C(l.columns, (h, n) => (i(), d("td", {
|
|
357
|
+
key: n,
|
|
358
|
+
class: y({
|
|
359
|
+
sticky: l.columns[n].isSticky,
|
|
360
|
+
isStickyRight: l.columns[n].isStickyRight,
|
|
361
|
+
bordered: l.columns[n].isBordered,
|
|
362
|
+
isTextRight: l.columns[n].isTextRight,
|
|
363
|
+
[`column-${l.columns[n].id}`]: !0
|
|
311
364
|
}),
|
|
312
|
-
style: S(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}, [
|
|
316
|
-
n(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
317
|
-
y === 0 ? (i(), P(t(V), {
|
|
318
|
-
key: 0,
|
|
319
|
-
variant: "h6"
|
|
320
|
-
}, {
|
|
321
|
-
default: g(() => [
|
|
322
|
-
L("Totals")
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
})) : c("", !0)
|
|
365
|
+
style: S([
|
|
366
|
+
l.columns[n].isSticky ? t(H)[l.columns[n].id] : null,
|
|
367
|
+
t(A)[e.index]
|
|
326
368
|
])
|
|
327
|
-
], 6))), 128))
|
|
328
|
-
])) : c("", !0)
|
|
329
|
-
], 2),
|
|
330
|
-
m("tbody", null, [
|
|
331
|
-
t(T).length > 0 ? (i(), d("div", $({
|
|
332
|
-
key: 0,
|
|
333
|
-
class: "table-body-wrapper",
|
|
334
|
-
"data-testid": `${a.testId}-${t(R).BODY_WRAPPER}`
|
|
335
|
-
}, t(Z)), [
|
|
336
|
-
(i(!0), d(C, null, x(t(T), (e) => (i(), d("tr", {
|
|
337
|
-
key: a.getRowKey(e.data, e.index),
|
|
338
|
-
class: h(["table-row", {
|
|
339
|
-
loading: a.isLoading || a.isLoading && !e.data || t(U).includes(e.index),
|
|
340
|
-
active: t(H) === e.index,
|
|
341
|
-
activeMenu: t(le) === e.index,
|
|
342
|
-
expanded: t(E) && t(M)(e.index),
|
|
343
|
-
[J(e.index)]: !0
|
|
344
|
-
}]),
|
|
345
|
-
style: S(t(I)[e.index]),
|
|
346
|
-
onMouseenter: (y) => H.value = e.index,
|
|
347
|
-
onClick: (y) => f("clickRow", e.index)
|
|
348
369
|
}, [
|
|
349
|
-
|
|
370
|
+
!l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
|
|
350
371
|
key: 0,
|
|
351
|
-
class: "
|
|
352
|
-
}, t(N), {
|
|
353
|
-
style: t(I)[e.index]
|
|
354
|
-
}), [
|
|
355
|
-
k(t(X), {
|
|
356
|
-
"is-checked": B(a.getRowId(e.data, e.index)),
|
|
357
|
-
"onUpdate:isChecked": (y) => ne(a.getRowId(e.data, e.index))
|
|
358
|
-
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
359
|
-
], 16)) : c("", !0),
|
|
360
|
-
t(E) ? (i(), d("td", {
|
|
361
|
-
key: 1,
|
|
362
|
-
class: "expand-toggle-cell",
|
|
363
|
-
style: S(t(I)[e.index])
|
|
372
|
+
class: y(["table-cell", { last: n === e.data.length - 1 }])
|
|
364
373
|
}, [
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
], 4)) : c("", !0),
|
|
370
|
-
(i(!0), d(C, null, x(a.columns, (y, r) => (i(), d("td", {
|
|
371
|
-
key: r,
|
|
372
|
-
class: h({
|
|
373
|
-
sticky: a.columns[r].isSticky,
|
|
374
|
-
isStickyRight: a.columns[r].isStickyRight,
|
|
375
|
-
bordered: a.columns[r].isBordered,
|
|
376
|
-
isTextRight: a.columns[r].isTextRight,
|
|
377
|
-
[`column-${a.columns[r].id}`]: !0
|
|
378
|
-
}),
|
|
379
|
-
style: S([
|
|
380
|
-
a.columns[r].isSticky ? t(w)[a.columns[r].id] : null,
|
|
381
|
-
t(I)[e.index]
|
|
382
|
-
])
|
|
383
|
-
}, [
|
|
384
|
-
!a.isLoading || a.isLoading && e.data[r] ? (i(), d("div", {
|
|
385
|
-
key: 0,
|
|
386
|
-
class: h(["table-cell", { last: r === e.data.length - 1 }])
|
|
387
|
-
}, [
|
|
388
|
-
n(s.$slots, `cell-${a.columns[r].id}`, {
|
|
389
|
-
cell: e.data[r],
|
|
390
|
-
isLoading: t(U).includes(e.index),
|
|
391
|
-
cellIndex: r,
|
|
392
|
-
row: e,
|
|
393
|
-
rowIndex: e.index
|
|
394
|
-
}, () => [
|
|
395
|
-
k(t(V), { variant: "body1" }, {
|
|
396
|
-
default: g(() => [
|
|
397
|
-
L(O(e.data[r]), 1)
|
|
398
|
-
]),
|
|
399
|
-
_: 2
|
|
400
|
-
}, 1024)
|
|
401
|
-
])
|
|
402
|
-
], 2)) : n(s.$slots, "loader", { key: 1 }, () => [
|
|
403
|
-
k(t(Ce), { round: "" })
|
|
404
|
-
])
|
|
405
|
-
], 6))), 128)),
|
|
406
|
-
t(E) && t(M)(e.index) ? (i(), d("div", Ke, [
|
|
407
|
-
n(s.$slots, "expanded", {
|
|
408
|
-
row: e,
|
|
409
|
-
gridColumnTemplate: t(G)
|
|
410
|
-
})
|
|
411
|
-
])) : c("", !0),
|
|
412
|
-
ce(e.index) ? (i(), d("div", Ue, [
|
|
413
|
-
n(s.$slots, "floating-row", {
|
|
374
|
+
r(s.$slots, `cell-${l.columns[n].id}`, {
|
|
375
|
+
cell: e.data[n],
|
|
376
|
+
isLoading: t(U).includes(e.index),
|
|
377
|
+
cellIndex: n,
|
|
414
378
|
row: e,
|
|
415
379
|
rowIndex: e.index
|
|
416
|
-
})
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
380
|
+
}, () => [
|
|
381
|
+
k(t(V), { variant: "body1" }, {
|
|
382
|
+
default: g(() => [
|
|
383
|
+
P(O(e.data[n]), 1)
|
|
384
|
+
]),
|
|
385
|
+
_: 2
|
|
386
|
+
}, 1024)
|
|
387
|
+
])
|
|
388
|
+
], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
|
|
389
|
+
k(t(xe), { round: "" })
|
|
390
|
+
])
|
|
391
|
+
], 6))), 128)),
|
|
392
|
+
t(w) && t(M)(e.index) ? (i(), d("div", Ge, [
|
|
393
|
+
r(s.$slots, "expanded", {
|
|
394
|
+
row: e,
|
|
395
|
+
gridColumnTemplate: t(G)
|
|
396
|
+
})
|
|
397
|
+
])) : c("", !0),
|
|
398
|
+
re(e.index) ? (i(), d("div", Ke, [
|
|
399
|
+
r(s.$slots, "floating-row", {
|
|
400
|
+
row: e,
|
|
401
|
+
rowIndex: e.index
|
|
402
|
+
})
|
|
403
|
+
])) : c("", !0)
|
|
404
|
+
], 46, ze))), 128))
|
|
405
|
+
], 16, Oe)) : (i(), d("div", {
|
|
406
|
+
key: 1,
|
|
407
|
+
style: S(
|
|
408
|
+
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
|
409
|
+
)
|
|
410
|
+
}, [
|
|
411
|
+
r(s.$slots, "empty-state", {}, () => [
|
|
412
|
+
k(t(Ce), {
|
|
413
|
+
class: "empty-state",
|
|
414
|
+
title: l.emptyStateTitle,
|
|
415
|
+
subtitle: t(ue),
|
|
416
|
+
variant: t(ce),
|
|
417
|
+
"icon-name": "file-search",
|
|
418
|
+
"test-id": `${l.testId}-${t(R).EMPTY_STATE}`
|
|
419
|
+
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
420
|
+
])
|
|
421
|
+
], 4))
|
|
422
|
+
])
|
|
423
|
+
], 46, Le),
|
|
424
|
+
t(W) ? (i(), d("div", Ue, [
|
|
425
|
+
r(s.$slots, "footer")
|
|
444
426
|
])) : c("", !0)
|
|
445
|
-
],
|
|
427
|
+
], 40, Pe));
|
|
446
428
|
}
|
|
447
429
|
});
|
|
448
430
|
export {
|
|
449
|
-
|
|
431
|
+
ct as default
|
|
450
432
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
"side-panel"?(_: {}): any;
|
|
4
|
+
}>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./DataGridContainer.vue2.js";
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a30b10c"]]);
|
|
5
|
+
export {
|
|
6
|
+
r as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../../../DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css"; import { defineComponent as n, useSlots as a, computed as d, unref as r, openBlock as i, createElementBlock as l, renderSlot as t, createElementVNode as c } from "vue";
|
|
2
|
+
const u = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "data-grid-container"
|
|
5
|
+
}, p = { class: "side-panel-container" }, v = /* @__PURE__ */ n({
|
|
6
|
+
__name: "DataGridContainer",
|
|
7
|
+
setup(_) {
|
|
8
|
+
const o = a(), s = d(() => !!o["side-panel"]);
|
|
9
|
+
return (e, m) => r(s) ? (i(), l("div", u, [
|
|
10
|
+
t(e.$slots, "default", {}, void 0, !0),
|
|
11
|
+
c("div", p, [
|
|
12
|
+
t(e.$slots, "side-panel", {}, void 0, !0)
|
|
13
|
+
])
|
|
14
|
+
])) : t(e.$slots, "default", { key: 1 }, void 0, !0);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
v as default
|
|
19
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css"; import { defineComponent as V, useCssVars as E, useSlots as N, computed as G, openBlock as d, createElementBlock as w, createVNode as O, unref as l, isRef as b, createSlots as g, withCtx as n, renderSlot as i, createBlock as S, createCommentVNode as v, Fragment as
|
|
1
|
+
import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css"; import { defineComponent as V, useCssVars as E, useSlots as N, computed as G, openBlock as d, createElementBlock as w, createVNode as O, unref as l, isRef as b, createSlots as g, withCtx as n, renderSlot as i, createBlock as S, createCommentVNode as v, Fragment as p, renderList as h } from "vue";
|
|
2
2
|
import R from "./DataGrid.vue.js";
|
|
3
3
|
import "./DataGridMenu.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import A from "./DataGridRowsCounter.vue.js";
|
|
5
|
+
import F from "./DataGridHeader.vue.js";
|
|
6
|
+
import "./DataGridContainer.vue.js";
|
|
6
7
|
import "./MultipleDataGrid.vue.js";
|
|
7
|
-
import { useVModel as
|
|
8
|
-
const
|
|
8
|
+
import { useVModel as H } from "@vueuse/core";
|
|
9
|
+
const M = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "tables-container"
|
|
11
|
-
},
|
|
12
|
+
}, Y = /* @__PURE__ */ V({
|
|
12
13
|
__name: "MultipleDataGrid",
|
|
13
14
|
props: {
|
|
14
15
|
tablesSettings: { default: () => [] },
|
|
@@ -42,14 +43,14 @@ const P = {
|
|
|
42
43
|
}));
|
|
43
44
|
const k = N(), x = G(
|
|
44
45
|
() => f.isLoading || !f.tablesSettings.flatMap((e) => e.rows).length
|
|
45
|
-
), u =
|
|
46
|
+
), u = H(f, "search", s), y = (e) => `header-${e.id}`, C = (e) => `cell-${e.id}`, $ = (e) => {
|
|
46
47
|
s("onScroll", e.target.scrollTop);
|
|
47
48
|
}, I = () => s("onClearSearch"), B = (e, r) => s("clickRow", e, r), T = ({ value: e, rowIndex: r, cellIndex: a, confirm: c }, o) => s("saveRow", { value: e, tableIndex: o, rowIndex: r, cellIndex: a, confirm: c });
|
|
48
49
|
return (e, r) => (d(), w("div", {
|
|
49
50
|
class: "multi-table-container",
|
|
50
51
|
onScrollPassive: $
|
|
51
52
|
}, [
|
|
52
|
-
O(l(
|
|
53
|
+
O(l(F), {
|
|
53
54
|
search: l(u),
|
|
54
55
|
"onUpdate:search": r[0] || (r[0] = (a) => b(u) ? u.value = a : null),
|
|
55
56
|
class: "multi-table-header",
|
|
@@ -62,7 +63,7 @@ const P = {
|
|
|
62
63
|
}, g({
|
|
63
64
|
title: n(() => [
|
|
64
65
|
i(e.$slots, "title", {}, () => [
|
|
65
|
-
t.isLoading ? v("", !0) : (d(), S(l(
|
|
66
|
+
t.isLoading ? v("", !0) : (d(), S(l(A), {
|
|
66
67
|
key: 0,
|
|
67
68
|
count: t.count,
|
|
68
69
|
"total-count": t.totalCount,
|
|
@@ -117,8 +118,8 @@ const P = {
|
|
|
117
118
|
i(e.$slots, `${y(a)}`, { column: a }, void 0, !0)
|
|
118
119
|
])
|
|
119
120
|
}))
|
|
120
|
-
]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (d(), w("div",
|
|
121
|
-
(d(!0), w(
|
|
121
|
+
]), 1032, ["search", "columns", "is-loading", "loading-row-count", "empty-state-variant", "empty-state-title", "empty-state-subtitle", "test-id"])) : (d(), w("div", M, [
|
|
122
|
+
(d(!0), w(p, null, h(t.tablesSettings, (a, c) => (d(), w("div", {
|
|
122
123
|
key: a.testId,
|
|
123
124
|
class: "table-wrapper"
|
|
124
125
|
}, [
|
|
@@ -178,5 +179,5 @@ const P = {
|
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
Y as default
|
|
182
183
|
};
|
|
@@ -2,6 +2,7 @@ import DataGrid from './DataGrid.vue';
|
|
|
2
2
|
import DataGridMenu from './DataGridMenu.vue';
|
|
3
3
|
import DataGridRowsCounter from './DataGridRowsCounter.vue';
|
|
4
4
|
import DataGridHeader from './DataGridHeader.vue';
|
|
5
|
+
import DataGridContainer from './DataGridContainer.vue';
|
|
5
6
|
import MultipleDataGrid from './MultipleDataGrid.vue';
|
|
6
7
|
declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
7
8
|
placement: {
|
|
@@ -341,6 +342,53 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
341
342
|
search?(_: {}): any;
|
|
342
343
|
"table-header-actions"?(_: {}): any;
|
|
343
344
|
};
|
|
345
|
+
})) | ({
|
|
346
|
+
new (...args: any[]): {
|
|
347
|
+
$: import("vue").ComponentInternalInstance;
|
|
348
|
+
$data: {};
|
|
349
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
350
|
+
$attrs: {
|
|
351
|
+
[x: string]: unknown;
|
|
352
|
+
};
|
|
353
|
+
$refs: {
|
|
354
|
+
[x: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
$slots: Readonly<{
|
|
357
|
+
[name: string]: import("vue").Slot;
|
|
358
|
+
}>;
|
|
359
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
360
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
361
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
362
|
+
$el: any;
|
|
363
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
364
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
365
|
+
created?: (() => void) | (() => void)[];
|
|
366
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
367
|
+
mounted?: (() => void) | (() => void)[];
|
|
368
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
369
|
+
updated?: (() => void) | (() => void)[];
|
|
370
|
+
activated?: (() => void) | (() => void)[];
|
|
371
|
+
deactivated?: (() => void) | (() => void)[];
|
|
372
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
373
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
374
|
+
destroyed?: (() => void) | (() => void)[];
|
|
375
|
+
unmounted?: (() => void) | (() => void)[];
|
|
376
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
377
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
378
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
379
|
+
};
|
|
380
|
+
$forceUpdate: () => void;
|
|
381
|
+
$nextTick: typeof import("vue").nextTick;
|
|
382
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
383
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
384
|
+
__isFragment?: never;
|
|
385
|
+
__isTeleport?: never;
|
|
386
|
+
__isSuspense?: never;
|
|
387
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
388
|
+
$slots: {
|
|
389
|
+
default?(_: {}): any;
|
|
390
|
+
"side-panel"?(_: {}): any;
|
|
391
|
+
};
|
|
344
392
|
})) | ({
|
|
345
393
|
new (...args: any[]): {
|
|
346
394
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1106,7 +1154,6 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1106
1154
|
}): any;
|
|
1107
1155
|
"empty-state"?(_: {}): any;
|
|
1108
1156
|
footer?(_: {}): any;
|
|
1109
|
-
"side-panel"?(_: {}): any;
|
|
1110
1157
|
};
|
|
1111
1158
|
})) | ({
|
|
1112
1159
|
new (...args: any[]): {
|
|
@@ -1658,4 +1705,4 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1658
1705
|
};
|
|
1659
1706
|
})))[];
|
|
1660
1707
|
export type { Column, Sort, MenuItem, TableSettings, } from '../common/Table.types';
|
|
1661
|
-
export { DataGrid, DataGridMenu, DataGridRowsCounter, DataGridTypes, MultipleDataGrid, DataGridHeader, };
|
|
1708
|
+
export { DataGrid, DataGridMenu, DataGridRowsCounter, DataGridTypes, MultipleDataGrid, DataGridHeader, DataGridContainer, };
|
|
@@ -2,19 +2,22 @@ import r from "./DataGrid.vue.js";
|
|
|
2
2
|
import t from "./DataGridMenu.vue.js";
|
|
3
3
|
import o from "./DataGridRowsCounter.vue.js";
|
|
4
4
|
import a from "./DataGridHeader.vue.js";
|
|
5
|
-
import i from "./
|
|
6
|
-
|
|
5
|
+
import i from "./DataGridContainer.vue.js";
|
|
6
|
+
import m from "./MultipleDataGrid.vue.js";
|
|
7
|
+
const n = () => [
|
|
7
8
|
r,
|
|
8
9
|
t,
|
|
9
10
|
o,
|
|
10
|
-
|
|
11
|
-
a
|
|
11
|
+
m,
|
|
12
|
+
a,
|
|
13
|
+
i
|
|
12
14
|
];
|
|
13
15
|
export {
|
|
14
16
|
r as DataGrid,
|
|
17
|
+
i as DataGridContainer,
|
|
15
18
|
a as DataGridHeader,
|
|
16
19
|
t as DataGridMenu,
|
|
17
20
|
o as DataGridRowsCounter,
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
n as DataGridTypes,
|
|
22
|
+
m as MultipleDataGrid
|
|
20
23
|
};
|
package/index.d.ts
CHANGED
|
@@ -6642,7 +6642,6 @@ declare const _default: {
|
|
|
6642
6642
|
}): any;
|
|
6643
6643
|
"empty-state"?(_: {}): any;
|
|
6644
6644
|
footer?(_: {}): any;
|
|
6645
|
-
"side-panel"?(_: {}): any;
|
|
6646
6645
|
};
|
|
6647
6646
|
});
|
|
6648
6647
|
DataGridMenu: import("vue").DefineComponent<{
|
|
@@ -7078,6 +7077,53 @@ declare const _default: {
|
|
|
7078
7077
|
search?(_: {}): any;
|
|
7079
7078
|
"table-header-actions"?(_: {}): any;
|
|
7080
7079
|
};
|
|
7080
|
+
})) | ({
|
|
7081
|
+
new (...args: any[]): {
|
|
7082
|
+
$: import("vue").ComponentInternalInstance;
|
|
7083
|
+
$data: {};
|
|
7084
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
7085
|
+
$attrs: {
|
|
7086
|
+
[x: string]: unknown;
|
|
7087
|
+
};
|
|
7088
|
+
$refs: {
|
|
7089
|
+
[x: string]: unknown;
|
|
7090
|
+
};
|
|
7091
|
+
$slots: Readonly<{
|
|
7092
|
+
[name: string]: import("vue").Slot;
|
|
7093
|
+
}>;
|
|
7094
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
7095
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
7096
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
7097
|
+
$el: any;
|
|
7098
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
7099
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
7100
|
+
created?: (() => void) | (() => void)[];
|
|
7101
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
7102
|
+
mounted?: (() => void) | (() => void)[];
|
|
7103
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
7104
|
+
updated?: (() => void) | (() => void)[];
|
|
7105
|
+
activated?: (() => void) | (() => void)[];
|
|
7106
|
+
deactivated?: (() => void) | (() => void)[];
|
|
7107
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
7108
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
7109
|
+
destroyed?: (() => void) | (() => void)[];
|
|
7110
|
+
unmounted?: (() => void) | (() => void)[];
|
|
7111
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
7112
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
7113
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
7114
|
+
};
|
|
7115
|
+
$forceUpdate: () => void;
|
|
7116
|
+
$nextTick: typeof import("vue").nextTick;
|
|
7117
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
7118
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
7119
|
+
__isFragment?: never;
|
|
7120
|
+
__isTeleport?: never;
|
|
7121
|
+
__isSuspense?: never;
|
|
7122
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
7123
|
+
$slots: {
|
|
7124
|
+
default?(_: {}): any;
|
|
7125
|
+
"side-panel"?(_: {}): any;
|
|
7126
|
+
};
|
|
7081
7127
|
})) | ({
|
|
7082
7128
|
new (...args: any[]): {
|
|
7083
7129
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -7843,7 +7889,6 @@ declare const _default: {
|
|
|
7843
7889
|
}): any;
|
|
7844
7890
|
"empty-state"?(_: {}): any;
|
|
7845
7891
|
footer?(_: {}): any;
|
|
7846
|
-
"side-panel"?(_: {}): any;
|
|
7847
7892
|
};
|
|
7848
7893
|
})) | ({
|
|
7849
7894
|
new (...args: any[]): {
|
|
@@ -9189,6 +9234,54 @@ declare const _default: {
|
|
|
9189
9234
|
"table-header-actions"?(_: {}): any;
|
|
9190
9235
|
};
|
|
9191
9236
|
});
|
|
9237
|
+
DataGridContainer: {
|
|
9238
|
+
new (...args: any[]): {
|
|
9239
|
+
$: import("vue").ComponentInternalInstance;
|
|
9240
|
+
$data: {};
|
|
9241
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
9242
|
+
$attrs: {
|
|
9243
|
+
[x: string]: unknown;
|
|
9244
|
+
};
|
|
9245
|
+
$refs: {
|
|
9246
|
+
[x: string]: unknown;
|
|
9247
|
+
};
|
|
9248
|
+
$slots: Readonly<{
|
|
9249
|
+
[name: string]: import("vue").Slot;
|
|
9250
|
+
}>;
|
|
9251
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
9252
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
9253
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
9254
|
+
$el: any;
|
|
9255
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
9256
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
9257
|
+
created?: (() => void) | (() => void)[];
|
|
9258
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
9259
|
+
mounted?: (() => void) | (() => void)[];
|
|
9260
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
9261
|
+
updated?: (() => void) | (() => void)[];
|
|
9262
|
+
activated?: (() => void) | (() => void)[];
|
|
9263
|
+
deactivated?: (() => void) | (() => void)[];
|
|
9264
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
9265
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
9266
|
+
destroyed?: (() => void) | (() => void)[];
|
|
9267
|
+
unmounted?: (() => void) | (() => void)[];
|
|
9268
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
9269
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
9270
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
9271
|
+
};
|
|
9272
|
+
$forceUpdate: () => void;
|
|
9273
|
+
$nextTick: typeof import("vue").nextTick;
|
|
9274
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
9275
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
9276
|
+
__isFragment?: never;
|
|
9277
|
+
__isTeleport?: never;
|
|
9278
|
+
__isSuspense?: never;
|
|
9279
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
9280
|
+
$slots: {
|
|
9281
|
+
default?(_: {}): any;
|
|
9282
|
+
"side-panel"?(_: {}): any;
|
|
9283
|
+
};
|
|
9284
|
+
});
|
|
9192
9285
|
Table: {
|
|
9193
9286
|
new (...args: any[]): {
|
|
9194
9287
|
$: import("vue").ComponentInternalInstance;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AppIcon.vue_vue_type_style_index_0_scoped_56ba337c_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-c04877bd]{position:sticky}.table-container[data-v-c04877bd]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-c04877bd]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-c04877bd]{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-c04877bd]{display:inline-table}.table-row[data-v-c04877bd]{position:relative}.table-row.loading[data-v-c04877bd]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-c04877bd]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-c04877bd]{border-bottom:none}.expanded-row[data-v-c04877bd]{grid-column:var(--77c32d26);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-c04877bd]{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-c04877bd]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-c04877bd],table th[data-v-c04877bd]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-c04877bd]:first-of-type,table th[data-v-c04877bd]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-c04877bd]:last-of-type,table th[data-v-c04877bd]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-c04877bd],table th.expand-toggle-cell[data-v-c04877bd]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-c04877bd]{border-bottom:none;z-index:calc(var(--99782f9c) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-c04877bd]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--5b788e9f)}table>thead>tr>th[data-v-c04877bd]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-c04877bd]{cursor:pointer}table>thead>tr>td[data-v-c04877bd]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-c04877bd],table>thead>tr>td.bordered[data-v-c04877bd]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-c04877bd],table>thead>tr>td.bordered.isStickyRight[data-v-c04877bd]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-c04877bd],table>thead>tr>td.isTextRight[data-v-c04877bd]{justify-content:flex-end}table>thead.sticky[data-v-c04877bd]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-c04877bd]{z-index:calc(var(--99782f9c) + 2);top:var(--007495cd)}table .totals-row[data-v-c04877bd]{height:40px}table .totals-row[data-v-c04877bd]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-c04877bd]{background-color:var(--background-default)}table>tbody[data-v-c04877bd]{display:block}table>tbody>*>tr[data-v-c04877bd]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--5b788e9f)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-c04877bd]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-c04877bd],table>tbody>*>tr.activeMenu>td[data-v-c04877bd]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-c04877bd]{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-c04877bd]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-c04877bd]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-c04877bd]{justify-content:flex-end;text-align:right}.underlined[data-v-c04877bd]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-c04877bd]:hover{cursor:pointer}.section-container[data-v-c04877bd]{left:0}.sections[data-v-c04877bd]{display:flex}.section[data-v-c04877bd]{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-c04877bd]{width:100%}.empty-state[data-v-c04877bd]{min-height:250px}.floating-row[data-v-c04877bd]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--99782f9c) + 1)}.floating-row *[data-v-c04877bd-s]{pointer-events:auto}.bg[data-v-c04877bd]{background:var(--background-default)}.use-available-height[data-v-c04877bd]{height:100%}.data-grid-container[data-v-c04877bd]{width:100%;display:flex;flex-direction:row;max-height:100%;align-items:stretch}.data-grid-container[data-v-c04877bd] .table-container{width:calc(100% - 201px);flex:1}.data-grid-container[data-v-c04877bd] table{flex:1;background:var(--background-default);border-top-right-radius:0;border-bottom-right-radius:0}.data-grid-container[data-v-c04877bd] .table-row:last-child{border-bottom:1px solid var(--common-divider)}.side-panel-container[data-v-c04877bd]{width:201px;max-width:201px;flex:1}.side-panel-container[data-v-c04877bd] .column-configurator{height:100%;border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}
|