@vue-interface/select-field 1.0.0-beta.20 → 1.0.0-beta.22
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
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as A, ref as N, onMounted as w, useSlots as k, openBlock as
|
|
1
|
+
import { defineComponent as A, ref as N, onMounted as w, useSlots as k, openBlock as i, createElementBlock as u, normalizeClass as h, unref as o, renderSlot as s, toDisplayString as f, createCommentVNode as t, createElementVNode as a, normalizeProps as p, guardReactiveProps as m, withDirectives as E, mergeProps as M, isRef as P, vModelSelect as D, createVNode as B, Transition as R, withCtx as y, createBlock as S, createTextVNode as G } from "vue";
|
|
2
2
|
import { ActivityIndicator as I } from "@vue-interface/activity-indicator";
|
|
3
3
|
import { useFormControl as U, FormControlErrors as j, FormControlFeedback as q } from "@vue-interface/form-control";
|
|
4
4
|
const H = ["for"], J = { class: "form-group-inner" }, K = {
|
|
5
5
|
invalid: "",
|
|
6
6
|
class: "invalid-feedback"
|
|
7
|
-
}, L = /* @__PURE__ */
|
|
7
|
+
}, L = /* @__PURE__ */ a("br", null, null, -1), O = {
|
|
8
8
|
valid: "",
|
|
9
9
|
class: "valid-feedback"
|
|
10
10
|
}, Y = /* @__PURE__ */ A({
|
|
@@ -29,19 +29,18 @@ const H = ["for"], J = { class: "form-group-inner" }, K = {
|
|
|
29
29
|
plaintext: { type: Boolean },
|
|
30
30
|
readonly: { type: Boolean },
|
|
31
31
|
valid: { type: Boolean },
|
|
32
|
-
value: {}
|
|
33
|
-
checked: { type: Boolean }
|
|
32
|
+
value: {}
|
|
34
33
|
},
|
|
35
34
|
emits: ["blur", "change", "click", "focus", "update:modelValue"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
35
|
+
setup(F, { emit: g }) {
|
|
36
|
+
const $ = g, T = F, {
|
|
38
37
|
controlAttributes: c,
|
|
39
38
|
formGroupClasses: V,
|
|
40
39
|
model: n,
|
|
41
40
|
onClick: C,
|
|
42
41
|
onBlur: v,
|
|
43
42
|
onFocus: b
|
|
44
|
-
} = U({ props: T, emit:
|
|
43
|
+
} = U({ props: T, emit: $ }), d = N();
|
|
45
44
|
function z(e) {
|
|
46
45
|
C(e), d.value.focus();
|
|
47
46
|
}
|
|
@@ -52,28 +51,28 @@ const H = ["for"], J = { class: "form-group-inner" }, K = {
|
|
|
52
51
|
return;
|
|
53
52
|
"selected" in e.props && (e.props.value ?? e.children) && (n.value = e.props.value ?? e.children);
|
|
54
53
|
}
|
|
55
|
-
}), (e, l) => (
|
|
56
|
-
class:
|
|
54
|
+
}), (e, l) => (i(), u("div", {
|
|
55
|
+
class: h(["select-field", o(V)])
|
|
57
56
|
}, [
|
|
58
|
-
|
|
59
|
-
e.label ? (
|
|
57
|
+
s(e.$slots, "label", {}, () => [
|
|
58
|
+
e.label ? (i(), u("label", {
|
|
60
59
|
key: 0,
|
|
61
60
|
ref: "label",
|
|
62
61
|
for: o(c).id,
|
|
63
|
-
class:
|
|
64
|
-
}, f(e.label), 11, H)) :
|
|
62
|
+
class: h(e.labelClass)
|
|
63
|
+
}, f(e.label), 11, H)) : t("", !0)
|
|
65
64
|
]),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
k().icon ? (
|
|
65
|
+
a("div", J, [
|
|
66
|
+
s(e.$slots, "control", p(m({ onClick: o(C), onBlur: o(v), onFocus: o(b), controlAttributes: o(c) })), () => [
|
|
67
|
+
k().icon ? (i(), u("div", {
|
|
69
68
|
key: 0,
|
|
70
69
|
class: "form-group-inner-icon",
|
|
71
70
|
onClick: l[0] || (l[0] = //@ts-ignore
|
|
72
71
|
(...r) => d.value.focus && d.value.focus(...r))
|
|
73
72
|
}, [
|
|
74
|
-
|
|
75
|
-
])) :
|
|
76
|
-
E(
|
|
73
|
+
s(e.$slots, "icon")
|
|
74
|
+
])) : t("", !0),
|
|
75
|
+
E(a("select", M({
|
|
77
76
|
ref_key: "field",
|
|
78
77
|
ref: d,
|
|
79
78
|
"onUpdate:modelValue": l[1] || (l[1] = (r) => P(n) ? n.value = r : null),
|
|
@@ -85,55 +84,55 @@ const H = ["for"], J = { class: "form-group-inner" }, K = {
|
|
|
85
84
|
onFocus: l[3] || (l[3] = //@ts-ignore
|
|
86
85
|
(...r) => o(b) && o(b)(...r))
|
|
87
86
|
}), [
|
|
88
|
-
|
|
87
|
+
s(e.$slots, "default")
|
|
89
88
|
], 16), [
|
|
90
89
|
[D, o(n)]
|
|
91
90
|
])
|
|
92
91
|
]),
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
s(e.$slots, "activity", {}, () => [
|
|
93
|
+
B(R, { name: "select-field-fade" }, {
|
|
95
94
|
default: y(() => [
|
|
96
|
-
e.activity && e.indicator ? (
|
|
95
|
+
e.activity && e.indicator ? (i(), S(o(I), {
|
|
97
96
|
key: "activity",
|
|
98
97
|
ref: "activity",
|
|
99
98
|
type: e.indicator,
|
|
100
99
|
size: e.indicatorSize
|
|
101
|
-
}, null, 8, ["type", "size"])) :
|
|
100
|
+
}, null, 8, ["type", "size"])) : t("", !0)
|
|
102
101
|
]),
|
|
103
102
|
_: 1
|
|
104
103
|
})
|
|
105
104
|
])
|
|
106
105
|
]),
|
|
107
|
-
|
|
108
|
-
e.error || e.errors ? (
|
|
106
|
+
s(e.$slots, "errors", p(m({ error: e.error, errors: e.errors, id: e.id, name: e.name })), () => [
|
|
107
|
+
e.error || e.errors ? (i(), S(o(j), {
|
|
109
108
|
key: 0,
|
|
110
|
-
id: e
|
|
111
|
-
name: e
|
|
109
|
+
id: e.id && String(e.id),
|
|
110
|
+
name: e.name && String(e.name),
|
|
112
111
|
error: e.error,
|
|
113
112
|
errors: e.errors
|
|
114
113
|
}, {
|
|
115
114
|
default: y(({ error: r }) => [
|
|
116
|
-
|
|
115
|
+
a("div", K, [
|
|
117
116
|
G(f(r), 1),
|
|
118
117
|
L
|
|
119
118
|
])
|
|
120
119
|
]),
|
|
121
120
|
_: 1
|
|
122
|
-
}, 8, ["id", "name", "error", "errors"])) :
|
|
121
|
+
}, 8, ["id", "name", "error", "errors"])) : t("", !0)
|
|
123
122
|
]),
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
s(e.$slots, "feedback", p(m({ feedback: e.feedback })), () => [
|
|
124
|
+
B(o(q), { feedback: e.feedback }, {
|
|
126
125
|
default: y(({ feedback: r }) => [
|
|
127
|
-
|
|
126
|
+
a("div", O, f(r), 1)
|
|
128
127
|
]),
|
|
129
128
|
_: 1
|
|
130
129
|
}, 8, ["feedback"])
|
|
131
130
|
]),
|
|
132
|
-
|
|
133
|
-
e.helpText ? (
|
|
131
|
+
s(e.$slots, "help", p(m({ helpText: e.helpText })), () => [
|
|
132
|
+
e.helpText ? (i(), u("small", {
|
|
134
133
|
key: 0,
|
|
135
134
|
ref: "help"
|
|
136
|
-
}, f(e.helpText), 513)) :
|
|
135
|
+
}, f(e.helpText), 513)) : t("", !0)
|
|
137
136
|
])
|
|
138
137
|
], 2));
|
|
139
138
|
}
|
package/dist/select-field.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-field.js","sources":["../src/SelectField.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"T, V\">\nimport { ActivityIndicator } from '@vue-interface/activity-indicator';\nimport type {
|
|
1
|
+
{"version":3,"file":"select-field.js","sources":["../src/SelectField.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"T, V\">\nimport { ActivityIndicator } from '@vue-interface/activity-indicator';\nimport type { FormControlEvents, FormControlProps, FormControlSlots } from '@vue-interface/form-control';\nimport { FormControlErrors, FormControlFeedback, useFormControl } from '@vue-interface/form-control';\nimport { onMounted, ref, useSlots } from 'vue';\n\ndefineOptions({\n inheritAttrs: false\n});\n\ndefineSlots<FormControlSlots<T>>();\n\nconst emit = defineEmits<FormControlEvents<T>>();\n\nconst props = withDefaults(defineProps<FormControlProps<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\n// Check the option slots for selected options. If the field has hardcoded\n// selected options, this will ensure the value of the field is always set to\n// the property. This will ensure the model is updated to the selected value.\nonMounted(() => {\n if(!useSlots().default) {\n return;\n }\n\n for(const child of useSlots().default()) {\n if(!child.props) {\n return;\n }\n \n if('selected' in child.props && (child.props.value ?? child.children)) {\n model.value = child.props.value ?? child.children;\n }\n }\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, name }\"> \n <FormControlErrors\n v-if=\"!!(error || errors)\"\n :id=\"id && String(id)\"\n v-slot=\"{ error }\"\n :name=\"name && String(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":["emit","__emit","props","__props","controlAttributes","formGroupClasses","model","onClick","onBlur","onFocus","useFormControl","field","ref","onMousedown","onMounted","useSlots","child"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,UAAMA,IAAOC,GAEPC,IAAQC,GAKR;AAAA,MACF,mBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,OAAAC;AAAA,MACA,SAAAC;AAAA,MACA,QAAAC;AAAA,MACA,SAAAC;AAAA,IACA,IAAAC,EAAoB,EAAE,OAAAR,GAAO,MAAAF,EAAM,CAAA,GAEjCW,IAAQC;AAEd,aAASC,EAAY,GAAG;AACpB,MAAAN,EAAQ,CAAC,GAETI,EAAM,MAAM;IAChB;AAKA,WAAAG,EAAU,MAAM;AACT,UAACC,EAAS,EAAE;AAIf,mBAAUC,KAASD,EAAW,EAAA,QAAA,GAAW;AAClC,cAAA,CAACC,EAAM;AACN;AAGJ,UAAG,cAAcA,EAAM,UAAUA,EAAM,MAAM,SAASA,EAAM,cACxDV,EAAM,QAAQU,EAAM,MAAM,SAASA,EAAM;AAAA,QAEjD;AAAA,IAAA,CACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@vue-interface/activity-indicator"),require("@vue-interface/form-control")):typeof define=="function"&&define.amd?define(["exports","vue","@vue-interface/activity-indicator","@vue-interface/form-control"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.SelectField={},t.Vue,t.VueInterfaceActivityIndicator,t.VueInterfaceFormControl))})(this,function(t,e,p,a){"use strict";const m=["for"],k={class:"form-group-inner"},y={invalid:"",class:"invalid-feedback"},S=e.createElementVNode("br",null,null,-1),b={valid:"",class:"valid-feedback"},u=e.defineComponent({inheritAttrs:!1,__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:{}
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@vue-interface/activity-indicator"),require("@vue-interface/form-control")):typeof define=="function"&&define.amd?define(["exports","vue","@vue-interface/activity-indicator","@vue-interface/form-control"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.SelectField={},t.Vue,t.VueInterfaceActivityIndicator,t.VueInterfaceFormControl))})(this,function(t,e,p,a){"use strict";const m=["for"],k={class:"form-group-inner"},y={invalid:"",class:"invalid-feedback"},S=e.createElementVNode("br",null,null,-1),b={valid:"",class:"valid-feedback"},u=e.defineComponent({inheritAttrs:!1,__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:{}},emits:["blur","change","click","focus","update:modelValue"],setup(B,{emit:C}){const V=C,h=B,{controlAttributes:s,formGroupClasses:g,model:n,onClick:c,onBlur:d,onFocus:f}=a.useFormControl({props:h,emit:V}),i=e.ref();function N(r){c(r),i.value.focus()}return e.onMounted(()=>{if(e.useSlots().default)for(const r of e.useSlots().default()){if(!r.props)return;"selected"in r.props&&(r.props.value??r.children)&&(n.value=r.props.value??r.children)}}),(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-field",e.unref(g)])},[e.renderSlot(r.$slots,"label",{},()=>[r.label?(e.openBlock(),e.createElementBlock("label",{key:0,ref:"label",for:e.unref(s).id,class:e.normalizeClass(r.labelClass)},e.toDisplayString(r.label),11,m)):e.createCommentVNode("",!0)]),e.createElementVNode("div",k,[e.renderSlot(r.$slots,"control",e.normalizeProps(e.guardReactiveProps({onClick:e.unref(c),onBlur:e.unref(d),onFocus:e.unref(f),controlAttributes:e.unref(s)})),()=>[e.useSlots().icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-group-inner-icon",onClick:l[0]||(l[0]=(...o)=>i.value.focus&&i.value.focus(...o))},[e.renderSlot(r.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("select",e.mergeProps({ref_key:"field",ref:i,"onUpdate:modelValue":l[1]||(l[1]=o=>e.isRef(n)?n.value=o:null),class:"form-select"},e.unref(s),{onMousedown:N,onBlur:l[2]||(l[2]=(...o)=>e.unref(d)&&e.unref(d)(...o)),onFocus:l[3]||(l[3]=(...o)=>e.unref(f)&&e.unref(f)(...o))}),[e.renderSlot(r.$slots,"default")],16),[[e.vModelSelect,e.unref(n)]])]),e.renderSlot(r.$slots,"activity",{},()=>[e.createVNode(e.Transition,{name:"select-field-fade"},{default:e.withCtx(()=>[r.activity&&r.indicator?(e.openBlock(),e.createBlock(e.unref(p.ActivityIndicator),{key:"activity",ref:"activity",type:r.indicator,size:r.indicatorSize},null,8,["type","size"])):e.createCommentVNode("",!0)]),_:1})])]),e.renderSlot(r.$slots,"errors",e.normalizeProps(e.guardReactiveProps({error:r.error,errors:r.errors,id:r.id,name:r.name})),()=>[r.error||r.errors?(e.openBlock(),e.createBlock(e.unref(a.FormControlErrors),{key:0,id:r.id&&String(r.id),name:r.name&&String(r.name),error:r.error,errors:r.errors},{default:e.withCtx(({error:o})=>[e.createElementVNode("div",y,[e.createTextVNode(e.toDisplayString(o),1),S])]),_:1},8,["id","name","error","errors"])):e.createCommentVNode("",!0)]),e.renderSlot(r.$slots,"feedback",e.normalizeProps(e.guardReactiveProps({feedback:r.feedback})),()=>[e.createVNode(e.unref(a.FormControlFeedback),{feedback:r.feedback},{default:e.withCtx(({feedback:o})=>[e.createElementVNode("div",b,e.toDisplayString(o),1)]),_:1},8,["feedback"])]),e.renderSlot(r.$slots,"help",e.normalizeProps(e.guardReactiveProps({helpText:r.helpText})),()=>[r.helpText?(e.openBlock(),e.createElementBlock("small",{key:0,ref:"help"},e.toDisplayString(r.helpText),513)):e.createCommentVNode("",!0)])],2))}});t.SelectField=u,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 setup lang=\"ts\" generic=\"T, V\">\nimport { ActivityIndicator } from '@vue-interface/activity-indicator';\nimport type {
|
|
1
|
+
{"version":3,"file":"select-field.umd.cjs","sources":["../src/SelectField.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"T, V\">\nimport { ActivityIndicator } from '@vue-interface/activity-indicator';\nimport type { FormControlEvents, FormControlProps, FormControlSlots } from '@vue-interface/form-control';\nimport { FormControlErrors, FormControlFeedback, useFormControl } from '@vue-interface/form-control';\nimport { onMounted, ref, useSlots } from 'vue';\n\ndefineOptions({\n inheritAttrs: false\n});\n\ndefineSlots<FormControlSlots<T>>();\n\nconst emit = defineEmits<FormControlEvents<T>>();\n\nconst props = withDefaults(defineProps<FormControlProps<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\n// Check the option slots for selected options. If the field has hardcoded\n// selected options, this will ensure the value of the field is always set to\n// the property. This will ensure the model is updated to the selected value.\nonMounted(() => {\n if(!useSlots().default) {\n return;\n }\n\n for(const child of useSlots().default()) {\n if(!child.props) {\n return;\n }\n \n if('selected' in child.props && (child.props.value ?? child.children)) {\n model.value = child.props.value ?? child.children;\n }\n }\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, name }\"> \n <FormControlErrors\n v-if=\"!!(error || errors)\"\n :id=\"id && String(id)\"\n v-slot=\"{ error }\"\n :name=\"name && String(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":["emit","__emit","props","__props","controlAttributes","formGroupClasses","model","onClick","onBlur","onFocus","useFormControl","field","ref","onMousedown","e","onMounted","useSlots","child"],"mappings":"slCAYA,MAAMA,EAAOC,EAEPC,EAAQC,EAKR,CACF,kBAAAC,EACA,iBAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,CACA,EAAAC,iBAAoB,CAAE,MAAAR,EAAO,KAAAF,CAAM,CAAA,EAEjCW,EAAQC,EAAAA,MAEd,SAASC,EAAYC,EAAG,CACpBP,EAAQO,CAAC,EAETH,EAAM,MAAM,OAChB,CAKAI,OAAAA,EAAAA,UAAU,IAAM,CACT,GAACC,EAAAA,SAAS,EAAE,QAIf,UAAUC,KAASD,WAAW,EAAA,QAAA,EAAW,CAClC,GAAA,CAACC,EAAM,MACN,OAGD,aAAcA,EAAM,QAAUA,EAAM,MAAM,OAASA,EAAM,YACxDX,EAAM,MAAQW,EAAM,MAAM,OAASA,EAAM,SAEjD,CAAA,CACH"}
|
|
@@ -24,7 +24,6 @@ declare const _default: <T, V>(__VLS_props: {
|
|
|
24
24
|
readonly?: boolean;
|
|
25
25
|
valid?: boolean;
|
|
26
26
|
value?: V;
|
|
27
|
-
checked?: boolean;
|
|
28
27
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
29
28
|
attrs: any;
|
|
30
29
|
emit: FormControlEvents<T>;
|
|
@@ -55,7 +54,6 @@ declare const _default: <T, V>(__VLS_props: {
|
|
|
55
54
|
readonly?: boolean;
|
|
56
55
|
valid?: boolean;
|
|
57
56
|
value?: V;
|
|
58
|
-
checked?: boolean;
|
|
59
57
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
60
58
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
61
59
|
attrs: any;
|
|
@@ -90,7 +88,6 @@ declare const _default: <T, V>(__VLS_props: {
|
|
|
90
88
|
readonly?: boolean;
|
|
91
89
|
valid?: boolean;
|
|
92
90
|
value?: V;
|
|
93
|
-
checked?: boolean;
|
|
94
91
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
95
92
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
96
93
|
attrs: any;
|
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.22",
|
|
4
4
|
"description": "A Vue select field component.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"homepage": "https://github.com/vue-interface/select-field",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@vue-interface/activity-indicator": "^2.0.0-beta.11",
|
|
45
|
-
"@vue-interface/form-control": "^1.0.0-beta.
|
|
45
|
+
"@vue-interface/form-control": "^1.0.0-beta.46"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"vue": "^3.3.4"
|