@ironsource/shared-ui 2.1.12-test.75 → 2.1.12-test.76
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_a4130027_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css +1 -0
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +25 -17
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +17 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +78 -70
- package/components/dropdown/v4/index.d.ts +432 -106
- package/index.d.ts +1545 -893
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_acd8417d_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-plane-container[data-v-a4130027]{--headerHeight: var(--699b2c4c);width:100%;height:var(--002a7637);position:relative}.header-wrapper[data-v-a4130027]{position:absolute;width:100%;height:var(--headerHeight);top:0;z-index:1}.chart-plane[data-v-a4130027]{padding-top:var(--headerHeight);height:100%}.chart[data-v-a4130027]{width:100%;height:100%;position:relative}.chart__canvas[data-v-a4130027]{width:100%;height:100%}.chart__tooltip[data-v-a4130027]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px;z-index:1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-list-area[data-v-683b8a75]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 10px}.inline-search[data-v-683b8a75]{width:100%}.contain-accept[data-v-683b8a75]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-683b8a75]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-683b8a75]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const s = /* @__PURE__ */ o
|
|
1
|
+
import o from "./ChartPlane.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a4130027_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a4130027"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../ChartPlane.
|
|
1
|
+
import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a4130027_lang.css"; import { defineComponent as re, useCssVars as ie, unref as s, computed as l, ref as k, onMounted as ne, watch as T, nextTick as se, openBlock as f, createElementBlock as S, createVNode as ue, isRef as ce, createSlots as de, withCtx as pe, renderSlot as fe, createCommentVNode as A, createElementVNode as L, normalizeStyle as he, createBlock as E } from "vue";
|
|
2
2
|
import { Chart as N, ArcElement as me, LineElement as ve, BarElement as ye, PointElement as Te, LineController as Ce, BarController as be, PieController as ge, ScatterController as xe, CategoryScale as ke, LinearScale as Se, Filler as Ae, Tooltip as Le } from "chart.js";
|
|
3
3
|
import { HoverVerticalLine as Ee } from "./plugins/HoverVerticalLine.js";
|
|
4
4
|
import { prepareTickLabel as Re, formatValue as Be, calcStepSize as De } from "./utils/utils.js";
|
|
5
|
-
import { DEFAULT_TICK_COUNT as Oe, TOTALS_HELPER_KEY as F, BASE_COLOR_KEY as K, CHART_PADDING as Ie, POINT_BORDER_COLOR as He, TICK_LABEL_COLOR as M, TICK_LABEL_FONT as U, TICKS_EXTRA_PADDING as
|
|
5
|
+
import { DEFAULT_TICK_COUNT as Oe, TOTALS_HELPER_KEY as F, BASE_COLOR_KEY as K, CHART_PADDING as Ie, POINT_BORDER_COLOR as He, TICK_LABEL_COLOR as M, TICK_LABEL_FONT as U, TICKS_EXTRA_PADDING as Pe, GRID_LINE_COLOR as z, HEADER_HEIGHT as Ve, COMPACT_HEADER_HEIGHT as we, HOVER_AREA_TRANSPARENCY as Ne, HOVER_TRANSPARENCY as C } from "./consts.js";
|
|
6
6
|
import { ChartType as u, DateInterval as Fe, TooltipOrder as Y, TrendDirection as Ke } from "./types.js";
|
|
7
7
|
import { useTooltipPosition as Me } from "./composables/useTooltipPosition.js";
|
|
8
8
|
import Ue from "./ChartTooltip.vue.js";
|
|
@@ -64,8 +64,8 @@ const Qe = { class: "chart-plane-container" }, et = {
|
|
|
64
64
|
setup(o, { emit: G }) {
|
|
65
65
|
const e = o;
|
|
66
66
|
ie((t) => ({
|
|
67
|
-
|
|
68
|
-
"
|
|
67
|
+
"699b2c4c": s(ee),
|
|
68
|
+
"002a7637": o.height
|
|
69
69
|
}));
|
|
70
70
|
const $ = _e(Re);
|
|
71
71
|
N.register(
|
|
@@ -94,7 +94,15 @@ const Qe = { class: "chart-plane-container" }, et = {
|
|
|
94
94
|
};
|
|
95
95
|
ne(g), T(() => e.chartType, g), T(d, async (t) => {
|
|
96
96
|
t && (await se(), g());
|
|
97
|
-
}), T(
|
|
97
|
+
}), T(
|
|
98
|
+
[
|
|
99
|
+
() => e.visibleIds,
|
|
100
|
+
() => e.dataSets,
|
|
101
|
+
() => e.valuePrefix,
|
|
102
|
+
() => e.valueSuffix
|
|
103
|
+
],
|
|
104
|
+
Z
|
|
105
|
+
);
|
|
98
106
|
const p = l(() => e.totalsChart), v = l(
|
|
99
107
|
() => e.chartType === u.StackedLine || e.chartType === u.StackedBar || p.value
|
|
100
108
|
), x = l(
|
|
@@ -218,7 +226,7 @@ const Qe = { class: "chart-plane-container" }, et = {
|
|
|
218
226
|
autoSkip: !e.truncateTickLabels,
|
|
219
227
|
autoSkipPadding: 8,
|
|
220
228
|
callback: function(t, i, a) {
|
|
221
|
-
const r = this.getLabelForValue(t), oe = x.value && !p.value ? a.length - 1 : a.length, le = this.chart.scales?.x?.width / oe -
|
|
229
|
+
const r = this.getLabelForValue(t), oe = x.value && !p.value ? a.length - 1 : a.length, le = this.chart.scales?.x?.width / oe - Pe;
|
|
222
230
|
return $({
|
|
223
231
|
label: r,
|
|
224
232
|
format: e.xAxisFormat,
|
|
@@ -248,10 +256,10 @@ const Qe = { class: "chart-plane-container" }, et = {
|
|
|
248
256
|
color: M,
|
|
249
257
|
font: U,
|
|
250
258
|
padding: 8,
|
|
251
|
-
stepSize:
|
|
252
|
-
min:
|
|
253
|
-
max:
|
|
254
|
-
callback: (t) => Be(t, e.yAxisFormat)
|
|
259
|
+
stepSize: w.value,
|
|
260
|
+
min: V.value,
|
|
261
|
+
max: w.value * e.tickCount,
|
|
262
|
+
callback: (t) => e.valuePrefix + Be(t, e.yAxisFormat) + e.valueSuffix
|
|
255
263
|
},
|
|
256
264
|
// grid lines
|
|
257
265
|
grid: {
|
|
@@ -262,23 +270,23 @@ const Qe = { class: "chart-plane-container" }, et = {
|
|
|
262
270
|
}
|
|
263
271
|
}
|
|
264
272
|
}
|
|
265
|
-
})), H = k(null), c = k(null), { position:
|
|
273
|
+
})), H = k(null), c = k(null), { position: P } = Me(
|
|
266
274
|
m,
|
|
267
275
|
H,
|
|
268
276
|
c,
|
|
269
277
|
e.tooltipRespectsTopEdge
|
|
270
278
|
), J = l(() => ({
|
|
271
|
-
left: `${
|
|
272
|
-
top: `${
|
|
279
|
+
left: `${P.value.left}px`,
|
|
280
|
+
top: `${P.value.top}px`,
|
|
273
281
|
opacity: c.value?.opacity || 0
|
|
274
|
-
})), { minValue:
|
|
282
|
+
})), { minValue: V, maxValue: Q } = ze({
|
|
275
283
|
parsingConfig: B.value,
|
|
276
284
|
dataSets: y,
|
|
277
285
|
isStacked: v
|
|
278
|
-
}),
|
|
279
|
-
() => De(
|
|
286
|
+
}), w = l(
|
|
287
|
+
() => De(V.value, Q.value, e.tickCount)
|
|
280
288
|
), ee = l(
|
|
281
|
-
() => (e.compactHeader ?
|
|
289
|
+
() => (e.compactHeader ? we : Ve) + "px"
|
|
282
290
|
);
|
|
283
291
|
T(
|
|
284
292
|
() => e.highlightedId,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { IconTypes } from '@is-ssp/icon/v4/Icon.types';
|
|
2
1
|
type SelectedCondition = {
|
|
3
2
|
label: string;
|
|
4
3
|
value: string;
|
|
5
4
|
multi: boolean;
|
|
6
5
|
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
-
selectedCondition: SelectedCondition
|
|
9
|
-
appliedSelections: unknown
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
selectedCondition: SelectedCondition;
|
|
8
|
+
appliedSelections: unknown;
|
|
10
9
|
conditionalOptions: SelectedCondition[];
|
|
11
10
|
label: string;
|
|
12
11
|
testId?: string;
|
|
@@ -24,7 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
23
|
optionFlagKey?: string;
|
|
25
24
|
optionIconKey?: string;
|
|
26
25
|
optionImageKey?: string;
|
|
27
|
-
optionIconType?:
|
|
26
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
28
27
|
loadingOverride?: boolean;
|
|
29
28
|
triggerShownValuesCount?: number;
|
|
30
29
|
}>, {
|
|
@@ -52,8 +51,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
52
51
|
clear: () => void;
|
|
53
52
|
closed: () => void;
|
|
54
53
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
55
|
-
selectedCondition: SelectedCondition
|
|
56
|
-
appliedSelections: unknown
|
|
54
|
+
selectedCondition: SelectedCondition;
|
|
55
|
+
appliedSelections: unknown;
|
|
57
56
|
conditionalOptions: SelectedCondition[];
|
|
58
57
|
label: string;
|
|
59
58
|
testId?: string;
|
|
@@ -71,7 +70,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
71
70
|
optionFlagKey?: string;
|
|
72
71
|
optionIconKey?: string;
|
|
73
72
|
optionImageKey?: string;
|
|
74
|
-
optionIconType?:
|
|
73
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
75
74
|
loadingOverride?: boolean;
|
|
76
75
|
triggerShownValuesCount?: number;
|
|
77
76
|
}>, {
|
|
@@ -107,7 +106,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
107
106
|
optionNameKey: string;
|
|
108
107
|
optionIconKey: string;
|
|
109
108
|
optionImageKey: string;
|
|
110
|
-
optionIconType:
|
|
109
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
111
110
|
optionFlagKey: string;
|
|
112
111
|
groupedOptions: boolean;
|
|
113
112
|
comparingKey: string;
|
|
@@ -117,6 +116,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
117
116
|
fetchDataDebounceTime: number;
|
|
118
117
|
autoFocusSearch: boolean;
|
|
119
118
|
loadingOverride: boolean;
|
|
119
|
+
}>, {
|
|
120
|
+
"option-end"?(_: {
|
|
121
|
+
option: any;
|
|
122
|
+
}): any;
|
|
120
123
|
}>;
|
|
121
124
|
export default _default;
|
|
122
125
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -136,3 +139,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
136
139
|
type __VLS_Prettify<T> = {
|
|
137
140
|
[K in keyof T]: T[K];
|
|
138
141
|
} & {};
|
|
142
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
143
|
+
new (): {
|
|
144
|
+
$slots: S;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
@@ -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 _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-683b8a75"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as h, onMounted as q, openBlock as F, createBlock as G, unref as c, createSlots as H, withCtx as v, createVNode as S, mergeProps as J, createElementVNode as X, isRef as Y, normalizeProps as Z, guardReactiveProps as _, createElementBlock as ee, createTextVNode as le, toDisplayString as oe, createCommentVNode as te, renderSlot as ae } from "vue";
|
|
2
2
|
import L from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import ne from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
7
|
import "./ButtonDropdownTrigger.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import ie from "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
10
|
import "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
const
|
|
12
|
+
import ue from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import re from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { useDebounceFn as se } from "@vueuse/core";
|
|
15
|
+
const de = { class: "conditional-container" }, ce = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
|
-
},
|
|
18
|
+
}, Ae = /* @__PURE__ */ W({
|
|
19
19
|
__name: "ConditionalDropdown",
|
|
20
20
|
props: {
|
|
21
21
|
selectedCondition: null,
|
|
@@ -57,38 +57,38 @@ const re = { class: "conditional-container" }, se = {
|
|
|
57
57
|
const { appliedSelections: l } = e;
|
|
58
58
|
return l ? Array.isArray(l) ? l : [l] : [];
|
|
59
59
|
}, T = s(null), p = s(!0), a = s([]), n = s(k()), A = s(!0), d = s(!1), b = s(!1), r = s(e.searchQuery), B = s(""), g = s(e.label), K = s([]), U = O(() => (!r.value || r.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), I = O(() => {
|
|
60
|
-
const l = p.value ? 4 : 4.5,
|
|
60
|
+
const l = p.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
|
|
61
61
|
if (e.groupedOptions) {
|
|
62
|
-
let
|
|
62
|
+
let o = 0;
|
|
63
63
|
return a.value.forEach((y) => {
|
|
64
|
-
y.options && (
|
|
65
|
-
}),
|
|
64
|
+
y.options && (o = o + y.options.length);
|
|
65
|
+
}), o > 4 ? o : l;
|
|
66
66
|
}
|
|
67
|
-
return
|
|
68
|
-
}), M = (l,
|
|
69
|
-
if (e.infiniteLoading && u.value.multi && Array.isArray(n.value) && n.value.length && l &&
|
|
70
|
-
const
|
|
71
|
-
(
|
|
67
|
+
return t > l ? t : l;
|
|
68
|
+
}), M = (l, t) => {
|
|
69
|
+
if (e.infiniteLoading && u.value.multi && Array.isArray(n.value) && n.value.length && l && t.length) {
|
|
70
|
+
const o = [], y = n.value.filter(
|
|
71
|
+
(f) => f[e.optionNameKey].includes(l)
|
|
72
72
|
);
|
|
73
|
-
return
|
|
73
|
+
return t.forEach((f) => {
|
|
74
74
|
y.find(
|
|
75
|
-
(j) => j[e.comparingKey] ===
|
|
76
|
-
) &&
|
|
75
|
+
(j) => j[e.comparingKey] === f[e.comparingKey]
|
|
76
|
+
) && o.push(f[e.comparingKey]);
|
|
77
77
|
}), y.filter(
|
|
78
|
-
(
|
|
78
|
+
(f) => !o.includes(f[e.comparingKey])
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
return [];
|
|
82
82
|
}, N = async (l) => {
|
|
83
83
|
try {
|
|
84
84
|
d.value = !0;
|
|
85
|
-
const
|
|
85
|
+
const t = await e.fetchFnCallback(l), o = M(
|
|
86
86
|
l,
|
|
87
|
-
|
|
87
|
+
t
|
|
88
88
|
);
|
|
89
|
-
a.value = [...
|
|
90
|
-
} catch (
|
|
91
|
-
d.value = !1, console.error("Error fetching data:",
|
|
89
|
+
a.value = [...o, ...t], d.value = !1;
|
|
90
|
+
} catch (t) {
|
|
91
|
+
d.value = !1, console.error("Error fetching data:", t);
|
|
92
92
|
}
|
|
93
93
|
}, E = async () => {
|
|
94
94
|
if (e.infiniteLoading)
|
|
@@ -99,12 +99,12 @@ const re = { class: "conditional-container" }, se = {
|
|
|
99
99
|
} catch (l) {
|
|
100
100
|
b.value = !1, console.error("Error fetching data:", l);
|
|
101
101
|
}
|
|
102
|
-
},
|
|
102
|
+
}, P = se(
|
|
103
103
|
N,
|
|
104
104
|
e.fetchDataDebounceTime
|
|
105
105
|
), w = (l) => {
|
|
106
|
-
l.length >= e.minCharsToStart ? (
|
|
107
|
-
},
|
|
106
|
+
l.length >= e.minCharsToStart ? (P(l), T.value?.scrollTo(0)) : e.infiniteLoading && u.value.multi ? a.value = K.value || [] : a.value = [];
|
|
107
|
+
}, Q = () => {
|
|
108
108
|
r.value && a.value.length && !d.value && !u.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
|
|
109
109
|
[e.optionNameKey]: r.value,
|
|
110
110
|
conditionalOptions: !0,
|
|
@@ -125,45 +125,45 @@ const re = { class: "conditional-container" }, se = {
|
|
|
125
125
|
h(r, () => {
|
|
126
126
|
w(r.value);
|
|
127
127
|
}), h([u, a], () => {
|
|
128
|
-
|
|
128
|
+
Q();
|
|
129
129
|
}), h(
|
|
130
130
|
() => e.loadingOverride,
|
|
131
|
-
(l,
|
|
132
|
-
!l &&
|
|
131
|
+
(l, t) => {
|
|
132
|
+
!l && t && !e.infiniteLoading && N(e.searchQuery);
|
|
133
133
|
}
|
|
134
134
|
);
|
|
135
|
-
const
|
|
135
|
+
const V = () => {
|
|
136
136
|
p.value && n.value.length === 0 ? (u.value = null, m.value = [], u.value = null) : (B.value = r.value, m.value = p.value ? [...n.value] : { ...n.value }, A.value = p.value), D();
|
|
137
137
|
};
|
|
138
|
-
h(u, (l,
|
|
139
|
-
u.value.multi ? (d.value = !0, !
|
|
138
|
+
h(u, (l, t) => {
|
|
139
|
+
u.value.multi ? (d.value = !0, !t.multi && l.multi && (Array.isArray(e.appliedSelections) ? n.value = e.appliedSelections : n.value = [e.appliedSelections]), setTimeout(() => {
|
|
140
140
|
d.value = !1, p.value = !0;
|
|
141
|
-
}, 100)) : (!
|
|
142
|
-
!
|
|
141
|
+
}, 100)) : (!t.multi && !l.multi && (d.value = !0), setTimeout(() => {
|
|
142
|
+
!t.multi && !l.multi && (d.value = !1), p.value = !1;
|
|
143
143
|
}, 100));
|
|
144
144
|
}), h(m, () => {
|
|
145
145
|
n.value = k();
|
|
146
146
|
});
|
|
147
|
-
const
|
|
147
|
+
const $ = (l) => {
|
|
148
148
|
K.value = l;
|
|
149
|
-
},
|
|
149
|
+
}, x = () => {
|
|
150
150
|
n.value = [], m.value = [], u.value = null, g.value = e.label, r.value = "", C("clear");
|
|
151
|
-
},
|
|
151
|
+
}, R = (l) => {
|
|
152
152
|
l && u.value.multi && e.infiniteLoading && n.value && (a.value = n.value, r.value && w(r.value));
|
|
153
153
|
};
|
|
154
154
|
q(() => {
|
|
155
155
|
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && w(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (a.value = e.appliedSelections, n.value = e.appliedSelections, K.value = e.appliedSelections), D();
|
|
156
156
|
});
|
|
157
|
-
const
|
|
157
|
+
const z = () => {
|
|
158
158
|
C("closed");
|
|
159
159
|
};
|
|
160
|
-
return (l,
|
|
160
|
+
return (l, t) => (F(), G(c(L), {
|
|
161
161
|
ref_key: "dropdownRef",
|
|
162
162
|
ref: T,
|
|
163
163
|
selected: n.value,
|
|
164
|
-
"onUpdate:selected":
|
|
164
|
+
"onUpdate:selected": t[2] || (t[2] = (o) => n.value = o),
|
|
165
165
|
"predefined-trigger": "chip",
|
|
166
|
-
"display-value": (
|
|
166
|
+
"display-value": (o) => o?.[i.optionNameKey],
|
|
167
167
|
multi: p.value,
|
|
168
168
|
options: a.value,
|
|
169
169
|
placeholder: g.value,
|
|
@@ -185,46 +185,46 @@ const re = { class: "conditional-container" }, se = {
|
|
|
185
185
|
"option-icon-key": i.optionIconKey,
|
|
186
186
|
"option-icon-type": i.optionIconType,
|
|
187
187
|
"trigger-shown-values-count": i.triggerShownValuesCount,
|
|
188
|
-
"onUpdate:isOpen":
|
|
188
|
+
"onUpdate:isOpen": R,
|
|
189
189
|
onOnsearch: w,
|
|
190
|
-
onApply:
|
|
190
|
+
onApply: V,
|
|
191
191
|
onLoadMore: E,
|
|
192
|
-
onUnsavedSelectionUpdate:
|
|
193
|
-
onClosed:
|
|
194
|
-
}, {
|
|
195
|
-
"dropdown-trigger":
|
|
196
|
-
S(c(
|
|
192
|
+
onUnsavedSelectionUpdate: $,
|
|
193
|
+
onClosed: z
|
|
194
|
+
}, H({
|
|
195
|
+
"dropdown-trigger": v(({ defaultTriggerProps: o }) => [
|
|
196
|
+
S(c(ne), J(o, {
|
|
197
197
|
label: g.value,
|
|
198
198
|
"selected-option": c(m),
|
|
199
199
|
multi: A.value,
|
|
200
200
|
"cancel-all-selected-display": "",
|
|
201
201
|
"display-value-in-quotes": !Array.isArray(n.value) && n.value.conditionalOptions,
|
|
202
202
|
"shown-values-count": i.triggerShownValuesCount,
|
|
203
|
-
onClear:
|
|
203
|
+
onClear: x
|
|
204
204
|
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes", "shown-values-count"])
|
|
205
205
|
]),
|
|
206
|
-
"dropdown-conditions":
|
|
207
|
-
|
|
206
|
+
"dropdown-conditions": v(() => [
|
|
207
|
+
X("div", de, [
|
|
208
208
|
S(c(L), {
|
|
209
209
|
selected: c(u),
|
|
210
|
-
"onUpdate:selected":
|
|
210
|
+
"onUpdate:selected": t[0] || (t[0] = (o) => Y(u) ? u.value = o : null),
|
|
211
211
|
options: i.conditionalOptions,
|
|
212
212
|
"option-name-key": "label",
|
|
213
|
-
"display-value": (
|
|
213
|
+
"display-value": (o) => o?.label,
|
|
214
214
|
container: ".conditional-container",
|
|
215
215
|
size: "small"
|
|
216
216
|
}, {
|
|
217
|
-
"dropdown-trigger":
|
|
218
|
-
S(c(
|
|
217
|
+
"dropdown-trigger": v(({ buttonTriggerProps: o }) => [
|
|
218
|
+
S(c(ie), Z(_(o)), null, 16)
|
|
219
219
|
]),
|
|
220
220
|
_: 1
|
|
221
221
|
}, 8, ["selected", "options", "display-value"])
|
|
222
222
|
])
|
|
223
223
|
]),
|
|
224
|
-
"inline-search":
|
|
225
|
-
S(c(
|
|
224
|
+
"inline-search": v(() => [
|
|
225
|
+
S(c(ue), {
|
|
226
226
|
modelValue: r.value,
|
|
227
|
-
"onUpdate:modelValue":
|
|
227
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
228
228
|
class: "inline-search",
|
|
229
229
|
placeholder: "Search",
|
|
230
230
|
variant: "transparent",
|
|
@@ -232,20 +232,28 @@ const re = { class: "conditional-container" }, se = {
|
|
|
232
232
|
"auto-focus": i.autoFocusSearch
|
|
233
233
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
234
234
|
]),
|
|
235
|
-
"custom-list-area":
|
|
236
|
-
!a.value.length && !d.value ? (F(),
|
|
237
|
-
S(
|
|
238
|
-
default:
|
|
239
|
-
|
|
235
|
+
"custom-list-area": v(() => [
|
|
236
|
+
!a.value.length && !d.value ? (F(), ee("div", ce, [
|
|
237
|
+
S(re, { variant: "body1" }, {
|
|
238
|
+
default: v(() => [
|
|
239
|
+
le(oe(c(U)), 1)
|
|
240
240
|
]),
|
|
241
241
|
_: 1
|
|
242
242
|
})
|
|
243
|
-
])) :
|
|
243
|
+
])) : te("", !0)
|
|
244
244
|
]),
|
|
245
|
-
_:
|
|
246
|
-
},
|
|
245
|
+
_: 2
|
|
246
|
+
}, [
|
|
247
|
+
l.$slots["option-end"] ? {
|
|
248
|
+
name: "option-end",
|
|
249
|
+
fn: v(({ option: o }) => [
|
|
250
|
+
ae(l.$slots, "option-end", { option: o }, void 0, !0)
|
|
251
|
+
]),
|
|
252
|
+
key: "0"
|
|
253
|
+
} : void 0
|
|
254
|
+
]), 1032, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key", "option-image-key", "option-icon-key", "option-icon-type", "trigger-shown-values-count"]));
|
|
247
255
|
}
|
|
248
256
|
});
|
|
249
257
|
export {
|
|
250
|
-
|
|
258
|
+
Ae as default
|
|
251
259
|
};
|