@quidgest/ui 0.15.4 → 0.15.5
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/ui.esm.js +1802 -1787
- package/dist/ui.js +16 -16
- package/dist/ui.min.js +15 -9
- package/dist/ui.scss +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +12 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +37 -36
- package/esm/components/QCombobox/index.d.ts +21 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +6 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +21 -20
- package/esm/components/QPasswordField/index.d.ts +3 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +33 -30
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +48 -38
- package/esm/components/QTextField/index.d.ts +3 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +5 -0
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ui.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=typeof globalThis<"u"?globalThis:e||self)["Quidgest UI"]={},e.Vue)}(this,(function(e,t){"use strict"
|
|
2
2
|
var a=Object.defineProperty,n=(e,t,n)=>((e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n)
|
|
3
3
|
/*!
|
|
4
|
-
* Quidgest UI v0.15.
|
|
4
|
+
* Quidgest UI v0.15.5
|
|
5
5
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
|
@@ -131,11 +131,14 @@ function De(e){return t.unref(e)||"uid-"+ ++Ve}const $e={key:0,class:"q-collapsi
|
|
|
131
131
|
function u(){n.value=!n.value,null==l||l.toggle()}return t.watch((()=>null==l?void 0:l.isActive.value),(()=>n.value=null==l?void 0:l.isActive.value)),(e,l)=>(t.openBlock(),t.createBlock(t.unref(he),{id:t.unref(o),class:t.normalizeClass(i.value),width:r.value},{header:t.withCtx((()=>[e.title?(t.openBlock(),t.createElementBlock("div",$e,[t.createVNode(t.unref(L),{variant:"text",block:"",class:"q-collapsible__btn","aria-expanded":n.value,onClick:u},{default:t.withCtx((()=>[t.createElementVNode("div",Ne,[e.iconRight?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"icon",{key:0},(()=>[t.createVNode(t.unref(Ee),{"model-value":n.value,icons:a.icons},null,8,["model-value","icons"])])),t.renderSlot(e.$slots,"title.prepend"),t.createElementVNode("h4",Te,t.toDisplayString(e.title),1),a.required?(t.openBlock(),t.createElementBlock("span",Pe," * ")):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"title.append"),e.iconRight?t.renderSlot(e.$slots,"icon",{key:2},(()=>[t.createVNode(t.unref(Ee),{"model-value":n.value,class:"q-collapsible__chevron-right",icons:a.icons},null,8,["model-value","icons"])])):t.createCommentVNode("",!0)]),e.$slots.subtitle||e.subtitle?(t.openBlock(),t.createElementBlock("div",Ae,[t.renderSlot(e.$slots,"subtitle",{},(()=>[t.createTextVNode(t.toDisplayString(e.subtitle),1)]))])):t.createCommentVNode("",!0)])),_:3},8,["aria-expanded"])])):t.createCommentVNode("",!0)])),default:t.withCtx((()=>[t.createElementVNode("div",{class:t.normalizeClass(s.value)},[t.createElementVNode("div",qe,[t.createElementVNode("div",Re,[t.renderSlot(e.$slots,"default")])])],2)])),_:3},8,["id","class","width"]))}})),Le={selectColor:"Select a color"},ze=["id"],Ie=["for"],Fe=b(t.defineComponent({inheritAttrs:!1,__name:"QLabel",props:{id:{},class:{},label:{},for:{},required:{type:Boolean}},setup(e){const a=e,n=t.computed((()=>["q-label",{"q-label--required":a.required},a.class]))
|
|
132
132
|
return(e,o)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(n.value)},[t.renderSlot(e.$slots,"prepend"),t.createElementVNode("label",t.mergeProps({for:a.for},e.$attrs),[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]))],16,Ie),t.renderSlot(e.$slots,"append")],10,ze))}})),Ye=["id"],Qe={key:0,class:"q-field__prepend"},He={key:1,class:"q-field__append"},Ue={key:1,class:"q-field__extras"},je=b(t.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},for:{},required:{type:Boolean},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(e,{expose:a}){const n=e,o=t.ref(null),l=t.computed((()=>n.required&&!n.readonly&&!n.disabled)),r=t.computed((()=>["q-field",`q-field--${n.size}`,{"q-field--readonly":n.readonly,"q-field--disabled":n.disabled,"q-field--required":l.value,"q-field--invalid":n.invalid},n.class]))
|
|
133
133
|
return a({fieldRef:o}),(e,a)=>(t.openBlock(),t.createElementBlock("div",{id:n.id,class:t.normalizeClass(r.value)},[n.label?(t.openBlock(),t.createBlock(t.unref(Fe),{key:0,class:"q-field__label",label:n.label,for:n.for,required:n.required},{prepend:t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),append:t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),_:3},8,["label","for","required"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"control",{},(()=>[t.createElementVNode("div",t.mergeProps({ref_key:"fieldRef",ref:o,class:"q-field__control"},e.$attrs),[e.$slots.prepend?(t.openBlock(),t.createElementBlock("div",Qe,[t.renderSlot(e.$slots,"prepend")])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.append?(t.openBlock(),t.createElementBlock("div",He,[t.renderSlot(e.$slots,"append")])):t.createCommentVNode("",!0)],16)])),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",Ue,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)],10,Ye))}})),We={clearValue:"Clear value"},Ge={clear:{icon:"close"}},Ke=b(t.defineComponent({__name:"QClearButton",props:{id:{},class:{},icons:{default:()=>Ge},texts:{default:()=>We}},emits:["click"],setup(e,{emit:a}){const n=e,o=a
|
|
134
|
-
function l(e){o("click",e)}return(e,a)=>(t.openBlock(),t.createBlock(t.unref(L),{id:n.id,class:t.normalizeClass(["q-clear-btn",n.class]),"aria-label":n.texts.clearValue,variant:"text",color:"neutral",borderless:"",tabindex:"-1",onClick:l},{default:t.withCtx((()=>[t.createVNode(t.unref(W),t.normalizeProps(t.guardReactiveProps(n.icons.clear)),null,16)])),_:1},8,["id","class","aria-label"]))}})),Xe=["id","type","required","placeholder","readonly","disabled"],Ze=b(t.defineComponent({inheritAttrs:!1,__name:"QTextField",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},clearable:{type:Boolean},type:{default:"text"},texts:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["click:clear"],["update:modelValue"]),setup(e,{expose:a,emit:n}){const o=e,l=n,r=t.useModel(e,"modelValue"),i=
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
function l(e){o("click",e)}return(e,a)=>(t.openBlock(),t.createBlock(t.unref(L),{id:n.id,class:t.normalizeClass(["q-clear-btn",n.class]),"aria-label":n.texts.clearValue,variant:"text",color:"neutral",borderless:"",tabindex:"-1",onClick:l},{default:t.withCtx((()=>[t.createVNode(t.unref(W),t.normalizeProps(t.guardReactiveProps(n.icons.clear)),null,16)])),_:1},8,["id","class","aria-label"]))}})),Xe=["id","type","maxlength","required","placeholder","readonly","disabled"],Ze=b(t.defineComponent({inheritAttrs:!1,__name:"QTextField",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},clearable:{type:Boolean},type:{default:"text"},texts:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["click:clear"],["update:modelValue"]),setup(e,{expose:a,emit:n}){const o=e,l=n,r=t.useModel(e,"modelValue"),i=t.computed({get:()=>r.value,set:e=>{const t=o.maxLength
|
|
135
|
+
r.value=t?null==e?void 0:e.slice(0,t):e}})
|
|
136
|
+
t.watch(r,(e=>i.value=e),{immediate:!0})
|
|
137
|
+
const s=De(o.id),u=t.ref(null),d=t.ref(null),c=t.computed((()=>o.readonly||o.disabled?void 0:o.placeholder)),p=t.computed((()=>o.clearable&&!o.readonly&&!o.disabled)),m=t.computed((()=>p.value&&r.value))
|
|
138
|
+
function v(e){p.value&&(r.value="",l("click:clear",e))}return a({fieldRef:t.computed((()=>{var e
|
|
139
|
+
return null==(e=u.value)?void 0:e.fieldRef})),inputRef:d}),(e,a)=>(t.openBlock(),t.createBlock(t.unref(je),{ref_key:"fieldRef",ref:u,class:t.normalizeClass(["q-text-field",o.class]),for:t.unref(s),label:o.label,size:o.size,readonly:o.readonly,disabled:o.disabled,required:o.required,invalid:o.invalid},t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(s),ref_key:"inputRef",ref:d,"onUpdate:modelValue":a[0]||(a[0]=e=>i.value=e),class:"q-text-field__input",type:o.type,maxlength:o.maxLength,required:o.required,placeholder:c.value,readonly:o.readonly,disabled:o.disabled},e.$attrs),null,16,Xe),[[t.vModelDynamic,i.value]])])),_:2},[e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend")])),key:"0"}:void 0,e.$slots.append||m.value?{name:"append",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"append"),m.value?(t.openBlock(),t.createBlock(t.unref(Ke),{key:0,"data-testid":"q-text-field__clear-button",texts:o.texts,onClick:v},null,8,["texts"])):t.createCommentVNode("",!0)])),key:"1"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required","invalid"]))}})),Je=["readonly","disabled","aria-label"],et=b(t.defineComponent({inheritAttrs:!1,__name:"QColorPicker",props:t.mergeModels({id:{},class:{},placeholder:{},label:{},size:{default:"small"},readonly:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},texts:{default:()=>Le}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=t.ref(""),l=t.ref(""),r=t.computed((()=>a.readonly||a.disabled))
|
|
137
140
|
function i(e){return x(e,!0)}function s(e){const t=e.target
|
|
138
|
-
n.value=i(t.value)?t.value:""}function u(){i(l.value)?n.value=l.value:(n.value="",l.value="")}return t.watch(n,(function(e){e&&i(e)?o.value=e:o.value="#000000"}),{immediate:!0}),t.watch(n,(function(e){e&&i(e)?l.value=e:l.value=""}),{immediate:!0}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(Ze),{id:a.id,modelValue:l.value,"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),
|
|
141
|
+
n.value=i(t.value)?t.value:""}function u(){i(l.value)?n.value=l.value:(n.value="",l.value="")}return t.watch(n,(function(e){e&&i(e)?o.value=e:o.value="#000000"}),{immediate:!0}),t.watch(n,(function(e){e&&i(e)?l.value=e:l.value=""}),{immediate:!0}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(Ze),{id:a.id,modelValue:l.value,"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),"max-length":7,class:t.normalizeClass(["q-color-picker",a.class]),label:a.label,size:a.size,readonly:a.readonly,disabled:a.disabled,required:a.required,placeholder:a.placeholder,onChange:u},t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),prepend:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend"),t.withDirectives(t.createElementVNode("input",t.mergeProps({"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),type:"color",class:"q-color-picker__swatch",readonly:a.readonly,disabled:r.value,"aria-label":a.texts.selectColor},e.$attrs,{onChange:s}),null,16,Je),[[t.vModelText,o.value]])])),_:2},[e.$slots.append?{name:"append",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"append")])),key:"0"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"1"}:void 0]),1032,["id","modelValue","class","label","size","readonly","disabled","required","placeholder"]))}})),tt={...We,noData:"No data available",showOptions:"Show options"},at={...Se,...Ge},nt=t.defineComponent({__name:"QList",props:t.mergeModels({id:{},class:{},highlighted:{type:[String,Number,Boolean,Symbol]},items:{},groups:{default:()=>[]},itemValue:{default:"key"},itemLabel:{default:"label"},disabled:{type:Boolean},selectable:{type:Boolean}},{modelValue:{type:[String,Number,Boolean,Symbol]},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:a}){const n=e,o=t.useModel(e,"modelValue"),l=t.ref(!1),r=t.computed((()=>i.value.length>1?"div":"ul")),i=t.computed((()=>n.groups.length?n.groups.filter((e=>{var t
|
|
139
142
|
return null==(t=n.items)?void 0:t.some((t=>t.group===e.id))})):[{id:"",title:""}])),s=t.ref(null),u=t.ref(null)
|
|
140
143
|
function d(e){o.value=e}function c(){l.value=!0}function p(){l.value=!1}function m(e){var t
|
|
141
144
|
if(!n.items||null!=(t=s.value)&&t.contains(e.relatedTarget))return
|
|
@@ -420,7 +423,7 @@ case"hover":e.addEventListener("mouseenter",B),e.addEventListener("mouseleave",S
|
|
|
420
423
|
s.value||(window.addEventListener("resize",b),n.scrollLock||window.addEventListener("scroll",b),n.spy?L():b()),(s.value||"click"===n.trigger)&&(null==(e=y.value)||e.focus())}return t.watch((()=>n.placement),(()=>t.nextTick(b))),t.onMounted((()=>{t.nextTick(O)})),t.onBeforeUnmount((function(){const e=P()
|
|
421
424
|
if(e)switch(null==w||w.disconnect(),n.trigger){case"click":e.removeEventListener("click",x)
|
|
422
425
|
break
|
|
423
|
-
case"hover":e.removeEventListener("mouseenter",B),e.removeEventListener("mouseleave",S),e.removeEventListener("focusin",x),e.removeEventListener("focusout",S)}})),(e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{disabled:!c.value,to:n.attach},[t.createVNode(t.Transition,{name:"fade",appear:""},{default:t.withCtx((()=>[u.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([n.backdropClass,"q-overlay__underlay",{"q-overlay__underlay--blur":n.backdropBlur}])},null,2)):t.createCommentVNode("",!0)])),_:1}),t.createVNode(t.Transition,{name:n.transition,appear:"",onEnter:E,onAfterEnter:V,onLeave:D,onAfterLeave:$},{default:t.withCtx((()=>[l.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:n.id,ref_key:"overlayContainerRef",ref:g,tabindex:"-1",class:t.normalizeClass(i.value),style:t.normalizeStyle(v.value)},[t.createVNode(t.unref(Tt),{onDismiss:R,onInteractOutside:q,onPointerDownOutside:A},{default:t.withCtx((()=>[g.value?(t.openBlock(),t.createBlock(t.unref(ga),{key:0,disabled:n.nonModal||!l.value,options:{fallbackFocus:g.value}},{default:t.withCtx((()=>[t.createElementVNode("div",t.mergeProps({ref_key:"overlayRef",ref:y,class:"q-overlay__content",tabindex:"-1",role:u.value?"dialog":void 0},e.$attrs),[n.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowRef",ref:h,role:"presentation",class:"q-overlay__arrow",style:t.normalizeStyle(f.value)},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],16,Pa)])),_:3},8,["disabled","options"])):t.createCommentVNode("",!0)])),_:3})],14,Ta)):t.createCommentVNode("",!0)])),_:3},8,["name"])],8,["disabled","to"])),d.value?(t.openBlock(),t.createBlock(t.unref(Sa),{key:0})):t.createCommentVNode("",!0)],64))}})),qa=["data-key"],Ra={key:0,class:"q-select__loader"},Oa={key:2,class:"q-select__loader"},La=b(t.defineComponent({inheritAttrs:!1,__name:"QCombobox",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},clearable:{type:Boolean},texts:{default:()=>tt},items:{},groups:{default:()=>[]},itemValue:{default:"key"},itemLabel:{default:"label"},selectionMode:{default:"automatic"},filterMode:{default:"builtin"},loading:{type:Boolean},emptyValue:{type:[String,Number,Boolean,Symbol]},icons:{default:()=>at}},{modelValue:{type:[String,Number,Boolean,Symbol]},modelModifiers:{},open:{type:Boolean},openModifiers:{},search:{default:""},searchModifiers:{}}),emits:t.mergeModels(["before-show","before-hide","show","hide"],["update:modelValue","update:open","update:search"]),setup(e,{expose:a,emit:n}){const o=e,l=n,r=t.useModel(e,"modelValue"),i=t.useModel(e,"open"),s=t.useModel(e,"search"),u=t.ref(void 0),d=t.ref(null),c=t.ref(null),p=t.ref(null),m=t.ref(null)
|
|
426
|
+
case"hover":e.removeEventListener("mouseenter",B),e.removeEventListener("mouseleave",S),e.removeEventListener("focusin",x),e.removeEventListener("focusout",S)}})),(e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{disabled:!c.value,to:n.attach},[t.createVNode(t.Transition,{name:"fade",appear:""},{default:t.withCtx((()=>[u.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([n.backdropClass,"q-overlay__underlay",{"q-overlay__underlay--blur":n.backdropBlur}])},null,2)):t.createCommentVNode("",!0)])),_:1}),t.createVNode(t.Transition,{name:n.transition,appear:"",onEnter:E,onAfterEnter:V,onLeave:D,onAfterLeave:$},{default:t.withCtx((()=>[l.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:n.id,ref_key:"overlayContainerRef",ref:g,tabindex:"-1",class:t.normalizeClass(i.value),style:t.normalizeStyle(v.value)},[t.createVNode(t.unref(Tt),{onDismiss:R,onInteractOutside:q,onPointerDownOutside:A},{default:t.withCtx((()=>[g.value?(t.openBlock(),t.createBlock(t.unref(ga),{key:0,disabled:n.nonModal||!l.value,options:{fallbackFocus:g.value}},{default:t.withCtx((()=>[t.createElementVNode("div",t.mergeProps({ref_key:"overlayRef",ref:y,class:"q-overlay__content",tabindex:"-1",role:u.value?"dialog":void 0},e.$attrs),[n.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowRef",ref:h,role:"presentation",class:"q-overlay__arrow",style:t.normalizeStyle(f.value)},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],16,Pa)])),_:3},8,["disabled","options"])):t.createCommentVNode("",!0)])),_:3})],14,Ta)):t.createCommentVNode("",!0)])),_:3},8,["name"])],8,["disabled","to"])),d.value?(t.openBlock(),t.createBlock(t.unref(Sa),{key:0})):t.createCommentVNode("",!0)],64))}})),qa=["data-key"],Ra={key:0,class:"q-select__loader"},Oa={key:2,class:"q-select__loader"},La=b(t.defineComponent({inheritAttrs:!1,__name:"QCombobox",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},clearable:{type:Boolean},texts:{default:()=>tt},items:{},groups:{default:()=>[]},itemValue:{default:"key"},itemLabel:{default:"label"},selectionMode:{default:"automatic"},filterMode:{default:"builtin"},loading:{type:Boolean},emptyValue:{type:[String,Number,Boolean,Symbol]},icons:{default:()=>at}},{modelValue:{type:[String,Number,Boolean,Symbol]},modelModifiers:{},open:{type:Boolean},openModifiers:{},search:{default:""},searchModifiers:{}}),emits:t.mergeModels(["before-show","before-hide","show","hide"],["update:modelValue","update:open","update:search"]),setup(e,{expose:a,emit:n}){const o=e,l=n,r=t.useModel(e,"modelValue"),i=t.useModel(e,"open"),s=t.useModel(e,"search"),u=t.ref(void 0),d=t.ref(null),c=t.ref(null),p=t.ref(null),m=t.ref(null)
|
|
424
427
|
t.onMounted(x)
|
|
425
428
|
const v=t.computed((()=>o.clearable&&!o.readonly&&!o.disabled)),f=t.computed((()=>{var e
|
|
426
429
|
return"manual"!==o.filterMode&&k.value?(null==(e=o.items)?void 0:e.filter((e=>e[o.itemLabel].toLowerCase().startsWith(s.value.toLowerCase()))))??[]:o.items??[]})),h=t.computed((()=>{var e
|
|
@@ -1420,7 +1423,7 @@ const e=[...a.levels].sort(((e,t)=>(e.threshold??1/0)-(t.threshold??1/0)))
|
|
|
1420
1423
|
for(const t of e){const e=t.threshold??1/0
|
|
1421
1424
|
if(a.score<e)return t}return a.levels[a.levels.length-1]}))
|
|
1422
1425
|
return(e,l)=>(t.openBlock(),t.createBlock(t.unref(Aa),{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e),trigger:"manual",anchor:a.anchor,width:"anchor","non-modal":"",placement:"bottom"},{default:t.withCtx((()=>{var n
|
|
1423
|
-
return[t.createElementVNode("div",vd,[o.value?(t.openBlock(),t.createElementBlock("div",fd,[t.createVNode(t.unref(dd),{"model-value":a.score,max:1,color:o.value.color},null,8,["model-value","color"]),t.createElementVNode("span",null,t.toDisplayString(o.value.label),1)])):t.createCommentVNode("",!0),null!=(n=e.messages)&&n.length?(t.openBlock(),t.createBlock(md,{key:1,messages:e.messages},null,8,["messages"])):t.createCommentVNode("",!0)])]})),_:1},8,["modelValue","anchor"]))}}),yd=b(t.defineComponent({inheritAttrs:!1,__name:"QPasswordField",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},toggle:{type:Boolean},meter:{type:Boolean},meterLevels:{},rules:{},icons:{default:()=>cd}},{modelValue:{},modelModifiers:{},masked:{type:Boolean,default:!0},maskedModifiers:{}}),emits:["update:modelValue","update:masked"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=t.useModel(e,"masked"),l=t.ref(null),r=t.ref(!1),i=t.computed((()=>o.value?"password":"text")),s=t.computed((()=>{var e
|
|
1426
|
+
return[t.createElementVNode("div",vd,[o.value?(t.openBlock(),t.createElementBlock("div",fd,[t.createVNode(t.unref(dd),{"model-value":a.score,max:1,color:o.value.color},null,8,["model-value","color"]),t.createElementVNode("span",null,t.toDisplayString(o.value.label),1)])):t.createCommentVNode("",!0),null!=(n=e.messages)&&n.length?(t.openBlock(),t.createBlock(md,{key:1,messages:e.messages},null,8,["messages"])):t.createCommentVNode("",!0)])]})),_:1},8,["modelValue","anchor"]))}}),yd=b(t.defineComponent({inheritAttrs:!1,__name:"QPasswordField",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},toggle:{type:Boolean},meter:{type:Boolean},meterLevels:{},rules:{},icons:{default:()=>cd}},{modelValue:{},modelModifiers:{},masked:{type:Boolean,default:!0},maskedModifiers:{}}),emits:["update:modelValue","update:masked"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=t.useModel(e,"masked"),l=t.ref(null),r=t.ref(!1),i=t.computed((()=>o.value?"password":"text")),s=t.computed((()=>{var e
|
|
1424
1427
|
return null==(e=a.rules)?void 0:e.reduce(((e,t)=>e+t.weight),0)})),u=t.computed((()=>function(e,t){if(!e||!t)return
|
|
1425
1428
|
let a=0
|
|
1426
1429
|
const n=[]
|
|
@@ -1453,8 +1456,11 @@ null==(t=null==(e=i.value)?void 0:e.fieldRef)||t.focus()}function C(){var e
|
|
|
1453
1456
|
null==(e=s.value)||e.$el.focus()}return t.watch((()=>n.loading),(e=>{!e&&r.value&&t.nextTick(C)})),(e,a)=>{var o,y
|
|
1454
1457
|
return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(je),t.mergeProps({id:n.id,ref_key:"triggerEl",ref:i,label:n.label,required:n.required,role:"combobox",tabindex:n.disabled?-1:0,class:["q-select",{"q-select--readonly":n.readonly,"q-select--disabled":n.disabled},n.class],readonly:n.readonly,disabled:n.disabled,"data-loading":n.loading,"aria-expanded":r.value,"aria-haspopup":"listbox",size:n.size,invalid:n.invalid},e.$attrs,{onClick:b,onKeydown:t.withModifiers(k,["stop"])}),t.createSlots({append:t.withCtx((()=>[t.renderSlot(e.$slots,"append"),m.value&&l.value?(t.openBlock(),t.createBlock(t.unref(Ke),{key:0,icons:n.icons,texts:n.texts,onClick:f},null,8,["icons","texts"])):t.createCommentVNode("",!0),n.readonly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(L),{key:1,class:"q-select__chevron","aria-label":n.texts.showOptions,variant:"text",color:"neutral",borderless:"",tabindex:"-1",disabled:n.disabled,onClick:b},{default:t.withCtx((()=>[t.createVNode(t.unref(Ee),{"model-value":r.value,icons:n.icons},null,8,["model-value","icons"])])),_:1},8,["aria-label","disabled"]))])),default:t.withCtx((()=>[d.value?(t.openBlock(),t.createElementBlock("span",tc,[n.readonly||n.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.texts.placeholder),1)],64))])):(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString(p.value),1))])),_:2},[null!=(o=c.value)&&o.icon||e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>{var a,n
|
|
1455
1458
|
return[t.renderSlot(e.$slots,"prepend"),null!=(a=c.value)&&a.icon?(t.openBlock(),t.createBlock(t.unref(W),t.normalizeProps(t.mergeProps({key:0},null==(n=c.value)?void 0:n.icon)),null,16)):t.createCommentVNode("",!0)]})),key:"0"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"1"}:void 0]),1040,["id","label","required","tabindex","class","readonly","disabled","data-loading","aria-expanded","size","invalid"]),t.createVNode(t.unref(Aa),{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=e=>r.value=e),spy:"",trigger:"manual",placement:"bottom-start",width:"anchor","scroll-lock":"",anchor:null==(y=i.value)?void 0:y.$el,offset:2,onEnter:w,onLeave:x},{default:t.withCtx((()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,"data-testid":"combobox-dropdown","data-key":n.id,class:"q-select__body",tabindex:"-1",onFocusout:h,onKeydown:t.withModifiers(k,["stop"])},[t.renderSlot(e.$slots,"body.prepend"),n.loading?(t.openBlock(),t.createElementBlock("div",nc,[t.createVNode(t.unref(_),{size:24})])):(t.openBlock(),t.createBlock(t.unref(vt),{key:1,ref_key:"listRef",ref:s,class:"q-select__items",selectable:"","model-value":l.value,items:n.items,groups:e.groups,"item-label":n.itemLabel,"item-value":n.itemValue,"onUpdate:modelValue":v},{item:t.withCtx((({item:a})=>[t.renderSlot(e.$slots,"item",{item:a})])),_:3},8,["model-value","items","groups","item-label","item-value"])),t.renderSlot(e.$slots,"body.append")],40,ac)])),_:3},8,["modelValue","anchor"])],64)}}})),lc=["id"],rc=b(t.defineComponent({__name:"QSkeletonLoader",props:{id:{},class:{},type:{},width:{},height:{}},setup(e){const a=e,n=t.computed((()=>a.type?`q-skeleton-loader--${a.type}`:void 0)),o=t.computed((()=>({width:"number"==typeof a.width?`${a.width}px`:a.width,height:"number"==typeof a.height?`${a.height}px`:a.height})))
|
|
1456
|
-
return(e,l)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-skeleton-loader",n.value,a.class]),style:t.normalizeStyle(o.value)},l[0]||(l[0]=[t.createElementVNode("div",{class:"q-skeleton-loader__bone"},null,-1)]),14,lc))}})),ic=["id","required","placeholder","readonly","disabled","maxlength","rows","cols","resize","wrap"],sc=b(t.defineComponent({inheritAttrs:!1,__name:"QTextArea",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},rows:{default:3},cols:{},resize:{default:"vertical"},wrap:{default:"soft"},autosize:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=
|
|
1457
|
-
|
|
1459
|
+
return(e,l)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-skeleton-loader",n.value,a.class]),style:t.normalizeStyle(o.value)},l[0]||(l[0]=[t.createElementVNode("div",{class:"q-skeleton-loader__bone"},null,-1)]),14,lc))}})),ic=["id","required","placeholder","readonly","disabled","maxlength","rows","cols","resize","wrap"],sc=b(t.defineComponent({inheritAttrs:!1,__name:"QTextArea",props:t.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},rows:{default:3},cols:{},resize:{default:"vertical"},wrap:{default:"soft"},autosize:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=t.computed({get:()=>n.value,set:e=>{const t=a.maxLength
|
|
1460
|
+
n.value=t?null==e?void 0:e.slice(0,t):e}})
|
|
1461
|
+
t.watch(n,(e=>o.value=e),{immediate:!0})
|
|
1462
|
+
const l=De(a.id),r=t.computed((()=>a.readonly||a.disabled?void 0:a.placeholder)),i=t.computed((()=>({input:a.autosize?u:null}))),s=t.ref(),{triggerResize:u}=Nt({element:t.computed((()=>a.autosize?s.value:void 0)),styleProp:"minHeight"})
|
|
1463
|
+
return(e,n)=>(t.openBlock(),t.createBlock(t.unref(je),{class:t.normalizeClass(["q-text-area",a.class]),for:t.unref(l),label:a.label,size:a.size,readonly:a.readonly,disabled:a.disabled,required:a.required},t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(l),ref_key:"textareaRef",ref:s,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),class:"q-text-area__input",required:a.required,placeholder:r.value,readonly:a.readonly,disabled:a.disabled,maxlength:a.maxLength,rows:a.rows,cols:a.cols,resize:a.resize,wrap:a.wrap},e.$attrs,t.toHandlers(i.value,!0)),null,16,ic),[[t.vModelText,o.value]])])),_:2},[e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend")])),key:"0"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"append")])),key:"1"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required"]))}})),uc=["id"],dc=b(t.defineComponent({__name:"QThemeProvider",props:{id:{},class:{},theme:{}},setup(e){const a=e,n=t.toRef(a,"theme"),{class:o}=P(n)
|
|
1458
1464
|
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-theme-provider",t.unref(o),a.class])},[t.renderSlot(e.$slots,"default")],10,uc))}})),cc=["innerHTML"],pc=b(t.defineComponent({__name:"QTooltip",props:t.mergeModels({id:{},class:{},anchor:{},appearance:{default:"inverted"},arrow:{type:Boolean,default:!0},attach:{default:"body"},inline:{type:Boolean},delay:{default:500},disabled:{type:Boolean},html:{type:Boolean,default:!0},placement:{default:"right"},text:{},icon:{},trigger:{default:"hover"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=De(a.id)
|
|
1459
1465
|
function l(e){const t=Na(e)
|
|
1460
1466
|
null==t||t.setAttribute("aria-describedby",o)}function r(e){const t=Na(e)
|
package/dist/ui.scss
CHANGED
|
@@ -43,7 +43,7 @@ const P = ["readonly", "disabled", "aria-label"], H = /* @__PURE__ */ h({
|
|
|
43
43
|
id: l.id,
|
|
44
44
|
modelValue: a.value,
|
|
45
45
|
"onUpdate:modelValue": o[1] || (o[1] = (i) => a.value = i),
|
|
46
|
-
|
|
46
|
+
"max-length": 7,
|
|
47
47
|
class: B(["q-color-picker", l.class]),
|
|
48
48
|
label: l.label,
|
|
49
49
|
size: l.size,
|
|
@@ -37,6 +37,7 @@ declare function __VLS_template(): {
|
|
|
37
37
|
readonly disabled?: boolean | undefined;
|
|
38
38
|
readonly invalid?: boolean | undefined;
|
|
39
39
|
readonly placeholder?: string | undefined;
|
|
40
|
+
readonly maxLength?: number | undefined;
|
|
40
41
|
readonly clearable?: boolean | undefined;
|
|
41
42
|
readonly type?: string | undefined;
|
|
42
43
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -142,6 +143,7 @@ declare function __VLS_template(): {
|
|
|
142
143
|
invalid?: boolean;
|
|
143
144
|
} & {
|
|
144
145
|
placeholder?: string;
|
|
146
|
+
maxLength?: number;
|
|
145
147
|
clearable?: boolean;
|
|
146
148
|
type?: string;
|
|
147
149
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -193,6 +195,7 @@ declare function __VLS_template(): {
|
|
|
193
195
|
invalid?: boolean;
|
|
194
196
|
} & {
|
|
195
197
|
placeholder?: string;
|
|
198
|
+
maxLength?: number;
|
|
196
199
|
clearable?: boolean;
|
|
197
200
|
type?: string;
|
|
198
201
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -481,6 +484,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
481
484
|
readonly disabled?: boolean | undefined;
|
|
482
485
|
readonly invalid?: boolean | undefined;
|
|
483
486
|
readonly placeholder?: string | undefined;
|
|
487
|
+
readonly maxLength?: number | undefined;
|
|
484
488
|
readonly clearable?: boolean | undefined;
|
|
485
489
|
readonly type?: string | undefined;
|
|
486
490
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -586,6 +590,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
586
590
|
invalid?: boolean;
|
|
587
591
|
} & {
|
|
588
592
|
placeholder?: string;
|
|
593
|
+
maxLength?: number;
|
|
589
594
|
clearable?: boolean;
|
|
590
595
|
type?: string;
|
|
591
596
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -637,6 +642,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
637
642
|
invalid?: boolean;
|
|
638
643
|
} & {
|
|
639
644
|
placeholder?: string;
|
|
645
|
+
maxLength?: number;
|
|
640
646
|
clearable?: boolean;
|
|
641
647
|
type?: string;
|
|
642
648
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -669,6 +675,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
669
675
|
readonly disabled?: boolean | undefined;
|
|
670
676
|
readonly invalid?: boolean | undefined;
|
|
671
677
|
readonly placeholder?: string | undefined;
|
|
678
|
+
readonly maxLength?: number | undefined;
|
|
672
679
|
readonly clearable?: boolean | undefined;
|
|
673
680
|
readonly type?: string | undefined;
|
|
674
681
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -774,6 +781,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
774
781
|
invalid?: boolean;
|
|
775
782
|
} & {
|
|
776
783
|
placeholder?: string;
|
|
784
|
+
maxLength?: number;
|
|
777
785
|
clearable?: boolean;
|
|
778
786
|
type?: string;
|
|
779
787
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -825,6 +833,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
825
833
|
invalid?: boolean;
|
|
826
834
|
} & {
|
|
827
835
|
placeholder?: string;
|
|
836
|
+
maxLength?: number;
|
|
828
837
|
clearable?: boolean;
|
|
829
838
|
type?: string;
|
|
830
839
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -892,6 +901,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
892
901
|
readonly disabled?: boolean | undefined;
|
|
893
902
|
readonly invalid?: boolean | undefined;
|
|
894
903
|
readonly placeholder?: string | undefined;
|
|
904
|
+
readonly maxLength?: number | undefined;
|
|
895
905
|
readonly clearable?: boolean | undefined;
|
|
896
906
|
readonly type?: string | undefined;
|
|
897
907
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -997,6 +1007,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
997
1007
|
invalid?: boolean;
|
|
998
1008
|
} & {
|
|
999
1009
|
placeholder?: string;
|
|
1010
|
+
maxLength?: number;
|
|
1000
1011
|
clearable?: boolean;
|
|
1001
1012
|
type?: string;
|
|
1002
1013
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1048,6 +1059,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1048
1059
|
invalid?: boolean;
|
|
1049
1060
|
} & {
|
|
1050
1061
|
placeholder?: string;
|
|
1062
|
+
maxLength?: number;
|
|
1051
1063
|
clearable?: boolean;
|
|
1052
1064
|
type?: string;
|
|
1053
1065
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AA0HA;AAskBC,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAA;AAYtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAG7C,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAE/D,KAAK,WAAW,GAAG,cAAc,CAAC;AAscnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,WAAW,CAAC;AAOhB,iBAAS,cAAc;WA6UT,OAAO,IAA6B;;iCAtBZ,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG
|
|
1
|
+
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"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"}
|
|
@@ -7,7 +7,7 @@ import { QSpinnerLoader as he } from "../QSpinnerLoader/index.js";
|
|
|
7
7
|
import { QTextField as ge } from "../QTextField/index.js";
|
|
8
8
|
import { QChevron as ke } from "../__internal__/QChevron/index.js";
|
|
9
9
|
import { QClearButton as Ie } from "../__internal__/QClearButton/index.js";
|
|
10
|
-
const
|
|
10
|
+
const xe = ["data-key"], we = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "q-select__loader"
|
|
13
13
|
}, Ve = {
|
|
@@ -27,6 +27,7 @@ const we = ["data-key"], xe = {
|
|
|
27
27
|
disabled: { type: Boolean },
|
|
28
28
|
invalid: { type: Boolean },
|
|
29
29
|
placeholder: {},
|
|
30
|
+
maxLength: {},
|
|
30
31
|
clearable: { type: Boolean },
|
|
31
32
|
texts: { default: () => ve },
|
|
32
33
|
items: {},
|
|
@@ -47,8 +48,8 @@ const we = ["data-key"], xe = {
|
|
|
47
48
|
searchModifiers: {}
|
|
48
49
|
}),
|
|
49
50
|
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
50
|
-
setup(
|
|
51
|
-
const l =
|
|
51
|
+
setup(x, { expose: W, emit: X }) {
|
|
52
|
+
const l = x, w = X, d = S(x, "modelValue"), i = S(x, "open"), u = S(x, "search"), o = g(void 0), c = g(null), s = g(null), V = g(null), L = g(null);
|
|
52
53
|
ue(h);
|
|
53
54
|
const q = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
|
|
54
55
|
var e;
|
|
@@ -59,14 +60,14 @@ const we = ["data-key"], xe = {
|
|
|
59
60
|
var e;
|
|
60
61
|
return (e = l.items) == null ? void 0 : e.find((t) => t[l.itemValue] === d.value);
|
|
61
62
|
}), _ = m(() => y.value === void 0), C = m(() => {
|
|
62
|
-
const e =
|
|
63
|
+
const e = o.value;
|
|
63
64
|
if (e !== void 0 && p.value[e])
|
|
64
65
|
return p.value[e];
|
|
65
66
|
}), G = m(() => {
|
|
66
67
|
var t;
|
|
67
|
-
if (
|
|
68
|
+
if (o.value === void 0)
|
|
68
69
|
return;
|
|
69
|
-
const e = (t = s.value) == null ? void 0 : t.getItem(
|
|
70
|
+
const e = (t = s.value) == null ? void 0 : t.getItem(o.value);
|
|
70
71
|
return e == null ? void 0 : e.id;
|
|
71
72
|
}), J = m(() => {
|
|
72
73
|
var e;
|
|
@@ -81,16 +82,16 @@ const we = ["data-key"], xe = {
|
|
|
81
82
|
u.value !== e && (u.value = e);
|
|
82
83
|
}
|
|
83
84
|
function D() {
|
|
84
|
-
i.value || l.readonly || l.disabled || (
|
|
85
|
+
i.value || l.readonly || l.disabled || (w("before-show"), i.value = !0, E());
|
|
85
86
|
}
|
|
86
87
|
function F() {
|
|
87
|
-
i.value && (
|
|
88
|
+
i.value && (w("before-hide"), i.value = !1, o.value = void 0);
|
|
88
89
|
}
|
|
89
90
|
function Y() {
|
|
90
91
|
i.value ? F() : U();
|
|
91
92
|
}
|
|
92
93
|
function Z() {
|
|
93
|
-
q.value && (d.value = l.emptyValue,
|
|
94
|
+
q.value && (d.value = l.emptyValue, o.value = void 0, E());
|
|
94
95
|
}
|
|
95
96
|
function U() {
|
|
96
97
|
if (D(), y.value !== void 0) {
|
|
@@ -99,17 +100,17 @@ const we = ["data-key"], xe = {
|
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
function ee(e) {
|
|
102
|
-
var t,
|
|
103
|
+
var t, a;
|
|
103
104
|
if (!(!e.key || l.readonly || l.disabled))
|
|
104
105
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "Escape")
|
|
105
106
|
h(), i.value && F();
|
|
106
107
|
else if (["ArrowDown", "ArrowUp"].includes(e.key))
|
|
107
108
|
i.value ? I(() => {
|
|
108
|
-
if (
|
|
109
|
+
if (o.value === void 0)
|
|
109
110
|
$();
|
|
110
111
|
else {
|
|
111
112
|
const n = e.key === "ArrowDown" ? "next" : "prev";
|
|
112
|
-
te(
|
|
113
|
+
te(o.value, n);
|
|
113
114
|
}
|
|
114
115
|
}) : (D(), I(() => {
|
|
115
116
|
e.key === "ArrowDown" ? $() : le();
|
|
@@ -117,31 +118,31 @@ const we = ["data-key"], xe = {
|
|
|
117
118
|
else if (e.key === "Enter") {
|
|
118
119
|
if (C.value === void 0) return;
|
|
119
120
|
Q(C.value[l.itemValue]);
|
|
120
|
-
} else e.key === "Home" ?
|
|
121
|
+
} else e.key === "Home" ? o.value = (t = s.value) == null ? void 0 : t.getFirstFocusableItemIndex() : e.key === "End" ? o.value = (a = s.value) == null ? void 0 : a.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && D();
|
|
121
122
|
}
|
|
122
123
|
function $() {
|
|
123
124
|
var e, t;
|
|
124
125
|
if (_.value)
|
|
125
|
-
|
|
126
|
+
o.value = (t = s.value) == null ? void 0 : t.getFirstFocusableItemIndex();
|
|
126
127
|
else {
|
|
127
|
-
const
|
|
128
|
+
const a = p.value.findIndex(
|
|
128
129
|
(n) => n[l.itemValue] === d.value
|
|
129
130
|
);
|
|
130
|
-
|
|
131
|
+
a === -1 ? o.value = (e = s.value) == null ? void 0 : e.getFirstFocusableItemIndex() : o.value = a;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
function le() {
|
|
134
135
|
var e;
|
|
135
|
-
|
|
136
|
+
o.value = (e = s.value) == null ? void 0 : e.getLastFocusableItemIndex();
|
|
136
137
|
}
|
|
137
138
|
function te(e, t) {
|
|
138
|
-
var
|
|
139
|
-
|
|
139
|
+
var a;
|
|
140
|
+
o.value = (a = s.value) == null ? void 0 : a.getAdjacentItemIndex(e, t);
|
|
140
141
|
}
|
|
141
142
|
function N(e) {
|
|
142
143
|
var B, z, P, R;
|
|
143
|
-
const t = ((B = V == null ? void 0 : V.value) == null ? void 0 : B.$el) === e.relatedTarget,
|
|
144
|
-
if (t || n ||
|
|
144
|
+
const t = ((B = V == null ? void 0 : V.value) == null ? void 0 : B.$el) === e.relatedTarget, a = (P = (z = c == null ? void 0 : c.value) == null ? void 0 : z.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = L == null ? void 0 : L.value) == null ? void 0 : R.contains(e.relatedTarget);
|
|
145
|
+
if (t || n || a) {
|
|
145
146
|
e.preventDefault(), e.stopPropagation();
|
|
146
147
|
return;
|
|
147
148
|
}
|
|
@@ -151,30 +152,30 @@ const we = ["data-key"], xe = {
|
|
|
151
152
|
var e, t;
|
|
152
153
|
(t = (e = c.value) == null ? void 0 : e.inputRef) == null || t.focus();
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function ae() {
|
|
155
156
|
E();
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
158
|
+
function oe() {
|
|
159
|
+
w("show");
|
|
159
160
|
}
|
|
160
161
|
function ne() {
|
|
161
|
-
|
|
162
|
+
w("hide");
|
|
162
163
|
}
|
|
163
164
|
function O(e) {
|
|
164
|
-
var
|
|
165
|
-
const t = (
|
|
165
|
+
var a;
|
|
166
|
+
const t = (a = s.value) == null ? void 0 : a.getItem(e);
|
|
166
167
|
s.value && (s.value.$el.scrollTop = t == null ? void 0 : t.offsetTop);
|
|
167
168
|
}
|
|
168
169
|
return k(d, h), k(
|
|
169
170
|
() => l.items,
|
|
170
171
|
(e, t) => {
|
|
171
172
|
if (!_.value) {
|
|
172
|
-
const
|
|
173
|
-
u.value === (
|
|
173
|
+
const a = t == null ? void 0 : t.find((n) => n[l.itemValue] === d.value);
|
|
174
|
+
u.value === (a == null ? void 0 : a[l.itemLabel]) && h();
|
|
174
175
|
}
|
|
175
176
|
},
|
|
176
177
|
{ deep: !0 }
|
|
177
|
-
), k(
|
|
178
|
+
), k(o, (e) => {
|
|
178
179
|
e !== void 0 && O(e);
|
|
179
180
|
}), k(u, (e) => {
|
|
180
181
|
e && i.value && l.selectionMode === "automatic" && I($);
|
|
@@ -186,7 +187,7 @@ const we = ["data-key"], xe = {
|
|
|
186
187
|
), W({
|
|
187
188
|
triggerEl: c
|
|
188
189
|
}), (e, t) => {
|
|
189
|
-
var
|
|
190
|
+
var a;
|
|
190
191
|
return b(), T(
|
|
191
192
|
se,
|
|
192
193
|
null,
|
|
@@ -287,8 +288,8 @@ const we = ["data-key"], xe = {
|
|
|
287
288
|
placement: "bottom-start",
|
|
288
289
|
width: "anchor",
|
|
289
290
|
offset: 4,
|
|
290
|
-
anchor: (
|
|
291
|
-
onEnter:
|
|
291
|
+
anchor: (a = c.value) == null ? void 0 : a.$el,
|
|
292
|
+
onEnter: oe,
|
|
292
293
|
onLeave: ne
|
|
293
294
|
}, {
|
|
294
295
|
default: r(() => {
|
|
@@ -303,7 +304,7 @@ const we = ["data-key"], xe = {
|
|
|
303
304
|
onFocusout: N
|
|
304
305
|
}, [
|
|
305
306
|
f(e.$slots, "body.prepend"),
|
|
306
|
-
l.loading ? (b(), T("div",
|
|
307
|
+
l.loading ? (b(), T("div", we, [
|
|
307
308
|
M(v(he), { size: 24 })
|
|
308
309
|
])) : p.value.length ? (b(), A(v(be), {
|
|
309
310
|
key: 1,
|
|
@@ -317,7 +318,7 @@ const we = ["data-key"], xe = {
|
|
|
317
318
|
groups: e.groups,
|
|
318
319
|
"item-label": l.itemLabel,
|
|
319
320
|
"item-value": l.itemValue,
|
|
320
|
-
onMouseup:
|
|
321
|
+
onMouseup: ae,
|
|
321
322
|
"onUpdate:modelValue": Q
|
|
322
323
|
}, {
|
|
323
324
|
item: r(({ item: B }) => [
|
|
@@ -333,7 +334,7 @@ const we = ["data-key"], xe = {
|
|
|
333
334
|
/* TEXT */
|
|
334
335
|
)),
|
|
335
336
|
f(e.$slots, "body.append")
|
|
336
|
-
], 40,
|
|
337
|
+
], 40, xe)
|
|
337
338
|
];
|
|
338
339
|
}),
|
|
339
340
|
_: 3
|
|
@@ -42,6 +42,7 @@ declare const QCombobox: {
|
|
|
42
42
|
readonly disabled?: boolean | undefined;
|
|
43
43
|
readonly invalid?: boolean | undefined;
|
|
44
44
|
readonly placeholder?: string | undefined;
|
|
45
|
+
readonly maxLength?: number | undefined;
|
|
45
46
|
readonly clearable?: boolean | undefined;
|
|
46
47
|
readonly type?: string | undefined;
|
|
47
48
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -147,6 +148,7 @@ declare const QCombobox: {
|
|
|
147
148
|
invalid?: boolean;
|
|
148
149
|
} & {
|
|
149
150
|
placeholder?: string;
|
|
151
|
+
maxLength?: number;
|
|
150
152
|
clearable?: boolean;
|
|
151
153
|
type?: string;
|
|
152
154
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -198,6 +200,7 @@ declare const QCombobox: {
|
|
|
198
200
|
invalid?: boolean;
|
|
199
201
|
} & {
|
|
200
202
|
placeholder?: string;
|
|
203
|
+
maxLength?: number;
|
|
201
204
|
clearable?: boolean;
|
|
202
205
|
type?: string;
|
|
203
206
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -230,6 +233,7 @@ declare const QCombobox: {
|
|
|
230
233
|
readonly disabled?: boolean | undefined;
|
|
231
234
|
readonly invalid?: boolean | undefined;
|
|
232
235
|
readonly placeholder?: string | undefined;
|
|
236
|
+
readonly maxLength?: number | undefined;
|
|
233
237
|
readonly clearable?: boolean | undefined;
|
|
234
238
|
readonly type?: string | undefined;
|
|
235
239
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -335,6 +339,7 @@ declare const QCombobox: {
|
|
|
335
339
|
invalid?: boolean;
|
|
336
340
|
} & {
|
|
337
341
|
placeholder?: string;
|
|
342
|
+
maxLength?: number;
|
|
338
343
|
clearable?: boolean;
|
|
339
344
|
type?: string;
|
|
340
345
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -386,6 +391,7 @@ declare const QCombobox: {
|
|
|
386
391
|
invalid?: boolean;
|
|
387
392
|
} & {
|
|
388
393
|
placeholder?: string;
|
|
394
|
+
maxLength?: number;
|
|
389
395
|
clearable?: boolean;
|
|
390
396
|
type?: string;
|
|
391
397
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -445,6 +451,7 @@ declare const QCombobox: {
|
|
|
445
451
|
readonly disabled?: boolean | undefined;
|
|
446
452
|
readonly invalid?: boolean | undefined;
|
|
447
453
|
readonly placeholder?: string | undefined;
|
|
454
|
+
readonly maxLength?: number | undefined;
|
|
448
455
|
readonly clearable?: boolean | undefined;
|
|
449
456
|
readonly type?: string | undefined;
|
|
450
457
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -550,6 +557,7 @@ declare const QCombobox: {
|
|
|
550
557
|
invalid?: boolean;
|
|
551
558
|
} & {
|
|
552
559
|
placeholder?: string;
|
|
560
|
+
maxLength?: number;
|
|
553
561
|
clearable?: boolean;
|
|
554
562
|
type?: string;
|
|
555
563
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -601,6 +609,7 @@ declare const QCombobox: {
|
|
|
601
609
|
invalid?: boolean;
|
|
602
610
|
} & {
|
|
603
611
|
placeholder?: string;
|
|
612
|
+
maxLength?: number;
|
|
604
613
|
clearable?: boolean;
|
|
605
614
|
type?: string;
|
|
606
615
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -919,6 +928,7 @@ declare const QCombobox: {
|
|
|
919
928
|
readonly disabled?: boolean | undefined;
|
|
920
929
|
readonly invalid?: boolean | undefined;
|
|
921
930
|
readonly placeholder?: string | undefined;
|
|
931
|
+
readonly maxLength?: number | undefined;
|
|
922
932
|
readonly clearable?: boolean | undefined;
|
|
923
933
|
readonly type?: string | undefined;
|
|
924
934
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -1024,6 +1034,7 @@ declare const QCombobox: {
|
|
|
1024
1034
|
invalid?: boolean;
|
|
1025
1035
|
} & {
|
|
1026
1036
|
placeholder?: string;
|
|
1037
|
+
maxLength?: number;
|
|
1027
1038
|
clearable?: boolean;
|
|
1028
1039
|
type?: string;
|
|
1029
1040
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1075,6 +1086,7 @@ declare const QCombobox: {
|
|
|
1075
1086
|
invalid?: boolean;
|
|
1076
1087
|
} & {
|
|
1077
1088
|
placeholder?: string;
|
|
1089
|
+
maxLength?: number;
|
|
1078
1090
|
clearable?: boolean;
|
|
1079
1091
|
type?: string;
|
|
1080
1092
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1107,6 +1119,7 @@ declare const QCombobox: {
|
|
|
1107
1119
|
readonly disabled?: boolean | undefined;
|
|
1108
1120
|
readonly invalid?: boolean | undefined;
|
|
1109
1121
|
readonly placeholder?: string | undefined;
|
|
1122
|
+
readonly maxLength?: number | undefined;
|
|
1110
1123
|
readonly clearable?: boolean | undefined;
|
|
1111
1124
|
readonly type?: string | undefined;
|
|
1112
1125
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -1212,6 +1225,7 @@ declare const QCombobox: {
|
|
|
1212
1225
|
invalid?: boolean;
|
|
1213
1226
|
} & {
|
|
1214
1227
|
placeholder?: string;
|
|
1228
|
+
maxLength?: number;
|
|
1215
1229
|
clearable?: boolean;
|
|
1216
1230
|
type?: string;
|
|
1217
1231
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1263,6 +1277,7 @@ declare const QCombobox: {
|
|
|
1263
1277
|
invalid?: boolean;
|
|
1264
1278
|
} & {
|
|
1265
1279
|
placeholder?: string;
|
|
1280
|
+
maxLength?: number;
|
|
1266
1281
|
clearable?: boolean;
|
|
1267
1282
|
type?: string;
|
|
1268
1283
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1344,6 +1359,7 @@ declare const QCombobox: {
|
|
|
1344
1359
|
readonly disabled?: boolean | undefined;
|
|
1345
1360
|
readonly invalid?: boolean | undefined;
|
|
1346
1361
|
readonly placeholder?: string | undefined;
|
|
1362
|
+
readonly maxLength?: number | undefined;
|
|
1347
1363
|
readonly clearable?: boolean | undefined;
|
|
1348
1364
|
readonly type?: string | undefined;
|
|
1349
1365
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -1449,6 +1465,7 @@ declare const QCombobox: {
|
|
|
1449
1465
|
invalid?: boolean;
|
|
1450
1466
|
} & {
|
|
1451
1467
|
placeholder?: string;
|
|
1468
|
+
maxLength?: number;
|
|
1452
1469
|
clearable?: boolean;
|
|
1453
1470
|
type?: string;
|
|
1454
1471
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1500,6 +1517,7 @@ declare const QCombobox: {
|
|
|
1500
1517
|
invalid?: boolean;
|
|
1501
1518
|
} & {
|
|
1502
1519
|
placeholder?: string;
|
|
1520
|
+
maxLength?: number;
|
|
1503
1521
|
clearable?: boolean;
|
|
1504
1522
|
type?: string;
|
|
1505
1523
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1532,6 +1550,7 @@ declare const QCombobox: {
|
|
|
1532
1550
|
readonly disabled?: boolean | undefined;
|
|
1533
1551
|
readonly invalid?: boolean | undefined;
|
|
1534
1552
|
readonly placeholder?: string | undefined;
|
|
1553
|
+
readonly maxLength?: number | undefined;
|
|
1535
1554
|
readonly clearable?: boolean | undefined;
|
|
1536
1555
|
readonly type?: string | undefined;
|
|
1537
1556
|
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
@@ -1637,6 +1656,7 @@ declare const QCombobox: {
|
|
|
1637
1656
|
invalid?: boolean;
|
|
1638
1657
|
} & {
|
|
1639
1658
|
placeholder?: string;
|
|
1659
|
+
maxLength?: number;
|
|
1640
1660
|
clearable?: boolean;
|
|
1641
1661
|
type?: string;
|
|
1642
1662
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|
|
@@ -1688,6 +1708,7 @@ declare const QCombobox: {
|
|
|
1688
1708
|
invalid?: boolean;
|
|
1689
1709
|
} & {
|
|
1690
1710
|
placeholder?: string;
|
|
1711
|
+
maxLength?: number;
|
|
1691
1712
|
clearable?: boolean;
|
|
1692
1713
|
type?: string;
|
|
1693
1714
|
texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
|