@quidgest/ui 0.6.1 → 0.6.2
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 +56 -57
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +1 -1
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +1 -1
package/dist/ui.min.js
CHANGED
|
@@ -119,7 +119,7 @@ null==(t=m().at(e))||t.focus()}function m(){var e
|
|
|
119
119
|
const t=null==(e=s.value)?void 0:e.querySelectorAll("li")
|
|
120
120
|
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:s,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(se),{key:e.id,title:e.title,disabled:e.disabled},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h(e.id),(e=>(t.openBlock(),t.createBlock(t.unref(ie),{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:c},null,8,["value","label","icon","disabled","selected"])))),128))])),_:2},1032,["title","disabled"])))),128))])),_:1},40,["class","tabindex"]))}}),J=["tabindex","aria-label","aria-selected","onClick"],ee={class:"q-list-item__check-container"},te={check:{icon:"check"}},oe=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:()=>te},disabled:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:o}){const n=e
|
|
121
121
|
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(j),t.normalizeProps(t.mergeProps({key:0},n.icon)),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.label)+" ",1),t.createElementVNode("div",ee,[n.selected?(t.openBlock(),t.createBlock(t.unref(j),t.mergeProps({key:0},n.icons.check,{class:"q-list-item__check"}),null,16)):t.createCommentVNode("",!0)])],42,J))}}),ne=["aria-labelledby"],le=["id"],ae=t.defineComponent({__name:"QListItemGroup",props:{title:{default:""},disabled:{type:Boolean,default:!1}},setup(e){const o=e,n=L()
|
|
122
|
-
return(e,l)=>
|
|
122
|
+
return(e,l)=>(t.openBlock(),t.createElementBlock("ul",{class:"q-list-item-group",role:"group","aria-labelledby":o.title?t.unref(n):void 0},[o.title?(t.openBlock(),t.createElementBlock("li",{key:0,id:t.unref(n),class:"q-list-item-group__title",role:"presentation"},t.toDisplayString(o.title),9,le)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],8,ne))}}),re=B(Z),ie=B(oe),se=B(ae)
|
|
123
123
|
function ce(e,t,o="right",n){const l=e.getBoundingClientRect(),a=l.x+window.scrollX,r=l.y+window.scrollY,i=null==t?void 0:t.getBoundingClientRect(),s=(null==i?void 0:i.width)??0,c=(null==i?void 0:i.height)??0
|
|
124
124
|
let d=o
|
|
125
125
|
i&&!de(l,i,d)&&(d=function(e,t,o){const n={top:["bottom","left","right"],bottom:["top","left","right"],left:["right","top","bottom"],right:["left","top","bottom"]}
|