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