@ironsource/shared-ui 2.1.5 → 2.1.6-rc.1
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/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_8c3b0c3f_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css +1 -0
- package/README.md +1 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_a468fb4a_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue.js +3 -3
- package/components/autocomplete/Autocomplete.vue2.js +14 -13
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +20 -20
- package/components/forms/FormCard.vue.js +4 -4
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +34 -33
- package/components/input/v4/index.d.ts +20 -1
- package/components/search/common/Search.common.js +10 -10
- package/components/search/v4/SearchV4.vue.d.ts +2 -0
- package/components/search/v4/SearchV4.vue.js +5 -5
- package/components/search/v4/SearchV4.vue2.js +9 -9
- package/components/search/v4/index.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +138 -137
- package/components/table/v4/index.d.ts +7 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +6 -5
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +138 -46
- package/package.json +1 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_e535063a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c859928d_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_d3abd36a_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_1330ea8b_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_58a19def_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css"; import { defineComponent as ae, useCssVars as se, unref as t, useSlots as ie, computed as g, openBlock as i, createElementBlock as d, createElementVNode as u, normalizeStyle as x, normalizeClass as y, renderSlot as r, createVNode as h, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as le, createCommentVNode as c, Fragment as B, renderList as I, createBlock as z, mergeProps as de } from "vue";
|
|
2
2
|
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import oe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ne from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -10,7 +10,7 @@ import ue from "./HelpIcon.vue.js";
|
|
|
10
10
|
import he from "./ExpandRowToggle.vue.js";
|
|
11
11
|
import ye from "../../search/v4/SearchV4.vue.js";
|
|
12
12
|
import { useVModel as fe } from "@vueuse/core";
|
|
13
|
-
const Se = ["data-testid"],
|
|
13
|
+
const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox-cell"
|
|
16
16
|
}, Te = {
|
|
@@ -28,7 +28,7 @@ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["d
|
|
|
28
28
|
}, Pe = { key: 1 }, Ve = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "table-footer"
|
|
31
|
-
}, We = /* @__PURE__ */
|
|
31
|
+
}, We = /* @__PURE__ */ ae({
|
|
32
32
|
__name: "DataGrid",
|
|
33
33
|
props: {
|
|
34
34
|
title: { default: "" },
|
|
@@ -37,8 +37,8 @@ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["d
|
|
|
37
37
|
sections: { default: null },
|
|
38
38
|
sort: { default: null },
|
|
39
39
|
selection: { default: null },
|
|
40
|
-
getRowId: { type: Function, default: (
|
|
41
|
-
selectedMatcher: { type: Function, default: (
|
|
40
|
+
getRowId: { type: Function, default: (a, S) => S },
|
|
41
|
+
selectedMatcher: { type: Function, default: (a, S) => a === S },
|
|
42
42
|
isSticky: { type: Boolean, default: !0 },
|
|
43
43
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
44
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -57,14 +57,14 @@ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["d
|
|
|
57
57
|
searchAutoFocus: { type: Boolean, default: !1 },
|
|
58
58
|
zIndexBase: { default: 100 }
|
|
59
59
|
},
|
|
60
|
-
emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
|
|
61
|
-
setup(
|
|
62
|
-
const o =
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore"],
|
|
61
|
+
setup(a, { emit: S }) {
|
|
62
|
+
const o = a;
|
|
63
|
+
se((s) => ({
|
|
64
|
+
"7d59c3f5": a.zIndexBase,
|
|
65
|
+
"43b02aae": t(J),
|
|
66
|
+
"88b8113c": t(H),
|
|
67
|
+
f1040b2c: t(q)
|
|
68
68
|
}));
|
|
69
69
|
const v = ie(), {
|
|
70
70
|
list: V,
|
|
@@ -85,57 +85,57 @@ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["d
|
|
|
85
85
|
isRowExpanded: M,
|
|
86
86
|
hasCheckboxes: F,
|
|
87
87
|
activeMenuRow: K
|
|
88
|
-
} = re(o, S), O = g(() => !!v.footer),
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
-
}), $ = (
|
|
92
|
-
$(
|
|
88
|
+
} = re(o, S), O = g(() => !!v.footer), k = fe(o, "search", S), X = g(() => o.selection.length || 0), P = g(() => {
|
|
89
|
+
const s = o.rows.map((l, e) => o.getRowId(l, e));
|
|
90
|
+
return s.length && s.every((l) => $(l));
|
|
91
|
+
}), $ = (s) => o.selection.findIndex((l) => o.selectedMatcher(s, l)) !== -1, Z = (s) => {
|
|
92
|
+
$(s) ? R(
|
|
93
93
|
o.selection.filter(
|
|
94
|
-
(
|
|
94
|
+
(l) => !o.selectedMatcher(s, l)
|
|
95
95
|
)
|
|
96
|
-
) : R([...o.selection,
|
|
96
|
+
) : R([...o.selection, s]);
|
|
97
97
|
}, _ = () => {
|
|
98
98
|
if (P.value)
|
|
99
99
|
R([]);
|
|
100
100
|
else {
|
|
101
|
-
const
|
|
102
|
-
R([...o.selection, ...
|
|
101
|
+
const s = o.rows.map((l, e) => o.getRowId(l, e)).filter((l) => !$(l));
|
|
102
|
+
R([...o.selection, ...s]);
|
|
103
103
|
}
|
|
104
|
-
}, R = (
|
|
105
|
-
S("update:selection",
|
|
104
|
+
}, R = (s) => {
|
|
105
|
+
S("update:selection", s);
|
|
106
106
|
}, ee = g(
|
|
107
|
-
() => o.emptyStateVariant ?? (
|
|
107
|
+
() => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
|
|
108
108
|
), te = g(
|
|
109
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
109
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
|
|
110
110
|
);
|
|
111
|
-
return (
|
|
111
|
+
return (s, l) => (i(), d("div", {
|
|
112
112
|
class: "table-container",
|
|
113
|
-
"data-testid": `${
|
|
114
|
-
onMouseleave:
|
|
113
|
+
"data-testid": `${a.testId}-${t(f).CONTAINER}`,
|
|
114
|
+
onMouseleave: l[3] || (l[3] = (e) => w.value = null)
|
|
115
115
|
}, [
|
|
116
116
|
u("table", {
|
|
117
|
-
ref:
|
|
118
|
-
style: x(
|
|
117
|
+
ref: t(U).ref,
|
|
118
|
+
style: x(t(W)),
|
|
119
119
|
class: y({
|
|
120
|
-
hasFooter:
|
|
120
|
+
hasFooter: t(O)
|
|
121
121
|
}),
|
|
122
|
-
"data-testid": `${
|
|
123
|
-
onScrollPassive:
|
|
124
|
-
(...
|
|
122
|
+
"data-testid": `${a.testId}-${t(f).TABLE}`,
|
|
123
|
+
onScrollPassive: l[2] || (l[2] = //@ts-ignore
|
|
124
|
+
(...e) => t(A) && t(A)(...e))
|
|
125
125
|
}, [
|
|
126
|
-
|
|
126
|
+
a.title || t(v).title || t(Q) || t(v)["table-header-actions"] ? (i(), d("div", {
|
|
127
127
|
key: 0,
|
|
128
|
-
class: y(["table-header", { isStickyHeader:
|
|
129
|
-
"data-testid": `${
|
|
128
|
+
class: y(["table-header", { isStickyHeader: a.isStickyHeader }]),
|
|
129
|
+
"data-testid": `${a.testId}-${t(f).HEADER}`
|
|
130
130
|
}, [
|
|
131
131
|
u("div", {
|
|
132
132
|
class: "table-title",
|
|
133
|
-
"data-testid": `${
|
|
133
|
+
"data-testid": `${a.testId}-${t(f).TITLE}`
|
|
134
134
|
}, [
|
|
135
|
-
r(
|
|
136
|
-
h(
|
|
135
|
+
r(s.$slots, "title", {}, () => [
|
|
136
|
+
h(t(p), { variant: "h3" }, {
|
|
137
137
|
default: T(() => [
|
|
138
|
-
C(E(
|
|
138
|
+
C(E(a.title), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
})
|
|
@@ -143,47 +143,48 @@ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["d
|
|
|
143
143
|
], 8, ge),
|
|
144
144
|
u("div", {
|
|
145
145
|
class: "table-header-right",
|
|
146
|
-
"data-testid": `${
|
|
146
|
+
"data-testid": `${a.testId}-${t(f).HEADER_RIGHT}`
|
|
147
147
|
}, [
|
|
148
|
-
|
|
148
|
+
a.showSearch ? r(s.$slots, "search", { key: 0 }, () => [
|
|
149
149
|
u("div", be, [
|
|
150
|
-
h(
|
|
151
|
-
modelValue:
|
|
152
|
-
"onUpdate:modelValue":
|
|
153
|
-
placeholder:
|
|
154
|
-
"auto-focus":
|
|
155
|
-
"test-id":
|
|
150
|
+
h(t(ye), {
|
|
151
|
+
modelValue: t(k),
|
|
152
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => le(k) ? k.value = e : null),
|
|
153
|
+
placeholder: a.searchPlaceholder,
|
|
154
|
+
"auto-focus": a.searchAutoFocus,
|
|
155
|
+
"test-id": a.testId,
|
|
156
|
+
onOnClear: l[1] || (l[1] = (e) => S("onClearSearch"))
|
|
156
157
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
157
158
|
])
|
|
158
159
|
], !0) : c("", !0)
|
|
159
160
|
], 8, ve),
|
|
160
|
-
|
|
161
|
+
t(v)["table-header-actions"] ? (i(), d("div", {
|
|
161
162
|
key: 0,
|
|
162
163
|
class: "table-header-actions",
|
|
163
|
-
"data-testid": `${
|
|
164
|
+
"data-testid": `${a.testId}-${t(f).ACTIONS}`
|
|
164
165
|
}, [
|
|
165
|
-
r(
|
|
166
|
+
r(s.$slots, "table-header-actions", {}, void 0, !0)
|
|
166
167
|
], 8, $e)) : c("", !0)
|
|
167
|
-
], 10,
|
|
168
|
+
], 10, me)) : c("", !0),
|
|
168
169
|
u("thead", {
|
|
169
|
-
class: y({ sticky:
|
|
170
|
+
class: y({ sticky: a.isSticky, isStickyHeader: a.isStickyHeader })
|
|
170
171
|
}, [
|
|
171
172
|
u("div", {
|
|
172
173
|
class: "sections",
|
|
173
|
-
"data-testid": `${
|
|
174
|
+
"data-testid": `${a.testId}-${t(f).SECTIONS}`
|
|
174
175
|
}, [
|
|
175
|
-
(i(!0),
|
|
176
|
-
key:
|
|
177
|
-
class: y(["section-container", { sticky:
|
|
176
|
+
(i(!0), d(B, null, I(a.sections, (e) => (i(), d("div", {
|
|
177
|
+
key: e.id,
|
|
178
|
+
class: y(["section-container", { sticky: e.isSticky }])
|
|
178
179
|
}, [
|
|
179
|
-
r(
|
|
180
|
+
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
180
181
|
u("div", {
|
|
181
|
-
style: x({ width:
|
|
182
|
+
style: x({ width: e.width + "px" }),
|
|
182
183
|
class: y({ section: !0 })
|
|
183
184
|
}, [
|
|
184
|
-
h(
|
|
185
|
+
h(t(p), { variant: "body2" }, {
|
|
185
186
|
default: T(() => [
|
|
186
|
-
C(E(
|
|
187
|
+
C(E(e.title), 1)
|
|
187
188
|
]),
|
|
188
189
|
_: 2
|
|
189
190
|
}, 1024)
|
|
@@ -192,138 +193,138 @@ const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["d
|
|
|
192
193
|
], 2))), 128))
|
|
193
194
|
], 8, Re),
|
|
194
195
|
u("tr", null, [
|
|
195
|
-
|
|
196
|
-
r(
|
|
197
|
-
h(
|
|
198
|
-
disabled:
|
|
199
|
-
"is-checked":
|
|
200
|
-
"is-indeterminate": !
|
|
196
|
+
t(F) ? (i(), d("th", xe, [
|
|
197
|
+
r(s.$slots, "select-all-checkbox", {}, () => [
|
|
198
|
+
h(t(D), {
|
|
199
|
+
disabled: a.isLoading,
|
|
200
|
+
"is-checked": t(P),
|
|
201
|
+
"is-indeterminate": !t(P) && t(X) > 0,
|
|
201
202
|
"onUpdate:isChecked": _
|
|
202
203
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
203
204
|
], !0)
|
|
204
205
|
])) : c("", !0),
|
|
205
|
-
|
|
206
|
-
(i(!0),
|
|
207
|
-
key:
|
|
206
|
+
t(b) ? (i(), d("th", Te)) : c("", !0),
|
|
207
|
+
(i(!0), d(B, null, I(a.columns, (e) => (i(), d("th", {
|
|
208
|
+
key: e.id,
|
|
208
209
|
class: y({
|
|
209
|
-
sticky:
|
|
210
|
-
isStickyRight:
|
|
211
|
-
bordered:
|
|
212
|
-
isTextRight:
|
|
213
|
-
isSortable:
|
|
214
|
-
[`column-${
|
|
210
|
+
sticky: e.isSticky,
|
|
211
|
+
isStickyRight: e.isStickyRight,
|
|
212
|
+
bordered: e.isBordered,
|
|
213
|
+
isTextRight: e.isTextRight,
|
|
214
|
+
isSortable: e.isSortable,
|
|
215
|
+
[`column-${e.id}`]: !0
|
|
215
216
|
}),
|
|
216
|
-
style: x(
|
|
217
|
-
onClick: (
|
|
217
|
+
style: x(e.isSticky ? t(L)[e.id] : null),
|
|
218
|
+
onClick: (m) => e.isSortable ? t(Y)(e) : null
|
|
218
219
|
}, [
|
|
219
220
|
u("div", Ee, [
|
|
220
|
-
r(
|
|
221
|
-
h(
|
|
221
|
+
r(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
222
|
+
h(t(p), { variant: "tableLabel" }, {
|
|
222
223
|
default: T(() => [
|
|
223
|
-
C(E(
|
|
224
|
+
C(E(e.title), 1)
|
|
224
225
|
]),
|
|
225
226
|
_: 2
|
|
226
227
|
}, 1024)
|
|
227
228
|
], !0),
|
|
228
|
-
|
|
229
|
+
e.helpText ? (i(), z(ue, {
|
|
229
230
|
key: 0,
|
|
230
|
-
"hover-help-text":
|
|
231
|
-
"hover-help-text-placement":
|
|
231
|
+
"hover-help-text": e.helpText,
|
|
232
|
+
"hover-help-text-placement": e.helpTextPlacement
|
|
232
233
|
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : c("", !0),
|
|
233
|
-
|
|
234
|
+
e.isSortable && e.id === a.sort?.sortBy ? (i(), z(ce, {
|
|
234
235
|
key: 1,
|
|
235
|
-
"sort-order":
|
|
236
|
+
"sort-order": a.sort.sortOrder
|
|
236
237
|
}, null, 8, ["sort-order"])) : c("", !0)
|
|
237
238
|
])
|
|
238
239
|
], 14, Ce))), 128))
|
|
239
240
|
])
|
|
240
241
|
], 2),
|
|
241
242
|
u("tbody", null, [
|
|
242
|
-
|
|
243
|
+
t(V).length > 0 ? (i(), d("div", de({
|
|
243
244
|
key: 0,
|
|
244
245
|
class: "table-body-wrapper",
|
|
245
|
-
"data-testid": `${
|
|
246
|
-
},
|
|
247
|
-
(i(!0),
|
|
248
|
-
key:
|
|
246
|
+
"data-testid": `${a.testId}-${t(f).BODY_WRAPPER}`
|
|
247
|
+
}, t(G)), [
|
|
248
|
+
(i(!0), d(B, null, I(t(V), (e) => (i(), d("tr", {
|
|
249
|
+
key: e.index,
|
|
249
250
|
class: y(["table-row", {
|
|
250
|
-
loading:
|
|
251
|
-
active:
|
|
252
|
-
activeMenu:
|
|
253
|
-
expanded:
|
|
251
|
+
loading: a.isLoading || a.isLoading && !e.data || t(N).includes(e.index),
|
|
252
|
+
active: t(w) === e.index,
|
|
253
|
+
activeMenu: t(K) === e.index,
|
|
254
|
+
expanded: t(b) && t(M)(e.index)
|
|
254
255
|
}]),
|
|
255
|
-
onMouseenter: (
|
|
256
|
+
onMouseenter: (m) => w.value = e.index
|
|
256
257
|
}, [
|
|
257
|
-
|
|
258
|
-
h(
|
|
259
|
-
"is-checked": $(
|
|
258
|
+
t(F) ? (i(), d("td", pe, [
|
|
259
|
+
h(t(D), {
|
|
260
|
+
"is-checked": $(a.getRowId(e.data, e.index)),
|
|
260
261
|
size: "sm",
|
|
261
|
-
"onUpdate:isChecked": (
|
|
262
|
+
"onUpdate:isChecked": (m) => Z(a.getRowId(e.data, e.index))
|
|
262
263
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
263
264
|
])) : c("", !0),
|
|
264
|
-
|
|
265
|
+
t(b) ? (i(), d("td", we, [
|
|
265
266
|
h(he, {
|
|
266
|
-
expanded:
|
|
267
|
-
onClick: (
|
|
267
|
+
expanded: t(M)(e.index),
|
|
268
|
+
onClick: (m) => t(j)(e.index, m)
|
|
268
269
|
}, null, 8, ["expanded", "onClick"])
|
|
269
270
|
])) : c("", !0),
|
|
270
|
-
(i(!0),
|
|
271
|
+
(i(!0), d(B, null, I(a.columns, (m, n) => (i(), d("td", {
|
|
271
272
|
key: n,
|
|
272
273
|
class: y({
|
|
273
|
-
sticky:
|
|
274
|
-
isStickyRight:
|
|
275
|
-
bordered:
|
|
276
|
-
isTextRight:
|
|
277
|
-
[`column-${
|
|
274
|
+
sticky: a.columns[n].isSticky,
|
|
275
|
+
isStickyRight: a.columns[n].isStickyRight,
|
|
276
|
+
bordered: a.columns[n].isBordered,
|
|
277
|
+
isTextRight: a.columns[n].isTextRight,
|
|
278
|
+
[`column-${a.columns[n].id}`]: !0
|
|
278
279
|
}),
|
|
279
280
|
style: x(
|
|
280
|
-
|
|
281
|
+
a.columns[n].isSticky ? t(L)[a.columns[n].id] : null
|
|
281
282
|
)
|
|
282
283
|
}, [
|
|
283
|
-
!
|
|
284
|
+
!a.isLoading || a.isLoading && e.data[n] ? (i(), d("div", {
|
|
284
285
|
key: 0,
|
|
285
|
-
class: y(["table-cell", { last: n ===
|
|
286
|
+
class: y(["table-cell", { last: n === e.data.length - 1 }])
|
|
286
287
|
}, [
|
|
287
|
-
r(
|
|
288
|
-
cell:
|
|
289
|
-
isLoading:
|
|
288
|
+
r(s.$slots, `cell-${a.columns[n].id}`, {
|
|
289
|
+
cell: e.data[n],
|
|
290
|
+
isLoading: t(N).includes(e.index),
|
|
290
291
|
cellIndex: n,
|
|
291
|
-
row:
|
|
292
|
-
rowIndex:
|
|
292
|
+
row: e,
|
|
293
|
+
rowIndex: e.index
|
|
293
294
|
}, () => [
|
|
294
|
-
h(
|
|
295
|
+
h(t(p), { variant: "body1" }, {
|
|
295
296
|
default: T(() => [
|
|
296
|
-
C(E(
|
|
297
|
+
C(E(e.data[n]), 1)
|
|
297
298
|
]),
|
|
298
299
|
_: 2
|
|
299
300
|
}, 1024)
|
|
300
301
|
], !0)
|
|
301
|
-
], 2)) : r(
|
|
302
|
-
h(
|
|
302
|
+
], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
|
|
303
|
+
h(t(oe), { round: "" })
|
|
303
304
|
], !0)
|
|
304
305
|
], 6))), 128)),
|
|
305
|
-
|
|
306
|
-
r(
|
|
307
|
-
row:
|
|
308
|
-
gridColumnTemplate:
|
|
306
|
+
t(b) && t(M)(e.index) ? (i(), d("div", Me, [
|
|
307
|
+
r(s.$slots, "expanded", {
|
|
308
|
+
row: e,
|
|
309
|
+
gridColumnTemplate: t(H)
|
|
309
310
|
}, void 0, !0)
|
|
310
311
|
])) : c("", !0)
|
|
311
312
|
], 42, Ie))), 128))
|
|
312
|
-
], 16, Be)) : (i(),
|
|
313
|
-
r(
|
|
314
|
-
h(
|
|
313
|
+
], 16, Be)) : (i(), d("div", Pe, [
|
|
314
|
+
r(s.$slots, "empty-state", {}, () => [
|
|
315
|
+
h(t(ne), {
|
|
315
316
|
class: "empty-state",
|
|
316
|
-
title:
|
|
317
|
-
subtitle:
|
|
318
|
-
variant:
|
|
319
|
-
"test-id": `${
|
|
317
|
+
title: a.emptyStateTitle,
|
|
318
|
+
subtitle: t(te),
|
|
319
|
+
variant: t(ee),
|
|
320
|
+
"test-id": `${a.testId}-${t(f).EMPTY_STATE}`
|
|
320
321
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
321
322
|
], !0)
|
|
322
323
|
]))
|
|
323
324
|
])
|
|
324
|
-
], 46,
|
|
325
|
-
|
|
326
|
-
r(
|
|
325
|
+
], 46, ke),
|
|
326
|
+
t(O) ? (i(), d("div", Ve, [
|
|
327
|
+
r(s.$slots, "footer", {}, void 0, !0)
|
|
327
328
|
])) : c("", !0)
|
|
328
329
|
], 40, Se));
|
|
329
330
|
}
|
|
@@ -142,6 +142,7 @@ declare const DataGridTypes: () => (({
|
|
|
142
142
|
onLoadMore?: () => any;
|
|
143
143
|
"onUpdate:search"?: (query: string) => any;
|
|
144
144
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
145
|
+
onOnClearSearch?: () => any;
|
|
145
146
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "showSearch" | "zIndexBase">;
|
|
146
147
|
$attrs: {
|
|
147
148
|
[x: string]: unknown;
|
|
@@ -159,7 +160,7 @@ declare const DataGridTypes: () => (({
|
|
|
159
160
|
confirm: () => void;
|
|
160
161
|
rowIndex: number;
|
|
161
162
|
cellIndex: number;
|
|
162
|
-
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void);
|
|
163
|
+
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void);
|
|
163
164
|
$el: any;
|
|
164
165
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
165
166
|
sort: {
|
|
@@ -274,11 +275,13 @@ declare const DataGridTypes: () => (({
|
|
|
274
275
|
onLoadMore?: () => any;
|
|
275
276
|
"onUpdate:search"?: (query: string) => any;
|
|
276
277
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
278
|
+
onOnClearSearch?: () => any;
|
|
277
279
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
278
280
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
279
281
|
"update:search": (query: string) => void;
|
|
280
282
|
"update:selection": (selection: unknown[]) => void;
|
|
281
283
|
onScroll: (event: Event) => void;
|
|
284
|
+
onClearSearch: () => void;
|
|
282
285
|
saveRow: (args_0: {
|
|
283
286
|
value: unknown;
|
|
284
287
|
confirm: () => void;
|
|
@@ -443,6 +446,7 @@ declare const DataGridTypes: () => (({
|
|
|
443
446
|
onLoadMore?: () => any;
|
|
444
447
|
"onUpdate:search"?: (query: string) => any;
|
|
445
448
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
449
|
+
onOnClearSearch?: () => any;
|
|
446
450
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
447
451
|
__isFragment?: never;
|
|
448
452
|
__isTeleport?: never;
|
|
@@ -560,11 +564,13 @@ declare const DataGridTypes: () => (({
|
|
|
560
564
|
onLoadMore?: () => any;
|
|
561
565
|
"onUpdate:search"?: (query: string) => any;
|
|
562
566
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
567
|
+
onOnClearSearch?: () => any;
|
|
563
568
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
564
569
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
565
570
|
"update:search": (query: string) => void;
|
|
566
571
|
"update:selection": (selection: unknown[]) => void;
|
|
567
572
|
onScroll: (event: Event) => void;
|
|
573
|
+
onClearSearch: () => void;
|
|
568
574
|
saveRow: (args_0: {
|
|
569
575
|
value: unknown;
|
|
570
576
|
confirm: () => void;
|
|
@@ -10,6 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
testId?: string;
|
|
12
12
|
distance?: string | number;
|
|
13
|
+
container?: string;
|
|
13
14
|
}>, {
|
|
14
15
|
text: any;
|
|
15
16
|
header: any;
|
|
@@ -21,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
22
|
disabled: boolean;
|
|
22
23
|
testId: string;
|
|
23
24
|
distance: string;
|
|
25
|
+
container: string;
|
|
24
26
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
25
27
|
text?: string;
|
|
26
28
|
header?: string;
|
|
@@ -32,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
34
|
disabled?: boolean;
|
|
33
35
|
testId?: string;
|
|
34
36
|
distance?: string | number;
|
|
37
|
+
container?: string;
|
|
35
38
|
}>, {
|
|
36
39
|
text: any;
|
|
37
40
|
header: any;
|
|
@@ -43,12 +46,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
43
46
|
disabled: boolean;
|
|
44
47
|
testId: string;
|
|
45
48
|
distance: string;
|
|
49
|
+
container: string;
|
|
46
50
|
}>>>, {
|
|
47
51
|
header: string;
|
|
48
52
|
text: string;
|
|
49
53
|
theme: string;
|
|
50
54
|
disabled: boolean;
|
|
51
55
|
testId: string;
|
|
56
|
+
container: string;
|
|
52
57
|
delay: number;
|
|
53
58
|
triggers: Triggers[];
|
|
54
59
|
forceShowWithTruncate: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../TooltipV4.
|
|
2
|
+
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */
|
|
5
|
+
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-25809092"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as m, withCtx as r, renderSlot as f, createTextVNode as u, toDisplayString as h, createElementVNode as p } from "vue";
|
|
2
2
|
import y from "./TextWithTitleContent.vue.js";
|
|
3
3
|
import { Tooltip as T } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
|
|
5
5
|
import g from "../../typography/v4/Typography.vue.js";
|
|
6
6
|
import { tooltipCommon as x } from "../common/Tooltip.common.js";
|
|
7
7
|
import { useTestIdAttrs as v } from "../../../utils/testIds.js";
|
|
8
|
-
const
|
|
8
|
+
const b = {
|
|
9
9
|
ref: "container",
|
|
10
10
|
class: "container"
|
|
11
11
|
}, $ = /* @__PURE__ */ c({
|
|
@@ -20,11 +20,12 @@ const I = {
|
|
|
20
20
|
theme: { default: "light-theme-v4" },
|
|
21
21
|
disabled: { type: Boolean, default: !1 },
|
|
22
22
|
testId: { default: "" },
|
|
23
|
-
distance: { default: "10" }
|
|
23
|
+
distance: { default: "10" },
|
|
24
|
+
container: { default: "body" }
|
|
24
25
|
},
|
|
25
26
|
setup(e) {
|
|
26
27
|
const n = e, { textForDisplay: o } = x(n), s = v(n.testId, i);
|
|
27
|
-
return (a,
|
|
28
|
+
return (a, I) => (l(), d(t(T), m({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
|
|
28
29
|
theme: e.theme,
|
|
29
30
|
"no-auto-focus": "",
|
|
30
31
|
triggers: e.triggers,
|
|
@@ -54,7 +55,7 @@ const I = {
|
|
|
54
55
|
], !0)
|
|
55
56
|
]),
|
|
56
57
|
default: r(() => [
|
|
57
|
-
p("div",
|
|
58
|
+
p("div", b, [
|
|
58
59
|
f(a.$slots, "default", {}, void 0, !0)
|
|
59
60
|
], 512)
|
|
60
61
|
]),
|