@ironsource/shared-ui 2.1.11-rc.47 → 2.1.11-rc.48

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 (31) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  2. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
  3. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  5. package/components/dropdown/common/Dropdown.common.js +36 -34
  6. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  7. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +55 -40
  8. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +20 -0
  9. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  10. package/components/dropdown/v4/ConditionalDropdown.vue2.js +136 -97
  11. package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -0
  12. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  13. package/components/dropdown/v4/DropdownV4.vue2.js +7 -7
  14. package/components/dropdown/v4/index.d.ts +43 -1
  15. package/components/table/common/Table.common.d.ts +1 -1
  16. package/components/table/common/Table.common.js +78 -70
  17. package/components/table/common/consts.d.ts +4 -0
  18. package/components/table/common/consts.js +7 -0
  19. package/components/table/v4/DataGrid.vue.d.ts +10 -5
  20. package/components/table/v4/DataGrid.vue.js +3 -3
  21. package/components/table/v4/DataGrid.vue2.js +173 -171
  22. package/components/table/v4/index.d.ts +39 -20
  23. package/index.d.ts +164 -42
  24. package/index.js +1 -1
  25. package/package.json +1 -1
  26. package/testids/index.d.ts +1 -0
  27. package/testids/index.js +13 -13
  28. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +0 -1
  29. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +0 -1
  30. package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +0 -1
  31. package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +0 -1
@@ -0,0 +1 @@
1
+ .chip-trigger[data-v-e43ac1c9]{border:1px solid var(--default-outlined-border);padding:.3125rem .3125rem .3125rem .4375rem;border-radius:100px;cursor:pointer;user-select:none;display:inline-flex;max-width:250px}.chip-trigger[data-v-e43ac1c9]:hover{border-color:var(--action-active);background:var(--action-selected)}.chip-trigger.active[data-v-e43ac1c9]{border:none;background:var(--primary-light);padding:.375rem .375rem .375rem .5rem}.chip-trigger.active .chip-trigger--content[data-v-e43ac1c9]{color:var(--primary-contrast-text)}.chip-trigger.active[data-v-e43ac1c9]:hover{border:.0625rem solid var(--primary-main-50-p);padding:.3125rem .3125rem .3125rem .4375rem}.chip-trigger.open[data-v-e43ac1c9]{border:.125rem solid var(--action-active);padding:.25rem .25rem .25rem .375rem;background:var(--action-selected)}.chip-trigger.open.active[data-v-e43ac1c9]{border:.125rem solid var(--primary-main-50-p);background:var(--primary-light);padding:.25rem .25rem .25rem .375rem}.chip-trigger.disabled[data-v-e43ac1c9]{cursor:auto}.chip-trigger--content[data-v-e43ac1c9]{color:var(--text-primary);display:flex;width:100%}.chip-trigger--content .x-circle-wrapper[data-v-e43ac1c9]{margin-left:4px;color:var(--primary-dark)}.chip-trigger--content .x-circle-wrapper[data-v-e43ac1c9]:hover{color:var(--primary-darker)}.chip-trigger--text[data-v-e43ac1c9]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;width:100%}.chip-trigger--suffix[data-v-e43ac1c9]{white-space:nowrap}.chip-trigger--icon[data-v-e43ac1c9]{margin-left:4px;color:var(--action-active)}
@@ -0,0 +1 @@
1
+ .custom-list-area[data-v-8f96cf5a]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-8f96cf5a]{width:100%}.contain-accept[data-v-8f96cf5a]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-8f96cf5a]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-8f96cf5a]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -0,0 +1 @@
1
+ .sticky[data-v-26488faf]{position:sticky}.table-container[data-v-26488faf]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-26488faf]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-26488faf]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-26488faf]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-26488faf]{width:13.75rem}.table-header.isStickyHeader[data-v-26488faf]{z-index:calc(var(--7552e08c) + 3);top:0}.table-head-container[data-v-26488faf]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-26488faf]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-26488faf]{display:inline-table}.table-header-actions[data-v-26488faf]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-26488faf]{position:relative}.table-row.loading[data-v-26488faf]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-26488faf]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-26488faf]{border-bottom:none}.expanded-row[data-v-26488faf]{grid-column:var(--7f4c0eae);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-26488faf]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-26488faf]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-26488faf],table th[data-v-26488faf]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-26488faf]:first-of-type,table th[data-v-26488faf]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-26488faf]:last-of-type,table th[data-v-26488faf]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-26488faf],table th.expand-toggle-cell[data-v-26488faf]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-26488faf]{border-bottom:none;z-index:calc(var(--7552e08c) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-26488faf]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--b761a3b2)}table>thead>tr>th[data-v-26488faf]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.bordered[data-v-26488faf]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-26488faf]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-26488faf]{justify-content:flex-end}table>thead>tr>th.isSortable[data-v-26488faf]{cursor:pointer}table>thead.sticky[data-v-26488faf]{position:sticky;top:0;background:white}table>thead.isStickyHeader[data-v-26488faf]{z-index:calc(var(--7552e08c) + 2);top:calc(var(--spacing-800) - 1px)}table>tbody[data-v-26488faf]{display:block}table>tbody>*>tr[data-v-26488faf]{background-color:var(--background-default);min-height:var(--79122e22);height:auto;display:grid;align-items:center;grid-template-columns:var(--b761a3b2)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-26488faf]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-26488faf],table>tbody>*>tr.activeMenu>td[data-v-26488faf]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-26488faf]{background-color:var(--background-default);border:none;min-width:0;display:flex;min-height:var(--79122e22);height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-26488faf]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-26488faf]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-26488faf]{justify-content:flex-end;text-align:right}.section-container[data-v-26488faf]{left:0}.sections[data-v-26488faf]{display:flex}.section[data-v-26488faf]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-26488faf]{width:100%}.empty-state[data-v-26488faf]{min-height:250px}.floating-row[data-v-26488faf]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--7552e08c) + 1)}.floating-row *[data-v-26488faf-s]{pointer-events:auto}
@@ -0,0 +1 @@
1
+ .v-enter-active[data-v-75002075],.v-leave-active[data-v-75002075]{transition:opacity .25s ease}ol[data-v-75002075],ul[data-v-75002075],menu[data-v-75002075]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-75002075],.dropdown.full-width .button__container[data-v-75002075]{width:100%}.dropdown-list-wrapper[data-v-75002075]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-75002075]{padding:.5rem}.list-container--multi[data-v-75002075]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-75002075]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-75002075]{width:100%}.inline-search .list-container[data-v-75002075]{padding-top:0}.no-result-container[data-v-75002075]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-75002075]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-75002075]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-75002075]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-75002075]{min-height:0;margin-bottom:0}.image-slot[data-v-75002075]{margin-right:.5rem}.actions-wrapper[data-v-75002075]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-75002075]{margin-left:.5rem}
@@ -1,17 +1,17 @@
1
1
  import { useToggle as _e } from "../../../composables/useToggle.js";
2
2
  import { inject as Ve, ref as r, computed as c, watch as b, useSlots as ke, toRaw as P, nextTick as K, provide as Ge, onMounted as Le } from "vue";
3
3
  import { isObjectInArray as ae } from "../../../utils/array.js";
4
- import { objectsEqual as Be } from "../../../utils/object.js";
5
- import { useClamp as He, useVirtualList as Ue, onClickOutside as ne, useInfiniteScroll as qe } from "@vueuse/core";
4
+ import { objectsEqual as Ue } from "../../../utils/object.js";
5
+ import { useClamp as Be, useVirtualList as He, onClickOutside as ne, useInfiniteScroll as qe } from "@vueuse/core";
6
6
  import { Mode as T, Type as L, DropdownContext as Xe } 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 ze } from "./useGroupedOptions.js";
10
- const tl = (l, f, g) => {
11
- const B = Ve("isTreeDropdown", !1), {
12
- sortOutGroups: H,
10
+ const tl = (l, v, g) => {
11
+ const U = Ve("isTreeDropdown", !1), {
12
+ sortOutGroups: B,
13
13
  flattenAndMarkGroupOptions: ue,
14
- isGroup: U,
14
+ isGroup: H,
15
15
  selectAllWithGroups: ie,
16
16
  isIndeterminateGrouped: re,
17
17
  allSelectedGrouped: q,
@@ -30,7 +30,7 @@ const tl = (l, f, g) => {
30
30
  return R?.value?.value ?? a.value;
31
31
  },
32
32
  set(e) {
33
- R.onChange?.(e), R.onClose?.(), f("update:selected", e);
33
+ R.onChange?.(e), R.onClose?.(), v("update:selected", e);
34
34
  }
35
35
  });
36
36
  b(
@@ -56,9 +56,9 @@ const tl = (l, f, g) => {
56
56
  return l.isOpen;
57
57
  },
58
58
  set(e) {
59
- f("update:isOpen", e);
59
+ v("update:isOpen", e);
60
60
  }
61
- }), Oe = c(() => o.value.length - 1), v = He(0, 0, Oe), Z = c(() => n.value ? l.displayValue(n.value) : ""), Se = (e) => {
61
+ }), Oe = c(() => o.value.length - 1), f = Be(0, 0, Oe), Z = c(() => n.value ? l.displayValue(n.value) : ""), Se = (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 ?? ""}`;
@@ -92,13 +92,13 @@ const tl = (l, f, g) => {
92
92
  ) > -1 : d.value.includes(i)) ? "selected" : "notSelected";
93
93
  e[u].push(i);
94
94
  });
95
- const t = l.groupedOptions ? H(e.notSelected) : e.notSelected;
95
+ const t = l.groupedOptions ? B(e.notSelected) : e.notSelected;
96
96
  return [].concat(e.selected, t);
97
97
  }), o = c(() => {
98
- const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !B ? be.value : N.value;
98
+ const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !U ? be.value : N.value;
99
99
  if (l.onSearch) {
100
- const t = e.filter((i) => l.groupedOptions && U(i) ? i : l.onSearch(i, h.value));
101
- return l.groupedOptions ? H(t) : t;
100
+ const t = e.filter((i) => l.groupedOptions && H(i) ? i : l.onSearch(i, h.value));
101
+ return l.groupedOptions ? B(t) : t;
102
102
  } else
103
103
  return e;
104
104
  }), Pe = c(() => y.value[0]?.hasSubtitle), F = c(() => s.mode === T.Multi), p = c(
@@ -108,7 +108,7 @@ const tl = (l, f, g) => {
108
108
  containerProps: V,
109
109
  wrapperProps: Te,
110
110
  scrollTo: C
111
- } = Ue(o, {
111
+ } = He(o, {
112
112
  itemHeight: p.value,
113
113
  overscan: l.disableVirtualScroll ? 1 / 0 : 2
114
114
  });
@@ -120,20 +120,20 @@ const tl = (l, f, g) => {
120
120
  ), b([x], async () => {
121
121
  await K();
122
122
  }), b(
123
- [O, v, x],
123
+ [O, f, x],
124
124
  async ([e], [t]) => {
125
125
  O.value && (await K(), x.value !== -1 && e !== t && setTimeout(() => {
126
126
  l.multi && g.VERSION === 4 || C(x.value);
127
- }), v.value && setTimeout(() => {
128
- C(v.value);
127
+ }), f.value && setTimeout(() => {
128
+ C(f.value);
129
129
  }));
130
130
  }
131
131
  ), b(h, () => {
132
- f("onsearch", h.value), C(0);
132
+ v("onsearch", h.value), C(0);
133
133
  });
134
134
  const A = (e, t = !1) => {
135
135
  l.disabled || (Y(e), K(() => {
136
- O.value && f("opened"), O.value || f("closed"), w.value && t && w.value.focus();
136
+ O.value && v("opened"), O.value || v("closed"), w.value && t && w.value.focus();
137
137
  }));
138
138
  };
139
139
  b(O, (e) => {
@@ -158,12 +158,12 @@ const tl = (l, f, g) => {
158
158
  }
159
159
  a.value = o.value;
160
160
  }
161
- f("selectAll");
161
+ v("selectAll");
162
162
  }
163
163
  }, Ie = () => {
164
164
  we(), g.VERSION !== 4 && (n.value = a.value);
165
165
  }, xe = (e = !0) => {
166
- a.value = [], e && (n.value = [], d.value = []), f("clear");
166
+ a.value = [], e && (n.value = [], d.value = []), v("clear");
167
167
  }, k = (e, t) => {
168
168
  if (e = P(e), g.VERSION === 4 ? e[l.disabledOptionKey] : y.value[t]?.disabled)
169
169
  return;
@@ -181,14 +181,14 @@ const tl = (l, f, g) => {
181
181
  if (ae(S, e) || l.comparingKey && S.findIndex(
182
182
  (u) => u[l.comparingKey] === e[l.comparingKey]
183
183
  ) > -1) {
184
- a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !Be(u, e));
184
+ a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !Ue(u, e));
185
185
  return;
186
186
  } else {
187
187
  a.value = [...S, e];
188
188
  return;
189
189
  }
190
190
  }, De = (e) => y.value[e]?.disabled, s = {
191
- activeIndex: v,
191
+ activeIndex: f,
192
192
  options: y,
193
193
  selectedOption: n,
194
194
  labelRef: j,
@@ -213,17 +213,17 @@ const tl = (l, f, g) => {
213
213
  goToOption: async (e) => {
214
214
  if (!O.value)
215
215
  return;
216
- let t = v.value + e;
216
+ let t = f.value + e;
217
217
  const i = y.value.filter(
218
218
  (u) => u.disabled
219
219
  ).length, S = o.value.length - i;
220
220
  for (t > S && (t = S + 1); ; ) {
221
221
  if (!y.value[t]?.disabled) {
222
- E.value = o.value[t], v.value = t;
222
+ E.value = o.value[t], f.value = t;
223
223
  return;
224
224
  }
225
- if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(v.value)) {
226
- E.value = o.value[t], v.value = t;
225
+ if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(f.value)) {
226
+ E.value = o.value[t], f.value = t;
227
227
  return;
228
228
  }
229
229
  }
@@ -260,13 +260,13 @@ const tl = (l, f, g) => {
260
260
  Le(async () => {
261
261
  l.autoFocus && (await K(), setTimeout(() => {
262
262
  $.value.focus();
263
- })), s.goToOption(0), l.multi && !B && (l.groupedOptions ? D.value = q(
263
+ })), s.goToOption(0), l.multi && !U && (l.groupedOptions ? D.value = q(
264
264
  o,
265
265
  a
266
266
  ) : D.value = l.options.length === l.selected.length);
267
267
  });
268
268
  const le = () => {
269
- l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), f("apply", n.value), f("allSelectedChanged", M.value), A(!1), Me();
269
+ l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), v("apply", n.value), v("allSelectedChanged", M.value), A(!1), Me();
270
270
  }, te = () => {
271
271
  F.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), h.value = "", A(!1);
272
272
  }, Ne = (e) => {
@@ -318,7 +318,7 @@ const tl = (l, f, g) => {
318
318
  A(!0);
319
319
  return;
320
320
  }
321
- k(o.value[v.value], v.value), s.mode === T.Single && !l.keepOpen && A(!1), e.preventDefault();
321
+ k(o.value[f.value], f.value), s.mode === T.Single && !l.keepOpen && A(!1), e.preventDefault();
322
322
  break;
323
323
  }
324
324
  }
@@ -337,10 +337,12 @@ const tl = (l, f, g) => {
337
337
  return qe(
338
338
  V.ref,
339
339
  () => {
340
- !l.loadMoreLoading && l.infiniteLoading && f("loadMore");
340
+ !l.loadMoreLoading && l.infiniteLoading && v("loadMore");
341
341
  },
342
342
  { distance: l.infiniteScrollThreshold }
343
- ), {
343
+ ), b(a, () => {
344
+ v("unsavedSelectionUpdate", a.value);
345
+ }), {
344
346
  onKeydown: Ce,
345
347
  location: fe,
346
348
  open: O,
@@ -363,7 +365,7 @@ const tl = (l, f, g) => {
363
365
  selectedOptionPrevious: d,
364
366
  selectedValue: Z,
365
367
  onSelect: k,
366
- activeIndex: v,
368
+ activeIndex: f,
367
369
  onCancel: te,
368
370
  onApply: le,
369
371
  scrollTo: C,
@@ -376,7 +378,7 @@ const tl = (l, f, g) => {
376
378
  triggerRef: de,
377
379
  clearAll: J,
378
380
  onClearAllSelections: xe,
379
- isGroup: U
381
+ isGroup: H
380
382
  };
381
383
  };
382
384
  export {
@@ -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_039dd922_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-039dd922"]]);
3
+ // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e43ac1c9"]]);
5
5
  export {
6
- d as default
6
+ c as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css"; import { defineComponent as B, ref as d, computed as p, watch as _, openBlock as A, createBlock as k, unref as t, withCtx as g, createElementVNode as r, mergeProps as u, createVNode as f, createTextVNode as D, toDisplayString as I, withDirectives as V, vShow as O, withModifiers as N } from "vue";
2
- import x from "../../icon/v4/IconV4.vue.js";
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";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import S from "../../typography/v4/Typography.vue.js";
5
- import { DropdownTestIdModifiers as s } from "../../../testids/index.js";
6
- import { useTestIdAttrs as $ } from "../../../utils/testIds.js";
7
- import { isElementTruncated as E } from "../../../utils/text.js";
8
- import { promiseTimeout as R } from "@vueuse/core";
9
- import U from "../../tooltip/v4/TooltipV4.vue.js";
10
- const z = { class: "chip-trigger--icon" }, L = ["onClick"], K = /* @__PURE__ */ B({
4
+ import C from "../../typography/v4/Typography.vue.js";
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({
11
11
  __name: "ChipDropdownTrigger",
12
12
  props: {
13
13
  label: { default: "Status" },
@@ -25,17 +25,20 @@ const z = { class: "chip-trigger--icon" }, L = ["onClick"], K = /* @__PURE__ */
25
25
  displayValueInQuotes: { type: Boolean, default: !1 }
26
26
  },
27
27
  emits: ["clear"],
28
- setup(n, { emit: v }) {
29
- const e = n, C = () => {
30
- v("clear");
31
- }, o = d(null), i = d(!0), m = d(!1), y = (l) => {
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) => {
32
32
  let a = l;
33
- Array.isArray(l) && (l.length > 1 ? a = `${l[0]}, +${l[1]}` : a = l[0] ? `${l[0]}` : ""), i.value = !!a;
34
- let T = a;
35
- return e.displayValueInQuotes && (T = `"${a}"`), a ? `${e.label}: ${T}` : e.label;
36
- }, b = p(
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(
37
40
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
38
- ), c = $(e.testId, s), h = p(() => {
41
+ ), s = E(e.testId, i), n = m(() => {
39
42
  if (!e.multi)
40
43
  return e.selectedOption ? e.displayValue(e.selectedOption) : "";
41
44
  if (Array.isArray(e.selectedOption))
@@ -44,50 +47,62 @@ const z = { class: "chip-trigger--icon" }, L = ["onClick"], K = /* @__PURE__ */
44
47
  e.selectedOption.length - 1
45
48
  ] : [];
46
49
  });
47
- _([() => e.selectedOption, o], async () => {
48
- await R(100), m.value = o.value && E(o.value);
50
+ D([() => e.selectedOption, o], async () => {
51
+ await F(100), T.value = o.value && U(o.value);
49
52
  });
50
- const w = p(() => m.value ? y(h.value) : "");
51
- return (l, a) => (A(), k(t(U), {
53
+ const w = m(() => T.value ? `${h(n.value)}${g(
54
+ n.value
55
+ )}` : "");
56
+ return (l, a) => (I(), S(t(L), {
52
57
  text: t(w),
53
- class: "tooltip-option"
58
+ class: "tooltip-option",
59
+ placement: "top"
54
60
  }, {
55
- default: g(() => [
56
- r("div", u({
57
- class: ["chip-trigger", [t(b), { active: i.value, disabled: n.disabled, open: n.open }]]
58
- }, t(c)[t(s).BUTTON]), [
59
- r("div", {
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", {
60
66
  ref_key: "textContainerRef",
61
67
  ref: o,
62
68
  class: "chip-trigger--content"
63
69
  }, [
64
- f(t(S), u({
70
+ d(t(C), p({
65
71
  class: "chip-trigger--text",
66
72
  variant: "chipLabel"
67
- }, t(c)[t(s).BUTTON_CONTENT]), {
68
- default: g(() => [
69
- D(I(y(t(h))), 1)
73
+ }, t(s)[t(i).BUTTON_CONTENT]), {
74
+ default: y(() => [
75
+ V(v(h(t(n))), 1)
70
76
  ]),
71
77
  _: 1
72
78
  }, 16),
73
- V(r("div", z, [
74
- f(t(x), {
79
+ d(t(C), p({
80
+ class: "chip-trigger--suffix",
81
+ variant: "chipLabel"
82
+ }, t(s)[t(i).BUTTON_CONTENT_SUFFIX]), {
83
+ default: y(() => [
84
+ V(v(g(t(n))), 1)
85
+ ]),
86
+ _: 1
87
+ }, 16),
88
+ x(c("div", R, [
89
+ d(t(b), {
75
90
  name: "caret-down",
76
91
  size: "16px"
77
92
  })
78
93
  ], 512), [
79
- [O, !i.value]
94
+ [_, !r.value]
80
95
  ]),
81
- V(r("div", u({ class: "x-circle-wrapper" }, t(c)[t(s).BUTTON_CLEAR], {
82
- onClick: N(C, ["stop"])
96
+ x(c("div", p({ class: "x-circle-wrapper" }, t(s)[t(i).BUTTON_CLEAR], {
97
+ onClick: $(B, ["stop"])
83
98
  }), [
84
- f(t(x), {
99
+ d(t(b), {
85
100
  name: "x-circle",
86
101
  size: "16px",
87
102
  type: "fill"
88
103
  })
89
- ], 16, L), [
90
- [O, i.value]
104
+ ], 16, z), [
105
+ [_, r.value]
91
106
  ])
92
107
  ], 512)
93
108
  ], 16)
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  searchQuery?: string;
18
18
  loadMoreFn?: () => Promise<void>;
19
19
  infiniteLoading?: boolean;
20
+ fetchDataDebounceTime?: number;
21
+ autoFocusSearch?: boolean;
22
+ groupedOptions?: boolean;
23
+ optionFlagKey?: string;
20
24
  }>, {
21
25
  label: string;
22
26
  testId: string;
@@ -27,6 +31,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
27
31
  searchQuery: string;
28
32
  loadMoreFn: any;
29
33
  infiniteLoading: boolean;
34
+ fetchDataDebounceTime: number;
35
+ autoFocusSearch: boolean;
36
+ groupedOptions: boolean;
37
+ optionFlagKey: string;
30
38
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
39
  "update:selectedCondition": (value: SelectedCondition) => void;
32
40
  "update:appliedSelections": (value: unknown) => void;
@@ -45,6 +53,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
45
53
  searchQuery?: string;
46
54
  loadMoreFn?: () => Promise<void>;
47
55
  infiniteLoading?: boolean;
56
+ fetchDataDebounceTime?: number;
57
+ autoFocusSearch?: boolean;
58
+ groupedOptions?: boolean;
59
+ optionFlagKey?: string;
48
60
  }>, {
49
61
  label: string;
50
62
  testId: string;
@@ -55,6 +67,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
55
67
  searchQuery: string;
56
68
  loadMoreFn: any;
57
69
  infiniteLoading: boolean;
70
+ fetchDataDebounceTime: number;
71
+ autoFocusSearch: boolean;
72
+ groupedOptions: boolean;
73
+ optionFlagKey: string;
58
74
  }>>> & {
59
75
  onClear?: () => any;
60
76
  "onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
@@ -65,10 +81,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
65
81
  isOpen: boolean;
66
82
  infiniteLoading: boolean;
67
83
  optionNameKey: string;
84
+ optionFlagKey: string;
85
+ groupedOptions: boolean;
68
86
  comparingKey: string;
69
87
  minCharsToStart: number;
70
88
  searchQuery: string;
71
89
  loadMoreFn: () => Promise<void>;
90
+ fetchDataDebounceTime: number;
91
+ autoFocusSearch: boolean;
72
92
  }>;
73
93
  export default _default;
74
94
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./ConditionalDropdown.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css"; //*');
4
- const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2aee12ad"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css"; //*');
4
+ const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-8f96cf5a"]]);
5
5
  export {
6
- d as default
6
+ n as default
7
7
  };