@ironsource/shared-ui 2.1.12-test.71 → 2.1.12-test.73
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/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +34 -33
- package/components/chart/ChartStoryArgs.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.d.ts +6 -0
- package/components/dateRange/common/DateServices.common.js +87 -92
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -3
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +44 -43
- 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/DropdownV4.vue.d.ts +15 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +71 -68
- package/components/dropdown/v4/index.d.ts +67 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +25 -23
- package/components/switch/v4/index.d.ts +11 -0
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.d.ts +6 -1
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +192 -174
- package/components/table/v4/index.d.ts +20 -1
- package/index.d.ts +210 -18
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../ChipDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css"; import { defineComponent as k, ref as m, computed as y, watch as S, openBlock as $, createBlock as D, unref as t, withCtx as h, createElementVNode as p, mergeProps as d, createVNode as u, createTextVNode as O, toDisplayString as C, withDirectives as b, vShow as x, withModifiers as E } from "vue";
|
|
2
|
+
import v from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import _ from "../../typography/v4/Typography.vue.js";
|
|
5
5
|
import { DropdownTestIdModifiers as i } from "../../../testids/index.js";
|
|
6
|
-
import { useTestIdAttrs as
|
|
7
|
-
import { isElementTruncated as
|
|
8
|
-
import { promiseTimeout as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
6
|
+
import { useTestIdAttrs as U } from "../../../utils/testIds.js";
|
|
7
|
+
import { isElementTruncated as F } from "../../../utils/text.js";
|
|
8
|
+
import { promiseTimeout as L } from "@vueuse/core";
|
|
9
|
+
import R from "../../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */ k({
|
|
11
11
|
__name: "ChipDropdownTrigger",
|
|
12
12
|
props: {
|
|
13
13
|
label: { default: "Status" },
|
|
@@ -22,87 +22,97 @@ const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
|
|
|
22
22
|
displayValue: null,
|
|
23
23
|
multi: { type: Boolean },
|
|
24
24
|
cancelAllSelectedDisplay: { type: Boolean, default: !1 },
|
|
25
|
-
displayValueInQuotes: { type: Boolean, default: !1 }
|
|
25
|
+
displayValueInQuotes: { type: Boolean, default: !1 },
|
|
26
|
+
shownValuesCount: { default: 1 }
|
|
26
27
|
},
|
|
27
28
|
emits: ["clear"],
|
|
28
|
-
setup(
|
|
29
|
-
const e =
|
|
30
|
-
|
|
31
|
-
}, o =
|
|
29
|
+
setup(f, { emit: w }) {
|
|
30
|
+
const e = f, A = () => {
|
|
31
|
+
w("clear");
|
|
32
|
+
}, o = m(null), r = m(!0), T = m(!1), g = (l) => {
|
|
32
33
|
let a = l;
|
|
33
|
-
Array.isArray(l) && (l.length > 1 ? a = `${l
|
|
34
|
-
let
|
|
35
|
-
return e.displayValueInQuotes && (
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
Array.isArray(l) && (l.length > 1 ? a = `${l.filter((I) => typeof I == "string").join(", ")}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
|
|
35
|
+
let c = a;
|
|
36
|
+
return e.displayValueInQuotes && (c = `"${a}"`), a ? `${e.label}: ${c}` : e.label;
|
|
37
|
+
}, V = (l) => {
|
|
38
|
+
if (Array.isArray(l) && l.length > 1) {
|
|
39
|
+
const a = l[l.length - 1];
|
|
40
|
+
if (typeof a == "number" && a > 0)
|
|
41
|
+
return `, +${a}`;
|
|
42
|
+
}
|
|
43
|
+
return "";
|
|
44
|
+
}, B = y(
|
|
40
45
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
41
|
-
),
|
|
46
|
+
), n = U(e.testId, i), s = y(() => {
|
|
42
47
|
if (!e.multi)
|
|
43
48
|
return e.selectedOption ? e.displayValue(e.selectedOption) : "";
|
|
44
|
-
if (Array.isArray(e.selectedOption))
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
if (!Array.isArray(e.selectedOption))
|
|
50
|
+
return;
|
|
51
|
+
if (!e.selectedOption.length)
|
|
52
|
+
return [];
|
|
53
|
+
if (e.allSelected && !e.cancelAllSelectedDisplay)
|
|
54
|
+
return ["All"];
|
|
55
|
+
if (e.selectedOption.length === 1 && e.displayValue)
|
|
56
|
+
return [e.displayValue(e.selectedOption[0])];
|
|
57
|
+
const l = e.selectedOption.slice(0, e.shownValuesCount).map((c) => e.displayValue(c)), a = e.selectedOption.length - l.length;
|
|
58
|
+
return [...l, a];
|
|
49
59
|
});
|
|
50
|
-
|
|
51
|
-
await
|
|
60
|
+
S([() => e.selectedOption, o], async () => {
|
|
61
|
+
await L(100), T.value = o.value && F(o.value);
|
|
52
62
|
});
|
|
53
|
-
const
|
|
54
|
-
|
|
63
|
+
const N = y(() => T.value ? `${g(s.value)}${V(
|
|
64
|
+
s.value
|
|
55
65
|
)}` : "");
|
|
56
|
-
return (l, a) => (
|
|
57
|
-
text: t(
|
|
66
|
+
return (l, a) => ($(), D(t(R), {
|
|
67
|
+
text: t(N),
|
|
58
68
|
class: "tooltip-option",
|
|
59
69
|
placement: "top"
|
|
60
70
|
}, {
|
|
61
|
-
default:
|
|
62
|
-
|
|
63
|
-
class: ["chip-trigger", [t(
|
|
64
|
-
}, t(
|
|
65
|
-
|
|
71
|
+
default: h(() => [
|
|
72
|
+
p("div", d({
|
|
73
|
+
class: ["chip-trigger", [t(B), { active: r.value, disabled: f.disabled, open: f.open }]]
|
|
74
|
+
}, t(n)[t(i).BUTTON]), [
|
|
75
|
+
p("div", {
|
|
66
76
|
ref_key: "textContainerRef",
|
|
67
77
|
ref: o,
|
|
68
78
|
class: "chip-trigger--content"
|
|
69
79
|
}, [
|
|
70
|
-
|
|
80
|
+
u(t(_), d({
|
|
71
81
|
class: "chip-trigger--text",
|
|
72
82
|
variant: "chipLabel"
|
|
73
|
-
}, t(
|
|
74
|
-
default:
|
|
75
|
-
|
|
83
|
+
}, t(n)[t(i).BUTTON_CONTENT]), {
|
|
84
|
+
default: h(() => [
|
|
85
|
+
O(C(g(t(s))), 1)
|
|
76
86
|
]),
|
|
77
87
|
_: 1
|
|
78
88
|
}, 16),
|
|
79
|
-
|
|
89
|
+
u(t(_), d({
|
|
80
90
|
class: "chip-trigger--suffix",
|
|
81
91
|
variant: "chipLabel"
|
|
82
|
-
}, t(
|
|
83
|
-
default:
|
|
84
|
-
|
|
92
|
+
}, t(n)[t(i).BUTTON_CONTENT_SUFFIX]), {
|
|
93
|
+
default: h(() => [
|
|
94
|
+
O(C(V(t(s))), 1)
|
|
85
95
|
]),
|
|
86
96
|
_: 1
|
|
87
97
|
}, 16),
|
|
88
|
-
|
|
89
|
-
|
|
98
|
+
b(p("div", z, [
|
|
99
|
+
u(t(v), {
|
|
90
100
|
name: "caret-down",
|
|
91
101
|
size: "16px"
|
|
92
102
|
})
|
|
93
103
|
], 512), [
|
|
94
|
-
[
|
|
104
|
+
[x, !r.value]
|
|
95
105
|
]),
|
|
96
|
-
|
|
97
|
-
onClick:
|
|
106
|
+
b(p("div", d({ class: "x-circle-wrapper" }, t(n)[t(i).BUTTON_CLEAR], {
|
|
107
|
+
onClick: E(A, ["stop"])
|
|
98
108
|
}), [
|
|
99
|
-
|
|
109
|
+
u(t(v), {
|
|
100
110
|
name: "x-circle",
|
|
101
111
|
size: "16px",
|
|
102
112
|
type: "fill"
|
|
103
113
|
})
|
|
104
|
-
], 16,
|
|
105
|
-
[
|
|
114
|
+
], 16, M), [
|
|
115
|
+
[x, r.value]
|
|
106
116
|
])
|
|
107
117
|
], 512)
|
|
108
118
|
], 16)
|
|
@@ -112,5 +122,5 @@ const R = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */
|
|
|
112
122
|
}
|
|
113
123
|
});
|
|
114
124
|
export {
|
|
115
|
-
|
|
125
|
+
W as default
|
|
116
126
|
};
|
|
@@ -18,6 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
autoSize?: boolean;
|
|
19
19
|
disableKeyboardEvents?: boolean;
|
|
20
20
|
dynamicFilterMode?: boolean;
|
|
21
|
+
minSelections?: number;
|
|
22
|
+
maxSelections?: number;
|
|
21
23
|
isOnTop?: boolean;
|
|
22
24
|
distance?: number;
|
|
23
25
|
container?: string;
|
|
@@ -30,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
32
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
31
33
|
triggerFeedbackShowIcon?: boolean;
|
|
32
34
|
triggerShowAllSelectedText?: boolean;
|
|
35
|
+
triggerShownValuesCount?: number;
|
|
33
36
|
size?: "small" | "medium" | "large";
|
|
34
37
|
mandatory?: boolean;
|
|
35
38
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
@@ -92,12 +95,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
95
|
testId: string;
|
|
93
96
|
showSelectAll: boolean;
|
|
94
97
|
dynamicFilterMode: boolean;
|
|
98
|
+
minSelections: number;
|
|
99
|
+
maxSelections: any;
|
|
95
100
|
triggerLabel: string;
|
|
96
101
|
triggerHelperText: string;
|
|
97
102
|
triggerFeedbackText: string;
|
|
98
103
|
triggerFeedbackVariant: any;
|
|
99
104
|
triggerFeedbackShowIcon: boolean;
|
|
100
105
|
triggerShowAllSelectedText: boolean;
|
|
106
|
+
triggerShownValuesCount: number;
|
|
101
107
|
searchAutoFocus: boolean;
|
|
102
108
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
103
109
|
optionNameKey: string;
|
|
@@ -158,6 +164,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
158
164
|
autoSize?: boolean;
|
|
159
165
|
disableKeyboardEvents?: boolean;
|
|
160
166
|
dynamicFilterMode?: boolean;
|
|
167
|
+
minSelections?: number;
|
|
168
|
+
maxSelections?: number;
|
|
161
169
|
isOnTop?: boolean;
|
|
162
170
|
distance?: number;
|
|
163
171
|
container?: string;
|
|
@@ -170,6 +178,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
170
178
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
171
179
|
triggerFeedbackShowIcon?: boolean;
|
|
172
180
|
triggerShowAllSelectedText?: boolean;
|
|
181
|
+
triggerShownValuesCount?: number;
|
|
173
182
|
size?: "small" | "medium" | "large";
|
|
174
183
|
mandatory?: boolean;
|
|
175
184
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
@@ -232,12 +241,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
232
241
|
testId: string;
|
|
233
242
|
showSelectAll: boolean;
|
|
234
243
|
dynamicFilterMode: boolean;
|
|
244
|
+
minSelections: number;
|
|
245
|
+
maxSelections: any;
|
|
235
246
|
triggerLabel: string;
|
|
236
247
|
triggerHelperText: string;
|
|
237
248
|
triggerFeedbackText: string;
|
|
238
249
|
triggerFeedbackVariant: any;
|
|
239
250
|
triggerFeedbackShowIcon: boolean;
|
|
240
251
|
triggerShowAllSelectedText: boolean;
|
|
252
|
+
triggerShownValuesCount: number;
|
|
241
253
|
searchAutoFocus: boolean;
|
|
242
254
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
243
255
|
optionNameKey: string;
|
|
@@ -300,6 +312,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
300
312
|
autoSize: boolean;
|
|
301
313
|
disableKeyboardEvents: boolean;
|
|
302
314
|
dynamicFilterMode: boolean;
|
|
315
|
+
minSelections: number;
|
|
316
|
+
maxSelections: number;
|
|
303
317
|
isOnTop: boolean;
|
|
304
318
|
triggerLabel: string;
|
|
305
319
|
triggerHelperText: string;
|
|
@@ -307,6 +321,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
307
321
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
308
322
|
triggerFeedbackShowIcon: boolean;
|
|
309
323
|
triggerShowAllSelectedText: boolean;
|
|
324
|
+
triggerShownValuesCount: number;
|
|
310
325
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
311
326
|
inlineSearch: boolean;
|
|
312
327
|
inlineSearchPlaceholder: string;
|
|
@@ -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_92ead583_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-92ead583"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|