@ironsource/shared-ui 2.1.12-test.53 → 2.1.12-test.55

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 (152) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
  8. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_e6cece52_lang.css +1 -0
  10. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  11. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  12. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  13. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  14. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  15. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  16. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  17. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  18. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  19. package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
  20. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  21. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  22. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  23. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  24. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  25. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  26. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  27. package/components/chart/Chart.vue.d.ts +5 -0
  28. package/components/chart/Chart.vue.js +4 -4
  29. package/components/chart/Chart.vue2.js +122 -112
  30. package/components/chart/ChartHeader.vue.d.ts +5 -0
  31. package/components/chart/ChartHeader.vue.js +3 -3
  32. package/components/chart/ChartHeader.vue2.js +49 -44
  33. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  34. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  35. package/components/chart/ChartHeaderTrend.vue2.js +42 -39
  36. package/components/chart/ChartLegend.vue.d.ts +5 -0
  37. package/components/chart/ChartLegend.vue.js +3 -3
  38. package/components/chart/ChartLegend.vue2.js +76 -71
  39. package/components/chart/ChartPlane.vue.d.ts +5 -0
  40. package/components/chart/ChartPlane.vue.js +3 -3
  41. package/components/chart/ChartPlane.vue2.js +125 -119
  42. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  43. package/components/chart/ChartTooltip.vue.js +2 -2
  44. package/components/chart/ChartTooltip.vue2.js +38 -34
  45. package/components/chart/LegendSorting.vue.d.ts +5 -0
  46. package/components/chart/LegendSorting.vue.js +16 -14
  47. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  48. package/components/chart/SettingsHeader.vue.js +3 -3
  49. package/components/chart/SettingsHeader.vue2.js +36 -29
  50. package/components/chart/index.d.ts +20 -1
  51. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  52. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  53. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  54. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  55. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  56. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  57. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  58. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  59. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  60. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  61. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  62. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  63. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  64. package/components/columnConfigurator/consts.d.ts +1 -0
  65. package/components/columnConfigurator/consts.js +4 -0
  66. package/components/columnConfigurator/index.d.ts +73 -0
  67. package/components/columnConfigurator/index.js +6 -0
  68. package/components/columnConfigurator/mockData.d.ts +30 -0
  69. package/components/columnConfigurator/utils.d.ts +2 -0
  70. package/components/columnConfigurator/utils.js +18 -0
  71. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  72. package/components/columnPicker/index.d.ts +20 -20
  73. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  74. package/components/dropdown/v4/ConditionalDropdown.vue2.js +99 -97
  75. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  76. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  77. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  78. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  79. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  80. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  81. package/components/dropdown/v4/index.d.ts +61 -2
  82. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  83. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  84. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  85. package/components/emptyState/v4/index.d.ts +20 -1
  86. package/components/link/Link.vue.d.ts +5 -0
  87. package/components/link/Link.vue.js +3 -3
  88. package/components/link/Link.vue2.js +36 -28
  89. package/components/link/index.d.ts +20 -1
  90. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  91. package/components/sortableList/LoaderBars.vue.js +7 -0
  92. package/components/sortableList/LoaderBars.vue2.js +25 -0
  93. package/components/sortableList/SortableItem.vue.js +4 -4
  94. package/components/sortableList/SortableItem.vue2.js +3 -3
  95. package/components/sortableList/SortableList.vue.d.ts +2 -2
  96. package/components/sortableList/SortableList.vue.js +5 -5
  97. package/components/sortableList/SortableList.vue2.js +96 -106
  98. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  99. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  100. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  101. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  102. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  103. package/components/sortableList/consts.d.ts +2 -0
  104. package/components/sortableList/consts.js +4 -2
  105. package/components/sortableList/index.d.ts +39 -39
  106. package/components/table/common/consts.d.ts +2 -0
  107. package/components/table/common/consts.js +6 -4
  108. package/components/table/v4/DataGrid.vue.d.ts +4 -3
  109. package/components/table/v4/DataGrid.vue.js +4 -4
  110. package/components/table/v4/DataGrid.vue2.js +362 -335
  111. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  112. package/components/table/v4/DataGridContainer.vue.js +7 -0
  113. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  114. package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
  115. package/components/table/v4/DataGridHeader.vue.js +2 -2
  116. package/components/table/v4/DataGridHeader.vue2.js +30 -28
  117. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  118. package/components/table/v4/index.d.ts +104 -103
  119. package/components/tagsField/TagsField.types.d.ts +4 -0
  120. package/components/tagsField/TagsField.vue.d.ts +65 -0
  121. package/components/tagsField/TagsField.vue.js +7 -0
  122. package/components/tagsField/TagsField.vue2.js +90 -0
  123. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  124. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  125. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  126. package/components/tagsField/consts.d.ts +1 -0
  127. package/components/tagsField/consts.js +4 -0
  128. package/components/tagsField/index.d.ts +75 -0
  129. package/components/tagsField/index.js +6 -0
  130. package/index.d.ts +450 -290
  131. package/index.js +87 -79
  132. package/package.json +10 -1
  133. package/testids/index.d.ts +36 -0
  134. package/testids/index.js +37 -31
  135. package/utils/object.d.ts +2 -0
  136. package/utils/object.js +9 -5
  137. package/utils/search.js +1 -1
  138. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
  139. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  140. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
  141. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  142. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +0 -1
  143. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +0 -1
  144. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +0 -1
  145. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
  146. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +0 -1
  147. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +0 -1
  148. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  149. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
  150. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
  151. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
  152. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -1,4 +1,4 @@
1
- import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css"; import { defineComponent as ne, provide as le, ref as c, computed as K, onMounted as te, watch as E, openBlock as g, createBlock as D, unref as d, withCtx as h, createVNode as C, mergeProps as z, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as S, createTextVNode as de, createElementBlock as B, withDirectives as ae, Fragment as se, renderList as re, vShow as ce, createCommentVNode as ue } from "vue";
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css"; import { defineComponent as te, provide as ne, ref as s, computed as m, onMounted as le, watch as b, openBlock as K, createBlock as D, unref as a, withCtx as f, createVNode as k, mergeProps as z, createSlots as ie, renderSlot as oe, createElementVNode as M, withModifiers as E, createTextVNode as ae, createElementBlock as B, withDirectives as de, Fragment as re, renderList as ce, vShow as se, createCommentVNode as ue } from "vue";
2
2
  import pe from "./DropdownV4.vue.js";
3
3
  import ye from "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
@@ -7,16 +7,16 @@ 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
- import { useChildOptions as he } from "../composables/useChildOptions.js";
13
- import fe from "../../search/v4/SearchV4.vue.js";
12
+ import { useChildOptions as fe } from "../composables/useChildOptions.js";
13
+ import he from "../../search/v4/SearchV4.vue.js";
14
14
  import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
15
- import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
16
- const me = {
15
+ import { DropdownTestIdModifiers as F } from "../../../testids/index.js";
16
+ const ge = {
17
17
  key: 0,
18
18
  class: "child-options"
19
- }, Ae = /* @__PURE__ */ ne({
19
+ }, Ve = /* @__PURE__ */ te({
20
20
  __name: "TreeDropdown",
21
21
  props: {
22
22
  options: null,
@@ -39,230 +39,234 @@ const me = {
39
39
  disabledOptionKey: { default: "disabled" },
40
40
  optionChildrenKey: null,
41
41
  optionUniqueIdKey: null,
42
- preExpandedOptions: null
42
+ preExpandedOptions: null,
43
+ triggerFeedbackText: { default: "" },
44
+ triggerFeedbackVariant: { default: null }
43
45
  },
44
46
  emits: ["update:selected", "update:isOpen"],
45
- setup(t, { emit: b }) {
46
- const n = t;
47
- le("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(() => {
47
+ setup(l, { emit: w }) {
48
+ const t = l;
49
+ ne("isTreeDropdown", !0);
50
+ const g = s([]), u = s([]), T = s({}), x = s(!1), o = s([...t.selected]), p = s(""), O = s(!0), N = m(() => u.value.reduce((e, i) => (i[t.optionChildrenKey] && i[t.optionChildrenKey].length && i[t.optionChildrenKey].forEach(() => {
49
51
  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]
52
+ }), i[t.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
53
+ t.options.forEach((e) => {
54
+ e[t.optionChildrenKey] && e[t.optionChildrenKey].length && (T.value[e[t.optionUniqueIdKey]] = [
55
+ ...e[t.optionChildrenKey]
54
56
  ]);
55
- }), m.value = [...n.options], u.value = [...n.options];
56
- }, { hasChildren: f, getChildren: v, allChildrenSelected: I, someChildrenSelected: P } = he(i, n.optionChildrenKey), q = (e) => {
57
- if (f(e)) {
58
- I(e) ? i.value = i.value.filter(
59
- (o) => !v(e).includes(o)
60
- ) : i.value = [
61
- ...i.value.filter((o) => !v(e).includes(o)),
57
+ }), g.value = [...t.options], u.value = [...t.options];
58
+ }, { hasChildren: h, getChildren: v, allChildrenSelected: C, someChildrenSelected: $ } = fe(o, t.optionChildrenKey), q = (e) => {
59
+ if (h(e)) {
60
+ C(e) ? o.value = o.value.filter(
61
+ (i) => !v(e).includes(i)
62
+ ) : o.value = [
63
+ ...o.value.filter((i) => !v(e).includes(i)),
62
64
  ...v(e)
63
65
  ];
64
66
  return;
65
67
  }
66
- i.value.includes(e) ? i.value = i.value.filter(
67
- (o) => o !== e
68
- ) : i.value = [...i.value, e];
69
- }, A = (e) => i.value.includes(e), J = (e) => 1 + (f(e) ? v(e).length : 0), j = () => {
70
- b("update:selected", i.value), L.value = y.value;
71
- }, F = () => {
72
- i.value = [];
68
+ o.value.includes(e) ? o.value = o.value.filter(
69
+ (i) => i !== e
70
+ ) : o.value = [...o.value, e];
71
+ }, V = (e) => o.value.includes(e), P = (e) => 1 + (h(e) ? v(e).length : 0), J = () => {
72
+ w("update:selected", o.value), A.value = y.value;
73
+ }, j = () => {
74
+ o.value = [];
73
75
  }, G = () => {
74
76
  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 s of l[n.optionChildrenKey])
80
- if (n.selected?.includes(s)) {
81
- e.add(l);
77
+ u.value.forEach((n) => {
78
+ if (t.selected?.includes(n))
79
+ e.add(n);
80
+ else if (n[t.optionChildrenKey] && n[t.optionChildrenKey].length) {
81
+ for (const r of n[t.optionChildrenKey])
82
+ if (t.selected?.includes(r)) {
83
+ e.add(n);
82
84
  break;
83
85
  }
84
86
  }
85
87
  });
86
- const o = Array.from(e);
87
- return u.value.forEach((l) => {
88
- !n.selected.includes(l) && !e.has(l) && o.push(l);
89
- }), o;
88
+ const i = Array.from(e);
89
+ return u.value.forEach((n) => {
90
+ !t.selected.includes(n) && !e.has(n) && i.push(n);
91
+ }), i;
90
92
  };
91
- te(() => {
92
- O.value || (U(), O.value = !0, n.preExpandedOptions && n.preExpandedOptions.forEach((e) => {
93
- a.value[e] = 1;
93
+ le(() => {
94
+ x.value || (U(), x.value = !0, t.preExpandedOptions && t.preExpandedOptions.forEach((e) => {
95
+ d.value[e] = 1;
94
96
  }));
95
- }), E(
96
- () => n.options,
97
+ }), b(
98
+ () => t.options,
97
99
  () => {
98
100
  U();
99
101
  }
100
- ), E(
101
- () => n.selected,
102
- (e, o) => {
103
- JSON.stringify(e) !== JSON.stringify(o) && (i.value = [...n.selected]);
102
+ ), b(
103
+ () => t.selected,
104
+ (e, i) => {
105
+ JSON.stringify(e) !== JSON.stringify(i) && (o.value = [...t.selected]);
104
106
  }
105
107
  );
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), Q = (e) => {
107
- b("update:isOpen", e), n.isOpen ? m.value = G() : (i.value = [...n.selected], p.value = "");
108
- }, a = c({}), R = (e) => {
109
- a.value[e[n.optionUniqueIdKey]] ? delete a.value[e[n.optionUniqueIdKey]] : a.value[e[n.optionUniqueIdKey]] = 1;
108
+ const y = m(() => o.value.length < N.value ? !1 : o.value.length === N.value), H = m(() => !y.value && o.value.length > 0), A = s(y.value), Q = (e) => {
109
+ w("update:isOpen", e), t.isOpen ? g.value = G() : (o.value = [...t.selected], p.value = "");
110
+ }, d = s({}), R = (e) => {
111
+ d.value[e[t.optionUniqueIdKey]] ? delete d.value[e[t.optionUniqueIdKey]] : d.value[e[t.optionUniqueIdKey]] = 1;
110
112
  };
111
- function W(e, o) {
112
- const l = e.toLowerCase(), s = [];
113
- return o.value.forEach((r) => {
114
- const k = r[n.optionNameKey].toLowerCase().includes(l), V = T.value[r[n.optionUniqueIdKey]]?.filter(
115
- (ee) => ee[n.optionNameKey].toLowerCase().includes(l)
113
+ function W(e, i) {
114
+ const n = e.toLowerCase(), r = [];
115
+ return i.value.forEach((c) => {
116
+ const I = c[t.optionNameKey].toLowerCase().includes(n), L = T.value[c[t.optionUniqueIdKey]]?.filter(
117
+ (ee) => ee[t.optionNameKey].toLowerCase().includes(n)
116
118
  ) || [];
117
- (k || V.length > 0) && (r[n.optionChildrenKey] = V, s.push(r));
118
- }), s;
119
+ (I || L.length > 0) && (c[t.optionChildrenKey] = L, r.push(c));
120
+ }), r;
119
121
  }
120
122
  const X = (e) => {
121
- const o = W(e, u);
122
- e && (Object.keys(a.value).forEach((l) => {
123
- delete a.value[l];
124
- }), o.forEach((l) => {
125
- Array.isArray(l[n.optionChildrenKey]) && l[n.optionChildrenKey].length && (a.value[l[n.optionUniqueIdKey]] = 1);
126
- })), m.value = o;
127
- }, Y = K(() => {
128
- const e = n.options.length, o = n.options.reduce(
129
- (l, s) => (a.value[s[n.optionUniqueIdKey]] && (l = l + s[n.optionChildrenKey].length), l),
123
+ const i = W(e, u);
124
+ e && (Object.keys(d.value).forEach((n) => {
125
+ delete d.value[n];
126
+ }), i.forEach((n) => {
127
+ Array.isArray(n[t.optionChildrenKey]) && n[t.optionChildrenKey].length && (d.value[n[t.optionUniqueIdKey]] = 1);
128
+ })), g.value = i;
129
+ }, Y = m(() => {
130
+ const e = t.options.length, i = t.options.reduce(
131
+ (n, r) => (d.value[r[t.optionUniqueIdKey]] && (n = n + r[t.optionChildrenKey].length), n),
130
132
  0
131
133
  );
132
- return e + o;
134
+ return e + i;
133
135
  });
134
- E(
136
+ b(
135
137
  () => p.value,
136
138
  () => {
137
- X(p.value), x.value = !p.value;
139
+ X(p.value), O.value = !p.value;
138
140
  }
139
141
  );
140
142
  const Z = () => {
141
- y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
142
- if (e[n.optionChildrenKey] && e[n.optionChildrenKey].length)
143
- for (const o of e[n.optionChildrenKey])
144
- i.value = [o, ...i.value];
143
+ y.value ? o.value = [] : (o.value = [], u.value.forEach((e) => {
144
+ if (e[t.optionChildrenKey] && e[t.optionChildrenKey].length)
145
+ for (const i of e[t.optionChildrenKey])
146
+ o.value = [i, ...o.value];
145
147
  else
146
- i.value = [e, ...i.value];
148
+ o.value = [e, ...o.value];
147
149
  }));
148
- }, _ = ve(n.testId, $);
149
- return (e, o) => (g(), D(d(pe), {
150
+ }, _ = ve(t.testId, F);
151
+ return (e, i) => (K(), D(a(pe), {
150
152
  multi: "",
151
153
  class: "tree-dropdown",
152
- "show-select-all": x.value,
153
- "is-open": t.isOpen,
154
- options: m.value,
155
- selected: t.selected,
156
- "display-value": t.displayValue,
157
- placeholder: t.placeholder,
154
+ "show-select-all": O.value,
155
+ "is-open": l.isOpen,
156
+ options: g.value,
157
+ selected: l.selected,
158
+ "display-value": l.displayValue,
159
+ placeholder: l.placeholder,
158
160
  "inline-search": "",
159
- "inline-search-placeholder": t.inlineSearchPlaceholder,
160
- "option-name-key": t.optionNameKey,
161
- size: t.size,
162
- "test-id": t.testId,
163
- disabled: t.disabled,
161
+ "inline-search-placeholder": l.inlineSearchPlaceholder,
162
+ "option-name-key": l.optionNameKey,
163
+ size: l.size,
164
+ "test-id": l.testId,
165
+ disabled: l.disabled,
164
166
  "disable-virtual-scroll": "",
165
- "override-option-count-calculation": J,
167
+ "override-option-count-calculation": P,
166
168
  "trigger-show-all-selected-text": !1,
167
169
  "predefined-trigger": "default",
168
- "custom-number-of-displayed-options": d(Y),
170
+ "custom-number-of-displayed-options": a(Y),
171
+ "trigger-feedback-text": l.triggerFeedbackText,
172
+ "trigger-feedback-variant": l.triggerFeedbackVariant,
169
173
  "onUpdate:isOpen": Q,
170
- onApply: j,
171
- onClear: F
174
+ onApply: J,
175
+ onClear: j
172
176
  }, {
173
- "dropdown-trigger": h(({ defaultTriggerProps: l }) => [
174
- C(d(ye), z(l, {
175
- "all-selected": L.value,
177
+ "dropdown-trigger": f(({ defaultTriggerProps: n }) => [
178
+ k(a(ye), z(n, {
179
+ "all-selected": A.value,
176
180
  "show-all-selected-text": ""
177
- }), oe({ _: 2 }, [
181
+ }), ie({ _: 2 }, [
178
182
  e.$slots["trigger-end-icon"] ? {
179
183
  name: "end-icon",
180
- fn: h(() => [
181
- ie(e.$slots, "trigger-end-icon", {}, void 0, !0)
184
+ fn: f(() => [
185
+ oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
182
186
  ]),
183
187
  key: "0"
184
188
  } : void 0
185
189
  ]), 1040, ["all-selected"])
186
190
  ]),
187
- "inline-search": h(() => [
188
- C(d(fe), {
191
+ "inline-search": f(() => [
192
+ k(a(he), {
189
193
  modelValue: p.value,
190
- "onUpdate:modelValue": o[0] || (o[0] = (l) => p.value = l),
194
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => p.value = n),
191
195
  class: "tree-search",
192
- placeholder: t.inlineSearchPlaceholder,
196
+ placeholder: l.inlineSearchPlaceholder,
193
197
  variant: "transparent",
194
198
  size: "md",
195
199
  "auto-focus": "",
196
- "test-id": t.testId
200
+ "test-id": l.testId
197
201
  }, null, 8, ["modelValue", "placeholder", "test-id"])
198
202
  ]),
199
- "select-all": h(() => [
203
+ "select-all": f(() => [
200
204
  M("li", null, [
201
- C(d(w), z({
202
- "aria-selected": d(y),
203
- "aria-disabled": !!t.disabled,
204
- "selected-prop": d(y),
205
- "is-indeterminate": d(H),
205
+ k(a(S), z({
206
+ "aria-selected": a(y),
207
+ "aria-disabled": !!l.disabled,
208
+ "selected-prop": a(y),
209
+ "is-indeterminate": a(H),
206
210
  "is-multi": "",
207
211
  "select-all-option": ""
208
- }, d(_)[d($).SELECT_ALL], {
209
- onClick: o[1] || (o[1] = S((l) => Z(), ["stop"]))
212
+ }, a(_)[a(F).SELECT_ALL], {
213
+ onClick: i[1] || (i[1] = E((n) => Z(), ["stop"]))
210
214
  }), {
211
- default: h(() => [
212
- de(" Select all ")
215
+ default: f(() => [
216
+ ae(" Select all ")
213
217
  ]),
214
218
  _: 1
215
219
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
216
220
  ])
217
221
  ]),
218
- default: h(({ option: l, index: s }) => [
219
- C(d(w), {
220
- option: l,
221
- "selected-prop": d(f)(l) ? d(I)(l) : A(l),
222
- "is-indeterminate": !d(I)(l) && d(P)(l),
223
- disabled: l[t.disabledOptionKey],
224
- "name-key": t.optionNameKey,
225
- "image-key": t.optionImageKey,
226
- "icon-key": t.optionIconKey,
227
- "icon-type": t.optionIconType,
228
- "end-icon-key": t.optionEndIconKey,
229
- "end-icon-type": t.optionEndIconType,
230
- "end-text-icon-key": t.optionEndTextIconKey,
231
- "tree-main-option": d(f)(l),
232
- "tree-main-option-expanded": a.value[l[t.optionUniqueIdKey]],
222
+ default: f(({ option: n, index: r }) => [
223
+ k(a(S), {
224
+ option: n,
225
+ "selected-prop": a(h)(n) ? a(C)(n) : V(n),
226
+ "is-indeterminate": !a(C)(n) && a($)(n),
227
+ disabled: n[l.disabledOptionKey],
228
+ "name-key": l.optionNameKey,
229
+ "image-key": l.optionImageKey,
230
+ "icon-key": l.optionIconKey,
231
+ "icon-type": l.optionIconType,
232
+ "end-icon-key": l.optionEndIconKey,
233
+ "end-icon-type": l.optionEndIconType,
234
+ "end-text-icon-key": l.optionEndTextIconKey,
235
+ "tree-main-option": a(h)(n),
236
+ "tree-main-option-expanded": d.value[n[l.optionUniqueIdKey]],
233
237
  "stop-option-click-event-propagation": "",
234
238
  "is-multi": "",
235
- onClick: S(() => q(l), ["stop"]),
239
+ onClick: E(() => q(n), ["stop"]),
236
240
  onToggleTreeCollapse: R
237
241
  }, 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"]),
238
- d(f)(l) ? (g(), B("div", me, [
239
- ae(M("div", null, [
240
- (g(!0), B(se, null, re(d(v)(l), (r, k) => (g(), D(d(w), {
241
- key: `${s}-${k}`,
242
- option: r,
243
- "selected-prop": A(r),
244
- disabled: r[t.disabledOptionKey],
245
- "name-key": t.optionNameKey,
246
- "image-key": t.optionImageKey,
247
- "icon-key": t.optionIconKey,
248
- "icon-type": t.optionIconType,
249
- "end-icon-key": t.optionEndIconKey,
250
- "end-icon-type": t.optionEndIconType,
251
- "end-text-icon-key": t.optionEndTextIconKey,
252
- "tree-child-shown": a.value[l[t.optionUniqueIdKey]],
242
+ a(h)(n) ? (K(), B("div", ge, [
243
+ de(M("div", null, [
244
+ (K(!0), B(re, null, ce(a(v)(n), (c, I) => (K(), D(a(S), {
245
+ key: `${r}-${I}`,
246
+ option: c,
247
+ "selected-prop": V(c),
248
+ disabled: c[l.disabledOptionKey],
249
+ "name-key": l.optionNameKey,
250
+ "image-key": l.optionImageKey,
251
+ "icon-key": l.optionIconKey,
252
+ "icon-type": l.optionIconType,
253
+ "end-icon-key": l.optionEndIconKey,
254
+ "end-icon-type": l.optionEndIconType,
255
+ "end-text-icon-key": l.optionEndTextIconKey,
256
+ "tree-child-shown": d.value[n[l.optionUniqueIdKey]],
253
257
  "stop-option-click-event-propagation": "",
254
258
  "is-multi": "",
255
- onClick: S(() => q(r), ["stop"])
259
+ onClick: E(() => q(c), ["stop"])
256
260
  }, 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))
257
261
  ], 512), [
258
- [ce, a.value[l[t.optionUniqueIdKey]]]
262
+ [se, d.value[n[l.optionUniqueIdKey]]]
259
263
  ])
260
264
  ])) : ue("", !0)
261
265
  ]),
262
266
  _: 3
263
- }, 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"]));
267
+ }, 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", "trigger-feedback-text", "trigger-feedback-variant"]));
264
268
  }
265
269
  });
266
270
  export {
267
- Ae as default
271
+ Ve as default
268
272
  };
@@ -1827,6 +1827,7 @@ declare const DropdownTypes: () => (({
1827
1827
  dynamicFilterMode: boolean;
1828
1828
  minSelections: number;
1829
1829
  maxSelections: number;
1830
+ alwaysShowScroll: boolean;
1830
1831
  isOnTop: boolean;
1831
1832
  triggerLabel: string;
1832
1833
  triggerHelperText: string;
@@ -1982,6 +1983,10 @@ declare const DropdownTypes: () => (({
1982
1983
  type: import("vue").PropType<number>;
1983
1984
  default: any;
1984
1985
  };
1986
+ alwaysShowScroll: {
1987
+ type: import("vue").PropType<boolean>;
1988
+ default: boolean;
1989
+ };
1985
1990
  isOnTop: {
1986
1991
  type: import("vue").PropType<boolean>;
1987
1992
  default: boolean;
@@ -2147,7 +2152,7 @@ declare const DropdownTypes: () => (({
2147
2152
  onUnsavedSelectionUpdate?: (value: unknown[]) => any;
2148
2153
  onOpened?: () => any;
2149
2154
  onClosed?: () => any;
2150
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
2155
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "showClearAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "dynamicFilterMode" | "minSelections" | "maxSelections" | "alwaysShowScroll" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "triggerShownValuesCount" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "optionWarningKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "optionTooltipPosition" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
2151
2156
  $attrs: {
2152
2157
  [x: string]: unknown;
2153
2158
  };
@@ -2279,6 +2284,10 @@ declare const DropdownTypes: () => (({
2279
2284
  type: import("vue").PropType<number>;
2280
2285
  default: any;
2281
2286
  };
2287
+ alwaysShowScroll: {
2288
+ type: import("vue").PropType<boolean>;
2289
+ default: boolean;
2290
+ };
2282
2291
  isOnTop: {
2283
2292
  type: import("vue").PropType<boolean>;
2284
2293
  default: boolean;
@@ -2487,6 +2496,7 @@ declare const DropdownTypes: () => (({
2487
2496
  dynamicFilterMode: boolean;
2488
2497
  minSelections: number;
2489
2498
  maxSelections: number;
2499
+ alwaysShowScroll: boolean;
2490
2500
  isOnTop: boolean;
2491
2501
  triggerLabel: string;
2492
2502
  triggerHelperText: string;
@@ -2662,6 +2672,10 @@ declare const DropdownTypes: () => (({
2662
2672
  type: import("vue").PropType<number>;
2663
2673
  default: any;
2664
2674
  };
2675
+ alwaysShowScroll: {
2676
+ type: import("vue").PropType<boolean>;
2677
+ default: boolean;
2678
+ };
2665
2679
  isOnTop: {
2666
2680
  type: import("vue").PropType<boolean>;
2667
2681
  default: boolean;
@@ -2952,6 +2966,10 @@ declare const DropdownTypes: () => (({
2952
2966
  type: import("vue").PropType<number>;
2953
2967
  default: any;
2954
2968
  };
2969
+ alwaysShowScroll: {
2970
+ type: import("vue").PropType<boolean>;
2971
+ default: boolean;
2972
+ };
2955
2973
  isOnTop: {
2956
2974
  type: import("vue").PropType<boolean>;
2957
2975
  default: boolean;
@@ -3160,6 +3178,7 @@ declare const DropdownTypes: () => (({
3160
3178
  dynamicFilterMode: boolean;
3161
3179
  minSelections: number;
3162
3180
  maxSelections: number;
3181
+ alwaysShowScroll: boolean;
3163
3182
  isOnTop: boolean;
3164
3183
  triggerLabel: string;
3165
3184
  triggerHelperText: string;
@@ -3206,6 +3225,7 @@ declare const DropdownTypes: () => (({
3206
3225
  disabled: boolean;
3207
3226
  label: any;
3208
3227
  onClick: () => void;
3228
+ testId: string;
3209
3229
  };
3210
3230
  defaultTriggerProps: {
3211
3231
  placeholder: string;
@@ -3255,6 +3275,7 @@ declare const DropdownTypes: () => (({
3255
3275
  "option-end"?(_: {
3256
3276
  option: any;
3257
3277
  }): any;
3278
+ footer?(_: {}): any;
3258
3279
  };
3259
3280
  })) | import("vue").DefineComponent<{
3260
3281
  label: {
@@ -3345,6 +3366,8 @@ declare const DropdownTypes: () => (({
3345
3366
  valueToCopy: string;
3346
3367
  selected: unknown[];
3347
3368
  placeholder: string;
3369
+ triggerFeedbackText: string;
3370
+ triggerFeedbackVariant: "success" | "warning" | "error";
3348
3371
  inlineSearchPlaceholder: string;
3349
3372
  optionNameKey: string;
3350
3373
  optionIconKey: string;
@@ -3386,6 +3409,14 @@ declare const DropdownTypes: () => (({
3386
3409
  type: import("vue").PropType<string>;
3387
3410
  default: string;
3388
3411
  };
3412
+ triggerFeedbackText: {
3413
+ type: import("vue").PropType<string>;
3414
+ default: string;
3415
+ };
3416
+ triggerFeedbackVariant: {
3417
+ type: import("vue").PropType<"success" | "warning" | "error">;
3418
+ default: any;
3419
+ };
3389
3420
  inlineSearchPlaceholder: {
3390
3421
  type: import("vue").PropType<string>;
3391
3422
  default: string;
@@ -3441,7 +3472,7 @@ declare const DropdownTypes: () => (({
3441
3472
  }>> & {
3442
3473
  "onUpdate:selected"?: (value: unknown) => any;
3443
3474
  "onUpdate:isOpen"?: (value: unknown) => any;
3444
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
3475
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "disabled" | "size" | "valueToCopy" | "selected" | "placeholder" | "triggerFeedbackText" | "triggerFeedbackVariant" | "inlineSearchPlaceholder" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "disabledOptionKey" | "optionEndTextIconKey">;
3445
3476
  $attrs: {
3446
3477
  [x: string]: unknown;
3447
3478
  };
@@ -3487,6 +3518,14 @@ declare const DropdownTypes: () => (({
3487
3518
  type: import("vue").PropType<string>;
3488
3519
  default: string;
3489
3520
  };
3521
+ triggerFeedbackText: {
3522
+ type: import("vue").PropType<string>;
3523
+ default: string;
3524
+ };
3525
+ triggerFeedbackVariant: {
3526
+ type: import("vue").PropType<"success" | "warning" | "error">;
3527
+ default: any;
3528
+ };
3490
3529
  inlineSearchPlaceholder: {
3491
3530
  type: import("vue").PropType<string>;
3492
3531
  default: string;
@@ -3552,6 +3591,8 @@ declare const DropdownTypes: () => (({
3552
3591
  valueToCopy: string;
3553
3592
  selected: unknown[];
3554
3593
  placeholder: string;
3594
+ triggerFeedbackText: string;
3595
+ triggerFeedbackVariant: "success" | "warning" | "error";
3555
3596
  inlineSearchPlaceholder: string;
3556
3597
  optionNameKey: string;
3557
3598
  optionIconKey: string;
@@ -3613,6 +3654,14 @@ declare const DropdownTypes: () => (({
3613
3654
  type: import("vue").PropType<string>;
3614
3655
  default: string;
3615
3656
  };
3657
+ triggerFeedbackText: {
3658
+ type: import("vue").PropType<string>;
3659
+ default: string;
3660
+ };
3661
+ triggerFeedbackVariant: {
3662
+ type: import("vue").PropType<"success" | "warning" | "error">;
3663
+ default: any;
3664
+ };
3616
3665
  inlineSearchPlaceholder: {
3617
3666
  type: import("vue").PropType<string>;
3618
3667
  default: string;
@@ -3704,6 +3753,14 @@ declare const DropdownTypes: () => (({
3704
3753
  type: import("vue").PropType<string>;
3705
3754
  default: string;
3706
3755
  };
3756
+ triggerFeedbackText: {
3757
+ type: import("vue").PropType<string>;
3758
+ default: string;
3759
+ };
3760
+ triggerFeedbackVariant: {
3761
+ type: import("vue").PropType<"success" | "warning" | "error">;
3762
+ default: any;
3763
+ };
3707
3764
  inlineSearchPlaceholder: {
3708
3765
  type: import("vue").PropType<string>;
3709
3766
  default: string;
@@ -3769,6 +3826,8 @@ declare const DropdownTypes: () => (({
3769
3826
  valueToCopy: string;
3770
3827
  selected: unknown[];
3771
3828
  placeholder: string;
3829
+ triggerFeedbackText: string;
3830
+ triggerFeedbackVariant: "success" | "warning" | "error";
3772
3831
  inlineSearchPlaceholder: string;
3773
3832
  optionNameKey: string;
3774
3833
  optionIconKey: string;
@@ -6,6 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
6
6
  iconName?: string;
7
7
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
8
8
  iconSize?: string;
9
+ testId?: string;
9
10
  }>, {
10
11
  title: string;
11
12
  subtitle: any;
@@ -14,6 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
15
  iconName: any;
15
16
  iconType: string;
16
17
  iconSize: string;
18
+ testId: string;
17
19
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
20
  click: () => void;
19
21
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -24,6 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
24
26
  iconName?: string;
25
27
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
26
28
  iconSize?: string;
29
+ testId?: string;
27
30
  }>, {
28
31
  title: string;
29
32
  subtitle: any;
@@ -32,10 +35,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
35
  iconName: any;
33
36
  iconType: string;
34
37
  iconSize: string;
38
+ testId: string;
35
39
  }>>> & {
36
40
  onClick?: () => any;
37
41
  }, {
38
42
  title: string;
43
+ testId: string;
39
44
  variant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
40
45
  iconName: string;
41
46
  iconSize: string;