@ironsource/shared-ui 2.0.0-rc.7 → 2.0.0-rc.8
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/Button.vue_vue_type_style_index_0_scoped_bfe31a93_lang.css +1 -0
- package/ButtonBase.vue_vue_type_style_index_0_scoped_9021cac4_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +1 -0
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_b42d8b45_lang.css +1 -0
- package/IconButton.vue_vue_type_style_index_0_scoped_6dffd3f6_lang.css +1 -0
- package/Popover.vue_vue_type_style_index_0_scoped_25eb53db_lang.css +1 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +1 -1
- package/components/autocompleteDropdown/index.d.ts +1 -1
- package/components/button/v3/Button.vue.d.ts +4 -27
- package/components/button/v3/Button.vue.js +3 -3
- package/components/button/v3/Button.vue2.js +43 -75
- package/components/button/{common → v3}/ButtonBase.vue.d.ts +9 -9
- package/components/button/{common → v3}/ButtonBase.vue.js +3 -3
- package/components/button/{common → v3}/ButtonBase.vue2.js +3 -3
- package/components/button/v3/IconButton.vue.js +2 -2
- package/components/button/v3/IconButton.vue2.js +4 -4
- package/components/button/v3/LoaderCircleIcon.vue2.js +0 -0
- package/components/button/v3/LoaderDotsIcon.vue2.js +0 -0
- package/components/button/v3/index.d.ts +130 -0
- package/components/button/v4/ButtonV4.vue.d.ts +16 -6
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +41 -38
- package/components/button/v4/index.d.ts +53 -15
- package/components/chip/v3/Chip.vue.d.ts +1 -1
- package/components/chip/v3/index.d.ts +20 -20
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +20 -20
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +4 -4
- package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
- package/components/dialog/v4/index.d.ts +4 -4
- package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
- package/components/dropdown/v3/Dropdown.vue.js +2 -2
- package/components/dropdown/v3/Dropdown.vue2.js +4 -4
- package/components/dropdown/v3/index.d.ts +59 -59
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +3 -3
- package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -2
- package/components/dropdown/v4/index.d.ts +111 -111
- package/components/filterDropdown/FilterDropdown.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue2.js +4 -4
- package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExclude.vue2.js +22 -23
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +31 -32
- package/components/includeExclude/index.d.ts +135 -135
- package/components/input/v3/Input.vue.d.ts +3 -3
- package/components/input/v3/index.d.ts +82 -82
- package/components/input/v4/TextField.vue.d.ts +6 -6
- package/components/input/v4/index.d.ts +103 -103
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.vue.d.ts +1 -1
- package/components/multibar/index.d.ts +1 -1
- package/components/popover/Popover.vue.js +6 -36
- package/components/popover/Popover.vue2.js +36 -3
- package/components/popover/index.d.ts +16 -16
- package/components/popover/index.js +2 -3
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +30 -10
- package/components/table/v3/index.d.ts +16 -16
- package/components/table/v4/DataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +20 -20
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +17 -17
- package/components/toggle/v4/ToggleV4.vue.d.ts +2 -2
- package/index.d.ts +874 -798
- package/package.json +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_d92097c8_lang.css +0 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_70baba59_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_3fd2281b_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_e8324d12_lang.css +0 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_1320b13b_lang.css +0 -1
- package/IconButton.vue_vue_type_style_index_0_scoped_2fe9bc4c_lang.css +0 -1
- package/components/button/common/ButtonSuper.vue.d.ts +0 -52
- /package/{Popover.vue_vue_type_style_index_0_lang.css → Popover.vue_vue_type_style_index_1_lang.css} +0 -0
- /package/components/button/{consts.d.ts → common/consts.d.ts} +0 -0
- /package/components/button/{consts.js → common/consts.js} +0 -0
- /package/components/button/{icon → v3}/LoaderCircleIcon.vue.d.ts +0 -0
- /package/components/button/{icon → v3}/LoaderCircleIcon.vue.js +0 -0
- /package/components/button/{icon → v3}/LoaderDotsIcon.vue.d.ts +0 -0
- /package/components/button/{icon → v3}/LoaderDotsIcon.vue.js +0 -0
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import "../../IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css"; import { defineComponent as Te, computed as v, ref as u, watch as j, provide as Oe, openBlock as d, createBlock as I, unref as t, withCtx as g, createElementVNode as a, renderSlot as C, createTextVNode as w, toDisplayString as J, createCommentVNode as h, createVNode as f, Transition as $e, createElementBlock as o, normalizeClass as Q, mergeProps as O, Fragment as $, renderList as R, toRaw as T, nextTick as Re } from "vue";
|
|
2
|
-
import "../popover/Popover.
|
|
2
|
+
import Ae from "../popover/Popover.vue.js";
|
|
3
3
|
import N from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import Ee from "../search/v3/Search.vue.js";
|
|
7
7
|
import "../typography/Heading.vue.js";
|
|
8
8
|
import X from "../typography/Text.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import Be from "../checkbox/v3/Checkbox.vue.js";
|
|
10
10
|
import b from "../skeleton/Skeleton.vue.js";
|
|
11
|
-
import
|
|
11
|
+
import Pe from "../emptyState/v3/EmptyState.vue.js";
|
|
12
12
|
import { useToggle as Ve } from "../../composables/useToggle.js";
|
|
13
|
-
import { IncludeExcludeContext as
|
|
14
|
-
import { onClickOutside as
|
|
13
|
+
import { IncludeExcludeContext as Le } from "./IncludeExcludeContext.js";
|
|
14
|
+
import { onClickOutside as Ne, useClamp as Fe, useVirtualList as Z } from "@vueuse/core";
|
|
15
15
|
import { IncludeExcludeTestIdModifiers as m } from "../../testids/index.js";
|
|
16
|
-
import Fe from "../popover/Popover.vue.js";
|
|
17
16
|
const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude-header" }, Ge = { class: "include-exclude-header-left-section" }, Ue = { class: "include-exclude-header-right-section" }, We = { class: "include-exclude-container-wrapper" }, qe = {
|
|
18
17
|
key: 0,
|
|
19
18
|
class: "include-exclude-container"
|
|
@@ -26,7 +25,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
26
25
|
}, je = ["aria-selected", "aria-disabled", "onClick"], Je = { key: 1 }, Qe = { class: "loader-wrapper" }, Xe = ["data-testid"], Ze = {
|
|
27
26
|
key: 0,
|
|
28
27
|
class: "loader-wrapper"
|
|
29
|
-
}, _e = { class: "include-exclude-selected-header-left" }, et = { class: "include-exclude-selected-header-right" }, tt = { key: 1 }, lt = { class: "loader-wrapper" }, nt = { class: "include-exclude-footer" }, at = { class: "include-exclude-footer-buttons" },
|
|
28
|
+
}, _e = { class: "include-exclude-selected-header-left" }, et = { class: "include-exclude-selected-header-right" }, tt = { key: 1 }, lt = { class: "loader-wrapper" }, nt = { class: "include-exclude-footer" }, at = { class: "include-exclude-footer-buttons" }, xt = /* @__PURE__ */ Te({
|
|
30
29
|
__name: "IncludeExclude",
|
|
31
30
|
props: {
|
|
32
31
|
titleText: { default: "" },
|
|
@@ -55,7 +54,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
55
54
|
const n = l, F = 50, H = 3, ee = 6, te = 32, le = 48, ne = v(() => {
|
|
56
55
|
const e = n.placement?.includes("bottom") ? ee : 0;
|
|
57
56
|
return n.isOnTop ? -E.value?.getBoundingClientRect().height : e;
|
|
58
|
-
}), z = u(null), p = u(""), A = u(!1), E = u(null), ae = u(null), se = u(null), B = u(null),
|
|
57
|
+
}), z = u(null), p = u(""), A = u(!1), E = u(null), ae = u(null), se = u(null), B = u(null), P = u(null), de = u(null), c = u(n.modelValue), D = (e) => new Promise((s) => setTimeout(s, e)), r = v({
|
|
59
58
|
get() {
|
|
60
59
|
return c.value;
|
|
61
60
|
},
|
|
@@ -98,24 +97,24 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
98
97
|
});
|
|
99
98
|
};
|
|
100
99
|
j(
|
|
101
|
-
() => [S.value,
|
|
100
|
+
() => [S.value, P?.value?.inputRef],
|
|
102
101
|
([e, s]) => {
|
|
103
102
|
e && s && me();
|
|
104
103
|
}
|
|
105
104
|
);
|
|
106
105
|
const he = () => {
|
|
107
|
-
n.autoFocus &&
|
|
106
|
+
n.autoFocus && P.value?.inputRef.focus();
|
|
108
107
|
}, me = async (e = 300) => {
|
|
109
108
|
await D(e), he();
|
|
110
109
|
}, y = (e) => {
|
|
111
110
|
n.disabled || (e || fe(), ue(e));
|
|
112
111
|
};
|
|
113
|
-
|
|
112
|
+
Ne(K, () => {
|
|
114
113
|
S.value && G();
|
|
115
114
|
});
|
|
116
115
|
const ve = u([]), ge = v(() => k.value?.length - 1), M = (e) => {
|
|
117
116
|
p.value = e;
|
|
118
|
-
},
|
|
117
|
+
}, V = Fe(0, 0, ge), L = (e) => {
|
|
119
118
|
B.value?.focus();
|
|
120
119
|
const s = c.value;
|
|
121
120
|
s.includes(e) ? c.value = s.filter(
|
|
@@ -133,7 +132,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
133
132
|
},
|
|
134
133
|
search: M,
|
|
135
134
|
select: L,
|
|
136
|
-
activeIndex:
|
|
135
|
+
activeIndex: V,
|
|
137
136
|
selectedOption: r,
|
|
138
137
|
activeOption: de,
|
|
139
138
|
listRef: z,
|
|
@@ -143,7 +142,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
143
142
|
}, ye = () => {
|
|
144
143
|
c.value?.length !== k.value?.length ? c.value = k.value : c.value = [];
|
|
145
144
|
};
|
|
146
|
-
Oe(
|
|
145
|
+
Oe(Le, Y);
|
|
147
146
|
const k = v(() => p.value?.length ? n.options?.filter((e) => n.onSearch(e, p.value)) : n.options), {
|
|
148
147
|
list: ke,
|
|
149
148
|
containerProps: xe,
|
|
@@ -169,7 +168,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
169
168
|
}
|
|
170
169
|
e.key === "ArrowDown" && (y(!0), e.preventDefault());
|
|
171
170
|
};
|
|
172
|
-
return (e, s) => (d(), I(t(
|
|
171
|
+
return (e, s) => (d(), I(t(Ae), {
|
|
173
172
|
distance: t(ne) + l.distanceOffset,
|
|
174
173
|
skidding: l.skiddingOffset,
|
|
175
174
|
trigger: "managed",
|
|
@@ -219,9 +218,9 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
219
218
|
]),
|
|
220
219
|
a("div", Ue, [
|
|
221
220
|
C(e.$slots, "header-right-section", {}, () => [
|
|
222
|
-
f(t(
|
|
221
|
+
f(t(Ee), {
|
|
223
222
|
ref_key: "searchRef",
|
|
224
|
-
ref:
|
|
223
|
+
ref: P,
|
|
225
224
|
modelValue: p.value,
|
|
226
225
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => p.value = i),
|
|
227
226
|
class: "include-exclude-header-right-section-search-input",
|
|
@@ -241,7 +240,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
241
240
|
default: g(() => [
|
|
242
241
|
!t(k)?.length && !l.loading ? (d(), o("div", qe, [
|
|
243
242
|
C(e.$slots, "no-result", {}, () => [
|
|
244
|
-
f(t(
|
|
243
|
+
f(t(Pe), {
|
|
245
244
|
size: "lg",
|
|
246
245
|
title: "No results found",
|
|
247
246
|
subtitle: "Try diffrent keyword",
|
|
@@ -260,7 +259,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
260
259
|
"include-exclude-list-header-loaded": !l.loading
|
|
261
260
|
}])
|
|
262
261
|
}, [
|
|
263
|
-
l.loading ? h("", !0) : (d(), I(t(
|
|
262
|
+
l.loading ? h("", !0) : (d(), I(t(Be), {
|
|
264
263
|
key: 0,
|
|
265
264
|
size: "sm",
|
|
266
265
|
"is-checked": t(q),
|
|
@@ -294,7 +293,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
294
293
|
showCheckbox: !0,
|
|
295
294
|
option: i,
|
|
296
295
|
selected: T(t(r)) === i,
|
|
297
|
-
active: T(t(
|
|
296
|
+
active: T(t(V)) === x
|
|
298
297
|
}, void 0, !0)
|
|
299
298
|
], 8, je))), 128))
|
|
300
299
|
], 16)),
|
|
@@ -365,7 +364,7 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
365
364
|
C(e.$slots, "selected_option", {
|
|
366
365
|
option: i,
|
|
367
366
|
selected: T(t(r)) === i,
|
|
368
|
-
active: T(t(
|
|
367
|
+
active: T(t(V)) === x
|
|
369
368
|
}, void 0, !0)
|
|
370
369
|
]))), 128))
|
|
371
370
|
], 16)) : h("", !0),
|
|
@@ -428,5 +427,5 @@ const He = ["data-testid"], ze = ["data-testid"], De = { class: "include-exclude
|
|
|
428
427
|
}
|
|
429
428
|
});
|
|
430
429
|
export {
|
|
431
|
-
|
|
430
|
+
xt as default
|
|
432
431
|
};
|
|
@@ -59,9 +59,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
59
59
|
isLoading: boolean;
|
|
60
60
|
}>>>, {
|
|
61
61
|
searchAttribute: string;
|
|
62
|
-
isLoading: boolean;
|
|
63
|
-
showIcon: boolean;
|
|
64
62
|
searchPlaceholder: string;
|
|
63
|
+
showIcon: boolean;
|
|
64
|
+
isLoading: boolean;
|
|
65
65
|
titleText: string;
|
|
66
66
|
distanceOffset: number;
|
|
67
67
|
skiddingOffset: number;
|
|
@@ -82,10 +82,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
82
82
|
"onUpdate:modelValue"?: (val: unknown[]) => any;
|
|
83
83
|
}, {
|
|
84
84
|
searchAttribute: string;
|
|
85
|
-
isLoading: boolean;
|
|
86
|
-
showIcon: boolean;
|
|
87
85
|
searchPlaceholder: string;
|
|
88
86
|
clearable: boolean;
|
|
87
|
+
showIcon: boolean;
|
|
88
|
+
isLoading: boolean;
|
|
89
89
|
titleText: string;
|
|
90
90
|
distanceOffset: number;
|
|
91
91
|
skiddingOffset: number;
|
|
@@ -91,12 +91,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
91
91
|
loading: boolean;
|
|
92
92
|
placement: Placement;
|
|
93
93
|
disabled: boolean;
|
|
94
|
-
distance: number;
|
|
95
|
-
autoFocus: boolean;
|
|
96
94
|
hasSubtitle: boolean;
|
|
97
95
|
searchPlaceholder: string;
|
|
98
96
|
isOnTop: boolean;
|
|
99
97
|
defaultOpen: boolean;
|
|
98
|
+
autoFocus: boolean;
|
|
99
|
+
distance: number;
|
|
100
100
|
onSearch: (option: any, term: string) => boolean;
|
|
101
101
|
titleText: string;
|
|
102
102
|
alwayesOpen: boolean;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as
|
|
2
|
-
import "../popover/Popover.
|
|
1
|
+
import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as Ee, nextTick as Fe } from "vue";
|
|
2
|
+
import $e from "../popover/Popover.vue.js";
|
|
3
3
|
import G from "../button/v3/Button.vue.js";
|
|
4
4
|
import "../button/v3/IconButton.vue.js";
|
|
5
5
|
import "../button/v3/ScrollButton.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import ze from "../search/v3/Search.vue.js";
|
|
7
7
|
import "../typography/Heading.vue.js";
|
|
8
8
|
import te from "../typography/Text.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import He from "../checkbox/v3/Checkbox.vue.js";
|
|
10
10
|
import b from "../skeleton/Skeleton.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import { useToggle as
|
|
13
|
-
import { IncludeExcludeContext as
|
|
14
|
-
import { onClickOutside as
|
|
15
|
-
import
|
|
16
|
-
import Le from "../popover/Popover.vue.js";
|
|
11
|
+
import Ne from "../emptyState/v3/EmptyState.vue.js";
|
|
12
|
+
import { useToggle as Ue } from "../../composables/useToggle.js";
|
|
13
|
+
import { IncludeExcludeContext as We } from "./IncludeExcludeContext.js";
|
|
14
|
+
import { onClickOutside as Ge, useClamp as Ke, useVirtualList as ne } from "@vueuse/core";
|
|
15
|
+
import Le from "vuedraggable";
|
|
17
16
|
const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-header-left-section" }, je = { class: "include-exclude-header-right-section" }, Je = { class: "include-exclude-container-wrapper" }, Qe = {
|
|
18
17
|
key: 0,
|
|
19
18
|
class: "include-exclude-container"
|
|
@@ -26,7 +25,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
26
25
|
}, _e = ["aria-selected", "aria-disabled", "onClick"], el = ["onClick"], ll = { key: 1 }, tl = { class: "loader-wrapper" }, nl = { class: "include-exclude-selected-wrapper" }, ol = {
|
|
27
26
|
key: 0,
|
|
28
27
|
class: "loader-wrapper"
|
|
29
|
-
}, al = { class: "include-exclude-selected-header-left" }, sl = { class: "include-exclude-selected-header-right" }, il = { class: "drag-item" }, dl = { key: 1 }, rl = { class: "loader-wrapper" }, cl = { class: "include-exclude-footer" }, ul = { class: "include-exclude-footer-buttons" },
|
|
28
|
+
}, al = { class: "include-exclude-selected-header-left" }, sl = { class: "include-exclude-selected-header-right" }, il = { class: "drag-item" }, dl = { key: 1 }, rl = { class: "loader-wrapper" }, cl = { class: "include-exclude-footer" }, ul = { class: "include-exclude-footer-buttons" }, Vl = /* @__PURE__ */ Re({
|
|
30
29
|
__name: "IncludeExcludeDragDrop",
|
|
31
30
|
props: {
|
|
32
31
|
titleText: { default: "" },
|
|
@@ -79,7 +78,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
79
78
|
);
|
|
80
79
|
const ue = p(() => d.value.filter(
|
|
81
80
|
(e) => a.onSearch(e, m.value)
|
|
82
|
-
)),
|
|
81
|
+
)), E = p(() => y.value.filter(
|
|
83
82
|
(e) => !e?.groupOption
|
|
84
83
|
)), j = () => {
|
|
85
84
|
r.value?.length !== a.options?.length && (r.value = d.value), k(!1);
|
|
@@ -94,14 +93,14 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
94
93
|
), X = p(() => {
|
|
95
94
|
if (!x.value)
|
|
96
95
|
return !1;
|
|
97
|
-
const e = d.value, n =
|
|
96
|
+
const e = d.value, n = E.value || y.value;
|
|
98
97
|
return e === n ? !0 : e?.length !== n?.length ? !1 : Q.value(e, n) && Q.value(n, e);
|
|
99
|
-
}), Y = c(null), [x, pe] =
|
|
98
|
+
}), Y = c(null), [x, pe] = Ue({
|
|
100
99
|
disabled: a.disabled,
|
|
101
100
|
initialValue: a.defaultOpen
|
|
102
101
|
}), he = (e = 300) => {
|
|
103
102
|
const n = r.value?.length === a.options?.length;
|
|
104
|
-
|
|
103
|
+
Fe(async () => {
|
|
105
104
|
n && (r.value = []), await M(e), _.resetInput();
|
|
106
105
|
});
|
|
107
106
|
};
|
|
@@ -118,12 +117,12 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
118
117
|
}, k = (e) => {
|
|
119
118
|
a.disabled || (e || he(), pe(e), z.value = []);
|
|
120
119
|
};
|
|
121
|
-
|
|
120
|
+
Ge(Y, () => {
|
|
122
121
|
x.value && (P(), T("clickOutside", d.value));
|
|
123
122
|
});
|
|
124
123
|
const ke = c([]), ye = p(() => y.value?.length - 1), Z = (e) => {
|
|
125
124
|
m.value = e;
|
|
126
|
-
},
|
|
125
|
+
}, F = Ke(0, 0, ye), $ = (e) => {
|
|
127
126
|
if (e?.groupOption)
|
|
128
127
|
return;
|
|
129
128
|
R.value?.focus();
|
|
@@ -132,7 +131,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
132
131
|
(o) => o !== e
|
|
133
132
|
) : d.value = [.../* @__PURE__ */ new Set([...n, e])];
|
|
134
133
|
}, be = (e) => {
|
|
135
|
-
|
|
134
|
+
$(e);
|
|
136
135
|
}, _ = {
|
|
137
136
|
toggle: k,
|
|
138
137
|
disabled: a.disabled,
|
|
@@ -142,8 +141,8 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
142
141
|
Z(""), R.value && (R.value.value = ""), B.value && (d.value = a.modelValue, B.value = !1);
|
|
143
142
|
},
|
|
144
143
|
search: Z,
|
|
145
|
-
select:
|
|
146
|
-
activeIndex:
|
|
144
|
+
select: $,
|
|
145
|
+
activeIndex: F,
|
|
147
146
|
selectedOption: r,
|
|
148
147
|
activeOption: ce,
|
|
149
148
|
listRef: q,
|
|
@@ -151,11 +150,11 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
151
150
|
open: x,
|
|
152
151
|
removeSelection: be
|
|
153
152
|
}, xe = () => {
|
|
154
|
-
d.value = d.value?.length !==
|
|
153
|
+
d.value = d.value?.length !== E.value?.length ? E.value : [], setTimeout(() => {
|
|
155
154
|
Te(d.value.length);
|
|
156
155
|
}, 300);
|
|
157
156
|
};
|
|
158
|
-
Ae(
|
|
157
|
+
Ae(We, _);
|
|
159
158
|
const y = p(() => m.value?.length ? a.options?.filter((e) => a.onSearch(e, m.value)) : a.options), {
|
|
160
159
|
list: ee,
|
|
161
160
|
containerProps: Oe,
|
|
@@ -186,7 +185,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
186
185
|
}, Ie = () => {
|
|
187
186
|
T("changeDragDrop", D.value);
|
|
188
187
|
};
|
|
189
|
-
return (e, n) => (i(), O(l(
|
|
188
|
+
return (e, n) => (i(), O(l($e), {
|
|
190
189
|
distance: l(ie) + t.distanceOffset,
|
|
191
190
|
skidding: t.skiddingOffset,
|
|
192
191
|
trigger: "managed",
|
|
@@ -236,7 +235,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
236
235
|
]),
|
|
237
236
|
s("div", je, [
|
|
238
237
|
v(e.$slots, "header-right-section", {}, () => [
|
|
239
|
-
g(l(
|
|
238
|
+
g(l(ze), {
|
|
240
239
|
ref_key: "searchRef",
|
|
241
240
|
ref: A,
|
|
242
241
|
modelValue: m.value,
|
|
@@ -257,7 +256,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
257
256
|
default: h(() => [
|
|
258
257
|
!l(y)?.length && !t.loading ? (i(), u("div", Qe, [
|
|
259
258
|
v(e.$slots, "no-result", {}, () => [
|
|
260
|
-
g(l(
|
|
259
|
+
g(l(Ne), {
|
|
261
260
|
size: "lg",
|
|
262
261
|
title: "No results found",
|
|
263
262
|
subtitle: "Try diffrent keyword",
|
|
@@ -273,7 +272,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
273
272
|
"include-exclude-list-header-loaded": !t.loading
|
|
274
273
|
}])
|
|
275
274
|
}, [
|
|
276
|
-
t.loading ? f("", !0) : (i(), O(l(
|
|
275
|
+
t.loading ? f("", !0) : (i(), O(l(He), {
|
|
277
276
|
key: 0,
|
|
278
277
|
size: "sm",
|
|
279
278
|
"is-checked": l(X),
|
|
@@ -304,7 +303,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
304
303
|
key: V,
|
|
305
304
|
"aria-selected": S(l(r)) === o,
|
|
306
305
|
"aria-disabled": !!t.disabled,
|
|
307
|
-
onClick: () =>
|
|
306
|
+
onClick: () => $(o)
|
|
308
307
|
}, [
|
|
309
308
|
o.groupOption ? (i(), u("div", {
|
|
310
309
|
key: 0,
|
|
@@ -318,7 +317,7 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
318
317
|
showCheckbox: !0,
|
|
319
318
|
option: o,
|
|
320
319
|
selected: S(l(r)) === o,
|
|
321
|
-
active: S(l(
|
|
320
|
+
active: S(l(F)) === V
|
|
322
321
|
}, void 0, !0) : f("", !0)
|
|
323
322
|
], 8, _e))), 128))
|
|
324
323
|
], 16)),
|
|
@@ -387,16 +386,16 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
387
386
|
ref: "SelectedlistRef",
|
|
388
387
|
tabindex: "2"
|
|
389
388
|
}), [
|
|
390
|
-
g(l(
|
|
389
|
+
g(l(Le), w({
|
|
391
390
|
modelValue: l(D),
|
|
392
|
-
"onUpdate:modelValue": n[1] || (n[1] = (o) =>
|
|
391
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => Ee(D) ? D.value = o : null)
|
|
393
392
|
}, t.draggableArgs, { onChange: Ie }), {
|
|
394
393
|
item: h(({ element: o }) => [
|
|
395
394
|
s("div", il, [
|
|
396
395
|
v(e.$slots, "selected_option_draggable", {
|
|
397
396
|
option: o.data,
|
|
398
397
|
selected: S(l(r)) === o.data,
|
|
399
|
-
active: S(l(
|
|
398
|
+
active: S(l(F)) === o.data.draggableItemKey
|
|
400
399
|
}, void 0, !0)
|
|
401
400
|
])
|
|
402
401
|
]),
|
|
@@ -463,5 +462,5 @@ const qe = { class: "include-exclude-header" }, Me = { class: "include-exclude-h
|
|
|
463
462
|
}
|
|
464
463
|
});
|
|
465
464
|
export {
|
|
466
|
-
|
|
465
|
+
Vl as default
|
|
467
466
|
};
|