@ironsource/shared-ui 2.1.11-test.1 → 2.1.11-test.26
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +48 -46
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +34 -26
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dropdown/common/Dropdown.common.js +191 -184
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +6 -6
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +73 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +90 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +185 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +31 -6
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +224 -198
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +209 -167
- package/components/dropdown/v4/index.d.ts +402 -87
- package/components/dropdown/v4/index.js +6 -3
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +3 -3
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/sortableList/SortableList.vue.d.ts +1 -1
- package/components/sortableList/index.d.ts +4 -4
- package/components/table/common/Table.common.js +69 -71
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +6 -1
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +124 -117
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/index.d.ts +26 -7
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1123 -262
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -2
- package/mocks/words.d.ts +1 -1
- package/package.json +3 -2
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_e944c610_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as a, createElementBlock as d, createElementVNode as h, normalizeStyle as T, normalizeClass as u, renderSlot as c, createVNode as y, withCtx as w, createTextVNode as E, toDisplayString as B, isRef as ce, createCommentVNode as r, Fragment as I, renderList as A, createBlock as K, mergeProps as re } from "vue";
|
|
2
2
|
import V from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ue from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import he from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -11,27 +11,21 @@ import ke from "./ExpandRowToggle.vue.js";
|
|
|
11
11
|
import me from "../../search/v4/SearchV4.vue.js";
|
|
12
12
|
import { useVModel as ge } from "@vueuse/core";
|
|
13
13
|
const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], Ce = ["data-testid"], xe = { class: "search-wrapper" }, Te = ["data-testid"], we = ["data-testid"], Ee = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "checkbox-cell"
|
|
16
|
-
}, Be = {
|
|
17
14
|
key: 1,
|
|
18
15
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "checkbox-cell"
|
|
22
|
-
}, Me = {
|
|
16
|
+
}, Be = ["onClick"], Ie = { class: "table-head-container" }, Ae = ["data-testid"], Ve = ["onMouseenter", "onClick"], Le = {
|
|
23
17
|
key: 1,
|
|
24
18
|
class: "expand-toggle-cell"
|
|
25
|
-
},
|
|
19
|
+
}, Me = {
|
|
26
20
|
key: 2,
|
|
27
21
|
class: "expanded-row"
|
|
28
|
-
},
|
|
22
|
+
}, Pe = {
|
|
29
23
|
key: 3,
|
|
30
24
|
class: "floating-row"
|
|
31
|
-
},
|
|
25
|
+
}, He = { key: 1 }, Fe = {
|
|
32
26
|
key: 0,
|
|
33
27
|
class: "table-footer"
|
|
34
|
-
},
|
|
28
|
+
}, qe = /* @__PURE__ */ de({
|
|
35
29
|
__name: "DataGrid",
|
|
36
30
|
props: {
|
|
37
31
|
title: { default: "" },
|
|
@@ -45,6 +39,7 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
45
39
|
selectedMatcher: { type: Function, default: (s, k) => s === k },
|
|
46
40
|
isSticky: { type: Boolean, default: !0 },
|
|
47
41
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
42
|
+
isSelectionSticky: { type: Boolean, default: !1 },
|
|
48
43
|
isLoading: { type: Boolean, default: !1 },
|
|
49
44
|
emptyStateVariant: { default: null },
|
|
50
45
|
emptyStateTitle: { default: "No data to display" },
|
|
@@ -64,85 +59,85 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
64
59
|
rowDataKey: { default: "" }
|
|
65
60
|
},
|
|
66
61
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
67
|
-
setup(s, { expose: k, emit:
|
|
62
|
+
setup(s, { expose: k, emit: f }) {
|
|
68
63
|
const i = s;
|
|
69
|
-
oe((
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
oe((l) => ({
|
|
65
|
+
"636ded5a": s.zIndexBase,
|
|
66
|
+
b8e29764: t(X),
|
|
67
|
+
"7b022872": t(H),
|
|
68
|
+
"392d5e8f": t(J)
|
|
74
69
|
}));
|
|
75
|
-
const b = ne(), U = (
|
|
76
|
-
list:
|
|
70
|
+
const b = ne(), U = (l) => i.rowCustomClassKey && i.rows[l] ? i.rows[l][i.rowCustomClassKey] : "", {
|
|
71
|
+
list: P,
|
|
77
72
|
containerProps: G,
|
|
78
73
|
wrapperProps: Y,
|
|
79
74
|
activeRow: $,
|
|
80
|
-
gridColumnTemplate:
|
|
75
|
+
gridColumnTemplate: H,
|
|
81
76
|
toggleSortOrder: Q,
|
|
82
|
-
columnsStickyPositions:
|
|
77
|
+
columnsStickyPositions: F,
|
|
83
78
|
hasSearchSlot: W,
|
|
84
79
|
containerStyle: j,
|
|
85
|
-
onScroll:
|
|
86
|
-
savingRows:
|
|
80
|
+
onScroll: N,
|
|
81
|
+
savingRows: p,
|
|
87
82
|
hasExpandSlot: R,
|
|
88
83
|
toggleExpandRow: q,
|
|
89
84
|
cssRowHeight: J,
|
|
90
85
|
cssExpandGridCol: X,
|
|
91
|
-
isRowExpanded:
|
|
86
|
+
isRowExpanded: L,
|
|
92
87
|
hasCheckboxes: O,
|
|
93
88
|
activeMenuRow: Z,
|
|
94
89
|
scrollTo: _
|
|
95
|
-
} = ye(i,
|
|
96
|
-
const
|
|
97
|
-
return !!
|
|
98
|
-
}), C = (
|
|
99
|
-
C(
|
|
90
|
+
} = ye(i, f), D = v(() => !!b.footer), g = ge(i, "search", f), ee = v(() => i.selection.length || 0), M = v(() => {
|
|
91
|
+
const l = i.rows.map((o, e) => i.getRowId(o, e));
|
|
92
|
+
return !!l.length && l.every((o) => C(o));
|
|
93
|
+
}), C = (l) => i.selection.findIndex((o) => i.selectedMatcher(l, o)) !== -1, te = (l) => {
|
|
94
|
+
C(l) ? (x(
|
|
100
95
|
i.selection.filter(
|
|
101
|
-
(o) => !i.selectedMatcher(
|
|
96
|
+
(o) => !i.selectedMatcher(l, o)
|
|
102
97
|
)
|
|
103
|
-
),
|
|
98
|
+
), f("selectRow", !1)) : (x([...i.selection, l]), f("selectRow", !0));
|
|
104
99
|
}, se = () => {
|
|
105
|
-
if (
|
|
106
|
-
x([]),
|
|
100
|
+
if (M.value)
|
|
101
|
+
x([]), f("selectAll", !1);
|
|
107
102
|
else {
|
|
108
|
-
const
|
|
109
|
-
x([...i.selection, ...
|
|
103
|
+
const l = i.rows.map((o, e) => i.getRowId(o, e)).filter((o) => !C(o));
|
|
104
|
+
x([...i.selection, ...l]), f("selectAll", !0);
|
|
110
105
|
}
|
|
111
|
-
}, x = (
|
|
112
|
-
|
|
113
|
-
},
|
|
106
|
+
}, x = (l) => {
|
|
107
|
+
f("update:selection", l);
|
|
108
|
+
}, le = (l) => !i.isLoading && $.value === l, ae = v(
|
|
114
109
|
() => i.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
|
|
115
110
|
), ie = v(
|
|
116
111
|
() => i.emptyStateSubtitle ? i.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
|
|
117
112
|
);
|
|
118
113
|
return k({
|
|
119
114
|
scrollTo: _
|
|
120
|
-
}), (
|
|
115
|
+
}), (l, o) => (a(), d("div", {
|
|
121
116
|
class: "table-container",
|
|
122
117
|
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
123
118
|
onMouseleave: o[3] || (o[3] = (e) => $.value = null)
|
|
124
119
|
}, [
|
|
125
|
-
|
|
120
|
+
h("table", {
|
|
126
121
|
ref: t(G).ref,
|
|
127
122
|
style: T(t(j)),
|
|
128
|
-
class:
|
|
123
|
+
class: u({
|
|
129
124
|
hasFooter: t(D)
|
|
130
125
|
}),
|
|
131
126
|
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
132
127
|
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
133
|
-
(...e) => t(
|
|
128
|
+
(...e) => t(N) && t(N)(...e))
|
|
134
129
|
}, [
|
|
135
|
-
s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (
|
|
130
|
+
s.title || t(b).title || t(W) || t(b)["table-header-actions"] ? (a(), d("div", {
|
|
136
131
|
key: 0,
|
|
137
|
-
class:
|
|
132
|
+
class: u(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
138
133
|
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
139
134
|
}, [
|
|
140
|
-
|
|
135
|
+
h("div", {
|
|
141
136
|
class: "table-title",
|
|
142
137
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
143
138
|
}, [
|
|
144
|
-
c(
|
|
145
|
-
|
|
139
|
+
c(l.$slots, "title", {}, () => [
|
|
140
|
+
y(t(V), { variant: "h3" }, {
|
|
146
141
|
default: w(() => [
|
|
147
142
|
E(B(s.title), 1)
|
|
148
143
|
]),
|
|
@@ -150,48 +145,48 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
150
145
|
})
|
|
151
146
|
])
|
|
152
147
|
], 8, Re),
|
|
153
|
-
|
|
148
|
+
h("div", {
|
|
154
149
|
class: "table-header-right",
|
|
155
150
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
156
151
|
}, [
|
|
157
|
-
s.showSearch ? c(
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
|
|
153
|
+
h("div", xe, [
|
|
154
|
+
y(t(me), {
|
|
160
155
|
modelValue: t(g),
|
|
161
156
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => ce(g) ? g.value = e : null),
|
|
162
157
|
placeholder: s.searchPlaceholder,
|
|
163
158
|
"auto-focus": s.searchAutoFocus,
|
|
164
159
|
"test-id": s.testId,
|
|
165
|
-
onOnClear: o[1] || (o[1] = (e) =>
|
|
160
|
+
onOnClear: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
166
161
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
167
162
|
])
|
|
168
163
|
]) : r("", !0)
|
|
169
164
|
], 8, Ce),
|
|
170
|
-
t(b)["table-header-actions"] ? (
|
|
165
|
+
t(b)["table-header-actions"] ? (a(), d("div", {
|
|
171
166
|
key: 0,
|
|
172
167
|
class: "table-header-actions",
|
|
173
168
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
174
169
|
}, [
|
|
175
|
-
c(
|
|
170
|
+
c(l.$slots, "table-header-actions")
|
|
176
171
|
], 8, Te)) : r("", !0)
|
|
177
172
|
], 10, $e)) : r("", !0),
|
|
178
|
-
|
|
179
|
-
class:
|
|
173
|
+
h("thead", {
|
|
174
|
+
class: u({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
180
175
|
}, [
|
|
181
|
-
|
|
176
|
+
h("div", {
|
|
182
177
|
class: "sections",
|
|
183
178
|
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
184
179
|
}, [
|
|
185
|
-
(
|
|
180
|
+
(a(!0), d(I, null, A(s.sections, (e) => (a(), d("div", {
|
|
186
181
|
key: e.id,
|
|
187
|
-
class:
|
|
182
|
+
class: u(["section-container", { sticky: e.isSticky }])
|
|
188
183
|
}, [
|
|
189
|
-
c(
|
|
190
|
-
|
|
184
|
+
c(l.$slots, `section-${e.id}`, {}, () => [
|
|
185
|
+
h("div", {
|
|
191
186
|
style: T({ width: e.width + "px" }),
|
|
192
|
-
class:
|
|
187
|
+
class: u({ section: !0 })
|
|
193
188
|
}, [
|
|
194
|
-
|
|
189
|
+
y(t(V), { variant: "body2" }, {
|
|
195
190
|
default: w(() => [
|
|
196
191
|
E(B(e.title), 1)
|
|
197
192
|
]),
|
|
@@ -201,21 +196,27 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
201
196
|
])
|
|
202
197
|
], 2))), 128))
|
|
203
198
|
], 8, we),
|
|
204
|
-
|
|
205
|
-
t(O) ? (
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
h("tr", null, [
|
|
200
|
+
t(O) ? (a(), d("th", {
|
|
201
|
+
key: 0,
|
|
202
|
+
class: u([
|
|
203
|
+
"checkbox-cell",
|
|
204
|
+
{ "checkbox-cell-sticky": s.isSelectionSticky }
|
|
205
|
+
])
|
|
206
|
+
}, [
|
|
207
|
+
c(l.$slots, "select-all-checkbox", {}, () => [
|
|
208
|
+
y(t(z), {
|
|
208
209
|
disabled: s.isLoading,
|
|
209
|
-
"is-checked": t(
|
|
210
|
-
"is-indeterminate": !t(
|
|
210
|
+
"is-checked": t(M),
|
|
211
|
+
"is-indeterminate": !t(M) && t(ee) > 0,
|
|
211
212
|
"onUpdate:isChecked": se
|
|
212
213
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
213
214
|
])
|
|
214
|
-
])) : r("", !0),
|
|
215
|
-
t(R) ? (
|
|
216
|
-
(
|
|
215
|
+
], 2)) : r("", !0),
|
|
216
|
+
t(R) ? (a(), d("th", Ee)) : r("", !0),
|
|
217
|
+
(a(!0), d(I, null, A(s.columns, (e) => (a(), d("th", {
|
|
217
218
|
key: e.id,
|
|
218
|
-
class:
|
|
219
|
+
class: u({
|
|
219
220
|
sticky: e.isSticky,
|
|
220
221
|
isStickyRight: e.isStickyRight,
|
|
221
222
|
bordered: e.isBordered,
|
|
@@ -223,64 +224,70 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
223
224
|
isSortable: e.isSortable,
|
|
224
225
|
[`column-${e.id}`]: !0
|
|
225
226
|
}),
|
|
226
|
-
style: T(e.isSticky ? t(
|
|
227
|
+
style: T(e.isSticky ? t(F)[e.id] : null),
|
|
227
228
|
onClick: (m) => e.isSortable ? t(Q)(e) : null
|
|
228
229
|
}, [
|
|
229
|
-
|
|
230
|
-
c(
|
|
231
|
-
|
|
230
|
+
h("div", Ie, [
|
|
231
|
+
c(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
232
|
+
y(t(V), { variant: "tableLabel" }, {
|
|
232
233
|
default: w(() => [
|
|
233
234
|
E(B(e.title), 1)
|
|
234
235
|
]),
|
|
235
236
|
_: 2
|
|
236
237
|
}, 1024)
|
|
237
238
|
]),
|
|
238
|
-
e.helpText ? (
|
|
239
|
+
e.helpText ? (a(), K(Se, {
|
|
239
240
|
key: 0,
|
|
240
241
|
"hover-help-text": e.helpText,
|
|
241
242
|
"hover-help-text-placement": e.helpTextPlacement
|
|
242
243
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
|
|
243
|
-
e.isSortable && e.id === s.sort?.sortBy ? (
|
|
244
|
+
e.isSortable && e.id === s.sort?.sortBy ? (a(), K(fe, {
|
|
244
245
|
key: 1,
|
|
245
246
|
"sort-order": s.sort.sortOrder
|
|
246
247
|
}, null, 8, ["sort-order"])) : r("", !0)
|
|
247
248
|
])
|
|
248
|
-
], 14,
|
|
249
|
+
], 14, Be))), 128))
|
|
249
250
|
])
|
|
250
251
|
], 2),
|
|
251
|
-
|
|
252
|
-
t(
|
|
252
|
+
h("tbody", null, [
|
|
253
|
+
t(P).length > 0 ? (a(), d("div", re({
|
|
253
254
|
key: 0,
|
|
254
255
|
class: "table-body-wrapper",
|
|
255
256
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
256
257
|
}, t(Y)), [
|
|
257
|
-
(
|
|
258
|
+
(a(!0), d(I, null, A(t(P), (e) => (a(), d("tr", {
|
|
258
259
|
key: s.getRowKey(e.data, e.index),
|
|
259
|
-
class:
|
|
260
|
-
loading: s.isLoading || s.isLoading && !e.data || t(
|
|
260
|
+
class: u(["table-row", {
|
|
261
|
+
loading: s.isLoading || s.isLoading && !e.data || t(p).includes(e.index),
|
|
261
262
|
active: t($) === e.index,
|
|
262
263
|
activeMenu: t(Z) === e.index,
|
|
263
|
-
expanded: t(R) && t(
|
|
264
|
+
expanded: t(R) && t(L)(e.index),
|
|
264
265
|
[U(e.index)]: !0
|
|
265
266
|
}]),
|
|
266
267
|
onMouseenter: (m) => $.value = e.index,
|
|
267
|
-
onClick: (m) =>
|
|
268
|
+
onClick: (m) => f("clickRow", e.index)
|
|
268
269
|
}, [
|
|
269
|
-
t(O) ? (
|
|
270
|
-
|
|
270
|
+
t(O) ? (a(), d("td", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: u([
|
|
273
|
+
"checkbox-cell",
|
|
274
|
+
{ "checkbox-cell-sticky": s.isSelectionSticky }
|
|
275
|
+
])
|
|
276
|
+
}, [
|
|
277
|
+
y(t(z), {
|
|
271
278
|
"is-checked": C(s.getRowId(e.data, e.index)),
|
|
272
279
|
"onUpdate:isChecked": (m) => te(s.getRowId(e.data, e.index))
|
|
273
280
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
274
|
-
])) : r("", !0),
|
|
275
|
-
t(R) ? (
|
|
276
|
-
|
|
277
|
-
expanded: t(
|
|
281
|
+
], 2)) : r("", !0),
|
|
282
|
+
t(R) ? (a(), d("td", Le, [
|
|
283
|
+
y(ke, {
|
|
284
|
+
expanded: t(L)(e.index),
|
|
278
285
|
onClick: (m) => t(q)(e.index, m)
|
|
279
286
|
}, null, 8, ["expanded", "onClick"])
|
|
280
287
|
])) : r("", !0),
|
|
281
|
-
(
|
|
288
|
+
(a(!0), d(I, null, A(s.columns, (m, n) => (a(), d("td", {
|
|
282
289
|
key: n,
|
|
283
|
-
class:
|
|
290
|
+
class: u({
|
|
284
291
|
sticky: s.columns[n].isSticky,
|
|
285
292
|
isStickyRight: s.columns[n].isStickyRight,
|
|
286
293
|
bordered: s.columns[n].isBordered,
|
|
@@ -288,63 +295,63 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
288
295
|
[`column-${s.columns[n].id}`]: !0
|
|
289
296
|
}),
|
|
290
297
|
style: T(
|
|
291
|
-
s.columns[n].isSticky ? t(
|
|
298
|
+
s.columns[n].isSticky ? t(F)[s.columns[n].id] : null
|
|
292
299
|
)
|
|
293
300
|
}, [
|
|
294
|
-
!s.isLoading || s.isLoading && e.data[n] ? (
|
|
301
|
+
!s.isLoading || s.isLoading && e.data[n] ? (a(), d("div", {
|
|
295
302
|
key: 0,
|
|
296
|
-
class:
|
|
303
|
+
class: u(["table-cell", { last: n === e.data.length - 1 }])
|
|
297
304
|
}, [
|
|
298
|
-
c(
|
|
305
|
+
c(l.$slots, `cell-${s.columns[n].id}`, {
|
|
299
306
|
cell: e.data[n],
|
|
300
|
-
isLoading: t(
|
|
307
|
+
isLoading: t(p).includes(e.index),
|
|
301
308
|
cellIndex: n,
|
|
302
309
|
row: e,
|
|
303
310
|
rowIndex: e.index
|
|
304
311
|
}, () => [
|
|
305
|
-
|
|
312
|
+
y(t(V), { variant: "body1" }, {
|
|
306
313
|
default: w(() => [
|
|
307
314
|
E(B(e.data[n]), 1)
|
|
308
315
|
]),
|
|
309
316
|
_: 2
|
|
310
317
|
}, 1024)
|
|
311
318
|
])
|
|
312
|
-
], 2)) : c(
|
|
313
|
-
|
|
319
|
+
], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
|
|
320
|
+
y(t(ue), { round: "" })
|
|
314
321
|
])
|
|
315
322
|
], 6))), 128)),
|
|
316
|
-
t(R) && t(
|
|
317
|
-
c(
|
|
323
|
+
t(R) && t(L)(e.index) ? (a(), d("div", Me, [
|
|
324
|
+
c(l.$slots, "expanded", {
|
|
318
325
|
row: e,
|
|
319
|
-
gridColumnTemplate: t(
|
|
326
|
+
gridColumnTemplate: t(H)
|
|
320
327
|
})
|
|
321
328
|
])) : r("", !0),
|
|
322
|
-
|
|
323
|
-
c(
|
|
329
|
+
le(e.index) ? (a(), d("div", Pe, [
|
|
330
|
+
c(l.$slots, "floating-row", {
|
|
324
331
|
row: e,
|
|
325
332
|
rowIndex: e.index
|
|
326
333
|
})
|
|
327
334
|
])) : r("", !0)
|
|
328
|
-
], 42,
|
|
329
|
-
], 16,
|
|
330
|
-
c(
|
|
331
|
-
|
|
335
|
+
], 42, Ve))), 128))
|
|
336
|
+
], 16, Ae)) : (a(), d("div", He, [
|
|
337
|
+
c(l.$slots, "empty-state", {}, () => [
|
|
338
|
+
y(t(he), {
|
|
332
339
|
class: "empty-state",
|
|
333
340
|
title: s.emptyStateTitle,
|
|
334
341
|
subtitle: t(ie),
|
|
335
|
-
variant: t(
|
|
342
|
+
variant: t(ae),
|
|
336
343
|
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
337
344
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
338
345
|
])
|
|
339
346
|
]))
|
|
340
347
|
])
|
|
341
348
|
], 46, be),
|
|
342
|
-
t(D) ? (
|
|
343
|
-
c(
|
|
349
|
+
t(D) ? (a(), d("div", Fe, [
|
|
350
|
+
c(l.$slots, "footer")
|
|
344
351
|
])) : r("", !0)
|
|
345
352
|
], 40, ve));
|
|
346
353
|
}
|
|
347
354
|
});
|
|
348
355
|
export {
|
|
349
|
-
|
|
356
|
+
qe as default
|
|
350
357
|
};
|
|
@@ -8,10 +8,11 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import C from "../../dropdown/v4/OptionV4.vue.js";
|
|
11
|
+
import "../../dropdown/v4/ConditionalDropdown.vue.js";
|
|
11
12
|
import k from "../../icon/v4/IconV4.vue.js";
|
|
12
13
|
import "../../icon/v4/IconFlag.vue.js";
|
|
13
14
|
import { useTableContext as y } from "../common/TableContext.js";
|
|
14
|
-
const
|
|
15
|
+
const h = /* @__PURE__ */ u({
|
|
15
16
|
__name: "DataGridMenu",
|
|
16
17
|
props: {
|
|
17
18
|
menuItems: { default: () => [] },
|
|
@@ -61,5 +62,5 @@ const z = /* @__PURE__ */ u({
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
h as default
|
|
65
66
|
};
|
|
@@ -29,6 +29,7 @@ declare const DataGridTypes: () => (({
|
|
|
29
29
|
getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
|
|
30
30
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
31
31
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
32
|
+
isSelectionSticky: boolean;
|
|
32
33
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
33
34
|
zIndexBase: number;
|
|
34
35
|
rowCustomClassKey: string;
|
|
@@ -130,6 +131,10 @@ declare const DataGridTypes: () => (({
|
|
|
130
131
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
131
132
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
132
133
|
};
|
|
134
|
+
isSelectionSticky: {
|
|
135
|
+
type: import("vue").PropType<boolean>;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
133
138
|
emptyStateVariant: {
|
|
134
139
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
135
140
|
default: any;
|
|
@@ -148,16 +153,16 @@ declare const DataGridTypes: () => (({
|
|
|
148
153
|
};
|
|
149
154
|
}>> & {
|
|
150
155
|
onSelectAll?: (value: boolean) => any;
|
|
156
|
+
onLoadMore?: () => any;
|
|
151
157
|
"onUpdate:search"?: (query: string) => any;
|
|
152
158
|
onOnScroll?: (event: Event) => any;
|
|
153
159
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
154
160
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
155
|
-
onLoadMore?: () => any;
|
|
156
161
|
onOnClearSearch?: () => any;
|
|
157
162
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
158
163
|
onSelectRow?: (value: boolean) => any;
|
|
159
164
|
onClickRow?: (rowIndex: number) => any;
|
|
160
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "selectedMatcher" | "emptyStateVariant" | "zIndexBase" | "rowCustomClassKey" | "rowDataKey">;
|
|
165
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "selectedMatcher" | "isSelectionSticky" | "emptyStateVariant" | "zIndexBase" | "rowCustomClassKey" | "rowDataKey">;
|
|
161
166
|
$attrs: {
|
|
162
167
|
[x: string]: unknown;
|
|
163
168
|
};
|
|
@@ -169,7 +174,7 @@ declare const DataGridTypes: () => (({
|
|
|
169
174
|
}>;
|
|
170
175
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
171
176
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
172
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "
|
|
177
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => 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: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
173
178
|
$el: any;
|
|
174
179
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
175
180
|
sort: {
|
|
@@ -268,6 +273,10 @@ declare const DataGridTypes: () => (({
|
|
|
268
273
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
269
274
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
270
275
|
};
|
|
276
|
+
isSelectionSticky: {
|
|
277
|
+
type: import("vue").PropType<boolean>;
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
271
280
|
emptyStateVariant: {
|
|
272
281
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
273
282
|
default: any;
|
|
@@ -286,11 +295,11 @@ declare const DataGridTypes: () => (({
|
|
|
286
295
|
};
|
|
287
296
|
}>> & {
|
|
288
297
|
onSelectAll?: (value: boolean) => any;
|
|
298
|
+
onLoadMore?: () => any;
|
|
289
299
|
"onUpdate:search"?: (query: string) => any;
|
|
290
300
|
onOnScroll?: (event: Event) => any;
|
|
291
301
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
292
302
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
293
|
-
onLoadMore?: () => any;
|
|
294
303
|
onOnClearSearch?: () => any;
|
|
295
304
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
296
305
|
onSelectRow?: (value: boolean) => any;
|
|
@@ -331,6 +340,7 @@ declare const DataGridTypes: () => (({
|
|
|
331
340
|
getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
|
|
332
341
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
333
342
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
343
|
+
isSelectionSticky: boolean;
|
|
334
344
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
335
345
|
zIndexBase: number;
|
|
336
346
|
rowCustomClassKey: string;
|
|
@@ -452,6 +462,10 @@ declare const DataGridTypes: () => (({
|
|
|
452
462
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
453
463
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
454
464
|
};
|
|
465
|
+
isSelectionSticky: {
|
|
466
|
+
type: import("vue").PropType<boolean>;
|
|
467
|
+
default: boolean;
|
|
468
|
+
};
|
|
455
469
|
emptyStateVariant: {
|
|
456
470
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
457
471
|
default: any;
|
|
@@ -470,11 +484,11 @@ declare const DataGridTypes: () => (({
|
|
|
470
484
|
};
|
|
471
485
|
}>> & {
|
|
472
486
|
onSelectAll?: (value: boolean) => any;
|
|
487
|
+
onLoadMore?: () => any;
|
|
473
488
|
"onUpdate:search"?: (query: string) => any;
|
|
474
489
|
onOnScroll?: (event: Event) => any;
|
|
475
490
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
476
491
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
477
|
-
onLoadMore?: () => any;
|
|
478
492
|
onOnClearSearch?: () => any;
|
|
479
493
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
480
494
|
onSelectRow?: (value: boolean) => any;
|
|
@@ -582,6 +596,10 @@ declare const DataGridTypes: () => (({
|
|
|
582
596
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
583
597
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
584
598
|
};
|
|
599
|
+
isSelectionSticky: {
|
|
600
|
+
type: import("vue").PropType<boolean>;
|
|
601
|
+
default: boolean;
|
|
602
|
+
};
|
|
585
603
|
emptyStateVariant: {
|
|
586
604
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
587
605
|
default: any;
|
|
@@ -600,11 +618,11 @@ declare const DataGridTypes: () => (({
|
|
|
600
618
|
};
|
|
601
619
|
}>> & {
|
|
602
620
|
onSelectAll?: (value: boolean) => any;
|
|
621
|
+
onLoadMore?: () => any;
|
|
603
622
|
"onUpdate:search"?: (query: string) => any;
|
|
604
623
|
onOnScroll?: (event: Event) => any;
|
|
605
624
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
606
625
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
607
|
-
onLoadMore?: () => any;
|
|
608
626
|
onOnClearSearch?: () => any;
|
|
609
627
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
610
628
|
onSelectRow?: (value: boolean) => any;
|
|
@@ -645,6 +663,7 @@ declare const DataGridTypes: () => (({
|
|
|
645
663
|
getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
|
|
646
664
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
647
665
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
666
|
+
isSelectionSticky: boolean;
|
|
648
667
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
649
668
|
zIndexBase: number;
|
|
650
669
|
rowCustomClassKey: string;
|
|
@@ -906,7 +925,7 @@ declare const DataGridTypes: () => (({
|
|
|
906
925
|
}>;
|
|
907
926
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
908
927
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
909
|
-
$emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "
|
|
928
|
+
$emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent & {
|
|
910
929
|
tableIndex: number;
|
|
911
930
|
}) => void) & ((event: "clickRow", rowIndex: number, tableIndex: number) => void);
|
|
912
931
|
$el: any;
|