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