@ironsource/shared-ui 2.2.0-test.5 → 2.2.0-test.6
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_18bc6c0d_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +43 -44
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +2 -2
- package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
- package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +3 -3
- package/components/columnPicker/ColumnPicker.vue2.js +173 -153
- package/components/columnPicker/index.d.ts +7 -1
- package/components/dateRange/common/CalendarMonth.common.js +46 -41
- package/components/dateRange/common/DateRange.common.d.ts +1 -0
- package/components/dateRange/common/DateRange.common.js +39 -38
- package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
- package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +2 -1
- package/components/dateRange/v3/index.d.ts +20 -1
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
- package/components/dateRange/v4/index.d.ts +20 -1
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +4 -4
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -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 +126 -124
- package/components/table/v4/index.d.ts +7 -1
- package/index.d.ts +112 -6
- package/index.js +1 -1
- package/package.json +1 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_4c813f30_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../ColumnPicker.
|
|
2
|
-
import
|
|
1
|
+
import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css"; import { defineComponent as re, ref as c, watch as H, computed as m, provide as ue, openBlock as d, createElementBlock as f, Fragment as x, renderSlot as ce, createVNode as r, unref as n, withCtx as p, createElementVNode as u, mergeProps as me, renderList as P, withModifiers as J, createTextVNode as T, toDisplayString as A, withDirectives as fe, createBlock as X, vShow as pe, createCommentVNode as Y, isRef as ve } from "vue";
|
|
2
|
+
import ye from "./OptionChip.vue.js";
|
|
3
3
|
import "../dropdown/v4/DropdownV4.vue.js";
|
|
4
4
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
@@ -8,29 +8,29 @@ import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
10
10
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
11
|
-
import
|
|
11
|
+
import Z from "../dropdown/v4/OptionV4.vue.js";
|
|
12
12
|
import "../dropdown/v4/ConditionalDropdown.vue.js";
|
|
13
|
-
import { DropdownContext as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { matchString as
|
|
13
|
+
import { DropdownContext as he } from "../dropdown/common/DropdownContext.js";
|
|
14
|
+
import L from "../typography/v4/Typography.vue.js";
|
|
15
|
+
import ge from "../dialog/v4/DialogV4.vue.js";
|
|
16
|
+
import ke from "../sortableList/SortableList.vue.js";
|
|
17
|
+
import Se from "../link/Link.vue.js";
|
|
18
|
+
import Ke from "../search/v4/SearchV4.vue.js";
|
|
19
|
+
import { matchString as Ce } from "../../utils/search.js";
|
|
20
20
|
import "../button/v4/ButtonV4.vue.js";
|
|
21
|
-
import
|
|
21
|
+
import be from "../button/v4/IconButtonV4.vue.js";
|
|
22
22
|
import "../button/v4/ButtonGroup.vue.js";
|
|
23
23
|
import "../button/v4/ToggleButtonGroupAB.vue.js";
|
|
24
|
-
import { useTestIdAttrs as
|
|
25
|
-
import { ColumnPickerTestIdModifiers as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import { useTestIdAttrs as xe } from "../../utils/testIds.js";
|
|
25
|
+
import { ColumnPickerTestIdModifiers as F } from "../../testids/index.js";
|
|
26
|
+
import Te from "./RemoveButton.vue.js";
|
|
27
|
+
const Ie = { class: "content" }, Oe = { class: "options-list-wrapper" }, Re = { class: "search-wrapper" }, Ve = { class: "options-list scrollable-list" }, we = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-group"
|
|
30
|
-
},
|
|
30
|
+
}, Be = ["onClick"], De = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Ge = { class: "selected-list-header" }, Pe = { class: "selected-list-wrapper scrollable-list" }, ot = /* @__PURE__ */ re({
|
|
34
34
|
__name: "ColumnPicker",
|
|
35
35
|
props: {
|
|
36
36
|
selected: { default: () => [] },
|
|
@@ -50,87 +50,107 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
50
50
|
appendToBody: { type: Boolean, default: !0 },
|
|
51
51
|
testId: { default: "" }
|
|
52
52
|
},
|
|
53
|
-
emits: ["update:selected"],
|
|
54
|
-
setup(
|
|
55
|
-
const t =
|
|
56
|
-
t.selected?.length ?
|
|
57
|
-
},
|
|
58
|
-
y.value = !1,
|
|
53
|
+
emits: ["update:selected", "trackUserActivity"],
|
|
54
|
+
setup(s, { emit: I }) {
|
|
55
|
+
const t = s, o = c([]), v = c([]), h = c(""), y = c(!1), k = c(!1), S = c(!1), K = c(!1), C = c(!1), $ = () => {
|
|
56
|
+
t.selected?.length ? o.value = [...t.selected] : t.defaultSelection?.length ? o.value = [...t.defaultSelection] : o.value = [];
|
|
57
|
+
}, O = (e = !0) => {
|
|
58
|
+
y.value = !1, v.value = [], h.value = "", $(), e && I(
|
|
59
|
+
"trackUserActivity",
|
|
60
|
+
k.value,
|
|
61
|
+
C.value,
|
|
62
|
+
S.value,
|
|
63
|
+
K.value,
|
|
64
|
+
"Cancel"
|
|
65
|
+
), oe();
|
|
59
66
|
};
|
|
60
|
-
|
|
67
|
+
H(
|
|
61
68
|
[() => t.selected, () => t.defaultSelection],
|
|
62
69
|
() => {
|
|
63
|
-
|
|
70
|
+
$();
|
|
64
71
|
},
|
|
65
72
|
{
|
|
66
73
|
immediate: !0
|
|
67
74
|
}
|
|
68
75
|
);
|
|
69
|
-
const
|
|
76
|
+
const E = () => {
|
|
70
77
|
y.value = !y.value;
|
|
71
|
-
},
|
|
78
|
+
}, R = m({
|
|
72
79
|
get() {
|
|
73
|
-
return
|
|
74
|
-
const
|
|
80
|
+
return o.value.map((e) => {
|
|
81
|
+
const l = ie(e) ? W(e)?.[t.displayKey] + " " : "";
|
|
75
82
|
return {
|
|
76
83
|
id: e[t.idKey],
|
|
77
|
-
displayText:
|
|
78
|
-
isDisabled:
|
|
84
|
+
displayText: l + e[t.displayKey],
|
|
85
|
+
isDisabled: B(e)
|
|
79
86
|
};
|
|
80
87
|
});
|
|
81
88
|
},
|
|
82
89
|
set(e) {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
(
|
|
90
|
+
const l = e.map((i) => i.id);
|
|
91
|
+
o.value = l.map(
|
|
92
|
+
(i) => o.value.find((a) => a[t.idKey] === i)
|
|
86
93
|
);
|
|
87
94
|
}
|
|
88
|
-
}),
|
|
89
|
-
() =>
|
|
90
|
-
),
|
|
95
|
+
}), V = m(
|
|
96
|
+
() => o.value?.length <= t.minSelections
|
|
97
|
+
), w = m(() => {
|
|
91
98
|
if (!t.minSelections)
|
|
92
99
|
return "";
|
|
93
|
-
const e = t.minSelections,
|
|
94
|
-
return
|
|
95
|
-
}),
|
|
96
|
-
(
|
|
97
|
-
),
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
t.disabledKey && e[t.disabledKey] ||
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
(
|
|
100
|
+
const e = t.minSelections, l = t.minSelectionsTooltipMessage;
|
|
101
|
+
return l ? l.replace("%count%", e.toString()) : "";
|
|
102
|
+
}), M = (e) => b(e) && V.value, B = (e) => e[t.disabledKey] || M(e), b = (e) => o.value.some(
|
|
103
|
+
(l) => l[t.idKey] === e[t.idKey]
|
|
104
|
+
), _ = (e) => {
|
|
105
|
+
b(e) ? U(e[t.idKey]) : ee(e);
|
|
106
|
+
}, D = (e) => {
|
|
107
|
+
t.disabledKey && e[t.disabledKey] || _(e);
|
|
108
|
+
}, ee = (e) => {
|
|
109
|
+
o.value.push(e);
|
|
110
|
+
}, U = (e) => {
|
|
111
|
+
o.value = o.value.filter(
|
|
112
|
+
(l) => l[t.idKey] !== e
|
|
106
113
|
);
|
|
107
|
-
},
|
|
114
|
+
}, N = m(() => {
|
|
108
115
|
if (!t.defaultSelection?.length)
|
|
109
116
|
return !1;
|
|
110
|
-
const e =
|
|
111
|
-
return e.length !==
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
(
|
|
116
|
-
),
|
|
117
|
-
const
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
(
|
|
122
|
-
) :
|
|
123
|
-
},
|
|
124
|
-
...
|
|
125
|
-
[t.childrenKey]:
|
|
126
|
-
(
|
|
117
|
+
const e = o.value.map((i) => i[t.idKey]), l = t.defaultSelection.map((i) => i[t.idKey]);
|
|
118
|
+
return e.length !== l.length ? !0 : !l.every((i) => e.includes(i));
|
|
119
|
+
}), te = () => {
|
|
120
|
+
N.value && (o.value = [...t.defaultSelection]), k.value = !0;
|
|
121
|
+
}, z = (e) => Q.value ? !0 : !v.value.includes(e), le = (e) => t.inlineGroupIds?.includes(e), W = (e) => t.options.find(
|
|
122
|
+
(l) => g(l).map((i) => i[t.idKey]).includes(e[t.idKey])
|
|
123
|
+
), ie = (e) => {
|
|
124
|
+
const l = W(e);
|
|
125
|
+
return l ? t.inlineGroupIds?.includes(l[t.idKey]) : !1;
|
|
126
|
+
}, q = (e) => {
|
|
127
|
+
v.value.includes(e) ? (v.value = v.value.filter(
|
|
128
|
+
(l) => l !== e
|
|
129
|
+
), S.value = !0) : (v.value.push(e), K.value = !0);
|
|
130
|
+
}, g = (e) => e[t.childrenKey] || [], se = m(() => o.value.length), G = m(() => h.value?.trim()), Q = m(() => !!G.value), j = m(() => Q.value ? t.options.map((l) => ({
|
|
131
|
+
...l,
|
|
132
|
+
[t.childrenKey]: g(l).filter(
|
|
133
|
+
(i) => Ce(i[t.displayKey], G.value)
|
|
127
134
|
)
|
|
128
135
|
})).filter(
|
|
129
|
-
(
|
|
130
|
-
) : t.options),
|
|
131
|
-
|
|
136
|
+
(l) => g(l).length > 0
|
|
137
|
+
) : t.options), ne = xe(t.testId, F), ae = () => {
|
|
138
|
+
I("update:selected", o.value), I(
|
|
139
|
+
"trackUserActivity",
|
|
140
|
+
k.value,
|
|
141
|
+
C.value,
|
|
142
|
+
S.value,
|
|
143
|
+
K.value,
|
|
144
|
+
"Save"
|
|
145
|
+
), O(!1);
|
|
132
146
|
};
|
|
133
|
-
|
|
147
|
+
H(G, () => {
|
|
148
|
+
C.value = !0;
|
|
149
|
+
});
|
|
150
|
+
const oe = () => {
|
|
151
|
+
k.value = !1, S.value = !1, K.value = !1, C.value = !1;
|
|
152
|
+
};
|
|
153
|
+
return ue(he, {
|
|
134
154
|
activeIndex: null,
|
|
135
155
|
activeOption: null,
|
|
136
156
|
clearSelection: () => {
|
|
@@ -151,8 +171,8 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
151
171
|
toggle: () => {
|
|
152
172
|
},
|
|
153
173
|
placeholder: "",
|
|
154
|
-
select:
|
|
155
|
-
query:
|
|
174
|
+
select: D,
|
|
175
|
+
query: h,
|
|
156
176
|
selectedValue: null,
|
|
157
177
|
goToOption: () => {
|
|
158
178
|
},
|
|
@@ -162,103 +182,103 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
162
182
|
},
|
|
163
183
|
unRegisterOption: () => {
|
|
164
184
|
}
|
|
165
|
-
}), (e,
|
|
166
|
-
|
|
167
|
-
triggerProps: { onClick:
|
|
185
|
+
}), (e, l) => (d(), f(x, null, [
|
|
186
|
+
ce(e.$slots, "trigger", {
|
|
187
|
+
triggerProps: { onClick: E }
|
|
168
188
|
}, () => [
|
|
169
|
-
r(
|
|
189
|
+
r(n(be), {
|
|
170
190
|
"icon-name": "layout",
|
|
171
191
|
variant: "outlined",
|
|
172
|
-
"test-id": `${
|
|
173
|
-
onClick:
|
|
192
|
+
"test-id": `${s.testId}-${n(F).TRIGGER}`,
|
|
193
|
+
onClick: E
|
|
174
194
|
}, null, 8, ["test-id"])
|
|
175
195
|
], !0),
|
|
176
|
-
r(
|
|
196
|
+
r(n(ge), {
|
|
177
197
|
modelValue: y.value,
|
|
178
|
-
"onUpdate:modelValue":
|
|
179
|
-
title:
|
|
198
|
+
"onUpdate:modelValue": l[2] || (l[2] = (i) => y.value = i),
|
|
199
|
+
title: s.headerText,
|
|
180
200
|
"no-padding": "",
|
|
181
201
|
"save-button-label": "Save view",
|
|
182
202
|
"close-on-click-outside": "",
|
|
183
|
-
"append-to-body":
|
|
184
|
-
"test-id":
|
|
185
|
-
onSave:
|
|
186
|
-
onClose:
|
|
187
|
-
onCancel:
|
|
203
|
+
"append-to-body": s.appendToBody,
|
|
204
|
+
"test-id": s.testId,
|
|
205
|
+
onSave: ae,
|
|
206
|
+
onClose: l[3] || (l[3] = () => O),
|
|
207
|
+
onCancel: O
|
|
188
208
|
}, {
|
|
189
209
|
default: p(() => [
|
|
190
|
-
u("div",
|
|
191
|
-
u("div",
|
|
192
|
-
u("div",
|
|
193
|
-
u("header",
|
|
194
|
-
r(
|
|
195
|
-
modelValue:
|
|
196
|
-
"onUpdate:modelValue":
|
|
197
|
-
placeholder:
|
|
210
|
+
u("div", me({ class: "column-picker" }, n(ne)[n(F).WRAPPER]), [
|
|
211
|
+
u("div", Ie, [
|
|
212
|
+
u("div", Oe, [
|
|
213
|
+
u("header", Re, [
|
|
214
|
+
r(n(Ke), {
|
|
215
|
+
modelValue: h.value,
|
|
216
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => h.value = i),
|
|
217
|
+
placeholder: s.searchPlaceholder,
|
|
198
218
|
variant: "transparent",
|
|
199
219
|
size: "md",
|
|
200
|
-
"auto-focus":
|
|
201
|
-
"test-id":
|
|
220
|
+
"auto-focus": s.searchAutoFocus,
|
|
221
|
+
"test-id": s.testId
|
|
202
222
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
203
223
|
]),
|
|
204
|
-
u("ul",
|
|
205
|
-
(d(!0),
|
|
206
|
-
key: String(
|
|
224
|
+
u("ul", Ve, [
|
|
225
|
+
(d(!0), f(x, null, P(n(j), (i) => (d(), f("li", {
|
|
226
|
+
key: String(i[s.idKey]),
|
|
207
227
|
class: "options-list__item"
|
|
208
228
|
}, [
|
|
209
|
-
r(
|
|
210
|
-
option:
|
|
229
|
+
r(n(Z), {
|
|
230
|
+
option: i,
|
|
211
231
|
"tree-main-option": "",
|
|
212
|
-
"tree-main-option-expanded":
|
|
213
|
-
onClick:
|
|
214
|
-
onToggleTreeCollapse: (
|
|
232
|
+
"tree-main-option-expanded": z(i[s.idKey]),
|
|
233
|
+
onClick: J((a) => q(i[s.idKey]), ["stop"]),
|
|
234
|
+
onToggleTreeCollapse: (a) => q(i[s.idKey])
|
|
215
235
|
}, {
|
|
216
236
|
default: p(() => [
|
|
217
|
-
r(
|
|
237
|
+
r(n(L), {
|
|
218
238
|
variant: "h5",
|
|
219
239
|
class: "group-name"
|
|
220
240
|
}, {
|
|
221
241
|
default: p(() => [
|
|
222
|
-
|
|
242
|
+
T(A(i[s.displayKey]), 1)
|
|
223
243
|
]),
|
|
224
244
|
_: 2
|
|
225
245
|
}, 1024)
|
|
226
246
|
]),
|
|
227
247
|
_: 2
|
|
228
248
|
}, 1032, ["option", "tree-main-option-expanded", "onClick", "onToggleTreeCollapse"]),
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
(d(!0),
|
|
232
|
-
key:
|
|
233
|
-
option:
|
|
234
|
-
"name-key":
|
|
235
|
-
selected:
|
|
236
|
-
disabled:
|
|
237
|
-
"tooltip-text":
|
|
238
|
-
onClick: (
|
|
249
|
+
fe(u("div", null, [
|
|
250
|
+
le(i[s.idKey]) ? (d(), f("div", we, [
|
|
251
|
+
(d(!0), f(x, null, P(g(i), (a) => (d(), X(ye, {
|
|
252
|
+
key: a[s.idKey],
|
|
253
|
+
option: a,
|
|
254
|
+
"name-key": s.displayKey,
|
|
255
|
+
selected: b(a),
|
|
256
|
+
disabled: B(a),
|
|
257
|
+
"tooltip-text": M(a) ? n(w) : null,
|
|
258
|
+
onClick: (de) => D(a)
|
|
239
259
|
}, null, 8, ["option", "name-key", "selected", "disabled", "tooltip-text", "onClick"]))), 128))
|
|
240
|
-
])) : (d(!0),
|
|
241
|
-
key:
|
|
242
|
-
onClick:
|
|
260
|
+
])) : (d(!0), f(x, { key: 1 }, P(g(i), (a) => (d(), f("div", {
|
|
261
|
+
key: a[s.idKey],
|
|
262
|
+
onClick: J((de) => D(a), ["stop"])
|
|
243
263
|
}, [
|
|
244
|
-
r(
|
|
245
|
-
option:
|
|
246
|
-
"selected-prop":
|
|
247
|
-
"name-key":
|
|
248
|
-
disabled:
|
|
249
|
-
"min-max-selection-tooltip-message":
|
|
264
|
+
r(n(Z), {
|
|
265
|
+
option: a,
|
|
266
|
+
"selected-prop": b(a),
|
|
267
|
+
"name-key": s.displayKey,
|
|
268
|
+
disabled: B(a),
|
|
269
|
+
"min-max-selection-tooltip-message": n(w),
|
|
250
270
|
"tooltip-attached-to-text": "",
|
|
251
271
|
"is-multi": ""
|
|
252
272
|
}, null, 8, ["option", "selected-prop", "name-key", "disabled", "min-max-selection-tooltip-message"])
|
|
253
|
-
], 8,
|
|
273
|
+
], 8, Be))), 128))
|
|
254
274
|
], 512), [
|
|
255
|
-
[
|
|
275
|
+
[pe, z(i[s.idKey])]
|
|
256
276
|
])
|
|
257
277
|
]))), 128)),
|
|
258
|
-
|
|
259
|
-
r(
|
|
278
|
+
n(j).length ? Y("", !0) : (d(), f("li", De, [
|
|
279
|
+
r(n(L), { variant: "body2" }, {
|
|
260
280
|
default: p(() => [
|
|
261
|
-
|
|
281
|
+
T(A(s.noResultsText), 1)
|
|
262
282
|
]),
|
|
263
283
|
_: 1
|
|
264
284
|
})
|
|
@@ -266,43 +286,43 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
266
286
|
])
|
|
267
287
|
]),
|
|
268
288
|
u("div", null, [
|
|
269
|
-
u("header",
|
|
270
|
-
r(
|
|
289
|
+
u("header", Ge, [
|
|
290
|
+
r(n(L), {
|
|
271
291
|
variant: "h5",
|
|
272
292
|
class: "selected-count-text"
|
|
273
293
|
}, {
|
|
274
294
|
default: p(() => [
|
|
275
|
-
|
|
295
|
+
T(A(n(se)) + " selected ", 1)
|
|
276
296
|
]),
|
|
277
297
|
_: 1
|
|
278
298
|
}),
|
|
279
|
-
|
|
299
|
+
s.defaultSelection?.length ? (d(), X(n(Se), {
|
|
280
300
|
key: 0,
|
|
281
301
|
variant: "subtitle2",
|
|
282
|
-
disabled: !
|
|
283
|
-
"test-id":
|
|
284
|
-
onClick:
|
|
302
|
+
disabled: !n(N),
|
|
303
|
+
"test-id": s.testId,
|
|
304
|
+
onClick: te
|
|
285
305
|
}, {
|
|
286
306
|
default: p(() => [
|
|
287
|
-
|
|
307
|
+
T(" Reset to default ")
|
|
288
308
|
]),
|
|
289
309
|
_: 1
|
|
290
|
-
}, 8, ["disabled", "test-id"])) :
|
|
310
|
+
}, 8, ["disabled", "test-id"])) : Y("", !0)
|
|
291
311
|
]),
|
|
292
|
-
u("div",
|
|
293
|
-
r(
|
|
294
|
-
items:
|
|
295
|
-
"onUpdate:items":
|
|
296
|
-
"display-value": (
|
|
312
|
+
u("div", Pe, [
|
|
313
|
+
r(n(ke), {
|
|
314
|
+
items: n(R),
|
|
315
|
+
"onUpdate:items": l[1] || (l[1] = (i) => ve(R) ? R.value = i : null),
|
|
316
|
+
"display-value": (i) => i.displayText,
|
|
297
317
|
variant: "compact",
|
|
298
318
|
"draggable-area": "full",
|
|
299
|
-
"test-id":
|
|
319
|
+
"test-id": s.testId
|
|
300
320
|
}, {
|
|
301
|
-
menu: p(({ item:
|
|
302
|
-
r(
|
|
303
|
-
disabled:
|
|
304
|
-
"tooltip-text":
|
|
305
|
-
onClick: (
|
|
321
|
+
menu: p(({ item: i }) => [
|
|
322
|
+
r(Te, {
|
|
323
|
+
disabled: n(V),
|
|
324
|
+
"tooltip-text": n(V) ? n(w) : null,
|
|
325
|
+
onClick: (a) => U(i.id)
|
|
306
326
|
}, null, 8, ["disabled", "tooltip-text", "onClick"])
|
|
307
327
|
]),
|
|
308
328
|
_: 1
|
|
@@ -318,5 +338,5 @@ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = {
|
|
|
318
338
|
}
|
|
319
339
|
});
|
|
320
340
|
export {
|
|
321
|
-
|
|
341
|
+
ot as default
|
|
322
342
|
};
|
|
@@ -90,6 +90,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
90
90
|
};
|
|
91
91
|
}>> & {
|
|
92
92
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
93
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
93
94
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "selected" | "options" | "minSelections" | "noResultsText" | "searchAutoFocus" | "searchPlaceholder" | "headerText" | "appendToBody" | "defaultSelection" | "inlineGroupIds" | "idKey" | "displayKey" | "childrenKey" | "disabledKey" | "minSelectionsTooltipMessage">;
|
|
94
95
|
$attrs: {
|
|
95
96
|
[x: string]: unknown;
|
|
@@ -102,7 +103,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
102
103
|
}>;
|
|
103
104
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
104
105
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
105
|
-
$emit: (event: "update:selected", value: unknown[]) => void;
|
|
106
|
+
$emit: ((event: "update:selected", value: unknown[]) => void) & ((event: "trackUserActivity", isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void);
|
|
106
107
|
$el: any;
|
|
107
108
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
108
109
|
testId: {
|
|
@@ -174,8 +175,10 @@ declare const ColumnPickerTypes: () => ({
|
|
|
174
175
|
};
|
|
175
176
|
}>> & {
|
|
176
177
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
178
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
177
179
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
178
180
|
"update:selected": (value: unknown[]) => void;
|
|
181
|
+
trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
179
182
|
}, string, {
|
|
180
183
|
testId: string;
|
|
181
184
|
selected: unknown[];
|
|
@@ -283,6 +286,7 @@ declare const ColumnPickerTypes: () => ({
|
|
|
283
286
|
};
|
|
284
287
|
}>> & {
|
|
285
288
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
289
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
286
290
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
287
291
|
__isFragment?: never;
|
|
288
292
|
__isTeleport?: never;
|
|
@@ -357,8 +361,10 @@ declare const ColumnPickerTypes: () => ({
|
|
|
357
361
|
};
|
|
358
362
|
}>> & {
|
|
359
363
|
"onUpdate:selected"?: (value: unknown[]) => any;
|
|
364
|
+
onTrackUserActivity?: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => any;
|
|
360
365
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
361
366
|
"update:selected": (value: unknown[]) => void;
|
|
367
|
+
trackUserActivity: (isResetToDefault: boolean, isSearched: boolean, isExpanded: boolean, isCollapse: boolean, status: "Cancel" | "Save") => void;
|
|
362
368
|
}, string, {
|
|
363
369
|
testId: string;
|
|
364
370
|
selected: unknown[];
|