@ironsource/shared-ui 2.1.3-rc.1 → 2.1.3-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +1 -0
- package/CardPanel.vue_vue_type_style_index_0_scoped_7d0acb11_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_d25514d1_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_13f1ce76_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_5c2a70ad_lang.css +1 -0
- package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2a9e8782_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +1 -0
- package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +68 -0
- package/components/alert/Alert.vue.js +7 -0
- package/components/alert/Alert.vue2.js +86 -0
- package/components/alert/index.d.ts +82 -0
- package/components/alert/index.js +6 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +41 -35
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v3/IconButton.vue.d.ts +1 -1
- package/components/button/v3/index.d.ts +34 -34
- package/components/button/v4/ButtonV4.vue.d.ts +1 -1
- package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
- package/components/button/v4/index.d.ts +40 -40
- package/components/checkbox/v4/CheckboxV4.vue.js +4 -4
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +11 -12
- package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -11
- package/components/dialog/v4/index.d.ts +1 -1
- package/components/dropdown/common/Dropdown.common.js +93 -92
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +15 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +41 -27
- package/components/emptyState/v4/index.d.ts +58 -1
- package/components/forms/CardPanel.vue.d.ts +20 -0
- package/components/forms/CardPanel.vue.js +2 -2
- package/components/forms/CardPanel.vue2.js +26 -14
- package/components/forms/FormCard.vue.d.ts +5 -0
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +62 -36
- package/components/forms/FormRow.vue.d.ts +10 -0
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +22 -29
- package/components/forms/index.d.ts +136 -3
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +2 -2
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +83 -90
- package/components/input/v4/index.d.ts +20 -20
- package/components/radioButton/v4/RadioButtonV4.vue.js +4 -4
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
- package/components/search/v3/Search.vue.d.ts +1 -1
- package/components/search/v3/index.d.ts +9 -9
- package/components/shared/FieldLabel.vue.d.ts +5 -0
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +63 -46
- package/components/shared/FieldMaxLength.vue.d.ts +34 -0
- package/components/shared/FieldMaxLength.vue.js +7 -0
- package/components/shared/FieldMaxLength.vue2.js +24 -0
- package/components/skeleton/v4/index.d.ts +2 -2
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +12 -12
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +64 -60
- package/components/table/common/TableContext.d.ts +1 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +71 -69
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -5
- package/components/table/v4/DataGridMenu.vue.js +4 -4
- package/components/table/v4/DataGridMenu.vue2.js +46 -47
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +15 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +22 -19
- package/components/table/v4/index.d.ts +32 -5
- package/components/table-cells/common/Editable.common.js +15 -15
- package/components/table-cells/v4/EditableV4.vue.d.ts +10 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +31 -22
- package/components/table-cells/v4/index.d.ts +43 -1
- package/components/tabs/v3/Tabs.vue.d.ts +1 -1
- package/components/tabs/v3/index.d.ts +20 -20
- package/components/textArea/v3/TextArea.vue.js +7 -0
- package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
- package/components/textArea/v4/TextAreaV4.vue.d.ts +100 -0
- package/components/textArea/v4/TextAreaV4.vue.js +7 -0
- package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
- package/components/textArea/v4/index.d.ts +136 -0
- package/components/textArea/v4/index.js +6 -0
- package/components/typography/index.d.ts +12 -12
- package/index.d.ts +661 -141
- package/index.js +113 -109
- package/package.json +7 -2
- package/testids/index.d.ts +7 -0
- package/testids/index.js +26 -25
- package/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +0 -1
- package/CardPanel.vue_vue_type_style_index_0_scoped_d2b5d12f_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_9e366543_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_df325b51_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_b8373c2d_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_526af548_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_ad5e4be0_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_017dc22e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +0 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
- package/components/textArea/TextArea.vue.js +0 -7
- /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
- /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/textArea/{index.js → v3/index.js} +0 -0
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { useToggle as
|
|
2
|
-
import { ref as n, computed as r, watch as b, useSlots as
|
|
3
|
-
import { isObjectInArray as
|
|
4
|
-
import { objectsEqual as
|
|
5
|
-
import { useClamp as
|
|
6
|
-
import { Mode as m, Type as k, DropdownContext as
|
|
7
|
-
import { pxToRem as
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useToggle as Ae } from "../../../composables/useToggle.js";
|
|
2
|
+
import { ref as n, computed as r, watch as b, useSlots as Pe, nextTick as D, toRaw as x, provide as Se, onMounted as Te } from "vue";
|
|
3
|
+
import { isObjectInArray as J } from "../../../utils/array.js";
|
|
4
|
+
import { objectsEqual as we } from "../../../utils/object.js";
|
|
5
|
+
import { useClamp as xe, useVirtualList as De, onClickOutside as Q } from "@vueuse/core";
|
|
6
|
+
import { Mode as m, Type as k, DropdownContext as Ie } from "./DropdownContext.js";
|
|
7
|
+
import { pxToRem as Me } from "../../../utils/style.js";
|
|
8
|
+
import { useEditableContext as Ce } from "../../table-cells/common/EditableContext.js";
|
|
9
|
+
const Ue = (l, O, A) => {
|
|
10
|
+
const W = (e, t) => l.multi ? J(e, t) : x(e) === t;
|
|
10
11
|
let E;
|
|
11
12
|
((e) => {
|
|
12
13
|
e[e.None = 0] = "None", e[e.Next = 1] = "Next", e[e.Previous = -1] = "Previous", e[e.NextPage = 10] = "NextPage", e[e.PrevPage = -10] = "PrevPage";
|
|
13
14
|
})(E || (E = {}));
|
|
14
15
|
const a = n(
|
|
15
16
|
l.selected
|
|
16
|
-
), u = r({
|
|
17
|
+
), I = Ce(), u = r({
|
|
17
18
|
get() {
|
|
18
|
-
return a.value;
|
|
19
|
+
return I?.value?.value ?? a.value;
|
|
19
20
|
},
|
|
20
21
|
set(e) {
|
|
21
|
-
O("update:selected", e);
|
|
22
|
+
I.onChange?.(e), I.onClose?.(), O("update:selected", e);
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
b(
|
|
@@ -27,50 +28,50 @@ const Ve = (l, O, A) => {
|
|
|
27
28
|
a.value = l.selected;
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
|
-
const
|
|
31
|
+
const Y = Pe(), P = n(null), d = n(null), V = n(null), M = n(null), H = n(null), S = n(null), Z = n(), L = n(null), U = n(null), B = n(null), F = 8, ee = r(() => S.value ? S.value.getBoundingClientRect().height + F + l.distance : 0), c = n([]), T = n(-1), w = n(""), C = n([]), p = () => S.value?.focus(), [v, le, te] = Ae({
|
|
31
32
|
disabled: l.disabled,
|
|
32
33
|
initialValue: l.defaultOpen
|
|
33
34
|
});
|
|
34
35
|
b(
|
|
35
36
|
() => l.disabled,
|
|
36
37
|
(e) => {
|
|
37
|
-
e !== void 0 &&
|
|
38
|
+
e !== void 0 && te(e);
|
|
38
39
|
}
|
|
39
40
|
);
|
|
40
41
|
const q = (e) => {
|
|
41
|
-
|
|
42
|
-
},
|
|
42
|
+
ae.value = le(e);
|
|
43
|
+
}, ae = r({
|
|
43
44
|
get() {
|
|
44
45
|
return l.isOpen;
|
|
45
46
|
},
|
|
46
47
|
set(e) {
|
|
47
48
|
O("update:isOpen", e);
|
|
48
49
|
}
|
|
49
|
-
}),
|
|
50
|
+
}), ue = r(() => s.value.length - 1), o = xe(0, 0, ue), ne = r(() => u.value ? l.displayValue(u.value) : ""), ie = (e) => {
|
|
50
51
|
if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
|
|
51
52
|
return l.placeholder;
|
|
52
53
|
const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
53
54
|
return e.value.length == 1 && l.displayValue ? l.displayValue(e.value[0]) : t;
|
|
54
|
-
},
|
|
55
|
+
}, re = r(() => {
|
|
55
56
|
if (!l.multi)
|
|
56
57
|
return u.value ? l.displayValue(u.value) : l.placeholder;
|
|
57
58
|
if (Array.isArray(a.value))
|
|
58
|
-
return
|
|
59
|
+
return ie(a);
|
|
59
60
|
}), G = r(() => {
|
|
60
61
|
if (Array.isArray(a.value))
|
|
61
62
|
return a.value.length === s.value.length;
|
|
62
|
-
}),
|
|
63
|
+
}), oe = r(() => !l.multi || !Array.isArray(a.value) ? !1 : a.value.length > 0 && a.value.length < s.value.length), N = (e) => {
|
|
63
64
|
w.value = e;
|
|
64
65
|
}, s = r(() => l.onSearch ? l.options.filter(
|
|
65
66
|
(e) => l.onSearch(e, w.value)
|
|
66
|
-
) : l.options),
|
|
67
|
-
() =>
|
|
67
|
+
) : l.options), se = r(() => c.value[0]?.hasSubtitle), K = r(() => i.mode === m.Multi), $ = r(
|
|
68
|
+
() => se.value ? A.MULTILINE_LIST_HEIGHT : A.LIST_HEIGHT
|
|
68
69
|
), {
|
|
69
|
-
list:
|
|
70
|
-
containerProps:
|
|
71
|
-
wrapperProps:
|
|
70
|
+
list: X,
|
|
71
|
+
containerProps: j,
|
|
72
|
+
wrapperProps: ce,
|
|
72
73
|
scrollTo: R
|
|
73
|
-
} =
|
|
74
|
+
} = De(s, {
|
|
74
75
|
itemHeight: $.value
|
|
75
76
|
});
|
|
76
77
|
b(
|
|
@@ -90,21 +91,21 @@ const Ve = (l, O, A) => {
|
|
|
90
91
|
}));
|
|
91
92
|
}
|
|
92
93
|
);
|
|
93
|
-
const
|
|
94
|
+
const f = (e, t = !1) => {
|
|
94
95
|
l.disabled || (q(e), D(() => {
|
|
95
96
|
v.value && O("opened"), v.value || O("closed"), P.value && t && P.value.focus();
|
|
96
97
|
}));
|
|
97
98
|
};
|
|
98
99
|
b(v, (e) => {
|
|
99
100
|
if (e) {
|
|
100
|
-
K.value && Array.isArray(u.value) && (
|
|
101
|
+
K.value && Array.isArray(u.value) && (C.value = x(u.value).slice());
|
|
101
102
|
return;
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
+
p();
|
|
104
105
|
});
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
},
|
|
106
|
+
const ve = () => {
|
|
107
|
+
de(), u.value = a.value;
|
|
108
|
+
}, de = () => {
|
|
108
109
|
if (G.value) {
|
|
109
110
|
a.value = [];
|
|
110
111
|
return;
|
|
@@ -122,38 +123,38 @@ const Ve = (l, O, A) => {
|
|
|
122
123
|
if (e = x(e), c.value[t]?.disabled)
|
|
123
124
|
return;
|
|
124
125
|
if (T.value = t, i.mode !== m.Multi) {
|
|
125
|
-
l.keepOpen ||
|
|
126
|
+
l.keepOpen || f(!1), i.goToOption(
|
|
126
127
|
0
|
|
127
128
|
/* None */
|
|
128
|
-
), u.value = e, N(""),
|
|
129
|
+
), u.value = e, N(""), p(), i.type === k.Search && d.value && (d.value.value = l.displayValue(e));
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
131
132
|
if (!Array.isArray(a.value))
|
|
132
133
|
return;
|
|
133
|
-
|
|
134
|
+
d.value?.focus();
|
|
134
135
|
const g = x(a.value);
|
|
135
|
-
if (
|
|
136
|
+
if (J(g, e)) {
|
|
136
137
|
a.value = g.filter(
|
|
137
|
-
(h) => !
|
|
138
|
+
(h) => !we(h, e)
|
|
138
139
|
);
|
|
139
140
|
return;
|
|
140
141
|
} else {
|
|
141
142
|
a.value = [...g, e];
|
|
142
143
|
return;
|
|
143
144
|
}
|
|
144
|
-
},
|
|
145
|
+
}, ge = (e) => c.value[e]?.disabled, i = {
|
|
145
146
|
activeIndex: o,
|
|
146
147
|
options: c,
|
|
147
148
|
selectedOption: u,
|
|
148
|
-
labelRef:
|
|
149
|
-
activeOption:
|
|
149
|
+
labelRef: H,
|
|
150
|
+
activeOption: M,
|
|
150
151
|
listRef: P,
|
|
151
152
|
clearable: l.clearable,
|
|
152
|
-
type:
|
|
153
|
+
type: Y.input ? k.Search : k.Dropdown,
|
|
153
154
|
mode: l.multi ? m.Multi : m.Single,
|
|
154
155
|
query: w,
|
|
155
|
-
selectedValue:
|
|
156
|
-
toggle:
|
|
156
|
+
selectedValue: ne,
|
|
157
|
+
toggle: f,
|
|
157
158
|
disabled: l.disabled,
|
|
158
159
|
open: v,
|
|
159
160
|
mandatory: l.mandatory,
|
|
@@ -161,7 +162,7 @@ const Ve = (l, O, A) => {
|
|
|
161
162
|
placeholder: l.placeholder,
|
|
162
163
|
select: _,
|
|
163
164
|
clearSelection: () => {
|
|
164
|
-
N(""), u.value = i.mode === m.Single ? null : [],
|
|
165
|
+
N(""), u.value = i.mode === m.Single ? null : [], d.value && (d.value.value = "");
|
|
165
166
|
},
|
|
166
167
|
search: N,
|
|
167
168
|
goToOption: async (e) => {
|
|
@@ -173,17 +174,17 @@ const Ve = (l, O, A) => {
|
|
|
173
174
|
).length, g = s.value.length - y;
|
|
174
175
|
for (t > g && (t = g + 1); ; ) {
|
|
175
176
|
if (!c.value[t]?.disabled) {
|
|
176
|
-
|
|
177
|
+
M.value = s.value[t], o.value = t;
|
|
177
178
|
return;
|
|
178
179
|
}
|
|
179
|
-
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!
|
|
180
|
-
|
|
180
|
+
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!ge(o.value)) {
|
|
181
|
+
M.value = s.value[t], o.value = t;
|
|
181
182
|
return;
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
},
|
|
185
186
|
registerInput: (e) => {
|
|
186
|
-
|
|
187
|
+
d.value = e.value;
|
|
187
188
|
},
|
|
188
189
|
registerOption: (e, t, y) => {
|
|
189
190
|
c.value = [...c.value, { id: e, disabled: t, hasSubtitle: y }];
|
|
@@ -192,44 +193,44 @@ const Ve = (l, O, A) => {
|
|
|
192
193
|
c.value = c.value.filter((t) => t.id !== e);
|
|
193
194
|
}
|
|
194
195
|
};
|
|
195
|
-
|
|
196
|
+
Se(Ie, i), Q(
|
|
196
197
|
P,
|
|
197
198
|
() => {
|
|
198
|
-
v.value &&
|
|
199
|
+
v.value && z();
|
|
199
200
|
},
|
|
200
201
|
{
|
|
201
202
|
ignore: [
|
|
202
203
|
S,
|
|
203
|
-
H,
|
|
204
204
|
L,
|
|
205
205
|
U,
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
B,
|
|
207
|
+
d,
|
|
208
|
+
j.ref
|
|
208
209
|
]
|
|
209
210
|
}
|
|
210
211
|
);
|
|
211
|
-
const
|
|
212
|
-
|
|
212
|
+
const he = () => {
|
|
213
|
+
d.value && (d.value.value = i.query.value = "");
|
|
213
214
|
};
|
|
214
|
-
|
|
215
|
+
Te(async () => {
|
|
215
216
|
l.autoFocus && (await D(), setTimeout(() => {
|
|
216
|
-
|
|
217
|
+
V.value.focus();
|
|
217
218
|
})), i.goToOption(0);
|
|
218
219
|
});
|
|
219
|
-
const
|
|
220
|
-
u.value = a.value, O("apply", u.value),
|
|
221
|
-
},
|
|
222
|
-
K.value && Array.isArray(
|
|
223
|
-
},
|
|
220
|
+
const ye = () => {
|
|
221
|
+
u.value = a.value, O("apply", u.value), f(!1), he();
|
|
222
|
+
}, z = () => {
|
|
223
|
+
K.value && Array.isArray(C.value) && (u.value = x(C.value).slice()), w.value = "", f(!1);
|
|
224
|
+
}, be = (e) => {
|
|
224
225
|
if (!l.disableKeyboardEvents)
|
|
225
226
|
switch (e.key) {
|
|
226
227
|
case "Space":
|
|
227
228
|
case "Enter":
|
|
228
229
|
case "ArrowUp":
|
|
229
230
|
case "ArrowDown":
|
|
230
|
-
|
|
231
|
+
f(!0), e.preventDefault();
|
|
231
232
|
}
|
|
232
|
-
},
|
|
233
|
+
}, me = (e) => {
|
|
233
234
|
if (!l.disableKeyboardEvents)
|
|
234
235
|
switch (e.key) {
|
|
235
236
|
case "ArrowUp": {
|
|
@@ -247,7 +248,7 @@ const Ve = (l, O, A) => {
|
|
|
247
248
|
break;
|
|
248
249
|
}
|
|
249
250
|
case "Escape": {
|
|
250
|
-
|
|
251
|
+
f(!1), e.preventDefault();
|
|
251
252
|
break;
|
|
252
253
|
}
|
|
253
254
|
case "PageUp": {
|
|
@@ -266,55 +267,55 @@ const Ve = (l, O, A) => {
|
|
|
266
267
|
}
|
|
267
268
|
case "Enter": {
|
|
268
269
|
if (!v.value) {
|
|
269
|
-
|
|
270
|
+
f(!0);
|
|
270
271
|
return;
|
|
271
272
|
}
|
|
272
|
-
_(s.value[o.value], o.value), i.mode === m.Single && !l.keepOpen &&
|
|
273
|
+
_(s.value[o.value], o.value), i.mode === m.Single && !l.keepOpen && f(!1), e.preventDefault();
|
|
273
274
|
break;
|
|
274
275
|
}
|
|
275
276
|
}
|
|
276
|
-
},
|
|
277
|
-
const e =
|
|
277
|
+
}, Oe = r(() => {
|
|
278
|
+
const e = X.value.length, t = l.multi && l.showSelectAll ? 1 : 0, y = e > A.MAX_NUMBER_OF_OPTIONS, g = e + t;
|
|
278
279
|
let h = y ? A.MAX_NUMBER_OF_OPTIONS + 0.1 : g;
|
|
279
|
-
return l.noResultsText && h === 0 && (h = h + 1),
|
|
280
|
+
return l.noResultsText && h === 0 && (h = h + 1), Me(
|
|
280
281
|
h * $.value + A.PADDING_PX
|
|
281
282
|
);
|
|
282
283
|
});
|
|
283
284
|
return {
|
|
284
|
-
onKeydown:
|
|
285
|
-
location:
|
|
285
|
+
onKeydown: me,
|
|
286
|
+
location: ee,
|
|
286
287
|
open: v,
|
|
287
|
-
toggleMenu:
|
|
288
|
-
onButtonKeydown:
|
|
289
|
-
displayedValue:
|
|
290
|
-
labelRef:
|
|
288
|
+
toggleMenu: f,
|
|
289
|
+
onButtonKeydown: be,
|
|
290
|
+
displayedValue: re,
|
|
291
|
+
labelRef: H,
|
|
291
292
|
query: w,
|
|
292
|
-
containerProps:
|
|
293
|
-
calculateTableHeight:
|
|
294
|
-
wrapperProps:
|
|
293
|
+
containerProps: j,
|
|
294
|
+
calculateTableHeight: Oe,
|
|
295
|
+
wrapperProps: ce,
|
|
295
296
|
filteredOptions: s,
|
|
296
297
|
allSelected: G,
|
|
297
|
-
isIndeterminate:
|
|
298
|
-
onSelectAll:
|
|
299
|
-
virtualOptions:
|
|
300
|
-
isSelected:
|
|
298
|
+
isIndeterminate: oe,
|
|
299
|
+
onSelectAll: ve,
|
|
300
|
+
virtualOptions: X,
|
|
301
|
+
isSelected: W,
|
|
301
302
|
selectedOption: u,
|
|
302
303
|
onSelect: _,
|
|
303
304
|
activeIndex: o,
|
|
304
|
-
onCancel:
|
|
305
|
-
onApply:
|
|
305
|
+
onCancel: z,
|
|
306
|
+
onApply: ye,
|
|
306
307
|
scrollTo: R,
|
|
307
|
-
onClickOutside:
|
|
308
|
+
onClickOutside: Q,
|
|
308
309
|
listRef: P,
|
|
309
310
|
buttonRef: S,
|
|
310
|
-
apply:
|
|
311
|
-
cancel:
|
|
312
|
-
el:
|
|
313
|
-
triggerRef:
|
|
314
|
-
clearAll:
|
|
311
|
+
apply: L,
|
|
312
|
+
cancel: U,
|
|
313
|
+
el: V,
|
|
314
|
+
triggerRef: Z,
|
|
315
|
+
clearAll: B,
|
|
315
316
|
onClearAllSelections: fe
|
|
316
317
|
};
|
|
317
318
|
};
|
|
318
319
|
export {
|
|
319
|
-
|
|
320
|
+
Ue as dropdownCommon
|
|
320
321
|
};
|
|
@@ -5,7 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
isHorizontal?: boolean;
|
|
6
6
|
hasIcon?: boolean;
|
|
7
7
|
isBordered?: boolean;
|
|
8
|
-
iconName?: "filter" | "a" | "b" | "link" | "style" | "image" | "switch" | "search" | "ab-test" | "help" | "block" | "add" | "rotate" | "visibility" | "border-color" | "info" | "success" | "warning" | "error" | "
|
|
8
|
+
iconName?: "filter" | "a" | "b" | "link" | "style" | "image" | "switch" | "search" | "ab-test" | "help" | "block" | "add" | "rotate" | "visibility" | "border-color" | "info" | "success" | "warning" | "error" | "close" | "check-circle" | "warning-octagon" | "cancel" | "pause" | "android" | "ios" | "FiltersSearch" | "a-2" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "analytics" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "hammer" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "duplicate" | "ecpi" | "email" | "email-envelope" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help-outline" | "history" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success-full" | "table-edit" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad" | "question" | "info-v4" | "check-v4" | "warning-circle" | "eye-v4" | "eye-slash" | "warning-v4";
|
|
9
9
|
fontSize?: string;
|
|
10
10
|
size?: "sm" | "lg";
|
|
11
11
|
iconWidth: number;
|
|
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
31
|
isHorizontal?: boolean;
|
|
32
32
|
hasIcon?: boolean;
|
|
33
33
|
isBordered?: boolean;
|
|
34
|
-
iconName?: "filter" | "a" | "b" | "link" | "style" | "image" | "switch" | "search" | "ab-test" | "help" | "block" | "add" | "rotate" | "visibility" | "border-color" | "info" | "success" | "warning" | "error" | "
|
|
34
|
+
iconName?: "filter" | "a" | "b" | "link" | "style" | "image" | "switch" | "search" | "ab-test" | "help" | "block" | "add" | "rotate" | "visibility" | "border-color" | "info" | "success" | "warning" | "error" | "close" | "check-circle" | "warning-octagon" | "cancel" | "pause" | "android" | "ios" | "FiltersSearch" | "a-2" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "analytics" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "hammer" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "duplicate" | "ecpi" | "email" | "email-envelope" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help-outline" | "history" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success-full" | "table-edit" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad" | "question" | "info-v4" | "check-v4" | "warning-circle" | "eye-v4" | "eye-slash" | "warning-v4";
|
|
35
35
|
fontSize?: string;
|
|
36
36
|
size?: "sm" | "lg";
|
|
37
37
|
iconWidth: number;
|
|
@@ -54,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
54
54
|
title: string;
|
|
55
55
|
size: "sm" | "lg";
|
|
56
56
|
fontSize: string;
|
|
57
|
-
iconName: "filter" | "a" | "b" | "link" | "style" | "image" | "switch" | "search" | "ab-test" | "help" | "block" | "add" | "rotate" | "visibility" | "border-color" | "info" | "success" | "warning" | "error" | "
|
|
57
|
+
iconName: "filter" | "a" | "b" | "link" | "style" | "image" | "switch" | "search" | "ab-test" | "help" | "block" | "add" | "rotate" | "visibility" | "border-color" | "info" | "success" | "warning" | "error" | "close" | "check-circle" | "warning-octagon" | "cancel" | "pause" | "android" | "ios" | "FiltersSearch" | "a-2" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "analytics" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "hammer" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "duplicate" | "ecpi" | "email" | "email-envelope" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help-outline" | "history" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success-full" | "table-edit" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad" | "question" | "info-v4" | "check-v4" | "warning-circle" | "eye-v4" | "eye-slash" | "warning-v4";
|
|
58
58
|
subtitle: string;
|
|
59
59
|
buttonText: string;
|
|
60
60
|
isHorizontal: boolean;
|