@ironsource/shared-ui 2.2.0-test.7 → 2.2.0-test.89
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/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_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_b0662035_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- 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/dateRange/common/DateRange.common.js +1 -1
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -0
- 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/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +13 -12
- 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 +131 -0
- package/components/tag/Tag.vue.js +7 -0
- package/components/tag/Tag.vue2.js +295 -0
- package/components/tag/index.d.ts +192 -0
- package/components/tag/index.js +6 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +0 -41
- package/components/tagsField/TagsFieldChip.vue.js +5 -5
- package/components/tagsField/TagsFieldChip.vue2.js +54 -96
- package/components/tagsField/index.d.ts +0 -72
- package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +76 -36
- package/components/tooltip/v4/index.d.ts +20 -1
- package/index.d.ts +157 -38
- package/index.js +84 -80
- package/package.json +6 -2
- package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +0 -1
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_a5f2dd8b_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +0 -1
|
@@ -0,0 +1,295 @@
|
|
|
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
|
+
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
+
import te from "../chip/v4/ChipV4.vue.js";
|
|
6
|
+
import G from "../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
const ie = { class: "tag-content" }, re = ["placeholder", "maxlength", "onKeyup"], ce = /* @__PURE__ */ _({
|
|
8
|
+
__name: "Tag",
|
|
9
|
+
props: {
|
|
10
|
+
label: { default: "" },
|
|
11
|
+
isSelected: { type: Boolean },
|
|
12
|
+
isInvalid: { type: Boolean, default: !1 },
|
|
13
|
+
testId: { default: "" },
|
|
14
|
+
size: { default: "medium" },
|
|
15
|
+
rounded: { type: Boolean, default: !1 },
|
|
16
|
+
disabled: { type: Boolean, default: !1 },
|
|
17
|
+
color: { default: "primary" },
|
|
18
|
+
variant: { default: "filled" },
|
|
19
|
+
placeholder: { default: "" },
|
|
20
|
+
iconName: { default: "" },
|
|
21
|
+
iconType: { default: "regular" },
|
|
22
|
+
editable: { type: Boolean, default: !1 },
|
|
23
|
+
removable: { type: Boolean, default: !1 },
|
|
24
|
+
selectable: { type: Boolean, default: !0 },
|
|
25
|
+
maxLength: { default: void 0 },
|
|
26
|
+
maxLengthTooltip: { default: "Character limit reached" },
|
|
27
|
+
validationPattern: { default: "" },
|
|
28
|
+
validationErrorText: { default: "Invalid format" }
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:label", "remove", "stopEditing", "update:isSelected", "validationError", "validationSuccess"],
|
|
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)
|
|
34
|
+
return !0;
|
|
35
|
+
try {
|
|
36
|
+
return new RegExp(e.validationPattern).test(i.value);
|
|
37
|
+
} catch {
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
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({
|
|
41
|
+
get: () => e.label,
|
|
42
|
+
set: (o) => {
|
|
43
|
+
d("update:label", o);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
C(
|
|
47
|
+
() => [i.value, r.value],
|
|
48
|
+
() => {
|
|
49
|
+
e.validationPattern && r.value && i.value && (x.value ? d("validationSuccess") : d("validationError", e.validationErrorText));
|
|
50
|
+
}
|
|
51
|
+
);
|
|
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) {
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
S();
|
|
60
|
+
}, 0);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
z();
|
|
64
|
+
}, z = () => {
|
|
65
|
+
if (e.validationPattern && i.value && !x.value) {
|
|
66
|
+
setTimeout(() => {
|
|
67
|
+
S();
|
|
68
|
+
}, 0);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
r.value = !1, !i.value && !e.placeholder && d("remove"), d("stopEditing");
|
|
72
|
+
};
|
|
73
|
+
C(
|
|
74
|
+
() => [i.value, e.placeholder, r.value],
|
|
75
|
+
async () => {
|
|
76
|
+
await W(), r.value && T.value ? M.value = T.value.offsetWidth + "px" : M.value = void 0;
|
|
77
|
+
},
|
|
78
|
+
{ immediate: !0 }
|
|
79
|
+
), C(
|
|
80
|
+
() => e.editable,
|
|
81
|
+
() => {
|
|
82
|
+
e.editable && (n.value = !0);
|
|
83
|
+
}
|
|
84
|
+
), C(
|
|
85
|
+
() => e.isSelected,
|
|
86
|
+
(o) => {
|
|
87
|
+
n.value = o;
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
const H = {
|
|
91
|
+
default: "var(--default-outlined-border)",
|
|
92
|
+
primary: "var(--primary-main)",
|
|
93
|
+
info: "var(--info-dark)",
|
|
94
|
+
error: "var(--error-main)",
|
|
95
|
+
warning: "var(--warning-main)",
|
|
96
|
+
success: "var(--success-main)",
|
|
97
|
+
dark: "var(--common-divider)"
|
|
98
|
+
}, B = {
|
|
99
|
+
default: "var(--action-active)",
|
|
100
|
+
primary: "var(--primary-dark)",
|
|
101
|
+
info: "var(--info-dark)",
|
|
102
|
+
error: "var(--error-dark)",
|
|
103
|
+
warning: "var(--warning-dark)",
|
|
104
|
+
success: "var(--success-dark)",
|
|
105
|
+
dark: "var(--common-divider)"
|
|
106
|
+
}, K = {
|
|
107
|
+
default: "var(--action-active)",
|
|
108
|
+
primary: "var(--primary-darker)",
|
|
109
|
+
info: "var(--info-darker)",
|
|
110
|
+
error: "var(--error-darker)",
|
|
111
|
+
warning: "var(--warning-darker)",
|
|
112
|
+
success: "var(--success-darker)",
|
|
113
|
+
dark: "var(--common-divider)"
|
|
114
|
+
}, O = u(() => {
|
|
115
|
+
if (e.disabled)
|
|
116
|
+
return "var(--action-disabled)";
|
|
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(() => {
|
|
120
|
+
if (e.disabled)
|
|
121
|
+
return "var(--action-disabled)";
|
|
122
|
+
const o = e.isInvalid ? "error" : e.color;
|
|
123
|
+
return n.value || !e.selectable ? B[o] : "var(--action-active)";
|
|
124
|
+
}), Z = u(() => {
|
|
125
|
+
if (e.editable && e.variant !== "outlined" || !e.selectable) {
|
|
126
|
+
const o = r.value ? H[e.color] : "var(--primary-main-50-p)";
|
|
127
|
+
return {
|
|
128
|
+
"--outline-color": e.isInvalid ? H.error : o
|
|
129
|
+
};
|
|
130
|
+
}
|
|
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)"
|
|
133
|
+
} : {};
|
|
134
|
+
});
|
|
135
|
+
return (o, t) => (g(), k(l(G), {
|
|
136
|
+
placement: "top",
|
|
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),
|
|
141
|
+
trigger: "click",
|
|
142
|
+
distance: 10,
|
|
143
|
+
skidding: 10
|
|
144
|
+
}, {
|
|
145
|
+
tooltip: s(() => [
|
|
146
|
+
w(l(R), { variant: "body2" }, {
|
|
147
|
+
default: s(() => [
|
|
148
|
+
L(V(l(v) ? a.validationErrorText : a.maxLengthTooltip), 1)
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
]),
|
|
153
|
+
default: s(() => [
|
|
154
|
+
w(l(te), {
|
|
155
|
+
class: h({
|
|
156
|
+
"rounded-tag": a.rounded,
|
|
157
|
+
"tag-editing": r.value && l(p) !== "outlined",
|
|
158
|
+
// outlined chips have an outline
|
|
159
|
+
"tag-hover-outline": a.label && f.value && l(p) !== "outlined",
|
|
160
|
+
// outlined chips have an outline
|
|
161
|
+
"unselected-tag-hover-outline": a.label && f.value && l(p) !== "outlined" && !n.value && !a.editable,
|
|
162
|
+
// for unselected tags that are not editable, we want to show a hover outline
|
|
163
|
+
"tag-disabled": 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
|
|
167
|
+
}),
|
|
168
|
+
label: l(i),
|
|
169
|
+
"test-id": a.testId,
|
|
170
|
+
color: l(J),
|
|
171
|
+
size: a.size,
|
|
172
|
+
variant: l(p),
|
|
173
|
+
disabled: a.disabled,
|
|
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"])
|
|
178
|
+
}, {
|
|
179
|
+
default: s(() => [
|
|
180
|
+
ee("div", ie, [
|
|
181
|
+
a.iconName ? (g(), k(l(P), {
|
|
182
|
+
key: 0,
|
|
183
|
+
name: a.iconName,
|
|
184
|
+
size: "16px",
|
|
185
|
+
color: l(Y),
|
|
186
|
+
class: "tag-icon",
|
|
187
|
+
type: a.iconType
|
|
188
|
+
}, null, 8, ["name", "color", "type"])) : U("", !0),
|
|
189
|
+
r.value ? N((g(), j("input", {
|
|
190
|
+
key: 2,
|
|
191
|
+
ref_key: "inputRef",
|
|
192
|
+
ref: $,
|
|
193
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => ae(i) ? i.value = m : null),
|
|
194
|
+
placeholder: a.placeholder,
|
|
195
|
+
class: h(["tag-input", { "tag-input-outline": a.variant === "outlined" }]),
|
|
196
|
+
spellcheck: "false",
|
|
197
|
+
style: F({ width: M.value }),
|
|
198
|
+
maxlength: a.maxLength,
|
|
199
|
+
onBlur: X,
|
|
200
|
+
onKeyup: [
|
|
201
|
+
q(y(z, ["prevent"]), ["enter"]),
|
|
202
|
+
q(y(z, ["prevent"]), ["esc"])
|
|
203
|
+
]
|
|
204
|
+
}, null, 46, re)), [
|
|
205
|
+
[
|
|
206
|
+
le,
|
|
207
|
+
l(i),
|
|
208
|
+
void 0,
|
|
209
|
+
{ trim: !0 }
|
|
210
|
+
]
|
|
211
|
+
]) : (g(), k(l(R), {
|
|
212
|
+
key: 1,
|
|
213
|
+
variant: "chipLabel",
|
|
214
|
+
class: h(["tag-label", {
|
|
215
|
+
"tag-label--placeholder": !l(i) && a.placeholder,
|
|
216
|
+
"tag-label--disabled": a.disabled
|
|
217
|
+
}])
|
|
218
|
+
}, {
|
|
219
|
+
default: s(() => [
|
|
220
|
+
L(V(l(i) || a.placeholder), 1)
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["class"])),
|
|
224
|
+
r.value ? (g(), j("span", {
|
|
225
|
+
key: 3,
|
|
226
|
+
ref_key: "sizerRef",
|
|
227
|
+
ref: T,
|
|
228
|
+
class: "tag-input-sizer"
|
|
229
|
+
}, V(l(i) || a.placeholder || ""), 513)) : U("", !0)
|
|
230
|
+
]),
|
|
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",
|
|
271
|
+
size: "16px",
|
|
272
|
+
type: a.editable ? "fill" : "regular",
|
|
273
|
+
color: l(O),
|
|
274
|
+
onMousedown: t[4] || (t[4] = y(() => {
|
|
275
|
+
}, ["prevent"])),
|
|
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
|
+
]
|
|
284
|
+
])
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
}, 8, ["class", "label", "test-id", "color", "size", "variant", "disabled", "style", "onClick"])
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
}, 8, ["text", "is-open", "shown", "disabled"]));
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
export {
|
|
294
|
+
ce as default
|
|
295
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import Tag from './Tag.vue';
|
|
2
|
+
declare const TagTypes: () => import("vue").DefineComponent<{
|
|
3
|
+
label: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
testId: {
|
|
9
|
+
type: import("vue").PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
variant: {
|
|
13
|
+
type: import("vue").PropType<"filled" | "outlined">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
type: import("vue").PropType<boolean>;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
iconName: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
rounded: {
|
|
33
|
+
type: import("vue").PropType<boolean>;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
maxLength: {
|
|
37
|
+
type: import("vue").PropType<number>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
isSelected: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
iconType: {
|
|
49
|
+
type: import("vue").PropType<"fill" | "regular">;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
editable: {
|
|
53
|
+
type: import("vue").PropType<boolean>;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
isInvalid: {
|
|
57
|
+
type: import("vue").PropType<boolean>;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
removable: {
|
|
61
|
+
type: import("vue").PropType<boolean>;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
selectable: {
|
|
65
|
+
type: import("vue").PropType<boolean>;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
maxLengthTooltip: {
|
|
69
|
+
type: import("vue").PropType<string>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
validationPattern: {
|
|
73
|
+
type: import("vue").PropType<string>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
validationErrorText: {
|
|
77
|
+
type: import("vue").PropType<string>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
|
+
"update:label": (value: string) => void;
|
|
82
|
+
remove: () => void;
|
|
83
|
+
stopEditing: () => void;
|
|
84
|
+
"update:isSelected": (value: boolean) => void;
|
|
85
|
+
validationError: (value: string) => void;
|
|
86
|
+
validationSuccess: () => void;
|
|
87
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
|
+
label: {
|
|
89
|
+
type: import("vue").PropType<string>;
|
|
90
|
+
required: true;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
testId: {
|
|
94
|
+
type: import("vue").PropType<string>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
variant: {
|
|
98
|
+
type: import("vue").PropType<"filled" | "outlined">;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
disabled: {
|
|
102
|
+
type: import("vue").PropType<boolean>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
color: {
|
|
106
|
+
type: import("vue").PropType<"dark" | "default" | "primary" | "info" | "success" | "warning" | "error">;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
size: {
|
|
110
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
iconName: {
|
|
114
|
+
type: import("vue").PropType<string>;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
rounded: {
|
|
118
|
+
type: import("vue").PropType<boolean>;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
maxLength: {
|
|
122
|
+
type: import("vue").PropType<number>;
|
|
123
|
+
default: any;
|
|
124
|
+
};
|
|
125
|
+
placeholder: {
|
|
126
|
+
type: import("vue").PropType<string>;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
isSelected: {
|
|
130
|
+
type: import("vue").PropType<boolean>;
|
|
131
|
+
required: true;
|
|
132
|
+
};
|
|
133
|
+
iconType: {
|
|
134
|
+
type: import("vue").PropType<"fill" | "regular">;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
editable: {
|
|
138
|
+
type: import("vue").PropType<boolean>;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
isInvalid: {
|
|
142
|
+
type: import("vue").PropType<boolean>;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
removable: {
|
|
146
|
+
type: import("vue").PropType<boolean>;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
selectable: {
|
|
150
|
+
type: import("vue").PropType<boolean>;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
maxLengthTooltip: {
|
|
154
|
+
type: import("vue").PropType<string>;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
validationPattern: {
|
|
158
|
+
type: import("vue").PropType<string>;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
validationErrorText: {
|
|
162
|
+
type: import("vue").PropType<string>;
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
}>> & {
|
|
166
|
+
onRemove?: () => any;
|
|
167
|
+
"onUpdate:label"?: (value: string) => any;
|
|
168
|
+
onStopEditing?: () => any;
|
|
169
|
+
"onUpdate:isSelected"?: (value: boolean) => any;
|
|
170
|
+
onValidationError?: (value: string) => any;
|
|
171
|
+
onValidationSuccess?: () => any;
|
|
172
|
+
}, {
|
|
173
|
+
label: string;
|
|
174
|
+
testId: string;
|
|
175
|
+
variant: "filled" | "outlined";
|
|
176
|
+
disabled: boolean;
|
|
177
|
+
color: "dark" | "default" | "primary" | "info" | "success" | "warning" | "error";
|
|
178
|
+
size: "small" | "medium";
|
|
179
|
+
iconName: string;
|
|
180
|
+
rounded: boolean;
|
|
181
|
+
maxLength: number;
|
|
182
|
+
placeholder: string;
|
|
183
|
+
iconType: "fill" | "regular";
|
|
184
|
+
editable: boolean;
|
|
185
|
+
isInvalid: boolean;
|
|
186
|
+
removable: boolean;
|
|
187
|
+
selectable: boolean;
|
|
188
|
+
maxLengthTooltip: string;
|
|
189
|
+
validationPattern: string;
|
|
190
|
+
validationErrorText: string;
|
|
191
|
+
}>[];
|
|
192
|
+
export { Tag, TagTypes };
|
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
import { ChipSize, ChipColor, ChipVariant } from '../chip/v4/Chip.types';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
2
|
label: string;
|
|
4
3
|
isInvalid?: boolean;
|
|
5
4
|
testId?: string;
|
|
6
|
-
size?: ChipSize;
|
|
7
|
-
rounded?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
removable?: boolean;
|
|
10
|
-
color?: ChipColor;
|
|
11
|
-
iconColor?: string;
|
|
12
|
-
variant?: ChipVariant;
|
|
13
|
-
placeholder?: string;
|
|
14
5
|
}>, {
|
|
15
6
|
isInvalid: boolean;
|
|
16
7
|
label: string;
|
|
17
8
|
testId: string;
|
|
18
|
-
size: string;
|
|
19
|
-
rounded: boolean;
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
removable: boolean;
|
|
22
|
-
color: string;
|
|
23
|
-
iconColor: string;
|
|
24
|
-
variant: string;
|
|
25
|
-
placeholder: string;
|
|
26
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
10
|
"update:label": (value: string) => void;
|
|
28
11
|
remove: () => void;
|
|
@@ -30,41 +13,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
13
|
label: string;
|
|
31
14
|
isInvalid?: boolean;
|
|
32
15
|
testId?: string;
|
|
33
|
-
size?: ChipSize;
|
|
34
|
-
rounded?: boolean;
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
removable?: boolean;
|
|
37
|
-
color?: ChipColor;
|
|
38
|
-
iconColor?: string;
|
|
39
|
-
variant?: ChipVariant;
|
|
40
|
-
placeholder?: string;
|
|
41
16
|
}>, {
|
|
42
17
|
isInvalid: boolean;
|
|
43
18
|
label: string;
|
|
44
19
|
testId: string;
|
|
45
|
-
size: string;
|
|
46
|
-
rounded: boolean;
|
|
47
|
-
disabled: boolean;
|
|
48
|
-
removable: boolean;
|
|
49
|
-
color: string;
|
|
50
|
-
iconColor: string;
|
|
51
|
-
variant: string;
|
|
52
|
-
placeholder: string;
|
|
53
20
|
}>>> & {
|
|
54
21
|
onRemove?: () => any;
|
|
55
22
|
"onUpdate:label"?: (value: string) => any;
|
|
56
23
|
}, {
|
|
57
24
|
label: string;
|
|
58
25
|
testId: string;
|
|
59
|
-
variant: ChipVariant;
|
|
60
|
-
disabled: boolean;
|
|
61
|
-
color: ChipColor;
|
|
62
|
-
size: ChipSize;
|
|
63
|
-
rounded: boolean;
|
|
64
|
-
placeholder: string;
|
|
65
26
|
isInvalid: boolean;
|
|
66
|
-
removable: boolean;
|
|
67
|
-
iconColor: string;
|
|
68
27
|
}>;
|
|
69
28
|
export default _default;
|
|
70
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../TagsFieldChip.
|
|
4
|
-
const
|
|
1
|
+
import e from "./TagsFieldChip.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d186b7ef"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|