@ironsource/shared-ui 2.1.12-rc.54 → 2.1.12-rc.55
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/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +39 -1
- package/index.d.ts +78 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.child-options[data-v-63dc057e]{padding-left:1rem}.tree-search[data-v-63dc057e]{width:100%}
|
|
@@ -20,6 +20,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
optionChildrenKey: string;
|
|
21
21
|
optionUniqueIdKey: string | number;
|
|
22
22
|
preExpandedOptions: string[] | number[];
|
|
23
|
+
triggerFeedbackText?: string;
|
|
24
|
+
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
23
25
|
}>, {
|
|
24
26
|
selected: any;
|
|
25
27
|
placeholder: string;
|
|
@@ -36,6 +38,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
38
|
optionEndTextIconKey: any;
|
|
37
39
|
valueToCopy: any;
|
|
38
40
|
disabledOptionKey: string;
|
|
41
|
+
triggerFeedbackText: string;
|
|
42
|
+
triggerFeedbackVariant: any;
|
|
39
43
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
44
|
"update:selected": (value: unknown) => void;
|
|
41
45
|
"update:isOpen": (value: unknown) => void;
|
|
@@ -61,6 +65,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
61
65
|
optionChildrenKey: string;
|
|
62
66
|
optionUniqueIdKey: string | number;
|
|
63
67
|
preExpandedOptions: string[] | number[];
|
|
68
|
+
triggerFeedbackText?: string;
|
|
69
|
+
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
64
70
|
}>, {
|
|
65
71
|
selected: any;
|
|
66
72
|
placeholder: string;
|
|
@@ -77,6 +83,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
83
|
optionEndTextIconKey: any;
|
|
78
84
|
valueToCopy: any;
|
|
79
85
|
disabledOptionKey: string;
|
|
86
|
+
triggerFeedbackText: string;
|
|
87
|
+
triggerFeedbackVariant: any;
|
|
80
88
|
}>>> & {
|
|
81
89
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
82
90
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
@@ -87,6 +95,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
87
95
|
valueToCopy: string;
|
|
88
96
|
selected: unknown[];
|
|
89
97
|
placeholder: string;
|
|
98
|
+
triggerFeedbackText: string;
|
|
99
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
90
100
|
inlineSearchPlaceholder: string;
|
|
91
101
|
optionNameKey: string;
|
|
92
102
|
optionIconKey: string;
|
|
@@ -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_63dc057e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-63dc057e"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../TreeDropdown.
|
|
1
|
+
import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css"; import { defineComponent as te, provide as ne, ref as s, computed as m, onMounted as le, watch as b, openBlock as K, createBlock as D, unref as a, withCtx as f, createVNode as k, mergeProps as z, createSlots as ie, renderSlot as oe, createElementVNode as M, withModifiers as E, createTextVNode as ae, createElementBlock as B, withDirectives as de, Fragment as re, renderList as ce, vShow as se, createCommentVNode as ue } from "vue";
|
|
2
2
|
import pe from "./DropdownV4.vue.js";
|
|
3
3
|
import ye from "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
@@ -7,16 +7,16 @@ 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 S from "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
|
-
import { useChildOptions as
|
|
13
|
-
import
|
|
12
|
+
import { useChildOptions as fe } from "../composables/useChildOptions.js";
|
|
13
|
+
import he from "../../search/v4/SearchV4.vue.js";
|
|
14
14
|
import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
|
|
15
|
-
import { DropdownTestIdModifiers as
|
|
16
|
-
const
|
|
15
|
+
import { DropdownTestIdModifiers as F } from "../../../testids/index.js";
|
|
16
|
+
const ge = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "child-options"
|
|
19
|
-
},
|
|
19
|
+
}, Ve = /* @__PURE__ */ te({
|
|
20
20
|
__name: "TreeDropdown",
|
|
21
21
|
props: {
|
|
22
22
|
options: null,
|
|
@@ -39,230 +39,234 @@ const me = {
|
|
|
39
39
|
disabledOptionKey: { default: "disabled" },
|
|
40
40
|
optionChildrenKey: null,
|
|
41
41
|
optionUniqueIdKey: null,
|
|
42
|
-
preExpandedOptions: null
|
|
42
|
+
preExpandedOptions: null,
|
|
43
|
+
triggerFeedbackText: { default: "" },
|
|
44
|
+
triggerFeedbackVariant: { default: null }
|
|
43
45
|
},
|
|
44
46
|
emits: ["update:selected", "update:isOpen"],
|
|
45
|
-
setup(
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
const
|
|
47
|
+
setup(l, { emit: w }) {
|
|
48
|
+
const t = l;
|
|
49
|
+
ne("isTreeDropdown", !0);
|
|
50
|
+
const g = s([]), u = s([]), T = s({}), x = s(!1), o = s([...t.selected]), p = s(""), O = s(!0), N = m(() => u.value.reduce((e, i) => (i[t.optionChildrenKey] && i[t.optionChildrenKey].length && i[t.optionChildrenKey].forEach(() => {
|
|
49
51
|
e = e + 1;
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
e[
|
|
53
|
-
...e[
|
|
52
|
+
}), i[t.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
|
|
53
|
+
t.options.forEach((e) => {
|
|
54
|
+
e[t.optionChildrenKey] && e[t.optionChildrenKey].length && (T.value[e[t.optionUniqueIdKey]] = [
|
|
55
|
+
...e[t.optionChildrenKey]
|
|
54
56
|
]);
|
|
55
|
-
}),
|
|
56
|
-
}, { hasChildren:
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
(
|
|
60
|
-
) :
|
|
61
|
-
...
|
|
57
|
+
}), g.value = [...t.options], u.value = [...t.options];
|
|
58
|
+
}, { hasChildren: h, getChildren: v, allChildrenSelected: C, someChildrenSelected: $ } = fe(o, t.optionChildrenKey), q = (e) => {
|
|
59
|
+
if (h(e)) {
|
|
60
|
+
C(e) ? o.value = o.value.filter(
|
|
61
|
+
(i) => !v(e).includes(i)
|
|
62
|
+
) : o.value = [
|
|
63
|
+
...o.value.filter((i) => !v(e).includes(i)),
|
|
62
64
|
...v(e)
|
|
63
65
|
];
|
|
64
66
|
return;
|
|
65
67
|
}
|
|
66
|
-
|
|
67
|
-
(
|
|
68
|
-
) :
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
68
|
+
o.value.includes(e) ? o.value = o.value.filter(
|
|
69
|
+
(i) => i !== e
|
|
70
|
+
) : o.value = [...o.value, e];
|
|
71
|
+
}, V = (e) => o.value.includes(e), P = (e) => 1 + (h(e) ? v(e).length : 0), J = () => {
|
|
72
|
+
w("update:selected", o.value), A.value = y.value;
|
|
73
|
+
}, j = () => {
|
|
74
|
+
o.value = [];
|
|
73
75
|
}, G = () => {
|
|
74
76
|
const e = /* @__PURE__ */ new Set([]);
|
|
75
|
-
u.value.forEach((
|
|
76
|
-
if (
|
|
77
|
-
e.add(
|
|
78
|
-
else if (
|
|
79
|
-
for (const
|
|
80
|
-
if (
|
|
81
|
-
e.add(
|
|
77
|
+
u.value.forEach((n) => {
|
|
78
|
+
if (t.selected?.includes(n))
|
|
79
|
+
e.add(n);
|
|
80
|
+
else if (n[t.optionChildrenKey] && n[t.optionChildrenKey].length) {
|
|
81
|
+
for (const r of n[t.optionChildrenKey])
|
|
82
|
+
if (t.selected?.includes(r)) {
|
|
83
|
+
e.add(n);
|
|
82
84
|
break;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
});
|
|
86
|
-
const
|
|
87
|
-
return u.value.forEach((
|
|
88
|
-
!
|
|
89
|
-
}),
|
|
88
|
+
const i = Array.from(e);
|
|
89
|
+
return u.value.forEach((n) => {
|
|
90
|
+
!t.selected.includes(n) && !e.has(n) && i.push(n);
|
|
91
|
+
}), i;
|
|
90
92
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
le(() => {
|
|
94
|
+
x.value || (U(), x.value = !0, t.preExpandedOptions && t.preExpandedOptions.forEach((e) => {
|
|
95
|
+
d.value[e] = 1;
|
|
94
96
|
}));
|
|
95
|
-
}),
|
|
96
|
-
() =>
|
|
97
|
+
}), b(
|
|
98
|
+
() => t.options,
|
|
97
99
|
() => {
|
|
98
100
|
U();
|
|
99
101
|
}
|
|
100
|
-
),
|
|
101
|
-
() =>
|
|
102
|
-
(e,
|
|
103
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
102
|
+
), b(
|
|
103
|
+
() => t.selected,
|
|
104
|
+
(e, i) => {
|
|
105
|
+
JSON.stringify(e) !== JSON.stringify(i) && (o.value = [...t.selected]);
|
|
104
106
|
}
|
|
105
107
|
);
|
|
106
|
-
const y =
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
|
|
108
|
+
const y = m(() => o.value.length < N.value ? !1 : o.value.length === N.value), H = m(() => !y.value && o.value.length > 0), A = s(y.value), Q = (e) => {
|
|
109
|
+
w("update:isOpen", e), t.isOpen ? g.value = G() : (o.value = [...t.selected], p.value = "");
|
|
110
|
+
}, d = s({}), R = (e) => {
|
|
111
|
+
d.value[e[t.optionUniqueIdKey]] ? delete d.value[e[t.optionUniqueIdKey]] : d.value[e[t.optionUniqueIdKey]] = 1;
|
|
110
112
|
};
|
|
111
|
-
function W(e,
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
const
|
|
115
|
-
(ee) => ee[
|
|
113
|
+
function W(e, i) {
|
|
114
|
+
const n = e.toLowerCase(), r = [];
|
|
115
|
+
return i.value.forEach((c) => {
|
|
116
|
+
const I = c[t.optionNameKey].toLowerCase().includes(n), L = T.value[c[t.optionUniqueIdKey]]?.filter(
|
|
117
|
+
(ee) => ee[t.optionNameKey].toLowerCase().includes(n)
|
|
116
118
|
) || [];
|
|
117
|
-
(
|
|
118
|
-
}),
|
|
119
|
+
(I || L.length > 0) && (c[t.optionChildrenKey] = L, r.push(c));
|
|
120
|
+
}), r;
|
|
119
121
|
}
|
|
120
122
|
const X = (e) => {
|
|
121
|
-
const
|
|
122
|
-
e && (Object.keys(
|
|
123
|
-
delete
|
|
124
|
-
}),
|
|
125
|
-
Array.isArray(
|
|
126
|
-
})),
|
|
127
|
-
}, Y =
|
|
128
|
-
const e =
|
|
129
|
-
(
|
|
123
|
+
const i = W(e, u);
|
|
124
|
+
e && (Object.keys(d.value).forEach((n) => {
|
|
125
|
+
delete d.value[n];
|
|
126
|
+
}), i.forEach((n) => {
|
|
127
|
+
Array.isArray(n[t.optionChildrenKey]) && n[t.optionChildrenKey].length && (d.value[n[t.optionUniqueIdKey]] = 1);
|
|
128
|
+
})), g.value = i;
|
|
129
|
+
}, Y = m(() => {
|
|
130
|
+
const e = t.options.length, i = t.options.reduce(
|
|
131
|
+
(n, r) => (d.value[r[t.optionUniqueIdKey]] && (n = n + r[t.optionChildrenKey].length), n),
|
|
130
132
|
0
|
|
131
133
|
);
|
|
132
|
-
return e +
|
|
134
|
+
return e + i;
|
|
133
135
|
});
|
|
134
|
-
|
|
136
|
+
b(
|
|
135
137
|
() => p.value,
|
|
136
138
|
() => {
|
|
137
|
-
X(p.value),
|
|
139
|
+
X(p.value), O.value = !p.value;
|
|
138
140
|
}
|
|
139
141
|
);
|
|
140
142
|
const Z = () => {
|
|
141
|
-
y.value ?
|
|
142
|
-
if (e[
|
|
143
|
-
for (const
|
|
144
|
-
|
|
143
|
+
y.value ? o.value = [] : (o.value = [], u.value.forEach((e) => {
|
|
144
|
+
if (e[t.optionChildrenKey] && e[t.optionChildrenKey].length)
|
|
145
|
+
for (const i of e[t.optionChildrenKey])
|
|
146
|
+
o.value = [i, ...o.value];
|
|
145
147
|
else
|
|
146
|
-
|
|
148
|
+
o.value = [e, ...o.value];
|
|
147
149
|
}));
|
|
148
|
-
}, _ = ve(
|
|
149
|
-
return (e,
|
|
150
|
+
}, _ = ve(t.testId, F);
|
|
151
|
+
return (e, i) => (K(), D(a(pe), {
|
|
150
152
|
multi: "",
|
|
151
153
|
class: "tree-dropdown",
|
|
152
|
-
"show-select-all":
|
|
153
|
-
"is-open":
|
|
154
|
-
options:
|
|
155
|
-
selected:
|
|
156
|
-
"display-value":
|
|
157
|
-
placeholder:
|
|
154
|
+
"show-select-all": O.value,
|
|
155
|
+
"is-open": l.isOpen,
|
|
156
|
+
options: g.value,
|
|
157
|
+
selected: l.selected,
|
|
158
|
+
"display-value": l.displayValue,
|
|
159
|
+
placeholder: l.placeholder,
|
|
158
160
|
"inline-search": "",
|
|
159
|
-
"inline-search-placeholder":
|
|
160
|
-
"option-name-key":
|
|
161
|
-
size:
|
|
162
|
-
"test-id":
|
|
163
|
-
disabled:
|
|
161
|
+
"inline-search-placeholder": l.inlineSearchPlaceholder,
|
|
162
|
+
"option-name-key": l.optionNameKey,
|
|
163
|
+
size: l.size,
|
|
164
|
+
"test-id": l.testId,
|
|
165
|
+
disabled: l.disabled,
|
|
164
166
|
"disable-virtual-scroll": "",
|
|
165
|
-
"override-option-count-calculation":
|
|
167
|
+
"override-option-count-calculation": P,
|
|
166
168
|
"trigger-show-all-selected-text": !1,
|
|
167
169
|
"predefined-trigger": "default",
|
|
168
|
-
"custom-number-of-displayed-options":
|
|
170
|
+
"custom-number-of-displayed-options": a(Y),
|
|
171
|
+
"trigger-feedback-text": l.triggerFeedbackText,
|
|
172
|
+
"trigger-feedback-variant": l.triggerFeedbackVariant,
|
|
169
173
|
"onUpdate:isOpen": Q,
|
|
170
|
-
onApply:
|
|
171
|
-
onClear:
|
|
174
|
+
onApply: J,
|
|
175
|
+
onClear: j
|
|
172
176
|
}, {
|
|
173
|
-
"dropdown-trigger":
|
|
174
|
-
|
|
175
|
-
"all-selected":
|
|
177
|
+
"dropdown-trigger": f(({ defaultTriggerProps: n }) => [
|
|
178
|
+
k(a(ye), z(n, {
|
|
179
|
+
"all-selected": A.value,
|
|
176
180
|
"show-all-selected-text": ""
|
|
177
|
-
}),
|
|
181
|
+
}), ie({ _: 2 }, [
|
|
178
182
|
e.$slots["trigger-end-icon"] ? {
|
|
179
183
|
name: "end-icon",
|
|
180
|
-
fn:
|
|
181
|
-
|
|
184
|
+
fn: f(() => [
|
|
185
|
+
oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
|
|
182
186
|
]),
|
|
183
187
|
key: "0"
|
|
184
188
|
} : void 0
|
|
185
189
|
]), 1040, ["all-selected"])
|
|
186
190
|
]),
|
|
187
|
-
"inline-search":
|
|
188
|
-
|
|
191
|
+
"inline-search": f(() => [
|
|
192
|
+
k(a(he), {
|
|
189
193
|
modelValue: p.value,
|
|
190
|
-
"onUpdate:modelValue":
|
|
194
|
+
"onUpdate:modelValue": i[0] || (i[0] = (n) => p.value = n),
|
|
191
195
|
class: "tree-search",
|
|
192
|
-
placeholder:
|
|
196
|
+
placeholder: l.inlineSearchPlaceholder,
|
|
193
197
|
variant: "transparent",
|
|
194
198
|
size: "md",
|
|
195
199
|
"auto-focus": "",
|
|
196
|
-
"test-id":
|
|
200
|
+
"test-id": l.testId
|
|
197
201
|
}, null, 8, ["modelValue", "placeholder", "test-id"])
|
|
198
202
|
]),
|
|
199
|
-
"select-all":
|
|
203
|
+
"select-all": f(() => [
|
|
200
204
|
M("li", null, [
|
|
201
|
-
|
|
202
|
-
"aria-selected":
|
|
203
|
-
"aria-disabled": !!
|
|
204
|
-
"selected-prop":
|
|
205
|
-
"is-indeterminate":
|
|
205
|
+
k(a(S), z({
|
|
206
|
+
"aria-selected": a(y),
|
|
207
|
+
"aria-disabled": !!l.disabled,
|
|
208
|
+
"selected-prop": a(y),
|
|
209
|
+
"is-indeterminate": a(H),
|
|
206
210
|
"is-multi": "",
|
|
207
211
|
"select-all-option": ""
|
|
208
|
-
},
|
|
209
|
-
onClick:
|
|
212
|
+
}, a(_)[a(F).SELECT_ALL], {
|
|
213
|
+
onClick: i[1] || (i[1] = E((n) => Z(), ["stop"]))
|
|
210
214
|
}), {
|
|
211
|
-
default:
|
|
212
|
-
|
|
215
|
+
default: f(() => [
|
|
216
|
+
ae(" Select all ")
|
|
213
217
|
]),
|
|
214
218
|
_: 1
|
|
215
219
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
216
220
|
])
|
|
217
221
|
]),
|
|
218
|
-
default:
|
|
219
|
-
|
|
220
|
-
option:
|
|
221
|
-
"selected-prop":
|
|
222
|
-
"is-indeterminate": !
|
|
223
|
-
disabled: l
|
|
224
|
-
"name-key":
|
|
225
|
-
"image-key":
|
|
226
|
-
"icon-key":
|
|
227
|
-
"icon-type":
|
|
228
|
-
"end-icon-key":
|
|
229
|
-
"end-icon-type":
|
|
230
|
-
"end-text-icon-key":
|
|
231
|
-
"tree-main-option":
|
|
232
|
-
"tree-main-option-expanded":
|
|
222
|
+
default: f(({ option: n, index: r }) => [
|
|
223
|
+
k(a(S), {
|
|
224
|
+
option: n,
|
|
225
|
+
"selected-prop": a(h)(n) ? a(C)(n) : V(n),
|
|
226
|
+
"is-indeterminate": !a(C)(n) && a($)(n),
|
|
227
|
+
disabled: n[l.disabledOptionKey],
|
|
228
|
+
"name-key": l.optionNameKey,
|
|
229
|
+
"image-key": l.optionImageKey,
|
|
230
|
+
"icon-key": l.optionIconKey,
|
|
231
|
+
"icon-type": l.optionIconType,
|
|
232
|
+
"end-icon-key": l.optionEndIconKey,
|
|
233
|
+
"end-icon-type": l.optionEndIconType,
|
|
234
|
+
"end-text-icon-key": l.optionEndTextIconKey,
|
|
235
|
+
"tree-main-option": a(h)(n),
|
|
236
|
+
"tree-main-option-expanded": d.value[n[l.optionUniqueIdKey]],
|
|
233
237
|
"stop-option-click-event-propagation": "",
|
|
234
238
|
"is-multi": "",
|
|
235
|
-
onClick:
|
|
239
|
+
onClick: E(() => q(n), ["stop"]),
|
|
236
240
|
onToggleTreeCollapse: R
|
|
237
241
|
}, 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"]),
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
(
|
|
241
|
-
key: `${
|
|
242
|
-
option:
|
|
243
|
-
"selected-prop":
|
|
244
|
-
disabled:
|
|
245
|
-
"name-key":
|
|
246
|
-
"image-key":
|
|
247
|
-
"icon-key":
|
|
248
|
-
"icon-type":
|
|
249
|
-
"end-icon-key":
|
|
250
|
-
"end-icon-type":
|
|
251
|
-
"end-text-icon-key":
|
|
252
|
-
"tree-child-shown":
|
|
242
|
+
a(h)(n) ? (K(), B("div", ge, [
|
|
243
|
+
de(M("div", null, [
|
|
244
|
+
(K(!0), B(re, null, ce(a(v)(n), (c, I) => (K(), D(a(S), {
|
|
245
|
+
key: `${r}-${I}`,
|
|
246
|
+
option: c,
|
|
247
|
+
"selected-prop": V(c),
|
|
248
|
+
disabled: c[l.disabledOptionKey],
|
|
249
|
+
"name-key": l.optionNameKey,
|
|
250
|
+
"image-key": l.optionImageKey,
|
|
251
|
+
"icon-key": l.optionIconKey,
|
|
252
|
+
"icon-type": l.optionIconType,
|
|
253
|
+
"end-icon-key": l.optionEndIconKey,
|
|
254
|
+
"end-icon-type": l.optionEndIconType,
|
|
255
|
+
"end-text-icon-key": l.optionEndTextIconKey,
|
|
256
|
+
"tree-child-shown": d.value[n[l.optionUniqueIdKey]],
|
|
253
257
|
"stop-option-click-event-propagation": "",
|
|
254
258
|
"is-multi": "",
|
|
255
|
-
onClick:
|
|
259
|
+
onClick: E(() => q(c), ["stop"])
|
|
256
260
|
}, 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))
|
|
257
261
|
], 512), [
|
|
258
|
-
[
|
|
262
|
+
[se, d.value[n[l.optionUniqueIdKey]]]
|
|
259
263
|
])
|
|
260
264
|
])) : ue("", !0)
|
|
261
265
|
]),
|
|
262
266
|
_: 3
|
|
263
|
-
}, 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"]));
|
|
267
|
+
}, 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", "trigger-feedback-text", "trigger-feedback-variant"]));
|
|
264
268
|
}
|
|
265
269
|
});
|
|
266
270
|
export {
|
|
267
|
-
|
|
271
|
+
Ve as default
|
|
268
272
|
};
|
|
@@ -3347,6 +3347,8 @@ declare const DropdownTypes: () => (({
|
|
|
3347
3347
|
valueToCopy: string;
|
|
3348
3348
|
selected: unknown[];
|
|
3349
3349
|
placeholder: string;
|
|
3350
|
+
triggerFeedbackText: string;
|
|
3351
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
3350
3352
|
inlineSearchPlaceholder: string;
|
|
3351
3353
|
optionNameKey: string;
|
|
3352
3354
|
optionIconKey: string;
|
|
@@ -3388,6 +3390,14 @@ declare const DropdownTypes: () => (({
|
|
|
3388
3390
|
type: import("vue").PropType<string>;
|
|
3389
3391
|
default: string;
|
|
3390
3392
|
};
|
|
3393
|
+
triggerFeedbackText: {
|
|
3394
|
+
type: import("vue").PropType<string>;
|
|
3395
|
+
default: string;
|
|
3396
|
+
};
|
|
3397
|
+
triggerFeedbackVariant: {
|
|
3398
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
3399
|
+
default: any;
|
|
3400
|
+
};
|
|
3391
3401
|
inlineSearchPlaceholder: {
|
|
3392
3402
|
type: import("vue").PropType<string>;
|
|
3393
3403
|
default: string;
|
|
@@ -3443,7 +3453,7 @@ declare const DropdownTypes: () => (({
|
|
|
3443
3453
|
}>> & {
|
|
3444
3454
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
3445
3455
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
3446
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
3456
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "triggerFeedbackText" | "triggerFeedbackVariant" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
3447
3457
|
$attrs: {
|
|
3448
3458
|
[x: string]: unknown;
|
|
3449
3459
|
};
|
|
@@ -3489,6 +3499,14 @@ declare const DropdownTypes: () => (({
|
|
|
3489
3499
|
type: import("vue").PropType<string>;
|
|
3490
3500
|
default: string;
|
|
3491
3501
|
};
|
|
3502
|
+
triggerFeedbackText: {
|
|
3503
|
+
type: import("vue").PropType<string>;
|
|
3504
|
+
default: string;
|
|
3505
|
+
};
|
|
3506
|
+
triggerFeedbackVariant: {
|
|
3507
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
3508
|
+
default: any;
|
|
3509
|
+
};
|
|
3492
3510
|
inlineSearchPlaceholder: {
|
|
3493
3511
|
type: import("vue").PropType<string>;
|
|
3494
3512
|
default: string;
|
|
@@ -3554,6 +3572,8 @@ declare const DropdownTypes: () => (({
|
|
|
3554
3572
|
valueToCopy: string;
|
|
3555
3573
|
selected: unknown[];
|
|
3556
3574
|
placeholder: string;
|
|
3575
|
+
triggerFeedbackText: string;
|
|
3576
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
3557
3577
|
inlineSearchPlaceholder: string;
|
|
3558
3578
|
optionNameKey: string;
|
|
3559
3579
|
optionIconKey: string;
|
|
@@ -3615,6 +3635,14 @@ declare const DropdownTypes: () => (({
|
|
|
3615
3635
|
type: import("vue").PropType<string>;
|
|
3616
3636
|
default: string;
|
|
3617
3637
|
};
|
|
3638
|
+
triggerFeedbackText: {
|
|
3639
|
+
type: import("vue").PropType<string>;
|
|
3640
|
+
default: string;
|
|
3641
|
+
};
|
|
3642
|
+
triggerFeedbackVariant: {
|
|
3643
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
3644
|
+
default: any;
|
|
3645
|
+
};
|
|
3618
3646
|
inlineSearchPlaceholder: {
|
|
3619
3647
|
type: import("vue").PropType<string>;
|
|
3620
3648
|
default: string;
|
|
@@ -3706,6 +3734,14 @@ declare const DropdownTypes: () => (({
|
|
|
3706
3734
|
type: import("vue").PropType<string>;
|
|
3707
3735
|
default: string;
|
|
3708
3736
|
};
|
|
3737
|
+
triggerFeedbackText: {
|
|
3738
|
+
type: import("vue").PropType<string>;
|
|
3739
|
+
default: string;
|
|
3740
|
+
};
|
|
3741
|
+
triggerFeedbackVariant: {
|
|
3742
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
3743
|
+
default: any;
|
|
3744
|
+
};
|
|
3709
3745
|
inlineSearchPlaceholder: {
|
|
3710
3746
|
type: import("vue").PropType<string>;
|
|
3711
3747
|
default: string;
|
|
@@ -3771,6 +3807,8 @@ declare const DropdownTypes: () => (({
|
|
|
3771
3807
|
valueToCopy: string;
|
|
3772
3808
|
selected: unknown[];
|
|
3773
3809
|
placeholder: string;
|
|
3810
|
+
triggerFeedbackText: string;
|
|
3811
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
3774
3812
|
inlineSearchPlaceholder: string;
|
|
3775
3813
|
optionNameKey: string;
|
|
3776
3814
|
optionIconKey: string;
|
package/index.d.ts
CHANGED
|
@@ -23490,6 +23490,8 @@ declare const _default: {
|
|
|
23490
23490
|
valueToCopy: string;
|
|
23491
23491
|
selected: unknown[];
|
|
23492
23492
|
placeholder: string;
|
|
23493
|
+
triggerFeedbackText: string;
|
|
23494
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
23493
23495
|
inlineSearchPlaceholder: string;
|
|
23494
23496
|
optionNameKey: string;
|
|
23495
23497
|
optionIconKey: string;
|
|
@@ -23531,6 +23533,14 @@ declare const _default: {
|
|
|
23531
23533
|
type: import("vue").PropType<string>;
|
|
23532
23534
|
default: string;
|
|
23533
23535
|
};
|
|
23536
|
+
triggerFeedbackText: {
|
|
23537
|
+
type: import("vue").PropType<string>;
|
|
23538
|
+
default: string;
|
|
23539
|
+
};
|
|
23540
|
+
triggerFeedbackVariant: {
|
|
23541
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
23542
|
+
default: any;
|
|
23543
|
+
};
|
|
23534
23544
|
inlineSearchPlaceholder: {
|
|
23535
23545
|
type: import("vue").PropType<string>;
|
|
23536
23546
|
default: string;
|
|
@@ -23586,7 +23596,7 @@ declare const _default: {
|
|
|
23586
23596
|
}>> & {
|
|
23587
23597
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
23588
23598
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
23589
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
23599
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "triggerFeedbackText" | "triggerFeedbackVariant" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
23590
23600
|
$attrs: {
|
|
23591
23601
|
[x: string]: unknown;
|
|
23592
23602
|
};
|
|
@@ -23632,6 +23642,14 @@ declare const _default: {
|
|
|
23632
23642
|
type: import("vue").PropType<string>;
|
|
23633
23643
|
default: string;
|
|
23634
23644
|
};
|
|
23645
|
+
triggerFeedbackText: {
|
|
23646
|
+
type: import("vue").PropType<string>;
|
|
23647
|
+
default: string;
|
|
23648
|
+
};
|
|
23649
|
+
triggerFeedbackVariant: {
|
|
23650
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
23651
|
+
default: any;
|
|
23652
|
+
};
|
|
23635
23653
|
inlineSearchPlaceholder: {
|
|
23636
23654
|
type: import("vue").PropType<string>;
|
|
23637
23655
|
default: string;
|
|
@@ -23697,6 +23715,8 @@ declare const _default: {
|
|
|
23697
23715
|
valueToCopy: string;
|
|
23698
23716
|
selected: unknown[];
|
|
23699
23717
|
placeholder: string;
|
|
23718
|
+
triggerFeedbackText: string;
|
|
23719
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
23700
23720
|
inlineSearchPlaceholder: string;
|
|
23701
23721
|
optionNameKey: string;
|
|
23702
23722
|
optionIconKey: string;
|
|
@@ -23758,6 +23778,14 @@ declare const _default: {
|
|
|
23758
23778
|
type: import("vue").PropType<string>;
|
|
23759
23779
|
default: string;
|
|
23760
23780
|
};
|
|
23781
|
+
triggerFeedbackText: {
|
|
23782
|
+
type: import("vue").PropType<string>;
|
|
23783
|
+
default: string;
|
|
23784
|
+
};
|
|
23785
|
+
triggerFeedbackVariant: {
|
|
23786
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
23787
|
+
default: any;
|
|
23788
|
+
};
|
|
23761
23789
|
inlineSearchPlaceholder: {
|
|
23762
23790
|
type: import("vue").PropType<string>;
|
|
23763
23791
|
default: string;
|
|
@@ -23849,6 +23877,14 @@ declare const _default: {
|
|
|
23849
23877
|
type: import("vue").PropType<string>;
|
|
23850
23878
|
default: string;
|
|
23851
23879
|
};
|
|
23880
|
+
triggerFeedbackText: {
|
|
23881
|
+
type: import("vue").PropType<string>;
|
|
23882
|
+
default: string;
|
|
23883
|
+
};
|
|
23884
|
+
triggerFeedbackVariant: {
|
|
23885
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
23886
|
+
default: any;
|
|
23887
|
+
};
|
|
23852
23888
|
inlineSearchPlaceholder: {
|
|
23853
23889
|
type: import("vue").PropType<string>;
|
|
23854
23890
|
default: string;
|
|
@@ -23914,6 +23950,8 @@ declare const _default: {
|
|
|
23914
23950
|
valueToCopy: string;
|
|
23915
23951
|
selected: unknown[];
|
|
23916
23952
|
placeholder: string;
|
|
23953
|
+
triggerFeedbackText: string;
|
|
23954
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
23917
23955
|
inlineSearchPlaceholder: string;
|
|
23918
23956
|
optionNameKey: string;
|
|
23919
23957
|
optionIconKey: string;
|
|
@@ -25062,6 +25100,8 @@ declare const _default: {
|
|
|
25062
25100
|
valueToCopy: string;
|
|
25063
25101
|
selected: unknown[];
|
|
25064
25102
|
placeholder: string;
|
|
25103
|
+
triggerFeedbackText: string;
|
|
25104
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
25065
25105
|
inlineSearchPlaceholder: string;
|
|
25066
25106
|
optionNameKey: string;
|
|
25067
25107
|
optionIconKey: string;
|
|
@@ -25103,6 +25143,14 @@ declare const _default: {
|
|
|
25103
25143
|
type: import("vue").PropType<string>;
|
|
25104
25144
|
default: string;
|
|
25105
25145
|
};
|
|
25146
|
+
triggerFeedbackText: {
|
|
25147
|
+
type: import("vue").PropType<string>;
|
|
25148
|
+
default: string;
|
|
25149
|
+
};
|
|
25150
|
+
triggerFeedbackVariant: {
|
|
25151
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
25152
|
+
default: any;
|
|
25153
|
+
};
|
|
25106
25154
|
inlineSearchPlaceholder: {
|
|
25107
25155
|
type: import("vue").PropType<string>;
|
|
25108
25156
|
default: string;
|
|
@@ -25158,7 +25206,7 @@ declare const _default: {
|
|
|
25158
25206
|
}>> & {
|
|
25159
25207
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
25160
25208
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
25161
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
25209
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "triggerFeedbackText" | "triggerFeedbackVariant" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
|
|
25162
25210
|
$attrs: {
|
|
25163
25211
|
[x: string]: unknown;
|
|
25164
25212
|
};
|
|
@@ -25204,6 +25252,14 @@ declare const _default: {
|
|
|
25204
25252
|
type: import("vue").PropType<string>;
|
|
25205
25253
|
default: string;
|
|
25206
25254
|
};
|
|
25255
|
+
triggerFeedbackText: {
|
|
25256
|
+
type: import("vue").PropType<string>;
|
|
25257
|
+
default: string;
|
|
25258
|
+
};
|
|
25259
|
+
triggerFeedbackVariant: {
|
|
25260
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
25261
|
+
default: any;
|
|
25262
|
+
};
|
|
25207
25263
|
inlineSearchPlaceholder: {
|
|
25208
25264
|
type: import("vue").PropType<string>;
|
|
25209
25265
|
default: string;
|
|
@@ -25269,6 +25325,8 @@ declare const _default: {
|
|
|
25269
25325
|
valueToCopy: string;
|
|
25270
25326
|
selected: unknown[];
|
|
25271
25327
|
placeholder: string;
|
|
25328
|
+
triggerFeedbackText: string;
|
|
25329
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
25272
25330
|
inlineSearchPlaceholder: string;
|
|
25273
25331
|
optionNameKey: string;
|
|
25274
25332
|
optionIconKey: string;
|
|
@@ -25330,6 +25388,14 @@ declare const _default: {
|
|
|
25330
25388
|
type: import("vue").PropType<string>;
|
|
25331
25389
|
default: string;
|
|
25332
25390
|
};
|
|
25391
|
+
triggerFeedbackText: {
|
|
25392
|
+
type: import("vue").PropType<string>;
|
|
25393
|
+
default: string;
|
|
25394
|
+
};
|
|
25395
|
+
triggerFeedbackVariant: {
|
|
25396
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
25397
|
+
default: any;
|
|
25398
|
+
};
|
|
25333
25399
|
inlineSearchPlaceholder: {
|
|
25334
25400
|
type: import("vue").PropType<string>;
|
|
25335
25401
|
default: string;
|
|
@@ -25421,6 +25487,14 @@ declare const _default: {
|
|
|
25421
25487
|
type: import("vue").PropType<string>;
|
|
25422
25488
|
default: string;
|
|
25423
25489
|
};
|
|
25490
|
+
triggerFeedbackText: {
|
|
25491
|
+
type: import("vue").PropType<string>;
|
|
25492
|
+
default: string;
|
|
25493
|
+
};
|
|
25494
|
+
triggerFeedbackVariant: {
|
|
25495
|
+
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
25496
|
+
default: any;
|
|
25497
|
+
};
|
|
25424
25498
|
inlineSearchPlaceholder: {
|
|
25425
25499
|
type: import("vue").PropType<string>;
|
|
25426
25500
|
default: string;
|
|
@@ -25486,6 +25560,8 @@ declare const _default: {
|
|
|
25486
25560
|
valueToCopy: string;
|
|
25487
25561
|
selected: unknown[];
|
|
25488
25562
|
placeholder: string;
|
|
25563
|
+
triggerFeedbackText: string;
|
|
25564
|
+
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
25489
25565
|
inlineSearchPlaceholder: string;
|
|
25490
25566
|
optionNameKey: string;
|
|
25491
25567
|
optionIconKey: string;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.child-options[data-v-4ba9e4bd]{padding-left:1rem}.tree-search[data-v-4ba9e4bd]{width:100%}
|