@ironsource/shared-ui 2.1.7-rc.9 → 2.1.7-test.10
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/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/README.md +1 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_dbd80d49_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
- package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +94 -71
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
- package/components/dropdown/v4/TreeDropdown.vue2.js +170 -74
- package/components/dropdown/v4/index.d.ts +451 -82
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +129 -89
- package/components/sortableList/index.d.ts +88 -2
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +6 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +131 -122
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
- package/components/table/v4/index.d.ts +92 -75
- package/components/table-cells/common/Editable.common.js +37 -26
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +1694 -674
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
- package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
2
|
-
import
|
|
3
|
-
import { DropdownTestIdModifiers as
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css"; import { defineComponent as O, computed as r, openBlock as o, createElementBlock as n, createBlock as k, createCommentVNode as d, createElementVNode as c, mergeProps as m, unref as l, renderSlot as u, createVNode as i, withCtx as I, createTextVNode as B, toDisplayString as w } from "vue";
|
|
2
|
+
import V from "../../typography/v4/Typography.vue.js";
|
|
3
|
+
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
4
4
|
import h from "../../icon/v4/IconV4.vue.js";
|
|
5
5
|
import "../../icon/v4/IconFlag.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import x from "../../shared/FieldLabel.vue.js";
|
|
7
7
|
import { useTestIdAttrs as A } from "../../../utils/testIds.js";
|
|
8
8
|
import D from "../../statusDot/StatusDot.vue.js";
|
|
9
|
-
const
|
|
9
|
+
const $ = { class: "default-dropdown-wrapper" }, N = { class: "content" }, K = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "image"
|
|
12
12
|
}, C = ["src"], S = {
|
|
@@ -15,7 +15,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
15
15
|
}, P = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "status-dot"
|
|
18
|
-
}, z = { class: "caret-down" },
|
|
18
|
+
}, z = { key: 0 }, E = { class: "caret-down" }, G = /* @__PURE__ */ O({
|
|
19
19
|
__name: "DefaultDropdownTrigger",
|
|
20
20
|
props: {
|
|
21
21
|
placeholder: { default: "Select" },
|
|
@@ -50,7 +50,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
50
50
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
51
51
|
), b = () => {
|
|
52
52
|
T("click");
|
|
53
|
-
},
|
|
53
|
+
}, f = A(e.testId, p), v = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && 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), s = r(() => {
|
|
54
54
|
if (!e.selectedOption)
|
|
55
55
|
return null;
|
|
56
56
|
if (!e.multi)
|
|
@@ -58,8 +58,8 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
58
58
|
if (Array.isArray(e.selectedOption))
|
|
59
59
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
60
60
|
});
|
|
61
|
-
return (
|
|
62
|
-
t.label ? (o(), k(
|
|
61
|
+
return (a, y) => (o(), n("div", $, [
|
|
62
|
+
t.label ? (o(), k(x, {
|
|
63
63
|
key: 0,
|
|
64
64
|
label: t.label,
|
|
65
65
|
mandatory: t.mandatory,
|
|
@@ -68,41 +68,44 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
68
68
|
disabled: t.disabled,
|
|
69
69
|
"test-id": t.testId,
|
|
70
70
|
class: "dropdown-field-label"
|
|
71
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
71
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : d("", !0),
|
|
72
72
|
c("div", m({
|
|
73
73
|
class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
|
|
74
|
-
}, l(
|
|
75
|
-
onClick:
|
|
74
|
+
}, l(f)[l(p).BUTTON_WRAPPER], {
|
|
75
|
+
onClick: y[0] || (y[0] = (H) => b())
|
|
76
76
|
}), [
|
|
77
|
-
c("div",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
t.optionImageKey ? (o(),
|
|
77
|
+
c("div", N, [
|
|
78
|
+
a.$slots.image || l(s) && t.optionImageKey ? (o(), n("div", K, [
|
|
79
|
+
u(a.$slots, "image", {}, () => [
|
|
80
|
+
t.optionImageKey ? (o(), n("img", {
|
|
81
81
|
key: 0,
|
|
82
|
-
src: l(
|
|
83
|
-
}, null, 8, C)) :
|
|
82
|
+
src: l(s)[t.optionImageKey]
|
|
83
|
+
}, null, 8, C)) : d("", !0)
|
|
84
84
|
], !0)
|
|
85
|
-
])) :
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
])) : d("", !0),
|
|
86
|
+
a.$slots["icon-start"] || l(s) && t.optionIconKey ? (o(), n("div", S, [
|
|
87
|
+
u(a.$slots, "icon-start", {}, () => [
|
|
88
88
|
i(l(h), {
|
|
89
89
|
type: t.optionIconType,
|
|
90
|
-
name: l(
|
|
90
|
+
name: l(s)[t.optionIconKey],
|
|
91
91
|
size: "20px"
|
|
92
92
|
}, null, 8, ["type", "name"])
|
|
93
93
|
], !0)
|
|
94
|
-
])) :
|
|
95
|
-
t.statusDotType ? (o(),
|
|
94
|
+
])) : d("", !0),
|
|
95
|
+
t.statusDotType ? (o(), n("div", P, [
|
|
96
96
|
i(l(D), { type: t.statusDotType }, null, 8, ["type"])
|
|
97
|
-
])) :
|
|
98
|
-
i(l(
|
|
97
|
+
])) : d("", !0),
|
|
98
|
+
i(l(V), m({ variant: "body1" }, l(f)[l(p).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
99
99
|
default: I(() => [
|
|
100
|
-
|
|
100
|
+
B(w(l(v)), 1)
|
|
101
101
|
]),
|
|
102
102
|
_: 1
|
|
103
103
|
}, 16)
|
|
104
104
|
]),
|
|
105
|
-
|
|
105
|
+
a.$slots["end-icon"] ? (o(), n("div", z, [
|
|
106
|
+
u(a.$slots, "end-icon", {}, void 0, !0)
|
|
107
|
+
])) : d("", !0),
|
|
108
|
+
c("div", E, [
|
|
106
109
|
i(l(h), {
|
|
107
110
|
name: "caret-down",
|
|
108
111
|
size: "20px"
|
|
@@ -113,5 +116,5 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
113
116
|
}
|
|
114
117
|
});
|
|
115
118
|
export {
|
|
116
|
-
|
|
119
|
+
G as default
|
|
117
120
|
};
|
|
@@ -116,6 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
116
116
|
selectAll: () => void;
|
|
117
117
|
clear: () => void;
|
|
118
118
|
copyToClipboard: () => void;
|
|
119
|
+
onsearch: (value: string) => void;
|
|
119
120
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
120
121
|
modelValue?: unknown;
|
|
121
122
|
selected?: unknown;
|
|
@@ -228,6 +229,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
228
229
|
onSelectAll?: () => any;
|
|
229
230
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
230
231
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
232
|
+
onOnsearch?: (value: string) => any;
|
|
231
233
|
onOpened?: () => any;
|
|
232
234
|
onClosed?: () => any;
|
|
233
235
|
}, {
|
|
@@ -289,7 +291,34 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
289
291
|
label: any;
|
|
290
292
|
onClick: () => void;
|
|
291
293
|
};
|
|
294
|
+
defaultTriggerProps: {
|
|
295
|
+
placeholder: string;
|
|
296
|
+
open: boolean;
|
|
297
|
+
label: string;
|
|
298
|
+
showFeedbackIcon: boolean;
|
|
299
|
+
mandatory: boolean;
|
|
300
|
+
testId: string;
|
|
301
|
+
multi: boolean;
|
|
302
|
+
disabled: boolean;
|
|
303
|
+
selectedOption: unknown;
|
|
304
|
+
displayValue: (option: unknown) => string;
|
|
305
|
+
options: unknown[];
|
|
306
|
+
optionNameKey: string;
|
|
307
|
+
optionImageKey: string;
|
|
308
|
+
optionIconKey: string;
|
|
309
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
310
|
+
optionAndIconKey: string;
|
|
311
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
312
|
+
feedbackVariant: "success" | "warning" | "error";
|
|
313
|
+
valueToCopy: string;
|
|
314
|
+
statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
315
|
+
size: "small" | "medium" | "large";
|
|
316
|
+
showAllSelectedText: boolean;
|
|
317
|
+
onKeydown: (event: any) => void;
|
|
318
|
+
onClick: () => void;
|
|
319
|
+
};
|
|
292
320
|
}): any;
|
|
321
|
+
"inline-search"?(_: {}): any;
|
|
293
322
|
"input-list"?(_: {
|
|
294
323
|
open: true;
|
|
295
324
|
}): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../DropdownV4.
|
|
2
|
+
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const
|
|
5
|
+
const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-00ccab6b"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as default
|
|
8
8
|
};
|