@ironsource/shared-ui 2.1.6-rc.2 → 2.1.6-rc.21
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +3 -3
- package/components/autocomplete/Autocomplete.vue2.js +82 -61
- package/components/autocomplete/index.d.ts +20 -1
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +21 -21
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +40 -49
- package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +140 -128
- package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +61 -44
- package/components/dropdown/v4/index.d.ts +105 -4
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- 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 +24 -21
- package/components/input/v4/index.d.ts +20 -1
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -147
- package/components/table/v4/index.d.ts +14 -2
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/index.d.ts +336 -32
- package/package.json +1 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_bf8e7ff5_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css"; import { defineComponent as se, useCssVars as ae, unref as t, useSlots as le, computed as g, openBlock as l, createElementBlock as d, createElementVNode as h, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as y, withCtx as T, createTextVNode as C, toDisplayString as E, isRef as ie, createCommentVNode as u, Fragment as w, renderList as B, createBlock as z, mergeProps as de } from "vue";
|
|
2
|
+
import I 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
|
-
import { TableTestIdModifiers as
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
6
|
+
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
+
import { tableCommon as ce } from "../common/Table.common.js";
|
|
8
|
+
import re from "./SortIcon.vue.js";
|
|
9
9
|
import ue from "./HelpIcon.vue.js";
|
|
10
10
|
import he from "./ExpandRowToggle.vue.js";
|
|
11
11
|
import ye from "../../search/v4/SearchV4.vue.js";
|
|
@@ -16,19 +16,19 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
16
16
|
}, Te = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "expand-toggle-cell"
|
|
19
|
-
}, Ce = ["onClick"], Ee = { class: "table-head-container" },
|
|
19
|
+
}, Ce = ["onClick"], Ee = { class: "table-head-container" }, we = ["data-testid"], Be = ["onMouseenter"], Ie = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "checkbox-cell"
|
|
22
|
-
},
|
|
22
|
+
}, pe = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "expand-toggle-cell"
|
|
25
|
-
},
|
|
25
|
+
}, Ae = {
|
|
26
26
|
key: 2,
|
|
27
27
|
class: "expanded-row"
|
|
28
|
-
},
|
|
28
|
+
}, Me = { key: 1 }, Pe = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "table-footer"
|
|
31
|
-
}, We = /* @__PURE__ */
|
|
31
|
+
}, We = /* @__PURE__ */ se({
|
|
32
32
|
__name: "DataGrid",
|
|
33
33
|
props: {
|
|
34
34
|
title: { default: "" },
|
|
@@ -37,8 +37,8 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["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: (s, c) => c },
|
|
41
|
+
selectedMatcher: { type: Function, default: (s, c) => s === c },
|
|
42
42
|
isSticky: { type: Boolean, default: !0 },
|
|
43
43
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
44
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -57,132 +57,132 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["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", "onClearSearch", "saveRow", "loadMore"],
|
|
61
|
-
setup(
|
|
62
|
-
const o =
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow"],
|
|
61
|
+
setup(s, { emit: c }) {
|
|
62
|
+
const o = s;
|
|
63
|
+
ae((a) => ({
|
|
64
|
+
"6eac79e5": s.zIndexBase,
|
|
65
|
+
"69b66c99": t(J),
|
|
66
|
+
c4cc855c: t(V),
|
|
67
|
+
"6efaf45a": t(q)
|
|
68
68
|
}));
|
|
69
|
-
const v =
|
|
70
|
-
list:
|
|
69
|
+
const v = le(), {
|
|
70
|
+
list: P,
|
|
71
71
|
containerProps: U,
|
|
72
72
|
wrapperProps: G,
|
|
73
|
-
activeRow:
|
|
74
|
-
gridColumnTemplate:
|
|
73
|
+
activeRow: p,
|
|
74
|
+
gridColumnTemplate: V,
|
|
75
75
|
toggleSortOrder: Y,
|
|
76
|
-
columnsStickyPositions:
|
|
76
|
+
columnsStickyPositions: H,
|
|
77
77
|
hasSearchSlot: Q,
|
|
78
78
|
containerStyle: W,
|
|
79
|
-
onScroll:
|
|
79
|
+
onScroll: L,
|
|
80
80
|
savingRows: N,
|
|
81
81
|
hasExpandSlot: b,
|
|
82
82
|
toggleExpandRow: j,
|
|
83
83
|
cssRowHeight: q,
|
|
84
84
|
cssExpandGridCol: J,
|
|
85
|
-
isRowExpanded:
|
|
85
|
+
isRowExpanded: A,
|
|
86
86
|
hasCheckboxes: F,
|
|
87
87
|
activeMenuRow: K
|
|
88
|
-
} =
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
-
}), $ = (
|
|
92
|
-
$(
|
|
88
|
+
} = ce(o, c), O = g(() => !!v.footer), k = fe(o, "search", c), X = g(() => o.selection.length || 0), M = g(() => {
|
|
89
|
+
const a = o.rows.map((i, e) => o.getRowId(i, e));
|
|
90
|
+
return a.length && a.every((i) => $(i));
|
|
91
|
+
}), $ = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, Z = (a) => {
|
|
92
|
+
$(a) ? (R(
|
|
93
93
|
o.selection.filter(
|
|
94
|
-
(
|
|
94
|
+
(i) => !o.selectedMatcher(a, i)
|
|
95
95
|
)
|
|
96
|
-
) : R([...o.selection,
|
|
96
|
+
), c("selectRow", !1)) : (R([...o.selection, a]), c("selectRow", !0));
|
|
97
97
|
}, _ = () => {
|
|
98
|
-
if (
|
|
99
|
-
R([]);
|
|
98
|
+
if (M.value)
|
|
99
|
+
R([]), c("selectAll", !1);
|
|
100
100
|
else {
|
|
101
|
-
const
|
|
102
|
-
R([...o.selection, ...
|
|
101
|
+
const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !$(i));
|
|
102
|
+
R([...o.selection, ...a]), c("selectAll", !0);
|
|
103
103
|
}
|
|
104
|
-
}, R = (
|
|
105
|
-
|
|
104
|
+
}, R = (a) => {
|
|
105
|
+
c("update:selection", a);
|
|
106
106
|
}, ee = g(
|
|
107
107
|
() => o.emptyStateVariant ?? (k.value ? "no-results" : "no-data")
|
|
108
108
|
), te = g(
|
|
109
109
|
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : k.value ? "Search again with different filters" : void 0
|
|
110
110
|
);
|
|
111
|
-
return (
|
|
111
|
+
return (a, i) => (l(), d("div", {
|
|
112
112
|
class: "table-container",
|
|
113
|
-
"data-testid": `${
|
|
114
|
-
onMouseleave:
|
|
113
|
+
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
114
|
+
onMouseleave: i[3] || (i[3] = (e) => p.value = null)
|
|
115
115
|
}, [
|
|
116
|
-
|
|
116
|
+
h("table", {
|
|
117
117
|
ref: t(U).ref,
|
|
118
118
|
style: x(t(W)),
|
|
119
|
-
class:
|
|
119
|
+
class: f({
|
|
120
120
|
hasFooter: t(O)
|
|
121
121
|
}),
|
|
122
|
-
"data-testid": `${
|
|
123
|
-
onScrollPassive:
|
|
124
|
-
(...e) => t(
|
|
122
|
+
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
123
|
+
onScrollPassive: i[2] || (i[2] = //@ts-ignore
|
|
124
|
+
(...e) => t(L) && t(L)(...e))
|
|
125
125
|
}, [
|
|
126
|
-
|
|
126
|
+
s.title || t(v).title || t(Q) || t(v)["table-header-actions"] ? (l(), d("div", {
|
|
127
127
|
key: 0,
|
|
128
|
-
class:
|
|
129
|
-
"data-testid": `${
|
|
128
|
+
class: f(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
129
|
+
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
130
130
|
}, [
|
|
131
|
-
|
|
131
|
+
h("div", {
|
|
132
132
|
class: "table-title",
|
|
133
|
-
"data-testid": `${
|
|
133
|
+
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
134
134
|
}, [
|
|
135
|
-
r(
|
|
136
|
-
|
|
135
|
+
r(a.$slots, "title", {}, () => [
|
|
136
|
+
y(t(I), { variant: "h3" }, {
|
|
137
137
|
default: T(() => [
|
|
138
|
-
C(E(
|
|
138
|
+
C(E(s.title), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
})
|
|
142
142
|
], !0)
|
|
143
143
|
], 8, ge),
|
|
144
|
-
|
|
144
|
+
h("div", {
|
|
145
145
|
class: "table-header-right",
|
|
146
|
-
"data-testid": `${
|
|
146
|
+
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
147
147
|
}, [
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
|
|
149
|
+
h("div", be, [
|
|
150
|
+
y(t(ye), {
|
|
151
151
|
modelValue: t(k),
|
|
152
|
-
"onUpdate:modelValue":
|
|
153
|
-
placeholder:
|
|
154
|
-
"auto-focus":
|
|
155
|
-
"test-id":
|
|
156
|
-
onOnClear:
|
|
152
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => ie(k) ? k.value = e : null),
|
|
153
|
+
placeholder: s.searchPlaceholder,
|
|
154
|
+
"auto-focus": s.searchAutoFocus,
|
|
155
|
+
"test-id": s.testId,
|
|
156
|
+
onOnClear: i[1] || (i[1] = (e) => c("onClearSearch"))
|
|
157
157
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
158
158
|
])
|
|
159
|
-
], !0) :
|
|
159
|
+
], !0) : u("", !0)
|
|
160
160
|
], 8, ve),
|
|
161
|
-
t(v)["table-header-actions"] ? (
|
|
161
|
+
t(v)["table-header-actions"] ? (l(), d("div", {
|
|
162
162
|
key: 0,
|
|
163
163
|
class: "table-header-actions",
|
|
164
|
-
"data-testid": `${
|
|
164
|
+
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
165
165
|
}, [
|
|
166
|
-
r(
|
|
167
|
-
], 8, $e)) :
|
|
168
|
-
], 10, me)) :
|
|
169
|
-
|
|
170
|
-
class:
|
|
166
|
+
r(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
167
|
+
], 8, $e)) : u("", !0)
|
|
168
|
+
], 10, me)) : u("", !0),
|
|
169
|
+
h("thead", {
|
|
170
|
+
class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
171
171
|
}, [
|
|
172
|
-
|
|
172
|
+
h("div", {
|
|
173
173
|
class: "sections",
|
|
174
|
-
"data-testid": `${
|
|
174
|
+
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
175
175
|
}, [
|
|
176
|
-
(
|
|
176
|
+
(l(!0), d(w, null, B(s.sections, (e) => (l(), d("div", {
|
|
177
177
|
key: e.id,
|
|
178
|
-
class:
|
|
178
|
+
class: f(["section-container", { sticky: e.isSticky }])
|
|
179
179
|
}, [
|
|
180
|
-
r(
|
|
181
|
-
|
|
180
|
+
r(a.$slots, `section-${e.id}`, {}, () => [
|
|
181
|
+
h("div", {
|
|
182
182
|
style: x({ width: e.width + "px" }),
|
|
183
|
-
class:
|
|
183
|
+
class: f({ section: !0 })
|
|
184
184
|
}, [
|
|
185
|
-
|
|
185
|
+
y(t(I), { variant: "body2" }, {
|
|
186
186
|
default: T(() => [
|
|
187
187
|
C(E(e.title), 1)
|
|
188
188
|
]),
|
|
@@ -192,21 +192,21 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
192
192
|
], !0)
|
|
193
193
|
], 2))), 128))
|
|
194
194
|
], 8, Re),
|
|
195
|
-
|
|
196
|
-
t(F) ? (
|
|
197
|
-
r(
|
|
198
|
-
|
|
199
|
-
disabled:
|
|
200
|
-
"is-checked": t(
|
|
201
|
-
"is-indeterminate": !t(
|
|
195
|
+
h("tr", null, [
|
|
196
|
+
t(F) ? (l(), d("th", xe, [
|
|
197
|
+
r(a.$slots, "select-all-checkbox", {}, () => [
|
|
198
|
+
y(t(D), {
|
|
199
|
+
disabled: s.isLoading,
|
|
200
|
+
"is-checked": t(M),
|
|
201
|
+
"is-indeterminate": !t(M) && t(X) > 0,
|
|
202
202
|
"onUpdate:isChecked": _
|
|
203
203
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
204
204
|
], !0)
|
|
205
|
-
])) :
|
|
206
|
-
t(b) ? (
|
|
207
|
-
(
|
|
205
|
+
])) : u("", !0),
|
|
206
|
+
t(b) ? (l(), d("th", Te)) : u("", !0),
|
|
207
|
+
(l(!0), d(w, null, B(s.columns, (e) => (l(), d("th", {
|
|
208
208
|
key: e.id,
|
|
209
|
-
class:
|
|
209
|
+
class: f({
|
|
210
210
|
sticky: e.isSticky,
|
|
211
211
|
isStickyRight: e.isStickyRight,
|
|
212
212
|
bordered: e.isBordered,
|
|
@@ -214,118 +214,118 @@ const Se = ["data-testid"], ke = ["data-testid"], me = ["data-testid"], ge = ["d
|
|
|
214
214
|
isSortable: e.isSortable,
|
|
215
215
|
[`column-${e.id}`]: !0
|
|
216
216
|
}),
|
|
217
|
-
style: x(e.isSticky ? t(
|
|
217
|
+
style: x(e.isSticky ? t(H)[e.id] : null),
|
|
218
218
|
onClick: (m) => e.isSortable ? t(Y)(e) : null
|
|
219
219
|
}, [
|
|
220
|
-
|
|
221
|
-
r(
|
|
222
|
-
|
|
220
|
+
h("div", Ee, [
|
|
221
|
+
r(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
222
|
+
y(t(I), { variant: "tableLabel" }, {
|
|
223
223
|
default: T(() => [
|
|
224
224
|
C(E(e.title), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 2
|
|
227
227
|
}, 1024)
|
|
228
228
|
], !0),
|
|
229
|
-
e.helpText ? (
|
|
229
|
+
e.helpText ? (l(), z(ue, {
|
|
230
230
|
key: 0,
|
|
231
231
|
"hover-help-text": e.helpText,
|
|
232
232
|
"hover-help-text-placement": e.helpTextPlacement
|
|
233
|
-
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) :
|
|
234
|
-
e.isSortable && e.id ===
|
|
233
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : u("", !0),
|
|
234
|
+
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(re, {
|
|
235
235
|
key: 1,
|
|
236
|
-
"sort-order":
|
|
237
|
-
}, null, 8, ["sort-order"])) :
|
|
236
|
+
"sort-order": s.sort.sortOrder
|
|
237
|
+
}, null, 8, ["sort-order"])) : u("", !0)
|
|
238
238
|
])
|
|
239
239
|
], 14, Ce))), 128))
|
|
240
240
|
])
|
|
241
241
|
], 2),
|
|
242
|
-
|
|
243
|
-
t(
|
|
242
|
+
h("tbody", null, [
|
|
243
|
+
t(P).length > 0 ? (l(), d("div", de({
|
|
244
244
|
key: 0,
|
|
245
245
|
class: "table-body-wrapper",
|
|
246
|
-
"data-testid": `${
|
|
246
|
+
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
247
247
|
}, t(G)), [
|
|
248
|
-
(
|
|
248
|
+
(l(!0), d(w, null, B(t(P), (e) => (l(), d("tr", {
|
|
249
249
|
key: e.index,
|
|
250
|
-
class:
|
|
251
|
-
loading:
|
|
252
|
-
active: t(
|
|
250
|
+
class: f(["table-row", {
|
|
251
|
+
loading: s.isLoading || s.isLoading && !e.data || t(N).includes(e.index),
|
|
252
|
+
active: t(p) === e.index,
|
|
253
253
|
activeMenu: t(K) === e.index,
|
|
254
|
-
expanded: t(b) && t(
|
|
254
|
+
expanded: t(b) && t(A)(e.index)
|
|
255
255
|
}]),
|
|
256
|
-
onMouseenter: (m) =>
|
|
256
|
+
onMouseenter: (m) => p.value = e.index
|
|
257
257
|
}, [
|
|
258
|
-
t(F) ? (
|
|
259
|
-
|
|
260
|
-
"is-checked": $(
|
|
258
|
+
t(F) ? (l(), d("td", Ie, [
|
|
259
|
+
y(t(D), {
|
|
260
|
+
"is-checked": $(s.getRowId(e.data, e.index)),
|
|
261
261
|
size: "sm",
|
|
262
|
-
"onUpdate:isChecked": (m) => Z(
|
|
262
|
+
"onUpdate:isChecked": (m) => Z(s.getRowId(e.data, e.index))
|
|
263
263
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
264
|
-
])) :
|
|
265
|
-
t(b) ? (
|
|
266
|
-
|
|
267
|
-
expanded: t(
|
|
264
|
+
])) : u("", !0),
|
|
265
|
+
t(b) ? (l(), d("td", pe, [
|
|
266
|
+
y(he, {
|
|
267
|
+
expanded: t(A)(e.index),
|
|
268
268
|
onClick: (m) => t(j)(e.index, m)
|
|
269
269
|
}, null, 8, ["expanded", "onClick"])
|
|
270
|
-
])) :
|
|
271
|
-
(
|
|
270
|
+
])) : u("", !0),
|
|
271
|
+
(l(!0), d(w, null, B(s.columns, (m, n) => (l(), d("td", {
|
|
272
272
|
key: n,
|
|
273
|
-
class:
|
|
274
|
-
sticky:
|
|
275
|
-
isStickyRight:
|
|
276
|
-
bordered:
|
|
277
|
-
isTextRight:
|
|
278
|
-
[`column-${
|
|
273
|
+
class: f({
|
|
274
|
+
sticky: s.columns[n].isSticky,
|
|
275
|
+
isStickyRight: s.columns[n].isStickyRight,
|
|
276
|
+
bordered: s.columns[n].isBordered,
|
|
277
|
+
isTextRight: s.columns[n].isTextRight,
|
|
278
|
+
[`column-${s.columns[n].id}`]: !0
|
|
279
279
|
}),
|
|
280
280
|
style: x(
|
|
281
|
-
|
|
281
|
+
s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
|
|
282
282
|
)
|
|
283
283
|
}, [
|
|
284
|
-
!
|
|
284
|
+
!s.isLoading || s.isLoading && e.data[n] ? (l(), d("div", {
|
|
285
285
|
key: 0,
|
|
286
|
-
class:
|
|
286
|
+
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
287
287
|
}, [
|
|
288
|
-
r(
|
|
288
|
+
r(a.$slots, `cell-${s.columns[n].id}`, {
|
|
289
289
|
cell: e.data[n],
|
|
290
290
|
isLoading: t(N).includes(e.index),
|
|
291
291
|
cellIndex: n,
|
|
292
292
|
row: e,
|
|
293
293
|
rowIndex: e.index
|
|
294
294
|
}, () => [
|
|
295
|
-
|
|
295
|
+
y(t(I), { variant: "body1" }, {
|
|
296
296
|
default: T(() => [
|
|
297
297
|
C(E(e.data[n]), 1)
|
|
298
298
|
]),
|
|
299
299
|
_: 2
|
|
300
300
|
}, 1024)
|
|
301
301
|
], !0)
|
|
302
|
-
], 2)) : r(
|
|
303
|
-
|
|
302
|
+
], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
|
|
303
|
+
y(t(oe), { round: "" })
|
|
304
304
|
], !0)
|
|
305
305
|
], 6))), 128)),
|
|
306
|
-
t(b) && t(
|
|
307
|
-
r(
|
|
306
|
+
t(b) && t(A)(e.index) ? (l(), d("div", Ae, [
|
|
307
|
+
r(a.$slots, "expanded", {
|
|
308
308
|
row: e,
|
|
309
|
-
gridColumnTemplate: t(
|
|
309
|
+
gridColumnTemplate: t(V)
|
|
310
310
|
}, void 0, !0)
|
|
311
|
-
])) :
|
|
312
|
-
], 42,
|
|
313
|
-
], 16,
|
|
314
|
-
r(
|
|
315
|
-
|
|
311
|
+
])) : u("", !0)
|
|
312
|
+
], 42, Be))), 128))
|
|
313
|
+
], 16, we)) : (l(), d("div", Me, [
|
|
314
|
+
r(a.$slots, "empty-state", {}, () => [
|
|
315
|
+
y(t(ne), {
|
|
316
316
|
class: "empty-state",
|
|
317
|
-
title:
|
|
317
|
+
title: s.emptyStateTitle,
|
|
318
318
|
subtitle: t(te),
|
|
319
319
|
variant: t(ee),
|
|
320
|
-
"test-id": `${
|
|
320
|
+
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
321
321
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
322
322
|
], !0)
|
|
323
323
|
]))
|
|
324
324
|
])
|
|
325
325
|
], 46, ke),
|
|
326
|
-
t(O) ? (
|
|
327
|
-
r(
|
|
328
|
-
])) :
|
|
326
|
+
t(O) ? (l(), d("div", Pe, [
|
|
327
|
+
r(a.$slots, "footer", {}, void 0, !0)
|
|
328
|
+
])) : u("", !0)
|
|
329
329
|
], 40, Se));
|
|
330
330
|
}
|
|
331
331
|
});
|
|
@@ -131,6 +131,7 @@ declare const DataGridTypes: () => (({
|
|
|
131
131
|
default: number;
|
|
132
132
|
};
|
|
133
133
|
}>> & {
|
|
134
|
+
onSelectAll?: (value: boolean) => any;
|
|
134
135
|
onOnScroll?: (event: Event) => any;
|
|
135
136
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
136
137
|
onSaveRow?: (args_0: {
|
|
@@ -143,6 +144,7 @@ declare const DataGridTypes: () => (({
|
|
|
143
144
|
"onUpdate:search"?: (query: string) => any;
|
|
144
145
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
145
146
|
onOnClearSearch?: () => any;
|
|
147
|
+
onSelectRow?: (value: boolean) => any;
|
|
146
148
|
} & 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">;
|
|
147
149
|
$attrs: {
|
|
148
150
|
[x: string]: unknown;
|
|
@@ -155,12 +157,12 @@ declare const DataGridTypes: () => (({
|
|
|
155
157
|
}>;
|
|
156
158
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
157
159
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
158
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: {
|
|
160
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: {
|
|
159
161
|
value: unknown;
|
|
160
162
|
confirm: () => void;
|
|
161
163
|
rowIndex: number;
|
|
162
164
|
cellIndex: number;
|
|
163
|
-
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void);
|
|
165
|
+
}) => void) & ((event: "loadMore") => void) & ((event: "update:search", query: string) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "onClearSearch") => void) & ((event: "selectRow", value: boolean) => void);
|
|
164
166
|
$el: any;
|
|
165
167
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
166
168
|
sort: {
|
|
@@ -264,6 +266,7 @@ declare const DataGridTypes: () => (({
|
|
|
264
266
|
default: number;
|
|
265
267
|
};
|
|
266
268
|
}>> & {
|
|
269
|
+
onSelectAll?: (value: boolean) => any;
|
|
267
270
|
onOnScroll?: (event: Event) => any;
|
|
268
271
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
269
272
|
onSaveRow?: (args_0: {
|
|
@@ -276,6 +279,7 @@ declare const DataGridTypes: () => (({
|
|
|
276
279
|
"onUpdate:search"?: (query: string) => any;
|
|
277
280
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
278
281
|
onOnClearSearch?: () => any;
|
|
282
|
+
onSelectRow?: (value: boolean) => any;
|
|
279
283
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
280
284
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
281
285
|
"update:search": (query: string) => void;
|
|
@@ -289,6 +293,8 @@ declare const DataGridTypes: () => (({
|
|
|
289
293
|
cellIndex: number;
|
|
290
294
|
}) => void;
|
|
291
295
|
loadMore: () => void;
|
|
296
|
+
selectAll: (value: boolean) => void;
|
|
297
|
+
selectRow: (value: boolean) => void;
|
|
292
298
|
}, string, {
|
|
293
299
|
sort: import("../common/Table.types").Sort;
|
|
294
300
|
title: string;
|
|
@@ -435,6 +441,7 @@ declare const DataGridTypes: () => (({
|
|
|
435
441
|
default: number;
|
|
436
442
|
};
|
|
437
443
|
}>> & {
|
|
444
|
+
onSelectAll?: (value: boolean) => any;
|
|
438
445
|
onOnScroll?: (event: Event) => any;
|
|
439
446
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
440
447
|
onSaveRow?: (args_0: {
|
|
@@ -447,6 +454,7 @@ declare const DataGridTypes: () => (({
|
|
|
447
454
|
"onUpdate:search"?: (query: string) => any;
|
|
448
455
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
449
456
|
onOnClearSearch?: () => any;
|
|
457
|
+
onSelectRow?: (value: boolean) => any;
|
|
450
458
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
451
459
|
__isFragment?: never;
|
|
452
460
|
__isTeleport?: never;
|
|
@@ -553,6 +561,7 @@ declare const DataGridTypes: () => (({
|
|
|
553
561
|
default: number;
|
|
554
562
|
};
|
|
555
563
|
}>> & {
|
|
564
|
+
onSelectAll?: (value: boolean) => any;
|
|
556
565
|
onOnScroll?: (event: Event) => any;
|
|
557
566
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
558
567
|
onSaveRow?: (args_0: {
|
|
@@ -565,6 +574,7 @@ declare const DataGridTypes: () => (({
|
|
|
565
574
|
"onUpdate:search"?: (query: string) => any;
|
|
566
575
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
567
576
|
onOnClearSearch?: () => any;
|
|
577
|
+
onSelectRow?: (value: boolean) => any;
|
|
568
578
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
569
579
|
"update:sort": (newSort: import("../common/Table.types").Sort) => void;
|
|
570
580
|
"update:search": (query: string) => void;
|
|
@@ -578,6 +588,8 @@ declare const DataGridTypes: () => (({
|
|
|
578
588
|
cellIndex: number;
|
|
579
589
|
}) => void;
|
|
580
590
|
loadMore: () => void;
|
|
591
|
+
selectAll: (value: boolean) => void;
|
|
592
|
+
selectRow: (value: boolean) => void;
|
|
581
593
|
}, string, {
|
|
582
594
|
sort: import("../common/Table.types").Sort;
|
|
583
595
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextAreaV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextAreaV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f3b2c01d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../TextAreaV4.
|
|
1
|
+
import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
|
|
2
2
|
import v from "../../shared/FieldLabel.vue.js";
|
|
3
3
|
import k from "../../shared/FieldMaxLength.vue.js";
|
|
4
4
|
import T from "../../shared/FieldHelpText.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ToggleV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ToggleV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a4aa32fb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|