@ironsource/shared-ui 2.1.12-rc.47 → 2.1.12-rc.49
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/ChartPlane.vue_vue_type_style_index_0_scoped_908ef54f_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/components/chart/ChartPlane.vue.js +2 -2
- package/components/chart/ChartPlane.vue2.js +4 -4
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +72 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
- package/components/columnPicker/index.d.ts +20 -20
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +88 -82
- package/components/dropdown/v4/index.d.ts +1 -0
- package/components/link/Link.vue.d.ts +5 -0
- package/components/link/Link.vue.js +3 -3
- package/components/link/Link.vue2.js +36 -28
- package/components/link/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.js +4 -4
- package/components/sortableList/SortableItem.vue2.js +3 -3
- package/components/sortableList/SortableList.vue.d.ts +2 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +96 -106
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +4 -3
- package/components/table/v4/DataGrid.vue.js +5 -5
- package/components/table/v4/DataGrid.vue2.js +349 -331
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
- package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
- package/components/table/v4/index.d.ts +104 -103
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/index.d.ts +290 -284
- package/index.js +86 -78
- package/package.json +9 -1
- package/testids/index.d.ts +13 -0
- package/testids/index.js +33 -31
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
|
@@ -13,6 +13,7 @@ declare const LinkTypes: () => ({
|
|
|
13
13
|
href: string;
|
|
14
14
|
iconName: string;
|
|
15
15
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
16
|
+
iconPosition: "end" | "start";
|
|
16
17
|
navigateToPage: () => void;
|
|
17
18
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
18
19
|
testId: {
|
|
@@ -55,13 +56,17 @@ declare const LinkTypes: () => ({
|
|
|
55
56
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
56
57
|
default: string;
|
|
57
58
|
};
|
|
59
|
+
iconPosition: {
|
|
60
|
+
type: import("vue").PropType<"end" | "start">;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
58
63
|
navigateToPage: {
|
|
59
64
|
type: import("vue").PropType<() => void>;
|
|
60
65
|
default: any;
|
|
61
66
|
};
|
|
62
67
|
}>> & {
|
|
63
68
|
onClick?: () => any;
|
|
64
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "withTooltip" | "tooltipText" | "isTruncated" | "disabled" | "color" | "href" | "iconName" | "iconType" | "navigateToPage">;
|
|
69
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "withTooltip" | "tooltipText" | "isTruncated" | "disabled" | "color" | "href" | "iconName" | "iconType" | "iconPosition" | "navigateToPage">;
|
|
65
70
|
$attrs: {
|
|
66
71
|
[x: string]: unknown;
|
|
67
72
|
};
|
|
@@ -116,6 +121,10 @@ declare const LinkTypes: () => ({
|
|
|
116
121
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
117
122
|
default: string;
|
|
118
123
|
};
|
|
124
|
+
iconPosition: {
|
|
125
|
+
type: import("vue").PropType<"end" | "start">;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
119
128
|
navigateToPage: {
|
|
120
129
|
type: import("vue").PropType<() => void>;
|
|
121
130
|
default: any;
|
|
@@ -135,6 +144,7 @@ declare const LinkTypes: () => ({
|
|
|
135
144
|
href: string;
|
|
136
145
|
iconName: string;
|
|
137
146
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
147
|
+
iconPosition: "end" | "start";
|
|
138
148
|
navigateToPage: () => void;
|
|
139
149
|
}, {}, string> & {
|
|
140
150
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -197,6 +207,10 @@ declare const LinkTypes: () => ({
|
|
|
197
207
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
198
208
|
default: string;
|
|
199
209
|
};
|
|
210
|
+
iconPosition: {
|
|
211
|
+
type: import("vue").PropType<"end" | "start">;
|
|
212
|
+
default: string;
|
|
213
|
+
};
|
|
200
214
|
navigateToPage: {
|
|
201
215
|
type: import("vue").PropType<() => void>;
|
|
202
216
|
default: any;
|
|
@@ -248,6 +262,10 @@ declare const LinkTypes: () => ({
|
|
|
248
262
|
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
249
263
|
default: string;
|
|
250
264
|
};
|
|
265
|
+
iconPosition: {
|
|
266
|
+
type: import("vue").PropType<"end" | "start">;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
251
269
|
navigateToPage: {
|
|
252
270
|
type: import("vue").PropType<() => void>;
|
|
253
271
|
default: any;
|
|
@@ -267,6 +285,7 @@ declare const LinkTypes: () => ({
|
|
|
267
285
|
href: string;
|
|
268
286
|
iconName: string;
|
|
269
287
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
288
|
+
iconPosition: "end" | "start";
|
|
270
289
|
navigateToPage: () => void;
|
|
271
290
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
272
291
|
$slots: {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
loadingRowCount: number;
|
|
3
|
+
variant?: 'default' | 'compact';
|
|
4
|
+
}>, {
|
|
5
|
+
variant: string;
|
|
6
|
+
loadingRowCount: number;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
loadingRowCount: number;
|
|
9
|
+
variant?: 'default' | 'compact';
|
|
10
|
+
}>, {
|
|
11
|
+
variant: string;
|
|
12
|
+
loadingRowCount: number;
|
|
13
|
+
}>>>, {
|
|
14
|
+
variant: 'default' | 'compact';
|
|
15
|
+
loadingRowCount: number;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./LoaderBars.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d976ec65"]]);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../../LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css"; import { defineComponent as s, computed as d, openBlock as e, createElementBlock as a, normalizeClass as n, unref as o, Fragment as u, renderList as m, createVNode as i } from "vue";
|
|
2
|
+
import p from "../skeleton/v4/SkeletonV4.vue.js";
|
|
3
|
+
const v = /* @__PURE__ */ s({
|
|
4
|
+
__name: "LoaderBars",
|
|
5
|
+
props: {
|
|
6
|
+
loadingRowCount: { default: 3 },
|
|
7
|
+
variant: { default: "default" }
|
|
8
|
+
},
|
|
9
|
+
setup(r) {
|
|
10
|
+
const l = r, t = d(() => l.variant === "compact");
|
|
11
|
+
return (f, C) => (e(), a("div", {
|
|
12
|
+
class: n(["loader-bars", { "loader-bars--compact": o(t) }])
|
|
13
|
+
}, [
|
|
14
|
+
(e(!0), a(u, null, m(r.loadingRowCount, (c) => (e(), a("div", { key: c }, [
|
|
15
|
+
i(o(p), {
|
|
16
|
+
round: "",
|
|
17
|
+
class: n(["loader-bar", { "loader-bar--compact": o(t) }])
|
|
18
|
+
}, null, 8, ["class"])
|
|
19
|
+
]))), 128))
|
|
20
|
+
], 2));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
v as default
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../SortableItem.
|
|
4
|
-
const c = /* @__PURE__ */ e
|
|
1
|
+
import e from "./SortableItem.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c72be7ed"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../SortableItem.
|
|
1
|
+
import "../../SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css"; import { defineComponent as P, useCssVars as A, useSlots as E, computed as h, watch as $, ref as I, openBlock as l, createElementBlock as o, normalizeClass as d, unref as e, withModifiers as y, createElementVNode as c, createVNode as b, createBlock as n, withCtx as S, createTextVNode as V, toDisplayString as F, createCommentVNode as u, renderSlot as R, mergeProps as H, normalizeProps as j, Fragment as q, renderList as G } from "vue";
|
|
2
2
|
import L from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import f from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import w from "../icon/v4/IconFlag.vue.js";
|
|
@@ -26,7 +26,7 @@ const X = { class: "item__prefix" }, Y = ["onClick"], Z = ["onClick"], re = /* @
|
|
|
26
26
|
setup(t, { emit: g }) {
|
|
27
27
|
const s = t;
|
|
28
28
|
A((r) => ({
|
|
29
|
-
"
|
|
29
|
+
"6b8d7a5c": t.childListMaxHeight
|
|
30
30
|
}));
|
|
31
31
|
const M = E(), z = () => {
|
|
32
32
|
g("toggle", !s.isOpen);
|
|
@@ -127,7 +127,7 @@ const X = { class: "item__prefix" }, Y = ["onClick"], Z = ["onClick"], re = /* @
|
|
|
127
127
|
item: t.item
|
|
128
128
|
}, null, 8, ["display-value", "item"])
|
|
129
129
|
], 2),
|
|
130
|
-
e(M)
|
|
130
|
+
e(M)?.menu ? (l(), o("div", {
|
|
131
131
|
key: 1,
|
|
132
132
|
class: "item__menu",
|
|
133
133
|
onClick: a[0] || (a[0] = y(() => {
|
|
@@ -109,13 +109,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
109
109
|
childListMaxHeight: string;
|
|
110
110
|
searchHandler: (item: SortableListItem, searchQuery: string) => boolean;
|
|
111
111
|
draggableArea: "handle" | "full";
|
|
112
|
+
loadingRowCount: number;
|
|
112
113
|
openId: string | number;
|
|
114
|
+
zIndexBase: number;
|
|
113
115
|
selectedId: string | number;
|
|
114
116
|
showSearch: boolean;
|
|
115
|
-
loadingRowCount: number;
|
|
116
117
|
emptyStateTitle: string;
|
|
117
118
|
isSticky: boolean;
|
|
118
|
-
zIndexBase: number;
|
|
119
119
|
}>, {
|
|
120
120
|
header?(_: {}): any;
|
|
121
121
|
menu?(_: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../SortableList.
|
|
4
|
-
const
|
|
1
|
+
import e from "./SortableList.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9aec4e9b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
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
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import "../../SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css"; import { defineComponent as M, useCssVars as P, useSlots as z, computed as g, openBlock as s, createElementBlock as u, mergeProps as T, unref as t, normalizeClass as U, renderSlot as f, createCommentVNode as c, createBlock as S, isRef as x, withCtx as p, Fragment as D, renderList as H, createSlots as R, createVNode as w, createTextVNode as K, toDisplayString as Q } from "vue";
|
|
2
|
+
import { VueDraggable as j } from "vue-draggable-plus";
|
|
3
|
+
import $ from "./SortableItem.vue.js";
|
|
4
|
+
import J from "./LoaderBars.vue.js";
|
|
5
|
+
import W from "../search/v4/SearchV4.vue.js";
|
|
6
|
+
import X from "../typography/v4/Typography.vue.js";
|
|
7
|
+
import { useVModel as Y } from "@vueuse/core";
|
|
8
|
+
import { matchString as N } from "../../utils/search.js";
|
|
9
|
+
import { useTestIdAttrs as Z } from "../../utils/testIds.js";
|
|
10
|
+
import { SortableListTestIdModifiers as I } from "../../testids/index.js";
|
|
11
|
+
import { useDraggableHelpers as _ } from "./composables/useDraggableHelpers.js";
|
|
12
|
+
import { DRAGGABLE_HANDLE_SELECTOR as ee, DRAGGABLE_AREA_SELECTOR as le } from "./consts.js";
|
|
13
|
+
const te = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "sortable-list-container"
|
|
15
|
-
}, ae = {
|
|
16
|
+
}, ae = {
|
|
16
17
|
key: 3,
|
|
17
18
|
class: "empty-state-title"
|
|
18
|
-
}, me = /* @__PURE__ */
|
|
19
|
+
}, me = /* @__PURE__ */ M({
|
|
19
20
|
__name: "SortableList",
|
|
20
21
|
props: {
|
|
21
22
|
items: { default: () => [] },
|
|
@@ -38,147 +39,136 @@ const le = {
|
|
|
38
39
|
testId: { default: "" }
|
|
39
40
|
},
|
|
40
41
|
emits: ["sortableItemDragged", "update:items", "update:openId", "update:selectedId", "update:selectedChildId", "update:search", "clearSearch"],
|
|
41
|
-
setup(a, { emit:
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
setup(a, { emit: n }) {
|
|
43
|
+
const r = a;
|
|
44
|
+
P((l) => ({
|
|
45
|
+
"0d58eb02": a.zIndexBase
|
|
45
46
|
}));
|
|
46
|
-
const
|
|
47
|
-
const d =
|
|
48
|
-
return
|
|
49
|
-
d.some((
|
|
50
|
-
}) :
|
|
47
|
+
const y = z(), i = Y(r, "search", n), b = g(() => !!i.value?.trim()), C = g(() => b.value ? r.items.filter((l) => {
|
|
48
|
+
const d = l.children || [], e = i.value;
|
|
49
|
+
return r.searchHandler ? r.searchHandler(l, e) : N(l.displayText, e) || // match parent item
|
|
50
|
+
d.some((o) => N(o.displayText, e));
|
|
51
|
+
}) : r.items), h = g({
|
|
51
52
|
get() {
|
|
52
|
-
return
|
|
53
|
+
return C.value.filter((l) => !l.isLocked);
|
|
53
54
|
},
|
|
54
|
-
set(
|
|
55
|
-
|
|
55
|
+
set(l) {
|
|
56
|
+
n("update:items", [...l, ...k.value]);
|
|
56
57
|
}
|
|
57
|
-
}),
|
|
58
|
-
() =>
|
|
59
|
-
),
|
|
60
|
-
() =>
|
|
61
|
-
),
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}, v = (t) => t.id === o.selectedId, H = (t) => {
|
|
71
|
-
r("update:selectedId", t.id), r("update:selectedChildId", null);
|
|
72
|
-
}, R = (t, d) => {
|
|
73
|
-
r("update:selectedChildId", t.id), r("update:selectedId", d.id), r("update:openId", d.id);
|
|
74
|
-
}, T = te(o.testId, p);
|
|
75
|
-
return (t, d) => (s(), i("div", V({ class: "sortable-list-and-header-container" }, l(T)[l(p).CONTAINER]), [
|
|
76
|
-
l(m).header || a.showSearch ? (s(), i("div", {
|
|
58
|
+
}), k = g(
|
|
59
|
+
() => C.value.filter((l) => l.isLocked)
|
|
60
|
+
), G = g(
|
|
61
|
+
() => r.draggableArea === "handle" ? ee : le
|
|
62
|
+
), { onDragStart: O, onDragEnd: q, draggingInProgress: F } = _(n), A = (l) => (b.value || l.id === r.openId) && !F.value, E = (l, d) => {
|
|
63
|
+
d ? n("update:openId", l.id) : n("update:openId", null);
|
|
64
|
+
}, m = (l) => l.id === r.selectedId, V = (l) => {
|
|
65
|
+
n("update:selectedId", l.id), n("update:selectedChildId", null);
|
|
66
|
+
}, B = (l, d) => {
|
|
67
|
+
n("update:selectedChildId", l.id), n("update:selectedId", d.id), n("update:openId", d.id);
|
|
68
|
+
}, L = Z(r.testId, I);
|
|
69
|
+
return (l, d) => (s(), u("div", T({ class: "sortable-list-and-header-container" }, t(L)[t(I).CONTAINER]), [
|
|
70
|
+
t(y).header || a.showSearch ? (s(), u("div", {
|
|
77
71
|
key: 0,
|
|
78
|
-
class:
|
|
72
|
+
class: U(["header-container", { sticky: a.isSticky }])
|
|
79
73
|
}, [
|
|
80
|
-
|
|
81
|
-
a.showSearch ? (s(), S(
|
|
74
|
+
t(y).header ? f(l.$slots, "header", { key: 0 }, void 0, !0) : c("", !0),
|
|
75
|
+
a.showSearch ? (s(), S(t(W), {
|
|
82
76
|
key: 1,
|
|
83
|
-
modelValue:
|
|
84
|
-
"onUpdate:modelValue": d[0] || (d[0] = (e) =>
|
|
77
|
+
modelValue: t(i),
|
|
78
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => x(i) ? i.value = e : null),
|
|
85
79
|
placeholder: a.searchPlaceholder,
|
|
86
80
|
"test-id": a.testId,
|
|
87
|
-
onOnClear: d[1] || (d[1] = (e) =>
|
|
88
|
-
}, null, 8, ["modelValue", "placeholder", "test-id"])) :
|
|
89
|
-
], 2)) :
|
|
90
|
-
a.isLoading ?
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
]))), 128))
|
|
98
|
-
])
|
|
99
|
-
], !0) : (s(), i("div", le, [
|
|
100
|
-
l(g).length ? (s(), S(l(X), V({
|
|
81
|
+
onOnClear: d[1] || (d[1] = (e) => n("clearSearch"))
|
|
82
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])) : c("", !0)
|
|
83
|
+
], 2)) : c("", !0),
|
|
84
|
+
a.isLoading ? f(l.$slots, "loader", { key: 2 }, () => [
|
|
85
|
+
w(J, {
|
|
86
|
+
"loading-row-count": a.loadingRowCount,
|
|
87
|
+
variant: a.variant
|
|
88
|
+
}, null, 8, ["loading-row-count", "variant"])
|
|
89
|
+
], !0) : (s(), u("div", te, [
|
|
90
|
+
t(h).length ? (s(), S(t(j), T({
|
|
101
91
|
key: 0,
|
|
102
|
-
modelValue:
|
|
103
|
-
"onUpdate:modelValue": d[2] || (d[2] = (e) =>
|
|
92
|
+
modelValue: t(h),
|
|
93
|
+
"onUpdate:modelValue": d[2] || (d[2] = (e) => x(h) ? h.value = e : null),
|
|
104
94
|
class: "sortable-list",
|
|
105
95
|
filter: ".expand-icon",
|
|
106
96
|
animation: 150,
|
|
107
|
-
handle:
|
|
108
|
-
disabled:
|
|
109
|
-
},
|
|
110
|
-
onStart:
|
|
111
|
-
onEnd:
|
|
97
|
+
handle: t(G),
|
|
98
|
+
disabled: t(b)
|
|
99
|
+
}, t(L)[t(I).DRAGGABLE_LIST], {
|
|
100
|
+
onStart: t(O),
|
|
101
|
+
onEnd: t(q)
|
|
112
102
|
}), {
|
|
113
|
-
default:
|
|
114
|
-
(s(!0),
|
|
103
|
+
default: p(() => [
|
|
104
|
+
(s(!0), u(D, null, H(t(h), (e, o) => (s(), S($, {
|
|
115
105
|
key: e.id,
|
|
116
106
|
"data-id": e.id,
|
|
117
107
|
item: e,
|
|
118
|
-
index:
|
|
108
|
+
index: o,
|
|
119
109
|
"is-open": A(e),
|
|
120
|
-
"is-selected":
|
|
110
|
+
"is-selected": m(e),
|
|
121
111
|
"is-disabled": !!e.isDisabled,
|
|
122
|
-
"selected-child-id":
|
|
112
|
+
"selected-child-id": m(e) ? a.selectedChildId : null,
|
|
123
113
|
"display-value": a.displayValue,
|
|
124
|
-
"search-query":
|
|
114
|
+
"search-query": t(i),
|
|
125
115
|
"search-handler": a.searchHandler,
|
|
126
116
|
variant: a.variant,
|
|
127
117
|
"draggable-area": a.draggableArea,
|
|
128
|
-
onToggle: (
|
|
129
|
-
onSelect: (
|
|
130
|
-
onSelectChild: (
|
|
131
|
-
},
|
|
132
|
-
|
|
118
|
+
onToggle: (v) => E(e, v),
|
|
119
|
+
onSelect: (v) => V(e),
|
|
120
|
+
onSelectChild: (v) => B(v, e)
|
|
121
|
+
}, R({ _: 2 }, [
|
|
122
|
+
t(y).menu ? {
|
|
133
123
|
name: "menu",
|
|
134
|
-
fn:
|
|
135
|
-
|
|
124
|
+
fn: p(() => [
|
|
125
|
+
f(l.$slots, "menu", { item: e }, void 0, !0)
|
|
136
126
|
]),
|
|
137
127
|
key: "0"
|
|
138
128
|
} : void 0
|
|
139
129
|
]), 1032, ["data-id", "item", "index", "is-open", "is-selected", "is-disabled", "selected-child-id", "display-value", "search-query", "search-handler", "variant", "draggable-area", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
140
130
|
]),
|
|
141
131
|
_: 3
|
|
142
|
-
}, 16, ["modelValue", "handle", "disabled"])) :
|
|
143
|
-
|
|
132
|
+
}, 16, ["modelValue", "handle", "disabled", "onStart", "onEnd"])) : c("", !0),
|
|
133
|
+
t(k).length ? (s(), u("div", T({
|
|
144
134
|
key: 1,
|
|
145
135
|
class: "locked-list"
|
|
146
|
-
},
|
|
147
|
-
(s(!0),
|
|
136
|
+
}, t(L)[t(I).LOCKED_LIST]), [
|
|
137
|
+
(s(!0), u(D, null, H(t(k), (e) => (s(), S($, {
|
|
148
138
|
key: e.id,
|
|
149
139
|
item: e,
|
|
150
140
|
"is-open": A(e),
|
|
151
|
-
"is-selected":
|
|
152
|
-
"selected-child-id":
|
|
141
|
+
"is-selected": m(e),
|
|
142
|
+
"selected-child-id": m(e) ? a.selectedChildId : null,
|
|
153
143
|
"display-value": a.displayValue,
|
|
154
|
-
"search-query":
|
|
144
|
+
"search-query": t(i),
|
|
155
145
|
"on-search": a.searchHandler,
|
|
156
146
|
"child-list-max-height": a.childListMaxHeight,
|
|
157
147
|
variant: a.variant,
|
|
158
|
-
onToggle: (
|
|
159
|
-
onSelect: (
|
|
160
|
-
onSelectChild: (
|
|
161
|
-
},
|
|
162
|
-
|
|
148
|
+
onToggle: (o) => E(e, o),
|
|
149
|
+
onSelect: (o) => V(e),
|
|
150
|
+
onSelectChild: (o) => B(o, e)
|
|
151
|
+
}, R({ _: 2 }, [
|
|
152
|
+
t(y).menu ? {
|
|
163
153
|
name: "menu",
|
|
164
|
-
fn:
|
|
165
|
-
|
|
154
|
+
fn: p(() => [
|
|
155
|
+
f(l.$slots, "menu", { item: e }, void 0, !0)
|
|
166
156
|
]),
|
|
167
157
|
key: "0"
|
|
168
158
|
} : void 0
|
|
169
159
|
]), 1032, ["item", "is-open", "is-selected", "selected-child-id", "display-value", "search-query", "on-search", "child-list-max-height", "variant", "onToggle", "onSelect", "onSelectChild"]))), 128))
|
|
170
|
-
], 16)) :
|
|
160
|
+
], 16)) : c("", !0)
|
|
171
161
|
])),
|
|
172
|
-
!
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
default:
|
|
176
|
-
|
|
162
|
+
!t(C).length && !a.isLoading ? (s(), u("div", ae, [
|
|
163
|
+
f(l.$slots, "empty-state", {}, () => [
|
|
164
|
+
w(t(X), { variant: "body2" }, {
|
|
165
|
+
default: p(() => [
|
|
166
|
+
K(Q(a.emptyStateTitle), 1)
|
|
177
167
|
]),
|
|
178
168
|
_: 1
|
|
179
169
|
})
|
|
180
170
|
], !0)
|
|
181
|
-
])) :
|
|
171
|
+
])) : c("", !0)
|
|
182
172
|
], 16));
|
|
183
173
|
}
|
|
184
174
|
});
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { SortableListItem } from '@/components/sortableList/SortableList.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
items: SortableListItem[];
|
|
4
|
+
displayValue?: (item: SortableListItem) => string;
|
|
5
|
+
openId?: string | number;
|
|
6
|
+
selectedChildPerItem?: Record<string | number, string | number>;
|
|
7
|
+
variant?: "default" | "compact";
|
|
8
|
+
draggableArea?: "handle" | "full";
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
loadingRowCount?: number;
|
|
11
|
+
alwaysVisibleCount?: number;
|
|
12
|
+
zIndexBase?: number;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}>, {
|
|
15
|
+
items: () => any[];
|
|
16
|
+
displayValue: (item: SortableListItem) => string;
|
|
17
|
+
openId: any;
|
|
18
|
+
selectedChildPerItem: () => {};
|
|
19
|
+
alwaysVisibleCount: any;
|
|
20
|
+
variant: string;
|
|
21
|
+
draggableArea: string;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
loadingRowCount: number;
|
|
24
|
+
zIndexBase: number;
|
|
25
|
+
testId: string;
|
|
26
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
sortableItemDragged: (event: {
|
|
28
|
+
id: string;
|
|
29
|
+
newIndex: number;
|
|
30
|
+
}) => void;
|
|
31
|
+
"update:items": (items: SortableListItem[]) => void;
|
|
32
|
+
"update:openId": (id: string | number) => void;
|
|
33
|
+
"update:selectedChildPerItem": (value: Record<string | number, string | number>) => void;
|
|
34
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
+
items: SortableListItem[];
|
|
36
|
+
displayValue?: (item: SortableListItem) => string;
|
|
37
|
+
openId?: string | number;
|
|
38
|
+
selectedChildPerItem?: Record<string | number, string | number>;
|
|
39
|
+
variant?: "default" | "compact";
|
|
40
|
+
draggableArea?: "handle" | "full";
|
|
41
|
+
isLoading?: boolean;
|
|
42
|
+
loadingRowCount?: number;
|
|
43
|
+
alwaysVisibleCount?: number;
|
|
44
|
+
zIndexBase?: number;
|
|
45
|
+
testId?: string;
|
|
46
|
+
}>, {
|
|
47
|
+
items: () => any[];
|
|
48
|
+
displayValue: (item: SortableListItem) => string;
|
|
49
|
+
openId: any;
|
|
50
|
+
selectedChildPerItem: () => {};
|
|
51
|
+
alwaysVisibleCount: any;
|
|
52
|
+
variant: string;
|
|
53
|
+
draggableArea: string;
|
|
54
|
+
isLoading: boolean;
|
|
55
|
+
loadingRowCount: number;
|
|
56
|
+
zIndexBase: number;
|
|
57
|
+
testId: string;
|
|
58
|
+
}>>> & {
|
|
59
|
+
onSortableItemDragged?: (event: {
|
|
60
|
+
id: string;
|
|
61
|
+
newIndex: number;
|
|
62
|
+
}) => any;
|
|
63
|
+
"onUpdate:items"?: (items: SortableListItem[]) => any;
|
|
64
|
+
"onUpdate:openId"?: (id: string | number) => any;
|
|
65
|
+
"onUpdate:selectedChildPerItem"?: (value: Record<string | number, string | number>) => any;
|
|
66
|
+
}, {
|
|
67
|
+
testId: string;
|
|
68
|
+
variant: "default" | "compact";
|
|
69
|
+
isLoading: boolean;
|
|
70
|
+
displayValue: (item: SortableListItem) => string;
|
|
71
|
+
items: SortableListItem[];
|
|
72
|
+
draggableArea: "handle" | "full";
|
|
73
|
+
loadingRowCount: number;
|
|
74
|
+
openId: string | number;
|
|
75
|
+
selectedChildPerItem: Record<string | number, string | number>;
|
|
76
|
+
alwaysVisibleCount: number;
|
|
77
|
+
zIndexBase: number;
|
|
78
|
+
}>, {
|
|
79
|
+
header?(_: {}): any;
|
|
80
|
+
menu?(_: {
|
|
81
|
+
item: SortableListItem;
|
|
82
|
+
}): any;
|
|
83
|
+
loader?(_: {}): any;
|
|
84
|
+
}>;
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
87
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
88
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
89
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
90
|
+
} : {
|
|
91
|
+
type: import('vue').PropType<T[K]>;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
type __VLS_WithDefaults<P, D> = {
|
|
96
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
97
|
+
default: D[K];
|
|
98
|
+
}> : P[K];
|
|
99
|
+
};
|
|
100
|
+
type __VLS_Prettify<T> = {
|
|
101
|
+
[K in keyof T]: T[K];
|
|
102
|
+
} & {};
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./SortableSelectableList.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-40b0a4de"]]);
|
|
5
|
+
export {
|
|
6
|
+
a as default
|
|
7
|
+
};
|