@ironsource/shared-ui 2.1.12-rc.45 → 2.1.12-rc.46
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/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +70 -70
- package/components/input/v4/TextField.vue.d.ts +12 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +129 -105
- package/components/input/v4/index.d.ts +46 -2
- package/index.d.ts +92 -4
- package/index.js +1 -1
- package/package.json +1 -1
- package/testids/index.d.ts +3 -1
- package/testids/index.js +7 -7
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
|
@@ -30,6 +30,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
30
|
inlineError?: boolean;
|
|
31
31
|
inlineErrorText?: string;
|
|
32
32
|
inlineErrorTextPlacement?: TooltipPositions;
|
|
33
|
+
clearable?: boolean;
|
|
34
|
+
loading?: boolean;
|
|
33
35
|
}>, {
|
|
34
36
|
modelValue: string;
|
|
35
37
|
placeholder: string;
|
|
@@ -59,11 +61,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
61
|
feedbackVariant: any;
|
|
60
62
|
showFeedbackTextIcon: boolean;
|
|
61
63
|
feedbackPositionAbsolute: boolean;
|
|
64
|
+
clearable: boolean;
|
|
65
|
+
loading: boolean;
|
|
62
66
|
}>, {
|
|
63
67
|
manualFocus: () => any;
|
|
64
68
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
65
69
|
"update:modelValue": (value: string | number) => void;
|
|
66
70
|
apply: () => void;
|
|
71
|
+
clear: () => void;
|
|
67
72
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
68
73
|
modelValue?: string | number;
|
|
69
74
|
placeholder?: string;
|
|
@@ -93,6 +98,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
93
98
|
inlineError?: boolean;
|
|
94
99
|
inlineErrorText?: string;
|
|
95
100
|
inlineErrorTextPlacement?: TooltipPositions;
|
|
101
|
+
clearable?: boolean;
|
|
102
|
+
loading?: boolean;
|
|
96
103
|
}>, {
|
|
97
104
|
modelValue: string;
|
|
98
105
|
placeholder: string;
|
|
@@ -122,8 +129,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
122
129
|
feedbackVariant: any;
|
|
123
130
|
showFeedbackTextIcon: boolean;
|
|
124
131
|
feedbackPositionAbsolute: boolean;
|
|
132
|
+
clearable: boolean;
|
|
133
|
+
loading: boolean;
|
|
125
134
|
}>>> & {
|
|
126
135
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
136
|
+
onClear?: () => any;
|
|
127
137
|
onApply?: () => any;
|
|
128
138
|
}, {
|
|
129
139
|
type: FieldType;
|
|
@@ -132,6 +142,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
132
142
|
disabled: boolean;
|
|
133
143
|
size: FieldSize;
|
|
134
144
|
mandatory: boolean;
|
|
145
|
+
loading: boolean;
|
|
135
146
|
modelValue: string | number;
|
|
136
147
|
hoverHelpText: string;
|
|
137
148
|
hoverHelpTextPlacement: TooltipPositions;
|
|
@@ -154,6 +165,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
154
165
|
feedbackVariant: FeedbackVariant;
|
|
155
166
|
showFeedbackTextIcon: boolean;
|
|
156
167
|
feedbackPositionAbsolute: boolean;
|
|
168
|
+
clearable: boolean;
|
|
157
169
|
}>, {
|
|
158
170
|
iconBefore?(_: {}): any;
|
|
159
171
|
iconAfter?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextField.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextField.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3b7a3661"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import "../../../TextField.
|
|
2
|
-
import
|
|
1
|
+
import "../../../TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css"; import { defineComponent as te, computed as i, ref as le, openBlock as l, createElementBlock as s, mergeProps as d, unref as e, createBlock as f, createCommentVNode as n, createVNode as x, withCtx as b, createElementVNode as V, normalizeClass as F, renderSlot as z, createTextVNode as N, toDisplayString as $, withKeys as ae, withModifiers as D, normalizeProps as H } from "vue";
|
|
2
|
+
import h from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { InputTestIdModifiers as
|
|
4
|
+
import R from "../../tooltip/v4/TooltipV4.vue.js";
|
|
5
|
+
import S from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { InputTestIdModifiers as c } from "../../../testids/index.js";
|
|
7
7
|
import { inputCommon as ne } from "../common/Input.common.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import oe from "../../shared/FieldLabel.vue.js";
|
|
9
|
+
import ie from "../../shared/FieldHelpText.vue.js";
|
|
10
10
|
import W from "../../shared/FieldMaxLength.vue.js";
|
|
11
|
-
import { useTestIdAttrs as
|
|
12
|
-
|
|
11
|
+
import { useTestIdAttrs as re } from "../../../utils/testIds.js";
|
|
12
|
+
import se from "../../loader/v4/Loader.vue.js";
|
|
13
|
+
const de = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "icon-container icon-before"
|
|
15
|
-
},
|
|
16
|
+
}, ue = ["maxlength", "value", "placeholder", "disabled", "type", "step"], fe = ["onClick"], ce = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "inline-error"
|
|
18
|
-
},
|
|
19
|
-
key:
|
|
19
|
+
}, me = {
|
|
20
|
+
key: 8,
|
|
21
|
+
class: "loading-indicator"
|
|
22
|
+
}, ye = {
|
|
23
|
+
key: 9,
|
|
20
24
|
class: "icon-container icon-after"
|
|
21
|
-
},
|
|
25
|
+
}, xe = {
|
|
22
26
|
inheritAttrs: !1
|
|
23
|
-
},
|
|
24
|
-
...
|
|
27
|
+
}, Pe = /* @__PURE__ */ te({
|
|
28
|
+
...xe,
|
|
25
29
|
__name: "TextField",
|
|
26
30
|
props: {
|
|
27
31
|
modelValue: { default: "" },
|
|
@@ -51,53 +55,57 @@ const re = {
|
|
|
51
55
|
showApply: { type: Boolean, default: !1 },
|
|
52
56
|
inlineError: { type: Boolean, default: !1 },
|
|
53
57
|
inlineErrorText: { default: "" },
|
|
54
|
-
inlineErrorTextPlacement: { default: "top" }
|
|
58
|
+
inlineErrorTextPlacement: { default: "top" },
|
|
59
|
+
clearable: { type: Boolean, default: !1 },
|
|
60
|
+
loading: { type: Boolean, default: !1 }
|
|
55
61
|
},
|
|
56
|
-
emits: ["update:modelValue", "apply"],
|
|
57
|
-
setup(t, { expose: K, emit:
|
|
58
|
-
const
|
|
59
|
-
|
|
62
|
+
emits: ["update:modelValue", "apply", "clear"],
|
|
63
|
+
setup(t, { expose: K, emit: p }) {
|
|
64
|
+
const a = t, m = re(a.testId, c), M = () => {
|
|
65
|
+
a.showApply ? p("apply") : r?.confirmable && U();
|
|
60
66
|
}, G = () => g.value.focus(), {
|
|
61
67
|
onConfirm: U,
|
|
62
68
|
onEnter: w,
|
|
63
69
|
inputRef: g,
|
|
64
|
-
isFocused:
|
|
70
|
+
isFocused: k,
|
|
65
71
|
showLabelInside: I,
|
|
66
72
|
api: r,
|
|
67
73
|
labelText: j,
|
|
68
74
|
sizeClass: q,
|
|
69
75
|
handleInput: L,
|
|
70
|
-
handleKeypress:
|
|
71
|
-
} = ne(
|
|
76
|
+
handleKeypress: C
|
|
77
|
+
} = ne(a, p), B = i(() => r.value?.value ?? a.modelValue), J = i(() => (B.value || "").length), P = i(() => ({
|
|
72
78
|
currentLength: J.value,
|
|
73
|
-
maxLength:
|
|
74
|
-
})), A =
|
|
75
|
-
() =>
|
|
76
|
-
), Q =
|
|
77
|
-
() =>
|
|
78
|
-
), T =
|
|
79
|
-
() => !
|
|
80
|
-
),
|
|
81
|
-
() =>
|
|
82
|
-
), X =
|
|
83
|
-
() => (
|
|
84
|
-
), Y =
|
|
85
|
-
() => !
|
|
86
|
-
), Z =
|
|
87
|
-
() =>
|
|
88
|
-
),
|
|
89
|
-
() => r?.error?.value ? "error" :
|
|
90
|
-
),
|
|
79
|
+
maxLength: a.maxLength
|
|
80
|
+
})), A = i(
|
|
81
|
+
() => a.maxLength && a.maxLengthCounterPosition === "outside"
|
|
82
|
+
), Q = i(
|
|
83
|
+
() => a.feedbackText || A.value
|
|
84
|
+
), T = i(
|
|
85
|
+
() => !a.inlineErrorText && !r?.error?.value
|
|
86
|
+
), E = i(
|
|
87
|
+
() => a.inlineErrorText || r?.error?.value
|
|
88
|
+
), X = i(
|
|
89
|
+
() => (a.inlineError || r?.withIcons) && !T.value
|
|
90
|
+
), Y = i(
|
|
91
|
+
() => !a.inlineError && !r?.withIcons && !T.value
|
|
92
|
+
), Z = i(
|
|
93
|
+
() => a.showApply || r?.confirmable && r?.withIcons && !r?.error?.value
|
|
94
|
+
), O = i(
|
|
95
|
+
() => r?.error?.value ? "error" : a.feedbackVariant
|
|
96
|
+
), v = le(!1), _ = i(() => v.value && a.type === "password" ? "text" : a.type), ee = () => {
|
|
97
|
+
p("update:modelValue", ""), p("clear");
|
|
98
|
+
};
|
|
91
99
|
return K({
|
|
92
100
|
manualFocus: G
|
|
93
|
-
}), (
|
|
101
|
+
}), (y, o) => (l(), s("div", d({
|
|
94
102
|
class: {
|
|
95
103
|
"input-with-label-container": !0,
|
|
96
104
|
disabled: t.disabled,
|
|
97
|
-
[`variant-${e(
|
|
105
|
+
[`variant-${e(O)}`]: !0
|
|
98
106
|
}
|
|
99
|
-
}, e(
|
|
100
|
-
t.label && t.labelDirection !== "inside" ? (
|
|
107
|
+
}, e(m)[e(c).WRAPPER]), [
|
|
108
|
+
t.label && t.labelDirection !== "inside" ? (l(), f(oe, {
|
|
101
109
|
key: 0,
|
|
102
110
|
label: t.label,
|
|
103
111
|
mandatory: t.mandatory,
|
|
@@ -105,39 +113,39 @@ const re = {
|
|
|
105
113
|
"hover-help-text-placement": t.hoverHelpTextPlacement,
|
|
106
114
|
disabled: t.disabled,
|
|
107
115
|
"test-id": t.testId
|
|
108
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
109
|
-
x(e(
|
|
116
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
117
|
+
x(e(R), d({
|
|
110
118
|
disabled: !e(Y),
|
|
111
|
-
text: e(
|
|
119
|
+
text: e(E),
|
|
112
120
|
placement: t.inlineErrorTextPlacement
|
|
113
|
-
}, e(
|
|
114
|
-
default:
|
|
115
|
-
|
|
116
|
-
class:
|
|
121
|
+
}, e(m)[e(c).TOOLTIP_WITHOUT_ICON]), {
|
|
122
|
+
default: b(() => [
|
|
123
|
+
V("div", {
|
|
124
|
+
class: F({
|
|
117
125
|
"input-container": !0,
|
|
118
126
|
"label-inside": e(I),
|
|
119
|
-
focused: e(
|
|
127
|
+
focused: e(k)
|
|
120
128
|
})
|
|
121
129
|
}, [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
])) :
|
|
125
|
-
t.prefix ? (
|
|
130
|
+
y.$slots.iconBefore ? (l(), s("div", de, [
|
|
131
|
+
z(y.$slots, "iconBefore", {}, void 0, !0)
|
|
132
|
+
])) : n("", !0),
|
|
133
|
+
t.prefix ? (l(), f(e(S), {
|
|
126
134
|
key: 1,
|
|
127
135
|
class: "prefix-text",
|
|
128
136
|
variant: "body1"
|
|
129
137
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
|
|
138
|
+
default: b(() => [
|
|
139
|
+
N($(t.prefix), 1)
|
|
132
140
|
]),
|
|
133
141
|
_: 1
|
|
134
|
-
})) :
|
|
135
|
-
|
|
142
|
+
})) : n("", !0),
|
|
143
|
+
V("input", d({
|
|
136
144
|
ref_key: "inputRef",
|
|
137
145
|
ref: g,
|
|
138
146
|
maxlength: t.maxLength
|
|
139
|
-
}, { ...
|
|
140
|
-
value: e(
|
|
147
|
+
}, { ...y.$attrs, ...e(m)[e(c).FIELD] }, {
|
|
148
|
+
value: e(B),
|
|
141
149
|
placeholder: e(j),
|
|
142
150
|
disabled: t.disabled || t.viewOnly,
|
|
143
151
|
type: e(_),
|
|
@@ -149,93 +157,109 @@ const re = {
|
|
|
149
157
|
"input-type": t.type
|
|
150
158
|
}],
|
|
151
159
|
step: t.step,
|
|
152
|
-
onInput:
|
|
153
|
-
(...
|
|
154
|
-
onFocus:
|
|
155
|
-
onBlur:
|
|
156
|
-
onKeyup:
|
|
160
|
+
onInput: o[0] || (o[0] = //@ts-ignore
|
|
161
|
+
(...u) => e(L) && e(L)(...u)),
|
|
162
|
+
onFocus: o[1] || (o[1] = (u) => k.value = !0),
|
|
163
|
+
onBlur: o[2] || (o[2] = (u) => k.value = !1),
|
|
164
|
+
onKeyup: o[3] || (o[3] = ae(D(
|
|
157
165
|
//@ts-ignore
|
|
158
|
-
(...
|
|
166
|
+
(...u) => e(w) && e(w)(...u),
|
|
159
167
|
["prevent"]
|
|
160
168
|
), ["enter"])),
|
|
161
|
-
onKeypress:
|
|
162
|
-
(...
|
|
163
|
-
}), null, 16,
|
|
164
|
-
t.maxLength && t.maxLengthCounterPosition === "inside" ? (
|
|
165
|
-
e(Z) ? (
|
|
169
|
+
onKeypress: o[4] || (o[4] = //@ts-ignore
|
|
170
|
+
(...u) => e(C) && e(C)(...u))
|
|
171
|
+
}), null, 16, ue),
|
|
172
|
+
t.maxLength && t.maxLengthCounterPosition === "inside" ? (l(), f(W, H(d({ key: 2 }, e(P))), null, 16)) : n("", !0),
|
|
173
|
+
e(Z) ? (l(), s("div", {
|
|
166
174
|
key: 3,
|
|
167
175
|
class: "apply-button",
|
|
168
|
-
onClick:
|
|
176
|
+
onClick: D(M, ["stop", "prevent"])
|
|
169
177
|
}, [
|
|
170
|
-
x(e(
|
|
178
|
+
x(e(h), {
|
|
171
179
|
name: "check",
|
|
172
180
|
size: "20px"
|
|
173
181
|
})
|
|
174
|
-
], 8,
|
|
175
|
-
t.suffix ? (
|
|
182
|
+
], 8, fe)) : n("", !0),
|
|
183
|
+
t.suffix ? (l(), f(e(S), {
|
|
176
184
|
key: 4,
|
|
177
185
|
class: "suffix-text",
|
|
178
186
|
variant: "body1"
|
|
179
187
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
188
|
+
default: b(() => [
|
|
189
|
+
N($(t.suffix), 1)
|
|
182
190
|
]),
|
|
183
191
|
_: 1
|
|
184
|
-
})) :
|
|
185
|
-
e(X) ? (
|
|
186
|
-
x(e(
|
|
192
|
+
})) : n("", !0),
|
|
193
|
+
e(X) ? (l(), s("div", ce, [
|
|
194
|
+
x(e(R), d({
|
|
187
195
|
disabled: e(T),
|
|
188
|
-
text: e(
|
|
196
|
+
text: e(E),
|
|
189
197
|
placement: t.inlineErrorTextPlacement
|
|
190
|
-
}, e(
|
|
191
|
-
default:
|
|
192
|
-
x(e(
|
|
198
|
+
}, e(m)[e(c).TOOLTIP]), {
|
|
199
|
+
default: b(() => [
|
|
200
|
+
x(e(h), {
|
|
193
201
|
name: "warning-circle",
|
|
194
202
|
size: "16px"
|
|
195
203
|
})
|
|
196
204
|
]),
|
|
197
205
|
_: 1
|
|
198
206
|
}, 16, ["disabled", "text", "placement"])
|
|
199
|
-
])) :
|
|
200
|
-
t.type === "password" ? (
|
|
207
|
+
])) : n("", !0),
|
|
208
|
+
t.type === "password" ? (l(), s("div", d({
|
|
201
209
|
key: 6,
|
|
202
210
|
class: "password-visibility-toggle"
|
|
203
|
-
}, e(
|
|
204
|
-
onClick:
|
|
211
|
+
}, e(m)[e(c).TOGGLE_PASSWORD], {
|
|
212
|
+
onClick: o[5] || (o[5] = (u) => v.value = !v.value)
|
|
205
213
|
}), [
|
|
206
|
-
|
|
214
|
+
v.value ? (l(), f(e(h), {
|
|
207
215
|
key: 0,
|
|
208
216
|
name: "eye",
|
|
209
217
|
size: "16px"
|
|
210
|
-
})) : (
|
|
218
|
+
})) : (l(), f(e(h), {
|
|
211
219
|
key: 1,
|
|
212
220
|
name: "eye-slash",
|
|
213
221
|
size: "16px"
|
|
214
222
|
}))
|
|
215
|
-
], 16)) :
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
], 16)) : n("", !0),
|
|
224
|
+
t.clearable && t.modelValue && !t.loading ? (l(), s("div", d({
|
|
225
|
+
key: 7,
|
|
226
|
+
class: "clear-button"
|
|
227
|
+
}, e(m)[e(c).CLEAR_BUTTON], { onClick: ee }), [
|
|
228
|
+
x(e(h), {
|
|
229
|
+
name: "x-circle",
|
|
230
|
+
size: "16px",
|
|
231
|
+
type: "fill"
|
|
232
|
+
})
|
|
233
|
+
], 16)) : n("", !0),
|
|
234
|
+
t.loading ? (l(), s("div", me, [
|
|
235
|
+
x(e(se), d({
|
|
236
|
+
"max-width": 16,
|
|
237
|
+
"stroke-width": 1
|
|
238
|
+
}, e(m)[e(c).LOADING]), null, 16)
|
|
239
|
+
])) : n("", !0),
|
|
240
|
+
y.$slots.iconAfter ? (l(), s("div", ye, [
|
|
241
|
+
z(y.$slots, "iconAfter", {}, void 0, !0)
|
|
242
|
+
])) : n("", !0)
|
|
219
243
|
], 2)
|
|
220
244
|
]),
|
|
221
245
|
_: 3
|
|
222
246
|
}, 16, ["disabled", "text", "placement"]),
|
|
223
|
-
e(Q) ? (
|
|
247
|
+
e(Q) ? (l(), s("div", {
|
|
224
248
|
key: 1,
|
|
225
|
-
class:
|
|
249
|
+
class: F(["footer", t.feedbackPositionAbsolute && "footer-absolute"])
|
|
226
250
|
}, [
|
|
227
|
-
t.feedbackText ? (
|
|
251
|
+
t.feedbackText ? (l(), f(ie, {
|
|
228
252
|
key: 0,
|
|
229
253
|
text: t.feedbackText,
|
|
230
|
-
variant: e(
|
|
254
|
+
variant: e(O),
|
|
231
255
|
"show-icon": t.showFeedbackTextIcon,
|
|
232
256
|
"test-id": t.testId
|
|
233
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
234
|
-
e(A) ? (
|
|
235
|
-
], 2)) :
|
|
257
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
|
|
258
|
+
e(A) ? (l(), f(W, H(d({ key: 1 }, e(P))), null, 16)) : n("", !0)
|
|
259
|
+
], 2)) : n("", !0)
|
|
236
260
|
], 16));
|
|
237
261
|
}
|
|
238
262
|
});
|
|
239
263
|
export {
|
|
240
|
-
|
|
264
|
+
Pe as default
|
|
241
265
|
};
|
|
@@ -10,6 +10,7 @@ declare const TextFieldTypes: () => ({
|
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
size: "small" | "medium" | "large";
|
|
12
12
|
mandatory: boolean;
|
|
13
|
+
loading: boolean;
|
|
13
14
|
modelValue: string | number;
|
|
14
15
|
hoverHelpText: string;
|
|
15
16
|
hoverHelpTextPlacement: "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";
|
|
@@ -32,6 +33,7 @@ declare const TextFieldTypes: () => ({
|
|
|
32
33
|
feedbackVariant: "success" | "warning" | "error";
|
|
33
34
|
showFeedbackTextIcon: boolean;
|
|
34
35
|
feedbackPositionAbsolute: boolean;
|
|
36
|
+
clearable: boolean;
|
|
35
37
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
36
38
|
type: {
|
|
37
39
|
type: import("vue").PropType<"number" | "text" | "password">;
|
|
@@ -57,6 +59,10 @@ declare const TextFieldTypes: () => ({
|
|
|
57
59
|
type: import("vue").PropType<boolean>;
|
|
58
60
|
default: boolean;
|
|
59
61
|
};
|
|
62
|
+
loading: {
|
|
63
|
+
type: import("vue").PropType<boolean>;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
60
66
|
modelValue: {
|
|
61
67
|
type: import("vue").PropType<string | number>;
|
|
62
68
|
default: string;
|
|
@@ -145,10 +151,15 @@ declare const TextFieldTypes: () => ({
|
|
|
145
151
|
type: import("vue").PropType<boolean>;
|
|
146
152
|
default: boolean;
|
|
147
153
|
};
|
|
154
|
+
clearable: {
|
|
155
|
+
type: import("vue").PropType<boolean>;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
148
158
|
}>> & {
|
|
149
159
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
160
|
+
onClear?: () => any;
|
|
150
161
|
onApply?: () => any;
|
|
151
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "testId" | "disabled" | "size" | "mandatory" | "modelValue" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "maxLengthCounterPosition" | "showApply" | "inlineError" | "inlineErrorText" | "inlineErrorTextPlacement" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute">;
|
|
162
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "testId" | "disabled" | "size" | "mandatory" | "loading" | "modelValue" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "maxLengthCounterPosition" | "showApply" | "inlineError" | "inlineErrorText" | "inlineErrorTextPlacement" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute" | "clearable">;
|
|
152
163
|
$attrs: {
|
|
153
164
|
[x: string]: unknown;
|
|
154
165
|
};
|
|
@@ -160,7 +171,7 @@ declare const TextFieldTypes: () => ({
|
|
|
160
171
|
}>;
|
|
161
172
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
162
173
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
163
|
-
$emit: ((event: "update:modelValue", value: string | number) => void) & ((event: "apply") => void);
|
|
174
|
+
$emit: ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "apply") => void);
|
|
164
175
|
$el: any;
|
|
165
176
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
166
177
|
type: {
|
|
@@ -187,6 +198,10 @@ declare const TextFieldTypes: () => ({
|
|
|
187
198
|
type: import("vue").PropType<boolean>;
|
|
188
199
|
default: boolean;
|
|
189
200
|
};
|
|
201
|
+
loading: {
|
|
202
|
+
type: import("vue").PropType<boolean>;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
190
205
|
modelValue: {
|
|
191
206
|
type: import("vue").PropType<string | number>;
|
|
192
207
|
default: string;
|
|
@@ -275,14 +290,20 @@ declare const TextFieldTypes: () => ({
|
|
|
275
290
|
type: import("vue").PropType<boolean>;
|
|
276
291
|
default: boolean;
|
|
277
292
|
};
|
|
293
|
+
clearable: {
|
|
294
|
+
type: import("vue").PropType<boolean>;
|
|
295
|
+
default: boolean;
|
|
296
|
+
};
|
|
278
297
|
}>> & {
|
|
279
298
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
299
|
+
onClear?: () => any;
|
|
280
300
|
onApply?: () => any;
|
|
281
301
|
}, {
|
|
282
302
|
manualFocus: () => any;
|
|
283
303
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
284
304
|
"update:modelValue": (value: string | number) => void;
|
|
285
305
|
apply: () => void;
|
|
306
|
+
clear: () => void;
|
|
286
307
|
}, string, {
|
|
287
308
|
type: "number" | "text" | "password";
|
|
288
309
|
label: string;
|
|
@@ -290,6 +311,7 @@ declare const TextFieldTypes: () => ({
|
|
|
290
311
|
disabled: boolean;
|
|
291
312
|
size: "small" | "medium" | "large";
|
|
292
313
|
mandatory: boolean;
|
|
314
|
+
loading: boolean;
|
|
293
315
|
modelValue: string | number;
|
|
294
316
|
hoverHelpText: string;
|
|
295
317
|
hoverHelpTextPlacement: "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";
|
|
@@ -312,6 +334,7 @@ declare const TextFieldTypes: () => ({
|
|
|
312
334
|
feedbackVariant: "success" | "warning" | "error";
|
|
313
335
|
showFeedbackTextIcon: boolean;
|
|
314
336
|
feedbackPositionAbsolute: boolean;
|
|
337
|
+
clearable: boolean;
|
|
315
338
|
}, {}, string> & {
|
|
316
339
|
beforeCreate?: (() => void) | (() => void)[];
|
|
317
340
|
created?: (() => void) | (() => void)[];
|
|
@@ -357,6 +380,10 @@ declare const TextFieldTypes: () => ({
|
|
|
357
380
|
type: import("vue").PropType<boolean>;
|
|
358
381
|
default: boolean;
|
|
359
382
|
};
|
|
383
|
+
loading: {
|
|
384
|
+
type: import("vue").PropType<boolean>;
|
|
385
|
+
default: boolean;
|
|
386
|
+
};
|
|
360
387
|
modelValue: {
|
|
361
388
|
type: import("vue").PropType<string | number>;
|
|
362
389
|
default: string;
|
|
@@ -445,8 +472,13 @@ declare const TextFieldTypes: () => ({
|
|
|
445
472
|
type: import("vue").PropType<boolean>;
|
|
446
473
|
default: boolean;
|
|
447
474
|
};
|
|
475
|
+
clearable: {
|
|
476
|
+
type: import("vue").PropType<boolean>;
|
|
477
|
+
default: boolean;
|
|
478
|
+
};
|
|
448
479
|
}>> & {
|
|
449
480
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
481
|
+
onClear?: () => any;
|
|
450
482
|
onApply?: () => any;
|
|
451
483
|
} & import("vue").ShallowUnwrapRef<{
|
|
452
484
|
manualFocus: () => any;
|
|
@@ -479,6 +511,10 @@ declare const TextFieldTypes: () => ({
|
|
|
479
511
|
type: import("vue").PropType<boolean>;
|
|
480
512
|
default: boolean;
|
|
481
513
|
};
|
|
514
|
+
loading: {
|
|
515
|
+
type: import("vue").PropType<boolean>;
|
|
516
|
+
default: boolean;
|
|
517
|
+
};
|
|
482
518
|
modelValue: {
|
|
483
519
|
type: import("vue").PropType<string | number>;
|
|
484
520
|
default: string;
|
|
@@ -567,14 +603,20 @@ declare const TextFieldTypes: () => ({
|
|
|
567
603
|
type: import("vue").PropType<boolean>;
|
|
568
604
|
default: boolean;
|
|
569
605
|
};
|
|
606
|
+
clearable: {
|
|
607
|
+
type: import("vue").PropType<boolean>;
|
|
608
|
+
default: boolean;
|
|
609
|
+
};
|
|
570
610
|
}>> & {
|
|
571
611
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
612
|
+
onClear?: () => any;
|
|
572
613
|
onApply?: () => any;
|
|
573
614
|
}, {
|
|
574
615
|
manualFocus: () => any;
|
|
575
616
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
576
617
|
"update:modelValue": (value: string | number) => void;
|
|
577
618
|
apply: () => void;
|
|
619
|
+
clear: () => void;
|
|
578
620
|
}, string, {
|
|
579
621
|
type: "number" | "text" | "password";
|
|
580
622
|
label: string;
|
|
@@ -582,6 +624,7 @@ declare const TextFieldTypes: () => ({
|
|
|
582
624
|
disabled: boolean;
|
|
583
625
|
size: "small" | "medium" | "large";
|
|
584
626
|
mandatory: boolean;
|
|
627
|
+
loading: boolean;
|
|
585
628
|
modelValue: string | number;
|
|
586
629
|
hoverHelpText: string;
|
|
587
630
|
hoverHelpTextPlacement: "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";
|
|
@@ -604,6 +647,7 @@ declare const TextFieldTypes: () => ({
|
|
|
604
647
|
feedbackVariant: "success" | "warning" | "error";
|
|
605
648
|
showFeedbackTextIcon: boolean;
|
|
606
649
|
feedbackPositionAbsolute: boolean;
|
|
650
|
+
clearable: boolean;
|
|
607
651
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
608
652
|
$slots: {
|
|
609
653
|
iconBefore?(_: {}): any;
|