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