@vue-interface/input-field 1.0.0-beta.11 → 1.0.0-beta.13
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/input-field.js +52 -220
- package/dist/input-field.umd.cjs +1 -1
- package/dist/src/InputField.vue.d.ts +329 -15
- package/package.json +1 -1
package/dist/input-field.js
CHANGED
|
@@ -1,271 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormControl as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
|
6
|
-
t = arguments[r];
|
|
7
|
-
for (var o in t)
|
|
8
|
-
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
9
|
-
}
|
|
10
|
-
return e;
|
|
11
|
-
}, v.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
function L(e) {
|
|
14
|
-
return e.toLowerCase();
|
|
15
|
-
}
|
|
16
|
-
var U = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], J = /[^A-Z0-9]+/gi;
|
|
17
|
-
function K(e, t) {
|
|
18
|
-
t === void 0 && (t = {});
|
|
19
|
-
for (var r = t.splitRegexp, i = r === void 0 ? U : r, o = t.stripRegexp, y = o === void 0 ? J : o, m = t.transform, b = m === void 0 ? L : m, f = t.delimiter, g = f === void 0 ? " " : f, n = N(N(e, i, "$1\0$2"), y, "\0"), $ = 0, k = n.length; n.charAt($) === "\0"; )
|
|
20
|
-
$++;
|
|
21
|
-
for (; n.charAt(k - 1) === "\0"; )
|
|
22
|
-
k--;
|
|
23
|
-
return n.slice($, k).split("\0").map(b).join(g);
|
|
24
|
-
}
|
|
25
|
-
function N(e, t, r) {
|
|
26
|
-
return t instanceof RegExp ? e.replace(t, r) : t.reduce(function(i, o) {
|
|
27
|
-
return i.replace(o, r);
|
|
28
|
-
}, e);
|
|
29
|
-
}
|
|
30
|
-
function Q(e, t) {
|
|
31
|
-
return t === void 0 && (t = {}), K(e, v({ delimiter: "." }, t));
|
|
32
|
-
}
|
|
33
|
-
function h(e, t) {
|
|
34
|
-
return t === void 0 && (t = {}), Q(e, v({ delimiter: "-" }, t));
|
|
35
|
-
}
|
|
36
|
-
class X {
|
|
37
|
-
constructor(t = {}) {
|
|
38
|
-
q(this, "components"), this.components = /* @__PURE__ */ new Map(), Object.entries(t).forEach(([r, i]) => {
|
|
39
|
-
this.register(r, i);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
get(t) {
|
|
43
|
-
const r = this.components.get(
|
|
44
|
-
t = h(t)
|
|
45
|
-
);
|
|
46
|
-
if (r)
|
|
47
|
-
return r;
|
|
48
|
-
throw new Error(`"${t}" has not been registered yet!`);
|
|
49
|
-
}
|
|
50
|
-
register(t, r) {
|
|
51
|
-
return typeof t == "object" ? (Object.entries(t).forEach(([i, o]) => {
|
|
52
|
-
this.register(h(i), o);
|
|
53
|
-
}), this) : (this.components.set(h(t), r), this);
|
|
54
|
-
}
|
|
55
|
-
remove(t) {
|
|
56
|
-
return this.components.delete(h(t)), this;
|
|
57
|
-
}
|
|
58
|
-
reset() {
|
|
59
|
-
return this.components = /* @__PURE__ */ new Map(), this;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function Y(e = {}) {
|
|
63
|
-
return new X(e);
|
|
64
|
-
}
|
|
65
|
-
const _ = Y();
|
|
66
|
-
function l(e, t = "px") {
|
|
67
|
-
return e != null && e !== !1 && isFinite(e) ? `${e}${t}` : e;
|
|
68
|
-
}
|
|
69
|
-
const x = j({
|
|
70
|
-
props: {
|
|
71
|
-
absolute: Boolean,
|
|
72
|
-
center: Boolean,
|
|
73
|
-
label: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: void 0
|
|
76
|
-
},
|
|
77
|
-
size: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: "md"
|
|
80
|
-
},
|
|
81
|
-
registry: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: "indicators"
|
|
84
|
-
},
|
|
85
|
-
type: {
|
|
86
|
-
type: [Object, String],
|
|
87
|
-
required: !0
|
|
88
|
-
},
|
|
89
|
-
height: {
|
|
90
|
-
type: [String, Number],
|
|
91
|
-
default: void 0
|
|
92
|
-
},
|
|
93
|
-
maxHeight: {
|
|
94
|
-
type: [String, Number],
|
|
95
|
-
default: void 0
|
|
96
|
-
},
|
|
97
|
-
minHeight: {
|
|
98
|
-
type: [String, Number],
|
|
99
|
-
default: void 0
|
|
100
|
-
},
|
|
101
|
-
width: {
|
|
102
|
-
type: [String, Number],
|
|
103
|
-
default: void 0
|
|
104
|
-
},
|
|
105
|
-
maxWidth: {
|
|
106
|
-
type: [String, Number],
|
|
107
|
-
default: void 0
|
|
108
|
-
},
|
|
109
|
-
minWidth: {
|
|
110
|
-
type: [String, Number],
|
|
111
|
-
default: void 0
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
data: () => ({
|
|
115
|
-
is: null
|
|
116
|
-
}),
|
|
117
|
-
computed: {
|
|
118
|
-
classes() {
|
|
119
|
-
return {
|
|
120
|
-
"activity-indicator-center": this.center,
|
|
121
|
-
"activity-indicator-absolute": this.absolute,
|
|
122
|
-
[this.size && `activity-indicator-${this.size}`]: !!this.size
|
|
123
|
-
};
|
|
124
|
-
},
|
|
125
|
-
style() {
|
|
126
|
-
return {
|
|
127
|
-
width: l(this.width),
|
|
128
|
-
maxWidth: l(this.maxWidth),
|
|
129
|
-
minWidth: l(this.minWidth),
|
|
130
|
-
height: l(this.height),
|
|
131
|
-
maxHeight: l(this.maxHeight),
|
|
132
|
-
minHeight: l(this.minHeight)
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
// async mounted() {
|
|
137
|
-
// const component = await this.component();
|
|
138
|
-
// this.is = () => component;
|
|
139
|
-
// },
|
|
140
|
-
methods: {
|
|
141
|
-
componentFromRegistry(e) {
|
|
142
|
-
var t;
|
|
143
|
-
try {
|
|
144
|
-
return (t = O(this.registry || "indicators", _)) == null ? void 0 : t.get(e);
|
|
145
|
-
} catch {
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
component() {
|
|
149
|
-
return typeof this.type == "string" ? this.componentFromRegistry(this.type) : R(this.type);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}), ee = (e, t) => {
|
|
153
|
-
const r = e.__vccOpts || e;
|
|
154
|
-
for (const [i, o] of t)
|
|
155
|
-
r[i] = o;
|
|
156
|
-
return r;
|
|
157
|
-
}, te = { class: "activity-indicator-content" }, re = {
|
|
158
|
-
key: 0,
|
|
159
|
-
class: "activity-indicator-label"
|
|
160
|
-
};
|
|
161
|
-
function oe(e, t, r, i, o, y) {
|
|
162
|
-
return s(), c("div", {
|
|
163
|
-
class: F(["activity-indicator", e.classes]),
|
|
164
|
-
style: H(e.style)
|
|
165
|
-
}, [
|
|
166
|
-
u("div", te, [
|
|
167
|
-
(s(), E(W(e.component()), { class: "mx-auto" })),
|
|
168
|
-
e.label ? (s(), c("div", re, p(e.label), 1)) : d("", !0)
|
|
169
|
-
])
|
|
170
|
-
], 6);
|
|
171
|
-
}
|
|
172
|
-
const ie = /* @__PURE__ */ ee(x, [["render", oe]]), ne = j({
|
|
1
|
+
import { ActivityIndicator as g } from "@vue-interface/activity-indicator";
|
|
2
|
+
import { FormControl as z } from "@vue-interface/form-control";
|
|
3
|
+
import { defineComponent as E, resolveComponent as m, resolveDirective as V, openBlock as n, createElementBlock as l, normalizeClass as b, renderSlot as r, toDisplayString as a, createCommentVNode as s, createElementVNode as i, normalizeProps as p, guardReactiveProps as f, withDirectives as A, mergeProps as D, vModelDynamic as I, createVNode as k, Transition as N, withCtx as u, createBlock as y, createTextVNode as T } from "vue";
|
|
4
|
+
const B = E({
|
|
173
5
|
name: "InputField",
|
|
174
6
|
components: {
|
|
175
|
-
ActivityIndicator:
|
|
7
|
+
ActivityIndicator: g
|
|
176
8
|
},
|
|
177
|
-
extends:
|
|
9
|
+
extends: z
|
|
178
10
|
});
|
|
179
|
-
const
|
|
180
|
-
const
|
|
181
|
-
for (const [
|
|
182
|
-
|
|
183
|
-
return
|
|
184
|
-
},
|
|
11
|
+
const P = (e, t) => {
|
|
12
|
+
const d = e.__vccOpts || e;
|
|
13
|
+
for (const [c, v] of t)
|
|
14
|
+
d[c] = v;
|
|
15
|
+
return d;
|
|
16
|
+
}, S = ["for"], w = { class: "form-group-inner" }, G = {
|
|
185
17
|
invalid: "",
|
|
186
18
|
class: "invalid-feedback"
|
|
187
|
-
},
|
|
19
|
+
}, M = /* @__PURE__ */ i("br", null, null, -1), O = {
|
|
188
20
|
valid: "",
|
|
189
21
|
class: "valid-feedback"
|
|
190
22
|
};
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
return
|
|
194
|
-
class:
|
|
23
|
+
function R(e, t, d, c, v, U) {
|
|
24
|
+
const $ = m("activity-indicator"), C = m("FormControlErrors"), F = m("FormControlFeedback"), h = V("bind-events");
|
|
25
|
+
return n(), l("div", {
|
|
26
|
+
class: b(["input-field", e.formGroupClasses])
|
|
195
27
|
}, [
|
|
196
|
-
|
|
197
|
-
e.label ? (
|
|
28
|
+
r(e.$slots, "label", {}, () => [
|
|
29
|
+
e.label ? (n(), l("label", {
|
|
198
30
|
key: 0,
|
|
199
31
|
ref: "label",
|
|
200
|
-
class:
|
|
32
|
+
class: b(e.labelClass),
|
|
201
33
|
for: e.id
|
|
202
|
-
},
|
|
34
|
+
}, a(e.label), 11, S)) : s("", !0)
|
|
203
35
|
]),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
e.$slots.icon ? (
|
|
36
|
+
i("div", w, [
|
|
37
|
+
r(e.$slots, "control", p(f({ bindEvents: e.bindEvents, controlAttributes: e.controlAttributes })), () => [
|
|
38
|
+
e.$slots.icon ? (n(), l("div", {
|
|
207
39
|
key: 0,
|
|
208
40
|
class: "form-group-inner-icon",
|
|
209
|
-
onClick: t[0] || (t[0] = (...
|
|
41
|
+
onClick: t[0] || (t[0] = (...o) => e.focus && e.focus(...o))
|
|
210
42
|
}, [
|
|
211
|
-
|
|
212
|
-
])) :
|
|
213
|
-
|
|
43
|
+
r(e.$slots, "icon")
|
|
44
|
+
])) : s("", !0),
|
|
45
|
+
A(i("input", D({
|
|
214
46
|
ref: "field",
|
|
215
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
47
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.model = o)
|
|
216
48
|
}, e.controlAttributes), null, 16), [
|
|
217
|
-
[
|
|
218
|
-
[
|
|
49
|
+
[I, e.model],
|
|
50
|
+
[h]
|
|
219
51
|
])
|
|
220
52
|
]),
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
default:
|
|
224
|
-
e.activity ? (
|
|
53
|
+
r(e.$slots, "activity", {}, () => [
|
|
54
|
+
k(N, { name: "input-field-fade" }, {
|
|
55
|
+
default: u(() => [
|
|
56
|
+
e.activity ? (n(), y($, {
|
|
225
57
|
key: "activity",
|
|
226
58
|
ref: "activity",
|
|
227
59
|
type: e.indicator,
|
|
228
60
|
size: e.indicatorSize || e.size
|
|
229
|
-
}, null, 8, ["type", "size"])) :
|
|
61
|
+
}, null, 8, ["type", "size"])) : s("", !0)
|
|
230
62
|
]),
|
|
231
63
|
_: 1
|
|
232
64
|
})
|
|
233
65
|
])
|
|
234
66
|
]),
|
|
235
|
-
|
|
236
|
-
e.error || e.errors ? (
|
|
67
|
+
r(e.$slots, "errors", p(f({ error: e.error, errors: e.errors, id: e.$attrs.id, name: e.$attrs.name })), () => [
|
|
68
|
+
e.error || e.errors ? (n(), y(C, {
|
|
237
69
|
key: 0,
|
|
238
70
|
id: e.$attrs.id,
|
|
239
71
|
name: e.$attrs.name,
|
|
240
72
|
error: e.error,
|
|
241
73
|
errors: e.errors
|
|
242
74
|
}, {
|
|
243
|
-
default:
|
|
244
|
-
|
|
245
|
-
T(
|
|
246
|
-
|
|
75
|
+
default: u(({ error: o }) => [
|
|
76
|
+
i("div", G, [
|
|
77
|
+
T(a(o), 1),
|
|
78
|
+
M
|
|
247
79
|
])
|
|
248
80
|
]),
|
|
249
81
|
_: 1
|
|
250
|
-
}, 8, ["id", "name", "error", "errors"])) :
|
|
82
|
+
}, 8, ["id", "name", "error", "errors"])) : s("", !0)
|
|
251
83
|
]),
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
default:
|
|
255
|
-
|
|
84
|
+
r(e.$slots, "feedback", p(f({ feedback: e.feedback })), () => [
|
|
85
|
+
k(F, { feedback: e.feedback }, {
|
|
86
|
+
default: u(({ feedback: o }) => [
|
|
87
|
+
i("div", O, a(o), 1)
|
|
256
88
|
]),
|
|
257
89
|
_: 1
|
|
258
90
|
}, 8, ["feedback"])
|
|
259
91
|
]),
|
|
260
|
-
|
|
261
|
-
e.helpText ? (
|
|
92
|
+
r(e.$slots, "help", {}, () => [
|
|
93
|
+
e.helpText ? (n(), l("small", {
|
|
262
94
|
key: 0,
|
|
263
95
|
ref: "help"
|
|
264
|
-
},
|
|
96
|
+
}, a(e.helpText), 513)) : s("", !0)
|
|
265
97
|
])
|
|
266
98
|
], 2);
|
|
267
99
|
}
|
|
268
|
-
const
|
|
100
|
+
const J = /* @__PURE__ */ P(B, [["render", R]]);
|
|
269
101
|
export {
|
|
270
|
-
|
|
102
|
+
J as InputField
|
|
271
103
|
};
|
package/dist/input-field.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(r,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("@vue-interface/activity-indicator"),require("@vue-interface/form-control"),require("vue")):typeof define=="function"&&define.amd?define(["exports","@vue-interface/activity-indicator","@vue-interface/form-control","vue"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.InputField={},r.ActivityIndicator,r.FormControl,r.Vue))})(this,function(r,i,d,e){"use strict";const c=e.defineComponent({name:"InputField",components:{ActivityIndicator:i.ActivityIndicator},extends:d.FormControl}),F="",m=(o,n)=>{const l=o.__vccOpts||o;for(const[s,a]of n)l[s]=a;return l},p=["for"],f={class:"form-group-inner"},y={invalid:"",class:"invalid-feedback"},k=e.createElementVNode("br",null,null,-1),b={valid:"",class:"valid-feedback"};function C(o,n,l,s,a,N){const V=e.resolveComponent("activity-indicator"),S=e.resolveComponent("FormControlErrors"),h=e.resolveComponent("FormControlFeedback"),E=e.resolveDirective("bind-events");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["input-field",o.formGroupClasses])},[e.renderSlot(o.$slots,"label",{},()=>[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,ref:"label",class:e.normalizeClass(o.labelClass),for:o.id},e.toDisplayString(o.label),11,p)):e.createCommentVNode("",!0)]),e.createElementVNode("div",f,[e.renderSlot(o.$slots,"control",e.normalizeProps(e.guardReactiveProps({bindEvents:o.bindEvents,controlAttributes:o.controlAttributes})),()=>[o.$slots.icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-group-inner-icon",onClick:n[0]||(n[0]=(...t)=>o.focus&&o.focus(...t))},[e.renderSlot(o.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref:"field","onUpdate:modelValue":n[1]||(n[1]=t=>o.model=t)},o.controlAttributes),null,16),[[e.vModelDynamic,o.model],[E]])]),e.renderSlot(o.$slots,"activity",{},()=>[e.createVNode(e.Transition,{name:"input-field-fade"},{default:e.withCtx(()=>[o.activity?(e.openBlock(),e.createBlock(V,{key:"activity",ref:"activity",type:o.indicator,size:o.indicatorSize||o.size},null,8,["type","size"])):e.createCommentVNode("",!0)]),_:1})])]),e.renderSlot(o.$slots,"errors",e.normalizeProps(e.guardReactiveProps({error:o.error,errors:o.errors,id:o.$attrs.id,name:o.$attrs.name})),()=>[o.error||o.errors?(e.openBlock(),e.createBlock(S,{key:0,id:o.$attrs.id,name:o.$attrs.name,error:o.error,errors:o.errors},{default:e.withCtx(({error:t})=>[e.createElementVNode("div",y,[e.createTextVNode(e.toDisplayString(t),1),k])]),_:1},8,["id","name","error","errors"])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"feedback",e.normalizeProps(e.guardReactiveProps({feedback:o.feedback})),()=>[e.createVNode(h,{feedback:o.feedback},{default:e.withCtx(({feedback:t})=>[e.createElementVNode("div",b,e.toDisplayString(t),1)]),_:1},8,["feedback"])]),e.renderSlot(o.$slots,"help",{},()=>[o.helpText?(e.openBlock(),e.createElementBlock("small",{key:0,ref:"help"},e.toDisplayString(o.helpText),513)):e.createCommentVNode("",!0)])],2)}const $=m(c,[["render",C]]);r.InputField=$,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -7,17 +7,13 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: () => any;
|
|
9
9
|
};
|
|
10
|
-
controlClass: {
|
|
11
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
10
|
error: {
|
|
15
11
|
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
16
12
|
default: undefined;
|
|
17
13
|
};
|
|
18
14
|
errors: {
|
|
19
15
|
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
20
|
-
default
|
|
16
|
+
default: undefined;
|
|
21
17
|
};
|
|
22
18
|
feedback: {
|
|
23
19
|
type: (StringConstructor | ArrayConstructor)[];
|
|
@@ -54,7 +50,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
54
50
|
};
|
|
55
51
|
modelValue: {
|
|
56
52
|
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
57
|
-
default: undefined;
|
|
53
|
+
default: () => undefined;
|
|
58
54
|
};
|
|
59
55
|
plaintext: BooleanConstructor;
|
|
60
56
|
size: {
|
|
@@ -63,10 +59,332 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
63
59
|
};
|
|
64
60
|
valid: BooleanConstructor;
|
|
65
61
|
}, unknown, {
|
|
66
|
-
currentValue:
|
|
62
|
+
currentValue: undefined;
|
|
67
63
|
hasChanged: boolean;
|
|
68
64
|
hasFocus: boolean;
|
|
69
|
-
isDirty:
|
|
65
|
+
isDirty: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
activity: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
animated: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: () => any;
|
|
73
|
+
};
|
|
74
|
+
error: {
|
|
75
|
+
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
errors: {
|
|
79
|
+
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
feedback: {
|
|
83
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
formControlClass: {
|
|
87
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
88
|
+
default: () => any;
|
|
89
|
+
};
|
|
90
|
+
group: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: () => any;
|
|
93
|
+
};
|
|
94
|
+
helpText: {
|
|
95
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
indicator: {
|
|
99
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
100
|
+
default: () => any;
|
|
101
|
+
};
|
|
102
|
+
indicatorSize: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
invalid: BooleanConstructor;
|
|
107
|
+
label: {
|
|
108
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
labelClass: {
|
|
112
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
113
|
+
default: () => any;
|
|
114
|
+
};
|
|
115
|
+
modelValue: {
|
|
116
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
117
|
+
default: () => undefined;
|
|
118
|
+
};
|
|
119
|
+
plaintext: BooleanConstructor;
|
|
120
|
+
size: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
valid: BooleanConstructor;
|
|
125
|
+
}>> & {
|
|
126
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
132
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
onProgress?: ((...args: any[]) => any) | undefined;
|
|
134
|
+
onPaste?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
}, {}, {}, {}, import("vue").MethodOptions, import("vue").DefineComponent<{
|
|
137
|
+
dropShadow: {
|
|
138
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
139
|
+
default: undefined;
|
|
140
|
+
};
|
|
141
|
+
dropShadowableClassPrefix: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
shadow: {
|
|
146
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
147
|
+
default: undefined;
|
|
148
|
+
};
|
|
149
|
+
shadowableClassPrefix: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
}, unknown, unknown, {
|
|
154
|
+
shadowableClass(): {
|
|
155
|
+
[x: string]: boolean;
|
|
156
|
+
};
|
|
157
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
+
dropShadow: {
|
|
159
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
160
|
+
default: undefined;
|
|
161
|
+
};
|
|
162
|
+
dropShadowableClassPrefix: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
shadow: {
|
|
167
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
168
|
+
default: undefined;
|
|
169
|
+
};
|
|
170
|
+
shadowableClassPrefix: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
}>>, {
|
|
175
|
+
shadow: string | boolean;
|
|
176
|
+
dropShadow: string | boolean;
|
|
177
|
+
dropShadowableClassPrefix: string;
|
|
178
|
+
shadowableClassPrefix: string;
|
|
179
|
+
}>, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{
|
|
180
|
+
activity: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
animated: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: () => any;
|
|
187
|
+
};
|
|
188
|
+
error: {
|
|
189
|
+
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
190
|
+
default: undefined;
|
|
191
|
+
};
|
|
192
|
+
errors: {
|
|
193
|
+
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
194
|
+
default: undefined;
|
|
195
|
+
};
|
|
196
|
+
feedback: {
|
|
197
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
198
|
+
default: undefined;
|
|
199
|
+
};
|
|
200
|
+
formControlClass: {
|
|
201
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
202
|
+
default: () => any;
|
|
203
|
+
};
|
|
204
|
+
group: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: () => any;
|
|
207
|
+
};
|
|
208
|
+
helpText: {
|
|
209
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
indicator: {
|
|
213
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
214
|
+
default: () => any;
|
|
215
|
+
};
|
|
216
|
+
indicatorSize: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
default: undefined;
|
|
219
|
+
};
|
|
220
|
+
invalid: BooleanConstructor;
|
|
221
|
+
label: {
|
|
222
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
223
|
+
default: undefined;
|
|
224
|
+
};
|
|
225
|
+
labelClass: {
|
|
226
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
227
|
+
default: () => any;
|
|
228
|
+
};
|
|
229
|
+
modelValue: {
|
|
230
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
231
|
+
default: () => undefined;
|
|
232
|
+
};
|
|
233
|
+
plaintext: BooleanConstructor;
|
|
234
|
+
size: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
default: undefined;
|
|
237
|
+
};
|
|
238
|
+
valid: BooleanConstructor;
|
|
239
|
+
}>> & {
|
|
240
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
241
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
242
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
243
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
244
|
+
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
245
|
+
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
246
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
247
|
+
onProgress?: ((...args: any[]) => any) | undefined;
|
|
248
|
+
onPaste?: ((...args: any[]) => any) | undefined;
|
|
249
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
250
|
+
}, {}, false, {}, {
|
|
251
|
+
P: Readonly<import("vue").ExtractPropTypes<{
|
|
252
|
+
dropShadow: {
|
|
253
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
254
|
+
default: undefined;
|
|
255
|
+
};
|
|
256
|
+
dropShadowableClassPrefix: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: string;
|
|
259
|
+
};
|
|
260
|
+
shadow: {
|
|
261
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
262
|
+
default: undefined;
|
|
263
|
+
};
|
|
264
|
+
shadowableClassPrefix: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
}>>;
|
|
269
|
+
B: {};
|
|
270
|
+
D: {};
|
|
271
|
+
C: {
|
|
272
|
+
shadowableClass(): {
|
|
273
|
+
[x: string]: boolean;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
M: {};
|
|
277
|
+
Defaults: {
|
|
278
|
+
shadow: string | boolean;
|
|
279
|
+
dropShadow: string | boolean;
|
|
280
|
+
dropShadowableClassPrefix: string;
|
|
281
|
+
shadowableClassPrefix: string;
|
|
282
|
+
};
|
|
283
|
+
} & {
|
|
284
|
+
P: {};
|
|
285
|
+
B: {};
|
|
286
|
+
D: {};
|
|
287
|
+
C: {};
|
|
288
|
+
M: {};
|
|
289
|
+
Defaults: {};
|
|
290
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
291
|
+
dropShadow: {
|
|
292
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
293
|
+
default: undefined;
|
|
294
|
+
};
|
|
295
|
+
dropShadowableClassPrefix: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
default: string;
|
|
298
|
+
};
|
|
299
|
+
shadow: {
|
|
300
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
301
|
+
default: undefined;
|
|
302
|
+
};
|
|
303
|
+
shadowableClassPrefix: {
|
|
304
|
+
type: StringConstructor;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
}>> & Readonly<import("vue").ExtractPropTypes<{
|
|
308
|
+
activity: {
|
|
309
|
+
type: BooleanConstructor;
|
|
310
|
+
default: boolean;
|
|
311
|
+
};
|
|
312
|
+
animated: {
|
|
313
|
+
type: BooleanConstructor;
|
|
314
|
+
default: () => any;
|
|
315
|
+
};
|
|
316
|
+
error: {
|
|
317
|
+
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
318
|
+
default: undefined;
|
|
319
|
+
};
|
|
320
|
+
errors: {
|
|
321
|
+
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
322
|
+
default: undefined;
|
|
323
|
+
};
|
|
324
|
+
feedback: {
|
|
325
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
326
|
+
default: undefined;
|
|
327
|
+
};
|
|
328
|
+
formControlClass: {
|
|
329
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
330
|
+
default: () => any;
|
|
331
|
+
};
|
|
332
|
+
group: {
|
|
333
|
+
type: BooleanConstructor;
|
|
334
|
+
default: () => any;
|
|
335
|
+
};
|
|
336
|
+
helpText: {
|
|
337
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
338
|
+
default: undefined;
|
|
339
|
+
};
|
|
340
|
+
indicator: {
|
|
341
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
342
|
+
default: () => any;
|
|
343
|
+
};
|
|
344
|
+
indicatorSize: {
|
|
345
|
+
type: StringConstructor;
|
|
346
|
+
default: undefined;
|
|
347
|
+
};
|
|
348
|
+
invalid: BooleanConstructor;
|
|
349
|
+
label: {
|
|
350
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
351
|
+
default: undefined;
|
|
352
|
+
};
|
|
353
|
+
labelClass: {
|
|
354
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
355
|
+
default: () => any;
|
|
356
|
+
};
|
|
357
|
+
modelValue: {
|
|
358
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
359
|
+
default: () => undefined;
|
|
360
|
+
};
|
|
361
|
+
plaintext: BooleanConstructor;
|
|
362
|
+
size: {
|
|
363
|
+
type: StringConstructor;
|
|
364
|
+
default: undefined;
|
|
365
|
+
};
|
|
366
|
+
valid: BooleanConstructor;
|
|
367
|
+
}>> & {
|
|
368
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
369
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
370
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
371
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
372
|
+
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
373
|
+
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
374
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
375
|
+
onProgress?: ((...args: any[]) => any) | undefined;
|
|
376
|
+
onPaste?: ((...args: any[]) => any) | undefined;
|
|
377
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
378
|
+
}, {}, {}, {
|
|
379
|
+
shadowableClass(): {
|
|
380
|
+
[x: string]: boolean;
|
|
381
|
+
};
|
|
382
|
+
}, import("vue").MethodOptions, {
|
|
383
|
+
shadow: string | boolean;
|
|
384
|
+
dropShadow: string | boolean;
|
|
385
|
+
dropShadowableClassPrefix: string;
|
|
386
|
+
shadowableClassPrefix: string;
|
|
387
|
+
}>;
|
|
70
388
|
}, {
|
|
71
389
|
model: {
|
|
72
390
|
get(): any;
|
|
@@ -77,6 +395,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
77
395
|
isInvalid(): boolean;
|
|
78
396
|
isValid(): boolean;
|
|
79
397
|
componentName(): any;
|
|
398
|
+
controlClass(): any;
|
|
80
399
|
controlAttributes(): any;
|
|
81
400
|
controlClasses(): any;
|
|
82
401
|
controlSizeClass(): string;
|
|
@@ -155,17 +474,13 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
155
474
|
type: BooleanConstructor;
|
|
156
475
|
default: () => any;
|
|
157
476
|
};
|
|
158
|
-
controlClass: {
|
|
159
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
160
|
-
default: undefined;
|
|
161
|
-
};
|
|
162
477
|
error: {
|
|
163
478
|
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
164
479
|
default: undefined;
|
|
165
480
|
};
|
|
166
481
|
errors: {
|
|
167
482
|
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
168
|
-
default
|
|
483
|
+
default: undefined;
|
|
169
484
|
};
|
|
170
485
|
feedback: {
|
|
171
486
|
type: (StringConstructor | ArrayConstructor)[];
|
|
@@ -202,7 +517,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
202
517
|
};
|
|
203
518
|
modelValue: {
|
|
204
519
|
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
205
|
-
default: undefined;
|
|
520
|
+
default: () => undefined;
|
|
206
521
|
};
|
|
207
522
|
plaintext: BooleanConstructor;
|
|
208
523
|
size: {
|
|
@@ -227,7 +542,6 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, impor
|
|
|
227
542
|
feedback: string | unknown[];
|
|
228
543
|
activity: boolean;
|
|
229
544
|
animated: boolean;
|
|
230
|
-
controlClass: string | unknown[] | Record<string, any>;
|
|
231
545
|
formControlClass: string | unknown[] | Record<string, any>;
|
|
232
546
|
group: boolean;
|
|
233
547
|
helpText: string | number;
|