@ironsource/shared-ui 2.1.12-rc.24 → 2.1.12-rc.26
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_ff7e556e_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_683b8a75_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0963bb3c_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_1f7f7f9c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9560a062_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +1 -1
- package/components/chart/ChartPlane.vue.d.ts +1 -1
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +141 -141
- package/components/chart/index.d.ts +24 -24
- package/components/chart/utils/utils.d.ts +1 -2
- package/components/chart/utils/utils.js +13 -19
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +144 -131
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +78 -74
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +41 -39
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +485 -103
- 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/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.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +5 -5
- package/index.d.ts +1010 -210
- package/index.js +1 -1
- package/mocks/optionsWithIcons.d.ts +1 -0
- package/package.json +1 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8d5521da_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_86b82f0c_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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9560a062_lang.css"; import { defineComponent as A, ref as w, watch as F, computed as L, openBlock as o, createBlock as f, unref as n, createSlots as N, withCtx as d, createElementVNode as c, normalizeClass as v, createCommentVNode as i, createElementBlock as l, renderSlot as r, createVNode as a, toDisplayString as u, createTextVNode as g, 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";
|
|
@@ -37,7 +37,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
37
37
|
}, ie = {
|
|
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 },
|
|
@@ -67,24 +67,24 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
67
67
|
},
|
|
68
68
|
emits: ["toggleTreeCollapse"],
|
|
69
69
|
setup(e, { emit: $ }) {
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
const s = e, { selected: K, id: B, onClick: z, api: h } = H(s), M = (t) => {
|
|
71
|
+
s.stopOptionClickEventPropagation && t.stopPropagation(), s.disabled ? I() : z(t);
|
|
72
72
|
}, p = w(null), b = w(!1), E = (t) => {
|
|
73
|
-
|
|
73
|
+
s.disabled && (t.stopPropagation(), I());
|
|
74
74
|
};
|
|
75
|
-
F([() =>
|
|
75
|
+
F([() => s.treeChildShown, p], async () => {
|
|
76
76
|
await Q(100), b.value = p.value && J(p.value);
|
|
77
77
|
});
|
|
78
|
-
const P = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[
|
|
79
|
-
$("toggleTreeCollapse",
|
|
78
|
+
const P = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[s.nameKey] : "", x = L(() => P(s.option)), S = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, V = () => {
|
|
79
|
+
$("toggleTreeCollapse", s.option);
|
|
80
80
|
};
|
|
81
81
|
return (t, k) => (o(), f(n(O), {
|
|
82
|
-
text: n(
|
|
82
|
+
text: n(x),
|
|
83
83
|
"test-id": S(e.option),
|
|
84
84
|
placement: e.toolTipPlacement,
|
|
85
85
|
class: "tooltip-option"
|
|
86
86
|
}, N({
|
|
87
|
-
default:
|
|
87
|
+
default: d(() => [
|
|
88
88
|
c("div", {
|
|
89
89
|
ref: "el",
|
|
90
90
|
class: v(["item-container", {
|
|
@@ -111,7 +111,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
111
111
|
onClick: k[0] || (k[0] = (y) => M(y))
|
|
112
112
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
|
|
113
113
|
!e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div", W, [
|
|
114
|
-
|
|
114
|
+
r(t.$slots, "image", {}, () => [
|
|
115
115
|
e.imageKey ? (o(), l("img", {
|
|
116
116
|
key: 0,
|
|
117
117
|
src: e.option[e.imageKey]
|
|
@@ -119,7 +119,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
119
119
|
], !0)
|
|
120
120
|
])) : i("", !0),
|
|
121
121
|
!e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div", Y, [
|
|
122
|
-
|
|
122
|
+
r(t.$slots, "flag", {}, () => [
|
|
123
123
|
e.optionFlagKey ? (o(), f(n(G), {
|
|
124
124
|
key: 0,
|
|
125
125
|
"country-code": e.option[e.optionFlagKey]
|
|
@@ -127,12 +127,13 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
127
127
|
], !0)
|
|
128
128
|
])) : i("", !0),
|
|
129
129
|
!e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div", Z, [
|
|
130
|
-
|
|
130
|
+
r(t.$slots, "icon-start", {}, () => [
|
|
131
131
|
a(n(m), {
|
|
132
132
|
type: e.iconType,
|
|
133
133
|
name: e.option[e.iconKey],
|
|
134
|
+
color: e.option.disabled ? "var(--text-disabled)" : null,
|
|
134
135
|
size: e.iconType === "regular" ? "20px" : "16px"
|
|
135
|
-
}, null, 8, ["type", "name", "size"])
|
|
136
|
+
}, null, 8, ["type", "name", "color", "size"])
|
|
136
137
|
], !0)
|
|
137
138
|
])) : i("", !0),
|
|
138
139
|
c("div", {
|
|
@@ -144,8 +145,8 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
144
145
|
class: "option-text",
|
|
145
146
|
variant: "body2"
|
|
146
147
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
|
|
148
|
+
default: d(() => [
|
|
149
|
+
r(t.$slots, "default", {}, () => [
|
|
149
150
|
c("div", {
|
|
150
151
|
class: v(`option-content-${e.optionTwoLinesVariant} option-content`)
|
|
151
152
|
}, [
|
|
@@ -154,8 +155,8 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
154
155
|
variant: "body2",
|
|
155
156
|
class: "conditional-option-label"
|
|
156
157
|
}, {
|
|
157
|
-
default:
|
|
158
|
-
g(
|
|
158
|
+
default: d(() => [
|
|
159
|
+
g(u(e.option.conditionalName) + ": ", 1)
|
|
159
160
|
]),
|
|
160
161
|
_: 1
|
|
161
162
|
}),
|
|
@@ -163,12 +164,12 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
163
164
|
variant: "h5",
|
|
164
165
|
class: "conditional-option-value"
|
|
165
166
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
g('"' +
|
|
167
|
+
default: d(() => [
|
|
168
|
+
g('"' + u(e.option[e.nameKey]) + '"', 1)
|
|
168
169
|
]),
|
|
169
170
|
_: 1
|
|
170
171
|
})
|
|
171
|
-
])) : (o(), l("div", _,
|
|
172
|
+
])) : (o(), l("div", _, u(e.option[e.nameKey]), 1)),
|
|
172
173
|
e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", te, [
|
|
173
174
|
a(n(m), {
|
|
174
175
|
type: "regular",
|
|
@@ -178,8 +179,8 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
178
179
|
])) : i("", !0),
|
|
179
180
|
e.optionTwoLinesKey ? (o(), l("div", ne, [
|
|
180
181
|
a(n(T), { variant: "caption" }, {
|
|
181
|
-
default:
|
|
182
|
-
g(
|
|
182
|
+
default: d(() => [
|
|
183
|
+
g(u(e.option[e.optionTwoLinesKey]), 1)
|
|
183
184
|
]),
|
|
184
185
|
_: 1
|
|
185
186
|
})
|
|
@@ -194,14 +195,14 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
194
195
|
class: "subtitle",
|
|
195
196
|
size: "xs"
|
|
196
197
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
g(
|
|
198
|
+
default: d(() => [
|
|
199
|
+
g(u(e.subtitle), 1)
|
|
199
200
|
]),
|
|
200
201
|
_: 1
|
|
201
202
|
})) : i("", !0)
|
|
202
203
|
], 512),
|
|
203
204
|
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", oe, [
|
|
204
|
-
|
|
205
|
+
r(t.$slots, "icon-end", {}, () => [
|
|
205
206
|
a(n(m), {
|
|
206
207
|
type: e.endIconType || "regular",
|
|
207
208
|
name: e.option[e.endIconKey],
|
|
@@ -214,7 +215,7 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
214
215
|
text: e.option[e.warningKey],
|
|
215
216
|
placement: "top"
|
|
216
217
|
}, {
|
|
217
|
-
default:
|
|
218
|
+
default: d(() => [
|
|
218
219
|
a(n(m), {
|
|
219
220
|
class: "option-warning__icon",
|
|
220
221
|
name: "warning-circle",
|
|
@@ -224,9 +225,10 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
224
225
|
_: 1
|
|
225
226
|
}, 8, ["text"])
|
|
226
227
|
])) : i("", !0),
|
|
227
|
-
t.$slots["option-end"] ? (
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
t.$slots["option-end"] ? r(t.$slots, "option-end", {
|
|
229
|
+
key: 6,
|
|
230
|
+
option: e.option
|
|
231
|
+
}, void 0, !0) : i("", !0),
|
|
230
232
|
e.treeMainOption ? (o(), l("div", {
|
|
231
233
|
key: 7,
|
|
232
234
|
class: "tree-main-arrow-wrapper",
|
|
@@ -237,12 +239,12 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
237
239
|
size: "16px",
|
|
238
240
|
class: v(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
|
|
239
241
|
}, null, 8, ["class"])
|
|
240
|
-
], 8,
|
|
242
|
+
], 8, le)) : i("", !0)
|
|
241
243
|
], 2),
|
|
242
|
-
n(
|
|
244
|
+
n(h).clearable && n(K) ? (o(), l("div", ae, [
|
|
243
245
|
c("button", {
|
|
244
246
|
class: "clear-button",
|
|
245
|
-
onClick: k[1] || (k[1] = C((y) => n(
|
|
247
|
+
onClick: k[1] || (k[1] = C((y) => n(h).clearSelection(), ["prevent", "stop"]))
|
|
246
248
|
}, [
|
|
247
249
|
a(n(m), {
|
|
248
250
|
name: "close",
|
|
@@ -255,16 +257,16 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
255
257
|
]),
|
|
256
258
|
_: 2
|
|
257
259
|
}, [
|
|
258
|
-
Array.isArray(n(
|
|
260
|
+
Array.isArray(n(x)) ? {
|
|
259
261
|
name: "tooltip",
|
|
260
|
-
fn:
|
|
262
|
+
fn: d(() => [
|
|
261
263
|
c("div", U, [
|
|
262
|
-
(o(!0), l(j, null, R(n(
|
|
264
|
+
(o(!0), l(j, null, R(n(x), (y) => (o(), f(n(T), {
|
|
263
265
|
key: y,
|
|
264
266
|
variant: "body2"
|
|
265
267
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
g(
|
|
268
|
+
default: d(() => [
|
|
269
|
+
g(u(y), 1)
|
|
268
270
|
]),
|
|
269
271
|
_: 2
|
|
270
272
|
}, 1024))), 128))
|
|
@@ -276,5 +278,5 @@ const U = { class: "multiline-tooltip" }, W = {
|
|
|
276
278
|
}
|
|
277
279
|
});
|
|
278
280
|
export {
|
|
279
|
-
|
|
281
|
+
ve as default
|
|
280
282
|
};
|