@ironsource/shared-ui 2.1.12-rc.25 → 2.1.12-rc.27
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +28 -27
- package/components/chart/Chart.vue.d.ts +6 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +6 -4
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +43 -35
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +17 -17
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +1 -1
- package/components/chart/ChartPlane.vue.d.ts +6 -1
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +140 -138
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +5 -5
- package/components/chart/index.d.ts +43 -24
- package/components/chart/utils/utils.d.ts +1 -2
- package/components/chart/utils/utils.js +13 -19
- package/components/dateRange/common/DateRange.common.js +81 -75
- package/components/dateRange/common/DateServices.common.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.js +1 -0
- package/components/dropdown/common/Dropdown.common.js +82 -78
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
- 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 +142 -123
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +174 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -5
- package/components/dropdown/v4/OptionV4.vue.js +4 -4
- package/components/dropdown/v4/OptionV4.vue2.js +106 -99
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +510 -127
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +40 -40
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +201 -0
- package/components/link/index.js +6 -0
- package/components/switch/v4/SwitchV4.vue.d.ts +11 -0
- package/components/switch/v4/SwitchV4.vue.js +2 -2
- package/components/switch/v4/SwitchV4.vue2.js +39 -26
- package/components/switch/v4/index.d.ts +18 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +111 -110
- package/components/table/v4/index.d.ts +2 -0
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/index.d.ts +1120 -310
- package/index.js +111 -105
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +9 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +31 -30
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
14
|
endIconKey?: string;
|
|
15
15
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
16
16
|
endTextIconKey?: string;
|
|
17
|
-
|
|
17
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
18
18
|
treeMainOption?: boolean;
|
|
19
19
|
treeMainOptionExpanded?: boolean;
|
|
20
20
|
stopOptionClickEventPropagation?: boolean;
|
|
@@ -23,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
treeChildShown?: boolean;
|
|
24
24
|
optionFlagKey?: string;
|
|
25
25
|
isMulti?: boolean;
|
|
26
|
+
minMaxSelectionTooltipMessage?: string;
|
|
26
27
|
}>, {
|
|
27
28
|
subtitle: string;
|
|
28
29
|
disabled: boolean;
|
|
@@ -38,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
39
|
endIconKey: any;
|
|
39
40
|
endIconType: string;
|
|
40
41
|
endTextIconKey: any;
|
|
41
|
-
|
|
42
|
+
tooltipPlacement: string;
|
|
42
43
|
treeMainOption: boolean;
|
|
43
44
|
treeMainOptionExpanded: boolean;
|
|
44
45
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -47,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
48
|
treeChildShown: boolean;
|
|
48
49
|
optionFlagKey: any;
|
|
49
50
|
isMulti: boolean;
|
|
51
|
+
minMaxSelectionTooltipMessage: any;
|
|
50
52
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
53
|
toggleTreeCollapse: (option: unknown) => void;
|
|
52
54
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -65,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
65
67
|
endIconKey?: string;
|
|
66
68
|
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
67
69
|
endTextIconKey?: string;
|
|
68
|
-
|
|
70
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
69
71
|
treeMainOption?: boolean;
|
|
70
72
|
treeMainOptionExpanded?: boolean;
|
|
71
73
|
stopOptionClickEventPropagation?: boolean;
|
|
@@ -74,6 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
74
76
|
treeChildShown?: boolean;
|
|
75
77
|
optionFlagKey?: string;
|
|
76
78
|
isMulti?: boolean;
|
|
79
|
+
minMaxSelectionTooltipMessage?: string;
|
|
77
80
|
}>, {
|
|
78
81
|
subtitle: string;
|
|
79
82
|
disabled: boolean;
|
|
@@ -89,7 +92,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
92
|
endIconKey: any;
|
|
90
93
|
endIconType: string;
|
|
91
94
|
endTextIconKey: any;
|
|
92
|
-
|
|
95
|
+
tooltipPlacement: string;
|
|
93
96
|
treeMainOption: boolean;
|
|
94
97
|
treeMainOptionExpanded: boolean;
|
|
95
98
|
stopOptionClickEventPropagation: boolean;
|
|
@@ -98,10 +101,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
98
101
|
treeChildShown: boolean;
|
|
99
102
|
optionFlagKey: any;
|
|
100
103
|
isMulti: boolean;
|
|
104
|
+
minMaxSelectionTooltipMessage: any;
|
|
101
105
|
}>>> & {
|
|
102
106
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
103
107
|
}, {
|
|
104
108
|
option: any;
|
|
109
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
105
110
|
disabled: boolean;
|
|
106
111
|
active: boolean;
|
|
107
112
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -118,12 +123,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
118
123
|
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
119
124
|
endIconKey: string;
|
|
120
125
|
endTextIconKey: string;
|
|
121
|
-
toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
122
126
|
treeMainOption: boolean;
|
|
123
127
|
treeMainOptionExpanded: boolean;
|
|
124
128
|
stopOptionClickEventPropagation: boolean;
|
|
125
129
|
treeChildShown: boolean;
|
|
126
130
|
isMulti: boolean;
|
|
131
|
+
minMaxSelectionTooltipMessage: string;
|
|
127
132
|
}>, {
|
|
128
133
|
image?(_: {}): any;
|
|
129
134
|
flag?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0287cebf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css"; import { defineComponent as A, ref as w, watch as F, computed as L, openBlock as i, createBlock as g, unref as n, createSlots as N, withCtx as d, createElementVNode as u, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as r, createVNode as s, toDisplayString as m, createTextVNode as T, withModifiers as C, Fragment as j, renderList as R } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import D from "../../typography/Text.vue.js";
|
|
4
4
|
import q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import y from "../../icon/v4/IconV4.vue.js";
|
|
6
6
|
import G from "../../icon/v4/IconFlag.vue.js";
|
|
7
7
|
import { NOOP as I } from "@vue/shared";
|
|
8
8
|
import { optionCommon as H } from "../common/Option.common.js";
|
|
9
|
-
import
|
|
9
|
+
import p from "../../typography/v4/Typography.vue.js";
|
|
10
10
|
import O from "../../tooltip/v4/TooltipV4.vue.js";
|
|
11
11
|
import { isElementTruncated as J } from "../../../utils/text.js";
|
|
12
12
|
import { promiseTimeout as Q } from "@vueuse/core";
|
|
@@ -31,13 +31,13 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
31
31
|
}, ne = {
|
|
32
32
|
key: 3,
|
|
33
33
|
class: "caption-text"
|
|
34
|
-
},
|
|
34
|
+
}, ie = {
|
|
35
35
|
key: 4,
|
|
36
36
|
class: "end-icon"
|
|
37
|
-
},
|
|
37
|
+
}, oe = {
|
|
38
38
|
key: 5,
|
|
39
39
|
class: "option-warning"
|
|
40
|
-
}, le =
|
|
40
|
+
}, le = ["onClick"], ae = { key: 0 }, ve = /* @__PURE__ */ A({
|
|
41
41
|
__name: "OptionV4",
|
|
42
42
|
props: {
|
|
43
43
|
option: { default: null },
|
|
@@ -55,7 +55,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
55
55
|
endIconKey: { default: null },
|
|
56
56
|
endIconType: { default: "regular" },
|
|
57
57
|
endTextIconKey: { default: null },
|
|
58
|
-
|
|
58
|
+
tooltipPlacement: { default: "right" },
|
|
59
59
|
treeMainOption: { type: Boolean, default: !1 },
|
|
60
60
|
treeMainOptionExpanded: { type: Boolean, default: !1 },
|
|
61
61
|
stopOptionClickEventPropagation: { type: Boolean, default: !1 },
|
|
@@ -63,159 +63,165 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
63
63
|
optionTwoLinesKey: { default: void 0 },
|
|
64
64
|
treeChildShown: { type: Boolean, default: !1 },
|
|
65
65
|
optionFlagKey: { default: null },
|
|
66
|
-
isMulti: { type: Boolean, default: !1 }
|
|
66
|
+
isMulti: { type: Boolean, default: !1 },
|
|
67
|
+
minMaxSelectionTooltipMessage: { default: null }
|
|
67
68
|
},
|
|
68
69
|
emits: ["toggleTreeCollapse"],
|
|
69
70
|
setup(e, { emit: $ }) {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
71
|
+
const a = e, { selected: x, id: M, onClick: B, api: b } = H(a), S = (t) => {
|
|
72
|
+
a.stopOptionClickEventPropagation && t.stopPropagation(), a.disabled ? I() : B(t);
|
|
73
|
+
}, k = w(null), h = w(!1), z = (t) => {
|
|
74
|
+
a.disabled && (t.stopPropagation(), I());
|
|
74
75
|
};
|
|
75
|
-
F([() =>
|
|
76
|
-
await Q(100),
|
|
76
|
+
F([() => a.treeChildShown, k], async () => {
|
|
77
|
+
await Q(100), h.value = k.value && J(k.value);
|
|
77
78
|
});
|
|
78
|
-
const
|
|
79
|
-
|
|
79
|
+
const E = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : h.value ? t[a.nameKey] : "", K = L(() => {
|
|
80
|
+
const t = a.disabled && a.minMaxSelectionTooltipMessage || "", c = E(a.option);
|
|
81
|
+
return c ? t ? `${c}. ${t}` : c : t;
|
|
82
|
+
}), P = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, V = () => {
|
|
83
|
+
$("toggleTreeCollapse", a.option);
|
|
80
84
|
};
|
|
81
|
-
return (t,
|
|
82
|
-
text: n(
|
|
83
|
-
"test-id":
|
|
84
|
-
placement: e.
|
|
85
|
+
return (t, c) => (i(), g(n(O), {
|
|
86
|
+
text: n(K),
|
|
87
|
+
"test-id": P(e.option),
|
|
88
|
+
placement: e.tooltipPlacement,
|
|
85
89
|
class: "tooltip-option"
|
|
86
90
|
}, N({
|
|
87
|
-
default:
|
|
88
|
-
|
|
91
|
+
default: d(() => [
|
|
92
|
+
u("div", {
|
|
89
93
|
ref: "el",
|
|
90
94
|
class: v(["item-container", {
|
|
91
95
|
"item-container--disabled": e.disabled,
|
|
92
96
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
93
|
-
"item-container--selected": n(
|
|
97
|
+
"item-container--selected": n(x),
|
|
94
98
|
"item-container--multi": e.isMulti
|
|
95
99
|
}]),
|
|
96
|
-
onClick:
|
|
100
|
+
onClick: z
|
|
97
101
|
}, [
|
|
98
|
-
|
|
102
|
+
u("div", {
|
|
99
103
|
class: v(["item", {
|
|
100
104
|
"item--multi": e.isMulti,
|
|
101
105
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
102
106
|
}])
|
|
103
107
|
}, [
|
|
104
|
-
e.isMulti || e.selectAllOption ? (
|
|
108
|
+
e.isMulti || e.selectAllOption ? (i(), g(n(q), {
|
|
105
109
|
key: 0,
|
|
106
|
-
id: n(
|
|
110
|
+
id: n(M).toString(),
|
|
111
|
+
disabled: a.disabled,
|
|
107
112
|
tabindex: "-1",
|
|
108
113
|
class: "checkbox",
|
|
109
|
-
"is-checked": n(
|
|
114
|
+
"is-checked": n(x),
|
|
110
115
|
"is-indeterminate": e.isIndeterminate,
|
|
111
|
-
onClick:
|
|
112
|
-
}, null, 8, ["id", "is-checked", "is-indeterminate"])) :
|
|
113
|
-
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (
|
|
114
|
-
|
|
115
|
-
e.imageKey ? (
|
|
116
|
+
onClick: c[0] || (c[0] = (f) => S(f))
|
|
117
|
+
}, null, 8, ["id", "disabled", "is-checked", "is-indeterminate"])) : o("", !0),
|
|
118
|
+
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (i(), l("div", W, [
|
|
119
|
+
r(t.$slots, "image", {}, () => [
|
|
120
|
+
e.imageKey ? (i(), l("img", {
|
|
116
121
|
key: 0,
|
|
117
122
|
src: e.option[e.imageKey]
|
|
118
|
-
}, null, 8, X)) :
|
|
123
|
+
}, null, 8, X)) : o("", !0)
|
|
119
124
|
], !0)
|
|
120
|
-
])) :
|
|
121
|
-
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (
|
|
122
|
-
|
|
123
|
-
e.optionFlagKey ? (
|
|
125
|
+
])) : o("", !0),
|
|
126
|
+
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (i(), l("div", Y, [
|
|
127
|
+
r(t.$slots, "flag", {}, () => [
|
|
128
|
+
e.optionFlagKey ? (i(), g(n(G), {
|
|
124
129
|
key: 0,
|
|
125
130
|
"country-code": e.option[e.optionFlagKey]
|
|
126
|
-
}, null, 8, ["country-code"])) :
|
|
131
|
+
}, null, 8, ["country-code"])) : o("", !0)
|
|
127
132
|
], !0)
|
|
128
|
-
])) :
|
|
129
|
-
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
])) : o("", !0),
|
|
134
|
+
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (i(), l("div", Z, [
|
|
135
|
+
r(t.$slots, "icon-start", {}, () => [
|
|
136
|
+
s(n(y), {
|
|
132
137
|
type: e.iconType,
|
|
133
138
|
name: e.option[e.iconKey],
|
|
139
|
+
color: e.option.disabled ? "var(--text-disabled)" : null,
|
|
134
140
|
size: e.iconType === "regular" ? "20px" : "16px"
|
|
135
|
-
}, null, 8, ["type", "name", "size"])
|
|
141
|
+
}, null, 8, ["type", "name", "color", "size"])
|
|
136
142
|
], !0)
|
|
137
|
-
])) :
|
|
138
|
-
|
|
143
|
+
])) : o("", !0),
|
|
144
|
+
u("div", {
|
|
139
145
|
ref_key: "textContainerRef",
|
|
140
|
-
ref:
|
|
146
|
+
ref: k,
|
|
141
147
|
class: "text-container"
|
|
142
148
|
}, [
|
|
143
|
-
|
|
149
|
+
s(n(p), {
|
|
144
150
|
class: "option-text",
|
|
145
151
|
variant: "body2"
|
|
146
152
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
default: d(() => [
|
|
154
|
+
r(t.$slots, "default", {}, () => [
|
|
155
|
+
u("div", {
|
|
150
156
|
class: v(`option-content-${e.optionTwoLinesVariant} option-content`)
|
|
151
157
|
}, [
|
|
152
|
-
e.option?.conditionalOptions ? (
|
|
153
|
-
|
|
158
|
+
e.option?.conditionalOptions ? (i(), l("div", ee, [
|
|
159
|
+
s(n(p), {
|
|
154
160
|
variant: "body2",
|
|
155
161
|
class: "conditional-option-label"
|
|
156
162
|
}, {
|
|
157
|
-
default:
|
|
158
|
-
|
|
163
|
+
default: d(() => [
|
|
164
|
+
T(m(e.option.conditionalName) + ": ", 1)
|
|
159
165
|
]),
|
|
160
166
|
_: 1
|
|
161
167
|
}),
|
|
162
|
-
|
|
168
|
+
s(n(p), {
|
|
163
169
|
variant: "h5",
|
|
164
170
|
class: "conditional-option-value"
|
|
165
171
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
172
|
+
default: d(() => [
|
|
173
|
+
T('"' + m(e.option[e.nameKey]) + '"', 1)
|
|
168
174
|
]),
|
|
169
175
|
_: 1
|
|
170
176
|
})
|
|
171
|
-
])) : (
|
|
172
|
-
e.endTextIconKey && e.option[e.endTextIconKey] ? (
|
|
173
|
-
|
|
177
|
+
])) : (i(), l("div", _, m(e.option[e.nameKey]), 1)),
|
|
178
|
+
e.endTextIconKey && e.option[e.endTextIconKey] ? (i(), l("span", te, [
|
|
179
|
+
s(n(y), {
|
|
174
180
|
type: "regular",
|
|
175
181
|
name: e.option[e.endTextIconKey],
|
|
176
182
|
size: "16px"
|
|
177
183
|
}, null, 8, ["name"])
|
|
178
|
-
])) :
|
|
179
|
-
e.optionTwoLinesKey ? (
|
|
180
|
-
|
|
181
|
-
default:
|
|
182
|
-
|
|
184
|
+
])) : o("", !0),
|
|
185
|
+
e.optionTwoLinesKey ? (i(), l("div", ne, [
|
|
186
|
+
s(n(p), { variant: "caption" }, {
|
|
187
|
+
default: d(() => [
|
|
188
|
+
T(m(e.option[e.optionTwoLinesKey]), 1)
|
|
183
189
|
]),
|
|
184
190
|
_: 1
|
|
185
191
|
})
|
|
186
|
-
])) :
|
|
192
|
+
])) : o("", !0)
|
|
187
193
|
], 2)
|
|
188
194
|
], !0)
|
|
189
195
|
]),
|
|
190
196
|
_: 3
|
|
191
197
|
}),
|
|
192
|
-
e.subtitle ? (
|
|
198
|
+
e.subtitle ? (i(), g(n(D), {
|
|
193
199
|
key: 0,
|
|
194
200
|
class: "subtitle",
|
|
195
201
|
size: "xs"
|
|
196
202
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
|
|
203
|
+
default: d(() => [
|
|
204
|
+
T(m(e.subtitle), 1)
|
|
199
205
|
]),
|
|
200
206
|
_: 1
|
|
201
|
-
})) :
|
|
207
|
+
})) : o("", !0)
|
|
202
208
|
], 512),
|
|
203
|
-
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (
|
|
204
|
-
|
|
205
|
-
|
|
209
|
+
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (i(), l("div", ie, [
|
|
210
|
+
r(t.$slots, "icon-end", {}, () => [
|
|
211
|
+
s(n(y), {
|
|
206
212
|
type: e.endIconType || "regular",
|
|
207
213
|
name: e.option[e.endIconKey],
|
|
208
214
|
size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
|
|
209
215
|
}, null, 8, ["type", "name", "size"])
|
|
210
216
|
], !0)
|
|
211
|
-
])) :
|
|
212
|
-
e.warningKey && e.option?.[e.warningKey] ? (
|
|
213
|
-
|
|
217
|
+
])) : o("", !0),
|
|
218
|
+
e.warningKey && e.option?.[e.warningKey] ? (i(), l("div", oe, [
|
|
219
|
+
s(n(O), {
|
|
214
220
|
text: e.option[e.warningKey],
|
|
215
221
|
placement: "top"
|
|
216
222
|
}, {
|
|
217
|
-
default:
|
|
218
|
-
|
|
223
|
+
default: d(() => [
|
|
224
|
+
s(n(y), {
|
|
219
225
|
class: "option-warning__icon",
|
|
220
226
|
name: "warning-circle",
|
|
221
227
|
size: "16px"
|
|
@@ -223,48 +229,49 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
223
229
|
]),
|
|
224
230
|
_: 1
|
|
225
231
|
}, 8, ["text"])
|
|
226
|
-
])) :
|
|
227
|
-
t.$slots["option-end"] ? (
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
])) : o("", !0),
|
|
233
|
+
t.$slots["option-end"] ? r(t.$slots, "option-end", {
|
|
234
|
+
key: 6,
|
|
235
|
+
option: e.option
|
|
236
|
+
}, void 0, !0) : o("", !0),
|
|
237
|
+
e.treeMainOption ? (i(), l("div", {
|
|
231
238
|
key: 7,
|
|
232
239
|
class: "tree-main-arrow-wrapper",
|
|
233
240
|
onClick: C(V, ["stop"])
|
|
234
241
|
}, [
|
|
235
|
-
|
|
242
|
+
s(n(y), {
|
|
236
243
|
name: "caret-down",
|
|
237
244
|
size: "16px",
|
|
238
245
|
class: v(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
|
|
239
246
|
}, null, 8, ["class"])
|
|
240
|
-
], 8,
|
|
247
|
+
], 8, le)) : o("", !0)
|
|
241
248
|
], 2),
|
|
242
|
-
n(
|
|
243
|
-
|
|
249
|
+
n(b).clearable && n(x) ? (i(), l("div", ae, [
|
|
250
|
+
u("button", {
|
|
244
251
|
class: "clear-button",
|
|
245
|
-
onClick:
|
|
252
|
+
onClick: c[1] || (c[1] = C((f) => n(b).clearSelection(), ["prevent", "stop"]))
|
|
246
253
|
}, [
|
|
247
|
-
|
|
254
|
+
s(n(y), {
|
|
248
255
|
name: "close",
|
|
249
256
|
width: "8",
|
|
250
257
|
height: "8"
|
|
251
258
|
})
|
|
252
259
|
])
|
|
253
|
-
])) :
|
|
260
|
+
])) : o("", !0)
|
|
254
261
|
], 2)
|
|
255
262
|
]),
|
|
256
263
|
_: 2
|
|
257
264
|
}, [
|
|
258
|
-
Array.isArray(n(
|
|
265
|
+
Array.isArray(n(K)) ? {
|
|
259
266
|
name: "tooltip",
|
|
260
|
-
fn:
|
|
261
|
-
|
|
262
|
-
(
|
|
263
|
-
key:
|
|
267
|
+
fn: d(() => [
|
|
268
|
+
u("div", U, [
|
|
269
|
+
(i(!0), l(j, null, R(n(K), (f) => (i(), g(n(p), {
|
|
270
|
+
key: f,
|
|
264
271
|
variant: "body2"
|
|
265
272
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
273
|
+
default: d(() => [
|
|
274
|
+
T(m(f), 1)
|
|
268
275
|
]),
|
|
269
276
|
_: 2
|
|
270
277
|
}, 1024))), 128))
|
|
@@ -276,5 +283,5 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
276
283
|
}
|
|
277
284
|
});
|
|
278
285
|
export {
|
|
279
|
-
|
|
286
|
+
ve as default
|
|
280
287
|
};
|