@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.
- package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_b2684c5f_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +0 -5
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +66 -69
- package/components/chart/index.d.ts +1 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +8 -3
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +66 -60
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +86 -86
- package/components/dropdown/v4/index.d.ts +12 -3
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +164 -184
- package/components/sortableList/SortableItem.vue.d.ts +0 -5
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +65 -80
- package/components/sortableList/SortableList.vue.d.ts +0 -16
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +87 -100
- package/components/sortableList/index.d.ts +1 -59
- package/components/table/v4/DataGrid.vue.d.ts +1 -1
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +40 -40
- package/components/table-cells/common/Editable.common.js +7 -8
- package/components/table-cells/common/EditableContext.d.ts +0 -1
- package/components/table-cells/v4/EditableV4.vue.d.ts +0 -5
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +10 -11
- package/components/table-cells/v4/index.d.ts +1 -20
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
- package/components/typography/v4/Typography.vue.js +4 -4
- package/components/typography/v4/Typography.vue2.js +1 -1
- package/index.d.ts +108 -244
- package/index.js +1 -1
- package/package.json +3 -3
- package/testids/index.d.ts +0 -1
- package/testids/index.js +13 -13
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2c6a03f9_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../SortableItem.
|
|
2
|
-
import
|
|
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
|
|
5
|
-
import
|
|
6
|
-
import { useVirtualList as
|
|
7
|
-
import { matchString as
|
|
8
|
-
import { useHoverEffect as
|
|
9
|
-
const
|
|
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(
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
} =
|
|
32
|
+
} = G(g, {
|
|
38
33
|
itemHeight: 34
|
|
39
34
|
});
|
|
40
|
-
|
|
41
|
-
() =>
|
|
35
|
+
$(
|
|
36
|
+
() => n.searchQuery,
|
|
42
37
|
() => N(0)
|
|
43
38
|
);
|
|
44
|
-
const p =
|
|
39
|
+
const p = I(null), { handleMouseout: v, handleMouseover: C } = K(
|
|
45
40
|
p,
|
|
46
41
|
"sortable-item--hovered"
|
|
47
42
|
);
|
|
48
|
-
return (
|
|
43
|
+
return (c, o) => (l(), i("div", {
|
|
49
44
|
ref_key: "itemRef",
|
|
50
45
|
ref: p,
|
|
51
|
-
class: f(["sortable-item", { "sortable-item--selected":
|
|
46
|
+
class: f(["sortable-item", { "sortable-item--selected": t.isSelected }]),
|
|
52
47
|
onMouseover: o[1] || (o[1] = //@ts-ignore
|
|
53
|
-
(...
|
|
48
|
+
(...s) => e(C) && e(C)(...s)),
|
|
54
49
|
onMouseout: o[2] || (o[2] = //@ts-ignore
|
|
55
|
-
(...
|
|
56
|
-
onClick: o[3] || (o[3] = u((
|
|
50
|
+
(...s) => e(v) && e(v)(...s)),
|
|
51
|
+
onClick: o[3] || (o[3] = u((s) => y("select"), ["stop"]))
|
|
57
52
|
}, [
|
|
58
|
-
|
|
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
|
-
|
|
65
|
-
h(
|
|
56
|
+
a("div", U, [
|
|
57
|
+
h(e(m), {
|
|
66
58
|
name: "dots-six-vertical",
|
|
67
|
-
|
|
59
|
+
width: "20px",
|
|
68
60
|
type: "bold"
|
|
69
61
|
})
|
|
70
62
|
]),
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
77
|
-
})) : (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(
|
|
75
|
+
S(w(t.index + 1) + ". ", 1)
|
|
84
76
|
]),
|
|
85
77
|
_: 1
|
|
86
78
|
}))
|
|
87
79
|
]),
|
|
88
|
-
|
|
80
|
+
e(k) && !t.searchQuery ? (l(), i("div", {
|
|
89
81
|
key: 0,
|
|
90
82
|
class: "expand-icon",
|
|
91
|
-
onClick: u(
|
|
83
|
+
onClick: u(B, ["stop"])
|
|
92
84
|
}, [
|
|
93
|
-
|
|
85
|
+
t.isOpen ? (l(), r(e(m), {
|
|
94
86
|
key: 0,
|
|
95
87
|
name: "caret-down",
|
|
96
88
|
size: "16px"
|
|
97
|
-
})) : (l(),
|
|
89
|
+
})) : (l(), r(e(m), {
|
|
98
90
|
key: 1,
|
|
99
91
|
name: "caret-right",
|
|
100
92
|
size: "16px"
|
|
101
93
|
}))
|
|
102
|
-
], 8,
|
|
103
|
-
|
|
104
|
-
|
|
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":
|
|
108
|
-
}, null, 8, ["country-code"])) :
|
|
109
|
-
h(
|
|
110
|
-
"display-value":
|
|
111
|
-
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
|
-
|
|
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
|
-
|
|
121
|
-
])) :
|
|
112
|
+
R(c.$slots, "menu", {}, void 0, !0)
|
|
113
|
+
])) : d("", !0)
|
|
122
114
|
], 2),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
(l(!0),
|
|
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:
|
|
128
|
-
onClick: u((
|
|
119
|
+
class: f({ selected: H(s) }),
|
|
120
|
+
onClick: u((_) => y("selectChild", s), ["stop"])
|
|
129
121
|
}, [
|
|
130
|
-
|
|
122
|
+
s.countryFlag ? (l(), r(e(L), {
|
|
131
123
|
key: 0,
|
|
132
124
|
class: "country-flag",
|
|
133
|
-
"country-code":
|
|
134
|
-
}, null, 8, ["country-code"])) :
|
|
135
|
-
h(
|
|
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(
|
|
129
|
+
S(w(t.displayValue(s)), 1)
|
|
145
130
|
]),
|
|
146
131
|
_: 2
|
|
147
|
-
},
|
|
148
|
-
], 10,
|
|
149
|
-
], 16)) :
|
|
132
|
+
}, 1024)
|
|
133
|
+
], 10, Z))), 128))
|
|
134
|
+
], 16)) : d("", !0)
|
|
150
135
|
], 16)
|
|
151
136
|
], 34));
|
|
152
137
|
}
|
|
153
138
|
});
|
|
154
139
|
export {
|
|
155
|
-
|
|
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.
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../SortableList.
|
|
2
|
-
import { VueDraggable as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useVModel as
|
|
8
|
-
import { matchString as
|
|
9
|
-
import { useTestIdAttrs as
|
|
10
|
-
import { SortableListTestIdModifiers as
|
|
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
|
|
12
|
+
const _ = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "sortable-list-container"
|
|
15
|
-
},
|
|
15
|
+
}, ee = { class: "loader-bars" }, te = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "empty-state-title"
|
|
18
|
-
},
|
|
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:
|
|
40
|
-
const
|
|
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
|
|
47
|
-
a.some((
|
|
48
|
-
}) :
|
|
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
|
-
|
|
46
|
+
o("update:items", [...t, ...k.value]);
|
|
54
47
|
}
|
|
55
|
-
}),
|
|
48
|
+
}), k = p(
|
|
56
49
|
() => C.value.filter((t) => t.isLocked)
|
|
57
|
-
), b =
|
|
50
|
+
), b = M(!1), F = (t) => {
|
|
58
51
|
b.value = !0, setTimeout(() => t.target.classList.add(O), 50);
|
|
59
|
-
},
|
|
60
|
-
const { target: a, item: e, newIndex:
|
|
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
|
-
|
|
64
|
-
},
|
|
65
|
-
a ?
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
return (t, a) => (s(),
|
|
72
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
d.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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(),
|
|
96
|
-
l(
|
|
83
|
+
], !0) : (s(), i("div", _, [
|
|
84
|
+
l(h).length ? (s(), g(l(z), T({
|
|
97
85
|
key: 0,
|
|
98
|
-
modelValue: l(
|
|
99
|
-
"onUpdate:modelValue": a[2] || (a[2] = (e) =>
|
|
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(
|
|
105
|
-
}, l(
|
|
92
|
+
disabled: l(v)
|
|
93
|
+
}, l(L)[l(I).DRAGGABLE_LIST], {
|
|
106
94
|
onStart: F,
|
|
107
|
-
onEnd:
|
|
95
|
+
onEnd: P
|
|
108
96
|
}), {
|
|
109
|
-
default:
|
|
110
|
-
(s(!0),
|
|
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:
|
|
115
|
-
"is-open":
|
|
116
|
-
"is-selected":
|
|
117
|
-
"selected-child-id":
|
|
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) =>
|
|
122
|
-
onSelect: (c) =>
|
|
123
|
-
onSelectChild: (c) =>
|
|
124
|
-
},
|
|
125
|
-
l(
|
|
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:
|
|
128
|
-
|
|
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"])) :
|
|
136
|
-
l(
|
|
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(
|
|
140
|
-
(s(!0),
|
|
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":
|
|
144
|
-
"is-selected":
|
|
145
|
-
"selected-child-id":
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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:
|
|
157
|
-
|
|
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", "
|
|
162
|
-
], 16)) :
|
|
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(),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
default:
|
|
168
|
-
j(
|
|
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
|
-
])) :
|
|
160
|
+
])) : m("", !0)
|
|
174
161
|
], 16));
|
|
175
162
|
}
|
|
176
163
|
});
|
|
177
164
|
export {
|
|
178
|
-
|
|
165
|
+
fe as default
|
|
179
166
|
};
|