@ironsource/shared-ui 2.1.12-test.1 → 2.1.12-test.2
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_7d287ee5_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +22 -21
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +9 -7
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +42 -34
- package/components/chart/ChartPlane.vue.d.ts +5 -0
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +14 -12
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +3 -3
- package/components/chart/index.d.ts +15 -0
- package/components/dateRange/common/DateRange.common.js +81 -75
- package/components/dateRange/common/DateServices.common.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.js +1 -0
- package/components/dropdown/common/Dropdown.common.js +83 -79
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +15 -12
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +105 -96
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +56 -54
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -5
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +3 -3
- package/components/dropdown/v4/index.d.ts +30 -15
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +140 -0
- package/components/link/index.js +6 -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 +5 -4
- package/components/table/v4/index.d.ts +2 -0
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/index.d.ts +68 -30
- package/index.js +111 -105
- package/mocks/optionsWithIcons.d.ts +1 -0
- package/package.json +9 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +31 -30
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_ff7e556e_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0963bb3c_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_dd86e387_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b9724567_lang.css +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { useToggle as
|
|
2
|
-
import { inject as
|
|
3
|
-
import { isObjectInArray as
|
|
4
|
-
import { objectsEqual as
|
|
5
|
-
import { useVirtualList as
|
|
6
|
-
import { useClamp as
|
|
7
|
-
import { Mode as w, Type as U, DropdownContext as
|
|
8
|
-
import { pxToRem as
|
|
9
|
-
import { useEditableContext as
|
|
10
|
-
import { useGroupedOptions as
|
|
11
|
-
const
|
|
12
|
-
const B =
|
|
1
|
+
import { useToggle as ke } from "../../../composables/useToggle.js";
|
|
2
|
+
import { inject as Ge, ref as r, computed as c, watch as b, useSlots as Le, toRaw as I, nextTick as N, provide as Ue, onMounted as Be } from "vue";
|
|
3
|
+
import { isObjectInArray as ue } from "../../../utils/array.js";
|
|
4
|
+
import { objectsEqual as He } from "../../../utils/object.js";
|
|
5
|
+
import { useVirtualList as qe, onClickOutside as ie, useInfiniteScroll as Xe } from "@vueuse/core";
|
|
6
|
+
import { useClamp as $e } from "@vueuse/math";
|
|
7
|
+
import { Mode as w, Type as U, DropdownContext as je } from "./DropdownContext.js";
|
|
8
|
+
import { pxToRem as ze } from "../../../utils/style.js";
|
|
9
|
+
import { useEditableContext as We } from "../../table-cells/common/EditableContext.js";
|
|
10
|
+
import { useGroupedOptions as Je } from "./useGroupedOptions.js";
|
|
11
|
+
const ul = (e, d, y) => {
|
|
12
|
+
const B = Ge("isTreeDropdown", !1), {
|
|
13
13
|
sortOutGroups: H,
|
|
14
14
|
flattenAndMarkGroupOptions: q,
|
|
15
15
|
isGroup: X,
|
|
16
|
-
selectAllWithGroups:
|
|
17
|
-
isIndeterminateGrouped:
|
|
16
|
+
selectAllWithGroups: re,
|
|
17
|
+
isIndeterminateGrouped: oe,
|
|
18
18
|
allSelectedGrouped: $,
|
|
19
|
-
areAllPreviousSelected:
|
|
20
|
-
groupedChildOptionsLength:
|
|
21
|
-
} =
|
|
19
|
+
areAllPreviousSelected: ce,
|
|
20
|
+
groupedChildOptionsLength: se
|
|
21
|
+
} = Je(e), de = (l, t) => e.multi && Array.isArray(l) ? e.comparingKey ? l?.findIndex(
|
|
22
22
|
(i) => i[e.comparingKey] === t[e.comparingKey]
|
|
23
|
-
) > -1 :
|
|
23
|
+
) > -1 : ue(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
|
|
24
24
|
let j;
|
|
25
25
|
((l) => {
|
|
26
26
|
l[l.None = 0] = "None", l[l.Next = 1] = "Next", l[l.Previous = -1] = "Previous", l[l.NextPage = 10] = "NextPage", l[l.PrevPage = -10] = "PrevPage";
|
|
27
27
|
})(j || (j = {}));
|
|
28
28
|
const a = r(
|
|
29
29
|
e.selected
|
|
30
|
-
), K =
|
|
30
|
+
), K = We(), n = c({
|
|
31
31
|
get() {
|
|
32
32
|
return K?.value?.value ?? a.value;
|
|
33
33
|
},
|
|
@@ -41,45 +41,45 @@ const nl = (e, d, y) => {
|
|
|
41
41
|
a.value = e.selected, v.value = e.selected;
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
|
-
const
|
|
44
|
+
const ve = Le(), x = r(null), m = r(null), z = r(null), R = r(null), W = r(null), D = r(null), fe = r(), J = r(null), Q = r(null), Y = r(null), ge = 8, ye = c(() => D.value ? D.value.getBoundingClientRect().height + ge + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => D.value?.focus(), [S, he, Oe] = ke({
|
|
45
45
|
disabled: e.disabled,
|
|
46
46
|
initialValue: e.defaultOpen
|
|
47
47
|
});
|
|
48
48
|
b(
|
|
49
49
|
() => e.disabled,
|
|
50
50
|
(l) => {
|
|
51
|
-
l !== void 0 &&
|
|
51
|
+
l !== void 0 && Oe(l);
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
const F = (l) => {
|
|
55
|
-
|
|
56
|
-
},
|
|
55
|
+
Se.value = he(l);
|
|
56
|
+
}, Se = c({
|
|
57
57
|
get() {
|
|
58
58
|
return e.isOpen;
|
|
59
59
|
},
|
|
60
60
|
set(l) {
|
|
61
61
|
d("update:isOpen", l);
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), me = c(() => o.value.length - 1), g = $e(0, 0, me), p = c(() => n.value ? e.displayValue(n.value) : ""), Ae = (l) => {
|
|
64
64
|
if (!l.value.length && !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix)
|
|
65
65
|
return e.placeholder;
|
|
66
66
|
const t = !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix ? `${l.value.length} selected` : `${e.multiOptionsPlaceholderPrefix ?? ""}${l.value.length ?? "0"}${e.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
67
67
|
return l.value.length == 1 && e.displayValue ? e.displayValue(l.value[0]) : t;
|
|
68
|
-
},
|
|
68
|
+
}, be = c(() => {
|
|
69
69
|
if (!e.multi)
|
|
70
70
|
return n.value ? e.displayValue(n.value) : e.placeholder;
|
|
71
71
|
if (Array.isArray(a.value))
|
|
72
|
-
return
|
|
72
|
+
return Ae(a);
|
|
73
73
|
}), E = c(() => {
|
|
74
74
|
if (Array.isArray(a.value))
|
|
75
75
|
return e.groupedOptions ? $(o, a) : a.value.length === o.value.length;
|
|
76
|
-
}),
|
|
76
|
+
}), Te = c(() => !e.multi || !Array.isArray(a.value) ? !1 : e.groupedOptions ? oe(
|
|
77
77
|
o,
|
|
78
78
|
a
|
|
79
79
|
) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
|
|
80
80
|
O.value = l;
|
|
81
|
-
}, M = c(() => e.groupedOptions ? q(e.options) : e.options),
|
|
82
|
-
if (
|
|
81
|
+
}, M = c(() => e.groupedOptions ? q(e.options) : e.options), Pe = c(() => {
|
|
82
|
+
if (ce(
|
|
83
83
|
M,
|
|
84
84
|
v
|
|
85
85
|
))
|
|
@@ -97,20 +97,20 @@ const nl = (e, d, y) => {
|
|
|
97
97
|
const t = e.groupedOptions ? H(l.notSelected) : l.notSelected;
|
|
98
98
|
return [].concat(l.selected, t);
|
|
99
99
|
}), o = c(() => {
|
|
100
|
-
const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ?
|
|
100
|
+
const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Pe.value : M.value;
|
|
101
101
|
if (e.onSearch) {
|
|
102
102
|
const t = l.filter((i) => e.groupedOptions && X(i) ? i : e.onSearch(i, O.value));
|
|
103
103
|
return e.groupedOptions ? H(t) : t;
|
|
104
104
|
} else
|
|
105
105
|
return l;
|
|
106
|
-
}),
|
|
107
|
-
() =>
|
|
106
|
+
}), Ie = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === w.Multi), le = c(
|
|
107
|
+
() => Ie.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
|
|
108
108
|
), {
|
|
109
109
|
list: V,
|
|
110
110
|
containerProps: k,
|
|
111
|
-
wrapperProps:
|
|
111
|
+
wrapperProps: we,
|
|
112
112
|
scrollTo: P
|
|
113
|
-
} =
|
|
113
|
+
} = qe(o, {
|
|
114
114
|
itemHeight: le.value,
|
|
115
115
|
overscan: e.disableVirtualScroll ? 1 / 0 : 2
|
|
116
116
|
});
|
|
@@ -152,14 +152,14 @@ const nl = (e, d, y) => {
|
|
|
152
152
|
}
|
|
153
153
|
Z();
|
|
154
154
|
});
|
|
155
|
-
const
|
|
155
|
+
const xe = () => {
|
|
156
156
|
if (E.value) {
|
|
157
157
|
a.value = [];
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
160
|
if (Array.isArray(a.value)) {
|
|
161
161
|
if (e.groupedOptions)
|
|
162
|
-
|
|
162
|
+
re(o, a);
|
|
163
163
|
else {
|
|
164
164
|
if (a.value.length === o.value.length) {
|
|
165
165
|
a.value = [];
|
|
@@ -169,9 +169,9 @@ const nl = (e, d, y) => {
|
|
|
169
169
|
}
|
|
170
170
|
d("selectAll");
|
|
171
171
|
}
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
},
|
|
172
|
+
}, De = () => {
|
|
173
|
+
xe(), y.VERSION !== 4 && (n.value = a.value);
|
|
174
|
+
}, Me = (l = !0) => {
|
|
175
175
|
a.value = [], l ? (n.value = [], v.value = [], d("clear")) : e.dynamicFilterMode || d("clear");
|
|
176
176
|
}, G = (l, t) => {
|
|
177
177
|
if (l = I(l), y.VERSION === 4 ? l[e.disabledOptionKey] : h.value[t]?.disabled)
|
|
@@ -180,23 +180,23 @@ const nl = (e, d, y) => {
|
|
|
180
180
|
e.keepOpen || A(!1), s.goToOption(
|
|
181
181
|
0
|
|
182
182
|
/* None */
|
|
183
|
-
), n.value = l, _(""), Z(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)),
|
|
183
|
+
), n.value = l, _(""), Z(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), ae();
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
if (!Array.isArray(a.value))
|
|
187
187
|
return;
|
|
188
188
|
m.value?.focus();
|
|
189
189
|
const f = I(a.value);
|
|
190
|
-
if (
|
|
190
|
+
if (ue(f, l) || e.comparingKey && f.findIndex(
|
|
191
191
|
(u) => u[e.comparingKey] === l[e.comparingKey]
|
|
192
192
|
) > -1) {
|
|
193
|
-
a.value = f.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !
|
|
193
|
+
a.value = f.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !He(u, l));
|
|
194
194
|
return;
|
|
195
195
|
} else {
|
|
196
196
|
a.value = [...f, l];
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, Ce = (l) => h.value[l]?.disabled, s = {
|
|
200
200
|
activeIndex: g,
|
|
201
201
|
options: h,
|
|
202
202
|
selectedOption: n,
|
|
@@ -204,7 +204,7 @@ const nl = (e, d, y) => {
|
|
|
204
204
|
activeOption: R,
|
|
205
205
|
listRef: x,
|
|
206
206
|
clearable: e.clearable,
|
|
207
|
-
type:
|
|
207
|
+
type: ve.input ? U.Search : U.Dropdown,
|
|
208
208
|
mode: e.multi ? w.Multi : w.Single,
|
|
209
209
|
query: O,
|
|
210
210
|
selectedValue: p,
|
|
@@ -231,7 +231,7 @@ const nl = (e, d, y) => {
|
|
|
231
231
|
R.value = o.value[t], g.value = t;
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
if ((l === 1 || l === 10) && (t = t + 1), (l === -1 || l === -10) && (t = t + -1), !!
|
|
234
|
+
if ((l === 1 || l === 10) && (t = t + 1), (l === -1 || l === -10) && (t = t + -1), !!Ce(g.value)) {
|
|
235
235
|
R.value = o.value[t], g.value = t;
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
@@ -247,10 +247,10 @@ const nl = (e, d, y) => {
|
|
|
247
247
|
h.value = h.value.filter((t) => t.id !== l);
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
|
|
250
|
+
Ue(je, s), ie(
|
|
251
251
|
x,
|
|
252
252
|
() => {
|
|
253
|
-
S.value &&
|
|
253
|
+
S.value && ne();
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
ignore: [
|
|
@@ -263,22 +263,26 @@ const nl = (e, d, y) => {
|
|
|
263
263
|
]
|
|
264
264
|
}
|
|
265
265
|
);
|
|
266
|
-
const
|
|
266
|
+
const Ne = () => {
|
|
267
267
|
m.value && (m.value.value = s.query.value = "");
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
e.autoFocus && (await N(), setTimeout(() => {
|
|
271
|
-
z.value.focus();
|
|
272
|
-
})), s.goToOption(0), e.multi && !B && (e.groupedOptions ? C.value = $(
|
|
268
|
+
}, te = () => {
|
|
269
|
+
e.multi && !B && (e.groupedOptions ? C.value = $(
|
|
273
270
|
o,
|
|
274
271
|
a
|
|
275
272
|
) : C.value = e.options.length === e.selected.length);
|
|
273
|
+
};
|
|
274
|
+
Be(async () => {
|
|
275
|
+
e.autoFocus && (await N(), setTimeout(() => {
|
|
276
|
+
z.value.focus();
|
|
277
|
+
})), s.goToOption(0), te();
|
|
278
|
+
}), b([() => e.options, () => e.selected], () => {
|
|
279
|
+
te();
|
|
276
280
|
});
|
|
277
|
-
const
|
|
278
|
-
e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = I(n.value).slice(), C.value = e.groupedOptions ?
|
|
279
|
-
},
|
|
281
|
+
const ae = () => {
|
|
282
|
+
e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = I(n.value).slice(), C.value = e.groupedOptions ? se(e.options) === n.value.length : e.options.length === n.value.length)), d("apply", n.value), d("allSelectedChanged", E.value), A(!1), Ne();
|
|
283
|
+
}, ne = () => {
|
|
280
284
|
ee.value && Array.isArray(v.value) && (n.value = I(v.value).slice()), O.value = "", A(!1);
|
|
281
|
-
},
|
|
285
|
+
}, Ke = (l) => {
|
|
282
286
|
if (!e.disableKeyboardEvents)
|
|
283
287
|
switch (l.key) {
|
|
284
288
|
case "Space":
|
|
@@ -287,7 +291,7 @@ const nl = (e, d, y) => {
|
|
|
287
291
|
case "ArrowDown":
|
|
288
292
|
A(!0), l.preventDefault();
|
|
289
293
|
}
|
|
290
|
-
},
|
|
294
|
+
}, Re = (l) => {
|
|
291
295
|
if (!e.disableKeyboardEvents)
|
|
292
296
|
switch (l.key) {
|
|
293
297
|
case "ArrowUp": {
|
|
@@ -331,19 +335,19 @@ const nl = (e, d, y) => {
|
|
|
331
335
|
break;
|
|
332
336
|
}
|
|
333
337
|
}
|
|
334
|
-
},
|
|
338
|
+
}, Ee = c(() => {
|
|
335
339
|
if (e.loading)
|
|
336
340
|
return 8.5;
|
|
337
|
-
const l = e.loadMoreLoading && y.MAX_NUMBER_OF_OPTIONS || e.customNumberOfDisplayedOptions || V.value.reduce((L,
|
|
338
|
-
const
|
|
339
|
-
return L +
|
|
341
|
+
const l = e.loadMoreLoading && y.MAX_NUMBER_OF_OPTIONS || e.customNumberOfDisplayedOptions || V.value.reduce((L, _e) => {
|
|
342
|
+
const Ve = e.overrideOptionCountCalculation ? e.overrideOptionCountCalculation(_e.data) : 1;
|
|
343
|
+
return L + Ve;
|
|
340
344
|
}, 0), t = e.multi && e.showSelectAll && !O.value ? 1 : 0, i = l > y.MAX_NUMBER_OF_OPTIONS, f = l + t;
|
|
341
345
|
let u = i ? y.MAX_NUMBER_OF_OPTIONS + 0.1 : f;
|
|
342
|
-
return e.loadMoreLoading && e.multi && (V.value.length ? u = u + 0.1 : u = u - 0.9), e.noResultsText && u === 0 && (u = u + 1), e.withConditions && O.value && (u = u + 1),
|
|
346
|
+
return e.loadMoreLoading && e.multi && (V.value.length ? u = u + 0.1 : u = u - 0.9), e.noResultsText && u === 0 && (u = u + 1), e.withConditions && O.value && (u = u + 1), ze(
|
|
343
347
|
u * le.value + y.PADDING_PX
|
|
344
348
|
);
|
|
345
349
|
});
|
|
346
|
-
return
|
|
350
|
+
return Xe(
|
|
347
351
|
k.ref,
|
|
348
352
|
() => {
|
|
349
353
|
!e.loadMoreLoading && e.infiniteLoading && d("loadMore");
|
|
@@ -352,45 +356,45 @@ const nl = (e, d, y) => {
|
|
|
352
356
|
), b(a, () => {
|
|
353
357
|
d("unsavedSelectionUpdate", a.value);
|
|
354
358
|
}), {
|
|
355
|
-
onKeydown:
|
|
356
|
-
location:
|
|
359
|
+
onKeydown: Re,
|
|
360
|
+
location: ye,
|
|
357
361
|
open: S,
|
|
358
362
|
toggleMenu: A,
|
|
359
|
-
onButtonKeydown:
|
|
360
|
-
displayedValue:
|
|
363
|
+
onButtonKeydown: Ke,
|
|
364
|
+
displayedValue: be,
|
|
361
365
|
labelRef: W,
|
|
362
366
|
query: O,
|
|
363
367
|
containerProps: k,
|
|
364
|
-
calculateTableHeight:
|
|
365
|
-
wrapperProps:
|
|
368
|
+
calculateTableHeight: Ee,
|
|
369
|
+
wrapperProps: we,
|
|
366
370
|
filteredOptions: o,
|
|
367
371
|
allSelected: E,
|
|
368
372
|
allSelectedApplied: C,
|
|
369
|
-
isIndeterminate:
|
|
370
|
-
onSelectAll:
|
|
373
|
+
isIndeterminate: Te,
|
|
374
|
+
onSelectAll: De,
|
|
371
375
|
virtualOptions: V,
|
|
372
|
-
isSelected:
|
|
376
|
+
isSelected: de,
|
|
373
377
|
selectedOption: n,
|
|
374
378
|
selectedOptionPrevious: v,
|
|
375
379
|
selectedValue: p,
|
|
376
380
|
onSelect: G,
|
|
377
381
|
activeIndex: g,
|
|
378
|
-
onCancel:
|
|
379
|
-
onApply:
|
|
382
|
+
onCancel: ne,
|
|
383
|
+
onApply: ae,
|
|
380
384
|
scrollTo: P,
|
|
381
|
-
onClickOutside:
|
|
385
|
+
onClickOutside: ie,
|
|
382
386
|
listRef: x,
|
|
383
387
|
buttonRef: D,
|
|
384
388
|
apply: J,
|
|
385
389
|
cancel: Q,
|
|
386
390
|
el: z,
|
|
387
|
-
triggerRef:
|
|
391
|
+
triggerRef: fe,
|
|
388
392
|
clearAll: Y,
|
|
389
|
-
onClearAllSelections:
|
|
393
|
+
onClearAllSelections: Me,
|
|
390
394
|
isGroup: X,
|
|
391
395
|
flattenAndMarkGroupOptions: q
|
|
392
396
|
};
|
|
393
397
|
};
|
|
394
398
|
export {
|
|
395
|
-
|
|
399
|
+
ul as dropdownCommon
|
|
396
400
|
};
|
|
@@ -66,6 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
66
66
|
hideEndIcon: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
68
68
|
default?(_: {}): any;
|
|
69
|
+
"after-label"?(_: {}): any;
|
|
69
70
|
}>;
|
|
70
71
|
export default _default;
|
|
71
72
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ButtonDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-adb49e50"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../ButtonDropdownTrigger.
|
|
1
|
+
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css"; import { defineComponent as m, openBlock as u, createBlock as f, unref as l, normalizeClass as c, withCtx as e, renderSlot as n, createElementVNode as y, normalizeStyle as b, createVNode as h, createTextVNode as T, toDisplayString as B } from "vue";
|
|
2
2
|
import g from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import v from "../../typography/v4/Typography.vue.js";
|
|
7
|
+
const i = 40, E = /* @__PURE__ */ m({
|
|
8
8
|
__name: "ButtonDropdownTrigger",
|
|
9
9
|
props: {
|
|
10
10
|
label: {},
|
|
@@ -21,9 +21,9 @@ const n = 40, E = /* @__PURE__ */ p({
|
|
|
21
21
|
tooltipPlacement: { default: "top" }
|
|
22
22
|
},
|
|
23
23
|
emits: ["click"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
return (t,
|
|
24
|
+
setup(r, { emit: d }) {
|
|
25
|
+
const o = r, s = o.maxWidth > i ? { maxWidth: `${o.maxWidth - i}px` } : {}, p = d;
|
|
26
|
+
return (t, a) => (u(), f(l(g), {
|
|
27
27
|
class: c(["button-trigger", { open: t.open }]),
|
|
28
28
|
disabled: t.disabled,
|
|
29
29
|
color: "default",
|
|
@@ -34,15 +34,18 @@ const n = 40, E = /* @__PURE__ */ p({
|
|
|
34
34
|
"end-icon-name": t.hideEndIcon ? null : "caret-down",
|
|
35
35
|
content: t.label,
|
|
36
36
|
"test-id": t.testId,
|
|
37
|
-
onClick:
|
|
37
|
+
onClick: a[0] || (a[0] = (w) => p("click"))
|
|
38
38
|
}, {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
"after-label": e(() => [
|
|
40
|
+
n(t.$slots, "after-label", {}, void 0, !0)
|
|
41
|
+
]),
|
|
42
|
+
default: e(() => [
|
|
43
|
+
n(t.$slots, "default", {}, () => [
|
|
41
44
|
y("div", {
|
|
42
|
-
style:
|
|
45
|
+
style: b(l(s)),
|
|
43
46
|
class: "label-wrapper"
|
|
44
47
|
}, [
|
|
45
|
-
|
|
48
|
+
h(v, {
|
|
46
49
|
variant: "button",
|
|
47
50
|
class: "label-text",
|
|
48
51
|
"is-truncated": "",
|
|
@@ -50,7 +53,7 @@ const n = 40, E = /* @__PURE__ */ p({
|
|
|
50
53
|
"tooltip-text": t.label,
|
|
51
54
|
"tooltip-placement": t.tooltipPlacement
|
|
52
55
|
}, {
|
|
53
|
-
default:
|
|
56
|
+
default: e(() => [
|
|
54
57
|
T(B(t.label), 1)
|
|
55
58
|
]),
|
|
56
59
|
_: 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ConditionalDropdown.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ConditionalDropdown.
|
|
4
|
-
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f5204c04"]]);
|
|
5
5
|
export {
|
|
6
6
|
n as default
|
|
7
7
|
};
|