@ironsource/shared-ui 2.1.1 → 2.1.2
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c859928d_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_d5635f1b_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_5fa01c78_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_258b9f7e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +1 -0
- package/MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css +1 -0
- package/StatusDot.vue_vue_type_style_index_0_scoped_0c8a38e5_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +5 -0
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +33 -29
- package/components/appHeader/index.d.ts +9 -0
- package/components/dropdown/common/Dropdown.common.js +18 -18
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +37 -37
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +48 -40
- package/components/dropdown/v4/DropdownV4.vue.d.ts +11 -3
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +107 -102
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +283 -0
- package/components/dropdown/v4/index.d.ts +54 -9
- package/components/icon/v3/Icon.vue2.js +1 -1
- package/components/icon/v3/icons/FiltersSearch.vue.js +41 -0
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +29 -27
- package/components/inlineCopy/index.d.ts +11 -0
- package/components/multibar/MultiBar.types.d.ts +1 -0
- package/components/multibar/MultiBar.vue.d.ts +10 -0
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +58 -51
- package/components/multibar/MultiBarMenu.vue.d.ts +5 -0
- package/components/multibar/MultiBarMenu.vue.js +3 -3
- package/components/multibar/MultiBarMenu.vue2.js +23 -18
- package/components/multibar/index.d.ts +18 -0
- package/components/statusDot/StatusDot.vue.d.ts +30 -0
- package/components/statusDot/StatusDot.vue.js +7 -0
- package/components/statusDot/StatusDot.vue2.js +15 -0
- package/components/statusDot/index.d.ts +17 -0
- package/components/statusDot/index.js +6 -0
- package/components/statusDot/types.d.ts +2 -0
- package/components/table/common/Table.common.js +31 -31
- package/components/table/v4/DataGrid.vue.d.ts +8 -3
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +76 -75
- package/components/table/v4/index.d.ts +27 -8
- package/components/toggle/v4/ToggleV4.vue.js +5 -5
- package/components/toggle/v4/ToggleV4.vue2.js +1 -1
- package/index.d.ts +232 -34
- package/index.js +104 -102
- package/package.json +6 -2
- package/testids/index.d.ts +6 -0
- package/testids/index.js +15 -14
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_a64a46d0_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_5afbd3dd_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_c38e97df_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_09d33c49_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_06dcfe6d_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_39577dfc_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_f5061530_lang.css +0 -1
- package/MultiBarMenu.vue_vue_type_style_index_0_scoped_ae2bbc6c_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ef31fecc_lang.css +0 -1
- /package/components/icon/{icons → v3/icons}/FiltersSearch.vue.d.ts +0 -0
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_5fa01c78_lang.css"; import { defineComponent as O, computed as r, openBlock as a, createElementBlock as n, createBlock as m, createCommentVNode as o, createElementVNode as c, mergeProps as y, unref as l, renderSlot as h, createVNode as s, withCtx as I, createTextVNode as x, toDisplayString as V } from "vue";
|
|
2
|
+
import B from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
|
|
4
|
+
import T from "../../icon/v4/IconV4.vue.js";
|
|
5
|
+
import w from "../../shared/FieldLabel.vue.js";
|
|
6
|
+
import D from "../../shared/FieldHelpText.vue.js";
|
|
7
|
+
import { useTestIdAttrs as A } from "../../../utils/testIds.js";
|
|
8
|
+
import N from "../../statusDot/StatusDot.vue.js";
|
|
9
|
+
const K = { class: "default-dropdown-wrapper" }, $ = { class: "content" }, C = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "image"
|
|
11
|
-
},
|
|
12
|
+
}, H = ["src"], P = {
|
|
12
13
|
key: 1,
|
|
13
14
|
class: "start-icon"
|
|
14
|
-
},
|
|
15
|
+
}, S = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "status-dot"
|
|
18
|
+
}, z = { class: "caret-down" }, G = /* @__PURE__ */ O({
|
|
15
19
|
__name: "DefaultDropdownTrigger",
|
|
16
20
|
props: {
|
|
17
21
|
placeholder: { default: "Select" },
|
|
@@ -35,15 +39,16 @@ const $ = { class: "content" }, C = {
|
|
|
35
39
|
optionNameKey: { default: null },
|
|
36
40
|
optionImageKey: { default: null },
|
|
37
41
|
optionIconKey: { default: null },
|
|
38
|
-
optionIconType: { default: null }
|
|
42
|
+
optionIconType: { default: null },
|
|
43
|
+
statusDotType: { default: null }
|
|
39
44
|
},
|
|
40
45
|
emits: ["click"],
|
|
41
|
-
setup(t, { emit:
|
|
42
|
-
const e = t, b =
|
|
46
|
+
setup(t, { emit: g }) {
|
|
47
|
+
const e = t, b = r(
|
|
43
48
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
44
49
|
), k = () => {
|
|
45
|
-
|
|
46
|
-
}, f =
|
|
50
|
+
g("click");
|
|
51
|
+
}, f = A(e.testId, u), v = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
|
|
47
52
|
if (!e.selectedOption)
|
|
48
53
|
return null;
|
|
49
54
|
if (!e.multi)
|
|
@@ -51,8 +56,8 @@ const $ = { class: "content" }, C = {
|
|
|
51
56
|
if (Array.isArray(e.selectedOption))
|
|
52
57
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
53
58
|
});
|
|
54
|
-
return (
|
|
55
|
-
t.label ? (a(), m(
|
|
59
|
+
return (i, p) => (a(), n("div", K, [
|
|
60
|
+
t.label ? (a(), m(w, {
|
|
56
61
|
key: 0,
|
|
57
62
|
label: t.label,
|
|
58
63
|
mandatory: t.mandatory,
|
|
@@ -61,54 +66,57 @@ const $ = { class: "content" }, C = {
|
|
|
61
66
|
disabled: t.disabled,
|
|
62
67
|
"test-id": t.testId,
|
|
63
68
|
class: "dropdown-field-label"
|
|
64
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
65
|
-
|
|
69
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : o("", !0),
|
|
70
|
+
c("div", y({
|
|
66
71
|
class: ["dropdown-trigger", [t.size, l(b), { open: t.open, disabled: t.disabled }]]
|
|
67
72
|
}, l(f)[l(u).BUTTON_WRAPPER], {
|
|
68
|
-
onClick: p[0] || (p[0] = (
|
|
73
|
+
onClick: p[0] || (p[0] = (E) => k())
|
|
69
74
|
}), [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
h(
|
|
73
|
-
t.optionImageKey ? (a(),
|
|
75
|
+
c("div", $, [
|
|
76
|
+
i.$slots.image || l(d) && t.optionImageKey ? (a(), n("div", C, [
|
|
77
|
+
h(i.$slots, "image", {}, () => [
|
|
78
|
+
t.optionImageKey ? (a(), n("img", {
|
|
74
79
|
key: 0,
|
|
75
|
-
src: l(
|
|
76
|
-
}, null, 8,
|
|
80
|
+
src: l(d)[t.optionImageKey]
|
|
81
|
+
}, null, 8, H)) : o("", !0)
|
|
77
82
|
], !0)
|
|
78
|
-
])) :
|
|
79
|
-
|
|
80
|
-
h(
|
|
81
|
-
|
|
83
|
+
])) : o("", !0),
|
|
84
|
+
i.$slots["icon-start"] || l(d) && t.optionIconKey ? (a(), n("div", P, [
|
|
85
|
+
h(i.$slots, "icon-start", {}, () => [
|
|
86
|
+
s(l(T), {
|
|
82
87
|
type: t.optionIconType,
|
|
83
|
-
name: l(
|
|
88
|
+
name: l(d)[t.optionIconKey],
|
|
84
89
|
size: "20px"
|
|
85
90
|
}, null, 8, ["type", "name"])
|
|
86
91
|
], !0)
|
|
87
|
-
])) :
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
])) : o("", !0),
|
|
93
|
+
t.statusDotType ? (a(), n("div", S, [
|
|
94
|
+
s(l(N), { type: t.statusDotType }, null, 8, ["type"])
|
|
95
|
+
])) : o("", !0),
|
|
96
|
+
s(l(B), y({ variant: "body1" }, l(f)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
97
|
+
default: I(() => [
|
|
98
|
+
x(V(l(v)), 1)
|
|
91
99
|
]),
|
|
92
100
|
_: 1
|
|
93
101
|
}, 16)
|
|
94
102
|
]),
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
c("div", z, [
|
|
104
|
+
s(l(T), {
|
|
97
105
|
name: "caret-down",
|
|
98
106
|
size: "20px"
|
|
99
107
|
})
|
|
100
108
|
])
|
|
101
109
|
], 16),
|
|
102
|
-
t.feedbackText ? (a(), m(
|
|
110
|
+
t.feedbackText ? (a(), m(D, {
|
|
103
111
|
key: 1,
|
|
104
112
|
text: t.feedbackText,
|
|
105
113
|
variant: t.feedbackVariant,
|
|
106
114
|
"test-id": t.testId,
|
|
107
115
|
class: "dropdown-field-help-text"
|
|
108
|
-
}, null, 8, ["text", "variant", "test-id"])) :
|
|
109
|
-
]
|
|
116
|
+
}, null, 8, ["text", "variant", "test-id"])) : o("", !0)
|
|
117
|
+
]));
|
|
110
118
|
}
|
|
111
119
|
});
|
|
112
120
|
export {
|
|
113
|
-
|
|
121
|
+
G as default
|
|
114
122
|
};
|
|
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
28
|
triggerHelperText?: string;
|
|
29
29
|
triggerFeedbackText?: string;
|
|
30
30
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
31
|
-
size?: "
|
|
31
|
+
size?: "small" | "medium" | "large";
|
|
32
32
|
mandatory?: boolean;
|
|
33
33
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
34
34
|
inlineSearch?: boolean;
|
|
@@ -46,6 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
46
|
theme?: string;
|
|
47
47
|
fullWidth?: boolean;
|
|
48
48
|
optionsListWidth?: string;
|
|
49
|
+
statusType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
49
50
|
}>, {
|
|
50
51
|
multi: boolean;
|
|
51
52
|
inlineSearchPlaceholder: string;
|
|
@@ -73,6 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
73
74
|
autoSize: boolean;
|
|
74
75
|
disableKeyboardEvents: boolean;
|
|
75
76
|
testId: string;
|
|
77
|
+
showSelectAll: boolean;
|
|
76
78
|
triggerLabel: string;
|
|
77
79
|
triggerHelperText: string;
|
|
78
80
|
triggerFeedbackText: string;
|
|
@@ -86,6 +88,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
86
88
|
valueToCopy: any;
|
|
87
89
|
fullWidth: boolean;
|
|
88
90
|
optionsListWidth: any;
|
|
91
|
+
statusType: any;
|
|
89
92
|
}>, {
|
|
90
93
|
selectItem: (option: any, index?: number) => void;
|
|
91
94
|
scrollTo: (index: number) => void;
|
|
@@ -124,7 +127,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
124
127
|
triggerHelperText?: string;
|
|
125
128
|
triggerFeedbackText?: string;
|
|
126
129
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
127
|
-
size?: "
|
|
130
|
+
size?: "small" | "medium" | "large";
|
|
128
131
|
mandatory?: boolean;
|
|
129
132
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
130
133
|
inlineSearch?: boolean;
|
|
@@ -142,6 +145,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
142
145
|
theme?: string;
|
|
143
146
|
fullWidth?: boolean;
|
|
144
147
|
optionsListWidth?: string;
|
|
148
|
+
statusType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
145
149
|
}>, {
|
|
146
150
|
multi: boolean;
|
|
147
151
|
inlineSearchPlaceholder: string;
|
|
@@ -169,6 +173,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
169
173
|
autoSize: boolean;
|
|
170
174
|
disableKeyboardEvents: boolean;
|
|
171
175
|
testId: string;
|
|
176
|
+
showSelectAll: boolean;
|
|
172
177
|
triggerLabel: string;
|
|
173
178
|
triggerHelperText: string;
|
|
174
179
|
triggerFeedbackText: string;
|
|
@@ -182,6 +187,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
182
187
|
valueToCopy: any;
|
|
183
188
|
fullWidth: boolean;
|
|
184
189
|
optionsListWidth: any;
|
|
190
|
+
statusType: any;
|
|
185
191
|
}>>> & {
|
|
186
192
|
onApply?: (value: unknown) => any;
|
|
187
193
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
@@ -191,7 +197,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
191
197
|
}, {
|
|
192
198
|
theme: string;
|
|
193
199
|
disabled: boolean;
|
|
194
|
-
size: "
|
|
200
|
+
size: "small" | "medium" | "large";
|
|
195
201
|
flip: boolean;
|
|
196
202
|
mandatory: boolean;
|
|
197
203
|
testId: string;
|
|
@@ -206,6 +212,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
206
212
|
multi: boolean;
|
|
207
213
|
inlineSearch: boolean;
|
|
208
214
|
noResultsText: string;
|
|
215
|
+
showSelectAll: boolean;
|
|
209
216
|
defaultOpen: boolean;
|
|
210
217
|
skidding: number;
|
|
211
218
|
onSearch: (option: any, term: string) => boolean;
|
|
@@ -227,6 +234,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
227
234
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
228
235
|
fullWidth: boolean;
|
|
229
236
|
optionsListWidth: string;
|
|
237
|
+
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
230
238
|
}>, {
|
|
231
239
|
label?(_: {}): any;
|
|
232
240
|
"dropdown-trigger"?(_: {}): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DropdownV4.
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_258b9f7e_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-258b9f7e"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
r as default
|
|
8
8
|
};
|