@quidgest/ui 0.8.9 → 0.8.11

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.min.js CHANGED
@@ -176,7 +176,8 @@ s.value=-1===t?null==(e=u.value)?void 0:e.getFirstFocusableItemIndex():t}}functi
176
176
  null!=(t=p.value)&&t.contains(e.relatedTarget)||null!=(o=null==(l=c.value)?void 0:l.fieldRef)&&o.contains(e.relatedTarget)?(e.preventDefault(),e.stopPropagation()):(V(),_())}function N(){var e,t
177
177
  null==(t=null==(e=c.value)?void 0:e.inputRef)||t.focus()}function T(){N()}function D(){n("show")}function Q(){n("hide")}function A(e){var t
178
178
  const l=null==(t=u.value)?void 0:t.getItem(e)
179
- null==l||l.scrollIntoView({block:"nearest",inline:"start"})}return t.watch((()=>a.modelValue),(e=>{r.value=e})),t.watch([r,()=>a.items],_,{deep:!0}),t.watch(s,(e=>{void 0!==e&&A(e)})),t.watch(d,(e=>{!e&&f.value?q():i.value&&"automatic"===a.selectionMode&&t.nextTick(z),n("update:inputValue",e)})),l({triggerEl:c}),(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(pe),{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=e=>d.value=e),id:a.id,label:a.label,required:a.required,ref_key:"triggerEl",ref:c,role:"combobox",placeholder:a.placeholder,class:t.normalizeClass(["q-combobox",{"q-combobox--readonly":a.readonly,"q-combobox--disabled":a.disabled,"q-combobox--expanded":i.value},a.class]),readonly:a.readonly,disabled:a.disabled,autocomplete:"off","aria-expanded":i.value,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":y.value,size:a.size,onClick:E,onFocusout:L,onKeydown:t.withModifiers($,["stop"])},t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),append:t.withCtx((()=>[t.renderSlot(e.$slots,"append"),f.value&&d.value?(t.openBlock(),t.createBlock(t.unref(x),{key:0,class:"q-combobox__clear","b-style":"plain",borderless:"",tabindex:"-1",onClick:q},{default:t.withCtx((()=>[t.createVNode(t.unref(I),t.normalizeProps(t.guardReactiveProps(a.icons.clear)),null,16)])),_:1})):t.createCommentVNode("",!0),a.readonly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(x),{key:1,class:"q-combobox__chevron","b-style":"plain",borderless:"",tabindex:"-1",disabled:a.disabled,onClick:S},{default:t.withCtx((()=>[t.createVNode(t.unref(I),t.normalizeProps(t.guardReactiveProps(a.icons.chevron)),null,16)])),_:1},8,["disabled"]))])),_:2},[e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend")])),key:"0"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"1"}:void 0]),1032,["modelValue","id","label","required","placeholder","class","readonly","disabled","aria-expanded","aria-activedescendant","size"]),t.createVNode(t.unref(oe),{modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=e=>i.value=e),spy:"",trigger:"manual",placement:"bottom",width:"anchor",offset:4,anchor:c.value,onEnter:D,onLeave:Q},{default:t.withCtx((()=>{var o
179
+ null==l||l.scrollIntoView({block:"nearest",inline:"start"})}return t.watch((()=>a.modelValue),(e=>{r.value=e})),t.watch(r,_),t.watch((()=>a.items),((e,t)=>{if(!h.value){const e=t.find((e=>e[a.itemValue]===r.value))
180
+ d.value===(null==e?void 0:e[a.itemLabel])&&_()}}),{deep:!0}),t.watch(s,(e=>{void 0!==e&&A(e)})),t.watch(d,(e=>{!e&&f.value?q():i.value&&"automatic"===a.selectionMode&&t.nextTick(z),n("update:inputValue",e)})),l({triggerEl:c}),(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(pe),{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=e=>d.value=e),id:a.id,label:a.label,required:a.required,ref_key:"triggerEl",ref:c,role:"combobox",placeholder:a.placeholder,class:t.normalizeClass(["q-combobox",{"q-combobox--readonly":a.readonly,"q-combobox--disabled":a.disabled,"q-combobox--expanded":i.value},a.class]),readonly:a.readonly,disabled:a.disabled,autocomplete:"off","aria-expanded":i.value,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":y.value,size:a.size,onClick:E,onFocusout:L,onKeydown:t.withModifiers($,["stop"])},t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),append:t.withCtx((()=>[t.renderSlot(e.$slots,"append"),f.value&&d.value?(t.openBlock(),t.createBlock(t.unref(x),{key:0,class:"q-combobox__clear","b-style":"plain",borderless:"",tabindex:"-1",onClick:q},{default:t.withCtx((()=>[t.createVNode(t.unref(I),t.normalizeProps(t.guardReactiveProps(a.icons.clear)),null,16)])),_:1})):t.createCommentVNode("",!0),a.readonly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(x),{key:1,class:"q-combobox__chevron","b-style":"plain",borderless:"",tabindex:"-1",disabled:a.disabled,onClick:S},{default:t.withCtx((()=>[t.createVNode(t.unref(I),t.normalizeProps(t.guardReactiveProps(a.icons.chevron)),null,16)])),_:1},8,["disabled"]))])),_:2},[e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend")])),key:"0"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"1"}:void 0]),1032,["modelValue","id","label","required","placeholder","class","readonly","disabled","aria-expanded","aria-activedescendant","size"]),t.createVNode(t.unref(oe),{modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=e=>i.value=e),spy:"",trigger:"manual",placement:"bottom",width:"anchor",offset:4,anchor:c.value,onEnter:D,onLeave:Q},{default:t.withCtx((()=>{var o
180
181
  return[t.createElementVNode("div",{ref_key:"contentRef",ref:p,class:"q-select__body",onFocusout:L},[t.renderSlot(e.$slots,"body.prepend"),a.loading?(t.openBlock(),t.createElementBlock("div",fe,[t.createVNode(t.unref(g),{size:24})])):m.value.length?(t.openBlock(),t.createBlock(t.unref(G),{key:1,ref_key:"listRef",ref:u,class:"q-select__items",modelValue:r.value,"onUpdate:modelValue":[l[1]||(l[1]=e=>r.value=e),B],highlighted:null==(o=b.value)?void 0:o[a.itemValue],items:m.value,groups:e.groups,"item-label":a.itemLabel,"item-value":a.itemValue,onMouseup:T},{item:t.withCtx((({item:l})=>[t.renderSlot(e.$slots,"item",{item:l})])),_:3},8,["modelValue","highlighted","items","groups","item-label","item-value"])):(t.openBlock(),t.createElementBlock("div",me,t.toDisplayString(e.texts.noData),1)),t.renderSlot(e.$slots,"body.append")],544)]})),_:3},8,["modelValue","anchor"])],64))}})),ye={key:0,class:"q-input-group__prepend"},ge={key:0},ke={key:1,class:"q-input-group__append"},we={key:0},Be=y(t.defineComponent({__name:"QInputGroup",props:{id:{default:void 0},label:{default:""},required:{type:Boolean},prependIcon:{default:void 0},appendIcon:{default:void 0},size:{default:"large"},class:{default:void 0}},setup(e){const l=e
181
182
  return r({QField:{size:"block"}}),(e,o)=>(t.openBlock(),t.createBlock(t.unref(ce),{id:l.id,class:t.normalizeClass(["q-input-group",l.class]),label:l.label,required:l.required,size:l.size},{default:t.withCtx((()=>[e.$slots.prepend||l.prependIcon?(t.openBlock(),t.createElementBlock("div",ye,[l.prependIcon?(t.openBlock(),t.createElementBlock("span",ge,[t.createVNode(t.unref(I),t.normalizeProps(t.guardReactiveProps(l.prependIcon)),null,16)])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"prepend")])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.append||l.appendIcon?(t.openBlock(),t.createElementBlock("div",ke,[l.appendIcon?(t.openBlock(),t.createElementBlock("span",we,[t.createVNode(t.unref(I),t.normalizeProps(t.guardReactiveProps(l.appendIcon)),null,16)])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"append")])):t.createCommentVNode("",!0)])),_:3},8,["id","class","label","required","size"]))}})),xe=y(t.defineComponent({__name:"QLineLoader",props:{class:{default:void 0}},setup(e){const l=e
182
183
  return(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["q-line-loader",l.class])},null,2))}})),_e={key:0,class:"q-popover__header"},Ce={key:1,class:"q-popover__body"},Ve=["innerHTML"],Se={key:1},qe=y(t.defineComponent({inheritAttrs:!1,__name:"QPopover",props:{modelValue:{type:Boolean},anchor:{},arrow:{type:Boolean,default:!0},attach:{default:"body"},disabled:{type:Boolean},html:{type:Boolean,default:!0},placement:{default:"right"},text:{},title:{}},setup(e){const l=e