tsv2-library 0.2.88 → 0.2.90
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/dist/src/components/v2/InputEmail/InputEmail.vue.d.ts +1 -0
- package/dist/src/components/v2/InputText/InputText.vue.d.ts +6 -0
- package/dist/tsv2-library.es.js +9 -6
- package/package.json +1 -1
- package/src/components/v2/InputEmail/InputEmail.vue.d.ts +1 -0
- package/src/components/v2/InputText/InputText.vue.d.ts +6 -0
|
@@ -47,6 +47,11 @@ export interface InputTextProps {
|
|
|
47
47
|
* Invalid input state.
|
|
48
48
|
*/
|
|
49
49
|
invalid?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Set manual invalid input container state.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
manualInvalidContainer?: boolean;
|
|
50
55
|
/**
|
|
51
56
|
* Set custom validator message.
|
|
52
57
|
* Will be show if invalid="true"
|
|
@@ -92,6 +97,7 @@ export interface InputTextProps {
|
|
|
92
97
|
* InputText component emits
|
|
93
98
|
*/
|
|
94
99
|
export type InputTextEmits = {
|
|
100
|
+
'blur': [payload?: Nullable<string>];
|
|
95
101
|
'input': [payload?: Nullable<string>];
|
|
96
102
|
'update:modelValue': [payload?: Nullable<string>];
|
|
97
103
|
};
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -74872,6 +74872,7 @@ const s2e = cu, l2e = {
|
|
|
74872
74872
|
fieldName: {},
|
|
74873
74873
|
mandatory: { type: Boolean },
|
|
74874
74874
|
invalid: { type: Boolean },
|
|
74875
|
+
manualInvalidContainer: { type: Boolean, default: !1 },
|
|
74875
74876
|
validatorMessage: {},
|
|
74876
74877
|
validatorMessageClass: {},
|
|
74877
74878
|
placeholder: {},
|
|
@@ -74882,7 +74883,7 @@ const s2e = cu, l2e = {
|
|
|
74882
74883
|
inputContainerClass: {},
|
|
74883
74884
|
labelClass: {}
|
|
74884
74885
|
},
|
|
74885
|
-
emits: ["input", "update:modelValue"],
|
|
74886
|
+
emits: ["blur", "input", "update:modelValue"],
|
|
74886
74887
|
setup(e, { emit: t }) {
|
|
74887
74888
|
var l;
|
|
74888
74889
|
const n = e, r = t, i = Xt({
|
|
@@ -74932,7 +74933,7 @@ const s2e = cu, l2e = {
|
|
|
74932
74933
|
]
|
|
74933
74934
|
),
|
|
74934
74935
|
disabled: n.disabled,
|
|
74935
|
-
invalid: a.value
|
|
74936
|
+
invalid: a.value && !n.manualInvalidContainer
|
|
74936
74937
|
}, {
|
|
74937
74938
|
default: z(() => [
|
|
74938
74939
|
c.$slots["addon-left"] ? (g(), C(D(hi), {
|
|
@@ -74948,13 +74949,14 @@ const s2e = cu, l2e = {
|
|
|
74948
74949
|
modelValue: i.value,
|
|
74949
74950
|
"onUpdate:modelValue": [
|
|
74950
74951
|
u[0] || (u[0] = (d) => i.value = d),
|
|
74951
|
-
u[
|
|
74952
|
+
u[3] || (u[3] = (d) => r("update:modelValue", d))
|
|
74952
74953
|
],
|
|
74953
74954
|
class: q(["ts-inputtext", c.inputClass]),
|
|
74954
74955
|
disabled: c.disabled,
|
|
74955
74956
|
invalid: a.value,
|
|
74956
74957
|
placeholder: o.value,
|
|
74957
|
-
|
|
74958
|
+
onBlur: u[1] || (u[1] = (d) => r("blur", d.target.value)),
|
|
74959
|
+
onInput: u[2] || (u[2] = (d) => r("input", d.target.value))
|
|
74958
74960
|
}, null, 8, ["modelValue", "class", "disabled", "invalid", "placeholder"]),
|
|
74959
74961
|
c.$slots["addon-right"] ? (g(), C(D(hi), {
|
|
74960
74962
|
key: 1,
|
|
@@ -74995,7 +74997,7 @@ const s2e = cu, l2e = {
|
|
|
74995
74997
|
inputClass: {},
|
|
74996
74998
|
inputContainerClass: {}
|
|
74997
74999
|
},
|
|
74998
|
-
emits: ["update:modelValue"],
|
|
75000
|
+
emits: ["update:modelValue", "blur"],
|
|
74999
75001
|
setup(e) {
|
|
75000
75002
|
return (t, n) => (g(), C(qo, {
|
|
75001
75003
|
"field-info": t.fieldInfo,
|
|
@@ -75010,7 +75012,8 @@ const s2e = cu, l2e = {
|
|
|
75010
75012
|
"use-validator": t.useValidator,
|
|
75011
75013
|
"validator-message": t.validatorMessage,
|
|
75012
75014
|
"validator-message-class": t.validatorMessageClass,
|
|
75013
|
-
|
|
75015
|
+
onBlur: n[0] || (n[0] = (r) => t.$emit("blur", r)),
|
|
75016
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => t.$emit("update:modelValue", r)),
|
|
75014
75017
|
type: "email"
|
|
75015
75018
|
}, null, 8, ["field-info", "field-name", "input-class", "input-container-class", "label", "label-class", "mandatory", "model-value", "placeholder", "use-validator", "validator-message", "validator-message-class"]));
|
|
75016
75019
|
}
|
package/package.json
CHANGED
|
@@ -47,6 +47,11 @@ export interface InputTextProps {
|
|
|
47
47
|
* Invalid input state.
|
|
48
48
|
*/
|
|
49
49
|
invalid?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Set manual invalid input container state.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
manualInvalidContainer?: boolean;
|
|
50
55
|
/**
|
|
51
56
|
* Set custom validator message.
|
|
52
57
|
* Will be show if invalid="true"
|
|
@@ -92,6 +97,7 @@ export interface InputTextProps {
|
|
|
92
97
|
* InputText component emits
|
|
93
98
|
*/
|
|
94
99
|
export type InputTextEmits = {
|
|
100
|
+
'blur': [payload?: Nullable<string>];
|
|
95
101
|
'input': [payload?: Nullable<string>];
|
|
96
102
|
'update:modelValue': [payload?: Nullable<string>];
|
|
97
103
|
};
|