@ironsource/shared-ui 2.1.11-test.7 → 2.1.11-test.9

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 (40) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +1 -0
  2. package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +1 -0
  4. package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +1 -0
  5. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
  6. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  7. package/components/chart/SettingsHeader.vue2.js +3 -2
  8. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  9. package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
  10. package/components/dropdown/common/Dropdown.common.js +127 -127
  11. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  12. package/components/dropdown/v3/index.d.ts +12 -12
  13. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  14. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +66 -44
  15. package/components/dropdown/v4/ConditionalDroprown.vue.d.ts +68 -0
  16. package/components/dropdown/v4/ConditionalDroprown.vue.js +7 -0
  17. package/components/dropdown/v4/ConditionalDroprown.vue2.js +157 -0
  18. package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -5
  19. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  20. package/components/dropdown/v4/DropdownV4.vue2.js +85 -78
  21. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  22. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  23. package/components/dropdown/v4/OptionV4.vue2.js +119 -93
  24. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  25. package/components/dropdown/v4/TreeDropdown.vue2.js +105 -95
  26. package/components/dropdown/v4/index.d.ts +160 -27
  27. package/components/dropdown/v4/index.js +6 -3
  28. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  29. package/components/popover/v4/PopoverV4.vue.js +3 -2
  30. package/components/popover/v4/PopoverV4.vue2.js +1 -1
  31. package/components/table/common/Table.common.js +26 -28
  32. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  33. package/index.d.ts +316 -51
  34. package/index.js +1 -1
  35. package/mocks/options.d.ts +19 -4
  36. package/package.json +2 -1
  37. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  38. package/DropdownV4.vue_vue_type_style_index_0_scoped_562f0b72_lang.css +0 -1
  39. package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +0 -1
  40. package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +0 -1
@@ -1,83 +1,83 @@
1
1
  import { useToggle as Ve } from "../../../composables/useToggle.js";
2
- import { inject as ke, ref as i, computed as r, watch as A, useSlots as _e, toRaw as P, nextTick as N, provide as Ge, onMounted as He } from "vue";
3
- import { isObjectInArray as ee } from "../../../utils/array.js";
2
+ import { inject as ke, ref as i, computed as o, watch as b, useSlots as _e, toRaw as P, nextTick as C, provide as Ge, onMounted as He } from "vue";
3
+ import { isObjectInArray as le } from "../../../utils/array.js";
4
4
  import { objectsEqual as Be } from "../../../utils/object.js";
5
- import { useClamp as Le, useVirtualList as Ue, onClickOutside as le } from "@vueuse/core";
5
+ import { useClamp as Le, useVirtualList as Ue, onClickOutside as te } from "@vueuse/core";
6
6
  import { Mode as T, Type as _, DropdownContext as qe } from "./DropdownContext.js";
7
7
  import { pxToRem as $e } from "../../../utils/style.js";
8
8
  import { useEditableContext as je } from "../../table-cells/common/EditableContext.js";
9
9
  import { useGroupedOptions as Xe } from "./useGroupedOptions.js";
10
- const ll = (l, b, h) => {
11
- const te = ke("isTreeDropdown", !1), {
10
+ const ll = (l, A, O) => {
11
+ const ae = ke("isTreeDropdown", !1), {
12
12
  sortOutGroups: G,
13
- flattenAndMarkGroupOptions: ae,
13
+ flattenAndMarkGroupOptions: ne,
14
14
  isGroup: H,
15
- selectAllWithGroups: ne,
16
- isIndeterminateGrouped: ue,
17
- allSelectedGrouped: ie,
18
- areAllPreviousSelected: re
19
- } = Xe(l), oe = (e, t) => l.multi ? l.comparingKey ? e.findIndex(
15
+ selectAllWithGroups: ue,
16
+ isIndeterminateGrouped: ie,
17
+ allSelectedGrouped: re,
18
+ areAllPreviousSelected: oe
19
+ } = Xe(l), ce = (e, t) => l.multi && Array.isArray(e) ? l.comparingKey ? e?.findIndex(
20
20
  (u) => u[l.comparingKey] === t[l.comparingKey]
21
- ) > -1 : ee(e, t) : l.comparingKey ? e[l.comparingKey] === t[l.comparingKey] : P(e) === t;
21
+ ) > -1 : le(e, t) : l.comparingKey ? e?.[l.comparingKey] === t[l.comparingKey] : P(e) === t;
22
22
  let B;
23
23
  ((e) => {
24
24
  e[e.None = 0] = "None", e[e.Next = 1] = "Next", e[e.Previous = -1] = "Previous", e[e.NextPage = 10] = "NextPage", e[e.PrevPage = -10] = "PrevPage";
25
25
  })(B || (B = {}));
26
26
  const a = i(
27
27
  l.selected
28
- ), C = je(), n = r({
28
+ ), N = je(), n = o({
29
29
  get() {
30
- return C?.value?.value ?? a.value;
30
+ return N?.value?.value ?? a.value;
31
31
  },
32
32
  set(e) {
33
- C.onChange?.(e), C.onClose?.(), b("update:selected", e);
33
+ N.onChange?.(e), N.onClose?.(), A("update:selected", e);
34
34
  }
35
35
  });
36
- A(
36
+ b(
37
37
  () => l.selected,
38
38
  () => {
39
39
  a.value = l.selected, d.value = l.selected;
40
40
  }
41
41
  );
42
- const ce = _e(), w = i(null), O = i(null), L = i(null), R = i(null), U = i(null), I = i(null), se = i(), q = i(null), $ = i(null), j = i(null), de = 8, ve = r(() => I.value ? I.value.getBoundingClientRect().height + de + l.distance : 0), X = i(!1), f = i([]), x = i(-1), m = i(""), d = i(l.selected || []), z = () => I.value?.focus(), [g, fe, ge] = Ve({
42
+ const se = _e(), w = i(null), m = i(null), L = i(null), R = i(null), U = i(null), I = i(null), de = i(), q = i(null), $ = i(null), j = i(null), ve = 8, fe = o(() => I.value ? I.value.getBoundingClientRect().height + ve + l.distance : 0), X = i(!1), f = i([]), x = i(-1), g = i(""), d = i(l.selected || []), z = () => I.value?.focus(), [y, ge, ye] = Ve({
43
43
  disabled: l.disabled,
44
44
  initialValue: l.defaultOpen
45
45
  });
46
- A(
46
+ b(
47
47
  () => l.disabled,
48
48
  (e) => {
49
- e !== void 0 && ge(e);
49
+ e !== void 0 && ye(e);
50
50
  }
51
51
  );
52
52
  const W = (e) => {
53
- ye.value = fe(e);
54
- }, ye = r({
53
+ he.value = ge(e);
54
+ }, he = o({
55
55
  get() {
56
56
  return l.isOpen;
57
57
  },
58
58
  set(e) {
59
- b("update:isOpen", e);
59
+ A("update:isOpen", e);
60
60
  }
61
- }), he = r(() => o.value.length - 1), v = Le(0, 0, he), J = r(() => n.value ? l.displayValue(n.value) : ""), Oe = (e) => {
61
+ }), Oe = o(() => c.value.length - 1), v = Le(0, 0, Oe), J = o(() => n.value ? l.displayValue(n.value) : ""), me = (e) => {
62
62
  if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
63
63
  return l.placeholder;
64
64
  const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
65
65
  return e.value.length == 1 && l.displayValue ? l.displayValue(e.value[0]) : t;
66
- }, me = r(() => {
66
+ }, Se = o(() => {
67
67
  if (!l.multi)
68
68
  return n.value ? l.displayValue(n.value) : l.placeholder;
69
69
  if (Array.isArray(a.value))
70
- return Oe(a);
71
- }), E = r(() => {
70
+ return me(a);
71
+ }), E = o(() => {
72
72
  if (Array.isArray(a.value))
73
- return l.groupedOptions ? ie(o, a) : a.value.length === o.value.length;
74
- }), Se = r(() => !l.multi || !Array.isArray(a.value) ? !1 : l.groupedOptions ? ue(
75
- o,
73
+ return l.groupedOptions ? re(c, a) : a.value.length === c.value.length;
74
+ }), Ae = o(() => !l.multi || !Array.isArray(a.value) ? !1 : l.groupedOptions ? ie(
75
+ c,
76
76
  a
77
- ) : a.value.length > 0 && a.value.length < o.value.length), M = (e) => {
78
- m.value = e;
79
- }, D = r(() => l.groupedOptions ? ae(l.options) : l.options), be = r(() => {
80
- if (re(
77
+ ) : a.value.length > 0 && a.value.length < c.value.length), M = (e) => {
78
+ g.value = e;
79
+ }, D = o(() => l.groupedOptions ? ne(l.options) : l.options), be = o(() => {
80
+ if (oe(
81
81
  D,
82
82
  d
83
83
  ))
@@ -87,107 +87,107 @@ const ll = (l, b, h) => {
87
87
  notSelected: []
88
88
  };
89
89
  P(D).value.forEach((u) => {
90
- const s = (l.comparingKey ? d.value.findIndex(
90
+ const r = (l.comparingKey ? d.value.findIndex(
91
91
  (k) => k[l.comparingKey] === u[l.comparingKey]
92
92
  ) > -1 : d.value.includes(u)) ? "selected" : "notSelected";
93
- e[s].push(u);
93
+ e[r].push(u);
94
94
  });
95
95
  const t = l.groupedOptions ? G(e.notSelected) : e.notSelected;
96
96
  return [].concat(e.selected, t);
97
- }), o = r(() => {
98
- const e = Array.isArray(d.value) && l.multi && h.VERSION === 4 && !te ? be.value : D.value;
97
+ }), c = o(() => {
98
+ const e = Array.isArray(d.value) && l.multi && O.VERSION === 4 && !ae ? be.value : D.value;
99
99
  if (l.onSearch) {
100
- const t = e.filter((u) => l.groupedOptions && H(u) ? u : l.onSearch(u, m.value));
100
+ const t = e.filter((u) => l.groupedOptions && H(u) ? u : l.onSearch(u, g.value));
101
101
  return l.groupedOptions ? G(t) : t;
102
102
  } else
103
103
  return e;
104
- }), Ae = r(() => f.value[0]?.hasSubtitle), Q = r(() => c.mode === T.Multi), Y = r(
105
- () => Ae.value ? h.MULTILINE_LIST_HEIGHT : h.LIST_HEIGHT
104
+ }), Pe = o(() => f.value[0]?.hasSubtitle), Q = o(() => s.mode === T.Multi), Y = o(
105
+ () => Pe.value ? O.MULTILINE_LIST_HEIGHT : O.LIST_HEIGHT
106
106
  ), {
107
107
  list: Z,
108
108
  containerProps: F,
109
- wrapperProps: Pe,
109
+ wrapperProps: Te,
110
110
  scrollTo: K
111
- } = Ue(o, {
111
+ } = Ue(c, {
112
112
  itemHeight: Y.value,
113
113
  overscan: l.disableVirtualScroll ? 1 / 0 : 2
114
114
  });
115
- A(
115
+ b(
116
116
  () => l.isOpen,
117
117
  (e) => {
118
118
  W(e);
119
119
  }
120
- ), A([x], async () => {
121
- await N();
122
- }), A(
123
- [g, v, x],
120
+ ), b([x], async () => {
121
+ await C();
122
+ }), b(
123
+ [y, v, x],
124
124
  async ([e], [t]) => {
125
- g.value && (await N(), x.value !== -1 && e !== t && setTimeout(() => {
126
- l.multi && h.VERSION === 4 || K(x.value);
125
+ y.value && (await C(), x.value !== -1 && e !== t && setTimeout(() => {
126
+ l.multi && O.VERSION === 4 || K(x.value);
127
127
  }), v.value && setTimeout(() => {
128
128
  K(v.value);
129
129
  }));
130
130
  }
131
- ), A(m, () => {
132
- b("onsearch", m.value), K(0);
131
+ ), b(g, () => {
132
+ A("onsearch", g.value), K(0);
133
133
  });
134
134
  const S = (e, t = !1) => {
135
- l.disabled || (W(e), N(() => {
136
- g.value && b("opened"), g.value || b("closed"), w.value && t && w.value.focus();
135
+ l.disabled || (W(e), C(() => {
136
+ y.value && A("opened"), y.value || A("closed"), w.value && t && w.value.focus();
137
137
  }));
138
138
  };
139
- A(g, (e) => {
139
+ b(y, (e) => {
140
140
  if (e) {
141
- m.value = "", Q.value && Array.isArray(n.value) && (d.value = P(n.value).slice());
141
+ g.value = "", Q.value && Array.isArray(n.value) && (d.value = P(n.value).slice());
142
142
  return;
143
143
  }
144
144
  z();
145
145
  });
146
- const Te = () => {
146
+ const we = () => {
147
147
  if (E.value) {
148
148
  a.value = [];
149
149
  return;
150
150
  }
151
151
  if (Array.isArray(a.value)) {
152
152
  if (l.groupedOptions)
153
- ne(o, a);
153
+ ue(c, a);
154
154
  else {
155
- if (a.value.length === o.value.length) {
155
+ if (a.value.length === c.value.length) {
156
156
  a.value = [];
157
157
  return;
158
158
  }
159
- a.value = o.value;
159
+ a.value = c.value;
160
160
  }
161
- b("selectAll");
161
+ A("selectAll");
162
162
  }
163
- }, we = () => {
164
- Te(), h.VERSION !== 4 && (n.value = a.value);
165
- }, Ie = (e = !0) => {
166
- a.value = [], e && (n.value = [], d.value = []), b("clear");
163
+ }, Ie = () => {
164
+ we(), O.VERSION !== 4 && (n.value = a.value);
165
+ }, xe = (e = !0) => {
166
+ a.value = [], e && (n.value = [], d.value = []), A("clear");
167
167
  }, V = (e, t) => {
168
- if (e = P(e), h.VERSION === 4 ? e[l.disabledOptionKey] : f.value[t]?.disabled)
168
+ if (e = P(e), O.VERSION === 4 ? e[l.disabledOptionKey] : f.value[t]?.disabled)
169
169
  return;
170
- if (x.value = t, c.mode !== T.Multi) {
171
- l.keepOpen || S(!1), c.goToOption(
170
+ if (x.value = t, !l.multi) {
171
+ l.keepOpen || S(!1), s.goToOption(
172
172
  0
173
173
  /* None */
174
- ), n.value = e, M(""), z(), c.type === _.Search && O.value && (O.value.value = l.displayValue(e));
174
+ ), n.value = e, M(""), z(), s.type === _.Search && m.value && (m.value.value = l.displayValue(e)), p();
175
175
  return;
176
176
  }
177
177
  if (!Array.isArray(a.value))
178
178
  return;
179
- O.value?.focus();
180
- const y = P(a.value);
181
- if (ee(y, e) || l.comparingKey && y.findIndex(
182
- (s) => s[l.comparingKey] === e[l.comparingKey]
179
+ m.value?.focus();
180
+ const h = P(a.value);
181
+ if (le(h, e) || l.comparingKey && h.findIndex(
182
+ (r) => r[l.comparingKey] === e[l.comparingKey]
183
183
  ) > -1) {
184
- a.value = y.filter((s) => l.comparingKey ? s[l.comparingKey] !== e[l.comparingKey] : !Be(s, e));
184
+ a.value = h.filter((r) => l.comparingKey ? r[l.comparingKey] !== e[l.comparingKey] : !Be(r, e));
185
185
  return;
186
186
  } else {
187
- a.value = [...y, e];
187
+ a.value = [...h, e];
188
188
  return;
189
189
  }
190
- }, xe = (e) => f.value[e]?.disabled, c = {
190
+ }, De = (e) => f.value[e]?.disabled, s = {
191
191
  activeIndex: v,
192
192
  options: f,
193
193
  selectedOption: n,
@@ -195,41 +195,41 @@ const ll = (l, b, h) => {
195
195
  activeOption: R,
196
196
  listRef: w,
197
197
  clearable: l.clearable,
198
- type: ce.input ? _.Search : _.Dropdown,
198
+ type: se.input ? _.Search : _.Dropdown,
199
199
  mode: l.multi ? T.Multi : T.Single,
200
- query: m,
200
+ query: g,
201
201
  selectedValue: J,
202
202
  toggle: S,
203
203
  disabled: l.disabled,
204
- open: g,
204
+ open: y,
205
205
  mandatory: l.mandatory,
206
206
  size: l.size,
207
207
  placeholder: l.placeholder,
208
208
  select: V,
209
209
  clearSelection: () => {
210
- M(""), n.value = c.mode === T.Single ? null : [], d.value = c.mode === T.Single ? null : [], O.value && (O.value.value = "");
210
+ M(""), n.value = s.mode === T.Single ? null : [], d.value = s.mode === T.Single ? null : [], m.value && (m.value.value = "");
211
211
  },
212
212
  search: M,
213
213
  goToOption: async (e) => {
214
- if (!g.value)
214
+ if (!y.value)
215
215
  return;
216
216
  let t = v.value + e;
217
217
  const u = f.value.filter(
218
- (s) => s.disabled
219
- ).length, y = o.value.length - u;
220
- for (t > y && (t = y + 1); ; ) {
218
+ (r) => r.disabled
219
+ ).length, h = c.value.length - u;
220
+ for (t > h && (t = h + 1); ; ) {
221
221
  if (!f.value[t]?.disabled) {
222
- R.value = o.value[t], v.value = t;
222
+ R.value = c.value[t], v.value = t;
223
223
  return;
224
224
  }
225
- if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!xe(v.value)) {
226
- R.value = o.value[t], v.value = t;
225
+ if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(v.value)) {
226
+ R.value = c.value[t], v.value = t;
227
227
  return;
228
228
  }
229
229
  }
230
230
  },
231
231
  registerInput: (e) => {
232
- O.value = e.value;
232
+ m.value = e.value;
233
233
  },
234
234
  registerOption: (e, t, u) => {
235
235
  f.value = [...f.value, { id: e, disabled: t, hasSubtitle: u }];
@@ -238,10 +238,10 @@ const ll = (l, b, h) => {
238
238
  f.value = f.value.filter((t) => t.id !== e);
239
239
  }
240
240
  };
241
- Ge(qe, c), le(
241
+ Ge(qe, s), te(
242
242
  w,
243
243
  () => {
244
- g.value && p();
244
+ y.value && ee();
245
245
  },
246
246
  {
247
247
  ignore: [
@@ -249,24 +249,24 @@ const ll = (l, b, h) => {
249
249
  q,
250
250
  $,
251
251
  j,
252
- O,
252
+ m,
253
253
  F.ref
254
254
  ]
255
255
  }
256
256
  );
257
- const De = () => {
258
- O.value && (O.value.value = c.query.value = "");
257
+ const Ke = () => {
258
+ m.value && (m.value.value = s.query.value = "");
259
259
  };
260
260
  He(async () => {
261
- l.autoFocus && (await N(), setTimeout(() => {
261
+ l.autoFocus && (await C(), setTimeout(() => {
262
262
  L.value.focus();
263
- })), c.goToOption(0);
263
+ })), s.goToOption(0);
264
264
  });
265
- const Ke = () => {
266
- X.value = E.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice()), b("apply", n.value), S(!1), De();
267
- }, p = () => {
268
- Q.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), m.value = "", S(!1);
269
- }, Ne = (e) => {
265
+ const p = () => {
266
+ l.multi && (X.value = E.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), A("apply", n.value), S(!1), Ke();
267
+ }, ee = () => {
268
+ Q.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), g.value = "", S(!1);
269
+ }, Ce = (e) => {
270
270
  if (!l.disableKeyboardEvents)
271
271
  switch (e.key) {
272
272
  case "Space":
@@ -275,18 +275,18 @@ const ll = (l, b, h) => {
275
275
  case "ArrowDown":
276
276
  S(!0), e.preventDefault();
277
277
  }
278
- }, Ce = (e) => {
278
+ }, Ne = (e) => {
279
279
  if (!l.disableKeyboardEvents)
280
280
  switch (e.key) {
281
281
  case "ArrowUp": {
282
- c.goToOption(
282
+ s.goToOption(
283
283
  -1
284
284
  /* Previous */
285
285
  ), e.preventDefault(), e.stopPropagation();
286
286
  break;
287
287
  }
288
288
  case "ArrowDown": {
289
- c.goToOption(
289
+ s.goToOption(
290
290
  1
291
291
  /* Next */
292
292
  ), e.preventDefault(), e.stopPropagation();
@@ -297,76 +297,76 @@ const ll = (l, b, h) => {
297
297
  break;
298
298
  }
299
299
  case "PageUp": {
300
- c.goToOption(
300
+ s.goToOption(
301
301
  10
302
302
  /* NextPage */
303
303
  ), e.preventDefault();
304
304
  break;
305
305
  }
306
306
  case "PageDown": {
307
- c.goToOption(
307
+ s.goToOption(
308
308
  -10
309
309
  /* PrevPage */
310
310
  ), e.preventDefault();
311
311
  break;
312
312
  }
313
313
  case "Enter": {
314
- if (!g.value) {
314
+ if (!y.value) {
315
315
  S(!0);
316
316
  return;
317
317
  }
318
- V(o.value[v.value], v.value), c.mode === T.Single && !l.keepOpen && S(!1), e.preventDefault();
318
+ V(c.value[v.value], v.value), s.mode === T.Single && !l.keepOpen && S(!1), e.preventDefault();
319
319
  break;
320
320
  }
321
321
  }
322
- }, Re = r(() => {
322
+ }, Re = o(() => {
323
323
  if (l.loading)
324
324
  return 8.5;
325
325
  const e = l.customNumberOfDisplayedOptions || Z.value.reduce((k, Ee) => {
326
326
  const Me = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Ee.data) : 1;
327
327
  return k + Me;
328
- }, 0), t = l.multi && l.showSelectAll && !m.value ? 1 : 0, u = e > h.MAX_NUMBER_OF_OPTIONS, y = e + t;
329
- let s = u ? h.MAX_NUMBER_OF_OPTIONS + 0.1 : y;
330
- return l.noResultsText && s === 0 && (s = s + 1), $e(
331
- s * Y.value + h.PADDING_PX
328
+ }, 0), t = l.multi && l.showSelectAll && !g.value ? 1 : 0, u = e > O.MAX_NUMBER_OF_OPTIONS, h = e + t;
329
+ let r = u ? O.MAX_NUMBER_OF_OPTIONS + 0.1 : h;
330
+ return l.noResultsText && r === 0 && (r = r + 1), l.withConditions && g.value && (r = r + 1), $e(
331
+ r * Y.value + O.PADDING_PX
332
332
  );
333
333
  });
334
334
  return {
335
- onKeydown: Ce,
336
- location: ve,
337
- open: g,
335
+ onKeydown: Ne,
336
+ location: fe,
337
+ open: y,
338
338
  toggleMenu: S,
339
- onButtonKeydown: Ne,
340
- displayedValue: me,
339
+ onButtonKeydown: Ce,
340
+ displayedValue: Se,
341
341
  labelRef: U,
342
- query: m,
342
+ query: g,
343
343
  containerProps: F,
344
344
  calculateTableHeight: Re,
345
- wrapperProps: Pe,
346
- filteredOptions: o,
345
+ wrapperProps: Te,
346
+ filteredOptions: c,
347
347
  allSelected: E,
348
348
  allSelectedApplied: X,
349
- isIndeterminate: Se,
350
- onSelectAll: we,
349
+ isIndeterminate: Ae,
350
+ onSelectAll: Ie,
351
351
  virtualOptions: Z,
352
- isSelected: oe,
352
+ isSelected: ce,
353
353
  selectedOption: n,
354
354
  selectedOptionPrevious: d,
355
355
  selectedValue: J,
356
356
  onSelect: V,
357
357
  activeIndex: v,
358
- onCancel: p,
359
- onApply: Ke,
358
+ onCancel: ee,
359
+ onApply: p,
360
360
  scrollTo: K,
361
- onClickOutside: le,
361
+ onClickOutside: te,
362
362
  listRef: w,
363
363
  buttonRef: I,
364
364
  apply: q,
365
365
  cancel: $,
366
366
  el: L,
367
- triggerRef: se,
367
+ triggerRef: de,
368
368
  clearAll: j,
369
- onClearAllSelections: Ie,
369
+ onClearAllSelections: xe,
370
370
  isGroup: H
371
371
  };
372
372
  };
@@ -198,8 +198,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
198
198
  inlineSearch: boolean;
199
199
  onSearch: (option: any, term: string) => boolean;
200
200
  noResultsText: string;
201
- helperText: string;
202
201
  searchPlaceholder: string;
202
+ helperText: string;
203
203
  showButtonOnOpen: boolean;
204
204
  clearable: boolean;
205
205
  multiOptionsPlaceholderPrefix: string;
@@ -34,8 +34,8 @@ declare const DropdownTypes: () => (({
34
34
  inlineSearch: boolean;
35
35
  onSearch: (option: any, term: string) => boolean;
36
36
  noResultsText: string;
37
- helperText: string;
38
37
  searchPlaceholder: string;
38
+ helperText: string;
39
39
  showButtonOnOpen: boolean;
40
40
  clearable: boolean;
41
41
  multiOptionsPlaceholderPrefix: string;
@@ -167,11 +167,11 @@ declare const DropdownTypes: () => (({
167
167
  type: import("vue").PropType<(option: unknown) => string>;
168
168
  required: true;
169
169
  };
170
- helperText: {
170
+ searchPlaceholder: {
171
171
  type: import("vue").PropType<string>;
172
172
  default: string;
173
173
  };
174
- searchPlaceholder: {
174
+ helperText: {
175
175
  type: import("vue").PropType<string>;
176
176
  default: string;
177
177
  };
@@ -203,7 +203,7 @@ declare const DropdownTypes: () => (({
203
203
  "onUpdate:isOpen"?: (value: unknown) => any;
204
204
  onOpened?: () => any;
205
205
  onClosed?: () => any;
206
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "helperText" | "searchPlaceholder" | "showButtonOnOpen" | "clearable" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
206
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "clearable" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
207
207
  $attrs: {
208
208
  [x: string]: unknown;
209
209
  };
@@ -343,11 +343,11 @@ declare const DropdownTypes: () => (({
343
343
  type: import("vue").PropType<(option: unknown) => string>;
344
344
  required: true;
345
345
  };
346
- helperText: {
346
+ searchPlaceholder: {
347
347
  type: import("vue").PropType<string>;
348
348
  default: string;
349
349
  };
350
- searchPlaceholder: {
350
+ helperText: {
351
351
  type: import("vue").PropType<string>;
352
352
  default: string;
353
353
  };
@@ -418,8 +418,8 @@ declare const DropdownTypes: () => (({
418
418
  inlineSearch: boolean;
419
419
  onSearch: (option: any, term: string) => boolean;
420
420
  noResultsText: string;
421
- helperText: string;
422
421
  searchPlaceholder: string;
422
+ helperText: string;
423
423
  showButtonOnOpen: boolean;
424
424
  clearable: boolean;
425
425
  multiOptionsPlaceholderPrefix: string;
@@ -571,11 +571,11 @@ declare const DropdownTypes: () => (({
571
571
  type: import("vue").PropType<(option: unknown) => string>;
572
572
  required: true;
573
573
  };
574
- helperText: {
574
+ searchPlaceholder: {
575
575
  type: import("vue").PropType<string>;
576
576
  default: string;
577
577
  };
578
- searchPlaceholder: {
578
+ helperText: {
579
579
  type: import("vue").PropType<string>;
580
580
  default: string;
581
581
  };
@@ -740,11 +740,11 @@ declare const DropdownTypes: () => (({
740
740
  type: import("vue").PropType<(option: unknown) => string>;
741
741
  required: true;
742
742
  };
743
- helperText: {
743
+ searchPlaceholder: {
744
744
  type: import("vue").PropType<string>;
745
745
  default: string;
746
746
  };
747
- searchPlaceholder: {
747
+ helperText: {
748
748
  type: import("vue").PropType<string>;
749
749
  default: string;
750
750
  };
@@ -815,8 +815,8 @@ declare const DropdownTypes: () => (({
815
815
  inlineSearch: boolean;
816
816
  onSearch: (option: any, term: string) => boolean;
817
817
  noResultsText: string;
818
- helperText: string;
819
818
  searchPlaceholder: string;
819
+ helperText: string;
820
820
  showButtonOnOpen: boolean;
821
821
  clearable: boolean;
822
822
  multiOptionsPlaceholderPrefix: string;
@@ -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_49bd7193_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-49bd7193"]]);
3
+ // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ba28c717"]]);
5
5
  export {
6
6
  s as default
7
7
  };