@ironsource/shared-ui 2.2.0-rc.13 → 2.2.0-rc.14
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_b16780cd_lang.css +1 -0
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -86
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +133 -132
- package/components/table/v4/index.d.ts +7 -1
- package/index.d.ts +14 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-b16780cd]{position:sticky}.table-container[data-v-b16780cd]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-b16780cd]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-b16780cd]{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-b16780cd]{display:inline-table}.table-row[data-v-b16780cd]{position:relative}.table-row.loading[data-v-b16780cd]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-b16780cd]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-b16780cd]{border-bottom:none}.expanded-row[data-v-b16780cd]{grid-column:var(--5a1e7908);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-b16780cd]{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-b16780cd]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-b16780cd],table th[data-v-b16780cd]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-b16780cd]:first-of-type,table th[data-v-b16780cd]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-b16780cd]:last-of-type,table th[data-v-b16780cd]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-b16780cd],table th.expand-toggle-cell[data-v-b16780cd]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-b16780cd]{border-bottom:none;z-index:calc(var(--0c9e7708) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-b16780cd]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--bccc3116)}table>thead>tr>th[data-v-b16780cd]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-b16780cd]{cursor:pointer}table>thead>tr>td[data-v-b16780cd]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-b16780cd],table>thead>tr>td.bordered[data-v-b16780cd]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-b16780cd],table>thead>tr>td.bordered.isStickyRight[data-v-b16780cd]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-b16780cd],table>thead>tr>td.isTextRight[data-v-b16780cd]{justify-content:flex-end}table>thead.sticky[data-v-b16780cd]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-b16780cd]{z-index:calc(var(--0c9e7708) + 2);top:var(--43a31123)}table .totals-row[data-v-b16780cd]{height:40px}table .totals-row[data-v-b16780cd]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-b16780cd]{background-color:var(--background-default)}table>tbody[data-v-b16780cd]{display:block}table>tbody>*>tr[data-v-b16780cd]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--bccc3116)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-b16780cd]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-b16780cd],table>tbody>*>tr.activeMenu>td[data-v-b16780cd]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-b16780cd]{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-b16780cd]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-b16780cd]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-b16780cd]{justify-content:flex-end;text-align:right}.underlined[data-v-b16780cd]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-b16780cd]:hover{cursor:pointer}.section-container[data-v-b16780cd]{left:0}.sections[data-v-b16780cd]{display:flex}.section[data-v-b16780cd]{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-b16780cd]{width:100%}.empty-state[data-v-b16780cd]{min-height:250px}.floating-row[data-v-b16780cd]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--0c9e7708) + 1)}.floating-row *[data-v-b16780cd-s]{pointer-events:auto}.bg[data-v-b16780cd]{background:var(--background-default)}.useAvailableHeight[data-v-b16780cd]{height:100%}.disabled-scrolling[data-v-b16780cd]{overflow:hidden}
|
|
@@ -1,86 +1 @@
|
|
|
1
|
-
import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css";
|
|
2
|
-
import { defineComponent as T, computed as N, defineAsyncComponent as b, openBlock as o, createElementBlock as k, mergeProps as s, unref as e, createBlock as n, createCommentVNode as a, createElementVNode as C, renderSlot as p, withCtx as m, createTextVNode as l, toDisplayString as u } from "vue";
|
|
3
|
-
import E from "../../button/v4/ButtonV4.vue.js";
|
|
4
|
-
import "../../button/v4/IconButtonV4.vue.js";
|
|
5
|
-
import "../../button/v4/ButtonGroup.vue.js";
|
|
6
|
-
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
7
|
-
import y from "../../typography/v4/Typography.vue.js";
|
|
8
|
-
import { capitalizeFirstLetter as S, snakeCaseToCamelCase as g } from "../../../utils/string.js";
|
|
9
|
-
import x from "../../icon/v4/IconV4.vue.js";
|
|
10
|
-
import "../../icon/v4/IconFlag.vue.js";
|
|
11
|
-
import { useTestIdAttrs as z } from "../../../utils/testIds.js";
|
|
12
|
-
import { EmptyStateTestIdModifiers as r } from "../../../testids/index.js";
|
|
13
|
-
const A = { class: "title-wrapper" }, P = /* @__PURE__ */ T({
|
|
14
|
-
__name: "EmptyStateV4",
|
|
15
|
-
props: {
|
|
16
|
-
title: { default: "No data to display" },
|
|
17
|
-
subtitle: { default: void 0 },
|
|
18
|
-
variant: { default: "no-data" },
|
|
19
|
-
buttonText: { default: void 0 },
|
|
20
|
-
iconName: { default: null },
|
|
21
|
-
iconType: { default: "regular" },
|
|
22
|
-
iconSize: { default: "48px" },
|
|
23
|
-
testId: { default: "" }
|
|
24
|
-
},
|
|
25
|
-
emits: ["click"],
|
|
26
|
-
setup(t) {
|
|
27
|
-
const d = t, v = N(() => {
|
|
28
|
-
const i = S(g(d.variant));
|
|
29
|
-
return b(() => I(/* @__PURE__ */ Object.assign({ "./icons/IconError.vue": () => import("./icons/IconError.vue.js"), "./icons/IconFiles.vue": () => import("./icons/IconFiles.vue.js"), "./icons/IconNoAccess.vue": () => import("./icons/IconNoAccess.vue.js"), "./icons/IconNoData.vue": () => import("./icons/IconNoData.vue.js"), "./icons/IconNoResults.vue": () => import("./icons/IconNoResults.vue.js"), "./icons/IconSettings.vue": () => import("./icons/IconSettings.vue.js") }), `./icons/Icon${i}.vue`));
|
|
30
|
-
}), c = z(d.testId, r);
|
|
31
|
-
return (i, f) => (o(), k("div", s({ class: "empty-state" }, e(c)[e(r).CONTAINER]), [
|
|
32
|
-
t.variant && !t.iconName ? (o(), n(e(v), {
|
|
33
|
-
key: 0,
|
|
34
|
-
class: "empty-variant-icon"
|
|
35
|
-
})) : a("", !0),
|
|
36
|
-
t.iconName ? (o(), n(e(x), {
|
|
37
|
-
key: 1,
|
|
38
|
-
class: "custom-empty-icon",
|
|
39
|
-
name: t.iconName,
|
|
40
|
-
size: t.iconSize,
|
|
41
|
-
type: t.iconType
|
|
42
|
-
}, null, 8, ["name", "size", "type"])) : a("", !0),
|
|
43
|
-
C("div", A, [
|
|
44
|
-
p(i.$slots, "content", {}, () => [
|
|
45
|
-
t.title ? (o(), n(e(y), s({
|
|
46
|
-
key: 0,
|
|
47
|
-
variant: "h4",
|
|
48
|
-
class: "title"
|
|
49
|
-
}, e(c)[e(r).TITLE]), {
|
|
50
|
-
default: m(() => [
|
|
51
|
-
l(u(t.title), 1)
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 16)) : a("", !0),
|
|
55
|
-
t.subtitle ? (o(), n(e(y), s({
|
|
56
|
-
key: 1,
|
|
57
|
-
variant: "body1",
|
|
58
|
-
class: "subtitle"
|
|
59
|
-
}, e(c)[e(r).SUBTITLE]), {
|
|
60
|
-
default: m(() => [
|
|
61
|
-
l(u(t.subtitle), 1)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 16)) : a("", !0)
|
|
65
|
-
], !0)
|
|
66
|
-
]),
|
|
67
|
-
p(i.$slots, "button", {}, () => [
|
|
68
|
-
t.buttonText ? (o(), n(e(E), {
|
|
69
|
-
key: 0,
|
|
70
|
-
variant: "outlined",
|
|
71
|
-
color: "default",
|
|
72
|
-
class: "button",
|
|
73
|
-
onClick: f[0] || (f[0] = (B) => i.$emit("click"))
|
|
74
|
-
}, {
|
|
75
|
-
default: m(() => [
|
|
76
|
-
l(u(t.buttonText), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})) : a("", !0)
|
|
80
|
-
], !0)
|
|
81
|
-
], 16));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
P as default
|
|
86
|
-
};
|
|
1
|
+
import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css";
|
|
@@ -77,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
77
|
selectAll: (value: boolean) => void;
|
|
78
78
|
selectRow: (value: boolean) => void;
|
|
79
79
|
clickRow: (rowIndex: number) => void;
|
|
80
|
+
columnHover: (column: Column) => void;
|
|
80
81
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
81
82
|
title?: string;
|
|
82
83
|
columns: Column[];
|
|
@@ -153,6 +154,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
153
154
|
onOnClearSearch?: () => any;
|
|
154
155
|
onClickRow?: (rowIndex: number) => any;
|
|
155
156
|
onSelectRow?: (value: boolean) => any;
|
|
157
|
+
onColumnHover?: (column: Column) => any;
|
|
156
158
|
}, {
|
|
157
159
|
sort: Sort;
|
|
158
160
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b16780cd_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-b16780cd"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b16780cd_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as ve, computed as u, openBlock as i, createElementBlock as d, createElementVNode as v, normalizeStyle as S, normalizeClass as f, createBlock as I, isRef as be, createSlots as pe, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as R, createVNode as k, createTextVNode as M, toDisplayString as N, mergeProps as P } from "vue";
|
|
2
|
+
import L from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import xe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import Q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -17,13 +17,13 @@ import we from "./HelpIcon.vue.js";
|
|
|
17
17
|
import Ee from "./ExpandRowToggle.vue.js";
|
|
18
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
19
|
import { useElementSize as Ie } from "@vueuse/core";
|
|
20
|
-
const
|
|
20
|
+
const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "expand-toggle-cell"
|
|
23
|
-
},
|
|
23
|
+
}, Oe = ["onClick", "onMouseOver"], De = { class: "table-head-container" }, Fe = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "totals-row"
|
|
26
|
-
},
|
|
26
|
+
}, Ne = ["data-testid"], ze = ["onMouseenter", "onClick"], Ge = {
|
|
27
27
|
key: 2,
|
|
28
28
|
class: "expanded-row"
|
|
29
29
|
}, Ke = {
|
|
@@ -69,17 +69,17 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
69
69
|
isSelectionSticky: { type: Boolean, default: !1 },
|
|
70
70
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
71
71
|
},
|
|
72
|
-
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
73
|
-
setup(l, { expose: m, emit:
|
|
74
|
-
const
|
|
75
|
-
me((
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
"
|
|
72
|
+
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow", "columnHover"],
|
|
73
|
+
setup(l, { expose: m, emit: h }) {
|
|
74
|
+
const a = l;
|
|
75
|
+
me((s) => ({
|
|
76
|
+
"0c9e7708": l.zIndexBase,
|
|
77
|
+
"5a1e7908": t(le),
|
|
78
|
+
bccc3116: t(G),
|
|
79
|
+
"43a31123": t(fe)
|
|
80
80
|
}));
|
|
81
|
-
const
|
|
82
|
-
list:
|
|
81
|
+
const b = ve(), q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
82
|
+
list: p,
|
|
83
83
|
containerProps: z,
|
|
84
84
|
wrapperProps: J,
|
|
85
85
|
activeRow: T,
|
|
@@ -93,68 +93,68 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
93
93
|
hasExpandSlot: w,
|
|
94
94
|
toggleExpandRow: te,
|
|
95
95
|
cssExpandGridCol: le,
|
|
96
|
-
isRowExpanded:
|
|
97
|
-
hasCheckboxes:
|
|
98
|
-
activeMenuRow:
|
|
99
|
-
scrollTo:
|
|
100
|
-
} = Te(
|
|
101
|
-
() =>
|
|
96
|
+
isRowExpanded: V,
|
|
97
|
+
hasCheckboxes: O,
|
|
98
|
+
activeMenuRow: se,
|
|
99
|
+
scrollTo: ae
|
|
100
|
+
} = Te(a, h), W = u(() => !!b.footer), ie = u(
|
|
101
|
+
() => a.title || b.title || _.value || b["table-header-actions"] || b["table-header-pre-search"]
|
|
102
102
|
), x = u({
|
|
103
|
-
get: () =>
|
|
104
|
-
set: (
|
|
105
|
-
}), oe = u(() =>
|
|
106
|
-
const
|
|
107
|
-
return !!
|
|
108
|
-
}), E = (
|
|
109
|
-
E(
|
|
110
|
-
|
|
111
|
-
(o) => !
|
|
103
|
+
get: () => a.search,
|
|
104
|
+
set: (s) => h("update:search", s)
|
|
105
|
+
}), oe = u(() => a.selection.length || 0), D = 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)
|
|
112
112
|
)
|
|
113
|
-
),
|
|
113
|
+
), h("selectRow", !1)) : (B([...a.selection, s]), h("selectRow", !0));
|
|
114
114
|
}, ne = () => {
|
|
115
|
-
if (
|
|
116
|
-
B([]),
|
|
115
|
+
if (D.value)
|
|
116
|
+
B([]), h("selectAll", !1);
|
|
117
117
|
else {
|
|
118
|
-
const
|
|
119
|
-
B([...
|
|
118
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
|
|
119
|
+
B([...a.selection, ...s]), h("selectAll", !0);
|
|
120
120
|
}
|
|
121
|
-
}, B = (
|
|
122
|
-
|
|
123
|
-
}, re = (
|
|
124
|
-
() =>
|
|
121
|
+
}, B = (s) => {
|
|
122
|
+
h("update:selection", s);
|
|
123
|
+
}, re = (s) => !a.isLoading && T.value === s, ce = u(
|
|
124
|
+
() => a.emptyStateVariant ?? (x.value ? "no-results" : "no-data")
|
|
125
125
|
), ue = u(
|
|
126
|
-
() =>
|
|
127
|
-
),
|
|
126
|
+
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : x.value ? "Search again with different filters" : void 0
|
|
127
|
+
), F = u(() => ({
|
|
128
128
|
class: {
|
|
129
|
-
sticky:
|
|
130
|
-
bordered:
|
|
129
|
+
sticky: a.isSelectionSticky,
|
|
130
|
+
bordered: a.isSelectionBordered
|
|
131
131
|
},
|
|
132
|
-
style:
|
|
133
|
-
})), he = (
|
|
134
|
-
sticky:
|
|
135
|
-
isStickyRight:
|
|
136
|
-
bordered:
|
|
137
|
-
isTextRight:
|
|
132
|
+
style: a.isSelectionSticky ? H.value[Ae] : null
|
|
133
|
+
})), he = (s) => ({
|
|
134
|
+
sticky: s.isSticky,
|
|
135
|
+
isStickyRight: s.isStickyRight,
|
|
136
|
+
bordered: s.isBordered,
|
|
137
|
+
isTextRight: s.isTextRight
|
|
138
138
|
}), Y = u(
|
|
139
|
-
() =>
|
|
140
|
-
), ye = (
|
|
141
|
-
minHeight: (typeof
|
|
142
|
-
}), A = u(() =>
|
|
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(() => p.value.reduce((s, o) => (s[o.index] = ye(o.index), s), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
|
|
143
143
|
() => Se.value - j - X
|
|
144
144
|
);
|
|
145
145
|
return m({
|
|
146
|
-
scrollTo:
|
|
147
|
-
}), (
|
|
146
|
+
scrollTo: ae
|
|
147
|
+
}), (s, o) => (i(), d("div", {
|
|
148
148
|
class: "table-container",
|
|
149
149
|
"data-testid": `${l.testId}-${t($).CONTAINER}`,
|
|
150
150
|
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
151
151
|
}, [
|
|
152
|
-
|
|
152
|
+
v("table", {
|
|
153
153
|
ref: t(z).ref,
|
|
154
154
|
style: S(t(ee)),
|
|
155
|
-
class:
|
|
155
|
+
class: f({
|
|
156
156
|
hasFooter: t(W),
|
|
157
|
-
"disabled-scrolling": t(
|
|
157
|
+
"disabled-scrolling": t(p).length === 0
|
|
158
158
|
}),
|
|
159
159
|
"data-testid": `${l.testId}-${t($).TABLE}`,
|
|
160
160
|
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
@@ -163,7 +163,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
163
163
|
t(ie) ? (i(), I(t($e), {
|
|
164
164
|
key: 0,
|
|
165
165
|
search: t(x),
|
|
166
|
-
"onUpdate:search": o[0] || (o[0] = (e) =>
|
|
166
|
+
"onUpdate:search": o[0] || (o[0] = (e) => be(x) ? x.value = e : null),
|
|
167
167
|
title: l.title,
|
|
168
168
|
"is-sticky": l.isStickyHeader,
|
|
169
169
|
"show-search": l.showSearch,
|
|
@@ -171,86 +171,87 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
171
171
|
"search-auto-focus": l.searchAutoFocus,
|
|
172
172
|
"z-index-base": l.zIndexBase,
|
|
173
173
|
"test-id": l.testId,
|
|
174
|
-
onOnClearSearch: o[1] || (o[1] = (e) =>
|
|
175
|
-
},
|
|
174
|
+
onOnClearSearch: o[1] || (o[1] = (e) => h("onClearSearch"))
|
|
175
|
+
}, pe({
|
|
176
176
|
title: g(() => [
|
|
177
|
-
r(
|
|
177
|
+
r(s.$slots, "title")
|
|
178
178
|
]),
|
|
179
179
|
search: g(() => [
|
|
180
|
-
r(
|
|
180
|
+
r(s.$slots, "search")
|
|
181
181
|
]),
|
|
182
182
|
_: 2
|
|
183
183
|
}, [
|
|
184
|
-
t(
|
|
184
|
+
t(b)["table-header-pre-search"] ? {
|
|
185
185
|
name: "table-header-pre-search",
|
|
186
186
|
fn: g(() => [
|
|
187
|
-
r(
|
|
187
|
+
r(s.$slots, "table-header-pre-search")
|
|
188
188
|
]),
|
|
189
189
|
key: "0"
|
|
190
190
|
} : void 0,
|
|
191
|
-
t(
|
|
191
|
+
t(b)["table-header-actions"] ? {
|
|
192
192
|
name: "table-header-actions",
|
|
193
193
|
fn: g(() => [
|
|
194
|
-
r(
|
|
194
|
+
r(s.$slots, "table-header-actions")
|
|
195
195
|
]),
|
|
196
196
|
key: "1"
|
|
197
197
|
} : void 0
|
|
198
198
|
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
199
|
-
|
|
200
|
-
class:
|
|
199
|
+
v("thead", {
|
|
200
|
+
class: f({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
201
201
|
}, [
|
|
202
|
-
|
|
202
|
+
v("div", {
|
|
203
203
|
class: "sections",
|
|
204
204
|
"data-testid": `${l.testId}-${t($).SECTIONS}`
|
|
205
205
|
}, [
|
|
206
206
|
(i(!0), d(C, null, R(l.sections, (e) => (i(), d("div", {
|
|
207
207
|
key: e.id,
|
|
208
|
-
class:
|
|
208
|
+
class: f(["section-container", { sticky: e.isSticky }])
|
|
209
209
|
}, [
|
|
210
|
-
r(
|
|
211
|
-
|
|
210
|
+
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
211
|
+
v("div", {
|
|
212
212
|
style: S({ width: e.width + "px" }),
|
|
213
|
-
class:
|
|
213
|
+
class: f({ section: !0 })
|
|
214
214
|
}, [
|
|
215
|
-
k(t(
|
|
215
|
+
k(t(L), { variant: "body2" }, {
|
|
216
216
|
default: g(() => [
|
|
217
|
-
|
|
217
|
+
M(N(e.title), 1)
|
|
218
218
|
]),
|
|
219
219
|
_: 2
|
|
220
220
|
}, 1024)
|
|
221
221
|
], 4)
|
|
222
222
|
])
|
|
223
223
|
], 2))), 128))
|
|
224
|
-
], 8,
|
|
225
|
-
|
|
224
|
+
], 8, Le),
|
|
225
|
+
v("tr", {
|
|
226
226
|
style: S({ height: `${t(j)}px` })
|
|
227
227
|
}, [
|
|
228
|
-
t(
|
|
228
|
+
t(O) ? (i(), d("th", P({
|
|
229
229
|
key: 0,
|
|
230
230
|
class: "checkbox-cell"
|
|
231
|
-
}, t(
|
|
232
|
-
r(
|
|
231
|
+
}, t(F)), [
|
|
232
|
+
r(s.$slots, "select-all-checkbox", {}, () => [
|
|
233
233
|
k(t(Q), {
|
|
234
234
|
disabled: l.isLoading,
|
|
235
|
-
"is-checked": t(
|
|
236
|
-
"is-indeterminate": !t(
|
|
235
|
+
"is-checked": t(D),
|
|
236
|
+
"is-indeterminate": !t(D) && t(oe) > 0,
|
|
237
237
|
"onUpdate:isChecked": ne
|
|
238
238
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
239
239
|
])
|
|
240
240
|
], 16)) : c("", !0),
|
|
241
|
-
t(w) ? (i(), d("th",
|
|
242
|
-
(i(!0), d(C, null, R(l.columns, (e,
|
|
241
|
+
t(w) ? (i(), d("th", Ve)) : c("", !0),
|
|
242
|
+
(i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("th", {
|
|
243
243
|
key: e.id,
|
|
244
|
-
class:
|
|
245
|
-
...t(Y)[
|
|
244
|
+
class: f({
|
|
245
|
+
...t(Y)[y],
|
|
246
246
|
isSortable: e.isSortable,
|
|
247
247
|
[`column-${e.id}`]: !0
|
|
248
248
|
}),
|
|
249
249
|
style: S(e.isSticky ? t(H)[e.id] : null),
|
|
250
|
-
onClick: (n) => e.isSortable ? t(Z)(e) : null
|
|
250
|
+
onClick: (n) => e.isSortable ? t(Z)(e) : null,
|
|
251
|
+
onMouseOver: () => h("columnHover", e)
|
|
251
252
|
}, [
|
|
252
|
-
|
|
253
|
-
r(
|
|
253
|
+
v("div", De, [
|
|
254
|
+
r(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
254
255
|
k(t(Re), {
|
|
255
256
|
text: e.helpText,
|
|
256
257
|
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
@@ -258,14 +259,14 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
258
259
|
"test-id": `help-tooltip-underlined-${e.id}`
|
|
259
260
|
}, {
|
|
260
261
|
default: g(() => [
|
|
261
|
-
k(t(
|
|
262
|
+
k(t(L), {
|
|
262
263
|
variant: "tableLabel",
|
|
263
|
-
class:
|
|
264
|
+
class: f({
|
|
264
265
|
underlined: e.helpText && l.helpTooltipVariant === "underline"
|
|
265
266
|
})
|
|
266
267
|
}, {
|
|
267
268
|
default: g(() => [
|
|
268
|
-
|
|
269
|
+
M(N(e.title), 1)
|
|
269
270
|
]),
|
|
270
271
|
_: 2
|
|
271
272
|
}, 1032, ["class"])
|
|
@@ -279,34 +280,34 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
279
280
|
"hover-help-text-placement": e.helpTextPlacement,
|
|
280
281
|
"test-id": `help-tooltip-${e.id}`
|
|
281
282
|
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
282
|
-
r(
|
|
283
|
+
r(s.$slots, `after-header-${e.id}`, { column: e }),
|
|
283
284
|
e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
|
|
284
285
|
key: 1,
|
|
285
286
|
"sort-order": l.sort.sortOrder
|
|
286
287
|
}, null, 8, ["sort-order"])) : c("", !0)
|
|
287
288
|
])
|
|
288
|
-
],
|
|
289
|
+
], 46, Oe))), 128))
|
|
289
290
|
], 4),
|
|
290
|
-
l.showTotalsRow && t(
|
|
291
|
-
t(
|
|
291
|
+
l.showTotalsRow && t(p).length > 0 ? (i(), d("tr", Fe, [
|
|
292
|
+
t(O) ? (i(), d("td", P({
|
|
292
293
|
key: 0,
|
|
293
294
|
class: "bg"
|
|
294
|
-
}, t(
|
|
295
|
-
(i(!0), d(C, null, R(l.columns, (e,
|
|
295
|
+
}, t(F)), null, 16)) : c("", !0),
|
|
296
|
+
(i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("td", {
|
|
296
297
|
key: e.id,
|
|
297
|
-
class:
|
|
298
|
-
...t(Y)[
|
|
298
|
+
class: f({
|
|
299
|
+
...t(Y)[y],
|
|
299
300
|
[`total-${e.id}`]: !0
|
|
300
301
|
}),
|
|
301
302
|
style: S(e.isSticky ? t(H)[e.id] : null)
|
|
302
303
|
}, [
|
|
303
|
-
r(
|
|
304
|
-
|
|
304
|
+
r(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
305
|
+
y === 0 ? (i(), I(t(L), {
|
|
305
306
|
key: 0,
|
|
306
307
|
variant: "h6"
|
|
307
308
|
}, {
|
|
308
309
|
default: g(() => [
|
|
309
|
-
|
|
310
|
+
M("Totals")
|
|
310
311
|
]),
|
|
311
312
|
_: 1
|
|
312
313
|
})) : c("", !0)
|
|
@@ -314,34 +315,34 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
314
315
|
], 6))), 128))
|
|
315
316
|
])) : c("", !0)
|
|
316
317
|
], 2),
|
|
317
|
-
|
|
318
|
-
t(
|
|
318
|
+
v("tbody", null, [
|
|
319
|
+
t(p).length > 0 ? (i(), d("div", P({
|
|
319
320
|
key: 0,
|
|
320
321
|
class: "table-body-wrapper",
|
|
321
322
|
"data-testid": `${l.testId}-${t($).BODY_WRAPPER}`
|
|
322
323
|
}, t(J)), [
|
|
323
|
-
(i(!0), d(C, null, R(t(
|
|
324
|
+
(i(!0), d(C, null, R(t(p), (e) => (i(), d("tr", {
|
|
324
325
|
key: l.getRowKey(e.data, e.index),
|
|
325
|
-
class:
|
|
326
|
+
class: f(["table-row", {
|
|
326
327
|
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
327
328
|
active: t(T) === e.index,
|
|
328
|
-
activeMenu: t(
|
|
329
|
-
expanded: t(w) && t(
|
|
329
|
+
activeMenu: t(se) === e.index,
|
|
330
|
+
expanded: t(w) && t(V)(e.index),
|
|
330
331
|
[q(e.index)]: !0
|
|
331
332
|
}]),
|
|
332
333
|
style: S(t(A)[e.index]),
|
|
333
|
-
onMouseenter: (
|
|
334
|
-
onClick: (
|
|
334
|
+
onMouseenter: (y) => T.value = e.index,
|
|
335
|
+
onClick: (y) => h("clickRow", e.index)
|
|
335
336
|
}, [
|
|
336
|
-
t(
|
|
337
|
+
t(O) ? (i(), d("td", P({
|
|
337
338
|
key: 0,
|
|
338
339
|
class: "checkbox-cell"
|
|
339
|
-
}, t(
|
|
340
|
+
}, t(F), {
|
|
340
341
|
style: t(A)[e.index]
|
|
341
342
|
}), [
|
|
342
343
|
k(t(Q), {
|
|
343
344
|
"is-checked": E(l.getRowId(e.data, e.index)),
|
|
344
|
-
"onUpdate:isChecked": (
|
|
345
|
+
"onUpdate:isChecked": (y) => de(l.getRowId(e.data, e.index))
|
|
345
346
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
346
347
|
], 16)) : c("", !0),
|
|
347
348
|
t(w) ? (i(), d("td", {
|
|
@@ -350,13 +351,13 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
350
351
|
style: S(t(A)[e.index])
|
|
351
352
|
}, [
|
|
352
353
|
k(Ee, {
|
|
353
|
-
expanded: t(
|
|
354
|
-
onClick: (
|
|
354
|
+
expanded: t(V)(e.index),
|
|
355
|
+
onClick: (y) => t(te)(e.index, y)
|
|
355
356
|
}, null, 8, ["expanded", "onClick"])
|
|
356
357
|
], 4)) : c("", !0),
|
|
357
|
-
(i(!0), d(C, null, R(l.columns, (
|
|
358
|
+
(i(!0), d(C, null, R(l.columns, (y, n) => (i(), d("td", {
|
|
358
359
|
key: n,
|
|
359
|
-
class:
|
|
360
|
+
class: f({
|
|
360
361
|
sticky: l.columns[n].isSticky,
|
|
361
362
|
isStickyRight: l.columns[n].isStickyRight,
|
|
362
363
|
bordered: l.columns[n].isBordered,
|
|
@@ -370,46 +371,46 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
370
371
|
}, [
|
|
371
372
|
!l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
|
|
372
373
|
key: 0,
|
|
373
|
-
class:
|
|
374
|
+
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
374
375
|
}, [
|
|
375
|
-
r(
|
|
376
|
+
r(s.$slots, `cell-${l.columns[n].id}`, {
|
|
376
377
|
cell: e.data[n],
|
|
377
378
|
isLoading: t(U).includes(e.index),
|
|
378
379
|
cellIndex: n,
|
|
379
380
|
row: e,
|
|
380
381
|
rowIndex: e.index
|
|
381
382
|
}, () => [
|
|
382
|
-
k(t(
|
|
383
|
+
k(t(L), { variant: "body1" }, {
|
|
383
384
|
default: g(() => [
|
|
384
|
-
|
|
385
|
+
M(N(e.data[n]), 1)
|
|
385
386
|
]),
|
|
386
387
|
_: 2
|
|
387
388
|
}, 1024)
|
|
388
389
|
])
|
|
389
|
-
], 2)) : r(
|
|
390
|
+
], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
|
|
390
391
|
k(t(xe), { round: "" })
|
|
391
392
|
])
|
|
392
393
|
], 6))), 128)),
|
|
393
|
-
t(w) && t(
|
|
394
|
-
r(
|
|
394
|
+
t(w) && t(V)(e.index) ? (i(), d("div", Ge, [
|
|
395
|
+
r(s.$slots, "expanded", {
|
|
395
396
|
row: e,
|
|
396
397
|
gridColumnTemplate: t(G)
|
|
397
398
|
})
|
|
398
399
|
])) : c("", !0),
|
|
399
400
|
re(e.index) ? (i(), d("div", Ke, [
|
|
400
|
-
r(
|
|
401
|
+
r(s.$slots, "floating-row", {
|
|
401
402
|
row: e,
|
|
402
403
|
rowIndex: e.index
|
|
403
404
|
})
|
|
404
405
|
])) : c("", !0)
|
|
405
406
|
], 46, ze))), 128))
|
|
406
|
-
], 16,
|
|
407
|
+
], 16, Ne)) : (i(), d("div", {
|
|
407
408
|
key: 1,
|
|
408
409
|
style: S(
|
|
409
410
|
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
|
410
411
|
)
|
|
411
412
|
}, [
|
|
412
|
-
r(
|
|
413
|
+
r(s.$slots, "empty-state", {}, () => [
|
|
413
414
|
k(t(Ce), {
|
|
414
415
|
class: "empty-state",
|
|
415
416
|
title: l.emptyStateTitle,
|
|
@@ -421,11 +422,11 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
421
422
|
])
|
|
422
423
|
], 4))
|
|
423
424
|
])
|
|
424
|
-
], 46,
|
|
425
|
+
], 46, Pe),
|
|
425
426
|
t(W) ? (i(), d("div", Ue, [
|
|
426
|
-
r(
|
|
427
|
+
r(s.$slots, "footer")
|
|
427
428
|
])) : c("", !0)
|
|
428
|
-
], 40,
|
|
429
|
+
], 40, Me));
|
|
429
430
|
}
|
|
430
431
|
});
|
|
431
432
|
export {
|
|
@@ -567,6 +567,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
567
567
|
onOnClearSearch?: () => any;
|
|
568
568
|
onClickRow?: (rowIndex: number) => any;
|
|
569
569
|
onSelectRow?: (value: boolean) => any;
|
|
570
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
570
571
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
|
|
571
572
|
$attrs: {
|
|
572
573
|
[x: string]: unknown;
|
|
@@ -579,7 +580,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
579
580
|
}>;
|
|
580
581
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
581
582
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
582
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void);
|
|
583
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "columnHover", column: import("../common/Table.types").Column) => void);
|
|
583
584
|
$el: any;
|
|
584
585
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
585
586
|
sort: {
|
|
@@ -724,6 +725,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
724
725
|
onOnClearSearch?: () => any;
|
|
725
726
|
onClickRow?: (rowIndex: number) => any;
|
|
726
727
|
onSelectRow?: (value: boolean) => any;
|
|
728
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
727
729
|
}, {
|
|
728
730
|
scrollTo: (index: number) => void;
|
|
729
731
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -737,6 +739,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
737
739
|
selectAll: (value: boolean) => void;
|
|
738
740
|
selectRow: (value: boolean) => void;
|
|
739
741
|
clickRow: (rowIndex: number) => void;
|
|
742
|
+
columnHover: (column: import("../common/Table.types").Column) => void;
|
|
740
743
|
}, string, {
|
|
741
744
|
sort: import("../common/Table.types").Sort;
|
|
742
745
|
title: string;
|
|
@@ -931,6 +934,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
931
934
|
onOnClearSearch?: () => any;
|
|
932
935
|
onClickRow?: (rowIndex: number) => any;
|
|
933
936
|
onSelectRow?: (value: boolean) => any;
|
|
937
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
934
938
|
} & import("vue").ShallowUnwrapRef<{
|
|
935
939
|
scrollTo: (index: number) => void;
|
|
936
940
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -1080,6 +1084,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1080
1084
|
onOnClearSearch?: () => any;
|
|
1081
1085
|
onClickRow?: (rowIndex: number) => any;
|
|
1082
1086
|
onSelectRow?: (value: boolean) => any;
|
|
1087
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
1083
1088
|
}, {
|
|
1084
1089
|
scrollTo: (index: number) => void;
|
|
1085
1090
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1093,6 +1098,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1093
1098
|
selectAll: (value: boolean) => void;
|
|
1094
1099
|
selectRow: (value: boolean) => void;
|
|
1095
1100
|
clickRow: (rowIndex: number) => void;
|
|
1101
|
+
columnHover: (column: import("../common/Table.types").Column) => void;
|
|
1096
1102
|
}, string, {
|
|
1097
1103
|
sort: import("../common/Table.types").Sort;
|
|
1098
1104
|
title: string;
|
package/index.d.ts
CHANGED
|
@@ -6147,6 +6147,7 @@ declare const _default: {
|
|
|
6147
6147
|
onOnClearSearch?: () => any;
|
|
6148
6148
|
onClickRow?: (rowIndex: number) => any;
|
|
6149
6149
|
onSelectRow?: (value: boolean) => any;
|
|
6150
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
6150
6151
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
|
|
6151
6152
|
$attrs: {
|
|
6152
6153
|
[x: string]: unknown;
|
|
@@ -6159,7 +6160,7 @@ declare const _default: {
|
|
|
6159
6160
|
}>;
|
|
6160
6161
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
6161
6162
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
6162
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: tableV3.Sort) => void) & ((event: "saveRow", args_0: import("./components/table/common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void);
|
|
6163
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: tableV3.Sort) => void) & ((event: "saveRow", args_0: import("./components/table/common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "columnHover", column: tableV3.Column) => void);
|
|
6163
6164
|
$el: any;
|
|
6164
6165
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
6165
6166
|
sort: {
|
|
@@ -6304,6 +6305,7 @@ declare const _default: {
|
|
|
6304
6305
|
onOnClearSearch?: () => any;
|
|
6305
6306
|
onClickRow?: (rowIndex: number) => any;
|
|
6306
6307
|
onSelectRow?: (value: boolean) => any;
|
|
6308
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
6307
6309
|
}, {
|
|
6308
6310
|
scrollTo: (index: number) => void;
|
|
6309
6311
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -6317,6 +6319,7 @@ declare const _default: {
|
|
|
6317
6319
|
selectAll: (value: boolean) => void;
|
|
6318
6320
|
selectRow: (value: boolean) => void;
|
|
6319
6321
|
clickRow: (rowIndex: number) => void;
|
|
6322
|
+
columnHover: (column: tableV3.Column) => void;
|
|
6320
6323
|
}, string, {
|
|
6321
6324
|
sort: tableV3.Sort;
|
|
6322
6325
|
title: string;
|
|
@@ -6511,6 +6514,7 @@ declare const _default: {
|
|
|
6511
6514
|
onOnClearSearch?: () => any;
|
|
6512
6515
|
onClickRow?: (rowIndex: number) => any;
|
|
6513
6516
|
onSelectRow?: (value: boolean) => any;
|
|
6517
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
6514
6518
|
} & import("vue").ShallowUnwrapRef<{
|
|
6515
6519
|
scrollTo: (index: number) => void;
|
|
6516
6520
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -6660,6 +6664,7 @@ declare const _default: {
|
|
|
6660
6664
|
onOnClearSearch?: () => any;
|
|
6661
6665
|
onClickRow?: (rowIndex: number) => any;
|
|
6662
6666
|
onSelectRow?: (value: boolean) => any;
|
|
6667
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
6663
6668
|
}, {
|
|
6664
6669
|
scrollTo: (index: number) => void;
|
|
6665
6670
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -6673,6 +6678,7 @@ declare const _default: {
|
|
|
6673
6678
|
selectAll: (value: boolean) => void;
|
|
6674
6679
|
selectRow: (value: boolean) => void;
|
|
6675
6680
|
clickRow: (rowIndex: number) => void;
|
|
6681
|
+
columnHover: (column: tableV3.Column) => void;
|
|
6676
6682
|
}, string, {
|
|
6677
6683
|
sort: tableV3.Sort;
|
|
6678
6684
|
title: string;
|
|
@@ -7394,6 +7400,7 @@ declare const _default: {
|
|
|
7394
7400
|
onOnClearSearch?: () => any;
|
|
7395
7401
|
onClickRow?: (rowIndex: number) => any;
|
|
7396
7402
|
onSelectRow?: (value: boolean) => any;
|
|
7403
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
7397
7404
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
|
|
7398
7405
|
$attrs: {
|
|
7399
7406
|
[x: string]: unknown;
|
|
@@ -7406,7 +7413,7 @@ declare const _default: {
|
|
|
7406
7413
|
}>;
|
|
7407
7414
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
7408
7415
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
7409
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: tableV3.Sort) => void) & ((event: "saveRow", args_0: import("./components/table/common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void);
|
|
7416
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: tableV3.Sort) => void) & ((event: "saveRow", args_0: import("./components/table/common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "columnHover", column: tableV3.Column) => void);
|
|
7410
7417
|
$el: any;
|
|
7411
7418
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
7412
7419
|
sort: {
|
|
@@ -7551,6 +7558,7 @@ declare const _default: {
|
|
|
7551
7558
|
onOnClearSearch?: () => any;
|
|
7552
7559
|
onClickRow?: (rowIndex: number) => any;
|
|
7553
7560
|
onSelectRow?: (value: boolean) => any;
|
|
7561
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
7554
7562
|
}, {
|
|
7555
7563
|
scrollTo: (index: number) => void;
|
|
7556
7564
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -7564,6 +7572,7 @@ declare const _default: {
|
|
|
7564
7572
|
selectAll: (value: boolean) => void;
|
|
7565
7573
|
selectRow: (value: boolean) => void;
|
|
7566
7574
|
clickRow: (rowIndex: number) => void;
|
|
7575
|
+
columnHover: (column: tableV3.Column) => void;
|
|
7567
7576
|
}, string, {
|
|
7568
7577
|
sort: tableV3.Sort;
|
|
7569
7578
|
title: string;
|
|
@@ -7758,6 +7767,7 @@ declare const _default: {
|
|
|
7758
7767
|
onOnClearSearch?: () => any;
|
|
7759
7768
|
onClickRow?: (rowIndex: number) => any;
|
|
7760
7769
|
onSelectRow?: (value: boolean) => any;
|
|
7770
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
7761
7771
|
} & import("vue").ShallowUnwrapRef<{
|
|
7762
7772
|
scrollTo: (index: number) => void;
|
|
7763
7773
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -7907,6 +7917,7 @@ declare const _default: {
|
|
|
7907
7917
|
onOnClearSearch?: () => any;
|
|
7908
7918
|
onClickRow?: (rowIndex: number) => any;
|
|
7909
7919
|
onSelectRow?: (value: boolean) => any;
|
|
7920
|
+
onColumnHover?: (column: tableV3.Column) => any;
|
|
7910
7921
|
}, {
|
|
7911
7922
|
scrollTo: (index: number) => void;
|
|
7912
7923
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -7920,6 +7931,7 @@ declare const _default: {
|
|
|
7920
7931
|
selectAll: (value: boolean) => void;
|
|
7921
7932
|
selectRow: (value: boolean) => void;
|
|
7922
7933
|
clickRow: (rowIndex: number) => void;
|
|
7934
|
+
columnHover: (column: tableV3.Column) => void;
|
|
7923
7935
|
}, string, {
|
|
7924
7936
|
sort: tableV3.Sort;
|
|
7925
7937
|
title: string;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_198d2d73_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-46851fcb]{position:sticky}.table-container[data-v-46851fcb]{width:100%;position:relative;display:flex;flex-direction:column}.table-head-container[data-v-46851fcb]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-46851fcb]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-46851fcb]{display:inline-table}.table-row[data-v-46851fcb]{position:relative}.table-row.loading[data-v-46851fcb]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-46851fcb]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-46851fcb]{border-bottom:none}.expanded-row[data-v-46851fcb]{grid-column:var(--5caaa606);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-46851fcb]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-46851fcb]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-46851fcb],table th[data-v-46851fcb]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-46851fcb]:first-of-type,table th[data-v-46851fcb]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-46851fcb]:last-of-type,table th[data-v-46851fcb]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-46851fcb],table th.expand-toggle-cell[data-v-46851fcb]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-46851fcb]{border-bottom:none;z-index:calc(var(--55ef8912) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-46851fcb]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);display:grid;grid-template-columns:var(--b7356102)}table>thead>tr>th[data-v-46851fcb]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-46851fcb]{cursor:pointer}table>thead>tr>td[data-v-46851fcb]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-46851fcb],table>thead>tr>td.bordered[data-v-46851fcb]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-46851fcb],table>thead>tr>td.bordered.isStickyRight[data-v-46851fcb]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-46851fcb],table>thead>tr>td.isTextRight[data-v-46851fcb]{justify-content:flex-end}table>thead.sticky[data-v-46851fcb]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-46851fcb]{z-index:calc(var(--55ef8912) + 2);top:var(--7d96c2a6)}table .totals-row[data-v-46851fcb]{height:40px}table .totals-row[data-v-46851fcb]:hover{background:var(--background-paper-elevation-1)}table .totals-row>td.sticky[data-v-46851fcb]{background-color:var(--background-default)}table>tbody[data-v-46851fcb]{display:block}table>tbody>*>tr[data-v-46851fcb]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--b7356102)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-46851fcb]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-46851fcb],table>tbody>*>tr.activeMenu>td[data-v-46851fcb]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-46851fcb]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-46851fcb]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-46851fcb]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-46851fcb]{justify-content:flex-end;text-align:right}.underlined[data-v-46851fcb]{border-bottom:.0625rem dashed var(--default-outlined-border)}.underlined[data-v-46851fcb]:hover{cursor:pointer}.section-container[data-v-46851fcb]{left:0}.sections[data-v-46851fcb]{display:flex}.section[data-v-46851fcb]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-46851fcb]{width:100%}.empty-state[data-v-46851fcb]{min-height:250px}.floating-row[data-v-46851fcb]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--55ef8912) + 1)}.floating-row *[data-v-46851fcb-s]{pointer-events:auto}.bg[data-v-46851fcb]{background:var(--background-default)}.useAvailableHeight[data-v-46851fcb]{height:100%}.disabled-scrolling[data-v-46851fcb]{overflow:hidden}
|