@vue-interface/select-field 1.0.0-beta.12 → 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/select-field.js +127 -114
- package/dist/select-field.js.map +1 -1
- package/dist/select-field.umd.cjs +1 -1
- package/dist/select-field.umd.cjs.map +1 -1
- package/dist/src/SelectField.vue.d.ts +33 -589
- package/package.json +23 -16
- package/dist/style.css +0 -1
package/dist/select-field.js
CHANGED
|
@@ -1,125 +1,138 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const D = z({
|
|
5
|
-
name: "SelectField",
|
|
6
|
-
components: {
|
|
7
|
-
ActivityIndicator: g
|
|
8
|
-
},
|
|
9
|
-
extends: S,
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* The default class name assigned to the control element
|
|
13
|
-
*
|
|
14
|
-
* @param {String}
|
|
15
|
-
* @default 'form-select'
|
|
16
|
-
*/
|
|
17
|
-
formControlClass: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "form-select"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
computed: {
|
|
23
|
-
controlClass() {
|
|
24
|
-
return this.plaintext ? `${this.formControlClass}-plaintext` : this.formControlClass;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const I = (e, s) => {
|
|
29
|
-
const d = e.__vccOpts || e;
|
|
30
|
-
for (const [u, v] of s)
|
|
31
|
-
d[u] = v;
|
|
32
|
-
return d;
|
|
33
|
-
}, P = ["for"], w = { class: "form-group-inner" }, O = {
|
|
1
|
+
import { defineComponent as z, ref as A, resolveComponent as N, openBlock as s, createElementBlock as d, normalizeClass as C, unref as o, renderSlot as t, toDisplayString as u, createCommentVNode as a, createElementVNode as i, normalizeProps as f, guardReactiveProps as m, useSlots as w, withDirectives as E, mergeProps as P, isRef as D, vModelSelect as I, createVNode as $, Transition as M, withCtx as b, createBlock as B, createTextVNode as R } from "vue";
|
|
2
|
+
import { useFormControl as G, FormControlErrors as U, FormControlFeedback as j } from "@vue-interface/form-control";
|
|
3
|
+
const q = ["for"], H = { class: "form-group-inner" }, J = {
|
|
34
4
|
invalid: "",
|
|
35
5
|
class: "invalid-feedback"
|
|
36
|
-
},
|
|
6
|
+
}, K = /* @__PURE__ */ i("br", null, null, -1), L = {
|
|
37
7
|
valid: "",
|
|
38
8
|
class: "valid-feedback"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
9
|
+
}, W = /* @__PURE__ */ z({
|
|
10
|
+
__name: "SelectField",
|
|
11
|
+
props: {
|
|
12
|
+
activity: { type: Boolean },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
error: {},
|
|
15
|
+
errors: {},
|
|
16
|
+
feedback: {},
|
|
17
|
+
formControlClass: { default: "form-select" },
|
|
18
|
+
helpText: {},
|
|
19
|
+
id: {},
|
|
20
|
+
indicator: {},
|
|
21
|
+
indicatorSize: {},
|
|
22
|
+
invalid: { type: Boolean },
|
|
23
|
+
label: {},
|
|
24
|
+
labelClass: { default: "form-label" },
|
|
25
|
+
modelValue: {},
|
|
26
|
+
name: {},
|
|
27
|
+
plaintext: { type: Boolean },
|
|
28
|
+
readonly: { type: Boolean },
|
|
29
|
+
valid: { type: Boolean },
|
|
30
|
+
value: {},
|
|
31
|
+
checked: { type: Boolean }
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:modelValue"],
|
|
34
|
+
setup(S, { emit: F }) {
|
|
35
|
+
const h = S, {
|
|
36
|
+
controlAttributes: p,
|
|
37
|
+
formGroupClasses: g,
|
|
38
|
+
model: c,
|
|
39
|
+
onClick: k,
|
|
40
|
+
onBlur: v,
|
|
41
|
+
onFocus: y
|
|
42
|
+
} = G(h, F), n = A();
|
|
43
|
+
function T(e) {
|
|
44
|
+
k(e), n.value.focus();
|
|
45
|
+
}
|
|
46
|
+
return (e, l) => {
|
|
47
|
+
const V = N("ActivityIndicator");
|
|
48
|
+
return s(), d("div", {
|
|
49
|
+
class: C(["select-field", o(g)])
|
|
50
|
+
}, [
|
|
51
|
+
t(e.$slots, "label", {}, () => [
|
|
52
|
+
e.label ? (s(), d("label", {
|
|
53
|
+
key: 0,
|
|
54
|
+
ref: "label",
|
|
55
|
+
for: o(p).id,
|
|
56
|
+
class: C(e.labelClass)
|
|
57
|
+
}, u(e.label), 11, q)) : a("", !0)
|
|
58
|
+
]),
|
|
59
|
+
i("div", H, [
|
|
60
|
+
t(e.$slots, "control", f(m({ onClick: o(k), onBlur: o(v), onFocus: o(y), controlAttributes: o(p) })), () => [
|
|
61
|
+
w().icon ? (s(), d("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "form-group-inner-icon",
|
|
64
|
+
onClick: l[0] || (l[0] = //@ts-ignore
|
|
65
|
+
(...r) => n.value.focus && n.value.focus(...r))
|
|
66
|
+
}, [
|
|
67
|
+
t(e.$slots, "icon")
|
|
68
|
+
])) : a("", !0),
|
|
69
|
+
E(i("select", P({
|
|
70
|
+
ref_key: "field",
|
|
71
|
+
ref: n,
|
|
72
|
+
"onUpdate:modelValue": l[1] || (l[1] = (r) => D(c) ? c.value = r : null),
|
|
73
|
+
class: "form-select"
|
|
74
|
+
}, o(p), {
|
|
75
|
+
onMousedown: T,
|
|
76
|
+
onBlur: l[2] || (l[2] = //@ts-ignore
|
|
77
|
+
(...r) => o(v) && o(v)(...r)),
|
|
78
|
+
onFocus: l[3] || (l[3] = //@ts-ignore
|
|
79
|
+
(...r) => o(y) && o(y)(...r))
|
|
80
|
+
}), [
|
|
81
|
+
t(e.$slots, "default")
|
|
82
|
+
], 16), [
|
|
83
|
+
[I, o(c)]
|
|
84
|
+
])
|
|
83
85
|
]),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
default: p(({ error: r }) => [
|
|
97
|
-
a("div", O, [
|
|
98
|
-
B(i(r), 1),
|
|
99
|
-
j
|
|
86
|
+
t(e.$slots, "activity", {}, () => [
|
|
87
|
+
$(M, { name: "select-field-fade" }, {
|
|
88
|
+
default: b(() => [
|
|
89
|
+
e.activity && e.indicator ? (s(), B(V, {
|
|
90
|
+
key: "activity",
|
|
91
|
+
ref: "activity",
|
|
92
|
+
type: e.indicator,
|
|
93
|
+
size: e.indicatorSize
|
|
94
|
+
}, null, 8, ["type", "size"])) : a("", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
})
|
|
100
98
|
])
|
|
101
99
|
]),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
t(e.$slots, "errors", f(m({ error: e.error, errors: e.errors, id: e.$attrs.id, name: e.$attrs.name })), () => [
|
|
101
|
+
e.error || e.errors ? (s(), B(o(U), {
|
|
102
|
+
key: 0,
|
|
103
|
+
id: e.$attrs.id && String(e.$attrs.id),
|
|
104
|
+
name: e.$attrs.name && String(e.$attrs.name),
|
|
105
|
+
error: e.error,
|
|
106
|
+
errors: e.errors
|
|
107
|
+
}, {
|
|
108
|
+
default: b(({ error: r }) => [
|
|
109
|
+
i("div", J, [
|
|
110
|
+
R(u(r), 1),
|
|
111
|
+
K
|
|
112
|
+
])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["id", "name", "error", "errors"])) : a("", !0)
|
|
109
116
|
]),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
t(e.$slots, "feedback", f(m({ feedback: e.feedback })), () => [
|
|
118
|
+
$(o(j), { feedback: e.feedback }, {
|
|
119
|
+
default: b(({ feedback: r }) => [
|
|
120
|
+
i("div", L, u(r), 1)
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["feedback"])
|
|
124
|
+
]),
|
|
125
|
+
t(e.$slots, "help", f(m({ helpText: e.helpText })), () => [
|
|
126
|
+
e.helpText ? (s(), d("small", {
|
|
127
|
+
key: 0,
|
|
128
|
+
ref: "help"
|
|
129
|
+
}, u(e.helpText), 513)) : a("", !0)
|
|
130
|
+
])
|
|
131
|
+
], 2);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
122
135
|
export {
|
|
123
|
-
|
|
136
|
+
W as SelectField
|
|
124
137
|
};
|
|
125
138
|
//# sourceMappingURL=select-field.js.map
|
package/dist/select-field.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-field.js","sources":["../src/SelectField.vue"],"sourcesContent":["<script lang=\"ts\">\nimport {
|
|
1
|
+
{"version":3,"file":"select-field.js","sources":["../src/SelectField.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"T, V\">\nimport type { CheckedFormControlProps, FormControlSlots } from '@vue-interface/form-control';\nimport { FormControlErrors, FormControlFeedback, useFormControl } from '@vue-interface/form-control';\nimport { ref, useSlots } from 'vue';\n\ndefineSlots<FormControlSlots<T>>();\n\nconst emit = defineEmits<{\n (e: 'update:modelValue', value: T): void;\n}>();\n\nconst props = withDefaults(defineProps<CheckedFormControlProps<T, V>>(), {\n formControlClass: 'form-select',\n labelClass: 'form-label'\n});\n\nconst {\n controlAttributes,\n formGroupClasses,\n model,\n onClick,\n onBlur,\n onFocus\n} = useFormControl<T,V>(props, emit);\n\nconst field = ref<HTMLSelectElement>();\n\nfunction onMousedown(e) {\n onClick(e);\n\n field.value.focus();\n}\n</script>\n\n<template>\n <div\n class=\"select-field\"\n :class=\"formGroupClasses\">\n <slot name=\"label\">\n <label\n v-if=\"label\"\n ref=\"label\"\n :for=\"controlAttributes.id\"\n :class=\"labelClass\">\n {{ label }}\n </label>\n </slot>\n\n <div class=\"form-group-inner\">\n <slot\n name=\"control\"\n v-bind=\"{ onClick, onBlur, onFocus, controlAttributes }\">\n <div\n v-if=\"useSlots().icon\"\n class=\"form-group-inner-icon\"\n @click=\"field.focus\">\n <slot name=\"icon\" />\n </div>\n <select\n ref=\"field\"\n v-model=\"model\"\n class=\"form-select\"\n v-bind=\"controlAttributes\"\n @mousedown=\"onMousedown\"\n @blur=\"onBlur\"\n @focus=\"onFocus\">\n <slot />\n </select>\n </slot>\n\n <slot name=\"activity\">\n <Transition name=\"select-field-fade\">\n <ActivityIndicator\n v-if=\"activity && indicator\"\n key=\"activity\"\n ref=\"activity\"\n :type=\"indicator\"\n :size=\"indicatorSize\" />\n </Transition>\n </slot>\n </div>\n\n <slot\n name=\"errors\"\n v-bind=\"{ error, errors, id: $attrs.id, name: $attrs.name }\"> \n <FormControlErrors\n v-if=\"!!(error || errors)\"\n :id=\"$attrs.id && String($attrs.id)\"\n v-slot=\"{ error }\"\n :name=\"$attrs.name && String($attrs.name)\"\n :error=\"error\"\n :errors=\"errors\">\n <div\n invalid\n class=\"invalid-feedback\">\n {{ error }}<br>\n </div>\n </FormControlErrors>\n </slot>\n \n <slot\n name=\"feedback\"\n v-bind=\"{ feedback }\">\n <FormControlFeedback\n v-slot=\"{ feedback }\"\n :feedback=\"feedback\">\n <div\n valid\n class=\"valid-feedback\">\n {{ feedback }}\n </div>\n </FormControlFeedback>\n </slot>\n\n <slot\n name=\"help\"\n v-bind=\"{ helpText }\">\n <small\n v-if=\"helpText\"\n ref=\"help\">\n {{ helpText }}\n </small>\n </slot>\n </div>\n</template>"],"names":["controlAttributes","formGroupClasses","model","onClick","onBlur","onFocus","useFormControl","props","emit","field","ref","onMousedown"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBM;AAAA,MACF,mBAAAA;AAAA,MACA,kBAAAC;AAAA,MACA,OAAAC;AAAA,MACA,SAAAC;AAAA,MACA,QAAAC;AAAA,MACA,SAAAC;AAAA,IAAA,IACAC,EAAoBC,GAAOC,CAAI,GAE7BC,IAAQC;AAEd,aAASC,EAAY,GAAG;AACpB,MAAAR,EAAQ,CAAC,GAETM,EAAM,MAAM;IAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@vue-interface/form-control")):typeof define=="function"&&define.amd?define(["exports","vue","@vue-interface/form-control"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.SelectField={},t.Vue,t.VueInterfaceFormControl))})(this,function(t,e,a){"use strict";const m=["for"],p={class:"form-group-inner"},k={invalid:"",class:"invalid-feedback"},y=e.createElementVNode("br",null,null,-1),b={valid:"",class:"valid-feedback"},S=e.defineComponent({__name:"SelectField",props:{activity:{type:Boolean},disabled:{type:Boolean},error:{},errors:{},feedback:{},formControlClass:{default:"form-select"},helpText:{},id:{},indicator:{},indicatorSize:{},invalid:{type:Boolean},label:{},labelClass:{default:"form-label"},modelValue:{},name:{},plaintext:{type:Boolean},readonly:{type:Boolean},valid:{type:Boolean},value:{},checked:{type:Boolean}},emits:["update:modelValue"],setup(B,{emit:C}){const V=B,{controlAttributes:i,formGroupClasses:$,model:s,onClick:c,onBlur:d,onFocus:f}=a.useFormControl(V,C),n=e.ref();function g(o){c(o),n.value.focus()}return(o,l)=>{const h=e.resolveComponent("ActivityIndicator");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-field",e.unref($)])},[e.renderSlot(o.$slots,"label",{},()=>[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,ref:"label",for:e.unref(i).id,class:e.normalizeClass(o.labelClass)},e.toDisplayString(o.label),11,m)):e.createCommentVNode("",!0)]),e.createElementVNode("div",p,[e.renderSlot(o.$slots,"control",e.normalizeProps(e.guardReactiveProps({onClick:e.unref(c),onBlur:e.unref(d),onFocus:e.unref(f),controlAttributes:e.unref(i)})),()=>[e.useSlots().icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-group-inner-icon",onClick:l[0]||(l[0]=(...r)=>n.value.focus&&n.value.focus(...r))},[e.renderSlot(o.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("select",e.mergeProps({ref_key:"field",ref:n,"onUpdate:modelValue":l[1]||(l[1]=r=>e.isRef(s)?s.value=r:null),class:"form-select"},e.unref(i),{onMousedown:g,onBlur:l[2]||(l[2]=(...r)=>e.unref(d)&&e.unref(d)(...r)),onFocus:l[3]||(l[3]=(...r)=>e.unref(f)&&e.unref(f)(...r))}),[e.renderSlot(o.$slots,"default")],16),[[e.vModelSelect,e.unref(s)]])]),e.renderSlot(o.$slots,"activity",{},()=>[e.createVNode(e.Transition,{name:"select-field-fade"},{default:e.withCtx(()=>[o.activity&&o.indicator?(e.openBlock(),e.createBlock(h,{key:"activity",ref:"activity",type:o.indicator,size:o.indicatorSize},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(e.unref(a.FormControlErrors),{key:0,id:o.$attrs.id&&String(o.$attrs.id),name:o.$attrs.name&&String(o.$attrs.name),error:o.error,errors:o.errors},{default:e.withCtx(({error:r})=>[e.createElementVNode("div",k,[e.createTextVNode(e.toDisplayString(r),1),y])]),_:1},8,["id","name","error","errors"])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"feedback",e.normalizeProps(e.guardReactiveProps({feedback:o.feedback})),()=>[e.createVNode(e.unref(a.FormControlFeedback),{feedback:o.feedback},{default:e.withCtx(({feedback:r})=>[e.createElementVNode("div",b,e.toDisplayString(r),1)]),_:1},8,["feedback"])]),e.renderSlot(o.$slots,"help",e.normalizeProps(e.guardReactiveProps({helpText:o.helpText})),()=>[o.helpText?(e.openBlock(),e.createElementBlock("small",{key:0,ref:"help"},e.toDisplayString(o.helpText),513)):e.createCommentVNode("",!0)])],2)}}});t.SelectField=S,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=select-field.umd.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-field.umd.cjs","sources":["../src/SelectField.vue"],"sourcesContent":["<script lang=\"ts\">\nimport {
|
|
1
|
+
{"version":3,"file":"select-field.umd.cjs","sources":["../src/SelectField.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"T, V\">\nimport type { CheckedFormControlProps, FormControlSlots } from '@vue-interface/form-control';\nimport { FormControlErrors, FormControlFeedback, useFormControl } from '@vue-interface/form-control';\nimport { ref, useSlots } from 'vue';\n\ndefineSlots<FormControlSlots<T>>();\n\nconst emit = defineEmits<{\n (e: 'update:modelValue', value: T): void;\n}>();\n\nconst props = withDefaults(defineProps<CheckedFormControlProps<T, V>>(), {\n formControlClass: 'form-select',\n labelClass: 'form-label'\n});\n\nconst {\n controlAttributes,\n formGroupClasses,\n model,\n onClick,\n onBlur,\n onFocus\n} = useFormControl<T,V>(props, emit);\n\nconst field = ref<HTMLSelectElement>();\n\nfunction onMousedown(e) {\n onClick(e);\n\n field.value.focus();\n}\n</script>\n\n<template>\n <div\n class=\"select-field\"\n :class=\"formGroupClasses\">\n <slot name=\"label\">\n <label\n v-if=\"label\"\n ref=\"label\"\n :for=\"controlAttributes.id\"\n :class=\"labelClass\">\n {{ label }}\n </label>\n </slot>\n\n <div class=\"form-group-inner\">\n <slot\n name=\"control\"\n v-bind=\"{ onClick, onBlur, onFocus, controlAttributes }\">\n <div\n v-if=\"useSlots().icon\"\n class=\"form-group-inner-icon\"\n @click=\"field.focus\">\n <slot name=\"icon\" />\n </div>\n <select\n ref=\"field\"\n v-model=\"model\"\n class=\"form-select\"\n v-bind=\"controlAttributes\"\n @mousedown=\"onMousedown\"\n @blur=\"onBlur\"\n @focus=\"onFocus\">\n <slot />\n </select>\n </slot>\n\n <slot name=\"activity\">\n <Transition name=\"select-field-fade\">\n <ActivityIndicator\n v-if=\"activity && indicator\"\n key=\"activity\"\n ref=\"activity\"\n :type=\"indicator\"\n :size=\"indicatorSize\" />\n </Transition>\n </slot>\n </div>\n\n <slot\n name=\"errors\"\n v-bind=\"{ error, errors, id: $attrs.id, name: $attrs.name }\"> \n <FormControlErrors\n v-if=\"!!(error || errors)\"\n :id=\"$attrs.id && String($attrs.id)\"\n v-slot=\"{ error }\"\n :name=\"$attrs.name && String($attrs.name)\"\n :error=\"error\"\n :errors=\"errors\">\n <div\n invalid\n class=\"invalid-feedback\">\n {{ error }}<br>\n </div>\n </FormControlErrors>\n </slot>\n \n <slot\n name=\"feedback\"\n v-bind=\"{ feedback }\">\n <FormControlFeedback\n v-slot=\"{ feedback }\"\n :feedback=\"feedback\">\n <div\n valid\n class=\"valid-feedback\">\n {{ feedback }}\n </div>\n </FormControlFeedback>\n </slot>\n\n <slot\n name=\"help\"\n v-bind=\"{ helpText }\">\n <small\n v-if=\"helpText\"\n ref=\"help\">\n {{ helpText }}\n </small>\n </slot>\n </div>\n</template>"],"names":["controlAttributes","formGroupClasses","model","onClick","onBlur","onFocus","useFormControl","props","emit","field","ref","onMousedown","e"],"mappings":"o9BAgBM,CACF,kBAAAA,EACA,iBAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,CAAA,EACAC,EAAoB,eAAAC,EAAOC,CAAI,EAE7BC,EAAQC,EAAAA,MAEd,SAASC,EAAYC,EAAG,CACpBT,EAAQS,CAAC,EAETH,EAAM,MAAM,OAChB"}
|
|
@@ -1,589 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
default: undefined;
|
|
35
|
-
};
|
|
36
|
-
feedback: {
|
|
37
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
38
|
-
default: undefined;
|
|
39
|
-
};
|
|
40
|
-
formControlClass: {
|
|
41
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
42
|
-
default: () => any;
|
|
43
|
-
};
|
|
44
|
-
group: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: () => any;
|
|
47
|
-
};
|
|
48
|
-
helpText: {
|
|
49
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
50
|
-
default: undefined;
|
|
51
|
-
};
|
|
52
|
-
indicator: {
|
|
53
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
54
|
-
default: () => any;
|
|
55
|
-
};
|
|
56
|
-
indicatorSize: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: undefined;
|
|
59
|
-
};
|
|
60
|
-
invalid: BooleanConstructor;
|
|
61
|
-
label: {
|
|
62
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
-
default: undefined;
|
|
64
|
-
};
|
|
65
|
-
labelClass: {
|
|
66
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
67
|
-
default: () => any;
|
|
68
|
-
};
|
|
69
|
-
modelValue: {
|
|
70
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
71
|
-
default: () => undefined;
|
|
72
|
-
};
|
|
73
|
-
plaintext: BooleanConstructor;
|
|
74
|
-
size: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: undefined;
|
|
77
|
-
};
|
|
78
|
-
valid: BooleanConstructor;
|
|
79
|
-
}, unknown, {
|
|
80
|
-
currentValue: undefined;
|
|
81
|
-
hasChanged: boolean;
|
|
82
|
-
hasFocus: boolean;
|
|
83
|
-
isDirty: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
-
activity: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
animated: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: () => any;
|
|
91
|
-
};
|
|
92
|
-
error: {
|
|
93
|
-
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
94
|
-
default: undefined;
|
|
95
|
-
};
|
|
96
|
-
errors: {
|
|
97
|
-
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
98
|
-
default: undefined;
|
|
99
|
-
};
|
|
100
|
-
feedback: {
|
|
101
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
102
|
-
default: undefined;
|
|
103
|
-
};
|
|
104
|
-
formControlClass: {
|
|
105
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
106
|
-
default: () => any;
|
|
107
|
-
};
|
|
108
|
-
group: {
|
|
109
|
-
type: BooleanConstructor;
|
|
110
|
-
default: () => any;
|
|
111
|
-
};
|
|
112
|
-
helpText: {
|
|
113
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
114
|
-
default: undefined;
|
|
115
|
-
};
|
|
116
|
-
indicator: {
|
|
117
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
118
|
-
default: () => any;
|
|
119
|
-
};
|
|
120
|
-
indicatorSize: {
|
|
121
|
-
type: StringConstructor;
|
|
122
|
-
default: undefined;
|
|
123
|
-
};
|
|
124
|
-
invalid: BooleanConstructor;
|
|
125
|
-
label: {
|
|
126
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
127
|
-
default: undefined;
|
|
128
|
-
};
|
|
129
|
-
labelClass: {
|
|
130
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
131
|
-
default: () => any;
|
|
132
|
-
};
|
|
133
|
-
modelValue: {
|
|
134
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
135
|
-
default: () => undefined;
|
|
136
|
-
};
|
|
137
|
-
plaintext: BooleanConstructor;
|
|
138
|
-
size: {
|
|
139
|
-
type: StringConstructor;
|
|
140
|
-
default: undefined;
|
|
141
|
-
};
|
|
142
|
-
valid: BooleanConstructor;
|
|
143
|
-
}>> & {
|
|
144
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
145
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
146
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
147
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
148
|
-
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
149
|
-
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
150
|
-
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
151
|
-
onProgress?: ((...args: any[]) => any) | undefined;
|
|
152
|
-
onPaste?: ((...args: any[]) => any) | undefined;
|
|
153
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
154
|
-
}, {}, {}, {}, import("vue").MethodOptions, import("vue").DefineComponent<{
|
|
155
|
-
dropShadow: {
|
|
156
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
157
|
-
default: undefined;
|
|
158
|
-
};
|
|
159
|
-
dropShadowableClassPrefix: {
|
|
160
|
-
type: StringConstructor;
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
shadow: {
|
|
164
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
165
|
-
default: undefined;
|
|
166
|
-
};
|
|
167
|
-
shadowableClassPrefix: {
|
|
168
|
-
type: StringConstructor;
|
|
169
|
-
default: string;
|
|
170
|
-
};
|
|
171
|
-
}, unknown, unknown, {
|
|
172
|
-
shadowableClass(): {
|
|
173
|
-
[x: string]: boolean;
|
|
174
|
-
};
|
|
175
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
176
|
-
dropShadow: {
|
|
177
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
178
|
-
default: undefined;
|
|
179
|
-
};
|
|
180
|
-
dropShadowableClassPrefix: {
|
|
181
|
-
type: StringConstructor;
|
|
182
|
-
default: string;
|
|
183
|
-
};
|
|
184
|
-
shadow: {
|
|
185
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
186
|
-
default: undefined;
|
|
187
|
-
};
|
|
188
|
-
shadowableClassPrefix: {
|
|
189
|
-
type: StringConstructor;
|
|
190
|
-
default: string;
|
|
191
|
-
};
|
|
192
|
-
}>>, {
|
|
193
|
-
shadow: string | boolean;
|
|
194
|
-
dropShadow: string | boolean;
|
|
195
|
-
dropShadowableClassPrefix: string;
|
|
196
|
-
shadowableClassPrefix: string;
|
|
197
|
-
}>, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{
|
|
198
|
-
activity: {
|
|
199
|
-
type: BooleanConstructor;
|
|
200
|
-
default: boolean;
|
|
201
|
-
};
|
|
202
|
-
animated: {
|
|
203
|
-
type: BooleanConstructor;
|
|
204
|
-
default: () => any;
|
|
205
|
-
};
|
|
206
|
-
error: {
|
|
207
|
-
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
208
|
-
default: undefined;
|
|
209
|
-
};
|
|
210
|
-
errors: {
|
|
211
|
-
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
212
|
-
default: undefined;
|
|
213
|
-
};
|
|
214
|
-
feedback: {
|
|
215
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
216
|
-
default: undefined;
|
|
217
|
-
};
|
|
218
|
-
formControlClass: {
|
|
219
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
220
|
-
default: () => any;
|
|
221
|
-
};
|
|
222
|
-
group: {
|
|
223
|
-
type: BooleanConstructor;
|
|
224
|
-
default: () => any;
|
|
225
|
-
};
|
|
226
|
-
helpText: {
|
|
227
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
228
|
-
default: undefined;
|
|
229
|
-
};
|
|
230
|
-
indicator: {
|
|
231
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
232
|
-
default: () => any;
|
|
233
|
-
};
|
|
234
|
-
indicatorSize: {
|
|
235
|
-
type: StringConstructor;
|
|
236
|
-
default: undefined;
|
|
237
|
-
};
|
|
238
|
-
invalid: BooleanConstructor;
|
|
239
|
-
label: {
|
|
240
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
241
|
-
default: undefined;
|
|
242
|
-
};
|
|
243
|
-
labelClass: {
|
|
244
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
245
|
-
default: () => any;
|
|
246
|
-
};
|
|
247
|
-
modelValue: {
|
|
248
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
249
|
-
default: () => undefined;
|
|
250
|
-
};
|
|
251
|
-
plaintext: BooleanConstructor;
|
|
252
|
-
size: {
|
|
253
|
-
type: StringConstructor;
|
|
254
|
-
default: undefined;
|
|
255
|
-
};
|
|
256
|
-
valid: BooleanConstructor;
|
|
257
|
-
}>> & {
|
|
258
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
259
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
260
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
261
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
262
|
-
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
263
|
-
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
264
|
-
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
265
|
-
onProgress?: ((...args: any[]) => any) | undefined;
|
|
266
|
-
onPaste?: ((...args: any[]) => any) | undefined;
|
|
267
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
268
|
-
}, {}, false, {}, {
|
|
269
|
-
P: Readonly<import("vue").ExtractPropTypes<{
|
|
270
|
-
dropShadow: {
|
|
271
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
272
|
-
default: undefined;
|
|
273
|
-
};
|
|
274
|
-
dropShadowableClassPrefix: {
|
|
275
|
-
type: StringConstructor;
|
|
276
|
-
default: string;
|
|
277
|
-
};
|
|
278
|
-
shadow: {
|
|
279
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
280
|
-
default: undefined;
|
|
281
|
-
};
|
|
282
|
-
shadowableClassPrefix: {
|
|
283
|
-
type: StringConstructor;
|
|
284
|
-
default: string;
|
|
285
|
-
};
|
|
286
|
-
}>>;
|
|
287
|
-
B: {};
|
|
288
|
-
D: {};
|
|
289
|
-
C: {
|
|
290
|
-
shadowableClass(): {
|
|
291
|
-
[x: string]: boolean;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
M: {};
|
|
295
|
-
Defaults: {
|
|
296
|
-
shadow: string | boolean;
|
|
297
|
-
dropShadow: string | boolean;
|
|
298
|
-
dropShadowableClassPrefix: string;
|
|
299
|
-
shadowableClassPrefix: string;
|
|
300
|
-
};
|
|
301
|
-
} & {
|
|
302
|
-
P: {};
|
|
303
|
-
B: {};
|
|
304
|
-
D: {};
|
|
305
|
-
C: {};
|
|
306
|
-
M: {};
|
|
307
|
-
Defaults: {};
|
|
308
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
309
|
-
dropShadow: {
|
|
310
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
311
|
-
default: undefined;
|
|
312
|
-
};
|
|
313
|
-
dropShadowableClassPrefix: {
|
|
314
|
-
type: StringConstructor;
|
|
315
|
-
default: string;
|
|
316
|
-
};
|
|
317
|
-
shadow: {
|
|
318
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
319
|
-
default: undefined;
|
|
320
|
-
};
|
|
321
|
-
shadowableClassPrefix: {
|
|
322
|
-
type: StringConstructor;
|
|
323
|
-
default: string;
|
|
324
|
-
};
|
|
325
|
-
}>> & Readonly<import("vue").ExtractPropTypes<{
|
|
326
|
-
activity: {
|
|
327
|
-
type: BooleanConstructor;
|
|
328
|
-
default: boolean;
|
|
329
|
-
};
|
|
330
|
-
animated: {
|
|
331
|
-
type: BooleanConstructor;
|
|
332
|
-
default: () => any;
|
|
333
|
-
};
|
|
334
|
-
error: {
|
|
335
|
-
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
336
|
-
default: undefined;
|
|
337
|
-
};
|
|
338
|
-
errors: {
|
|
339
|
-
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
340
|
-
default: undefined;
|
|
341
|
-
};
|
|
342
|
-
feedback: {
|
|
343
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
344
|
-
default: undefined;
|
|
345
|
-
};
|
|
346
|
-
formControlClass: {
|
|
347
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
348
|
-
default: () => any;
|
|
349
|
-
};
|
|
350
|
-
group: {
|
|
351
|
-
type: BooleanConstructor;
|
|
352
|
-
default: () => any;
|
|
353
|
-
};
|
|
354
|
-
helpText: {
|
|
355
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
356
|
-
default: undefined;
|
|
357
|
-
};
|
|
358
|
-
indicator: {
|
|
359
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
360
|
-
default: () => any;
|
|
361
|
-
};
|
|
362
|
-
indicatorSize: {
|
|
363
|
-
type: StringConstructor;
|
|
364
|
-
default: undefined;
|
|
365
|
-
};
|
|
366
|
-
invalid: BooleanConstructor;
|
|
367
|
-
label: {
|
|
368
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
369
|
-
default: undefined;
|
|
370
|
-
};
|
|
371
|
-
labelClass: {
|
|
372
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
373
|
-
default: () => any;
|
|
374
|
-
};
|
|
375
|
-
modelValue: {
|
|
376
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
377
|
-
default: () => undefined;
|
|
378
|
-
};
|
|
379
|
-
plaintext: BooleanConstructor;
|
|
380
|
-
size: {
|
|
381
|
-
type: StringConstructor;
|
|
382
|
-
default: undefined;
|
|
383
|
-
};
|
|
384
|
-
valid: BooleanConstructor;
|
|
385
|
-
}>> & {
|
|
386
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
387
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
388
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
389
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
390
|
-
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
391
|
-
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
392
|
-
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
393
|
-
onProgress?: ((...args: any[]) => any) | undefined;
|
|
394
|
-
onPaste?: ((...args: any[]) => any) | undefined;
|
|
395
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
396
|
-
}, {}, {}, {
|
|
397
|
-
shadowableClass(): {
|
|
398
|
-
[x: string]: boolean;
|
|
399
|
-
};
|
|
400
|
-
}, import("vue").MethodOptions, {
|
|
401
|
-
shadow: string | boolean;
|
|
402
|
-
dropShadow: string | boolean;
|
|
403
|
-
dropShadowableClassPrefix: string;
|
|
404
|
-
shadowableClassPrefix: string;
|
|
405
|
-
}>;
|
|
406
|
-
}, {
|
|
407
|
-
model: {
|
|
408
|
-
get(): any;
|
|
409
|
-
set(value: any): void;
|
|
410
|
-
};
|
|
411
|
-
id(): string | undefined;
|
|
412
|
-
isEmpty(): boolean;
|
|
413
|
-
isInvalid(): boolean;
|
|
414
|
-
isValid(): boolean;
|
|
415
|
-
componentName(): any;
|
|
416
|
-
controlClass(): any;
|
|
417
|
-
controlAttributes(): any;
|
|
418
|
-
controlClasses(): any;
|
|
419
|
-
controlSizeClass(): string;
|
|
420
|
-
formGroupClasses(): {
|
|
421
|
-
[x: number]: boolean;
|
|
422
|
-
animated: any;
|
|
423
|
-
'form-group': any;
|
|
424
|
-
'has-activity': any;
|
|
425
|
-
'has-changed': any;
|
|
426
|
-
'has-focus': any;
|
|
427
|
-
'has-icon': boolean;
|
|
428
|
-
'is-dirty': any;
|
|
429
|
-
'is-empty': any;
|
|
430
|
-
'is-invalid': any;
|
|
431
|
-
'is-valid': any;
|
|
432
|
-
} & (false | {
|
|
433
|
-
[x: string]: boolean;
|
|
434
|
-
});
|
|
435
|
-
plaintextClass(): "form-control-plaintext";
|
|
436
|
-
}, {
|
|
437
|
-
bindEvents(el: HTMLElement): void;
|
|
438
|
-
blur(): void;
|
|
439
|
-
focus(): void;
|
|
440
|
-
getFieldErrors(): any;
|
|
441
|
-
getModelValue(): any;
|
|
442
|
-
setModelValue(value: any): void;
|
|
443
|
-
}, import("vue").DefineComponent<{
|
|
444
|
-
dropShadow: {
|
|
445
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
446
|
-
default: undefined;
|
|
447
|
-
};
|
|
448
|
-
dropShadowableClassPrefix: {
|
|
449
|
-
type: StringConstructor;
|
|
450
|
-
default: string;
|
|
451
|
-
};
|
|
452
|
-
shadow: {
|
|
453
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
454
|
-
default: undefined;
|
|
455
|
-
};
|
|
456
|
-
shadowableClassPrefix: {
|
|
457
|
-
type: StringConstructor;
|
|
458
|
-
default: string;
|
|
459
|
-
};
|
|
460
|
-
}, unknown, unknown, {
|
|
461
|
-
shadowableClass(): {
|
|
462
|
-
[x: string]: boolean;
|
|
463
|
-
};
|
|
464
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
465
|
-
dropShadow: {
|
|
466
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
467
|
-
default: undefined;
|
|
468
|
-
};
|
|
469
|
-
dropShadowableClassPrefix: {
|
|
470
|
-
type: StringConstructor;
|
|
471
|
-
default: string;
|
|
472
|
-
};
|
|
473
|
-
shadow: {
|
|
474
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
475
|
-
default: undefined;
|
|
476
|
-
};
|
|
477
|
-
shadowableClassPrefix: {
|
|
478
|
-
type: StringConstructor;
|
|
479
|
-
default: string;
|
|
480
|
-
};
|
|
481
|
-
}>>, {
|
|
482
|
-
shadow: string | boolean;
|
|
483
|
-
dropShadow: string | boolean;
|
|
484
|
-
dropShadowableClassPrefix: string;
|
|
485
|
-
shadowableClassPrefix: string;
|
|
486
|
-
}>, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "change" | "click" | "keypress" | "keyup" | "keydown" | "progress" | "paste" | "update:modelValue")[], "focus" | "blur" | "change" | "click" | "keypress" | "keyup" | "keydown" | "progress" | "paste" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
487
|
-
activity: {
|
|
488
|
-
type: BooleanConstructor;
|
|
489
|
-
default: boolean;
|
|
490
|
-
};
|
|
491
|
-
animated: {
|
|
492
|
-
type: BooleanConstructor;
|
|
493
|
-
default: () => any;
|
|
494
|
-
};
|
|
495
|
-
error: {
|
|
496
|
-
type: (BooleanConstructor | StringConstructor | ArrayConstructor)[];
|
|
497
|
-
default: undefined;
|
|
498
|
-
};
|
|
499
|
-
errors: {
|
|
500
|
-
type: (BooleanConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
501
|
-
default: undefined;
|
|
502
|
-
};
|
|
503
|
-
feedback: {
|
|
504
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
505
|
-
default: undefined;
|
|
506
|
-
};
|
|
507
|
-
formControlClass: {
|
|
508
|
-
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
509
|
-
default: () => any;
|
|
510
|
-
};
|
|
511
|
-
group: {
|
|
512
|
-
type: BooleanConstructor;
|
|
513
|
-
default: () => any;
|
|
514
|
-
};
|
|
515
|
-
helpText: {
|
|
516
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
517
|
-
default: undefined;
|
|
518
|
-
};
|
|
519
|
-
indicator: {
|
|
520
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor)[];
|
|
521
|
-
default: () => any;
|
|
522
|
-
};
|
|
523
|
-
indicatorSize: {
|
|
524
|
-
type: StringConstructor;
|
|
525
|
-
default: undefined;
|
|
526
|
-
};
|
|
527
|
-
invalid: BooleanConstructor;
|
|
528
|
-
label: {
|
|
529
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
530
|
-
default: undefined;
|
|
531
|
-
};
|
|
532
|
-
labelClass: {
|
|
533
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
534
|
-
default: () => any;
|
|
535
|
-
};
|
|
536
|
-
modelValue: {
|
|
537
|
-
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
538
|
-
default: () => undefined;
|
|
539
|
-
};
|
|
540
|
-
plaintext: BooleanConstructor;
|
|
541
|
-
size: {
|
|
542
|
-
type: StringConstructor;
|
|
543
|
-
default: undefined;
|
|
544
|
-
};
|
|
545
|
-
valid: BooleanConstructor;
|
|
546
|
-
}>> & {
|
|
547
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
548
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
549
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
550
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
551
|
-
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
552
|
-
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
553
|
-
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
554
|
-
onProgress?: ((...args: any[]) => any) | undefined;
|
|
555
|
-
onPaste?: ((...args: any[]) => any) | undefined;
|
|
556
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
557
|
-
}, {
|
|
558
|
-
error: string | boolean | unknown[];
|
|
559
|
-
errors: boolean | unknown[] | Record<string, any>;
|
|
560
|
-
feedback: string | unknown[];
|
|
561
|
-
activity: boolean;
|
|
562
|
-
animated: boolean;
|
|
563
|
-
formControlClass: string | unknown[] | Record<string, any>;
|
|
564
|
-
group: boolean;
|
|
565
|
-
helpText: string | number;
|
|
566
|
-
indicator: string | boolean | Record<string, any>;
|
|
567
|
-
indicatorSize: string;
|
|
568
|
-
invalid: boolean;
|
|
569
|
-
label: string | number;
|
|
570
|
-
labelClass: string | Record<string, any>;
|
|
571
|
-
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
572
|
-
plaintext: boolean;
|
|
573
|
-
size: string;
|
|
574
|
-
valid: boolean;
|
|
575
|
-
}>, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
576
|
-
/**
|
|
577
|
-
* The default class name assigned to the control element
|
|
578
|
-
*
|
|
579
|
-
* @param {String}
|
|
580
|
-
* @default 'form-select'
|
|
581
|
-
*/
|
|
582
|
-
formControlClass: {
|
|
583
|
-
type: StringConstructor;
|
|
584
|
-
default: string;
|
|
585
|
-
};
|
|
586
|
-
}>>, {
|
|
587
|
-
formControlClass: string;
|
|
588
|
-
}>;
|
|
589
|
-
export default _sfc_main;
|
|
1
|
+
import type { FormControlSlots } from '@vue-interface/form-control';
|
|
2
|
+
declare const _default: <T, V>(__VLS_props: import("@vue-interface/form-control").FormControlProps<T, V> & {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
|
5
|
+
props: import("@vue-interface/form-control").FormControlProps<T, V> & {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
};
|
|
8
|
+
expose(exposed: {}): void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: FormControlSlots<T>;
|
|
11
|
+
emit: (e: 'update:modelValue', value: T) => void;
|
|
12
|
+
}, "attrs" | "emit" | "slots">, __VLS_setup?: Promise<{
|
|
13
|
+
props: import("@vue-interface/form-control").FormControlProps<T, V> & {
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
};
|
|
16
|
+
expose(exposed: {}): void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: FormControlSlots<T>;
|
|
19
|
+
emit: (e: 'update:modelValue', value: T) => void;
|
|
20
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}> & {
|
|
23
|
+
__ctx?: {
|
|
24
|
+
props: import("@vue-interface/form-control").FormControlProps<T, V> & {
|
|
25
|
+
checked?: boolean;
|
|
26
|
+
};
|
|
27
|
+
expose(exposed: {}): void;
|
|
28
|
+
attrs: any;
|
|
29
|
+
slots: FormControlSlots<T>;
|
|
30
|
+
emit: (e: 'update:modelValue', value: T) => void;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-interface/select-field",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"description": "A Vue select field component.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -8,20 +8,18 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/select-field.umd.js",
|
|
10
10
|
"module": "./dist/select-field.js",
|
|
11
|
-
"style": "./dist/style.css",
|
|
12
11
|
"types": "./dist/index.d.ts",
|
|
13
12
|
"exports": {
|
|
14
13
|
".": {
|
|
15
14
|
"import": "./dist/select-field.js",
|
|
16
15
|
"require": "./dist/select-field.umd.js",
|
|
17
16
|
"types": "./dist/index.d.ts"
|
|
18
|
-
}
|
|
19
|
-
"./dist/style.css": "./dist/style.css"
|
|
17
|
+
}
|
|
20
18
|
},
|
|
21
19
|
"browserslist": "last 2 versions, > 0.5%, ie >= 11",
|
|
22
20
|
"scripts": {
|
|
23
21
|
"dev": "vite",
|
|
24
|
-
"build": "vite build",
|
|
22
|
+
"build": "vite build && vue-tsc",
|
|
25
23
|
"preview": "vite preview"
|
|
26
24
|
},
|
|
27
25
|
"repository": {
|
|
@@ -44,22 +42,31 @@
|
|
|
44
42
|
"homepage": "https://github.com/vue-interface/select-field",
|
|
45
43
|
"dependencies": {
|
|
46
44
|
"@vue-interface/activity-indicator": "^2.0.0-beta.11",
|
|
47
|
-
"@vue-interface/form-control": "^1.0.0-beta.
|
|
45
|
+
"@vue-interface/form-control": "^1.0.0-beta.38"
|
|
48
46
|
},
|
|
49
47
|
"peerDependencies": {
|
|
50
|
-
"vue": "^3.
|
|
48
|
+
"vue": "^3.3.4"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
51
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
52
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
53
|
+
"@semantic-release/git": "^10.0.1",
|
|
54
|
+
"@semantic-release/npm": "^10.0.5",
|
|
55
|
+
"@vitejs/plugin-vue": "^4.3.3",
|
|
56
|
+
"@vue-interface/eslint-config": "1.0.0-beta.4",
|
|
57
|
+
"autoprefixer": "^10.4.15",
|
|
56
58
|
"change-case": "^4.1.2",
|
|
57
|
-
"
|
|
59
|
+
"commitlint": "^17.7.1",
|
|
60
|
+
"dotenv": "^16.3.1",
|
|
61
|
+
"eslint": "^8.47.0",
|
|
62
|
+
"husky": "^8.0.3",
|
|
58
63
|
"pascalcase": "^2.0.0",
|
|
59
|
-
"postcss": "^8.4.
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
+
"postcss": "^8.4.28",
|
|
65
|
+
"semantic-release": "^21.1.1",
|
|
66
|
+
"tailwindcss": "^3.3.3",
|
|
67
|
+
"typescript": "^5.2.2",
|
|
68
|
+
"vite": "^4.4.9",
|
|
69
|
+
"vue": "^3.3.4",
|
|
70
|
+
"vue-tsc": "^1.8.8"
|
|
64
71
|
}
|
|
65
72
|
}
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.select-field,.select-field .form-group-inner{position:relative;-webkit-transition:all .25s ease-in-out;transition:all .25s ease-in-out}.select-field .activity-indicator{position:absolute;right:1.25em;top:50%;-webkit-transform:translate(-1rem,-50%);transform:translate(-1rem,-50%);-webkit-transition:all .15s ease-in;transition:all .15s ease-in}.select-field .activity-indicator-xs{font-size:.5em;right:2em}.select-field.has-activity .form-control-xs{padding-right:3.75em}.select-field .activity-indicator-sm{font-size:.5em;right:2em}.select-field.has-activity .form-control-sm{padding-right:3em}.select-field .activity-indicator-md{font-size:.666em}.select-field.has-activity .form-control-md{padding-right:3em}.select-field .activity-indicator-lg{font-size:.75em}.select-field.has-activity .form-control-lg{padding-right:3em}.select-field .activity-indicator-xl{font-size:1em}.select-field.has-activity .activity-indicator-xl~.form-control-xl{padding-right:3.75em}.select-field.is-valid .valid-feedback,.select-field.is-invalid .invalid-feedback{display:-webkit-box;display:-ms-flexbox;display:flex}.select-field .form-control-icon{padding-left:2em}.select-field .form-group-inner-icon{position:absolute;top:50%;left:.666em;width:1rem;font-size:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.select-field-sm .form-group-inner-icon{position:absolute;top:50%;left:.666rem;width:.75em;font-size:1.5em;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.select-field-lg .form-group-inner-icon{position:absolute;top:50%;left:.666rem;width:1.25em;font-size:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.select-field .activity-indicator{opacity:1}.select-field .select-field-fade-enter,.select-field .select-field-fade-leave-to{opacity:0}
|