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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +1 -0
  2. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_b2684c5f_lang.css +1 -0
  3. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  4. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +1 -0
  5. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
  6. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
  7. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
  8. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
  9. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  10. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
  11. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
  12. package/components/chart/Chart.vue.d.ts +0 -5
  13. package/components/chart/Chart.vue.js +3 -3
  14. package/components/chart/Chart.vue2.js +66 -69
  15. package/components/chart/index.d.ts +1 -20
  16. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +8 -3
  17. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  18. package/components/dropdown/v4/ConditionalDropdown.vue2.js +66 -60
  19. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  20. package/components/dropdown/v4/TreeDropdown.vue2.js +86 -86
  21. package/components/dropdown/v4/index.d.ts +12 -3
  22. package/components/icon/v4/IconFlag.vue.js +3 -3
  23. package/components/icon/v4/IconFlag.vue2.js +1 -1
  24. package/components/input/v4/TextField.vue.js +3 -3
  25. package/components/input/v4/TextField.vue2.js +164 -184
  26. package/components/sortableList/SortableItem.vue.d.ts +0 -5
  27. package/components/sortableList/SortableItem.vue.js +3 -3
  28. package/components/sortableList/SortableItem.vue2.js +65 -80
  29. package/components/sortableList/SortableList.vue.d.ts +0 -16
  30. package/components/sortableList/SortableList.vue.js +3 -3
  31. package/components/sortableList/SortableList.vue2.js +87 -100
  32. package/components/sortableList/index.d.ts +1 -59
  33. package/components/table/v4/DataGrid.vue.d.ts +1 -1
  34. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  35. package/components/table/v4/index.d.ts +40 -40
  36. package/components/table-cells/common/Editable.common.js +7 -8
  37. package/components/table-cells/common/EditableContext.d.ts +0 -1
  38. package/components/table-cells/v4/EditableV4.vue.d.ts +0 -5
  39. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  40. package/components/table-cells/v4/EditableV4.vue2.js +10 -11
  41. package/components/table-cells/v4/index.d.ts +1 -20
  42. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  43. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  44. package/components/typography/v4/Typography.vue.js +4 -4
  45. package/components/typography/v4/Typography.vue2.js +1 -1
  46. package/index.d.ts +108 -244
  47. package/index.js +1 -1
  48. package/package.json +3 -3
  49. package/testids/index.d.ts +0 -1
  50. package/testids/index.js +13 -13
  51. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
  52. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +0 -1
  53. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +0 -1
  54. package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +0 -1
  55. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +0 -1
  56. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  57. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  58. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  59. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  60. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +0 -1
@@ -1,12 +1,12 @@
1
- import "../../SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css"; import { defineComponent as P, useCssVars as E, useSlots as $, computed as C, watch as I, ref as R, openBlock as l, createElementBlock as n, normalizeClass as f, unref as t, withModifiers as u, createElementVNode as d, createVNode as h, createBlock as a, withCtx as b, createTextVNode as S, toDisplayString as V, createCommentVNode as c, renderSlot as D, mergeProps as F, normalizeProps as j, Fragment as q, renderList as A } from "vue";
2
- import L from "../typography/v4/Typography.vue.js";
1
+ import "../../SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css"; import { defineComponent as P, useSlots as E, computed as x, watch as $, ref as I, openBlock as l, createElementBlock as i, normalizeClass as f, unref as e, withModifiers as u, createElementVNode as a, createVNode as h, createBlock as r, withCtx as b, createTextVNode as S, toDisplayString as w, createCommentVNode as d, renderSlot as R, mergeProps as F, normalizeProps as D, Fragment as j, renderList as q } from "vue";
2
+ import V from "../typography/v4/Typography.vue.js";
3
3
  import m from "../icon/v4/IconV4.vue.js";
4
- import w from "../icon/v4/IconFlag.vue.js";
5
- import G from "./SortableItemLabel.vue.js";
6
- import { useVirtualList as J } from "@vueuse/core";
7
- import { matchString as K } from "../../utils/search.js";
8
- import { useHoverEffect as U } from "./composables/useHoverEffect.js";
9
- const W = { class: "draggable-handle" }, X = { class: "item__prefix" }, Y = ["onClick"], Z = { class: "item__text" }, _ = ["onClick"], de = /* @__PURE__ */ P({
4
+ import L from "../icon/v4/IconFlag.vue.js";
5
+ import A from "./SortableItemLabel.vue.js";
6
+ import { useVirtualList as G } from "@vueuse/core";
7
+ import { matchString as J } from "../../utils/search.js";
8
+ import { useHoverEffect as K } from "./composables/useHoverEffect.js";
9
+ const U = { class: "draggable-handle" }, W = { class: "item__prefix" }, X = ["onClick"], Y = { class: "item__text" }, Z = ["onClick"], ae = /* @__PURE__ */ P({
10
10
  __name: "SortableItem",
11
11
  props: {
12
12
  item: null,
@@ -15,142 +15,127 @@ const W = { class: "draggable-handle" }, X = { class: "item__prefix" }, Y = ["on
15
15
  isSelected: { type: Boolean, default: !1 },
16
16
  selectedChildId: { default: null },
17
17
  searchQuery: { default: null },
18
- childListMaxHeight: { default: "530px" },
19
18
  searchHandler: { type: Function, default: null },
20
19
  displayValue: null
21
20
  },
22
21
  emits: ["toggle", "select", "selectChild"],
23
- setup(e, { emit: y }) {
24
- const s = e;
25
- E((r) => ({
26
- bdf83566: e.childListMaxHeight
27
- }));
28
- const H = $(), M = () => {
29
- y("toggle", !s.isOpen);
30
- }, g = C(() => (s.item.children || []).filter(
31
- (o) => s.searchHandler ? s.searchHandler(o, s.searchQuery) : K(o.displayText, s.searchQuery)
32
- )), k = C(() => g.value.length > 0), z = (r) => r.id === s.selectedChildId, {
33
- list: Q,
34
- containerProps: B,
35
- wrapperProps: T,
22
+ setup(t, { emit: y }) {
23
+ const n = t, Q = E(), B = () => {
24
+ y("toggle", !n.isOpen);
25
+ }, g = x(() => (n.item.children || []).filter(
26
+ (o) => n.searchHandler ? n.searchHandler(o, n.searchQuery) : J(o.displayText, n.searchQuery)
27
+ )), k = x(() => g.value.length > 0), H = (c) => c.id === n.selectedChildId, {
28
+ list: M,
29
+ containerProps: T,
30
+ wrapperProps: z,
36
31
  scrollTo: N
37
- } = J(g, {
32
+ } = G(g, {
38
33
  itemHeight: 34
39
34
  });
40
- I(
41
- () => s.searchQuery,
35
+ $(
36
+ () => n.searchQuery,
42
37
  () => N(0)
43
38
  );
44
- const p = R(null), { handleMouseout: v, handleMouseover: x } = U(
39
+ const p = I(null), { handleMouseout: v, handleMouseover: C } = K(
45
40
  p,
46
41
  "sortable-item--hovered"
47
42
  );
48
- return (r, o) => (l(), n("div", {
43
+ return (c, o) => (l(), i("div", {
49
44
  ref_key: "itemRef",
50
45
  ref: p,
51
- class: f(["sortable-item", { "sortable-item--selected": e.isSelected }]),
46
+ class: f(["sortable-item", { "sortable-item--selected": t.isSelected }]),
52
47
  onMouseover: o[1] || (o[1] = //@ts-ignore
53
- (...i) => t(x) && t(x)(...i)),
48
+ (...s) => e(C) && e(C)(...s)),
54
49
  onMouseout: o[2] || (o[2] = //@ts-ignore
55
- (...i) => t(v) && t(v)(...i)),
56
- onClick: o[3] || (o[3] = u((i) => y("select"), ["stop"]))
50
+ (...s) => e(v) && e(v)(...s)),
51
+ onClick: o[3] || (o[3] = u((s) => y("select"), ["stop"]))
57
52
  }, [
58
- d("div", {
59
- class: f(["item", {
60
- "drag-allowed": !e.item.isLocked && !e.searchQuery,
61
- "item--selected": e.isSelected && !e.selectedChildId
62
- }])
53
+ a("div", {
54
+ class: f(["item", { "drag-allowed": !t.item.isLocked && !t.searchQuery }])
63
55
  }, [
64
- d("div", W, [
65
- h(t(m), {
56
+ a("div", U, [
57
+ h(e(m), {
66
58
  name: "dots-six-vertical",
67
- size: "20px",
59
+ width: "20px",
68
60
  type: "bold"
69
61
  })
70
62
  ]),
71
- d("div", X, [
72
- e.item.isLocked ? (l(), a(t(m), {
63
+ a("div", W, [
64
+ t.item.isLocked ? (l(), r(e(m), {
73
65
  key: 1,
74
66
  class: "locked-icon",
75
67
  name: "lock",
76
- size: "16px"
77
- })) : (l(), a(t(L), {
68
+ width: "16px"
69
+ })) : (l(), r(e(V), {
78
70
  key: 0,
79
71
  class: "order-num",
80
72
  variant: "subtitle2"
81
73
  }, {
82
74
  default: b(() => [
83
- S(V(e.index + 1) + ". ", 1)
75
+ S(w(t.index + 1) + ". ", 1)
84
76
  ]),
85
77
  _: 1
86
78
  }))
87
79
  ]),
88
- t(k) && !e.searchQuery ? (l(), n("div", {
80
+ e(k) && !t.searchQuery ? (l(), i("div", {
89
81
  key: 0,
90
82
  class: "expand-icon",
91
- onClick: u(M, ["stop"])
83
+ onClick: u(B, ["stop"])
92
84
  }, [
93
- e.isOpen ? (l(), a(t(m), {
85
+ t.isOpen ? (l(), r(e(m), {
94
86
  key: 0,
95
87
  name: "caret-down",
96
88
  size: "16px"
97
- })) : (l(), a(t(m), {
89
+ })) : (l(), r(e(m), {
98
90
  key: 1,
99
91
  name: "caret-right",
100
92
  size: "16px"
101
93
  }))
102
- ], 8, Y)) : c("", !0),
103
- d("div", Z, [
104
- e.item.countryFlag ? (l(), a(t(w), {
94
+ ], 8, X)) : d("", !0),
95
+ a("div", Y, [
96
+ t.item.countryFlag ? (l(), r(e(L), {
105
97
  key: 0,
106
98
  class: "country-flag",
107
- "country-code": e.item.countryFlag
108
- }, null, 8, ["country-code"])) : c("", !0),
109
- h(G, {
110
- "display-value": e.displayValue,
111
- item: e.item
99
+ "country-code": t.item.countryFlag
100
+ }, null, 8, ["country-code"])) : d("", !0),
101
+ h(A, {
102
+ "display-value": t.displayValue,
103
+ item: t.item
112
104
  }, null, 8, ["display-value", "item"])
113
105
  ]),
114
- t(H).menu ? (l(), n("div", {
106
+ e(Q).menu ? (l(), i("div", {
115
107
  key: 1,
116
108
  class: "item__menu",
117
109
  onClick: o[0] || (o[0] = u(() => {
118
110
  }, ["stop"]))
119
111
  }, [
120
- D(r.$slots, "menu", {}, void 0, !0)
121
- ])) : c("", !0)
112
+ R(c.$slots, "menu", {}, void 0, !0)
113
+ ])) : d("", !0)
122
114
  ], 2),
123
- d("div", F(t(B), { class: "child-list" }), [
124
- t(k) && e.isOpen ? (l(), n("ul", j(F({ key: 0 }, t(T))), [
125
- (l(!0), n(q, null, A(t(Q), ({ data: i, index: O }) => (l(), n("li", {
115
+ a("div", F(e(T), { class: "child-list" }), [
116
+ e(k) && t.isOpen ? (l(), i("ul", D(F({ key: 0 }, e(z))), [
117
+ (l(!0), i(j, null, q(e(M), ({ data: s, index: O }) => (l(), i("li", {
126
118
  key: O,
127
- class: f({ selected: z(i) }),
128
- onClick: u((ee) => y("selectChild", i), ["stop"])
119
+ class: f({ selected: H(s) }),
120
+ onClick: u((_) => y("selectChild", s), ["stop"])
129
121
  }, [
130
- i.countryFlag ? (l(), a(t(w), {
122
+ s.countryFlag ? (l(), r(e(L), {
131
123
  key: 0,
132
124
  class: "country-flag",
133
- "country-code": i.countryFlag
134
- }, null, 8, ["country-code"])) : c("", !0),
135
- h(t(L), {
136
- class: "country-title",
137
- variant: "body2",
138
- "tooltip-placement": "top",
139
- "tooltip-text": e.displayValue(i),
140
- "is-truncated": "",
141
- "with-tooltip": ""
142
- }, {
125
+ "country-code": s.countryFlag
126
+ }, null, 8, ["country-code"])) : d("", !0),
127
+ h(e(V), { variant: "body2" }, {
143
128
  default: b(() => [
144
- S(V(e.displayValue(i)), 1)
129
+ S(w(t.displayValue(s)), 1)
145
130
  ]),
146
131
  _: 2
147
- }, 1032, ["tooltip-text"])
148
- ], 10, _))), 128))
149
- ], 16)) : c("", !0)
132
+ }, 1024)
133
+ ], 10, Z))), 128))
134
+ ], 16)) : d("", !0)
150
135
  ], 16)
151
136
  ], 34));
152
137
  }
153
138
  });
154
139
  export {
155
- de as default
140
+ ae as default
156
141
  };
@@ -12,9 +12,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  isLoading?: boolean;
13
13
  loadingRowCount?: number;
14
14
  emptyStateTitle?: string;
15
- childListMaxHeight?: string;
16
- isSticky?: boolean;
17
- zIndexBase?: number;
18
15
  testId?: string;
19
16
  }>, {
20
17
  items: () => any[];
@@ -29,9 +26,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
26
  isLoading: boolean;
30
27
  loadingRowCount: number;
31
28
  emptyStateTitle: string;
32
- childListMaxHeight: string;
33
- isSticky: boolean;
34
- zIndexBase: number;
35
29
  testId: string;
36
30
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
31
  sortableItemDragged: (event: {
@@ -57,9 +51,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
57
51
  isLoading?: boolean;
58
52
  loadingRowCount?: number;
59
53
  emptyStateTitle?: string;
60
- childListMaxHeight?: string;
61
- isSticky?: boolean;
62
- zIndexBase?: number;
63
54
  testId?: string;
64
55
  }>, {
65
56
  items: () => any[];
@@ -74,9 +65,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
74
65
  isLoading: boolean;
75
66
  loadingRowCount: number;
76
67
  emptyStateTitle: string;
77
- childListMaxHeight: string;
78
- isSticky: boolean;
79
- zIndexBase: number;
80
68
  testId: string;
81
69
  }>>> & {
82
70
  onClearSearch?: () => any;
@@ -97,17 +85,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
97
85
  searchPlaceholder: string;
98
86
  items: SortableListItem[];
99
87
  selectedChildId: string | number;
100
- childListMaxHeight: string;
101
88
  searchHandler: (item: SortableListItem, searchQuery: string) => boolean;
102
89
  openId: string | number;
103
90
  selectedId: string | number;
104
91
  showSearch: boolean;
105
92
  loadingRowCount: number;
106
93
  emptyStateTitle: string;
107
- isSticky: boolean;
108
- zIndexBase: number;
109
94
  }>, {
110
- header?(_: {}): any;
111
95
  menu?(_: {
112
96
  item: SortableListItem;
113
97
  }): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./SortableList.vue2.js";
2
2
  /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css"; //*');
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f267f88"]]);
3
+ // import "../../SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css"; //*');
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-156c01ca"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };
@@ -1,21 +1,21 @@
1
- import "../../SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css"; import { defineComponent as P, useCssVars as z, useSlots as G, computed as S, ref as U, openBlock as s, createElementBlock as r, mergeProps as V, unref as l, normalizeClass as K, renderSlot as g, createCommentVNode as h, createBlock as p, isRef as A, withCtx as I, Fragment as x, renderList as B, createSlots as E, createElementVNode as Q, createVNode as H, createTextVNode as j, toDisplayString as J } from "vue";
2
- import { VueDraggable as W } from "vue-draggable-plus";
3
- import N from "./SortableItem.vue.js";
4
- import X from "../search/v4/SearchV4.vue.js";
5
- import Y from "../typography/v4/Typography.vue.js";
6
- import Z from "../skeleton/v4/SkeletonV4.vue.js";
7
- import { useVModel as _ } from "@vueuse/core";
8
- import { matchString as q } from "../../utils/search.js";
9
- import { useTestIdAttrs as ee } from "../../utils/testIds.js";
10
- import { SortableListTestIdModifiers as v } from "../../testids/index.js";
1
+ import "../../SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css"; import { defineComponent as G, useSlots as U, computed as p, ref as M, openBlock as s, createElementBlock as i, mergeProps as T, unref as l, createBlock as g, isRef as $, createCommentVNode as m, withCtx as y, Fragment as V, renderList as D, createSlots as w, renderSlot as S, createElementVNode as K, createVNode as x, createTextVNode as Q, toDisplayString as j } from "vue";
2
+ import { VueDraggable as z } from "vue-draggable-plus";
3
+ import q from "./SortableItem.vue.js";
4
+ import J from "../search/v4/SearchV4.vue.js";
5
+ import W from "../typography/v4/Typography.vue.js";
6
+ import X from "../skeleton/v4/SkeletonV4.vue.js";
7
+ import { useVModel as Y } from "@vueuse/core";
8
+ import { matchString as H } from "../../utils/search.js";
9
+ import { useTestIdAttrs as Z } from "../../utils/testIds.js";
10
+ import { SortableListTestIdModifiers as I } from "../../testids/index.js";
11
11
  import { DRAG_CURSOR_CSS_CLASS as O } from "./consts.js";
12
- const te = {
12
+ const _ = {
13
13
  key: 1,
14
14
  class: "sortable-list-container"
15
- }, le = { class: "loader-bars" }, de = {
15
+ }, ee = { class: "loader-bars" }, te = {
16
16
  key: 3,
17
17
  class: "empty-state-title"
18
- }, ye = /* @__PURE__ */ P({
18
+ }, fe = /* @__PURE__ */ G({
19
19
  __name: "SortableList",
20
20
  props: {
21
21
  items: { default: () => [] },
@@ -30,150 +30,137 @@ const te = {
30
30
  isLoading: { type: Boolean, default: !1 },
31
31
  loadingRowCount: { default: 3 },
32
32
  emptyStateTitle: { default: "No results" },
33
- childListMaxHeight: { default: "530px" },
34
- isSticky: { type: Boolean, default: !0 },
35
- zIndexBase: { default: 100 },
36
33
  testId: { default: "" }
37
34
  },
38
35
  emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
39
- setup(d, { emit: n }) {
40
- const i = d;
41
- z((t) => ({
42
- "2b5787e0": d.zIndexBase
43
- }));
44
- const y = G(), u = _(i, "search", n), k = S(() => !!u.value?.trim()), C = S(() => k.value ? i.items.filter((t) => {
36
+ setup(d, { emit: o }) {
37
+ const r = d, R = U(), u = Y(r, "search", o), v = p(() => !!u.value?.trim()), C = p(() => v.value ? r.items.filter((t) => {
45
38
  const a = t.children || [], e = u.value;
46
- return i.searchHandler ? i.searchHandler(t, e) : q(t.displayText, e) || // match parent item
47
- a.some((o) => q(o.displayText, e));
48
- }) : i.items), f = S({
39
+ return r.searchHandler ? r.searchHandler(t, e) : H(t.displayText, e) || // match parent item
40
+ a.some((n) => H(n.displayText, e));
41
+ }) : r.items), h = p({
49
42
  get() {
50
43
  return C.value.filter((t) => !t.isLocked);
51
44
  },
52
45
  set(t) {
53
- n("update:items", [...t, ...L.value]);
46
+ o("update:items", [...t, ...k.value]);
54
47
  }
55
- }), L = S(
48
+ }), k = p(
56
49
  () => C.value.filter((t) => t.isLocked)
57
- ), b = U(!1), F = (t) => {
50
+ ), b = M(!1), F = (t) => {
58
51
  b.value = !0, setTimeout(() => t.target.classList.add(O), 50);
59
- }, M = (t) => {
60
- const { target: a, item: e, newIndex: o } = t;
52
+ }, P = (t) => {
53
+ const { target: a, item: e, newIndex: n } = t;
61
54
  b.value = !1, a.classList.remove(O);
62
55
  const c = e.attributes["data-id"]?.value;
63
- n("sortableItemDragged", { id: c, newIndex: o });
64
- }, D = (t) => (k.value || t.id === i.openId) && !b.value, R = (t, a) => {
65
- a ? n("update:openId", t.id) : n("update:openId", null);
66
- }, m = (t) => t.id === i.selectedId, $ = (t) => {
67
- n("update:selectedId", t.id), n("update:selectedChildId", null);
68
- }, w = (t, a) => {
69
- n("update:selectedChildId", t.id), n("update:selectedId", a.id), n("update:openId", a.id);
70
- }, T = ee(i.testId, v);
71
- return (t, a) => (s(), r("div", V({ class: "sortable-list-and-header-container" }, l(T)[l(v).CONTAINER]), [
72
- l(y).header || d.showSearch ? (s(), r("div", {
56
+ o("sortableItemDragged", { id: c, newIndex: n });
57
+ }, A = (t) => (v.value || t.id === r.openId) && !b.value, B = (t, a) => {
58
+ a ? o("update:openId", t.id) : o("update:openId", null);
59
+ }, f = (t) => t.id === r.selectedId, E = (t) => {
60
+ o("update:selectedId", t.id), o("update:selectedChildId", null);
61
+ }, N = (t, a) => {
62
+ o("update:selectedChildId", t.id), o("update:selectedId", a.id), o("update:openId", a.id);
63
+ }, L = Z(r.testId, I);
64
+ return (t, a) => (s(), i("div", T({ class: "sortable-list-and-search-container" }, l(L)[l(I).CONTAINER]), [
65
+ d.showSearch ? (s(), g(l(J), {
73
66
  key: 0,
74
- class: K(["header-container", { sticky: d.isSticky }])
75
- }, [
76
- l(y).header ? g(t.$slots, "header", { key: 0 }, void 0, !0) : h("", !0),
77
- d.showSearch ? (s(), p(l(X), {
78
- key: 1,
79
- modelValue: l(u),
80
- "onUpdate:modelValue": a[0] || (a[0] = (e) => A(u) ? u.value = e : null),
81
- placeholder: d.searchPlaceholder,
82
- "test-id": d.testId,
83
- onOnClear: a[1] || (a[1] = (e) => n("clearSearch"))
84
- }, null, 8, ["modelValue", "placeholder", "test-id"])) : h("", !0)
85
- ], 2)) : h("", !0),
86
- d.isLoading ? g(t.$slots, "loader", { key: 2 }, () => [
87
- Q("div", le, [
88
- (s(!0), r(x, null, B(d.loadingRowCount, (e) => (s(), r("div", { key: e }, [
89
- H(l(Z), {
67
+ modelValue: l(u),
68
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => $(u) ? u.value = e : null),
69
+ class: "list-search",
70
+ placeholder: d.searchPlaceholder,
71
+ "test-id": d.testId,
72
+ onOnClear: a[1] || (a[1] = (e) => o("clearSearch"))
73
+ }, null, 8, ["modelValue", "placeholder", "test-id"])) : m("", !0),
74
+ d.isLoading ? S(t.$slots, "loader", { key: 2 }, () => [
75
+ K("div", ee, [
76
+ (s(!0), i(V, null, D(d.loadingRowCount, (e) => (s(), i("div", { key: e }, [
77
+ x(l(X), {
90
78
  round: "",
91
79
  class: "loader-bar"
92
80
  })
93
81
  ]))), 128))
94
82
  ])
95
- ], !0) : (s(), r("div", te, [
96
- l(f).length ? (s(), p(l(W), V({
83
+ ], !0) : (s(), i("div", _, [
84
+ l(h).length ? (s(), g(l(z), T({
97
85
  key: 0,
98
- modelValue: l(f),
99
- "onUpdate:modelValue": a[2] || (a[2] = (e) => A(f) ? f.value = e : null),
86
+ modelValue: l(h),
87
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => $(h) ? h.value = e : null),
100
88
  class: "sortable-list",
101
89
  filter: ".expand-icon",
102
90
  animation: 150,
103
91
  handle: ".draggable-handle",
104
- disabled: l(k)
105
- }, l(T)[l(v).DRAGGABLE_LIST], {
92
+ disabled: l(v)
93
+ }, l(L)[l(I).DRAGGABLE_LIST], {
106
94
  onStart: F,
107
- onEnd: M
95
+ onEnd: P
108
96
  }), {
109
- default: I(() => [
110
- (s(!0), r(x, null, B(l(f), (e, o) => (s(), p(N, {
97
+ default: y(() => [
98
+ (s(!0), i(V, null, D(l(h), (e, n) => (s(), g(q, {
111
99
  key: e.id,
112
100
  "data-id": e.id,
113
101
  item: e,
114
- index: o,
115
- "is-open": D(e),
116
- "is-selected": m(e),
117
- "selected-child-id": m(e) ? d.selectedChildId : null,
102
+ index: n,
103
+ "is-open": A(e),
104
+ "is-selected": f(e),
105
+ "selected-child-id": f(e) ? d.selectedChildId : null,
118
106
  "display-value": d.displayValue,
119
107
  "search-query": l(u),
120
108
  "search-handler": d.searchHandler,
121
- onToggle: (c) => R(e, c),
122
- onSelect: (c) => $(e),
123
- onSelectChild: (c) => w(c, e)
124
- }, E({ _: 2 }, [
125
- l(y).menu ? {
109
+ onToggle: (c) => B(e, c),
110
+ onSelect: (c) => E(e),
111
+ onSelectChild: (c) => N(c, e)
112
+ }, w({ _: 2 }, [
113
+ l(R).menu ? {
126
114
  name: "menu",
127
- fn: I(() => [
128
- g(t.$slots, "menu", { item: e }, void 0, !0)
115
+ fn: y(() => [
116
+ S(t.$slots, "menu", { item: e }, void 0, !0)
129
117
  ]),
130
118
  key: "0"
131
119
  } : void 0
132
120
  ]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
133
121
  ]),
134
122
  _: 3
135
- }, 16, ["modelValue", "disabled"])) : h("", !0),
136
- l(L).length ? (s(), r("div", V({
123
+ }, 16, ["modelValue", "disabled"])) : m("", !0),
124
+ l(k).length ? (s(), i("div", T({
137
125
  key: 1,
138
126
  class: "locked-list"
139
- }, l(T)[l(v).LOCKED_LIST]), [
140
- (s(!0), r(x, null, B(l(L), (e) => (s(), p(N, {
127
+ }, l(L)[l(I).LOCKED_LIST]), [
128
+ (s(!0), i(V, null, D(l(k), (e) => (s(), g(q, {
141
129
  key: e.id,
142
130
  item: e,
143
- "is-open": D(e),
144
- "is-selected": m(e),
145
- "selected-child-id": m(e) ? d.selectedChildId : null,
131
+ "is-open": A(e),
132
+ "is-selected": f(e),
133
+ "selected-child-id": f(e) ? d.selectedChildId : null,
146
134
  "display-value": d.displayValue,
147
135
  "search-query": l(u),
148
136
  "on-search": d.searchHandler,
149
- "child-list-max-height": d.childListMaxHeight,
150
- onToggle: (o) => R(e, o),
151
- onSelect: (o) => $(e),
152
- onSelectChild: (o) => w(o, e)
153
- }, E({ _: 2 }, [
154
- l(y).menu ? {
137
+ onToggle: (n) => B(e, n),
138
+ onSelect: (n) => E(e),
139
+ onSelectChild: (n) => N(n, e)
140
+ }, w({ _: 2 }, [
141
+ l(R).menu ? {
155
142
  name: "menu",
156
- fn: I(() => [
157
- g(t.$slots, "menu", { item: e }, void 0, !0)
143
+ fn: y(() => [
144
+ S(t.$slots, "menu", { item: e }, void 0, !0)
158
145
  ]),
159
146
  key: "0"
160
147
  } : void 0
161
- ]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "onToggle", "onSelect", "onSelectChild"]))), 128))
162
- ], 16)) : h("", !0)
148
+ ]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
149
+ ], 16)) : m("", !0)
163
150
  ])),
164
- !l(C).length && !d.isLoading ? (s(), r("div", de, [
165
- g(t.$slots, "empty-state", {}, () => [
166
- H(l(Y), { variant: "body2" }, {
167
- default: I(() => [
168
- j(J(d.emptyStateTitle), 1)
151
+ !l(C).length && !d.isLoading ? (s(), i("div", te, [
152
+ S(t.$slots, "empty-state", {}, () => [
153
+ x(l(W), { variant: "body2" }, {
154
+ default: y(() => [
155
+ Q(j(d.emptyStateTitle), 1)
169
156
  ]),
170
157
  _: 1
171
158
  })
172
159
  ], !0)
173
- ])) : h("", !0)
160
+ ])) : m("", !0)
174
161
  ], 16));
175
162
  }
176
163
  });
177
164
  export {
178
- ye as default
165
+ fe as default
179
166
  };