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