@ironsource/shared-ui 2.1.3-rc.10 → 2.1.3-rc.12
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_f9d4e49d_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_e36c9442_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +29 -26
- package/components/autocomplete/Autocomplete.vue.d.ts +117 -0
- package/components/autocomplete/Autocomplete.vue.js +7 -0
- package/components/autocomplete/Autocomplete.vue2.js +84 -0
- package/components/autocomplete/index.d.ts +366 -0
- package/components/autocomplete/index.js +6 -0
- package/components/checkbox/v3/index.d.ts +12 -12
- package/components/checkbox/v4/index.d.ts +12 -12
- package/components/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dialog/v4/index.d.ts +16 -16
- package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
- package/components/dropdown/v3/index.d.ts +159 -159
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/DropdownV4.vue.d.ts +13 -13
- package/components/dropdown/v4/index.d.ts +573 -573
- package/components/filterDropdown/index.d.ts +8 -8
- package/components/forms/FormRow.vue.js +2 -2
- package/components/forms/FormRow.vue2.js +9 -9
- package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
- package/components/includeExclude/index.d.ts +168 -168
- package/components/input/v3/Input.vue.d.ts +3 -3
- package/components/input/v3/index.d.ts +82 -82
- package/components/input/v4/TextField.vue.d.ts +6 -6
- package/components/input/v4/index.d.ts +115 -115
- package/components/table/common/Table.types.d.ts +3 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -2
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +129 -123
- package/components/table/v4/HelpIcon.vue.d.ts +40 -0
- package/components/table/v4/HelpIcon.vue.js +7 -0
- package/components/table/v4/HelpIcon.vue2.js +32 -0
- package/components/table/v4/index.d.ts +39 -39
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/index.d.ts +20 -20
- package/components/textArea/v4/TextAreaV4.vue.d.ts +3 -3
- package/components/textArea/v4/index.d.ts +23 -23
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +9 -9
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +28 -28
- package/index.d.ts +1869 -1868
- package/index.js +74 -70
- package/package.json +5 -1
- package/testids/index.d.ts +2 -1
- package/testids/index.js +10 -10
- package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +0 -1
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_9b108af3_lang.css"; import { defineComponent as se, useCssVars as ae, unref as e, useSlots as ie, computed as g, openBlock as i, createElementBlock as l, createElementVNode as u, normalizeStyle as x, normalizeClass as y, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as le, createCommentVNode as r, Fragment as B, renderList as I, createBlock as z, mergeProps as de } from "vue";
|
|
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";
|
|
5
5
|
import D from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import { TableTestIdModifiers as f } from "../../../testids/index.js";
|
|
7
7
|
import { tableCommon as ce } from "../common/Table.common.js";
|
|
8
8
|
import re from "./SortIcon.vue.js";
|
|
9
|
-
import ue from "./
|
|
10
|
-
import he from "
|
|
11
|
-
import
|
|
12
|
-
|
|
9
|
+
import ue from "./HelpIcon.vue.js";
|
|
10
|
+
import he from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import ye from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as fe } from "@vueuse/core";
|
|
13
|
+
const Se = ["data-testid"], me = ["data-testid"], ke = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = { class: "search-wrapper" }, $e = ["data-testid"], Re = ["data-testid"], xe = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "checkbox-cell"
|
|
15
16
|
}, Te = {
|
|
16
17
|
key: 1,
|
|
17
18
|
class: "expand-toggle-cell"
|
|
18
|
-
}, Ce = ["onClick"],
|
|
19
|
+
}, Ce = ["onClick"], Ee = { class: "table-head-container" }, Be = ["data-testid"], Ie = ["onMouseenter"], pe = {
|
|
19
20
|
key: 0,
|
|
20
21
|
class: "checkbox-cell"
|
|
21
22
|
}, we = {
|
|
22
23
|
key: 1,
|
|
23
24
|
class: "expand-toggle-cell"
|
|
24
|
-
},
|
|
25
|
+
}, Pe = {
|
|
25
26
|
key: 2,
|
|
26
27
|
class: "expanded-row"
|
|
27
|
-
},
|
|
28
|
+
}, Ve = { key: 1 }, He = {
|
|
28
29
|
key: 0,
|
|
29
30
|
class: "table-footer"
|
|
30
|
-
},
|
|
31
|
+
}, We = /* @__PURE__ */ se({
|
|
31
32
|
__name: "DataGrid",
|
|
32
33
|
props: {
|
|
33
34
|
title: { default: "" },
|
|
@@ -59,38 +60,38 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
59
60
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "saveRow", "loadMore"],
|
|
60
61
|
setup(s, { emit: S }) {
|
|
61
62
|
const o = s;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
63
|
+
ae((a) => ({
|
|
64
|
+
"634e78fd": s.zIndexBase,
|
|
65
|
+
"279a8c9e": e(J),
|
|
66
|
+
"7237246a": e(L),
|
|
67
|
+
"79cce51c": e(q)
|
|
67
68
|
}));
|
|
68
|
-
const
|
|
69
|
-
list:
|
|
69
|
+
const v = ie(), {
|
|
70
|
+
list: H,
|
|
70
71
|
containerProps: U,
|
|
71
72
|
wrapperProps: G,
|
|
72
|
-
activeRow:
|
|
73
|
-
gridColumnTemplate:
|
|
74
|
-
toggleSortOrder:
|
|
75
|
-
columnsStickyPositions:
|
|
76
|
-
hasSearchSlot:
|
|
77
|
-
containerStyle:
|
|
78
|
-
onScroll:
|
|
79
|
-
savingRows:
|
|
80
|
-
hasExpandSlot:
|
|
81
|
-
toggleExpandRow:
|
|
82
|
-
cssRowHeight:
|
|
83
|
-
cssExpandGridCol:
|
|
84
|
-
isRowExpanded:
|
|
85
|
-
hasCheckboxes:
|
|
86
|
-
activeMenuRow:
|
|
87
|
-
} = ce(o, S),
|
|
73
|
+
activeRow: w,
|
|
74
|
+
gridColumnTemplate: L,
|
|
75
|
+
toggleSortOrder: Y,
|
|
76
|
+
columnsStickyPositions: M,
|
|
77
|
+
hasSearchSlot: Q,
|
|
78
|
+
containerStyle: W,
|
|
79
|
+
onScroll: A,
|
|
80
|
+
savingRows: N,
|
|
81
|
+
hasExpandSlot: b,
|
|
82
|
+
toggleExpandRow: j,
|
|
83
|
+
cssRowHeight: q,
|
|
84
|
+
cssExpandGridCol: J,
|
|
85
|
+
isRowExpanded: P,
|
|
86
|
+
hasCheckboxes: F,
|
|
87
|
+
activeMenuRow: K
|
|
88
|
+
} = ce(o, S), O = g(() => !!v.footer), m = fe(o, "search", S), X = g(() => o.selection.length || 0), V = g(() => {
|
|
88
89
|
const a = o.rows.map((d, t) => o.getRowId(d, t));
|
|
89
90
|
return a.length && a.every((d) => $(d));
|
|
90
|
-
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1,
|
|
91
|
+
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, Z = (a) => {
|
|
91
92
|
$(a) ? R(o.selection.filter((d) => d !== a)) : R([...o.selection, a]);
|
|
92
|
-
},
|
|
93
|
-
if (
|
|
93
|
+
}, _ = () => {
|
|
94
|
+
if (V.value)
|
|
94
95
|
R([]);
|
|
95
96
|
else {
|
|
96
97
|
const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
|
|
@@ -98,72 +99,72 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
98
99
|
}
|
|
99
100
|
}, R = (a) => {
|
|
100
101
|
S("update:selection", a);
|
|
101
|
-
},
|
|
102
|
-
() => o.emptyStateVariant ?? (
|
|
103
|
-
),
|
|
104
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
102
|
+
}, ee = g(
|
|
103
|
+
() => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
|
|
104
|
+
), te = g(
|
|
105
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
|
|
105
106
|
);
|
|
106
107
|
return (a, d) => (i(), l("div", {
|
|
107
108
|
class: "table-container",
|
|
108
109
|
"data-testid": `${s.testId}-${e(f).CONTAINER}`,
|
|
109
|
-
onMouseleave: d[2] || (d[2] = (t) =>
|
|
110
|
+
onMouseleave: d[2] || (d[2] = (t) => w.value = null)
|
|
110
111
|
}, [
|
|
111
|
-
|
|
112
|
+
u("table", {
|
|
112
113
|
ref: e(U).ref,
|
|
113
|
-
style:
|
|
114
|
+
style: x(e(W)),
|
|
114
115
|
class: y({
|
|
115
|
-
hasFooter: e(
|
|
116
|
+
hasFooter: e(O)
|
|
116
117
|
}),
|
|
117
118
|
"data-testid": `${s.testId}-${e(f).TABLE}`,
|
|
118
119
|
onScrollPassive: d[1] || (d[1] = //@ts-ignore
|
|
119
|
-
(...t) => e(
|
|
120
|
+
(...t) => e(A) && e(A)(...t))
|
|
120
121
|
}, [
|
|
121
|
-
s.title || e(
|
|
122
|
+
s.title || e(v).title || e(Q) || e(v)["table-header-actions"] ? (i(), l("div", {
|
|
122
123
|
key: 0,
|
|
123
124
|
class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
124
125
|
"data-testid": `${s.testId}-${e(f).HEADER}`
|
|
125
126
|
}, [
|
|
126
|
-
|
|
127
|
+
u("div", {
|
|
127
128
|
class: "table-title",
|
|
128
129
|
"data-testid": `${s.testId}-${e(f).TITLE}`
|
|
129
130
|
}, [
|
|
130
131
|
c(a.$slots, "title", {}, () => [
|
|
131
|
-
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
h(e(p), { variant: "h3" }, {
|
|
133
|
+
default: T(() => [
|
|
134
|
+
C(E(s.title), 1)
|
|
134
135
|
]),
|
|
135
136
|
_: 1
|
|
136
137
|
})
|
|
137
138
|
], !0)
|
|
138
|
-
], 8,
|
|
139
|
-
|
|
139
|
+
], 8, ge),
|
|
140
|
+
u("div", {
|
|
140
141
|
class: "table-header-right",
|
|
141
142
|
"data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
|
|
142
143
|
}, [
|
|
143
144
|
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
modelValue: e(
|
|
147
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) =>
|
|
145
|
+
u("div", be, [
|
|
146
|
+
h(e(ye), {
|
|
147
|
+
modelValue: e(m),
|
|
148
|
+
"onUpdate:modelValue": d[0] || (d[0] = (t) => le(m) ? m.value = t : null),
|
|
148
149
|
placeholder: s.searchPlaceholder,
|
|
149
150
|
"auto-focus": s.searchAutoFocus,
|
|
150
151
|
"test-id": s.testId
|
|
151
152
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
152
153
|
])
|
|
153
|
-
], !0) :
|
|
154
|
-
], 8,
|
|
155
|
-
e(
|
|
154
|
+
], !0) : r("", !0)
|
|
155
|
+
], 8, ve),
|
|
156
|
+
e(v)["table-header-actions"] ? (i(), l("div", {
|
|
156
157
|
key: 0,
|
|
157
158
|
class: "table-header-actions",
|
|
158
159
|
"data-testid": `${s.testId}-${e(f).ACTIONS}`
|
|
159
160
|
}, [
|
|
160
161
|
c(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
161
|
-
], 8,
|
|
162
|
-
], 10, ke)) :
|
|
163
|
-
|
|
162
|
+
], 8, $e)) : r("", !0)
|
|
163
|
+
], 10, ke)) : r("", !0),
|
|
164
|
+
u("thead", {
|
|
164
165
|
class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
165
166
|
}, [
|
|
166
|
-
|
|
167
|
+
u("div", {
|
|
167
168
|
class: "sections",
|
|
168
169
|
"data-testid": `${s.testId}-${e(f).SECTIONS}`
|
|
169
170
|
}, [
|
|
@@ -172,32 +173,32 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
172
173
|
class: y(["section-container", { sticky: t.isSticky }])
|
|
173
174
|
}, [
|
|
174
175
|
c(a.$slots, `section-${t.id}`, {}, () => [
|
|
175
|
-
|
|
176
|
-
style:
|
|
176
|
+
u("div", {
|
|
177
|
+
style: x({ width: t.width + "px" }),
|
|
177
178
|
class: y({ section: !0 })
|
|
178
179
|
}, [
|
|
179
|
-
|
|
180
|
-
default:
|
|
181
|
-
|
|
180
|
+
h(e(p), { variant: "body2" }, {
|
|
181
|
+
default: T(() => [
|
|
182
|
+
C(E(t.title), 1)
|
|
182
183
|
]),
|
|
183
184
|
_: 2
|
|
184
185
|
}, 1024)
|
|
185
186
|
], 4)
|
|
186
187
|
], !0)
|
|
187
188
|
], 2))), 128))
|
|
188
|
-
], 8,
|
|
189
|
-
|
|
190
|
-
e(
|
|
189
|
+
], 8, Re),
|
|
190
|
+
u("tr", null, [
|
|
191
|
+
e(F) ? (i(), l("th", xe, [
|
|
191
192
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
192
|
-
|
|
193
|
+
h(e(D), {
|
|
193
194
|
disabled: s.isLoading,
|
|
194
|
-
"is-checked": e(
|
|
195
|
-
"is-indeterminate": !e(
|
|
196
|
-
"onUpdate:isChecked":
|
|
195
|
+
"is-checked": e(V),
|
|
196
|
+
"is-indeterminate": !e(V) && e(X) > 0,
|
|
197
|
+
"onUpdate:isChecked": _
|
|
197
198
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
198
199
|
], !0)
|
|
199
|
-
])) :
|
|
200
|
-
e(
|
|
200
|
+
])) : r("", !0),
|
|
201
|
+
e(b) ? (i(), l("th", Te)) : r("", !0),
|
|
201
202
|
(i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
|
|
202
203
|
key: t.id,
|
|
203
204
|
class: y({
|
|
@@ -208,56 +209,61 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
208
209
|
isSortable: t.isSortable,
|
|
209
210
|
[`column-${t.id}`]: !0
|
|
210
211
|
}),
|
|
211
|
-
style:
|
|
212
|
-
onClick: (
|
|
212
|
+
style: x(t.isSticky ? e(M)[t.id] : null),
|
|
213
|
+
onClick: (k) => t.isSortable ? e(Y)(t) : null
|
|
213
214
|
}, [
|
|
214
|
-
|
|
215
|
+
u("div", Ee, [
|
|
215
216
|
c(a.$slots, `header-${t.id}`, { column: t }, () => [
|
|
216
|
-
|
|
217
|
-
default:
|
|
218
|
-
|
|
217
|
+
h(e(p), { variant: "tableLabel" }, {
|
|
218
|
+
default: T(() => [
|
|
219
|
+
C(E(t.title), 1)
|
|
219
220
|
]),
|
|
220
221
|
_: 2
|
|
221
222
|
}, 1024)
|
|
222
223
|
], !0),
|
|
223
|
-
t.
|
|
224
|
+
t.helpText ? (i(), z(ue, {
|
|
224
225
|
key: 0,
|
|
226
|
+
"hover-help-text": t.helpText,
|
|
227
|
+
"hover-help-text-placement": t.helpTextPlacement
|
|
228
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
|
|
229
|
+
t.isSortable && t.id === s.sort?.sortBy ? (i(), z(re, {
|
|
230
|
+
key: 1,
|
|
225
231
|
"sort-order": s.sort.sortOrder
|
|
226
|
-
}, null, 8, ["sort-order"])) :
|
|
232
|
+
}, null, 8, ["sort-order"])) : r("", !0)
|
|
227
233
|
])
|
|
228
234
|
], 14, Ce))), 128))
|
|
229
235
|
])
|
|
230
236
|
], 2),
|
|
231
|
-
|
|
232
|
-
e(
|
|
237
|
+
u("tbody", null, [
|
|
238
|
+
e(H).length > 0 ? (i(), l("div", de({
|
|
233
239
|
key: 0,
|
|
234
240
|
class: "table-body-wrapper",
|
|
235
241
|
"data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
|
|
236
242
|
}, e(G)), [
|
|
237
|
-
(i(!0), l(B, null, I(e(
|
|
243
|
+
(i(!0), l(B, null, I(e(H), (t) => (i(), l("tr", {
|
|
238
244
|
key: t.index,
|
|
239
245
|
class: y(["table-row", {
|
|
240
|
-
loading: s.isLoading || s.isLoading && !t.data || e(
|
|
241
|
-
active: e(
|
|
242
|
-
activeMenu: e(
|
|
243
|
-
expanded: e(
|
|
246
|
+
loading: s.isLoading || s.isLoading && !t.data || e(N).includes(t.index),
|
|
247
|
+
active: e(w) === t.index,
|
|
248
|
+
activeMenu: e(K) === t.index,
|
|
249
|
+
expanded: e(b) && e(P)(t.index)
|
|
244
250
|
}]),
|
|
245
|
-
onMouseenter: (
|
|
251
|
+
onMouseenter: (k) => w.value = t.index
|
|
246
252
|
}, [
|
|
247
|
-
e(
|
|
248
|
-
|
|
253
|
+
e(F) ? (i(), l("td", pe, [
|
|
254
|
+
h(e(D), {
|
|
249
255
|
"is-checked": $(s.getRowId(t.data, t.index)),
|
|
250
256
|
size: "sm",
|
|
251
|
-
"onUpdate:isChecked": (
|
|
257
|
+
"onUpdate:isChecked": (k) => Z(s.getRowId(t.data, t.index))
|
|
252
258
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
253
|
-
])) :
|
|
254
|
-
e(
|
|
255
|
-
|
|
256
|
-
expanded: e(
|
|
257
|
-
onClick: (
|
|
259
|
+
])) : r("", !0),
|
|
260
|
+
e(b) ? (i(), l("td", we, [
|
|
261
|
+
h(he, {
|
|
262
|
+
expanded: e(P)(t.index),
|
|
263
|
+
onClick: (k) => e(j)(t.index, k)
|
|
258
264
|
}, null, 8, ["expanded", "onClick"])
|
|
259
|
-
])) :
|
|
260
|
-
(i(!0), l(B, null, I(s.columns, (
|
|
265
|
+
])) : r("", !0),
|
|
266
|
+
(i(!0), l(B, null, I(s.columns, (k, n) => (i(), l("td", {
|
|
261
267
|
key: n,
|
|
262
268
|
class: y({
|
|
263
269
|
sticky: s.columns[n].isSticky,
|
|
@@ -266,8 +272,8 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
266
272
|
isTextRight: s.columns[n].isTextRight,
|
|
267
273
|
[`column-${s.columns[n].id}`]: !0
|
|
268
274
|
}),
|
|
269
|
-
style:
|
|
270
|
-
s.columns[n].isSticky ? e(
|
|
275
|
+
style: x(
|
|
276
|
+
s.columns[n].isSticky ? e(M)[s.columns[n].id] : null
|
|
271
277
|
)
|
|
272
278
|
}, [
|
|
273
279
|
!s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
|
|
@@ -276,48 +282,48 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
276
282
|
}, [
|
|
277
283
|
c(a.$slots, `cell-${s.columns[n].id}`, {
|
|
278
284
|
cell: t.data[n],
|
|
279
|
-
isLoading: e(
|
|
285
|
+
isLoading: e(N).includes(t.index),
|
|
280
286
|
cellIndex: n,
|
|
281
287
|
row: t,
|
|
282
288
|
rowIndex: t.index
|
|
283
289
|
}, () => [
|
|
284
|
-
|
|
285
|
-
default:
|
|
286
|
-
|
|
290
|
+
h(e(p), { variant: "body1" }, {
|
|
291
|
+
default: T(() => [
|
|
292
|
+
C(E(t.data[n]), 1)
|
|
287
293
|
]),
|
|
288
294
|
_: 2
|
|
289
295
|
}, 1024)
|
|
290
296
|
], !0)
|
|
291
297
|
], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
|
|
292
|
-
|
|
298
|
+
h(e(oe), { round: "" })
|
|
293
299
|
], !0)
|
|
294
300
|
], 6))), 128)),
|
|
295
|
-
e(
|
|
301
|
+
e(b) && e(P)(t.index) ? (i(), l("div", Pe, [
|
|
296
302
|
c(a.$slots, "expanded", {
|
|
297
303
|
row: t,
|
|
298
|
-
gridColumnTemplate: e(
|
|
304
|
+
gridColumnTemplate: e(L)
|
|
299
305
|
}, void 0, !0)
|
|
300
|
-
])) :
|
|
301
|
-
], 42,
|
|
302
|
-
], 16,
|
|
306
|
+
])) : r("", !0)
|
|
307
|
+
], 42, Ie))), 128))
|
|
308
|
+
], 16, Be)) : (i(), l("div", Ve, [
|
|
303
309
|
c(a.$slots, "empty-state", {}, () => [
|
|
304
|
-
|
|
310
|
+
h(e(ne), {
|
|
305
311
|
class: "empty-state",
|
|
306
312
|
title: s.emptyStateTitle,
|
|
307
|
-
subtitle: e(
|
|
308
|
-
variant: e(
|
|
313
|
+
subtitle: e(te),
|
|
314
|
+
variant: e(ee),
|
|
309
315
|
"test-id": `${s.testId}-${e(f).EMPTY_STATE}`
|
|
310
316
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
311
317
|
], !0)
|
|
312
318
|
]))
|
|
313
319
|
])
|
|
314
|
-
], 46,
|
|
315
|
-
e(
|
|
320
|
+
], 46, me),
|
|
321
|
+
e(O) ? (i(), l("div", He, [
|
|
316
322
|
c(a.$slots, "footer", {}, void 0, !0)
|
|
317
|
-
])) :
|
|
318
|
-
], 40,
|
|
323
|
+
])) : r("", !0)
|
|
324
|
+
], 40, Se));
|
|
319
325
|
}
|
|
320
326
|
});
|
|
321
327
|
export {
|
|
322
|
-
|
|
328
|
+
We as default
|
|
323
329
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
hoverHelpText?: string;
|
|
4
|
+
hoverHelpTextPlacement?: TooltipPositions;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}>, {
|
|
7
|
+
hoverHelpText: string;
|
|
8
|
+
hoverHelpTextPlacement: string;
|
|
9
|
+
testId: string;
|
|
10
|
+
}>, {}, 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<{
|
|
11
|
+
hoverHelpText?: string;
|
|
12
|
+
hoverHelpTextPlacement?: TooltipPositions;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}>, {
|
|
15
|
+
hoverHelpText: string;
|
|
16
|
+
hoverHelpTextPlacement: string;
|
|
17
|
+
testId: string;
|
|
18
|
+
}>>>, {
|
|
19
|
+
testId: string;
|
|
20
|
+
hoverHelpText: string;
|
|
21
|
+
hoverHelpTextPlacement: TooltipPositions;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./HelpIcon.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-7a611779"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "../../../HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css"; import { defineComponent as o, openBlock as n, createBlock as l, unref as t, withCtx as r, createVNode as a } from "vue";
|
|
2
|
+
import c from "../../icon/v3/Icon.vue.js";
|
|
3
|
+
import i from "../../tooltip/v4/TooltipV4.vue.js";
|
|
4
|
+
const u = /* @__PURE__ */ o({
|
|
5
|
+
__name: "HelpIcon",
|
|
6
|
+
props: {
|
|
7
|
+
hoverHelpText: { default: "" },
|
|
8
|
+
hoverHelpTextPlacement: { default: "top" },
|
|
9
|
+
testId: { default: "" }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (m, p) => (n(), l(t(i), {
|
|
13
|
+
class: "table-help-icon",
|
|
14
|
+
triggers: ["hover"],
|
|
15
|
+
text: e.hoverHelpText,
|
|
16
|
+
placement: e.hoverHelpTextPlacement,
|
|
17
|
+
"test-id": e.testId
|
|
18
|
+
}, {
|
|
19
|
+
default: r(() => [
|
|
20
|
+
a(t(c), {
|
|
21
|
+
class: "info-icon",
|
|
22
|
+
name: "question",
|
|
23
|
+
"font-size": "sm"
|
|
24
|
+
})
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
}, 8, ["text", "placement", "test-id"]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
u as default
|
|
32
|
+
};
|