@ironsource/shared-ui 2.2.0-rc.42 → 2.2.0-rc.48
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/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_b7e65177_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_bb44cdf8_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_960ea8b1_lang.css +1 -0
- package/HelpText.vue_vue_type_style_index_0_scoped_b5caf7cd_lang.css +1 -0
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_2a5345ef_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_8cb01c9d_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_c4345b08_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_d48a9318_lang.css +1 -0
- package/SearchV4.vue_vue_type_style_index_0_scoped_e1a33934_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_9747c9da_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_f4275491_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_fbbae882_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css +1 -0
- package/components/autocomplete/index.d.ts +16 -16
- package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
- package/components/columnPicker/index.d.ts +20 -20
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +28 -27
- package/components/dropdown/common/Dropdown.common.js +351 -274
- package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
- package/components/dropdown/v3/index.d.ts +77 -77
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +38 -32
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +50 -41
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +237 -216
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -9
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +12 -12
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +2377 -2349
- package/components/helpText/HelpText.vue.js +3 -3
- package/components/helpText/HelpText.vue2.js +11 -10
- package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
- package/components/includeExclude/index.d.ts +54 -54
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +54 -53
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +2 -2
- package/components/input/v4/TextField.vue2.js +22 -19
- package/components/input/v4/index.d.ts +20 -1
- package/components/link/Link.vue.js +5 -5
- package/components/link/Link.vue2.js +30 -21
- package/components/search/v4/SearchV4.vue.d.ts +5 -0
- package/components/search/v4/SearchV4.vue.js +5 -5
- package/components/search/v4/SearchV4.vue2.js +23 -18
- package/components/search/v4/index.d.ts +9 -0
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -8
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +28 -22
- package/components/table/v4/index.d.ts +9 -0
- package/components/tabs/v4/TabsV4.vue.d.ts +5 -0
- package/components/tabs/v4/TabsV4.vue.js +3 -3
- package/components/tabs/v4/TabsV4.vue2.js +74 -43
- package/components/tabs/v4/index.d.ts +20 -1
- package/components/toggle/v4/ToggleV4.vue.d.ts +5 -0
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +50 -41
- package/components/toggle/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +14 -1
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +85 -63
- package/components/tooltip/v4/index.d.ts +51 -4
- package/index.d.ts +2996 -2678
- package/index.js +1 -1
- package/package.json +5 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +0 -1
- package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +0 -1
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +0 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_d6c42f4b_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +0 -1
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as we, computed as A, watch as ke, toRaw as S, openBlock as a, createElementBlock as u, mergeProps as m, unref as t, renderSlot as c, createElementVNode as f, createVNode as d, withCtx as y, Transition as ve, normalizeClass as F, normalizeStyle as Ie, createTextVNode as b, createCommentVNode as r, isRef as Se, toDisplayString as j, withModifiers as J, Fragment as Ce, renderList as Ke, createSlots as xe, createBlock as P, resolveDynamicComponent as Ee } from "vue";
|
|
2
|
+
import N 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
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import Ae from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import Le from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import Oe from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Be from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import Q from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { Dropdown as
|
|
16
|
+
import $e from "../../search/v4/SearchV4.vue.js";
|
|
17
|
+
import Z from "../../typography/v4/Typography.vue.js";
|
|
18
|
+
import { Dropdown as Fe } from "floating-vue";
|
|
19
19
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
21
|
-
import
|
|
22
|
-
import { useTestIdAttrs as
|
|
20
|
+
import { dropdownCommon as Pe } from "../common/Dropdown.common.js";
|
|
21
|
+
import L from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
|
+
import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
|
|
23
23
|
import { TRIGGERS as w } from "./Dropdown.types.js";
|
|
24
|
-
import { useElementSize as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import { useElementSize as Ve } from "@vueuse/core";
|
|
25
|
+
import De from "../../shared/FieldHelpText.vue.js";
|
|
26
|
+
import Me from "./GroupOption.vue.js";
|
|
27
|
+
const Re = ["tabindex", "aria-label", "aria-expanded", "aria-disabled", "aria-controls", "aria-activedescendant"], ze = { style: { width: "100%" } }, We = { key: 0 }, Ge = { key: 1 }, He = { key: 2 }, Ue = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
30
|
+
}, Ye = { class: "dropdown-conditions" }, Xe = ["id", "aria-multiselectable"], qe = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, je = ["id", "aria-selected"], Je = ["id", "aria-selected", "aria-disabled", "onClick"], Qe = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, Ze = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
},
|
|
39
|
+
}, _e = { class: "actions-clear-all" }, et = { class: "actions-apply-cancel" }, tt = {
|
|
40
40
|
key: 2,
|
|
41
41
|
class: "dropdown-footer"
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
|
+
let ot = 0;
|
|
44
|
+
const Lt = /* @__PURE__ */ we({
|
|
43
45
|
__name: "DropdownV4",
|
|
44
46
|
props: {
|
|
45
47
|
modelValue: { default: null },
|
|
@@ -114,11 +116,12 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
114
116
|
statusType: { default: null },
|
|
115
117
|
disableVirtualScroll: { type: Boolean, default: !1 },
|
|
116
118
|
overrideOptionCountCalculation: { type: Function, default: null },
|
|
117
|
-
withConditions: { type: Boolean, default: !1 }
|
|
119
|
+
withConditions: { type: Boolean, default: !1 },
|
|
120
|
+
ariaLabel: { default: "" }
|
|
118
121
|
},
|
|
119
122
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
120
|
-
setup(e, { expose:
|
|
121
|
-
const o = e,
|
|
123
|
+
setup(e, { expose: _, emit: V }) {
|
|
124
|
+
const o = e, D = {
|
|
122
125
|
MULTILINE_LIST_HEIGHT: 48,
|
|
123
126
|
LIST_HEIGHT: 32 + 4,
|
|
124
127
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -126,39 +129,42 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
126
129
|
DROPLIST_MIN_WIDTH: 240,
|
|
127
130
|
VERSION: 4
|
|
128
131
|
}, {
|
|
129
|
-
onKeydown:
|
|
130
|
-
open:
|
|
131
|
-
toggleMenu:
|
|
132
|
-
onButtonKeydown:
|
|
133
|
-
query:
|
|
134
|
-
containerProps:
|
|
135
|
-
calculateTableHeight:
|
|
136
|
-
wrapperProps:
|
|
137
|
-
filteredOptions:
|
|
138
|
-
allSelected:
|
|
139
|
-
allSelectedApplied:
|
|
140
|
-
isIndeterminate:
|
|
141
|
-
onSelectAll:
|
|
142
|
-
virtualOptions:
|
|
143
|
-
isSelected:
|
|
132
|
+
onKeydown: C,
|
|
133
|
+
open: s,
|
|
134
|
+
toggleMenu: K,
|
|
135
|
+
onButtonKeydown: M,
|
|
136
|
+
query: x,
|
|
137
|
+
containerProps: ee,
|
|
138
|
+
calculateTableHeight: te,
|
|
139
|
+
wrapperProps: oe,
|
|
140
|
+
filteredOptions: ie,
|
|
141
|
+
allSelected: R,
|
|
142
|
+
allSelectedApplied: O,
|
|
143
|
+
isIndeterminate: le,
|
|
144
|
+
onSelectAll: ne,
|
|
145
|
+
virtualOptions: z,
|
|
146
|
+
isSelected: B,
|
|
144
147
|
selectedOption: T,
|
|
145
|
-
selectedOptionPrevious:
|
|
146
|
-
selectedValue:
|
|
147
|
-
onSelect:
|
|
148
|
-
activeIndex:
|
|
149
|
-
onCancel:
|
|
150
|
-
onApply:
|
|
151
|
-
scrollTo:
|
|
152
|
-
listRef:
|
|
153
|
-
buttonRef:
|
|
154
|
-
apply:
|
|
155
|
-
cancel:
|
|
156
|
-
el:
|
|
157
|
-
onClearAllSelections:
|
|
158
|
-
clearAll:
|
|
159
|
-
isGroup:
|
|
160
|
-
flattenAndMarkGroupOptions:
|
|
161
|
-
} =
|
|
148
|
+
selectedOptionPrevious: $,
|
|
149
|
+
selectedValue: ae,
|
|
150
|
+
onSelect: W,
|
|
151
|
+
activeIndex: k,
|
|
152
|
+
onCancel: de,
|
|
153
|
+
onApply: re,
|
|
154
|
+
scrollTo: se,
|
|
155
|
+
listRef: ue,
|
|
156
|
+
buttonRef: G,
|
|
157
|
+
apply: ce,
|
|
158
|
+
cancel: ye,
|
|
159
|
+
el: me,
|
|
160
|
+
onClearAllSelections: H,
|
|
161
|
+
clearAll: fe,
|
|
162
|
+
isGroup: pe,
|
|
163
|
+
flattenAndMarkGroupOptions: ge
|
|
164
|
+
} = Pe(o, V, D), g = Ne(o.testId, p), v = o.testId ? `${o.testId}-listbox` : `is-dropdown-listbox-${++ot}`, he = A(() => {
|
|
165
|
+
if (!(!s.value || k.value == null))
|
|
166
|
+
return k.value === -1 ? `${v}-select-all` : `${v}-option-${k.value}`;
|
|
167
|
+
}), U = A(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Be : null), { width: Y } = Ve(G), Te = A(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? Y.value - 2 > 240 ? `${Y.value - 2}px` : `${D.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
162
168
|
ke(
|
|
163
169
|
() => o.optionsListWidth,
|
|
164
170
|
() => {
|
|
@@ -168,53 +174,60 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
168
174
|
);
|
|
169
175
|
}
|
|
170
176
|
);
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
const
|
|
177
|
+
const X = () => {
|
|
178
|
+
K();
|
|
179
|
+
}, q = A(() => {
|
|
180
|
+
const i = {
|
|
175
181
|
tooltipMessage: null,
|
|
176
182
|
selections: []
|
|
177
183
|
};
|
|
178
184
|
if (o.multi && o.comparingKey) {
|
|
179
|
-
const
|
|
185
|
+
const n = S(T.value);
|
|
180
186
|
if (o.minSelections || o.maxSelections) {
|
|
181
|
-
if (Array.isArray(
|
|
182
|
-
return
|
|
187
|
+
if (Array.isArray(n) && n.length <= o.minSelections)
|
|
188
|
+
return i.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, i.selections = n.map(
|
|
183
189
|
(l) => l[o.comparingKey]
|
|
184
|
-
),
|
|
185
|
-
if (o.maxSelections && Array.isArray(
|
|
186
|
-
const l =
|
|
187
|
-
(
|
|
188
|
-
), h = o.groupedOptions ?
|
|
189
|
-
return
|
|
190
|
-
if (!l.includes(
|
|
191
|
-
return
|
|
192
|
-
}),
|
|
190
|
+
), i;
|
|
191
|
+
if (o.maxSelections && Array.isArray(n) && n.length >= o.maxSelections) {
|
|
192
|
+
const l = n.map(
|
|
193
|
+
(I) => I[o.comparingKey]
|
|
194
|
+
), h = o.groupedOptions ? ge(o.options) : o.options;
|
|
195
|
+
return i.tooltipMessage = `You can only select up to ${o.maxSelections} items`, i.selections = h.map((I) => {
|
|
196
|
+
if (!l.includes(I[o.comparingKey]))
|
|
197
|
+
return I[o.comparingKey];
|
|
198
|
+
}), i;
|
|
193
199
|
}
|
|
194
200
|
}
|
|
195
201
|
}
|
|
196
|
-
return
|
|
197
|
-
}),
|
|
202
|
+
return i.tooltipMessage = null, i.selections = [], i;
|
|
203
|
+
}), be = (i) => {
|
|
198
204
|
if ((o.minSelections || o.maxSelections) && o.comparingKey)
|
|
199
|
-
return
|
|
200
|
-
|
|
205
|
+
return q.value.selections.includes(
|
|
206
|
+
i[o.comparingKey]
|
|
201
207
|
);
|
|
202
|
-
},
|
|
203
|
-
return
|
|
204
|
-
selectItem:
|
|
205
|
-
scrollTo:
|
|
206
|
-
}), (
|
|
208
|
+
}, E = (i) => i[o.disabledOptionKey] || be(i);
|
|
209
|
+
return _({
|
|
210
|
+
selectItem: W,
|
|
211
|
+
scrollTo: se
|
|
212
|
+
}), (i, n) => (a(), u("div", m({
|
|
207
213
|
ref_key: "el",
|
|
208
|
-
ref:
|
|
214
|
+
ref: me,
|
|
209
215
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
210
|
-
tabindex: e.disabled ? -1 : 0
|
|
216
|
+
tabindex: e.disabled ? -1 : 0,
|
|
217
|
+
role: "combobox",
|
|
218
|
+
"aria-haspopup": "listbox",
|
|
219
|
+
"aria-label": e.ariaLabel || void 0,
|
|
220
|
+
"aria-expanded": !!t(s),
|
|
221
|
+
"aria-disabled": e.disabled || void 0,
|
|
222
|
+
"aria-controls": t(s) ? t(v) : void 0,
|
|
223
|
+
"aria-activedescendant": t(he)
|
|
211
224
|
}, t(g)[t(p).WRAPPER], {
|
|
212
|
-
onKeydown:
|
|
213
|
-
(...l) => t(
|
|
225
|
+
onKeydown: n[8] || (n[8] = //@ts-ignore
|
|
226
|
+
(...l) => t(C) && t(C)(...l))
|
|
214
227
|
}), [
|
|
215
|
-
|
|
216
|
-
f("div",
|
|
217
|
-
d(t(
|
|
228
|
+
c(i.$slots, "label", {}, void 0, !0),
|
|
229
|
+
f("div", ze, [
|
|
230
|
+
d(t(Fe), m({
|
|
218
231
|
theme: e.theme,
|
|
219
232
|
"popper-class": [
|
|
220
233
|
e.popperClass,
|
|
@@ -227,49 +240,49 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
227
240
|
distance: e.distance,
|
|
228
241
|
flip: e.flip,
|
|
229
242
|
triggers: [],
|
|
230
|
-
shown: !!t(
|
|
243
|
+
shown: !!t(s),
|
|
231
244
|
"auto-hide": !1,
|
|
232
245
|
container: e.container,
|
|
233
246
|
"auto-size": e.autoSize
|
|
234
247
|
}, t(g)[t(p).TRIGGER]), {
|
|
235
|
-
popper:
|
|
236
|
-
d(
|
|
237
|
-
default:
|
|
238
|
-
t(
|
|
248
|
+
popper: y(() => [
|
|
249
|
+
d(ve, null, {
|
|
250
|
+
default: y(() => [
|
|
251
|
+
t(s) ? (a(), u("div", {
|
|
239
252
|
key: 0,
|
|
240
253
|
ref_key: "listRef",
|
|
241
|
-
ref:
|
|
242
|
-
class:
|
|
254
|
+
ref: ue,
|
|
255
|
+
class: F(["light-theme-v4", {
|
|
243
256
|
"dropdown--disabled": e.disabled,
|
|
244
257
|
"inline-search": e.inlineSearch
|
|
245
258
|
}]),
|
|
246
|
-
style:
|
|
259
|
+
style: Ie({ width: t(Te) })
|
|
247
260
|
}, [
|
|
248
|
-
t(
|
|
261
|
+
t(s) ? (a(), u("div", {
|
|
249
262
|
key: 0,
|
|
250
|
-
class:
|
|
263
|
+
class: F(["dropdown-list-wrapper", {
|
|
251
264
|
"dropdown-list-wrapper--multi": e.multi,
|
|
252
265
|
"dropdown-list-wrapper-always-show-scroll": e.alwaysShowScroll
|
|
253
266
|
}]),
|
|
254
|
-
onKeydown:
|
|
255
|
-
(...l) => t(
|
|
267
|
+
onKeydown: n[7] || (n[7] = //@ts-ignore
|
|
268
|
+
(...l) => t(C) && t(C)(...l))
|
|
256
269
|
}, [
|
|
257
|
-
t(
|
|
258
|
-
e.withConditions ?
|
|
259
|
-
f("div",
|
|
260
|
-
d(t(
|
|
261
|
-
default:
|
|
262
|
-
|
|
270
|
+
t(s) && e.inlineSearch ? (a(), u("div", Ue, [
|
|
271
|
+
e.withConditions ? c(i.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
272
|
+
f("div", Ye, [
|
|
273
|
+
d(t(Z), { variant: "body2" }, {
|
|
274
|
+
default: y(() => [
|
|
275
|
+
b("Conditions")
|
|
263
276
|
]),
|
|
264
277
|
_: 1
|
|
265
278
|
})
|
|
266
279
|
])
|
|
267
280
|
], !0) : r("", !0),
|
|
268
|
-
|
|
269
|
-
d(t(
|
|
270
|
-
modelValue: t(
|
|
281
|
+
c(i.$slots, "inline-search", {}, () => [
|
|
282
|
+
d(t($e), {
|
|
283
|
+
modelValue: t(x),
|
|
271
284
|
"onUpdate:modelValue": [
|
|
272
|
-
|
|
285
|
+
n[4] || (n[4] = (l) => Se(x) ? x.value = l : null),
|
|
273
286
|
e.onClearSearch
|
|
274
287
|
],
|
|
275
288
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -277,86 +290,93 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
277
290
|
size: "md",
|
|
278
291
|
"auto-focus": e.searchAutoFocus,
|
|
279
292
|
"test-id": e.testId,
|
|
280
|
-
onKeydown: t(
|
|
293
|
+
onKeydown: t(C)
|
|
281
294
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
282
295
|
], !0)
|
|
283
296
|
])) : r("", !0),
|
|
284
|
-
|
|
297
|
+
c(i.$slots, "input-list", { open: t(s) }, void 0, !0),
|
|
285
298
|
f("div", m({
|
|
286
299
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
287
|
-
style: { height: `${t(
|
|
300
|
+
style: { height: `${t(te)}rem` }
|
|
288
301
|
}, {
|
|
289
|
-
...t(
|
|
302
|
+
...t(ee),
|
|
290
303
|
...t(g)[t(p).LIST_CONTAINER]
|
|
291
304
|
}), [
|
|
292
|
-
|
|
293
|
-
f("ul", m(t(
|
|
305
|
+
c(i.$slots, "custom-list-area", {}, void 0, !0),
|
|
306
|
+
f("ul", m({ id: t(v) }, t(oe), {
|
|
294
307
|
role: "listbox",
|
|
308
|
+
"aria-multiselectable": e.multi || void 0,
|
|
295
309
|
class: ["list", {
|
|
296
310
|
"list--multi": e.multi,
|
|
297
311
|
"list--with-conditions": e.withConditions
|
|
298
312
|
}]
|
|
299
313
|
}), [
|
|
300
|
-
!t(
|
|
301
|
-
d(t(
|
|
302
|
-
default:
|
|
303
|
-
|
|
314
|
+
!t(ie).length && !e.loading && !e.withConditions ? (a(), u("li", qe, [
|
|
315
|
+
d(t(Z), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
316
|
+
default: y(() => [
|
|
317
|
+
b(j(e.noResultsText), 1)
|
|
304
318
|
]),
|
|
305
319
|
_: 1
|
|
306
320
|
}, 16)
|
|
307
321
|
])) : r("", !0),
|
|
308
|
-
e.showSelectAll !== !1 && e.multi && !t(
|
|
309
|
-
f("li",
|
|
310
|
-
|
|
322
|
+
e.showSelectAll !== !1 && e.multi && !t(x) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? c(i.$slots, "select-all", { key: 1 }, () => [
|
|
323
|
+
f("li", {
|
|
324
|
+
id: `${t(v)}-select-all`,
|
|
325
|
+
role: "option",
|
|
326
|
+
"aria-selected": t(R)
|
|
327
|
+
}, [
|
|
328
|
+
d(t(Q), m(
|
|
311
329
|
{
|
|
312
|
-
"aria-selected": t($),
|
|
313
330
|
"aria-disabled": !!e.disabled,
|
|
314
|
-
"selected-prop": t(
|
|
315
|
-
|
|
331
|
+
"selected-prop": t(R),
|
|
332
|
+
active: S(t(k)) === -1,
|
|
333
|
+
"is-indeterminate": t(le),
|
|
316
334
|
"is-multi": e.multi,
|
|
317
335
|
"select-all-option": ""
|
|
318
336
|
},
|
|
319
337
|
t(g)[t(p).SELECT_ALL],
|
|
320
338
|
{
|
|
321
|
-
onClick:
|
|
339
|
+
onClick: n[5] || (n[5] = J((l) => t(ne)(), ["stop"]))
|
|
322
340
|
}
|
|
323
341
|
), {
|
|
324
|
-
default:
|
|
325
|
-
|
|
342
|
+
default: y(() => [
|
|
343
|
+
b(" Select all ")
|
|
326
344
|
]),
|
|
327
345
|
_: 1
|
|
328
|
-
}, 16, ["aria-
|
|
329
|
-
])
|
|
346
|
+
}, 16, ["aria-disabled", "selected-prop", "active", "is-indeterminate", "is-multi"])
|
|
347
|
+
], 8, je)
|
|
330
348
|
], !0) : r("", !0),
|
|
331
|
-
t(
|
|
349
|
+
t(z).length && !e.loading ? (a(!0), u(Ce, { key: 2 }, Ke(t(z), ({ data: l, index: h }) => (a(), u("li", {
|
|
350
|
+
id: `${t(v)}-option-${h}`,
|
|
332
351
|
key: h,
|
|
333
|
-
"
|
|
334
|
-
"aria-
|
|
335
|
-
|
|
336
|
-
|
|
352
|
+
role: "option",
|
|
353
|
+
"aria-selected": t(B)(S(t(T)), l),
|
|
354
|
+
"aria-disabled": E(l) || void 0,
|
|
355
|
+
onClick: J(
|
|
356
|
+
() => !E(l) && t(W)(l, h),
|
|
337
357
|
["stop"]
|
|
338
358
|
)
|
|
339
359
|
}, [
|
|
340
|
-
e.groupedOptions && t(
|
|
341
|
-
d(
|
|
342
|
-
default:
|
|
343
|
-
|
|
360
|
+
e.groupedOptions && t(pe)(l) ? c(i.$slots, "group-option", { key: 0 }, () => [
|
|
361
|
+
d(Me, null, {
|
|
362
|
+
default: y(() => [
|
|
363
|
+
b(j(e.displayValue(l) || l[e.optionNameKey]), 1)
|
|
344
364
|
]),
|
|
345
365
|
_: 2
|
|
346
366
|
}, 1024)
|
|
347
|
-
], !0) :
|
|
367
|
+
], !0) : c(i.$slots, "default", {
|
|
348
368
|
key: 1,
|
|
349
369
|
option: l,
|
|
350
370
|
index: h,
|
|
351
|
-
selected: t(
|
|
352
|
-
active: S(t(
|
|
353
|
-
disabled:
|
|
371
|
+
selected: t(B)(S(t(T)), l),
|
|
372
|
+
active: S(t(k)) === h,
|
|
373
|
+
disabled: E(l)
|
|
354
374
|
}, () => [
|
|
355
|
-
d(t(
|
|
375
|
+
d(t(Q), {
|
|
356
376
|
option: l,
|
|
357
|
-
"selected-prop": t(
|
|
358
|
-
active: S(t(
|
|
359
|
-
disabled:
|
|
377
|
+
"selected-prop": t(B)(t(T), l),
|
|
378
|
+
active: S(t(k)) === h,
|
|
379
|
+
disabled: E(l),
|
|
360
380
|
"name-key": e.optionNameKey,
|
|
361
381
|
"image-key": e.optionImageKey,
|
|
362
382
|
"icon-key": e.optionIconKey,
|
|
@@ -370,81 +390,81 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
370
390
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
371
391
|
"tooltip-placement": e.optionTooltipPosition,
|
|
372
392
|
"is-multi": e.multi,
|
|
373
|
-
"min-max-selection-tooltip-message": t(
|
|
374
|
-
},
|
|
375
|
-
|
|
393
|
+
"min-max-selection-tooltip-message": t(q)?.tooltipMessage
|
|
394
|
+
}, xe({ _: 2 }, [
|
|
395
|
+
i.$slots["option-end"] ? {
|
|
376
396
|
name: "option-end",
|
|
377
|
-
fn:
|
|
378
|
-
|
|
397
|
+
fn: y(({ option: I }) => [
|
|
398
|
+
c(i.$slots, "option-end", { option: I }, void 0, !0)
|
|
379
399
|
]),
|
|
380
400
|
key: "0"
|
|
381
401
|
} : void 0
|
|
382
402
|
]), 1032, ["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", "warning-key", "option-two-lines-variant", "option-two-lines-key", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
|
|
383
403
|
], !0)
|
|
384
|
-
], 8,
|
|
385
|
-
e.loading || e.loadMoreLoading ? (a(),
|
|
386
|
-
d(t(
|
|
387
|
-
d(t(
|
|
388
|
-
d(t(
|
|
389
|
-
d(t(
|
|
404
|
+
], 8, Je))), 128)) : r("", !0),
|
|
405
|
+
e.loading || e.loadMoreLoading ? (a(), u("li", Qe, [
|
|
406
|
+
d(t(L), { round: "" }),
|
|
407
|
+
d(t(L), { round: "" }),
|
|
408
|
+
d(t(L), { round: "" }),
|
|
409
|
+
d(t(L), { round: "" })
|
|
390
410
|
])) : r("", !0)
|
|
391
|
-
], 16)
|
|
411
|
+
], 16, Xe)
|
|
392
412
|
], 16),
|
|
393
|
-
e.multi ? (a(),
|
|
394
|
-
f("div",
|
|
395
|
-
e.showClearAll ? (a(),
|
|
413
|
+
e.multi ? (a(), u("div", Ze, [
|
|
414
|
+
f("div", _e, [
|
|
415
|
+
e.showClearAll ? (a(), P(t(N), m(
|
|
396
416
|
{
|
|
397
417
|
key: 0,
|
|
398
418
|
ref_key: "clearAll",
|
|
399
|
-
ref:
|
|
419
|
+
ref: fe,
|
|
400
420
|
size: "small",
|
|
401
421
|
variant: "text",
|
|
402
422
|
color: "primary"
|
|
403
423
|
},
|
|
404
424
|
t(g)[t(p).ACTION_CLEAR_ALL],
|
|
405
425
|
{
|
|
406
|
-
onClick:
|
|
426
|
+
onClick: n[6] || (n[6] = () => t(H)(!1))
|
|
407
427
|
}
|
|
408
428
|
), {
|
|
409
|
-
default:
|
|
410
|
-
|
|
429
|
+
default: y(() => [
|
|
430
|
+
b(" Clear all ")
|
|
411
431
|
]),
|
|
412
432
|
_: 1
|
|
413
433
|
}, 16)) : r("", !0)
|
|
414
434
|
]),
|
|
415
|
-
f("div",
|
|
416
|
-
d(t(
|
|
435
|
+
f("div", et, [
|
|
436
|
+
d(t(N), m(
|
|
417
437
|
{
|
|
418
438
|
ref_key: "cancel",
|
|
419
|
-
ref:
|
|
439
|
+
ref: ye,
|
|
420
440
|
size: "small",
|
|
421
441
|
variant: "outlined",
|
|
422
442
|
color: "default"
|
|
423
443
|
},
|
|
424
444
|
t(g)[t(p).ACTION_CANCEL],
|
|
425
|
-
{ onClick: t(
|
|
445
|
+
{ onClick: t(de) }
|
|
426
446
|
), {
|
|
427
|
-
default:
|
|
428
|
-
|
|
447
|
+
default: y(() => [
|
|
448
|
+
b(" Cancel ")
|
|
429
449
|
]),
|
|
430
450
|
_: 1
|
|
431
451
|
}, 16, ["onClick"]),
|
|
432
|
-
d(t(
|
|
452
|
+
d(t(N), m({
|
|
433
453
|
ref_key: "apply",
|
|
434
|
-
ref:
|
|
454
|
+
ref: ce,
|
|
435
455
|
"data-testid": "mutli-apply",
|
|
436
456
|
size: "small",
|
|
437
457
|
class: "apply-button"
|
|
438
|
-
}, t(g)[t(p).ACTION_APPLY], { onClick: t(
|
|
439
|
-
default:
|
|
440
|
-
|
|
458
|
+
}, t(g)[t(p).ACTION_APPLY], { onClick: t(re) }), {
|
|
459
|
+
default: y(() => [
|
|
460
|
+
b(" Apply ")
|
|
441
461
|
]),
|
|
442
462
|
_: 1
|
|
443
463
|
}, 16, ["onClick"])
|
|
444
464
|
])
|
|
445
465
|
])) : r("", !0),
|
|
446
|
-
|
|
447
|
-
|
|
466
|
+
i.$slots.footer ? (a(), u("div", tt, [
|
|
467
|
+
c(i.$slots, "footer", {}, void 0, !0)
|
|
448
468
|
])) : r("", !0)
|
|
449
469
|
], 34)) : r("", !0)
|
|
450
470
|
], 6)) : r("", !0)
|
|
@@ -452,36 +472,36 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
452
472
|
_: 3
|
|
453
473
|
})
|
|
454
474
|
]),
|
|
455
|
-
default:
|
|
475
|
+
default: y(() => [
|
|
456
476
|
f("div", {
|
|
457
|
-
class:
|
|
458
|
-
"button__container--open": !!t(
|
|
477
|
+
class: F(["button__container", {
|
|
478
|
+
"button__container--open": !!t(s),
|
|
459
479
|
[`button__container--${e.size}`]: !0,
|
|
460
480
|
"button__container--disabled": e.disabled
|
|
461
481
|
}])
|
|
462
482
|
}, [
|
|
463
483
|
f("div", {
|
|
464
484
|
ref_key: "buttonRef",
|
|
465
|
-
ref:
|
|
485
|
+
ref: G
|
|
466
486
|
}, [
|
|
467
|
-
|
|
487
|
+
c(i.$slots, "dropdown-trigger", {
|
|
468
488
|
buttonTriggerProps: {
|
|
469
|
-
open: t(
|
|
489
|
+
open: t(s),
|
|
470
490
|
disabled: e.disabled,
|
|
471
|
-
label: t(
|
|
472
|
-
onClick: () => t(
|
|
491
|
+
label: t(ae) || e.placeholder,
|
|
492
|
+
onClick: () => t(K)(),
|
|
473
493
|
testId: e.testId
|
|
474
494
|
},
|
|
475
495
|
defaultTriggerProps: {
|
|
476
496
|
placeholder: e.placeholder,
|
|
477
|
-
open: t(
|
|
497
|
+
open: t(s),
|
|
478
498
|
label: e.triggerLabel,
|
|
479
499
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
480
500
|
mandatory: e.mandatory,
|
|
481
501
|
testId: e.testId,
|
|
482
502
|
multi: e.multi,
|
|
483
503
|
disabled: e.disabled,
|
|
484
|
-
selectedOption: e.multi ? t(
|
|
504
|
+
selectedOption: e.multi ? t($) : t(T),
|
|
485
505
|
displayValue: e.displayValue,
|
|
486
506
|
options: e.options,
|
|
487
507
|
optionNameKey: e.optionNameKey,
|
|
@@ -497,25 +517,25 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
497
517
|
statusDotType: e.statusType,
|
|
498
518
|
size: e.size,
|
|
499
519
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
500
|
-
allSelected: t(
|
|
520
|
+
allSelected: t(O),
|
|
501
521
|
inlineError: e.inlineError,
|
|
502
522
|
inlineErrorText: e.inlineErrorText,
|
|
503
523
|
inlineErrorTextPlacement: e.inlineErrorTextPlacement,
|
|
504
|
-
onKeydown: t(
|
|
505
|
-
onClick:
|
|
524
|
+
onKeydown: t(M),
|
|
525
|
+
onClick: X
|
|
506
526
|
}
|
|
507
527
|
}, () => [
|
|
508
|
-
t(
|
|
509
|
-
(a(),
|
|
528
|
+
t(U) ? (a(), u("div", We, [
|
|
529
|
+
(a(), P(Ee(t(U)), {
|
|
510
530
|
placeholder: e.placeholder,
|
|
511
|
-
open: t(
|
|
531
|
+
open: t(s),
|
|
512
532
|
label: e.triggerLabel,
|
|
513
533
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
514
534
|
mandatory: e.mandatory,
|
|
515
535
|
"test-id": e.testId,
|
|
516
536
|
multi: e.multi,
|
|
517
537
|
disabled: e.disabled,
|
|
518
|
-
"selected-option": e.multi ? t(
|
|
538
|
+
"selected-option": e.multi ? t($) : t(T),
|
|
519
539
|
"display-value": e.displayValue,
|
|
520
540
|
options: e.options,
|
|
521
541
|
"option-name-key": e.optionNameKey,
|
|
@@ -531,33 +551,34 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
531
551
|
"status-dot-type": e.statusType,
|
|
532
552
|
size: e.size,
|
|
533
553
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
534
|
-
"all-selected": t(
|
|
554
|
+
"all-selected": t(O),
|
|
535
555
|
"inline-error": e.inlineError,
|
|
536
556
|
"inline-error-text": e.inlineErrorText,
|
|
537
557
|
"inline-error-text-placement": e.inlineErrorTextPlacement,
|
|
538
|
-
onKeydown: t(
|
|
539
|
-
onClick:
|
|
540
|
-
onCopyToClipboard:
|
|
558
|
+
onKeydown: t(M),
|
|
559
|
+
onClick: X,
|
|
560
|
+
onCopyToClipboard: n[0] || (n[0] = (l) => V("copyToClipboard"))
|
|
541
561
|
}, 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", "inline-error", "inline-error-text", "inline-error-text-placement", "onKeydown"]))
|
|
542
562
|
])) : r("", !0),
|
|
543
|
-
e.predefinedTrigger === t(w).ICON_BUTTON ? (a(),
|
|
544
|
-
d(t(
|
|
545
|
-
|
|
546
|
-
|
|
563
|
+
e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), u("div", Ge, [
|
|
564
|
+
d(t(Le), {
|
|
565
|
+
"aria-label": e.ariaLabel || void 0,
|
|
566
|
+
onClick: n[1] || (n[1] = (l) => t(K)())
|
|
567
|
+
}, null, 8, ["aria-label"])
|
|
547
568
|
])) : r("", !0),
|
|
548
|
-
e.predefinedTrigger === t(w).CHIP ? (a(),
|
|
549
|
-
d(t(
|
|
550
|
-
open: t(
|
|
569
|
+
e.predefinedTrigger === t(w).CHIP ? (a(), u("div", He, [
|
|
570
|
+
d(t(Oe), {
|
|
571
|
+
open: t(s),
|
|
551
572
|
label: e.placeholder,
|
|
552
573
|
"test-id": e.testId,
|
|
553
574
|
options: e.options,
|
|
554
|
-
"selected-option": e.multi ? t(
|
|
575
|
+
"selected-option": e.multi ? t($) : t(T),
|
|
555
576
|
"display-value": e.displayValue,
|
|
556
577
|
multi: e.multi,
|
|
557
|
-
"all-selected": t(
|
|
578
|
+
"all-selected": t(O),
|
|
558
579
|
"shown-values-count": e.triggerShownValuesCount,
|
|
559
|
-
onClick:
|
|
560
|
-
onClear:
|
|
580
|
+
onClick: n[2] || (n[2] = (l) => t(K)()),
|
|
581
|
+
onClear: n[3] || (n[3] = (l) => t(H)())
|
|
561
582
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
562
583
|
])) : r("", !0)
|
|
563
584
|
], !0)
|
|
@@ -566,7 +587,7 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
566
587
|
]),
|
|
567
588
|
_: 3
|
|
568
589
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
569
|
-
e.triggerFeedbackText ? (a(),
|
|
590
|
+
e.triggerFeedbackText ? (a(), P(De, {
|
|
570
591
|
key: 0,
|
|
571
592
|
text: e.triggerFeedbackText,
|
|
572
593
|
variant: e.triggerFeedbackVariant,
|
|
@@ -575,9 +596,9 @@ const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze
|
|
|
575
596
|
class: "dropdown-field-help-text"
|
|
576
597
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
|
|
577
598
|
])
|
|
578
|
-
], 16,
|
|
599
|
+
], 16, Re));
|
|
579
600
|
}
|
|
580
601
|
});
|
|
581
602
|
export {
|
|
582
|
-
|
|
603
|
+
Lt as default
|
|
583
604
|
};
|