@ironsource/shared-ui 2.1.12-rc.0 → 2.1.12-rc.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/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_a641383a_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_020072b0_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +2 -2
- package/components/dropdown/common/Dropdown.common.js +167 -166
- package/components/dropdown/common/useGroupedOptions.d.ts +1 -0
- package/components/dropdown/common/useGroupedOptions.js +40 -39
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +10 -7
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +8 -8
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +97 -86
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +30 -0
- package/components/dropdown/v4/index.d.ts +20 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +6 -5
- package/index.d.ts +40 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as H, watch as me, openBlock as a, createElementBlock as s, mergeProps as y, unref as t, renderSlot as f, createElementVNode as m, createVNode as i, withCtx as u, Transition as pe, normalizeClass as E, normalizeStyle as ge, createTextVNode as T, createCommentVNode as d, isRef as Te, toDisplayString as U, withModifiers as G, Fragment as ke, renderList as he, toRaw as C, createBlock as X, resolveDynamicComponent as be } from "vue";
|
|
2
|
+
import O 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
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import we from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import Ie from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import ve from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import Ce 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
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
16
|
+
import Se from "../../search/v4/SearchV4.vue.js";
|
|
17
17
|
import Y from "../../typography/v4/Typography.vue.js";
|
|
18
|
-
import { Dropdown as
|
|
18
|
+
import { Dropdown as Ke } from "floating-vue";
|
|
19
19
|
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
|
-
import { dropdownCommon as
|
|
20
|
+
import { dropdownCommon as Ae } from "../common/Dropdown.common.js";
|
|
21
21
|
import S from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
|
-
import { useTestIdAttrs as
|
|
22
|
+
import { useTestIdAttrs as Le } from "../../../utils/testIds.js";
|
|
23
23
|
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
24
24
|
import { useElementSize as Ee } from "@vueuse/core";
|
|
25
25
|
import Oe from "../../shared/FieldHelpText.vue.js";
|
|
26
|
-
import
|
|
27
|
-
const
|
|
26
|
+
import Be from "./GroupOption.vue.js";
|
|
27
|
+
const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Ve = { key: 0 }, xe = { key: 1 }, De = { key: 2 }, Pe = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
|
-
},
|
|
30
|
+
}, Re = { class: "dropdown-conditions" }, ze = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, $e = ["aria-selected", "aria-disabled", "onClick"], Me = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, We = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
}, He = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" },
|
|
39
|
+
}, He = { class: "actions-clear-all" }, Ue = { class: "actions-apply-cancel" }, kt = /* @__PURE__ */ fe({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -56,6 +56,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
56
56
|
keepOpen: { type: Boolean, default: !1 },
|
|
57
57
|
autoSize: { type: Boolean, default: !1 },
|
|
58
58
|
disableKeyboardEvents: { type: Boolean, default: !1 },
|
|
59
|
+
dynamicFilterMode: { type: Boolean, default: !1 },
|
|
59
60
|
isOnTop: { type: Boolean, default: !1 },
|
|
60
61
|
distance: { default: 0 },
|
|
61
62
|
container: { default: "body" },
|
|
@@ -103,7 +104,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
103
104
|
},
|
|
104
105
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
105
106
|
setup(e, { expose: j, emit: B }) {
|
|
106
|
-
const
|
|
107
|
+
const n = e, F = {
|
|
107
108
|
MULTILINE_LIST_HEIGHT: 48,
|
|
108
109
|
LIST_HEIGHT: 32 + 4,
|
|
109
110
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -112,7 +113,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
112
113
|
VERSION: 4
|
|
113
114
|
}, {
|
|
114
115
|
onKeydown: b,
|
|
115
|
-
open:
|
|
116
|
+
open: r,
|
|
116
117
|
toggleMenu: I,
|
|
117
118
|
onButtonKeydown: N,
|
|
118
119
|
query: v,
|
|
@@ -127,7 +128,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
127
128
|
virtualOptions: x,
|
|
128
129
|
isSelected: A,
|
|
129
130
|
selectedOption: h,
|
|
130
|
-
selectedOptionPrevious:
|
|
131
|
+
selectedOptionPrevious: L,
|
|
131
132
|
selectedValue: oe,
|
|
132
133
|
onSelect: D,
|
|
133
134
|
activeIndex: P,
|
|
@@ -137,20 +138,30 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
137
138
|
listRef: ae,
|
|
138
139
|
buttonRef: R,
|
|
139
140
|
apply: de,
|
|
140
|
-
cancel:
|
|
141
|
-
el:
|
|
141
|
+
cancel: se,
|
|
142
|
+
el: re,
|
|
142
143
|
onClearAllSelections: z,
|
|
143
144
|
clearAll: ue,
|
|
144
145
|
isGroup: ce
|
|
145
|
-
} =
|
|
146
|
+
} = Ae(n, B, F), g = Le(n.testId, p), $ = H(() => !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT ? we : n.predefinedTrigger === k.APP ? Ce : null), { width: M } = Ee(R), ye = H(() => n.optionsListWidth ? n.optionsListWidth : !n.predefinedTrigger || n.predefinedTrigger === k.DEFAULT || n.predefinedTrigger === k.APP ? M.value - 2 > 240 ? `${M.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
147
|
+
me(
|
|
148
|
+
() => n.optionsListWidth,
|
|
149
|
+
() => {
|
|
150
|
+
n.optionsListWidth && document.documentElement.style.setProperty(
|
|
151
|
+
"--options-list-width",
|
|
152
|
+
n.optionsListWidth
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
const W = () => {
|
|
146
157
|
I();
|
|
147
158
|
};
|
|
148
159
|
return j({
|
|
149
160
|
selectItem: D,
|
|
150
161
|
scrollTo: ne
|
|
151
|
-
}), (c, l) => (
|
|
162
|
+
}), (c, l) => (a(), s("div", y({
|
|
152
163
|
ref_key: "el",
|
|
153
|
-
ref:
|
|
164
|
+
ref: re,
|
|
154
165
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
155
166
|
tabindex: e.disabled ? -1 : 0
|
|
156
167
|
}, t(g)[t(p).WRAPPER], {
|
|
@@ -158,8 +169,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
158
169
|
(...o) => t(b) && t(b)(...o))
|
|
159
170
|
}), [
|
|
160
171
|
f(c.$slots, "label", {}, void 0, !0),
|
|
161
|
-
m("div",
|
|
162
|
-
i(t(
|
|
172
|
+
m("div", Ne, [
|
|
173
|
+
i(t(Ke), y({
|
|
163
174
|
theme: e.theme,
|
|
164
175
|
"popper-class": [
|
|
165
176
|
e.popperClass,
|
|
@@ -172,33 +183,33 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
172
183
|
distance: e.distance,
|
|
173
184
|
flip: e.flip,
|
|
174
185
|
triggers: [],
|
|
175
|
-
shown: !!t(
|
|
186
|
+
shown: !!t(r),
|
|
176
187
|
"auto-hide": !1,
|
|
177
188
|
container: e.container,
|
|
178
189
|
"auto-size": e.autoSize
|
|
179
190
|
}, t(g)[t(p).TRIGGER]), {
|
|
180
191
|
popper: u(() => [
|
|
181
|
-
i(
|
|
192
|
+
i(pe, null, {
|
|
182
193
|
default: u(() => [
|
|
183
|
-
t(
|
|
194
|
+
t(r) ? (a(), s("div", {
|
|
184
195
|
key: 0,
|
|
185
196
|
ref_key: "listRef",
|
|
186
197
|
ref: ae,
|
|
187
|
-
class:
|
|
198
|
+
class: E(["light-theme-v4", {
|
|
188
199
|
"dropdown--disabled": e.disabled,
|
|
189
200
|
"inline-search": e.inlineSearch
|
|
190
201
|
}]),
|
|
191
|
-
style:
|
|
202
|
+
style: ge({ width: t(ye) })
|
|
192
203
|
}, [
|
|
193
|
-
t(
|
|
204
|
+
t(r) ? (a(), s("div", {
|
|
194
205
|
key: 0,
|
|
195
|
-
class:
|
|
206
|
+
class: E(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
196
207
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
197
208
|
(...o) => t(b) && t(b)(...o))
|
|
198
209
|
}, [
|
|
199
|
-
t(
|
|
210
|
+
t(r) && e.inlineSearch ? (a(), s("div", Pe, [
|
|
200
211
|
e.withConditions ? f(c.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
201
|
-
m("div",
|
|
212
|
+
m("div", Re, [
|
|
202
213
|
i(t(Y), { variant: "body2" }, {
|
|
203
214
|
default: u(() => [
|
|
204
215
|
T("Conditions")
|
|
@@ -206,12 +217,12 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
206
217
|
_: 1
|
|
207
218
|
})
|
|
208
219
|
])
|
|
209
|
-
], !0) :
|
|
220
|
+
], !0) : d("", !0),
|
|
210
221
|
f(c.$slots, "inline-search", {}, () => [
|
|
211
|
-
i(t(
|
|
222
|
+
i(t(Se), {
|
|
212
223
|
modelValue: t(v),
|
|
213
224
|
"onUpdate:modelValue": [
|
|
214
|
-
l[4] || (l[4] = (o) =>
|
|
225
|
+
l[4] || (l[4] = (o) => Te(v) ? v.value = o : null),
|
|
215
226
|
e.onClearSearch
|
|
216
227
|
],
|
|
217
228
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -222,8 +233,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
222
233
|
onKeydown: t(b)
|
|
223
234
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
224
235
|
], !0)
|
|
225
|
-
])) :
|
|
226
|
-
f(c.$slots, "input-list", { open: t(
|
|
236
|
+
])) : d("", !0),
|
|
237
|
+
f(c.$slots, "input-list", { open: t(r) }, void 0, !0),
|
|
227
238
|
m("div", y({
|
|
228
239
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
229
240
|
style: { height: `${t(Q)}rem` }
|
|
@@ -239,14 +250,14 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
239
250
|
"list--with-conditions": e.withConditions
|
|
240
251
|
}]
|
|
241
252
|
}), [
|
|
242
|
-
!t(_).length && !e.loading && !e.withConditions ? (
|
|
253
|
+
!t(_).length && !e.loading && !e.withConditions ? (a(), s("li", ze, [
|
|
243
254
|
i(t(Y), y({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
244
255
|
default: u(() => [
|
|
245
|
-
T(
|
|
256
|
+
T(U(e.noResultsText), 1)
|
|
246
257
|
]),
|
|
247
258
|
_: 1
|
|
248
259
|
}, 16)
|
|
249
|
-
])) :
|
|
260
|
+
])) : d("", !0),
|
|
250
261
|
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? f(c.$slots, "select-all", { key: 1 }, () => [
|
|
251
262
|
m("li", null, [
|
|
252
263
|
i(t(q), y(
|
|
@@ -260,7 +271,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
260
271
|
},
|
|
261
272
|
t(g)[t(p).SELECT_ALL],
|
|
262
273
|
{
|
|
263
|
-
onClick: l[5] || (l[5] =
|
|
274
|
+
onClick: l[5] || (l[5] = G((o) => t(te)(), ["stop"]))
|
|
264
275
|
}
|
|
265
276
|
), {
|
|
266
277
|
default: u(() => [
|
|
@@ -269,17 +280,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
269
280
|
_: 1
|
|
270
281
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
271
282
|
])
|
|
272
|
-
], !0) :
|
|
273
|
-
t(x).length && !e.loading ? (
|
|
283
|
+
], !0) : d("", !0),
|
|
284
|
+
t(x).length && !e.loading ? (a(!0), s(ke, { key: 2 }, he(t(x), ({ data: o, index: w }) => (a(), s("li", {
|
|
274
285
|
key: w,
|
|
275
286
|
"aria-selected": t(A)(C(t(h)), o),
|
|
276
287
|
"aria-disabled": !!e.disabled,
|
|
277
|
-
onClick:
|
|
288
|
+
onClick: G(() => t(D)(o, w), ["stop"])
|
|
278
289
|
}, [
|
|
279
290
|
e.groupedOptions && t(ce)(o) ? f(c.$slots, "group-option", { key: 0 }, () => [
|
|
280
|
-
i(
|
|
291
|
+
i(Be, null, {
|
|
281
292
|
default: u(() => [
|
|
282
|
-
T(
|
|
293
|
+
T(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
283
294
|
]),
|
|
284
295
|
_: 2
|
|
285
296
|
}, 1024)
|
|
@@ -289,13 +300,13 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
289
300
|
index: w,
|
|
290
301
|
selected: t(A)(C(t(h)), o),
|
|
291
302
|
active: C(t(P)) === w,
|
|
292
|
-
disabled: o[
|
|
303
|
+
disabled: o[n.disabledOptionKey]
|
|
293
304
|
}, () => [
|
|
294
305
|
i(t(q), {
|
|
295
306
|
option: o,
|
|
296
307
|
"selected-prop": t(A)(t(h), o),
|
|
297
308
|
active: C(t(P)) === w,
|
|
298
|
-
disabled: o[
|
|
309
|
+
disabled: o[n.disabledOptionKey],
|
|
299
310
|
"name-key": e.optionNameKey,
|
|
300
311
|
"image-key": e.optionImageKey,
|
|
301
312
|
"icon-key": e.optionIconKey,
|
|
@@ -309,18 +320,18 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
309
320
|
"is-multi": e.multi
|
|
310
321
|
}, 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"])
|
|
311
322
|
], !0)
|
|
312
|
-
], 8,
|
|
313
|
-
e.loading || e.loadMoreLoading ? (
|
|
323
|
+
], 8, $e))), 128)) : d("", !0),
|
|
324
|
+
e.loading || e.loadMoreLoading ? (a(), s("li", Me, [
|
|
314
325
|
i(t(S), { round: "" }),
|
|
315
326
|
i(t(S), { round: "" }),
|
|
316
327
|
i(t(S), { round: "" }),
|
|
317
328
|
i(t(S), { round: "" })
|
|
318
|
-
])) :
|
|
329
|
+
])) : d("", !0)
|
|
319
330
|
], 16)
|
|
320
331
|
], 16),
|
|
321
|
-
e.multi ? (
|
|
332
|
+
e.multi ? (a(), s("div", We, [
|
|
322
333
|
m("div", He, [
|
|
323
|
-
i(t(
|
|
334
|
+
i(t(O), y(
|
|
324
335
|
{
|
|
325
336
|
ref_key: "clearAll",
|
|
326
337
|
ref: ue,
|
|
@@ -340,10 +351,10 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
340
351
|
}, 16)
|
|
341
352
|
]),
|
|
342
353
|
m("div", Ue, [
|
|
343
|
-
i(t(
|
|
354
|
+
i(t(O), y(
|
|
344
355
|
{
|
|
345
356
|
ref_key: "cancel",
|
|
346
|
-
ref:
|
|
357
|
+
ref: se,
|
|
347
358
|
size: "small",
|
|
348
359
|
variant: "outlined",
|
|
349
360
|
color: "primary"
|
|
@@ -356,7 +367,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
356
367
|
]),
|
|
357
368
|
_: 1
|
|
358
369
|
}, 16, ["onClick"]),
|
|
359
|
-
i(t(
|
|
370
|
+
i(t(O), y({
|
|
360
371
|
ref_key: "apply",
|
|
361
372
|
ref: de,
|
|
362
373
|
"data-testid": "mutli-apply",
|
|
@@ -369,17 +380,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
369
380
|
_: 1
|
|
370
381
|
}, 16, ["onClick"])
|
|
371
382
|
])
|
|
372
|
-
])) :
|
|
373
|
-
], 34)) :
|
|
374
|
-
], 6)) :
|
|
383
|
+
])) : d("", !0)
|
|
384
|
+
], 34)) : d("", !0)
|
|
385
|
+
], 6)) : d("", !0)
|
|
375
386
|
]),
|
|
376
387
|
_: 3
|
|
377
388
|
})
|
|
378
389
|
]),
|
|
379
390
|
default: u(() => [
|
|
380
391
|
m("div", {
|
|
381
|
-
class:
|
|
382
|
-
"button__container--open": !!t(
|
|
392
|
+
class: E(["button__container", {
|
|
393
|
+
"button__container--open": !!t(r),
|
|
383
394
|
[`button__container--${e.size}`]: !0,
|
|
384
395
|
"button__container--disabled": e.disabled
|
|
385
396
|
}])
|
|
@@ -390,21 +401,21 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
390
401
|
}, [
|
|
391
402
|
f(c.$slots, "dropdown-trigger", {
|
|
392
403
|
buttonTriggerProps: {
|
|
393
|
-
open: t(
|
|
404
|
+
open: t(r),
|
|
394
405
|
disabled: e.disabled,
|
|
395
406
|
label: t(oe) || e.placeholder,
|
|
396
407
|
onClick: () => t(I)()
|
|
397
408
|
},
|
|
398
409
|
defaultTriggerProps: {
|
|
399
410
|
placeholder: e.placeholder,
|
|
400
|
-
open: t(
|
|
411
|
+
open: t(r),
|
|
401
412
|
label: e.triggerLabel,
|
|
402
413
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
403
414
|
mandatory: e.mandatory,
|
|
404
415
|
testId: e.testId,
|
|
405
416
|
multi: e.multi,
|
|
406
417
|
disabled: e.disabled,
|
|
407
|
-
selectedOption: e.multi ? t(
|
|
418
|
+
selectedOption: e.multi ? t(L) : t(h),
|
|
408
419
|
displayValue: e.displayValue,
|
|
409
420
|
options: e.options,
|
|
410
421
|
optionNameKey: e.optionNameKey,
|
|
@@ -422,20 +433,20 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
422
433
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
423
434
|
allSelected: t(K),
|
|
424
435
|
onKeydown: t(N),
|
|
425
|
-
onClick:
|
|
436
|
+
onClick: W
|
|
426
437
|
}
|
|
427
438
|
}, () => [
|
|
428
|
-
t($) ? (
|
|
429
|
-
(
|
|
439
|
+
t($) ? (a(), s("div", Ve, [
|
|
440
|
+
(a(), X(be(t($)), {
|
|
430
441
|
placeholder: e.placeholder,
|
|
431
|
-
open: t(
|
|
442
|
+
open: t(r),
|
|
432
443
|
label: e.triggerLabel,
|
|
433
444
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
434
445
|
mandatory: e.mandatory,
|
|
435
446
|
"test-id": e.testId,
|
|
436
447
|
multi: e.multi,
|
|
437
448
|
disabled: e.disabled,
|
|
438
|
-
"selected-option": e.multi ? t(
|
|
449
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
439
450
|
"display-value": e.displayValue,
|
|
440
451
|
options: e.options,
|
|
441
452
|
"option-name-key": e.optionNameKey,
|
|
@@ -453,47 +464,47 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
453
464
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
454
465
|
"all-selected": t(K),
|
|
455
466
|
onKeydown: t(N),
|
|
456
|
-
onClick:
|
|
467
|
+
onClick: W,
|
|
457
468
|
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
458
469
|
}, 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
|
-
])) :
|
|
460
|
-
e.predefinedTrigger === t(k).ICON_BUTTON ? (
|
|
461
|
-
i(t(
|
|
470
|
+
])) : d("", !0),
|
|
471
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (a(), s("div", xe, [
|
|
472
|
+
i(t(Ie), {
|
|
462
473
|
onClick: l[1] || (l[1] = (o) => t(I)())
|
|
463
474
|
})
|
|
464
|
-
])) :
|
|
465
|
-
e.predefinedTrigger === t(k).CHIP ? (
|
|
466
|
-
i(t(
|
|
467
|
-
open: t(
|
|
475
|
+
])) : d("", !0),
|
|
476
|
+
e.predefinedTrigger === t(k).CHIP ? (a(), s("div", De, [
|
|
477
|
+
i(t(ve), {
|
|
478
|
+
open: t(r),
|
|
468
479
|
label: e.placeholder,
|
|
469
480
|
"test-id": e.testId,
|
|
470
481
|
options: e.options,
|
|
471
|
-
"selected-option": e.multi ? t(
|
|
482
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
472
483
|
"display-value": e.displayValue,
|
|
473
484
|
multi: e.multi,
|
|
474
485
|
"all-selected": t(K),
|
|
475
486
|
onClick: l[2] || (l[2] = (o) => t(I)()),
|
|
476
487
|
onClear: l[3] || (l[3] = (o) => t(z)())
|
|
477
488
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
478
|
-
])) :
|
|
489
|
+
])) : d("", !0)
|
|
479
490
|
], !0)
|
|
480
491
|
], 512)
|
|
481
492
|
], 2)
|
|
482
493
|
]),
|
|
483
494
|
_: 3
|
|
484
495
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
485
|
-
e.triggerFeedbackText ? (
|
|
496
|
+
e.triggerFeedbackText ? (a(), X(Oe, {
|
|
486
497
|
key: 0,
|
|
487
498
|
text: e.triggerFeedbackText,
|
|
488
499
|
variant: e.triggerFeedbackVariant,
|
|
489
500
|
"show-icon": e.triggerFeedbackShowIcon,
|
|
490
501
|
"test-id": e.testId,
|
|
491
502
|
class: "dropdown-field-help-text"
|
|
492
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
503
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
493
504
|
])
|
|
494
|
-
], 16,
|
|
505
|
+
], 16, Fe));
|
|
495
506
|
}
|
|
496
507
|
});
|
|
497
508
|
export {
|
|
498
|
-
|
|
509
|
+
kt as default
|
|
499
510
|
};
|
|
@@ -54,36 +54,66 @@ export declare const dropDownStoryArgs: {
|
|
|
54
54
|
control: {
|
|
55
55
|
type: string;
|
|
56
56
|
};
|
|
57
|
+
table: {
|
|
58
|
+
category: string;
|
|
59
|
+
};
|
|
57
60
|
};
|
|
58
61
|
placeholder: {
|
|
59
62
|
control: {
|
|
60
63
|
type: string;
|
|
61
64
|
};
|
|
65
|
+
table: {
|
|
66
|
+
category: string;
|
|
67
|
+
};
|
|
62
68
|
};
|
|
63
69
|
disabled: {
|
|
64
70
|
control: {
|
|
65
71
|
type: string;
|
|
66
72
|
};
|
|
73
|
+
table: {
|
|
74
|
+
category: string;
|
|
75
|
+
};
|
|
67
76
|
};
|
|
68
77
|
mandatory: {
|
|
69
78
|
control: {
|
|
70
79
|
type: string;
|
|
71
80
|
};
|
|
81
|
+
table: {
|
|
82
|
+
category: string;
|
|
83
|
+
};
|
|
72
84
|
};
|
|
73
85
|
loading: {
|
|
74
86
|
control: {
|
|
75
87
|
type: string;
|
|
76
88
|
};
|
|
89
|
+
table: {
|
|
90
|
+
category: string;
|
|
91
|
+
};
|
|
77
92
|
};
|
|
78
93
|
testId: {
|
|
79
94
|
control: {
|
|
80
95
|
type: string;
|
|
81
96
|
};
|
|
97
|
+
table: {
|
|
98
|
+
category: string;
|
|
99
|
+
};
|
|
82
100
|
};
|
|
83
101
|
isOpen: {
|
|
84
102
|
control: {
|
|
85
103
|
type: string;
|
|
86
104
|
};
|
|
105
|
+
table: {
|
|
106
|
+
category: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
dynamicFilterMode: {
|
|
110
|
+
control: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
table: {
|
|
114
|
+
category: string;
|
|
115
|
+
};
|
|
116
|
+
description: string;
|
|
87
117
|
};
|
|
88
118
|
isOnTop: {
|
|
89
119
|
control: {
|
|
@@ -1736,6 +1736,7 @@ declare const DropdownTypes: () => (({
|
|
|
1736
1736
|
keepOpen: boolean;
|
|
1737
1737
|
autoSize: boolean;
|
|
1738
1738
|
disableKeyboardEvents: boolean;
|
|
1739
|
+
dynamicFilterMode: boolean;
|
|
1739
1740
|
isOnTop: boolean;
|
|
1740
1741
|
triggerLabel: string;
|
|
1741
1742
|
triggerHelperText: string;
|
|
@@ -1872,6 +1873,10 @@ declare const DropdownTypes: () => (({
|
|
|
1872
1873
|
type: import("vue").PropType<boolean>;
|
|
1873
1874
|
default: boolean;
|
|
1874
1875
|
};
|
|
1876
|
+
dynamicFilterMode: {
|
|
1877
|
+
type: import("vue").PropType<boolean>;
|
|
1878
|
+
default: boolean;
|
|
1879
|
+
};
|
|
1875
1880
|
isOnTop: {
|
|
1876
1881
|
type: import("vue").PropType<boolean>;
|
|
1877
1882
|
default: boolean;
|
|
@@ -2025,7 +2030,7 @@ declare const DropdownTypes: () => (({
|
|
|
2025
2030
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2026
2031
|
onOpened?: () => any;
|
|
2027
2032
|
onClosed?: () => any;
|
|
2028
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2033
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2029
2034
|
$attrs: {
|
|
2030
2035
|
[x: string]: unknown;
|
|
2031
2036
|
};
|
|
@@ -2141,6 +2146,10 @@ declare const DropdownTypes: () => (({
|
|
|
2141
2146
|
type: import("vue").PropType<boolean>;
|
|
2142
2147
|
default: boolean;
|
|
2143
2148
|
};
|
|
2149
|
+
dynamicFilterMode: {
|
|
2150
|
+
type: import("vue").PropType<boolean>;
|
|
2151
|
+
default: boolean;
|
|
2152
|
+
};
|
|
2144
2153
|
isOnTop: {
|
|
2145
2154
|
type: import("vue").PropType<boolean>;
|
|
2146
2155
|
default: boolean;
|
|
@@ -2333,6 +2342,7 @@ declare const DropdownTypes: () => (({
|
|
|
2333
2342
|
keepOpen: boolean;
|
|
2334
2343
|
autoSize: boolean;
|
|
2335
2344
|
disableKeyboardEvents: boolean;
|
|
2345
|
+
dynamicFilterMode: boolean;
|
|
2336
2346
|
isOnTop: boolean;
|
|
2337
2347
|
triggerLabel: string;
|
|
2338
2348
|
triggerHelperText: string;
|
|
@@ -2489,6 +2499,10 @@ declare const DropdownTypes: () => (({
|
|
|
2489
2499
|
type: import("vue").PropType<boolean>;
|
|
2490
2500
|
default: boolean;
|
|
2491
2501
|
};
|
|
2502
|
+
dynamicFilterMode: {
|
|
2503
|
+
type: import("vue").PropType<boolean>;
|
|
2504
|
+
default: boolean;
|
|
2505
|
+
};
|
|
2492
2506
|
isOnTop: {
|
|
2493
2507
|
type: import("vue").PropType<boolean>;
|
|
2494
2508
|
default: boolean;
|
|
@@ -2751,6 +2765,10 @@ declare const DropdownTypes: () => (({
|
|
|
2751
2765
|
type: import("vue").PropType<boolean>;
|
|
2752
2766
|
default: boolean;
|
|
2753
2767
|
};
|
|
2768
|
+
dynamicFilterMode: {
|
|
2769
|
+
type: import("vue").PropType<boolean>;
|
|
2770
|
+
default: boolean;
|
|
2771
|
+
};
|
|
2754
2772
|
isOnTop: {
|
|
2755
2773
|
type: import("vue").PropType<boolean>;
|
|
2756
2774
|
default: boolean;
|
|
@@ -2943,6 +2961,7 @@ declare const DropdownTypes: () => (({
|
|
|
2943
2961
|
keepOpen: boolean;
|
|
2944
2962
|
autoSize: boolean;
|
|
2945
2963
|
disableKeyboardEvents: boolean;
|
|
2964
|
+
dynamicFilterMode: boolean;
|
|
2946
2965
|
isOnTop: boolean;
|
|
2947
2966
|
triggerLabel: string;
|
|
2948
2967
|
triggerHelperText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_020072b0_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-020072b0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_020072b0_lang.css"; import { defineComponent as ne, useCssVars as ce, unref as t, useSlots as re, computed as g, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as T, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as B, toDisplayString as E, isRef as ue, createCommentVNode as r, Fragment as I, renderList as p, mergeProps as V, createBlock as z } from "vue";
|
|
2
2
|
import A from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import he from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ye from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -64,10 +64,10 @@ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["d
|
|
|
64
64
|
setup(s, { expose: k, emit: y }) {
|
|
65
65
|
const a = s;
|
|
66
66
|
ce((l) => ({
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
"213d426c": s.zIndexBase,
|
|
68
|
+
"1bb95c84": t(_),
|
|
69
|
+
"833c2592": t(N),
|
|
70
|
+
d3eb9802: t(Z)
|
|
71
71
|
}));
|
|
72
72
|
const b = re(), Y = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
|
|
73
73
|
list: H,
|
|
@@ -342,6 +342,7 @@ const Ce = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["d
|
|
|
342
342
|
title: s.emptyStateTitle,
|
|
343
343
|
subtitle: t(de),
|
|
344
344
|
variant: t(oe),
|
|
345
|
+
"icon-name": "file-search",
|
|
345
346
|
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
346
347
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
347
348
|
])
|