@ironsource/shared-ui 2.1.12-rc.24 → 2.1.12-rc.25
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/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +5 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +94 -91
- 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 +51 -49
- package/components/dropdown/v4/index.d.ts +38 -1
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +5 -5
- package/index.d.ts +76 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_lang.css +0 -1
|
@@ -32,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
32
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
33
33
|
triggerFeedbackShowIcon?: boolean;
|
|
34
34
|
triggerShowAllSelectedText?: boolean;
|
|
35
|
+
triggerShownValuesCount?: number;
|
|
35
36
|
size?: "small" | "medium" | "large";
|
|
36
37
|
mandatory?: boolean;
|
|
37
38
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
@@ -102,6 +103,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
102
103
|
triggerFeedbackVariant: any;
|
|
103
104
|
triggerFeedbackShowIcon: boolean;
|
|
104
105
|
triggerShowAllSelectedText: boolean;
|
|
106
|
+
triggerShownValuesCount: number;
|
|
105
107
|
searchAutoFocus: boolean;
|
|
106
108
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
107
109
|
optionNameKey: string;
|
|
@@ -176,6 +178,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
176
178
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
177
179
|
triggerFeedbackShowIcon?: boolean;
|
|
178
180
|
triggerShowAllSelectedText?: boolean;
|
|
181
|
+
triggerShownValuesCount?: number;
|
|
179
182
|
size?: "small" | "medium" | "large";
|
|
180
183
|
mandatory?: boolean;
|
|
181
184
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
@@ -246,6 +249,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
246
249
|
triggerFeedbackVariant: any;
|
|
247
250
|
triggerFeedbackShowIcon: boolean;
|
|
248
251
|
triggerShowAllSelectedText: boolean;
|
|
252
|
+
triggerShownValuesCount: number;
|
|
249
253
|
searchAutoFocus: boolean;
|
|
250
254
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
251
255
|
optionNameKey: string;
|
|
@@ -317,6 +321,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
317
321
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
318
322
|
triggerFeedbackShowIcon: boolean;
|
|
319
323
|
triggerShowAllSelectedText: boolean;
|
|
324
|
+
triggerShownValuesCount: number;
|
|
320
325
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
321
326
|
inlineSearch: boolean;
|
|
322
327
|
inlineSearchPlaceholder: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-92ead583"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as E, watch as Te, toRaw as I, openBlock as d, createElementBlock as r, mergeProps as f, unref as t, renderSlot as m, createElementVNode as p, createVNode as a, withCtx as u, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as T, createCommentVNode as s, isRef as Ie, toDisplayString as U, withModifiers as X, Fragment as ve, renderList as Se, createSlots as Ce, createBlock as q, resolveDynamicComponent as Ke } from "vue";
|
|
2
2
|
import x from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
@@ -20,9 +20,9 @@ import { DropdownTestIdModifiers as g } from "../../../testids/index.js";
|
|
|
20
20
|
import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
|
|
21
21
|
import C from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
22
|
import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
|
|
23
|
-
import { TRIGGERS as
|
|
24
|
-
import { useElementSize as
|
|
25
|
-
import
|
|
23
|
+
import { TRIGGERS as w } from "./Dropdown.types.js";
|
|
24
|
+
import { useElementSize as Ve } from "@vueuse/core";
|
|
25
|
+
import De from "../../shared/FieldHelpText.vue.js";
|
|
26
26
|
import Pe from "./GroupOption.vue.js";
|
|
27
27
|
const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me = { key: 1 }, We = { key: 2 }, Ge = {
|
|
28
28
|
key: 0,
|
|
@@ -36,7 +36,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
36
36
|
}, Ye = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, St = /* @__PURE__ */
|
|
39
|
+
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, St = /* @__PURE__ */ ke({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -71,9 +71,10 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
71
71
|
triggerFeedbackVariant: { default: null },
|
|
72
72
|
triggerFeedbackShowIcon: { type: Boolean, default: !1 },
|
|
73
73
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
74
|
+
triggerShownValuesCount: { default: 1 },
|
|
74
75
|
size: { default: "medium" },
|
|
75
76
|
mandatory: { type: Boolean, default: !1 },
|
|
76
|
-
predefinedTrigger: { default:
|
|
77
|
+
predefinedTrigger: { default: w.DEFAULT },
|
|
77
78
|
inlineSearch: { type: Boolean, default: !1 },
|
|
78
79
|
inlineSearchPlaceholder: { default: "Search" },
|
|
79
80
|
onSearch: { type: Function, default: null },
|
|
@@ -115,22 +116,22 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
115
116
|
DROPLIST_MIN_WIDTH: 240,
|
|
116
117
|
VERSION: 4
|
|
117
118
|
}, {
|
|
118
|
-
onKeydown:
|
|
119
|
+
onKeydown: b,
|
|
119
120
|
open: c,
|
|
120
121
|
toggleMenu: v,
|
|
121
|
-
onButtonKeydown:
|
|
122
|
+
onButtonKeydown: V,
|
|
122
123
|
query: S,
|
|
123
124
|
containerProps: Q,
|
|
124
125
|
calculateTableHeight: Z,
|
|
125
126
|
wrapperProps: _,
|
|
126
127
|
filteredOptions: ee,
|
|
127
|
-
allSelected:
|
|
128
|
+
allSelected: D,
|
|
128
129
|
allSelectedApplied: K,
|
|
129
130
|
isIndeterminate: te,
|
|
130
131
|
onSelectAll: oe,
|
|
131
132
|
virtualOptions: P,
|
|
132
133
|
isSelected: A,
|
|
133
|
-
selectedOption:
|
|
134
|
+
selectedOption: k,
|
|
134
135
|
selectedOptionPrevious: O,
|
|
135
136
|
selectedValue: ne,
|
|
136
137
|
onSelect: R,
|
|
@@ -147,8 +148,8 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
147
148
|
clearAll: ce,
|
|
148
149
|
isGroup: ye,
|
|
149
150
|
flattenAndMarkGroupOptions: me
|
|
150
|
-
} = Fe(o, F, N),
|
|
151
|
-
|
|
151
|
+
} = Fe(o, F, N), h = Ne(o.testId, g), W = E(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Ee : null), { width: G } = Ve($), fe = E(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? G.value - 2 > 240 ? `${G.value - 2}px` : `${N.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
152
|
+
Te(
|
|
152
153
|
() => o.optionsListWidth,
|
|
153
154
|
() => {
|
|
154
155
|
o.optionsListWidth && document.documentElement.style.setProperty(
|
|
@@ -161,7 +162,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
161
162
|
v();
|
|
162
163
|
}, pe = E(() => {
|
|
163
164
|
if (o.multi && o.comparingKey) {
|
|
164
|
-
const i = I(
|
|
165
|
+
const i = I(k.value);
|
|
165
166
|
if (o.minSelections || o.maxSelections) {
|
|
166
167
|
if (Array.isArray(i) && i.length <= o.minSelections)
|
|
167
168
|
return i.map((l) => l[o.comparingKey]);
|
|
@@ -191,9 +192,9 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
191
192
|
ref: ue,
|
|
192
193
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
193
194
|
tabindex: e.disabled ? -1 : 0
|
|
194
|
-
}, t(
|
|
195
|
+
}, t(h)[t(g).WRAPPER], {
|
|
195
196
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
196
|
-
(...n) => t(
|
|
197
|
+
(...n) => t(b) && t(b)(...n))
|
|
197
198
|
}), [
|
|
198
199
|
m(i.$slots, "label", {}, void 0, !0),
|
|
199
200
|
p("div", ze, [
|
|
@@ -214,9 +215,9 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
214
215
|
"auto-hide": !1,
|
|
215
216
|
container: e.container,
|
|
216
217
|
"auto-size": e.autoSize
|
|
217
|
-
}, t(
|
|
218
|
+
}, t(h)[t(g).TRIGGER]), {
|
|
218
219
|
popper: u(() => [
|
|
219
|
-
a(
|
|
220
|
+
a(we, null, {
|
|
220
221
|
default: u(() => [
|
|
221
222
|
t(c) ? (d(), r("div", {
|
|
222
223
|
key: 0,
|
|
@@ -226,20 +227,20 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
226
227
|
"dropdown--disabled": e.disabled,
|
|
227
228
|
"inline-search": e.inlineSearch
|
|
228
229
|
}]),
|
|
229
|
-
style:
|
|
230
|
+
style: be({ width: t(fe) })
|
|
230
231
|
}, [
|
|
231
232
|
t(c) ? (d(), r("div", {
|
|
232
233
|
key: 0,
|
|
233
234
|
class: B(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
234
235
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
235
|
-
(...n) => t(
|
|
236
|
+
(...n) => t(b) && t(b)(...n))
|
|
236
237
|
}, [
|
|
237
238
|
t(c) && e.inlineSearch ? (d(), r("div", Ge, [
|
|
238
239
|
e.withConditions ? m(i.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
239
240
|
p("div", He, [
|
|
240
241
|
a(t(j), { variant: "body2" }, {
|
|
241
242
|
default: u(() => [
|
|
242
|
-
|
|
243
|
+
T("Conditions")
|
|
243
244
|
]),
|
|
244
245
|
_: 1
|
|
245
246
|
})
|
|
@@ -257,7 +258,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
257
258
|
size: "md",
|
|
258
259
|
"auto-focus": e.searchAutoFocus,
|
|
259
260
|
"test-id": e.testId,
|
|
260
|
-
onKeydown: t(
|
|
261
|
+
onKeydown: t(b)
|
|
261
262
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
262
263
|
], !0)
|
|
263
264
|
])) : s("", !0),
|
|
@@ -267,7 +268,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
267
268
|
style: { height: `${t(Z)}rem` }
|
|
268
269
|
}, {
|
|
269
270
|
...t(Q),
|
|
270
|
-
...t(
|
|
271
|
+
...t(h)[t(g).LIST_CONTAINER]
|
|
271
272
|
}), [
|
|
272
273
|
m(i.$slots, "custom-list-area", {}, void 0, !0),
|
|
273
274
|
p("ul", f(t(_), {
|
|
@@ -278,9 +279,9 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
278
279
|
}]
|
|
279
280
|
}), [
|
|
280
281
|
!t(ee).length && !e.loading && !e.withConditions ? (d(), r("li", Ue, [
|
|
281
|
-
a(t(j), f({ variant: "body2" }, t(
|
|
282
|
+
a(t(j), f({ variant: "body2" }, t(h)[t(g).NO_RESULT]), {
|
|
282
283
|
default: u(() => [
|
|
283
|
-
|
|
284
|
+
T(U(e.noResultsText), 1)
|
|
284
285
|
]),
|
|
285
286
|
_: 1
|
|
286
287
|
}, 16)
|
|
@@ -289,20 +290,20 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
289
290
|
p("li", null, [
|
|
290
291
|
a(t(Y), f(
|
|
291
292
|
{
|
|
292
|
-
"aria-selected": t(
|
|
293
|
+
"aria-selected": t(D),
|
|
293
294
|
"aria-disabled": !!e.disabled,
|
|
294
|
-
"selected-prop": t(
|
|
295
|
+
"selected-prop": t(D),
|
|
295
296
|
"is-indeterminate": t(te),
|
|
296
297
|
"is-multi": e.multi,
|
|
297
298
|
"select-all-option": ""
|
|
298
299
|
},
|
|
299
|
-
t(
|
|
300
|
+
t(h)[t(g).SELECT_ALL],
|
|
300
301
|
{
|
|
301
302
|
onClick: l[5] || (l[5] = X((n) => t(oe)(), ["stop"]))
|
|
302
303
|
}
|
|
303
304
|
), {
|
|
304
305
|
default: u(() => [
|
|
305
|
-
|
|
306
|
+
T(" Select all ")
|
|
306
307
|
]),
|
|
307
308
|
_: 1
|
|
308
309
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
@@ -310,7 +311,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
310
311
|
], !0) : s("", !0),
|
|
311
312
|
t(P).length && !e.loading ? (d(!0), r(ve, { key: 2 }, Se(t(P), ({ data: n, index: y }) => (d(), r("li", {
|
|
312
313
|
key: y,
|
|
313
|
-
"aria-selected": t(A)(I(t(
|
|
314
|
+
"aria-selected": t(A)(I(t(k)), n),
|
|
314
315
|
"aria-disabled": !!e.disabled,
|
|
315
316
|
onClick: X(
|
|
316
317
|
() => !L(n) && t(R)(n, y),
|
|
@@ -320,7 +321,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
320
321
|
e.groupedOptions && t(ye)(n) ? m(i.$slots, "group-option", { key: 0 }, () => [
|
|
321
322
|
a(Pe, null, {
|
|
322
323
|
default: u(() => [
|
|
323
|
-
|
|
324
|
+
T(U(e.displayValue(n) || n[e.optionNameKey]), 1)
|
|
324
325
|
]),
|
|
325
326
|
_: 2
|
|
326
327
|
}, 1024)
|
|
@@ -328,13 +329,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
328
329
|
key: 1,
|
|
329
330
|
option: n,
|
|
330
331
|
index: y,
|
|
331
|
-
selected: t(A)(I(t(
|
|
332
|
+
selected: t(A)(I(t(k)), n),
|
|
332
333
|
active: I(t(z)) === y,
|
|
333
334
|
disabled: L(n)
|
|
334
335
|
}, () => [
|
|
335
336
|
a(t(Y), {
|
|
336
337
|
option: n,
|
|
337
|
-
"selected-prop": t(A)(t(
|
|
338
|
+
"selected-prop": t(A)(t(k), n),
|
|
338
339
|
active: I(t(z)) === y,
|
|
339
340
|
disabled: L(n),
|
|
340
341
|
"name-key": e.optionNameKey,
|
|
@@ -352,8 +353,8 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
352
353
|
}, Ce({ _: 2 }, [
|
|
353
354
|
i.$slots["option-end"] ? {
|
|
354
355
|
name: "option-end",
|
|
355
|
-
fn: u(({ option:
|
|
356
|
-
m(i.$slots, "option-end", { option:
|
|
356
|
+
fn: u(({ option: he }) => [
|
|
357
|
+
m(i.$slots, "option-end", { option: he }, void 0, !0)
|
|
357
358
|
]),
|
|
358
359
|
key: "0"
|
|
359
360
|
} : void 0
|
|
@@ -378,13 +379,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
378
379
|
variant: "text",
|
|
379
380
|
color: "primary"
|
|
380
381
|
},
|
|
381
|
-
t(
|
|
382
|
+
t(h)[t(g).ACTION_CLEAR_ALL],
|
|
382
383
|
{
|
|
383
384
|
onClick: l[6] || (l[6] = () => t(M)(!1))
|
|
384
385
|
}
|
|
385
386
|
), {
|
|
386
387
|
default: u(() => [
|
|
387
|
-
|
|
388
|
+
T(" Clear all ")
|
|
388
389
|
]),
|
|
389
390
|
_: 1
|
|
390
391
|
}, 16)
|
|
@@ -398,11 +399,11 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
398
399
|
variant: "outlined",
|
|
399
400
|
color: "primary"
|
|
400
401
|
},
|
|
401
|
-
t(
|
|
402
|
+
t(h)[t(g).ACTION_CANCEL],
|
|
402
403
|
{ onClick: t(ie) }
|
|
403
404
|
), {
|
|
404
405
|
default: u(() => [
|
|
405
|
-
|
|
406
|
+
T(" Cancel ")
|
|
406
407
|
]),
|
|
407
408
|
_: 1
|
|
408
409
|
}, 16, ["onClick"]),
|
|
@@ -412,9 +413,9 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
412
413
|
"data-testid": "mutli-apply",
|
|
413
414
|
size: "small",
|
|
414
415
|
class: "apply-button"
|
|
415
|
-
}, t(
|
|
416
|
+
}, t(h)[t(g).ACTION_APPLY], { onClick: t(le) }), {
|
|
416
417
|
default: u(() => [
|
|
417
|
-
|
|
418
|
+
T(" Apply ")
|
|
418
419
|
]),
|
|
419
420
|
_: 1
|
|
420
421
|
}, 16, ["onClick"])
|
|
@@ -454,7 +455,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
454
455
|
testId: e.testId,
|
|
455
456
|
multi: e.multi,
|
|
456
457
|
disabled: e.disabled,
|
|
457
|
-
selectedOption: e.multi ? t(O) : t(
|
|
458
|
+
selectedOption: e.multi ? t(O) : t(k),
|
|
458
459
|
displayValue: e.displayValue,
|
|
459
460
|
options: e.options,
|
|
460
461
|
optionNameKey: e.optionNameKey,
|
|
@@ -471,7 +472,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
471
472
|
size: e.size,
|
|
472
473
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
473
474
|
allSelected: t(K),
|
|
474
|
-
onKeydown: t(
|
|
475
|
+
onKeydown: t(V),
|
|
475
476
|
onClick: H
|
|
476
477
|
}
|
|
477
478
|
}, () => [
|
|
@@ -485,7 +486,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
485
486
|
"test-id": e.testId,
|
|
486
487
|
multi: e.multi,
|
|
487
488
|
disabled: e.disabled,
|
|
488
|
-
"selected-option": e.multi ? t(O) : t(
|
|
489
|
+
"selected-option": e.multi ? t(O) : t(k),
|
|
489
490
|
"display-value": e.displayValue,
|
|
490
491
|
options: e.options,
|
|
491
492
|
"option-name-key": e.optionNameKey,
|
|
@@ -502,29 +503,30 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
502
503
|
size: e.size,
|
|
503
504
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
504
505
|
"all-selected": t(K),
|
|
505
|
-
onKeydown: t(
|
|
506
|
+
onKeydown: t(V),
|
|
506
507
|
onClick: H,
|
|
507
508
|
onCopyToClipboard: l[0] || (l[0] = (n) => F("copyToClipboard"))
|
|
508
509
|
}, 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"]))
|
|
509
510
|
])) : s("", !0),
|
|
510
|
-
e.predefinedTrigger === t(
|
|
511
|
+
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div", Me, [
|
|
511
512
|
a(t(Oe), {
|
|
512
513
|
onClick: l[1] || (l[1] = (n) => t(v)())
|
|
513
514
|
})
|
|
514
515
|
])) : s("", !0),
|
|
515
|
-
e.predefinedTrigger === t(
|
|
516
|
+
e.predefinedTrigger === t(w).CHIP ? (d(), r("div", We, [
|
|
516
517
|
a(t(Le), {
|
|
517
518
|
open: t(c),
|
|
518
519
|
label: e.placeholder,
|
|
519
520
|
"test-id": e.testId,
|
|
520
521
|
options: e.options,
|
|
521
|
-
"selected-option": e.multi ? t(O) : t(
|
|
522
|
+
"selected-option": e.multi ? t(O) : t(k),
|
|
522
523
|
"display-value": e.displayValue,
|
|
523
524
|
multi: e.multi,
|
|
524
525
|
"all-selected": t(K),
|
|
526
|
+
"shown-values-count": e.triggerShownValuesCount,
|
|
525
527
|
onClick: l[2] || (l[2] = (n) => t(v)()),
|
|
526
528
|
onClear: l[3] || (l[3] = (n) => t(M)())
|
|
527
|
-
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
529
|
+
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
528
530
|
])) : s("", !0)
|
|
529
531
|
], !0)
|
|
530
532
|
], 512)
|
|
@@ -532,7 +534,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
532
534
|
]),
|
|
533
535
|
_: 3
|
|
534
536
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
535
|
-
e.triggerFeedbackText ? (d(), q(
|
|
537
|
+
e.triggerFeedbackText ? (d(), q(De, {
|
|
536
538
|
key: 0,
|
|
537
539
|
text: e.triggerFeedbackText,
|
|
538
540
|
variant: e.triggerFeedbackVariant,
|
|
@@ -1679,6 +1679,10 @@ declare const DropdownTypes: () => (({
|
|
|
1679
1679
|
type: import("vue").PropType<boolean>;
|
|
1680
1680
|
default: boolean;
|
|
1681
1681
|
};
|
|
1682
|
+
shownValuesCount: {
|
|
1683
|
+
type: import("vue").PropType<number>;
|
|
1684
|
+
default: number;
|
|
1685
|
+
};
|
|
1682
1686
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1683
1687
|
clear: () => void;
|
|
1684
1688
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1737,6 +1741,10 @@ declare const DropdownTypes: () => (({
|
|
|
1737
1741
|
type: import("vue").PropType<boolean>;
|
|
1738
1742
|
default: boolean;
|
|
1739
1743
|
};
|
|
1744
|
+
shownValuesCount: {
|
|
1745
|
+
type: import("vue").PropType<number>;
|
|
1746
|
+
default: number;
|
|
1747
|
+
};
|
|
1740
1748
|
}>> & {
|
|
1741
1749
|
onClear?: () => any;
|
|
1742
1750
|
}, {
|
|
@@ -1749,6 +1757,7 @@ declare const DropdownTypes: () => (({
|
|
|
1749
1757
|
displayedValue: any;
|
|
1750
1758
|
cancelAllSelectedDisplay: boolean;
|
|
1751
1759
|
displayValueInQuotes: boolean;
|
|
1760
|
+
shownValuesCount: number;
|
|
1752
1761
|
}> | ({
|
|
1753
1762
|
new (...args: any[]): {
|
|
1754
1763
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1786,6 +1795,7 @@ declare const DropdownTypes: () => (({
|
|
|
1786
1795
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
1787
1796
|
triggerFeedbackShowIcon: boolean;
|
|
1788
1797
|
triggerShowAllSelectedText: boolean;
|
|
1798
|
+
triggerShownValuesCount: number;
|
|
1789
1799
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
1790
1800
|
inlineSearch: boolean;
|
|
1791
1801
|
inlineSearchPlaceholder: string;
|
|
@@ -1956,6 +1966,10 @@ declare const DropdownTypes: () => (({
|
|
|
1956
1966
|
type: import("vue").PropType<boolean>;
|
|
1957
1967
|
default: boolean;
|
|
1958
1968
|
};
|
|
1969
|
+
triggerShownValuesCount: {
|
|
1970
|
+
type: import("vue").PropType<number>;
|
|
1971
|
+
default: number;
|
|
1972
|
+
};
|
|
1959
1973
|
predefinedTrigger: {
|
|
1960
1974
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
1961
1975
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -2085,7 +2099,7 @@ declare const DropdownTypes: () => (({
|
|
|
2085
2099
|
onUnsavedSelectionUpdate?: (value: unknown[]) => any;
|
|
2086
2100
|
onOpened?: () => any;
|
|
2087
2101
|
onClosed?: () => any;
|
|
2088
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2102
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2089
2103
|
$attrs: {
|
|
2090
2104
|
[x: string]: unknown;
|
|
2091
2105
|
};
|
|
@@ -2241,6 +2255,10 @@ declare const DropdownTypes: () => (({
|
|
|
2241
2255
|
type: import("vue").PropType<boolean>;
|
|
2242
2256
|
default: boolean;
|
|
2243
2257
|
};
|
|
2258
|
+
triggerShownValuesCount: {
|
|
2259
|
+
type: import("vue").PropType<number>;
|
|
2260
|
+
default: number;
|
|
2261
|
+
};
|
|
2244
2262
|
predefinedTrigger: {
|
|
2245
2263
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
2246
2264
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -2419,6 +2437,7 @@ declare const DropdownTypes: () => (({
|
|
|
2419
2437
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
2420
2438
|
triggerFeedbackShowIcon: boolean;
|
|
2421
2439
|
triggerShowAllSelectedText: boolean;
|
|
2440
|
+
triggerShownValuesCount: number;
|
|
2422
2441
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
2423
2442
|
inlineSearch: boolean;
|
|
2424
2443
|
inlineSearchPlaceholder: string;
|
|
@@ -2609,6 +2628,10 @@ declare const DropdownTypes: () => (({
|
|
|
2609
2628
|
type: import("vue").PropType<boolean>;
|
|
2610
2629
|
default: boolean;
|
|
2611
2630
|
};
|
|
2631
|
+
triggerShownValuesCount: {
|
|
2632
|
+
type: import("vue").PropType<number>;
|
|
2633
|
+
default: number;
|
|
2634
|
+
};
|
|
2612
2635
|
predefinedTrigger: {
|
|
2613
2636
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
2614
2637
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -2887,6 +2910,10 @@ declare const DropdownTypes: () => (({
|
|
|
2887
2910
|
type: import("vue").PropType<boolean>;
|
|
2888
2911
|
default: boolean;
|
|
2889
2912
|
};
|
|
2913
|
+
triggerShownValuesCount: {
|
|
2914
|
+
type: import("vue").PropType<number>;
|
|
2915
|
+
default: number;
|
|
2916
|
+
};
|
|
2890
2917
|
predefinedTrigger: {
|
|
2891
2918
|
type: import("vue").PropType<"default" | "icon-button" | "chip" | "app">;
|
|
2892
2919
|
default: "default" | "icon-button" | "chip" | "app";
|
|
@@ -3065,6 +3092,7 @@ declare const DropdownTypes: () => (({
|
|
|
3065
3092
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
3066
3093
|
triggerFeedbackShowIcon: boolean;
|
|
3067
3094
|
triggerShowAllSelectedText: boolean;
|
|
3095
|
+
triggerShownValuesCount: number;
|
|
3068
3096
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
3069
3097
|
inlineSearch: boolean;
|
|
3070
3098
|
inlineSearchPlaceholder: string;
|
|
@@ -3696,6 +3724,10 @@ declare const DropdownTypes: () => (({
|
|
|
3696
3724
|
type: import("vue").PropType<boolean>;
|
|
3697
3725
|
default: boolean;
|
|
3698
3726
|
};
|
|
3727
|
+
triggerShownValuesCount: {
|
|
3728
|
+
type: import("vue").PropType<number>;
|
|
3729
|
+
default: number;
|
|
3730
|
+
};
|
|
3699
3731
|
optionNameKey: {
|
|
3700
3732
|
type: import("vue").PropType<string>;
|
|
3701
3733
|
required: true;
|
|
@@ -3801,6 +3833,10 @@ declare const DropdownTypes: () => (({
|
|
|
3801
3833
|
type: import("vue").PropType<boolean>;
|
|
3802
3834
|
default: boolean;
|
|
3803
3835
|
};
|
|
3836
|
+
triggerShownValuesCount: {
|
|
3837
|
+
type: import("vue").PropType<number>;
|
|
3838
|
+
default: number;
|
|
3839
|
+
};
|
|
3804
3840
|
optionNameKey: {
|
|
3805
3841
|
type: import("vue").PropType<string>;
|
|
3806
3842
|
required: true;
|
|
@@ -3893,6 +3929,7 @@ declare const DropdownTypes: () => (({
|
|
|
3893
3929
|
testId: string;
|
|
3894
3930
|
isOpen: boolean;
|
|
3895
3931
|
infiniteLoading: boolean;
|
|
3932
|
+
triggerShownValuesCount: number;
|
|
3896
3933
|
optionNameKey: string;
|
|
3897
3934
|
optionIconKey: string;
|
|
3898
3935
|
optionImageKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5b72e35a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as o, createElementVNode as f, normalizeStyle as v, normalizeClass as u, renderSlot as c, createVNode as h, withCtx as $, createTextVNode as R, toDisplayString as P, createCommentVNode as n, isRef as Se, Fragment as T, renderList as x, mergeProps as L, createBlock as D } from "vue";
|
|
2
2
|
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ke from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ge from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -67,9 +67,9 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
67
67
|
setup(l, { expose: m, emit: k }) {
|
|
68
68
|
const a = l;
|
|
69
69
|
ye((s) => ({
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
70
|
+
"6eb1b581": l.zIndexBase,
|
|
71
|
+
"4420f996": t(ee),
|
|
72
|
+
"3030c624": t(K)
|
|
73
73
|
}));
|
|
74
74
|
const b = fe(), Q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
75
75
|
list: w,
|
|
@@ -254,7 +254,7 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
254
254
|
text: e.helpText,
|
|
255
255
|
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
256
256
|
placement: e.helpTextPlacement || "top",
|
|
257
|
-
"test-id": `help-tooltip-${e.id}`
|
|
257
|
+
"test-id": `help-tooltip-underlined-${e.id}`
|
|
258
258
|
}, {
|
|
259
259
|
default: $(() => [
|
|
260
260
|
h(t(p), {
|