@ironsource/shared-ui 2.1.3-rc.9 → 2.1.3
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/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_2e91704b_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_8ffac784_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_fa761e4d_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/OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +14 -7
- package/components/alert/Alert.vue.js +2 -2
- package/components/alert/Alert.vue2.js +30 -29
- package/components/alert/index.d.ts +176 -38
- package/components/appHeader/AppHeader.vue.d.ts +5 -0
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +49 -37
- package/components/appHeader/index.d.ts +9 -0
- package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
- package/components/autocomplete/Autocomplete.vue.js +7 -0
- package/components/autocomplete/Autocomplete.vue2.js +99 -0
- package/components/autocomplete/index.d.ts +459 -0
- package/components/autocomplete/index.js +6 -0
- package/components/button/v4/ButtonV4.vue2.js +90 -1
- 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/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +2 -2
- package/components/dialog/v4/index.d.ts +16 -16
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +34 -33
- 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/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +31 -31
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +96 -86
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
- package/components/dropdown/v4/index.d.ts +705 -610
- package/components/dropdown/v4/index.js +16 -10
- package/components/filterDropdown/index.d.ts +8 -8
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- 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/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +2 -2
- package/components/input/v4/index.d.ts +115 -115
- package/components/multibar/MultiBarMenu.vue2.js +13 -11
- 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 +147 -137
- package/components/table/v4/DataGridMenu.vue2.js +13 -11
- 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/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +4 -4
- 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 +2216 -1922
- package/index.js +74 -70
- package/package.json +5 -3
- package/testids/index.d.ts +3 -1
- package/testids/index.js +10 -10
- package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +0 -1
- 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/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab86b0a_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +0 -1
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_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 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
|
+
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
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import ue from "./
|
|
10
|
-
import he from "
|
|
11
|
-
import
|
|
12
|
-
|
|
7
|
+
import { tableCommon as re } from "../common/Table.common.js";
|
|
8
|
+
import ce from "./SortIcon.vue.js";
|
|
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
|
+
}, Me = {
|
|
25
26
|
key: 2,
|
|
26
27
|
class: "expanded-row"
|
|
27
|
-
},
|
|
28
|
+
}, Pe = { key: 1 }, Ve = {
|
|
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,42 @@ 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
|
+
"05ee006e": s.zIndexBase,
|
|
65
|
+
"7ce7f77d": e(J),
|
|
66
|
+
aad7c194: e(H),
|
|
67
|
+
"4f64dd84": e(q)
|
|
67
68
|
}));
|
|
68
|
-
const
|
|
69
|
-
list:
|
|
69
|
+
const v = ie(), {
|
|
70
|
+
list: V,
|
|
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
|
-
} =
|
|
73
|
+
activeRow: w,
|
|
74
|
+
gridColumnTemplate: H,
|
|
75
|
+
toggleSortOrder: Y,
|
|
76
|
+
columnsStickyPositions: L,
|
|
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: M,
|
|
86
|
+
hasCheckboxes: F,
|
|
87
|
+
activeMenuRow: K
|
|
88
|
+
} = re(o, S), O = g(() => !!v.footer), m = fe(o, "search", S), X = g(() => o.selection.length || 0), P = 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) ? R(
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
}), $ = (a) => o.selection.findIndex((d) => o.selectedMatcher(a, d)) !== -1, Z = (a) => {
|
|
92
|
+
$(a) ? R(
|
|
93
|
+
o.selection.filter(
|
|
94
|
+
(d) => !o.selectedMatcher(a, d)
|
|
95
|
+
)
|
|
96
|
+
) : R([...o.selection, a]);
|
|
97
|
+
}, _ = () => {
|
|
98
|
+
if (P.value)
|
|
94
99
|
R([]);
|
|
95
100
|
else {
|
|
96
101
|
const a = o.rows.map((d, t) => o.getRowId(d, t)).filter((d) => !$(d));
|
|
@@ -98,72 +103,72 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
98
103
|
}
|
|
99
104
|
}, R = (a) => {
|
|
100
105
|
S("update:selection", a);
|
|
101
|
-
},
|
|
102
|
-
() => o.emptyStateVariant ?? (
|
|
103
|
-
),
|
|
104
|
-
() => o.emptyStateSubtitle ? o.emptyStateSubtitle :
|
|
106
|
+
}, ee = g(
|
|
107
|
+
() => o.emptyStateVariant ?? (m.value ? "no-results" : "no-data")
|
|
108
|
+
), te = g(
|
|
109
|
+
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : m.value ? "Search again with different filters" : void 0
|
|
105
110
|
);
|
|
106
111
|
return (a, d) => (i(), l("div", {
|
|
107
112
|
class: "table-container",
|
|
108
113
|
"data-testid": `${s.testId}-${e(f).CONTAINER}`,
|
|
109
|
-
onMouseleave: d[2] || (d[2] = (t) =>
|
|
114
|
+
onMouseleave: d[2] || (d[2] = (t) => w.value = null)
|
|
110
115
|
}, [
|
|
111
|
-
|
|
116
|
+
u("table", {
|
|
112
117
|
ref: e(U).ref,
|
|
113
|
-
style:
|
|
118
|
+
style: x(e(W)),
|
|
114
119
|
class: y({
|
|
115
|
-
hasFooter: e(
|
|
120
|
+
hasFooter: e(O)
|
|
116
121
|
}),
|
|
117
122
|
"data-testid": `${s.testId}-${e(f).TABLE}`,
|
|
118
123
|
onScrollPassive: d[1] || (d[1] = //@ts-ignore
|
|
119
|
-
(...t) => e(
|
|
124
|
+
(...t) => e(A) && e(A)(...t))
|
|
120
125
|
}, [
|
|
121
|
-
s.title || e(
|
|
126
|
+
s.title || e(v).title || e(Q) || e(v)["table-header-actions"] ? (i(), l("div", {
|
|
122
127
|
key: 0,
|
|
123
128
|
class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
124
129
|
"data-testid": `${s.testId}-${e(f).HEADER}`
|
|
125
130
|
}, [
|
|
126
|
-
|
|
131
|
+
u("div", {
|
|
127
132
|
class: "table-title",
|
|
128
133
|
"data-testid": `${s.testId}-${e(f).TITLE}`
|
|
129
134
|
}, [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
default:
|
|
133
|
-
|
|
135
|
+
r(a.$slots, "title", {}, () => [
|
|
136
|
+
h(e(p), { variant: "h3" }, {
|
|
137
|
+
default: T(() => [
|
|
138
|
+
C(E(s.title), 1)
|
|
134
139
|
]),
|
|
135
140
|
_: 1
|
|
136
141
|
})
|
|
137
142
|
], !0)
|
|
138
|
-
], 8,
|
|
139
|
-
|
|
143
|
+
], 8, ge),
|
|
144
|
+
u("div", {
|
|
140
145
|
class: "table-header-right",
|
|
141
146
|
"data-testid": `${s.testId}-${e(f).HEADER_RIGHT}`
|
|
142
147
|
}, [
|
|
143
|
-
s.showSearch ?
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
modelValue: e(
|
|
147
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) =>
|
|
148
|
+
s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
|
|
149
|
+
u("div", be, [
|
|
150
|
+
h(e(ye), {
|
|
151
|
+
modelValue: e(m),
|
|
152
|
+
"onUpdate:modelValue": d[0] || (d[0] = (t) => le(m) ? m.value = t : null),
|
|
148
153
|
placeholder: s.searchPlaceholder,
|
|
149
154
|
"auto-focus": s.searchAutoFocus,
|
|
150
155
|
"test-id": s.testId
|
|
151
156
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
152
157
|
])
|
|
153
|
-
], !0) :
|
|
154
|
-
], 8,
|
|
155
|
-
e(
|
|
158
|
+
], !0) : c("", !0)
|
|
159
|
+
], 8, ve),
|
|
160
|
+
e(v)["table-header-actions"] ? (i(), l("div", {
|
|
156
161
|
key: 0,
|
|
157
162
|
class: "table-header-actions",
|
|
158
163
|
"data-testid": `${s.testId}-${e(f).ACTIONS}`
|
|
159
164
|
}, [
|
|
160
|
-
|
|
161
|
-
], 8,
|
|
162
|
-
], 10, ke)) :
|
|
163
|
-
|
|
165
|
+
r(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
166
|
+
], 8, $e)) : c("", !0)
|
|
167
|
+
], 10, ke)) : c("", !0),
|
|
168
|
+
u("thead", {
|
|
164
169
|
class: y({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
165
170
|
}, [
|
|
166
|
-
|
|
171
|
+
u("div", {
|
|
167
172
|
class: "sections",
|
|
168
173
|
"data-testid": `${s.testId}-${e(f).SECTIONS}`
|
|
169
174
|
}, [
|
|
@@ -171,33 +176,33 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
171
176
|
key: t.id,
|
|
172
177
|
class: y(["section-container", { sticky: t.isSticky }])
|
|
173
178
|
}, [
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
style:
|
|
179
|
+
r(a.$slots, `section-${t.id}`, {}, () => [
|
|
180
|
+
u("div", {
|
|
181
|
+
style: x({ width: t.width + "px" }),
|
|
177
182
|
class: y({ section: !0 })
|
|
178
183
|
}, [
|
|
179
|
-
|
|
180
|
-
default:
|
|
181
|
-
|
|
184
|
+
h(e(p), { variant: "body2" }, {
|
|
185
|
+
default: T(() => [
|
|
186
|
+
C(E(t.title), 1)
|
|
182
187
|
]),
|
|
183
188
|
_: 2
|
|
184
189
|
}, 1024)
|
|
185
190
|
], 4)
|
|
186
191
|
], !0)
|
|
187
192
|
], 2))), 128))
|
|
188
|
-
], 8,
|
|
189
|
-
|
|
190
|
-
e(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
], 8, Re),
|
|
194
|
+
u("tr", null, [
|
|
195
|
+
e(F) ? (i(), l("th", xe, [
|
|
196
|
+
r(a.$slots, "select-all-checkbox", {}, () => [
|
|
197
|
+
h(e(D), {
|
|
193
198
|
disabled: s.isLoading,
|
|
194
|
-
"is-checked": e(
|
|
195
|
-
"is-indeterminate": !e(
|
|
196
|
-
"onUpdate:isChecked":
|
|
199
|
+
"is-checked": e(P),
|
|
200
|
+
"is-indeterminate": !e(P) && e(X) > 0,
|
|
201
|
+
"onUpdate:isChecked": _
|
|
197
202
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
198
203
|
], !0)
|
|
199
|
-
])) :
|
|
200
|
-
e(
|
|
204
|
+
])) : c("", !0),
|
|
205
|
+
e(b) ? (i(), l("th", Te)) : c("", !0),
|
|
201
206
|
(i(!0), l(B, null, I(s.columns, (t) => (i(), l("th", {
|
|
202
207
|
key: t.id,
|
|
203
208
|
class: y({
|
|
@@ -208,56 +213,61 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
208
213
|
isSortable: t.isSortable,
|
|
209
214
|
[`column-${t.id}`]: !0
|
|
210
215
|
}),
|
|
211
|
-
style:
|
|
212
|
-
onClick: (
|
|
216
|
+
style: x(t.isSticky ? e(L)[t.id] : null),
|
|
217
|
+
onClick: (k) => t.isSortable ? e(Y)(t) : null
|
|
213
218
|
}, [
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
default:
|
|
218
|
-
|
|
219
|
+
u("div", Ee, [
|
|
220
|
+
r(a.$slots, `header-${t.id}`, { column: t }, () => [
|
|
221
|
+
h(e(p), { variant: "tableLabel" }, {
|
|
222
|
+
default: T(() => [
|
|
223
|
+
C(E(t.title), 1)
|
|
219
224
|
]),
|
|
220
225
|
_: 2
|
|
221
226
|
}, 1024)
|
|
222
227
|
], !0),
|
|
223
|
-
t.
|
|
228
|
+
t.helpText ? (i(), z(ue, {
|
|
224
229
|
key: 0,
|
|
230
|
+
"hover-help-text": t.helpText,
|
|
231
|
+
"hover-help-text-placement": t.helpTextPlacement
|
|
232
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : c("", !0),
|
|
233
|
+
t.isSortable && t.id === s.sort?.sortBy ? (i(), z(ce, {
|
|
234
|
+
key: 1,
|
|
225
235
|
"sort-order": s.sort.sortOrder
|
|
226
|
-
}, null, 8, ["sort-order"])) :
|
|
236
|
+
}, null, 8, ["sort-order"])) : c("", !0)
|
|
227
237
|
])
|
|
228
238
|
], 14, Ce))), 128))
|
|
229
239
|
])
|
|
230
240
|
], 2),
|
|
231
|
-
|
|
232
|
-
e(
|
|
241
|
+
u("tbody", null, [
|
|
242
|
+
e(V).length > 0 ? (i(), l("div", de({
|
|
233
243
|
key: 0,
|
|
234
244
|
class: "table-body-wrapper",
|
|
235
245
|
"data-testid": `${s.testId}-${e(f).BODY_WRAPPER}`
|
|
236
246
|
}, e(G)), [
|
|
237
|
-
(i(!0), l(B, null, I(e(
|
|
247
|
+
(i(!0), l(B, null, I(e(V), (t) => (i(), l("tr", {
|
|
238
248
|
key: t.index,
|
|
239
249
|
class: y(["table-row", {
|
|
240
|
-
loading: s.isLoading || s.isLoading && !t.data || e(
|
|
241
|
-
active: e(
|
|
242
|
-
activeMenu: e(
|
|
243
|
-
expanded: e(
|
|
250
|
+
loading: s.isLoading || s.isLoading && !t.data || e(N).includes(t.index),
|
|
251
|
+
active: e(w) === t.index,
|
|
252
|
+
activeMenu: e(K) === t.index,
|
|
253
|
+
expanded: e(b) && e(M)(t.index)
|
|
244
254
|
}]),
|
|
245
|
-
onMouseenter: (
|
|
255
|
+
onMouseenter: (k) => w.value = t.index
|
|
246
256
|
}, [
|
|
247
|
-
e(
|
|
248
|
-
|
|
257
|
+
e(F) ? (i(), l("td", pe, [
|
|
258
|
+
h(e(D), {
|
|
249
259
|
"is-checked": $(s.getRowId(t.data, t.index)),
|
|
250
260
|
size: "sm",
|
|
251
|
-
"onUpdate:isChecked": (
|
|
261
|
+
"onUpdate:isChecked": (k) => Z(s.getRowId(t.data, t.index))
|
|
252
262
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
253
|
-
])) :
|
|
254
|
-
e(
|
|
255
|
-
|
|
256
|
-
expanded: e(
|
|
257
|
-
onClick: (
|
|
263
|
+
])) : c("", !0),
|
|
264
|
+
e(b) ? (i(), l("td", we, [
|
|
265
|
+
h(he, {
|
|
266
|
+
expanded: e(M)(t.index),
|
|
267
|
+
onClick: (k) => e(j)(t.index, k)
|
|
258
268
|
}, null, 8, ["expanded", "onClick"])
|
|
259
|
-
])) :
|
|
260
|
-
(i(!0), l(B, null, I(s.columns, (
|
|
269
|
+
])) : c("", !0),
|
|
270
|
+
(i(!0), l(B, null, I(s.columns, (k, n) => (i(), l("td", {
|
|
261
271
|
key: n,
|
|
262
272
|
class: y({
|
|
263
273
|
sticky: s.columns[n].isSticky,
|
|
@@ -266,58 +276,58 @@ const fe = ["data-testid"], Se = ["data-testid"], ke = ["data-testid"], me = ["d
|
|
|
266
276
|
isTextRight: s.columns[n].isTextRight,
|
|
267
277
|
[`column-${s.columns[n].id}`]: !0
|
|
268
278
|
}),
|
|
269
|
-
style:
|
|
270
|
-
s.columns[n].isSticky ? e(
|
|
279
|
+
style: x(
|
|
280
|
+
s.columns[n].isSticky ? e(L)[s.columns[n].id] : null
|
|
271
281
|
)
|
|
272
282
|
}, [
|
|
273
283
|
!s.isLoading || s.isLoading && t.data[n] ? (i(), l("div", {
|
|
274
284
|
key: 0,
|
|
275
285
|
class: y(["table-cell", { last: n === t.data.length - 1 }])
|
|
276
286
|
}, [
|
|
277
|
-
|
|
287
|
+
r(a.$slots, `cell-${s.columns[n].id}`, {
|
|
278
288
|
cell: t.data[n],
|
|
279
|
-
isLoading: e(
|
|
289
|
+
isLoading: e(N).includes(t.index),
|
|
280
290
|
cellIndex: n,
|
|
281
291
|
row: t,
|
|
282
292
|
rowIndex: t.index
|
|
283
293
|
}, () => [
|
|
284
|
-
|
|
285
|
-
default:
|
|
286
|
-
|
|
294
|
+
h(e(p), { variant: "body1" }, {
|
|
295
|
+
default: T(() => [
|
|
296
|
+
C(E(t.data[n]), 1)
|
|
287
297
|
]),
|
|
288
298
|
_: 2
|
|
289
299
|
}, 1024)
|
|
290
300
|
], !0)
|
|
291
|
-
], 2)) :
|
|
292
|
-
|
|
301
|
+
], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
|
|
302
|
+
h(e(oe), { round: "" })
|
|
293
303
|
], !0)
|
|
294
304
|
], 6))), 128)),
|
|
295
|
-
e(
|
|
296
|
-
|
|
305
|
+
e(b) && e(M)(t.index) ? (i(), l("div", Me, [
|
|
306
|
+
r(a.$slots, "expanded", {
|
|
297
307
|
row: t,
|
|
298
|
-
gridColumnTemplate: e(
|
|
308
|
+
gridColumnTemplate: e(H)
|
|
299
309
|
}, void 0, !0)
|
|
300
|
-
])) :
|
|
301
|
-
], 42,
|
|
302
|
-
], 16,
|
|
303
|
-
|
|
304
|
-
|
|
310
|
+
])) : c("", !0)
|
|
311
|
+
], 42, Ie))), 128))
|
|
312
|
+
], 16, Be)) : (i(), l("div", Pe, [
|
|
313
|
+
r(a.$slots, "empty-state", {}, () => [
|
|
314
|
+
h(e(ne), {
|
|
305
315
|
class: "empty-state",
|
|
306
316
|
title: s.emptyStateTitle,
|
|
307
|
-
subtitle: e(
|
|
308
|
-
variant: e(
|
|
317
|
+
subtitle: e(te),
|
|
318
|
+
variant: e(ee),
|
|
309
319
|
"test-id": `${s.testId}-${e(f).EMPTY_STATE}`
|
|
310
320
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
311
321
|
], !0)
|
|
312
322
|
]))
|
|
313
323
|
])
|
|
314
|
-
], 46,
|
|
315
|
-
e(
|
|
316
|
-
|
|
317
|
-
])) :
|
|
318
|
-
], 40,
|
|
324
|
+
], 46, me),
|
|
325
|
+
e(O) ? (i(), l("div", Ve, [
|
|
326
|
+
r(a.$slots, "footer", {}, void 0, !0)
|
|
327
|
+
])) : c("", !0)
|
|
328
|
+
], 40, Se));
|
|
319
329
|
}
|
|
320
330
|
});
|
|
321
331
|
export {
|
|
322
|
-
|
|
332
|
+
We as default
|
|
323
333
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as
|
|
1
|
+
import "../../../DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css"; import { defineComponent as p, onBeforeUnmount as f, openBlock as x, createBlock as w, unref as o, withCtx as n, createVNode as l, createSlots as I, createTextVNode as v, toDisplayString as M } from "vue";
|
|
2
2
|
import g from "../../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
+
import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
7
9
|
import C from "../../dropdown/v4/OptionV4.vue.js";
|
|
8
10
|
import k from "../../icon/v4/IconV4.vue.js";
|
|
9
11
|
import { useTableContext as y } from "../common/TableContext.js";
|
|
10
|
-
const
|
|
12
|
+
const T = /* @__PURE__ */ p({
|
|
11
13
|
__name: "DataGridMenu",
|
|
12
14
|
props: {
|
|
13
15
|
menuItems: { default: () => [] },
|
|
@@ -15,33 +17,33 @@ const O = /* @__PURE__ */ p({
|
|
|
15
17
|
},
|
|
16
18
|
emits: ["selected"],
|
|
17
19
|
setup(r, { emit: u }) {
|
|
18
|
-
const t = r, i = y("DataGridMenu"), s = (
|
|
20
|
+
const t = r, i = y("DataGridMenu"), s = (m) => m.text, c = () => {
|
|
19
21
|
t.rowIndex && i.setActiveMenuRow(t.rowIndex);
|
|
20
22
|
}, a = () => {
|
|
21
23
|
t.rowIndex && i.setActiveMenuRow(null);
|
|
22
24
|
};
|
|
23
|
-
return f(a), (
|
|
25
|
+
return f(a), (m, d) => (x(), w(o(g), {
|
|
24
26
|
class: "data-grid-menu",
|
|
25
27
|
options: r.menuItems,
|
|
26
28
|
"display-value": s,
|
|
27
29
|
"predefined-trigger": "icon-button",
|
|
28
30
|
placement: "left-start",
|
|
29
31
|
skidding: -4,
|
|
30
|
-
"onUpdate:selected":
|
|
32
|
+
"onUpdate:selected": d[0] || (d[0] = (e) => u("selected", e)),
|
|
31
33
|
onOpened: c,
|
|
32
34
|
onClosed: a
|
|
33
35
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
default:
|
|
36
|
+
default: n(({ option: e }) => [
|
|
37
|
+
l(o(C), { option: e }, I({
|
|
38
|
+
default: n(() => [
|
|
37
39
|
v(" " + M(s(e)), 1)
|
|
38
40
|
]),
|
|
39
41
|
_: 2
|
|
40
42
|
}, [
|
|
41
43
|
e.icon ? {
|
|
42
44
|
name: "icon-start",
|
|
43
|
-
fn:
|
|
44
|
-
|
|
45
|
+
fn: n(() => [
|
|
46
|
+
l(o(k), {
|
|
45
47
|
class: "menu-icon",
|
|
46
48
|
name: e.icon,
|
|
47
49
|
size: "20px"
|
|
@@ -56,5 +58,5 @@ const O = /* @__PURE__ */ p({
|
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
export {
|
|
59
|
-
|
|
61
|
+
T as default
|
|
60
62
|
};
|
|
@@ -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
|
+
};
|