@ironsource/shared-ui 2.1.7-test.3 → 2.1.7-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/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_c607b770_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +151 -147
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +70 -53
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +14 -0
- package/components/dropdown/v4/index.d.ts +78 -2
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/popover/common/Popover.common.d.ts +6 -0
- package/components/popover/common/Popover.common.js +17 -0
- package/components/popover/v3/Popover.vue.js +8 -0
- package/components/popover/{Popover.vue2.js → v3/Popover.vue2.js} +1 -1
- package/components/popover/v4/PopoverV4.vue.d.ts +73 -0
- package/components/popover/v4/PopoverV4.vue.js +7 -0
- package/components/popover/v4/PopoverV4.vue2.js +54 -0
- package/components/popover/v4/index.d.ts +209 -0
- package/components/popover/v4/index.js +6 -0
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +129 -89
- package/components/sortableList/index.d.ts +88 -2
- package/components/table/common/Table.common.js +71 -68
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +103 -100
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +5 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
- package/components/table/v4/DataGridRowsCounter.vue2.js +30 -22
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +4 -4
- package/components/table/v4/MultipleDataGrid.vue2.js +114 -66
- package/components/table/v4/index.d.ts +135 -75
- package/components/table/v4/storyUtils.d.ts +4 -0
- package/components/table-cells/common/Editable.common.js +37 -26
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/index.d.ts +1134 -239
- package/index.js +70 -70
- package/package.json +7 -3
- package/testids/index.d.ts +5 -0
- package/testids/index.js +24 -23
- package/utils/formatNumbers.d.ts +4 -0
- package/utils/formatNumbers.js +11 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_06751538_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_260b9cdc_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +0 -1
- package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
- package/components/popover/Popover.vue.js +0 -8
- /package/components/popover/{Popover.vue.d.ts → v3/Popover.vue.d.ts} +0 -0
- /package/components/popover/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/popover/{index.js → v3/index.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as se, computed as x, openBlock as i, createElementBlock as n, mergeProps as u, unref as t, renderSlot as I, createElementVNode as p, createVNode as a, withCtx as c, Transition as ue, normalizeClass as A, normalizeStyle as ce, isRef as fe, createCommentVNode as r, createTextVNode as g, toDisplayString as ye, withModifiers as $, Fragment as pe, renderList as me, toRaw as h, createBlock as H, resolveDynamicComponent as ge } from "vue";
|
|
2
|
+
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "./DropdownV4.vue.js";
|
|
5
5
|
import Te from "./DefaultDropdownTrigger.vue.js";
|
|
@@ -12,15 +12,15 @@ import "./TreeDropdown.vue.js";
|
|
|
12
12
|
import U from "./OptionV4.vue.js";
|
|
13
13
|
import we from "../../search/v4/SearchV4.vue.js";
|
|
14
14
|
import W from "../../typography/v4/Typography.vue.js";
|
|
15
|
-
import { Dropdown as
|
|
15
|
+
import { Dropdown as ve } from "floating-vue";
|
|
16
16
|
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
17
|
-
import { dropdownCommon as
|
|
17
|
+
import { dropdownCommon as Ie } from "../common/Dropdown.common.js";
|
|
18
18
|
import Ce from "../../loader/v4/Loader.vue.js";
|
|
19
19
|
import { useTestIdAttrs as Se } from "../../../utils/testIds.js";
|
|
20
20
|
import { TRIGGERS as m } from "./Dropdown.types.js";
|
|
21
21
|
import { useElementSize as Ae } from "@vueuse/core";
|
|
22
|
-
import
|
|
23
|
-
const
|
|
22
|
+
import Le from "../../shared/FieldHelpText.vue.js";
|
|
23
|
+
const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke = { key: 1 }, Ne = { key: 2 }, De = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "inline-search-wrapper"
|
|
26
26
|
}, Pe = {
|
|
@@ -29,7 +29,7 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
29
29
|
}, Re = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "loader"
|
|
32
|
-
},
|
|
32
|
+
}, Ve = { key: 2 }, Fe = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "actions-wrapper"
|
|
35
35
|
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" }, ut = /* @__PURE__ */ se({
|
|
@@ -80,6 +80,8 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
80
80
|
optionEndIconType: { default: null },
|
|
81
81
|
valueToCopy: { default: null },
|
|
82
82
|
disabledOptionKey: { default: "disabled" },
|
|
83
|
+
optionTwoLinesVariant: { default: void 0 },
|
|
84
|
+
optionTwoLinesKey: { default: void 0 },
|
|
83
85
|
theme: { default: "light-theme-v4" },
|
|
84
86
|
fullWidth: { type: Boolean, default: !0 },
|
|
85
87
|
optionsListWidth: { default: null },
|
|
@@ -88,8 +90,8 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
88
90
|
overrideOptionCountCalculation: { type: Function, default: null }
|
|
89
91
|
},
|
|
90
92
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard"],
|
|
91
|
-
setup(
|
|
92
|
-
const d =
|
|
93
|
+
setup(e, { expose: M, emit: O }) {
|
|
94
|
+
const d = e, E = {
|
|
93
95
|
MULTILINE_LIST_HEIGHT: 48,
|
|
94
96
|
LIST_HEIGHT: 32 + 4,
|
|
95
97
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -124,118 +126,118 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
124
126
|
apply: oe,
|
|
125
127
|
cancel: ie,
|
|
126
128
|
el: ne,
|
|
127
|
-
onClearAllSelections:
|
|
129
|
+
onClearAllSelections: V,
|
|
128
130
|
clearAll: ae
|
|
129
|
-
} =
|
|
131
|
+
} = Ie(d, O, E), y = Se(d.testId, f), F = x(() => !d.predefinedTrigger || d.predefinedTrigger === m.DEFAULT ? Te : d.predefinedTrigger === m.APP ? he : null), { width: z } = Ae(R), de = x(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === m.DEFAULT || d.predefinedTrigger === m.APP ? z.value - 2 > 240 ? `${z.value - 2}px` : `${E.DROPLIST_MIN_WIDTH}px` : "auto"), re = () => {
|
|
130
132
|
w();
|
|
131
133
|
};
|
|
132
134
|
return M({
|
|
133
135
|
selectItem: D,
|
|
134
136
|
scrollTo: te
|
|
135
|
-
}), (
|
|
137
|
+
}), (v, o) => (i(), n("div", u({
|
|
136
138
|
ref_key: "el",
|
|
137
139
|
ref: ne,
|
|
138
|
-
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled":
|
|
139
|
-
tabindex:
|
|
140
|
-
},
|
|
140
|
+
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
141
|
+
tabindex: e.disabled ? -1 : 0
|
|
142
|
+
}, t(y)[t(f).WRAPPER], {
|
|
141
143
|
onKeydown: o[8] || (o[8] = //@ts-ignore
|
|
142
|
-
(...l) =>
|
|
144
|
+
(...l) => t(T) && t(T)(...l))
|
|
143
145
|
}), [
|
|
144
|
-
v
|
|
146
|
+
I(v.$slots, "label", {}, void 0, !0),
|
|
145
147
|
p("div", Ee, [
|
|
146
|
-
a(
|
|
147
|
-
theme:
|
|
148
|
+
a(t(ve), u({
|
|
149
|
+
theme: e.theme,
|
|
148
150
|
"popper-class": [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
e.popperClass,
|
|
152
|
+
e.theme,
|
|
153
|
+
e.autoSize ? "v-popper--theme-is-dropdown--auto-size" : null,
|
|
152
154
|
"v4-dropdown"
|
|
153
155
|
],
|
|
154
|
-
placement:
|
|
155
|
-
skidding:
|
|
156
|
-
distance:
|
|
157
|
-
flip:
|
|
156
|
+
placement: e.placement,
|
|
157
|
+
skidding: e.isOnTop ? 0 : e.skidding,
|
|
158
|
+
distance: e.distance,
|
|
159
|
+
flip: e.flip,
|
|
158
160
|
triggers: [],
|
|
159
|
-
shown: !!
|
|
161
|
+
shown: !!t(s),
|
|
160
162
|
"auto-hide": !1,
|
|
161
|
-
container:
|
|
162
|
-
"auto-size":
|
|
163
|
-
},
|
|
163
|
+
container: e.container,
|
|
164
|
+
"auto-size": e.autoSize
|
|
165
|
+
}, t(y)[t(f).TRIGGER]), {
|
|
164
166
|
popper: c(() => [
|
|
165
167
|
a(ue, null, {
|
|
166
168
|
default: c(() => [
|
|
167
|
-
|
|
169
|
+
t(s) ? (i(), n("div", {
|
|
168
170
|
key: 0,
|
|
169
171
|
ref_key: "listRef",
|
|
170
172
|
ref: le,
|
|
171
173
|
class: A(["light-theme-v4", {
|
|
172
|
-
"dropdown--disabled":
|
|
173
|
-
"inline-search":
|
|
174
|
+
"dropdown--disabled": e.disabled,
|
|
175
|
+
"inline-search": e.inlineSearch
|
|
174
176
|
}]),
|
|
175
|
-
style: ce({ width:
|
|
177
|
+
style: ce({ width: t(de) })
|
|
176
178
|
}, [
|
|
177
|
-
|
|
179
|
+
t(s) ? (i(), n("div", {
|
|
178
180
|
key: 0,
|
|
179
|
-
class: A(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi":
|
|
181
|
+
class: A(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
180
182
|
onKeydown: o[7] || (o[7] = //@ts-ignore
|
|
181
|
-
(...l) =>
|
|
183
|
+
(...l) => t(T) && t(T)(...l))
|
|
182
184
|
}, [
|
|
183
|
-
|
|
184
|
-
a(
|
|
185
|
-
modelValue:
|
|
185
|
+
t(s) && e.inlineSearch ? (i(), n("div", De, [
|
|
186
|
+
a(t(we), {
|
|
187
|
+
modelValue: t(C),
|
|
186
188
|
"onUpdate:modelValue": [
|
|
187
189
|
o[4] || (o[4] = (l) => fe(C) ? C.value = l : null),
|
|
188
|
-
|
|
190
|
+
e.onClear
|
|
189
191
|
],
|
|
190
|
-
placeholder:
|
|
192
|
+
placeholder: e.inlineSearchPlaceholder,
|
|
191
193
|
variant: "transparent",
|
|
192
194
|
size: "md",
|
|
193
|
-
"auto-focus":
|
|
194
|
-
"test-id":
|
|
195
|
-
onKeydown:
|
|
195
|
+
"auto-focus": e.searchAutoFocus,
|
|
196
|
+
"test-id": e.testId,
|
|
197
|
+
onKeydown: t(T)
|
|
196
198
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
197
199
|
])) : r("", !0),
|
|
198
|
-
v
|
|
200
|
+
I(v.$slots, "input-list", { open: t(s) }, void 0, !0),
|
|
199
201
|
p("div", u({
|
|
200
|
-
class: ["list-container", { "list-container--multi":
|
|
201
|
-
style: { height: `${
|
|
202
|
+
class: ["list-container", { "list-container--multi": e.multi }],
|
|
203
|
+
style: { height: `${t(q)}rem` }
|
|
202
204
|
}, {
|
|
203
|
-
...
|
|
204
|
-
...
|
|
205
|
+
...t(X),
|
|
206
|
+
...t(y)[t(f).LIST_CONTAINER]
|
|
205
207
|
}), [
|
|
206
|
-
p("ul", u(
|
|
208
|
+
p("ul", u(t(Y), {
|
|
207
209
|
role: "listbox",
|
|
208
|
-
class: ["list", { "list--multi":
|
|
210
|
+
class: ["list", { "list--multi": e.multi }]
|
|
209
211
|
}), [
|
|
210
|
-
!
|
|
211
|
-
a(
|
|
212
|
+
!t(j).length && !e.loading ? (i(), n("li", Pe, [
|
|
213
|
+
a(t(W), u({ variant: "body2" }, t(y)[t(f).NO_RESULT]), {
|
|
212
214
|
default: c(() => [
|
|
213
|
-
g(ye(
|
|
215
|
+
g(ye(e.noResultsText), 1)
|
|
214
216
|
]),
|
|
215
217
|
_: 1
|
|
216
218
|
}, 16)
|
|
217
219
|
])) : r("", !0),
|
|
218
|
-
|
|
219
|
-
a(
|
|
220
|
-
a(
|
|
220
|
+
e.loading ? (i(), n("li", Re, [
|
|
221
|
+
a(t(Ce)),
|
|
222
|
+
a(t(W), null, {
|
|
221
223
|
default: c(() => [
|
|
222
224
|
g("Loading...")
|
|
223
225
|
]),
|
|
224
226
|
_: 1
|
|
225
227
|
})
|
|
226
228
|
])) : r("", !0),
|
|
227
|
-
|
|
228
|
-
a(
|
|
229
|
+
e.showSelectAll !== !1 && e.multi ? (i(), n("li", Ve, [
|
|
230
|
+
a(t(U), u(
|
|
229
231
|
{
|
|
230
|
-
"aria-selected":
|
|
231
|
-
"aria-disabled": !!
|
|
232
|
-
"selected-prop":
|
|
233
|
-
"is-indeterminate":
|
|
232
|
+
"aria-selected": t(B),
|
|
233
|
+
"aria-disabled": !!e.disabled,
|
|
234
|
+
"selected-prop": t(B),
|
|
235
|
+
"is-indeterminate": t(J),
|
|
234
236
|
"select-all-option": ""
|
|
235
237
|
},
|
|
236
|
-
|
|
238
|
+
t(y)[t(f).SELECT_ALL],
|
|
237
239
|
{
|
|
238
|
-
onClick: o[5] || (o[5] = $((l) =>
|
|
240
|
+
onClick: o[5] || (o[5] = $((l) => t(Q)(), ["stop"]))
|
|
239
241
|
}
|
|
240
242
|
), {
|
|
241
243
|
default: c(() => [
|
|
@@ -244,38 +246,40 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
244
246
|
_: 1
|
|
245
247
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
246
248
|
])) : r("", !0),
|
|
247
|
-
|
|
249
|
+
t(K).length && !e.loading ? (i(!0), n(pe, { key: 3 }, me(t(K), ({ data: l, index: b }) => (i(), n("li", {
|
|
248
250
|
key: b,
|
|
249
|
-
"aria-selected":
|
|
250
|
-
"aria-disabled": !!
|
|
251
|
-
onClick: $(() =>
|
|
251
|
+
"aria-selected": t(S)(h(t(k)), l),
|
|
252
|
+
"aria-disabled": !!e.disabled,
|
|
253
|
+
onClick: $(() => t(D)(l, b), ["stop"])
|
|
252
254
|
}, [
|
|
253
|
-
v
|
|
255
|
+
I(v.$slots, "default", {
|
|
254
256
|
option: l,
|
|
255
257
|
index: b,
|
|
256
|
-
selected:
|
|
257
|
-
active: h(
|
|
258
|
+
selected: t(S)(h(t(k)), l),
|
|
259
|
+
active: h(t(P)) === b,
|
|
258
260
|
disabled: l[d.disabledOptionKey]
|
|
259
261
|
}, () => [
|
|
260
|
-
a(
|
|
262
|
+
a(t(U), {
|
|
261
263
|
option: l,
|
|
262
|
-
"selected-prop":
|
|
263
|
-
active: h(
|
|
264
|
+
"selected-prop": t(S)(h(t(k)), l),
|
|
265
|
+
active: h(t(P)) === b,
|
|
264
266
|
disabled: l[d.disabledOptionKey],
|
|
265
|
-
"name-key":
|
|
266
|
-
"image-key":
|
|
267
|
-
"icon-key":
|
|
268
|
-
"icon-type":
|
|
269
|
-
"end-icon-key":
|
|
270
|
-
"end-icon-type":
|
|
271
|
-
|
|
267
|
+
"name-key": e.optionNameKey,
|
|
268
|
+
"image-key": e.optionImageKey,
|
|
269
|
+
"icon-key": e.optionIconKey,
|
|
270
|
+
"icon-type": e.optionIconType,
|
|
271
|
+
"end-icon-key": e.optionEndIconKey,
|
|
272
|
+
"end-icon-type": e.optionEndIconType,
|
|
273
|
+
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
274
|
+
"option-two-lines-key": e.optionTwoLinesKey
|
|
275
|
+
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-two-lines-variant", "option-two-lines-key"])
|
|
272
276
|
], !0)
|
|
273
|
-
], 8,
|
|
277
|
+
], 8, Fe))), 128)) : r("", !0)
|
|
274
278
|
], 16)
|
|
275
279
|
], 16),
|
|
276
|
-
|
|
280
|
+
e.multi ? (i(), n("div", ze, [
|
|
277
281
|
p("div", xe, [
|
|
278
|
-
a(
|
|
282
|
+
a(t(L), u(
|
|
279
283
|
{
|
|
280
284
|
ref_key: "clearAll",
|
|
281
285
|
ref: ae,
|
|
@@ -283,9 +287,9 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
283
287
|
variant: "text",
|
|
284
288
|
color: "primary"
|
|
285
289
|
},
|
|
286
|
-
|
|
290
|
+
t(y)[t(f).ACTION_CLEAR_ALL],
|
|
287
291
|
{
|
|
288
|
-
onClick: o[6] || (o[6] = () =>
|
|
292
|
+
onClick: o[6] || (o[6] = () => t(V)(!1))
|
|
289
293
|
}
|
|
290
294
|
), {
|
|
291
295
|
default: c(() => [
|
|
@@ -295,7 +299,7 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
295
299
|
}, 16)
|
|
296
300
|
]),
|
|
297
301
|
p("div", $e, [
|
|
298
|
-
a(
|
|
302
|
+
a(t(L), u(
|
|
299
303
|
{
|
|
300
304
|
ref_key: "cancel",
|
|
301
305
|
ref: ie,
|
|
@@ -303,21 +307,21 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
303
307
|
variant: "outlined",
|
|
304
308
|
color: "primary"
|
|
305
309
|
},
|
|
306
|
-
|
|
307
|
-
{ onClick:
|
|
310
|
+
t(y)[t(f).ACTION_CANCEL],
|
|
311
|
+
{ onClick: t(_) }
|
|
308
312
|
), {
|
|
309
313
|
default: c(() => [
|
|
310
314
|
g(" Cancel ")
|
|
311
315
|
]),
|
|
312
316
|
_: 1
|
|
313
317
|
}, 16, ["onClick"]),
|
|
314
|
-
a(
|
|
318
|
+
a(t(L), u({
|
|
315
319
|
ref_key: "apply",
|
|
316
320
|
ref: oe,
|
|
317
321
|
"data-testid": "mutli-apply",
|
|
318
322
|
size: "small",
|
|
319
323
|
class: "apply-button"
|
|
320
|
-
},
|
|
324
|
+
}, t(y)[t(f).ACTION_APPLY], { onClick: t(ee) }), {
|
|
321
325
|
default: c(() => [
|
|
322
326
|
g("Apply ")
|
|
323
327
|
]),
|
|
@@ -334,68 +338,68 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
334
338
|
default: c(() => [
|
|
335
339
|
p("div", {
|
|
336
340
|
class: A(["button__container", {
|
|
337
|
-
"button__container--open": !!
|
|
338
|
-
[`button__container--${
|
|
339
|
-
"button__container--disabled":
|
|
341
|
+
"button__container--open": !!t(s),
|
|
342
|
+
[`button__container--${e.size}`]: !0,
|
|
343
|
+
"button__container--disabled": e.disabled
|
|
340
344
|
}])
|
|
341
345
|
}, [
|
|
342
|
-
v
|
|
346
|
+
I(v.$slots, "dropdown-trigger", {
|
|
343
347
|
buttonTriggerProps: {
|
|
344
|
-
open:
|
|
345
|
-
disabled:
|
|
346
|
-
label:
|
|
347
|
-
onClick: () =>
|
|
348
|
+
open: t(s),
|
|
349
|
+
disabled: e.disabled,
|
|
350
|
+
label: t(Z) || e.placeholder,
|
|
351
|
+
onClick: () => t(w)()
|
|
348
352
|
}
|
|
349
353
|
}, () => [
|
|
350
354
|
p("div", {
|
|
351
355
|
ref_key: "buttonRef",
|
|
352
356
|
ref: R
|
|
353
357
|
}, [
|
|
354
|
-
|
|
355
|
-
(i(), H(ge(
|
|
356
|
-
placeholder:
|
|
357
|
-
open:
|
|
358
|
-
label:
|
|
359
|
-
"show-feedback-icon":
|
|
360
|
-
mandatory:
|
|
361
|
-
"test-id":
|
|
362
|
-
multi:
|
|
363
|
-
disabled:
|
|
364
|
-
"selected-option":
|
|
365
|
-
"display-value":
|
|
366
|
-
options:
|
|
367
|
-
"option-name-key":
|
|
368
|
-
"option-image-key":
|
|
369
|
-
"option-icon-key":
|
|
370
|
-
"option-icon-type":
|
|
371
|
-
"option-end-icon-key":
|
|
372
|
-
"option-end-icon-type":
|
|
373
|
-
"feedback-variant":
|
|
374
|
-
"value-to-copy":
|
|
375
|
-
"status-dot-type":
|
|
376
|
-
size:
|
|
377
|
-
"show-all-selected-text":
|
|
378
|
-
onKeydown:
|
|
358
|
+
t(F) ? (i(), n("div", Be, [
|
|
359
|
+
(i(), H(ge(t(F)), {
|
|
360
|
+
placeholder: e.placeholder,
|
|
361
|
+
open: t(s),
|
|
362
|
+
label: e.triggerLabel,
|
|
363
|
+
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
364
|
+
mandatory: e.mandatory,
|
|
365
|
+
"test-id": e.testId,
|
|
366
|
+
multi: e.multi,
|
|
367
|
+
disabled: e.disabled,
|
|
368
|
+
"selected-option": e.multi ? t(N) : t(k),
|
|
369
|
+
"display-value": e.displayValue,
|
|
370
|
+
options: e.options,
|
|
371
|
+
"option-name-key": e.optionNameKey,
|
|
372
|
+
"option-image-key": e.optionImageKey,
|
|
373
|
+
"option-icon-key": e.optionIconKey,
|
|
374
|
+
"option-icon-type": e.optionIconType,
|
|
375
|
+
"option-end-icon-key": e.optionEndIconKey,
|
|
376
|
+
"option-end-icon-type": e.optionEndIconType,
|
|
377
|
+
"feedback-variant": e.triggerFeedbackVariant,
|
|
378
|
+
"value-to-copy": e.valueToCopy,
|
|
379
|
+
"status-dot-type": e.statusType,
|
|
380
|
+
size: e.size,
|
|
381
|
+
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
382
|
+
onKeydown: t(G),
|
|
379
383
|
onClick: re,
|
|
380
|
-
onCopyToClipboard: o[0] || (o[0] = (l) =>
|
|
384
|
+
onCopyToClipboard: o[0] || (o[0] = (l) => O("copyToClipboard"))
|
|
381
385
|
}, 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", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "onKeydown"]))
|
|
382
386
|
])) : r("", !0),
|
|
383
|
-
|
|
384
|
-
a(
|
|
385
|
-
onClick: o[1] || (o[1] = (l) =>
|
|
387
|
+
e.predefinedTrigger === t(m).ICON_BUTTON ? (i(), n("div", Ke, [
|
|
388
|
+
a(t(ke), {
|
|
389
|
+
onClick: o[1] || (o[1] = (l) => t(w)())
|
|
386
390
|
})
|
|
387
391
|
])) : r("", !0),
|
|
388
|
-
|
|
389
|
-
a(
|
|
390
|
-
open:
|
|
391
|
-
label:
|
|
392
|
-
"test-id":
|
|
393
|
-
options:
|
|
394
|
-
"selected-option":
|
|
395
|
-
"display-value":
|
|
396
|
-
multi:
|
|
397
|
-
onClick: o[2] || (o[2] = (l) =>
|
|
398
|
-
onClear: o[3] || (o[3] = (l) =>
|
|
392
|
+
e.predefinedTrigger === t(m).CHIP ? (i(), n("div", Ne, [
|
|
393
|
+
a(t(be), {
|
|
394
|
+
open: t(s),
|
|
395
|
+
label: e.placeholder,
|
|
396
|
+
"test-id": e.testId,
|
|
397
|
+
options: e.options,
|
|
398
|
+
"selected-option": e.multi ? t(N) : t(k),
|
|
399
|
+
"display-value": e.displayValue,
|
|
400
|
+
multi: e.multi,
|
|
401
|
+
onClick: o[2] || (o[2] = (l) => t(w)()),
|
|
402
|
+
onClear: o[3] || (o[3] = (l) => t(V)())
|
|
399
403
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
400
404
|
])) : r("", !0)
|
|
401
405
|
], 512)
|
|
@@ -404,16 +408,16 @@ const Le = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ke
|
|
|
404
408
|
]),
|
|
405
409
|
_: 3
|
|
406
410
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
407
|
-
|
|
411
|
+
e.triggerFeedbackText ? (i(), H(Le, {
|
|
408
412
|
key: 0,
|
|
409
|
-
text:
|
|
410
|
-
variant:
|
|
411
|
-
"show-icon":
|
|
412
|
-
"test-id":
|
|
413
|
+
text: e.triggerFeedbackText,
|
|
414
|
+
variant: e.triggerFeedbackVariant,
|
|
415
|
+
"show-icon": e.triggerFeedbackShowIcon,
|
|
416
|
+
"test-id": e.testId,
|
|
413
417
|
class: "dropdown-field-help-text"
|
|
414
418
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
|
|
415
419
|
])
|
|
416
|
-
], 16,
|
|
420
|
+
], 16, Oe));
|
|
417
421
|
}
|
|
418
422
|
});
|
|
419
423
|
export {
|
|
@@ -13,6 +13,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
endIconKey?: string;
|
|
14
14
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
15
15
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
16
|
+
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
17
|
+
optionTwoLinesKey?: string;
|
|
16
18
|
}>, {
|
|
17
19
|
subtitle: string;
|
|
18
20
|
disabled: boolean;
|
|
@@ -27,6 +29,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
29
|
endIconKey: any;
|
|
28
30
|
endIconType: string;
|
|
29
31
|
toolTipPlacement: string;
|
|
32
|
+
optionTwoLinesVariant: any;
|
|
33
|
+
optionTwoLinesKey: any;
|
|
30
34
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
31
35
|
option?: unknown;
|
|
32
36
|
subtitle?: string;
|
|
@@ -42,6 +46,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
46
|
endIconKey?: string;
|
|
43
47
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
44
48
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
49
|
+
optionTwoLinesVariant?: "horizontal" | "vertical";
|
|
50
|
+
optionTwoLinesKey?: string;
|
|
45
51
|
}>, {
|
|
46
52
|
subtitle: string;
|
|
47
53
|
disabled: boolean;
|
|
@@ -56,11 +62,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
62
|
endIconKey: any;
|
|
57
63
|
endIconType: string;
|
|
58
64
|
toolTipPlacement: string;
|
|
65
|
+
optionTwoLinesVariant: any;
|
|
66
|
+
optionTwoLinesKey: any;
|
|
59
67
|
}>>>, {
|
|
60
68
|
option: any;
|
|
61
69
|
disabled: boolean;
|
|
62
70
|
active: boolean;
|
|
63
71
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
72
|
+
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
73
|
+
optionTwoLinesKey: string;
|
|
64
74
|
isIndeterminate: boolean;
|
|
65
75
|
subtitle: string;
|
|
66
76
|
selectAllOption: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-b6a06f00"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|