@ironsource/shared-ui 2.1.6-test.14 → 2.1.6-test.15
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_06e0871a_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
- package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
- package/README.md +35 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +28 -0
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +67 -46
- package/components/alert/index.d.ts +104 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +6 -5
- package/components/autocomplete/index.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +7 -7
- package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
- package/components/button/v4/index.d.ts +61 -61
- package/components/chip/v4/Chip.types.d.ts +6 -0
- package/components/chip/v4/ChipV4.vue.d.ts +28 -35
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +28 -59
- package/components/chip/v4/index.d.ts +45 -148
- package/components/datePicker/common/DatePicker.common.js +14 -14
- package/components/datePicker/v4/DatePickerV4.vue2.js +3 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +3 -2
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +20 -20
- package/components/dropdown/common/Dropdown.common.js +80 -75
- package/components/dropdown/common/Option.common.d.ts +1 -1
- package/components/dropdown/common/Option.common.js +9 -9
- package/components/dropdown/composables/useChildOptions.d.ts +7 -0
- package/components/dropdown/composables/useChildOptions.js +14 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +14 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
- package/components/dropdown/v4/DropdownV4.vue.d.ts +22 -6
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +81 -73
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +51 -45
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
- package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +332 -49
- package/components/dropdown/v4/index.js +7 -4
- package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
- package/components/emptyState/v3/index.d.ts +47 -47
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/icon/v4/Icon.types.d.ts +1 -1
- package/components/icon/v4/IconV4.vue.d.ts +16 -6
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +36 -33
- package/components/icon/v4/index.d.ts +53 -15
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +1 -1
- package/components/layout/FoldableSection.vue.js +5 -5
- package/components/layout/FoldableSection.vue2.js +1 -1
- package/components/multibar/MultiBarMenu.vue2.js +12 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +65 -61
- package/components/table/v4/DataGrid.vue.d.ts +5 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +166 -162
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/components/table/v4/index.d.ts +16 -4
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/toggle/v4/index.d.ts +20 -20
- package/composables/useFormValidation.js +19 -13
- package/design-foundation.stories/icons/iconsData.d.ts +5 -1
- package/index.d.ts +1091 -632
- package/mocks/apps.d.ts +1 -0
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/utils/text.d.ts +1 -0
- package/utils/text.js +9 -0
- package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +0 -1
- package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
|
@@ -58,8 +58,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
58
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
59
59
|
}, {
|
|
60
60
|
text: string;
|
|
61
|
-
size: "small" | "medium";
|
|
62
61
|
color: "primary" | "test";
|
|
62
|
+
size: "small" | "medium";
|
|
63
63
|
testId: string;
|
|
64
64
|
isLoading: boolean;
|
|
65
65
|
hoverHelpText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ToggleV4.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ToggleV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a4aa32fb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../ToggleV4.
|
|
1
|
+
import "../../../ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css"; import { defineComponent as k, computed as h, openBlock as i, createElementBlock as m, normalizeClass as f, createElementVNode as r, mergeProps as d, unref as t, createCommentVNode as l, renderSlot as g, createBlock as u, withCtx as v, createTextVNode as b, toDisplayString as y, createVNode as V } from "vue";
|
|
2
2
|
import E from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { ToggleTestIdModifiers as a } from "../../../testids/index.js";
|
|
4
4
|
import B from "../../shared/FieldHelpText.vue.js";
|
|
@@ -25,29 +25,29 @@ const L = { class: "toggle-head" }, P = ["disabled", "checked"], F = /* @__PURE_
|
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
26
|
setup(e, { emit: x }) {
|
|
27
27
|
const c = e, T = () => {
|
|
28
|
-
|
|
29
|
-
}, o = H(c.testId, a),
|
|
28
|
+
s.value || x("update:modelValue", !c.modelValue);
|
|
29
|
+
}, o = H(c.testId, a), s = h(() => c.isDisabled || c.isLoading);
|
|
30
30
|
return (n, $) => (i(), m("div", {
|
|
31
31
|
class: f(["toggle", [`toggle--color-${e.color}`, `toggle--size-${e.size}`]])
|
|
32
32
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
r("div", d({ class: "toggle-wrap" }, t(o)[t(a).WRAPPER]), [
|
|
34
|
+
r("div", d({
|
|
35
35
|
class: ["toggle-body", {
|
|
36
36
|
"toggle-active": e.modelValue,
|
|
37
|
-
"toggle-disabled": t(
|
|
37
|
+
"toggle-disabled": t(s)
|
|
38
38
|
}]
|
|
39
39
|
}, t(o)[t(a).BODY], { onClick: T }), [
|
|
40
|
-
|
|
40
|
+
r("div", L, [
|
|
41
41
|
e.isLoading ? (i(), m("span", {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: f(["loader", { "loader-active": e.modelValue }])
|
|
44
44
|
}, null, 2)) : l("", !0)
|
|
45
45
|
])
|
|
46
46
|
], 16),
|
|
47
|
-
|
|
47
|
+
r("input", d({
|
|
48
48
|
type: "checkbox",
|
|
49
49
|
class: "toggle-checkbox",
|
|
50
|
-
disabled: t(
|
|
50
|
+
disabled: t(s),
|
|
51
51
|
checked: e.modelValue
|
|
52
52
|
}, t(o)[t(a).FIELD]), null, 16, P),
|
|
53
53
|
n.$slots["icon-left"] ? g(n.$slots, "icon-left", { key: 0 }, void 0, !0) : l("", !0),
|
|
@@ -55,13 +55,13 @@ const L = { class: "toggle-head" }, P = ["disabled", "checked"], F = /* @__PURE_
|
|
|
55
55
|
key: 1,
|
|
56
56
|
variant: "body1",
|
|
57
57
|
"is-truncated": "",
|
|
58
|
-
class: "toggle-text"
|
|
58
|
+
class: ["toggle-text", { "toggle-disabled-text": t(s) }]
|
|
59
59
|
}, t(o)[t(a).TEXT]), {
|
|
60
60
|
default: v(() => [
|
|
61
|
-
y(
|
|
61
|
+
b(y(e.text ?? (e.modelValue ? e.activeText : e.inactiveText)), 1)
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
|
-
}, 16)) : l("", !0),
|
|
64
|
+
}, 16, ["class"])) : l("", !0),
|
|
65
65
|
n.$slots["icon-right"] ? g(n.$slots, "icon-right", { key: 2 }, void 0, !0) : l("", !0),
|
|
66
66
|
e.hoverHelpText ? (i(), u(t(D), {
|
|
67
67
|
key: 3,
|
|
@@ -4,8 +4,8 @@ declare const ToggleTypes: () => ({
|
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
text: string;
|
|
7
|
-
size: "small" | "medium";
|
|
8
7
|
color: "primary" | "test";
|
|
8
|
+
size: "small" | "medium";
|
|
9
9
|
testId: string;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
hoverHelpText: string;
|
|
@@ -20,14 +20,14 @@ declare const ToggleTypes: () => ({
|
|
|
20
20
|
type: import("vue").PropType<string>;
|
|
21
21
|
default: any;
|
|
22
22
|
};
|
|
23
|
-
size: {
|
|
24
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
23
|
color: {
|
|
28
24
|
type: import("vue").PropType<"primary" | "test">;
|
|
29
25
|
default: string;
|
|
30
26
|
};
|
|
27
|
+
size: {
|
|
28
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
31
|
testId: {
|
|
32
32
|
type: import("vue").PropType<string>;
|
|
33
33
|
default: string;
|
|
@@ -70,7 +70,7 @@ declare const ToggleTypes: () => ({
|
|
|
70
70
|
};
|
|
71
71
|
}>> & {
|
|
72
72
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
73
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "
|
|
73
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "color" | "size" | "testId" | "isLoading" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "activeText" | "inactiveText" | "isDisabled">;
|
|
74
74
|
$attrs: {
|
|
75
75
|
[x: string]: unknown;
|
|
76
76
|
};
|
|
@@ -89,14 +89,14 @@ declare const ToggleTypes: () => ({
|
|
|
89
89
|
type: import("vue").PropType<string>;
|
|
90
90
|
default: any;
|
|
91
91
|
};
|
|
92
|
-
size: {
|
|
93
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
92
|
color: {
|
|
97
93
|
type: import("vue").PropType<"primary" | "test">;
|
|
98
94
|
default: string;
|
|
99
95
|
};
|
|
96
|
+
size: {
|
|
97
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
100
|
testId: {
|
|
101
101
|
type: import("vue").PropType<string>;
|
|
102
102
|
default: string;
|
|
@@ -143,8 +143,8 @@ declare const ToggleTypes: () => ({
|
|
|
143
143
|
"update:modelValue": (value: boolean) => void;
|
|
144
144
|
}, string, {
|
|
145
145
|
text: string;
|
|
146
|
-
size: "small" | "medium";
|
|
147
146
|
color: "primary" | "test";
|
|
147
|
+
size: "small" | "medium";
|
|
148
148
|
testId: string;
|
|
149
149
|
isLoading: boolean;
|
|
150
150
|
hoverHelpText: string;
|
|
@@ -179,14 +179,14 @@ declare const ToggleTypes: () => ({
|
|
|
179
179
|
type: import("vue").PropType<string>;
|
|
180
180
|
default: any;
|
|
181
181
|
};
|
|
182
|
-
size: {
|
|
183
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
184
|
-
default: string;
|
|
185
|
-
};
|
|
186
182
|
color: {
|
|
187
183
|
type: import("vue").PropType<"primary" | "test">;
|
|
188
184
|
default: string;
|
|
189
185
|
};
|
|
186
|
+
size: {
|
|
187
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
190
|
testId: {
|
|
191
191
|
type: import("vue").PropType<string>;
|
|
192
192
|
default: string;
|
|
@@ -238,14 +238,14 @@ declare const ToggleTypes: () => ({
|
|
|
238
238
|
type: import("vue").PropType<string>;
|
|
239
239
|
default: any;
|
|
240
240
|
};
|
|
241
|
-
size: {
|
|
242
|
-
type: import("vue").PropType<"small" | "medium">;
|
|
243
|
-
default: string;
|
|
244
|
-
};
|
|
245
241
|
color: {
|
|
246
242
|
type: import("vue").PropType<"primary" | "test">;
|
|
247
243
|
default: string;
|
|
248
244
|
};
|
|
245
|
+
size: {
|
|
246
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
247
|
+
default: string;
|
|
248
|
+
};
|
|
249
249
|
testId: {
|
|
250
250
|
type: import("vue").PropType<string>;
|
|
251
251
|
default: string;
|
|
@@ -292,8 +292,8 @@ declare const ToggleTypes: () => ({
|
|
|
292
292
|
"update:modelValue": (value: boolean) => void;
|
|
293
293
|
}, string, {
|
|
294
294
|
text: string;
|
|
295
|
-
size: "small" | "medium";
|
|
296
295
|
color: "primary" | "test";
|
|
296
|
+
size: "small" | "medium";
|
|
297
297
|
testId: string;
|
|
298
298
|
isLoading: boolean;
|
|
299
299
|
hoverHelpText: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "yup";
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as d, reactive as f, watch as v } from "vue";
|
|
3
3
|
const E = (e, r = 0) => {
|
|
4
4
|
try {
|
|
5
5
|
window.document.getElementsByClassName(e)[r].scrollIntoView({ behavior: "smooth" });
|
|
@@ -9,28 +9,34 @@ const E = (e, r = 0) => {
|
|
|
9
9
|
}, h = (e) => {
|
|
10
10
|
const r = Object.keys(e)?.[0];
|
|
11
11
|
r && E(`form-field-${r}`);
|
|
12
|
-
},
|
|
12
|
+
}, p = (e, r) => {
|
|
13
13
|
const o = m.object().shape(e);
|
|
14
14
|
try {
|
|
15
15
|
return o.validateSync(r.value, { abortEarly: !1 }), { isValid: !0, errors: {} };
|
|
16
16
|
} catch (i) {
|
|
17
|
-
return { isValid: !1, errors: i.inner.reduce((s,
|
|
17
|
+
return { isValid: !1, errors: i.inner.reduce((s, n) => (s[n.path] = n.message, s), {}) };
|
|
18
18
|
}
|
|
19
19
|
}, b = ({
|
|
20
20
|
formState: e,
|
|
21
21
|
formValidationSchema: r
|
|
22
22
|
}) => {
|
|
23
|
-
const o =
|
|
24
|
-
const { isValid:
|
|
25
|
-
o.value = !0, i.value =
|
|
23
|
+
const o = d(!1), i = d(!0), t = f({}), s = (n) => {
|
|
24
|
+
const { isValid: l, errors: c } = p(r, e);
|
|
25
|
+
o.value = !0, i.value = l, Object.keys(t).forEach((a) => {
|
|
26
26
|
a && !c[a] && delete t[a];
|
|
27
|
-
}), Object.entries(c).forEach(([a,
|
|
28
|
-
t[a] =
|
|
29
|
-
}), !
|
|
27
|
+
}), Object.entries(c).forEach(([a, u]) => {
|
|
28
|
+
t[a] = u;
|
|
29
|
+
}), !l && !n && h(t);
|
|
30
30
|
};
|
|
31
|
-
return v(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
return v(
|
|
32
|
+
e,
|
|
33
|
+
() => {
|
|
34
|
+
o.value && s(!0);
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
deep: !0
|
|
38
|
+
}
|
|
39
|
+
), {
|
|
34
40
|
validationErrors: t,
|
|
35
41
|
isValid: i,
|
|
36
42
|
validate: s
|
|
@@ -40,5 +46,5 @@ export {
|
|
|
40
46
|
E as scrollToElementByClass,
|
|
41
47
|
h as scrollToFirstInvalidElement,
|
|
42
48
|
b as useFormValidation,
|
|
43
|
-
|
|
49
|
+
p as yupValidation
|
|
44
50
|
};
|
|
@@ -11,4 +11,8 @@ declare const iconsABTestData: {
|
|
|
11
11
|
name: string;
|
|
12
12
|
path: string;
|
|
13
13
|
}[];
|
|
14
|
-
|
|
14
|
+
declare const iconsAdNetworks: {
|
|
15
|
+
name: string;
|
|
16
|
+
path: string;
|
|
17
|
+
}[];
|
|
18
|
+
export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, };
|