@ironsource/shared-ui 2.1.11-test.1 → 2.1.11-test.26
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_f9a13e27_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +48 -46
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +34 -26
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dropdown/common/Dropdown.common.js +191 -184
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +6 -6
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +73 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +90 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +185 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +31 -6
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +224 -198
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +209 -167
- package/components/dropdown/v4/index.d.ts +402 -87
- package/components/dropdown/v4/index.js +6 -3
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +3 -3
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/sortableList/SortableList.vue.d.ts +1 -1
- package/components/sortableList/index.d.ts +4 -4
- package/components/table/common/Table.common.js +69 -71
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +6 -1
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +124 -117
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/index.d.ts +26 -7
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1123 -262
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -2
- package/mocks/words.d.ts +1 -1
- package/package.json +3 -2
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_e944c610_lang.css +0 -1
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import "../../../TreeDropdown.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css"; import { defineComponent as ee, provide as le, ref as c, computed as K, onMounted as ne, watch as g, openBlock as C, createBlock as D, unref as d, withCtx as h, createVNode as I, mergeProps as z, createSlots as te, renderSlot as oe, createElementVNode as M, withModifiers as w, createTextVNode as ie, createElementBlock as B, withDirectives as de, Fragment as ae, renderList as se, vShow as re, createCommentVNode as ce } from "vue";
|
|
2
|
+
import ue from "./DropdownV4.vue.js";
|
|
3
|
+
import pe from "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
7
|
import "./ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
10
|
+
import S from "./OptionV4.vue.js";
|
|
11
|
+
import "./ConditionalDropdown.vue.js";
|
|
12
|
+
import { useChildOptions as ye } from "../composables/useChildOptions.js";
|
|
13
|
+
import he from "../../search/v4/SearchV4.vue.js";
|
|
14
|
+
import { useTestIdAttrs as fe } from "../../../utils/testIds.js";
|
|
15
|
+
import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
|
|
16
|
+
const ve = {
|
|
14
17
|
key: 0,
|
|
15
18
|
class: "child-options"
|
|
16
|
-
},
|
|
19
|
+
}, qe = /* @__PURE__ */ ee({
|
|
17
20
|
__name: "TreeDropdown",
|
|
18
21
|
props: {
|
|
19
22
|
options: null,
|
|
@@ -31,6 +34,7 @@ const se = {
|
|
|
31
34
|
optionIconType: { default: null },
|
|
32
35
|
optionEndIconKey: { default: "" },
|
|
33
36
|
optionEndIconType: { default: null },
|
|
37
|
+
optionEndTextIconKey: { default: null },
|
|
34
38
|
valueToCopy: { default: null },
|
|
35
39
|
disabledOptionKey: { default: "disabled" },
|
|
36
40
|
optionChildrenKey: null,
|
|
@@ -38,194 +42,232 @@ const se = {
|
|
|
38
42
|
preExpandedOptions: null
|
|
39
43
|
},
|
|
40
44
|
emits: ["update:selected", "update:isOpen"],
|
|
41
|
-
setup(t, { emit:
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
setup(t, { emit: b }) {
|
|
46
|
+
const l = t;
|
|
47
|
+
le("isTreeDropdown", !0);
|
|
48
|
+
const m = c([]), u = c([]), T = c({}), x = c(!1), i = c([...l.selected]), p = c(""), O = c(!0), N = K(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
|
|
49
|
+
e = e + 1;
|
|
50
|
+
}), o[l.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
|
|
51
|
+
l.options.forEach((e) => {
|
|
52
|
+
e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (T.value[e[l.optionUniqueIdKey]] = [
|
|
53
|
+
...e[l.optionChildrenKey]
|
|
48
54
|
]);
|
|
49
|
-
}),
|
|
50
|
-
}, { hasChildren:
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
(
|
|
55
|
+
}), m.value = [...l.options], u.value = [...l.options];
|
|
56
|
+
}, { hasChildren: f, getChildren: v, allChildrenSelected: k, someChildrenSelected: P } = ye(i, l.optionChildrenKey), q = (e) => {
|
|
57
|
+
if (f(e)) {
|
|
58
|
+
k(e) ? i.value = i.value.filter(
|
|
59
|
+
(o) => !v(e).includes(o)
|
|
54
60
|
) : i.value = [
|
|
55
|
-
...i.value.filter((
|
|
56
|
-
...
|
|
61
|
+
...i.value.filter((o) => !v(e).includes(o)),
|
|
62
|
+
...v(e)
|
|
57
63
|
];
|
|
58
64
|
return;
|
|
59
65
|
}
|
|
60
|
-
i.value.includes(
|
|
61
|
-
(
|
|
62
|
-
) : i.value = [...i.value,
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
+
i.value.includes(e) ? i.value = i.value.filter(
|
|
67
|
+
(o) => o !== e
|
|
68
|
+
) : i.value = [...i.value, e];
|
|
69
|
+
}, A = (e) => i.value.includes(e), j = (e) => 1 + (f(e) ? v(e).length : 0), F = () => {
|
|
70
|
+
b("update:selected", i.value), L.value = y.value;
|
|
71
|
+
}, G = () => {
|
|
66
72
|
i.value = [];
|
|
67
|
-
},
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
else if (
|
|
73
|
-
for (const s of
|
|
74
|
-
if (
|
|
75
|
-
|
|
73
|
+
}, H = () => {
|
|
74
|
+
const e = /* @__PURE__ */ new Set([]);
|
|
75
|
+
u.value.forEach((n) => {
|
|
76
|
+
if (l.selected?.includes(n))
|
|
77
|
+
e.add(n);
|
|
78
|
+
else if (n[l.optionChildrenKey] && n[l.optionChildrenKey].length) {
|
|
79
|
+
for (const s of n[l.optionChildrenKey])
|
|
80
|
+
if (l.selected?.includes(s)) {
|
|
81
|
+
e.add(n);
|
|
76
82
|
break;
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
});
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
-
!
|
|
83
|
-
}),
|
|
86
|
+
const o = Array.from(e);
|
|
87
|
+
return u.value.forEach((n) => {
|
|
88
|
+
!l.selected.includes(n) && !e.has(n) && o.push(n);
|
|
89
|
+
}), o;
|
|
84
90
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
a.value[
|
|
91
|
+
ne(() => {
|
|
92
|
+
x.value || (U(), x.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
|
|
93
|
+
a.value[e] = 1;
|
|
88
94
|
}));
|
|
89
|
-
}),
|
|
90
|
-
() =>
|
|
95
|
+
}), g(
|
|
96
|
+
() => l.options,
|
|
91
97
|
() => {
|
|
92
|
-
|
|
98
|
+
U();
|
|
93
99
|
}
|
|
94
|
-
),
|
|
95
|
-
() =>
|
|
100
|
+
), g(
|
|
101
|
+
() => l.selected,
|
|
96
102
|
() => {
|
|
97
|
-
i.value = [...
|
|
103
|
+
i.value = [...l.selected];
|
|
98
104
|
}
|
|
99
|
-
)
|
|
100
|
-
|
|
105
|
+
);
|
|
106
|
+
const y = K(() => i.value.length < N.value ? !1 : i.value.length === N.value), J = K(() => !y.value && i.value.length > 0), L = c(y.value);
|
|
107
|
+
g(
|
|
108
|
+
() => l.isOpen,
|
|
101
109
|
() => {
|
|
102
|
-
|
|
110
|
+
l.isOpen ? m.value = H() : (i.value = [...l.selected], p.value = "");
|
|
103
111
|
}
|
|
104
112
|
);
|
|
105
|
-
const a = c({}),
|
|
106
|
-
a.value[
|
|
113
|
+
const a = c({}), Q = (e) => {
|
|
114
|
+
a.value[e[l.optionUniqueIdKey]] ? delete a.value[e[l.optionUniqueIdKey]] : a.value[e[l.optionUniqueIdKey]] = 1;
|
|
107
115
|
};
|
|
108
|
-
function
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
const
|
|
112
|
-
(
|
|
116
|
+
function R(e, o) {
|
|
117
|
+
const n = e.toLowerCase(), s = [];
|
|
118
|
+
return o.value.forEach((r) => {
|
|
119
|
+
const E = r[l.optionNameKey].toLowerCase().includes(n), V = T.value[r[l.optionUniqueIdKey]]?.filter(
|
|
120
|
+
(_) => _[l.optionNameKey].toLowerCase().includes(n)
|
|
113
121
|
) || [];
|
|
114
|
-
(
|
|
122
|
+
(E || V.length > 0) && (r[l.optionChildrenKey] = V, s.push(r));
|
|
115
123
|
}), s;
|
|
116
124
|
}
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
delete a.value[
|
|
121
|
-
}),
|
|
122
|
-
Array.isArray(
|
|
123
|
-
})),
|
|
124
|
-
},
|
|
125
|
-
const
|
|
126
|
-
(
|
|
125
|
+
const W = (e) => {
|
|
126
|
+
const o = R(e, u);
|
|
127
|
+
e && (Object.keys(a.value).forEach((n) => {
|
|
128
|
+
delete a.value[n];
|
|
129
|
+
}), o.forEach((n) => {
|
|
130
|
+
Array.isArray(n[l.optionChildrenKey]) && n[l.optionChildrenKey].length && (a.value[n[l.optionUniqueIdKey]] = 1);
|
|
131
|
+
})), m.value = o;
|
|
132
|
+
}, X = K(() => {
|
|
133
|
+
const e = l.options.length, o = l.options.reduce(
|
|
134
|
+
(n, s) => (a.value[s[l.optionUniqueIdKey]] && (n = n + s[l.optionChildrenKey].length), n),
|
|
127
135
|
0
|
|
128
136
|
);
|
|
129
|
-
return
|
|
137
|
+
return e + o;
|
|
130
138
|
});
|
|
131
|
-
|
|
132
|
-
() =>
|
|
139
|
+
g(
|
|
140
|
+
() => p.value,
|
|
133
141
|
() => {
|
|
134
|
-
|
|
142
|
+
W(p.value), O.value = !p.value;
|
|
135
143
|
}
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
"
|
|
181
|
-
}
|
|
182
|
-
]),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
144
|
+
);
|
|
145
|
+
const Y = () => {
|
|
146
|
+
y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
|
|
147
|
+
if (e[l.optionChildrenKey] && e[l.optionChildrenKey].length)
|
|
148
|
+
for (const o of e[l.optionChildrenKey])
|
|
149
|
+
i.value = [o, ...i.value];
|
|
150
|
+
else
|
|
151
|
+
i.value = [e, ...i.value];
|
|
152
|
+
}));
|
|
153
|
+
}, Z = fe(l.testId, $);
|
|
154
|
+
return (e, o) => (C(), D(d(ue), {
|
|
155
|
+
multi: "",
|
|
156
|
+
class: "tree-dropdown",
|
|
157
|
+
"show-select-all": O.value,
|
|
158
|
+
"is-open": t.isOpen,
|
|
159
|
+
options: m.value,
|
|
160
|
+
selected: t.selected,
|
|
161
|
+
"display-value": t.displayValue,
|
|
162
|
+
placeholder: t.placeholder,
|
|
163
|
+
"inline-search": "",
|
|
164
|
+
"inline-search-placeholder": t.inlineSearchPlaceholder,
|
|
165
|
+
"option-name-key": t.optionNameKey,
|
|
166
|
+
size: t.size,
|
|
167
|
+
"test-id": t.testId,
|
|
168
|
+
disabled: t.disabled,
|
|
169
|
+
"disable-virtual-scroll": "",
|
|
170
|
+
"override-option-count-calculation": j,
|
|
171
|
+
"trigger-show-all-selected-text": !1,
|
|
172
|
+
"predefined-trigger": "default",
|
|
173
|
+
"custom-number-of-displayed-options": d(X),
|
|
174
|
+
"onUpdate:isOpen": o[2] || (o[2] = (n) => b("update:isOpen", n)),
|
|
175
|
+
onApply: F,
|
|
176
|
+
onClear: G
|
|
177
|
+
}, {
|
|
178
|
+
"dropdown-trigger": h(({ defaultTriggerProps: n }) => [
|
|
179
|
+
I(d(pe), z(n, {
|
|
180
|
+
"all-selected": L.value,
|
|
181
|
+
"show-all-selected-text": ""
|
|
182
|
+
}), te({ _: 2 }, [
|
|
183
|
+
e.$slots["trigger-end-icon"] ? {
|
|
184
|
+
name: "end-icon",
|
|
185
|
+
fn: h(() => [
|
|
186
|
+
oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
|
|
187
|
+
]),
|
|
188
|
+
key: "0"
|
|
189
|
+
} : void 0
|
|
190
|
+
]), 1040, ["all-selected"])
|
|
191
|
+
]),
|
|
192
|
+
"inline-search": h(() => [
|
|
193
|
+
I(d(he), {
|
|
194
|
+
modelValue: p.value,
|
|
195
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n),
|
|
196
|
+
class: "tree-search",
|
|
197
|
+
placeholder: t.inlineSearchPlaceholder,
|
|
198
|
+
variant: "transparent",
|
|
199
|
+
size: "md",
|
|
200
|
+
"auto-focus": "",
|
|
201
|
+
"test-id": t.testId
|
|
202
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])
|
|
203
|
+
]),
|
|
204
|
+
"select-all": h(() => [
|
|
205
|
+
M("li", null, [
|
|
206
|
+
I(d(S), z({
|
|
207
|
+
"aria-selected": d(y),
|
|
208
|
+
"aria-disabled": !!t.disabled,
|
|
209
|
+
"selected-prop": d(y),
|
|
210
|
+
"is-indeterminate": d(J),
|
|
211
|
+
"is-multi": "",
|
|
212
|
+
"select-all-option": ""
|
|
213
|
+
}, d(Z)[d($).SELECT_ALL], {
|
|
214
|
+
onClick: o[1] || (o[1] = w((n) => Y(), ["stop"]))
|
|
215
|
+
}), {
|
|
216
|
+
default: h(() => [
|
|
217
|
+
ie(" Select all ")
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
221
|
+
])
|
|
222
|
+
]),
|
|
223
|
+
default: h(({ option: n, index: s }) => [
|
|
224
|
+
I(d(S), {
|
|
225
|
+
option: n,
|
|
226
|
+
"selected-prop": d(f)(n) ? d(k)(n) : A(n),
|
|
227
|
+
"is-indeterminate": !d(k)(n) && d(P)(n),
|
|
228
|
+
disabled: n[t.disabledOptionKey],
|
|
229
|
+
"name-key": t.optionNameKey,
|
|
230
|
+
"image-key": t.optionImageKey,
|
|
231
|
+
"icon-key": t.optionIconKey,
|
|
232
|
+
"icon-type": t.optionIconType,
|
|
233
|
+
"end-icon-key": t.optionEndIconKey,
|
|
234
|
+
"end-icon-type": t.optionEndIconType,
|
|
235
|
+
"end-text-icon-key": t.optionEndTextIconKey,
|
|
236
|
+
"tree-main-option": d(f)(n),
|
|
237
|
+
"tree-main-option-expanded": a.value[n[t.optionUniqueIdKey]],
|
|
238
|
+
"stop-option-click-event-propagation": "",
|
|
239
|
+
"is-multi": "",
|
|
240
|
+
onClick: w(() => q(n), ["stop"]),
|
|
241
|
+
onToggleTreeCollapse: Q
|
|
242
|
+
}, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-main-option", "tree-main-option-expanded", "onClick"]),
|
|
243
|
+
d(f)(n) ? (C(), B("div", ve, [
|
|
244
|
+
de(M("div", null, [
|
|
245
|
+
(C(!0), B(ae, null, se(d(v)(n), (r, E) => (C(), D(d(S), {
|
|
246
|
+
key: `${s}-${E}`,
|
|
247
|
+
option: r,
|
|
248
|
+
"selected-prop": A(r),
|
|
249
|
+
disabled: r[t.disabledOptionKey],
|
|
250
|
+
"name-key": t.optionNameKey,
|
|
251
|
+
"image-key": t.optionImageKey,
|
|
252
|
+
"icon-key": t.optionIconKey,
|
|
253
|
+
"icon-type": t.optionIconType,
|
|
254
|
+
"end-icon-key": t.optionEndIconKey,
|
|
255
|
+
"end-icon-type": t.optionEndIconType,
|
|
256
|
+
"end-text-icon-key": t.optionEndTextIconKey,
|
|
257
|
+
"tree-child-shown": a.value[n[t.optionUniqueIdKey]],
|
|
258
|
+
"stop-option-click-event-propagation": "",
|
|
259
|
+
"is-multi": "",
|
|
260
|
+
onClick: w(() => q(r), ["stop"])
|
|
261
|
+
}, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-child-shown", "onClick"]))), 128))
|
|
262
|
+
], 512), [
|
|
263
|
+
[re, a.value[n[t.optionUniqueIdKey]]]
|
|
264
|
+
])
|
|
265
|
+
])) : ce("", !0)
|
|
266
|
+
]),
|
|
267
|
+
_: 3
|
|
268
|
+
}, 8, ["show-select-all", "is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled", "custom-number-of-displayed-options"]));
|
|
227
269
|
}
|
|
228
270
|
});
|
|
229
271
|
export {
|
|
230
|
-
|
|
272
|
+
qe as default
|
|
231
273
|
};
|