@ironsource/shared-ui 2.1.11-test.41 → 2.1.11-test.44
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/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_a898b632_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
- package/components/dialog/v4/DialogV4.vue.d.ts +5 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +52 -49
- package/components/dialog/v4/index.d.ts +20 -1
- package/components/dropdown/common/Dropdown.common.js +36 -34
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +55 -40
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +20 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +136 -97
- package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +7 -7
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +5 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +165 -158
- package/components/dropdown/v4/index.d.ts +67 -2
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +3 -3
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +1 -1
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +57 -56
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +82 -76
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +78 -70
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v4/DataGrid.vue.d.ts +10 -5
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +173 -171
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +1 -1
- package/components/table/v4/index.d.ts +39 -20
- package/components/table-cells/common/Editable.common.js +24 -19
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/index.d.ts +252 -46
- package/index.js +1 -1
- package/package.json +1 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +1 -0
- package/testids/index.js +13 -13
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c65df8d7_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
|
@@ -20,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
optionChildrenKey: string;
|
|
21
21
|
optionUniqueIdKey: string | number;
|
|
22
22
|
preExpandedOptions: string[] | number[];
|
|
23
|
+
debug: boolean;
|
|
23
24
|
}>, {
|
|
24
25
|
selected: any;
|
|
25
26
|
placeholder: string;
|
|
@@ -36,6 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
37
|
optionEndTextIconKey: any;
|
|
37
38
|
valueToCopy: any;
|
|
38
39
|
disabledOptionKey: string;
|
|
40
|
+
debug: boolean;
|
|
39
41
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
42
|
"update:selected": (value: unknown) => void;
|
|
41
43
|
"update:isOpen": (value: unknown) => void;
|
|
@@ -61,6 +63,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
61
63
|
optionChildrenKey: string;
|
|
62
64
|
optionUniqueIdKey: string | number;
|
|
63
65
|
preExpandedOptions: string[] | number[];
|
|
66
|
+
debug: boolean;
|
|
64
67
|
}>, {
|
|
65
68
|
selected: any;
|
|
66
69
|
placeholder: string;
|
|
@@ -77,6 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
80
|
optionEndTextIconKey: any;
|
|
78
81
|
valueToCopy: any;
|
|
79
82
|
disabledOptionKey: string;
|
|
83
|
+
debug: boolean;
|
|
80
84
|
}>>> & {
|
|
81
85
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
82
86
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -96,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
96
100
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
97
101
|
disabledOptionKey: string;
|
|
98
102
|
optionEndTextIconKey: string;
|
|
103
|
+
debug: boolean;
|
|
99
104
|
}>, {
|
|
100
105
|
"trigger-end-icon"?(_: {}): any;
|
|
101
106
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TreeDropdown.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TreeDropdown.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_a898b632_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a898b632"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import "../../../TreeDropdown.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_a898b632_lang.css"; import { defineComponent as le, provide as ne, ref as c, computed as C, onMounted as te, watch as k, openBlock as m, createElementBlock as I, Fragment as z, createVNode as g, unref as d, withCtx as h, mergeProps as B, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as S, createTextVNode as de, withDirectives as ae, renderList as se, createBlock as re, vShow as ce, createCommentVNode as $, toDisplayString as ue } from "vue";
|
|
2
|
+
import pe from "./DropdownV4.vue.js";
|
|
3
|
+
import ye 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
|
|
10
|
+
import b from "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
|
-
import { useChildOptions as
|
|
13
|
-
import
|
|
14
|
-
import { useTestIdAttrs as
|
|
15
|
-
import { DropdownTestIdModifiers as
|
|
16
|
-
const
|
|
12
|
+
import { useChildOptions as he } from "../composables/useChildOptions.js";
|
|
13
|
+
import fe from "../../search/v4/SearchV4.vue.js";
|
|
14
|
+
import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
|
|
15
|
+
import { DropdownTestIdModifiers as P } from "../../../testids/index.js";
|
|
16
|
+
const me = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "child-options"
|
|
19
|
-
},
|
|
19
|
+
}, ge = {
|
|
20
|
+
key: 0,
|
|
21
|
+
style: { position: "fixed", right: "0", top: "0" }
|
|
22
|
+
}, De = /* @__PURE__ */ le({
|
|
20
23
|
__name: "TreeDropdown",
|
|
21
24
|
props: {
|
|
22
25
|
options: null,
|
|
@@ -39,23 +42,24 @@ const ve = {
|
|
|
39
42
|
disabledOptionKey: { default: "disabled" },
|
|
40
43
|
optionChildrenKey: null,
|
|
41
44
|
optionUniqueIdKey: null,
|
|
42
|
-
preExpandedOptions: null
|
|
45
|
+
preExpandedOptions: null,
|
|
46
|
+
debug: { type: Boolean, default: !1 }
|
|
43
47
|
},
|
|
44
48
|
emits: ["update:selected", "update:isOpen"],
|
|
45
|
-
setup(t, { emit:
|
|
49
|
+
setup(t, { emit: T }) {
|
|
46
50
|
const l = t;
|
|
47
|
-
|
|
48
|
-
const
|
|
51
|
+
ne("isTreeDropdown", !0);
|
|
52
|
+
const K = c([]), u = c([]), x = c({}), O = c(!1), i = c([...l.selected]), p = c(""), N = c(!0), U = C(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
|
|
49
53
|
e = e + 1;
|
|
50
|
-
}), o[l.optionChildrenKey] || (e = e + 1), e), 0)),
|
|
54
|
+
}), o[l.optionChildrenKey] || (e = e + 1), e), 0)), q = () => {
|
|
51
55
|
l.options.forEach((e) => {
|
|
52
|
-
e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (
|
|
56
|
+
e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (x.value[e[l.optionUniqueIdKey]] = [
|
|
53
57
|
...e[l.optionChildrenKey]
|
|
54
58
|
]);
|
|
55
|
-
}),
|
|
56
|
-
}, { hasChildren: f, getChildren: v, allChildrenSelected:
|
|
59
|
+
}), K.value = [...l.options], u.value = [...l.options];
|
|
60
|
+
}, { hasChildren: f, getChildren: v, allChildrenSelected: E, someChildrenSelected: j } = he(i, l.optionChildrenKey), A = (e) => {
|
|
57
61
|
if (f(e)) {
|
|
58
|
-
|
|
62
|
+
E(e) ? i.value = i.value.filter(
|
|
59
63
|
(o) => !v(e).includes(o)
|
|
60
64
|
) : i.value = [
|
|
61
65
|
...i.value.filter((o) => !v(e).includes(o)),
|
|
@@ -66,11 +70,11 @@ const ve = {
|
|
|
66
70
|
i.value.includes(e) ? i.value = i.value.filter(
|
|
67
71
|
(o) => o !== e
|
|
68
72
|
) : i.value = [...i.value, e];
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
}, G = () => {
|
|
72
|
-
i.value = [];
|
|
73
|
+
}, D = (e) => i.value.includes(e), F = (e) => 1 + (f(e) ? v(e).length : 0), G = () => {
|
|
74
|
+
T("update:selected", i.value), L.value = y.value;
|
|
73
75
|
}, H = () => {
|
|
76
|
+
i.value = [];
|
|
77
|
+
}, J = () => {
|
|
74
78
|
const e = /* @__PURE__ */ new Set([]);
|
|
75
79
|
u.value.forEach((n) => {
|
|
76
80
|
if (l.selected?.includes(n))
|
|
@@ -88,61 +92,61 @@ const ve = {
|
|
|
88
92
|
!l.selected.includes(n) && !e.has(n) && o.push(n);
|
|
89
93
|
}), o;
|
|
90
94
|
};
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
te(() => {
|
|
96
|
+
O.value || (q(), O.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
|
|
93
97
|
a.value[e] = 1;
|
|
94
98
|
}));
|
|
95
|
-
}),
|
|
99
|
+
}), k(
|
|
96
100
|
() => l.options,
|
|
97
101
|
() => {
|
|
98
|
-
|
|
102
|
+
q();
|
|
99
103
|
}
|
|
100
|
-
),
|
|
104
|
+
), k(
|
|
101
105
|
() => l.selected,
|
|
102
106
|
() => {
|
|
103
107
|
i.value = [...l.selected];
|
|
104
108
|
}
|
|
105
109
|
);
|
|
106
|
-
const y =
|
|
107
|
-
|
|
110
|
+
const y = C(() => i.value.length < U.value ? !1 : i.value.length === U.value), Q = C(() => !y.value && i.value.length > 0), L = c(y.value);
|
|
111
|
+
k(
|
|
108
112
|
() => l.isOpen,
|
|
109
113
|
() => {
|
|
110
|
-
l.isOpen ?
|
|
114
|
+
l.isOpen ? K.value = J() : (i.value = [...l.selected], p.value = "");
|
|
111
115
|
}
|
|
112
116
|
);
|
|
113
|
-
const a = c({}),
|
|
117
|
+
const a = c({}), R = (e) => {
|
|
114
118
|
a.value[e[l.optionUniqueIdKey]] ? delete a.value[e[l.optionUniqueIdKey]] : a.value[e[l.optionUniqueIdKey]] = 1;
|
|
115
119
|
};
|
|
116
|
-
function
|
|
120
|
+
function W(e, o) {
|
|
117
121
|
const n = e.toLowerCase(), s = [];
|
|
118
122
|
return o.value.forEach((r) => {
|
|
119
|
-
const
|
|
120
|
-
(
|
|
123
|
+
const w = r[l.optionNameKey].toLowerCase().includes(n), V = x.value[r[l.optionUniqueIdKey]]?.filter(
|
|
124
|
+
(ee) => ee[l.optionNameKey].toLowerCase().includes(n)
|
|
121
125
|
) || [];
|
|
122
|
-
(
|
|
126
|
+
(w || V.length > 0) && (r[l.optionChildrenKey] = V, s.push(r));
|
|
123
127
|
}), s;
|
|
124
128
|
}
|
|
125
|
-
const
|
|
126
|
-
const o =
|
|
129
|
+
const X = (e) => {
|
|
130
|
+
const o = W(e, u);
|
|
127
131
|
e && (Object.keys(a.value).forEach((n) => {
|
|
128
132
|
delete a.value[n];
|
|
129
133
|
}), o.forEach((n) => {
|
|
130
134
|
Array.isArray(n[l.optionChildrenKey]) && n[l.optionChildrenKey].length && (a.value[n[l.optionUniqueIdKey]] = 1);
|
|
131
|
-
})),
|
|
132
|
-
},
|
|
135
|
+
})), K.value = o;
|
|
136
|
+
}, Y = C(() => {
|
|
133
137
|
const e = l.options.length, o = l.options.reduce(
|
|
134
138
|
(n, s) => (a.value[s[l.optionUniqueIdKey]] && (n = n + s[l.optionChildrenKey].length), n),
|
|
135
139
|
0
|
|
136
140
|
);
|
|
137
141
|
return e + o;
|
|
138
142
|
});
|
|
139
|
-
|
|
143
|
+
k(
|
|
140
144
|
() => p.value,
|
|
141
145
|
() => {
|
|
142
|
-
|
|
146
|
+
X(p.value), N.value = !p.value;
|
|
143
147
|
}
|
|
144
148
|
);
|
|
145
|
-
const
|
|
149
|
+
const Z = () => {
|
|
146
150
|
y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
|
|
147
151
|
if (e[l.optionChildrenKey] && e[l.optionChildrenKey].length)
|
|
148
152
|
for (const o of e[l.optionChildrenKey])
|
|
@@ -150,124 +154,127 @@ const ve = {
|
|
|
150
154
|
else
|
|
151
155
|
i.value = [e, ...i.value];
|
|
152
156
|
}));
|
|
153
|
-
},
|
|
154
|
-
return (e, o) => (
|
|
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
|
-
"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": "",
|
|
157
|
+
}, _ = ve(l.testId, P);
|
|
158
|
+
return (e, o) => (m(), I(z, null, [
|
|
159
|
+
g(d(pe), {
|
|
160
|
+
multi: "",
|
|
161
|
+
class: "tree-dropdown",
|
|
162
|
+
"show-select-all": N.value,
|
|
163
|
+
"is-open": t.isOpen,
|
|
164
|
+
options: K.value,
|
|
165
|
+
selected: t.selected,
|
|
166
|
+
"display-value": t.displayValue,
|
|
167
|
+
placeholder: t.placeholder,
|
|
168
|
+
"inline-search": "",
|
|
169
|
+
"inline-search-placeholder": t.inlineSearchPlaceholder,
|
|
170
|
+
"option-name-key": t.optionNameKey,
|
|
171
|
+
size: t.size,
|
|
172
|
+
"test-id": t.testId,
|
|
173
|
+
disabled: t.disabled,
|
|
174
|
+
"disable-virtual-scroll": "",
|
|
175
|
+
"override-option-count-calculation": F,
|
|
176
|
+
"trigger-show-all-selected-text": !1,
|
|
177
|
+
"predefined-trigger": "default",
|
|
178
|
+
"custom-number-of-displayed-options": d(Y),
|
|
179
|
+
"onUpdate:isOpen": o[2] || (o[2] = (n) => T("update:isOpen", n)),
|
|
180
|
+
onApply: G,
|
|
181
|
+
onClear: H
|
|
182
|
+
}, {
|
|
183
|
+
"dropdown-trigger": h(({ defaultTriggerProps: n }) => [
|
|
184
|
+
g(d(ye), B(n, {
|
|
185
|
+
"all-selected": L.value,
|
|
186
|
+
"show-all-selected-text": ""
|
|
187
|
+
}), oe({ _: 2 }, [
|
|
188
|
+
e.$slots["trigger-end-icon"] ? {
|
|
189
|
+
name: "end-icon",
|
|
190
|
+
fn: h(() => [
|
|
191
|
+
ie(e.$slots, "trigger-end-icon", {}, void 0, !0)
|
|
192
|
+
]),
|
|
193
|
+
key: "0"
|
|
194
|
+
} : void 0
|
|
195
|
+
]), 1040, ["all-selected"])
|
|
196
|
+
]),
|
|
197
|
+
"inline-search": h(() => [
|
|
198
|
+
g(d(fe), {
|
|
199
|
+
modelValue: p.value,
|
|
200
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n),
|
|
201
|
+
class: "tree-search",
|
|
202
|
+
placeholder: t.inlineSearchPlaceholder,
|
|
203
|
+
variant: "transparent",
|
|
204
|
+
size: "md",
|
|
205
|
+
"auto-focus": "",
|
|
206
|
+
"test-id": t.testId
|
|
207
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])
|
|
208
|
+
]),
|
|
209
|
+
"select-all": h(() => [
|
|
210
|
+
M("li", null, [
|
|
211
|
+
g(d(b), B({
|
|
212
|
+
"aria-selected": d(y),
|
|
213
|
+
"aria-disabled": !!t.disabled,
|
|
214
|
+
"selected-prop": d(y),
|
|
215
|
+
"is-indeterminate": d(Q),
|
|
259
216
|
"is-multi": "",
|
|
260
|
-
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
|
|
217
|
+
"select-all-option": ""
|
|
218
|
+
}, d(_)[d(P).SELECT_ALL], {
|
|
219
|
+
onClick: o[1] || (o[1] = S((n) => Z(), ["stop"]))
|
|
220
|
+
}), {
|
|
221
|
+
default: h(() => [
|
|
222
|
+
de(" Select all ")
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
264
226
|
])
|
|
265
|
-
])
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
227
|
+
]),
|
|
228
|
+
default: h(({ option: n, index: s }) => [
|
|
229
|
+
g(d(b), {
|
|
230
|
+
option: n,
|
|
231
|
+
"selected-prop": d(f)(n) ? d(E)(n) : D(n),
|
|
232
|
+
"is-indeterminate": !d(E)(n) && d(j)(n),
|
|
233
|
+
disabled: n[t.disabledOptionKey],
|
|
234
|
+
"name-key": t.optionNameKey,
|
|
235
|
+
"image-key": t.optionImageKey,
|
|
236
|
+
"icon-key": t.optionIconKey,
|
|
237
|
+
"icon-type": t.optionIconType,
|
|
238
|
+
"end-icon-key": t.optionEndIconKey,
|
|
239
|
+
"end-icon-type": t.optionEndIconType,
|
|
240
|
+
"end-text-icon-key": t.optionEndTextIconKey,
|
|
241
|
+
"tree-main-option": d(f)(n),
|
|
242
|
+
"tree-main-option-expanded": a.value[n[t.optionUniqueIdKey]],
|
|
243
|
+
"stop-option-click-event-propagation": "",
|
|
244
|
+
"is-multi": "",
|
|
245
|
+
onClick: S(() => A(n), ["stop"]),
|
|
246
|
+
onToggleTreeCollapse: R
|
|
247
|
+
}, 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"]),
|
|
248
|
+
d(f)(n) ? (m(), I("div", me, [
|
|
249
|
+
ae(M("div", null, [
|
|
250
|
+
(m(!0), I(z, null, se(d(v)(n), (r, w) => (m(), re(d(b), {
|
|
251
|
+
key: `${s}-${w}`,
|
|
252
|
+
option: r,
|
|
253
|
+
"selected-prop": D(r),
|
|
254
|
+
disabled: r[t.disabledOptionKey],
|
|
255
|
+
"name-key": t.optionNameKey,
|
|
256
|
+
"image-key": t.optionImageKey,
|
|
257
|
+
"icon-key": t.optionIconKey,
|
|
258
|
+
"icon-type": t.optionIconType,
|
|
259
|
+
"end-icon-key": t.optionEndIconKey,
|
|
260
|
+
"end-icon-type": t.optionEndIconType,
|
|
261
|
+
"end-text-icon-key": t.optionEndTextIconKey,
|
|
262
|
+
"tree-child-shown": a.value[n[t.optionUniqueIdKey]],
|
|
263
|
+
"stop-option-click-event-propagation": "",
|
|
264
|
+
"is-multi": "",
|
|
265
|
+
onClick: S(() => A(r), ["stop"])
|
|
266
|
+
}, 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))
|
|
267
|
+
], 512), [
|
|
268
|
+
[ce, a.value[n[t.optionUniqueIdKey]]]
|
|
269
|
+
])
|
|
270
|
+
])) : $("", !0)
|
|
271
|
+
]),
|
|
272
|
+
_: 3
|
|
273
|
+
}, 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"]),
|
|
274
|
+
t.debug ? (m(), I("pre", ge, ue(i.value), 1)) : $("", !0)
|
|
275
|
+
], 64));
|
|
269
276
|
}
|
|
270
277
|
});
|
|
271
278
|
export {
|
|
272
|
-
|
|
279
|
+
De as default
|
|
273
280
|
};
|