@ironsource/shared-ui 2.2.0-test.22 → 2.2.0-test.24
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/Chart.vue_vue_type_style_index_0_scoped_a4d7b67a_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_98458a8f_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_9ae00876_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_7c9f1b76_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +17 -15
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -15
- package/components/chart/index.d.ts +20 -1
- package/components/chart/types.d.ts +1 -0
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +5 -5
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -0
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +11 -9
- package/components/popover/v4/index.d.ts +41 -1
- package/components/tag/Tag.vue.d.ts +14 -0
- package/components/tag/Tag.vue.js +2 -2
- package/components/tag/Tag.vue2.js +128 -100
- package/components/tag/index.d.ts +22 -0
- package/index.d.ts +82 -2
- package/index.js +1 -1
- package/package.json +12 -3
- package/Chart.vue_vue_type_style_index_0_scoped_3e022c94_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
- package/Tag.vue_vue_type_style_index_0_scoped_78f19cb0_lang.css +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../Tag.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../Tag.vue_vue_type_style_index_0_scoped_7c9f1b76_lang.css"; import { defineComponent as Y, ref as c, computed as d, watch as I, nextTick as R, openBlock as m, createBlock as M, unref as t, withCtx as b, createVNode as z, createTextVNode as P, toDisplayString as S, normalizeClass as h, normalizeStyle as $, withModifiers as g, createElementVNode as Z, createCommentVNode as H, withDirectives as K, createElementBlock as O, isRef as _, withKeys as D, vModelText as ee, vShow as ae } from "vue";
|
|
2
|
+
import W from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import F from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import te from "../chip/v4/ChipV4.vue.js";
|
|
6
|
+
import le from "../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
const re = { class: "tag-content" }, ie = ["placeholder", "maxlength", "onKeyup"], ce = /* @__PURE__ */ Y({
|
|
8
8
|
__name: "Tag",
|
|
9
9
|
props: {
|
|
10
10
|
label: { default: "" },
|
|
@@ -22,38 +22,66 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
|
|
|
22
22
|
editable: { type: Boolean, default: !1 },
|
|
23
23
|
selectable: { type: Boolean, default: !0 },
|
|
24
24
|
maxLength: { default: void 0 },
|
|
25
|
-
maxLengthTooltip: { default: "
|
|
25
|
+
maxLengthTooltip: { default: "Character limit reached" },
|
|
26
|
+
validationPattern: { default: "" },
|
|
27
|
+
validationErrorText: { default: "Invalid format" }
|
|
26
28
|
},
|
|
27
|
-
emits: ["update:label", "remove", "stopEditing", "update:isSelected"],
|
|
28
|
-
setup(a, { emit:
|
|
29
|
-
const e = a, r =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
emits: ["update:label", "remove", "stopEditing", "update:isSelected", "validationError", "validationSuccess"],
|
|
30
|
+
setup(a, { emit: u }) {
|
|
31
|
+
const e = a, r = c(!1), k = c(null), x = c(void 0), T = c(!1), s = c(!1), o = c(e.isSelected || e.editable), y = d(() => {
|
|
32
|
+
if (!e.validationPattern || !l.value)
|
|
33
|
+
return !0;
|
|
34
|
+
try {
|
|
35
|
+
return new RegExp(e.validationPattern).test(l.value);
|
|
36
|
+
} catch {
|
|
37
|
+
return !0;
|
|
38
|
+
}
|
|
39
|
+
}), v = d(() => !y.value && r.value && l.value), B = d(() => !e.label && !r.value && e.placeholder), w = d(() => e.maxLength && l.value.length >= e.maxLength && r.value), p = d(() => e.disabled || !e.selectable || r.value ? "outlined" : s.value ? "filled" : !o.value && !e.editable ? "outlined" : e.variant), U = d(() => e.disabled ? "default" : e.isInvalid || v.value ? "error" : o.value || !o.value && e.editable || !e.selectable ? e.color : "default"), l = d({
|
|
33
40
|
get: () => e.label,
|
|
34
41
|
set: (n) => {
|
|
35
|
-
|
|
42
|
+
u("update:label", n);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
I(
|
|
46
|
+
() => [l.value, r.value],
|
|
47
|
+
() => {
|
|
48
|
+
e.validationPattern && r.value && l.value && (y.value ? u("validationSuccess") : u("validationError", e.validationErrorText));
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
const L = c(null), C = () => L.value?.focus(), j = () => {
|
|
52
|
+
u("remove");
|
|
53
|
+
}, q = async () => {
|
|
54
|
+
e.disabled || !e.selectable || (e.editable ? (r.value = !0, await R(), C()) : (o.value = !o.value, u("update:isSelected", o.value)));
|
|
55
|
+
}, A = () => {
|
|
56
|
+
if (e.validationPattern && l.value && !y.value) {
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
C();
|
|
59
|
+
}, 0);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
E();
|
|
63
|
+
}, E = () => {
|
|
64
|
+
if (e.validationPattern && l.value && !y.value) {
|
|
65
|
+
setTimeout(() => {
|
|
66
|
+
C();
|
|
67
|
+
}, 0);
|
|
68
|
+
return;
|
|
36
69
|
}
|
|
37
|
-
|
|
38
|
-
e.disabled || !e.selectable || (e.editable ? (r.value = !0, await N(), P()) : (i.value = !i.value, v("update:isSelected", i.value)));
|
|
39
|
-
}, Y = () => {
|
|
40
|
-
v("stopEditing"), x();
|
|
41
|
-
}, x = () => {
|
|
42
|
-
r.value = !1, !o.value && !e.placeholder && v("remove");
|
|
70
|
+
r.value = !1, !l.value && !e.placeholder && u("remove"), u("stopEditing");
|
|
43
71
|
};
|
|
44
|
-
|
|
45
|
-
() => [
|
|
72
|
+
I(
|
|
73
|
+
() => [l.value, e.placeholder, r.value],
|
|
46
74
|
async () => {
|
|
47
|
-
await
|
|
75
|
+
await R(), r.value && k.value ? x.value = k.value.offsetWidth + "px" : x.value = void 0;
|
|
48
76
|
},
|
|
49
77
|
{ immediate: !0 }
|
|
50
|
-
),
|
|
78
|
+
), I(
|
|
51
79
|
() => e.editable,
|
|
52
80
|
() => {
|
|
53
|
-
e.editable && (
|
|
81
|
+
e.editable && (o.value = !0);
|
|
54
82
|
}
|
|
55
83
|
);
|
|
56
|
-
const
|
|
84
|
+
const V = {
|
|
57
85
|
default: "var(--default-outlined-border)",
|
|
58
86
|
primary: "var(--primary-main)",
|
|
59
87
|
info: "var(--info-dark)",
|
|
@@ -61,7 +89,7 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
|
|
|
61
89
|
warning: "var(--warning-main)",
|
|
62
90
|
success: "var(--success-main)",
|
|
63
91
|
dark: "var(--common-divider)"
|
|
64
|
-
},
|
|
92
|
+
}, N = {
|
|
65
93
|
default: "var(--action-active)",
|
|
66
94
|
primary: "var(--primary-dark)",
|
|
67
95
|
info: "var(--info-dark)",
|
|
@@ -69,7 +97,7 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
|
|
|
69
97
|
warning: "var(--warning-dark)",
|
|
70
98
|
success: "var(--success-dark)",
|
|
71
99
|
dark: "var(--common-divider)"
|
|
72
|
-
},
|
|
100
|
+
}, G = {
|
|
73
101
|
default: "var(--action-active)",
|
|
74
102
|
primary: "var(--primary-darker)",
|
|
75
103
|
info: "var(--info-darker)",
|
|
@@ -77,145 +105,145 @@ const ae = { class: "tag-max-length-tooltip" }, le = { class: "tag-content" }, t
|
|
|
77
105
|
warning: "var(--warning-darker)",
|
|
78
106
|
success: "var(--success-darker)",
|
|
79
107
|
dark: "var(--common-divider)"
|
|
80
|
-
},
|
|
108
|
+
}, J = d(() => {
|
|
81
109
|
if (e.disabled)
|
|
82
110
|
return "var(--action-disabled)";
|
|
83
111
|
const n = e.isInvalid ? "error" : e.color;
|
|
84
|
-
return
|
|
85
|
-
}),
|
|
112
|
+
return T.value ? G[n] : N[n];
|
|
113
|
+
}), Q = d(() => {
|
|
86
114
|
if (e.disabled)
|
|
87
115
|
return "var(--action-disabled)";
|
|
88
116
|
const n = e.isInvalid ? "error" : e.color;
|
|
89
|
-
return
|
|
90
|
-
}),
|
|
117
|
+
return o.value || !e.selectable ? N[n] : "var(--action-active)";
|
|
118
|
+
}), X = d(() => {
|
|
91
119
|
if (e.editable && e.variant !== "outlined" || !e.selectable) {
|
|
92
|
-
const n = r.value ?
|
|
120
|
+
const n = r.value ? V[e.color] : "var(--primary-main-50-p)";
|
|
93
121
|
return {
|
|
94
|
-
"--outline-color": e.isInvalid ?
|
|
122
|
+
"--outline-color": e.isInvalid ? V.error : n
|
|
95
123
|
};
|
|
96
124
|
}
|
|
97
|
-
return
|
|
98
|
-
"--outline-color":
|
|
125
|
+
return s.value && e.variant !== "outlined" && e.color === "primary" && !e.editable ? {
|
|
126
|
+
"--outline-color": o.value ? "var(--primary-main-50-p)" : "var(--action-active)"
|
|
99
127
|
} : {};
|
|
100
128
|
});
|
|
101
|
-
return (n,
|
|
129
|
+
return (n, i) => (m(), M(t(le), {
|
|
102
130
|
placement: "top",
|
|
103
|
-
text: a.maxLengthTooltip,
|
|
104
|
-
"is-open":
|
|
105
|
-
|
|
131
|
+
text: t(v) ? a.validationErrorText : a.maxLengthTooltip,
|
|
132
|
+
"is-open": t(w) || t(v),
|
|
133
|
+
shown: t(w) || t(v).length > 0,
|
|
134
|
+
disabled: !t(w) && !t(v),
|
|
135
|
+
trigger: "click",
|
|
106
136
|
distance: 10,
|
|
107
137
|
skidding: 10
|
|
108
138
|
}, {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
})
|
|
117
|
-
])
|
|
139
|
+
tooltip: b(() => [
|
|
140
|
+
z(t(W), { variant: "body2" }, {
|
|
141
|
+
default: b(() => [
|
|
142
|
+
P(S(t(v) ? a.validationErrorText : a.maxLengthTooltip), 1)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
118
146
|
]),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class:
|
|
147
|
+
default: b(() => [
|
|
148
|
+
z(t(te), {
|
|
149
|
+
class: h({
|
|
122
150
|
"rounded-tag": a.rounded,
|
|
123
|
-
"tag-editing": r.value &&
|
|
151
|
+
"tag-editing": r.value && t(p) !== "outlined",
|
|
124
152
|
// outlined chips have an outline
|
|
125
|
-
"tag-hover-outline": a.label &&
|
|
153
|
+
"tag-hover-outline": a.label && s.value && t(p) !== "outlined",
|
|
126
154
|
// outlined chips have an outline
|
|
127
|
-
"unselected-tag-hover-outline": a.label &&
|
|
155
|
+
"unselected-tag-hover-outline": a.label && s.value && t(p) !== "outlined" && !o.value && !a.editable,
|
|
128
156
|
// for unselected tags that are not editable, we want to show a hover outline
|
|
129
157
|
"tag-disabled": a.disabled,
|
|
130
|
-
"empty-tag":
|
|
131
|
-
"unselected-tag": !
|
|
158
|
+
"empty-tag": t(B),
|
|
159
|
+
"unselected-tag": !o.value && a.selectable && a.label && !s.value,
|
|
132
160
|
"editable-tag": a.editable && !a.disabled
|
|
133
161
|
}),
|
|
134
|
-
label: l
|
|
162
|
+
label: t(l),
|
|
135
163
|
"test-id": a.testId,
|
|
136
|
-
color:
|
|
164
|
+
color: t(U),
|
|
137
165
|
size: a.size,
|
|
138
|
-
variant:
|
|
166
|
+
variant: t(p),
|
|
139
167
|
disabled: a.disabled,
|
|
140
|
-
style:
|
|
141
|
-
onMouseover:
|
|
142
|
-
onMouseleave:
|
|
143
|
-
onClick:
|
|
168
|
+
style: $(t(X)),
|
|
169
|
+
onMouseover: i[4] || (i[4] = (f) => s.value = !0),
|
|
170
|
+
onMouseleave: i[5] || (i[5] = (f) => s.value = !1),
|
|
171
|
+
onClick: g(q, ["stop"])
|
|
144
172
|
}, {
|
|
145
|
-
default:
|
|
146
|
-
|
|
147
|
-
a.iconName ? (
|
|
173
|
+
default: b(() => [
|
|
174
|
+
Z("div", re, [
|
|
175
|
+
a.iconName ? (m(), M(t(F), {
|
|
148
176
|
key: 0,
|
|
149
177
|
name: a.iconName,
|
|
150
178
|
size: "16px",
|
|
151
|
-
color:
|
|
179
|
+
color: t(Q),
|
|
152
180
|
class: "tag-icon",
|
|
153
181
|
type: a.iconType
|
|
154
|
-
}, null, 8, ["name", "color", "type"])) :
|
|
155
|
-
r.value ?
|
|
182
|
+
}, null, 8, ["name", "color", "type"])) : H("", !0),
|
|
183
|
+
r.value ? K((m(), O("input", {
|
|
156
184
|
key: 2,
|
|
157
185
|
ref_key: "inputRef",
|
|
158
|
-
ref:
|
|
159
|
-
"onUpdate:modelValue":
|
|
186
|
+
ref: L,
|
|
187
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => _(l) ? l.value = f : null),
|
|
160
188
|
placeholder: a.placeholder,
|
|
161
|
-
class:
|
|
189
|
+
class: h(["tag-input", { "tag-input-outline": a.variant === "outlined" }]),
|
|
162
190
|
spellcheck: "false",
|
|
163
|
-
style:
|
|
191
|
+
style: $({ width: x.value }),
|
|
164
192
|
maxlength: a.maxLength,
|
|
165
|
-
onBlur:
|
|
193
|
+
onBlur: A,
|
|
166
194
|
onKeyup: [
|
|
167
|
-
|
|
168
|
-
|
|
195
|
+
D(g(E, ["prevent"]), ["enter"]),
|
|
196
|
+
D(g(E, ["prevent"]), ["esc"])
|
|
169
197
|
]
|
|
170
|
-
}, null, 46,
|
|
198
|
+
}, null, 46, ie)), [
|
|
171
199
|
[
|
|
172
|
-
|
|
173
|
-
l
|
|
200
|
+
ee,
|
|
201
|
+
t(l),
|
|
174
202
|
void 0,
|
|
175
203
|
{ trim: !0 }
|
|
176
204
|
]
|
|
177
|
-
]) : (
|
|
205
|
+
]) : (m(), M(t(W), {
|
|
178
206
|
key: 1,
|
|
179
207
|
variant: "chipLabel",
|
|
180
|
-
class:
|
|
181
|
-
"tag-label--placeholder": !l
|
|
208
|
+
class: h(["tag-label", {
|
|
209
|
+
"tag-label--placeholder": !t(l) && a.placeholder,
|
|
182
210
|
"tag-label--disabled": a.disabled
|
|
183
211
|
}])
|
|
184
212
|
}, {
|
|
185
|
-
default:
|
|
186
|
-
|
|
213
|
+
default: b(() => [
|
|
214
|
+
P(S(t(l) || a.placeholder), 1)
|
|
187
215
|
]),
|
|
188
216
|
_: 1
|
|
189
217
|
}, 8, ["class"])),
|
|
190
|
-
r.value ? (
|
|
218
|
+
r.value ? (m(), O("span", {
|
|
191
219
|
key: 3,
|
|
192
220
|
ref_key: "sizerRef",
|
|
193
|
-
ref:
|
|
221
|
+
ref: k,
|
|
194
222
|
class: "tag-input-sizer"
|
|
195
|
-
},
|
|
223
|
+
}, S(t(l) || a.placeholder || ""), 513)) : H("", !0)
|
|
196
224
|
]),
|
|
197
|
-
|
|
198
|
-
class:
|
|
225
|
+
K(z(t(F), {
|
|
226
|
+
class: h(["clear-button", { "clear-button--invalid": a.isInvalid || t(v) }]),
|
|
199
227
|
name: "x-circle",
|
|
200
228
|
size: "16px",
|
|
201
229
|
type: "fill",
|
|
202
|
-
color:
|
|
203
|
-
onMousedown:
|
|
230
|
+
color: t(J),
|
|
231
|
+
onMousedown: i[1] || (i[1] = g(() => {
|
|
204
232
|
}, ["prevent"])),
|
|
205
|
-
onMouseover:
|
|
206
|
-
onMouseleave:
|
|
207
|
-
onClick:
|
|
208
|
-
}, null, 8, ["class", "color"]), [
|
|
209
|
-
[
|
|
233
|
+
onMouseover: i[2] || (i[2] = (f) => T.value = !0),
|
|
234
|
+
onMouseleave: i[3] || (i[3] = (f) => T.value = !1),
|
|
235
|
+
onClick: g(j, ["stop"])
|
|
236
|
+
}, null, 8, ["class", "color", "onClick"]), [
|
|
237
|
+
[ae, a.editable && a.selectable && (r.value || !t(B))]
|
|
210
238
|
])
|
|
211
239
|
]),
|
|
212
240
|
_: 1
|
|
213
241
|
}, 8, ["class", "label", "test-id", "color", "size", "variant", "disabled", "style", "onClick"])
|
|
214
242
|
]),
|
|
215
243
|
_: 1
|
|
216
|
-
}, 8, ["text", "is-open", "disabled"]));
|
|
244
|
+
}, 8, ["text", "is-open", "shown", "disabled"]));
|
|
217
245
|
}
|
|
218
246
|
});
|
|
219
247
|
export {
|
|
220
|
-
|
|
248
|
+
ce as default
|
|
221
249
|
};
|
|
@@ -65,11 +65,21 @@ declare const TagTypes: () => import("vue").DefineComponent<{
|
|
|
65
65
|
type: import("vue").PropType<string>;
|
|
66
66
|
default: string;
|
|
67
67
|
};
|
|
68
|
+
validationPattern: {
|
|
69
|
+
type: import("vue").PropType<string>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
validationErrorText: {
|
|
73
|
+
type: import("vue").PropType<string>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
68
76
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
77
|
"update:label": (value: string) => void;
|
|
70
78
|
remove: () => void;
|
|
71
79
|
stopEditing: () => void;
|
|
72
80
|
"update:isSelected": (value: boolean) => void;
|
|
81
|
+
validationError: (value: string) => void;
|
|
82
|
+
validationSuccess: () => void;
|
|
73
83
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
84
|
label: {
|
|
75
85
|
type: import("vue").PropType<string>;
|
|
@@ -136,11 +146,21 @@ declare const TagTypes: () => import("vue").DefineComponent<{
|
|
|
136
146
|
type: import("vue").PropType<string>;
|
|
137
147
|
default: string;
|
|
138
148
|
};
|
|
149
|
+
validationPattern: {
|
|
150
|
+
type: import("vue").PropType<string>;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
validationErrorText: {
|
|
154
|
+
type: import("vue").PropType<string>;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
139
157
|
}>> & {
|
|
140
158
|
onRemove?: () => any;
|
|
141
159
|
"onUpdate:label"?: (value: string) => any;
|
|
142
160
|
onStopEditing?: () => any;
|
|
143
161
|
"onUpdate:isSelected"?: (value: boolean) => any;
|
|
162
|
+
onValidationError?: (value: string) => any;
|
|
163
|
+
onValidationSuccess?: () => any;
|
|
144
164
|
}, {
|
|
145
165
|
label: string;
|
|
146
166
|
testId: string;
|
|
@@ -157,5 +177,7 @@ declare const TagTypes: () => import("vue").DefineComponent<{
|
|
|
157
177
|
isInvalid: boolean;
|
|
158
178
|
selectable: boolean;
|
|
159
179
|
maxLengthTooltip: string;
|
|
180
|
+
validationPattern: string;
|
|
181
|
+
validationErrorText: string;
|
|
160
182
|
}>[];
|
|
161
183
|
export { Tag, TagTypes };
|
package/index.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ declare const _default: {
|
|
|
29
29
|
$data: {};
|
|
30
30
|
$props: Partial<{
|
|
31
31
|
testId: string;
|
|
32
|
+
delay: number | {
|
|
33
|
+
show: number;
|
|
34
|
+
hide: number;
|
|
35
|
+
};
|
|
32
36
|
placement: import("floating-vue").Placement;
|
|
33
37
|
disabled: boolean;
|
|
34
38
|
distance: number;
|
|
@@ -43,6 +47,13 @@ declare const _default: {
|
|
|
43
47
|
type: import("vue").PropType<string>;
|
|
44
48
|
default: string;
|
|
45
49
|
};
|
|
50
|
+
delay: {
|
|
51
|
+
type: import("vue").PropType<number | {
|
|
52
|
+
show: number;
|
|
53
|
+
hide: number;
|
|
54
|
+
}>;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
46
57
|
placement: {
|
|
47
58
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
48
59
|
default: string;
|
|
@@ -81,7 +92,7 @@ declare const _default: {
|
|
|
81
92
|
};
|
|
82
93
|
}>> & {
|
|
83
94
|
onIsOpen?: (value: boolean) => any;
|
|
84
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "placement" | "disabled" | "distance" | "container" | "autoHide" | "popperClass" | "isOpen" | "trigger" | "skidding">;
|
|
95
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "delay" | "placement" | "disabled" | "distance" | "container" | "autoHide" | "popperClass" | "isOpen" | "trigger" | "skidding">;
|
|
85
96
|
$attrs: {
|
|
86
97
|
[x: string]: unknown;
|
|
87
98
|
};
|
|
@@ -100,6 +111,13 @@ declare const _default: {
|
|
|
100
111
|
type: import("vue").PropType<string>;
|
|
101
112
|
default: string;
|
|
102
113
|
};
|
|
114
|
+
delay: {
|
|
115
|
+
type: import("vue").PropType<number | {
|
|
116
|
+
show: number;
|
|
117
|
+
hide: number;
|
|
118
|
+
}>;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
103
121
|
placement: {
|
|
104
122
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
105
123
|
default: string;
|
|
@@ -144,6 +162,10 @@ declare const _default: {
|
|
|
144
162
|
isOpen: (value: boolean) => void;
|
|
145
163
|
}, string, {
|
|
146
164
|
testId: string;
|
|
165
|
+
delay: number | {
|
|
166
|
+
show: number;
|
|
167
|
+
hide: number;
|
|
168
|
+
};
|
|
147
169
|
placement: import("floating-vue").Placement;
|
|
148
170
|
disabled: boolean;
|
|
149
171
|
distance: number;
|
|
@@ -178,6 +200,13 @@ declare const _default: {
|
|
|
178
200
|
type: import("vue").PropType<string>;
|
|
179
201
|
default: string;
|
|
180
202
|
};
|
|
203
|
+
delay: {
|
|
204
|
+
type: import("vue").PropType<number | {
|
|
205
|
+
show: number;
|
|
206
|
+
hide: number;
|
|
207
|
+
}>;
|
|
208
|
+
default: number;
|
|
209
|
+
};
|
|
181
210
|
placement: {
|
|
182
211
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
183
212
|
default: string;
|
|
@@ -227,6 +256,13 @@ declare const _default: {
|
|
|
227
256
|
type: import("vue").PropType<string>;
|
|
228
257
|
default: string;
|
|
229
258
|
};
|
|
259
|
+
delay: {
|
|
260
|
+
type: import("vue").PropType<number | {
|
|
261
|
+
show: number;
|
|
262
|
+
hide: number;
|
|
263
|
+
}>;
|
|
264
|
+
default: number;
|
|
265
|
+
};
|
|
230
266
|
placement: {
|
|
231
267
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
232
268
|
default: string;
|
|
@@ -271,6 +307,10 @@ declare const _default: {
|
|
|
271
307
|
isOpen: (value: boolean) => void;
|
|
272
308
|
}, string, {
|
|
273
309
|
testId: string;
|
|
310
|
+
delay: number | {
|
|
311
|
+
show: number;
|
|
312
|
+
hide: number;
|
|
313
|
+
};
|
|
274
314
|
placement: import("floating-vue").Placement;
|
|
275
315
|
disabled: boolean;
|
|
276
316
|
distance: number;
|
|
@@ -292,6 +332,10 @@ declare const _default: {
|
|
|
292
332
|
$data: {};
|
|
293
333
|
$props: Partial<{
|
|
294
334
|
testId: string;
|
|
335
|
+
delay: number | {
|
|
336
|
+
show: number;
|
|
337
|
+
hide: number;
|
|
338
|
+
};
|
|
295
339
|
placement: import("floating-vue").Placement;
|
|
296
340
|
disabled: boolean;
|
|
297
341
|
distance: number;
|
|
@@ -306,6 +350,13 @@ declare const _default: {
|
|
|
306
350
|
type: import("vue").PropType<string>;
|
|
307
351
|
default: string;
|
|
308
352
|
};
|
|
353
|
+
delay: {
|
|
354
|
+
type: import("vue").PropType<number | {
|
|
355
|
+
show: number;
|
|
356
|
+
hide: number;
|
|
357
|
+
}>;
|
|
358
|
+
default: number;
|
|
359
|
+
};
|
|
309
360
|
placement: {
|
|
310
361
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
311
362
|
default: string;
|
|
@@ -344,7 +395,7 @@ declare const _default: {
|
|
|
344
395
|
};
|
|
345
396
|
}>> & {
|
|
346
397
|
onIsOpen?: (value: boolean) => any;
|
|
347
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "placement" | "disabled" | "distance" | "container" | "autoHide" | "popperClass" | "isOpen" | "trigger" | "skidding">;
|
|
398
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "delay" | "placement" | "disabled" | "distance" | "container" | "autoHide" | "popperClass" | "isOpen" | "trigger" | "skidding">;
|
|
348
399
|
$attrs: {
|
|
349
400
|
[x: string]: unknown;
|
|
350
401
|
};
|
|
@@ -363,6 +414,13 @@ declare const _default: {
|
|
|
363
414
|
type: import("vue").PropType<string>;
|
|
364
415
|
default: string;
|
|
365
416
|
};
|
|
417
|
+
delay: {
|
|
418
|
+
type: import("vue").PropType<number | {
|
|
419
|
+
show: number;
|
|
420
|
+
hide: number;
|
|
421
|
+
}>;
|
|
422
|
+
default: number;
|
|
423
|
+
};
|
|
366
424
|
placement: {
|
|
367
425
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
368
426
|
default: string;
|
|
@@ -407,6 +465,10 @@ declare const _default: {
|
|
|
407
465
|
isOpen: (value: boolean) => void;
|
|
408
466
|
}, string, {
|
|
409
467
|
testId: string;
|
|
468
|
+
delay: number | {
|
|
469
|
+
show: number;
|
|
470
|
+
hide: number;
|
|
471
|
+
};
|
|
410
472
|
placement: import("floating-vue").Placement;
|
|
411
473
|
disabled: boolean;
|
|
412
474
|
distance: number;
|
|
@@ -441,6 +503,13 @@ declare const _default: {
|
|
|
441
503
|
type: import("vue").PropType<string>;
|
|
442
504
|
default: string;
|
|
443
505
|
};
|
|
506
|
+
delay: {
|
|
507
|
+
type: import("vue").PropType<number | {
|
|
508
|
+
show: number;
|
|
509
|
+
hide: number;
|
|
510
|
+
}>;
|
|
511
|
+
default: number;
|
|
512
|
+
};
|
|
444
513
|
placement: {
|
|
445
514
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
446
515
|
default: string;
|
|
@@ -490,6 +559,13 @@ declare const _default: {
|
|
|
490
559
|
type: import("vue").PropType<string>;
|
|
491
560
|
default: string;
|
|
492
561
|
};
|
|
562
|
+
delay: {
|
|
563
|
+
type: import("vue").PropType<number | {
|
|
564
|
+
show: number;
|
|
565
|
+
hide: number;
|
|
566
|
+
}>;
|
|
567
|
+
default: number;
|
|
568
|
+
};
|
|
493
569
|
placement: {
|
|
494
570
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
495
571
|
default: string;
|
|
@@ -534,6 +610,10 @@ declare const _default: {
|
|
|
534
610
|
isOpen: (value: boolean) => void;
|
|
535
611
|
}, string, {
|
|
536
612
|
testId: string;
|
|
613
|
+
delay: number | {
|
|
614
|
+
show: number;
|
|
615
|
+
hide: number;
|
|
616
|
+
};
|
|
537
617
|
placement: import("floating-vue").Placement;
|
|
538
618
|
disabled: boolean;
|
|
539
619
|
distance: number;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironsource/shared-ui",
|
|
3
|
-
"version": "2.2.0-test.
|
|
3
|
+
"version": "2.2.0-test.24",
|
|
4
4
|
"engines": {
|
|
5
5
|
"npm": ">=7.0.0",
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"upload:visual": "aws s3 cp ./visual-tests s3://mobile-shared-ui-platform/visual-tests/$FOLDER --recursive --exclude '.gitkeep' ",
|
|
48
48
|
"release": "commit-and-tag-version",
|
|
49
49
|
"pw:ci": "cd e2e/playwright && BASE_URL=http://localhost:6006/ npx playwright test --reporter=list --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}",
|
|
50
|
-
"test-storybook-pw": "concurrently 'npm run storybook:dist:pw --silent' 'npx wait-on http://localhost:6006 && npm run pw:ci' --kill-others --success first"
|
|
50
|
+
"test-storybook-pw": "concurrently 'npm run storybook:dist:pw --silent' 'npx wait-on http://localhost:6006 && npm run pw:ci' --kill-others --success first",
|
|
51
|
+
"migrate-colors": "node scripts/migrate-colors.mjs"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
54
|
"@phosphor-icons/vue": "^2.1.6",
|
|
@@ -227,6 +228,7 @@
|
|
|
227
228
|
"./banner": "./components/banner/Banner.vue.js",
|
|
228
229
|
"./alert": "./components/alert/index.js",
|
|
229
230
|
"./link": "./components/link/index.js",
|
|
231
|
+
"./helpText": "./components/helpText/index.js",
|
|
230
232
|
"./multibar": "./components/multibar/index.js",
|
|
231
233
|
"./typography": "./components/typography/v4/index.js",
|
|
232
234
|
"./themeWrapper": "./components/ThemeWrapper/index.js",
|
|
@@ -237,7 +239,8 @@
|
|
|
237
239
|
"./sortableList": "./components/sortableList/index.js",
|
|
238
240
|
"./composables/useFormValidation": "./composables/useFormValidation.js",
|
|
239
241
|
"./composables/useDateService": "./composables/useDateService.js",
|
|
240
|
-
"./utils/": "./utils/index.ts"
|
|
242
|
+
"./utils/": "./utils/index.ts",
|
|
243
|
+
"./tag": "./components/tag/index.js"
|
|
241
244
|
},
|
|
242
245
|
"typesVersions": {
|
|
243
246
|
"*": {
|
|
@@ -454,6 +457,9 @@
|
|
|
454
457
|
"link": [
|
|
455
458
|
"./components/link/index.d.ts"
|
|
456
459
|
],
|
|
460
|
+
"helpText": [
|
|
461
|
+
"./components/helpText/index.d.ts"
|
|
462
|
+
],
|
|
457
463
|
"multibar": [
|
|
458
464
|
"./components/multibar/index.d.ts"
|
|
459
465
|
],
|
|
@@ -489,6 +495,9 @@
|
|
|
489
495
|
],
|
|
490
496
|
"composables/useDateService": [
|
|
491
497
|
"./composables/useDateService.d.ts"
|
|
498
|
+
],
|
|
499
|
+
"tag": [
|
|
500
|
+
"./components/tag/index.d.ts"
|
|
492
501
|
]
|
|
493
502
|
}
|
|
494
503
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.chart-container[data-v-3e022c94]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%;overflow:hidden}.chart-planes[data-v-3e022c94]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-3e022c94]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-3e022c94]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-3e022c94]{border-left:1px solid var(--common-divider)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.form-card[data-v-86feae7b]{border-radius:var(--border-radius-sm);border:1px solid var(--common-divider);background:var(--background-paper)}.card-header[data-v-86feae7b]{display:flex;flex-direction:row;align-items:center;min-height:var(--spacing-600);border-radius:calc(var(--border-radius-sm) - 1px) calc(var(--border-radius-sm) - 1px) 0 0;color:var(--text-primary);background:var(--background-paper-elevation-0);padding:0 var(--spacing-300);border-bottom:1px solid var(--common-divider)}.card-header .skeleton-header[data-v-86feae7b]{width:220px;height:20px}.card-content[data-v-86feae7b]{padding:var(--spacing-350) var(--spacing-500)}.card-content--no-padding[data-v-86feae7b]{padding:0}.form-actions[data-v-86feae7b]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;min-height:var(--spacing-700)}.form-action[data-v-86feae7b]{margin-left:var(--spacing-100)}.content-skeleton-container[data-v-86feae7b]{display:flex;flex-direction:column}.content-skeleton-container .skeleton-long[data-v-86feae7b]{margin-bottom:24px;width:100%;max-width:896px;height:16px}.content-skeleton-container .skeleton-short[data-v-86feae7b]{margin-bottom:24px;width:100%;max-width:436px;height:16px}
|