@quidgest/ui 0.5.11 → 0.5.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/ui.min.js CHANGED
@@ -115,7 +115,7 @@ break
115
115
  case"last":p(-1)}}function p(e){var t
116
116
  null==(t=m().at(e))||t.focus()}function m(){var e
117
117
  const t=null==(e=c.value)?void 0:e.querySelectorAll("li")
118
- return t?Array.from(t).filter((e=>-1!==e.tabIndex)):[]}function h(e){return e?l.items.filter((t=>t.group===e)):l.items}return t.watch((()=>l.modelValue),(e=>{a.value=e})),o({focusItem:p}),(e,o)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{ref_key:"listRef",ref:c,class:t.normalizeClass(["q-list",{"q-list--disabled":l.disabled}]),role:"listbox",tabindex:l.disabled?-1:0,onFocus:d,onKeydown:u},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(e=>(t.openBlock(),t.createBlock(t.unref(oe),t.mergeProps({key:e.title},e),{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h(e.title),(e=>(t.openBlock(),t.createBlock(t.unref(te),{key:e[l.itemValue],value:e[l.itemValue],label:e[l.itemLabel],icon:e.icon,disabled:l.disabled||e.disabled,selected:a.value===e[l.itemValue],onSelect:s},null,8,["value","label","icon","disabled","selected"])))),128))])),_:2},1040)))),128))])),_:1},40,["class","tabindex"]))}}),W=["tabindex","aria-label","aria-selected","onClick"],G={check:{icon:"check"}},K=t.defineComponent({__name:"QListItem",props:{value:{type:[String,Number,Boolean,Symbol]},label:{},icon:{default:void 0},selected:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},icons:{default:()=>G},disabled:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:o}){const n=e
118
+ return t?Array.from(t).filter((e=>-1!==e.tabIndex)):[]}function h(e){return e?l.items.filter((t=>t.group===e)):l.items}return t.watch((()=>l.modelValue),(e=>{a.value=e})),o({focusItem:p}),(e,o)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{ref_key:"listRef",ref:c,class:t.normalizeClass(["q-list",{"q-list--disabled":l.disabled}]),role:"listbox",tabindex:l.disabled?-1:0,onFocus:d,onKeydown:u},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(e=>(t.openBlock(),t.createBlock(t.unref(oe),t.mergeProps({key:e.title},e),{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h(e.id),(e=>(t.openBlock(),t.createBlock(t.unref(te),{key:e[l.itemValue],value:e[l.itemValue],label:e[l.itemLabel],icon:e.icon,disabled:l.disabled||e.disabled,selected:a.value===e[l.itemValue],onSelect:s},null,8,["value","label","icon","disabled","selected"])))),128))])),_:2},1040)))),128))])),_:1},40,["class","tabindex"]))}}),W=["tabindex","aria-label","aria-selected","onClick"],G={check:{icon:"check"}},K=t.defineComponent({__name:"QListItem",props:{value:{type:[String,Number,Boolean,Symbol]},label:{},icon:{default:void 0},selected:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},icons:{default:()=>G},disabled:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:o}){const n=e
119
119
  function l(){n.disabled||o("select",n.value)}function a(e){"Tab"===e.key&&l(),("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),l())}return(e,o)=>(t.openBlock(),t.createElementBlock("li",{role:"option",tabindex:n.disabled?void 0:-2,class:t.normalizeClass(["q-list-item",{"q-list-item--disabled":n.disabled,"q-list-item--selected":n.selected,"q-list-item--highlighted":n.highlighted}]),"aria-label":n.label,"aria-selected":n.disabled?void 0:n.selected,onKeydown:a,onClick:t.withModifiers(l,["stop","prevent"])},[n.icon?(t.openBlock(),t.createBlock(t.unref(T),t.normalizeProps(t.mergeProps({key:0},n.icon)),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.label)+" ",1),n.selected?(t.openBlock(),t.createBlock(t.unref(T),t.mergeProps({key:1},n.icons.check,{class:"q-list-item__check"}),null,16)):t.createCommentVNode("",!0)],42,W))}})
120
120
  let X=0
121
121
  const Y=["aria-labelledby"],Z=["id"],J=t.defineComponent({__name:"QListItemGroup",props:{id:{default:()=>"uid-"+ ++X},title:{default:""},disabled:{type:Boolean,default:!1}},setup(e){const o=e