@ironsource/shared-ui 2.1.3-rc.9 → 2.1.3
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/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_2e91704b_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_8ffac784_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_fa761e4d_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +14 -7
- package/components/alert/Alert.vue.js +2 -2
- package/components/alert/Alert.vue2.js +30 -29
- package/components/alert/index.d.ts +176 -38
- package/components/appHeader/AppHeader.vue.d.ts +5 -0
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +49 -37
- package/components/appHeader/index.d.ts +9 -0
- package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
- package/components/autocomplete/Autocomplete.vue.js +7 -0
- package/components/autocomplete/Autocomplete.vue2.js +99 -0
- package/components/autocomplete/index.d.ts +459 -0
- package/components/autocomplete/index.js +6 -0
- package/components/button/v4/ButtonV4.vue2.js +90 -1
- package/components/checkbox/v3/index.d.ts +12 -12
- package/components/checkbox/v4/index.d.ts +12 -12
- 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/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +2 -2
- package/components/dialog/v4/index.d.ts +16 -16
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +34 -33
- package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
- package/components/dropdown/v3/index.d.ts +159 -159
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +31 -31
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +96 -86
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
- package/components/dropdown/v4/index.d.ts +705 -610
- package/components/dropdown/v4/index.js +16 -10
- package/components/filterDropdown/index.d.ts +8 -8
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/forms/FormRow.vue.js +2 -2
- package/components/forms/FormRow.vue2.js +9 -9
- package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
- package/components/includeExclude/index.d.ts +168 -168
- 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/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +2 -2
- package/components/input/v4/index.d.ts +115 -115
- package/components/multibar/MultiBarMenu.vue2.js +13 -11
- package/components/table/common/Table.types.d.ts +3 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -2
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -137
- package/components/table/v4/DataGridMenu.vue2.js +13 -11
- package/components/table/v4/HelpIcon.vue.d.ts +40 -0
- package/components/table/v4/HelpIcon.vue.js +7 -0
- package/components/table/v4/HelpIcon.vue2.js +32 -0
- package/components/table/v4/index.d.ts +39 -39
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/index.d.ts +20 -20
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +4 -4
- package/components/textArea/v4/TextAreaV4.vue.d.ts +3 -3
- package/components/textArea/v4/index.d.ts +23 -23
- package/components/toggle/v3/Toggle.vue.d.ts +1 -1
- package/components/toggle/v3/index.d.ts +9 -9
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +28 -28
- package/index.d.ts +2216 -1922
- package/index.js +74 -70
- package/package.json +5 -3
- package/testids/index.d.ts +3 -1
- package/testids/index.js +10 -10
- package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab86b0a_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +0 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css"; import { defineComponent as B, openBlock as o, createBlock as r, unref as i, withCtx as m, createElementVNode as a, normalizeClass as b, createCommentVNode as l, createElementBlock as s, renderSlot as u, createVNode as f, createTextVNode as g, toDisplayString as k, withModifiers as $ } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { NOOP as
|
|
7
|
-
import { optionCommon as
|
|
8
|
-
import
|
|
9
|
-
|
|
3
|
+
import I from "../../typography/Text.vue.js";
|
|
4
|
+
import z from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import h from "../../icon/v4/IconV4.vue.js";
|
|
6
|
+
import { NOOP as N } from "@vue/shared";
|
|
7
|
+
import { optionCommon as V } from "../common/Option.common.js";
|
|
8
|
+
import w from "../../typography/v4/Typography.vue.js";
|
|
9
|
+
import O from "../../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
const S = {
|
|
10
11
|
key: 1,
|
|
11
12
|
class: "image"
|
|
12
|
-
},
|
|
13
|
+
}, j = ["src"], E = {
|
|
13
14
|
key: 2,
|
|
14
15
|
class: "start-icon"
|
|
15
|
-
},
|
|
16
|
+
}, M = { class: "text-container" }, P = { key: 0 }, R = /* @__PURE__ */ B({
|
|
16
17
|
__name: "OptionV4",
|
|
17
18
|
props: {
|
|
18
19
|
option: { default: null },
|
|
@@ -28,85 +29,94 @@ const w = {
|
|
|
28
29
|
iconType: { default: "regular" }
|
|
29
30
|
},
|
|
30
31
|
setup(e) {
|
|
31
|
-
const
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"is-indeterminate": e.isIndeterminate && !e.option,
|
|
55
|
-
onClick: a[0] || (a[0] = (f) => e.disabled ? t(z)() : t(B)(f))
|
|
56
|
-
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
|
|
57
|
-
i.$slots.image || e.imageKey ? (n(), o("div", w, [
|
|
58
|
-
m(i.$slots, "image", {}, () => [
|
|
59
|
-
e.imageKey ? (n(), o("img", {
|
|
32
|
+
const p = e, { selected: c, isMulti: d, id: v, onClick: x, api: y } = V(p), K = (t) => t && typeof t == "object" && "optionTooltipText" in t ? t.optionTooltipText : "", C = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null;
|
|
33
|
+
return (t, n) => (o(), r(i(O), {
|
|
34
|
+
text: K(e.option),
|
|
35
|
+
"test-id": C(e.option),
|
|
36
|
+
class: "tooltip-option"
|
|
37
|
+
}, {
|
|
38
|
+
default: m(() => [
|
|
39
|
+
a("div", {
|
|
40
|
+
ref: "el",
|
|
41
|
+
class: b(["item-container", {
|
|
42
|
+
"item-container--disabled": e.disabled,
|
|
43
|
+
"item-container--active": e.nameKey ? !1 : e.active,
|
|
44
|
+
"item-container--selected": i(c),
|
|
45
|
+
"item-container--multi": i(d)
|
|
46
|
+
}])
|
|
47
|
+
}, [
|
|
48
|
+
a("div", {
|
|
49
|
+
class: b(["item", {
|
|
50
|
+
"item--multi": i(d),
|
|
51
|
+
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
52
|
+
}])
|
|
53
|
+
}, [
|
|
54
|
+
i(d) ? (o(), r(i(z), {
|
|
60
55
|
key: 0,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
r(t(V), { variant: "body2" }, {
|
|
76
|
-
default: b(() => [
|
|
77
|
-
m(i.$slots, "default", {}, () => [
|
|
78
|
-
g(h(e.option[e.nameKey]), 1)
|
|
56
|
+
id: i(v).toString(),
|
|
57
|
+
tabindex: "-1",
|
|
58
|
+
class: "checkbox",
|
|
59
|
+
size: "sm",
|
|
60
|
+
"is-checked": i(c),
|
|
61
|
+
"is-indeterminate": e.isIndeterminate && !e.option,
|
|
62
|
+
onClick: n[0] || (n[0] = (T) => e.disabled ? i(N)() : i(x)(T))
|
|
63
|
+
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
|
|
64
|
+
t.$slots.image || e.imageKey ? (o(), s("div", S, [
|
|
65
|
+
u(t.$slots, "image", {}, () => [
|
|
66
|
+
e.imageKey ? (o(), s("img", {
|
|
67
|
+
key: 0,
|
|
68
|
+
src: e.option[e.imageKey]
|
|
69
|
+
}, null, 8, j)) : l("", !0)
|
|
79
70
|
], !0)
|
|
80
|
-
]),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
71
|
+
])) : l("", !0),
|
|
72
|
+
t.$slots["icon-start"] || e.iconKey ? (o(), s("div", E, [
|
|
73
|
+
u(t.$slots, "icon-start", {}, () => [
|
|
74
|
+
f(i(h), {
|
|
75
|
+
type: e.iconType,
|
|
76
|
+
name: e.option[e.iconKey],
|
|
77
|
+
size: e.iconType === "regular" ? "20px" : "16px"
|
|
78
|
+
}, null, 8, ["type", "name", "size"])
|
|
79
|
+
], !0)
|
|
80
|
+
])) : l("", !0),
|
|
81
|
+
a("div", M, [
|
|
82
|
+
f(i(w), { variant: "body2" }, {
|
|
83
|
+
default: m(() => [
|
|
84
|
+
u(t.$slots, "default", {}, () => [
|
|
85
|
+
g(k(e.option[e.nameKey]), 1)
|
|
86
|
+
], !0)
|
|
87
|
+
]),
|
|
88
|
+
_: 3
|
|
89
|
+
}),
|
|
90
|
+
e.subtitle ? (o(), r(i(I), {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: "subtitle",
|
|
93
|
+
size: "xs"
|
|
94
|
+
}, {
|
|
95
|
+
default: m(() => [
|
|
96
|
+
g(k(e.subtitle), 1)
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})) : l("", !0)
|
|
100
|
+
])
|
|
101
|
+
], 2),
|
|
102
|
+
i(y).clearable && i(c) ? (o(), s("div", P, [
|
|
103
|
+
a("button", {
|
|
104
|
+
class: "clear-button",
|
|
105
|
+
onClick: n[1] || (n[1] = $((T) => i(y).clearSelection(), ["prevent", "stop"]))
|
|
106
|
+
}, [
|
|
107
|
+
f(i(h), {
|
|
108
|
+
name: "close",
|
|
109
|
+
width: "8",
|
|
110
|
+
height: 8
|
|
111
|
+
})
|
|
112
|
+
])
|
|
113
|
+
])) : l("", !0)
|
|
114
|
+
], 2)
|
|
115
|
+
]),
|
|
116
|
+
_: 3
|
|
117
|
+
}, 8, ["text", "test-id"]));
|
|
108
118
|
}
|
|
109
119
|
});
|
|
110
120
|
export {
|
|
111
|
-
|
|
121
|
+
R as default
|
|
112
122
|
};
|
|
@@ -234,6 +234,15 @@ export declare const dropDownStoryArgs: {
|
|
|
234
234
|
category: string;
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
|
+
disabledOptionKey: {
|
|
238
|
+
control: {
|
|
239
|
+
type: string;
|
|
240
|
+
};
|
|
241
|
+
description: string;
|
|
242
|
+
table: {
|
|
243
|
+
category: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
237
246
|
theme: {
|
|
238
247
|
control: {
|
|
239
248
|
type: string;
|