@ironsource/shared-ui 2.1.11-test.41 → 2.1.11-test.45

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 (78) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  2. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
  3. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  4. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  5. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  6. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  7. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  8. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  9. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  10. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
  11. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  12. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
  13. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  14. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4cf7a93b_lang.css +1 -0
  15. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
  16. package/components/dialog/v4/DialogV4.vue.d.ts +5 -0
  17. package/components/dialog/v4/DialogV4.vue.js +3 -3
  18. package/components/dialog/v4/DialogV4.vue2.js +52 -49
  19. package/components/dialog/v4/index.d.ts +20 -1
  20. package/components/dropdown/common/Dropdown.common.js +36 -34
  21. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  22. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +55 -40
  23. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +20 -0
  24. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  25. package/components/dropdown/v4/ConditionalDropdown.vue2.js +136 -97
  26. package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -0
  27. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  28. package/components/dropdown/v4/DropdownV4.vue2.js +7 -7
  29. package/components/dropdown/v4/TreeDropdown.vue.d.ts +5 -0
  30. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  31. package/components/dropdown/v4/TreeDropdown.vue2.js +164 -157
  32. package/components/dropdown/v4/index.d.ts +67 -2
  33. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  34. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  35. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +3 -3
  36. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +1 -1
  37. package/components/forms/FormCard.vue.js +3 -3
  38. package/components/forms/FormCard.vue2.js +1 -1
  39. package/components/sortableList/SortableItem.vue.js +3 -3
  40. package/components/sortableList/SortableItem.vue2.js +57 -56
  41. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  42. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  43. package/components/sortableList/SortableList.vue.js +3 -3
  44. package/components/sortableList/SortableList.vue2.js +82 -76
  45. package/components/table/common/Table.common.d.ts +1 -1
  46. package/components/table/common/Table.common.js +78 -70
  47. package/components/table/common/consts.d.ts +4 -0
  48. package/components/table/common/consts.js +7 -0
  49. package/components/table/v4/DataGrid.vue.d.ts +10 -5
  50. package/components/table/v4/DataGrid.vue.js +3 -3
  51. package/components/table/v4/DataGrid.vue2.js +173 -171
  52. package/components/table/v4/DataGridMenu.vue.js +5 -5
  53. package/components/table/v4/DataGridMenu.vue2.js +1 -1
  54. package/components/table/v4/index.d.ts +39 -20
  55. package/components/table-cells/common/Editable.common.js +24 -19
  56. package/components/typography/v4/Typography.vue.js +3 -3
  57. package/components/typography/v4/Typography.vue2.js +24 -18
  58. package/index.d.ts +252 -46
  59. package/package.json +1 -1
  60. package/style/v4/grid.css +1 -1
  61. package/style/v4/grid.css.map +1 -1
  62. package/style/v4/spacings.scss +1 -0
  63. package/testids/index.d.ts +1 -0
  64. package/testids/index.js +13 -13
  65. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +0 -1
  66. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +0 -1
  67. package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +0 -1
  68. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  69. package/DialogV4.vue_vue_type_style_index_0_scoped_c65df8d7_lang.css +0 -1
  70. package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +0 -1
  71. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  72. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css +0 -1
  73. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  74. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  75. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  76. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  77. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
  78. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
@@ -20,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
20
  optionChildrenKey: string;
21
21
  optionUniqueIdKey: string | number;
22
22
  preExpandedOptions: string[] | number[];
23
+ debug: boolean;
23
24
  }>, {
24
25
  selected: any;
25
26
  placeholder: string;
@@ -36,6 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
36
37
  optionEndTextIconKey: any;
37
38
  valueToCopy: any;
38
39
  disabledOptionKey: string;
40
+ debug: boolean;
39
41
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
42
  "update:selected": (value: unknown) => void;
41
43
  "update:isOpen": (value: unknown) => void;
@@ -61,6 +63,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
61
63
  optionChildrenKey: string;
62
64
  optionUniqueIdKey: string | number;
63
65
  preExpandedOptions: string[] | number[];
66
+ debug: boolean;
64
67
  }>, {
65
68
  selected: any;
66
69
  placeholder: string;
@@ -77,6 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
77
80
  optionEndTextIconKey: any;
78
81
  valueToCopy: any;
79
82
  disabledOptionKey: string;
83
+ debug: boolean;
80
84
  }>>> & {
81
85
  "onUpdate:selected"?: (value: unknown) => any;
82
86
  "onUpdate:isOpen"?: (value: unknown) => any;
@@ -96,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
96
100
  optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
97
101
  disabledOptionKey: string;
98
102
  optionEndTextIconKey: string;
103
+ debug: boolean;
99
104
  }>, {
100
105
  "trigger-end-icon"?(_: {}): any;
101
106
  }>;
@@ -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_bdfb0aef_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bdfb0aef"]]);
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_4cf7a93b_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4cf7a93b"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,22 +1,25 @@
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
- import ue from "./DropdownV4.vue.js";
3
- import pe from "./DefaultDropdownTrigger.vue.js";
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_4cf7a93b_lang.css"; import { defineComponent as le, provide as ne, ref as c, computed as C, onMounted as te, watch as k, openBlock as m, createElementBlock as I, Fragment as z, createVNode as g, unref as d, withCtx as f, mergeProps as B, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as w, createTextVNode as de, withDirectives as ae, renderList as se, createBlock as re, vShow as ce, createCommentVNode as $, toDisplayString as ue } from "vue";
2
+ import pe from "./DropdownV4.vue.js";
3
+ import ye from "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
5
  import "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
7
  import "./ButtonDropdownTrigger.vue.js";
8
8
  import "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
- import S from "./OptionV4.vue.js";
10
+ import b from "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
- import { useChildOptions as ye } from "../composables/useChildOptions.js";
12
+ import { useChildOptions as fe } from "../composables/useChildOptions.js";
13
13
  import he from "../../search/v4/SearchV4.vue.js";
14
- import { useTestIdAttrs as fe } from "../../../utils/testIds.js";
15
- import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
16
- const ve = {
14
+ import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
15
+ import { DropdownTestIdModifiers as P } from "../../../testids/index.js";
16
+ const me = {
17
17
  key: 0,
18
18
  class: "child-options"
19
- }, qe = /* @__PURE__ */ ee({
19
+ }, ge = {
20
+ key: 0,
21
+ style: { position: "fixed", right: "0", top: "0" }
22
+ }, De = /* @__PURE__ */ le({
20
23
  __name: "TreeDropdown",
21
24
  props: {
22
25
  options: null,
@@ -39,23 +42,24 @@ const ve = {
39
42
  disabledOptionKey: { default: "disabled" },
40
43
  optionChildrenKey: null,
41
44
  optionUniqueIdKey: null,
42
- preExpandedOptions: null
45
+ preExpandedOptions: null,
46
+ debug: { type: Boolean, default: !1 }
43
47
  },
44
48
  emits: ["update:selected", "update:isOpen"],
45
- setup(t, { emit: b }) {
49
+ setup(t, { emit: T }) {
46
50
  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(() => {
51
+ ne("isTreeDropdown", !0);
52
+ const K = c([]), u = c([]), O = c({}), x = c(!1), i = c([...l.selected]), p = c(""), N = c(!0), U = C(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
49
53
  e = e + 1;
50
- }), o[l.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
54
+ }), o[l.optionChildrenKey] || (e = e + 1), e), 0)), q = () => {
51
55
  l.options.forEach((e) => {
52
- e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (T.value[e[l.optionUniqueIdKey]] = [
56
+ e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (O.value[e[l.optionUniqueIdKey]] = [
53
57
  ...e[l.optionChildrenKey]
54
58
  ]);
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
- k(e) ? i.value = i.value.filter(
59
+ }), K.value = [...l.options], u.value = [...l.options];
60
+ }, { hasChildren: h, getChildren: v, allChildrenSelected: S, someChildrenSelected: J } = fe(i, l.optionChildrenKey), A = (e) => {
61
+ if (h(e)) {
62
+ S(e) ? i.value = i.value.filter(
59
63
  (o) => !v(e).includes(o)
60
64
  ) : i.value = [
61
65
  ...i.value.filter((o) => !v(e).includes(o)),
@@ -66,8 +70,8 @@ const ve = {
66
70
  i.value.includes(e) ? i.value = i.value.filter(
67
71
  (o) => o !== e
68
72
  ) : i.value = [...i.value, e];
69
- }, A = (e) => i.value.includes(e), j = (e) => 1 + (f(e) ? v(e).length : 0), F = () => {
70
- b("update:selected", i.value), L.value = y.value;
73
+ }, D = (e) => i.value.includes(e), j = (e) => 1 + (h(e) ? v(e).length : 0), F = () => {
74
+ T("update:selected", i.value), L.value = y.value;
71
75
  }, G = () => {
72
76
  i.value = [];
73
77
  }, H = () => {
@@ -88,61 +92,61 @@ const ve = {
88
92
  !l.selected.includes(n) && !e.has(n) && o.push(n);
89
93
  }), o;
90
94
  };
91
- ne(() => {
92
- x.value || (U(), x.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
95
+ te(() => {
96
+ x.value || (q(), x.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
93
97
  a.value[e] = 1;
94
98
  }));
95
- }), g(
99
+ }), k(
96
100
  () => l.options,
97
101
  () => {
98
- U();
102
+ q();
99
103
  }
100
- ), g(
104
+ ), k(
101
105
  () => l.selected,
102
- () => {
103
- i.value = [...l.selected];
106
+ (e, o) => {
107
+ JSON.stringify(e) !== JSON.stringify(o) && (i.value = [...l.selected]);
104
108
  }
105
109
  );
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
- g(
110
+ const y = C(() => i.value.length < U.value ? !1 : i.value.length === U.value), Q = C(() => !y.value && i.value.length > 0), L = c(y.value);
111
+ k(
108
112
  () => l.isOpen,
109
113
  () => {
110
- l.isOpen ? m.value = H() : (i.value = [...l.selected], p.value = "");
114
+ l.isOpen ? K.value = H() : (i.value = [...l.selected], p.value = "");
111
115
  }
112
116
  );
113
- const a = c({}), Q = (e) => {
117
+ const a = c({}), R = (e) => {
114
118
  a.value[e[l.optionUniqueIdKey]] ? delete a.value[e[l.optionUniqueIdKey]] : a.value[e[l.optionUniqueIdKey]] = 1;
115
119
  };
116
- function R(e, o) {
120
+ function W(e, o) {
117
121
  const n = e.toLowerCase(), s = [];
118
122
  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)
123
+ const E = r[l.optionNameKey].toLowerCase().includes(n), V = O.value[r[l.optionUniqueIdKey]]?.filter(
124
+ (ee) => ee[l.optionNameKey].toLowerCase().includes(n)
121
125
  ) || [];
122
126
  (E || V.length > 0) && (r[l.optionChildrenKey] = V, s.push(r));
123
127
  }), s;
124
128
  }
125
- const W = (e) => {
126
- const o = R(e, u);
129
+ const X = (e) => {
130
+ const o = W(e, u);
127
131
  e && (Object.keys(a.value).forEach((n) => {
128
132
  delete a.value[n];
129
133
  }), o.forEach((n) => {
130
134
  Array.isArray(n[l.optionChildrenKey]) && n[l.optionChildrenKey].length && (a.value[n[l.optionUniqueIdKey]] = 1);
131
- })), m.value = o;
132
- }, X = K(() => {
135
+ })), K.value = o;
136
+ }, Y = C(() => {
133
137
  const e = l.options.length, o = l.options.reduce(
134
138
  (n, s) => (a.value[s[l.optionUniqueIdKey]] && (n = n + s[l.optionChildrenKey].length), n),
135
139
  0
136
140
  );
137
141
  return e + o;
138
142
  });
139
- g(
143
+ k(
140
144
  () => p.value,
141
145
  () => {
142
- W(p.value), O.value = !p.value;
146
+ X(p.value), N.value = !p.value;
143
147
  }
144
148
  );
145
- const Y = () => {
149
+ const Z = () => {
146
150
  y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
147
151
  if (e[l.optionChildrenKey] && e[l.optionChildrenKey].length)
148
152
  for (const o of e[l.optionChildrenKey])
@@ -150,124 +154,127 @@ const ve = {
150
154
  else
151
155
  i.value = [e, ...i.value];
152
156
  }));
153
- }, Z = fe(l.testId, $);
154
- return (e, o) => (C(), D(d(ue), {
155
- multi: "",
156
- class: "tree-dropdown",
157
- "show-select-all": O.value,
158
- "is-open": t.isOpen,
159
- options: m.value,
160
- selected: t.selected,
161
- "display-value": t.displayValue,
162
- placeholder: t.placeholder,
163
- "inline-search": "",
164
- "inline-search-placeholder": t.inlineSearchPlaceholder,
165
- "option-name-key": t.optionNameKey,
166
- size: t.size,
167
- "test-id": t.testId,
168
- disabled: t.disabled,
169
- "disable-virtual-scroll": "",
170
- "override-option-count-calculation": j,
171
- "trigger-show-all-selected-text": !1,
172
- "predefined-trigger": "default",
173
- "custom-number-of-displayed-options": d(X),
174
- "onUpdate:isOpen": o[2] || (o[2] = (n) => b("update:isOpen", n)),
175
- onApply: F,
176
- onClear: G
177
- }, {
178
- "dropdown-trigger": h(({ defaultTriggerProps: n }) => [
179
- I(d(pe), z(n, {
180
- "all-selected": L.value,
181
- "show-all-selected-text": ""
182
- }), te({ _: 2 }, [
183
- e.$slots["trigger-end-icon"] ? {
184
- name: "end-icon",
185
- fn: h(() => [
186
- oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
187
- ]),
188
- key: "0"
189
- } : void 0
190
- ]), 1040, ["all-selected"])
191
- ]),
192
- "inline-search": h(() => [
193
- I(d(he), {
194
- modelValue: p.value,
195
- "onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n),
196
- class: "tree-search",
197
- placeholder: t.inlineSearchPlaceholder,
198
- variant: "transparent",
199
- size: "md",
200
- "auto-focus": "",
201
- "test-id": t.testId
202
- }, null, 8, ["modelValue", "placeholder", "test-id"])
203
- ]),
204
- "select-all": h(() => [
205
- M("li", null, [
206
- I(d(S), z({
207
- "aria-selected": d(y),
208
- "aria-disabled": !!t.disabled,
209
- "selected-prop": d(y),
210
- "is-indeterminate": d(J),
211
- "is-multi": "",
212
- "select-all-option": ""
213
- }, d(Z)[d($).SELECT_ALL], {
214
- onClick: o[1] || (o[1] = w((n) => Y(), ["stop"]))
215
- }), {
216
- default: h(() => [
217
- ie(" Select all ")
218
- ]),
219
- _: 1
220
- }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
221
- ])
222
- ]),
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
- "name-key": t.optionNameKey,
230
- "image-key": t.optionImageKey,
231
- "icon-key": t.optionIconKey,
232
- "icon-type": t.optionIconType,
233
- "end-icon-key": t.optionEndIconKey,
234
- "end-icon-type": t.optionEndIconType,
235
- "end-text-icon-key": t.optionEndTextIconKey,
236
- "tree-main-option": d(f)(n),
237
- "tree-main-option-expanded": a.value[n[t.optionUniqueIdKey]],
238
- "stop-option-click-event-propagation": "",
239
- "is-multi": "",
240
- onClick: w(() => q(n), ["stop"]),
241
- onToggleTreeCollapse: Q
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(f)(n) ? (C(), B("div", ve, [
244
- de(M("div", null, [
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
- "name-key": t.optionNameKey,
251
- "image-key": t.optionImageKey,
252
- "icon-key": t.optionIconKey,
253
- "icon-type": t.optionIconType,
254
- "end-icon-key": t.optionEndIconKey,
255
- "end-icon-type": t.optionEndIconType,
256
- "end-text-icon-key": t.optionEndTextIconKey,
257
- "tree-child-shown": a.value[n[t.optionUniqueIdKey]],
258
- "stop-option-click-event-propagation": "",
157
+ }, _ = ve(l.testId, P);
158
+ return (e, o) => (m(), I(z, null, [
159
+ g(d(pe), {
160
+ multi: "",
161
+ class: "tree-dropdown",
162
+ "show-select-all": N.value,
163
+ "is-open": t.isOpen,
164
+ options: K.value,
165
+ selected: t.selected,
166
+ "display-value": t.displayValue,
167
+ placeholder: t.placeholder,
168
+ "inline-search": "",
169
+ "inline-search-placeholder": t.inlineSearchPlaceholder,
170
+ "option-name-key": t.optionNameKey,
171
+ size: t.size,
172
+ "test-id": t.testId,
173
+ disabled: t.disabled,
174
+ "disable-virtual-scroll": "",
175
+ "override-option-count-calculation": j,
176
+ "trigger-show-all-selected-text": !1,
177
+ "predefined-trigger": "default",
178
+ "custom-number-of-displayed-options": d(Y),
179
+ "onUpdate:isOpen": o[2] || (o[2] = (n) => T("update:isOpen", n)),
180
+ onApply: F,
181
+ onClear: G
182
+ }, {
183
+ "dropdown-trigger": f(({ defaultTriggerProps: n }) => [
184
+ g(d(ye), B(n, {
185
+ "all-selected": L.value,
186
+ "show-all-selected-text": ""
187
+ }), oe({ _: 2 }, [
188
+ e.$slots["trigger-end-icon"] ? {
189
+ name: "end-icon",
190
+ fn: f(() => [
191
+ ie(e.$slots, "trigger-end-icon", {}, void 0, !0)
192
+ ]),
193
+ key: "0"
194
+ } : void 0
195
+ ]), 1040, ["all-selected"])
196
+ ]),
197
+ "inline-search": f(() => [
198
+ g(d(he), {
199
+ modelValue: p.value,
200
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n),
201
+ class: "tree-search",
202
+ placeholder: t.inlineSearchPlaceholder,
203
+ variant: "transparent",
204
+ size: "md",
205
+ "auto-focus": "",
206
+ "test-id": t.testId
207
+ }, null, 8, ["modelValue", "placeholder", "test-id"])
208
+ ]),
209
+ "select-all": f(() => [
210
+ M("li", null, [
211
+ g(d(b), B({
212
+ "aria-selected": d(y),
213
+ "aria-disabled": !!t.disabled,
214
+ "selected-prop": d(y),
215
+ "is-indeterminate": d(Q),
259
216
  "is-multi": "",
260
- onClick: w(() => q(r), ["stop"])
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
- ], 512), [
263
- [re, a.value[n[t.optionUniqueIdKey]]]
217
+ "select-all-option": ""
218
+ }, d(_)[d(P).SELECT_ALL], {
219
+ onClick: o[1] || (o[1] = w((n) => Z(), ["stop"]))
220
+ }), {
221
+ default: f(() => [
222
+ de(" Select all ")
223
+ ]),
224
+ _: 1
225
+ }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
264
226
  ])
265
- ])) : ce("", !0)
266
- ]),
267
- _: 3
268
- }, 8, ["show-select-all", "is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled", "custom-number-of-displayed-options"]));
227
+ ]),
228
+ default: f(({ option: n, index: s }) => [
229
+ g(d(b), {
230
+ option: n,
231
+ "selected-prop": d(h)(n) ? d(S)(n) : D(n),
232
+ "is-indeterminate": !d(S)(n) && d(J)(n),
233
+ disabled: n[t.disabledOptionKey],
234
+ "name-key": t.optionNameKey,
235
+ "image-key": t.optionImageKey,
236
+ "icon-key": t.optionIconKey,
237
+ "icon-type": t.optionIconType,
238
+ "end-icon-key": t.optionEndIconKey,
239
+ "end-icon-type": t.optionEndIconType,
240
+ "end-text-icon-key": t.optionEndTextIconKey,
241
+ "tree-main-option": d(h)(n),
242
+ "tree-main-option-expanded": a.value[n[t.optionUniqueIdKey]],
243
+ "stop-option-click-event-propagation": "",
244
+ "is-multi": "",
245
+ onClick: w(() => A(n), ["stop"]),
246
+ onToggleTreeCollapse: R
247
+ }, 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"]),
248
+ d(h)(n) ? (m(), I("div", me, [
249
+ ae(M("div", null, [
250
+ (m(!0), I(z, null, se(d(v)(n), (r, E) => (m(), re(d(b), {
251
+ key: `${s}-${E}`,
252
+ option: r,
253
+ "selected-prop": D(r),
254
+ disabled: r[t.disabledOptionKey],
255
+ "name-key": t.optionNameKey,
256
+ "image-key": t.optionImageKey,
257
+ "icon-key": t.optionIconKey,
258
+ "icon-type": t.optionIconType,
259
+ "end-icon-key": t.optionEndIconKey,
260
+ "end-icon-type": t.optionEndIconType,
261
+ "end-text-icon-key": t.optionEndTextIconKey,
262
+ "tree-child-shown": a.value[n[t.optionUniqueIdKey]],
263
+ "stop-option-click-event-propagation": "",
264
+ "is-multi": "",
265
+ onClick: w(() => A(r), ["stop"])
266
+ }, 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))
267
+ ], 512), [
268
+ [ce, a.value[n[t.optionUniqueIdKey]]]
269
+ ])
270
+ ])) : $("", !0)
271
+ ]),
272
+ _: 3
273
+ }, 8, ["show-select-all", "is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled", "custom-number-of-displayed-options"]),
274
+ t.debug ? (m(), I("pre", ge, ue(i.value), 1)) : $("", !0)
275
+ ], 64));
269
276
  }
270
277
  });
271
278
  export {
272
- qe as default
279
+ De as default
273
280
  };