@ironsource/shared-ui 2.1.12 → 2.2.0-rc.0
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/DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css +1 -0
- package/components/dropdown/common/Dropdown.common.js +32 -32
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +2 -1
- package/components/dropdown/v4/index.d.ts +20 -1
- package/index.d.ts +40 -2
- package/package.json +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-d3802d59],.v-leave-active[data-v-d3802d59]{transition:opacity .25s ease}ol[data-v-d3802d59],ul[data-v-d3802d59],menu[data-v-d3802d59]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-d3802d59],.dropdown.full-width .button__container[data-v-d3802d59]{width:100%}.dropdown-list-wrapper[data-v-d3802d59]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-d3802d59]{padding:.5rem}.list-container--multi[data-v-d3802d59]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-d3802d59]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-d3802d59]{width:100%}.inline-search .list-container[data-v-d3802d59]{padding-top:0}.no-result-container[data-v-d3802d59]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-d3802d59]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-d3802d59]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-d3802d59]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-d3802d59]{min-height:0;margin-bottom:0}.image-slot[data-v-d3802d59]{margin-right:.5rem}.actions-wrapper[data-v-d3802d59]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.dropdown-footer[data-v-d3802d59]{display:flex;width:100%;padding:.5rem .5rem .375rem .4375rem;border-top:1px solid var(--common-divider);margin-top:.25rem}.apply-button[data-v-d3802d59]{margin-left:.5rem}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
|
|
2
|
+
import { inject as Ge, ref as r, computed as c, watch as b, useSlots as Le, toRaw as w, nextTick as N, provide as Ue, onMounted as Be } from "vue";
|
|
3
3
|
import { isObjectInArray as ue } from "../../../utils/array.js";
|
|
4
4
|
import { objectsEqual as He } from "../../../utils/object.js";
|
|
5
5
|
import { useClamp as qe, useVirtualList as Xe, onClickOutside as ie, useInfiniteScroll as $e } from "@vueuse/core";
|
|
6
|
-
import { Mode as
|
|
6
|
+
import { Mode as x, Type as U, DropdownContext as je } from "./DropdownContext.js";
|
|
7
7
|
import { pxToRem as ze } from "../../../utils/style.js";
|
|
8
8
|
import { useEditableContext as We } from "../../table-cells/common/EditableContext.js";
|
|
9
9
|
import { useGroupedOptions as Je } from "./useGroupedOptions.js";
|
|
@@ -40,7 +40,7 @@ const nl = (e, d, y) => {
|
|
|
40
40
|
a.value = e.selected, v.value = e.selected;
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
|
-
const ve = Le(),
|
|
43
|
+
const ve = Le(), D = r(null), m = r(null), z = r(null), R = r(null), W = r(null), M = r(null), fe = r(), J = r(null), Q = r(null), Y = r(null), ge = 8, ye = c(() => M.value ? M.value.getBoundingClientRect().height + ge + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => M.value?.focus(), [S, he, Oe] = ke({
|
|
44
44
|
disabled: e.disabled,
|
|
45
45
|
initialValue: e.defaultOpen
|
|
46
46
|
});
|
|
@@ -77,17 +77,17 @@ const nl = (e, d, y) => {
|
|
|
77
77
|
a
|
|
78
78
|
) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
|
|
79
79
|
O.value = l;
|
|
80
|
-
},
|
|
81
|
-
if (ce(
|
|
82
|
-
|
|
80
|
+
}, P = c(() => e.groupedOptions ? q(e.options) : e.options), Pe = c(() => {
|
|
81
|
+
if (e.groupedOptions && !e.resortGroupedOptions || ce(
|
|
82
|
+
P,
|
|
83
83
|
v
|
|
84
84
|
))
|
|
85
|
-
return
|
|
85
|
+
return P.value;
|
|
86
86
|
const l = {
|
|
87
87
|
selected: [],
|
|
88
88
|
notSelected: []
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
w(P).value.forEach((i) => {
|
|
91
91
|
const u = (e.comparingKey ? v.value.findIndex(
|
|
92
92
|
(L) => L[e.comparingKey] === i[e.comparingKey]
|
|
93
93
|
) > -1 : v.value.includes(i)) ? "selected" : "notSelected";
|
|
@@ -96,19 +96,19 @@ const nl = (e, d, y) => {
|
|
|
96
96
|
const t = e.groupedOptions ? H(l.notSelected) : l.notSelected;
|
|
97
97
|
return [].concat(l.selected, t);
|
|
98
98
|
}), o = c(() => {
|
|
99
|
-
const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Pe.value :
|
|
99
|
+
const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Pe.value : P.value;
|
|
100
100
|
if (e.onSearch) {
|
|
101
101
|
const t = l.filter((i) => e.groupedOptions && X(i) ? i : e.onSearch(i, O.value));
|
|
102
102
|
return e.groupedOptions ? H(t) : t;
|
|
103
103
|
} else
|
|
104
104
|
return l;
|
|
105
|
-
}), Ie = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode ===
|
|
105
|
+
}), Ie = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === x.Multi), le = c(
|
|
106
106
|
() => Ie.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
|
|
107
107
|
), {
|
|
108
108
|
list: V,
|
|
109
109
|
containerProps: k,
|
|
110
110
|
wrapperProps: we,
|
|
111
|
-
scrollTo:
|
|
111
|
+
scrollTo: I
|
|
112
112
|
} = Xe(o, {
|
|
113
113
|
itemHeight: le.value,
|
|
114
114
|
overscan: e.disableVirtualScroll ? 1 / 0 : 2
|
|
@@ -125,28 +125,28 @@ const nl = (e, d, y) => {
|
|
|
125
125
|
async ([l], [t]) => {
|
|
126
126
|
S.value && (await N(), T.value !== -1 && l !== t && setTimeout(() => {
|
|
127
127
|
if (!(e.multi && y.VERSION === 4))
|
|
128
|
-
if (
|
|
129
|
-
const i =
|
|
128
|
+
if (I(T.value), e.groupedOptions) {
|
|
129
|
+
const i = P.value.findIndex(
|
|
130
130
|
(f) => f === n.value
|
|
131
131
|
);
|
|
132
|
-
|
|
132
|
+
I(i);
|
|
133
133
|
} else
|
|
134
|
-
|
|
134
|
+
I(T.value);
|
|
135
135
|
}), g.value && setTimeout(() => {
|
|
136
|
-
|
|
136
|
+
I(g.value);
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
139
|
), b(O, () => {
|
|
140
|
-
d("onsearch", O.value),
|
|
140
|
+
d("onsearch", O.value), I(0);
|
|
141
141
|
});
|
|
142
142
|
const A = (l, t = !1) => {
|
|
143
143
|
e.disabled || (F(l), N(() => {
|
|
144
|
-
S.value && d("opened"), S.value || d("closed"),
|
|
144
|
+
S.value && d("opened"), S.value || d("closed"), D.value && t && D.value.focus();
|
|
145
145
|
}));
|
|
146
146
|
};
|
|
147
147
|
b(S, (l) => {
|
|
148
148
|
if (l) {
|
|
149
|
-
O.value = "", ee.value && Array.isArray(n.value) && (v.value =
|
|
149
|
+
O.value = "", ee.value && Array.isArray(n.value) && (v.value = w(n.value).slice());
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
Z();
|
|
@@ -173,7 +173,7 @@ const nl = (e, d, y) => {
|
|
|
173
173
|
}, Me = (l = !0) => {
|
|
174
174
|
a.value = [], l ? (n.value = [], v.value = [], d("clear")) : e.dynamicFilterMode || d("clear");
|
|
175
175
|
}, G = (l, t) => {
|
|
176
|
-
if (l =
|
|
176
|
+
if (l = w(l), y.VERSION === 4 ? l[e.disabledOptionKey] : h.value[t]?.disabled)
|
|
177
177
|
return;
|
|
178
178
|
if (T.value = t, !e.multi) {
|
|
179
179
|
e.keepOpen || A(!1), s.goToOption(
|
|
@@ -185,7 +185,7 @@ const nl = (e, d, y) => {
|
|
|
185
185
|
if (!Array.isArray(a.value))
|
|
186
186
|
return;
|
|
187
187
|
m.value?.focus();
|
|
188
|
-
const f =
|
|
188
|
+
const f = w(a.value);
|
|
189
189
|
if (ue(f, l) || e.comparingKey && f.findIndex(
|
|
190
190
|
(u) => u[e.comparingKey] === l[e.comparingKey]
|
|
191
191
|
) > -1) {
|
|
@@ -201,10 +201,10 @@ const nl = (e, d, y) => {
|
|
|
201
201
|
selectedOption: n,
|
|
202
202
|
labelRef: W,
|
|
203
203
|
activeOption: R,
|
|
204
|
-
listRef:
|
|
204
|
+
listRef: D,
|
|
205
205
|
clearable: e.clearable,
|
|
206
206
|
type: ve.input ? U.Search : U.Dropdown,
|
|
207
|
-
mode: e.multi ?
|
|
207
|
+
mode: e.multi ? x.Multi : x.Single,
|
|
208
208
|
query: O,
|
|
209
209
|
selectedValue: p,
|
|
210
210
|
toggle: A,
|
|
@@ -215,7 +215,7 @@ const nl = (e, d, y) => {
|
|
|
215
215
|
placeholder: e.placeholder,
|
|
216
216
|
select: G,
|
|
217
217
|
clearSelection: () => {
|
|
218
|
-
_(""), n.value = s.mode ===
|
|
218
|
+
_(""), n.value = s.mode === x.Single ? null : [], v.value = s.mode === x.Single ? null : [], m.value && (m.value.value = "");
|
|
219
219
|
},
|
|
220
220
|
search: _,
|
|
221
221
|
goToOption: async (l) => {
|
|
@@ -247,13 +247,13 @@ const nl = (e, d, y) => {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
Ue(je, s), ie(
|
|
250
|
-
|
|
250
|
+
D,
|
|
251
251
|
() => {
|
|
252
252
|
S.value && ne();
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
ignore: [
|
|
256
|
-
|
|
256
|
+
M,
|
|
257
257
|
J,
|
|
258
258
|
Q,
|
|
259
259
|
Y,
|
|
@@ -278,9 +278,9 @@ const nl = (e, d, y) => {
|
|
|
278
278
|
te();
|
|
279
279
|
});
|
|
280
280
|
const ae = () => {
|
|
281
|
-
e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value =
|
|
281
|
+
e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = w(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();
|
|
282
282
|
}, ne = () => {
|
|
283
|
-
ee.value && Array.isArray(v.value) && (n.value =
|
|
283
|
+
ee.value && Array.isArray(v.value) && (n.value = w(v.value).slice()), O.value = "", A(!1);
|
|
284
284
|
}, Ke = (l) => {
|
|
285
285
|
if (!e.disableKeyboardEvents)
|
|
286
286
|
switch (l.key) {
|
|
@@ -330,7 +330,7 @@ const nl = (e, d, y) => {
|
|
|
330
330
|
A(!0);
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
|
-
G(o.value[g.value], g.value), s.mode ===
|
|
333
|
+
G(o.value[g.value], g.value), s.mode === x.Single && !e.keepOpen && A(!1), l.preventDefault();
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
@@ -380,10 +380,10 @@ const nl = (e, d, y) => {
|
|
|
380
380
|
activeIndex: g,
|
|
381
381
|
onCancel: ne,
|
|
382
382
|
onApply: ae,
|
|
383
|
-
scrollTo:
|
|
383
|
+
scrollTo: I,
|
|
384
384
|
onClickOutside: ie,
|
|
385
|
-
listRef:
|
|
386
|
-
buttonRef:
|
|
385
|
+
listRef: D,
|
|
386
|
+
buttonRef: M,
|
|
387
387
|
apply: J,
|
|
388
388
|
cancel: Q,
|
|
389
389
|
el: z,
|
|
@@ -59,6 +59,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
59
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
60
60
|
optionTwoLinesKey?: string;
|
|
61
61
|
groupedOptions?: boolean;
|
|
62
|
+
resortGroupedOptions?: boolean;
|
|
62
63
|
comparingKey?: string;
|
|
63
64
|
customNumberOfDisplayedOptions?: number;
|
|
64
65
|
optionTooltipPosition?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -125,6 +126,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
126
|
optionTwoLinesVariant: any;
|
|
126
127
|
optionTwoLinesKey: any;
|
|
127
128
|
groupedOptions: boolean;
|
|
129
|
+
resortGroupedOptions: boolean;
|
|
128
130
|
comparingKey: any;
|
|
129
131
|
customNumberOfDisplayedOptions: any;
|
|
130
132
|
optionTooltipPosition: string;
|
|
@@ -211,6 +213,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
211
213
|
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
212
214
|
optionTwoLinesKey?: string;
|
|
213
215
|
groupedOptions?: boolean;
|
|
216
|
+
resortGroupedOptions?: boolean;
|
|
214
217
|
comparingKey?: string;
|
|
215
218
|
customNumberOfDisplayedOptions?: number;
|
|
216
219
|
optionTooltipPosition?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -277,6 +280,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
277
280
|
optionTwoLinesVariant: any;
|
|
278
281
|
optionTwoLinesKey: any;
|
|
279
282
|
groupedOptions: boolean;
|
|
283
|
+
resortGroupedOptions: boolean;
|
|
280
284
|
comparingKey: any;
|
|
281
285
|
customNumberOfDisplayedOptions: any;
|
|
282
286
|
optionTooltipPosition: string;
|
|
@@ -356,6 +360,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
356
360
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
357
361
|
optionTwoLinesKey: string;
|
|
358
362
|
groupedOptions: boolean;
|
|
363
|
+
resortGroupedOptions: boolean;
|
|
359
364
|
comparingKey: string;
|
|
360
365
|
customNumberOfDisplayedOptions: number;
|
|
361
366
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const
|
|
5
|
+
const d = /* @__PURE__ */ _(o, [["__scopeId", "data-v-d3802d59"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
d as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as B, watch as we, toRaw as S, openBlock as a, createElementBlock as r, mergeProps as m, unref as t, renderSlot as u, createElementVNode as f, createVNode as d, withCtx as c, Transition as Te, normalizeClass as x, normalizeStyle as be, createTextVNode as w, createCommentVNode as s, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
|
|
2
2
|
import N from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
@@ -101,6 +101,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
101
101
|
optionTwoLinesVariant: { default: void 0 },
|
|
102
102
|
optionTwoLinesKey: { default: void 0 },
|
|
103
103
|
groupedOptions: { type: Boolean, default: !1 },
|
|
104
|
+
resortGroupedOptions: { type: Boolean, default: !0 },
|
|
104
105
|
comparingKey: { default: null },
|
|
105
106
|
customNumberOfDisplayedOptions: { default: null },
|
|
106
107
|
optionTooltipPosition: { default: "right" },
|
|
@@ -1856,6 +1856,7 @@ declare const DropdownTypes: () => (({
|
|
|
1856
1856
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
1857
1857
|
optionTwoLinesKey: string;
|
|
1858
1858
|
groupedOptions: boolean;
|
|
1859
|
+
resortGroupedOptions: boolean;
|
|
1859
1860
|
comparingKey: string;
|
|
1860
1861
|
customNumberOfDisplayedOptions: number;
|
|
1861
1862
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -2103,6 +2104,10 @@ declare const DropdownTypes: () => (({
|
|
|
2103
2104
|
type: import("vue").PropType<boolean>;
|
|
2104
2105
|
default: boolean;
|
|
2105
2106
|
};
|
|
2107
|
+
resortGroupedOptions: {
|
|
2108
|
+
type: import("vue").PropType<boolean>;
|
|
2109
|
+
default: boolean;
|
|
2110
|
+
};
|
|
2106
2111
|
comparingKey: {
|
|
2107
2112
|
type: import("vue").PropType<string>;
|
|
2108
2113
|
default: any;
|
|
@@ -2152,7 +2157,7 @@ declare const DropdownTypes: () => (({
|
|
|
2152
2157
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2153
2158
|
onOpened?: () => any;
|
|
2154
2159
|
onClosed?: () => any;
|
|
2155
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2160
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "resortGroupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2156
2161
|
$attrs: {
|
|
2157
2162
|
[x: string]: unknown;
|
|
2158
2163
|
};
|
|
@@ -2404,6 +2409,10 @@ declare const DropdownTypes: () => (({
|
|
|
2404
2409
|
type: import("vue").PropType<boolean>;
|
|
2405
2410
|
default: boolean;
|
|
2406
2411
|
};
|
|
2412
|
+
resortGroupedOptions: {
|
|
2413
|
+
type: import("vue").PropType<boolean>;
|
|
2414
|
+
default: boolean;
|
|
2415
|
+
};
|
|
2407
2416
|
comparingKey: {
|
|
2408
2417
|
type: import("vue").PropType<string>;
|
|
2409
2418
|
default: any;
|
|
@@ -2525,6 +2534,7 @@ declare const DropdownTypes: () => (({
|
|
|
2525
2534
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
2526
2535
|
optionTwoLinesKey: string;
|
|
2527
2536
|
groupedOptions: boolean;
|
|
2537
|
+
resortGroupedOptions: boolean;
|
|
2528
2538
|
comparingKey: string;
|
|
2529
2539
|
customNumberOfDisplayedOptions: number;
|
|
2530
2540
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -2792,6 +2802,10 @@ declare const DropdownTypes: () => (({
|
|
|
2792
2802
|
type: import("vue").PropType<boolean>;
|
|
2793
2803
|
default: boolean;
|
|
2794
2804
|
};
|
|
2805
|
+
resortGroupedOptions: {
|
|
2806
|
+
type: import("vue").PropType<boolean>;
|
|
2807
|
+
default: boolean;
|
|
2808
|
+
};
|
|
2795
2809
|
comparingKey: {
|
|
2796
2810
|
type: import("vue").PropType<string>;
|
|
2797
2811
|
default: any;
|
|
@@ -3086,6 +3100,10 @@ declare const DropdownTypes: () => (({
|
|
|
3086
3100
|
type: import("vue").PropType<boolean>;
|
|
3087
3101
|
default: boolean;
|
|
3088
3102
|
};
|
|
3103
|
+
resortGroupedOptions: {
|
|
3104
|
+
type: import("vue").PropType<boolean>;
|
|
3105
|
+
default: boolean;
|
|
3106
|
+
};
|
|
3089
3107
|
comparingKey: {
|
|
3090
3108
|
type: import("vue").PropType<string>;
|
|
3091
3109
|
default: any;
|
|
@@ -3207,6 +3225,7 @@ declare const DropdownTypes: () => (({
|
|
|
3207
3225
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
3208
3226
|
optionTwoLinesKey: string;
|
|
3209
3227
|
groupedOptions: boolean;
|
|
3228
|
+
resortGroupedOptions: boolean;
|
|
3210
3229
|
comparingKey: string;
|
|
3211
3230
|
customNumberOfDisplayedOptions: number;
|
|
3212
3231
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
package/index.d.ts
CHANGED
|
@@ -17275,6 +17275,7 @@ declare const _default: {
|
|
|
17275
17275
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
17276
17276
|
optionTwoLinesKey: string;
|
|
17277
17277
|
groupedOptions: boolean;
|
|
17278
|
+
resortGroupedOptions: boolean;
|
|
17278
17279
|
comparingKey: string;
|
|
17279
17280
|
customNumberOfDisplayedOptions: number;
|
|
17280
17281
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -17522,6 +17523,10 @@ declare const _default: {
|
|
|
17522
17523
|
type: import("vue").PropType<boolean>;
|
|
17523
17524
|
default: boolean;
|
|
17524
17525
|
};
|
|
17526
|
+
resortGroupedOptions: {
|
|
17527
|
+
type: import("vue").PropType<boolean>;
|
|
17528
|
+
default: boolean;
|
|
17529
|
+
};
|
|
17525
17530
|
comparingKey: {
|
|
17526
17531
|
type: import("vue").PropType<string>;
|
|
17527
17532
|
default: any;
|
|
@@ -17571,7 +17576,7 @@ declare const _default: {
|
|
|
17571
17576
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
17572
17577
|
onOpened?: () => any;
|
|
17573
17578
|
onClosed?: () => any;
|
|
17574
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
17579
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "resortGroupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
17575
17580
|
$attrs: {
|
|
17576
17581
|
[x: string]: unknown;
|
|
17577
17582
|
};
|
|
@@ -17823,6 +17828,10 @@ declare const _default: {
|
|
|
17823
17828
|
type: import("vue").PropType<boolean>;
|
|
17824
17829
|
default: boolean;
|
|
17825
17830
|
};
|
|
17831
|
+
resortGroupedOptions: {
|
|
17832
|
+
type: import("vue").PropType<boolean>;
|
|
17833
|
+
default: boolean;
|
|
17834
|
+
};
|
|
17826
17835
|
comparingKey: {
|
|
17827
17836
|
type: import("vue").PropType<string>;
|
|
17828
17837
|
default: any;
|
|
@@ -17944,6 +17953,7 @@ declare const _default: {
|
|
|
17944
17953
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
17945
17954
|
optionTwoLinesKey: string;
|
|
17946
17955
|
groupedOptions: boolean;
|
|
17956
|
+
resortGroupedOptions: boolean;
|
|
17947
17957
|
comparingKey: string;
|
|
17948
17958
|
customNumberOfDisplayedOptions: number;
|
|
17949
17959
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -18211,6 +18221,10 @@ declare const _default: {
|
|
|
18211
18221
|
type: import("vue").PropType<boolean>;
|
|
18212
18222
|
default: boolean;
|
|
18213
18223
|
};
|
|
18224
|
+
resortGroupedOptions: {
|
|
18225
|
+
type: import("vue").PropType<boolean>;
|
|
18226
|
+
default: boolean;
|
|
18227
|
+
};
|
|
18214
18228
|
comparingKey: {
|
|
18215
18229
|
type: import("vue").PropType<string>;
|
|
18216
18230
|
default: any;
|
|
@@ -18505,6 +18519,10 @@ declare const _default: {
|
|
|
18505
18519
|
type: import("vue").PropType<boolean>;
|
|
18506
18520
|
default: boolean;
|
|
18507
18521
|
};
|
|
18522
|
+
resortGroupedOptions: {
|
|
18523
|
+
type: import("vue").PropType<boolean>;
|
|
18524
|
+
default: boolean;
|
|
18525
|
+
};
|
|
18508
18526
|
comparingKey: {
|
|
18509
18527
|
type: import("vue").PropType<string>;
|
|
18510
18528
|
default: any;
|
|
@@ -18626,6 +18644,7 @@ declare const _default: {
|
|
|
18626
18644
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
18627
18645
|
optionTwoLinesKey: string;
|
|
18628
18646
|
groupedOptions: boolean;
|
|
18647
|
+
resortGroupedOptions: boolean;
|
|
18629
18648
|
comparingKey: string;
|
|
18630
18649
|
customNumberOfDisplayedOptions: number;
|
|
18631
18650
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -22149,6 +22168,7 @@ declare const _default: {
|
|
|
22149
22168
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
22150
22169
|
optionTwoLinesKey: string;
|
|
22151
22170
|
groupedOptions: boolean;
|
|
22171
|
+
resortGroupedOptions: boolean;
|
|
22152
22172
|
comparingKey: string;
|
|
22153
22173
|
customNumberOfDisplayedOptions: number;
|
|
22154
22174
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -22396,6 +22416,10 @@ declare const _default: {
|
|
|
22396
22416
|
type: import("vue").PropType<boolean>;
|
|
22397
22417
|
default: boolean;
|
|
22398
22418
|
};
|
|
22419
|
+
resortGroupedOptions: {
|
|
22420
|
+
type: import("vue").PropType<boolean>;
|
|
22421
|
+
default: boolean;
|
|
22422
|
+
};
|
|
22399
22423
|
comparingKey: {
|
|
22400
22424
|
type: import("vue").PropType<string>;
|
|
22401
22425
|
default: any;
|
|
@@ -22445,7 +22469,7 @@ declare const _default: {
|
|
|
22445
22469
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
22446
22470
|
onOpened?: () => any;
|
|
22447
22471
|
onClosed?: () => any;
|
|
22448
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
22472
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "resortGroupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
22449
22473
|
$attrs: {
|
|
22450
22474
|
[x: string]: unknown;
|
|
22451
22475
|
};
|
|
@@ -22697,6 +22721,10 @@ declare const _default: {
|
|
|
22697
22721
|
type: import("vue").PropType<boolean>;
|
|
22698
22722
|
default: boolean;
|
|
22699
22723
|
};
|
|
22724
|
+
resortGroupedOptions: {
|
|
22725
|
+
type: import("vue").PropType<boolean>;
|
|
22726
|
+
default: boolean;
|
|
22727
|
+
};
|
|
22700
22728
|
comparingKey: {
|
|
22701
22729
|
type: import("vue").PropType<string>;
|
|
22702
22730
|
default: any;
|
|
@@ -22818,6 +22846,7 @@ declare const _default: {
|
|
|
22818
22846
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
22819
22847
|
optionTwoLinesKey: string;
|
|
22820
22848
|
groupedOptions: boolean;
|
|
22849
|
+
resortGroupedOptions: boolean;
|
|
22821
22850
|
comparingKey: string;
|
|
22822
22851
|
customNumberOfDisplayedOptions: number;
|
|
22823
22852
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
@@ -23085,6 +23114,10 @@ declare const _default: {
|
|
|
23085
23114
|
type: import("vue").PropType<boolean>;
|
|
23086
23115
|
default: boolean;
|
|
23087
23116
|
};
|
|
23117
|
+
resortGroupedOptions: {
|
|
23118
|
+
type: import("vue").PropType<boolean>;
|
|
23119
|
+
default: boolean;
|
|
23120
|
+
};
|
|
23088
23121
|
comparingKey: {
|
|
23089
23122
|
type: import("vue").PropType<string>;
|
|
23090
23123
|
default: any;
|
|
@@ -23379,6 +23412,10 @@ declare const _default: {
|
|
|
23379
23412
|
type: import("vue").PropType<boolean>;
|
|
23380
23413
|
default: boolean;
|
|
23381
23414
|
};
|
|
23415
|
+
resortGroupedOptions: {
|
|
23416
|
+
type: import("vue").PropType<boolean>;
|
|
23417
|
+
default: boolean;
|
|
23418
|
+
};
|
|
23382
23419
|
comparingKey: {
|
|
23383
23420
|
type: import("vue").PropType<string>;
|
|
23384
23421
|
default: any;
|
|
@@ -23500,6 +23537,7 @@ declare const _default: {
|
|
|
23500
23537
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
23501
23538
|
optionTwoLinesKey: string;
|
|
23502
23539
|
groupedOptions: boolean;
|
|
23540
|
+
resortGroupedOptions: boolean;
|
|
23503
23541
|
comparingKey: string;
|
|
23504
23542
|
customNumberOfDisplayedOptions: number;
|
|
23505
23543
|
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.v-enter-active[data-v-a594c97e],.v-leave-active[data-v-a594c97e]{transition:opacity .25s ease}ol[data-v-a594c97e],ul[data-v-a594c97e],menu[data-v-a594c97e]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-a594c97e],.dropdown.full-width .button__container[data-v-a594c97e]{width:100%}.dropdown-list-wrapper[data-v-a594c97e]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-a594c97e]{padding:.5rem}.list-container--multi[data-v-a594c97e]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-a594c97e]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-a594c97e]{width:100%}.inline-search .list-container[data-v-a594c97e]{padding-top:0}.no-result-container[data-v-a594c97e]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-a594c97e]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-a594c97e]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-a594c97e]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-a594c97e]{min-height:0;margin-bottom:0}.image-slot[data-v-a594c97e]{margin-right:.5rem}.actions-wrapper[data-v-a594c97e]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.dropdown-footer[data-v-a594c97e]{display:flex;width:100%;padding:.5rem .5rem .375rem .4375rem;border-top:1px solid var(--common-divider);margin-top:.25rem}.apply-button[data-v-a594c97e]{margin-left:.5rem}
|