@ironsource/shared-ui 2.2.0-rc.41 → 2.2.0-rc.43
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_1036ab1d_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_6f05dc63_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_73af6757_lang.css +1 -0
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_bb0041c1_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_5545bc01_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -1
- package/Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css +1 -0
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_f19e742c_lang.css +1 -0
- package/Tag.vue_vue_type_style_index_0_scoped_b0662035_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_8eef6574_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/ThemeWrapper/ThemeStrore.d.ts +2 -1
- package/components/ThemeWrapper/ThemeStrore.js +14 -11
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -11
- package/components/ThemeWrapper/index.d.ts +2 -1
- package/components/ThemeWrapper/index.js +4 -2
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +1 -1
- package/components/button/v3/ButtonBase.vue.d.ts +1 -1
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/datePicker/v4/DatePickerV4.vue.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +1 -1
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +152 -146
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +1 -1
- package/components/loader/v4/Loader.vue.js +3 -3
- package/components/loader/v4/Loader.vue2.js +1 -1
- package/components/menu/Menu.vue.js +3 -3
- package/components/menu/Menu.vue2.js +33 -30
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +51 -50
- package/components/popover/v4/PopoverV4.vue.js +2 -2
- package/components/popover/v4/PopoverV4.vue2.js +22 -21
- package/components/snackbar/v4/SnackbarV4.vue.js +3 -3
- package/components/snackbar/v4/SnackbarV4.vue2.js +1 -1
- package/components/tag/Tag.vue.d.ts +5 -0
- package/components/tag/Tag.vue.js +3 -3
- package/components/tag/Tag.vue2.js +149 -103
- package/components/tag/index.d.ts +9 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/v3/index.d.ts +20 -20
- package/components/tooltip/v4/TooltipV4.vue.d.ts +1 -1
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
- package/components/tooltip/v4/index.d.ts +20 -20
- package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
- package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +28 -1
- package/index.d.ts +41 -40
- package/index.js +1 -1
- package/package.json +1 -1
- package/style/v4/border-radius.scss +2 -2
- package/style/v4/colors.scss +105 -0
- package/style/v4/elevations.scss +11 -0
- package/style/v4/grid.css +17 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/grid.scss +1 -1
- package/style/v4/spacings.scss +1 -1
- package/style/v4/styleguideV4.scss +1 -0
- package/styleguide.scss +2 -2
- package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +0 -1
- package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
- package/Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css +0 -1
- package/Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_9ae00876_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +0 -1
- package/Tag.vue_vue_type_style_index_0_scoped_3a5abbc4_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_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_b0662035_lang.css"; import { defineComponent as _, ref as b, computed as u, watch as C, nextTick as W, openBlock as g, createBlock as k, unref as l, withCtx as s, createVNode as w, createTextVNode as L, toDisplayString as V, normalizeClass as h, normalizeStyle as F, withModifiers as y, createElementVNode as ee, createCommentVNode as U, withDirectives as N, createElementBlock as j, isRef as ae, withKeys as q, vModelText as le, vShow as A } from "vue";
|
|
2
|
+
import R from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import P from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import te from "../chip/v4/ChipV4.vue.js";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import G from "../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
const ie = { class: "tag-content" }, re = ["placeholder", "maxlength", "onKeyup"], ce = /* @__PURE__ */ _({
|
|
8
8
|
__name: "Tag",
|
|
9
9
|
props: {
|
|
10
10
|
label: { default: "" },
|
|
@@ -20,6 +20,7 @@ const re = { class: "tag-content" }, ie = ["placeholder", "maxlength", "onKeyup"
|
|
|
20
20
|
iconName: { default: "" },
|
|
21
21
|
iconType: { default: "regular" },
|
|
22
22
|
editable: { type: Boolean, default: !1 },
|
|
23
|
+
removable: { type: Boolean, default: !1 },
|
|
23
24
|
selectable: { type: Boolean, default: !0 },
|
|
24
25
|
maxLength: { default: void 0 },
|
|
25
26
|
maxLengthTooltip: { default: "Character limit reached" },
|
|
@@ -27,61 +28,66 @@ const re = { class: "tag-content" }, ie = ["placeholder", "maxlength", "onKeyup"
|
|
|
27
28
|
validationErrorText: { default: "Invalid format" }
|
|
28
29
|
},
|
|
29
30
|
emits: ["update:label", "remove", "stopEditing", "update:isSelected", "validationError", "validationSuccess"],
|
|
30
|
-
setup(a, { emit:
|
|
31
|
-
const e = a, r =
|
|
32
|
-
if (!e.validationPattern || !
|
|
31
|
+
setup(a, { emit: d }) {
|
|
32
|
+
const e = a, r = b(!1), T = b(null), M = b(void 0), c = b(!1), f = b(!1), n = b(e.isSelected || e.editable), x = u(() => {
|
|
33
|
+
if (!e.validationPattern || !i.value)
|
|
33
34
|
return !0;
|
|
34
35
|
try {
|
|
35
|
-
return new RegExp(e.validationPattern).test(
|
|
36
|
+
return new RegExp(e.validationPattern).test(i.value);
|
|
36
37
|
} catch {
|
|
37
38
|
return !0;
|
|
38
39
|
}
|
|
39
|
-
}), v =
|
|
40
|
+
}), v = u(() => !x.value && r.value && i.value), E = u(() => !e.label && !r.value && e.placeholder), I = u(() => e.maxLength && i.value.length >= e.maxLength && r.value), p = u(() => e.disabled || !e.selectable || r.value ? "outlined" : f.value ? "filled" : !n.value && !e.editable ? "outlined" : e.variant), J = u(() => e.disabled ? "default" : e.isInvalid || v.value ? "error" : n.value || !n.value && e.editable || !e.selectable ? e.color : "default"), i = u({
|
|
40
41
|
get: () => e.label,
|
|
41
|
-
set: (
|
|
42
|
-
|
|
42
|
+
set: (o) => {
|
|
43
|
+
d("update:label", o);
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
|
-
|
|
46
|
-
() => [
|
|
46
|
+
C(
|
|
47
|
+
() => [i.value, r.value],
|
|
47
48
|
() => {
|
|
48
|
-
e.validationPattern && r.value &&
|
|
49
|
+
e.validationPattern && r.value && i.value && (x.value ? d("validationSuccess") : d("validationError", e.validationErrorText));
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
e.disabled || !e.selectable || (e.editable ? (r.value = !0, await
|
|
55
|
-
},
|
|
56
|
-
if (e.validationPattern &&
|
|
52
|
+
const $ = b(null), S = () => $.value?.focus(), D = () => {
|
|
53
|
+
d("remove");
|
|
54
|
+
}, Q = async () => {
|
|
55
|
+
e.disabled || !e.selectable || (e.removable && !e.editable ? (n.value = !n.value, d("update:isSelected", n.value)) : e.editable ? (r.value = !0, await W(), S()) : (n.value = !n.value, d("update:isSelected", n.value)));
|
|
56
|
+
}, X = () => {
|
|
57
|
+
if (e.validationPattern && i.value && !x.value) {
|
|
57
58
|
setTimeout(() => {
|
|
58
|
-
|
|
59
|
+
S();
|
|
59
60
|
}, 0);
|
|
60
61
|
return;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
if (e.validationPattern &&
|
|
63
|
+
z();
|
|
64
|
+
}, z = () => {
|
|
65
|
+
if (e.validationPattern && i.value && !x.value) {
|
|
65
66
|
setTimeout(() => {
|
|
66
|
-
|
|
67
|
+
S();
|
|
67
68
|
}, 0);
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
70
|
-
r.value = !1, !
|
|
71
|
+
r.value = !1, !i.value && !e.placeholder && d("remove"), d("stopEditing");
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
-
() => [
|
|
73
|
+
C(
|
|
74
|
+
() => [i.value, e.placeholder, r.value],
|
|
74
75
|
async () => {
|
|
75
|
-
await
|
|
76
|
+
await W(), r.value && T.value ? M.value = T.value.offsetWidth + "px" : M.value = void 0;
|
|
76
77
|
},
|
|
77
78
|
{ immediate: !0 }
|
|
78
|
-
),
|
|
79
|
+
), C(
|
|
79
80
|
() => e.editable,
|
|
80
81
|
() => {
|
|
81
|
-
e.editable && (
|
|
82
|
+
e.editable && (n.value = !0);
|
|
83
|
+
}
|
|
84
|
+
), C(
|
|
85
|
+
() => e.isSelected,
|
|
86
|
+
(o) => {
|
|
87
|
+
n.value = o;
|
|
82
88
|
}
|
|
83
89
|
);
|
|
84
|
-
const
|
|
90
|
+
const H = {
|
|
85
91
|
default: "var(--default-outlined-border)",
|
|
86
92
|
primary: "var(--primary-main)",
|
|
87
93
|
info: "var(--info-dark)",
|
|
@@ -89,7 +95,7 @@ const re = { class: "tag-content" }, ie = ["placeholder", "maxlength", "onKeyup"
|
|
|
89
95
|
warning: "var(--warning-main)",
|
|
90
96
|
success: "var(--success-main)",
|
|
91
97
|
dark: "var(--common-divider)"
|
|
92
|
-
},
|
|
98
|
+
}, B = {
|
|
93
99
|
default: "var(--action-active)",
|
|
94
100
|
primary: "var(--primary-dark)",
|
|
95
101
|
info: "var(--info-dark)",
|
|
@@ -97,7 +103,7 @@ const re = { class: "tag-content" }, ie = ["placeholder", "maxlength", "onKeyup"
|
|
|
97
103
|
warning: "var(--warning-dark)",
|
|
98
104
|
success: "var(--success-dark)",
|
|
99
105
|
dark: "var(--common-divider)"
|
|
100
|
-
},
|
|
106
|
+
}, K = {
|
|
101
107
|
default: "var(--action-active)",
|
|
102
108
|
primary: "var(--primary-darker)",
|
|
103
109
|
info: "var(--info-darker)",
|
|
@@ -105,136 +111,176 @@ const re = { class: "tag-content" }, ie = ["placeholder", "maxlength", "onKeyup"
|
|
|
105
111
|
warning: "var(--warning-darker)",
|
|
106
112
|
success: "var(--success-darker)",
|
|
107
113
|
dark: "var(--common-divider)"
|
|
108
|
-
},
|
|
114
|
+
}, O = u(() => {
|
|
109
115
|
if (e.disabled)
|
|
110
116
|
return "var(--action-disabled)";
|
|
111
|
-
const
|
|
112
|
-
return
|
|
113
|
-
}),
|
|
117
|
+
const o = e.isInvalid ? "error" : e.color;
|
|
118
|
+
return e.removable && !e.editable ? n.value || !e.selectable ? c.value ? K[o] : o === "primary" ? "var(--primary-contrast-text)" : B[o] : c.value ? "var(--text-primary)" : "var(--action-active)" : c.value ? K[o] : B[o];
|
|
119
|
+
}), Y = u(() => {
|
|
114
120
|
if (e.disabled)
|
|
115
121
|
return "var(--action-disabled)";
|
|
116
|
-
const
|
|
117
|
-
return
|
|
118
|
-
}),
|
|
122
|
+
const o = e.isInvalid ? "error" : e.color;
|
|
123
|
+
return n.value || !e.selectable ? B[o] : "var(--action-active)";
|
|
124
|
+
}), Z = u(() => {
|
|
119
125
|
if (e.editable && e.variant !== "outlined" || !e.selectable) {
|
|
120
|
-
const
|
|
126
|
+
const o = r.value ? H[e.color] : "var(--primary-main-50-p)";
|
|
121
127
|
return {
|
|
122
|
-
"--outline-color": e.isInvalid ?
|
|
128
|
+
"--outline-color": e.isInvalid ? H.error : o
|
|
123
129
|
};
|
|
124
130
|
}
|
|
125
|
-
return
|
|
126
|
-
"--outline-color":
|
|
131
|
+
return f.value && e.variant !== "outlined" && e.color === "primary" && !e.editable ? {
|
|
132
|
+
"--outline-color": n.value ? "var(--primary-main-50-p)" : "var(--action-active)"
|
|
127
133
|
} : {};
|
|
128
134
|
});
|
|
129
|
-
return (
|
|
135
|
+
return (o, t) => (g(), k(l(G), {
|
|
130
136
|
placement: "top",
|
|
131
|
-
text:
|
|
132
|
-
"is-open":
|
|
133
|
-
shown:
|
|
134
|
-
disabled: !
|
|
137
|
+
text: l(v) ? a.validationErrorText : a.maxLengthTooltip,
|
|
138
|
+
"is-open": l(I) || l(v),
|
|
139
|
+
shown: l(I) || l(v).length > 0,
|
|
140
|
+
disabled: !l(I) && !l(v),
|
|
135
141
|
trigger: "click",
|
|
136
142
|
distance: 10,
|
|
137
143
|
skidding: 10
|
|
138
144
|
}, {
|
|
139
|
-
tooltip:
|
|
140
|
-
|
|
141
|
-
default:
|
|
142
|
-
|
|
145
|
+
tooltip: s(() => [
|
|
146
|
+
w(l(R), { variant: "body2" }, {
|
|
147
|
+
default: s(() => [
|
|
148
|
+
L(V(l(v) ? a.validationErrorText : a.maxLengthTooltip), 1)
|
|
143
149
|
]),
|
|
144
150
|
_: 1
|
|
145
151
|
})
|
|
146
152
|
]),
|
|
147
|
-
default:
|
|
148
|
-
|
|
153
|
+
default: s(() => [
|
|
154
|
+
w(l(te), {
|
|
149
155
|
class: h({
|
|
150
156
|
"rounded-tag": a.rounded,
|
|
151
|
-
"tag-editing": r.value &&
|
|
157
|
+
"tag-editing": r.value && l(p) !== "outlined",
|
|
152
158
|
// outlined chips have an outline
|
|
153
|
-
"tag-hover-outline": a.label &&
|
|
159
|
+
"tag-hover-outline": a.label && f.value && l(p) !== "outlined",
|
|
154
160
|
// outlined chips have an outline
|
|
155
|
-
"unselected-tag-hover-outline": a.label &&
|
|
161
|
+
"unselected-tag-hover-outline": a.label && f.value && l(p) !== "outlined" && !n.value && !a.editable,
|
|
156
162
|
// for unselected tags that are not editable, we want to show a hover outline
|
|
157
163
|
"tag-disabled": a.disabled,
|
|
158
|
-
"empty-tag":
|
|
159
|
-
"unselected-tag": !
|
|
160
|
-
"editable-tag": a.editable && !a.disabled
|
|
164
|
+
"empty-tag": l(E),
|
|
165
|
+
"unselected-tag": !n.value && a.selectable && a.label && !f.value,
|
|
166
|
+
"editable-tag": a.editable && !a.disabled && !a.removable
|
|
161
167
|
}),
|
|
162
|
-
label:
|
|
168
|
+
label: l(i),
|
|
163
169
|
"test-id": a.testId,
|
|
164
|
-
color:
|
|
170
|
+
color: l(J),
|
|
165
171
|
size: a.size,
|
|
166
|
-
variant:
|
|
172
|
+
variant: l(p),
|
|
167
173
|
disabled: a.disabled,
|
|
168
|
-
style:
|
|
169
|
-
onMouseover:
|
|
170
|
-
onMouseleave:
|
|
171
|
-
onClick:
|
|
174
|
+
style: F(l(Z)),
|
|
175
|
+
onMouseover: t[7] || (t[7] = (m) => f.value = !0),
|
|
176
|
+
onMouseleave: t[8] || (t[8] = (m) => f.value = !1),
|
|
177
|
+
onClick: y(Q, ["stop"])
|
|
172
178
|
}, {
|
|
173
|
-
default:
|
|
174
|
-
|
|
175
|
-
a.iconName ? (
|
|
179
|
+
default: s(() => [
|
|
180
|
+
ee("div", ie, [
|
|
181
|
+
a.iconName ? (g(), k(l(P), {
|
|
176
182
|
key: 0,
|
|
177
183
|
name: a.iconName,
|
|
178
184
|
size: "16px",
|
|
179
|
-
color:
|
|
185
|
+
color: l(Y),
|
|
180
186
|
class: "tag-icon",
|
|
181
187
|
type: a.iconType
|
|
182
|
-
}, null, 8, ["name", "color", "type"])) :
|
|
183
|
-
r.value ?
|
|
188
|
+
}, null, 8, ["name", "color", "type"])) : U("", !0),
|
|
189
|
+
r.value ? N((g(), j("input", {
|
|
184
190
|
key: 2,
|
|
185
191
|
ref_key: "inputRef",
|
|
186
|
-
ref:
|
|
187
|
-
"onUpdate:modelValue":
|
|
192
|
+
ref: $,
|
|
193
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => ae(i) ? i.value = m : null),
|
|
188
194
|
placeholder: a.placeholder,
|
|
189
195
|
class: h(["tag-input", { "tag-input-outline": a.variant === "outlined" }]),
|
|
190
196
|
spellcheck: "false",
|
|
191
|
-
style:
|
|
197
|
+
style: F({ width: M.value }),
|
|
192
198
|
maxlength: a.maxLength,
|
|
193
|
-
onBlur:
|
|
199
|
+
onBlur: X,
|
|
194
200
|
onKeyup: [
|
|
195
|
-
|
|
196
|
-
|
|
201
|
+
q(y(z, ["prevent"]), ["enter"]),
|
|
202
|
+
q(y(z, ["prevent"]), ["esc"])
|
|
197
203
|
]
|
|
198
|
-
}, null, 46,
|
|
204
|
+
}, null, 46, re)), [
|
|
199
205
|
[
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
le,
|
|
207
|
+
l(i),
|
|
202
208
|
void 0,
|
|
203
209
|
{ trim: !0 }
|
|
204
210
|
]
|
|
205
|
-
]) : (
|
|
211
|
+
]) : (g(), k(l(R), {
|
|
206
212
|
key: 1,
|
|
207
213
|
variant: "chipLabel",
|
|
208
214
|
class: h(["tag-label", {
|
|
209
|
-
"tag-label--placeholder": !
|
|
215
|
+
"tag-label--placeholder": !l(i) && a.placeholder,
|
|
210
216
|
"tag-label--disabled": a.disabled
|
|
211
217
|
}])
|
|
212
218
|
}, {
|
|
213
|
-
default:
|
|
214
|
-
|
|
219
|
+
default: s(() => [
|
|
220
|
+
L(V(l(i) || a.placeholder), 1)
|
|
215
221
|
]),
|
|
216
222
|
_: 1
|
|
217
223
|
}, 8, ["class"])),
|
|
218
|
-
r.value ? (
|
|
224
|
+
r.value ? (g(), j("span", {
|
|
219
225
|
key: 3,
|
|
220
226
|
ref_key: "sizerRef",
|
|
221
|
-
ref:
|
|
227
|
+
ref: T,
|
|
222
228
|
class: "tag-input-sizer"
|
|
223
|
-
},
|
|
229
|
+
}, V(l(i) || a.placeholder || ""), 513)) : U("", !0)
|
|
224
230
|
]),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
231
|
+
a.removable && !a.editable && a.selectable ? (g(), k(l(G), {
|
|
232
|
+
key: 0,
|
|
233
|
+
placement: "top",
|
|
234
|
+
text: "Delete",
|
|
235
|
+
trigger: "hover",
|
|
236
|
+
distance: 8,
|
|
237
|
+
skidding: 0
|
|
238
|
+
}, {
|
|
239
|
+
tooltip: s(() => [
|
|
240
|
+
w(l(R), { variant: "body2" }, {
|
|
241
|
+
default: s(() => [
|
|
242
|
+
L("Delete")
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
})
|
|
246
|
+
]),
|
|
247
|
+
default: s(() => [
|
|
248
|
+
N(w(l(P), {
|
|
249
|
+
class: h(["clear-button", { "clear-button--invalid": a.isInvalid || l(v) }]),
|
|
250
|
+
name: a.editable ? "x-circle" : "trash-simple",
|
|
251
|
+
size: "16px",
|
|
252
|
+
type: a.editable ? "fill" : "regular",
|
|
253
|
+
color: l(O),
|
|
254
|
+
onMousedown: t[1] || (t[1] = y(() => {
|
|
255
|
+
}, ["prevent"])),
|
|
256
|
+
onMouseover: t[2] || (t[2] = (m) => c.value = !0),
|
|
257
|
+
onMouseleave: t[3] || (t[3] = (m) => c.value = !1),
|
|
258
|
+
onClick: y(D, ["stop"])
|
|
259
|
+
}, null, 8, ["class", "name", "type", "color", "onClick"]), [
|
|
260
|
+
[
|
|
261
|
+
A,
|
|
262
|
+
a.editable && a.selectable && (r.value || !l(E)) || a.removable && !a.editable && a.selectable
|
|
263
|
+
]
|
|
264
|
+
])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})) : N((g(), k(l(P), {
|
|
268
|
+
key: 1,
|
|
269
|
+
class: h(["clear-button", { "clear-button--invalid": a.isInvalid || l(v) }]),
|
|
270
|
+
name: a.editable ? "x-circle" : "trash-simple",
|
|
228
271
|
size: "16px",
|
|
229
|
-
type: "fill",
|
|
230
|
-
color:
|
|
231
|
-
onMousedown:
|
|
272
|
+
type: a.editable ? "fill" : "regular",
|
|
273
|
+
color: l(O),
|
|
274
|
+
onMousedown: t[4] || (t[4] = y(() => {
|
|
232
275
|
}, ["prevent"])),
|
|
233
|
-
onMouseover:
|
|
234
|
-
onMouseleave:
|
|
235
|
-
onClick:
|
|
236
|
-
}, null, 8, ["class", "color", "onClick"]), [
|
|
237
|
-
[
|
|
276
|
+
onMouseover: t[5] || (t[5] = (m) => c.value = !0),
|
|
277
|
+
onMouseleave: t[6] || (t[6] = (m) => c.value = !1),
|
|
278
|
+
onClick: y(D, ["stop"])
|
|
279
|
+
}, null, 8, ["class", "name", "type", "color", "onClick"])), [
|
|
280
|
+
[
|
|
281
|
+
A,
|
|
282
|
+
a.editable && a.selectable && (r.value || !l(E)) || a.removable && !a.editable && a.selectable
|
|
283
|
+
]
|
|
238
284
|
])
|
|
239
285
|
]),
|
|
240
286
|
_: 1
|
|
@@ -57,6 +57,10 @@ declare const TagTypes: () => import("vue").DefineComponent<{
|
|
|
57
57
|
type: import("vue").PropType<boolean>;
|
|
58
58
|
default: boolean;
|
|
59
59
|
};
|
|
60
|
+
removable: {
|
|
61
|
+
type: import("vue").PropType<boolean>;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
60
64
|
selectable: {
|
|
61
65
|
type: import("vue").PropType<boolean>;
|
|
62
66
|
default: boolean;
|
|
@@ -138,6 +142,10 @@ declare const TagTypes: () => import("vue").DefineComponent<{
|
|
|
138
142
|
type: import("vue").PropType<boolean>;
|
|
139
143
|
default: boolean;
|
|
140
144
|
};
|
|
145
|
+
removable: {
|
|
146
|
+
type: import("vue").PropType<boolean>;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
141
149
|
selectable: {
|
|
142
150
|
type: import("vue").PropType<boolean>;
|
|
143
151
|
default: boolean;
|
|
@@ -175,6 +183,7 @@ declare const TagTypes: () => import("vue").DefineComponent<{
|
|
|
175
183
|
iconType: "fill" | "regular";
|
|
176
184
|
editable: boolean;
|
|
177
185
|
isInvalid: boolean;
|
|
186
|
+
removable: boolean;
|
|
178
187
|
selectable: boolean;
|
|
179
188
|
maxLengthTooltip: string;
|
|
180
189
|
validationPattern: string;
|
|
@@ -40,9 +40,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
40
|
disabled: boolean;
|
|
41
41
|
testId: string;
|
|
42
42
|
}>>>, {
|
|
43
|
+
theme: string;
|
|
43
44
|
header: string;
|
|
44
45
|
text: string;
|
|
45
|
-
theme: string;
|
|
46
46
|
testId: string;
|
|
47
47
|
delay: number;
|
|
48
48
|
triggers: TooltipTriggers[];
|
|
@@ -3,9 +3,9 @@ declare const TooltipTypes: () => ({
|
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
|
+
theme: string;
|
|
6
7
|
header: string;
|
|
7
8
|
text: string;
|
|
8
|
-
theme: string;
|
|
9
9
|
testId: string;
|
|
10
10
|
delay: number;
|
|
11
11
|
triggers: import("../common/Tooltip.types").TooltipTriggers[];
|
|
@@ -13,6 +13,10 @@ declare const TooltipTypes: () => ({
|
|
|
13
13
|
placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
theme: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
16
20
|
header: {
|
|
17
21
|
type: import("vue").PropType<string>;
|
|
18
22
|
default: any;
|
|
@@ -21,10 +25,6 @@ declare const TooltipTypes: () => ({
|
|
|
21
25
|
type: import("vue").PropType<string>;
|
|
22
26
|
default: any;
|
|
23
27
|
};
|
|
24
|
-
theme: {
|
|
25
|
-
type: import("vue").PropType<string>;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
28
|
testId: {
|
|
29
29
|
type: import("vue").PropType<string>;
|
|
30
30
|
default: string;
|
|
@@ -49,7 +49,7 @@ declare const TooltipTypes: () => ({
|
|
|
49
49
|
type: import("vue").PropType<boolean>;
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
52
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "header" | "text" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled">;
|
|
53
53
|
$attrs: {
|
|
54
54
|
[x: string]: unknown;
|
|
55
55
|
};
|
|
@@ -64,6 +64,10 @@ declare const TooltipTypes: () => ({
|
|
|
64
64
|
$emit: (event: string, ...args: any[]) => void;
|
|
65
65
|
$el: any;
|
|
66
66
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
+
theme: {
|
|
68
|
+
type: import("vue").PropType<string>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
67
71
|
header: {
|
|
68
72
|
type: import("vue").PropType<string>;
|
|
69
73
|
default: any;
|
|
@@ -72,10 +76,6 @@ declare const TooltipTypes: () => ({
|
|
|
72
76
|
type: import("vue").PropType<string>;
|
|
73
77
|
default: any;
|
|
74
78
|
};
|
|
75
|
-
theme: {
|
|
76
|
-
type: import("vue").PropType<string>;
|
|
77
|
-
default: string;
|
|
78
|
-
};
|
|
79
79
|
testId: {
|
|
80
80
|
type: import("vue").PropType<string>;
|
|
81
81
|
default: string;
|
|
@@ -101,9 +101,9 @@ declare const TooltipTypes: () => ({
|
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
103
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
104
|
+
theme: string;
|
|
104
105
|
header: string;
|
|
105
106
|
text: string;
|
|
106
|
-
theme: string;
|
|
107
107
|
testId: string;
|
|
108
108
|
delay: number;
|
|
109
109
|
triggers: import("../common/Tooltip.types").TooltipTriggers[];
|
|
@@ -131,6 +131,10 @@ declare const TooltipTypes: () => ({
|
|
|
131
131
|
$nextTick: typeof import("vue").nextTick;
|
|
132
132
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
133
133
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
theme: {
|
|
135
|
+
type: import("vue").PropType<string>;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
134
138
|
header: {
|
|
135
139
|
type: import("vue").PropType<string>;
|
|
136
140
|
default: any;
|
|
@@ -139,10 +143,6 @@ declare const TooltipTypes: () => ({
|
|
|
139
143
|
type: import("vue").PropType<string>;
|
|
140
144
|
default: any;
|
|
141
145
|
};
|
|
142
|
-
theme: {
|
|
143
|
-
type: import("vue").PropType<string>;
|
|
144
|
-
default: string;
|
|
145
|
-
};
|
|
146
146
|
testId: {
|
|
147
147
|
type: import("vue").PropType<string>;
|
|
148
148
|
default: string;
|
|
@@ -172,6 +172,10 @@ declare const TooltipTypes: () => ({
|
|
|
172
172
|
__isTeleport?: never;
|
|
173
173
|
__isSuspense?: never;
|
|
174
174
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
175
|
+
theme: {
|
|
176
|
+
type: import("vue").PropType<string>;
|
|
177
|
+
default: string;
|
|
178
|
+
};
|
|
175
179
|
header: {
|
|
176
180
|
type: import("vue").PropType<string>;
|
|
177
181
|
default: any;
|
|
@@ -180,10 +184,6 @@ declare const TooltipTypes: () => ({
|
|
|
180
184
|
type: import("vue").PropType<string>;
|
|
181
185
|
default: any;
|
|
182
186
|
};
|
|
183
|
-
theme: {
|
|
184
|
-
type: import("vue").PropType<string>;
|
|
185
|
-
default: string;
|
|
186
|
-
};
|
|
187
187
|
testId: {
|
|
188
188
|
type: import("vue").PropType<string>;
|
|
189
189
|
default: string;
|
|
@@ -209,9 +209,9 @@ declare const TooltipTypes: () => ({
|
|
|
209
209
|
default: boolean;
|
|
210
210
|
};
|
|
211
211
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
212
|
+
theme: string;
|
|
212
213
|
header: string;
|
|
213
214
|
text: string;
|
|
214
|
-
theme: string;
|
|
215
215
|
testId: string;
|
|
216
216
|
delay: number;
|
|
217
217
|
triggers: import("../common/Tooltip.types").TooltipTriggers[];
|
|
@@ -68,9 +68,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
68
68
|
}>>> & {
|
|
69
69
|
onShow?: () => any;
|
|
70
70
|
}, {
|
|
71
|
+
theme: string;
|
|
71
72
|
header: string;
|
|
72
73
|
text: string;
|
|
73
|
-
theme: string;
|
|
74
74
|
testId: string;
|
|
75
75
|
delay: number;
|
|
76
76
|
triggers: TooltipTriggers[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TooltipV4.
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
5
|
+
const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-f88fbece"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as T, computed as C, onMounted as N, watch as B, onUnmounted as E, renderSlot as i, openBlock as c, createBlock as u, unref as n, mergeProps as g, withCtx as f, createTextVNode as b, toDisplayString as $, createElementVNode as I } from "vue";
|
|
2
2
|
import V from "./TextWithTitleContent.vue.js";
|
|
3
3
|
import { Tooltip as W } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as p } from "../../../testids/index.js";
|