@ironsource/shared-ui 2.1.11-test.92 → 2.1.11-test.99

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 (60) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +1 -0
  2. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_b2684c5f_lang.css +1 -0
  3. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  4. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +1 -0
  5. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
  6. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
  7. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
  8. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
  9. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  10. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
  11. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
  12. package/components/chart/Chart.vue.d.ts +0 -5
  13. package/components/chart/Chart.vue.js +3 -3
  14. package/components/chart/Chart.vue2.js +66 -69
  15. package/components/chart/index.d.ts +1 -20
  16. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +8 -5
  17. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  18. package/components/dropdown/v4/ConditionalDropdown.vue2.js +89 -88
  19. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  20. package/components/dropdown/v4/TreeDropdown.vue2.js +86 -86
  21. package/components/dropdown/v4/index.d.ts +12 -5
  22. package/components/icon/v4/IconFlag.vue.js +3 -3
  23. package/components/icon/v4/IconFlag.vue2.js +1 -1
  24. package/components/input/v4/TextField.vue.js +3 -3
  25. package/components/input/v4/TextField.vue2.js +164 -184
  26. package/components/sortableList/SortableItem.vue.d.ts +0 -5
  27. package/components/sortableList/SortableItem.vue.js +3 -3
  28. package/components/sortableList/SortableItem.vue2.js +65 -80
  29. package/components/sortableList/SortableList.vue.d.ts +0 -16
  30. package/components/sortableList/SortableList.vue.js +3 -3
  31. package/components/sortableList/SortableList.vue2.js +87 -100
  32. package/components/sortableList/index.d.ts +1 -59
  33. package/components/table/v4/DataGrid.vue.d.ts +1 -1
  34. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  35. package/components/table/v4/index.d.ts +40 -40
  36. package/components/table-cells/common/Editable.common.js +7 -8
  37. package/components/table-cells/common/EditableContext.d.ts +0 -1
  38. package/components/table-cells/v4/EditableV4.vue.d.ts +0 -5
  39. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  40. package/components/table-cells/v4/EditableV4.vue2.js +10 -11
  41. package/components/table-cells/v4/index.d.ts +1 -20
  42. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  43. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  44. package/components/typography/v4/Typography.vue.js +4 -4
  45. package/components/typography/v4/Typography.vue2.js +1 -1
  46. package/index.d.ts +108 -248
  47. package/index.js +1 -1
  48. package/package.json +1 -1
  49. package/testids/index.d.ts +0 -1
  50. package/testids/index.js +13 -13
  51. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
  52. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css +0 -1
  53. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +0 -1
  54. package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +0 -1
  55. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +0 -1
  56. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  57. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  58. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  59. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  60. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +0 -1
@@ -1,21 +1,21 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css"; import { defineComponent as j, computed as k, ref as s, watch as O, onMounted as W, openBlock as D, createBlock as q, unref as d, withCtx as f, createVNode as g, mergeProps as G, createElementVNode as H, isRef as J, normalizeProps as X, guardReactiveProps as Y, createElementBlock as Z, createTextVNode as _, toDisplayString as ee, createCommentVNode as le } from "vue";
1
+ import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_b2684c5f_lang.css"; import { defineComponent as $, computed as O, ref as s, watch as C, onMounted as j, openBlock as L, createBlock as W, unref as d, withCtx as f, createVNode as y, mergeProps as q, createElementVNode as G, isRef as H, normalizeProps as J, guardReactiveProps as X, createElementBlock as Y, createTextVNode as Z, toDisplayString as _, createCommentVNode as ee } from "vue";
2
2
  import N from "./DropdownV4.vue.js";
3
3
  import "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
- import oe from "./ChipDropdownTrigger.vue.js";
5
+ import le from "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
- import ae from "./ButtonDropdownTrigger.vue.js";
7
+ import oe from "./ButtonDropdownTrigger.vue.js";
8
8
  import "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
10
  import "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
- import te from "../../search/v4/SearchV4.vue.js";
13
- import ne from "../../typography/v4/Typography.vue.js";
14
- import { useDebounceFn as ie } from "@vueuse/core";
15
- const ue = { class: "conditional-container" }, re = {
12
+ import ae from "../../search/v4/SearchV4.vue.js";
13
+ import te from "../../typography/v4/Typography.vue.js";
14
+ import { useDebounceFn as ne } from "@vueuse/core";
15
+ const ie = { class: "conditional-container" }, ue = {
16
16
  key: 0,
17
17
  class: "custom-list-area"
18
- }, we = /* @__PURE__ */ j({
18
+ }, ke = /* @__PURE__ */ $({
19
19
  __name: "ConditionalDropdown",
20
20
  props: {
21
21
  selectedCondition: null,
@@ -37,49 +37,50 @@ const ue = { class: "conditional-container" }, re = {
37
37
  optionFlagKey: { default: "" },
38
38
  optionIconKey: { default: "" },
39
39
  optionImageKey: { default: "" },
40
- optionIconType: { default: null }
40
+ optionIconType: { default: null },
41
+ loadingOverride: { type: Boolean, default: !1 }
41
42
  },
42
- emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
43
- setup(r, { emit: h }) {
44
- const e = r, S = k({
43
+ emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
44
+ setup(u, { emit: k }) {
45
+ const e = u, h = O({
45
46
  get: () => e.appliedSelections,
46
47
  set: (l) => {
47
- h("update:appliedSelections", l);
48
+ k("update:appliedSelections", l);
48
49
  }
49
- }), n = k({
50
+ }), n = O({
50
51
  get: () => e.selectedCondition || e.conditionalOptions[0],
51
52
  set: (l) => {
52
- h("update:selectedCondition", l);
53
+ k("update:selectedCondition", l);
53
54
  }
54
- }), w = s(null), c = s(!0), a = s([]), u = s(
55
- Array.isArray(e.appliedSelections) ? e.appliedSelections : [e.appliedSelections]
56
- ), K = s(!0), p = s(!1), b = s(!1), i = s(e.searchQuery), L = s(""), m = s(e.label), T = s([]), F = k(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), U = k(() => {
55
+ }), w = s(null), c = s(!0), a = s([]), r = s(
56
+ Array.isArray(e.appliedSelections) ? e.appliedSelections : e.appliedSelections ? [e.appliedSelections] : []
57
+ ), K = s(!0), p = s(!1), S = s(!1), i = s(e.searchQuery), F = s(""), m = s(e.label), T = s([]), B = O(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), U = O(() => {
57
58
  const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
58
59
  if (e.groupedOptions) {
59
60
  let o = 0;
60
- return a.value.forEach((y) => {
61
- y.options && (o = o + y.options.length);
61
+ return a.value.forEach((g) => {
62
+ g.options && (o = o + g.options.length);
62
63
  }), o > 4 ? o : l;
63
64
  }
64
65
  return t > l ? t : l;
65
- }), B = (l, t) => {
66
- if (e.infiniteLoading && n.value.multi && Array.isArray(u.value) && u.value.length && l && t.length) {
67
- const o = [], y = u.value.filter(
66
+ }), I = (l, t) => {
67
+ if (e.infiniteLoading && n.value.multi && Array.isArray(r.value) && r.value.length && l && t.length) {
68
+ const o = [], g = r.value.filter(
68
69
  (v) => v[e.optionNameKey].includes(l)
69
70
  );
70
71
  return t.forEach((v) => {
71
- y.find(
72
- ($) => $[e.comparingKey] === v[e.comparingKey]
72
+ g.find(
73
+ (z) => z[e.comparingKey] === v[e.comparingKey]
73
74
  ) && o.push(v[e.comparingKey]);
74
- }), y.filter(
75
+ }), g.filter(
75
76
  (v) => !o.includes(v[e.comparingKey])
76
77
  );
77
78
  }
78
79
  return [];
79
- }, I = async (l) => {
80
+ }, A = async (l) => {
80
81
  try {
81
82
  p.value = !0;
82
- const t = await e.fetchFnCallback(l), o = B(
83
+ const t = await e.fetchFnCallback(l), o = I(
83
84
  l,
84
85
  t
85
86
  );
@@ -90,16 +91,16 @@ const ue = { class: "conditional-container" }, re = {
90
91
  }, M = async () => {
91
92
  if (e.infiniteLoading)
92
93
  try {
93
- b.value = !0;
94
+ S.value = !0;
94
95
  const l = await e.loadMoreFn();
95
- b.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
96
+ S.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
96
97
  } catch (l) {
97
- b.value = !1, console.error("Error fetching data:", l);
98
+ S.value = !1, console.error("Error fetching data:", l);
98
99
  }
99
- }, E = ie(
100
- I,
100
+ }, E = ne(
101
+ A,
101
102
  e.fetchDataDebounceTime
102
- ), C = (l) => {
103
+ ), b = (l) => {
103
104
  l.length >= e.minCharsToStart ? (E(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
104
105
  }, V = () => {
105
106
  i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
@@ -116,124 +117,124 @@ const ue = { class: "conditional-container" }, re = {
116
117
  },
117
118
  ...a.value
118
119
  ] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
119
- }, A = () => {
120
- c.value && u.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
120
+ }, D = () => {
121
+ c.value && r.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
121
122
  };
122
- O(i, () => {
123
- C(i.value);
124
- }), O([n, a], () => {
123
+ C(i, () => {
124
+ b(i.value);
125
+ }), C([n, a], () => {
125
126
  V();
126
- });
127
+ }), C(
128
+ () => e.loadingOverride,
129
+ (l, t) => {
130
+ !l && t && !e.infiniteLoading && A(e.searchQuery);
131
+ }
132
+ );
127
133
  const x = () => {
128
- c.value && u.value.length === 0 ? (n.value = null, S.value = [], n.value = null) : (L.value = i.value, S.value = c.value ? [...u.value] : { ...u.value }, K.value = c.value), A();
134
+ c.value && r.value.length === 0 ? (n.value = null, h.value = [], n.value = null) : (F.value = i.value, h.value = c.value ? [...r.value] : { ...r.value }, K.value = c.value), D();
129
135
  };
130
- O(n, (l, t) => {
131
- n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (u.value = e.appliedSelections), setTimeout(() => {
136
+ C(n, (l, t) => {
137
+ n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (r.value = e.appliedSelections), setTimeout(() => {
132
138
  p.value = !1, c.value = !0;
133
139
  }, 100)) : setTimeout(() => {
134
140
  c.value = !1;
135
141
  }, 100);
136
142
  });
137
- const P = (l) => {
143
+ const Q = (l) => {
138
144
  T.value = l;
139
- }, Q = () => {
140
- u.value = [], S.value = [], n.value = null, m.value = e.label, i.value = "", h("clear");
145
+ }, P = () => {
146
+ r.value = [], h.value = [], n.value = null, m.value = e.label, i.value = "", k("clear");
141
147
  }, R = (l) => {
142
- l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value && C(i.value));
143
- };
144
- W(() => {
145
- (e.searchQuery || !e.infiniteLoading) && C(e.searchQuery), A();
146
- });
147
- const z = () => {
148
- h("closed");
148
+ l && n.value.multi && e.infiniteLoading && r.value && (a.value = r.value, i.value && b(i.value));
149
149
  };
150
- return (l, t) => (D(), q(d(N), {
150
+ return j(() => {
151
+ (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), D();
152
+ }), (l, t) => (L(), W(d(N), {
151
153
  ref_key: "dropdownRef",
152
154
  ref: w,
153
- selected: u.value,
154
- "onUpdate:selected": t[2] || (t[2] = (o) => u.value = o),
155
+ selected: r.value,
156
+ "onUpdate:selected": t[2] || (t[2] = (o) => r.value = o),
155
157
  "predefined-trigger": "chip",
156
- "display-value": (o) => o?.[r.optionNameKey],
158
+ "display-value": (o) => o?.[u.optionNameKey],
157
159
  multi: c.value,
158
160
  options: a.value,
159
161
  placeholder: m.value,
160
162
  "search-placeholder": "Search",
161
- "option-name-key": r.optionNameKey,
163
+ "option-name-key": u.optionNameKey,
162
164
  "with-conditions": "",
163
165
  "inline-search": "",
164
166
  "custom-number-of-displayed-options": d(U),
165
167
  "options-list-width": "330px",
166
- loading: p.value,
167
- "load-more-loading": b.value,
168
- "comparing-key": r.comparingKey,
169
- "is-open": r.isOpen,
170
- "infinite-loading": r.infiniteLoading,
171
- "show-select-all": !r.infiniteLoading && !i.value,
172
- "grouped-options": r.groupedOptions,
173
- "option-flag-key": r.optionFlagKey,
174
- "option-image-key": r.optionImageKey,
175
- "option-icon-key": r.optionIconKey,
176
- "option-icon-type": r.optionIconType,
168
+ loading: p.value || u.loadingOverride,
169
+ "load-more-loading": S.value,
170
+ "comparing-key": u.comparingKey,
171
+ "is-open": u.isOpen,
172
+ "infinite-loading": u.infiniteLoading,
173
+ "show-select-all": !u.infiniteLoading && !i.value,
174
+ "grouped-options": u.groupedOptions,
175
+ "option-flag-key": u.optionFlagKey,
176
+ "option-image-key": u.optionImageKey,
177
+ "option-icon-key": u.optionIconKey,
178
+ "option-icon-type": u.optionIconType,
177
179
  "onUpdate:isOpen": R,
178
- onOnsearch: C,
180
+ onOnsearch: b,
179
181
  onApply: x,
180
182
  onLoadMore: M,
181
- onUnsavedSelectionUpdate: P,
182
- onClosed: z
183
+ onUnsavedSelectionUpdate: Q
183
184
  }, {
184
185
  "dropdown-trigger": f(({ defaultTriggerProps: o }) => [
185
- g(d(oe), G(o, {
186
+ y(d(le), q(o, {
186
187
  label: m.value,
187
- "selected-option": d(S),
188
+ "selected-option": d(h),
188
189
  multi: K.value,
189
190
  "cancel-all-selected-display": "",
190
- "display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
191
- onClear: Q
191
+ "display-value-in-quotes": !Array.isArray(r.value) && r.value.conditionalOptions,
192
+ onClear: P
192
193
  }), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
193
194
  ]),
194
195
  "dropdown-conditions": f(() => [
195
- H("div", ue, [
196
- g(d(N), {
196
+ G("div", ie, [
197
+ y(d(N), {
197
198
  selected: d(n),
198
- "onUpdate:selected": t[0] || (t[0] = (o) => J(n) ? n.value = o : null),
199
- options: r.conditionalOptions,
199
+ "onUpdate:selected": t[0] || (t[0] = (o) => H(n) ? n.value = o : null),
200
+ options: u.conditionalOptions,
200
201
  "option-name-key": "label",
201
202
  "display-value": (o) => o?.label,
202
203
  container: ".conditional-container",
203
204
  size: "small"
204
205
  }, {
205
206
  "dropdown-trigger": f(({ buttonTriggerProps: o }) => [
206
- g(d(ae), X(Y(o)), null, 16)
207
+ y(d(oe), J(X(o)), null, 16)
207
208
  ]),
208
209
  _: 1
209
210
  }, 8, ["selected", "options", "display-value"])
210
211
  ])
211
212
  ]),
212
213
  "inline-search": f(() => [
213
- g(d(te), {
214
+ y(d(ae), {
214
215
  modelValue: i.value,
215
216
  "onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
216
217
  class: "inline-search",
217
218
  placeholder: "Search",
218
219
  variant: "transparent",
219
220
  size: "md",
220
- "auto-focus": r.autoFocusSearch
221
+ "auto-focus": u.autoFocusSearch
221
222
  }, null, 8, ["modelValue", "auto-focus"])
222
223
  ]),
223
224
  "custom-list-area": f(() => [
224
- !a.value.length && !p.value ? (D(), Z("div", re, [
225
- g(ne, { variant: "body1" }, {
225
+ !a.value.length && !p.value ? (L(), Y("div", ue, [
226
+ y(te, { variant: "body1" }, {
226
227
  default: f(() => [
227
- _(ee(d(F)), 1)
228
+ Z(_(d(B)), 1)
228
229
  ]),
229
230
  _: 1
230
231
  })
231
- ])) : le("", !0)
232
+ ])) : ee("", !0)
232
233
  ]),
233
234
  _: 1
234
235
  }, 8, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key", "option-image-key", "option-icon-key", "option-icon-type"]));
235
236
  }
236
237
  });
237
238
  export {
238
- we as default
239
+ ke as default
239
240
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./TreeDropdown.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b883d1fa"]]);
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bdfb0aef"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; import { defineComponent as ee, provide as ne, ref as c, computed as K, onMounted as le, watch as g, openBlock as C, createBlock as D, unref as d, withCtx as f, createVNode as I, mergeProps as z, createSlots as te, renderSlot as oe, createElementVNode as M, withModifiers as S, createTextVNode as ie, createElementBlock as B, withDirectives as de, Fragment as ae, renderList as re, vShow as se, createCommentVNode as ce } from "vue";
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css"; import { defineComponent as ee, provide as le, ref as c, computed as K, onMounted as ne, watch as g, openBlock as C, createBlock as D, unref as d, withCtx as h, createVNode as I, mergeProps as z, createSlots as te, renderSlot as oe, createElementVNode as M, withModifiers as w, createTextVNode as ie, createElementBlock as B, withDirectives as de, Fragment as ae, renderList as se, vShow as re, createCommentVNode as ce } from "vue";
2
2
  import ue from "./DropdownV4.vue.js";
3
3
  import pe from "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
@@ -7,11 +7,11 @@ import "./AppDropdownTrigger.vue.js";
7
7
  import "./ButtonDropdownTrigger.vue.js";
8
8
  import "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
- import w from "./OptionV4.vue.js";
10
+ import S from "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
12
  import { useChildOptions as ye } from "../composables/useChildOptions.js";
13
- import fe from "../../search/v4/SearchV4.vue.js";
14
- import { useTestIdAttrs as he } from "../../../utils/testIds.js";
13
+ import he from "../../search/v4/SearchV4.vue.js";
14
+ import { useTestIdAttrs as fe } from "../../../utils/testIds.js";
15
15
  import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
16
16
  const ve = {
17
17
  key: 0,
@@ -43,18 +43,18 @@ const ve = {
43
43
  },
44
44
  emits: ["update:selected", "update:isOpen"],
45
45
  setup(t, { emit: b }) {
46
- const n = t;
47
- ne("isTreeDropdown", !0);
48
- const m = c([]), u = c([]), T = c({}), O = c(!1), i = c([...n.selected]), p = c(""), x = c(!0), N = K(() => u.value.reduce((e, o) => (o[n.optionChildrenKey] && o[n.optionChildrenKey].length && o[n.optionChildrenKey].forEach(() => {
46
+ const l = t;
47
+ le("isTreeDropdown", !0);
48
+ const m = c([]), u = c([]), T = c({}), x = c(!1), i = c([...l.selected]), p = c(""), O = c(!0), N = K(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
49
49
  e = e + 1;
50
- }), o[n.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
51
- n.options.forEach((e) => {
52
- e[n.optionChildrenKey] && e[n.optionChildrenKey].length && (T.value[e[n.optionUniqueIdKey]] = [
53
- ...e[n.optionChildrenKey]
50
+ }), o[l.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
51
+ l.options.forEach((e) => {
52
+ e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (T.value[e[l.optionUniqueIdKey]] = [
53
+ ...e[l.optionChildrenKey]
54
54
  ]);
55
- }), m.value = [...n.options], u.value = [...n.options];
56
- }, { hasChildren: h, getChildren: v, allChildrenSelected: k, someChildrenSelected: P } = ye(i, n.optionChildrenKey), q = (e) => {
57
- if (h(e)) {
55
+ }), m.value = [...l.options], u.value = [...l.options];
56
+ }, { hasChildren: f, getChildren: v, allChildrenSelected: k, someChildrenSelected: P } = ye(i, l.optionChildrenKey), q = (e) => {
57
+ if (f(e)) {
58
58
  k(e) ? i.value = i.value.filter(
59
59
  (o) => !v(e).includes(o)
60
60
  ) : i.value = [
@@ -66,72 +66,72 @@ const ve = {
66
66
  i.value.includes(e) ? i.value = i.value.filter(
67
67
  (o) => o !== e
68
68
  ) : i.value = [...i.value, e];
69
- }, A = (e) => i.value.includes(e), J = (e) => 1 + (h(e) ? v(e).length : 0), j = () => {
69
+ }, A = (e) => i.value.includes(e), j = (e) => 1 + (f(e) ? v(e).length : 0), F = () => {
70
70
  b("update:selected", i.value), L.value = y.value;
71
- }, F = () => {
72
- i.value = [];
73
71
  }, G = () => {
72
+ i.value = [];
73
+ }, H = () => {
74
74
  const e = /* @__PURE__ */ new Set([]);
75
- u.value.forEach((l) => {
76
- if (n.selected?.includes(l))
77
- e.add(l);
78
- else if (l[n.optionChildrenKey] && l[n.optionChildrenKey].length) {
79
- for (const r of l[n.optionChildrenKey])
80
- if (n.selected?.includes(r)) {
81
- e.add(l);
75
+ u.value.forEach((n) => {
76
+ if (l.selected?.includes(n))
77
+ e.add(n);
78
+ else if (n[l.optionChildrenKey] && n[l.optionChildrenKey].length) {
79
+ for (const s of n[l.optionChildrenKey])
80
+ if (l.selected?.includes(s)) {
81
+ e.add(n);
82
82
  break;
83
83
  }
84
84
  }
85
85
  });
86
86
  const o = Array.from(e);
87
- return u.value.forEach((l) => {
88
- !n.selected.includes(l) && !e.has(l) && o.push(l);
87
+ return u.value.forEach((n) => {
88
+ !l.selected.includes(n) && !e.has(n) && o.push(n);
89
89
  }), o;
90
90
  };
91
- le(() => {
92
- O.value || (U(), O.value = !0, n.preExpandedOptions && n.preExpandedOptions.forEach((e) => {
91
+ ne(() => {
92
+ x.value || (U(), x.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
93
93
  a.value[e] = 1;
94
94
  }));
95
95
  }), g(
96
- () => n.options,
96
+ () => l.options,
97
97
  () => {
98
98
  U();
99
99
  }
100
100
  ), g(
101
- () => n.selected,
102
- (e, o) => {
103
- JSON.stringify(e) !== JSON.stringify(o) && (i.value = [...n.selected]);
101
+ () => l.selected,
102
+ () => {
103
+ i.value = [...l.selected];
104
104
  }
105
105
  );
106
- const y = K(() => i.value.length < N.value ? !1 : i.value.length === N.value), H = K(() => !y.value && i.value.length > 0), L = c(y.value);
106
+ const y = K(() => i.value.length < N.value ? !1 : i.value.length === N.value), J = K(() => !y.value && i.value.length > 0), L = c(y.value);
107
107
  g(
108
- () => n.isOpen,
108
+ () => l.isOpen,
109
109
  () => {
110
- n.isOpen ? m.value = G() : (i.value = [...n.selected], p.value = "");
110
+ l.isOpen ? m.value = H() : (i.value = [...l.selected], p.value = "");
111
111
  }
112
112
  );
113
113
  const a = c({}), Q = (e) => {
114
- a.value[e[n.optionUniqueIdKey]] ? delete a.value[e[n.optionUniqueIdKey]] : a.value[e[n.optionUniqueIdKey]] = 1;
114
+ a.value[e[l.optionUniqueIdKey]] ? delete a.value[e[l.optionUniqueIdKey]] : a.value[e[l.optionUniqueIdKey]] = 1;
115
115
  };
116
116
  function R(e, o) {
117
- const l = e.toLowerCase(), r = [];
118
- return o.value.forEach((s) => {
119
- const E = s[n.optionNameKey].toLowerCase().includes(l), V = T.value[s[n.optionUniqueIdKey]]?.filter(
120
- (_) => _[n.optionNameKey].toLowerCase().includes(l)
117
+ const n = e.toLowerCase(), s = [];
118
+ return o.value.forEach((r) => {
119
+ const E = r[l.optionNameKey].toLowerCase().includes(n), V = T.value[r[l.optionUniqueIdKey]]?.filter(
120
+ (_) => _[l.optionNameKey].toLowerCase().includes(n)
121
121
  ) || [];
122
- (E || V.length > 0) && (s[n.optionChildrenKey] = V, r.push(s));
123
- }), r;
122
+ (E || V.length > 0) && (r[l.optionChildrenKey] = V, s.push(r));
123
+ }), s;
124
124
  }
125
125
  const W = (e) => {
126
126
  const o = R(e, u);
127
- e && (Object.keys(a.value).forEach((l) => {
128
- delete a.value[l];
129
- }), o.forEach((l) => {
130
- Array.isArray(l[n.optionChildrenKey]) && l[n.optionChildrenKey].length && (a.value[l[n.optionUniqueIdKey]] = 1);
127
+ e && (Object.keys(a.value).forEach((n) => {
128
+ delete a.value[n];
129
+ }), o.forEach((n) => {
130
+ Array.isArray(n[l.optionChildrenKey]) && n[l.optionChildrenKey].length && (a.value[n[l.optionUniqueIdKey]] = 1);
131
131
  })), m.value = o;
132
132
  }, X = K(() => {
133
- const e = n.options.length, o = n.options.reduce(
134
- (l, r) => (a.value[r[n.optionUniqueIdKey]] && (l = l + r[n.optionChildrenKey].length), l),
133
+ const e = l.options.length, o = l.options.reduce(
134
+ (n, s) => (a.value[s[l.optionUniqueIdKey]] && (n = n + s[l.optionChildrenKey].length), n),
135
135
  0
136
136
  );
137
137
  return e + o;
@@ -139,22 +139,22 @@ const ve = {
139
139
  g(
140
140
  () => p.value,
141
141
  () => {
142
- W(p.value), x.value = !p.value;
142
+ W(p.value), O.value = !p.value;
143
143
  }
144
144
  );
145
145
  const Y = () => {
146
146
  y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
147
- if (e[n.optionChildrenKey] && e[n.optionChildrenKey].length)
148
- for (const o of e[n.optionChildrenKey])
147
+ if (e[l.optionChildrenKey] && e[l.optionChildrenKey].length)
148
+ for (const o of e[l.optionChildrenKey])
149
149
  i.value = [o, ...i.value];
150
150
  else
151
151
  i.value = [e, ...i.value];
152
152
  }));
153
- }, Z = he(n.testId, $);
153
+ }, Z = fe(l.testId, $);
154
154
  return (e, o) => (C(), D(d(ue), {
155
155
  multi: "",
156
156
  class: "tree-dropdown",
157
- "show-select-all": x.value,
157
+ "show-select-all": O.value,
158
158
  "is-open": t.isOpen,
159
159
  options: m.value,
160
160
  selected: t.selected,
@@ -167,32 +167,32 @@ const ve = {
167
167
  "test-id": t.testId,
168
168
  disabled: t.disabled,
169
169
  "disable-virtual-scroll": "",
170
- "override-option-count-calculation": J,
170
+ "override-option-count-calculation": j,
171
171
  "trigger-show-all-selected-text": !1,
172
172
  "predefined-trigger": "default",
173
173
  "custom-number-of-displayed-options": d(X),
174
- "onUpdate:isOpen": o[2] || (o[2] = (l) => b("update:isOpen", l)),
175
- onApply: j,
176
- onClear: F
174
+ "onUpdate:isOpen": o[2] || (o[2] = (n) => b("update:isOpen", n)),
175
+ onApply: F,
176
+ onClear: G
177
177
  }, {
178
- "dropdown-trigger": f(({ defaultTriggerProps: l }) => [
179
- I(d(pe), z(l, {
178
+ "dropdown-trigger": h(({ defaultTriggerProps: n }) => [
179
+ I(d(pe), z(n, {
180
180
  "all-selected": L.value,
181
181
  "show-all-selected-text": ""
182
182
  }), te({ _: 2 }, [
183
183
  e.$slots["trigger-end-icon"] ? {
184
184
  name: "end-icon",
185
- fn: f(() => [
185
+ fn: h(() => [
186
186
  oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
187
187
  ]),
188
188
  key: "0"
189
189
  } : void 0
190
190
  ]), 1040, ["all-selected"])
191
191
  ]),
192
- "inline-search": f(() => [
193
- I(d(fe), {
192
+ "inline-search": h(() => [
193
+ I(d(he), {
194
194
  modelValue: p.value,
195
- "onUpdate:modelValue": o[0] || (o[0] = (l) => p.value = l),
195
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n),
196
196
  class: "tree-search",
197
197
  placeholder: t.inlineSearchPlaceholder,
198
198
  variant: "transparent",
@@ -201,31 +201,31 @@ const ve = {
201
201
  "test-id": t.testId
202
202
  }, null, 8, ["modelValue", "placeholder", "test-id"])
203
203
  ]),
204
- "select-all": f(() => [
204
+ "select-all": h(() => [
205
205
  M("li", null, [
206
- I(d(w), z({
206
+ I(d(S), z({
207
207
  "aria-selected": d(y),
208
208
  "aria-disabled": !!t.disabled,
209
209
  "selected-prop": d(y),
210
- "is-indeterminate": d(H),
210
+ "is-indeterminate": d(J),
211
211
  "is-multi": "",
212
212
  "select-all-option": ""
213
213
  }, d(Z)[d($).SELECT_ALL], {
214
- onClick: o[1] || (o[1] = S((l) => Y(), ["stop"]))
214
+ onClick: o[1] || (o[1] = w((n) => Y(), ["stop"]))
215
215
  }), {
216
- default: f(() => [
216
+ default: h(() => [
217
217
  ie(" Select all ")
218
218
  ]),
219
219
  _: 1
220
220
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
221
221
  ])
222
222
  ]),
223
- default: f(({ option: l, index: r }) => [
224
- I(d(w), {
225
- option: l,
226
- "selected-prop": d(h)(l) ? d(k)(l) : A(l),
227
- "is-indeterminate": !d(k)(l) && d(P)(l),
228
- disabled: l[t.disabledOptionKey],
223
+ default: h(({ option: n, index: s }) => [
224
+ I(d(S), {
225
+ option: n,
226
+ "selected-prop": d(f)(n) ? d(k)(n) : A(n),
227
+ "is-indeterminate": !d(k)(n) && d(P)(n),
228
+ disabled: n[t.disabledOptionKey],
229
229
  "name-key": t.optionNameKey,
230
230
  "image-key": t.optionImageKey,
231
231
  "icon-key": t.optionIconKey,
@@ -233,20 +233,20 @@ const ve = {
233
233
  "end-icon-key": t.optionEndIconKey,
234
234
  "end-icon-type": t.optionEndIconType,
235
235
  "end-text-icon-key": t.optionEndTextIconKey,
236
- "tree-main-option": d(h)(l),
237
- "tree-main-option-expanded": a.value[l[t.optionUniqueIdKey]],
236
+ "tree-main-option": d(f)(n),
237
+ "tree-main-option-expanded": a.value[n[t.optionUniqueIdKey]],
238
238
  "stop-option-click-event-propagation": "",
239
239
  "is-multi": "",
240
- onClick: S(() => q(l), ["stop"]),
240
+ onClick: w(() => q(n), ["stop"]),
241
241
  onToggleTreeCollapse: Q
242
242
  }, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-main-option", "tree-main-option-expanded", "onClick"]),
243
- d(h)(l) ? (C(), B("div", ve, [
243
+ d(f)(n) ? (C(), B("div", ve, [
244
244
  de(M("div", null, [
245
- (C(!0), B(ae, null, re(d(v)(l), (s, E) => (C(), D(d(w), {
246
- key: `${r}-${E}`,
247
- option: s,
248
- "selected-prop": A(s),
249
- disabled: s[t.disabledOptionKey],
245
+ (C(!0), B(ae, null, se(d(v)(n), (r, E) => (C(), D(d(S), {
246
+ key: `${s}-${E}`,
247
+ option: r,
248
+ "selected-prop": A(r),
249
+ disabled: r[t.disabledOptionKey],
250
250
  "name-key": t.optionNameKey,
251
251
  "image-key": t.optionImageKey,
252
252
  "icon-key": t.optionIconKey,
@@ -254,13 +254,13 @@ const ve = {
254
254
  "end-icon-key": t.optionEndIconKey,
255
255
  "end-icon-type": t.optionEndIconType,
256
256
  "end-text-icon-key": t.optionEndTextIconKey,
257
- "tree-child-shown": a.value[l[t.optionUniqueIdKey]],
257
+ "tree-child-shown": a.value[n[t.optionUniqueIdKey]],
258
258
  "stop-option-click-event-propagation": "",
259
259
  "is-multi": "",
260
- onClick: S(() => q(s), ["stop"])
260
+ onClick: w(() => q(r), ["stop"])
261
261
  }, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-child-shown", "onClick"]))), 128))
262
262
  ], 512), [
263
- [se, a.value[l[t.optionUniqueIdKey]]]
263
+ [re, a.value[n[t.optionUniqueIdKey]]]
264
264
  ])
265
265
  ])) : ce("", !0)
266
266
  ]),