@ironsource/shared-ui 2.1.12-test.72 → 2.1.12-test.73

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.
Files changed (36) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  2. package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
  3. package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
  4. package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
  5. package/components/dateRange/common/DateServices.common.d.ts +6 -0
  6. package/components/dateRange/common/DateServices.common.js +87 -92
  7. package/components/dateRange/common/consts.common.d.ts +5 -0
  8. package/components/dateRange/common/consts.common.js +9 -3
  9. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  10. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  11. package/components/dateRange/v3/index.d.ts +7 -7
  12. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  13. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  14. package/components/dateRange/v4/index.d.ts +7 -7
  15. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  16. package/components/dropdown/common/Dropdown.common.js +44 -43
  17. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  18. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  19. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  20. package/components/dropdown/v4/DropdownV4.vue.d.ts +15 -0
  21. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  22. package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
  23. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  24. package/components/dropdown/v4/OptionV4.vue2.js +71 -68
  25. package/components/dropdown/v4/index.d.ts +67 -1
  26. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  27. package/components/switch/v4/SwitchV4.vue.js +3 -3
  28. package/components/switch/v4/SwitchV4.vue2.js +25 -23
  29. package/components/switch/v4/index.d.ts +11 -0
  30. package/index.d.ts +170 -16
  31. package/index.js +1 -1
  32. package/package.json +1 -1
  33. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  34. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
  35. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
  36. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
@@ -46,4 +46,5 @@ export declare const dropdownCommon: (props: any, emit: any, commonOptions: any)
46
46
  clearAll: Ref<HTMLButtonElement>;
47
47
  onClearAllSelections: (applyChanges?: boolean) => void;
48
48
  isGroup: (option: any) => boolean;
49
+ flattenAndMarkGroupOptions: (options: any) => any;
49
50
  };
@@ -1,8 +1,8 @@
1
1
  import { useToggle as Ve } from "../../../composables/useToggle.js";
2
2
  import { inject as ke, ref as r, computed as c, watch as b, useSlots as Ge, toRaw as I, nextTick as N, provide as Le, onMounted as Ue } from "vue";
3
- import { isObjectInArray as ae } from "../../../utils/array.js";
3
+ import { isObjectInArray as ne } from "../../../utils/array.js";
4
4
  import { objectsEqual as Be } from "../../../utils/object.js";
5
- import { useClamp as He, useVirtualList as qe, onClickOutside as ne, useInfiniteScroll as Xe } from "@vueuse/core";
5
+ import { useClamp as He, useVirtualList as qe, onClickOutside as ue, useInfiniteScroll as Xe } from "@vueuse/core";
6
6
  import { Mode as w, Type as U, DropdownContext as $e } from "./DropdownContext.js";
7
7
  import { pxToRem as je } from "../../../utils/style.js";
8
8
  import { useEditableContext as ze } from "../../table-cells/common/EditableContext.js";
@@ -10,20 +10,20 @@ import { useGroupedOptions as We } from "./useGroupedOptions.js";
10
10
  const al = (e, d, y) => {
11
11
  const B = ke("isTreeDropdown", !1), {
12
12
  sortOutGroups: H,
13
- flattenAndMarkGroupOptions: ue,
14
- isGroup: q,
13
+ flattenAndMarkGroupOptions: q,
14
+ isGroup: X,
15
15
  selectAllWithGroups: ie,
16
16
  isIndeterminateGrouped: re,
17
- allSelectedGrouped: X,
17
+ allSelectedGrouped: $,
18
18
  areAllPreviousSelected: oe,
19
19
  groupedChildOptionsLength: ce
20
20
  } = We(e), se = (l, t) => e.multi && Array.isArray(l) ? e.comparingKey ? l?.findIndex(
21
21
  (i) => i[e.comparingKey] === t[e.comparingKey]
22
- ) > -1 : ae(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
23
- let $;
22
+ ) > -1 : ne(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
23
+ let j;
24
24
  ((l) => {
25
25
  l[l.None = 0] = "None", l[l.Next = 1] = "Next", l[l.Previous = -1] = "Previous", l[l.NextPage = 10] = "NextPage", l[l.PrevPage = -10] = "PrevPage";
26
- })($ || ($ = {}));
26
+ })(j || (j = {}));
27
27
  const a = r(
28
28
  e.selected
29
29
  ), K = ze(), n = c({
@@ -40,7 +40,7 @@ const al = (e, d, y) => {
40
40
  a.value = e.selected, v.value = e.selected;
41
41
  }
42
42
  );
43
- const de = Ge(), x = r(null), m = r(null), j = r(null), R = r(null), z = r(null), D = r(null), ve = r(), W = r(null), J = r(null), Q = r(null), fe = 8, ge = c(() => D.value ? D.value.getBoundingClientRect().height + fe + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Y = () => D.value?.focus(), [S, ye, he] = Ve({
43
+ const de = Ge(), x = r(null), m = r(null), z = r(null), R = r(null), W = r(null), D = r(null), ve = r(), J = r(null), Q = r(null), Y = r(null), fe = 8, ge = c(() => D.value ? D.value.getBoundingClientRect().height + fe + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => D.value?.focus(), [S, ye, he] = Ve({
44
44
  disabled: e.disabled,
45
45
  initialValue: e.defaultOpen
46
46
  });
@@ -50,7 +50,7 @@ const al = (e, d, y) => {
50
50
  l !== void 0 && he(l);
51
51
  }
52
52
  );
53
- const Z = (l) => {
53
+ const F = (l) => {
54
54
  Oe.value = ye(l);
55
55
  }, Oe = c({
56
56
  get() {
@@ -59,7 +59,7 @@ const al = (e, d, y) => {
59
59
  set(l) {
60
60
  d("update:isOpen", l);
61
61
  }
62
- }), Se = c(() => o.value.length - 1), g = He(0, 0, Se), F = c(() => n.value ? e.displayValue(n.value) : ""), me = (l) => {
62
+ }), Se = c(() => o.value.length - 1), g = He(0, 0, Se), p = c(() => n.value ? e.displayValue(n.value) : ""), me = (l) => {
63
63
  if (!l.value.length && !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix)
64
64
  return e.placeholder;
65
65
  const t = !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix ? `${l.value.length} selected` : `${e.multiOptionsPlaceholderPrefix ?? ""}${l.value.length ?? "0"}${e.multiOptionsPlaceholderSuffix ?? ""}`;
@@ -71,13 +71,13 @@ const al = (e, d, y) => {
71
71
  return me(a);
72
72
  }), E = c(() => {
73
73
  if (Array.isArray(a.value))
74
- return e.groupedOptions ? X(o, a) : a.value.length === o.value.length;
74
+ return e.groupedOptions ? $(o, a) : a.value.length === o.value.length;
75
75
  }), be = c(() => !e.multi || !Array.isArray(a.value) ? !1 : e.groupedOptions ? re(
76
76
  o,
77
77
  a
78
78
  ) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
79
79
  O.value = l;
80
- }, M = c(() => e.groupedOptions ? ue(e.options) : e.options), Te = c(() => {
80
+ }, M = c(() => e.groupedOptions ? q(e.options) : e.options), Te = c(() => {
81
81
  if (oe(
82
82
  M,
83
83
  v
@@ -98,11 +98,11 @@ const al = (e, d, y) => {
98
98
  }), o = c(() => {
99
99
  const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Te.value : M.value;
100
100
  if (e.onSearch) {
101
- const t = l.filter((i) => e.groupedOptions && q(i) ? i : e.onSearch(i, O.value));
101
+ const t = l.filter((i) => e.groupedOptions && X(i) ? i : e.onSearch(i, O.value));
102
102
  return e.groupedOptions ? H(t) : t;
103
103
  } else
104
104
  return l;
105
- }), Pe = c(() => h.value[0]?.hasSubtitle), p = c(() => s.mode === w.Multi), ee = c(
105
+ }), Pe = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === w.Multi), le = c(
106
106
  () => Pe.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
107
107
  ), {
108
108
  list: V,
@@ -110,13 +110,13 @@ const al = (e, d, y) => {
110
110
  wrapperProps: Ie,
111
111
  scrollTo: P
112
112
  } = qe(o, {
113
- itemHeight: ee.value,
113
+ itemHeight: le.value,
114
114
  overscan: e.disableVirtualScroll ? 1 / 0 : 2
115
115
  });
116
116
  b(
117
117
  () => e.isOpen,
118
118
  (l) => {
119
- Z(l);
119
+ F(l);
120
120
  }
121
121
  ), b([T], async () => {
122
122
  await N();
@@ -140,16 +140,16 @@ const al = (e, d, y) => {
140
140
  d("onsearch", O.value), P(0);
141
141
  });
142
142
  const A = (l, t = !1) => {
143
- e.disabled || (Z(l), N(() => {
143
+ e.disabled || (F(l), N(() => {
144
144
  S.value && d("opened"), S.value || d("closed"), x.value && t && x.value.focus();
145
145
  }));
146
146
  };
147
147
  b(S, (l) => {
148
148
  if (l) {
149
- O.value = "", p.value && Array.isArray(n.value) && (v.value = I(n.value).slice());
149
+ O.value = "", ee.value && Array.isArray(n.value) && (v.value = I(n.value).slice());
150
150
  return;
151
151
  }
152
- Y();
152
+ Z();
153
153
  });
154
154
  const we = () => {
155
155
  if (E.value) {
@@ -179,14 +179,14 @@ const al = (e, d, y) => {
179
179
  e.keepOpen || A(!1), s.goToOption(
180
180
  0
181
181
  /* None */
182
- ), n.value = l, _(""), Y(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), le();
182
+ ), n.value = l, _(""), Z(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), te();
183
183
  return;
184
184
  }
185
185
  if (!Array.isArray(a.value))
186
186
  return;
187
187
  m.value?.focus();
188
188
  const f = I(a.value);
189
- if (ae(f, l) || e.comparingKey && f.findIndex(
189
+ if (ne(f, l) || e.comparingKey && f.findIndex(
190
190
  (u) => u[e.comparingKey] === l[e.comparingKey]
191
191
  ) > -1) {
192
192
  a.value = f.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !Be(u, l));
@@ -199,14 +199,14 @@ const al = (e, d, y) => {
199
199
  activeIndex: g,
200
200
  options: h,
201
201
  selectedOption: n,
202
- labelRef: z,
202
+ labelRef: W,
203
203
  activeOption: R,
204
204
  listRef: x,
205
205
  clearable: e.clearable,
206
206
  type: de.input ? U.Search : U.Dropdown,
207
207
  mode: e.multi ? w.Multi : w.Single,
208
208
  query: O,
209
- selectedValue: F,
209
+ selectedValue: p,
210
210
  toggle: A,
211
211
  disabled: e.disabled,
212
212
  open: S,
@@ -246,17 +246,17 @@ const al = (e, d, y) => {
246
246
  h.value = h.value.filter((t) => t.id !== l);
247
247
  }
248
248
  };
249
- Le($e, s), ne(
249
+ Le($e, s), ue(
250
250
  x,
251
251
  () => {
252
- S.value && te();
252
+ S.value && ae();
253
253
  },
254
254
  {
255
255
  ignore: [
256
256
  D,
257
- W,
258
257
  J,
259
258
  Q,
259
+ Y,
260
260
  m,
261
261
  k.ref
262
262
  ]
@@ -267,16 +267,16 @@ const al = (e, d, y) => {
267
267
  };
268
268
  Ue(async () => {
269
269
  e.autoFocus && (await N(), setTimeout(() => {
270
- j.value.focus();
271
- })), s.goToOption(0), e.multi && !B && (e.groupedOptions ? C.value = X(
270
+ z.value.focus();
271
+ })), s.goToOption(0), e.multi && !B && (e.groupedOptions ? C.value = $(
272
272
  o,
273
273
  a
274
274
  ) : C.value = e.options.length === e.selected.length);
275
275
  });
276
- const le = () => {
276
+ const te = () => {
277
277
  e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = I(n.value).slice(), C.value = e.groupedOptions ? ce(e.options) === n.value.length : e.options.length === n.value.length)), d("apply", n.value), d("allSelectedChanged", E.value), A(!1), Ce();
278
- }, te = () => {
279
- p.value && Array.isArray(v.value) && (n.value = I(v.value).slice()), O.value = "", A(!1);
278
+ }, ae = () => {
279
+ ee.value && Array.isArray(v.value) && (n.value = I(v.value).slice()), O.value = "", A(!1);
280
280
  }, Ne = (l) => {
281
281
  if (!e.disableKeyboardEvents)
282
282
  switch (l.key) {
@@ -339,7 +339,7 @@ const al = (e, d, y) => {
339
339
  }, 0), t = e.multi && e.showSelectAll && !O.value ? 1 : 0, i = l > y.MAX_NUMBER_OF_OPTIONS, f = l + t;
340
340
  let u = i ? y.MAX_NUMBER_OF_OPTIONS + 0.1 : f;
341
341
  return e.loadMoreLoading && e.multi && (V.value.length ? u = u + 0.1 : u = u - 0.9), e.noResultsText && u === 0 && (u = u + 1), e.withConditions && O.value && (u = u + 1), je(
342
- u * ee.value + y.PADDING_PX
342
+ u * le.value + y.PADDING_PX
343
343
  );
344
344
  });
345
345
  return Xe(
@@ -357,7 +357,7 @@ const al = (e, d, y) => {
357
357
  toggleMenu: A,
358
358
  onButtonKeydown: Ne,
359
359
  displayedValue: Ae,
360
- labelRef: z,
360
+ labelRef: W,
361
361
  query: O,
362
362
  containerProps: k,
363
363
  calculateTableHeight: Re,
@@ -371,22 +371,23 @@ const al = (e, d, y) => {
371
371
  isSelected: se,
372
372
  selectedOption: n,
373
373
  selectedOptionPrevious: v,
374
- selectedValue: F,
374
+ selectedValue: p,
375
375
  onSelect: G,
376
376
  activeIndex: g,
377
- onCancel: te,
378
- onApply: le,
377
+ onCancel: ae,
378
+ onApply: te,
379
379
  scrollTo: P,
380
- onClickOutside: ne,
380
+ onClickOutside: ue,
381
381
  listRef: x,
382
382
  buttonRef: D,
383
- apply: W,
384
- cancel: J,
385
- el: j,
383
+ apply: J,
384
+ cancel: Q,
385
+ el: z,
386
386
  triggerRef: ve,
387
- clearAll: Q,
387
+ clearAll: Y,
388
388
  onClearAllSelections: De,
389
- isGroup: q
389
+ isGroup: X,
390
+ flattenAndMarkGroupOptions: q
390
391
  };
391
392
  };
392
393
  export {
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
12
12
  multi: boolean;
13
13
  cancelAllSelectedDisplay?: boolean;
14
14
  displayValueInQuotes?: boolean;
15
+ shownValuesCount?: number;
15
16
  }>, {
16
17
  label: string;
17
18
  open: boolean;
@@ -22,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
22
23
  allSelected: boolean;
23
24
  cancelAllSelectedDisplay: boolean;
24
25
  displayValueInQuotes: boolean;
26
+ shownValuesCount: number;
25
27
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
28
  clear: () => void;
27
29
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -38,6 +40,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
38
40
  multi: boolean;
39
41
  cancelAllSelectedDisplay?: boolean;
40
42
  displayValueInQuotes?: boolean;
43
+ shownValuesCount?: number;
41
44
  }>, {
42
45
  label: string;
43
46
  open: boolean;
@@ -48,6 +51,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
48
51
  allSelected: boolean;
49
52
  cancelAllSelectedDisplay: boolean;
50
53
  displayValueInQuotes: boolean;
54
+ shownValuesCount: number;
51
55
  }>>> & {
52
56
  onClear?: () => any;
53
57
  }, {
@@ -60,6 +64,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
60
64
  displayedValue: any;
61
65
  cancelAllSelectedDisplay: boolean;
62
66
  displayValueInQuotes: boolean;
67
+ shownValuesCount: number;
63
68
  }>;
64
69
  export default _default;
65
70
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./ChipDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; //*');
4
- const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e43ac1c9"]]);
3
+ // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-38354f10"]]);
5
5
  export {
6
- c as default
6
+ s as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; import { defineComponent as k, ref as f, computed as m, watch as D, openBlock as I, createBlock as S, unref as t, withCtx as y, createElementVNode as c, mergeProps as p, createVNode as d, createTextVNode as V, toDisplayString as v, withDirectives as x, vShow as _, withModifiers as $ } from "vue";
2
- import b from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css"; import { defineComponent as k, ref as m, computed as y, watch as S, openBlock as $, createBlock as D, unref as t, withCtx as h, createElementVNode as p, mergeProps as d, createVNode as u, createTextVNode as O, toDisplayString as C, withDirectives as b, vShow as x, withModifiers as E } from "vue";
2
+ import v from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import C from "../../typography/v4/Typography.vue.js";
4
+ import _ from "../../typography/v4/Typography.vue.js";
5
5
  import { DropdownTestIdModifiers as i } from "../../../testids/index.js";
6
- import { useTestIdAttrs as E } from "../../../utils/testIds.js";
7
- import { isElementTruncated as U } from "../../../utils/text.js";
8
- import { promiseTimeout as F } from "@vueuse/core";
9
- import L from "../../tooltip/v4/TooltipV4.vue.js";
10
- const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */ k({
6
+ import { useTestIdAttrs as U } from "../../../utils/testIds.js";
7
+ import { isElementTruncated as F } from "../../../utils/text.js";
8
+ import { promiseTimeout as L } from "@vueuse/core";
9
+ import R from "../../tooltip/v4/TooltipV4.vue.js";
10
+ const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */ k({
11
11
  __name: "ChipDropdownTrigger",
12
12
  props: {
13
13
  label: { default: "Status" },
@@ -22,87 +22,97 @@ const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
22
22
  displayValue: null,
23
23
  multi: { type: Boolean },
24
24
  cancelAllSelectedDisplay: { type: Boolean, default: !1 },
25
- displayValueInQuotes: { type: Boolean, default: !1 }
25
+ displayValueInQuotes: { type: Boolean, default: !1 },
26
+ shownValuesCount: { default: 1 }
26
27
  },
27
28
  emits: ["clear"],
28
- setup(u, { emit: A }) {
29
- const e = u, B = () => {
30
- A("clear");
31
- }, o = f(null), r = f(!0), T = f(!1), h = (l) => {
29
+ setup(f, { emit: w }) {
30
+ const e = f, A = () => {
31
+ w("clear");
32
+ }, o = m(null), r = m(!0), T = m(!1), g = (l) => {
32
33
  let a = l;
33
- Array.isArray(l) && (l.length > 1 ? a = `${l[0]}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
34
- let O = a;
35
- return e.displayValueInQuotes && (O = `"${a}"`), a ? `${e.label}: ${O}` : e.label;
36
- }, g = (l) => {
37
- let a = "";
38
- return Array.isArray(l) && l.length > 1 && (a = `, +${l[1]}`), a;
39
- }, N = m(
34
+ Array.isArray(l) && (l.length > 1 ? a = `${l.filter((I) => typeof I == "string").join(", ")}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
35
+ let c = a;
36
+ return e.displayValueInQuotes && (c = `"${a}"`), a ? `${e.label}: ${c}` : e.label;
37
+ }, V = (l) => {
38
+ if (Array.isArray(l) && l.length > 1) {
39
+ const a = l[l.length - 1];
40
+ if (typeof a == "number" && a > 0)
41
+ return `, +${a}`;
42
+ }
43
+ return "";
44
+ }, B = y(
40
45
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
41
- ), s = E(e.testId, i), n = m(() => {
46
+ ), n = U(e.testId, i), s = y(() => {
42
47
  if (!e.multi)
43
48
  return e.selectedOption ? e.displayValue(e.selectedOption) : "";
44
- if (Array.isArray(e.selectedOption))
45
- return e.selectedOption.length ? e.allSelected && !e.cancelAllSelectedDisplay ? ["All"] : e.selectedOption.length == 1 && e.displayValue ? [e.displayValue(e.selectedOption[0])] : [
46
- e.displayValue(e.selectedOption[0]),
47
- e.selectedOption.length - 1
48
- ] : [];
49
+ if (!Array.isArray(e.selectedOption))
50
+ return;
51
+ if (!e.selectedOption.length)
52
+ return [];
53
+ if (e.allSelected && !e.cancelAllSelectedDisplay)
54
+ return ["All"];
55
+ if (e.selectedOption.length === 1 && e.displayValue)
56
+ return [e.displayValue(e.selectedOption[0])];
57
+ const l = e.selectedOption.slice(0, e.shownValuesCount).map((c) => e.displayValue(c)), a = e.selectedOption.length - l.length;
58
+ return [...l, a];
49
59
  });
50
- D([() => e.selectedOption, o], async () => {
51
- await F(100), T.value = o.value && U(o.value);
60
+ S([() => e.selectedOption, o], async () => {
61
+ await L(100), T.value = o.value && F(o.value);
52
62
  });
53
- const w = m(() => T.value ? `${h(n.value)}${g(
54
- n.value
63
+ const N = y(() => T.value ? `${g(s.value)}${V(
64
+ s.value
55
65
  )}` : "");
56
- return (l, a) => (I(), S(t(L), {
57
- text: t(w),
66
+ return (l, a) => ($(), D(t(R), {
67
+ text: t(N),
58
68
  class: "tooltip-option",
59
69
  placement: "top"
60
70
  }, {
61
- default: y(() => [
62
- c("div", p({
63
- class: ["chip-trigger", [t(N), { active: r.value, disabled: u.disabled, open: u.open }]]
64
- }, t(s)[t(i).BUTTON]), [
65
- c("div", {
71
+ default: h(() => [
72
+ p("div", d({
73
+ class: ["chip-trigger", [t(B), { active: r.value, disabled: f.disabled, open: f.open }]]
74
+ }, t(n)[t(i).BUTTON]), [
75
+ p("div", {
66
76
  ref_key: "textContainerRef",
67
77
  ref: o,
68
78
  class: "chip-trigger--content"
69
79
  }, [
70
- d(t(C), p({
80
+ u(t(_), d({
71
81
  class: "chip-trigger--text",
72
82
  variant: "chipLabel"
73
- }, t(s)[t(i).BUTTON_CONTENT]), {
74
- default: y(() => [
75
- V(v(h(t(n))), 1)
83
+ }, t(n)[t(i).BUTTON_CONTENT]), {
84
+ default: h(() => [
85
+ O(C(g(t(s))), 1)
76
86
  ]),
77
87
  _: 1
78
88
  }, 16),
79
- d(t(C), p({
89
+ u(t(_), d({
80
90
  class: "chip-trigger--suffix",
81
91
  variant: "chipLabel"
82
- }, t(s)[t(i).BUTTON_CONTENT_SUFFIX]), {
83
- default: y(() => [
84
- V(v(g(t(n))), 1)
92
+ }, t(n)[t(i).BUTTON_CONTENT_SUFFIX]), {
93
+ default: h(() => [
94
+ O(C(V(t(s))), 1)
85
95
  ]),
86
96
  _: 1
87
97
  }, 16),
88
- x(c("div", R, [
89
- d(t(b), {
98
+ b(p("div", z, [
99
+ u(t(v), {
90
100
  name: "caret-down",
91
101
  size: "16px"
92
102
  })
93
103
  ], 512), [
94
- [_, !r.value]
104
+ [x, !r.value]
95
105
  ]),
96
- x(c("div", p({ class: "x-circle-wrapper" }, t(s)[t(i).BUTTON_CLEAR], {
97
- onClick: $(B, ["stop"])
106
+ b(p("div", d({ class: "x-circle-wrapper" }, t(n)[t(i).BUTTON_CLEAR], {
107
+ onClick: E(A, ["stop"])
98
108
  }), [
99
- d(t(b), {
109
+ u(t(v), {
100
110
  name: "x-circle",
101
111
  size: "16px",
102
112
  type: "fill"
103
113
  })
104
- ], 16, z), [
105
- [_, r.value]
114
+ ], 16, M), [
115
+ [x, r.value]
106
116
  ])
107
117
  ], 512)
108
118
  ], 16)
@@ -112,5 +122,5 @@ const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
112
122
  }
113
123
  });
114
124
  export {
115
- K as default
125
+ W as default
116
126
  };
@@ -18,6 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
18
  autoSize?: boolean;
19
19
  disableKeyboardEvents?: boolean;
20
20
  dynamicFilterMode?: boolean;
21
+ minSelections?: number;
22
+ maxSelections?: number;
21
23
  isOnTop?: boolean;
22
24
  distance?: number;
23
25
  container?: string;
@@ -30,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
30
32
  triggerFeedbackVariant?: "success" | "warning" | "error";
31
33
  triggerFeedbackShowIcon?: boolean;
32
34
  triggerShowAllSelectedText?: boolean;
35
+ triggerShownValuesCount?: number;
33
36
  size?: "small" | "medium" | "large";
34
37
  mandatory?: boolean;
35
38
  predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
@@ -92,12 +95,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
92
95
  testId: string;
93
96
  showSelectAll: boolean;
94
97
  dynamicFilterMode: boolean;
98
+ minSelections: number;
99
+ maxSelections: any;
95
100
  triggerLabel: string;
96
101
  triggerHelperText: string;
97
102
  triggerFeedbackText: string;
98
103
  triggerFeedbackVariant: any;
99
104
  triggerFeedbackShowIcon: boolean;
100
105
  triggerShowAllSelectedText: boolean;
106
+ triggerShownValuesCount: number;
101
107
  searchAutoFocus: boolean;
102
108
  predefinedTrigger: "default" | "icon-button" | "chip" | "app";
103
109
  optionNameKey: string;
@@ -158,6 +164,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
158
164
  autoSize?: boolean;
159
165
  disableKeyboardEvents?: boolean;
160
166
  dynamicFilterMode?: boolean;
167
+ minSelections?: number;
168
+ maxSelections?: number;
161
169
  isOnTop?: boolean;
162
170
  distance?: number;
163
171
  container?: string;
@@ -170,6 +178,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
170
178
  triggerFeedbackVariant?: "success" | "warning" | "error";
171
179
  triggerFeedbackShowIcon?: boolean;
172
180
  triggerShowAllSelectedText?: boolean;
181
+ triggerShownValuesCount?: number;
173
182
  size?: "small" | "medium" | "large";
174
183
  mandatory?: boolean;
175
184
  predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
@@ -232,12 +241,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
232
241
  testId: string;
233
242
  showSelectAll: boolean;
234
243
  dynamicFilterMode: boolean;
244
+ minSelections: number;
245
+ maxSelections: any;
235
246
  triggerLabel: string;
236
247
  triggerHelperText: string;
237
248
  triggerFeedbackText: string;
238
249
  triggerFeedbackVariant: any;
239
250
  triggerFeedbackShowIcon: boolean;
240
251
  triggerShowAllSelectedText: boolean;
252
+ triggerShownValuesCount: number;
241
253
  searchAutoFocus: boolean;
242
254
  predefinedTrigger: "default" | "icon-button" | "chip" | "app";
243
255
  optionNameKey: string;
@@ -300,6 +312,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
300
312
  autoSize: boolean;
301
313
  disableKeyboardEvents: boolean;
302
314
  dynamicFilterMode: boolean;
315
+ minSelections: number;
316
+ maxSelections: number;
303
317
  isOnTop: boolean;
304
318
  triggerLabel: string;
305
319
  triggerHelperText: string;
@@ -307,6 +321,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
307
321
  triggerFeedbackVariant: "success" | "warning" | "error";
308
322
  triggerFeedbackShowIcon: boolean;
309
323
  triggerShowAllSelectedText: boolean;
324
+ triggerShownValuesCount: number;
310
325
  predefinedTrigger: "default" | "icon-button" | "chip" | "app";
311
326
  inlineSearch: boolean;
312
327
  inlineSearchPlaceholder: string;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css"; //*');
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__ */ e(o, [["__scopeId", "data-v-08cb822e"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-92ead583"]]);
6
6
  export {
7
7
  r as default
8
8
  };