@ironsource/shared-ui 2.1.11-rc.50 → 2.1.11-rc.51
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/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +1 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +19 -3
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +89 -79
- package/components/dropdown/v4/index.d.ts +30 -3
- package/index.d.ts +60 -6
- package/index.js +1 -1
- package/package.json +1 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-list-area[data-v-2c6a03f9]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-2c6a03f9]{width:100%}.contain-accept[data-v-2c6a03f9]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-2c6a03f9]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-2c6a03f9]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconTypes } from '@is-ssp/icon/v4/Icon.types';
|
|
1
2
|
type SelectedCondition = {
|
|
2
3
|
label: string;
|
|
3
4
|
value: string;
|
|
@@ -15,12 +16,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
16
|
minCharsToStart?: number;
|
|
16
17
|
isOpen?: boolean;
|
|
17
18
|
searchQuery?: string;
|
|
18
|
-
loadMoreFn?: () => Promise<
|
|
19
|
+
loadMoreFn?: () => Promise<any[]>;
|
|
19
20
|
infiniteLoading?: boolean;
|
|
20
21
|
fetchDataDebounceTime?: number;
|
|
21
22
|
autoFocusSearch?: boolean;
|
|
22
23
|
groupedOptions?: boolean;
|
|
23
24
|
optionFlagKey?: string;
|
|
25
|
+
optionIconKey?: string;
|
|
26
|
+
optionImageKey?: string;
|
|
27
|
+
optionIconType?: IconTypes;
|
|
24
28
|
}>, {
|
|
25
29
|
label: string;
|
|
26
30
|
testId: string;
|
|
@@ -35,6 +39,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
35
39
|
autoFocusSearch: boolean;
|
|
36
40
|
groupedOptions: boolean;
|
|
37
41
|
optionFlagKey: string;
|
|
42
|
+
optionIconKey: string;
|
|
43
|
+
optionImageKey: string;
|
|
44
|
+
optionIconType: any;
|
|
38
45
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
46
|
"update:selectedCondition": (value: SelectedCondition) => void;
|
|
40
47
|
"update:appliedSelections": (value: unknown) => void;
|
|
@@ -51,12 +58,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
51
58
|
minCharsToStart?: number;
|
|
52
59
|
isOpen?: boolean;
|
|
53
60
|
searchQuery?: string;
|
|
54
|
-
loadMoreFn?: () => Promise<
|
|
61
|
+
loadMoreFn?: () => Promise<any[]>;
|
|
55
62
|
infiniteLoading?: boolean;
|
|
56
63
|
fetchDataDebounceTime?: number;
|
|
57
64
|
autoFocusSearch?: boolean;
|
|
58
65
|
groupedOptions?: boolean;
|
|
59
66
|
optionFlagKey?: string;
|
|
67
|
+
optionIconKey?: string;
|
|
68
|
+
optionImageKey?: string;
|
|
69
|
+
optionIconType?: IconTypes;
|
|
60
70
|
}>, {
|
|
61
71
|
label: string;
|
|
62
72
|
testId: string;
|
|
@@ -71,6 +81,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
71
81
|
autoFocusSearch: boolean;
|
|
72
82
|
groupedOptions: boolean;
|
|
73
83
|
optionFlagKey: string;
|
|
84
|
+
optionIconKey: string;
|
|
85
|
+
optionImageKey: string;
|
|
86
|
+
optionIconType: any;
|
|
74
87
|
}>>> & {
|
|
75
88
|
onClear?: () => any;
|
|
76
89
|
"onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
|
|
@@ -81,12 +94,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
81
94
|
isOpen: boolean;
|
|
82
95
|
infiniteLoading: boolean;
|
|
83
96
|
optionNameKey: string;
|
|
97
|
+
optionIconKey: string;
|
|
98
|
+
optionImageKey: string;
|
|
99
|
+
optionIconType: IconTypes;
|
|
84
100
|
optionFlagKey: string;
|
|
85
101
|
groupedOptions: boolean;
|
|
86
102
|
comparingKey: string;
|
|
87
103
|
minCharsToStart: number;
|
|
88
104
|
searchQuery: string;
|
|
89
|
-
loadMoreFn: () => Promise<
|
|
105
|
+
loadMoreFn: () => Promise<any[]>;
|
|
90
106
|
fetchDataDebounceTime: number;
|
|
91
107
|
autoFocusSearch: boolean;
|
|
92
108
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ConditionalDropdown.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ConditionalDropdown.
|
|
4
|
-
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2c6a03f9"]]);
|
|
5
5
|
export {
|
|
6
6
|
n as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css"; import { defineComponent as $, computed as C, ref as s, watch as O, onMounted as j, openBlock as D, createBlock as W, unref as d, withCtx as f, createVNode as g, mergeProps as q, createElementVNode as G, isRef as H, normalizeProps as J, guardReactiveProps as X, createElementBlock as Y, createTextVNode as Z, toDisplayString as _, createCommentVNode as ee } from "vue";
|
|
2
|
+
import N from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import le from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import oe from "./ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
10
|
import "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
12
|
import ae from "../../search/v4/SearchV4.vue.js";
|
|
13
13
|
import te from "../../typography/v4/Typography.vue.js";
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
const
|
|
14
|
+
import { useDebounceFn as ne } from "@vueuse/core";
|
|
15
|
+
const ie = { class: "conditional-container" }, ue = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
18
|
}, Oe = /* @__PURE__ */ $({
|
|
@@ -34,125 +34,132 @@ const ne = { class: "conditional-container" }, ie = {
|
|
|
34
34
|
fetchDataDebounceTime: { default: 400 },
|
|
35
35
|
autoFocusSearch: { type: Boolean, default: !0 },
|
|
36
36
|
groupedOptions: { type: Boolean, default: !1 },
|
|
37
|
-
optionFlagKey: { default: "" }
|
|
37
|
+
optionFlagKey: { default: "" },
|
|
38
|
+
optionIconKey: { default: "" },
|
|
39
|
+
optionImageKey: { default: "" },
|
|
40
|
+
optionIconType: { default: null }
|
|
38
41
|
},
|
|
39
42
|
emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
|
|
40
|
-
setup(r, { emit:
|
|
43
|
+
setup(r, { emit: k }) {
|
|
41
44
|
const e = r, h = C({
|
|
42
45
|
get: () => e.appliedSelections,
|
|
43
46
|
set: (l) => {
|
|
44
|
-
|
|
47
|
+
k("update:appliedSelections", l);
|
|
45
48
|
}
|
|
46
49
|
}), n = C({
|
|
47
50
|
get: () => e.selectedCondition || e.conditionalOptions[0],
|
|
48
51
|
set: (l) => {
|
|
49
|
-
|
|
52
|
+
k("update:selectedCondition", l);
|
|
50
53
|
}
|
|
51
|
-
}),
|
|
52
|
-
|
|
54
|
+
}), w = s(null), c = s(!0), a = s([]), u = s(
|
|
55
|
+
Array.isArray(e.appliedSelections) ? e.appliedSelections : [e.appliedSelections]
|
|
56
|
+
), K = s(!0), p = s(!1), S = s(!1), i = s(e.searchQuery), L = s(""), m = s(e.label), T = s([]), F = C(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), U = C(() => {
|
|
57
|
+
const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
|
|
53
58
|
if (e.groupedOptions) {
|
|
54
|
-
let
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
}),
|
|
59
|
+
let o = 0;
|
|
60
|
+
return a.value.forEach((y) => {
|
|
61
|
+
y.options && (o = o + y.options.length);
|
|
62
|
+
}), o > 4 ? o : l;
|
|
58
63
|
}
|
|
59
|
-
return
|
|
60
|
-
}),
|
|
61
|
-
if (e.infiniteLoading && n.value.multi && Array.isArray(u.value) && u.value.length && l &&
|
|
62
|
-
const
|
|
64
|
+
return t > l ? t : l;
|
|
65
|
+
}), B = (l, t) => {
|
|
66
|
+
if (e.infiniteLoading && n.value.multi && Array.isArray(u.value) && u.value.length && l && t.length) {
|
|
67
|
+
const o = [], y = u.value.filter(
|
|
63
68
|
(v) => v[e.optionNameKey].includes(l)
|
|
64
69
|
);
|
|
65
|
-
return
|
|
66
|
-
|
|
70
|
+
return t.forEach((v) => {
|
|
71
|
+
y.find(
|
|
67
72
|
(z) => z[e.comparingKey] === v[e.comparingKey]
|
|
68
|
-
) &&
|
|
69
|
-
}),
|
|
70
|
-
(v) => !
|
|
73
|
+
) && o.push(v[e.comparingKey]);
|
|
74
|
+
}), y.filter(
|
|
75
|
+
(v) => !o.includes(v[e.comparingKey])
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
return [];
|
|
74
|
-
},
|
|
79
|
+
}, I = async (l) => {
|
|
75
80
|
try {
|
|
76
|
-
|
|
77
|
-
const
|
|
81
|
+
p.value = !0;
|
|
82
|
+
const t = await e.fetchFnCallback(l), o = B(
|
|
78
83
|
l,
|
|
79
|
-
|
|
84
|
+
t
|
|
80
85
|
);
|
|
81
|
-
|
|
82
|
-
} catch (
|
|
83
|
-
|
|
86
|
+
a.value = [...o, ...t], p.value = !1;
|
|
87
|
+
} catch (t) {
|
|
88
|
+
p.value = !1, console.error("Error fetching data:", t);
|
|
84
89
|
}
|
|
85
90
|
}, M = async () => {
|
|
86
91
|
if (e.infiniteLoading)
|
|
87
92
|
try {
|
|
88
93
|
S.value = !0;
|
|
89
94
|
const l = await e.loadMoreFn();
|
|
90
|
-
S.value = !1, Array.isArray(l) && (
|
|
95
|
+
S.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
|
|
91
96
|
} catch (l) {
|
|
92
97
|
S.value = !1, console.error("Error fetching data:", l);
|
|
93
98
|
}
|
|
94
|
-
}, E =
|
|
95
|
-
|
|
99
|
+
}, E = ne(
|
|
100
|
+
I,
|
|
96
101
|
e.fetchDataDebounceTime
|
|
97
102
|
), b = (l) => {
|
|
98
|
-
l.length >= e.minCharsToStart ? (E(l),
|
|
103
|
+
l.length >= e.minCharsToStart ? (E(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
|
|
99
104
|
}, V = () => {
|
|
100
|
-
i.value &&
|
|
105
|
+
i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
|
|
101
106
|
name: i.value,
|
|
102
107
|
conditionalOptions: !0,
|
|
103
108
|
conditionalName: n.value.label,
|
|
104
109
|
[e.comparingKey]: i.value
|
|
105
|
-
} :
|
|
110
|
+
} : a.value = [
|
|
106
111
|
{
|
|
107
112
|
name: i.value,
|
|
108
113
|
conditionalOptions: !0,
|
|
109
114
|
conditionalName: n.value.label,
|
|
110
115
|
[e.comparingKey]: i.value
|
|
111
116
|
},
|
|
112
|
-
...
|
|
113
|
-
] :
|
|
117
|
+
...a.value
|
|
118
|
+
] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
|
|
119
|
+
}, A = () => {
|
|
120
|
+
c.value && u.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
|
|
114
121
|
};
|
|
115
|
-
|
|
122
|
+
O(i, () => {
|
|
116
123
|
b(i.value);
|
|
117
|
-
}),
|
|
124
|
+
}), O([n, a], () => {
|
|
118
125
|
V();
|
|
119
126
|
});
|
|
120
127
|
const x = () => {
|
|
121
|
-
|
|
128
|
+
c.value && u.value.length === 0 ? (n.value = null, h.value = [], n.value = null) : (L.value = i.value, h.value = c.value ? [...u.value] : { ...u.value }, K.value = c.value), A();
|
|
122
129
|
};
|
|
123
|
-
|
|
124
|
-
n.value.multi ? (
|
|
125
|
-
|
|
130
|
+
O(n, (l, t) => {
|
|
131
|
+
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (u.value = e.appliedSelections), setTimeout(() => {
|
|
132
|
+
p.value = !1, c.value = !0;
|
|
126
133
|
}, 100)) : setTimeout(() => {
|
|
127
|
-
|
|
134
|
+
c.value = !1;
|
|
128
135
|
}, 100);
|
|
129
136
|
});
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
u.value = [], h.value = [], n.value = null, m.value = e.label, i.value = "",
|
|
137
|
+
const P = (l) => {
|
|
138
|
+
T.value = l;
|
|
139
|
+
}, Q = () => {
|
|
140
|
+
u.value = [], h.value = [], n.value = null, m.value = e.label, i.value = "", k("clear");
|
|
134
141
|
}, R = (l) => {
|
|
135
|
-
l && n.value.multi && e.infiniteLoading && u.value && (
|
|
142
|
+
l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value && b(i.value));
|
|
136
143
|
};
|
|
137
|
-
return
|
|
138
|
-
(e.searchQuery || !e.infiniteLoading) && b(e.searchQuery);
|
|
139
|
-
}), (l,
|
|
144
|
+
return j(() => {
|
|
145
|
+
(e.searchQuery || !e.infiniteLoading) && b(e.searchQuery), A();
|
|
146
|
+
}), (l, t) => (D(), W(d(N), {
|
|
140
147
|
ref_key: "dropdownRef",
|
|
141
|
-
ref:
|
|
148
|
+
ref: w,
|
|
142
149
|
selected: u.value,
|
|
143
|
-
"onUpdate:selected":
|
|
150
|
+
"onUpdate:selected": t[2] || (t[2] = (o) => u.value = o),
|
|
144
151
|
"predefined-trigger": "chip",
|
|
145
|
-
"display-value": (
|
|
146
|
-
multi:
|
|
147
|
-
options:
|
|
152
|
+
"display-value": (o) => o?.[r.optionNameKey],
|
|
153
|
+
multi: c.value,
|
|
154
|
+
options: a.value,
|
|
148
155
|
placeholder: m.value,
|
|
149
156
|
"search-placeholder": "Search",
|
|
150
157
|
"option-name-key": r.optionNameKey,
|
|
151
158
|
"with-conditions": "",
|
|
152
159
|
"inline-search": "",
|
|
153
|
-
"custom-number-of-displayed-options": d(
|
|
160
|
+
"custom-number-of-displayed-options": d(U),
|
|
154
161
|
"options-list-width": "330px",
|
|
155
|
-
loading:
|
|
162
|
+
loading: p.value,
|
|
156
163
|
"load-more-loading": S.value,
|
|
157
164
|
"comparing-key": r.comparingKey,
|
|
158
165
|
"is-open": r.isOpen,
|
|
@@ -160,44 +167,47 @@ const ne = { class: "conditional-container" }, ie = {
|
|
|
160
167
|
"show-select-all": !r.infiniteLoading && !i.value,
|
|
161
168
|
"grouped-options": r.groupedOptions,
|
|
162
169
|
"option-flag-key": r.optionFlagKey,
|
|
170
|
+
"option-image-key": r.optionImageKey,
|
|
171
|
+
"option-icon-key": r.optionIconKey,
|
|
172
|
+
"option-icon-type": r.optionIconType,
|
|
163
173
|
"onUpdate:isOpen": R,
|
|
164
174
|
onOnsearch: b,
|
|
165
175
|
onApply: x,
|
|
166
176
|
onLoadMore: M,
|
|
167
|
-
onUnsavedSelectionUpdate:
|
|
177
|
+
onUnsavedSelectionUpdate: P
|
|
168
178
|
}, {
|
|
169
|
-
"dropdown-trigger": f(({ defaultTriggerProps:
|
|
170
|
-
|
|
179
|
+
"dropdown-trigger": f(({ defaultTriggerProps: o }) => [
|
|
180
|
+
g(d(le), q(o, {
|
|
171
181
|
label: m.value,
|
|
172
182
|
"selected-option": d(h),
|
|
173
183
|
multi: K.value,
|
|
174
184
|
"cancel-all-selected-display": "",
|
|
175
185
|
"display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
|
|
176
|
-
onClear:
|
|
186
|
+
onClear: Q
|
|
177
187
|
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
|
|
178
188
|
]),
|
|
179
189
|
"dropdown-conditions": f(() => [
|
|
180
|
-
G("div",
|
|
181
|
-
|
|
190
|
+
G("div", ie, [
|
|
191
|
+
g(d(N), {
|
|
182
192
|
selected: d(n),
|
|
183
|
-
"onUpdate:selected":
|
|
193
|
+
"onUpdate:selected": t[0] || (t[0] = (o) => H(n) ? n.value = o : null),
|
|
184
194
|
options: r.conditionalOptions,
|
|
185
195
|
"option-name-key": "label",
|
|
186
|
-
"display-value": (
|
|
196
|
+
"display-value": (o) => o?.label,
|
|
187
197
|
container: ".conditional-container",
|
|
188
198
|
size: "small"
|
|
189
199
|
}, {
|
|
190
|
-
"dropdown-trigger": f(({ buttonTriggerProps:
|
|
191
|
-
|
|
200
|
+
"dropdown-trigger": f(({ buttonTriggerProps: o }) => [
|
|
201
|
+
g(d(oe), J(X(o)), null, 16)
|
|
192
202
|
]),
|
|
193
203
|
_: 1
|
|
194
204
|
}, 8, ["selected", "options", "display-value"])
|
|
195
205
|
])
|
|
196
206
|
]),
|
|
197
207
|
"inline-search": f(() => [
|
|
198
|
-
|
|
208
|
+
g(d(ae), {
|
|
199
209
|
modelValue: i.value,
|
|
200
|
-
"onUpdate:modelValue":
|
|
210
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
|
|
201
211
|
class: "inline-search",
|
|
202
212
|
placeholder: "Search",
|
|
203
213
|
variant: "transparent",
|
|
@@ -206,17 +216,17 @@ const ne = { class: "conditional-container" }, ie = {
|
|
|
206
216
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
207
217
|
]),
|
|
208
218
|
"custom-list-area": f(() => [
|
|
209
|
-
!
|
|
210
|
-
|
|
219
|
+
!a.value.length && !p.value ? (D(), Y("div", ue, [
|
|
220
|
+
g(te, { variant: "body1" }, {
|
|
211
221
|
default: f(() => [
|
|
212
|
-
|
|
222
|
+
Z(_(d(F)), 1)
|
|
213
223
|
]),
|
|
214
224
|
_: 1
|
|
215
225
|
})
|
|
216
|
-
])) :
|
|
226
|
+
])) : ee("", !0)
|
|
217
227
|
]),
|
|
218
228
|
_: 1
|
|
219
|
-
}, 8, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key"]));
|
|
229
|
+
}, 8, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key", "option-image-key", "option-icon-key", "option-icon-type"]));
|
|
220
230
|
}
|
|
221
231
|
});
|
|
222
232
|
export {
|
|
@@ -3582,6 +3582,18 @@ declare const DropdownTypes: () => (({
|
|
|
3582
3582
|
required: true;
|
|
3583
3583
|
default: string;
|
|
3584
3584
|
};
|
|
3585
|
+
optionIconKey: {
|
|
3586
|
+
type: import("vue").PropType<string>;
|
|
3587
|
+
default: string;
|
|
3588
|
+
};
|
|
3589
|
+
optionImageKey: {
|
|
3590
|
+
type: import("vue").PropType<string>;
|
|
3591
|
+
default: string;
|
|
3592
|
+
};
|
|
3593
|
+
optionIconType: {
|
|
3594
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
3595
|
+
default: any;
|
|
3596
|
+
};
|
|
3585
3597
|
optionFlagKey: {
|
|
3586
3598
|
type: import("vue").PropType<string>;
|
|
3587
3599
|
default: string;
|
|
@@ -3628,7 +3640,7 @@ declare const DropdownTypes: () => (({
|
|
|
3628
3640
|
default: string;
|
|
3629
3641
|
};
|
|
3630
3642
|
loadMoreFn: {
|
|
3631
|
-
type: import("vue").PropType<() => Promise<
|
|
3643
|
+
type: import("vue").PropType<() => Promise<any[]>>;
|
|
3632
3644
|
default: any;
|
|
3633
3645
|
};
|
|
3634
3646
|
fetchDataDebounceTime: {
|
|
@@ -3670,6 +3682,18 @@ declare const DropdownTypes: () => (({
|
|
|
3670
3682
|
required: true;
|
|
3671
3683
|
default: string;
|
|
3672
3684
|
};
|
|
3685
|
+
optionIconKey: {
|
|
3686
|
+
type: import("vue").PropType<string>;
|
|
3687
|
+
default: string;
|
|
3688
|
+
};
|
|
3689
|
+
optionImageKey: {
|
|
3690
|
+
type: import("vue").PropType<string>;
|
|
3691
|
+
default: string;
|
|
3692
|
+
};
|
|
3693
|
+
optionIconType: {
|
|
3694
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
3695
|
+
default: any;
|
|
3696
|
+
};
|
|
3673
3697
|
optionFlagKey: {
|
|
3674
3698
|
type: import("vue").PropType<string>;
|
|
3675
3699
|
default: string;
|
|
@@ -3716,7 +3740,7 @@ declare const DropdownTypes: () => (({
|
|
|
3716
3740
|
default: string;
|
|
3717
3741
|
};
|
|
3718
3742
|
loadMoreFn: {
|
|
3719
|
-
type: import("vue").PropType<() => Promise<
|
|
3743
|
+
type: import("vue").PropType<() => Promise<any[]>>;
|
|
3720
3744
|
default: any;
|
|
3721
3745
|
};
|
|
3722
3746
|
fetchDataDebounceTime: {
|
|
@@ -3741,12 +3765,15 @@ declare const DropdownTypes: () => (({
|
|
|
3741
3765
|
isOpen: boolean;
|
|
3742
3766
|
infiniteLoading: boolean;
|
|
3743
3767
|
optionNameKey: string;
|
|
3768
|
+
optionIconKey: string;
|
|
3769
|
+
optionImageKey: string;
|
|
3770
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
3744
3771
|
optionFlagKey: string;
|
|
3745
3772
|
groupedOptions: boolean;
|
|
3746
3773
|
comparingKey: string;
|
|
3747
3774
|
minCharsToStart: number;
|
|
3748
3775
|
searchQuery: string;
|
|
3749
|
-
loadMoreFn: () => Promise<
|
|
3776
|
+
loadMoreFn: () => Promise<any[]>;
|
|
3750
3777
|
fetchDataDebounceTime: number;
|
|
3751
3778
|
autoFocusSearch: boolean;
|
|
3752
3779
|
}>)[];
|
package/index.d.ts
CHANGED
|
@@ -22748,6 +22748,18 @@ declare const _default: {
|
|
|
22748
22748
|
required: true;
|
|
22749
22749
|
default: string;
|
|
22750
22750
|
};
|
|
22751
|
+
optionIconKey: {
|
|
22752
|
+
type: import("vue").PropType<string>;
|
|
22753
|
+
default: string;
|
|
22754
|
+
};
|
|
22755
|
+
optionImageKey: {
|
|
22756
|
+
type: import("vue").PropType<string>;
|
|
22757
|
+
default: string;
|
|
22758
|
+
};
|
|
22759
|
+
optionIconType: {
|
|
22760
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
22761
|
+
default: any;
|
|
22762
|
+
};
|
|
22751
22763
|
optionFlagKey: {
|
|
22752
22764
|
type: import("vue").PropType<string>;
|
|
22753
22765
|
default: string;
|
|
@@ -22794,7 +22806,7 @@ declare const _default: {
|
|
|
22794
22806
|
default: string;
|
|
22795
22807
|
};
|
|
22796
22808
|
loadMoreFn: {
|
|
22797
|
-
type: import("vue").PropType<() => Promise<
|
|
22809
|
+
type: import("vue").PropType<() => Promise<any[]>>;
|
|
22798
22810
|
default: any;
|
|
22799
22811
|
};
|
|
22800
22812
|
fetchDataDebounceTime: {
|
|
@@ -22836,6 +22848,18 @@ declare const _default: {
|
|
|
22836
22848
|
required: true;
|
|
22837
22849
|
default: string;
|
|
22838
22850
|
};
|
|
22851
|
+
optionIconKey: {
|
|
22852
|
+
type: import("vue").PropType<string>;
|
|
22853
|
+
default: string;
|
|
22854
|
+
};
|
|
22855
|
+
optionImageKey: {
|
|
22856
|
+
type: import("vue").PropType<string>;
|
|
22857
|
+
default: string;
|
|
22858
|
+
};
|
|
22859
|
+
optionIconType: {
|
|
22860
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
22861
|
+
default: any;
|
|
22862
|
+
};
|
|
22839
22863
|
optionFlagKey: {
|
|
22840
22864
|
type: import("vue").PropType<string>;
|
|
22841
22865
|
default: string;
|
|
@@ -22882,7 +22906,7 @@ declare const _default: {
|
|
|
22882
22906
|
default: string;
|
|
22883
22907
|
};
|
|
22884
22908
|
loadMoreFn: {
|
|
22885
|
-
type: import("vue").PropType<() => Promise<
|
|
22909
|
+
type: import("vue").PropType<() => Promise<any[]>>;
|
|
22886
22910
|
default: any;
|
|
22887
22911
|
};
|
|
22888
22912
|
fetchDataDebounceTime: {
|
|
@@ -22907,12 +22931,15 @@ declare const _default: {
|
|
|
22907
22931
|
isOpen: boolean;
|
|
22908
22932
|
infiniteLoading: boolean;
|
|
22909
22933
|
optionNameKey: string;
|
|
22934
|
+
optionIconKey: string;
|
|
22935
|
+
optionImageKey: string;
|
|
22936
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
22910
22937
|
optionFlagKey: string;
|
|
22911
22938
|
groupedOptions: boolean;
|
|
22912
22939
|
comparingKey: string;
|
|
22913
22940
|
minCharsToStart: number;
|
|
22914
22941
|
searchQuery: string;
|
|
22915
|
-
loadMoreFn: () => Promise<
|
|
22942
|
+
loadMoreFn: () => Promise<any[]>;
|
|
22916
22943
|
fetchDataDebounceTime: number;
|
|
22917
22944
|
autoFocusSearch: boolean;
|
|
22918
22945
|
}>)[];
|
|
@@ -23888,6 +23915,18 @@ declare const _default: {
|
|
|
23888
23915
|
required: true;
|
|
23889
23916
|
default: string;
|
|
23890
23917
|
};
|
|
23918
|
+
optionIconKey: {
|
|
23919
|
+
type: import("vue").PropType<string>;
|
|
23920
|
+
default: string;
|
|
23921
|
+
};
|
|
23922
|
+
optionImageKey: {
|
|
23923
|
+
type: import("vue").PropType<string>;
|
|
23924
|
+
default: string;
|
|
23925
|
+
};
|
|
23926
|
+
optionIconType: {
|
|
23927
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
23928
|
+
default: any;
|
|
23929
|
+
};
|
|
23891
23930
|
optionFlagKey: {
|
|
23892
23931
|
type: import("vue").PropType<string>;
|
|
23893
23932
|
default: string;
|
|
@@ -23934,7 +23973,7 @@ declare const _default: {
|
|
|
23934
23973
|
default: string;
|
|
23935
23974
|
};
|
|
23936
23975
|
loadMoreFn: {
|
|
23937
|
-
type: import("vue").PropType<() => Promise<
|
|
23976
|
+
type: import("vue").PropType<() => Promise<any[]>>;
|
|
23938
23977
|
default: any;
|
|
23939
23978
|
};
|
|
23940
23979
|
fetchDataDebounceTime: {
|
|
@@ -23976,6 +24015,18 @@ declare const _default: {
|
|
|
23976
24015
|
required: true;
|
|
23977
24016
|
default: string;
|
|
23978
24017
|
};
|
|
24018
|
+
optionIconKey: {
|
|
24019
|
+
type: import("vue").PropType<string>;
|
|
24020
|
+
default: string;
|
|
24021
|
+
};
|
|
24022
|
+
optionImageKey: {
|
|
24023
|
+
type: import("vue").PropType<string>;
|
|
24024
|
+
default: string;
|
|
24025
|
+
};
|
|
24026
|
+
optionIconType: {
|
|
24027
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
24028
|
+
default: any;
|
|
24029
|
+
};
|
|
23979
24030
|
optionFlagKey: {
|
|
23980
24031
|
type: import("vue").PropType<string>;
|
|
23981
24032
|
default: string;
|
|
@@ -24022,7 +24073,7 @@ declare const _default: {
|
|
|
24022
24073
|
default: string;
|
|
24023
24074
|
};
|
|
24024
24075
|
loadMoreFn: {
|
|
24025
|
-
type: import("vue").PropType<() => Promise<
|
|
24076
|
+
type: import("vue").PropType<() => Promise<any[]>>;
|
|
24026
24077
|
default: any;
|
|
24027
24078
|
};
|
|
24028
24079
|
fetchDataDebounceTime: {
|
|
@@ -24047,12 +24098,15 @@ declare const _default: {
|
|
|
24047
24098
|
isOpen: boolean;
|
|
24048
24099
|
infiniteLoading: boolean;
|
|
24049
24100
|
optionNameKey: string;
|
|
24101
|
+
optionIconKey: string;
|
|
24102
|
+
optionImageKey: string;
|
|
24103
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
24050
24104
|
optionFlagKey: string;
|
|
24051
24105
|
groupedOptions: boolean;
|
|
24052
24106
|
comparingKey: string;
|
|
24053
24107
|
minCharsToStart: number;
|
|
24054
24108
|
searchQuery: string;
|
|
24055
|
-
loadMoreFn: () => Promise<
|
|
24109
|
+
loadMoreFn: () => Promise<any[]>;
|
|
24056
24110
|
fetchDataDebounceTime: number;
|
|
24057
24111
|
autoFocusSearch: boolean;
|
|
24058
24112
|
}>;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
|
|
2
2
|
import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as po } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.custom-list-area[data-v-8f96cf5a]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-8f96cf5a]{width:100%}.contain-accept[data-v-8f96cf5a]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-8f96cf5a]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-8f96cf5a]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|