@ironsource/shared-ui 2.1.12-test.59 → 2.1.12-test.60
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/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
- package/components/appIcon/index.d.ts +3 -3
- package/components/banner/Banner.vue.d.ts +3 -3
- package/components/banner/index.d.ts +7 -7
- package/components/button/common/consts.d.ts +1 -0
- package/components/button/v3/Button.vue.d.ts +3 -3
- package/components/button/v3/ButtonBase.vue.d.ts +3 -3
- package/components/button/v3/IconButton.vue.d.ts +3 -3
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.d.ts +4 -3
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +24 -25
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +82 -88
- package/components/chart/ChartHeader.vue.d.ts +24 -25
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +30 -35
- package/components/chart/ChartHeaderTrend.vue.d.ts +13 -15
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +32 -34
- package/components/chart/ChartPlane.vue.d.ts +24 -25
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +122 -128
- package/components/chart/index.d.ts +59 -88
- package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
- package/components/checkbox/v3/index.d.ts +7 -7
- package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dialog/v4/index.d.ts +7 -7
- package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +105 -95
- package/components/dropdown/v4/OptionV4.vue.d.ts +8 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +91 -69
- package/components/dropdown/v4/index.d.ts +46 -2
- package/components/forms/FormRow.vue.d.ts +9 -2
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +25 -14
- package/components/forms/index.d.ts +25 -5
- package/components/search/v3/index.d.ts +3 -3
- package/components/shared/FieldLabel.vue.d.ts +19 -7
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +50 -37
- package/components/tabs/v3/Tabs.vue.d.ts +3 -3
- package/components/tabs/v3/index.d.ts +7 -7
- package/components/tooltip/common/Tooltip.types.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
- package/components/tooltip/v3/Tooltip.vue.js +2 -2
- package/components/tooltip/v3/Tooltip.vue2.js +1 -1
- package/components/tooltip/v3/index.d.ts +7 -7
- package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
- package/components/tooltip/v4/index.d.ts +7 -7
- package/components/typography/Text.vue.d.ts +3 -3
- package/components/typography/index.d.ts +7 -7
- package/composables/useFormValidation.d.ts +1 -0
- package/composables/useFormValidation.js +32 -27
- package/index.d.ts +127 -39
- package/index.js +1 -1
- package/package.json +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_757e7752_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_92052479_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_d61ed404_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_bb382dc4_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
- package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as me, computed as H, watch as pe, openBlock as a, createElementBlock as s, mergeProps as f, unref as t, renderSlot as y, createElementVNode as m, createVNode as i, withCtx as u, Transition as ge, normalizeClass as E, normalizeStyle as ke, createTextVNode as k, createCommentVNode as d, isRef as Te, toDisplayString as U, withModifiers as G, Fragment as he, renderList as we, toRaw as C, createSlots as be, createBlock as X, resolveDynamicComponent as Ie } from "vue";
|
|
2
2
|
import O from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
6
|
import "./DropdownV4.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import ve from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import Ce from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import Se from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Ke from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
14
|
import q from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
16
|
+
import Ae from "../../search/v4/SearchV4.vue.js";
|
|
17
17
|
import Y from "../../typography/v4/Typography.vue.js";
|
|
18
|
-
import { Dropdown as
|
|
18
|
+
import { Dropdown as Le } from "floating-vue";
|
|
19
19
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
20
|
+
import { dropdownCommon as Ee } from "../common/Dropdown.common.js";
|
|
21
21
|
import S from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
|
-
import { useTestIdAttrs as
|
|
23
|
-
import { TRIGGERS as
|
|
24
|
-
import { useElementSize as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
const
|
|
22
|
+
import { useTestIdAttrs as Oe } from "../../../utils/testIds.js";
|
|
23
|
+
import { TRIGGERS as T } from "./Dropdown.types.js";
|
|
24
|
+
import { useElementSize as Be } from "@vueuse/core";
|
|
25
|
+
import Fe from "../../shared/FieldHelpText.vue.js";
|
|
26
|
+
import Ne from "./GroupOption.vue.js";
|
|
27
|
+
const Ve = ["tabindex"], De = { style: { width: "100%" } }, Pe = { key: 0 }, xe = { key: 1 }, Re = { key: 2 }, ze = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
30
|
+
}, $e = { class: "dropdown-conditions" }, We = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Me = ["aria-selected", "aria-disabled", "onClick"], He = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, Ue = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
},
|
|
39
|
+
}, Ge = { class: "actions-clear-all" }, Xe = { class: "actions-apply-cancel" }, wt = /* @__PURE__ */ me({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -71,7 +71,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
71
71
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
72
72
|
size: { default: "medium" },
|
|
73
73
|
mandatory: { type: Boolean, default: !1 },
|
|
74
|
-
predefinedTrigger: { default:
|
|
74
|
+
predefinedTrigger: { default: T.DEFAULT },
|
|
75
75
|
inlineSearch: { type: Boolean, default: !1 },
|
|
76
76
|
inlineSearchPlaceholder: { default: "Search" },
|
|
77
77
|
onSearch: { type: Function, default: null },
|
|
@@ -87,6 +87,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
87
87
|
optionEndIconType: { default: null },
|
|
88
88
|
optionsEndTextIconKey: { default: null },
|
|
89
89
|
optionFlagKey: { default: null },
|
|
90
|
+
optionWarningKey: { default: null },
|
|
90
91
|
valueToCopy: { default: null },
|
|
91
92
|
disabledOptionKey: { default: "disabled" },
|
|
92
93
|
optionTwoLinesVariant: { default: void 0 },
|
|
@@ -112,8 +113,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
112
113
|
DROPLIST_MIN_WIDTH: 240,
|
|
113
114
|
VERSION: 4
|
|
114
115
|
}, {
|
|
115
|
-
onKeydown:
|
|
116
|
-
open:
|
|
116
|
+
onKeydown: w,
|
|
117
|
+
open: c,
|
|
117
118
|
toggleMenu: I,
|
|
118
119
|
onButtonKeydown: N,
|
|
119
120
|
query: v,
|
|
@@ -125,13 +126,13 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
125
126
|
allSelectedApplied: K,
|
|
126
127
|
isIndeterminate: ee,
|
|
127
128
|
onSelectAll: te,
|
|
128
|
-
virtualOptions:
|
|
129
|
+
virtualOptions: D,
|
|
129
130
|
isSelected: A,
|
|
130
131
|
selectedOption: h,
|
|
131
132
|
selectedOptionPrevious: L,
|
|
132
133
|
selectedValue: oe,
|
|
133
|
-
onSelect:
|
|
134
|
-
activeIndex:
|
|
134
|
+
onSelect: P,
|
|
135
|
+
activeIndex: x,
|
|
135
136
|
onCancel: le,
|
|
136
137
|
onApply: ie,
|
|
137
138
|
scrollTo: ne,
|
|
@@ -143,8 +144,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
143
144
|
onClearAllSelections: z,
|
|
144
145
|
clearAll: ue,
|
|
145
146
|
isGroup: ce
|
|
146
|
-
} =
|
|
147
|
-
|
|
147
|
+
} = Ee(n, B, F), g = Oe(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === T.DEFAULT ? ve : n.predefinedTrigger === T.APP ? Ke : null), { width: W } = Be(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === T.DEFAULT || n.predefinedTrigger === T.APP ? W.value - 2 > 240 ? `${W.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
148
|
+
pe(
|
|
148
149
|
() => n.optionsListWidth,
|
|
149
150
|
() => {
|
|
150
151
|
n.optionsListWidth && document.documentElement.style.setProperty(
|
|
@@ -153,24 +154,24 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
153
154
|
);
|
|
154
155
|
}
|
|
155
156
|
);
|
|
156
|
-
const
|
|
157
|
+
const M = () => {
|
|
157
158
|
I();
|
|
158
159
|
};
|
|
159
160
|
return j({
|
|
160
|
-
selectItem:
|
|
161
|
+
selectItem: P,
|
|
161
162
|
scrollTo: ne
|
|
162
|
-
}), (
|
|
163
|
+
}), (r, l) => (a(), s("div", f({
|
|
163
164
|
ref_key: "el",
|
|
164
165
|
ref: re,
|
|
165
166
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
166
167
|
tabindex: e.disabled ? -1 : 0
|
|
167
168
|
}, t(g)[t(p).WRAPPER], {
|
|
168
169
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
169
|
-
(...o) => t(
|
|
170
|
+
(...o) => t(w) && t(w)(...o))
|
|
170
171
|
}), [
|
|
171
|
-
|
|
172
|
-
m("div",
|
|
173
|
-
i(t(
|
|
172
|
+
y(r.$slots, "label", {}, void 0, !0),
|
|
173
|
+
m("div", De, [
|
|
174
|
+
i(t(Le), f({
|
|
174
175
|
theme: e.theme,
|
|
175
176
|
"popper-class": [
|
|
176
177
|
e.popperClass,
|
|
@@ -183,15 +184,15 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
183
184
|
distance: e.distance,
|
|
184
185
|
flip: e.flip,
|
|
185
186
|
triggers: [],
|
|
186
|
-
shown: !!t(
|
|
187
|
+
shown: !!t(c),
|
|
187
188
|
"auto-hide": !1,
|
|
188
189
|
container: e.container,
|
|
189
190
|
"auto-size": e.autoSize
|
|
190
191
|
}, t(g)[t(p).TRIGGER]), {
|
|
191
192
|
popper: u(() => [
|
|
192
|
-
i(
|
|
193
|
+
i(ge, null, {
|
|
193
194
|
default: u(() => [
|
|
194
|
-
t(
|
|
195
|
+
t(c) ? (a(), s("div", {
|
|
195
196
|
key: 0,
|
|
196
197
|
ref_key: "listRef",
|
|
197
198
|
ref: ae,
|
|
@@ -199,27 +200,27 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
199
200
|
"dropdown--disabled": e.disabled,
|
|
200
201
|
"inline-search": e.inlineSearch
|
|
201
202
|
}]),
|
|
202
|
-
style:
|
|
203
|
+
style: ke({ width: t(ye) })
|
|
203
204
|
}, [
|
|
204
|
-
t(
|
|
205
|
+
t(c) ? (a(), s("div", {
|
|
205
206
|
key: 0,
|
|
206
207
|
class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
207
208
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
208
|
-
(...o) => t(
|
|
209
|
+
(...o) => t(w) && t(w)(...o))
|
|
209
210
|
}, [
|
|
210
|
-
t(
|
|
211
|
-
e.withConditions ?
|
|
212
|
-
m("div",
|
|
211
|
+
t(c) && e.inlineSearch ? (a(), s("div", ze, [
|
|
212
|
+
e.withConditions ? y(r.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
213
|
+
m("div", $e, [
|
|
213
214
|
i(t(Y), { variant: "body2" }, {
|
|
214
215
|
default: u(() => [
|
|
215
|
-
|
|
216
|
+
k("Conditions")
|
|
216
217
|
]),
|
|
217
218
|
_: 1
|
|
218
219
|
})
|
|
219
220
|
])
|
|
220
221
|
], !0) : d("", !0),
|
|
221
|
-
|
|
222
|
-
i(t(
|
|
222
|
+
y(r.$slots, "inline-search", {}, () => [
|
|
223
|
+
i(t(Ae), {
|
|
223
224
|
modelValue: t(v),
|
|
224
225
|
"onUpdate:modelValue": [
|
|
225
226
|
l[4] || (l[4] = (o) => Te(v) ? v.value = o : null),
|
|
@@ -230,37 +231,37 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
230
231
|
size: "md",
|
|
231
232
|
"auto-focus": e.searchAutoFocus,
|
|
232
233
|
"test-id": e.testId,
|
|
233
|
-
onKeydown: t(
|
|
234
|
+
onKeydown: t(w)
|
|
234
235
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
235
236
|
], !0)
|
|
236
237
|
])) : d("", !0),
|
|
237
|
-
|
|
238
|
-
m("div",
|
|
238
|
+
y(r.$slots, "input-list", { open: t(c) }, void 0, !0),
|
|
239
|
+
m("div", f({
|
|
239
240
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
240
241
|
style: { height: `${t(Q)}rem` }
|
|
241
242
|
}, {
|
|
242
243
|
...t(J),
|
|
243
244
|
...t(g)[t(p).LIST_CONTAINER]
|
|
244
245
|
}), [
|
|
245
|
-
|
|
246
|
-
m("ul",
|
|
246
|
+
y(r.$slots, "custom-list-area", {}, void 0, !0),
|
|
247
|
+
m("ul", f(t(Z), {
|
|
247
248
|
role: "listbox",
|
|
248
249
|
class: ["list", {
|
|
249
250
|
"list--multi": e.multi,
|
|
250
251
|
"list--with-conditions": e.withConditions
|
|
251
252
|
}]
|
|
252
253
|
}), [
|
|
253
|
-
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li",
|
|
254
|
-
i(t(Y),
|
|
254
|
+
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li", We, [
|
|
255
|
+
i(t(Y), f({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
255
256
|
default: u(() => [
|
|
256
|
-
|
|
257
|
+
k(U(e.noResultsText), 1)
|
|
257
258
|
]),
|
|
258
259
|
_: 1
|
|
259
260
|
}, 16)
|
|
260
261
|
])) : d("", !0),
|
|
261
|
-
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ?
|
|
262
|
+
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? y(r.$slots, "select-all", { key: 1 }, () => [
|
|
262
263
|
m("li", null, [
|
|
263
|
-
i(t(q),
|
|
264
|
+
i(t(q), f(
|
|
264
265
|
{
|
|
265
266
|
"aria-selected": t(V),
|
|
266
267
|
"aria-disabled": !!e.disabled,
|
|
@@ -275,37 +276,37 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
275
276
|
}
|
|
276
277
|
), {
|
|
277
278
|
default: u(() => [
|
|
278
|
-
|
|
279
|
+
k(" Select all ")
|
|
279
280
|
]),
|
|
280
281
|
_: 1
|
|
281
282
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
282
283
|
])
|
|
283
284
|
], !0) : d("", !0),
|
|
284
|
-
t(
|
|
285
|
-
key:
|
|
285
|
+
t(D).length && !e.loading ? (a(!0), s(he, { key: 2 }, we(t(D), ({ data: o, index: b }) => (a(), s("li", {
|
|
286
|
+
key: b,
|
|
286
287
|
"aria-selected": t(A)(C(t(h)), o),
|
|
287
288
|
"aria-disabled": !!e.disabled,
|
|
288
|
-
onClick: G(() => t(
|
|
289
|
+
onClick: G(() => t(P)(o, b), ["stop"])
|
|
289
290
|
}, [
|
|
290
|
-
e.groupedOptions && t(ce)(o) ?
|
|
291
|
-
i(
|
|
291
|
+
e.groupedOptions && t(ce)(o) ? y(r.$slots, "group-option", { key: 0 }, () => [
|
|
292
|
+
i(Ne, null, {
|
|
292
293
|
default: u(() => [
|
|
293
|
-
|
|
294
|
+
k(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
294
295
|
]),
|
|
295
296
|
_: 2
|
|
296
297
|
}, 1024)
|
|
297
|
-
], !0) :
|
|
298
|
+
], !0) : y(r.$slots, "default", {
|
|
298
299
|
key: 1,
|
|
299
300
|
option: o,
|
|
300
|
-
index:
|
|
301
|
+
index: b,
|
|
301
302
|
selected: t(A)(C(t(h)), o),
|
|
302
|
-
active: C(t(
|
|
303
|
+
active: C(t(x)) === b,
|
|
303
304
|
disabled: o[n.disabledOptionKey]
|
|
304
305
|
}, () => [
|
|
305
306
|
i(t(q), {
|
|
306
307
|
option: o,
|
|
307
308
|
"selected-prop": t(A)(t(h), o),
|
|
308
|
-
active: C(t(
|
|
309
|
+
active: C(t(x)) === b,
|
|
309
310
|
disabled: o[n.disabledOptionKey],
|
|
310
311
|
"name-key": e.optionNameKey,
|
|
311
312
|
"image-key": e.optionImageKey,
|
|
@@ -315,13 +316,22 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
315
316
|
"end-icon-type": e.optionEndIconType,
|
|
316
317
|
"end-text-icon-key": e.optionsEndTextIconKey,
|
|
317
318
|
"option-flag-key": e.optionFlagKey,
|
|
319
|
+
"warning-key": e.optionWarningKey,
|
|
318
320
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
319
321
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
320
322
|
"is-multi": e.multi
|
|
321
|
-
},
|
|
323
|
+
}, be({ _: 2 }, [
|
|
324
|
+
r.$slots["option-end"] ? {
|
|
325
|
+
name: "option-end",
|
|
326
|
+
fn: u(({ option: fe }) => [
|
|
327
|
+
y(r.$slots, "option-end", { option: fe }, void 0, !0)
|
|
328
|
+
]),
|
|
329
|
+
key: "0"
|
|
330
|
+
} : void 0
|
|
331
|
+
]), 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"])
|
|
322
332
|
], !0)
|
|
323
|
-
], 8,
|
|
324
|
-
e.loading || e.loadMoreLoading ? (a(), s("li",
|
|
333
|
+
], 8, Me))), 128)) : d("", !0),
|
|
334
|
+
e.loading || e.loadMoreLoading ? (a(), s("li", He, [
|
|
325
335
|
i(t(S), { round: "" }),
|
|
326
336
|
i(t(S), { round: "" }),
|
|
327
337
|
i(t(S), { round: "" }),
|
|
@@ -329,9 +339,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
329
339
|
])) : d("", !0)
|
|
330
340
|
], 16)
|
|
331
341
|
], 16),
|
|
332
|
-
e.multi ? (a(), s("div",
|
|
333
|
-
m("div",
|
|
334
|
-
i(t(O),
|
|
342
|
+
e.multi ? (a(), s("div", Ue, [
|
|
343
|
+
m("div", Ge, [
|
|
344
|
+
i(t(O), f(
|
|
335
345
|
{
|
|
336
346
|
ref_key: "clearAll",
|
|
337
347
|
ref: ue,
|
|
@@ -345,13 +355,13 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
345
355
|
}
|
|
346
356
|
), {
|
|
347
357
|
default: u(() => [
|
|
348
|
-
|
|
358
|
+
k(" Clear all ")
|
|
349
359
|
]),
|
|
350
360
|
_: 1
|
|
351
361
|
}, 16)
|
|
352
362
|
]),
|
|
353
|
-
m("div",
|
|
354
|
-
i(t(O),
|
|
363
|
+
m("div", Xe, [
|
|
364
|
+
i(t(O), f(
|
|
355
365
|
{
|
|
356
366
|
ref_key: "cancel",
|
|
357
367
|
ref: se,
|
|
@@ -363,11 +373,11 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
363
373
|
{ onClick: t(le) }
|
|
364
374
|
), {
|
|
365
375
|
default: u(() => [
|
|
366
|
-
|
|
376
|
+
k(" Cancel ")
|
|
367
377
|
]),
|
|
368
378
|
_: 1
|
|
369
379
|
}, 16, ["onClick"]),
|
|
370
|
-
i(t(O),
|
|
380
|
+
i(t(O), f({
|
|
371
381
|
ref_key: "apply",
|
|
372
382
|
ref: de,
|
|
373
383
|
"data-testid": "mutli-apply",
|
|
@@ -375,7 +385,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
375
385
|
class: "apply-button"
|
|
376
386
|
}, t(g)[t(p).ACTION_APPLY], { onClick: t(ie) }), {
|
|
377
387
|
default: u(() => [
|
|
378
|
-
|
|
388
|
+
k(" Apply ")
|
|
379
389
|
]),
|
|
380
390
|
_: 1
|
|
381
391
|
}, 16, ["onClick"])
|
|
@@ -390,7 +400,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
390
400
|
default: u(() => [
|
|
391
401
|
m("div", {
|
|
392
402
|
class: E(["button__container", {
|
|
393
|
-
"button__container--open": !!t(
|
|
403
|
+
"button__container--open": !!t(c),
|
|
394
404
|
[`button__container--${e.size}`]: !0,
|
|
395
405
|
"button__container--disabled": e.disabled
|
|
396
406
|
}])
|
|
@@ -399,16 +409,16 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
399
409
|
ref_key: "buttonRef",
|
|
400
410
|
ref: R
|
|
401
411
|
}, [
|
|
402
|
-
|
|
412
|
+
y(r.$slots, "dropdown-trigger", {
|
|
403
413
|
buttonTriggerProps: {
|
|
404
|
-
open: t(
|
|
414
|
+
open: t(c),
|
|
405
415
|
disabled: e.disabled,
|
|
406
416
|
label: t(oe) || e.placeholder,
|
|
407
417
|
onClick: () => t(I)()
|
|
408
418
|
},
|
|
409
419
|
defaultTriggerProps: {
|
|
410
420
|
placeholder: e.placeholder,
|
|
411
|
-
open: t(
|
|
421
|
+
open: t(c),
|
|
412
422
|
label: e.triggerLabel,
|
|
413
423
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
414
424
|
mandatory: e.mandatory,
|
|
@@ -433,13 +443,13 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
433
443
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
434
444
|
allSelected: t(K),
|
|
435
445
|
onKeydown: t(N),
|
|
436
|
-
onClick:
|
|
446
|
+
onClick: M
|
|
437
447
|
}
|
|
438
448
|
}, () => [
|
|
439
|
-
t($) ? (a(), s("div",
|
|
440
|
-
(a(), X(
|
|
449
|
+
t($) ? (a(), s("div", Pe, [
|
|
450
|
+
(a(), X(Ie(t($)), {
|
|
441
451
|
placeholder: e.placeholder,
|
|
442
|
-
open: t(
|
|
452
|
+
open: t(c),
|
|
443
453
|
label: e.triggerLabel,
|
|
444
454
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
445
455
|
mandatory: e.mandatory,
|
|
@@ -464,18 +474,18 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
464
474
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
465
475
|
"all-selected": t(K),
|
|
466
476
|
onKeydown: t(N),
|
|
467
|
-
onClick:
|
|
477
|
+
onClick: M,
|
|
468
478
|
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
469
479
|
}, 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"]))
|
|
470
480
|
])) : d("", !0),
|
|
471
|
-
e.predefinedTrigger === t(
|
|
472
|
-
i(t(
|
|
481
|
+
e.predefinedTrigger === t(T).ICON_BUTTON ? (a(), s("div", xe, [
|
|
482
|
+
i(t(Ce), {
|
|
473
483
|
onClick: l[1] || (l[1] = (o) => t(I)())
|
|
474
484
|
})
|
|
475
485
|
])) : d("", !0),
|
|
476
|
-
e.predefinedTrigger === t(
|
|
477
|
-
i(t(
|
|
478
|
-
open: t(
|
|
486
|
+
e.predefinedTrigger === t(T).CHIP ? (a(), s("div", Re, [
|
|
487
|
+
i(t(Se), {
|
|
488
|
+
open: t(c),
|
|
479
489
|
label: e.placeholder,
|
|
480
490
|
"test-id": e.testId,
|
|
481
491
|
options: e.options,
|
|
@@ -493,7 +503,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
493
503
|
]),
|
|
494
504
|
_: 3
|
|
495
505
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
496
|
-
e.triggerFeedbackText ? (a(), X(
|
|
506
|
+
e.triggerFeedbackText ? (a(), X(Fe, {
|
|
497
507
|
key: 0,
|
|
498
508
|
text: e.triggerFeedbackText,
|
|
499
509
|
variant: e.triggerFeedbackVariant,
|
|
@@ -502,9 +512,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe
|
|
|
502
512
|
class: "dropdown-field-help-text"
|
|
503
513
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
504
514
|
])
|
|
505
|
-
], 16,
|
|
515
|
+
], 16, Ve));
|
|
506
516
|
}
|
|
507
517
|
});
|
|
508
518
|
export {
|
|
509
|
-
|
|
519
|
+
wt as default
|
|
510
520
|
};
|
|
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
nameKey?: string;
|
|
10
10
|
imageKey?: string;
|
|
11
11
|
iconKey?: string;
|
|
12
|
+
warningKey?: string;
|
|
12
13
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
13
14
|
endIconKey?: string;
|
|
14
15
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -32,6 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
33
|
nameKey: any;
|
|
33
34
|
imageKey: any;
|
|
34
35
|
iconKey: any;
|
|
36
|
+
warningKey: any;
|
|
35
37
|
iconType: string;
|
|
36
38
|
endIconKey: any;
|
|
37
39
|
endIconType: string;
|
|
@@ -58,6 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
60
|
nameKey?: string;
|
|
59
61
|
imageKey?: string;
|
|
60
62
|
iconKey?: string;
|
|
63
|
+
warningKey?: string;
|
|
61
64
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
62
65
|
endIconKey?: string;
|
|
63
66
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -81,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
81
84
|
nameKey: any;
|
|
82
85
|
imageKey: any;
|
|
83
86
|
iconKey: any;
|
|
87
|
+
warningKey: any;
|
|
84
88
|
iconType: string;
|
|
85
89
|
endIconKey: any;
|
|
86
90
|
endIconType: string;
|
|
@@ -110,6 +114,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
110
114
|
nameKey: string;
|
|
111
115
|
imageKey: string;
|
|
112
116
|
iconKey: string;
|
|
117
|
+
warningKey: string;
|
|
113
118
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
114
119
|
endIconKey: string;
|
|
115
120
|
endTextIconKey: string;
|
|
@@ -125,6 +130,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
130
|
"icon-start"?(_: {}): any;
|
|
126
131
|
default?(_: {}): any;
|
|
127
132
|
"icon-end"?(_: {}): any;
|
|
133
|
+
"option-end"?(_: {
|
|
134
|
+
option: any;
|
|
135
|
+
}): any;
|
|
128
136
|
}>;
|
|
129
137
|
export default _default;
|
|
130
138
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9cdf3a94"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|