@ironsource/shared-ui 2.2.0-test.5 → 2.2.0-test.7
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/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_a5f2dd8b_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +43 -44
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +2 -2
- package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
- package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +3 -3
- package/components/columnPicker/ColumnPicker.vue2.js +173 -153
- package/components/columnPicker/index.d.ts +7 -1
- package/components/dateRange/common/CalendarMonth.common.js +46 -41
- package/components/dateRange/common/DateRange.common.d.ts +1 -0
- package/components/dateRange/common/DateRange.common.js +38 -37
- package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
- package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +2 -1
- package/components/dateRange/v3/index.d.ts +20 -1
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
- package/components/dateRange/v4/index.d.ts +20 -1
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +4 -4
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +126 -124
- package/components/table/v4/index.d.ts +7 -1
- package/components/tagsField/TagsFieldChip.vue.d.ts +41 -0
- package/components/tagsField/TagsFieldChip.vue.js +5 -5
- package/components/tagsField/TagsFieldChip.vue2.js +96 -54
- package/components/tagsField/index.d.ts +114 -3
- package/components/tagsField/index.js +6 -4
- package/index.d.ts +112 -6
- package/index.js +3 -1
- package/package.json +1 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_4c813f30_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +0 -1
|
@@ -1,81 +1,123 @@
|
|
|
1
|
-
import "../../TagsFieldChip.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_a5f2dd8b_lang.css"; import { defineComponent as V, ref as r, computed as b, watch as M, nextTick as k, openBlock as n, createBlock as g, unref as a, normalizeClass as d, normalizeStyle as C, withModifiers as u, withCtx as w, createElementVNode as N, createTextVNode as S, toDisplayString as z, withDirectives as x, createElementBlock as I, isRef as K, withKeys as B, vModelText as D, createCommentVNode as W, createVNode as F, vShow as L } from "vue";
|
|
2
|
+
import O from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import U from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import $ from "../chip/v4/ChipV4.vue.js";
|
|
6
|
+
const j = { class: "chip-content" }, q = ["placeholder", "onKeyup"], Q = /* @__PURE__ */ V({
|
|
7
7
|
__name: "TagsFieldChip",
|
|
8
8
|
props: {
|
|
9
9
|
label: { default: "" },
|
|
10
10
|
isInvalid: { type: Boolean, default: !1 },
|
|
11
|
-
testId: { default: "" }
|
|
11
|
+
testId: { default: "" },
|
|
12
|
+
size: { default: "small" },
|
|
13
|
+
rounded: { type: Boolean, default: !0 },
|
|
14
|
+
disabled: { type: Boolean, default: !1 },
|
|
15
|
+
removable: { type: Boolean, default: !0 },
|
|
16
|
+
color: { default: "default" },
|
|
17
|
+
iconColor: { default: "var(--action-active)" },
|
|
18
|
+
variant: { default: "filled" },
|
|
19
|
+
placeholder: { default: "" }
|
|
12
20
|
},
|
|
13
21
|
emits: ["update:label", "remove"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
get: () =>
|
|
17
|
-
set: (
|
|
18
|
-
|
|
22
|
+
setup(e, { emit: c }) {
|
|
23
|
+
const i = e, t = r(!1), l = b({
|
|
24
|
+
get: () => i.label,
|
|
25
|
+
set: (h) => {
|
|
26
|
+
c("update:label", h);
|
|
19
27
|
}
|
|
20
|
-
}),
|
|
21
|
-
i.value = !0, await
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
}), m = r(null), E = () => m.value?.focus(), R = async () => {
|
|
29
|
+
i.disabled || (t.value = !0, await k(), E());
|
|
30
|
+
}, s = () => {
|
|
31
|
+
t.value = !1, !l.value && !i.placeholder && c("remove");
|
|
32
|
+
}, v = r(null), f = r(void 0);
|
|
33
|
+
M(
|
|
34
|
+
() => [l.value, i.placeholder, t.value],
|
|
35
|
+
async () => {
|
|
36
|
+
await k(), t.value && v.value ? f.value = v.value.offsetWidth + "px" : f.value = void 0;
|
|
37
|
+
},
|
|
38
|
+
{ immediate: !0 }
|
|
39
|
+
);
|
|
40
|
+
const p = {
|
|
41
|
+
default: "var(--default-outlined-border)",
|
|
42
|
+
primary: "var(--primary-main)",
|
|
43
|
+
info: "var(--info-dark)",
|
|
44
|
+
error: "var(--error-main)",
|
|
45
|
+
warning: "var(--warning-main)",
|
|
46
|
+
success: "var(--success-main)",
|
|
47
|
+
dark: "var(--common-divider)"
|
|
48
|
+
}, T = b(() => t.value && i.variant !== "outlined" ? {
|
|
49
|
+
"--outline-color": i.isInvalid ? p.error : p[i.color] || "var(--default-outlined-border)"
|
|
50
|
+
} : {});
|
|
51
|
+
return (h, o) => (n(), g(a($), {
|
|
52
|
+
class: d({
|
|
53
|
+
"rounded-chip": e.rounded,
|
|
54
|
+
"tags-field-chip--editing": t.value && e.variant !== "outlined"
|
|
55
|
+
// outlined chips have an outline
|
|
56
|
+
}),
|
|
57
|
+
label: a(l),
|
|
58
|
+
"test-id": e.testId,
|
|
59
|
+
color: e.isInvalid ? "error" : e.color,
|
|
60
|
+
size: e.size,
|
|
61
|
+
variant: e.variant,
|
|
62
|
+
disabled: e.disabled,
|
|
63
|
+
style: C(a(T)),
|
|
64
|
+
onClick: u(R, ["stop"])
|
|
34
65
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class: c(["chip-label", { "chip-label--hidden": i.value }])
|
|
40
|
-
}, {
|
|
41
|
-
default: f(() => [
|
|
42
|
-
w(T(t(e)), 1)
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 8, ["class"]),
|
|
46
|
-
B(v("input", {
|
|
66
|
+
default: w(() => [
|
|
67
|
+
N("div", j, [
|
|
68
|
+
t.value ? x((n(), I("input", {
|
|
69
|
+
key: 1,
|
|
47
70
|
ref_key: "inputRef",
|
|
48
|
-
ref:
|
|
49
|
-
"onUpdate:modelValue":
|
|
50
|
-
|
|
71
|
+
ref: m,
|
|
72
|
+
"onUpdate:modelValue": o[0] || (o[0] = (y) => K(l) ? l.value = y : null),
|
|
73
|
+
placeholder: e.placeholder,
|
|
74
|
+
class: d(["chip-input", { "chip-input-outline": e.variant === "outlined" }]),
|
|
51
75
|
spellcheck: "false",
|
|
52
|
-
|
|
76
|
+
style: C({ width: f.value }),
|
|
77
|
+
onBlur: s,
|
|
53
78
|
onKeyup: [
|
|
54
|
-
|
|
55
|
-
|
|
79
|
+
B(u(s, ["prevent"]), ["enter"]),
|
|
80
|
+
B(u(s, ["prevent"]), ["esc"])
|
|
56
81
|
]
|
|
57
|
-
}, null,
|
|
58
|
-
[V, i.value],
|
|
82
|
+
}, null, 46, q)), [
|
|
59
83
|
[
|
|
60
|
-
|
|
61
|
-
|
|
84
|
+
D,
|
|
85
|
+
a(l),
|
|
62
86
|
void 0,
|
|
63
87
|
{ trim: !0 }
|
|
64
88
|
]
|
|
65
|
-
])
|
|
89
|
+
]) : (n(), g(a(O), {
|
|
90
|
+
key: 0,
|
|
91
|
+
variant: "chipLabel",
|
|
92
|
+
class: d(["chip-label", { "chip-label--placeholder": !a(l) && e.placeholder }])
|
|
93
|
+
}, {
|
|
94
|
+
default: w(() => [
|
|
95
|
+
S(z(a(l) || e.placeholder), 1)
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["class"])),
|
|
99
|
+
t.value ? (n(), I("span", {
|
|
100
|
+
key: 2,
|
|
101
|
+
ref_key: "sizerRef",
|
|
102
|
+
ref: v,
|
|
103
|
+
class: "chip-input-sizer"
|
|
104
|
+
}, z(a(l) || e.placeholder || ""), 513)) : W("", !0)
|
|
66
105
|
]),
|
|
67
|
-
|
|
68
|
-
class:
|
|
106
|
+
x(F(a(U), {
|
|
107
|
+
class: d(["clear-button", { "clear-button--invalid": e.isInvalid }]),
|
|
69
108
|
name: "x-circle",
|
|
70
109
|
size: "16px",
|
|
71
110
|
type: "fill",
|
|
72
|
-
|
|
73
|
-
|
|
111
|
+
color: e.isInvalid ? "var(--error-dark)" : e.iconColor,
|
|
112
|
+
onClick: o[1] || (o[1] = u((y) => c("remove"), ["stop"]))
|
|
113
|
+
}, null, 8, ["class", "color"]), [
|
|
114
|
+
[L, e.removable]
|
|
115
|
+
])
|
|
74
116
|
]),
|
|
75
117
|
_: 1
|
|
76
|
-
}, 8, ["class", "label", "test-id", "color", "onClick"]));
|
|
118
|
+
}, 8, ["class", "label", "test-id", "color", "size", "variant", "disabled", "style", "onClick"]));
|
|
77
119
|
}
|
|
78
120
|
});
|
|
79
121
|
export {
|
|
80
|
-
|
|
122
|
+
Q as default
|
|
81
123
|
};
|
|
@@ -1,5 +1,116 @@
|
|
|
1
1
|
import TagsField from './TagsField.vue';
|
|
2
|
-
|
|
2
|
+
import TagsFieldChip from './TagsFieldChip.vue';
|
|
3
|
+
declare const TagsFieldTypes: () => (import("vue").DefineComponent<{
|
|
4
|
+
label: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
required: true;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
testId: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
variant: {
|
|
14
|
+
type: import("vue").PropType<"filled" | "outlined">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
disabled: {
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
color: {
|
|
22
|
+
type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
rounded: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
placeholder: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
isInvalid: {
|
|
38
|
+
type: import("vue").PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
removable: {
|
|
42
|
+
type: import("vue").PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
iconColor: {
|
|
46
|
+
type: import("vue").PropType<string>;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
"update:label": (value: string) => void;
|
|
51
|
+
remove: () => void;
|
|
52
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
label: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
required: true;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
testId: {
|
|
59
|
+
type: import("vue").PropType<string>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
variant: {
|
|
63
|
+
type: import("vue").PropType<"filled" | "outlined">;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
disabled: {
|
|
67
|
+
type: import("vue").PropType<boolean>;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
color: {
|
|
71
|
+
type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
rounded: {
|
|
79
|
+
type: import("vue").PropType<boolean>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
placeholder: {
|
|
83
|
+
type: import("vue").PropType<string>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
isInvalid: {
|
|
87
|
+
type: import("vue").PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
removable: {
|
|
91
|
+
type: import("vue").PropType<boolean>;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
iconColor: {
|
|
95
|
+
type: import("vue").PropType<string>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
}>> & {
|
|
99
|
+
onRemove?: () => any;
|
|
100
|
+
"onUpdate:label"?: (value: string) => any;
|
|
101
|
+
}, {
|
|
102
|
+
label: string;
|
|
103
|
+
testId: string;
|
|
104
|
+
variant: "filled" | "outlined";
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
color: "dark" | "default" | "primary" | "info" | "success" | "warning" | "error";
|
|
107
|
+
size: "small" | "medium";
|
|
108
|
+
rounded: boolean;
|
|
109
|
+
placeholder: string;
|
|
110
|
+
isInvalid: boolean;
|
|
111
|
+
removable: boolean;
|
|
112
|
+
iconColor: string;
|
|
113
|
+
}> | import("vue").DefineComponent<{
|
|
3
114
|
testId: {
|
|
4
115
|
type: import("vue").PropType<string>;
|
|
5
116
|
default: string;
|
|
@@ -71,5 +182,5 @@ declare const TagsFieldTypes: () => import("vue").DefineComponent<{
|
|
|
71
182
|
feedbackText: string;
|
|
72
183
|
feedbackVariant: "success" | "warning" | "error";
|
|
73
184
|
showFeedbackTextIcon: boolean;
|
|
74
|
-
}>[];
|
|
75
|
-
export { TagsField, TagsFieldTypes };
|
|
185
|
+
}>)[];
|
|
186
|
+
export { TagsField, TagsFieldChip, TagsFieldTypes };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import i from "./TagsField.vue.js";
|
|
2
|
+
import o from "./TagsFieldChip.vue.js";
|
|
3
|
+
const r = () => [i, o];
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
i as TagsField,
|
|
6
|
+
o as TagsFieldChip,
|
|
7
|
+
r as TagsFieldTypes
|
|
6
8
|
};
|