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

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 (151) 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_6db25923_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_2d66b7b6_lang.css +1 -0
  13. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  14. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  15. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  16. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  17. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  18. 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
  19. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  20. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  21. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  22. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  23. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  24. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  25. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  26. package/components/chart/Chart.vue.d.ts +5 -0
  27. package/components/chart/Chart.vue.js +4 -4
  28. package/components/chart/Chart.vue2.js +122 -112
  29. package/components/chart/ChartHeader.vue.d.ts +5 -0
  30. package/components/chart/ChartHeader.vue.js +3 -3
  31. package/components/chart/ChartHeader.vue2.js +49 -44
  32. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  33. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  34. package/components/chart/ChartHeaderTrend.vue2.js +42 -39
  35. package/components/chart/ChartLegend.vue.d.ts +5 -0
  36. package/components/chart/ChartLegend.vue.js +3 -3
  37. package/components/chart/ChartLegend.vue2.js +76 -71
  38. package/components/chart/ChartPlane.vue.d.ts +5 -0
  39. package/components/chart/ChartPlane.vue.js +3 -3
  40. package/components/chart/ChartPlane.vue2.js +125 -119
  41. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  42. package/components/chart/ChartTooltip.vue.js +2 -2
  43. package/components/chart/ChartTooltip.vue2.js +38 -34
  44. package/components/chart/LegendSorting.vue.d.ts +5 -0
  45. package/components/chart/LegendSorting.vue.js +16 -14
  46. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  47. package/components/chart/SettingsHeader.vue.js +3 -3
  48. package/components/chart/SettingsHeader.vue2.js +36 -29
  49. package/components/chart/index.d.ts +20 -1
  50. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  51. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  52. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  53. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  54. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  55. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  56. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  57. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  58. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  59. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  60. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  61. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  62. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  63. package/components/columnConfigurator/consts.d.ts +1 -0
  64. package/components/columnConfigurator/consts.js +4 -0
  65. package/components/columnConfigurator/index.d.ts +73 -0
  66. package/components/columnConfigurator/index.js +6 -0
  67. package/components/columnConfigurator/mockData.d.ts +30 -0
  68. package/components/columnConfigurator/utils.d.ts +2 -0
  69. package/components/columnConfigurator/utils.js +18 -0
  70. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  71. package/components/columnPicker/index.d.ts +20 -20
  72. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  73. package/components/dropdown/v4/ConditionalDropdown.vue2.js +99 -97
  74. package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -0
  75. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  76. package/components/dropdown/v4/DropdownV4.vue2.js +89 -82
  77. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  78. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  79. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  80. package/components/dropdown/v4/index.d.ts +41 -1
  81. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  82. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  83. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  84. package/components/emptyState/v4/index.d.ts +20 -1
  85. package/components/link/Link.vue.d.ts +5 -0
  86. package/components/link/Link.vue.js +3 -3
  87. package/components/link/Link.vue2.js +36 -28
  88. package/components/link/index.d.ts +20 -1
  89. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  90. package/components/sortableList/LoaderBars.vue.js +7 -0
  91. package/components/sortableList/LoaderBars.vue2.js +25 -0
  92. package/components/sortableList/SortableItem.vue.js +4 -4
  93. package/components/sortableList/SortableItem.vue2.js +3 -3
  94. package/components/sortableList/SortableList.vue.d.ts +2 -2
  95. package/components/sortableList/SortableList.vue.js +5 -5
  96. package/components/sortableList/SortableList.vue2.js +96 -106
  97. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  98. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  99. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  100. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  101. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  102. package/components/sortableList/consts.d.ts +2 -0
  103. package/components/sortableList/consts.js +4 -2
  104. package/components/sortableList/index.d.ts +39 -39
  105. package/components/table/common/consts.d.ts +2 -0
  106. package/components/table/common/consts.js +6 -4
  107. package/components/table/v4/DataGrid.vue.d.ts +4 -3
  108. package/components/table/v4/DataGrid.vue.js +4 -4
  109. package/components/table/v4/DataGrid.vue2.js +363 -335
  110. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  111. package/components/table/v4/DataGridContainer.vue.js +7 -0
  112. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  113. package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
  114. package/components/table/v4/DataGridHeader.vue.js +2 -2
  115. package/components/table/v4/DataGridHeader.vue2.js +30 -28
  116. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  117. package/components/table/v4/index.d.ts +104 -103
  118. package/components/tagsField/TagsField.types.d.ts +4 -0
  119. package/components/tagsField/TagsField.vue.d.ts +65 -0
  120. package/components/tagsField/TagsField.vue.js +7 -0
  121. package/components/tagsField/TagsField.vue2.js +90 -0
  122. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  123. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  124. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  125. package/components/tagsField/consts.d.ts +1 -0
  126. package/components/tagsField/consts.js +4 -0
  127. package/components/tagsField/index.d.ts +75 -0
  128. package/components/tagsField/index.js +6 -0
  129. package/index.d.ts +410 -288
  130. package/index.js +87 -79
  131. package/package.json +10 -1
  132. package/testids/index.d.ts +36 -0
  133. package/testids/index.js +37 -31
  134. package/utils/object.d.ts +2 -0
  135. package/utils/object.js +9 -5
  136. package/utils/search.js +1 -1
  137. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
  138. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  139. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
  140. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  141. package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +0 -1
  142. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +0 -1
  143. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +0 -1
  144. package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
  145. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +0 -1
  146. package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +0 -1
  147. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  148. package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
  149. package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
  150. package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
  151. 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
  };
@@ -3206,6 +3206,7 @@ declare const DropdownTypes: () => (({
3206
3206
  disabled: boolean;
3207
3207
  label: any;
3208
3208
  onClick: () => void;
3209
+ testId: string;
3209
3210
  };
3210
3211
  defaultTriggerProps: {
3211
3212
  placeholder: string;
@@ -3255,6 +3256,7 @@ declare const DropdownTypes: () => (({
3255
3256
  "option-end"?(_: {
3256
3257
  option: any;
3257
3258
  }): any;
3259
+ footer?(_: {}): any;
3258
3260
  };
3259
3261
  })) | import("vue").DefineComponent<{
3260
3262
  label: {
@@ -3345,6 +3347,8 @@ declare const DropdownTypes: () => (({
3345
3347
  valueToCopy: string;
3346
3348
  selected: unknown[];
3347
3349
  placeholder: string;
3350
+ triggerFeedbackText: string;
3351
+ triggerFeedbackVariant: "success" | "warning" | "error";
3348
3352
  inlineSearchPlaceholder: string;
3349
3353
  optionNameKey: string;
3350
3354
  optionIconKey: string;
@@ -3386,6 +3390,14 @@ declare const DropdownTypes: () => (({
3386
3390
  type: import("vue").PropType<string>;
3387
3391
  default: string;
3388
3392
  };
3393
+ triggerFeedbackText: {
3394
+ type: import("vue").PropType<string>;
3395
+ default: string;
3396
+ };
3397
+ triggerFeedbackVariant: {
3398
+ type: import("vue").PropType<"success" | "warning" | "error">;
3399
+ default: any;
3400
+ };
3389
3401
  inlineSearchPlaceholder: {
3390
3402
  type: import("vue").PropType<string>;
3391
3403
  default: string;
@@ -3441,7 +3453,7 @@ declare const DropdownTypes: () => (({
3441
3453
  }>> & {
3442
3454
  "onUpdate:selected"?: (value: unknown) => any;
3443
3455
  "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">;
3456
+ } & 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
3457
  $attrs: {
3446
3458
  [x: string]: unknown;
3447
3459
  };
@@ -3487,6 +3499,14 @@ declare const DropdownTypes: () => (({
3487
3499
  type: import("vue").PropType<string>;
3488
3500
  default: string;
3489
3501
  };
3502
+ triggerFeedbackText: {
3503
+ type: import("vue").PropType<string>;
3504
+ default: string;
3505
+ };
3506
+ triggerFeedbackVariant: {
3507
+ type: import("vue").PropType<"success" | "warning" | "error">;
3508
+ default: any;
3509
+ };
3490
3510
  inlineSearchPlaceholder: {
3491
3511
  type: import("vue").PropType<string>;
3492
3512
  default: string;
@@ -3552,6 +3572,8 @@ declare const DropdownTypes: () => (({
3552
3572
  valueToCopy: string;
3553
3573
  selected: unknown[];
3554
3574
  placeholder: string;
3575
+ triggerFeedbackText: string;
3576
+ triggerFeedbackVariant: "success" | "warning" | "error";
3555
3577
  inlineSearchPlaceholder: string;
3556
3578
  optionNameKey: string;
3557
3579
  optionIconKey: string;
@@ -3613,6 +3635,14 @@ declare const DropdownTypes: () => (({
3613
3635
  type: import("vue").PropType<string>;
3614
3636
  default: string;
3615
3637
  };
3638
+ triggerFeedbackText: {
3639
+ type: import("vue").PropType<string>;
3640
+ default: string;
3641
+ };
3642
+ triggerFeedbackVariant: {
3643
+ type: import("vue").PropType<"success" | "warning" | "error">;
3644
+ default: any;
3645
+ };
3616
3646
  inlineSearchPlaceholder: {
3617
3647
  type: import("vue").PropType<string>;
3618
3648
  default: string;
@@ -3704,6 +3734,14 @@ declare const DropdownTypes: () => (({
3704
3734
  type: import("vue").PropType<string>;
3705
3735
  default: string;
3706
3736
  };
3737
+ triggerFeedbackText: {
3738
+ type: import("vue").PropType<string>;
3739
+ default: string;
3740
+ };
3741
+ triggerFeedbackVariant: {
3742
+ type: import("vue").PropType<"success" | "warning" | "error">;
3743
+ default: any;
3744
+ };
3707
3745
  inlineSearchPlaceholder: {
3708
3746
  type: import("vue").PropType<string>;
3709
3747
  default: string;
@@ -3769,6 +3807,8 @@ declare const DropdownTypes: () => (({
3769
3807
  valueToCopy: string;
3770
3808
  selected: unknown[];
3771
3809
  placeholder: string;
3810
+ triggerFeedbackText: string;
3811
+ triggerFeedbackVariant: "success" | "warning" | "error";
3772
3812
  inlineSearchPlaceholder: string;
3773
3813
  optionNameKey: string;
3774
3814
  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;
@@ -1,7 +1,7 @@
1
1
  import t from "./EmptyStateV4.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-18728498"]]);
3
+ // import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-76757f22"]]);
5
5
  export {
6
6
  s as default
7
7
  };