@ironsource/shared-ui 2.1.12-rc.0 → 2.1.12-rc.1

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 (24) hide show
  1. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css +1 -0
  2. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css +1 -0
  3. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_48ba81e5_lang.css +1 -0
  5. package/components/dropdown/common/Dropdown.common.js +167 -166
  6. package/components/dropdown/common/useGroupedOptions.d.ts +1 -0
  7. package/components/dropdown/common/useGroupedOptions.js +40 -39
  8. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +3 -3
  9. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +10 -7
  10. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  11. package/components/dropdown/v4/ConditionalDropdown.vue2.js +8 -8
  12. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  13. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +3 -3
  14. package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
  15. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  16. package/components/dropdown/v4/DropdownV4.vue2.js +2 -1
  17. package/components/dropdown/v4/dropdownStoryArgs.d.ts +30 -0
  18. package/components/dropdown/v4/index.d.ts +20 -1
  19. package/index.d.ts +40 -2
  20. package/package.json +1 -1
  21. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +0 -1
  22. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +0 -1
  23. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +0 -1
  24. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +0 -1
@@ -0,0 +1 @@
1
+ .button-filter-dropdown-trigger[data-v-ea1c4589]{border-radius:var(--border-radius-md);transition:all .2s ease;color:var(--text-primary);display:inline-flex;padding:5px 7px;align-items:center}.button-filter-dropdown-trigger .content[data-v-ea1c4589]{white-space:nowrap}.button-filter-dropdown-trigger[data-v-ea1c4589]:hover{cursor:pointer;background:var(--action-hover)}.button-filter-dropdown-trigger.outlined[data-v-ea1c4589]{border:1px solid var(--default-outlined-border)}.button-filter-dropdown-trigger.outlined[data-v-ea1c4589]:hover{border:1px solid var(--action-active)}.button-filter-dropdown-trigger.outlined.disabled[data-v-ea1c4589]{background:transparent;border:1px solid var(--default-outlined-border)}.button-filter-dropdown-trigger.open[data-v-ea1c4589]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-filter-dropdown-trigger.open[data-v-ea1c4589]:hover{background:var(--action-selected)}.button-filter-dropdown-trigger.disabled[data-v-ea1c4589]{cursor:default;color:var(--text-disabled)}.button-filter-dropdown-trigger.disabled[data-v-ea1c4589]:hover{background:transparent}.start-icon[data-v-ea1c4589]{color:var(--action-active);margin-right:var(--spacing-50)}.end-icon[data-v-ea1c4589]{color:var(--action-active);margin-left:var(--spacing-50)}
@@ -0,0 +1 @@
1
+ .custom-list-area[data-v-3a2aeea3]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:20px 43px}.inline-search[data-v-3a2aeea3]{width:100%}.contain-accept[data-v-3a2aeea3]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-3a2aeea3]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-3a2aeea3]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -0,0 +1 @@
1
+ .default-dropdown-wrapper[data-v-64ae80dd]{position:relative}.dropdown-trigger[data-v-64ae80dd]{width:100%;padding:.3125rem .4375rem;display:flex;column-gap:.25rem;max-width:100%;box-sizing:border-box;border-radius:var(--border-radius-md);border:1px solid var(--action-outlined-border);background:var(--default-main);cursor:pointer;user-select:none;position:relative}.dropdown-trigger[data-v-64ae80dd]:hover{border:1px solid var(--action-active);background:var(--action-hover)}.dropdown-trigger.small[data-v-64ae80dd]{padding:.1875rem .4375rem}.dropdown-trigger.large[data-v-64ae80dd]{padding:.5625rem .4375rem}.dropdown-trigger.disabled[data-v-64ae80dd]{border:1px solid var(--action-outlined-border, #bbb);background:var(--action-disabled-background, #f1f1f1);cursor:not-allowed}.dropdown-trigger.disabled .displayed-value[data-v-64ae80dd],.dropdown-trigger.disabled .caret-down[data-v-64ae80dd]{color:var(--text-disabled)}.dropdown-trigger.open[data-v-64ae80dd]{padding:.25rem .375rem;border:2px solid var(--primary-main)}.dropdown-trigger.open.small[data-v-64ae80dd]{padding:.125rem .375rem}.dropdown-trigger.open.large[data-v-64ae80dd]{padding:.5rem .375rem}.dropdown-trigger.state-error[data-v-64ae80dd],.dropdown-trigger.state-success[data-v-64ae80dd],.dropdown-trigger.state-warning[data-v-64ae80dd]{padding:4px 6px}.dropdown-trigger.state-error.small[data-v-64ae80dd],.dropdown-trigger.state-success.small[data-v-64ae80dd],.dropdown-trigger.state-warning.small[data-v-64ae80dd]{padding:.1875rem .4375rem}.dropdown-trigger.state-error.large[data-v-64ae80dd],.dropdown-trigger.state-success.large[data-v-64ae80dd],.dropdown-trigger.state-warning.large[data-v-64ae80dd]{padding:.5625rem .4375rem}.dropdown-trigger.state-error[data-v-64ae80dd]{border:2px solid var(--error-main)}.dropdown-trigger.state-success[data-v-64ae80dd]{border:2px solid var(--success-main)}.dropdown-trigger.state-warning[data-v-64ae80dd]{border:2px solid var(--warning-dark)}.dropdown-trigger .caret-down[data-v-64ae80dd]{color:var(--action-active)}.content[data-v-64ae80dd]{display:flex;flex:1;gap:.25rem;align-items:center;color:var(--text-primary)}.content .displayed-value[data-v-64ae80dd]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content .image[data-v-64ae80dd]{width:20px;height:20px;flex:none}.content .image img[data-v-64ae80dd]{border-radius:4px;width:100%;height:100%}.content .start-icon[data-v-64ae80dd]{display:flex;color:var(--action-active)}.content .status-dot[data-v-64ae80dd]{padding-right:.25rem}.content .status-dot>div[data-v-64ae80dd]{position:relative;top:-1px}.dropdown-field-label[data-v-64ae80dd]{color:var(--text-primary)}.dropdown-field-help-text[data-v-64ae80dd]{margin-top:4px;position:absolute}.flag[data-v-64ae80dd]{width:16px;height:16px}.flag img[data-v-64ae80dd]{width:16px;height:16px;border-radius:50%}
@@ -0,0 +1 @@
1
+ .v-enter-active[data-v-48ba81e5],.v-leave-active[data-v-48ba81e5]{transition:opacity .25s ease}ol[data-v-48ba81e5],ul[data-v-48ba81e5],menu[data-v-48ba81e5]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-48ba81e5],.dropdown.full-width .button__container[data-v-48ba81e5]{width:100%}.dropdown-list-wrapper[data-v-48ba81e5]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-48ba81e5]{padding:.5rem}.list-container--multi[data-v-48ba81e5]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-48ba81e5]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-48ba81e5]{width:100%}.inline-search .list-container[data-v-48ba81e5]{padding-top:0}.no-result-container[data-v-48ba81e5]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-48ba81e5]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-48ba81e5]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-48ba81e5]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-48ba81e5]{min-height:0;margin-bottom:0}.image-slot[data-v-48ba81e5]{margin-right:.5rem}.actions-wrapper[data-v-48ba81e5]{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-48ba81e5]{margin-left:.5rem}
@@ -1,129 +1,130 @@
1
- import { useToggle as _e } from "../../../composables/useToggle.js";
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";
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 P, nextTick as N, provide as Le, onMounted as Ue } from "vue";
3
3
  import { isObjectInArray as ae } from "../../../utils/array.js";
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
- import { Mode as T, Type as U, DropdownContext as Xe } from "./DropdownContext.js";
7
- import { pxToRem as $e } from "../../../utils/style.js";
8
- import { useEditableContext as je } from "../../table-cells/common/EditableContext.js";
9
- import { useGroupedOptions as ze } from "./useGroupedOptions.js";
10
- const tl = (l, v, g) => {
11
- const B = Ve("isTreeDropdown", !1), {
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";
6
+ import { Mode as T, Type as U, DropdownContext as $e } from "./DropdownContext.js";
7
+ import { pxToRem as je } from "../../../utils/style.js";
8
+ import { useEditableContext as ze } from "../../table-cells/common/EditableContext.js";
9
+ import { useGroupedOptions as We } from "./useGroupedOptions.js";
10
+ const al = (e, v, g) => {
11
+ const B = ke("isTreeDropdown", !1), {
12
12
  sortOutGroups: H,
13
13
  flattenAndMarkGroupOptions: ue,
14
14
  isGroup: q,
15
15
  selectAllWithGroups: ie,
16
16
  isIndeterminateGrouped: re,
17
17
  allSelectedGrouped: X,
18
- areAllPreviousSelected: oe
19
- } = ze(l), ce = (e, t) => l.multi && Array.isArray(e) ? l.comparingKey ? e?.findIndex(
20
- (i) => i[l.comparingKey] === t[l.comparingKey]
21
- ) > -1 : ae(e, t) : l.comparingKey ? e?.[l.comparingKey] === t[l.comparingKey] : e === t;
18
+ areAllPreviousSelected: oe,
19
+ groupedChildOptionsLength: ce
20
+ } = We(e), se = (l, t) => e.multi && Array.isArray(l) ? e.comparingKey ? l?.findIndex(
21
+ (i) => i[e.comparingKey] === t[e.comparingKey]
22
+ ) > -1 : ae(l, t) : e.comparingKey ? l?.[e.comparingKey] === t[e.comparingKey] : l === t;
22
23
  let $;
23
- ((e) => {
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";
24
+ ((l) => {
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";
25
26
  })($ || ($ = {}));
26
27
  const a = r(
27
- l.selected
28
- ), R = je(), u = c({
28
+ e.selected
29
+ ), K = ze(), n = c({
29
30
  get() {
30
- return R?.value?.value ?? a.value;
31
+ return K?.value?.value ?? a.value;
31
32
  },
32
- set(e) {
33
- R.onChange?.(e), R.onClose?.(), v("update:selected", e);
33
+ set(l) {
34
+ K.onChange?.(l), K.onClose?.(), v("update:selected", l);
34
35
  }
35
36
  });
36
37
  b(
37
- () => l.selected,
38
+ () => e.selected,
38
39
  () => {
39
- a.value = l.selected, d.value = l.selected;
40
+ a.value = e.selected, d.value = e.selected;
40
41
  }
41
42
  );
42
- const se = ke(), w = r(null), m = r(null), j = r(null), E = r(null), z = r(null), I = r(null), de = r(), W = r(null), J = r(null), Q = r(null), ve = 8, fe = c(() => I.value ? I.value.getBoundingClientRect().height + ve + l.distance : 0), D = r(!1), y = r([]), x = r(-1), h = r(""), d = r(l.selected || []), Y = () => I.value?.focus(), [O, ge, ye] = _e({
43
- disabled: l.disabled,
44
- initialValue: l.defaultOpen
43
+ const de = Ge(), w = r(null), m = r(null), j = r(null), R = r(null), z = r(null), I = r(null), ve = r(), W = r(null), J = r(null), Q = r(null), fe = 8, ge = c(() => I.value ? I.value.getBoundingClientRect().height + fe + e.distance : 0), D = r(!1), y = r([]), x = r(-1), h = r(""), d = r(e.selected || []), Y = () => I.value?.focus(), [O, ye, he] = Ve({
44
+ disabled: e.disabled,
45
+ initialValue: e.defaultOpen
45
46
  });
46
47
  b(
47
- () => l.disabled,
48
- (e) => {
49
- e !== void 0 && ye(e);
48
+ () => e.disabled,
49
+ (l) => {
50
+ l !== void 0 && he(l);
50
51
  }
51
52
  );
52
- const Z = (e) => {
53
- he.value = ge(e);
54
- }, he = c({
53
+ const Z = (l) => {
54
+ Oe.value = ye(l);
55
+ }, Oe = c({
55
56
  get() {
56
- return l.isOpen;
57
+ return e.isOpen;
57
58
  },
58
- set(e) {
59
- v("update:isOpen", e);
59
+ set(l) {
60
+ v("update:isOpen", l);
60
61
  }
61
- }), Oe = c(() => o.value.length - 1), f = Be(0, 0, Oe), F = c(() => u.value ? l.displayValue(u.value) : ""), Se = (e) => {
62
- if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
63
- return l.placeholder;
64
- const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
65
- return e.value.length == 1 && l.displayValue ? l.displayValue(e.value[0]) : t;
66
- }, me = c(() => {
67
- if (!l.multi)
68
- return u.value ? l.displayValue(u.value) : l.placeholder;
62
+ }), Se = c(() => o.value.length - 1), f = He(0, 0, Se), F = c(() => n.value ? e.displayValue(n.value) : ""), me = (l) => {
63
+ if (!l.value.length && !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix)
64
+ return e.placeholder;
65
+ const t = !e.multiOptionsPlaceholderPrefix && !e.multiOptionsPlaceholderSuffix ? `${l.value.length} selected` : `${e.multiOptionsPlaceholderPrefix ?? ""}${l.value.length ?? "0"}${e.multiOptionsPlaceholderSuffix ?? ""}`;
66
+ return l.value.length == 1 && e.displayValue ? e.displayValue(l.value[0]) : t;
67
+ }, Ae = c(() => {
68
+ if (!e.multi)
69
+ return n.value ? e.displayValue(n.value) : e.placeholder;
69
70
  if (Array.isArray(a.value))
70
- return Se(a);
71
- }), M = c(() => {
71
+ return me(a);
72
+ }), E = c(() => {
72
73
  if (Array.isArray(a.value))
73
- return l.groupedOptions ? X(o, a) : a.value.length === o.value.length;
74
- }), Ae = c(() => !l.multi || !Array.isArray(a.value) ? !1 : l.groupedOptions ? re(
74
+ return e.groupedOptions ? X(o, a) : a.value.length === o.value.length;
75
+ }), be = c(() => !e.multi || !Array.isArray(a.value) ? !1 : e.groupedOptions ? re(
75
76
  o,
76
77
  a
77
- ) : a.value.length > 0 && a.value.length < o.value.length), _ = (e) => {
78
- h.value = e;
79
- }, N = c(() => l.groupedOptions ? ue(l.options) : l.options), be = c(() => {
78
+ ) : a.value.length > 0 && a.value.length < o.value.length), _ = (l) => {
79
+ h.value = l;
80
+ }, M = c(() => e.groupedOptions ? ue(e.options) : e.options), Pe = c(() => {
80
81
  if (oe(
81
- N,
82
+ M,
82
83
  d
83
84
  ))
84
- return N.value;
85
- const e = {
85
+ return M.value;
86
+ const l = {
86
87
  selected: [],
87
88
  notSelected: []
88
89
  };
89
- P(N).value.forEach((i) => {
90
- const n = (l.comparingKey ? d.value.findIndex(
91
- (L) => L[l.comparingKey] === i[l.comparingKey]
90
+ P(M).value.forEach((i) => {
91
+ const u = (e.comparingKey ? d.value.findIndex(
92
+ (L) => L[e.comparingKey] === i[e.comparingKey]
92
93
  ) > -1 : d.value.includes(i)) ? "selected" : "notSelected";
93
- e[n].push(i);
94
+ l[u].push(i);
94
95
  });
95
- const t = l.groupedOptions ? H(e.notSelected) : e.notSelected;
96
- return [].concat(e.selected, t);
96
+ const t = e.groupedOptions ? H(l.notSelected) : l.notSelected;
97
+ return [].concat(l.selected, t);
97
98
  }), o = c(() => {
98
- const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !B ? be.value : N.value;
99
- if (l.onSearch) {
100
- const t = e.filter((i) => l.groupedOptions && q(i) ? i : l.onSearch(i, h.value));
101
- return l.groupedOptions ? H(t) : t;
99
+ const l = Array.isArray(d.value) && e.multi && g.VERSION === 4 && !B ? Pe.value : M.value;
100
+ if (e.onSearch) {
101
+ const t = l.filter((i) => e.groupedOptions && q(i) ? i : e.onSearch(i, h.value));
102
+ return e.groupedOptions ? H(t) : t;
102
103
  } else
103
- return e;
104
- }), Pe = c(() => y.value[0]?.hasSubtitle), p = c(() => s.mode === T.Multi), ee = c(
105
- () => Pe.value ? g.MULTILINE_LIST_HEIGHT : g.LIST_HEIGHT
104
+ return l;
105
+ }), Te = c(() => y.value[0]?.hasSubtitle), p = c(() => s.mode === T.Multi), ee = c(
106
+ () => Te.value ? g.MULTILINE_LIST_HEIGHT : g.LIST_HEIGHT
106
107
  ), {
107
108
  list: V,
108
109
  containerProps: k,
109
- wrapperProps: Te,
110
+ wrapperProps: we,
110
111
  scrollTo: C
111
- } = He(o, {
112
+ } = qe(o, {
112
113
  itemHeight: ee.value,
113
- overscan: l.disableVirtualScroll ? 1 / 0 : 2
114
+ overscan: e.disableVirtualScroll ? 1 / 0 : 2
114
115
  });
115
116
  b(
116
- () => l.isOpen,
117
- (e) => {
118
- Z(e);
117
+ () => e.isOpen,
118
+ (l) => {
119
+ Z(l);
119
120
  }
120
121
  ), b([x], async () => {
121
- await K();
122
+ await N();
122
123
  }), b(
123
124
  [O, f, x],
124
- async ([e], [t]) => {
125
- O.value && (await K(), x.value !== -1 && e !== t && setTimeout(() => {
126
- l.multi && g.VERSION === 4 || C(x.value);
125
+ async ([l], [t]) => {
126
+ O.value && (await N(), x.value !== -1 && l !== t && setTimeout(() => {
127
+ e.multi && g.VERSION === 4 || C(x.value);
127
128
  }), f.value && setTimeout(() => {
128
129
  C(f.value);
129
130
  }));
@@ -131,25 +132,25 @@ const tl = (l, v, g) => {
131
132
  ), b(h, () => {
132
133
  v("onsearch", h.value), C(0);
133
134
  });
134
- const A = (e, t = !1) => {
135
- l.disabled || (Z(e), K(() => {
135
+ const A = (l, t = !1) => {
136
+ e.disabled || (Z(l), N(() => {
136
137
  O.value && v("opened"), O.value || v("closed"), w.value && t && w.value.focus();
137
138
  }));
138
139
  };
139
- b(O, (e) => {
140
- if (e) {
141
- h.value = "", p.value && Array.isArray(u.value) && (d.value = P(u.value).slice());
140
+ b(O, (l) => {
141
+ if (l) {
142
+ h.value = "", p.value && Array.isArray(n.value) && (d.value = P(n.value).slice());
142
143
  return;
143
144
  }
144
145
  Y();
145
146
  });
146
- const we = () => {
147
- if (M.value) {
147
+ const Ie = () => {
148
+ if (E.value) {
148
149
  a.value = [];
149
150
  return;
150
151
  }
151
152
  if (Array.isArray(a.value)) {
152
- if (l.groupedOptions)
153
+ if (e.groupedOptions)
153
154
  ie(o, a);
154
155
  else {
155
156
  if (a.value.length === o.value.length) {
@@ -160,85 +161,85 @@ const tl = (l, v, g) => {
160
161
  }
161
162
  v("selectAll");
162
163
  }
163
- }, Ie = () => {
164
- we(), g.VERSION !== 4 && (u.value = a.value);
165
- }, xe = (e = !0) => {
166
- a.value = [], e && (u.value = [], d.value = []), v("clear");
167
- }, G = (e, t) => {
168
- if (e = P(e), g.VERSION === 4 ? e[l.disabledOptionKey] : y.value[t]?.disabled)
164
+ }, xe = () => {
165
+ Ie(), g.VERSION !== 4 && (n.value = a.value);
166
+ }, De = (l = !0) => {
167
+ a.value = [], l && (n.value = [], d.value = []), e.dynamicFilterMode || v("clear-all");
168
+ }, G = (l, t) => {
169
+ if (l = P(l), g.VERSION === 4 ? l[e.disabledOptionKey] : y.value[t]?.disabled)
169
170
  return;
170
- if (x.value = t, !l.multi) {
171
- l.keepOpen || A(!1), s.goToOption(
171
+ if (x.value = t, !e.multi) {
172
+ e.keepOpen || A(!1), s.goToOption(
172
173
  0
173
174
  /* None */
174
- ), u.value = e, _(""), Y(), s.type === U.Search && m.value && (m.value.value = l.displayValue(e)), le();
175
+ ), n.value = l, _(""), Y(), s.type === U.Search && m.value && (m.value.value = e.displayValue(l)), le();
175
176
  return;
176
177
  }
177
178
  if (!Array.isArray(a.value))
178
179
  return;
179
180
  m.value?.focus();
180
181
  const S = P(a.value);
181
- if (ae(S, e) || l.comparingKey && S.findIndex(
182
- (n) => n[l.comparingKey] === e[l.comparingKey]
182
+ if (ae(S, l) || e.comparingKey && S.findIndex(
183
+ (u) => u[e.comparingKey] === l[e.comparingKey]
183
184
  ) > -1) {
184
- a.value = S.filter((n) => l.comparingKey ? n[l.comparingKey] !== e[l.comparingKey] : !Ue(n, e));
185
+ a.value = S.filter((u) => e.comparingKey ? u[e.comparingKey] !== l[e.comparingKey] : !Be(u, l));
185
186
  return;
186
187
  } else {
187
- a.value = [...S, e];
188
+ a.value = [...S, l];
188
189
  return;
189
190
  }
190
- }, De = (e) => y.value[e]?.disabled, s = {
191
+ }, Me = (l) => y.value[l]?.disabled, s = {
191
192
  activeIndex: f,
192
193
  options: y,
193
- selectedOption: u,
194
+ selectedOption: n,
194
195
  labelRef: z,
195
- activeOption: E,
196
+ activeOption: R,
196
197
  listRef: w,
197
- clearable: l.clearable,
198
- type: se.input ? U.Search : U.Dropdown,
199
- mode: l.multi ? T.Multi : T.Single,
198
+ clearable: e.clearable,
199
+ type: de.input ? U.Search : U.Dropdown,
200
+ mode: e.multi ? T.Multi : T.Single,
200
201
  query: h,
201
202
  selectedValue: F,
202
203
  toggle: A,
203
- disabled: l.disabled,
204
+ disabled: e.disabled,
204
205
  open: O,
205
- mandatory: l.mandatory,
206
- size: l.size,
207
- placeholder: l.placeholder,
206
+ mandatory: e.mandatory,
207
+ size: e.size,
208
+ placeholder: e.placeholder,
208
209
  select: G,
209
210
  clearSelection: () => {
210
- _(""), u.value = s.mode === T.Single ? null : [], d.value = s.mode === T.Single ? null : [], m.value && (m.value.value = "");
211
+ _(""), n.value = s.mode === T.Single ? null : [], d.value = s.mode === T.Single ? null : [], m.value && (m.value.value = "");
211
212
  },
212
213
  search: _,
213
- goToOption: async (e) => {
214
+ goToOption: async (l) => {
214
215
  if (!O.value)
215
216
  return;
216
- let t = f.value + e;
217
+ let t = f.value + l;
217
218
  const i = y.value.filter(
218
- (n) => n.disabled
219
+ (u) => u.disabled
219
220
  ).length, S = o.value.length - i;
220
221
  for (t > S && (t = S + 1); ; ) {
221
222
  if (!y.value[t]?.disabled) {
222
- E.value = o.value[t], f.value = t;
223
+ R.value = o.value[t], f.value = t;
223
224
  return;
224
225
  }
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;
226
+ if ((l === 1 || l === 10) && (t = t + 1), (l === -1 || l === -10) && (t = t + -1), !!Me(f.value)) {
227
+ R.value = o.value[t], f.value = t;
227
228
  return;
228
229
  }
229
230
  }
230
231
  },
231
- registerInput: (e) => {
232
- m.value = e.value;
232
+ registerInput: (l) => {
233
+ m.value = l.value;
233
234
  },
234
- registerOption: (e, t, i) => {
235
- y.value = [...y.value, { id: e, disabled: t, hasSubtitle: i }];
235
+ registerOption: (l, t, i) => {
236
+ y.value = [...y.value, { id: l, disabled: t, hasSubtitle: i }];
236
237
  },
237
- unRegisterOption(e) {
238
- y.value = y.value.filter((t) => t.id !== e);
238
+ unRegisterOption(l) {
239
+ y.value = y.value.filter((t) => t.id !== l);
239
240
  }
240
241
  };
241
- Ge(Xe, s), ne(
242
+ Le($e, s), ne(
242
243
  w,
243
244
  () => {
244
245
  O.value && te();
@@ -254,63 +255,63 @@ const tl = (l, v, g) => {
254
255
  ]
255
256
  }
256
257
  );
257
- const Me = () => {
258
+ const Ce = () => {
258
259
  m.value && (m.value.value = s.query.value = "");
259
260
  };
260
- Le(async () => {
261
- l.autoFocus && (await K(), setTimeout(() => {
261
+ Ue(async () => {
262
+ e.autoFocus && (await N(), setTimeout(() => {
262
263
  j.value.focus();
263
- })), s.goToOption(0), l.multi && !B && (l.groupedOptions ? D.value = X(
264
+ })), s.goToOption(0), e.multi && !B && (e.groupedOptions ? D.value = X(
264
265
  o,
265
266
  a
266
- ) : D.value = l.options.length === l.selected.length);
267
+ ) : D.value = e.options.length === e.selected.length);
267
268
  });
268
269
  const le = () => {
269
- l.multi && (D.value = M.value, u.value = a.value, Array.isArray(u.value) && (d.value = P(u.value).slice())), v("apply", u.value), v("allSelectedChanged", M.value), A(!1), Me();
270
+ e.multi && (n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice(), D.value = e.groupedOptions ? ce(e.options) === n.value.length : e.options.length === n.value.length)), v("apply", n.value), v("allSelectedChanged", E.value), A(!1), Ce();
270
271
  }, te = () => {
271
- p.value && Array.isArray(d.value) && (u.value = P(d.value).slice()), h.value = "", A(!1);
272
- }, Ne = (e) => {
273
- if (!l.disableKeyboardEvents)
274
- switch (e.key) {
272
+ p.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), h.value = "", A(!1);
273
+ }, Ne = (l) => {
274
+ if (!e.disableKeyboardEvents)
275
+ switch (l.key) {
275
276
  case "Space":
276
277
  case "Enter":
277
278
  case "ArrowUp":
278
279
  case "ArrowDown":
279
- A(!0), e.preventDefault();
280
+ A(!0), l.preventDefault();
280
281
  }
281
- }, Ce = (e) => {
282
- if (!l.disableKeyboardEvents)
283
- switch (e.key) {
282
+ }, Ke = (l) => {
283
+ if (!e.disableKeyboardEvents)
284
+ switch (l.key) {
284
285
  case "ArrowUp": {
285
286
  s.goToOption(
286
287
  -1
287
288
  /* Previous */
288
- ), e.preventDefault(), e.stopPropagation();
289
+ ), l.preventDefault(), l.stopPropagation();
289
290
  break;
290
291
  }
291
292
  case "ArrowDown": {
292
293
  s.goToOption(
293
294
  1
294
295
  /* Next */
295
- ), e.preventDefault(), e.stopPropagation();
296
+ ), l.preventDefault(), l.stopPropagation();
296
297
  break;
297
298
  }
298
299
  case "Escape": {
299
- A(!1), e.preventDefault();
300
+ A(!1), l.preventDefault();
300
301
  break;
301
302
  }
302
303
  case "PageUp": {
303
304
  s.goToOption(
304
305
  10
305
306
  /* NextPage */
306
- ), e.preventDefault();
307
+ ), l.preventDefault();
307
308
  break;
308
309
  }
309
310
  case "PageDown": {
310
311
  s.goToOption(
311
312
  -10
312
313
  /* PrevPage */
313
- ), e.preventDefault();
314
+ ), l.preventDefault();
314
315
  break;
315
316
  }
316
317
  case "Enter": {
@@ -318,50 +319,50 @@ const tl = (l, v, g) => {
318
319
  A(!0);
319
320
  return;
320
321
  }
321
- G(o.value[f.value], f.value), s.mode === T.Single && !l.keepOpen && A(!1), e.preventDefault();
322
+ G(o.value[f.value], f.value), s.mode === T.Single && !e.keepOpen && A(!1), l.preventDefault();
322
323
  break;
323
324
  }
324
325
  }
325
- }, Ke = c(() => {
326
- if (l.loading)
326
+ }, Re = c(() => {
327
+ if (e.loading)
327
328
  return 8.5;
328
- const e = l.loadMoreLoading && g.MAX_NUMBER_OF_OPTIONS || l.customNumberOfDisplayedOptions || V.value.reduce((L, Re) => {
329
- const Ee = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Re.data) : 1;
330
- return L + Ee;
331
- }, 0), t = l.multi && l.showSelectAll && !h.value ? 1 : 0, i = e > g.MAX_NUMBER_OF_OPTIONS, S = e + t;
332
- let n = i ? g.MAX_NUMBER_OF_OPTIONS + 0.1 : S;
333
- return l.loadMoreLoading && l.multi && (V.value.length ? n = n + 0.1 : n = n - 0.9), l.noResultsText && n === 0 && (n = n + 1), l.withConditions && h.value && (n = n + 1), $e(
334
- n * ee.value + g.PADDING_PX
329
+ const l = e.loadMoreLoading && g.MAX_NUMBER_OF_OPTIONS || e.customNumberOfDisplayedOptions || V.value.reduce((L, Ee) => {
330
+ const _e = e.overrideOptionCountCalculation ? e.overrideOptionCountCalculation(Ee.data) : 1;
331
+ return L + _e;
332
+ }, 0), t = e.multi && e.showSelectAll && !h.value ? 1 : 0, i = l > g.MAX_NUMBER_OF_OPTIONS, S = l + t;
333
+ let u = i ? g.MAX_NUMBER_OF_OPTIONS + 0.1 : S;
334
+ 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 && h.value && (u = u + 1), je(
335
+ u * ee.value + g.PADDING_PX
335
336
  );
336
337
  });
337
- return qe(
338
+ return Xe(
338
339
  k.ref,
339
340
  () => {
340
- !l.loadMoreLoading && l.infiniteLoading && v("loadMore");
341
+ !e.loadMoreLoading && e.infiniteLoading && v("loadMore");
341
342
  },
342
- { distance: l.infiniteScrollThreshold }
343
+ { distance: e.infiniteScrollThreshold }
343
344
  ), b(a, () => {
344
345
  v("unsavedSelectionUpdate", a.value);
345
346
  }), {
346
- onKeydown: Ce,
347
- location: fe,
347
+ onKeydown: Ke,
348
+ location: ge,
348
349
  open: O,
349
350
  toggleMenu: A,
350
351
  onButtonKeydown: Ne,
351
- displayedValue: me,
352
+ displayedValue: Ae,
352
353
  labelRef: z,
353
354
  query: h,
354
355
  containerProps: k,
355
- calculateTableHeight: Ke,
356
- wrapperProps: Te,
356
+ calculateTableHeight: Re,
357
+ wrapperProps: we,
357
358
  filteredOptions: o,
358
- allSelected: M,
359
+ allSelected: E,
359
360
  allSelectedApplied: D,
360
- isIndeterminate: Ae,
361
- onSelectAll: Ie,
361
+ isIndeterminate: be,
362
+ onSelectAll: xe,
362
363
  virtualOptions: V,
363
- isSelected: ce,
364
- selectedOption: u,
364
+ isSelected: se,
365
+ selectedOption: n,
365
366
  selectedOptionPrevious: d,
366
367
  selectedValue: F,
367
368
  onSelect: G,
@@ -375,12 +376,12 @@ const tl = (l, v, g) => {
375
376
  apply: W,
376
377
  cancel: J,
377
378
  el: j,
378
- triggerRef: de,
379
+ triggerRef: ve,
379
380
  clearAll: Q,
380
- onClearAllSelections: xe,
381
+ onClearAllSelections: De,
381
382
  isGroup: q
382
383
  };
383
384
  };
384
385
  export {
385
- tl as dropdownCommon
386
+ al as dropdownCommon
386
387
  };
@@ -7,4 +7,5 @@ export declare const useGroupedOptions: (props: any) => {
7
7
  isIndeterminateGrouped: (filteredOptions: any, selectedOptionRef: Ref<unknown[]>) => boolean;
8
8
  allSelectedGrouped: (filteredOptions: any, selectedOptionRef: Ref<unknown[]>) => boolean;
9
9
  areAllPreviousSelected: (flatOptions: Ref<unknown[]>, selectedOptionPrevious: Ref<unknown[]>) => boolean;
10
+ groupedChildOptionsLength: (options: any) => number;
10
11
  };
@@ -1,57 +1,58 @@
1
- import { GROUP_OPTION_FLAG as i } from "./consts.js";
2
- const O = (r) => {
3
- const u = (e) => e && !!e[i], p = (e) => e.reduce((t, n) => {
1
+ import { GROUP_OPTION_FLAG as s } from "./consts.js";
2
+ const f = (u) => {
3
+ const r = (t) => t && !!t[s], i = (t) => t.reduce((e, n) => {
4
4
  const { options: o = [], ...l } = n, g = {
5
5
  ...l,
6
- [i]: !0
6
+ [s]: !0
7
7
  };
8
- return [...t, g, ...o];
9
- }, []), c = (e) => {
10
- const t = r.groupedOptions ? [] : e;
11
- if (r.groupedOptions)
12
- for (let n = 0; n < e.length; n++) {
13
- const o = e[n];
14
- if (u(o)) {
15
- const l = e[n + 1];
16
- if (u(l) || !l)
8
+ return [...e, g, ...o];
9
+ }, []), c = (t) => i(t).reduce((n, o) => o[s] ? n : n + 1, 0), h = (t) => {
10
+ const e = u.groupedOptions ? [] : t;
11
+ if (u.groupedOptions)
12
+ for (let n = 0; n < t.length; n++) {
13
+ const o = t[n];
14
+ if (r(o)) {
15
+ const l = t[n + 1];
16
+ if (r(l) || !l)
17
17
  continue;
18
- t.push(o);
18
+ e.push(o);
19
19
  } else
20
- t.push(o);
20
+ e.push(o);
21
21
  }
22
- return t;
23
- }, h = (e, t) => {
24
- const n = r.options.length;
25
- if (t.value.length === e.value.length - n) {
26
- t.value = [];
22
+ return e;
23
+ }, d = (t, e) => {
24
+ const n = u.options.length;
25
+ if (e.value.length === t.value.length - n) {
26
+ e.value = [];
27
27
  return;
28
28
  }
29
- t.value = e.value.filter(
30
- (o) => !u(o)
29
+ e.value = t.value.filter(
30
+ (o) => !r(o)
31
31
  );
32
- }, s = (e) => e.value.reduce(
33
- (t, n) => t + (u(n) ? 0 : 1),
32
+ }, p = (t) => t.value.reduce(
33
+ (e, n) => e + (r(n) ? 0 : 1),
34
34
  0
35
35
  );
36
36
  return {
37
- isGroup: u,
38
- sortOutGroups: c,
39
- flattenAndMarkGroupOptions: p,
40
- selectAllWithGroups: h,
41
- isIndeterminateGrouped: (e, t) => {
42
- const n = s(e);
43
- return t.value.length > 0 && t.value.length < n;
37
+ isGroup: r,
38
+ sortOutGroups: h,
39
+ flattenAndMarkGroupOptions: i,
40
+ selectAllWithGroups: d,
41
+ isIndeterminateGrouped: (t, e) => {
42
+ const n = p(t);
43
+ return e.value.length > 0 && e.value.length < n;
44
44
  },
45
- allSelectedGrouped: (e, t) => {
46
- const n = s(e);
47
- return t.value.length === n;
45
+ allSelectedGrouped: (t, e) => {
46
+ const n = p(t);
47
+ return e.value.length === n;
48
48
  },
49
- areAllPreviousSelected: (e, t) => {
50
- const n = r.options.length;
51
- return e.value.length - n === t.value.length;
52
- }
49
+ areAllPreviousSelected: (t, e) => {
50
+ const n = u.options.length;
51
+ return t.value.length - n === e.value.length;
52
+ },
53
+ groupedChildOptionsLength: c
53
54
  };
54
55
  };
55
56
  export {
56
- O as useGroupedOptions
57
+ f as useGroupedOptions
57
58
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonFilterDropdownTrigger.vue2.js";
2
- /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css"; //*');
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1aa6df01"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ea1c4589"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as u, mergeProps as l, unref as t, createBlock as d, createCommentVNode as i, createVNode as f, withCtx as p, createTextVNode as I, toDisplayString as T } from "vue";
1
+ import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_ea1c4589_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as u, mergeProps as l, unref as t, createBlock as d, createCommentVNode as i, createVNode as f, withCtx as p, createTextVNode as I, toDisplayString as T } from "vue";
2
2
  import y from "../../typography/v4/Typography.vue.js";
3
3
  import s from "../../icon/v4/IconV4.vue.js";
4
4
  import "../../icon/v4/IconFlag.vue.js";
5
5
  import { useTestIdAttrs as N } from "../../../utils/testIds.js";
6
- import { DropdownTestIdModifiers as n } from "../../../testids/index.js";
7
- const h = /* @__PURE__ */ m({
6
+ import { DropdownTestIdModifiers as a } from "../../../testids/index.js";
7
+ const E = /* @__PURE__ */ m({
8
8
  __name: "ButtonFilterDropdownTrigger",
9
9
  props: {
10
10
  label: null,
@@ -18,10 +18,10 @@ const h = /* @__PURE__ */ m({
18
18
  },
19
19
  emits: ["click"],
20
20
  setup(e, { emit: c }) {
21
- const a = N(e.testId, n);
21
+ const n = N(e.testId, a);
22
22
  return (g, r) => (o(), u("div", l({
23
23
  class: ["button-filter-dropdown-trigger", [e.variant, { disabled: e.disabled, open: e.open }]]
24
- }, t(a)[t(n).BUTTON], {
24
+ }, t(n)[t(a).BUTTON], {
25
25
  onClick: r[0] || (r[0] = (k) => c("click"))
26
26
  }), [
27
27
  e.startIconName ? (o(), d(t(s), {
@@ -31,7 +31,10 @@ const h = /* @__PURE__ */ m({
31
31
  size: "16px",
32
32
  class: "start-icon"
33
33
  }, null, 8, ["name", "type"])) : i("", !0),
34
- f(t(y), l({ variant: "button" }, t(a)[t(n).BUTTON_CONTENT]), {
34
+ f(t(y), l({
35
+ variant: "chipLabel",
36
+ class: "content"
37
+ }, t(n)[t(a).BUTTON_CONTENT]), {
35
38
  default: p(() => [
36
39
  I(T(e.label), 1)
37
40
  ]),
@@ -47,5 +50,5 @@ const h = /* @__PURE__ */ m({
47
50
  }
48
51
  });
49
52
  export {
50
- h as default
53
+ E as default
51
54
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ConditionalDropdown.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css"; //*');
4
- const n = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8e026669"]]);
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3a2aeea3"]]);
5
5
  export {
6
- n as default
6
+ p as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as K, onMounted as q, openBlock as D, createBlock as G, unref as d, withCtx as f, createVNode as g, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
2
- import L from "./DropdownV4.vue.js";
1
+ import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_3a2aeea3_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as K, onMounted as q, openBlock as D, createBlock as G, unref as d, withCtx as f, createVNode as g, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
2
+ import F from "./DropdownV4.vue.js";
3
3
  import "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
5
  import ae from "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
- import te from "./ButtonDropdownTrigger.vue.js";
8
- import "./ButtonFilterDropdownTrigger.vue.js";
7
+ import "./ButtonDropdownTrigger.vue.js";
8
+ import te from "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
10
  import "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
@@ -52,10 +52,10 @@ const re = { class: "conditional-container" }, se = {
52
52
  set: (l) => {
53
53
  h("update:selectedCondition", l);
54
54
  }
55
- }), F = () => {
55
+ }), L = () => {
56
56
  const { appliedSelections: l } = e;
57
57
  return l ? Array.isArray(l) ? l : [l] : [];
58
- }, w = s(null), c = s(!0), a = s([]), n = s(F()), T = s(!0), p = s(!1), C = s(!1), u = s(e.searchQuery), B = s(""), m = s(e.label), k = s([]), U = O(() => (!u.value || u.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), I = O(() => {
58
+ }, w = s(null), c = s(!0), a = s([]), n = s(L()), T = s(!0), p = s(!1), C = s(!1), u = s(e.searchQuery), B = s(""), m = s(e.label), k = s([]), U = O(() => (!u.value || u.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), I = O(() => {
59
59
  const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
60
60
  if (e.groupedOptions) {
61
61
  let o = 0;
@@ -154,7 +154,7 @@ const re = { class: "conditional-container" }, se = {
154
154
  const $ = () => {
155
155
  h("closed");
156
156
  };
157
- return (l, t) => (D(), G(d(L), {
157
+ return (l, t) => (D(), G(d(F), {
158
158
  ref_key: "dropdownRef",
159
159
  ref: w,
160
160
  selected: n.value,
@@ -200,7 +200,7 @@ const re = { class: "conditional-container" }, se = {
200
200
  ]),
201
201
  "dropdown-conditions": f(() => [
202
202
  J("div", re, [
203
- g(d(L), {
203
+ g(d(F), {
204
204
  selected: d(i),
205
205
  "onUpdate:selected": t[0] || (t[0] = (o) => X(i) ? i.value = o : null),
206
206
  options: r.conditionalOptions,
@@ -1,7 +1,7 @@
1
1
  import o from "./DefaultDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-73bf9b5b"]]);
3
+ // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; //*');
4
+ const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-64ae80dd"]]);
5
5
  export {
6
- p as default
6
+ d as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css"; import { defineComponent as I, computed as u, openBlock as a, createElementBlock as d, createBlock as m, createCommentVNode as n, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as r, withCtx as O, createTextVNode as B, toDisplayString as $ } from "vue";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; import { defineComponent as I, computed as u, openBlock as a, createElementBlock as d, createBlock as m, createCommentVNode as n, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as r, withCtx as O, createTextVNode as B, toDisplayString as $ } from "vue";
2
2
  import w from "../../typography/v4/Typography.vue.js";
3
3
  import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
4
4
  import g from "../../icon/v4/IconV4.vue.js";
@@ -92,8 +92,8 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
92
92
  i(o.$slots, "flag", {}, () => [
93
93
  t.optionFlagKey ? (a(), m(l(K), {
94
94
  key: 0,
95
- src: l(s)[t.optionFlagKey]
96
- }, null, 8, ["src"])) : n("", !0)
95
+ "country-code": l(s)[t.optionFlagKey]
96
+ }, null, 8, ["country-code"])) : n("", !0)
97
97
  ], !0)
98
98
  ])) : n("", !0),
99
99
  o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), d("div", P, [
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
17
  keepOpen?: boolean;
18
18
  autoSize?: boolean;
19
19
  disableKeyboardEvents?: boolean;
20
+ dynamicFilterMode?: boolean;
20
21
  isOnTop?: boolean;
21
22
  distance?: number;
22
23
  container?: string;
@@ -89,6 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
90
  disableKeyboardEvents: boolean;
90
91
  testId: string;
91
92
  showSelectAll: boolean;
93
+ dynamicFilterMode: boolean;
92
94
  triggerLabel: string;
93
95
  triggerHelperText: string;
94
96
  triggerFeedbackText: string;
@@ -153,6 +155,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
153
155
  keepOpen?: boolean;
154
156
  autoSize?: boolean;
155
157
  disableKeyboardEvents?: boolean;
158
+ dynamicFilterMode?: boolean;
156
159
  isOnTop?: boolean;
157
160
  distance?: number;
158
161
  container?: string;
@@ -225,6 +228,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
225
228
  disableKeyboardEvents: boolean;
226
229
  testId: string;
227
230
  showSelectAll: boolean;
231
+ dynamicFilterMode: boolean;
228
232
  triggerLabel: string;
229
233
  triggerHelperText: string;
230
234
  triggerFeedbackText: string;
@@ -291,6 +295,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
291
295
  keepOpen: boolean;
292
296
  autoSize: boolean;
293
297
  disableKeyboardEvents: boolean;
298
+ dynamicFilterMode: boolean;
294
299
  isOnTop: boolean;
295
300
  triggerLabel: string;
296
301
  triggerHelperText: string;
@@ -1,8 +1,8 @@
1
1
  import o from "./DropdownV4.vue2.js";
2
- /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css"; //*');
2
+ /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_48ba81e5_lang.css"; //*');
4
4
  // import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-75002075"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-48ba81e5"]]);
6
6
  export {
7
7
  r as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as U, openBlock as n, createElementBlock as r, mergeProps as y, unref as t, renderSlot as f, createElementVNode as m, createVNode as i, withCtx as u, Transition as me, normalizeClass as O, normalizeStyle as pe, createTextVNode as T, createCommentVNode as a, isRef as ge, toDisplayString as G, withModifiers as W, Fragment as Te, renderList as ke, toRaw as C, createBlock as X, resolveDynamicComponent as he } from "vue";
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_48ba81e5_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as U, openBlock as n, createElementBlock as r, mergeProps as y, unref as t, renderSlot as f, createElementVNode as m, createVNode as i, withCtx as u, Transition as me, normalizeClass as O, normalizeStyle as pe, createTextVNode as T, createCommentVNode as a, isRef as ge, toDisplayString as G, withModifiers as W, Fragment as Te, renderList as ke, toRaw as C, createBlock as X, resolveDynamicComponent as he } from "vue";
2
2
  import L from "../../button/v4/ButtonV4.vue.js";
3
3
  import "../../button/v4/IconButtonV4.vue.js";
4
4
  import "../../button/v4/ButtonGroup.vue.js";
@@ -56,6 +56,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
56
56
  keepOpen: { type: Boolean, default: !1 },
57
57
  autoSize: { type: Boolean, default: !1 },
58
58
  disableKeyboardEvents: { type: Boolean, default: !1 },
59
+ dynamicFilterMode: { type: Boolean, default: !1 },
59
60
  isOnTop: { type: Boolean, default: !1 },
60
61
  distance: { default: 0 },
61
62
  container: { default: "body" },
@@ -54,36 +54,66 @@ export declare const dropDownStoryArgs: {
54
54
  control: {
55
55
  type: string;
56
56
  };
57
+ table: {
58
+ category: string;
59
+ };
57
60
  };
58
61
  placeholder: {
59
62
  control: {
60
63
  type: string;
61
64
  };
65
+ table: {
66
+ category: string;
67
+ };
62
68
  };
63
69
  disabled: {
64
70
  control: {
65
71
  type: string;
66
72
  };
73
+ table: {
74
+ category: string;
75
+ };
67
76
  };
68
77
  mandatory: {
69
78
  control: {
70
79
  type: string;
71
80
  };
81
+ table: {
82
+ category: string;
83
+ };
72
84
  };
73
85
  loading: {
74
86
  control: {
75
87
  type: string;
76
88
  };
89
+ table: {
90
+ category: string;
91
+ };
77
92
  };
78
93
  testId: {
79
94
  control: {
80
95
  type: string;
81
96
  };
97
+ table: {
98
+ category: string;
99
+ };
82
100
  };
83
101
  isOpen: {
84
102
  control: {
85
103
  type: string;
86
104
  };
105
+ table: {
106
+ category: string;
107
+ };
108
+ };
109
+ dynamicFilterMode: {
110
+ control: {
111
+ type: string;
112
+ };
113
+ table: {
114
+ category: string;
115
+ };
116
+ description: string;
87
117
  };
88
118
  isOnTop: {
89
119
  control: {
@@ -1736,6 +1736,7 @@ declare const DropdownTypes: () => (({
1736
1736
  keepOpen: boolean;
1737
1737
  autoSize: boolean;
1738
1738
  disableKeyboardEvents: boolean;
1739
+ dynamicFilterMode: boolean;
1739
1740
  isOnTop: boolean;
1740
1741
  triggerLabel: string;
1741
1742
  triggerHelperText: string;
@@ -1872,6 +1873,10 @@ declare const DropdownTypes: () => (({
1872
1873
  type: import("vue").PropType<boolean>;
1873
1874
  default: boolean;
1874
1875
  };
1876
+ dynamicFilterMode: {
1877
+ type: import("vue").PropType<boolean>;
1878
+ default: boolean;
1879
+ };
1875
1880
  isOnTop: {
1876
1881
  type: import("vue").PropType<boolean>;
1877
1882
  default: boolean;
@@ -2025,7 +2030,7 @@ declare const DropdownTypes: () => (({
2025
2030
  onUnsavedSelectionUpdate?: (value: unknown[]) => any;
2026
2031
  onOpened?: () => any;
2027
2032
  onClosed?: () => any;
2028
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
2033
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
2029
2034
  $attrs: {
2030
2035
  [x: string]: unknown;
2031
2036
  };
@@ -2141,6 +2146,10 @@ declare const DropdownTypes: () => (({
2141
2146
  type: import("vue").PropType<boolean>;
2142
2147
  default: boolean;
2143
2148
  };
2149
+ dynamicFilterMode: {
2150
+ type: import("vue").PropType<boolean>;
2151
+ default: boolean;
2152
+ };
2144
2153
  isOnTop: {
2145
2154
  type: import("vue").PropType<boolean>;
2146
2155
  default: boolean;
@@ -2333,6 +2342,7 @@ declare const DropdownTypes: () => (({
2333
2342
  keepOpen: boolean;
2334
2343
  autoSize: boolean;
2335
2344
  disableKeyboardEvents: boolean;
2345
+ dynamicFilterMode: boolean;
2336
2346
  isOnTop: boolean;
2337
2347
  triggerLabel: string;
2338
2348
  triggerHelperText: string;
@@ -2489,6 +2499,10 @@ declare const DropdownTypes: () => (({
2489
2499
  type: import("vue").PropType<boolean>;
2490
2500
  default: boolean;
2491
2501
  };
2502
+ dynamicFilterMode: {
2503
+ type: import("vue").PropType<boolean>;
2504
+ default: boolean;
2505
+ };
2492
2506
  isOnTop: {
2493
2507
  type: import("vue").PropType<boolean>;
2494
2508
  default: boolean;
@@ -2751,6 +2765,10 @@ declare const DropdownTypes: () => (({
2751
2765
  type: import("vue").PropType<boolean>;
2752
2766
  default: boolean;
2753
2767
  };
2768
+ dynamicFilterMode: {
2769
+ type: import("vue").PropType<boolean>;
2770
+ default: boolean;
2771
+ };
2754
2772
  isOnTop: {
2755
2773
  type: import("vue").PropType<boolean>;
2756
2774
  default: boolean;
@@ -2943,6 +2961,7 @@ declare const DropdownTypes: () => (({
2943
2961
  keepOpen: boolean;
2944
2962
  autoSize: boolean;
2945
2963
  disableKeyboardEvents: boolean;
2964
+ dynamicFilterMode: boolean;
2946
2965
  isOnTop: boolean;
2947
2966
  triggerLabel: string;
2948
2967
  triggerHelperText: string;
package/index.d.ts CHANGED
@@ -16300,6 +16300,7 @@ declare const _default: {
16300
16300
  keepOpen: boolean;
16301
16301
  autoSize: boolean;
16302
16302
  disableKeyboardEvents: boolean;
16303
+ dynamicFilterMode: boolean;
16303
16304
  isOnTop: boolean;
16304
16305
  triggerLabel: string;
16305
16306
  triggerHelperText: string;
@@ -16436,6 +16437,10 @@ declare const _default: {
16436
16437
  type: import("vue").PropType<boolean>;
16437
16438
  default: boolean;
16438
16439
  };
16440
+ dynamicFilterMode: {
16441
+ type: import("vue").PropType<boolean>;
16442
+ default: boolean;
16443
+ };
16439
16444
  isOnTop: {
16440
16445
  type: import("vue").PropType<boolean>;
16441
16446
  default: boolean;
@@ -16589,7 +16594,7 @@ declare const _default: {
16589
16594
  onUnsavedSelectionUpdate?: (value: unknown[]) => any;
16590
16595
  onOpened?: () => any;
16591
16596
  onClosed?: () => any;
16592
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
16597
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
16593
16598
  $attrs: {
16594
16599
  [x: string]: unknown;
16595
16600
  };
@@ -16705,6 +16710,10 @@ declare const _default: {
16705
16710
  type: import("vue").PropType<boolean>;
16706
16711
  default: boolean;
16707
16712
  };
16713
+ dynamicFilterMode: {
16714
+ type: import("vue").PropType<boolean>;
16715
+ default: boolean;
16716
+ };
16708
16717
  isOnTop: {
16709
16718
  type: import("vue").PropType<boolean>;
16710
16719
  default: boolean;
@@ -16897,6 +16906,7 @@ declare const _default: {
16897
16906
  keepOpen: boolean;
16898
16907
  autoSize: boolean;
16899
16908
  disableKeyboardEvents: boolean;
16909
+ dynamicFilterMode: boolean;
16900
16910
  isOnTop: boolean;
16901
16911
  triggerLabel: string;
16902
16912
  triggerHelperText: string;
@@ -17053,6 +17063,10 @@ declare const _default: {
17053
17063
  type: import("vue").PropType<boolean>;
17054
17064
  default: boolean;
17055
17065
  };
17066
+ dynamicFilterMode: {
17067
+ type: import("vue").PropType<boolean>;
17068
+ default: boolean;
17069
+ };
17056
17070
  isOnTop: {
17057
17071
  type: import("vue").PropType<boolean>;
17058
17072
  default: boolean;
@@ -17315,6 +17329,10 @@ declare const _default: {
17315
17329
  type: import("vue").PropType<boolean>;
17316
17330
  default: boolean;
17317
17331
  };
17332
+ dynamicFilterMode: {
17333
+ type: import("vue").PropType<boolean>;
17334
+ default: boolean;
17335
+ };
17318
17336
  isOnTop: {
17319
17337
  type: import("vue").PropType<boolean>;
17320
17338
  default: boolean;
@@ -17507,6 +17525,7 @@ declare const _default: {
17507
17525
  keepOpen: boolean;
17508
17526
  autoSize: boolean;
17509
17527
  disableKeyboardEvents: boolean;
17528
+ dynamicFilterMode: boolean;
17510
17529
  isOnTop: boolean;
17511
17530
  triggerLabel: string;
17512
17531
  triggerHelperText: string;
@@ -20902,6 +20921,7 @@ declare const _default: {
20902
20921
  keepOpen: boolean;
20903
20922
  autoSize: boolean;
20904
20923
  disableKeyboardEvents: boolean;
20924
+ dynamicFilterMode: boolean;
20905
20925
  isOnTop: boolean;
20906
20926
  triggerLabel: string;
20907
20927
  triggerHelperText: string;
@@ -21038,6 +21058,10 @@ declare const _default: {
21038
21058
  type: import("vue").PropType<boolean>;
21039
21059
  default: boolean;
21040
21060
  };
21061
+ dynamicFilterMode: {
21062
+ type: import("vue").PropType<boolean>;
21063
+ default: boolean;
21064
+ };
21041
21065
  isOnTop: {
21042
21066
  type: import("vue").PropType<boolean>;
21043
21067
  default: boolean;
@@ -21191,7 +21215,7 @@ declare const _default: {
21191
21215
  onUnsavedSelectionUpdate?: (value: unknown[]) => any;
21192
21216
  onOpened?: () => any;
21193
21217
  onClosed?: () => any;
21194
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
21218
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
21195
21219
  $attrs: {
21196
21220
  [x: string]: unknown;
21197
21221
  };
@@ -21307,6 +21331,10 @@ declare const _default: {
21307
21331
  type: import("vue").PropType<boolean>;
21308
21332
  default: boolean;
21309
21333
  };
21334
+ dynamicFilterMode: {
21335
+ type: import("vue").PropType<boolean>;
21336
+ default: boolean;
21337
+ };
21310
21338
  isOnTop: {
21311
21339
  type: import("vue").PropType<boolean>;
21312
21340
  default: boolean;
@@ -21499,6 +21527,7 @@ declare const _default: {
21499
21527
  keepOpen: boolean;
21500
21528
  autoSize: boolean;
21501
21529
  disableKeyboardEvents: boolean;
21530
+ dynamicFilterMode: boolean;
21502
21531
  isOnTop: boolean;
21503
21532
  triggerLabel: string;
21504
21533
  triggerHelperText: string;
@@ -21655,6 +21684,10 @@ declare const _default: {
21655
21684
  type: import("vue").PropType<boolean>;
21656
21685
  default: boolean;
21657
21686
  };
21687
+ dynamicFilterMode: {
21688
+ type: import("vue").PropType<boolean>;
21689
+ default: boolean;
21690
+ };
21658
21691
  isOnTop: {
21659
21692
  type: import("vue").PropType<boolean>;
21660
21693
  default: boolean;
@@ -21917,6 +21950,10 @@ declare const _default: {
21917
21950
  type: import("vue").PropType<boolean>;
21918
21951
  default: boolean;
21919
21952
  };
21953
+ dynamicFilterMode: {
21954
+ type: import("vue").PropType<boolean>;
21955
+ default: boolean;
21956
+ };
21920
21957
  isOnTop: {
21921
21958
  type: import("vue").PropType<boolean>;
21922
21959
  default: boolean;
@@ -22109,6 +22146,7 @@ declare const _default: {
22109
22146
  keepOpen: boolean;
22110
22147
  autoSize: boolean;
22111
22148
  disableKeyboardEvents: boolean;
22149
+ dynamicFilterMode: boolean;
22112
22150
  isOnTop: boolean;
22113
22151
  triggerLabel: string;
22114
22152
  triggerHelperText: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-rc.0",
3
+ "version": "2.1.12-rc.1",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .button-filter-dropdown-trigger[data-v-1aa6df01]{border-radius:var(--border-radius-md);transition:all .2s ease;color:var(--text-primary);display:inline-flex;padding:3px 7px;align-items:center}.button-filter-dropdown-trigger[data-v-1aa6df01]:hover{cursor:pointer;background:var(--action-hover)}.button-filter-dropdown-trigger.outlined[data-v-1aa6df01]{border:1px solid var(--default-outlined-border)}.button-filter-dropdown-trigger.outlined[data-v-1aa6df01]:hover{border:1px solid var(--action-active)}.button-filter-dropdown-trigger.outlined.disabled[data-v-1aa6df01]{background:transparent;border:1px solid var(--default-outlined-border)}.button-filter-dropdown-trigger.open[data-v-1aa6df01]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-filter-dropdown-trigger.open[data-v-1aa6df01]:hover{background:var(--action-selected)}.button-filter-dropdown-trigger.disabled[data-v-1aa6df01]{cursor:default;color:var(--text-disabled)}.button-filter-dropdown-trigger.disabled[data-v-1aa6df01]:hover{background:transparent}.start-icon[data-v-1aa6df01]{color:var(--action-active);margin-right:var(--spacing-50)}.end-icon[data-v-1aa6df01]{color:var(--action-active);margin-left:var(--spacing-50)}
@@ -1 +0,0 @@
1
- .custom-list-area[data-v-8e026669]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-8e026669]{width:100%}.contain-accept[data-v-8e026669]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-8e026669]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-8e026669]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -1 +0,0 @@
1
- .default-dropdown-wrapper[data-v-73bf9b5b]{position:relative}.dropdown-trigger[data-v-73bf9b5b]{width:100%;padding:.3125rem .4375rem;display:flex;column-gap:.25rem;max-width:100%;box-sizing:border-box;border-radius:var(--border-radius-md);border:1px solid var(--action-outlined-border);background:var(--default-main);cursor:pointer;user-select:none;position:relative}.dropdown-trigger[data-v-73bf9b5b]:hover{border:1px solid var(--action-active);background:var(--action-hover)}.dropdown-trigger.small[data-v-73bf9b5b]{padding:.1875rem .4375rem}.dropdown-trigger.large[data-v-73bf9b5b]{padding:.5625rem .4375rem}.dropdown-trigger.disabled[data-v-73bf9b5b]{border:1px solid var(--action-outlined-border, #bbb);background:var(--action-disabled-background, #f1f1f1);cursor:not-allowed}.dropdown-trigger.disabled .displayed-value[data-v-73bf9b5b],.dropdown-trigger.disabled .caret-down[data-v-73bf9b5b]{color:var(--text-disabled)}.dropdown-trigger.open[data-v-73bf9b5b]{padding:.25rem .375rem;border:2px solid var(--primary-main)}.dropdown-trigger.open.small[data-v-73bf9b5b]{padding:.125rem .375rem}.dropdown-trigger.open.large[data-v-73bf9b5b]{padding:.5rem .375rem}.dropdown-trigger.state-error[data-v-73bf9b5b],.dropdown-trigger.state-success[data-v-73bf9b5b],.dropdown-trigger.state-warning[data-v-73bf9b5b]{padding:4px 6px}.dropdown-trigger.state-error.small[data-v-73bf9b5b],.dropdown-trigger.state-success.small[data-v-73bf9b5b],.dropdown-trigger.state-warning.small[data-v-73bf9b5b]{padding:.1875rem .4375rem}.dropdown-trigger.state-error.large[data-v-73bf9b5b],.dropdown-trigger.state-success.large[data-v-73bf9b5b],.dropdown-trigger.state-warning.large[data-v-73bf9b5b]{padding:.5625rem .4375rem}.dropdown-trigger.state-error[data-v-73bf9b5b]{border:2px solid var(--error-main)}.dropdown-trigger.state-success[data-v-73bf9b5b]{border:2px solid var(--success-main)}.dropdown-trigger.state-warning[data-v-73bf9b5b]{border:2px solid var(--warning-dark)}.dropdown-trigger .caret-down[data-v-73bf9b5b]{color:var(--action-active)}.content[data-v-73bf9b5b]{display:flex;flex:1;gap:.25rem;align-items:center;color:var(--text-primary)}.content .displayed-value[data-v-73bf9b5b]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content .image[data-v-73bf9b5b]{width:20px;height:20px;flex:none}.content .image img[data-v-73bf9b5b]{border-radius:4px;width:100%;height:100%}.content .start-icon[data-v-73bf9b5b]{display:flex;color:var(--action-active)}.content .status-dot[data-v-73bf9b5b]{padding-right:.25rem}.content .status-dot>div[data-v-73bf9b5b]{position:relative;top:-1px}.dropdown-field-label[data-v-73bf9b5b]{color:var(--text-primary)}.dropdown-field-help-text[data-v-73bf9b5b]{margin-top:4px;position:absolute}.flag[data-v-73bf9b5b]{width:16px;height:16px}.flag img[data-v-73bf9b5b]{width:16px;height:16px;border-radius:50%}
@@ -1 +0,0 @@
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}