@ironsource/shared-ui 2.1.12-rc.0 → 2.1.12-rc.10
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/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +57 -39
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +98 -297
- package/components/chart/ChartHeader.vue.d.ts +20 -10
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +74 -52
- package/components/chart/ChartHeaderTrend.vue.d.ts +34 -0
- package/components/chart/ChartHeaderTrend.vue.js +7 -0
- package/components/chart/ChartHeaderTrend.vue2.js +32 -0
- package/components/chart/ChartLegend.vue.js +2 -2
- package/components/chart/ChartLegend.vue2.js +36 -35
- package/components/chart/ChartPlane.vue.d.ts +143 -0
- package/components/chart/ChartPlane.vue.js +7 -0
- package/components/chart/ChartPlane.vue2.js +306 -0
- package/components/chart/ChartStoryArgs.d.ts +135 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +36 -35
- package/components/chart/composables/useChartHeight.d.ts +5 -0
- package/components/chart/composables/useChartHeight.js +22 -0
- package/components/chart/composables/useColorsMap.d.ts +10 -0
- package/components/chart/composables/useColorsMap.js +17 -0
- package/components/chart/composables/useTooltipPosition.d.ts +1 -1
- package/components/chart/composables/useTooltipPosition.js +11 -15
- package/components/chart/consts.d.ts +5 -0
- package/components/chart/consts.js +20 -15
- package/components/chart/index.d.ts +189 -113
- package/components/chart/mockData.d.ts +27 -1
- package/components/chart/types.d.ts +4 -0
- package/components/chart/utils/formatNumber.d.ts +0 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dropdown/common/Dropdown.common.js +208 -200
- package/components/dropdown/common/useGroupedOptions.d.ts +1 -0
- package/components/dropdown/common/useGroupedOptions.js +40 -39
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +10 -7
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +80 -80
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +97 -86
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +30 -0
- package/components/dropdown/v4/index.d.ts +20 -1
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/table/v4/DataGrid.vue.d.ts +4 -3
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +152 -142
- package/components/table/v4/MultipleDataGrid.vue.d.ts +3 -3
- package/components/table/v4/index.d.ts +15 -14
- package/composables/useFullPageHeight.d.ts +10 -0
- package/composables/useFullPageHeight.js +15 -0
- package/index.d.ts +88 -44
- package/index.js +102 -100
- package/package.json +1 -1
- package/testids/index.d.ts +2 -1
- package/testids/index.js +10 -10
- package/utils/formatNumbers.d.ts +1 -1
- package/utils/formatNumbers.js +18 -5
- package/utils/index.js +7 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
- package/components/chart/utils/formatNumber.js +0 -11
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { GROUP_OPTION_FLAG as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { GROUP_OPTION_FLAG as s } from "./consts.js";
|
|
2
|
+
const f = (u) => {
|
|
3
|
+
const r = (t) => t && !!t[s], i = (t) => t.reduce((e, n) => {
|
|
4
4
|
const { options: o = [], ...l } = n, g = {
|
|
5
5
|
...l,
|
|
6
|
-
[
|
|
6
|
+
[s]: !0
|
|
7
7
|
};
|
|
8
|
-
return [...
|
|
9
|
-
}, []), c = (
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
for (let n = 0; n <
|
|
13
|
-
const o =
|
|
14
|
-
if (
|
|
15
|
-
const l =
|
|
16
|
-
if (
|
|
8
|
+
return [...e, g, ...o];
|
|
9
|
+
}, []), c = (t) => i(t).reduce((n, o) => o[s] ? n : n + 1, 0), h = (t) => {
|
|
10
|
+
const e = u.groupedOptions ? [] : t;
|
|
11
|
+
if (u.groupedOptions)
|
|
12
|
+
for (let n = 0; n < t.length; n++) {
|
|
13
|
+
const o = t[n];
|
|
14
|
+
if (r(o)) {
|
|
15
|
+
const l = t[n + 1];
|
|
16
|
+
if (r(l) || !l)
|
|
17
17
|
continue;
|
|
18
|
-
|
|
18
|
+
e.push(o);
|
|
19
19
|
} else
|
|
20
|
-
|
|
20
|
+
e.push(o);
|
|
21
21
|
}
|
|
22
|
-
return
|
|
23
|
-
},
|
|
24
|
-
const n =
|
|
25
|
-
if (
|
|
26
|
-
|
|
22
|
+
return e;
|
|
23
|
+
}, d = (t, e) => {
|
|
24
|
+
const n = u.options.length;
|
|
25
|
+
if (e.value.length === t.value.length - n) {
|
|
26
|
+
e.value = [];
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
(o) => !
|
|
29
|
+
e.value = t.value.filter(
|
|
30
|
+
(o) => !r(o)
|
|
31
31
|
);
|
|
32
|
-
},
|
|
33
|
-
(
|
|
32
|
+
}, p = (t) => t.value.reduce(
|
|
33
|
+
(e, n) => e + (r(n) ? 0 : 1),
|
|
34
34
|
0
|
|
35
35
|
);
|
|
36
36
|
return {
|
|
37
|
-
isGroup:
|
|
38
|
-
sortOutGroups:
|
|
39
|
-
flattenAndMarkGroupOptions:
|
|
40
|
-
selectAllWithGroups:
|
|
41
|
-
isIndeterminateGrouped: (
|
|
42
|
-
const n =
|
|
43
|
-
return
|
|
37
|
+
isGroup: r,
|
|
38
|
+
sortOutGroups: h,
|
|
39
|
+
flattenAndMarkGroupOptions: i,
|
|
40
|
+
selectAllWithGroups: d,
|
|
41
|
+
isIndeterminateGrouped: (t, e) => {
|
|
42
|
+
const n = p(t);
|
|
43
|
+
return e.value.length > 0 && e.value.length < n;
|
|
44
44
|
},
|
|
45
|
-
allSelectedGrouped: (
|
|
46
|
-
const n =
|
|
47
|
-
return
|
|
45
|
+
allSelectedGrouped: (t, e) => {
|
|
46
|
+
const n = p(t);
|
|
47
|
+
return e.value.length === n;
|
|
48
48
|
},
|
|
49
|
-
areAllPreviousSelected: (
|
|
50
|
-
const n =
|
|
51
|
-
return
|
|
52
|
-
}
|
|
49
|
+
areAllPreviousSelected: (t, e) => {
|
|
50
|
+
const n = u.options.length;
|
|
51
|
+
return t.value.length - n === e.value.length;
|
|
52
|
+
},
|
|
53
|
+
groupedChildOptionsLength: c
|
|
53
54
|
};
|
|
54
55
|
};
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
f as useGroupedOptions
|
|
57
58
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonFilterDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ButtonFilterDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0198fee8"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../ButtonFilterDropdownTrigger.
|
|
1
|
+
import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_0198fee8_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as u, mergeProps as l, unref as t, createBlock as d, createCommentVNode as i, createVNode as f, withCtx as p, createTextVNode as I, toDisplayString as T } from "vue";
|
|
2
2
|
import y from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import s from "../../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import { useTestIdAttrs as N } from "../../../utils/testIds.js";
|
|
6
|
-
import { DropdownTestIdModifiers as
|
|
7
|
-
const
|
|
6
|
+
import { DropdownTestIdModifiers as a } from "../../../testids/index.js";
|
|
7
|
+
const E = /* @__PURE__ */ m({
|
|
8
8
|
__name: "ButtonFilterDropdownTrigger",
|
|
9
9
|
props: {
|
|
10
10
|
label: null,
|
|
@@ -18,10 +18,10 @@ const h = /* @__PURE__ */ m({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["click"],
|
|
20
20
|
setup(e, { emit: c }) {
|
|
21
|
-
const
|
|
21
|
+
const n = N(e.testId, a);
|
|
22
22
|
return (g, r) => (o(), u("div", l({
|
|
23
23
|
class: ["button-filter-dropdown-trigger", [e.variant, { disabled: e.disabled, open: e.open }]]
|
|
24
|
-
}, t(
|
|
24
|
+
}, t(n)[t(a).BUTTON], {
|
|
25
25
|
onClick: r[0] || (r[0] = (k) => c("click"))
|
|
26
26
|
}), [
|
|
27
27
|
e.startIconName ? (o(), d(t(s), {
|
|
@@ -31,7 +31,10 @@ const h = /* @__PURE__ */ m({
|
|
|
31
31
|
size: "16px",
|
|
32
32
|
class: "start-icon"
|
|
33
33
|
}, null, 8, ["name", "type"])) : i("", !0),
|
|
34
|
-
f(t(y), l({
|
|
34
|
+
f(t(y), l({
|
|
35
|
+
variant: "chipLabel",
|
|
36
|
+
class: "content"
|
|
37
|
+
}, t(n)[t(a).BUTTON_CONTENT]), {
|
|
35
38
|
default: p(() => [
|
|
36
39
|
I(T(e.label), 1)
|
|
37
40
|
]),
|
|
@@ -47,5 +50,5 @@ const h = /* @__PURE__ */ m({
|
|
|
47
50
|
}
|
|
48
51
|
});
|
|
49
52
|
export {
|
|
50
|
-
|
|
53
|
+
E as default
|
|
51
54
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ConditionalDropdown.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ConditionalDropdown.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import d from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ d(o, [["__scopeId", "data-v-8d5521da"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as K, onMounted as q, openBlock as D, createBlock as G, unref as c, withCtx as f, createVNode as g, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
|
|
2
|
+
import F from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import ae from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
7
|
+
import "./ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import te from "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
10
|
import "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
@@ -15,7 +15,7 @@ import { useDebounceFn as ue } from "@vueuse/core";
|
|
|
15
15
|
const re = { class: "conditional-container" }, se = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
|
-
},
|
|
18
|
+
}, Te = /* @__PURE__ */ W({
|
|
19
19
|
__name: "ConditionalDropdown",
|
|
20
20
|
props: {
|
|
21
21
|
selectedCondition: null,
|
|
@@ -52,125 +52,125 @@ const re = { class: "conditional-container" }, se = {
|
|
|
52
52
|
set: (l) => {
|
|
53
53
|
h("update:selectedCondition", l);
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), L = () => {
|
|
56
56
|
const { appliedSelections: l } = e;
|
|
57
57
|
return l ? Array.isArray(l) ? l : [l] : [];
|
|
58
|
-
},
|
|
59
|
-
const l =
|
|
58
|
+
}, T = s(null), p = s(!0), t = s([]), n = s(L()), A = s(!0), d = s(!1), C = s(!1), u = s(e.searchQuery), B = s(""), m = s(e.label), k = s([]), U = O(() => (!u.value || u.value?.length < e.minCharsToStart) && !t.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), I = O(() => {
|
|
59
|
+
const l = p.value ? 4 : 4.5, o = t.value.length > 4 ? t.value.length : l;
|
|
60
60
|
if (e.groupedOptions) {
|
|
61
|
-
let
|
|
62
|
-
return
|
|
63
|
-
y.options && (
|
|
64
|
-
}),
|
|
61
|
+
let a = 0;
|
|
62
|
+
return t.value.forEach((y) => {
|
|
63
|
+
y.options && (a = a + y.options.length);
|
|
64
|
+
}), a > 4 ? a : l;
|
|
65
65
|
}
|
|
66
|
-
return
|
|
67
|
-
}), M = (l,
|
|
68
|
-
if (e.infiniteLoading && i.value.multi && Array.isArray(n.value) && n.value.length && l &&
|
|
69
|
-
const
|
|
66
|
+
return o > l ? o : l;
|
|
67
|
+
}), M = (l, o) => {
|
|
68
|
+
if (e.infiniteLoading && i.value.multi && Array.isArray(n.value) && n.value.length && l && o.length) {
|
|
69
|
+
const a = [], y = n.value.filter(
|
|
70
70
|
(v) => v[e.optionNameKey].includes(l)
|
|
71
71
|
);
|
|
72
|
-
return
|
|
72
|
+
return o.forEach((v) => {
|
|
73
73
|
y.find(
|
|
74
74
|
(j) => j[e.comparingKey] === v[e.comparingKey]
|
|
75
|
-
) &&
|
|
75
|
+
) && a.push(v[e.comparingKey]);
|
|
76
76
|
}), y.filter(
|
|
77
|
-
(v) => !
|
|
77
|
+
(v) => !a.includes(v[e.comparingKey])
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
return [];
|
|
81
|
-
},
|
|
81
|
+
}, w = async (l) => {
|
|
82
82
|
try {
|
|
83
|
-
|
|
84
|
-
const
|
|
83
|
+
d.value = !0;
|
|
84
|
+
const o = await e.fetchFnCallback(l), a = M(
|
|
85
85
|
l,
|
|
86
|
-
|
|
86
|
+
o
|
|
87
87
|
);
|
|
88
|
-
|
|
89
|
-
} catch (
|
|
90
|
-
|
|
88
|
+
t.value = [...a, ...o], d.value = !1;
|
|
89
|
+
} catch (o) {
|
|
90
|
+
d.value = !1, console.error("Error fetching data:", o);
|
|
91
91
|
}
|
|
92
92
|
}, E = async () => {
|
|
93
93
|
if (e.infiniteLoading)
|
|
94
94
|
try {
|
|
95
95
|
C.value = !0;
|
|
96
96
|
const l = await e.loadMoreFn();
|
|
97
|
-
C.value = !1, Array.isArray(l) && (
|
|
97
|
+
C.value = !1, Array.isArray(l) && (t.value = [...t.value, ...l]);
|
|
98
98
|
} catch (l) {
|
|
99
99
|
C.value = !1, console.error("Error fetching data:", l);
|
|
100
100
|
}
|
|
101
|
-
},
|
|
102
|
-
|
|
101
|
+
}, x = ue(
|
|
102
|
+
w,
|
|
103
103
|
e.fetchDataDebounceTime
|
|
104
104
|
), b = (l) => {
|
|
105
|
-
l.length >= e.minCharsToStart ? (
|
|
106
|
-
},
|
|
107
|
-
u.value &&
|
|
105
|
+
l.length >= e.minCharsToStart ? (x(l), T.value?.scrollTo(0)) : e.infiniteLoading && i.value.multi ? t.value = k.value || [] : t.value = [];
|
|
106
|
+
}, P = () => {
|
|
107
|
+
u.value && t.value.length && !d.value && !i.value.multi ? t.value[0].conditionalOptions ? t.value[0] = {
|
|
108
108
|
[e.optionNameKey]: u.value,
|
|
109
109
|
conditionalOptions: !0,
|
|
110
110
|
conditionalName: i.value.label,
|
|
111
111
|
[e.comparingKey]: u.value
|
|
112
|
-
} :
|
|
112
|
+
} : t.value = [
|
|
113
113
|
{
|
|
114
114
|
[e.optionNameKey]: u.value,
|
|
115
115
|
conditionalOptions: !0,
|
|
116
116
|
conditionalName: i.value.label,
|
|
117
117
|
[e.comparingKey]: u.value
|
|
118
118
|
},
|
|
119
|
-
...
|
|
120
|
-
] :
|
|
119
|
+
...t.value
|
|
120
|
+
] : t.value.length && t.value[0].conditionalOptions && t.value.shift();
|
|
121
121
|
}, N = () => {
|
|
122
|
-
|
|
122
|
+
p.value && n.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${i.value.label.toLowerCase()}`;
|
|
123
123
|
};
|
|
124
124
|
K(u, () => {
|
|
125
125
|
b(u.value);
|
|
126
|
-
}), K([i,
|
|
127
|
-
|
|
126
|
+
}), K([i, t], () => {
|
|
127
|
+
P();
|
|
128
128
|
}), K(
|
|
129
129
|
() => e.loadingOverride,
|
|
130
|
-
(l,
|
|
131
|
-
!l &&
|
|
130
|
+
(l, o) => {
|
|
131
|
+
!l && o && !e.infiniteLoading && w(e.searchQuery);
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const Q = () => {
|
|
135
|
+
p.value && n.value.length === 0 ? (i.value = null, S.value = [], i.value = null) : (B.value = u.value, S.value = p.value ? [...n.value] : { ...n.value }, A.value = p.value), N();
|
|
136
136
|
};
|
|
137
|
-
K(i, (l,
|
|
138
|
-
i.value.multi ? (
|
|
139
|
-
|
|
140
|
-
}, 100)) : setTimeout(() => {
|
|
141
|
-
|
|
142
|
-
}, 100);
|
|
137
|
+
K(i, (l, o) => {
|
|
138
|
+
i.value.multi ? (d.value = !0, !o.multi && l.multi && (Array.isArray(e.appliedSelections) ? n.value = e.appliedSelections : n.value = [e.appliedSelections]), setTimeout(() => {
|
|
139
|
+
d.value = !1, p.value = !0;
|
|
140
|
+
}, 100)) : (!o.multi && !l.multi && (d.value = !0), setTimeout(() => {
|
|
141
|
+
!o.multi && !l.multi && (d.value = !1), p.value = !1;
|
|
142
|
+
}, 100));
|
|
143
143
|
});
|
|
144
|
-
const
|
|
144
|
+
const R = (l) => {
|
|
145
145
|
k.value = l;
|
|
146
|
-
},
|
|
146
|
+
}, z = () => {
|
|
147
147
|
n.value = [], S.value = [], i.value = null, m.value = e.label, u.value = "", h("clear");
|
|
148
|
-
},
|
|
149
|
-
l && i.value.multi && e.infiniteLoading && n.value && (
|
|
148
|
+
}, V = (l) => {
|
|
149
|
+
l && i.value.multi && e.infiniteLoading && n.value && (t.value = n.value, u.value && b(u.value));
|
|
150
150
|
};
|
|
151
151
|
q(() => {
|
|
152
|
-
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (
|
|
152
|
+
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (t.value = e.appliedSelections, n.value = e.appliedSelections, k.value = e.appliedSelections), N();
|
|
153
153
|
});
|
|
154
154
|
const $ = () => {
|
|
155
155
|
h("closed");
|
|
156
156
|
};
|
|
157
|
-
return (l,
|
|
157
|
+
return (l, o) => (D(), G(c(F), {
|
|
158
158
|
ref_key: "dropdownRef",
|
|
159
|
-
ref:
|
|
159
|
+
ref: T,
|
|
160
160
|
selected: n.value,
|
|
161
|
-
"onUpdate:selected":
|
|
161
|
+
"onUpdate:selected": o[2] || (o[2] = (a) => n.value = a),
|
|
162
162
|
"predefined-trigger": "chip",
|
|
163
|
-
"display-value": (
|
|
164
|
-
multi:
|
|
165
|
-
options:
|
|
163
|
+
"display-value": (a) => a?.[r.optionNameKey],
|
|
164
|
+
multi: p.value,
|
|
165
|
+
options: t.value,
|
|
166
166
|
placeholder: m.value,
|
|
167
167
|
"search-placeholder": "Search",
|
|
168
168
|
"option-name-key": r.optionNameKey,
|
|
169
169
|
"with-conditions": "",
|
|
170
170
|
"inline-search": "",
|
|
171
|
-
"custom-number-of-displayed-options":
|
|
171
|
+
"custom-number-of-displayed-options": c(I),
|
|
172
172
|
"options-list-width": "330px",
|
|
173
|
-
loading:
|
|
173
|
+
loading: d.value || r.loadingOverride,
|
|
174
174
|
"load-more-loading": C.value,
|
|
175
175
|
"comparing-key": r.comparingKey,
|
|
176
176
|
"is-open": r.isOpen,
|
|
@@ -181,45 +181,45 @@ const re = { class: "conditional-container" }, se = {
|
|
|
181
181
|
"option-image-key": r.optionImageKey,
|
|
182
182
|
"option-icon-key": r.optionIconKey,
|
|
183
183
|
"option-icon-type": r.optionIconType,
|
|
184
|
-
"onUpdate:isOpen":
|
|
184
|
+
"onUpdate:isOpen": V,
|
|
185
185
|
onOnsearch: b,
|
|
186
|
-
onApply:
|
|
186
|
+
onApply: Q,
|
|
187
187
|
onLoadMore: E,
|
|
188
|
-
onUnsavedSelectionUpdate:
|
|
188
|
+
onUnsavedSelectionUpdate: R,
|
|
189
189
|
onClosed: $
|
|
190
190
|
}, {
|
|
191
|
-
"dropdown-trigger": f(({ defaultTriggerProps:
|
|
192
|
-
g(
|
|
191
|
+
"dropdown-trigger": f(({ defaultTriggerProps: a }) => [
|
|
192
|
+
g(c(ae), H(a, {
|
|
193
193
|
label: m.value,
|
|
194
|
-
"selected-option":
|
|
195
|
-
multi:
|
|
194
|
+
"selected-option": c(S),
|
|
195
|
+
multi: A.value,
|
|
196
196
|
"cancel-all-selected-display": "",
|
|
197
197
|
"display-value-in-quotes": !Array.isArray(n.value) && n.value.conditionalOptions,
|
|
198
|
-
onClear:
|
|
198
|
+
onClear: z
|
|
199
199
|
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
|
|
200
200
|
]),
|
|
201
201
|
"dropdown-conditions": f(() => [
|
|
202
202
|
J("div", re, [
|
|
203
|
-
g(
|
|
204
|
-
selected:
|
|
205
|
-
"onUpdate:selected":
|
|
203
|
+
g(c(F), {
|
|
204
|
+
selected: c(i),
|
|
205
|
+
"onUpdate:selected": o[0] || (o[0] = (a) => X(i) ? i.value = a : null),
|
|
206
206
|
options: r.conditionalOptions,
|
|
207
207
|
"option-name-key": "label",
|
|
208
|
-
"display-value": (
|
|
208
|
+
"display-value": (a) => a?.label,
|
|
209
209
|
container: ".conditional-container",
|
|
210
210
|
size: "small"
|
|
211
211
|
}, {
|
|
212
|
-
"dropdown-trigger": f(({ buttonTriggerProps:
|
|
213
|
-
g(
|
|
212
|
+
"dropdown-trigger": f(({ buttonTriggerProps: a }) => [
|
|
213
|
+
g(c(te), Y(Z(a)), null, 16)
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
216
|
}, 8, ["selected", "options", "display-value"])
|
|
217
217
|
])
|
|
218
218
|
]),
|
|
219
219
|
"inline-search": f(() => [
|
|
220
|
-
g(
|
|
220
|
+
g(c(ne), {
|
|
221
221
|
modelValue: u.value,
|
|
222
|
-
"onUpdate:modelValue":
|
|
222
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => u.value = a),
|
|
223
223
|
class: "inline-search",
|
|
224
224
|
placeholder: "Search",
|
|
225
225
|
variant: "transparent",
|
|
@@ -228,10 +228,10 @@ const re = { class: "conditional-container" }, se = {
|
|
|
228
228
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
229
229
|
]),
|
|
230
230
|
"custom-list-area": f(() => [
|
|
231
|
-
!
|
|
231
|
+
!t.value.length && !d.value ? (D(), _("div", se, [
|
|
232
232
|
g(ie, { variant: "body1" }, {
|
|
233
233
|
default: f(() => [
|
|
234
|
-
ee(le(
|
|
234
|
+
ee(le(c(U)), 1)
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
237
|
})
|
|
@@ -242,5 +242,5 @@ const re = { class: "conditional-container" }, se = {
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
export {
|
|
245
|
-
|
|
245
|
+
Te as default
|
|
246
246
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DefaultDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DefaultDropdownTrigger.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; //*');
|
|
4
|
+
const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-64ae80dd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css"; import { defineComponent as I, computed as u, openBlock as a, createElementBlock as d, createBlock as m, createCommentVNode as n, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as r, withCtx as O, createTextVNode as B, toDisplayString as $ } from "vue";
|
|
2
2
|
import w from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
4
4
|
import g from "../../icon/v4/IconV4.vue.js";
|
|
@@ -92,8 +92,8 @@ const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
|
|
|
92
92
|
i(o.$slots, "flag", {}, () => [
|
|
93
93
|
t.optionFlagKey ? (a(), m(l(K), {
|
|
94
94
|
key: 0,
|
|
95
|
-
|
|
96
|
-
}, null, 8, ["
|
|
95
|
+
"country-code": l(s)[t.optionFlagKey]
|
|
96
|
+
}, null, 8, ["country-code"])) : n("", !0)
|
|
97
97
|
], !0)
|
|
98
98
|
])) : n("", !0),
|
|
99
99
|
o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), d("div", P, [
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
17
|
keepOpen?: boolean;
|
|
18
18
|
autoSize?: boolean;
|
|
19
19
|
disableKeyboardEvents?: boolean;
|
|
20
|
+
dynamicFilterMode?: boolean;
|
|
20
21
|
isOnTop?: boolean;
|
|
21
22
|
distance?: number;
|
|
22
23
|
container?: string;
|
|
@@ -89,6 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
90
|
disableKeyboardEvents: boolean;
|
|
90
91
|
testId: string;
|
|
91
92
|
showSelectAll: boolean;
|
|
93
|
+
dynamicFilterMode: boolean;
|
|
92
94
|
triggerLabel: string;
|
|
93
95
|
triggerHelperText: string;
|
|
94
96
|
triggerFeedbackText: string;
|
|
@@ -153,6 +155,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
153
155
|
keepOpen?: boolean;
|
|
154
156
|
autoSize?: boolean;
|
|
155
157
|
disableKeyboardEvents?: boolean;
|
|
158
|
+
dynamicFilterMode?: boolean;
|
|
156
159
|
isOnTop?: boolean;
|
|
157
160
|
distance?: number;
|
|
158
161
|
container?: string;
|
|
@@ -225,6 +228,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
225
228
|
disableKeyboardEvents: boolean;
|
|
226
229
|
testId: string;
|
|
227
230
|
showSelectAll: boolean;
|
|
231
|
+
dynamicFilterMode: boolean;
|
|
228
232
|
triggerLabel: string;
|
|
229
233
|
triggerHelperText: string;
|
|
230
234
|
triggerFeedbackText: string;
|
|
@@ -291,6 +295,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
291
295
|
keepOpen: boolean;
|
|
292
296
|
autoSize: boolean;
|
|
293
297
|
disableKeyboardEvents: boolean;
|
|
298
|
+
dynamicFilterMode: boolean;
|
|
294
299
|
isOnTop: boolean;
|
|
295
300
|
triggerLabel: string;
|
|
296
301
|
triggerHelperText: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DropdownV4.
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const
|
|
5
|
+
const d = /* @__PURE__ */ _(o, [["__scopeId", "data-v-d154c5da"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
d as default
|
|
8
8
|
};
|