@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-test.5
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/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/icon/v4/IconV4.vue.d.ts +0 -5
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +26 -29
- package/components/icon/v4/index.d.ts +1 -20
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +129 -89
- package/components/sortableList/index.d.ts +88 -2
- package/components/table/common/Table.common.js +71 -68
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +103 -100
- package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
- package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
- package/components/table/v4/index.d.ts +126 -75
- package/components/table/v4/storyUtils.d.ts +4 -0
- package/components/table-cells/common/Editable.common.js +37 -26
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/design-foundation.stories/icons/iconsData.d.ts +2 -6
- package/index.d.ts +566 -292
- package/package.json +1 -1
- package/utils/formatNumbers.d.ts +4 -0
- package/utils/formatNumbers.js +11 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import "../../SortableList.
|
|
2
|
-
import { VueDraggable as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import "../../SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css"; import { defineComponent as F, computed as f, ref as P, openBlock as s, createElementBlock as i, mergeProps as T, unref as l, createBlock as g, isRef as N, createCommentVNode as y, withCtx as m, Fragment as V, renderList as D, renderSlot as S, createElementVNode as G, createVNode as $, createTextVNode as U, toDisplayString as M } from "vue";
|
|
2
|
+
import { VueDraggable as K } from "vue-draggable-plus";
|
|
3
|
+
import w from "./SortableItem.vue.js";
|
|
4
|
+
import Q from "../search/v4/SearchV4.vue.js";
|
|
5
|
+
import j from "../typography/v4/Typography.vue.js";
|
|
6
|
+
import z from "../skeleton/v4/SkeletonV4.vue.js";
|
|
7
|
+
import { useVModel as J } from "@vueuse/core";
|
|
8
|
+
import { matchString as x } from "../../utils/search.js";
|
|
9
|
+
import { useTestIdAttrs as W } from "../../utils/testIds.js";
|
|
10
|
+
import { SortableListTestIdModifiers as I } from "../../testids/index.js";
|
|
11
|
+
import { DRAG_CURSOR_CSS_CLASS as q } from "./consts.js";
|
|
12
|
+
const X = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "sortable-list-container"
|
|
15
|
+
}, Y = { class: "loader-bars" }, Z = {
|
|
16
|
+
key: 3,
|
|
17
|
+
class: "empty-state-title"
|
|
18
|
+
}, ue = /* @__PURE__ */ F({
|
|
11
19
|
__name: "SortableList",
|
|
12
20
|
props: {
|
|
13
21
|
items: { default: () => [] },
|
|
@@ -19,102 +27,134 @@ const le = /* @__PURE__ */ $({
|
|
|
19
27
|
showSearch: { type: Boolean, default: !1 },
|
|
20
28
|
searchPlaceholder: { default: "Search" },
|
|
21
29
|
searchHandler: { type: Function, default: null },
|
|
30
|
+
isLoading: { type: Boolean, default: !1 },
|
|
31
|
+
loadingRowCount: { default: 3 },
|
|
32
|
+
emptyStateTitle: { default: "No results" },
|
|
22
33
|
testId: { default: "" }
|
|
23
34
|
},
|
|
24
|
-
emits: ["update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
|
|
25
|
-
setup(d, { emit:
|
|
26
|
-
const
|
|
27
|
-
const a =
|
|
28
|
-
return
|
|
29
|
-
a.some((
|
|
30
|
-
}) :
|
|
35
|
+
emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
|
|
36
|
+
setup(d, { emit: o }) {
|
|
37
|
+
const n = d, u = J(n, "search", o), v = f(() => !!u.value?.trim()), C = f(() => v.value ? n.items.filter((t) => {
|
|
38
|
+
const a = t.children || [], e = u.value;
|
|
39
|
+
return n.searchHandler ? n.searchHandler(t, e) : x(t.displayText, e) || // match parent item
|
|
40
|
+
a.some((r) => x(r.displayText, e));
|
|
41
|
+
}) : n.items), h = f({
|
|
31
42
|
get() {
|
|
32
|
-
return
|
|
43
|
+
return C.value.filter((t) => !t.isLocked);
|
|
33
44
|
},
|
|
34
|
-
set(
|
|
35
|
-
|
|
45
|
+
set(t) {
|
|
46
|
+
o("update:items", [...t, ...b.value]);
|
|
36
47
|
}
|
|
37
|
-
}),
|
|
38
|
-
() =>
|
|
39
|
-
),
|
|
40
|
-
|
|
41
|
-
}, O = (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
}), b = f(
|
|
49
|
+
() => C.value.filter((t) => t.isLocked)
|
|
50
|
+
), k = P(!1), H = (t) => {
|
|
51
|
+
k.value = !0, setTimeout(() => t.target.classList.add(q), 50);
|
|
52
|
+
}, O = (t) => {
|
|
53
|
+
const { target: a, item: e, newIndex: r } = t;
|
|
54
|
+
k.value = !1, a.classList.remove(q);
|
|
55
|
+
const c = e.attributes["data-id"]?.value;
|
|
56
|
+
o("sortableItemDragged", { id: c, newIndex: r });
|
|
57
|
+
}, R = (t) => (v.value || t.id === n.openId) && !k.value, A = (t, a) => {
|
|
58
|
+
a ? o("update:openId", t.id) : o("update:openId", null);
|
|
59
|
+
}, p = (t) => t.id === n.selectedId, B = (t) => {
|
|
60
|
+
o("update:selectedId", t.id), o("update:selectedChildId", null);
|
|
61
|
+
}, E = (t, a) => {
|
|
62
|
+
o("update:selectedChildId", t.id), o("update:selectedId", a.id), o("update:openId", a.id);
|
|
63
|
+
}, L = W(n.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(Q), {
|
|
52
66
|
key: 0,
|
|
53
|
-
modelValue:
|
|
54
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) =>
|
|
67
|
+
modelValue: l(u),
|
|
68
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => N(u) ? u.value = e : null),
|
|
55
69
|
class: "list-search",
|
|
56
70
|
placeholder: d.searchPlaceholder,
|
|
57
71
|
"test-id": d.testId,
|
|
58
|
-
onOnClear: a[1] || (a[1] = (e) =>
|
|
59
|
-
}, null, 8, ["modelValue", "placeholder", "test-id"])) :
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
onOnClear: a[1] || (a[1] = (e) => o("clearSearch"))
|
|
73
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])) : y("", !0),
|
|
74
|
+
d.isLoading ? S(t.$slots, "loader", { key: 2 }, () => [
|
|
75
|
+
G("div", Y, [
|
|
76
|
+
(s(!0), i(V, null, D(d.loadingRowCount, (e) => (s(), i("div", { key: e }, [
|
|
77
|
+
$(l(z), {
|
|
78
|
+
round: "",
|
|
79
|
+
class: "loader-bar"
|
|
80
|
+
})
|
|
81
|
+
]))), 128))
|
|
82
|
+
])
|
|
83
|
+
], !0) : (s(), i("div", X, [
|
|
84
|
+
l(h).length ? (s(), g(l(K), T({
|
|
85
|
+
key: 0,
|
|
86
|
+
modelValue: l(h),
|
|
87
|
+
"onUpdate:modelValue": a[2] || (a[2] = (e) => N(h) ? h.value = e : null),
|
|
88
|
+
class: "sortable-list",
|
|
89
|
+
filter: ".expand-icon",
|
|
90
|
+
animation: 150,
|
|
91
|
+
handle: ".draggable-handle",
|
|
92
|
+
disabled: l(v)
|
|
93
|
+
}, l(L)[l(I).DRAGGABLE_LIST], {
|
|
94
|
+
onStart: H,
|
|
95
|
+
onEnd: O
|
|
96
|
+
}), {
|
|
97
|
+
default: m(() => [
|
|
98
|
+
(s(!0), i(V, null, D(l(h), (e, r) => (s(), g(w, {
|
|
99
|
+
key: e.id,
|
|
100
|
+
"data-id": e.id,
|
|
101
|
+
item: e,
|
|
102
|
+
index: r,
|
|
103
|
+
"is-open": R(e),
|
|
104
|
+
"is-selected": p(e),
|
|
105
|
+
"selected-child-id": p(e) ? d.selectedChildId : null,
|
|
106
|
+
"display-value": d.displayValue,
|
|
107
|
+
"search-query": l(u),
|
|
108
|
+
"search-handler": d.searchHandler,
|
|
109
|
+
onToggle: (c) => A(e, c),
|
|
110
|
+
onSelect: (c) => B(e),
|
|
111
|
+
onSelectChild: (c) => E(c, e)
|
|
112
|
+
}, {
|
|
113
|
+
menu: m(() => [
|
|
114
|
+
S(t.$slots, "menu", { item: e }, void 0, !0)
|
|
115
|
+
]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1032, ["data-id", "item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
118
|
+
]),
|
|
119
|
+
_: 3
|
|
120
|
+
}, 16, ["modelValue", "disabled"])) : y("", !0),
|
|
121
|
+
l(b).length ? (s(), i("div", T({
|
|
122
|
+
key: 1,
|
|
123
|
+
class: "locked-list"
|
|
124
|
+
}, l(L)[l(I).LOCKED_LIST]), [
|
|
125
|
+
(s(!0), i(V, null, D(l(b), (e) => (s(), g(w, {
|
|
74
126
|
key: e.id,
|
|
75
127
|
item: e,
|
|
76
|
-
|
|
77
|
-
"is-
|
|
78
|
-
"
|
|
79
|
-
"selected-child-id": i(e) ? d.selectedChildId : null,
|
|
128
|
+
"is-open": R(e),
|
|
129
|
+
"is-selected": p(e),
|
|
130
|
+
"selected-child-id": p(e) ? d.selectedChildId : null,
|
|
80
131
|
"display-value": d.displayValue,
|
|
81
|
-
"search-query":
|
|
82
|
-
"search
|
|
83
|
-
onToggle: (
|
|
84
|
-
onSelect: (
|
|
85
|
-
onSelectChild: (
|
|
132
|
+
"search-query": l(u),
|
|
133
|
+
"on-search": d.searchHandler,
|
|
134
|
+
onToggle: (r) => A(e, r),
|
|
135
|
+
onSelect: (r) => B(e),
|
|
136
|
+
onSelectChild: (r) => E(r, e)
|
|
86
137
|
}, {
|
|
87
|
-
menu:
|
|
88
|
-
|
|
138
|
+
menu: m(() => [
|
|
139
|
+
S(t.$slots, "menu", { item: e }, void 0, !0)
|
|
89
140
|
]),
|
|
90
141
|
_: 2
|
|
91
|
-
}, 1032, ["item", "
|
|
92
|
-
]),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"on-search": d.searchHandler,
|
|
105
|
-
onToggle: (n) => b(e, n),
|
|
106
|
-
onSelect: (n) => k(e),
|
|
107
|
-
onSelectChild: (n) => A(n, e)
|
|
108
|
-
}, {
|
|
109
|
-
menu: C(() => [
|
|
110
|
-
D(l.$slots, "menu", { item: e }, void 0, !0)
|
|
111
|
-
]),
|
|
112
|
-
_: 2
|
|
113
|
-
}, 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
114
|
-
], 16)
|
|
142
|
+
}, 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
143
|
+
], 16)) : y("", !0)
|
|
144
|
+
])),
|
|
145
|
+
!l(C).length && !d.isLoading ? (s(), i("div", Z, [
|
|
146
|
+
S(t.$slots, "empty-state", {}, () => [
|
|
147
|
+
$(l(j), { variant: "body2" }, {
|
|
148
|
+
default: m(() => [
|
|
149
|
+
U(M(d.emptyStateTitle), 1)
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
})
|
|
153
|
+
], !0)
|
|
154
|
+
])) : y("", !0)
|
|
115
155
|
], 16));
|
|
116
156
|
}
|
|
117
157
|
});
|
|
118
158
|
export {
|
|
119
|
-
|
|
159
|
+
ue as default
|
|
120
160
|
};
|
|
@@ -6,6 +6,7 @@ declare const SortableListTypes: () => ({
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
search: string;
|
|
8
8
|
testId: string;
|
|
9
|
+
isLoading: boolean;
|
|
9
10
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
10
11
|
searchPlaceholder: string;
|
|
11
12
|
items: import("./SortableList.types").SortableListItem[];
|
|
@@ -14,6 +15,8 @@ declare const SortableListTypes: () => ({
|
|
|
14
15
|
openId: string | number;
|
|
15
16
|
selectedId: string | number;
|
|
16
17
|
showSearch: boolean;
|
|
18
|
+
loadingRowCount: number;
|
|
19
|
+
emptyStateTitle: string;
|
|
17
20
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
18
21
|
search: {
|
|
19
22
|
type: import("vue").PropType<string>;
|
|
@@ -23,6 +26,10 @@ declare const SortableListTypes: () => ({
|
|
|
23
26
|
type: import("vue").PropType<string>;
|
|
24
27
|
default: string;
|
|
25
28
|
};
|
|
29
|
+
isLoading: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
26
33
|
displayValue: {
|
|
27
34
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
28
35
|
required: true;
|
|
@@ -57,14 +64,26 @@ declare const SortableListTypes: () => ({
|
|
|
57
64
|
type: import("vue").PropType<boolean>;
|
|
58
65
|
default: boolean;
|
|
59
66
|
};
|
|
67
|
+
loadingRowCount: {
|
|
68
|
+
type: import("vue").PropType<number>;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
emptyStateTitle: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
60
75
|
}>> & {
|
|
76
|
+
onSortableItemDragged?: (event: {
|
|
77
|
+
id: string;
|
|
78
|
+
newIndex: number;
|
|
79
|
+
}) => any;
|
|
61
80
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
62
81
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
63
82
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
64
83
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
65
84
|
"onUpdate:search"?: (query: string) => any;
|
|
66
85
|
onClearSearch?: () => any;
|
|
67
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch">;
|
|
86
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle">;
|
|
68
87
|
$attrs: {
|
|
69
88
|
[x: string]: unknown;
|
|
70
89
|
};
|
|
@@ -76,7 +95,10 @@ declare const SortableListTypes: () => ({
|
|
|
76
95
|
}>;
|
|
77
96
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
78
97
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
79
|
-
$emit: ((event: "
|
|
98
|
+
$emit: ((event: "sortableItemDragged", event: {
|
|
99
|
+
id: string;
|
|
100
|
+
newIndex: number;
|
|
101
|
+
}) => void) & ((event: "update:items", items: import("./SortableList.types").SortableListItem[]) => void) & ((event: "update:openId", id: string | number) => void) & ((event: "update:selectedId", id: string | number) => void) & ((event: "update:selectedChildId", id: string | number) => void) & ((event: "update:search", query: string) => void) & ((event: "clearSearch") => void);
|
|
80
102
|
$el: any;
|
|
81
103
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
82
104
|
search: {
|
|
@@ -87,6 +109,10 @@ declare const SortableListTypes: () => ({
|
|
|
87
109
|
type: import("vue").PropType<string>;
|
|
88
110
|
default: string;
|
|
89
111
|
};
|
|
112
|
+
isLoading: {
|
|
113
|
+
type: import("vue").PropType<boolean>;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
90
116
|
displayValue: {
|
|
91
117
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
92
118
|
required: true;
|
|
@@ -121,7 +147,19 @@ declare const SortableListTypes: () => ({
|
|
|
121
147
|
type: import("vue").PropType<boolean>;
|
|
122
148
|
default: boolean;
|
|
123
149
|
};
|
|
150
|
+
loadingRowCount: {
|
|
151
|
+
type: import("vue").PropType<number>;
|
|
152
|
+
default: number;
|
|
153
|
+
};
|
|
154
|
+
emptyStateTitle: {
|
|
155
|
+
type: import("vue").PropType<string>;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
124
158
|
}>> & {
|
|
159
|
+
onSortableItemDragged?: (event: {
|
|
160
|
+
id: string;
|
|
161
|
+
newIndex: number;
|
|
162
|
+
}) => any;
|
|
125
163
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
126
164
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
127
165
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
@@ -129,6 +167,10 @@ declare const SortableListTypes: () => ({
|
|
|
129
167
|
"onUpdate:search"?: (query: string) => any;
|
|
130
168
|
onClearSearch?: () => any;
|
|
131
169
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
170
|
+
sortableItemDragged: (event: {
|
|
171
|
+
id: string;
|
|
172
|
+
newIndex: number;
|
|
173
|
+
}) => void;
|
|
132
174
|
"update:items": (items: import("./SortableList.types").SortableListItem[]) => void;
|
|
133
175
|
"update:openId": (id: string | number) => void;
|
|
134
176
|
"update:selectedId": (id: string | number) => void;
|
|
@@ -138,6 +180,7 @@ declare const SortableListTypes: () => ({
|
|
|
138
180
|
}, string, {
|
|
139
181
|
search: string;
|
|
140
182
|
testId: string;
|
|
183
|
+
isLoading: boolean;
|
|
141
184
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
142
185
|
searchPlaceholder: string;
|
|
143
186
|
items: import("./SortableList.types").SortableListItem[];
|
|
@@ -146,6 +189,8 @@ declare const SortableListTypes: () => ({
|
|
|
146
189
|
openId: string | number;
|
|
147
190
|
selectedId: string | number;
|
|
148
191
|
showSearch: boolean;
|
|
192
|
+
loadingRowCount: number;
|
|
193
|
+
emptyStateTitle: string;
|
|
149
194
|
}, {}, string> & {
|
|
150
195
|
beforeCreate?: (() => void) | (() => void)[];
|
|
151
196
|
created?: (() => void) | (() => void)[];
|
|
@@ -175,6 +220,10 @@ declare const SortableListTypes: () => ({
|
|
|
175
220
|
type: import("vue").PropType<string>;
|
|
176
221
|
default: string;
|
|
177
222
|
};
|
|
223
|
+
isLoading: {
|
|
224
|
+
type: import("vue").PropType<boolean>;
|
|
225
|
+
default: boolean;
|
|
226
|
+
};
|
|
178
227
|
displayValue: {
|
|
179
228
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
180
229
|
required: true;
|
|
@@ -209,7 +258,19 @@ declare const SortableListTypes: () => ({
|
|
|
209
258
|
type: import("vue").PropType<boolean>;
|
|
210
259
|
default: boolean;
|
|
211
260
|
};
|
|
261
|
+
loadingRowCount: {
|
|
262
|
+
type: import("vue").PropType<number>;
|
|
263
|
+
default: number;
|
|
264
|
+
};
|
|
265
|
+
emptyStateTitle: {
|
|
266
|
+
type: import("vue").PropType<string>;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
212
269
|
}>> & {
|
|
270
|
+
onSortableItemDragged?: (event: {
|
|
271
|
+
id: string;
|
|
272
|
+
newIndex: number;
|
|
273
|
+
}) => any;
|
|
213
274
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
214
275
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
215
276
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
@@ -229,6 +290,10 @@ declare const SortableListTypes: () => ({
|
|
|
229
290
|
type: import("vue").PropType<string>;
|
|
230
291
|
default: string;
|
|
231
292
|
};
|
|
293
|
+
isLoading: {
|
|
294
|
+
type: import("vue").PropType<boolean>;
|
|
295
|
+
default: boolean;
|
|
296
|
+
};
|
|
232
297
|
displayValue: {
|
|
233
298
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
234
299
|
required: true;
|
|
@@ -263,7 +328,19 @@ declare const SortableListTypes: () => ({
|
|
|
263
328
|
type: import("vue").PropType<boolean>;
|
|
264
329
|
default: boolean;
|
|
265
330
|
};
|
|
331
|
+
loadingRowCount: {
|
|
332
|
+
type: import("vue").PropType<number>;
|
|
333
|
+
default: number;
|
|
334
|
+
};
|
|
335
|
+
emptyStateTitle: {
|
|
336
|
+
type: import("vue").PropType<string>;
|
|
337
|
+
default: string;
|
|
338
|
+
};
|
|
266
339
|
}>> & {
|
|
340
|
+
onSortableItemDragged?: (event: {
|
|
341
|
+
id: string;
|
|
342
|
+
newIndex: number;
|
|
343
|
+
}) => any;
|
|
267
344
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
268
345
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
269
346
|
"onUpdate:selectedId"?: (id: string | number) => any;
|
|
@@ -271,6 +348,10 @@ declare const SortableListTypes: () => ({
|
|
|
271
348
|
"onUpdate:search"?: (query: string) => any;
|
|
272
349
|
onClearSearch?: () => any;
|
|
273
350
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
351
|
+
sortableItemDragged: (event: {
|
|
352
|
+
id: string;
|
|
353
|
+
newIndex: number;
|
|
354
|
+
}) => void;
|
|
274
355
|
"update:items": (items: import("./SortableList.types").SortableListItem[]) => void;
|
|
275
356
|
"update:openId": (id: string | number) => void;
|
|
276
357
|
"update:selectedId": (id: string | number) => void;
|
|
@@ -280,6 +361,7 @@ declare const SortableListTypes: () => ({
|
|
|
280
361
|
}, string, {
|
|
281
362
|
search: string;
|
|
282
363
|
testId: string;
|
|
364
|
+
isLoading: boolean;
|
|
283
365
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
284
366
|
searchPlaceholder: string;
|
|
285
367
|
items: import("./SortableList.types").SortableListItem[];
|
|
@@ -288,11 +370,15 @@ declare const SortableListTypes: () => ({
|
|
|
288
370
|
openId: string | number;
|
|
289
371
|
selectedId: string | number;
|
|
290
372
|
showSearch: boolean;
|
|
373
|
+
loadingRowCount: number;
|
|
374
|
+
emptyStateTitle: string;
|
|
291
375
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
292
376
|
$slots: {
|
|
293
377
|
menu?(_: {
|
|
294
378
|
item: import("./SortableList.types").SortableListItem;
|
|
295
379
|
}): any;
|
|
380
|
+
loader?(_: {}): any;
|
|
381
|
+
"empty-state"?(_: {}): any;
|
|
296
382
|
};
|
|
297
383
|
}))[];
|
|
298
384
|
export { SortableList, SortableListTypes };
|