@ironsource/shared-ui 2.1.6-rc.2 → 2.1.6-rc.21
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +3 -3
- package/components/autocomplete/Autocomplete.vue2.js +82 -61
- package/components/autocomplete/index.d.ts +20 -1
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +21 -21
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +40 -49
- package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +140 -128
- package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +61 -44
- package/components/dropdown/v4/index.d.ts +105 -4
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +24 -21
- package/components/input/v4/index.d.ts +20 -1
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -147
- package/components/table/v4/index.d.ts +14 -2
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/index.d.ts +336 -32
- package/package.json +1 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_bf8e7ff5_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_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 e, renderSlot as w, createElementVNode as y, 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 me, withModifiers as $, Fragment as ye, renderList as pe, toRaw as k, 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
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import Te from "./DefaultDropdownTrigger.vue.js";
|
|
6
|
+
import be from "./IconButtonDropdownTrigger.vue.js";
|
|
7
|
+
import ke from "./ChipDropdownTrigger.vue.js";
|
|
8
|
+
import he from "./AppDropdownTrigger.vue.js";
|
|
9
9
|
import "./ButtonDropdownTrigger.vue.js";
|
|
10
10
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { Dropdown as
|
|
11
|
+
import U from "./OptionV4.vue.js";
|
|
12
|
+
import Ie from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import W from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { Dropdown as ve } from "floating-vue";
|
|
15
15
|
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
16
16
|
import { dropdownCommon as we } from "../common/Dropdown.common.js";
|
|
17
17
|
import Ce from "../../loader/v4/Loader.vue.js";
|
|
18
18
|
import { useTestIdAttrs as Se } from "../../../utils/testIds.js";
|
|
19
19
|
import { TRIGGERS as p } from "./Dropdown.types.js";
|
|
20
20
|
import { useElementSize as Ae } from "@vueuse/core";
|
|
21
|
-
|
|
21
|
+
import Le from "../../shared/FieldHelpText.vue.js";
|
|
22
|
+
const Oe = ["tabindex"], Ee = { style: { width: "100%" } }, Be = { key: 0 }, Ne = { key: 1 }, Ke = { key: 2 }, De = {
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "inline-search-wrapper"
|
|
24
|
-
},
|
|
25
|
+
}, Pe = {
|
|
25
26
|
key: 0,
|
|
26
27
|
class: "no-result-container"
|
|
27
|
-
},
|
|
28
|
+
}, Re = {
|
|
28
29
|
key: 1,
|
|
29
30
|
class: "loader"
|
|
30
|
-
},
|
|
31
|
+
}, Fe = { key: 2 }, ze = ["aria-selected", "aria-disabled", "onClick"], Ve = {
|
|
31
32
|
key: 1,
|
|
32
33
|
class: "actions-wrapper"
|
|
33
|
-
},
|
|
34
|
+
}, xe = { class: "actions-clear-all" }, $e = { class: "actions-apply-cancel" }, st = /* @__PURE__ */ se({
|
|
34
35
|
__name: "DropdownV4",
|
|
35
36
|
props: {
|
|
36
37
|
modelValue: { default: null },
|
|
@@ -73,6 +74,8 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
73
74
|
optionIconKey: { default: "" },
|
|
74
75
|
optionImageKey: { default: "" },
|
|
75
76
|
optionIconType: { default: null },
|
|
77
|
+
optionEndIconKey: { default: "" },
|
|
78
|
+
optionEndIconType: { default: null },
|
|
76
79
|
valueToCopy: { default: null },
|
|
77
80
|
disabledOptionKey: { default: "disabled" },
|
|
78
81
|
theme: { default: "light-theme-v4" },
|
|
@@ -80,9 +83,9 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
80
83
|
optionsListWidth: { default: null },
|
|
81
84
|
statusType: { default: null }
|
|
82
85
|
},
|
|
83
|
-
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
|
|
84
|
-
setup(t, { expose:
|
|
85
|
-
const d = t,
|
|
86
|
+
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard"],
|
|
87
|
+
setup(t, { expose: M, emit: O }) {
|
|
88
|
+
const d = t, E = {
|
|
86
89
|
MULTILINE_LIST_HEIGHT: 48,
|
|
87
90
|
LIST_HEIGHT: 32 + 4,
|
|
88
91
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -90,53 +93,53 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
90
93
|
DROPLIST_MIN_WIDTH: 240,
|
|
91
94
|
VERSION: 4
|
|
92
95
|
}, {
|
|
93
|
-
onKeydown:
|
|
96
|
+
onKeydown: T,
|
|
94
97
|
open: s,
|
|
95
|
-
toggleMenu:
|
|
96
|
-
onButtonKeydown:
|
|
98
|
+
toggleMenu: h,
|
|
99
|
+
onButtonKeydown: G,
|
|
97
100
|
query: C,
|
|
98
|
-
containerProps:
|
|
99
|
-
calculateTableHeight:
|
|
100
|
-
wrapperProps:
|
|
101
|
-
filteredOptions:
|
|
102
|
-
allSelected:
|
|
103
|
-
isIndeterminate:
|
|
104
|
-
onSelectAll:
|
|
105
|
-
virtualOptions:
|
|
101
|
+
containerProps: X,
|
|
102
|
+
calculateTableHeight: q,
|
|
103
|
+
wrapperProps: Y,
|
|
104
|
+
filteredOptions: j,
|
|
105
|
+
allSelected: B,
|
|
106
|
+
isIndeterminate: J,
|
|
107
|
+
onSelectAll: Q,
|
|
108
|
+
virtualOptions: N,
|
|
106
109
|
isSelected: S,
|
|
107
|
-
selectedOption:
|
|
108
|
-
selectedOptionPrevious:
|
|
109
|
-
selectedValue:
|
|
110
|
+
selectedOption: b,
|
|
111
|
+
selectedOptionPrevious: K,
|
|
112
|
+
selectedValue: Z,
|
|
110
113
|
onSelect: D,
|
|
111
|
-
activeIndex:
|
|
112
|
-
onCancel:
|
|
113
|
-
onApply:
|
|
114
|
-
scrollTo:
|
|
115
|
-
listRef:
|
|
116
|
-
buttonRef:
|
|
117
|
-
apply:
|
|
118
|
-
cancel:
|
|
119
|
-
el:
|
|
120
|
-
onClearAllSelections:
|
|
121
|
-
clearAll:
|
|
122
|
-
} = we(d,
|
|
123
|
-
|
|
114
|
+
activeIndex: P,
|
|
115
|
+
onCancel: _,
|
|
116
|
+
onApply: ee,
|
|
117
|
+
scrollTo: te,
|
|
118
|
+
listRef: le,
|
|
119
|
+
buttonRef: R,
|
|
120
|
+
apply: oe,
|
|
121
|
+
cancel: ie,
|
|
122
|
+
el: ne,
|
|
123
|
+
onClearAllSelections: F,
|
|
124
|
+
clearAll: ae
|
|
125
|
+
} = we(d, O, E), m = Se(d.testId, f), z = x(() => !d.predefinedTrigger || d.predefinedTrigger === p.DEFAULT ? Te : d.predefinedTrigger === p.APP ? he : null), { width: V } = Ae(R), de = x(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === p.DEFAULT || d.predefinedTrigger === p.APP ? V.value - 2 > 240 ? `${V.value - 2}px` : `${E.DROPLIST_MIN_WIDTH}px` : "auto"), re = () => {
|
|
126
|
+
h();
|
|
124
127
|
};
|
|
125
|
-
return
|
|
128
|
+
return M({
|
|
126
129
|
selectItem: D,
|
|
127
|
-
scrollTo:
|
|
128
|
-
}), (
|
|
130
|
+
scrollTo: te
|
|
131
|
+
}), (I, o) => (i(), n("div", u({
|
|
129
132
|
ref_key: "el",
|
|
130
|
-
ref:
|
|
133
|
+
ref: ne,
|
|
131
134
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": t.disabled, "full-width": t.fullWidth }]],
|
|
132
135
|
tabindex: t.disabled ? -1 : 0
|
|
133
136
|
}, e(m)[e(f).WRAPPER], {
|
|
134
|
-
onKeydown: o[
|
|
135
|
-
(...l) => e(
|
|
137
|
+
onKeydown: o[8] || (o[8] = //@ts-ignore
|
|
138
|
+
(...l) => e(T) && e(T)(...l))
|
|
136
139
|
}), [
|
|
137
|
-
w(
|
|
138
|
-
y("div",
|
|
139
|
-
a(e(
|
|
140
|
+
w(I.$slots, "label", {}, void 0, !0),
|
|
141
|
+
y("div", Ee, [
|
|
142
|
+
a(e(ve), u({
|
|
140
143
|
theme: t.theme,
|
|
141
144
|
"popper-class": [
|
|
142
145
|
t.popperClass,
|
|
@@ -155,29 +158,29 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
155
158
|
"auto-size": t.autoSize
|
|
156
159
|
}, e(m)[e(f).TRIGGER]), {
|
|
157
160
|
popper: c(() => [
|
|
158
|
-
a(
|
|
161
|
+
a(ue, null, {
|
|
159
162
|
default: c(() => [
|
|
160
163
|
e(s) ? (i(), n("div", {
|
|
161
164
|
key: 0,
|
|
162
165
|
ref_key: "listRef",
|
|
163
|
-
ref:
|
|
164
|
-
class:
|
|
166
|
+
ref: le,
|
|
167
|
+
class: A(["light-theme-v4", {
|
|
165
168
|
"dropdown--disabled": t.disabled,
|
|
166
169
|
"inline-search": t.inlineSearch
|
|
167
170
|
}]),
|
|
168
|
-
style:
|
|
171
|
+
style: ce({ width: e(de) })
|
|
169
172
|
}, [
|
|
170
173
|
e(s) ? (i(), n("div", {
|
|
171
174
|
key: 0,
|
|
172
|
-
class: "dropdown-list-wrapper",
|
|
173
|
-
onKeydown: o[
|
|
174
|
-
(...l) => e(
|
|
175
|
+
class: A(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": t.multi }]),
|
|
176
|
+
onKeydown: o[7] || (o[7] = //@ts-ignore
|
|
177
|
+
(...l) => e(T) && e(T)(...l))
|
|
175
178
|
}, [
|
|
176
|
-
e(s) && t.inlineSearch ? (i(), n("div",
|
|
177
|
-
a(e(
|
|
179
|
+
e(s) && t.inlineSearch ? (i(), n("div", De, [
|
|
180
|
+
a(e(Ie), {
|
|
178
181
|
modelValue: e(C),
|
|
179
182
|
"onUpdate:modelValue": [
|
|
180
|
-
o[
|
|
183
|
+
o[4] || (o[4] = (l) => fe(C) ? C.value = l : null),
|
|
181
184
|
t.onClear
|
|
182
185
|
],
|
|
183
186
|
placeholder: t.inlineSearchPlaceholder,
|
|
@@ -185,50 +188,50 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
185
188
|
size: "md",
|
|
186
189
|
"auto-focus": t.searchAutoFocus,
|
|
187
190
|
"test-id": t.testId,
|
|
188
|
-
onKeydown: e(
|
|
191
|
+
onKeydown: e(T)
|
|
189
192
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
190
193
|
])) : r("", !0),
|
|
191
|
-
w(
|
|
194
|
+
w(I.$slots, "input-list", { open: e(s) }, void 0, !0),
|
|
192
195
|
y("div", u({
|
|
193
196
|
class: ["list-container", { "list-container--multi": t.multi }],
|
|
194
|
-
style: { height: `${e(
|
|
197
|
+
style: { height: `${e(q)}rem` }
|
|
195
198
|
}, {
|
|
196
|
-
...e(
|
|
199
|
+
...e(X),
|
|
197
200
|
...e(m)[e(f).LIST_CONTAINER]
|
|
198
201
|
}), [
|
|
199
|
-
y("ul", u(e(
|
|
202
|
+
y("ul", u(e(Y), {
|
|
200
203
|
role: "listbox",
|
|
201
204
|
class: ["list", { "list--multi": t.multi }]
|
|
202
205
|
}), [
|
|
203
|
-
!e(
|
|
204
|
-
a(e(
|
|
206
|
+
!e(j).length && !t.loading ? (i(), n("li", Pe, [
|
|
207
|
+
a(e(W), u({ variant: "body2" }, e(m)[e(f).NO_RESULT]), {
|
|
205
208
|
default: c(() => [
|
|
206
|
-
g(
|
|
209
|
+
g(me(t.noResultsText), 1)
|
|
207
210
|
]),
|
|
208
211
|
_: 1
|
|
209
212
|
}, 16)
|
|
210
213
|
])) : r("", !0),
|
|
211
|
-
t.loading ? (i(), n("li",
|
|
214
|
+
t.loading ? (i(), n("li", Re, [
|
|
212
215
|
a(e(Ce)),
|
|
213
|
-
a(e(
|
|
216
|
+
a(e(W), null, {
|
|
214
217
|
default: c(() => [
|
|
215
218
|
g("Loading...")
|
|
216
219
|
]),
|
|
217
220
|
_: 1
|
|
218
221
|
})
|
|
219
222
|
])) : r("", !0),
|
|
220
|
-
t.showSelectAll !== !1 && t.multi ? (i(), n("li",
|
|
221
|
-
a(e(
|
|
223
|
+
t.showSelectAll !== !1 && t.multi ? (i(), n("li", Fe, [
|
|
224
|
+
a(e(U), u(
|
|
222
225
|
{
|
|
223
|
-
"aria-selected": e(
|
|
226
|
+
"aria-selected": e(B),
|
|
224
227
|
"aria-disabled": !!t.disabled,
|
|
225
|
-
"selected-prop": e(
|
|
226
|
-
"is-indeterminate": e(
|
|
228
|
+
"selected-prop": e(B),
|
|
229
|
+
"is-indeterminate": e(J),
|
|
227
230
|
"select-all-option": ""
|
|
228
231
|
},
|
|
229
232
|
e(m)[e(f).SELECT_ALL],
|
|
230
233
|
{
|
|
231
|
-
onClick: o[
|
|
234
|
+
onClick: o[5] || (o[5] = $((l) => e(Q)(), ["stop"]))
|
|
232
235
|
}
|
|
233
236
|
), {
|
|
234
237
|
default: c(() => [
|
|
@@ -237,45 +240,47 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
237
240
|
_: 1
|
|
238
241
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
239
242
|
])) : r("", !0),
|
|
240
|
-
e(
|
|
241
|
-
key:
|
|
242
|
-
"aria-selected": e(S)(
|
|
243
|
+
e(N).length && !t.loading ? (i(!0), n(ye, { key: 3 }, pe(e(N), ({ data: l, index: v }) => (i(), n("li", {
|
|
244
|
+
key: v,
|
|
245
|
+
"aria-selected": e(S)(k(e(b)), l),
|
|
243
246
|
"aria-disabled": !!t.disabled,
|
|
244
|
-
onClick:
|
|
247
|
+
onClick: $(() => e(D)(l, v), ["stop"])
|
|
245
248
|
}, [
|
|
246
|
-
w(
|
|
249
|
+
w(I.$slots, "default", {
|
|
247
250
|
option: l,
|
|
248
|
-
selected: e(S)(
|
|
249
|
-
active:
|
|
251
|
+
selected: e(S)(k(e(b)), l),
|
|
252
|
+
active: k(e(P)) === v,
|
|
250
253
|
disabled: l[d.disabledOptionKey]
|
|
251
254
|
}, () => [
|
|
252
|
-
a(e(
|
|
255
|
+
a(e(U), {
|
|
253
256
|
option: l,
|
|
254
|
-
selected: e(S)(
|
|
255
|
-
active:
|
|
257
|
+
selected: e(S)(k(e(b)), l),
|
|
258
|
+
active: k(e(P)) === v,
|
|
256
259
|
disabled: l[d.disabledOptionKey],
|
|
257
260
|
"name-key": t.optionNameKey,
|
|
258
261
|
"image-key": t.optionImageKey,
|
|
259
262
|
"icon-key": t.optionIconKey,
|
|
260
|
-
"icon-type": t.optionIconType
|
|
261
|
-
|
|
263
|
+
"icon-type": t.optionIconType,
|
|
264
|
+
"end-icon-key": t.optionEndIconKey,
|
|
265
|
+
"end-icon-type": t.optionEndIconType
|
|
266
|
+
}, null, 8, ["option", "selected", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type"])
|
|
262
267
|
], !0)
|
|
263
268
|
], 8, ze))), 128)) : r("", !0)
|
|
264
269
|
], 16)
|
|
265
270
|
], 16),
|
|
266
271
|
t.multi ? (i(), n("div", Ve, [
|
|
267
|
-
y("div",
|
|
268
|
-
a(e(
|
|
272
|
+
y("div", xe, [
|
|
273
|
+
a(e(L), u(
|
|
269
274
|
{
|
|
270
275
|
ref_key: "clearAll",
|
|
271
|
-
ref:
|
|
276
|
+
ref: ae,
|
|
272
277
|
size: "small",
|
|
273
278
|
variant: "text",
|
|
274
279
|
color: "primary"
|
|
275
280
|
},
|
|
276
281
|
e(m)[e(f).ACTION_CLEAR_ALL],
|
|
277
282
|
{
|
|
278
|
-
onClick: o[
|
|
283
|
+
onClick: o[6] || (o[6] = () => e(F)(!1))
|
|
279
284
|
}
|
|
280
285
|
), {
|
|
281
286
|
default: c(() => [
|
|
@@ -284,30 +289,30 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
284
289
|
_: 1
|
|
285
290
|
}, 16)
|
|
286
291
|
]),
|
|
287
|
-
y("div",
|
|
288
|
-
a(e(
|
|
292
|
+
y("div", $e, [
|
|
293
|
+
a(e(L), u(
|
|
289
294
|
{
|
|
290
295
|
ref_key: "cancel",
|
|
291
|
-
ref:
|
|
296
|
+
ref: ie,
|
|
292
297
|
size: "small",
|
|
293
298
|
variant: "outlined",
|
|
294
299
|
color: "primary"
|
|
295
300
|
},
|
|
296
301
|
e(m)[e(f).ACTION_CANCEL],
|
|
297
|
-
{ onClick: e(
|
|
302
|
+
{ onClick: e(_) }
|
|
298
303
|
), {
|
|
299
304
|
default: c(() => [
|
|
300
305
|
g(" Cancel ")
|
|
301
306
|
]),
|
|
302
307
|
_: 1
|
|
303
308
|
}, 16, ["onClick"]),
|
|
304
|
-
a(e(
|
|
309
|
+
a(e(L), u({
|
|
305
310
|
ref_key: "apply",
|
|
306
|
-
ref:
|
|
311
|
+
ref: oe,
|
|
307
312
|
"data-testid": "mutli-apply",
|
|
308
313
|
size: "small",
|
|
309
314
|
class: "apply-button"
|
|
310
|
-
}, e(m)[e(f).ACTION_APPLY], { onClick: e(
|
|
315
|
+
}, e(m)[e(f).ACTION_APPLY], { onClick: e(ee) }), {
|
|
311
316
|
default: c(() => [
|
|
312
317
|
g("Apply ")
|
|
313
318
|
]),
|
|
@@ -315,7 +320,7 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
315
320
|
}, 16, ["onClick"])
|
|
316
321
|
])
|
|
317
322
|
])) : r("", !0)
|
|
318
|
-
],
|
|
323
|
+
], 34)) : r("", !0)
|
|
319
324
|
], 6)) : r("", !0)
|
|
320
325
|
]),
|
|
321
326
|
_: 3
|
|
@@ -323,67 +328,66 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
323
328
|
]),
|
|
324
329
|
default: c(() => [
|
|
325
330
|
y("div", {
|
|
326
|
-
class:
|
|
331
|
+
class: A(["button__container", {
|
|
327
332
|
"button__container--open": !!e(s),
|
|
328
333
|
[`button__container--${t.size}`]: !0,
|
|
329
334
|
"button__container--disabled": t.disabled
|
|
330
335
|
}])
|
|
331
336
|
}, [
|
|
332
|
-
w(
|
|
337
|
+
w(I.$slots, "dropdown-trigger", {
|
|
333
338
|
buttonTriggerProps: {
|
|
334
339
|
open: e(s),
|
|
335
340
|
disabled: t.disabled,
|
|
336
|
-
label: e(
|
|
337
|
-
onClick: () => e(
|
|
341
|
+
label: e(Z) || t.placeholder,
|
|
342
|
+
onClick: () => e(h)()
|
|
338
343
|
}
|
|
339
344
|
}, () => [
|
|
340
345
|
y("div", {
|
|
341
346
|
ref_key: "buttonRef",
|
|
342
|
-
ref:
|
|
347
|
+
ref: R
|
|
343
348
|
}, [
|
|
344
|
-
e(
|
|
345
|
-
(i(),
|
|
349
|
+
e(z) ? (i(), n("div", Be, [
|
|
350
|
+
(i(), H(ge(e(z)), {
|
|
346
351
|
placeholder: t.placeholder,
|
|
347
352
|
open: e(s),
|
|
348
353
|
label: t.triggerLabel,
|
|
349
|
-
"hover-help-text": t.triggerHelperText,
|
|
350
|
-
"feedback-text": t.triggerFeedbackText,
|
|
351
|
-
"feedback-variant": t.triggerFeedbackVariant,
|
|
352
354
|
"show-feedback-icon": t.triggerFeedbackShowIcon,
|
|
353
355
|
mandatory: t.mandatory,
|
|
354
356
|
"test-id": t.testId,
|
|
355
357
|
multi: t.multi,
|
|
356
358
|
disabled: t.disabled,
|
|
357
|
-
"selected-option": t.multi ? e(
|
|
359
|
+
"selected-option": t.multi ? e(K) : e(b),
|
|
358
360
|
"display-value": t.displayValue,
|
|
359
361
|
options: t.options,
|
|
360
362
|
"option-name-key": t.optionNameKey,
|
|
361
363
|
"option-image-key": t.optionImageKey,
|
|
362
364
|
"option-icon-key": t.optionIconKey,
|
|
363
365
|
"option-icon-type": t.optionIconType,
|
|
366
|
+
"feedback-variant": t.triggerFeedbackVariant,
|
|
364
367
|
"value-to-copy": t.valueToCopy,
|
|
365
368
|
"status-dot-type": t.statusType,
|
|
366
369
|
size: t.size,
|
|
367
|
-
onKeydown: e(
|
|
368
|
-
onClick:
|
|
369
|
-
|
|
370
|
+
onKeydown: e(G),
|
|
371
|
+
onClick: re,
|
|
372
|
+
onCopyToClipboard: o[0] || (o[0] = (l) => O("copyToClipboard"))
|
|
373
|
+
}, 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", "feedback-variant", "value-to-copy", "status-dot-type", "size", "onKeydown"]))
|
|
370
374
|
])) : r("", !0),
|
|
371
375
|
t.predefinedTrigger === e(p).ICON_BUTTON ? (i(), n("div", Ne, [
|
|
372
|
-
a(e(
|
|
373
|
-
onClick: o[
|
|
376
|
+
a(e(be), {
|
|
377
|
+
onClick: o[1] || (o[1] = (l) => e(h)())
|
|
374
378
|
})
|
|
375
379
|
])) : r("", !0),
|
|
376
|
-
t.predefinedTrigger === e(p).CHIP ? (i(), n("div",
|
|
377
|
-
a(e(
|
|
380
|
+
t.predefinedTrigger === e(p).CHIP ? (i(), n("div", Ke, [
|
|
381
|
+
a(e(ke), {
|
|
378
382
|
open: e(s),
|
|
379
383
|
label: t.placeholder,
|
|
380
384
|
"test-id": t.testId,
|
|
381
385
|
options: t.options,
|
|
382
|
-
"selected-option": t.multi ? e(
|
|
386
|
+
"selected-option": t.multi ? e(K) : e(b),
|
|
383
387
|
"display-value": t.displayValue,
|
|
384
388
|
multi: t.multi,
|
|
385
|
-
onClick: o[
|
|
386
|
-
onClear: o[
|
|
389
|
+
onClick: o[2] || (o[2] = (l) => e(h)()),
|
|
390
|
+
onClear: o[3] || (o[3] = (l) => e(F)())
|
|
387
391
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
388
392
|
])) : r("", !0)
|
|
389
393
|
], 512)
|
|
@@ -391,11 +395,19 @@ const Le = ["tabindex"], Oe = { style: { width: "100%" } }, Be = { key: 0 }, Ne
|
|
|
391
395
|
], 2)
|
|
392
396
|
]),
|
|
393
397
|
_: 3
|
|
394
|
-
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"])
|
|
398
|
+
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
399
|
+
t.triggerFeedbackText ? (i(), H(Le, {
|
|
400
|
+
key: 0,
|
|
401
|
+
text: t.triggerFeedbackText,
|
|
402
|
+
variant: t.triggerFeedbackVariant,
|
|
403
|
+
"show-icon": t.triggerFeedbackShowIcon,
|
|
404
|
+
"test-id": t.testId,
|
|
405
|
+
class: "dropdown-field-help-text"
|
|
406
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
|
|
395
407
|
])
|
|
396
|
-
], 16,
|
|
408
|
+
], 16, Oe));
|
|
397
409
|
}
|
|
398
410
|
});
|
|
399
411
|
export {
|
|
400
|
-
|
|
412
|
+
st as default
|
|
401
413
|
};
|
|
@@ -10,6 +10,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
imageKey?: string;
|
|
11
11
|
iconKey?: string;
|
|
12
12
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
13
|
+
endIconKey?: string;
|
|
14
|
+
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
13
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";
|
|
14
16
|
}>, {
|
|
15
17
|
subtitle: string;
|
|
@@ -22,6 +24,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
24
|
imageKey: any;
|
|
23
25
|
iconKey: any;
|
|
24
26
|
iconType: string;
|
|
27
|
+
endIconKey: any;
|
|
28
|
+
endIconType: string;
|
|
25
29
|
toolTipPlacement: string;
|
|
26
30
|
}>, {}, 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<{
|
|
27
31
|
option?: unknown;
|
|
@@ -35,6 +39,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
39
|
imageKey?: string;
|
|
36
40
|
iconKey?: string;
|
|
37
41
|
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
42
|
+
endIconKey?: string;
|
|
43
|
+
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
38
44
|
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";
|
|
39
45
|
}>, {
|
|
40
46
|
subtitle: string;
|
|
@@ -47,11 +53,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
53
|
imageKey: any;
|
|
48
54
|
iconKey: any;
|
|
49
55
|
iconType: string;
|
|
56
|
+
endIconKey: any;
|
|
57
|
+
endIconType: string;
|
|
50
58
|
toolTipPlacement: string;
|
|
51
59
|
}>>>, {
|
|
52
60
|
option: any;
|
|
53
61
|
disabled: boolean;
|
|
54
62
|
active: boolean;
|
|
63
|
+
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
55
64
|
isIndeterminate: boolean;
|
|
56
65
|
subtitle: string;
|
|
57
66
|
selectAllOption: boolean;
|
|
@@ -59,11 +68,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
68
|
imageKey: string;
|
|
60
69
|
iconKey: string;
|
|
61
70
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
71
|
+
endIconKey: string;
|
|
62
72
|
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";
|
|
63
73
|
}>, {
|
|
64
74
|
image?(_: {}): any;
|
|
65
75
|
"icon-start"?(_: {}): any;
|
|
66
76
|
default?(_: {}): any;
|
|
77
|
+
"icon-end"?(_: {}): any;
|
|
67
78
|
}>;
|
|
68
79
|
export default _default;
|
|
69
80
|
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 e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e0c24b6a"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|