@ironsource/shared-ui 2.1.7-rc.10 → 2.1.7-rc.11
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_ff47417d_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_402063dc_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 +8 -8
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +20 -20
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +16 -16
- package/components/sortableList/SortableList.vue.d.ts +17 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +122 -86
- package/components/sortableList/index.d.ts +60 -1
- 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 +2 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +44 -43
- package/components/table/v4/MultipleDataGrid.vue.d.ts +5 -3
- package/components/table/v4/MultipleDataGrid.vue.js +3 -3
- package/components/table/v4/MultipleDataGrid.vue2.js +83 -67
- package/components/table/v4/index.d.ts +77 -75
- package/components/table/v4/utils/utils.d.ts +3 -0
- package/components/table/v4/utils/utils.js +5 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +1 -1
- package/components/tooltip/v4/index.d.ts +20 -20
- package/index.d.ts +432 -310
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_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/ThemeWrapper.vue_vue_type_style_index_0_scoped_1cff50cb_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_402063dc_lang.css"; import { defineComponent as F, computed as f, ref as P, openBlock as s, createElementBlock as u, mergeProps as V, unref as t, createBlock as g, isRef as N, createCommentVNode as y, withCtx as m, Fragment as b, renderList as R, 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 q 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 w } 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 x } 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
|
+
}, ie = /* @__PURE__ */ F({
|
|
11
19
|
__name: "SortableList",
|
|
12
20
|
props: {
|
|
13
21
|
items: { default: () => [] },
|
|
@@ -19,102 +27,130 @@ 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
35
|
emits: ["update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
|
|
25
|
-
setup(d, { emit:
|
|
26
|
-
const r = d,
|
|
27
|
-
const a = l.children || [], e =
|
|
28
|
-
return r.searchHandler ? r.searchHandler(l, e) :
|
|
29
|
-
a.some((n) =>
|
|
30
|
-
}) : r.items),
|
|
36
|
+
setup(d, { emit: o }) {
|
|
37
|
+
const r = d, i = J(r, "search", o), v = f(() => !!i.value?.trim()), C = f(() => v.value ? r.items.filter((l) => {
|
|
38
|
+
const a = l.children || [], e = i.value;
|
|
39
|
+
return r.searchHandler ? r.searchHandler(l, e) : w(l.displayText, e) || // match parent item
|
|
40
|
+
a.some((n) => w(n.displayText, e));
|
|
41
|
+
}) : r.items), c = f({
|
|
31
42
|
get() {
|
|
32
|
-
return
|
|
43
|
+
return C.value.filter((l) => !l.isLocked);
|
|
33
44
|
},
|
|
34
45
|
set(l) {
|
|
35
|
-
|
|
46
|
+
o("update:items", [...l, ...k.value]);
|
|
36
47
|
}
|
|
37
|
-
}),
|
|
38
|
-
() =>
|
|
39
|
-
),
|
|
40
|
-
|
|
48
|
+
}), k = f(
|
|
49
|
+
() => C.value.filter((l) => l.isLocked)
|
|
50
|
+
), L = P(!1), H = (l) => {
|
|
51
|
+
L.value = !0, setTimeout(() => l.target.classList.add(x), 50);
|
|
41
52
|
}, O = (l) => {
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
a ?
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
return (l, a) => (
|
|
51
|
-
d.showSearch ? (
|
|
53
|
+
L.value = !1, l.target.classList.remove(x);
|
|
54
|
+
}, A = (l) => (v.value || l.id === r.openId) && !L.value, B = (l, a) => {
|
|
55
|
+
a ? o("update:openId", l.id) : o("update:openId", null);
|
|
56
|
+
}, h = (l) => l.id === r.selectedId, D = (l) => {
|
|
57
|
+
o("update:selectedId", l.id), o("update:selectedChildId", null);
|
|
58
|
+
}, E = (l, a) => {
|
|
59
|
+
o("update:selectedChildId", l.id), o("update:selectedId", a.id), o("update:openId", a.id);
|
|
60
|
+
}, T = W(r.testId, I);
|
|
61
|
+
return (l, a) => (s(), u("div", V({ class: "sortable-list-and-search-container" }, t(T)[t(I).CONTAINER]), [
|
|
62
|
+
d.showSearch ? (s(), g(t(Q), {
|
|
52
63
|
key: 0,
|
|
53
|
-
modelValue: t(
|
|
54
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) =>
|
|
64
|
+
modelValue: t(i),
|
|
65
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => N(i) ? i.value = e : null),
|
|
55
66
|
class: "list-search",
|
|
56
67
|
placeholder: d.searchPlaceholder,
|
|
57
68
|
"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
|
-
|
|
69
|
+
onOnClear: a[1] || (a[1] = (e) => o("clearSearch"))
|
|
70
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])) : y("", !0),
|
|
71
|
+
d.isLoading ? S(l.$slots, "loader", { key: 2 }, () => [
|
|
72
|
+
G("div", Y, [
|
|
73
|
+
(s(!0), u(b, null, R(d.loadingRowCount, (e) => (s(), u("div", { key: e }, [
|
|
74
|
+
$(t(z), {
|
|
75
|
+
round: "",
|
|
76
|
+
class: "loader-bar"
|
|
77
|
+
})
|
|
78
|
+
]))), 128))
|
|
79
|
+
])
|
|
80
|
+
], !0) : (s(), u("div", X, [
|
|
81
|
+
t(c).length ? (s(), g(t(K), V({
|
|
82
|
+
key: 0,
|
|
83
|
+
modelValue: t(c),
|
|
84
|
+
"onUpdate:modelValue": a[2] || (a[2] = (e) => N(c) ? c.value = e : null),
|
|
85
|
+
class: "sortable-list",
|
|
86
|
+
filter: ".expand-icon",
|
|
87
|
+
animation: 150,
|
|
88
|
+
handle: ".draggable-handle",
|
|
89
|
+
disabled: t(v)
|
|
90
|
+
}, t(T)[t(I).DRAGGABLE_LIST], {
|
|
91
|
+
onStart: H,
|
|
92
|
+
onEnd: O
|
|
93
|
+
}), {
|
|
94
|
+
default: m(() => [
|
|
95
|
+
(s(!0), u(b, null, R(t(c), (e, n) => (s(), g(q, {
|
|
96
|
+
key: e.id,
|
|
97
|
+
item: e,
|
|
98
|
+
index: n,
|
|
99
|
+
"is-open": A(e),
|
|
100
|
+
"is-selected": h(e),
|
|
101
|
+
"selected-child-id": h(e) ? d.selectedChildId : null,
|
|
102
|
+
"display-value": d.displayValue,
|
|
103
|
+
"search-query": t(i),
|
|
104
|
+
"search-handler": d.searchHandler,
|
|
105
|
+
onToggle: (p) => B(e, p),
|
|
106
|
+
onSelect: (p) => D(e),
|
|
107
|
+
onSelectChild: (p) => E(p, e)
|
|
108
|
+
}, {
|
|
109
|
+
menu: m(() => [
|
|
110
|
+
S(l.$slots, "menu", { item: e }, void 0, !0)
|
|
111
|
+
]),
|
|
112
|
+
_: 2
|
|
113
|
+
}, 1032, ["item", "index", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "search-handler", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
114
|
+
]),
|
|
115
|
+
_: 3
|
|
116
|
+
}, 16, ["modelValue", "disabled"])) : y("", !0),
|
|
117
|
+
t(k).length ? (s(), u("div", V({
|
|
118
|
+
key: 1,
|
|
119
|
+
class: "locked-list"
|
|
120
|
+
}, t(T)[t(I).LOCKED_LIST]), [
|
|
121
|
+
(s(!0), u(b, null, R(t(k), (e) => (s(), g(q, {
|
|
74
122
|
key: e.id,
|
|
75
123
|
item: e,
|
|
76
|
-
|
|
77
|
-
"is-
|
|
78
|
-
"
|
|
79
|
-
"selected-child-id": i(e) ? d.selectedChildId : null,
|
|
124
|
+
"is-open": A(e),
|
|
125
|
+
"is-selected": h(e),
|
|
126
|
+
"selected-child-id": h(e) ? d.selectedChildId : null,
|
|
80
127
|
"display-value": d.displayValue,
|
|
81
|
-
"search-query": t(
|
|
82
|
-
"search
|
|
83
|
-
onToggle: (
|
|
84
|
-
onSelect: (
|
|
85
|
-
onSelectChild: (
|
|
128
|
+
"search-query": t(i),
|
|
129
|
+
"on-search": d.searchHandler,
|
|
130
|
+
onToggle: (n) => B(e, n),
|
|
131
|
+
onSelect: (n) => D(e),
|
|
132
|
+
onSelectChild: (n) => E(n, e)
|
|
86
133
|
}, {
|
|
87
|
-
menu:
|
|
88
|
-
|
|
134
|
+
menu: m(() => [
|
|
135
|
+
S(l.$slots, "menu", { item: e }, void 0, !0)
|
|
89
136
|
]),
|
|
90
137
|
_: 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)
|
|
138
|
+
}, 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
139
|
+
], 16)) : y("", !0)
|
|
140
|
+
])),
|
|
141
|
+
!t(C).length && !d.isLoading ? (s(), u("div", Z, [
|
|
142
|
+
S(l.$slots, "empty-state", {}, () => [
|
|
143
|
+
$(t(j), { variant: "body2" }, {
|
|
144
|
+
default: m(() => [
|
|
145
|
+
U(M(d.emptyStateTitle), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
})
|
|
149
|
+
], !0)
|
|
150
|
+
])) : y("", !0)
|
|
115
151
|
], 16));
|
|
116
152
|
}
|
|
117
153
|
});
|
|
118
154
|
export {
|
|
119
|
-
|
|
155
|
+
ie as default
|
|
120
156
|
};
|
|
@@ -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,6 +64,14 @@ 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
|
}>> & {
|
|
61
76
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
62
77
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
@@ -64,7 +79,7 @@ declare const SortableListTypes: () => ({
|
|
|
64
79
|
"onUpdate:selectedChildId"?: (id: string | number) => any;
|
|
65
80
|
"onUpdate:search"?: (query: string) => any;
|
|
66
81
|
onClearSearch?: () => any;
|
|
67
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch">;
|
|
82
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "displayValue" | "searchPlaceholder" | "items" | "selectedChildId" | "searchHandler" | "openId" | "selectedId" | "showSearch" | "loadingRowCount" | "emptyStateTitle">;
|
|
68
83
|
$attrs: {
|
|
69
84
|
[x: string]: unknown;
|
|
70
85
|
};
|
|
@@ -87,6 +102,10 @@ declare const SortableListTypes: () => ({
|
|
|
87
102
|
type: import("vue").PropType<string>;
|
|
88
103
|
default: string;
|
|
89
104
|
};
|
|
105
|
+
isLoading: {
|
|
106
|
+
type: import("vue").PropType<boolean>;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
90
109
|
displayValue: {
|
|
91
110
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
92
111
|
required: true;
|
|
@@ -121,6 +140,14 @@ declare const SortableListTypes: () => ({
|
|
|
121
140
|
type: import("vue").PropType<boolean>;
|
|
122
141
|
default: boolean;
|
|
123
142
|
};
|
|
143
|
+
loadingRowCount: {
|
|
144
|
+
type: import("vue").PropType<number>;
|
|
145
|
+
default: number;
|
|
146
|
+
};
|
|
147
|
+
emptyStateTitle: {
|
|
148
|
+
type: import("vue").PropType<string>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
124
151
|
}>> & {
|
|
125
152
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
126
153
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
@@ -138,6 +165,7 @@ declare const SortableListTypes: () => ({
|
|
|
138
165
|
}, string, {
|
|
139
166
|
search: string;
|
|
140
167
|
testId: string;
|
|
168
|
+
isLoading: boolean;
|
|
141
169
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
142
170
|
searchPlaceholder: string;
|
|
143
171
|
items: import("./SortableList.types").SortableListItem[];
|
|
@@ -146,6 +174,8 @@ declare const SortableListTypes: () => ({
|
|
|
146
174
|
openId: string | number;
|
|
147
175
|
selectedId: string | number;
|
|
148
176
|
showSearch: boolean;
|
|
177
|
+
loadingRowCount: number;
|
|
178
|
+
emptyStateTitle: string;
|
|
149
179
|
}, {}, string> & {
|
|
150
180
|
beforeCreate?: (() => void) | (() => void)[];
|
|
151
181
|
created?: (() => void) | (() => void)[];
|
|
@@ -175,6 +205,10 @@ declare const SortableListTypes: () => ({
|
|
|
175
205
|
type: import("vue").PropType<string>;
|
|
176
206
|
default: string;
|
|
177
207
|
};
|
|
208
|
+
isLoading: {
|
|
209
|
+
type: import("vue").PropType<boolean>;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
178
212
|
displayValue: {
|
|
179
213
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
180
214
|
required: true;
|
|
@@ -209,6 +243,14 @@ declare const SortableListTypes: () => ({
|
|
|
209
243
|
type: import("vue").PropType<boolean>;
|
|
210
244
|
default: boolean;
|
|
211
245
|
};
|
|
246
|
+
loadingRowCount: {
|
|
247
|
+
type: import("vue").PropType<number>;
|
|
248
|
+
default: number;
|
|
249
|
+
};
|
|
250
|
+
emptyStateTitle: {
|
|
251
|
+
type: import("vue").PropType<string>;
|
|
252
|
+
default: string;
|
|
253
|
+
};
|
|
212
254
|
}>> & {
|
|
213
255
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
214
256
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
@@ -229,6 +271,10 @@ declare const SortableListTypes: () => ({
|
|
|
229
271
|
type: import("vue").PropType<string>;
|
|
230
272
|
default: string;
|
|
231
273
|
};
|
|
274
|
+
isLoading: {
|
|
275
|
+
type: import("vue").PropType<boolean>;
|
|
276
|
+
default: boolean;
|
|
277
|
+
};
|
|
232
278
|
displayValue: {
|
|
233
279
|
type: import("vue").PropType<(item: import("./SortableList.types").SortableListItem) => string>;
|
|
234
280
|
required: true;
|
|
@@ -263,6 +309,14 @@ declare const SortableListTypes: () => ({
|
|
|
263
309
|
type: import("vue").PropType<boolean>;
|
|
264
310
|
default: boolean;
|
|
265
311
|
};
|
|
312
|
+
loadingRowCount: {
|
|
313
|
+
type: import("vue").PropType<number>;
|
|
314
|
+
default: number;
|
|
315
|
+
};
|
|
316
|
+
emptyStateTitle: {
|
|
317
|
+
type: import("vue").PropType<string>;
|
|
318
|
+
default: string;
|
|
319
|
+
};
|
|
266
320
|
}>> & {
|
|
267
321
|
"onUpdate:items"?: (items: import("./SortableList.types").SortableListItem[]) => any;
|
|
268
322
|
"onUpdate:openId"?: (id: string | number) => any;
|
|
@@ -280,6 +334,7 @@ declare const SortableListTypes: () => ({
|
|
|
280
334
|
}, string, {
|
|
281
335
|
search: string;
|
|
282
336
|
testId: string;
|
|
337
|
+
isLoading: boolean;
|
|
283
338
|
displayValue: (item: import("./SortableList.types").SortableListItem) => string;
|
|
284
339
|
searchPlaceholder: string;
|
|
285
340
|
items: import("./SortableList.types").SortableListItem[];
|
|
@@ -288,11 +343,15 @@ declare const SortableListTypes: () => ({
|
|
|
288
343
|
openId: string | number;
|
|
289
344
|
selectedId: string | number;
|
|
290
345
|
showSearch: boolean;
|
|
346
|
+
loadingRowCount: number;
|
|
347
|
+
emptyStateTitle: string;
|
|
291
348
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
292
349
|
$slots: {
|
|
293
350
|
menu?(_: {
|
|
294
351
|
item: import("./SortableList.types").SortableListItem;
|
|
295
352
|
}): any;
|
|
353
|
+
loader?(_: {}): any;
|
|
354
|
+
"empty-state"?(_: {}): any;
|
|
296
355
|
};
|
|
297
356
|
}))[];
|
|
298
357
|
export { SortableList, SortableListTypes };
|
|
@@ -84,15 +84,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
84
84
|
}, {
|
|
85
85
|
testId: string;
|
|
86
86
|
isLoading: boolean;
|
|
87
|
+
loadingRowCount: number;
|
|
88
|
+
emptyStateTitle: string;
|
|
87
89
|
isSticky: boolean;
|
|
88
90
|
sections: Section[];
|
|
89
91
|
isStickyHeader: boolean;
|
|
90
|
-
emptyStateTitle: string;
|
|
91
92
|
emptyStateSubtitle: string;
|
|
92
93
|
isInfiniteScroll: boolean;
|
|
93
94
|
infiniteScrollThreshold: number;
|
|
94
95
|
rowHeight: number | ((index: number) => number);
|
|
95
|
-
loadingRowCount: number;
|
|
96
96
|
defaultScrollPosition: number;
|
|
97
97
|
}>, Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
98
98
|
column: Column;
|
|
@@ -5,15 +5,15 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
testId: string;
|
|
7
7
|
isLoading: boolean;
|
|
8
|
+
loadingRowCount: number;
|
|
9
|
+
emptyStateTitle: string;
|
|
8
10
|
isSticky: boolean;
|
|
9
11
|
sections: import("../common/Table.types").Section[];
|
|
10
12
|
isStickyHeader: boolean;
|
|
11
|
-
emptyStateTitle: string;
|
|
12
13
|
emptyStateSubtitle: string;
|
|
13
14
|
isInfiniteScroll: boolean;
|
|
14
15
|
infiniteScrollThreshold: number;
|
|
15
16
|
rowHeight: number | ((index: number) => number);
|
|
16
|
-
loadingRowCount: number;
|
|
17
17
|
defaultScrollPosition: number;
|
|
18
18
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
sort: {
|
|
@@ -36,6 +36,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
36
36
|
type: import("vue").PropType<boolean>;
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
|
+
loadingRowCount: {
|
|
40
|
+
type: import("vue").PropType<number>;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
emptyStateTitle: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
39
47
|
isSticky: {
|
|
40
48
|
type: import("vue").PropType<boolean>;
|
|
41
49
|
default: boolean;
|
|
@@ -52,10 +60,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
52
60
|
type: import("vue").PropType<boolean>;
|
|
53
61
|
default: boolean;
|
|
54
62
|
};
|
|
55
|
-
emptyStateTitle: {
|
|
56
|
-
type: import("vue").PropType<string>;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
63
|
emptyStateSubtitle: {
|
|
60
64
|
type: import("vue").PropType<string>;
|
|
61
65
|
default: string;
|
|
@@ -72,10 +76,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
72
76
|
type: import("vue").PropType<number | ((index: number) => number)>;
|
|
73
77
|
default: number;
|
|
74
78
|
};
|
|
75
|
-
loadingRowCount: {
|
|
76
|
-
type: import("vue").PropType<number>;
|
|
77
|
-
default: number;
|
|
78
|
-
};
|
|
79
79
|
defaultScrollPosition: {
|
|
80
80
|
type: import("vue").PropType<number>;
|
|
81
81
|
default: any;
|
|
@@ -90,7 +90,7 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
90
90
|
cellIndex: number;
|
|
91
91
|
}) => any;
|
|
92
92
|
onLoadMore?: () => any;
|
|
93
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "isLoading" | "
|
|
93
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "isLoading" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition">;
|
|
94
94
|
$attrs: {
|
|
95
95
|
[x: string]: unknown;
|
|
96
96
|
};
|
|
@@ -130,6 +130,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
130
130
|
type: import("vue").PropType<boolean>;
|
|
131
131
|
default: boolean;
|
|
132
132
|
};
|
|
133
|
+
loadingRowCount: {
|
|
134
|
+
type: import("vue").PropType<number>;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
emptyStateTitle: {
|
|
138
|
+
type: import("vue").PropType<string>;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
133
141
|
isSticky: {
|
|
134
142
|
type: import("vue").PropType<boolean>;
|
|
135
143
|
default: boolean;
|
|
@@ -146,10 +154,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
146
154
|
type: import("vue").PropType<boolean>;
|
|
147
155
|
default: boolean;
|
|
148
156
|
};
|
|
149
|
-
emptyStateTitle: {
|
|
150
|
-
type: import("vue").PropType<string>;
|
|
151
|
-
default: string;
|
|
152
|
-
};
|
|
153
157
|
emptyStateSubtitle: {
|
|
154
158
|
type: import("vue").PropType<string>;
|
|
155
159
|
default: string;
|
|
@@ -166,10 +170,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
166
170
|
type: import("vue").PropType<number | ((index: number) => number)>;
|
|
167
171
|
default: number;
|
|
168
172
|
};
|
|
169
|
-
loadingRowCount: {
|
|
170
|
-
type: import("vue").PropType<number>;
|
|
171
|
-
default: number;
|
|
172
|
-
};
|
|
173
173
|
defaultScrollPosition: {
|
|
174
174
|
type: import("vue").PropType<number>;
|
|
175
175
|
default: any;
|
|
@@ -197,15 +197,15 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
197
197
|
}, string, {
|
|
198
198
|
testId: string;
|
|
199
199
|
isLoading: boolean;
|
|
200
|
+
loadingRowCount: number;
|
|
201
|
+
emptyStateTitle: string;
|
|
200
202
|
isSticky: boolean;
|
|
201
203
|
sections: import("../common/Table.types").Section[];
|
|
202
204
|
isStickyHeader: boolean;
|
|
203
|
-
emptyStateTitle: string;
|
|
204
205
|
emptyStateSubtitle: string;
|
|
205
206
|
isInfiniteScroll: boolean;
|
|
206
207
|
infiniteScrollThreshold: number;
|
|
207
208
|
rowHeight: number | ((index: number) => number);
|
|
208
|
-
loadingRowCount: number;
|
|
209
209
|
defaultScrollPosition: number;
|
|
210
210
|
}, {}, string> & {
|
|
211
211
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -248,6 +248,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
248
248
|
type: import("vue").PropType<boolean>;
|
|
249
249
|
default: boolean;
|
|
250
250
|
};
|
|
251
|
+
loadingRowCount: {
|
|
252
|
+
type: import("vue").PropType<number>;
|
|
253
|
+
default: number;
|
|
254
|
+
};
|
|
255
|
+
emptyStateTitle: {
|
|
256
|
+
type: import("vue").PropType<string>;
|
|
257
|
+
default: string;
|
|
258
|
+
};
|
|
251
259
|
isSticky: {
|
|
252
260
|
type: import("vue").PropType<boolean>;
|
|
253
261
|
default: boolean;
|
|
@@ -264,10 +272,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
264
272
|
type: import("vue").PropType<boolean>;
|
|
265
273
|
default: boolean;
|
|
266
274
|
};
|
|
267
|
-
emptyStateTitle: {
|
|
268
|
-
type: import("vue").PropType<string>;
|
|
269
|
-
default: string;
|
|
270
|
-
};
|
|
271
275
|
emptyStateSubtitle: {
|
|
272
276
|
type: import("vue").PropType<string>;
|
|
273
277
|
default: string;
|
|
@@ -284,10 +288,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
284
288
|
type: import("vue").PropType<number | ((index: number) => number)>;
|
|
285
289
|
default: number;
|
|
286
290
|
};
|
|
287
|
-
loadingRowCount: {
|
|
288
|
-
type: import("vue").PropType<number>;
|
|
289
|
-
default: number;
|
|
290
|
-
};
|
|
291
291
|
defaultScrollPosition: {
|
|
292
292
|
type: import("vue").PropType<number>;
|
|
293
293
|
default: any;
|
|
@@ -327,6 +327,14 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
327
327
|
type: import("vue").PropType<boolean>;
|
|
328
328
|
default: boolean;
|
|
329
329
|
};
|
|
330
|
+
loadingRowCount: {
|
|
331
|
+
type: import("vue").PropType<number>;
|
|
332
|
+
default: number;
|
|
333
|
+
};
|
|
334
|
+
emptyStateTitle: {
|
|
335
|
+
type: import("vue").PropType<string>;
|
|
336
|
+
default: string;
|
|
337
|
+
};
|
|
330
338
|
isSticky: {
|
|
331
339
|
type: import("vue").PropType<boolean>;
|
|
332
340
|
default: boolean;
|
|
@@ -343,10 +351,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
343
351
|
type: import("vue").PropType<boolean>;
|
|
344
352
|
default: boolean;
|
|
345
353
|
};
|
|
346
|
-
emptyStateTitle: {
|
|
347
|
-
type: import("vue").PropType<string>;
|
|
348
|
-
default: string;
|
|
349
|
-
};
|
|
350
354
|
emptyStateSubtitle: {
|
|
351
355
|
type: import("vue").PropType<string>;
|
|
352
356
|
default: string;
|
|
@@ -363,10 +367,6 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
363
367
|
type: import("vue").PropType<number | ((index: number) => number)>;
|
|
364
368
|
default: number;
|
|
365
369
|
};
|
|
366
|
-
loadingRowCount: {
|
|
367
|
-
type: import("vue").PropType<number>;
|
|
368
|
-
default: number;
|
|
369
|
-
};
|
|
370
370
|
defaultScrollPosition: {
|
|
371
371
|
type: import("vue").PropType<number>;
|
|
372
372
|
default: any;
|
|
@@ -394,15 +394,15 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("../common/Ta
|
|
|
394
394
|
}, string, {
|
|
395
395
|
testId: string;
|
|
396
396
|
isLoading: boolean;
|
|
397
|
+
loadingRowCount: number;
|
|
398
|
+
emptyStateTitle: string;
|
|
397
399
|
isSticky: boolean;
|
|
398
400
|
sections: import("../common/Table.types").Section[];
|
|
399
401
|
isStickyHeader: boolean;
|
|
400
|
-
emptyStateTitle: string;
|
|
401
402
|
emptyStateSubtitle: string;
|
|
402
403
|
isInfiniteScroll: boolean;
|
|
403
404
|
infiniteScrollThreshold: number;
|
|
404
405
|
rowHeight: number | ((index: number) => number);
|
|
405
|
-
loadingRowCount: number;
|
|
406
406
|
defaultScrollPosition: number;
|
|
407
407
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
408
408
|
$slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
@@ -143,15 +143,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
143
143
|
searchPlaceholder: string;
|
|
144
144
|
selection: unknown[];
|
|
145
145
|
showSearch: boolean;
|
|
146
|
+
loadingRowCount: number;
|
|
147
|
+
emptyStateTitle: string;
|
|
146
148
|
isSticky: boolean;
|
|
147
149
|
sections: Section[];
|
|
148
150
|
isStickyHeader: boolean;
|
|
149
|
-
emptyStateTitle: string;
|
|
150
151
|
emptyStateSubtitle: string;
|
|
151
152
|
isInfiniteScroll: boolean;
|
|
152
153
|
infiniteScrollThreshold: number;
|
|
153
154
|
rowHeight: number | ((index: number) => number);
|
|
154
|
-
loadingRowCount: number;
|
|
155
155
|
defaultScrollPosition: number;
|
|
156
156
|
getRowId: (row: Row, index: number) => unknown;
|
|
157
157
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|