@ironsource/shared-ui 2.1.11-test.91 → 2.1.11-test.92
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_2ba23450_lang.css +1 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +2 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +47 -42
- package/components/dropdown/v4/index.d.ts +2 -0
- package/index.d.ts +4 -0
- package/index.js +1 -1
- package/package.json +3 -3
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-list-area[data-v-2ba23450]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-2ba23450]{width:100%}.contain-accept[data-v-2ba23450]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-2ba23450]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-2ba23450]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|
|
@@ -46,6 +46,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
46
|
"update:selectedCondition": (value: SelectedCondition) => void;
|
|
47
47
|
"update:appliedSelections": (value: unknown) => void;
|
|
48
48
|
clear: () => void;
|
|
49
|
+
closed: () => void;
|
|
49
50
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
50
51
|
selectedCondition: SelectedCondition | null;
|
|
51
52
|
appliedSelections: unknown | unknown[];
|
|
@@ -86,6 +87,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
86
87
|
optionIconType: any;
|
|
87
88
|
}>>> & {
|
|
88
89
|
onClear?: () => any;
|
|
90
|
+
onClosed?: () => any;
|
|
89
91
|
"onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
|
|
90
92
|
"onUpdate:appliedSelections"?: (value: unknown) => any;
|
|
91
93
|
}, {
|
|
@@ -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_2ba23450_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2ba23450"]]);
|
|
5
5
|
export {
|
|
6
6
|
n as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css"; import { defineComponent as j, computed as k, ref as s, watch as O, onMounted as W, openBlock as D, createBlock as q, unref as d, withCtx as f, createVNode as g, mergeProps as G, createElementVNode as H, isRef as J, normalizeProps as X, guardReactiveProps as Y, createElementBlock as Z, createTextVNode as _, toDisplayString as ee, createCommentVNode as le } from "vue";
|
|
2
2
|
import N from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import oe from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import ae 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
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
const
|
|
12
|
+
import te from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import ne from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { useDebounceFn as ie } from "@vueuse/core";
|
|
15
|
+
const ue = { class: "conditional-container" }, re = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
|
-
},
|
|
18
|
+
}, we = /* @__PURE__ */ j({
|
|
19
19
|
__name: "ConditionalDropdown",
|
|
20
20
|
props: {
|
|
21
21
|
selectedCondition: null,
|
|
@@ -39,21 +39,21 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
39
39
|
optionImageKey: { default: "" },
|
|
40
40
|
optionIconType: { default: null }
|
|
41
41
|
},
|
|
42
|
-
emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
|
|
43
|
-
setup(r, { emit:
|
|
44
|
-
const e = r,
|
|
42
|
+
emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
|
|
43
|
+
setup(r, { emit: h }) {
|
|
44
|
+
const e = r, S = k({
|
|
45
45
|
get: () => e.appliedSelections,
|
|
46
46
|
set: (l) => {
|
|
47
|
-
|
|
47
|
+
h("update:appliedSelections", l);
|
|
48
48
|
}
|
|
49
|
-
}), n =
|
|
49
|
+
}), n = k({
|
|
50
50
|
get: () => e.selectedCondition || e.conditionalOptions[0],
|
|
51
51
|
set: (l) => {
|
|
52
|
-
|
|
52
|
+
h("update:selectedCondition", l);
|
|
53
53
|
}
|
|
54
54
|
}), w = s(null), c = s(!0), a = s([]), u = s(
|
|
55
55
|
Array.isArray(e.appliedSelections) ? e.appliedSelections : [e.appliedSelections]
|
|
56
|
-
), K = s(!0), p = s(!1),
|
|
56
|
+
), K = s(!0), p = s(!1), b = s(!1), i = s(e.searchQuery), L = s(""), m = s(e.label), T = s([]), F = k(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), U = k(() => {
|
|
57
57
|
const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
|
|
58
58
|
if (e.groupedOptions) {
|
|
59
59
|
let o = 0;
|
|
@@ -69,7 +69,7 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
69
69
|
);
|
|
70
70
|
return t.forEach((v) => {
|
|
71
71
|
y.find(
|
|
72
|
-
(
|
|
72
|
+
($) => $[e.comparingKey] === v[e.comparingKey]
|
|
73
73
|
) && o.push(v[e.comparingKey]);
|
|
74
74
|
}), y.filter(
|
|
75
75
|
(v) => !o.includes(v[e.comparingKey])
|
|
@@ -90,16 +90,16 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
90
90
|
}, M = async () => {
|
|
91
91
|
if (e.infiniteLoading)
|
|
92
92
|
try {
|
|
93
|
-
|
|
93
|
+
b.value = !0;
|
|
94
94
|
const l = await e.loadMoreFn();
|
|
95
|
-
|
|
95
|
+
b.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
|
|
96
96
|
} catch (l) {
|
|
97
|
-
|
|
97
|
+
b.value = !1, console.error("Error fetching data:", l);
|
|
98
98
|
}
|
|
99
|
-
}, E =
|
|
99
|
+
}, E = ie(
|
|
100
100
|
I,
|
|
101
101
|
e.fetchDataDebounceTime
|
|
102
|
-
),
|
|
102
|
+
), C = (l) => {
|
|
103
103
|
l.length >= e.minCharsToStart ? (E(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
|
|
104
104
|
}, V = () => {
|
|
105
105
|
i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
|
|
@@ -120,12 +120,12 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
120
120
|
c.value && u.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
|
|
121
121
|
};
|
|
122
122
|
O(i, () => {
|
|
123
|
-
|
|
123
|
+
C(i.value);
|
|
124
124
|
}), O([n, a], () => {
|
|
125
125
|
V();
|
|
126
126
|
});
|
|
127
127
|
const x = () => {
|
|
128
|
-
c.value && u.value.length === 0 ? (n.value = null,
|
|
128
|
+
c.value && u.value.length === 0 ? (n.value = null, S.value = [], n.value = null) : (L.value = i.value, S.value = c.value ? [...u.value] : { ...u.value }, K.value = c.value), A();
|
|
129
129
|
};
|
|
130
130
|
O(n, (l, t) => {
|
|
131
131
|
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (u.value = e.appliedSelections), setTimeout(() => {
|
|
@@ -137,13 +137,17 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
137
137
|
const P = (l) => {
|
|
138
138
|
T.value = l;
|
|
139
139
|
}, Q = () => {
|
|
140
|
-
u.value = [],
|
|
140
|
+
u.value = [], S.value = [], n.value = null, m.value = e.label, i.value = "", h("clear");
|
|
141
141
|
}, R = (l) => {
|
|
142
|
-
l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value &&
|
|
142
|
+
l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value && C(i.value));
|
|
143
143
|
};
|
|
144
|
-
|
|
145
|
-
(e.searchQuery || !e.infiniteLoading) &&
|
|
146
|
-
})
|
|
144
|
+
W(() => {
|
|
145
|
+
(e.searchQuery || !e.infiniteLoading) && C(e.searchQuery), A();
|
|
146
|
+
});
|
|
147
|
+
const z = () => {
|
|
148
|
+
h("closed");
|
|
149
|
+
};
|
|
150
|
+
return (l, t) => (D(), q(d(N), {
|
|
147
151
|
ref_key: "dropdownRef",
|
|
148
152
|
ref: w,
|
|
149
153
|
selected: u.value,
|
|
@@ -160,7 +164,7 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
160
164
|
"custom-number-of-displayed-options": d(U),
|
|
161
165
|
"options-list-width": "330px",
|
|
162
166
|
loading: p.value,
|
|
163
|
-
"load-more-loading":
|
|
167
|
+
"load-more-loading": b.value,
|
|
164
168
|
"comparing-key": r.comparingKey,
|
|
165
169
|
"is-open": r.isOpen,
|
|
166
170
|
"infinite-loading": r.infiniteLoading,
|
|
@@ -171,15 +175,16 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
171
175
|
"option-icon-key": r.optionIconKey,
|
|
172
176
|
"option-icon-type": r.optionIconType,
|
|
173
177
|
"onUpdate:isOpen": R,
|
|
174
|
-
onOnsearch:
|
|
178
|
+
onOnsearch: C,
|
|
175
179
|
onApply: x,
|
|
176
180
|
onLoadMore: M,
|
|
177
|
-
onUnsavedSelectionUpdate: P
|
|
181
|
+
onUnsavedSelectionUpdate: P,
|
|
182
|
+
onClosed: z
|
|
178
183
|
}, {
|
|
179
184
|
"dropdown-trigger": f(({ defaultTriggerProps: o }) => [
|
|
180
|
-
g(d(
|
|
185
|
+
g(d(oe), G(o, {
|
|
181
186
|
label: m.value,
|
|
182
|
-
"selected-option": d(
|
|
187
|
+
"selected-option": d(S),
|
|
183
188
|
multi: K.value,
|
|
184
189
|
"cancel-all-selected-display": "",
|
|
185
190
|
"display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
|
|
@@ -187,10 +192,10 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
187
192
|
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
|
|
188
193
|
]),
|
|
189
194
|
"dropdown-conditions": f(() => [
|
|
190
|
-
|
|
195
|
+
H("div", ue, [
|
|
191
196
|
g(d(N), {
|
|
192
197
|
selected: d(n),
|
|
193
|
-
"onUpdate:selected": t[0] || (t[0] = (o) =>
|
|
198
|
+
"onUpdate:selected": t[0] || (t[0] = (o) => J(n) ? n.value = o : null),
|
|
194
199
|
options: r.conditionalOptions,
|
|
195
200
|
"option-name-key": "label",
|
|
196
201
|
"display-value": (o) => o?.label,
|
|
@@ -198,14 +203,14 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
198
203
|
size: "small"
|
|
199
204
|
}, {
|
|
200
205
|
"dropdown-trigger": f(({ buttonTriggerProps: o }) => [
|
|
201
|
-
g(d(
|
|
206
|
+
g(d(ae), X(Y(o)), null, 16)
|
|
202
207
|
]),
|
|
203
208
|
_: 1
|
|
204
209
|
}, 8, ["selected", "options", "display-value"])
|
|
205
210
|
])
|
|
206
211
|
]),
|
|
207
212
|
"inline-search": f(() => [
|
|
208
|
-
g(d(
|
|
213
|
+
g(d(te), {
|
|
209
214
|
modelValue: i.value,
|
|
210
215
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
|
|
211
216
|
class: "inline-search",
|
|
@@ -216,19 +221,19 @@ const ie = { class: "conditional-container" }, ue = {
|
|
|
216
221
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
217
222
|
]),
|
|
218
223
|
"custom-list-area": f(() => [
|
|
219
|
-
!a.value.length && !p.value ? (D(),
|
|
220
|
-
g(
|
|
224
|
+
!a.value.length && !p.value ? (D(), Z("div", re, [
|
|
225
|
+
g(ne, { variant: "body1" }, {
|
|
221
226
|
default: f(() => [
|
|
222
|
-
|
|
227
|
+
_(ee(d(F)), 1)
|
|
223
228
|
]),
|
|
224
229
|
_: 1
|
|
225
230
|
})
|
|
226
|
-
])) :
|
|
231
|
+
])) : le("", !0)
|
|
227
232
|
]),
|
|
228
233
|
_: 1
|
|
229
234
|
}, 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"]));
|
|
230
235
|
}
|
|
231
236
|
});
|
|
232
237
|
export {
|
|
233
|
-
|
|
238
|
+
we as default
|
|
234
239
|
};
|
|
@@ -3659,6 +3659,7 @@ declare const DropdownTypes: () => (({
|
|
|
3659
3659
|
}) => void;
|
|
3660
3660
|
"update:appliedSelections": (value: unknown) => void;
|
|
3661
3661
|
clear: () => void;
|
|
3662
|
+
closed: () => void;
|
|
3662
3663
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3663
3664
|
label: {
|
|
3664
3665
|
type: import("vue").PropType<string>;
|
|
@@ -3753,6 +3754,7 @@ declare const DropdownTypes: () => (({
|
|
|
3753
3754
|
};
|
|
3754
3755
|
}>> & {
|
|
3755
3756
|
onClear?: () => any;
|
|
3757
|
+
onClosed?: () => any;
|
|
3756
3758
|
"onUpdate:selectedCondition"?: (value: {
|
|
3757
3759
|
label: string;
|
|
3758
3760
|
value: string;
|
package/index.d.ts
CHANGED
|
@@ -22825,6 +22825,7 @@ declare const _default: {
|
|
|
22825
22825
|
}) => void;
|
|
22826
22826
|
"update:appliedSelections": (value: unknown) => void;
|
|
22827
22827
|
clear: () => void;
|
|
22828
|
+
closed: () => void;
|
|
22828
22829
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22829
22830
|
label: {
|
|
22830
22831
|
type: import("vue").PropType<string>;
|
|
@@ -22919,6 +22920,7 @@ declare const _default: {
|
|
|
22919
22920
|
};
|
|
22920
22921
|
}>> & {
|
|
22921
22922
|
onClear?: () => any;
|
|
22923
|
+
onClosed?: () => any;
|
|
22922
22924
|
"onUpdate:selectedCondition"?: (value: {
|
|
22923
22925
|
label: string;
|
|
22924
22926
|
value: string;
|
|
@@ -23992,6 +23994,7 @@ declare const _default: {
|
|
|
23992
23994
|
}) => void;
|
|
23993
23995
|
"update:appliedSelections": (value: unknown) => void;
|
|
23994
23996
|
clear: () => void;
|
|
23997
|
+
closed: () => void;
|
|
23995
23998
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23996
23999
|
label: {
|
|
23997
24000
|
type: import("vue").PropType<string>;
|
|
@@ -24086,6 +24089,7 @@ declare const _default: {
|
|
|
24086
24089
|
};
|
|
24087
24090
|
}>> & {
|
|
24088
24091
|
onClear?: () => any;
|
|
24092
|
+
onClosed?: () => any;
|
|
24089
24093
|
"onUpdate:selectedCondition"?: (value: {
|
|
24090
24094
|
label: string;
|
|
24091
24095
|
value: string;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironsource/shared-ui",
|
|
3
|
-
"version": "2.1.11-test.
|
|
3
|
+
"version": "2.1.11-test.92",
|
|
4
4
|
"engines": {
|
|
5
5
|
"npm": ">=7.0.0",
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -410,10 +410,10 @@
|
|
|
410
410
|
"./components/typography/Heading.vue.d.ts"
|
|
411
411
|
],
|
|
412
412
|
"popover": [
|
|
413
|
-
"./components/popover/v3/index.d.ts"
|
|
413
|
+
"./components/popover/v3/index.vue.d.ts"
|
|
414
414
|
],
|
|
415
415
|
"popover/v4": [
|
|
416
|
-
"./components/popover/v4/index.d.ts"
|
|
416
|
+
"./components/popover/v4/index.vue.d.ts"
|
|
417
417
|
],
|
|
418
418
|
"input": [
|
|
419
419
|
"./components/input/v3/Input.vue.d.ts"
|
|
@@ -1 +0,0 @@
|
|
|
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)}
|