@ironsource/shared-ui 2.1.3-rc.0 → 2.1.3-rc.2
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/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +1 -0
- package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +42 -35
- package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
- package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
- package/components/dropdown/common/Dropdown.common.js +93 -92
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
- package/components/emptyState/v4/index.d.ts +58 -1
- package/components/forms/CardPanel.vue.d.ts +20 -0
- package/components/forms/CardPanel.vue.js +2 -2
- package/components/forms/CardPanel.vue2.js +26 -14
- package/components/forms/FormRow.vue.js +4 -4
- package/components/forms/FormRow.vue2.js +1 -1
- package/components/forms/index.d.ts +77 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +22 -21
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/shared/FieldLabel.vue.d.ts +5 -0
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +63 -46
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +64 -60
- package/components/table/common/TableContext.d.ts +1 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +71 -69
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
- package/components/table/v4/DataGridMenu.vue.js +4 -4
- package/components/table/v4/DataGridMenu.vue2.js +46 -47
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
- package/components/table/v4/index.d.ts +32 -5
- package/components/table-cells/common/Editable.common.js +15 -15
- package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +31 -22
- package/components/table-cells/v4/index.d.ts +43 -1
- package/index.d.ts +284 -14
- package/package.json +1 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css +0 -1
- package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
|
@@ -1,114 +1,118 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { useVirtualList as
|
|
3
|
-
import { TableContext as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
onClose({ rowIndex: t, cellIndex:
|
|
8
|
-
n && (
|
|
1
|
+
import { useSlots as G, ref as c, provide as K, computed as l, onMounted as N, nextTick as V } from "vue";
|
|
2
|
+
import { useVirtualList as j, useInfiniteScroll as q } from "@vueuse/core";
|
|
3
|
+
import { TableContext as F } from "./TableContext.js";
|
|
4
|
+
const J = 46, Q = 46, p = (e, a) => {
|
|
5
|
+
const m = G(), u = c([]);
|
|
6
|
+
K(F, {
|
|
7
|
+
onClose({ rowIndex: t, cellIndex: o, value: n } = {}) {
|
|
8
|
+
n && (u.value = [...u.value, t], a("saveRow", {
|
|
9
9
|
rowIndex: t,
|
|
10
|
-
cellIndex:
|
|
10
|
+
cellIndex: o,
|
|
11
11
|
value: n,
|
|
12
12
|
confirm: () => {
|
|
13
|
-
|
|
13
|
+
u.value = u.value.filter(
|
|
14
14
|
(i) => i !== t
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
}));
|
|
18
|
+
},
|
|
19
|
+
setActiveMenuRow(t) {
|
|
20
|
+
C.value = t;
|
|
18
21
|
}
|
|
19
22
|
});
|
|
20
|
-
const x =
|
|
21
|
-
const t = (x.value ? `${
|
|
22
|
-
return
|
|
23
|
+
const x = l(() => !!e.selection), T = l(() => {
|
|
24
|
+
const t = (x.value ? `${Q}px ` : "") + (g.value ? `${J}px ` : "");
|
|
25
|
+
return e.columns.reduce((o, n) => {
|
|
23
26
|
const i = n.width ? `${n.width}px` : `${n.colSpan || 1}fr`;
|
|
24
|
-
return `${
|
|
27
|
+
return `${o} ${i}`;
|
|
25
28
|
}, t);
|
|
26
|
-
}), g =
|
|
27
|
-
Array(
|
|
28
|
-
)),
|
|
29
|
-
itemHeight: g.value ? (t) => w[t] ??
|
|
30
|
-
}),
|
|
31
|
-
|
|
29
|
+
}), g = l(() => !!m.expanded), y = c(null), C = c(null), H = l(() => Array(e.loadingRowCount).fill(
|
|
30
|
+
Array(e.columns.length).fill("")
|
|
31
|
+
)), $ = l(() => e.isLoading ? [...e.rows, ...H.value] : e.rows), { list: R, containerProps: s, wrapperProps: b } = j($, {
|
|
32
|
+
itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
|
|
33
|
+
}), k = c(null), h = c(0), B = l(() => !!m.search), I = (t) => {
|
|
34
|
+
s.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, a("onScroll", t.target.scrollTop);
|
|
32
35
|
};
|
|
33
|
-
|
|
34
|
-
h.value =
|
|
35
|
-
|
|
36
|
-
top:
|
|
36
|
+
N(() => {
|
|
37
|
+
h.value = s.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
|
|
38
|
+
s.ref.value?.scrollTo({
|
|
39
|
+
top: e.defaultScrollPosition,
|
|
37
40
|
behavior: "smooth"
|
|
38
41
|
});
|
|
39
42
|
}, 300);
|
|
40
43
|
});
|
|
41
|
-
const
|
|
42
|
-
const [t] =
|
|
44
|
+
const O = l(() => {
|
|
45
|
+
const [t] = R.value;
|
|
43
46
|
return t && t.index > 0;
|
|
44
|
-
}),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
}), P = l(() => s.style), A = l(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = M(o)), t), {}));
|
|
48
|
+
q(
|
|
49
|
+
s.ref,
|
|
47
50
|
() => {
|
|
48
|
-
|
|
51
|
+
e.isInfiniteScroll && a("loadMore");
|
|
49
52
|
},
|
|
50
|
-
{ distance:
|
|
53
|
+
{ distance: e.infiniteScrollThreshold }
|
|
51
54
|
);
|
|
52
55
|
function E() {
|
|
53
|
-
|
|
56
|
+
s.ref.value?.scrollTo({
|
|
54
57
|
top: 0,
|
|
55
58
|
behavior: "smooth"
|
|
56
59
|
});
|
|
57
60
|
}
|
|
58
61
|
function L(t) {
|
|
59
|
-
if (!
|
|
62
|
+
if (!e.sort)
|
|
60
63
|
return;
|
|
61
|
-
const
|
|
64
|
+
const o = e.sort.sortBy === t.id;
|
|
62
65
|
if (!(t.isSortable || t.isSortable === void 0))
|
|
63
66
|
return;
|
|
64
|
-
let i =
|
|
65
|
-
|
|
67
|
+
let i = e.sort.sortOrder, f = e.sort.sortBy;
|
|
68
|
+
o ? i = e.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, a("update:sort", { sortBy: f, sortOrder: i });
|
|
66
69
|
}
|
|
67
|
-
function
|
|
68
|
-
const { isSticky:
|
|
69
|
-
if (!
|
|
70
|
+
function M(t) {
|
|
71
|
+
const { isSticky: o, width: n } = t;
|
|
72
|
+
if (!o || !n)
|
|
70
73
|
return null;
|
|
71
|
-
const i =
|
|
74
|
+
const i = e.columns.findIndex((r) => r.id === t.id), f = e.columns.reduce((r, v, S) => S < i ? r + v.width : r, 0), z = e.columns.reduce((r, v, S) => S > i ? r + v.width : r, 0);
|
|
72
75
|
return {
|
|
73
|
-
...t.isStickyRight ? { right: `${
|
|
76
|
+
...t.isStickyRight ? { right: `${z}px` } : { left: `${f}px` },
|
|
74
77
|
zIndex: 1
|
|
75
78
|
};
|
|
76
79
|
}
|
|
77
|
-
const d =
|
|
80
|
+
const d = c([]), w = {}, _ = (t) => d.value.includes(t), D = async (t, o) => {
|
|
78
81
|
const n = d.value.indexOf(t);
|
|
79
82
|
if (n === -1) {
|
|
80
83
|
d.value.push(t);
|
|
81
|
-
const i =
|
|
82
|
-
await
|
|
84
|
+
const i = o.target.closest("tr");
|
|
85
|
+
await V(), i && (w[t] = i.offsetHeight);
|
|
83
86
|
} else
|
|
84
87
|
d.value.splice(n, 1), delete w[t];
|
|
85
|
-
},
|
|
86
|
-
() => `1 / span ${
|
|
88
|
+
}, W = l(() => `${e.rowHeight}px`), X = l(
|
|
89
|
+
() => `1 / span ${e.columns.length + 1}`
|
|
87
90
|
);
|
|
88
91
|
return {
|
|
89
|
-
list:
|
|
90
|
-
containerProps:
|
|
91
|
-
wrapperProps:
|
|
92
|
-
activeRow:
|
|
92
|
+
list: R,
|
|
93
|
+
containerProps: s,
|
|
94
|
+
wrapperProps: b,
|
|
95
|
+
activeRow: y,
|
|
93
96
|
gridColumnTemplate: T,
|
|
94
|
-
floatingActionRef:
|
|
97
|
+
floatingActionRef: k,
|
|
95
98
|
scrollToTop: E,
|
|
96
99
|
toggleSortOrder: L,
|
|
97
|
-
columnsStickyPositions:
|
|
98
|
-
hasSearchSlot:
|
|
99
|
-
showBackToTopButton:
|
|
100
|
-
containerStyle:
|
|
101
|
-
onScroll:
|
|
102
|
-
savingRows:
|
|
100
|
+
columnsStickyPositions: A,
|
|
101
|
+
hasSearchSlot: B,
|
|
102
|
+
showBackToTopButton: O,
|
|
103
|
+
containerStyle: P,
|
|
104
|
+
onScroll: I,
|
|
105
|
+
savingRows: u,
|
|
103
106
|
floatingActionPosition: h,
|
|
104
107
|
hasExpandSlot: g,
|
|
105
108
|
hasCheckboxes: x,
|
|
106
109
|
toggleExpandRow: D,
|
|
107
110
|
isRowExpanded: _,
|
|
108
|
-
cssRowHeight:
|
|
109
|
-
cssExpandGridCol:
|
|
111
|
+
cssRowHeight: W,
|
|
112
|
+
cssExpandGridCol: X,
|
|
113
|
+
activeMenuRow: C
|
|
110
114
|
};
|
|
111
115
|
};
|
|
112
116
|
export {
|
|
113
|
-
|
|
117
|
+
p as tableCommon
|
|
114
118
|
};
|
|
@@ -6,6 +6,7 @@ export interface TableContextProps {
|
|
|
6
6
|
value?: unknown;
|
|
7
7
|
error?: string | boolean;
|
|
8
8
|
}): void;
|
|
9
|
+
setActiveMenuRow?(rowIndex: number | null): void;
|
|
9
10
|
}
|
|
10
11
|
export declare const TableContext: InjectionKey<TableContextProps>;
|
|
11
12
|
export declare function useTableContext(component: string): TableContextProps;
|
|
@@ -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 e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4baf9e57"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css"; import { defineComponent as te, useCssVars as se, unref as e, useSlots as ae, computed as g, openBlock as i, createElementBlock as l, createElementVNode as r, normalizeStyle as T, normalizeClass as y, renderSlot as c, createVNode as u, withCtx as C, createTextVNode as x, toDisplayString as E, isRef as ie, createCommentVNode as h, Fragment as B, renderList as I, createBlock as le, mergeProps as de } from "vue";
|
|
2
2
|
import w from "../../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import oe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
+
import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import D from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as f } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useVModel as
|
|
12
|
-
const
|
|
7
|
+
import { tableCommon as ce } from "../common/Table.common.js";
|
|
8
|
+
import re from "./SortIcon.vue.js";
|
|
9
|
+
import ue from "./ExpandRowToggle.vue.js";
|
|
10
|
+
import he from "../../search/v4/SearchV4.vue.js";
|
|
11
|
+
import { useVModel as ye } from "@vueuse/core";
|
|
12
|
+
const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], be = { class: "search-wrapper" }, ve = ["data-testid"], $e = ["data-testid"], Re = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "checkbox-cell"
|
|
15
|
-
},
|
|
15
|
+
}, Te = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "expand-toggle-cell"
|
|
18
|
-
},
|
|
18
|
+
}, Ce = ["onClick"], xe = { class: "table-head-container" }, Ee = ["data-testid"], Be = ["onMouseenter"], Ie = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "checkbox-cell"
|
|
21
|
-
},
|
|
21
|
+
}, we = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "expand-toggle-cell"
|
|
24
|
-
},
|
|
24
|
+
}, Ve = {
|
|
25
25
|
key: 2,
|
|
26
26
|
class: "expanded-row"
|
|
27
|
-
},
|
|
27
|
+
}, Le = { key: 1 }, Me = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "table-footer"
|
|
30
|
-
},
|
|
30
|
+
}, Ye = /* @__PURE__ */ te({
|
|
31
31
|
__name: "DataGrid",
|
|
32
32
|
props: {
|
|
33
33
|
title: { default: "" },
|
|
@@ -59,37 +59,38 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
59
59
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
|
|
60
60
|
setup(s, { emit: S }) {
|
|
61
61
|
const o = s;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
62
|
+
se((a) => ({
|
|
63
|
+
42931960: s.zIndexBase,
|
|
64
|
+
baef7858: e(q),
|
|
65
|
+
"2d5a9c66": e(A),
|
|
66
|
+
"3890bdd6": e(j)
|
|
67
67
|
}));
|
|
68
|
-
const b =
|
|
69
|
-
list:
|
|
68
|
+
const b = ae(), {
|
|
69
|
+
list: P,
|
|
70
70
|
containerProps: U,
|
|
71
71
|
wrapperProps: G,
|
|
72
72
|
activeRow: V,
|
|
73
|
-
gridColumnTemplate:
|
|
73
|
+
gridColumnTemplate: A,
|
|
74
74
|
toggleSortOrder: p,
|
|
75
|
-
columnsStickyPositions:
|
|
75
|
+
columnsStickyPositions: H,
|
|
76
76
|
hasSearchSlot: Y,
|
|
77
77
|
containerStyle: Q,
|
|
78
|
-
onScroll:
|
|
78
|
+
onScroll: N,
|
|
79
79
|
savingRows: F,
|
|
80
80
|
hasExpandSlot: v,
|
|
81
81
|
toggleExpandRow: W,
|
|
82
82
|
cssRowHeight: j,
|
|
83
83
|
cssExpandGridCol: q,
|
|
84
84
|
isRowExpanded: L,
|
|
85
|
-
hasCheckboxes: O
|
|
86
|
-
|
|
85
|
+
hasCheckboxes: O,
|
|
86
|
+
activeMenuRow: J
|
|
87
|
+
} = ce(o, S), z = g(() => !!b.footer), k = ye(o, "search", S), K = g(() => o.selection.length || 0), M = g(() => {
|
|
87
88
|
const a = o.rows.map((d, t) => o.getRowId(d, t));
|
|
88
89
|
return a.length && a.every((d) => $(d));
|
|
89
|
-
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1,
|
|
90
|
+
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, X = (a) => {
|
|
90
91
|
$(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
|
|
91
|
-
},
|
|
92
|
-
if (
|
|
92
|
+
}, Z = () => {
|
|
93
|
+
if (M.value)
|
|
93
94
|
R([]);
|
|
94
95
|
else {
|
|
95
96
|
const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
|
|
@@ -97,9 +98,9 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
97
98
|
}
|
|
98
99
|
}, R = (a) => {
|
|
99
100
|
S("update:selection", a);
|
|
100
|
-
},
|
|
101
|
+
}, _ = g(
|
|
101
102
|
() => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
|
|
102
|
-
),
|
|
103
|
+
), ee = g(
|
|
103
104
|
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
|
|
104
105
|
);
|
|
105
106
|
return (a, d) => (i(), l("div", {
|
|
@@ -115,7 +116,7 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
115
116
|
}),
|
|
116
117
|
"data-testid": `${s.testId}-${e(f).TABLE}`,
|
|
117
118
|
onScrollPassive: d[1] || (d[1] = //@ts-ignore
|
|
118
|
-
(...t) => e(
|
|
119
|
+
(...t) => e(N) && e(N)(...t))
|
|
119
120
|
}, [
|
|
120
121
|
s.title || e(b).title || e(Y) || e(b)["table-header-actions"] ? (i(), l("div", {
|
|
121
122
|
key: 0,
|
|
@@ -134,31 +135,31 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
134
135
|
_: 1
|
|
135
136
|
})
|
|
136
137
|
], !0)
|
|
137
|
-
], 8,
|
|
138
|
+
], 8, me),
|
|
138
139
|
r("div", {
|
|
139
140
|
class: "table-header-right",
|
|
140
141
|
"data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
|
|
141
142
|
}, [
|
|
142
143
|
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
143
|
-
r("div",
|
|
144
|
-
u(e(
|
|
144
|
+
r("div", be, [
|
|
145
|
+
u(e(he), {
|
|
145
146
|
modelValue: e(k),
|
|
146
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) =>
|
|
147
|
+
"onUpdate:modelValue": d[0] || (d[0] = (t) => ie(k) ? k.value = t : null),
|
|
147
148
|
placeholder: s.searchPlaceholder,
|
|
148
149
|
"auto-focus": s.searchAutoFocus,
|
|
149
150
|
"test-id": s.testId
|
|
150
151
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
151
152
|
])
|
|
152
153
|
], !0) : h("", !0)
|
|
153
|
-
], 8,
|
|
154
|
+
], 8, ge),
|
|
154
155
|
e(b)["table-header-actions"] ? (i(), l("div", {
|
|
155
156
|
key: 0,
|
|
156
157
|
class: "table-header-actions",
|
|
157
158
|
"data-testid": `${s.testId}-${e(f).ACTIONS}`
|
|
158
159
|
}, [
|
|
159
160
|
c(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
160
|
-
], 8,
|
|
161
|
-
], 10,
|
|
161
|
+
], 8, ve)) : h("", !0)
|
|
162
|
+
], 10, ke)) : h("", !0),
|
|
162
163
|
r("thead", {
|
|
163
164
|
class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
164
165
|
}, [
|
|
@@ -184,19 +185,19 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
184
185
|
], 4)
|
|
185
186
|
], !0)
|
|
186
187
|
], 2))), 128))
|
|
187
|
-
], 8,
|
|
188
|
+
], 8, $e),
|
|
188
189
|
r("tr", null, [
|
|
189
|
-
e(O) ? (i(), l("th",
|
|
190
|
+
e(O) ? (i(), l("th", Re, [
|
|
190
191
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
191
192
|
u(e(D), {
|
|
192
193
|
disabled: s.isLoading,
|
|
193
|
-
"is-checked": e(
|
|
194
|
-
"is-indeterminate": !e(
|
|
195
|
-
"onUpdate:isChecked":
|
|
194
|
+
"is-checked": e(M),
|
|
195
|
+
"is-indeterminate": !e(M) && e(K) > 0,
|
|
196
|
+
"onUpdate:isChecked": Z
|
|
196
197
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
197
198
|
], !0)
|
|
198
199
|
])) : h("", !0),
|
|
199
|
-
e(v) ? (i(), l("th",
|
|
200
|
+
e(v) ? (i(), l("th", Te)) : h("", !0),
|
|
200
201
|
(i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
|
|
201
202
|
key: t.id,
|
|
202
203
|
class: y({
|
|
@@ -207,10 +208,10 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
207
208
|
isSortable: t.isSortable,
|
|
208
209
|
[`column-${t.id}`]: !0
|
|
209
210
|
}),
|
|
210
|
-
style: T(t.isSticky ? e(
|
|
211
|
+
style: T(t.isSticky ? e(H)[t.id] : null),
|
|
211
212
|
onClick: (m) => t.isSortable ? e(p)(t) : null
|
|
212
213
|
}, [
|
|
213
|
-
r("div",
|
|
214
|
+
r("div", xe, [
|
|
214
215
|
c(a.$slots, `header-${t.id}`, { column: t }, () => [
|
|
215
216
|
u(e(w), { variant: "tableLabel" }, {
|
|
216
217
|
default: C(() => [
|
|
@@ -219,38 +220,39 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
219
220
|
_: 2
|
|
220
221
|
}, 1024)
|
|
221
222
|
], !0),
|
|
222
|
-
t.isSortable && t.id === s.sort?.sortBy ? (i(),
|
|
223
|
+
t.isSortable && t.id === s.sort?.sortBy ? (i(), le(re, {
|
|
223
224
|
key: 0,
|
|
224
225
|
"sort-order": s.sort.sortOrder
|
|
225
226
|
}, null, 8, ["sort-order"])) : h("", !0)
|
|
226
227
|
])
|
|
227
|
-
], 14,
|
|
228
|
+
], 14, Ce))), 128))
|
|
228
229
|
])
|
|
229
230
|
], 2),
|
|
230
231
|
r("tbody", null, [
|
|
231
|
-
e(
|
|
232
|
+
e(P).length > 0 ? (i(), l("div", de({
|
|
232
233
|
key: 0,
|
|
233
234
|
class: "table-body-wrapper",
|
|
234
235
|
"data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
|
|
235
236
|
}, e(G)), [
|
|
236
|
-
(i(!0), l(B, null, I(e(
|
|
237
|
+
(i(!0), l(B, null, I(e(P), (t) => (i(), l("tr", {
|
|
237
238
|
key: t.index,
|
|
238
239
|
class: y(["table-row", {
|
|
239
240
|
loading: s.isLoading || s.isLoading && !t.data || e(F).includes(t.index),
|
|
240
241
|
active: e(V) === t.index,
|
|
242
|
+
activeMenu: e(J) === t.index,
|
|
241
243
|
expanded: e(v) && e(L)(t.index)
|
|
242
244
|
}]),
|
|
243
245
|
onMouseenter: (m) => V.value = t.index
|
|
244
246
|
}, [
|
|
245
|
-
e(O) ? (i(), l("td",
|
|
247
|
+
e(O) ? (i(), l("td", Ie, [
|
|
246
248
|
u(e(D), {
|
|
247
249
|
"is-checked": $(s.getRowId(t.data, t.index)),
|
|
248
250
|
size: "sm",
|
|
249
|
-
"onUpdate:isChecked": (m) =>
|
|
251
|
+
"onUpdate:isChecked": (m) => X(s.getRowId(t.data, t.index))
|
|
250
252
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
251
253
|
])) : h("", !0),
|
|
252
|
-
e(v) ? (i(), l("td",
|
|
253
|
-
u(
|
|
254
|
+
e(v) ? (i(), l("td", we, [
|
|
255
|
+
u(ue, {
|
|
254
256
|
expanded: e(L)(t.index),
|
|
255
257
|
onClick: (m) => e(W)(t.index, m)
|
|
256
258
|
}, null, 8, ["expanded", "onClick"])
|
|
@@ -265,7 +267,7 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
265
267
|
[`column-${s.columns[n].id}`]: !0
|
|
266
268
|
}),
|
|
267
269
|
style: T(
|
|
268
|
-
s.columns[n].isSticky ? e(
|
|
270
|
+
s.columns[n].isSticky ? e(H)[s.columns[n].id] : null
|
|
269
271
|
)
|
|
270
272
|
}, [
|
|
271
273
|
!s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
|
|
@@ -287,35 +289,35 @@ const ye = ["data-testid"], fe = ["data-testid"], Se = ["data-testid"], ke = ["d
|
|
|
287
289
|
}, 1024)
|
|
288
290
|
], !0)
|
|
289
291
|
], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
|
|
290
|
-
u(e(
|
|
292
|
+
u(e(oe), { round: "" })
|
|
291
293
|
], !0)
|
|
292
294
|
], 6))), 128)),
|
|
293
|
-
e(v) && e(L)(t.index) ? (i(), l("div",
|
|
295
|
+
e(v) && e(L)(t.index) ? (i(), l("div", Ve, [
|
|
294
296
|
c(a.$slots, "expanded", {
|
|
295
297
|
row: t,
|
|
296
|
-
gridColumnTemplate: e(
|
|
298
|
+
gridColumnTemplate: e(A)
|
|
297
299
|
}, void 0, !0)
|
|
298
300
|
])) : h("", !0)
|
|
299
|
-
], 42,
|
|
300
|
-
], 16,
|
|
301
|
+
], 42, Be))), 128))
|
|
302
|
+
], 16, Ee)) : (i(), l("div", Le, [
|
|
301
303
|
c(a.$slots, "empty-state", {}, () => [
|
|
302
|
-
u(e(
|
|
304
|
+
u(e(ne), {
|
|
303
305
|
class: "empty-state",
|
|
304
306
|
title: s.emptyStateTitle,
|
|
305
|
-
subtitle: e(
|
|
306
|
-
variant: e(
|
|
307
|
+
subtitle: e(ee),
|
|
308
|
+
variant: e(_),
|
|
307
309
|
"test-id": `${s.testId}-${e(f).EMPTY_STATE}`
|
|
308
310
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
309
311
|
], !0)
|
|
310
312
|
]))
|
|
311
313
|
])
|
|
312
|
-
], 46,
|
|
313
|
-
e(z) ? (i(), l("div",
|
|
314
|
+
], 46, Se),
|
|
315
|
+
e(z) ? (i(), l("div", Me, [
|
|
314
316
|
c(a.$slots, "footer", {}, void 0, !0)
|
|
315
317
|
])) : h("", !0)
|
|
316
|
-
], 40,
|
|
318
|
+
], 40, fe));
|
|
317
319
|
}
|
|
318
320
|
});
|
|
319
321
|
export {
|
|
320
|
-
|
|
322
|
+
Ye as default
|
|
321
323
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { MenuItem } from '@is-ssp/table/common/Table.types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
menuItems: MenuItem[];
|
|
4
|
-
|
|
4
|
+
rowIndex?: number;
|
|
5
5
|
}>, {
|
|
6
6
|
menuItems: () => any[];
|
|
7
|
-
|
|
7
|
+
rowIndex: any;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
selected: (option: unknown) => void;
|
|
10
10
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
menuItems: MenuItem[];
|
|
12
|
-
|
|
12
|
+
rowIndex?: number;
|
|
13
13
|
}>, {
|
|
14
14
|
menuItems: () => any[];
|
|
15
|
-
|
|
15
|
+
rowIndex: any;
|
|
16
16
|
}>>> & {
|
|
17
17
|
onSelected?: (option: unknown) => any;
|
|
18
18
|
}, {
|
|
19
|
-
|
|
19
|
+
rowIndex: number;
|
|
20
20
|
menuItems: MenuItem[];
|
|
21
21
|
}>;
|
|
22
22
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGridMenu.
|
|
4
|
-
const a = /* @__PURE__ */ e
|
|
1
|
+
import e from "./DataGridMenu.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-13f1ce76"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|