@ironsource/shared-ui 2.1.12-rc.25 → 2.1.12-rc.27
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +28 -27
- package/components/chart/Chart.vue.d.ts +6 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +6 -4
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +43 -35
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +17 -17
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +1 -1
- package/components/chart/ChartPlane.vue.d.ts +6 -1
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +140 -138
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +5 -5
- package/components/chart/index.d.ts +43 -24
- package/components/chart/utils/utils.d.ts +1 -2
- package/components/chart/utils/utils.js +13 -19
- package/components/dateRange/common/DateRange.common.js +81 -75
- package/components/dateRange/common/DateServices.common.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.js +1 -0
- package/components/dropdown/common/Dropdown.common.js +82 -78
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +17 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +142 -123
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +174 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -5
- package/components/dropdown/v4/OptionV4.vue.js +4 -4
- package/components/dropdown/v4/OptionV4.vue2.js +106 -99
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +510 -127
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +40 -40
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +201 -0
- package/components/link/index.js +6 -0
- package/components/switch/v4/SwitchV4.vue.d.ts +11 -0
- package/components/switch/v4/SwitchV4.vue.js +2 -2
- package/components/switch/v4/SwitchV4.vue2.js +39 -26
- package/components/switch/v4/index.d.ts +18 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +111 -110
- package/components/table/v4/index.d.ts +2 -0
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/index.d.ts +1120 -310
- package/index.js +111 -105
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +9 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +31 -30
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as x, watch as Te, toRaw as S, openBlock as d, createElementBlock as r, mergeProps as m, unref as t, renderSlot as y, createElementVNode as f, createVNode as a, withCtx as u, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as T, createCommentVNode as s, 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 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";
|
|
@@ -11,32 +11,32 @@ import Ee 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
|
|
19
|
-
import { DropdownTestIdModifiers as
|
|
16
|
+
import xe from "../../search/v4/SearchV4.vue.js";
|
|
17
|
+
import Q from "../../typography/v4/Typography.vue.js";
|
|
18
|
+
import { Dropdown as Be } from "floating-vue";
|
|
19
|
+
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
20
|
import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
|
|
21
|
-
import
|
|
21
|
+
import K from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
22
|
import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
|
|
23
23
|
import { TRIGGERS as w } from "./Dropdown.types.js";
|
|
24
24
|
import { useElementSize as Ve } from "@vueuse/core";
|
|
25
25
|
import De from "../../shared/FieldHelpText.vue.js";
|
|
26
26
|
import Pe from "./GroupOption.vue.js";
|
|
27
|
-
const
|
|
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
|
-
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" },
|
|
39
|
+
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, vt = /* @__PURE__ */ ke({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -52,6 +52,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
52
52
|
isOpen: { type: Boolean },
|
|
53
53
|
options: null,
|
|
54
54
|
showSelectAll: { type: Boolean, default: !0 },
|
|
55
|
+
showClearAll: { type: Boolean, default: !0 },
|
|
55
56
|
defaultOpen: { type: Boolean, default: !1 },
|
|
56
57
|
keepOpen: { type: Boolean, default: !1 },
|
|
57
58
|
autoSize: { type: Boolean, default: !1 },
|
|
@@ -98,6 +99,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
98
99
|
groupedOptions: { type: Boolean, default: !1 },
|
|
99
100
|
comparingKey: { default: null },
|
|
100
101
|
customNumberOfDisplayedOptions: { default: null },
|
|
102
|
+
optionTooltipPosition: { default: "right" },
|
|
101
103
|
theme: { default: "light-theme-v4" },
|
|
102
104
|
fullWidth: { type: Boolean, default: !0 },
|
|
103
105
|
optionsListWidth: { default: null },
|
|
@@ -107,8 +109,8 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
107
109
|
withConditions: { type: Boolean, default: !1 }
|
|
108
110
|
},
|
|
109
111
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
110
|
-
setup(e, { expose:
|
|
111
|
-
const o = e,
|
|
112
|
+
setup(e, { expose: Z, emit: V }) {
|
|
113
|
+
const o = e, D = {
|
|
112
114
|
MULTILINE_LIST_HEIGHT: 48,
|
|
113
115
|
LIST_HEIGHT: 32 + 4,
|
|
114
116
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -116,39 +118,39 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
116
118
|
DROPLIST_MIN_WIDTH: 240,
|
|
117
119
|
VERSION: 4
|
|
118
120
|
}, {
|
|
119
|
-
onKeydown:
|
|
121
|
+
onKeydown: I,
|
|
120
122
|
open: c,
|
|
121
123
|
toggleMenu: v,
|
|
122
|
-
onButtonKeydown:
|
|
123
|
-
query:
|
|
124
|
-
containerProps:
|
|
125
|
-
calculateTableHeight:
|
|
126
|
-
wrapperProps:
|
|
127
|
-
filteredOptions:
|
|
128
|
-
allSelected:
|
|
129
|
-
allSelectedApplied:
|
|
130
|
-
isIndeterminate:
|
|
131
|
-
onSelectAll:
|
|
132
|
-
virtualOptions:
|
|
133
|
-
isSelected:
|
|
134
|
-
selectedOption:
|
|
135
|
-
selectedOptionPrevious:
|
|
136
|
-
selectedValue:
|
|
124
|
+
onButtonKeydown: P,
|
|
125
|
+
query: C,
|
|
126
|
+
containerProps: _,
|
|
127
|
+
calculateTableHeight: ee,
|
|
128
|
+
wrapperProps: te,
|
|
129
|
+
filteredOptions: oe,
|
|
130
|
+
allSelected: $,
|
|
131
|
+
allSelectedApplied: A,
|
|
132
|
+
isIndeterminate: ne,
|
|
133
|
+
onSelectAll: ie,
|
|
134
|
+
virtualOptions: M,
|
|
135
|
+
isSelected: O,
|
|
136
|
+
selectedOption: h,
|
|
137
|
+
selectedOptionPrevious: L,
|
|
138
|
+
selectedValue: le,
|
|
137
139
|
onSelect: R,
|
|
138
140
|
activeIndex: z,
|
|
139
|
-
onCancel:
|
|
140
|
-
onApply:
|
|
141
|
-
scrollTo:
|
|
142
|
-
listRef:
|
|
143
|
-
buttonRef:
|
|
144
|
-
apply:
|
|
145
|
-
cancel:
|
|
146
|
-
el:
|
|
147
|
-
onClearAllSelections:
|
|
148
|
-
clearAll:
|
|
149
|
-
isGroup:
|
|
150
|
-
flattenAndMarkGroupOptions:
|
|
151
|
-
} = Fe(o,
|
|
141
|
+
onCancel: ae,
|
|
142
|
+
onApply: de,
|
|
143
|
+
scrollTo: se,
|
|
144
|
+
listRef: re,
|
|
145
|
+
buttonRef: W,
|
|
146
|
+
apply: ue,
|
|
147
|
+
cancel: ce,
|
|
148
|
+
el: ye,
|
|
149
|
+
onClearAllSelections: G,
|
|
150
|
+
clearAll: me,
|
|
151
|
+
isGroup: fe,
|
|
152
|
+
flattenAndMarkGroupOptions: pe
|
|
153
|
+
} = Fe(o, V, D), g = Ne(o.testId, p), H = x(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Ee : null), { width: U } = Ve(W), ge = x(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? U.value - 2 > 240 ? `${U.value - 2}px` : `${D.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
152
154
|
Te(
|
|
153
155
|
() => o.optionsListWidth,
|
|
154
156
|
() => {
|
|
@@ -158,47 +160,53 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
158
160
|
);
|
|
159
161
|
}
|
|
160
162
|
);
|
|
161
|
-
const
|
|
163
|
+
const Y = () => {
|
|
162
164
|
v();
|
|
163
|
-
},
|
|
165
|
+
}, X = x(() => {
|
|
166
|
+
const i = {
|
|
167
|
+
tooltipMessage: null,
|
|
168
|
+
selections: []
|
|
169
|
+
};
|
|
164
170
|
if (o.multi && o.comparingKey) {
|
|
165
|
-
const
|
|
171
|
+
const l = S(h.value);
|
|
166
172
|
if (o.minSelections || o.maxSelections) {
|
|
167
|
-
if (Array.isArray(
|
|
168
|
-
return i.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
if (Array.isArray(l) && l.length <= o.minSelections)
|
|
174
|
+
return i.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, i.selections = l.map(
|
|
175
|
+
(n) => n[o.comparingKey]
|
|
176
|
+
), i;
|
|
177
|
+
if (o.maxSelections && Array.isArray(l) && l.length >= o.maxSelections) {
|
|
178
|
+
const n = l.map(
|
|
179
|
+
(b) => b[o.comparingKey]
|
|
180
|
+
), k = o.groupedOptions ? pe(o.options) : o.options;
|
|
181
|
+
return i.tooltipMessage = `You can only select up to ${o.maxSelections} items`, i.selections = k.map((b) => {
|
|
182
|
+
if (!n.includes(b[o.comparingKey]))
|
|
183
|
+
return b[o.comparingKey];
|
|
184
|
+
}), i;
|
|
177
185
|
}
|
|
178
186
|
}
|
|
179
187
|
}
|
|
180
|
-
return [];
|
|
181
|
-
}),
|
|
188
|
+
return i.tooltipMessage = null, i.selections = [], i;
|
|
189
|
+
}), he = (i) => {
|
|
182
190
|
if ((o.minSelections || o.maxSelections) && o.comparingKey)
|
|
183
|
-
return
|
|
191
|
+
return X.value.selections.includes(
|
|
184
192
|
i[o.comparingKey]
|
|
185
193
|
);
|
|
186
|
-
},
|
|
187
|
-
return
|
|
194
|
+
}, E = (i) => i[o.disabledOptionKey] || he(i);
|
|
195
|
+
return Z({
|
|
188
196
|
selectItem: R,
|
|
189
|
-
scrollTo:
|
|
190
|
-
}), (i, l) => (d(), r("div",
|
|
197
|
+
scrollTo: se
|
|
198
|
+
}), (i, l) => (d(), r("div", m({
|
|
191
199
|
ref_key: "el",
|
|
192
|
-
ref:
|
|
200
|
+
ref: ye,
|
|
193
201
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
194
202
|
tabindex: e.disabled ? -1 : 0
|
|
195
|
-
}, t(
|
|
203
|
+
}, t(g)[t(p).WRAPPER], {
|
|
196
204
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
197
|
-
(...n) => t(
|
|
205
|
+
(...n) => t(I) && t(I)(...n))
|
|
198
206
|
}), [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
a(t(
|
|
207
|
+
y(i.$slots, "label", {}, void 0, !0),
|
|
208
|
+
f("div", Me, [
|
|
209
|
+
a(t(Be), m({
|
|
202
210
|
theme: e.theme,
|
|
203
211
|
"popper-class": [
|
|
204
212
|
e.popperClass,
|
|
@@ -215,30 +223,30 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
215
223
|
"auto-hide": !1,
|
|
216
224
|
container: e.container,
|
|
217
225
|
"auto-size": e.autoSize
|
|
218
|
-
}, t(
|
|
226
|
+
}, t(g)[t(p).TRIGGER]), {
|
|
219
227
|
popper: u(() => [
|
|
220
228
|
a(we, null, {
|
|
221
229
|
default: u(() => [
|
|
222
230
|
t(c) ? (d(), r("div", {
|
|
223
231
|
key: 0,
|
|
224
232
|
ref_key: "listRef",
|
|
225
|
-
ref:
|
|
233
|
+
ref: re,
|
|
226
234
|
class: B(["light-theme-v4", {
|
|
227
235
|
"dropdown--disabled": e.disabled,
|
|
228
236
|
"inline-search": e.inlineSearch
|
|
229
237
|
}]),
|
|
230
|
-
style: be({ width: t(
|
|
238
|
+
style: be({ width: t(ge) })
|
|
231
239
|
}, [
|
|
232
240
|
t(c) ? (d(), r("div", {
|
|
233
241
|
key: 0,
|
|
234
242
|
class: B(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
235
243
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
236
|
-
(...n) => t(
|
|
244
|
+
(...n) => t(I) && t(I)(...n))
|
|
237
245
|
}, [
|
|
238
246
|
t(c) && e.inlineSearch ? (d(), r("div", Ge, [
|
|
239
|
-
e.withConditions ?
|
|
240
|
-
|
|
241
|
-
a(t(
|
|
247
|
+
e.withConditions ? y(i.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
248
|
+
f("div", He, [
|
|
249
|
+
a(t(Q), { variant: "body2" }, {
|
|
242
250
|
default: u(() => [
|
|
243
251
|
T("Conditions")
|
|
244
252
|
]),
|
|
@@ -246,11 +254,11 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
246
254
|
})
|
|
247
255
|
])
|
|
248
256
|
], !0) : s("", !0),
|
|
249
|
-
|
|
250
|
-
a(t(
|
|
251
|
-
modelValue: t(
|
|
257
|
+
y(i.$slots, "inline-search", {}, () => [
|
|
258
|
+
a(t(xe), {
|
|
259
|
+
modelValue: t(C),
|
|
252
260
|
"onUpdate:modelValue": [
|
|
253
|
-
l[4] || (l[4] = (n) => Ie(
|
|
261
|
+
l[4] || (l[4] = (n) => Ie(C) ? C.value = n : null),
|
|
254
262
|
e.onClearSearch
|
|
255
263
|
],
|
|
256
264
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -258,48 +266,48 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
258
266
|
size: "md",
|
|
259
267
|
"auto-focus": e.searchAutoFocus,
|
|
260
268
|
"test-id": e.testId,
|
|
261
|
-
onKeydown: t(
|
|
269
|
+
onKeydown: t(I)
|
|
262
270
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
263
271
|
], !0)
|
|
264
272
|
])) : s("", !0),
|
|
265
|
-
|
|
266
|
-
|
|
273
|
+
y(i.$slots, "input-list", { open: t(c) }, void 0, !0),
|
|
274
|
+
f("div", m({
|
|
267
275
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
268
|
-
style: { height: `${t(
|
|
276
|
+
style: { height: `${t(ee)}rem` }
|
|
269
277
|
}, {
|
|
270
|
-
...t(
|
|
271
|
-
...t(
|
|
278
|
+
...t(_),
|
|
279
|
+
...t(g)[t(p).LIST_CONTAINER]
|
|
272
280
|
}), [
|
|
273
|
-
|
|
274
|
-
|
|
281
|
+
y(i.$slots, "custom-list-area", {}, void 0, !0),
|
|
282
|
+
f("ul", m(t(te), {
|
|
275
283
|
role: "listbox",
|
|
276
284
|
class: ["list", {
|
|
277
285
|
"list--multi": e.multi,
|
|
278
286
|
"list--with-conditions": e.withConditions
|
|
279
287
|
}]
|
|
280
288
|
}), [
|
|
281
|
-
!t(
|
|
282
|
-
a(t(
|
|
289
|
+
!t(oe).length && !e.loading && !e.withConditions ? (d(), r("li", Ue, [
|
|
290
|
+
a(t(Q), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
283
291
|
default: u(() => [
|
|
284
|
-
T(
|
|
292
|
+
T(q(e.noResultsText), 1)
|
|
285
293
|
]),
|
|
286
294
|
_: 1
|
|
287
295
|
}, 16)
|
|
288
296
|
])) : s("", !0),
|
|
289
|
-
e.showSelectAll !== !1 && e.multi && !t(
|
|
290
|
-
|
|
291
|
-
a(t(
|
|
297
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? y(i.$slots, "select-all", { key: 1 }, () => [
|
|
298
|
+
f("li", null, [
|
|
299
|
+
a(t(J), m(
|
|
292
300
|
{
|
|
293
|
-
"aria-selected": t(
|
|
301
|
+
"aria-selected": t($),
|
|
294
302
|
"aria-disabled": !!e.disabled,
|
|
295
|
-
"selected-prop": t(
|
|
296
|
-
"is-indeterminate": t(
|
|
303
|
+
"selected-prop": t($),
|
|
304
|
+
"is-indeterminate": t(ne),
|
|
297
305
|
"is-multi": e.multi,
|
|
298
306
|
"select-all-option": ""
|
|
299
307
|
},
|
|
300
|
-
t(
|
|
308
|
+
t(g)[t(p).SELECT_ALL],
|
|
301
309
|
{
|
|
302
|
-
onClick: l[5] || (l[5] =
|
|
310
|
+
onClick: l[5] || (l[5] = j((n) => t(ie)(), ["stop"]))
|
|
303
311
|
}
|
|
304
312
|
), {
|
|
305
313
|
default: u(() => [
|
|
@@ -309,35 +317,35 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
309
317
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
310
318
|
])
|
|
311
319
|
], !0) : s("", !0),
|
|
312
|
-
t(
|
|
313
|
-
key:
|
|
314
|
-
"aria-selected": t(
|
|
320
|
+
t(M).length && !e.loading ? (d(!0), r(Se, { key: 2 }, ve(t(M), ({ data: n, index: k }) => (d(), r("li", {
|
|
321
|
+
key: k,
|
|
322
|
+
"aria-selected": t(O)(S(t(h)), n),
|
|
315
323
|
"aria-disabled": !!e.disabled,
|
|
316
|
-
onClick:
|
|
317
|
-
() => !
|
|
324
|
+
onClick: j(
|
|
325
|
+
() => !E(n) && t(R)(n, k),
|
|
318
326
|
["stop"]
|
|
319
327
|
)
|
|
320
328
|
}, [
|
|
321
|
-
e.groupedOptions && t(
|
|
329
|
+
e.groupedOptions && t(fe)(n) ? y(i.$slots, "group-option", { key: 0 }, () => [
|
|
322
330
|
a(Pe, null, {
|
|
323
331
|
default: u(() => [
|
|
324
|
-
T(
|
|
332
|
+
T(q(e.displayValue(n) || n[e.optionNameKey]), 1)
|
|
325
333
|
]),
|
|
326
334
|
_: 2
|
|
327
335
|
}, 1024)
|
|
328
|
-
], !0) :
|
|
336
|
+
], !0) : y(i.$slots, "default", {
|
|
329
337
|
key: 1,
|
|
330
338
|
option: n,
|
|
331
|
-
index:
|
|
332
|
-
selected: t(
|
|
333
|
-
active:
|
|
334
|
-
disabled:
|
|
339
|
+
index: k,
|
|
340
|
+
selected: t(O)(S(t(h)), n),
|
|
341
|
+
active: S(t(z)) === k,
|
|
342
|
+
disabled: E(n)
|
|
335
343
|
}, () => [
|
|
336
|
-
a(t(
|
|
344
|
+
a(t(J), {
|
|
337
345
|
option: n,
|
|
338
|
-
"selected-prop": t(
|
|
339
|
-
active:
|
|
340
|
-
disabled:
|
|
346
|
+
"selected-prop": t(O)(t(h), n),
|
|
347
|
+
active: S(t(z)) === k,
|
|
348
|
+
disabled: E(n),
|
|
341
349
|
"name-key": e.optionNameKey,
|
|
342
350
|
"image-key": e.optionImageKey,
|
|
343
351
|
"icon-key": e.optionIconKey,
|
|
@@ -349,71 +357,74 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
349
357
|
"warning-key": e.optionWarningKey,
|
|
350
358
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
351
359
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
352
|
-
"
|
|
360
|
+
"tooltip-placement": e.optionTooltipPosition,
|
|
361
|
+
"is-multi": e.multi,
|
|
362
|
+
"min-max-selection-tooltip-message": t(X)?.tooltipMessage
|
|
353
363
|
}, Ce({ _: 2 }, [
|
|
354
364
|
i.$slots["option-end"] ? {
|
|
355
365
|
name: "option-end",
|
|
356
|
-
fn: u(({ option:
|
|
357
|
-
|
|
366
|
+
fn: u(({ option: b }) => [
|
|
367
|
+
y(i.$slots, "option-end", { option: b }, void 0, !0)
|
|
358
368
|
]),
|
|
359
369
|
key: "0"
|
|
360
370
|
} : void 0
|
|
361
|
-
]), 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", "is-multi"])
|
|
371
|
+
]), 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"])
|
|
362
372
|
], !0)
|
|
363
|
-
], 8,
|
|
364
|
-
e.loading || e.loadMoreLoading ? (d(), r("li",
|
|
365
|
-
a(t(
|
|
366
|
-
a(t(
|
|
367
|
-
a(t(
|
|
368
|
-
a(t(
|
|
373
|
+
], 8, Ye))), 128)) : s("", !0),
|
|
374
|
+
e.loading || e.loadMoreLoading ? (d(), r("li", Xe, [
|
|
375
|
+
a(t(K), { round: "" }),
|
|
376
|
+
a(t(K), { round: "" }),
|
|
377
|
+
a(t(K), { round: "" }),
|
|
378
|
+
a(t(K), { round: "" })
|
|
369
379
|
])) : s("", !0)
|
|
370
380
|
], 16)
|
|
371
381
|
], 16),
|
|
372
|
-
e.multi ? (d(), r("div",
|
|
373
|
-
|
|
374
|
-
|
|
382
|
+
e.multi ? (d(), r("div", qe, [
|
|
383
|
+
f("div", je, [
|
|
384
|
+
e.showClearAll ? (d(), F(t(N), m(
|
|
375
385
|
{
|
|
386
|
+
key: 0,
|
|
376
387
|
ref_key: "clearAll",
|
|
377
|
-
ref:
|
|
388
|
+
ref: me,
|
|
378
389
|
size: "small",
|
|
379
390
|
variant: "text",
|
|
380
391
|
color: "primary"
|
|
381
392
|
},
|
|
382
|
-
t(
|
|
393
|
+
t(g)[t(p).ACTION_CLEAR_ALL],
|
|
383
394
|
{
|
|
384
|
-
onClick: l[6] || (l[6] = () => t(
|
|
395
|
+
onClick: l[6] || (l[6] = () => t(G)(!1))
|
|
385
396
|
}
|
|
386
397
|
), {
|
|
387
398
|
default: u(() => [
|
|
388
399
|
T(" Clear all ")
|
|
389
400
|
]),
|
|
390
401
|
_: 1
|
|
391
|
-
}, 16)
|
|
402
|
+
}, 16)) : s("", !0)
|
|
392
403
|
]),
|
|
393
|
-
|
|
394
|
-
a(t(
|
|
404
|
+
f("div", Je, [
|
|
405
|
+
a(t(N), m(
|
|
395
406
|
{
|
|
396
407
|
ref_key: "cancel",
|
|
397
|
-
ref:
|
|
408
|
+
ref: ce,
|
|
398
409
|
size: "small",
|
|
399
410
|
variant: "outlined",
|
|
400
411
|
color: "primary"
|
|
401
412
|
},
|
|
402
|
-
t(
|
|
403
|
-
{ onClick: t(
|
|
413
|
+
t(g)[t(p).ACTION_CANCEL],
|
|
414
|
+
{ onClick: t(ae) }
|
|
404
415
|
), {
|
|
405
416
|
default: u(() => [
|
|
406
417
|
T(" Cancel ")
|
|
407
418
|
]),
|
|
408
419
|
_: 1
|
|
409
420
|
}, 16, ["onClick"]),
|
|
410
|
-
a(t(
|
|
421
|
+
a(t(N), m({
|
|
411
422
|
ref_key: "apply",
|
|
412
|
-
ref:
|
|
423
|
+
ref: ue,
|
|
413
424
|
"data-testid": "mutli-apply",
|
|
414
425
|
size: "small",
|
|
415
426
|
class: "apply-button"
|
|
416
|
-
}, t(
|
|
427
|
+
}, t(g)[t(p).ACTION_APPLY], { onClick: t(de) }), {
|
|
417
428
|
default: u(() => [
|
|
418
429
|
T(" Apply ")
|
|
419
430
|
]),
|
|
@@ -428,22 +439,22 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
428
439
|
})
|
|
429
440
|
]),
|
|
430
441
|
default: u(() => [
|
|
431
|
-
|
|
442
|
+
f("div", {
|
|
432
443
|
class: B(["button__container", {
|
|
433
444
|
"button__container--open": !!t(c),
|
|
434
445
|
[`button__container--${e.size}`]: !0,
|
|
435
446
|
"button__container--disabled": e.disabled
|
|
436
447
|
}])
|
|
437
448
|
}, [
|
|
438
|
-
|
|
449
|
+
f("div", {
|
|
439
450
|
ref_key: "buttonRef",
|
|
440
|
-
ref:
|
|
451
|
+
ref: W
|
|
441
452
|
}, [
|
|
442
|
-
|
|
453
|
+
y(i.$slots, "dropdown-trigger", {
|
|
443
454
|
buttonTriggerProps: {
|
|
444
455
|
open: t(c),
|
|
445
456
|
disabled: e.disabled,
|
|
446
|
-
label: t(
|
|
457
|
+
label: t(le) || e.placeholder,
|
|
447
458
|
onClick: () => t(v)()
|
|
448
459
|
},
|
|
449
460
|
defaultTriggerProps: {
|
|
@@ -455,7 +466,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
455
466
|
testId: e.testId,
|
|
456
467
|
multi: e.multi,
|
|
457
468
|
disabled: e.disabled,
|
|
458
|
-
selectedOption: e.multi ? t(
|
|
469
|
+
selectedOption: e.multi ? t(L) : t(h),
|
|
459
470
|
displayValue: e.displayValue,
|
|
460
471
|
options: e.options,
|
|
461
472
|
optionNameKey: e.optionNameKey,
|
|
@@ -471,13 +482,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
471
482
|
statusDotType: e.statusType,
|
|
472
483
|
size: e.size,
|
|
473
484
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
474
|
-
allSelected: t(
|
|
475
|
-
onKeydown: t(
|
|
476
|
-
onClick:
|
|
485
|
+
allSelected: t(A),
|
|
486
|
+
onKeydown: t(P),
|
|
487
|
+
onClick: Y
|
|
477
488
|
}
|
|
478
489
|
}, () => [
|
|
479
|
-
t(
|
|
480
|
-
(d(),
|
|
490
|
+
t(H) ? (d(), r("div", Re, [
|
|
491
|
+
(d(), F(Ke(t(H)), {
|
|
481
492
|
placeholder: e.placeholder,
|
|
482
493
|
open: t(c),
|
|
483
494
|
label: e.triggerLabel,
|
|
@@ -486,7 +497,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
486
497
|
"test-id": e.testId,
|
|
487
498
|
multi: e.multi,
|
|
488
499
|
disabled: e.disabled,
|
|
489
|
-
"selected-option": e.multi ? t(
|
|
500
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
490
501
|
"display-value": e.displayValue,
|
|
491
502
|
options: e.options,
|
|
492
503
|
"option-name-key": e.optionNameKey,
|
|
@@ -502,13 +513,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
502
513
|
"status-dot-type": e.statusType,
|
|
503
514
|
size: e.size,
|
|
504
515
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
505
|
-
"all-selected": t(
|
|
506
|
-
onKeydown: t(
|
|
507
|
-
onClick:
|
|
508
|
-
onCopyToClipboard: l[0] || (l[0] = (n) =>
|
|
516
|
+
"all-selected": t(A),
|
|
517
|
+
onKeydown: t(P),
|
|
518
|
+
onClick: Y,
|
|
519
|
+
onCopyToClipboard: l[0] || (l[0] = (n) => V("copyToClipboard"))
|
|
509
520
|
}, 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"]))
|
|
510
521
|
])) : s("", !0),
|
|
511
|
-
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div",
|
|
522
|
+
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div", ze, [
|
|
512
523
|
a(t(Oe), {
|
|
513
524
|
onClick: l[1] || (l[1] = (n) => t(v)())
|
|
514
525
|
})
|
|
@@ -519,13 +530,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
519
530
|
label: e.placeholder,
|
|
520
531
|
"test-id": e.testId,
|
|
521
532
|
options: e.options,
|
|
522
|
-
"selected-option": e.multi ? t(
|
|
533
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
523
534
|
"display-value": e.displayValue,
|
|
524
535
|
multi: e.multi,
|
|
525
|
-
"all-selected": t(
|
|
536
|
+
"all-selected": t(A),
|
|
526
537
|
"shown-values-count": e.triggerShownValuesCount,
|
|
527
538
|
onClick: l[2] || (l[2] = (n) => t(v)()),
|
|
528
|
-
onClear: l[3] || (l[3] = (n) => t(
|
|
539
|
+
onClear: l[3] || (l[3] = (n) => t(G)())
|
|
529
540
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
530
541
|
])) : s("", !0)
|
|
531
542
|
], !0)
|
|
@@ -534,7 +545,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
534
545
|
]),
|
|
535
546
|
_: 3
|
|
536
547
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
537
|
-
e.triggerFeedbackText ? (d(),
|
|
548
|
+
e.triggerFeedbackText ? (d(), F(De, {
|
|
538
549
|
key: 0,
|
|
539
550
|
text: e.triggerFeedbackText,
|
|
540
551
|
variant: e.triggerFeedbackVariant,
|
|
@@ -543,9 +554,9 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
543
554
|
class: "dropdown-field-help-text"
|
|
544
555
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : s("", !0)
|
|
545
556
|
])
|
|
546
|
-
], 16,
|
|
557
|
+
], 16, $e));
|
|
547
558
|
}
|
|
548
559
|
});
|
|
549
560
|
export {
|
|
550
|
-
|
|
561
|
+
vt as default
|
|
551
562
|
};
|