@ironsource/shared-ui 2.1.11-test.2 → 2.1.11-test.5
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/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +1 -0
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +33 -26
- package/components/dropdown/common/Dropdown.common.js +91 -93
- package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +152 -141
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +142 -145
- package/components/dropdown/v4/index.d.ts +25 -1
- package/index.d.ts +50 -2
- package/index.js +1 -1
- package/mocks/options.d.ts +4 -0
- package/package.json +2 -2
- package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_c361375a_lang.css +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as U, openBlock as n, createElementBlock as a, mergeProps as c, unref as t, renderSlot as g, createElementVNode as m, createVNode as i, withCtx as u, Transition as me, normalizeClass as L, normalizeStyle as pe, createTextVNode as T, createCommentVNode as d, isRef as ge, toDisplayString as W, withModifiers as M, Fragment as Te, renderList as ke, toRaw as I, createBlock as X, resolveDynamicComponent as be } from "vue";
|
|
2
2
|
import E 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
|
|
7
|
+
import he from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import we from "./IconButtonDropdownTrigger.vue.js";
|
|
9
9
|
import Ie from "./ChipDropdownTrigger.vue.js";
|
|
10
|
-
import
|
|
10
|
+
import ve 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
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import Ce from "../../search/v4/SearchV4.vue.js";
|
|
16
|
+
import Y from "../../typography/v4/Typography.vue.js";
|
|
17
17
|
import { Dropdown as Se } from "floating-vue";
|
|
18
18
|
import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
|
|
19
19
|
import { dropdownCommon as Ke } from "../common/Dropdown.common.js";
|
|
20
20
|
import S from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
21
21
|
import { useTestIdAttrs as Ae } from "../../../utils/testIds.js";
|
|
22
|
-
import { TRIGGERS as
|
|
22
|
+
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
23
23
|
import { useElementSize as Oe } from "@vueuse/core";
|
|
24
24
|
import Le from "../../shared/FieldHelpText.vue.js";
|
|
25
25
|
import Ee from "./GroupOption.vue.js";
|
|
26
|
-
const
|
|
26
|
+
const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve = { key: 1 }, De = { key: 2 }, Pe = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "inline-search-wrapper"
|
|
29
|
-
}, Re = {
|
|
29
|
+
}, Re = { class: "dropdown-conditions" }, ze = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "no-result-container"
|
|
32
|
-
},
|
|
32
|
+
}, xe = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "loader"
|
|
35
|
-
},
|
|
35
|
+
}, $e = { key: 2 }, He = ["aria-selected", "aria-disabled", "onClick"], Ge = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "actions-wrapper"
|
|
38
|
-
},
|
|
38
|
+
}, Ue = { class: "actions-clear-all" }, We = { class: "actions-apply-cancel" }, Tt = /* @__PURE__ */ fe({
|
|
39
39
|
__name: "DropdownV4",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: { default: null },
|
|
@@ -67,7 +67,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
67
67
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
68
68
|
size: { default: "medium" },
|
|
69
69
|
mandatory: { type: Boolean, default: !1 },
|
|
70
|
-
predefinedTrigger: { default:
|
|
70
|
+
predefinedTrigger: { default: k.DEFAULT },
|
|
71
71
|
inlineSearch: { type: Boolean, default: !1 },
|
|
72
72
|
inlineSearchPlaceholder: { default: "Search" },
|
|
73
73
|
onSearch: { type: Function, default: null },
|
|
@@ -88,6 +88,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
88
88
|
optionTwoLinesKey: { default: void 0 },
|
|
89
89
|
groupedOptions: { type: Boolean, default: !1 },
|
|
90
90
|
comparingKey: { default: null },
|
|
91
|
+
withConditions: { type: Boolean, default: !1 },
|
|
91
92
|
customNumberOfDisplayedOptions: { default: null },
|
|
92
93
|
theme: { default: "light-theme-v4" },
|
|
93
94
|
fullWidth: { type: Boolean, default: !0 },
|
|
@@ -97,8 +98,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
97
98
|
overrideOptionCountCalculation: { type: Function, default: null }
|
|
98
99
|
},
|
|
99
100
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
100
|
-
setup(e, { expose:
|
|
101
|
-
const
|
|
101
|
+
setup(e, { expose: j, emit: B }) {
|
|
102
|
+
const r = e, F = {
|
|
102
103
|
MULTILINE_LIST_HEIGHT: 48,
|
|
103
104
|
LIST_HEIGHT: 32 + 4,
|
|
104
105
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -107,54 +108,54 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
107
108
|
VERSION: 4
|
|
108
109
|
}, {
|
|
109
110
|
onKeydown: h,
|
|
110
|
-
open:
|
|
111
|
+
open: s,
|
|
111
112
|
toggleMenu: v,
|
|
112
|
-
onButtonKeydown:
|
|
113
|
+
onButtonKeydown: N,
|
|
113
114
|
query: C,
|
|
114
|
-
containerProps:
|
|
115
|
-
calculateTableHeight:
|
|
116
|
-
wrapperProps:
|
|
117
|
-
filteredOptions:
|
|
115
|
+
containerProps: J,
|
|
116
|
+
calculateTableHeight: Q,
|
|
117
|
+
wrapperProps: Z,
|
|
118
|
+
filteredOptions: _,
|
|
118
119
|
allSelected: V,
|
|
119
120
|
allSelectedApplied: K,
|
|
120
|
-
isIndeterminate:
|
|
121
|
-
onSelectAll:
|
|
121
|
+
isIndeterminate: ee,
|
|
122
|
+
onSelectAll: te,
|
|
122
123
|
virtualOptions: D,
|
|
123
124
|
isSelected: A,
|
|
124
|
-
selectedOption:
|
|
125
|
+
selectedOption: b,
|
|
125
126
|
selectedOptionPrevious: O,
|
|
126
|
-
selectedValue:
|
|
127
|
+
selectedValue: oe,
|
|
127
128
|
onSelect: P,
|
|
128
129
|
activeIndex: R,
|
|
129
130
|
onCancel: le,
|
|
130
|
-
onApply:
|
|
131
|
-
scrollTo:
|
|
132
|
-
listRef:
|
|
131
|
+
onApply: ie,
|
|
132
|
+
scrollTo: ne,
|
|
133
|
+
listRef: ae,
|
|
133
134
|
buttonRef: z,
|
|
134
|
-
apply:
|
|
135
|
-
cancel:
|
|
136
|
-
el:
|
|
135
|
+
apply: de,
|
|
136
|
+
cancel: re,
|
|
137
|
+
el: se,
|
|
137
138
|
onClearAllSelections: x,
|
|
138
139
|
clearAll: ue,
|
|
139
|
-
isGroup:
|
|
140
|
-
} = Ke(
|
|
140
|
+
isGroup: ce
|
|
141
|
+
} = Ke(r, B, F), f = Ae(r.testId, y), $ = U(() => !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT ? he : r.predefinedTrigger === k.APP ? ve : null), { width: H } = Oe(z), ye = U(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT || r.predefinedTrigger === k.APP ? H.value - 2 > 240 ? `${H.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto"), G = () => {
|
|
141
142
|
v();
|
|
142
143
|
};
|
|
143
|
-
return
|
|
144
|
+
return j({
|
|
144
145
|
selectItem: P,
|
|
145
|
-
scrollTo:
|
|
146
|
-
}), (
|
|
146
|
+
scrollTo: ne
|
|
147
|
+
}), (p, l) => (n(), a("div", c({
|
|
147
148
|
ref_key: "el",
|
|
148
|
-
ref:
|
|
149
|
+
ref: se,
|
|
149
150
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
150
151
|
tabindex: e.disabled ? -1 : 0
|
|
151
152
|
}, t(f)[t(y).WRAPPER], {
|
|
152
|
-
onKeydown:
|
|
153
|
-
(...
|
|
153
|
+
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
154
|
+
(...o) => t(h) && t(h)(...o))
|
|
154
155
|
}), [
|
|
155
|
-
|
|
156
|
-
m("div",
|
|
157
|
-
i(t(Se),
|
|
156
|
+
g(p.$slots, "label", {}, void 0, !0),
|
|
157
|
+
m("div", Fe, [
|
|
158
|
+
i(t(Se), c({
|
|
158
159
|
theme: e.theme,
|
|
159
160
|
"popper-class": [
|
|
160
161
|
e.popperClass,
|
|
@@ -167,36 +168,46 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
167
168
|
distance: e.distance,
|
|
168
169
|
flip: e.flip,
|
|
169
170
|
triggers: [],
|
|
170
|
-
shown: !!t(
|
|
171
|
+
shown: !!t(s),
|
|
171
172
|
"auto-hide": !1,
|
|
172
173
|
container: e.container,
|
|
173
174
|
"auto-size": e.autoSize
|
|
174
175
|
}, t(f)[t(y).TRIGGER]), {
|
|
175
|
-
popper:
|
|
176
|
-
i(
|
|
177
|
-
default:
|
|
178
|
-
t(
|
|
176
|
+
popper: u(() => [
|
|
177
|
+
i(me, null, {
|
|
178
|
+
default: u(() => [
|
|
179
|
+
t(s) ? (n(), a("div", {
|
|
179
180
|
key: 0,
|
|
180
181
|
ref_key: "listRef",
|
|
181
|
-
ref:
|
|
182
|
+
ref: ae,
|
|
182
183
|
class: L(["light-theme-v4", {
|
|
183
184
|
"dropdown--disabled": e.disabled,
|
|
184
185
|
"inline-search": e.inlineSearch
|
|
185
186
|
}]),
|
|
186
|
-
style:
|
|
187
|
+
style: pe({ width: t(ye) })
|
|
187
188
|
}, [
|
|
188
|
-
t(
|
|
189
|
+
t(s) ? (n(), a("div", {
|
|
189
190
|
key: 0,
|
|
190
191
|
class: L(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
191
|
-
onKeydown:
|
|
192
|
-
(...
|
|
192
|
+
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
193
|
+
(...o) => t(h) && t(h)(...o))
|
|
193
194
|
}, [
|
|
194
|
-
t(
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
t(s) && (e.inlineSearch || e.withConditions) ? (n(), a("div", Pe, [
|
|
196
|
+
e.withConditions ? g(p.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
197
|
+
m("div", Re, [
|
|
198
|
+
i(t(Y), { variant: "body2" }, {
|
|
199
|
+
default: u(() => [
|
|
200
|
+
T("Conditions")
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
})
|
|
204
|
+
])
|
|
205
|
+
], !0) : d("", !0),
|
|
206
|
+
g(p.$slots, "inline-search", {}, () => [
|
|
207
|
+
i(t(Ce), {
|
|
197
208
|
modelValue: t(C),
|
|
198
209
|
"onUpdate:modelValue": [
|
|
199
|
-
|
|
210
|
+
l[4] || (l[4] = (o) => ge(C) ? C.value = o : null),
|
|
200
211
|
e.onClear
|
|
201
212
|
],
|
|
202
213
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -207,79 +218,79 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
207
218
|
onKeydown: t(h)
|
|
208
219
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
209
220
|
], !0)
|
|
210
|
-
])) :
|
|
211
|
-
|
|
212
|
-
m("div",
|
|
221
|
+
])) : d("", !0),
|
|
222
|
+
g(p.$slots, "input-list", { open: t(s) }, void 0, !0),
|
|
223
|
+
m("div", c({
|
|
213
224
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
214
|
-
style: { height: `${t(
|
|
225
|
+
style: { height: `${t(Q)}rem` }
|
|
215
226
|
}, {
|
|
216
|
-
...t(
|
|
227
|
+
...t(J),
|
|
217
228
|
...t(f)[t(y).LIST_CONTAINER]
|
|
218
229
|
}), [
|
|
219
|
-
m("ul",
|
|
230
|
+
m("ul", c(t(Z), {
|
|
220
231
|
role: "listbox",
|
|
221
232
|
class: ["list", { "list--multi": e.multi }]
|
|
222
233
|
}), [
|
|
223
|
-
!t(
|
|
224
|
-
i(t(
|
|
225
|
-
default:
|
|
226
|
-
|
|
234
|
+
!t(_).length && !e.loading ? (n(), a("li", ze, [
|
|
235
|
+
i(t(Y), c({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
|
|
236
|
+
default: u(() => [
|
|
237
|
+
T(W(e.noResultsText), 1)
|
|
227
238
|
]),
|
|
228
239
|
_: 1
|
|
229
240
|
}, 16)
|
|
230
|
-
])) :
|
|
231
|
-
e.loading ? (n(), a("li",
|
|
241
|
+
])) : d("", !0),
|
|
242
|
+
e.loading ? (n(), a("li", xe, [
|
|
232
243
|
i(t(S), { round: "" }),
|
|
233
244
|
i(t(S), { round: "" }),
|
|
234
245
|
i(t(S), { round: "" }),
|
|
235
246
|
i(t(S), { round: "" })
|
|
236
|
-
])) :
|
|
237
|
-
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading ? (n(), a("li",
|
|
238
|
-
i(t(q),
|
|
247
|
+
])) : d("", !0),
|
|
248
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading ? (n(), a("li", $e, [
|
|
249
|
+
i(t(q), c(
|
|
239
250
|
{
|
|
240
251
|
"aria-selected": t(V),
|
|
241
252
|
"aria-disabled": !!e.disabled,
|
|
242
253
|
"selected-prop": t(V),
|
|
243
|
-
"is-indeterminate": t(
|
|
254
|
+
"is-indeterminate": t(ee),
|
|
244
255
|
"select-all-option": ""
|
|
245
256
|
},
|
|
246
257
|
t(f)[t(y).SELECT_ALL],
|
|
247
258
|
{
|
|
248
|
-
onClick:
|
|
259
|
+
onClick: l[5] || (l[5] = M((o) => t(te)(), ["stop"]))
|
|
249
260
|
}
|
|
250
261
|
), {
|
|
251
|
-
default:
|
|
252
|
-
|
|
262
|
+
default: u(() => [
|
|
263
|
+
T(" Select all ")
|
|
253
264
|
]),
|
|
254
265
|
_: 1
|
|
255
266
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
256
|
-
])) :
|
|
257
|
-
t(D).length && !e.loading ? (n(!0), a(
|
|
258
|
-
key:
|
|
259
|
-
"aria-selected": t(A)(
|
|
267
|
+
])) : d("", !0),
|
|
268
|
+
t(D).length && !e.loading ? (n(!0), a(Te, { key: 3 }, ke(t(D), ({ data: o, index: w }) => (n(), a("li", {
|
|
269
|
+
key: w,
|
|
270
|
+
"aria-selected": t(A)(I(t(b)), o),
|
|
260
271
|
"aria-disabled": !!e.disabled,
|
|
261
|
-
onClick: M(() => t(P)(
|
|
272
|
+
onClick: M(() => t(P)(o, w), ["stop"])
|
|
262
273
|
}, [
|
|
263
|
-
e.groupedOptions && t(
|
|
274
|
+
e.groupedOptions && t(ce)(o) ? g(p.$slots, "group-option", { key: 0 }, () => [
|
|
264
275
|
i(Ee, null, {
|
|
265
|
-
default:
|
|
266
|
-
|
|
276
|
+
default: u(() => [
|
|
277
|
+
T(W(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
267
278
|
]),
|
|
268
279
|
_: 2
|
|
269
280
|
}, 1024)
|
|
270
|
-
], !0) :
|
|
281
|
+
], !0) : g(p.$slots, "default", {
|
|
271
282
|
key: 1,
|
|
272
|
-
option:
|
|
273
|
-
index:
|
|
274
|
-
selected: t(A)(
|
|
275
|
-
active:
|
|
276
|
-
disabled:
|
|
283
|
+
option: o,
|
|
284
|
+
index: w,
|
|
285
|
+
selected: t(A)(I(t(b)), o),
|
|
286
|
+
active: I(t(R)) === w,
|
|
287
|
+
disabled: o[r.disabledOptionKey]
|
|
277
288
|
}, () => [
|
|
278
289
|
i(t(q), {
|
|
279
|
-
option:
|
|
280
|
-
"selected-prop": t(A)(
|
|
281
|
-
active:
|
|
282
|
-
disabled:
|
|
290
|
+
option: o,
|
|
291
|
+
"selected-prop": t(A)(I(t(b)), o),
|
|
292
|
+
active: I(t(R)) === w,
|
|
293
|
+
disabled: o[r.disabledOptionKey],
|
|
283
294
|
"name-key": e.optionNameKey,
|
|
284
295
|
"image-key": e.optionImageKey,
|
|
285
296
|
"icon-key": e.optionIconKey,
|
|
@@ -291,12 +302,12 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
291
302
|
"option-two-lines-key": e.optionTwoLinesKey
|
|
292
303
|
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-flag-key", "option-two-lines-variant", "option-two-lines-key"])
|
|
293
304
|
], !0)
|
|
294
|
-
], 8,
|
|
305
|
+
], 8, He))), 128)) : d("", !0)
|
|
295
306
|
], 16)
|
|
296
307
|
], 16),
|
|
297
|
-
e.multi ? (n(), a("div",
|
|
298
|
-
m("div",
|
|
299
|
-
i(t(E),
|
|
308
|
+
e.multi ? (n(), a("div", Ge, [
|
|
309
|
+
m("div", Ue, [
|
|
310
|
+
i(t(E), c(
|
|
300
311
|
{
|
|
301
312
|
ref_key: "clearAll",
|
|
302
313
|
ref: ue,
|
|
@@ -306,20 +317,20 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
306
317
|
},
|
|
307
318
|
t(f)[t(y).ACTION_CLEAR_ALL],
|
|
308
319
|
{
|
|
309
|
-
onClick:
|
|
320
|
+
onClick: l[6] || (l[6] = () => t(x)(!1))
|
|
310
321
|
}
|
|
311
322
|
), {
|
|
312
|
-
default:
|
|
313
|
-
|
|
323
|
+
default: u(() => [
|
|
324
|
+
T(" Clear all ")
|
|
314
325
|
]),
|
|
315
326
|
_: 1
|
|
316
327
|
}, 16)
|
|
317
328
|
]),
|
|
318
|
-
m("div",
|
|
319
|
-
i(t(E),
|
|
329
|
+
m("div", We, [
|
|
330
|
+
i(t(E), c(
|
|
320
331
|
{
|
|
321
332
|
ref_key: "cancel",
|
|
322
|
-
ref:
|
|
333
|
+
ref: re,
|
|
323
334
|
size: "small",
|
|
324
335
|
variant: "outlined",
|
|
325
336
|
color: "primary"
|
|
@@ -327,35 +338,35 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
327
338
|
t(f)[t(y).ACTION_CANCEL],
|
|
328
339
|
{ onClick: t(le) }
|
|
329
340
|
), {
|
|
330
|
-
default:
|
|
331
|
-
|
|
341
|
+
default: u(() => [
|
|
342
|
+
T(" Cancel ")
|
|
332
343
|
]),
|
|
333
344
|
_: 1
|
|
334
345
|
}, 16, ["onClick"]),
|
|
335
|
-
i(t(E),
|
|
346
|
+
i(t(E), c({
|
|
336
347
|
ref_key: "apply",
|
|
337
|
-
ref:
|
|
348
|
+
ref: de,
|
|
338
349
|
"data-testid": "mutli-apply",
|
|
339
350
|
size: "small",
|
|
340
351
|
class: "apply-button"
|
|
341
|
-
}, t(f)[t(y).ACTION_APPLY], { onClick: t(
|
|
342
|
-
default:
|
|
343
|
-
|
|
352
|
+
}, t(f)[t(y).ACTION_APPLY], { onClick: t(ie) }), {
|
|
353
|
+
default: u(() => [
|
|
354
|
+
T(" Apply ")
|
|
344
355
|
]),
|
|
345
356
|
_: 1
|
|
346
357
|
}, 16, ["onClick"])
|
|
347
358
|
])
|
|
348
|
-
])) :
|
|
349
|
-
], 34)) :
|
|
350
|
-
], 6)) :
|
|
359
|
+
])) : d("", !0)
|
|
360
|
+
], 34)) : d("", !0)
|
|
361
|
+
], 6)) : d("", !0)
|
|
351
362
|
]),
|
|
352
363
|
_: 3
|
|
353
364
|
})
|
|
354
365
|
]),
|
|
355
|
-
default:
|
|
366
|
+
default: u(() => [
|
|
356
367
|
m("div", {
|
|
357
368
|
class: L(["button__container", {
|
|
358
|
-
"button__container--open": !!t(
|
|
369
|
+
"button__container--open": !!t(s),
|
|
359
370
|
[`button__container--${e.size}`]: !0,
|
|
360
371
|
"button__container--disabled": e.disabled
|
|
361
372
|
}])
|
|
@@ -364,23 +375,23 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
364
375
|
ref_key: "buttonRef",
|
|
365
376
|
ref: z
|
|
366
377
|
}, [
|
|
367
|
-
|
|
378
|
+
g(p.$slots, "dropdown-trigger", {
|
|
368
379
|
buttonTriggerProps: {
|
|
369
|
-
open: t(
|
|
380
|
+
open: t(s),
|
|
370
381
|
disabled: e.disabled,
|
|
371
|
-
label: t(
|
|
382
|
+
label: t(oe) || e.placeholder,
|
|
372
383
|
onClick: () => t(v)()
|
|
373
384
|
},
|
|
374
385
|
defaultTriggerProps: {
|
|
375
386
|
placeholder: e.placeholder,
|
|
376
|
-
open: t(
|
|
387
|
+
open: t(s),
|
|
377
388
|
label: e.triggerLabel,
|
|
378
389
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
379
390
|
mandatory: e.mandatory,
|
|
380
391
|
testId: e.testId,
|
|
381
392
|
multi: e.multi,
|
|
382
393
|
disabled: e.disabled,
|
|
383
|
-
selectedOption: e.multi ? t(O) : t(
|
|
394
|
+
selectedOption: e.multi ? t(O) : t(b),
|
|
384
395
|
displayValue: e.displayValue,
|
|
385
396
|
options: e.options,
|
|
386
397
|
optionNameKey: e.optionNameKey,
|
|
@@ -396,21 +407,21 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
396
407
|
size: e.size,
|
|
397
408
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
398
409
|
allSelected: t(K),
|
|
399
|
-
onKeydown: t(
|
|
410
|
+
onKeydown: t(N),
|
|
400
411
|
onClick: G
|
|
401
412
|
}
|
|
402
413
|
}, () => [
|
|
403
|
-
t($) ? (n(), a("div",
|
|
404
|
-
(n(), X(
|
|
414
|
+
t($) ? (n(), a("div", Ne, [
|
|
415
|
+
(n(), X(be(t($)), {
|
|
405
416
|
placeholder: e.placeholder,
|
|
406
|
-
open: t(
|
|
417
|
+
open: t(s),
|
|
407
418
|
label: e.triggerLabel,
|
|
408
419
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
409
420
|
mandatory: e.mandatory,
|
|
410
421
|
"test-id": e.testId,
|
|
411
422
|
multi: e.multi,
|
|
412
423
|
disabled: e.disabled,
|
|
413
|
-
"selected-option": e.multi ? t(O) : t(
|
|
424
|
+
"selected-option": e.multi ? t(O) : t(b),
|
|
414
425
|
"display-value": e.displayValue,
|
|
415
426
|
options: e.options,
|
|
416
427
|
"option-name-key": e.optionNameKey,
|
|
@@ -426,30 +437,30 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
426
437
|
size: e.size,
|
|
427
438
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
428
439
|
"all-selected": t(K),
|
|
429
|
-
onKeydown: t(
|
|
440
|
+
onKeydown: t(N),
|
|
430
441
|
onClick: G,
|
|
431
|
-
onCopyToClipboard:
|
|
442
|
+
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
432
443
|
}, 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", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
433
|
-
])) :
|
|
434
|
-
e.predefinedTrigger === t(
|
|
435
|
-
i(t(
|
|
436
|
-
onClick:
|
|
444
|
+
])) : d("", !0),
|
|
445
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (n(), a("div", Ve, [
|
|
446
|
+
i(t(we), {
|
|
447
|
+
onClick: l[1] || (l[1] = (o) => t(v)())
|
|
437
448
|
})
|
|
438
|
-
])) :
|
|
439
|
-
e.predefinedTrigger === t(
|
|
449
|
+
])) : d("", !0),
|
|
450
|
+
e.predefinedTrigger === t(k).CHIP ? (n(), a("div", De, [
|
|
440
451
|
i(t(Ie), {
|
|
441
|
-
open: t(
|
|
452
|
+
open: t(s),
|
|
442
453
|
label: e.placeholder,
|
|
443
454
|
"test-id": e.testId,
|
|
444
455
|
options: e.options,
|
|
445
|
-
"selected-option": e.multi ? t(O) : t(
|
|
456
|
+
"selected-option": e.multi ? t(O) : t(b),
|
|
446
457
|
"display-value": e.displayValue,
|
|
447
458
|
multi: e.multi,
|
|
448
459
|
"all-selected": t(K),
|
|
449
|
-
onClick:
|
|
450
|
-
onClear:
|
|
460
|
+
onClick: l[2] || (l[2] = (o) => t(v)()),
|
|
461
|
+
onClear: l[3] || (l[3] = (o) => t(x)())
|
|
451
462
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
452
|
-
])) :
|
|
463
|
+
])) : d("", !0)
|
|
453
464
|
], !0)
|
|
454
465
|
], 512)
|
|
455
466
|
], 2)
|
|
@@ -463,11 +474,11 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
463
474
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
464
475
|
"test-id": e.testId,
|
|
465
476
|
class: "dropdown-field-help-text"
|
|
466
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
477
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
467
478
|
])
|
|
468
|
-
], 16,
|
|
479
|
+
], 16, Be));
|
|
469
480
|
}
|
|
470
481
|
});
|
|
471
482
|
export {
|
|
472
|
-
|
|
483
|
+
Tt as default
|
|
473
484
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TreeDropdown.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TreeDropdown.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6ac5f602"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|