@ironsource/shared-ui 2.1.12-test.1 → 2.1.12-test.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.
Files changed (69) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
  7. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
  8. package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
  9. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
  10. package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
  11. package/OptionV4.vue_vue_type_style_index_0_scoped_7d287ee5_lang.css +1 -0
  12. package/components/button/v4/ButtonV4.vue.d.ts +1 -0
  13. package/components/button/v4/ButtonV4.vue.js +3 -3
  14. package/components/button/v4/ButtonV4.vue2.js +22 -21
  15. package/components/chart/Chart.vue.d.ts +5 -0
  16. package/components/chart/Chart.vue.js +3 -3
  17. package/components/chart/Chart.vue2.js +9 -7
  18. package/components/chart/ChartHeader.vue.d.ts +5 -0
  19. package/components/chart/ChartHeader.vue.js +2 -2
  20. package/components/chart/ChartHeader.vue2.js +42 -34
  21. package/components/chart/ChartPlane.vue.d.ts +5 -0
  22. package/components/chart/ChartPlane.vue.js +4 -4
  23. package/components/chart/ChartPlane.vue2.js +14 -12
  24. package/components/chart/ChartTooltip.vue.js +2 -2
  25. package/components/chart/ChartTooltip.vue2.js +3 -3
  26. package/components/chart/index.d.ts +15 -0
  27. package/components/dateRange/common/DateRange.common.js +81 -75
  28. package/components/dateRange/common/DateServices.common.d.ts +1 -1
  29. package/components/dateRange/common/DateServices.common.js +1 -0
  30. package/components/dropdown/common/Dropdown.common.js +83 -79
  31. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  32. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  33. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +15 -12
  34. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  35. package/components/dropdown/v4/ConditionalDropdown.vue2.js +105 -96
  36. package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
  37. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  38. package/components/dropdown/v4/DropdownV4.vue2.js +56 -54
  39. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -5
  40. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  41. package/components/dropdown/v4/OptionV4.vue2.js +3 -3
  42. package/components/dropdown/v4/index.d.ts +30 -15
  43. package/components/link/Link.vue.d.ts +70 -0
  44. package/components/link/Link.vue.js +7 -0
  45. package/components/link/Link.vue2.js +43 -0
  46. package/components/link/index.d.ts +140 -0
  47. package/components/link/index.js +6 -0
  48. package/components/table/v4/DataGrid.vue.d.ts +2 -0
  49. package/components/table/v4/DataGrid.vue.js +3 -3
  50. package/components/table/v4/DataGrid.vue2.js +5 -4
  51. package/components/table/v4/index.d.ts +2 -0
  52. package/composables/useDateService.d.ts +7 -0
  53. package/composables/useDateService.js +10 -0
  54. package/index.d.ts +68 -30
  55. package/index.js +111 -105
  56. package/mocks/optionsWithIcons.d.ts +1 -0
  57. package/package.json +9 -1
  58. package/testids/index.d.ts +4 -0
  59. package/testids/index.js +31 -30
  60. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
  61. package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
  62. package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
  63. package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
  64. package/ChartPlane.vue_vue_type_style_index_0_scoped_ff7e556e_lang.css +0 -1
  65. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
  66. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css +0 -1
  67. package/DataGrid.vue_vue_type_style_index_0_scoped_0963bb3c_lang.css +0 -1
  68. package/DropdownV4.vue_vue_type_style_index_0_scoped_dd86e387_lang.css +0 -1
  69. package/OptionV4.vue_vue_type_style_index_0_scoped_b9724567_lang.css +0 -1
@@ -1,33 +1,33 @@
1
- import { useToggle as Ve } from "../../../composables/useToggle.js";
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 ne } from "../../../utils/array.js";
4
- import { objectsEqual as Be } from "../../../utils/object.js";
5
- import { useVirtualList as He, onClickOutside as ue, useInfiniteScroll as qe } from "@vueuse/core";
6
- import { useClamp as Xe } from "@vueuse/math";
7
- import { Mode as w, Type as U, DropdownContext as $e } from "./DropdownContext.js";
8
- import { pxToRem as je } from "../../../utils/style.js";
9
- import { useEditableContext as ze } from "../../table-cells/common/EditableContext.js";
10
- import { useGroupedOptions as We } from "./useGroupedOptions.js";
11
- const nl = (e, d, y) => {
12
- const B = ke("isTreeDropdown", !1), {
1
+ import { useToggle as ke } from "../../../composables/useToggle.js";
2
+ import { inject as Ge, ref as r, computed as c, watch as b, useSlots as Le, toRaw as I, nextTick as N, provide as Ue, onMounted as Be } from "vue";
3
+ import { isObjectInArray as ue } from "../../../utils/array.js";
4
+ import { objectsEqual as He } from "../../../utils/object.js";
5
+ import { useVirtualList as qe, onClickOutside as ie, useInfiniteScroll as Xe } from "@vueuse/core";
6
+ import { useClamp as $e } from "@vueuse/math";
7
+ import { Mode as w, Type as U, DropdownContext as je } from "./DropdownContext.js";
8
+ import { pxToRem as ze } from "../../../utils/style.js";
9
+ import { useEditableContext as We } from "../../table-cells/common/EditableContext.js";
10
+ import { useGroupedOptions as Je } from "./useGroupedOptions.js";
11
+ const ul = (e, d, y) => {
12
+ const B = Ge("isTreeDropdown", !1), {
13
13
  sortOutGroups: H,
14
14
  flattenAndMarkGroupOptions: q,
15
15
  isGroup: X,
16
- selectAllWithGroups: ie,
17
- isIndeterminateGrouped: re,
16
+ selectAllWithGroups: re,
17
+ isIndeterminateGrouped: oe,
18
18
  allSelectedGrouped: $,
19
- areAllPreviousSelected: oe,
20
- groupedChildOptionsLength: ce
21
- } = We(e), se = (l, t) => e.multi && Array.isArray(l) ? e.comparingKey ? l?.findIndex(
19
+ areAllPreviousSelected: ce,
20
+ groupedChildOptionsLength: se
21
+ } = Je(e), de = (l, t) => e.multi && Array.isArray(l) ? e.comparingKey ? l?.findIndex(
22
22
  (i) => i[e.comparingKey] === t[e.comparingKey]
23
- ) > -1 : ne(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
23
+ ) > -1 : ue(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
24
24
  let j;
25
25
  ((l) => {
26
26
  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";
27
27
  })(j || (j = {}));
28
28
  const a = r(
29
29
  e.selected
30
- ), K = ze(), n = c({
30
+ ), K = We(), n = c({
31
31
  get() {
32
32
  return K?.value?.value ?? a.value;
33
33
  },
@@ -41,45 +41,45 @@ const nl = (e, d, y) => {
41
41
  a.value = e.selected, v.value = e.selected;
42
42
  }
43
43
  );
44
- 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
+ const ve = Le(), x = r(null), m = r(null), z = r(null), R = r(null), W = r(null), D = r(null), fe = r(), J = r(null), Q = r(null), Y = r(null), ge = 8, ye = c(() => D.value ? D.value.getBoundingClientRect().height + ge + e.distance : 0), C = r(!1), h = r([]), T = r(-1), O = r(""), v = r(e.selected || []), Z = () => D.value?.focus(), [S, he, Oe] = ke({
45
45
  disabled: e.disabled,
46
46
  initialValue: e.defaultOpen
47
47
  });
48
48
  b(
49
49
  () => e.disabled,
50
50
  (l) => {
51
- l !== void 0 && he(l);
51
+ l !== void 0 && Oe(l);
52
52
  }
53
53
  );
54
54
  const F = (l) => {
55
- Oe.value = ye(l);
56
- }, Oe = c({
55
+ Se.value = he(l);
56
+ }, Se = c({
57
57
  get() {
58
58
  return e.isOpen;
59
59
  },
60
60
  set(l) {
61
61
  d("update:isOpen", l);
62
62
  }
63
- }), Se = c(() => o.value.length - 1), g = Xe(0, 0, Se), p = c(() => n.value ? e.displayValue(n.value) : ""), me = (l) => {
63
+ }), me = c(() => o.value.length - 1), g = $e(0, 0, me), p = c(() => n.value ? e.displayValue(n.value) : ""), Ae = (l) => {
64
64
  if (!l.value.length && !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix)
65
65
  return e.placeholder;
66
66
  const t = !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix ? `${l.value.length} selected` : `${e.multiOptionsPlaceholderPrefix ?? ""}${l.value.length ?? "0"}${e.multiOptionsPlaceholderSuffix ?? ""}`;
67
67
  return l.value.length == 1 && e.displayValue ? e.displayValue(l.value[0]) : t;
68
- }, Ae = c(() => {
68
+ }, be = c(() => {
69
69
  if (!e.multi)
70
70
  return n.value ? e.displayValue(n.value) : e.placeholder;
71
71
  if (Array.isArray(a.value))
72
- return me(a);
72
+ return Ae(a);
73
73
  }), E = c(() => {
74
74
  if (Array.isArray(a.value))
75
75
  return e.groupedOptions ? $(o, a) : a.value.length === o.value.length;
76
- }), be = c(() => !e.multi || !Array.isArray(a.value) ? !1 : e.groupedOptions ? re(
76
+ }), Te = c(() => !e.multi || !Array.isArray(a.value) ? !1 : e.groupedOptions ? oe(
77
77
  o,
78
78
  a
79
79
  ) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
80
80
  O.value = l;
81
- }, M = c(() => e.groupedOptions ? q(e.options) : e.options), Te = c(() => {
82
- if (oe(
81
+ }, M = c(() => e.groupedOptions ? q(e.options) : e.options), Pe = c(() => {
82
+ if (ce(
83
83
  M,
84
84
  v
85
85
  ))
@@ -97,20 +97,20 @@ const nl = (e, d, y) => {
97
97
  const t = e.groupedOptions ? H(l.notSelected) : l.notSelected;
98
98
  return [].concat(l.selected, t);
99
99
  }), o = c(() => {
100
- const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Te.value : M.value;
100
+ const l = Array.isArray(v.value) && e.multi && y.VERSION === 4 && !B ? Pe.value : M.value;
101
101
  if (e.onSearch) {
102
102
  const t = l.filter((i) => e.groupedOptions && X(i) ? i : e.onSearch(i, O.value));
103
103
  return e.groupedOptions ? H(t) : t;
104
104
  } else
105
105
  return l;
106
- }), Pe = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === w.Multi), le = c(
107
- () => Pe.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
106
+ }), Ie = c(() => h.value[0]?.hasSubtitle), ee = c(() => s.mode === w.Multi), le = c(
107
+ () => Ie.value ? y.MULTILINE_LIST_HEIGHT : y.LIST_HEIGHT
108
108
  ), {
109
109
  list: V,
110
110
  containerProps: k,
111
- wrapperProps: Ie,
111
+ wrapperProps: we,
112
112
  scrollTo: P
113
- } = He(o, {
113
+ } = qe(o, {
114
114
  itemHeight: le.value,
115
115
  overscan: e.disableVirtualScroll ? 1 / 0 : 2
116
116
  });
@@ -152,14 +152,14 @@ const nl = (e, d, y) => {
152
152
  }
153
153
  Z();
154
154
  });
155
- const we = () => {
155
+ const xe = () => {
156
156
  if (E.value) {
157
157
  a.value = [];
158
158
  return;
159
159
  }
160
160
  if (Array.isArray(a.value)) {
161
161
  if (e.groupedOptions)
162
- ie(o, a);
162
+ re(o, a);
163
163
  else {
164
164
  if (a.value.length === o.value.length) {
165
165
  a.value = [];
@@ -169,9 +169,9 @@ const nl = (e, d, y) => {
169
169
  }
170
170
  d("selectAll");
171
171
  }
172
- }, xe = () => {
173
- we(), y.VERSION !== 4 && (n.value = a.value);
174
- }, De = (l = !0) => {
172
+ }, De = () => {
173
+ xe(), y.VERSION !== 4 && (n.value = a.value);
174
+ }, Me = (l = !0) => {
175
175
  a.value = [], l ? (n.value = [], v.value = [], d("clear")) : e.dynamicFilterMode || d("clear");
176
176
  }, G = (l, t) => {
177
177
  if (l = I(l), y.VERSION === 4 ? l[e.disabledOptionKey] : h.value[t]?.disabled)
@@ -180,23 +180,23 @@ const nl = (e, d, y) => {
180
180
  e.keepOpen || A(!1), s.goToOption(
181
181
  0
182
182
  /* None */
183
- ), n.value = l, _(""), Z(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), te();
183
+ ), n.value = l, _(""), Z(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), ae();
184
184
  return;
185
185
  }
186
186
  if (!Array.isArray(a.value))
187
187
  return;
188
188
  m.value?.focus();
189
189
  const f = I(a.value);
190
- if (ne(f, l) || e.comparingKey && f.findIndex(
190
+ if (ue(f, l) || e.comparingKey && f.findIndex(
191
191
  (u) => u[e.comparingKey] === l[e.comparingKey]
192
192
  ) > -1) {
193
- a.value = f.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !Be(u, l));
193
+ a.value = f.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !He(u, l));
194
194
  return;
195
195
  } else {
196
196
  a.value = [...f, l];
197
197
  return;
198
198
  }
199
- }, Me = (l) => h.value[l]?.disabled, s = {
199
+ }, Ce = (l) => h.value[l]?.disabled, s = {
200
200
  activeIndex: g,
201
201
  options: h,
202
202
  selectedOption: n,
@@ -204,7 +204,7 @@ const nl = (e, d, y) => {
204
204
  activeOption: R,
205
205
  listRef: x,
206
206
  clearable: e.clearable,
207
- type: de.input ? U.Search : U.Dropdown,
207
+ type: ve.input ? U.Search : U.Dropdown,
208
208
  mode: e.multi ? w.Multi : w.Single,
209
209
  query: O,
210
210
  selectedValue: p,
@@ -231,7 +231,7 @@ const nl = (e, d, y) => {
231
231
  R.value = o.value[t], g.value = t;
232
232
  return;
233
233
  }
234
- if ((l === 1 || l === 10) && (t = t + 1), (l === -1 || l === -10) && (t = t + -1), !!Me(g.value)) {
234
+ if ((l === 1 || l === 10) && (t = t + 1), (l === -1 || l === -10) && (t = t + -1), !!Ce(g.value)) {
235
235
  R.value = o.value[t], g.value = t;
236
236
  return;
237
237
  }
@@ -247,10 +247,10 @@ const nl = (e, d, y) => {
247
247
  h.value = h.value.filter((t) => t.id !== l);
248
248
  }
249
249
  };
250
- Le($e, s), ue(
250
+ Ue(je, s), ie(
251
251
  x,
252
252
  () => {
253
- S.value && ae();
253
+ S.value && ne();
254
254
  },
255
255
  {
256
256
  ignore: [
@@ -263,22 +263,26 @@ const nl = (e, d, y) => {
263
263
  ]
264
264
  }
265
265
  );
266
- const Ce = () => {
266
+ const Ne = () => {
267
267
  m.value && (m.value.value = s.query.value = "");
268
- };
269
- Ue(async () => {
270
- e.autoFocus && (await N(), setTimeout(() => {
271
- z.value.focus();
272
- })), s.goToOption(0), e.multi && !B && (e.groupedOptions ? C.value = $(
268
+ }, te = () => {
269
+ e.multi && !B && (e.groupedOptions ? C.value = $(
273
270
  o,
274
271
  a
275
272
  ) : C.value = e.options.length === e.selected.length);
273
+ };
274
+ Be(async () => {
275
+ e.autoFocus && (await N(), setTimeout(() => {
276
+ z.value.focus();
277
+ })), s.goToOption(0), te();
278
+ }), b([() => e.options, () => e.selected], () => {
279
+ te();
276
280
  });
277
- const te = () => {
278
- 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();
279
- }, ae = () => {
281
+ const ae = () => {
282
+ e.multi && (n.value = a.value, Array.isArray(n.value) && (v.value = I(n.value).slice(), C.value = e.groupedOptions ? se(e.options) === n.value.length : e.options.length === n.value.length)), d("apply", n.value), d("allSelectedChanged", E.value), A(!1), Ne();
283
+ }, ne = () => {
280
284
  ee.value && Array.isArray(v.value) && (n.value = I(v.value).slice()), O.value = "", A(!1);
281
- }, Ne = (l) => {
285
+ }, Ke = (l) => {
282
286
  if (!e.disableKeyboardEvents)
283
287
  switch (l.key) {
284
288
  case "Space":
@@ -287,7 +291,7 @@ const nl = (e, d, y) => {
287
291
  case "ArrowDown":
288
292
  A(!0), l.preventDefault();
289
293
  }
290
- }, Ke = (l) => {
294
+ }, Re = (l) => {
291
295
  if (!e.disableKeyboardEvents)
292
296
  switch (l.key) {
293
297
  case "ArrowUp": {
@@ -331,19 +335,19 @@ const nl = (e, d, y) => {
331
335
  break;
332
336
  }
333
337
  }
334
- }, Re = c(() => {
338
+ }, Ee = c(() => {
335
339
  if (e.loading)
336
340
  return 8.5;
337
- const l = e.loadMoreLoading && y.MAX_NUMBER_OF_OPTIONS || e.customNumberOfDisplayedOptions || V.value.reduce((L, Ee) => {
338
- const _e = e.overrideOptionCountCalculation ? e.overrideOptionCountCalculation(Ee.data) : 1;
339
- return L + _e;
341
+ const l = e.loadMoreLoading && y.MAX_NUMBER_OF_OPTIONS || e.customNumberOfDisplayedOptions || V.value.reduce((L, _e) => {
342
+ const Ve = e.overrideOptionCountCalculation ? e.overrideOptionCountCalculation(_e.data) : 1;
343
+ return L + Ve;
340
344
  }, 0), t = e.multi && e.showSelectAll && !O.value ? 1 : 0, i = l > y.MAX_NUMBER_OF_OPTIONS, f = l + t;
341
345
  let u = i ? y.MAX_NUMBER_OF_OPTIONS + 0.1 : f;
342
- 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(
346
+ 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), ze(
343
347
  u * le.value + y.PADDING_PX
344
348
  );
345
349
  });
346
- return qe(
350
+ return Xe(
347
351
  k.ref,
348
352
  () => {
349
353
  !e.loadMoreLoading && e.infiniteLoading && d("loadMore");
@@ -352,45 +356,45 @@ const nl = (e, d, y) => {
352
356
  ), b(a, () => {
353
357
  d("unsavedSelectionUpdate", a.value);
354
358
  }), {
355
- onKeydown: Ke,
356
- location: ge,
359
+ onKeydown: Re,
360
+ location: ye,
357
361
  open: S,
358
362
  toggleMenu: A,
359
- onButtonKeydown: Ne,
360
- displayedValue: Ae,
363
+ onButtonKeydown: Ke,
364
+ displayedValue: be,
361
365
  labelRef: W,
362
366
  query: O,
363
367
  containerProps: k,
364
- calculateTableHeight: Re,
365
- wrapperProps: Ie,
368
+ calculateTableHeight: Ee,
369
+ wrapperProps: we,
366
370
  filteredOptions: o,
367
371
  allSelected: E,
368
372
  allSelectedApplied: C,
369
- isIndeterminate: be,
370
- onSelectAll: xe,
373
+ isIndeterminate: Te,
374
+ onSelectAll: De,
371
375
  virtualOptions: V,
372
- isSelected: se,
376
+ isSelected: de,
373
377
  selectedOption: n,
374
378
  selectedOptionPrevious: v,
375
379
  selectedValue: p,
376
380
  onSelect: G,
377
381
  activeIndex: g,
378
- onCancel: ae,
379
- onApply: te,
382
+ onCancel: ne,
383
+ onApply: ae,
380
384
  scrollTo: P,
381
- onClickOutside: ue,
385
+ onClickOutside: ie,
382
386
  listRef: x,
383
387
  buttonRef: D,
384
388
  apply: J,
385
389
  cancel: Q,
386
390
  el: z,
387
- triggerRef: ve,
391
+ triggerRef: fe,
388
392
  clearAll: Y,
389
- onClearAllSelections: De,
393
+ onClearAllSelections: Me,
390
394
  isGroup: X,
391
395
  flattenAndMarkGroupOptions: q
392
396
  };
393
397
  };
394
398
  export {
395
- nl as dropdownCommon
399
+ ul as dropdownCommon
396
400
  };
@@ -66,6 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
66
66
  hideEndIcon: boolean;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
68
68
  default?(_: {}): any;
69
+ "after-label"?(_: {}): any;
69
70
  }>;
70
71
  export default _default;
71
72
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonDropdownTrigger.vue2.js";
2
- /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css"; //*');
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0123c361"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-adb49e50"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css"; import { defineComponent as p, openBlock as m, createBlock as u, unref as a, normalizeClass as c, withCtx as l, renderSlot as f, createElementVNode as y, normalizeStyle as h, createVNode as b, createTextVNode as T, toDisplayString as B } from "vue";
1
+ import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css"; import { defineComponent as m, openBlock as u, createBlock as f, unref as l, normalizeClass as c, withCtx as e, renderSlot as n, createElementVNode as y, normalizeStyle as b, createVNode as h, createTextVNode as T, toDisplayString as B } from "vue";
2
2
  import g 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
- import w from "../../typography/v4/Typography.vue.js";
7
- const n = 40, E = /* @__PURE__ */ p({
6
+ import v from "../../typography/v4/Typography.vue.js";
7
+ const i = 40, E = /* @__PURE__ */ m({
8
8
  __name: "ButtonDropdownTrigger",
9
9
  props: {
10
10
  label: {},
@@ -21,9 +21,9 @@ const n = 40, E = /* @__PURE__ */ p({
21
21
  tooltipPlacement: { default: "top" }
22
22
  },
23
23
  emits: ["click"],
24
- setup(i, { emit: r }) {
25
- const e = i, d = e.maxWidth > n ? { maxWidth: `${e.maxWidth - n}px` } : {}, s = r;
26
- return (t, o) => (m(), u(a(g), {
24
+ setup(r, { emit: d }) {
25
+ const o = r, s = o.maxWidth > i ? { maxWidth: `${o.maxWidth - i}px` } : {}, p = d;
26
+ return (t, a) => (u(), f(l(g), {
27
27
  class: c(["button-trigger", { open: t.open }]),
28
28
  disabled: t.disabled,
29
29
  color: "default",
@@ -34,15 +34,18 @@ const n = 40, E = /* @__PURE__ */ p({
34
34
  "end-icon-name": t.hideEndIcon ? null : "caret-down",
35
35
  content: t.label,
36
36
  "test-id": t.testId,
37
- onClick: o[0] || (o[0] = (I) => s("click"))
37
+ onClick: a[0] || (a[0] = (w) => p("click"))
38
38
  }, {
39
- default: l(() => [
40
- f(t.$slots, "default", {}, () => [
39
+ "after-label": e(() => [
40
+ n(t.$slots, "after-label", {}, void 0, !0)
41
+ ]),
42
+ default: e(() => [
43
+ n(t.$slots, "default", {}, () => [
41
44
  y("div", {
42
- style: h(a(d)),
45
+ style: b(l(s)),
43
46
  class: "label-wrapper"
44
47
  }, [
45
- b(w, {
48
+ h(v, {
46
49
  variant: "button",
47
50
  class: "label-text",
48
51
  "is-truncated": "",
@@ -50,7 +53,7 @@ const n = 40, E = /* @__PURE__ */ p({
50
53
  "tooltip-text": t.label,
51
54
  "tooltip-placement": t.tooltipPlacement
52
55
  }, {
53
- default: l(() => [
56
+ default: e(() => [
54
57
  T(B(t.label), 1)
55
58
  ]),
56
59
  _: 1
@@ -1,7 +1,7 @@
1
1
  import o from "./ConditionalDropdown.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css"; //*');
4
- const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-683b8a75"]]);
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css"; //*');
4
+ const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f5204c04"]]);
5
5
  export {
6
6
  n as default
7
7
  };