@ironsource/shared-ui 2.1.3-rc.9 → 2.1.3
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/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_2e91704b_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_8ffac784_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_fa761e4d_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +14 -7
- package/components/alert/Alert.vue.js +2 -2
- package/components/alert/Alert.vue2.js +30 -29
- package/components/alert/index.d.ts +176 -38
- package/components/appHeader/AppHeader.vue.d.ts +5 -0
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +49 -37
- package/components/appHeader/index.d.ts +9 -0
- package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
- package/components/autocomplete/Autocomplete.vue.js +7 -0
- package/components/autocomplete/Autocomplete.vue2.js +99 -0
- package/components/autocomplete/index.d.ts +459 -0
- package/components/autocomplete/index.js +6 -0
- package/components/button/v4/ButtonV4.vue2.js +90 -1
- package/components/checkbox/v3/index.d.ts +12 -12
- package/components/checkbox/v4/index.d.ts +12 -12
- package/components/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +2 -2
- package/components/dialog/v4/index.d.ts +16 -16
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +34 -33
- package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
- package/components/dropdown/v3/index.d.ts +159 -159
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +31 -31
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +96 -86
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
- package/components/dropdown/v4/index.d.ts +705 -610
- package/components/dropdown/v4/index.js +16 -10
- package/components/filterDropdown/index.d.ts +8 -8
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/forms/FormRow.vue.js +2 -2
- package/components/forms/FormRow.vue2.js +9 -9
- package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
- package/components/includeExclude/index.d.ts +168 -168
- package/components/input/v3/Input.vue.d.ts +3 -3
- package/components/input/v3/index.d.ts +82 -82
- package/components/input/v4/TextField.vue.d.ts +6 -6
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +2 -2
- package/components/input/v4/index.d.ts +115 -115
- package/components/multibar/MultiBarMenu.vue2.js +13 -11
- package/components/table/common/Table.types.d.ts +3 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -2
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -137
- package/components/table/v4/DataGridMenu.vue2.js +13 -11
- package/components/table/v4/HelpIcon.vue.d.ts +40 -0
- package/components/table/v4/HelpIcon.vue.js +7 -0
- package/components/table/v4/HelpIcon.vue2.js +32 -0
- package/components/table/v4/index.d.ts +39 -39
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/index.d.ts +20 -20
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +4 -4
- package/components/textArea/v4/TextAreaV4.vue.d.ts +3 -3
- package/components/textArea/v4/index.d.ts +23 -23
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +9 -9
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +28 -28
- package/index.d.ts +2216 -1922
- package/index.js +74 -70
- package/package.json +5 -3
- package/testids/index.d.ts +3 -1
- package/testids/index.js +10 -10
- package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab86b0a_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +0 -1
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as de, computed as V, openBlock as i, createElementBlock as n, mergeProps as u, unref as e, renderSlot as w, createElementVNode as p, createVNode as a, withCtx as c, Transition as re, normalizeClass as F, normalizeStyle as se, isRef as ue, createCommentVNode as r, createTextVNode as g, toDisplayString as ce, withModifiers as x, Fragment as fe, renderList as me, toRaw as k, createBlock as pe, resolveDynamicComponent as ye } from "vue";
|
|
2
2
|
import A from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "./DropdownV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import ge from "./DefaultDropdownTrigger.vue.js";
|
|
6
|
+
import he from "./IconButtonDropdownTrigger.vue.js";
|
|
7
|
+
import be from "./ChipDropdownTrigger.vue.js";
|
|
8
8
|
import ke from "./AppDropdownTrigger.vue.js";
|
|
9
|
+
import "./ButtonDropdownTrigger.vue.js";
|
|
10
|
+
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
11
|
import $ from "./OptionV4.vue.js";
|
|
10
12
|
import Te from "../../search/v4/SearchV4.vue.js";
|
|
11
13
|
import H from "../../typography/v4/Typography.vue.js";
|
|
12
|
-
import { Dropdown as
|
|
13
|
-
import { DropdownTestIdModifiers as
|
|
14
|
-
import { dropdownCommon as
|
|
15
|
-
import
|
|
16
|
-
import { useTestIdAttrs as
|
|
17
|
-
import { TRIGGERS as
|
|
18
|
-
import { useElementSize as
|
|
19
|
-
const
|
|
14
|
+
import { Dropdown as ve } from "floating-vue";
|
|
15
|
+
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
16
|
+
import { dropdownCommon as Ie } from "../common/Dropdown.common.js";
|
|
17
|
+
import we from "../../loader/v4/Loader.vue.js";
|
|
18
|
+
import { useTestIdAttrs as Ce } from "../../../utils/testIds.js";
|
|
19
|
+
import { TRIGGERS as y } from "./Dropdown.types.js";
|
|
20
|
+
import { useElementSize as Se } from "@vueuse/core";
|
|
21
|
+
const Ae = ["tabindex"], Le = { style: { width: "100%" } }, Oe = { key: 0 }, Be = { key: 1 }, Ne = { key: 2 }, De = {
|
|
20
22
|
key: 0,
|
|
21
23
|
class: "inline-search-wrapper"
|
|
22
|
-
},
|
|
24
|
+
}, Ke = {
|
|
23
25
|
key: 0,
|
|
24
26
|
class: "no-result-container"
|
|
25
27
|
}, Ee = {
|
|
26
28
|
key: 1,
|
|
27
29
|
class: "loader"
|
|
28
|
-
},
|
|
30
|
+
}, Pe = { key: 2 }, Re = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
29
31
|
key: 1,
|
|
30
32
|
class: "actions-wrapper"
|
|
31
|
-
},
|
|
33
|
+
}, Ve = { class: "actions-clear-all" }, Fe = { class: "actions-apply-cancel" }, at = /* @__PURE__ */ de({
|
|
32
34
|
__name: "DropdownV4",
|
|
33
35
|
props: {
|
|
34
36
|
modelValue: { default: null },
|
|
@@ -59,7 +61,7 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
59
61
|
triggerFeedbackShowIcon: { type: Boolean, default: !1 },
|
|
60
62
|
size: { default: "medium" },
|
|
61
63
|
mandatory: { type: Boolean, default: !1 },
|
|
62
|
-
predefinedTrigger: { default:
|
|
64
|
+
predefinedTrigger: { default: y.DEFAULT },
|
|
63
65
|
inlineSearch: { type: Boolean, default: !1 },
|
|
64
66
|
inlineSearchPlaceholder: { default: "Search" },
|
|
65
67
|
onSearch: { type: Function, default: null },
|
|
@@ -72,6 +74,7 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
72
74
|
optionImageKey: { default: "" },
|
|
73
75
|
optionIconType: { default: null },
|
|
74
76
|
valueToCopy: { default: null },
|
|
77
|
+
disabledOptionKey: { default: "disabled" },
|
|
75
78
|
theme: { default: "light-theme-v4" },
|
|
76
79
|
fullWidth: { type: Boolean, default: !0 },
|
|
77
80
|
optionsListWidth: { default: null },
|
|
@@ -79,7 +82,7 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
79
82
|
},
|
|
80
83
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
|
|
81
84
|
setup(t, { expose: U, emit: W }) {
|
|
82
|
-
const
|
|
85
|
+
const d = t, L = {
|
|
83
86
|
MULTILINE_LIST_HEIGHT: 48,
|
|
84
87
|
LIST_HEIGHT: 32 + 4,
|
|
85
88
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -87,52 +90,53 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
87
90
|
DROPLIST_MIN_WIDTH: 240
|
|
88
91
|
}, {
|
|
89
92
|
onKeydown: h,
|
|
90
|
-
open:
|
|
91
|
-
toggleMenu:
|
|
93
|
+
open: s,
|
|
94
|
+
toggleMenu: T,
|
|
92
95
|
onButtonKeydown: M,
|
|
93
96
|
query: C,
|
|
94
97
|
containerProps: G,
|
|
95
98
|
calculateTableHeight: X,
|
|
96
|
-
wrapperProps:
|
|
99
|
+
wrapperProps: O,
|
|
97
100
|
filteredOptions: q,
|
|
98
|
-
allSelected:
|
|
101
|
+
allSelected: B,
|
|
99
102
|
isIndeterminate: Y,
|
|
100
103
|
onSelectAll: j,
|
|
101
|
-
virtualOptions:
|
|
104
|
+
virtualOptions: N,
|
|
102
105
|
isSelected: S,
|
|
103
|
-
selectedOption:
|
|
106
|
+
selectedOption: b,
|
|
107
|
+
selectedValue: J,
|
|
104
108
|
onSelect: D,
|
|
105
|
-
activeIndex:
|
|
106
|
-
onCancel:
|
|
107
|
-
onApply:
|
|
108
|
-
scrollTo:
|
|
109
|
-
listRef:
|
|
110
|
-
buttonRef:
|
|
111
|
-
apply:
|
|
112
|
-
cancel:
|
|
113
|
-
el:
|
|
109
|
+
activeIndex: K,
|
|
110
|
+
onCancel: Q,
|
|
111
|
+
onApply: Z,
|
|
112
|
+
scrollTo: _,
|
|
113
|
+
listRef: ee,
|
|
114
|
+
buttonRef: E,
|
|
115
|
+
apply: te,
|
|
116
|
+
cancel: le,
|
|
117
|
+
el: oe,
|
|
114
118
|
onClearAllSelections: P,
|
|
115
|
-
clearAll:
|
|
116
|
-
} =
|
|
119
|
+
clearAll: ie
|
|
120
|
+
} = Ie(d, W, L);
|
|
117
121
|
U({
|
|
118
122
|
selectItem: D,
|
|
119
|
-
scrollTo:
|
|
123
|
+
scrollTo: _
|
|
120
124
|
});
|
|
121
|
-
const m =
|
|
122
|
-
|
|
125
|
+
const m = Ce(d.testId, f), R = V(() => !d.predefinedTrigger || d.predefinedTrigger === y.DEFAULT ? ge : d.predefinedTrigger === y.APP ? ke : null), { width: z } = Se(E), ne = V(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === y.DEFAULT || d.predefinedTrigger === y.APP ? z.value - 2 > 240 ? `${z.value - 2}px` : `${L.DROPLIST_MIN_WIDTH}px` : "auto"), ae = () => {
|
|
126
|
+
T();
|
|
123
127
|
};
|
|
124
|
-
return (
|
|
128
|
+
return (v, o) => (i(), n("div", u({
|
|
125
129
|
ref_key: "el",
|
|
126
|
-
ref:
|
|
130
|
+
ref: oe,
|
|
127
131
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": t.disabled, "full-width": t.fullWidth }]],
|
|
128
132
|
tabindex: t.disabled ? -1 : 0
|
|
129
|
-
}, e(m)[e(
|
|
133
|
+
}, e(m)[e(f).WRAPPER], {
|
|
130
134
|
onKeydown: o[6] || (o[6] = //@ts-ignore
|
|
131
135
|
(...l) => e(h) && e(h)(...l))
|
|
132
136
|
}), [
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
a(e(
|
|
137
|
+
w(v.$slots, "label", {}, void 0, !0),
|
|
138
|
+
p("div", Le, [
|
|
139
|
+
a(e(ve), u({
|
|
136
140
|
theme: t.theme,
|
|
137
141
|
"popper-class": [
|
|
138
142
|
t.popperClass,
|
|
@@ -145,35 +149,35 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
145
149
|
distance: t.distance,
|
|
146
150
|
flip: t.flip,
|
|
147
151
|
triggers: [],
|
|
148
|
-
shown: !!e(
|
|
152
|
+
shown: !!e(s),
|
|
149
153
|
"auto-hide": !1,
|
|
150
154
|
container: t.container,
|
|
151
155
|
"auto-size": t.autoSize
|
|
152
|
-
}, e(m)[e(
|
|
153
|
-
popper:
|
|
154
|
-
a(
|
|
155
|
-
default:
|
|
156
|
-
e(
|
|
156
|
+
}, e(m)[e(f).TRIGGER]), {
|
|
157
|
+
popper: c(() => [
|
|
158
|
+
a(re, null, {
|
|
159
|
+
default: c(() => [
|
|
160
|
+
e(s) ? (i(), n("div", {
|
|
157
161
|
key: 0,
|
|
158
162
|
ref_key: "listRef",
|
|
159
|
-
ref:
|
|
160
|
-
class:
|
|
163
|
+
ref: ee,
|
|
164
|
+
class: F(["light-theme-v4", {
|
|
161
165
|
"dropdown--disabled": t.disabled,
|
|
162
166
|
"inline-search": t.inlineSearch
|
|
163
167
|
}]),
|
|
164
|
-
style:
|
|
168
|
+
style: se({ width: e(ne) })
|
|
165
169
|
}, [
|
|
166
|
-
e(
|
|
170
|
+
e(s) ? (i(), n("div", {
|
|
167
171
|
key: 0,
|
|
168
172
|
class: "dropdown-list-wrapper",
|
|
169
173
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
170
174
|
(...l) => e(h) && e(h)(...l))
|
|
171
175
|
}, [
|
|
172
|
-
e(
|
|
176
|
+
e(s) && t.inlineSearch ? (i(), n("div", De, [
|
|
173
177
|
a(e(Te), {
|
|
174
178
|
modelValue: e(C),
|
|
175
179
|
"onUpdate:modelValue": [
|
|
176
|
-
o[3] || (o[3] = (l) =>
|
|
180
|
+
o[3] || (o[3] = (l) => ue(C) ? C.value = l : null),
|
|
177
181
|
t.onClear
|
|
178
182
|
],
|
|
179
183
|
placeholder: t.inlineSearchPlaceholder,
|
|
@@ -183,156 +187,165 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
183
187
|
"test-id": t.testId,
|
|
184
188
|
onKeydown: e(h)
|
|
185
189
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
186
|
-
])) :
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
])) : r("", !0),
|
|
191
|
+
w(v.$slots, "input-list", { open: e(s) }, void 0, !0),
|
|
192
|
+
p("div", u({
|
|
189
193
|
class: ["list-container", { "list-container--multi": t.multi }],
|
|
190
194
|
style: { height: `${e(X)}rem` }
|
|
191
195
|
}, {
|
|
192
196
|
...e(G),
|
|
193
|
-
...e(m)[e(
|
|
197
|
+
...e(m)[e(f).LIST_CONTAINER]
|
|
194
198
|
}), [
|
|
195
|
-
|
|
199
|
+
p("ul", u(e(O), {
|
|
196
200
|
style: {
|
|
197
|
-
height: Number(e(
|
|
201
|
+
height: Number(e(O).style.height) - 4
|
|
198
202
|
},
|
|
199
203
|
role: "listbox",
|
|
200
204
|
class: ["list", { "list--multi": t.multi }]
|
|
201
205
|
}), [
|
|
202
|
-
!e(q).length && !t.loading ? (i(), n("li",
|
|
203
|
-
a(e(H),
|
|
204
|
-
default:
|
|
205
|
-
g(
|
|
206
|
+
!e(q).length && !t.loading ? (i(), n("li", Ke, [
|
|
207
|
+
a(e(H), u({ variant: "body2" }, e(m)[e(f).NO_RESULT]), {
|
|
208
|
+
default: c(() => [
|
|
209
|
+
g(ce(t.noResultsText), 1)
|
|
206
210
|
]),
|
|
207
211
|
_: 1
|
|
208
212
|
}, 16)
|
|
209
|
-
])) :
|
|
213
|
+
])) : r("", !0),
|
|
210
214
|
t.loading ? (i(), n("li", Ee, [
|
|
211
|
-
a(e(
|
|
215
|
+
a(e(we)),
|
|
212
216
|
a(e(H), null, {
|
|
213
|
-
default:
|
|
217
|
+
default: c(() => [
|
|
214
218
|
g("Loading...")
|
|
215
219
|
]),
|
|
216
220
|
_: 1
|
|
217
221
|
})
|
|
218
|
-
])) :
|
|
219
|
-
t.showSelectAll !== !1 && t.multi ? (i(), n("li",
|
|
220
|
-
a(e($),
|
|
222
|
+
])) : r("", !0),
|
|
223
|
+
t.showSelectAll !== !1 && t.multi ? (i(), n("li", Pe, [
|
|
224
|
+
a(e($), u(
|
|
221
225
|
{
|
|
222
|
-
"aria-selected": e(
|
|
226
|
+
"aria-selected": e(B),
|
|
223
227
|
"aria-disabled": !!t.disabled,
|
|
224
|
-
"selected-prop": e(
|
|
228
|
+
"selected-prop": e(B),
|
|
225
229
|
"is-indeterminate": e(Y),
|
|
226
230
|
"select-all-option": ""
|
|
227
231
|
},
|
|
228
|
-
e(m)[e(
|
|
232
|
+
e(m)[e(f).SELECT_ALL],
|
|
229
233
|
{
|
|
230
234
|
onClick: o[4] || (o[4] = x((l) => e(j)(), ["stop"]))
|
|
231
235
|
}
|
|
232
236
|
), {
|
|
233
|
-
default:
|
|
237
|
+
default: c(() => [
|
|
234
238
|
g("Select all ")
|
|
235
239
|
]),
|
|
236
240
|
_: 1
|
|
237
241
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
238
|
-
])) :
|
|
239
|
-
e(
|
|
240
|
-
key:
|
|
241
|
-
"aria-selected": e(S)(
|
|
242
|
+
])) : r("", !0),
|
|
243
|
+
e(N).length && !t.loading ? (i(!0), n(fe, { key: 3 }, me(e(N), ({ data: l, index: I }) => (i(), n("li", {
|
|
244
|
+
key: I,
|
|
245
|
+
"aria-selected": e(S)(k(e(b)), l),
|
|
242
246
|
"aria-disabled": !!t.disabled,
|
|
243
|
-
onClick: x(() => e(D)(l,
|
|
247
|
+
onClick: x(() => e(D)(l, I), ["stop"])
|
|
244
248
|
}, [
|
|
245
|
-
|
|
249
|
+
w(v.$slots, "default", {
|
|
246
250
|
option: l,
|
|
247
|
-
selected: e(S)(
|
|
248
|
-
active:
|
|
251
|
+
selected: e(S)(k(e(b)), l),
|
|
252
|
+
active: k(e(K)) === I,
|
|
253
|
+
disabled: l[d.disabledOptionKey]
|
|
249
254
|
}, () => [
|
|
250
255
|
a(e($), {
|
|
251
256
|
option: l,
|
|
252
|
-
selected: e(S)(
|
|
253
|
-
active:
|
|
257
|
+
selected: e(S)(k(e(b)), l),
|
|
258
|
+
active: k(e(K)) === I,
|
|
259
|
+
disabled: l[d.disabledOptionKey],
|
|
254
260
|
"name-key": t.optionNameKey,
|
|
255
261
|
"image-key": t.optionImageKey,
|
|
256
262
|
"icon-key": t.optionIconKey,
|
|
257
263
|
"icon-type": t.optionIconType
|
|
258
|
-
}, null, 8, ["option", "selected", "active", "name-key", "image-key", "icon-key", "icon-type"])
|
|
264
|
+
}, null, 8, ["option", "selected", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type"])
|
|
259
265
|
], !0)
|
|
260
|
-
], 8,
|
|
266
|
+
], 8, Re))), 128)) : r("", !0)
|
|
261
267
|
], 16)
|
|
262
268
|
], 16),
|
|
263
269
|
t.multi ? (i(), n("div", ze, [
|
|
264
|
-
|
|
265
|
-
a(e(A),
|
|
270
|
+
p("div", Ve, [
|
|
271
|
+
a(e(A), u(
|
|
266
272
|
{
|
|
267
273
|
ref_key: "clearAll",
|
|
268
|
-
ref:
|
|
274
|
+
ref: ie,
|
|
269
275
|
size: "small",
|
|
270
276
|
variant: "text",
|
|
271
277
|
color: "primary"
|
|
272
278
|
},
|
|
273
|
-
e(m)[e(
|
|
279
|
+
e(m)[e(f).ACTION_CLEAR_ALL],
|
|
274
280
|
{ onClick: e(P) }
|
|
275
281
|
), {
|
|
276
|
-
default:
|
|
282
|
+
default: c(() => [
|
|
277
283
|
g(" Clear all ")
|
|
278
284
|
]),
|
|
279
285
|
_: 1
|
|
280
286
|
}, 16, ["onClick"])
|
|
281
287
|
]),
|
|
282
|
-
|
|
283
|
-
a(e(A),
|
|
288
|
+
p("div", Fe, [
|
|
289
|
+
a(e(A), u(
|
|
284
290
|
{
|
|
285
291
|
ref_key: "cancel",
|
|
286
|
-
ref:
|
|
292
|
+
ref: le,
|
|
287
293
|
size: "small",
|
|
288
294
|
variant: "outlined",
|
|
289
295
|
color: "primary"
|
|
290
296
|
},
|
|
291
|
-
e(m)[e(
|
|
292
|
-
{ onClick: e(
|
|
297
|
+
e(m)[e(f).ACTION_CANCEL],
|
|
298
|
+
{ onClick: e(Q) }
|
|
293
299
|
), {
|
|
294
|
-
default:
|
|
300
|
+
default: c(() => [
|
|
295
301
|
g(" Cancel ")
|
|
296
302
|
]),
|
|
297
303
|
_: 1
|
|
298
304
|
}, 16, ["onClick"]),
|
|
299
|
-
a(e(A),
|
|
305
|
+
a(e(A), u({
|
|
300
306
|
ref_key: "apply",
|
|
301
|
-
ref:
|
|
307
|
+
ref: te,
|
|
302
308
|
"data-testid": "mutli-apply",
|
|
303
309
|
size: "small",
|
|
304
310
|
class: "apply-button"
|
|
305
|
-
}, e(m)[e(
|
|
306
|
-
default:
|
|
311
|
+
}, e(m)[e(f).ACTION_APPLY], { onClick: e(Z) }), {
|
|
312
|
+
default: c(() => [
|
|
307
313
|
g("Apply ")
|
|
308
314
|
]),
|
|
309
315
|
_: 1
|
|
310
316
|
}, 16, ["onClick"])
|
|
311
317
|
])
|
|
312
|
-
])) :
|
|
313
|
-
], 32)) :
|
|
314
|
-
], 6)) :
|
|
318
|
+
])) : r("", !0)
|
|
319
|
+
], 32)) : r("", !0)
|
|
320
|
+
], 6)) : r("", !0)
|
|
315
321
|
]),
|
|
316
322
|
_: 3
|
|
317
323
|
})
|
|
318
324
|
]),
|
|
319
|
-
default:
|
|
320
|
-
|
|
321
|
-
class:
|
|
322
|
-
"button__container--open": !!e(
|
|
325
|
+
default: c(() => [
|
|
326
|
+
p("div", {
|
|
327
|
+
class: F(["button__container", {
|
|
328
|
+
"button__container--open": !!e(s),
|
|
323
329
|
[`button__container--${t.size}`]: !0,
|
|
324
330
|
"button__container--disabled": t.disabled
|
|
325
331
|
}])
|
|
326
332
|
}, [
|
|
327
|
-
|
|
328
|
-
|
|
333
|
+
w(v.$slots, "dropdown-trigger", {
|
|
334
|
+
buttonTriggerProps: {
|
|
335
|
+
open: e(s),
|
|
336
|
+
disabled: t.disabled,
|
|
337
|
+
label: e(J) || t.placeholder,
|
|
338
|
+
onClick: () => e(T)()
|
|
339
|
+
}
|
|
340
|
+
}, () => [
|
|
341
|
+
p("div", {
|
|
329
342
|
ref_key: "buttonRef",
|
|
330
|
-
ref:
|
|
343
|
+
ref: E
|
|
331
344
|
}, [
|
|
332
|
-
e(
|
|
333
|
-
(i(),
|
|
345
|
+
e(R) ? (i(), n("div", Oe, [
|
|
346
|
+
(i(), pe(ye(e(R)), {
|
|
334
347
|
placeholder: t.placeholder,
|
|
335
|
-
open: e(
|
|
348
|
+
open: e(s),
|
|
336
349
|
label: t.triggerLabel,
|
|
337
350
|
"hover-help-text": t.triggerHelperText,
|
|
338
351
|
"feedback-text": t.triggerFeedbackText,
|
|
@@ -342,7 +355,7 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
342
355
|
"test-id": t.testId,
|
|
343
356
|
multi: t.multi,
|
|
344
357
|
disabled: t.disabled,
|
|
345
|
-
"selected-option": e(
|
|
358
|
+
"selected-option": e(b),
|
|
346
359
|
"display-value": t.displayValue,
|
|
347
360
|
options: t.options,
|
|
348
361
|
"option-name-key": t.optionNameKey,
|
|
@@ -353,27 +366,27 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
353
366
|
"status-dot-type": t.statusType,
|
|
354
367
|
size: t.size,
|
|
355
368
|
onKeydown: e(M),
|
|
356
|
-
onClick:
|
|
369
|
+
onClick: ae
|
|
357
370
|
}, null, 40, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "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", "value-to-copy", "status-dot-type", "size", "onKeydown"]))
|
|
358
|
-
])) :
|
|
359
|
-
t.predefinedTrigger === e(
|
|
360
|
-
a(e(ge), {
|
|
361
|
-
onClick: o[0] || (o[0] = (l) => e(w)())
|
|
362
|
-
})
|
|
363
|
-
])) : d("", !0),
|
|
364
|
-
t.predefinedTrigger === e(p).CHIP ? (i(), n("div", Ne, [
|
|
371
|
+
])) : r("", !0),
|
|
372
|
+
t.predefinedTrigger === e(y).ICON_BUTTON ? (i(), n("div", Be, [
|
|
365
373
|
a(e(he), {
|
|
366
|
-
|
|
374
|
+
onClick: o[0] || (o[0] = (l) => e(T)())
|
|
375
|
+
})
|
|
376
|
+
])) : r("", !0),
|
|
377
|
+
t.predefinedTrigger === e(y).CHIP ? (i(), n("div", Ne, [
|
|
378
|
+
a(e(be), {
|
|
379
|
+
open: e(s),
|
|
367
380
|
label: t.placeholder,
|
|
368
381
|
"test-id": t.testId,
|
|
369
382
|
options: t.options,
|
|
370
|
-
"selected-option": e(
|
|
383
|
+
"selected-option": e(b),
|
|
371
384
|
"display-value": t.displayValue,
|
|
372
385
|
multi: t.multi,
|
|
373
|
-
onClick: o[1] || (o[1] = (l) => e(
|
|
386
|
+
onClick: o[1] || (o[1] = (l) => e(T)()),
|
|
374
387
|
onClear: o[2] || (o[2] = (l) => e(P)())
|
|
375
388
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
376
|
-
])) :
|
|
389
|
+
])) : r("", !0)
|
|
377
390
|
], 512)
|
|
378
391
|
], !0)
|
|
379
392
|
], 2)
|
|
@@ -381,9 +394,9 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Be
|
|
|
381
394
|
_: 3
|
|
382
395
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"])
|
|
383
396
|
])
|
|
384
|
-
], 16,
|
|
397
|
+
], 16, Ae));
|
|
385
398
|
}
|
|
386
399
|
});
|
|
387
400
|
export {
|
|
388
|
-
|
|
401
|
+
at as default
|
|
389
402
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cae6bfd4"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|