@ironsource/shared-ui 2.1.1 → 2.1.2
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_5d9c6052_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c859928d_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_5fa01c78_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_258b9f7e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +1 -0
- package/MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css +1 -0
- package/StatusDot.vue_vue_type_style_index_0_scoped_0c8a38e5_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +5 -0
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +33 -29
- package/components/appHeader/index.d.ts +9 -0
- package/components/dropdown/common/Dropdown.common.js +18 -18
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +37 -37
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +48 -40
- package/components/dropdown/v4/DropdownV4.vue.d.ts +11 -3
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +107 -102
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +283 -0
- package/components/dropdown/v4/index.d.ts +54 -9
- package/components/icon/v3/Icon.vue2.js +1 -1
- package/components/icon/v3/icons/FiltersSearch.vue.js +41 -0
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +29 -27
- package/components/inlineCopy/index.d.ts +11 -0
- package/components/multibar/MultiBar.types.d.ts +1 -0
- package/components/multibar/MultiBar.vue.d.ts +10 -0
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +58 -51
- package/components/multibar/MultiBarMenu.vue.d.ts +5 -0
- package/components/multibar/MultiBarMenu.vue.js +3 -3
- package/components/multibar/MultiBarMenu.vue2.js +23 -18
- package/components/multibar/index.d.ts +18 -0
- package/components/statusDot/StatusDot.vue.d.ts +30 -0
- package/components/statusDot/StatusDot.vue.js +7 -0
- package/components/statusDot/StatusDot.vue2.js +15 -0
- package/components/statusDot/index.d.ts +17 -0
- package/components/statusDot/index.js +6 -0
- package/components/statusDot/types.d.ts +2 -0
- package/components/table/common/Table.common.js +31 -31
- package/components/table/v4/DataGrid.vue.d.ts +8 -3
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +76 -75
- package/components/table/v4/index.d.ts +27 -8
- package/components/toggle/v4/ToggleV4.vue.js +5 -5
- package/components/toggle/v4/ToggleV4.vue2.js +1 -1
- package/index.d.ts +232 -34
- package/index.js +104 -102
- package/package.json +6 -2
- package/testids/index.d.ts +6 -0
- package/testids/index.js +15 -14
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_a64a46d0_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_5afbd3dd_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c38e97df_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_09d33c49_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_06dcfe6d_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_39577dfc_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_f5061530_lang.css +0 -1
- package/MultiBarMenu.vue_vue_type_style_index_0_scoped_ae2bbc6c_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ef31fecc_lang.css +0 -1
- /package/components/icon/{icons → v3/icons}/FiltersSearch.vue.d.ts +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_258b9f7e_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ae, computed as V, openBlock as i, createElementBlock as n, mergeProps as s, unref as e, renderSlot as I, createElementVNode as p, createVNode as a, withCtx as u, Transition as de, normalizeClass as x, normalizeStyle as re, isRef as se, createCommentVNode as d, createTextVNode as g, toDisplayString as ue, withModifiers as F, Fragment as ce, renderList as fe, toRaw as k, createBlock as me, resolveDynamicComponent as pe } from "vue";
|
|
2
2
|
import A from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "./DropdownV4.vue.js";
|
|
5
5
|
import ye from "./DefaultDropdownTrigger.vue.js";
|
|
6
6
|
import ge from "./IconButtonDropdownTrigger.vue.js";
|
|
7
7
|
import he from "./ChipDropdownTrigger.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import Te from "./AppDropdownTrigger.vue.js";
|
|
9
|
+
import $ from "./OptionV4.vue.js";
|
|
10
|
+
import ke from "../../search/v4/SearchV4.vue.js";
|
|
11
|
+
import H from "../../typography/v4/Typography.vue.js";
|
|
12
12
|
import { Dropdown as ve } from "floating-vue";
|
|
13
13
|
import { DropdownTestIdModifiers as c } from "../../../testids/index.js";
|
|
14
14
|
import { dropdownCommon as be } from "../common/Dropdown.common.js";
|
|
15
|
-
import
|
|
16
|
-
import { useTestIdAttrs as
|
|
15
|
+
import Ie from "../../loader/v4/Loader.vue.js";
|
|
16
|
+
import { useTestIdAttrs as Ce } from "../../../utils/testIds.js";
|
|
17
17
|
import { TRIGGERS as y } from "./Dropdown.types.js";
|
|
18
|
-
import { useElementSize as
|
|
19
|
-
const Se = ["tabindex"], Ae = { style: {
|
|
18
|
+
import { useElementSize as we } from "@vueuse/core";
|
|
19
|
+
const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Ne = { key: 1 }, Be = { key: 2 }, Oe = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "inline-search-wrapper"
|
|
22
|
-
},
|
|
22
|
+
}, De = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "no-result-container"
|
|
25
|
-
},
|
|
25
|
+
}, Ee = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "loader"
|
|
28
|
-
}, Re = { key: 2 },
|
|
28
|
+
}, Re = { key: 2 }, Pe = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
29
29
|
key: 1,
|
|
30
30
|
class: "actions-wrapper"
|
|
31
|
-
},
|
|
31
|
+
}, Ke = { class: "actions-clear-all" }, Ve = { class: "actions-apply-cancel" }, ot = /* @__PURE__ */ ae({
|
|
32
32
|
__name: "DropdownV4",
|
|
33
33
|
props: {
|
|
34
34
|
modelValue: { default: null },
|
|
@@ -41,7 +41,7 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
41
41
|
testId: { default: "" },
|
|
42
42
|
isOpen: { type: Boolean },
|
|
43
43
|
options: null,
|
|
44
|
-
showSelectAll: { type: Boolean },
|
|
44
|
+
showSelectAll: { type: Boolean, default: !0 },
|
|
45
45
|
defaultOpen: { type: Boolean, default: !1 },
|
|
46
46
|
keepOpen: { type: Boolean, default: !1 },
|
|
47
47
|
autoSize: { type: Boolean, default: !1 },
|
|
@@ -56,7 +56,7 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
56
56
|
triggerHelperText: { default: "" },
|
|
57
57
|
triggerFeedbackText: { default: "" },
|
|
58
58
|
triggerFeedbackVariant: { default: null },
|
|
59
|
-
size: { default: "
|
|
59
|
+
size: { default: "medium" },
|
|
60
60
|
mandatory: { type: Boolean, default: !1 },
|
|
61
61
|
predefinedTrigger: { default: y.DEFAULT },
|
|
62
62
|
inlineSearch: { type: Boolean, default: !1 },
|
|
@@ -73,61 +73,63 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
73
73
|
valueToCopy: { default: null },
|
|
74
74
|
theme: { default: "light-theme-v4" },
|
|
75
75
|
fullWidth: { type: Boolean, default: !0 },
|
|
76
|
-
optionsListWidth: { default: null }
|
|
76
|
+
optionsListWidth: { default: null },
|
|
77
|
+
statusType: { default: null }
|
|
77
78
|
},
|
|
78
79
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
|
|
79
|
-
setup(t, { expose:
|
|
80
|
-
const r = t,
|
|
80
|
+
setup(t, { expose: U, emit: W }) {
|
|
81
|
+
const r = t, L = {
|
|
81
82
|
MULTILINE_LIST_HEIGHT: 48,
|
|
82
83
|
LIST_HEIGHT: 32 + 4,
|
|
83
|
-
MAX_NUMBER_OF_OPTIONS: 7,
|
|
84
|
-
PADDING_PX:
|
|
84
|
+
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
85
|
+
PADDING_PX: 0,
|
|
86
|
+
DROPLIST_MIN_WIDTH: 240
|
|
85
87
|
}, {
|
|
86
88
|
onKeydown: h,
|
|
87
89
|
open: f,
|
|
88
|
-
toggleMenu:
|
|
89
|
-
onButtonKeydown:
|
|
90
|
-
query:
|
|
91
|
-
containerProps:
|
|
92
|
-
calculateTableHeight:
|
|
93
|
-
wrapperProps:
|
|
94
|
-
filteredOptions:
|
|
90
|
+
toggleMenu: C,
|
|
91
|
+
onButtonKeydown: M,
|
|
92
|
+
query: w,
|
|
93
|
+
containerProps: G,
|
|
94
|
+
calculateTableHeight: X,
|
|
95
|
+
wrapperProps: N,
|
|
96
|
+
filteredOptions: q,
|
|
95
97
|
allSelected: B,
|
|
96
|
-
isIndeterminate:
|
|
97
|
-
onSelectAll:
|
|
98
|
-
virtualOptions:
|
|
98
|
+
isIndeterminate: Y,
|
|
99
|
+
onSelectAll: j,
|
|
100
|
+
virtualOptions: O,
|
|
99
101
|
isSelected: S,
|
|
100
|
-
selectedOption:
|
|
101
|
-
onSelect:
|
|
102
|
+
selectedOption: T,
|
|
103
|
+
onSelect: D,
|
|
102
104
|
activeIndex: E,
|
|
103
|
-
onCancel:
|
|
104
|
-
onApply:
|
|
105
|
-
scrollTo:
|
|
106
|
-
listRef:
|
|
107
|
-
buttonRef:
|
|
108
|
-
apply:
|
|
109
|
-
cancel:
|
|
110
|
-
el:
|
|
111
|
-
onClearAllSelections:
|
|
112
|
-
clearAll:
|
|
113
|
-
} = be(r,
|
|
114
|
-
|
|
115
|
-
selectItem:
|
|
116
|
-
scrollTo:
|
|
105
|
+
onCancel: J,
|
|
106
|
+
onApply: Q,
|
|
107
|
+
scrollTo: Z,
|
|
108
|
+
listRef: _,
|
|
109
|
+
buttonRef: R,
|
|
110
|
+
apply: ee,
|
|
111
|
+
cancel: te,
|
|
112
|
+
el: le,
|
|
113
|
+
onClearAllSelections: P,
|
|
114
|
+
clearAll: oe
|
|
115
|
+
} = be(r, W, L);
|
|
116
|
+
U({
|
|
117
|
+
selectItem: D,
|
|
118
|
+
scrollTo: Z
|
|
117
119
|
});
|
|
118
|
-
const m =
|
|
119
|
-
|
|
120
|
+
const m = Ce(r.testId, c), z = V(() => !r.predefinedTrigger || r.predefinedTrigger === y.DEFAULT ? ye : r.predefinedTrigger === y.APP ? Te : null), { width: K } = we(R), ie = V(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === y.DEFAULT || r.predefinedTrigger === y.APP ? K.value - 2 > 240 ? `${K.value - 2}px` : `${L.DROPLIST_MIN_WIDTH}px` : "auto"), ne = () => {
|
|
121
|
+
C();
|
|
120
122
|
};
|
|
121
123
|
return (v, o) => (i(), n("div", s({
|
|
122
124
|
ref_key: "el",
|
|
123
|
-
ref:
|
|
124
|
-
class: ["dropdown dropdown--main-wrapper", { "dropdown--disabled": t.disabled, "full-width": t.fullWidth }],
|
|
125
|
+
ref: le,
|
|
126
|
+
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": t.disabled, "full-width": t.fullWidth }]],
|
|
125
127
|
tabindex: t.disabled ? -1 : 0
|
|
126
128
|
}, e(m)[e(c).WRAPPER], {
|
|
127
129
|
onKeydown: o[6] || (o[6] = //@ts-ignore
|
|
128
130
|
(...l) => e(h) && e(h)(...l))
|
|
129
131
|
}), [
|
|
130
|
-
|
|
132
|
+
I(v.$slots, "label", {}, void 0, !0),
|
|
131
133
|
p("div", Ae, [
|
|
132
134
|
a(e(ve), s({
|
|
133
135
|
theme: t.theme,
|
|
@@ -153,8 +155,8 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
153
155
|
e(f) ? (i(), n("div", {
|
|
154
156
|
key: 0,
|
|
155
157
|
ref_key: "listRef",
|
|
156
|
-
ref:
|
|
157
|
-
class:
|
|
158
|
+
ref: _,
|
|
159
|
+
class: x(["light-theme-v4", {
|
|
158
160
|
"dropdown--disabled": t.disabled,
|
|
159
161
|
"inline-search": t.inlineSearch
|
|
160
162
|
}]),
|
|
@@ -167,10 +169,10 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
167
169
|
(...l) => e(h) && e(h)(...l))
|
|
168
170
|
}, [
|
|
169
171
|
e(f) && t.inlineSearch ? (i(), n("div", Oe, [
|
|
170
|
-
a(e(
|
|
171
|
-
modelValue: e(
|
|
172
|
+
a(e(ke), {
|
|
173
|
+
modelValue: e(w),
|
|
172
174
|
"onUpdate:modelValue": [
|
|
173
|
-
o[3] || (o[3] = (l) => se(
|
|
175
|
+
o[3] || (o[3] = (l) => se(w) ? w.value = l : null),
|
|
174
176
|
t.onClear
|
|
175
177
|
],
|
|
176
178
|
placeholder: t.inlineSearchPlaceholder,
|
|
@@ -181,50 +183,50 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
181
183
|
onKeydown: e(h)
|
|
182
184
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
183
185
|
])) : d("", !0),
|
|
184
|
-
|
|
186
|
+
I(v.$slots, "input-list", { open: e(f) }, void 0, !0),
|
|
185
187
|
p("div", s({
|
|
186
188
|
class: ["list-container", { "list-container--multi": t.multi }],
|
|
187
|
-
style: { height: `${e(
|
|
189
|
+
style: { height: `${e(X)}rem` }
|
|
188
190
|
}, {
|
|
189
|
-
...e(
|
|
191
|
+
...e(G),
|
|
190
192
|
...e(m)[e(c).LIST_CONTAINER]
|
|
191
193
|
}), [
|
|
192
|
-
p("ul", s(e(
|
|
194
|
+
p("ul", s(e(N), {
|
|
193
195
|
style: {
|
|
194
|
-
height: Number(e(
|
|
196
|
+
height: Number(e(N).style.height) - 4
|
|
195
197
|
},
|
|
196
198
|
role: "listbox",
|
|
197
199
|
class: ["list", { "list--multi": t.multi }]
|
|
198
200
|
}), [
|
|
199
|
-
!e(
|
|
200
|
-
a(e(
|
|
201
|
+
!e(q).length && !t.loading ? (i(), n("li", De, [
|
|
202
|
+
a(e(H), s({ variant: "body2" }, e(m)[e(c).NO_RESULT]), {
|
|
201
203
|
default: u(() => [
|
|
202
204
|
g(ue(t.noResultsText), 1)
|
|
203
205
|
]),
|
|
204
206
|
_: 1
|
|
205
207
|
}, 16)
|
|
206
208
|
])) : d("", !0),
|
|
207
|
-
t.loading ? (i(), n("li",
|
|
208
|
-
a(e(
|
|
209
|
-
a(e(
|
|
209
|
+
t.loading ? (i(), n("li", Ee, [
|
|
210
|
+
a(e(Ie)),
|
|
211
|
+
a(e(H), null, {
|
|
210
212
|
default: u(() => [
|
|
211
213
|
g("Loading...")
|
|
212
214
|
]),
|
|
213
215
|
_: 1
|
|
214
216
|
})
|
|
215
217
|
])) : d("", !0),
|
|
216
|
-
t.showSelectAll ? (i(), n("li", Re, [
|
|
217
|
-
a(e(
|
|
218
|
+
t.showSelectAll !== !1 && t.multi ? (i(), n("li", Re, [
|
|
219
|
+
a(e($), s(
|
|
218
220
|
{
|
|
219
221
|
"aria-selected": e(B),
|
|
220
222
|
"aria-disabled": !!t.disabled,
|
|
221
223
|
"selected-prop": e(B),
|
|
222
|
-
"is-indeterminate": e(
|
|
224
|
+
"is-indeterminate": e(Y),
|
|
223
225
|
"select-all-option": ""
|
|
224
226
|
},
|
|
225
227
|
e(m)[e(c).SELECT_ALL],
|
|
226
228
|
{
|
|
227
|
-
onClick: o[4] || (o[4] =
|
|
229
|
+
onClick: o[4] || (o[4] = F((l) => e(j)(), ["stop"]))
|
|
228
230
|
}
|
|
229
231
|
), {
|
|
230
232
|
default: u(() => [
|
|
@@ -233,42 +235,42 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
233
235
|
_: 1
|
|
234
236
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
235
237
|
])) : d("", !0),
|
|
236
|
-
e(
|
|
238
|
+
e(O).length && !t.loading ? (i(!0), n(ce, { key: 3 }, fe(e(O), ({ data: l, index: b }) => (i(), n("li", {
|
|
237
239
|
key: b,
|
|
238
|
-
"aria-selected": e(S)(
|
|
240
|
+
"aria-selected": e(S)(k(e(T)), l),
|
|
239
241
|
"aria-disabled": !!t.disabled,
|
|
240
|
-
onClick:
|
|
242
|
+
onClick: F(() => e(D)(l, b), ["stop"])
|
|
241
243
|
}, [
|
|
242
|
-
|
|
244
|
+
I(v.$slots, "default", {
|
|
243
245
|
option: l,
|
|
244
|
-
selected: e(S)(
|
|
245
|
-
active:
|
|
246
|
+
selected: e(S)(k(e(T)), l),
|
|
247
|
+
active: k(e(E)) === b
|
|
246
248
|
}, () => [
|
|
247
|
-
a(e(
|
|
249
|
+
a(e($), {
|
|
248
250
|
option: l,
|
|
249
|
-
selected: e(S)(
|
|
250
|
-
active:
|
|
251
|
+
selected: e(S)(k(e(T)), l),
|
|
252
|
+
active: k(e(E)) === b,
|
|
251
253
|
"name-key": t.optionNameKey,
|
|
252
254
|
"image-key": t.optionImageKey,
|
|
253
255
|
"icon-key": t.optionIconKey,
|
|
254
256
|
"icon-type": t.optionIconType
|
|
255
257
|
}, null, 8, ["option", "selected", "active", "name-key", "image-key", "icon-key", "icon-type"])
|
|
256
258
|
], !0)
|
|
257
|
-
], 8,
|
|
259
|
+
], 8, Pe))), 128)) : d("", !0)
|
|
258
260
|
], 16)
|
|
259
261
|
], 16),
|
|
260
|
-
t.multi ? (i(), n("div",
|
|
261
|
-
p("div",
|
|
262
|
+
t.multi ? (i(), n("div", ze, [
|
|
263
|
+
p("div", Ke, [
|
|
262
264
|
a(e(A), s(
|
|
263
265
|
{
|
|
264
266
|
ref_key: "clearAll",
|
|
265
|
-
ref:
|
|
267
|
+
ref: oe,
|
|
266
268
|
size: "small",
|
|
267
269
|
variant: "text",
|
|
268
270
|
color: "primary"
|
|
269
271
|
},
|
|
270
272
|
e(m)[e(c).ACTION_CLEAR_ALL],
|
|
271
|
-
{ onClick: e(
|
|
273
|
+
{ onClick: e(P) }
|
|
272
274
|
), {
|
|
273
275
|
default: u(() => [
|
|
274
276
|
g(" Clear all ")
|
|
@@ -280,13 +282,13 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
280
282
|
a(e(A), s(
|
|
281
283
|
{
|
|
282
284
|
ref_key: "cancel",
|
|
283
|
-
ref:
|
|
285
|
+
ref: te,
|
|
284
286
|
size: "small",
|
|
285
287
|
variant: "outlined",
|
|
286
288
|
color: "primary"
|
|
287
289
|
},
|
|
288
290
|
e(m)[e(c).ACTION_CANCEL],
|
|
289
|
-
{ onClick: e(
|
|
291
|
+
{ onClick: e(J) }
|
|
290
292
|
), {
|
|
291
293
|
default: u(() => [
|
|
292
294
|
g(" Cancel ")
|
|
@@ -295,11 +297,11 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
295
297
|
}, 16, ["onClick"]),
|
|
296
298
|
a(e(A), s({
|
|
297
299
|
ref_key: "apply",
|
|
298
|
-
ref:
|
|
300
|
+
ref: ee,
|
|
299
301
|
"data-testid": "mutli-apply",
|
|
300
302
|
size: "small",
|
|
301
303
|
class: "apply-button"
|
|
302
|
-
}, e(m)[e(c).ACTION_APPLY], { onClick: e(
|
|
304
|
+
}, e(m)[e(c).ACTION_APPLY], { onClick: e(Q) }), {
|
|
303
305
|
default: u(() => [
|
|
304
306
|
g("Apply ")
|
|
305
307
|
]),
|
|
@@ -315,19 +317,19 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
315
317
|
]),
|
|
316
318
|
default: u(() => [
|
|
317
319
|
p("div", {
|
|
318
|
-
class:
|
|
320
|
+
class: x(["button__container", {
|
|
319
321
|
"button__container--open": !!e(f),
|
|
320
322
|
[`button__container--${t.size}`]: !0,
|
|
321
323
|
"button__container--disabled": t.disabled
|
|
322
324
|
}])
|
|
323
325
|
}, [
|
|
324
|
-
|
|
326
|
+
I(v.$slots, "dropdown-trigger", {}, () => [
|
|
325
327
|
p("div", {
|
|
326
328
|
ref_key: "buttonRef",
|
|
327
|
-
ref:
|
|
329
|
+
ref: R
|
|
328
330
|
}, [
|
|
329
|
-
e(
|
|
330
|
-
(i(), me(pe(e(
|
|
331
|
+
e(z) ? (i(), n("div", Le, [
|
|
332
|
+
(i(), me(pe(e(z)), {
|
|
331
333
|
placeholder: t.placeholder,
|
|
332
334
|
open: e(f),
|
|
333
335
|
label: t.triggerLabel,
|
|
@@ -337,7 +339,8 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
337
339
|
mandatory: t.mandatory,
|
|
338
340
|
"test-id": t.testId,
|
|
339
341
|
multi: t.multi,
|
|
340
|
-
|
|
342
|
+
disabled: t.disabled,
|
|
343
|
+
"selected-option": e(T),
|
|
341
344
|
"display-value": t.displayValue,
|
|
342
345
|
options: t.options,
|
|
343
346
|
"option-name-key": t.optionNameKey,
|
|
@@ -345,26 +348,28 @@ const Se = ["tabindex"], Ae = { style: { display: "flex", width: "100%" } }, Le
|
|
|
345
348
|
"option-icon-key": t.optionIconKey,
|
|
346
349
|
"option-icon-type": t.optionIconType,
|
|
347
350
|
"value-to-copy": t.valueToCopy,
|
|
348
|
-
|
|
351
|
+
"status-dot-type": t.statusType,
|
|
352
|
+
size: t.size,
|
|
353
|
+
onKeydown: e(M),
|
|
349
354
|
onClick: ne
|
|
350
|
-
}, null, 40, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "mandatory", "test-id", "multi", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "value-to-copy", "onKeydown"]))
|
|
355
|
+
}, null, 40, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "value-to-copy", "status-dot-type", "size", "onKeydown"]))
|
|
351
356
|
])) : d("", !0),
|
|
352
|
-
t.predefinedTrigger === e(y).ICON_BUTTON ? (i(), n("div",
|
|
357
|
+
t.predefinedTrigger === e(y).ICON_BUTTON ? (i(), n("div", Ne, [
|
|
353
358
|
a(e(ge), {
|
|
354
|
-
onClick: o[0] || (o[0] = (l) => e(
|
|
359
|
+
onClick: o[0] || (o[0] = (l) => e(C)())
|
|
355
360
|
})
|
|
356
361
|
])) : d("", !0),
|
|
357
|
-
t.predefinedTrigger === e(y).CHIP ? (i(), n("div",
|
|
362
|
+
t.predefinedTrigger === e(y).CHIP ? (i(), n("div", Be, [
|
|
358
363
|
a(e(he), {
|
|
359
364
|
open: e(f),
|
|
360
365
|
label: t.placeholder,
|
|
361
366
|
"test-id": t.testId,
|
|
362
367
|
options: t.options,
|
|
363
|
-
"selected-option": e(
|
|
368
|
+
"selected-option": e(T),
|
|
364
369
|
"display-value": t.displayValue,
|
|
365
370
|
multi: t.multi,
|
|
366
|
-
onClick: o[1] || (o[1] = (l) => e(
|
|
367
|
-
onClear: o[2] || (o[2] = (l) => e(
|
|
371
|
+
onClick: o[1] || (o[1] = (l) => e(C)()),
|
|
372
|
+
onClear: o[2] || (o[2] = (l) => e(P)())
|
|
368
373
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
369
374
|
])) : d("", !0)
|
|
370
375
|
], 512)
|