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