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