@ironsource/shared-ui 2.1.12-test.84 → 2.1.12-test.86
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_f5204c04_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
- package/components/dropdown/common/Dropdown.common.js +82 -78
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +119 -110
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +41 -39
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -5
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +3 -3
- package/components/dropdown/v4/index.d.ts +40 -21
- package/index.d.ts +80 -42
- package/index.js +1 -1
- package/mocks/optionsWithIcons.d.ts +1 -0
- package/package.json +1 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_dd86e387_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_8e88292f_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as x, watch as Te, toRaw as S, openBlock as d, createElementBlock as r, mergeProps as m, unref as t, renderSlot as y, createElementVNode as f, createVNode as a, withCtx as u, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as T, createCommentVNode as s, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
|
|
2
2
|
import N from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
@@ -99,6 +99,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
99
99
|
groupedOptions: { type: Boolean, default: !1 },
|
|
100
100
|
comparingKey: { default: null },
|
|
101
101
|
customNumberOfDisplayedOptions: { default: null },
|
|
102
|
+
optionTooltipPosition: { default: "right" },
|
|
102
103
|
theme: { default: "light-theme-v4" },
|
|
103
104
|
fullWidth: { type: Boolean, default: !0 },
|
|
104
105
|
optionsListWidth: { default: null },
|
|
@@ -129,12 +130,12 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
129
130
|
allSelected: $,
|
|
130
131
|
allSelectedApplied: A,
|
|
131
132
|
isIndeterminate: ne,
|
|
132
|
-
onSelectAll:
|
|
133
|
+
onSelectAll: ie,
|
|
133
134
|
virtualOptions: M,
|
|
134
135
|
isSelected: O,
|
|
135
136
|
selectedOption: h,
|
|
136
137
|
selectedOptionPrevious: L,
|
|
137
|
-
selectedValue:
|
|
138
|
+
selectedValue: le,
|
|
138
139
|
onSelect: R,
|
|
139
140
|
activeIndex: z,
|
|
140
141
|
onCancel: ae,
|
|
@@ -162,48 +163,48 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
162
163
|
const Y = () => {
|
|
163
164
|
v();
|
|
164
165
|
}, X = x(() => {
|
|
165
|
-
const
|
|
166
|
+
const i = {
|
|
166
167
|
tooltipMessage: null,
|
|
167
168
|
selections: []
|
|
168
169
|
};
|
|
169
170
|
if (o.multi && o.comparingKey) {
|
|
170
|
-
const
|
|
171
|
+
const l = S(h.value);
|
|
171
172
|
if (o.minSelections || o.maxSelections) {
|
|
172
|
-
if (Array.isArray(
|
|
173
|
-
return
|
|
173
|
+
if (Array.isArray(l) && l.length <= o.minSelections)
|
|
174
|
+
return i.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, i.selections = l.map(
|
|
174
175
|
(n) => n[o.comparingKey]
|
|
175
|
-
),
|
|
176
|
-
if (o.maxSelections && Array.isArray(
|
|
177
|
-
const n =
|
|
176
|
+
), i;
|
|
177
|
+
if (o.maxSelections && Array.isArray(l) && l.length >= o.maxSelections) {
|
|
178
|
+
const n = l.map(
|
|
178
179
|
(b) => b[o.comparingKey]
|
|
179
180
|
), k = o.groupedOptions ? pe(o.options) : o.options;
|
|
180
|
-
return
|
|
181
|
+
return i.tooltipMessage = `You can only select up to ${o.maxSelections} items`, i.selections = k.map((b) => {
|
|
181
182
|
if (!n.includes(b[o.comparingKey]))
|
|
182
183
|
return b[o.comparingKey];
|
|
183
|
-
}),
|
|
184
|
+
}), i;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
return
|
|
188
|
-
}), he = (
|
|
188
|
+
return i.tooltipMessage = null, i.selections = [], i;
|
|
189
|
+
}), he = (i) => {
|
|
189
190
|
if ((o.minSelections || o.maxSelections) && o.comparingKey)
|
|
190
191
|
return X.value.selections.includes(
|
|
191
|
-
|
|
192
|
+
i[o.comparingKey]
|
|
192
193
|
);
|
|
193
|
-
}, E = (
|
|
194
|
+
}, E = (i) => i[o.disabledOptionKey] || he(i);
|
|
194
195
|
return Z({
|
|
195
196
|
selectItem: R,
|
|
196
197
|
scrollTo: se
|
|
197
|
-
}), (
|
|
198
|
+
}), (i, l) => (d(), r("div", m({
|
|
198
199
|
ref_key: "el",
|
|
199
200
|
ref: ye,
|
|
200
201
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
201
202
|
tabindex: e.disabled ? -1 : 0
|
|
202
203
|
}, t(g)[t(p).WRAPPER], {
|
|
203
|
-
onKeydown:
|
|
204
|
+
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
204
205
|
(...n) => t(I) && t(I)(...n))
|
|
205
206
|
}), [
|
|
206
|
-
y(
|
|
207
|
+
y(i.$slots, "label", {}, void 0, !0),
|
|
207
208
|
f("div", Me, [
|
|
208
209
|
a(t(Be), m({
|
|
209
210
|
theme: e.theme,
|
|
@@ -239,11 +240,11 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
239
240
|
t(c) ? (d(), r("div", {
|
|
240
241
|
key: 0,
|
|
241
242
|
class: B(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
242
|
-
onKeydown:
|
|
243
|
+
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
243
244
|
(...n) => t(I) && t(I)(...n))
|
|
244
245
|
}, [
|
|
245
246
|
t(c) && e.inlineSearch ? (d(), r("div", Ge, [
|
|
246
|
-
e.withConditions ? y(
|
|
247
|
+
e.withConditions ? y(i.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
247
248
|
f("div", He, [
|
|
248
249
|
a(t(Q), { variant: "body2" }, {
|
|
249
250
|
default: u(() => [
|
|
@@ -253,11 +254,11 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
253
254
|
})
|
|
254
255
|
])
|
|
255
256
|
], !0) : s("", !0),
|
|
256
|
-
y(
|
|
257
|
+
y(i.$slots, "inline-search", {}, () => [
|
|
257
258
|
a(t(xe), {
|
|
258
259
|
modelValue: t(C),
|
|
259
260
|
"onUpdate:modelValue": [
|
|
260
|
-
|
|
261
|
+
l[4] || (l[4] = (n) => Ie(C) ? C.value = n : null),
|
|
261
262
|
e.onClearSearch
|
|
262
263
|
],
|
|
263
264
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -269,7 +270,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
269
270
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
270
271
|
], !0)
|
|
271
272
|
])) : s("", !0),
|
|
272
|
-
y(
|
|
273
|
+
y(i.$slots, "input-list", { open: t(c) }, void 0, !0),
|
|
273
274
|
f("div", m({
|
|
274
275
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
275
276
|
style: { height: `${t(ee)}rem` }
|
|
@@ -277,7 +278,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
277
278
|
...t(_),
|
|
278
279
|
...t(g)[t(p).LIST_CONTAINER]
|
|
279
280
|
}), [
|
|
280
|
-
y(
|
|
281
|
+
y(i.$slots, "custom-list-area", {}, void 0, !0),
|
|
281
282
|
f("ul", m(t(te), {
|
|
282
283
|
role: "listbox",
|
|
283
284
|
class: ["list", {
|
|
@@ -293,7 +294,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
293
294
|
_: 1
|
|
294
295
|
}, 16)
|
|
295
296
|
])) : s("", !0),
|
|
296
|
-
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? y(
|
|
297
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? y(i.$slots, "select-all", { key: 1 }, () => [
|
|
297
298
|
f("li", null, [
|
|
298
299
|
a(t(J), m(
|
|
299
300
|
{
|
|
@@ -306,7 +307,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
306
307
|
},
|
|
307
308
|
t(g)[t(p).SELECT_ALL],
|
|
308
309
|
{
|
|
309
|
-
onClick:
|
|
310
|
+
onClick: l[5] || (l[5] = j((n) => t(ie)(), ["stop"]))
|
|
310
311
|
}
|
|
311
312
|
), {
|
|
312
313
|
default: u(() => [
|
|
@@ -325,14 +326,14 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
325
326
|
["stop"]
|
|
326
327
|
)
|
|
327
328
|
}, [
|
|
328
|
-
e.groupedOptions && t(fe)(n) ? y(
|
|
329
|
+
e.groupedOptions && t(fe)(n) ? y(i.$slots, "group-option", { key: 0 }, () => [
|
|
329
330
|
a(Pe, null, {
|
|
330
331
|
default: u(() => [
|
|
331
332
|
T(q(e.displayValue(n) || n[e.optionNameKey]), 1)
|
|
332
333
|
]),
|
|
333
334
|
_: 2
|
|
334
335
|
}, 1024)
|
|
335
|
-
], !0) : y(
|
|
336
|
+
], !0) : y(i.$slots, "default", {
|
|
336
337
|
key: 1,
|
|
337
338
|
option: n,
|
|
338
339
|
index: k,
|
|
@@ -356,17 +357,18 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
356
357
|
"warning-key": e.optionWarningKey,
|
|
357
358
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
358
359
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
360
|
+
"tooltip-placement": e.optionTooltipPosition,
|
|
359
361
|
"is-multi": e.multi,
|
|
360
362
|
"min-max-selection-tooltip-message": t(X)?.tooltipMessage
|
|
361
363
|
}, Ce({ _: 2 }, [
|
|
362
|
-
|
|
364
|
+
i.$slots["option-end"] ? {
|
|
363
365
|
name: "option-end",
|
|
364
366
|
fn: u(({ option: b }) => [
|
|
365
|
-
y(
|
|
367
|
+
y(i.$slots, "option-end", { option: b }, void 0, !0)
|
|
366
368
|
]),
|
|
367
369
|
key: "0"
|
|
368
370
|
} : void 0
|
|
369
|
-
]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "is-multi", "min-max-selection-tooltip-message"])
|
|
371
|
+
]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
|
|
370
372
|
], !0)
|
|
371
373
|
], 8, Ye))), 128)) : s("", !0),
|
|
372
374
|
e.loading || e.loadMoreLoading ? (d(), r("li", Xe, [
|
|
@@ -390,7 +392,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
390
392
|
},
|
|
391
393
|
t(g)[t(p).ACTION_CLEAR_ALL],
|
|
392
394
|
{
|
|
393
|
-
onClick:
|
|
395
|
+
onClick: l[6] || (l[6] = () => t(G)(!1))
|
|
394
396
|
}
|
|
395
397
|
), {
|
|
396
398
|
default: u(() => [
|
|
@@ -448,11 +450,11 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
448
450
|
ref_key: "buttonRef",
|
|
449
451
|
ref: W
|
|
450
452
|
}, [
|
|
451
|
-
y(
|
|
453
|
+
y(i.$slots, "dropdown-trigger", {
|
|
452
454
|
buttonTriggerProps: {
|
|
453
455
|
open: t(c),
|
|
454
456
|
disabled: e.disabled,
|
|
455
|
-
label: t(
|
|
457
|
+
label: t(le) || e.placeholder,
|
|
456
458
|
onClick: () => t(v)()
|
|
457
459
|
},
|
|
458
460
|
defaultTriggerProps: {
|
|
@@ -514,12 +516,12 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
514
516
|
"all-selected": t(A),
|
|
515
517
|
onKeydown: t(P),
|
|
516
518
|
onClick: Y,
|
|
517
|
-
onCopyToClipboard:
|
|
519
|
+
onCopyToClipboard: l[0] || (l[0] = (n) => V("copyToClipboard"))
|
|
518
520
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
519
521
|
])) : s("", !0),
|
|
520
522
|
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div", ze, [
|
|
521
523
|
a(t(Oe), {
|
|
522
|
-
onClick:
|
|
524
|
+
onClick: l[1] || (l[1] = (n) => t(v)())
|
|
523
525
|
})
|
|
524
526
|
])) : s("", !0),
|
|
525
527
|
e.predefinedTrigger === t(w).CHIP ? (d(), r("div", We, [
|
|
@@ -533,8 +535,8 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
533
535
|
multi: e.multi,
|
|
534
536
|
"all-selected": t(A),
|
|
535
537
|
"shown-values-count": e.triggerShownValuesCount,
|
|
536
|
-
onClick:
|
|
537
|
-
onClear:
|
|
538
|
+
onClick: l[2] || (l[2] = (n) => t(v)()),
|
|
539
|
+
onClear: l[3] || (l[3] = (n) => t(G)())
|
|
538
540
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
539
541
|
])) : s("", !0)
|
|
540
542
|
], !0)
|
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
14
|
endIconKey?: string;
|
|
15
15
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
16
16
|
endTextIconKey?: string;
|
|
17
|
-
|
|
17
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
18
18
|
treeMainOption?: boolean;
|
|
19
19
|
treeMainOptionExpanded?: boolean;
|
|
20
20
|
stopOptionClickEventPropagation?: boolean;
|
|
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
39
|
endIconKey: any;
|
|
40
40
|
endIconType: string;
|
|
41
41
|
endTextIconKey: any;
|
|
42
|
-
|
|
42
|
+
tooltipPlacement: string;
|
|
43
43
|
treeMainOption: boolean;
|
|
44
44
|
treeMainOptionExpanded: boolean;
|
|
45
45
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -67,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
67
|
endIconKey?: string;
|
|
68
68
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
69
69
|
endTextIconKey?: string;
|
|
70
|
-
|
|
70
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
71
71
|
treeMainOption?: boolean;
|
|
72
72
|
treeMainOptionExpanded?: boolean;
|
|
73
73
|
stopOptionClickEventPropagation?: boolean;
|
|
@@ -92,7 +92,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
92
|
endIconKey: any;
|
|
93
93
|
endIconType: string;
|
|
94
94
|
endTextIconKey: any;
|
|
95
|
-
|
|
95
|
+
tooltipPlacement: string;
|
|
96
96
|
treeMainOption: boolean;
|
|
97
97
|
treeMainOptionExpanded: boolean;
|
|
98
98
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -106,6 +106,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
106
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
107
107
|
}, {
|
|
108
108
|
option: any;
|
|
109
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
109
110
|
disabled: boolean;
|
|
110
111
|
active: boolean;
|
|
111
112
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -122,7 +123,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
122
123
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
123
124
|
endIconKey: string;
|
|
124
125
|
endTextIconKey: string;
|
|
125
|
-
toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
126
126
|
treeMainOption: boolean;
|
|
127
127
|
treeMainOptionExpanded: boolean;
|
|
128
128
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0287cebf"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css"; import { defineComponent as A, ref as w, watch as F, computed as L, openBlock as i, createBlock as g, unref as n, createSlots as N, withCtx as d, createElementVNode as u, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as r, createVNode as s, toDisplayString as m, createTextVNode as T, withModifiers as C, Fragment as j, renderList as R } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import D from "../../typography/Text.vue.js";
|
|
4
4
|
import q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -55,7 +55,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
55
55
|
endIconKey: { default: null },
|
|
56
56
|
endIconType: { default: "regular" },
|
|
57
57
|
endTextIconKey: { default: null },
|
|
58
|
-
|
|
58
|
+
tooltipPlacement: { default: "right" },
|
|
59
59
|
treeMainOption: { type: Boolean, default: !1 },
|
|
60
60
|
treeMainOptionExpanded: { type: Boolean, default: !1 },
|
|
61
61
|
stopOptionClickEventPropagation: { type: Boolean, default: !1 },
|
|
@@ -85,7 +85,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
85
85
|
return (t, c) => (i(), g(n(O), {
|
|
86
86
|
text: n(K),
|
|
87
87
|
"test-id": P(e.option),
|
|
88
|
-
placement: e.
|
|
88
|
+
placement: e.tooltipPlacement,
|
|
89
89
|
class: "tooltip-option"
|
|
90
90
|
}, N({
|
|
91
91
|
default: d(() => [
|
|
@@ -1078,6 +1078,7 @@ declare const DropdownTypes: () => (({
|
|
|
1078
1078
|
$data: {};
|
|
1079
1079
|
$props: Partial<{
|
|
1080
1080
|
option: any;
|
|
1081
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1081
1082
|
disabled: boolean;
|
|
1082
1083
|
active: boolean;
|
|
1083
1084
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -1094,7 +1095,6 @@ declare const DropdownTypes: () => (({
|
|
|
1094
1095
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1095
1096
|
endIconKey: string;
|
|
1096
1097
|
endTextIconKey: string;
|
|
1097
|
-
toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1098
1098
|
treeMainOption: boolean;
|
|
1099
1099
|
treeMainOptionExpanded: boolean;
|
|
1100
1100
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -1106,6 +1106,10 @@ declare const DropdownTypes: () => (({
|
|
|
1106
1106
|
type: import("vue").PropType<unknown>;
|
|
1107
1107
|
default: any;
|
|
1108
1108
|
};
|
|
1109
|
+
tooltipPlacement: {
|
|
1110
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1111
|
+
default: string;
|
|
1112
|
+
};
|
|
1109
1113
|
disabled: {
|
|
1110
1114
|
type: import("vue").PropType<boolean>;
|
|
1111
1115
|
default: boolean;
|
|
@@ -1170,10 +1174,6 @@ declare const DropdownTypes: () => (({
|
|
|
1170
1174
|
type: import("vue").PropType<string>;
|
|
1171
1175
|
default: any;
|
|
1172
1176
|
};
|
|
1173
|
-
toolTipPlacement: {
|
|
1174
|
-
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1175
|
-
default: string;
|
|
1176
|
-
};
|
|
1177
1177
|
treeMainOption: {
|
|
1178
1178
|
type: import("vue").PropType<boolean>;
|
|
1179
1179
|
default: boolean;
|
|
@@ -1203,7 +1203,7 @@ declare const DropdownTypes: () => (({
|
|
|
1203
1203
|
};
|
|
1204
1204
|
}>> & {
|
|
1205
1205
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
1206
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "option" | "disabled" | "active" | "endIconType" | "optionFlagKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "isIndeterminate" | "subtitle" | "selectAllOption" | "nameKey" | "imageKey" | "iconKey" | "warningKey" | "iconType" | "endIconKey" | "endTextIconKey" | "
|
|
1206
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "option" | "tooltipPlacement" | "disabled" | "active" | "endIconType" | "optionFlagKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "isIndeterminate" | "subtitle" | "selectAllOption" | "nameKey" | "imageKey" | "iconKey" | "warningKey" | "iconType" | "endIconKey" | "endTextIconKey" | "treeMainOption" | "treeMainOptionExpanded" | "stopOptionClickEventPropagation" | "treeChildShown" | "isMulti" | "minMaxSelectionTooltipMessage">;
|
|
1207
1207
|
$attrs: {
|
|
1208
1208
|
[x: string]: unknown;
|
|
1209
1209
|
};
|
|
@@ -1222,6 +1222,10 @@ declare const DropdownTypes: () => (({
|
|
|
1222
1222
|
type: import("vue").PropType<unknown>;
|
|
1223
1223
|
default: any;
|
|
1224
1224
|
};
|
|
1225
|
+
tooltipPlacement: {
|
|
1226
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1227
|
+
default: string;
|
|
1228
|
+
};
|
|
1225
1229
|
disabled: {
|
|
1226
1230
|
type: import("vue").PropType<boolean>;
|
|
1227
1231
|
default: boolean;
|
|
@@ -1286,10 +1290,6 @@ declare const DropdownTypes: () => (({
|
|
|
1286
1290
|
type: import("vue").PropType<string>;
|
|
1287
1291
|
default: any;
|
|
1288
1292
|
};
|
|
1289
|
-
toolTipPlacement: {
|
|
1290
|
-
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1291
|
-
default: string;
|
|
1292
|
-
};
|
|
1293
1293
|
treeMainOption: {
|
|
1294
1294
|
type: import("vue").PropType<boolean>;
|
|
1295
1295
|
default: boolean;
|
|
@@ -1323,6 +1323,7 @@ declare const DropdownTypes: () => (({
|
|
|
1323
1323
|
toggleTreeCollapse: (option: unknown) => void;
|
|
1324
1324
|
}, string, {
|
|
1325
1325
|
option: any;
|
|
1326
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1326
1327
|
disabled: boolean;
|
|
1327
1328
|
active: boolean;
|
|
1328
1329
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -1339,7 +1340,6 @@ declare const DropdownTypes: () => (({
|
|
|
1339
1340
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1340
1341
|
endIconKey: string;
|
|
1341
1342
|
endTextIconKey: string;
|
|
1342
|
-
toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1343
1343
|
treeMainOption: boolean;
|
|
1344
1344
|
treeMainOptionExpanded: boolean;
|
|
1345
1345
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -1371,6 +1371,10 @@ declare const DropdownTypes: () => (({
|
|
|
1371
1371
|
type: import("vue").PropType<unknown>;
|
|
1372
1372
|
default: any;
|
|
1373
1373
|
};
|
|
1374
|
+
tooltipPlacement: {
|
|
1375
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1376
|
+
default: string;
|
|
1377
|
+
};
|
|
1374
1378
|
disabled: {
|
|
1375
1379
|
type: import("vue").PropType<boolean>;
|
|
1376
1380
|
default: boolean;
|
|
@@ -1435,10 +1439,6 @@ declare const DropdownTypes: () => (({
|
|
|
1435
1439
|
type: import("vue").PropType<string>;
|
|
1436
1440
|
default: any;
|
|
1437
1441
|
};
|
|
1438
|
-
toolTipPlacement: {
|
|
1439
|
-
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1440
|
-
default: string;
|
|
1441
|
-
};
|
|
1442
1442
|
treeMainOption: {
|
|
1443
1443
|
type: import("vue").PropType<boolean>;
|
|
1444
1444
|
default: boolean;
|
|
@@ -1477,6 +1477,10 @@ declare const DropdownTypes: () => (({
|
|
|
1477
1477
|
type: import("vue").PropType<unknown>;
|
|
1478
1478
|
default: any;
|
|
1479
1479
|
};
|
|
1480
|
+
tooltipPlacement: {
|
|
1481
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1482
|
+
default: string;
|
|
1483
|
+
};
|
|
1480
1484
|
disabled: {
|
|
1481
1485
|
type: import("vue").PropType<boolean>;
|
|
1482
1486
|
default: boolean;
|
|
@@ -1541,10 +1545,6 @@ declare const DropdownTypes: () => (({
|
|
|
1541
1545
|
type: import("vue").PropType<string>;
|
|
1542
1546
|
default: any;
|
|
1543
1547
|
};
|
|
1544
|
-
toolTipPlacement: {
|
|
1545
|
-
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
1546
|
-
default: string;
|
|
1547
|
-
};
|
|
1548
1548
|
treeMainOption: {
|
|
1549
1549
|
type: import("vue").PropType<boolean>;
|
|
1550
1550
|
default: boolean;
|
|
@@ -1578,6 +1578,7 @@ declare const DropdownTypes: () => (({
|
|
|
1578
1578
|
toggleTreeCollapse: (option: unknown) => void;
|
|
1579
1579
|
}, string, {
|
|
1580
1580
|
option: any;
|
|
1581
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1581
1582
|
disabled: boolean;
|
|
1582
1583
|
active: boolean;
|
|
1583
1584
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -1594,7 +1595,6 @@ declare const DropdownTypes: () => (({
|
|
|
1594
1595
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
1595
1596
|
endIconKey: string;
|
|
1596
1597
|
endTextIconKey: string;
|
|
1597
|
-
toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1598
1598
|
treeMainOption: boolean;
|
|
1599
1599
|
treeMainOptionExpanded: boolean;
|
|
1600
1600
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -1838,6 +1838,7 @@ declare const DropdownTypes: () => (({
|
|
|
1838
1838
|
groupedOptions: boolean;
|
|
1839
1839
|
comparingKey: string;
|
|
1840
1840
|
customNumberOfDisplayedOptions: number;
|
|
1841
|
+
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
1841
1842
|
fullWidth: boolean;
|
|
1842
1843
|
optionsListWidth: string;
|
|
1843
1844
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
@@ -2086,6 +2087,10 @@ declare const DropdownTypes: () => (({
|
|
|
2086
2087
|
type: import("vue").PropType<number>;
|
|
2087
2088
|
default: any;
|
|
2088
2089
|
};
|
|
2090
|
+
optionTooltipPosition: {
|
|
2091
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
2092
|
+
default: string;
|
|
2093
|
+
};
|
|
2089
2094
|
fullWidth: {
|
|
2090
2095
|
type: import("vue").PropType<boolean>;
|
|
2091
2096
|
default: boolean;
|
|
@@ -2123,7 +2128,7 @@ declare const DropdownTypes: () => (({
|
|
|
2123
2128
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2124
2129
|
onOpened?: () => any;
|
|
2125
2130
|
onClosed?: () => any;
|
|
2126
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2131
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2127
2132
|
$attrs: {
|
|
2128
2133
|
[x: string]: unknown;
|
|
2129
2134
|
};
|
|
@@ -2379,6 +2384,10 @@ declare const DropdownTypes: () => (({
|
|
|
2379
2384
|
type: import("vue").PropType<number>;
|
|
2380
2385
|
default: any;
|
|
2381
2386
|
};
|
|
2387
|
+
optionTooltipPosition: {
|
|
2388
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
2389
|
+
default: string;
|
|
2390
|
+
};
|
|
2382
2391
|
fullWidth: {
|
|
2383
2392
|
type: import("vue").PropType<boolean>;
|
|
2384
2393
|
default: boolean;
|
|
@@ -2489,6 +2498,7 @@ declare const DropdownTypes: () => (({
|
|
|
2489
2498
|
groupedOptions: boolean;
|
|
2490
2499
|
comparingKey: string;
|
|
2491
2500
|
customNumberOfDisplayedOptions: number;
|
|
2501
|
+
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
2492
2502
|
fullWidth: boolean;
|
|
2493
2503
|
optionsListWidth: string;
|
|
2494
2504
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
@@ -2757,6 +2767,10 @@ declare const DropdownTypes: () => (({
|
|
|
2757
2767
|
type: import("vue").PropType<number>;
|
|
2758
2768
|
default: any;
|
|
2759
2769
|
};
|
|
2770
|
+
optionTooltipPosition: {
|
|
2771
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
2772
|
+
default: string;
|
|
2773
|
+
};
|
|
2760
2774
|
fullWidth: {
|
|
2761
2775
|
type: import("vue").PropType<boolean>;
|
|
2762
2776
|
default: boolean;
|
|
@@ -3043,6 +3057,10 @@ declare const DropdownTypes: () => (({
|
|
|
3043
3057
|
type: import("vue").PropType<number>;
|
|
3044
3058
|
default: any;
|
|
3045
3059
|
};
|
|
3060
|
+
optionTooltipPosition: {
|
|
3061
|
+
type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
|
|
3062
|
+
default: string;
|
|
3063
|
+
};
|
|
3046
3064
|
fullWidth: {
|
|
3047
3065
|
type: import("vue").PropType<boolean>;
|
|
3048
3066
|
default: boolean;
|
|
@@ -3153,6 +3171,7 @@ declare const DropdownTypes: () => (({
|
|
|
3153
3171
|
groupedOptions: boolean;
|
|
3154
3172
|
comparingKey: string;
|
|
3155
3173
|
customNumberOfDisplayedOptions: number;
|
|
3174
|
+
optionTooltipPosition: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
3156
3175
|
fullWidth: boolean;
|
|
3157
3176
|
optionsListWidth: string;
|
|
3158
3177
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|