@quidgest/ui 0.16.46 → 0.16.48
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/json/api.json +23 -1
- package/dist/ui.css +17 -5
- package/dist/ui.esm.js +3800 -3784
- package/dist/ui.js +21 -21
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +30 -30
- package/dist/ui.scss +20 -6
- package/esm/components/QCheckbox/QCheckbox.d.ts +1 -0
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +41 -39
- package/esm/components/QCheckbox/index.d.ts +6 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +6 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +40 -40
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +38 -29
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +1 -0
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +21 -19
- package/esm/components/QRadioGroup/index.d.ts +6 -0
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/types.d.ts +6 -0
- package/esm/components/QRadioGroup/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +10 -8
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +128 -125
- package/esm/components/QSelect/index.d.ts +1 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/symbols/dismissibleLayer.d.ts.map +1 -1
- package/esm/symbols/dismissibleLayer.js +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.16.
|
|
4
|
+
* Quidgest UI v0.16.48
|
|
5
5
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
|
@@ -163,9 +163,9 @@ r.value>=e.length&&y(0)}),{immediate:!0,deep:!0}),t.watch(r,(function(){_(),w()}
|
|
|
163
163
|
return t.openBlock(),t.createElementBlock("div",{id:n.id,class:t.normalizeClass(["q-carousel",n.class]),tabindex:"0",onMouseenter:x,onMouseleave:B,onKeydown:C},[e.loading?(t.openBlock(),t.createElementBlock("div",Ke,[t.createVNode(t.unref(We),{width:"100%",height:"100%"}),t.createElementVNode("div",Xe,[t.createVNode(t.unref(We),{type:"text",width:"40%",height:"24px",class:"q-carousel__skeleton-title"}),t.createVNode(t.unref(We),{type:"text",width:"60%",height:"16px",class:"q-carousel__skeleton-subtitle"})]),n.showControls?(t.openBlock(),t.createElementBlock("div",Ze,[t.createVNode(t.unref(We),{type:"icon",width:"40px",height:"40px",class:"q-carousel__skeleton-control"}),t.createVNode(t.unref(We),{type:"icon",width:"40px",height:"40px",class:"q-carousel__skeleton-control"})])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[null!=(l=e.slides)&&l.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"q-carousel__track",style:t.normalizeStyle(f.value),onTouchstart:S,onTouchmove:E,onTouchend:M},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.slides,((e,a)=>(t.openBlock(),t.createElementBlock("div",{key:e.id,class:t.normalizeClass(["q-carousel__slide",{"q-carousel__slide--active":a===r.value}]),style:t.normalizeStyle(k(e)),onClick:t.withModifiers((()=>function(e){const t=window.getSelection()
|
|
164
164
|
if(null!=t&&t.toString().length)return
|
|
165
165
|
const a=n.slides[e]
|
|
166
|
-
o("slide:click",a.id)}(a)),["stop","prevent"])},[e.image?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image,alt:e.title||`Slide ${a+1}`,class:"q-carousel__image",decoding:"async",loading:"lazy"},null,8,et)):t.createCommentVNode("",!0)],14,Je)))),128))],36)):(t.openBlock(),t.createElementBlock("div",tt,[t.renderSlot(e.$slots,"empty")])),e.slides[r.value]?(t.openBlock(),t.createElementBlock("div",at,[null!=(i=e.slides[r.value])&&i.title?(t.openBlock(),t.createElementBlock("h2",nt,t.toDisplayString(e.slides[r.value].title),1)):t.createCommentVNode("",!0),null!=(s=e.slides[r.value])&&s.subtitle?(t.openBlock(),t.createElementBlock("p",ot,t.toDisplayString(e.slides[r.value].subtitle),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showIndicators&&e.slides.length>1?(t.openBlock(),t.createElementBlock("ol",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.slides,((e,a)=>(t.openBlock(),t.createElementBlock("li",{key:e.id,class:t.normalizeClass(["q-carousel__indicator",{"q-carousel__indicator--active":a===r.value}]),"data-testid":"carousel-indicator",style:t.normalizeStyle(a===r.value?h.value:{}),"aria-label":V(a),"aria-current":a===r.value,onClick:()=>y(a)},null,14,rt)))),128))])):t.createCommentVNode("",!0),e.showControls&&e.slides.length>1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createVNode(t.unref(X),{class:"q-carousel__control q-carousel__control--prev","data-testid":"carousel-prev","aria-label":e.texts.previousText,onClick:b},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--prev"},n.icons.back),null,16),t.createElementVNode("span",it,t.toDisplayString(e.texts.previousText),1)])),_:1},8,["aria-label"]),t.createVNode(t.unref(X),{class:"q-carousel__control q-carousel__control--next","data-testid":"carousel-next","aria-label":e.texts.nextText,onClick:g},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--next"},n.icons.forward),null,16),t.createElementVNode("span",st,t.toDisplayString(e.texts.nextText),1)])),_:1},8,["aria-label"])],64)):t.createCommentVNode("",!0)],64))],42,Ge)}}})),dt={checked:{icon:"check"},indeterminate:{icon:"minus"}},ct=["checked","disabled","required","aria-readonly"],pt=["id","aria-checked","disabled","onKeydown"],mt=t.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPlacement:{default:"right"},color:{default:"primary"},size:{default:"regular"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},icons:{default:()=>dt}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=Me(t.toRef(a,"id")),l=t.useTemplateRef("inputEl"),r=t.useTemplateRef("buttonEl"),i=t.computed((()=>["q-checkbox",`q-checkbox--${a.size}`,`q-checkbox--${a.color}`,{"q-checkbox--readonly":a.readonly,"q-checkbox--disabled":a.disabled,"q-checkbox--checked":n.value,"q-checkbox--indeterminate":a.indeterminate},a.class]))
|
|
166
|
+
o("slide:click",a.id)}(a)),["stop","prevent"])},[e.image?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image,alt:e.title||`Slide ${a+1}`,class:"q-carousel__image",decoding:"async",loading:"lazy"},null,8,et)):t.createCommentVNode("",!0)],14,Je)))),128))],36)):(t.openBlock(),t.createElementBlock("div",tt,[t.renderSlot(e.$slots,"empty")])),e.slides[r.value]?(t.openBlock(),t.createElementBlock("div",at,[null!=(i=e.slides[r.value])&&i.title?(t.openBlock(),t.createElementBlock("h2",nt,t.toDisplayString(e.slides[r.value].title),1)):t.createCommentVNode("",!0),null!=(s=e.slides[r.value])&&s.subtitle?(t.openBlock(),t.createElementBlock("p",ot,t.toDisplayString(e.slides[r.value].subtitle),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showIndicators&&e.slides.length>1?(t.openBlock(),t.createElementBlock("ol",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.slides,((e,a)=>(t.openBlock(),t.createElementBlock("li",{key:e.id,class:t.normalizeClass(["q-carousel__indicator",{"q-carousel__indicator--active":a===r.value}]),"data-testid":"carousel-indicator",style:t.normalizeStyle(a===r.value?h.value:{}),"aria-label":V(a),"aria-current":a===r.value,onClick:()=>y(a)},null,14,rt)))),128))])):t.createCommentVNode("",!0),e.showControls&&e.slides.length>1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createVNode(t.unref(X),{class:"q-carousel__control q-carousel__control--prev","data-testid":"carousel-prev","aria-label":e.texts.previousText,onClick:b},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--prev"},n.icons.back),null,16),t.createElementVNode("span",it,t.toDisplayString(e.texts.previousText),1)])),_:1},8,["aria-label"]),t.createVNode(t.unref(X),{class:"q-carousel__control q-carousel__control--next","data-testid":"carousel-next","aria-label":e.texts.nextText,onClick:g},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.mergeProps({class:"q-carousel__control-icon q-carousel__control-icon--next"},n.icons.forward),null,16),t.createElementVNode("span",st,t.toDisplayString(e.texts.nextText),1)])),_:1},8,["aria-label"])],64)):t.createCommentVNode("",!0)],64))],42,Ge)}}})),dt={checked:{icon:"check"},indeterminate:{icon:"minus"}},ct=["checked","disabled","required","aria-readonly"],pt=["id","aria-checked","disabled","onKeydown"],mt=t.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPlacement:{default:"right"},color:{default:"primary"},size:{default:"regular"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},icons:{default:()=>dt},hasFocusOutline:{type:Boolean,default:!0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=Me(t.toRef(a,"id")),l=t.useTemplateRef("inputEl"),r=t.useTemplateRef("buttonEl"),i=t.computed((()=>["q-checkbox",`q-checkbox--${a.size}`,`q-checkbox--${a.color}`,{"q-checkbox--readonly":a.readonly,"q-checkbox--disabled":a.disabled,"q-checkbox--checked":n.value,"q-checkbox--indeterminate":a.indeterminate,"q-checkbox--focus-style":a.hasFocusOutline},a.class]))
|
|
167
167
|
function s(){!a.disabled&&!a.readonly&&(n.value=!n.value)}function u(){var e
|
|
168
|
-
null==(e=r.value)||e.focus()}return t.watch(n,(e=>{l.value&&(l.value.checked=!!e)})),(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.value),onClick:t.withModifiers(s,["prevent"]),onMousedown:t.withModifiers(u,["prevent"])},[a.label&&"right"!==a.labelPlacement?(t.openBlock(),t.createBlock(t.unref(wt),{key:0,for:t.unref(o),label:a.label,required:a.required},t.createSlots({_:2},[e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"0"}:void 0]),1032,["for","label","required"])):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"inputEl",type:"checkbox",class:"q-checkbox__native-input",checked:n.value,disabled:a.disabled
|
|
168
|
+
null==(e=r.value)||e.focus()}return t.watch(n,(e=>{l.value&&(l.value.checked=!!e)})),(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.value),onClick:t.withModifiers(s,["prevent"]),onMousedown:t.withModifiers(u,["prevent"])},[a.label&&"right"!==a.labelPlacement?(t.openBlock(),t.createBlock(t.unref(wt),{key:0,for:t.unref(o),label:a.label,required:a.required},t.createSlots({_:2},[e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"0"}:void 0]),1032,["for","label","required"])):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"inputEl",type:"checkbox",class:"q-checkbox__native-input",checked:n.value,disabled:a.disabled,required:a.required,"aria-readonly":a.readonly,tabindex:"-1","aria-hidden":"true"},null,8,ct),t.createElementVNode("button",t.mergeProps({id:t.unref(o),ref:"buttonEl",role:"checkbox",type:"button",class:"q-checkbox__input","data-testid":"checkbox-button","aria-checked":a.indeterminate?"mixed":n.value,disabled:a.disabled},e.$attrs,{onClick:t.withModifiers(s,["stop","prevent"]),onKeydown:[t.withKeys(t.withModifiers(s,["prevent"]),["space"]),l[0]||(l[0]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["enter"]))]}),[n.value||e.indeterminate?(t.openBlock(),t.createBlock(t.unref(ve),t.mergeProps({key:0},n.value?a.icons.checked:a.icons.indeterminate,{class:"q-checkbox__input-icon"}),null,16)):t.createCommentVNode("",!0)],16,pt),a.label&&"right"===a.labelPlacement?(t.openBlock(),t.createBlock(t.unref(wt),{key:1,for:t.unref(o),label:a.label,required:a.required},t.createSlots({_:2},[e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"0"}:void 0]),1032,["for","label","required"])):t.createCommentVNode("",!0)],34))}}),vt=["id"],ft=["for"],ht=B(t.defineComponent({__name:"QLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{}},setup(e){const a=e,n=t.computed((()=>["q-label",{"q-label--required":a.required},a.class]))
|
|
169
169
|
return(e,o)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(n.value)},[t.renderSlot(e.$slots,"prepend"),t.createElementVNode("label",{for:a.for},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]))],8,ft),t.renderSlot(e.$slots,"append")],10,vt))}})),yt={class:"q-checkbox__label-wrapper"},gt={key:0,class:"q-field__extras"},bt=t.defineComponent({__name:"QCheckboxLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{}},setup(e){const a=e
|
|
170
170
|
return(e,n)=>(t.openBlock(),t.createElementBlock("div",yt,[t.createVNode(t.unref(ht),{class:"q-checkbox__label",for:a.for,required:a.required},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(a.label),1)])),_:1},8,["for","required"]),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",gt,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)]))}}),kt=B(mt),wt=B(bt),_t={selectColor:"Select a color"},xt=["id"],Bt={key:0,class:"q-field__prepend"},Ct={key:1,class:"q-field__append"},St={key:1,class:"q-field__extras"},Et=B(t.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(e,{expose:a}){const n=e,o=t.useTemplateRef("field"),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]))
|
|
171
171
|
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(ht),{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:"field",class:"q-field__control"},e.$attrs),[e.$slots.prepend?(t.openBlock(),t.createElementBlock("div",Bt,[t.renderSlot(e.$slots,"prepend")])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.append?(t.openBlock(),t.createElementBlock("div",Ct,[t.renderSlot(e.$slots,"append")])):t.createCommentVNode("",!0)],16)])),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",St,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)],10,xt))}})),Mt={clearValue:"Clear value"},Vt={clear:{icon:"close"}},$t=B(t.defineComponent({__name:"QClearButton",props:{id:{},class:{},icons:{default:()=>Vt},texts:{default:()=>Mt}},emits:["click"],setup(e,{emit:a}){const n=e,o=a
|
|
@@ -213,7 +213,7 @@ return[t.renderSlot(e.$slots,"item.append",{item:r,element:null==(o=null==(a=c.v
|
|
|
213
213
|
return[t.renderSlot(e.$slots,"item",{item:r,element:null==(o=null==(a=c.value)?void 0:a[i+n*s.value.length])?void 0:o.$el})]})),_:2},1032,["value","label","description","icon","disabled","highlighted","selectable","onClick","onMouseenter"])))),128))])),_:2},1032,["id","title"])))),128))]))])),_:3},40,["id","class","tabindex"]))}}),Ot={check:{icon:"check"},description:{icon:"information-outline"}},It=["id","data-key","tabindex","aria-label","aria-selected"],Ft={class:"q-list-item__container"},Yt={class:"q-list-item__content"},Qt={key:0,class:"q-list-item__description"},Ht={key:0,class:"q-list-item__check-container"},Ut=t.defineComponent({__name:"QListItem",props:t.mergeModels({value:{},label:{},icon:{},description:{},selectable:{type:Boolean},highlighted:{type:Boolean},disabled:{type:Boolean},icons:{default:()=>Ot}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["click"],["update:modelValue"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"modelValue"),r=Me(),i=f(n.value)
|
|
214
214
|
if(!i)throw new Error("QListItem: Failed to retrieve group item. Ensure the component is used within a QList context.")
|
|
215
215
|
function s(){n.disabled||(o("click"),n.selectable&&(null==i||i.toggle()))}function u(e){"Tab"===e.key&&s(),("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),s())}return t.watch(i.isActive,(e=>{l.value=e}),{immediate:!0}),(e,a)=>(t.openBlock(),t.createElementBlock("li",{id:t.unref(r),"data-key":n.value,role:"option",tabindex:n.disabled?void 0:-2,class:t.normalizeClass(["q-list-item",{"q-list-item--selected":l.value,"q-list-item--selectable":n.selectable,"q-list-item--disabled":n.disabled,"q-list-item--highlighted":n.highlighted}]),"aria-label":n.label,"aria-selected":n.disabled?void 0:l.value,onKeydown:u,onClick:t.withModifiers(s,["stop","prevent"])},[t.renderSlot(e.$slots,"prepend"),t.createElementVNode("div",Ft,[t.createElementVNode("div",Yt,[t.renderSlot(e.$slots,"default",{},(()=>[n.icon?(t.openBlock(),t.createBlock(t.unref(ve),t.normalizeProps(t.mergeProps({key:0},n.icon)),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.label),1)]))]),n.description?(t.openBlock(),t.createElementBlock("div",Qt,[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(n.icons.description)),null,16),t.createElementVNode("span",null,t.toDisplayString(n.description),1)])):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"append"),n.selectable?(t.openBlock(),t.createElementBlock("div",Ht,[l.value?(t.openBlock(),t.createBlock(t.unref(ve),t.mergeProps({key:0},n.icons.check,{class:"q-list-item__check"}),null,16)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],42,It))}}),jt=["data-key","aria-labelledby"],Wt=["id"],Gt=t.defineComponent({__name:"QListItemGroup",props:{id:{},title:{}},setup(e){const a=e,n=Me()
|
|
216
|
-
return(e,o)=>(t.openBlock(),t.createElementBlock("ul",{class:"q-list-item-group",role:"group","data-key":a.id,"aria-labelledby":a.title?t.unref(n):void 0},[a.title?(t.openBlock(),t.createElementBlock("li",{key:0,id:t.unref(n),class:"q-list-item-group__title",role:"presentation"},t.toDisplayString(a.title),9,Wt)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],8,jt))}}),Kt=B(zt),Xt=B(Ut),Zt=B(Gt),Jt=Symbol("DismissibleLayer")
|
|
216
|
+
return(e,o)=>(t.openBlock(),t.createElementBlock("ul",{class:"q-list-item-group",role:"group","data-key":a.id,"aria-labelledby":a.title?t.unref(n):void 0},[a.title?(t.openBlock(),t.createElementBlock("li",{key:0,id:t.unref(n),class:"q-list-item-group__title",role:"presentation"},t.toDisplayString(a.title),9,Wt)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],8,jt))}}),Kt=B(zt),Xt=B(Ut),Zt=B(Gt),Jt=Symbol.for("DismissibleLayer")
|
|
217
217
|
const ea={ref:"layer"},ta=B(t.defineComponent({__name:"QDismissibleLayer",emits:["escape-key-down","pointer-down-outside","focus-outside","interact-outside","dismiss"],setup(e,{emit:a}){const n=a,o=t.useTemplateRef("layer"),l=function(e){const a=t.inject(Jt)
|
|
218
218
|
if(!a)throw new Error("useDismissibleLayerStackItem must be used within a dismissible layer stack context.")
|
|
219
219
|
return{register:()=>a.register(e),unregister:()=>a.unregister(e),isTop:()=>a.isTop(e)}}(t.useId())
|
|
@@ -405,7 +405,7 @@ case"right":l=window.innerWidth-e.right-(t.width+n)
|
|
|
405
405
|
break
|
|
406
406
|
default:throw new Error(`[Quidgest UI] Invalid side value: ${o}`)}return l}function Xa(e){return function(e){return"x"===e?"y":"x"}(function(e){const t=Za(e)
|
|
407
407
|
return["left","right"].includes(t)?"x":"y"}(e))}function Za(e){const[t]=e.split("-")
|
|
408
|
-
return t}function Ja(e){return e<0}function en(e){return"string"==typeof e?document.querySelector(e):e}const tn=["id"],an=["role"],nn=B(t.defineComponent({inheritAttrs:!1,__name:"QOverlay",props:t.mergeModels({id:{},class:{},anchor:{},appearance:{default:"regular"},arrow:{type:Boolean},backdropBlur:{type:Boolean},backdropClass:{},offset:{default:8},crossOffset:{default:0},placement:{default:"right"},transition:{default:"fade"},width:{default:"auto"},centerVertically:{type:Boolean},attach:{default:"body"},inline:{type:Boolean},delay:{default:500},nonModal:{type:Boolean},scrollLock:{type:Boolean},persistent:{type:Boolean},spy:{type:Boolean},trigger:{default:"click"},focusTrap:{type:Boolean},returnFocusOnDeactivate:{type:Boolean,default:!0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["enter","leave"],["update:modelValue"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"modelValue"),{class:r}=H(),i=t.computed((()=>["q-overlay",`q-overlay--${Za(m.placement)}`,r.value,{"q-overlay--independent":s.value,"q-overlay--inverted":"inverted"===n.appearance,"q-overlay--center":n.centerVertically},n.class])),s=t.computed((()=>void 0===n.anchor)),u=t.computed((()=>l.value&&!n.nonModal)),d=t.computed((()=>(l.value||m.animating)&&n.scrollLock)),c=t.computed((()=>!n.inline&&(l.value||m.animating))),p=
|
|
408
|
+
return t}function Ja(e){return e<0}function en(e){return"string"==typeof e?document.querySelector(e):e}const tn=["id"],an=["role"],nn=B(t.defineComponent({inheritAttrs:!1,__name:"QOverlay",props:t.mergeModels({id:{},class:{},anchor:{},appearance:{default:"regular"},arrow:{type:Boolean},backdropBlur:{type:Boolean},backdropClass:{},offset:{default:8},crossOffset:{default:0},placement:{default:"right"},transition:{default:"fade"},width:{default:"auto"},centerVertically:{type:Boolean},attach:{default:"body"},inline:{type:Boolean},delay:{default:500},nonModal:{type:Boolean},scrollLock:{type:Boolean},persistent:{type:Boolean},spy:{type:Boolean},trigger:{default:"click"},focusTrap:{type:Boolean},returnFocusOnDeactivate:{type:Boolean,default:!0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["enter","leave"],["update:modelValue"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"modelValue"),{class:r}=H(),i=t.computed((()=>["q-overlay",`q-overlay--${Za(m.placement)}`,r.value,{"q-overlay--independent":s.value,"q-overlay--inverted":"inverted"===n.appearance,"q-overlay--center":n.centerVertically},n.class])),s=t.computed((()=>void 0===n.anchor)),u=t.computed((()=>l.value&&!n.nonModal)),d=t.computed((()=>(l.value||m.animating)&&n.scrollLock)),c=t.computed((()=>!n.inline&&(l.value||m.animating))),p=()=>b.value?b.value??void 0:"#"+n.id,m=t.reactive({animating:!1,top:0,left:0,width:0,placement:n.placement}),v=t.reactive({top:void 0,left:void 0,hidden:!0})
|
|
409
409
|
t.watch(l,(function(){m.animating=!0}))
|
|
410
410
|
const f=t.computed((()=>{if(s.value)return
|
|
411
411
|
const e=P(),t="anchor"===n.width?null==e?void 0:e.getBoundingClientRect().width:void 0
|
|
@@ -426,7 +426,7 @@ case"hover":e.addEventListener("mouseenter",C),e.addEventListener("mouseleave",E
|
|
|
426
426
|
s.value||(window.addEventListener("resize",k),n.scrollLock||window.addEventListener("scroll",k),n.spy?z():k()),(s.value||"click"===n.trigger)&&(null==(e=g.value)||e.focus())}return t.watch((()=>n.placement),(()=>t.nextTick(k))),t.onMounted((()=>{t.nextTick(L)})),t.onBeforeUnmount((function(){const e=P()
|
|
427
427
|
if(e)switch(null==_||_.disconnect(),n.trigger){case"click":e.removeEventListener("click",B)
|
|
428
428
|
break
|
|
429
|
-
case"hover":e.removeEventListener("mouseenter",C),e.removeEventListener("mouseleave",E),e.removeEventListener("focusin",B),e.removeEventListener("focusout",E)}})),(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:V,onAfterEnter:$,onLeave:D,onAfterLeave:N},{default:t.withCtx((()=>[l.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:n.id,ref_key:"overlayContainerRef",ref:b,tabindex:"-1",class:t.normalizeClass(i.value),style:t.normalizeStyle(f.value)},[t.createVNode(t.unref(ta),{onDismiss:R,onInteractOutside:A,onPointerDownOutside:q},{default:t.withCtx((()=>[b.value?(t.openBlock(),t.createBlock(t.unref(Wa),{key:0,active:!n.nonModal&&l.value&&n.focusTrap,"fallback-focus":p
|
|
429
|
+
case"hover":e.removeEventListener("mouseenter",C),e.removeEventListener("mouseleave",E),e.removeEventListener("focusin",B),e.removeEventListener("focusout",E)}})),(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:V,onAfterEnter:$,onLeave:D,onAfterLeave:N},{default:t.withCtx((()=>[l.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:n.id,ref_key:"overlayContainerRef",ref:b,tabindex:"-1",class:t.normalizeClass(i.value),style:t.normalizeStyle(f.value)},[t.createVNode(t.unref(ta),{onDismiss:R,onInteractOutside:A,onPointerDownOutside:q},{default:t.withCtx((()=>[b.value?(t.openBlock(),t.createBlock(t.unref(Wa),{key:0,active:!n.nonModal&&l.value&&n.focusTrap,"fallback-focus":p,"initial-focus":p,"return-focus-on-deactivate":n.returnFocusOnDeactivate},{default:t.withCtx((()=>[t.createElementVNode("div",t.mergeProps({ref_key:"overlayRef",ref:g,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:y,role:"presentation",class:"q-overlay__arrow",style:t.normalizeStyle(h.value)},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")],16,an)])),_:3},8,["active","return-focus-on-deactivate"])):t.createCommentVNode("",!0)])),_:3})],14,tn)):t.createCommentVNode("",!0)])),_:3},8,["name"])],8,["disabled","to"])),d.value?(t.openBlock(),t.createBlock(t.unref(ua),{key:0})):t.createCommentVNode("",!0)],64))}})),on=["data-key"],ln={key:0,class:"q-select__loader"},rn={key:2,class:"q-select__loader"},sn=B(t.defineComponent({inheritAttrs:!1,__name:"QCombobox",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},clearable:{type:Boolean},texts:{default:()=>Rt},itemValue:{default:"key"},itemLabel:{default:"label"},items:{},groups:{default:()=>[]},selectionMode:{default:"automatic"},filterMode:{default:"builtin"},inline:{type:Boolean},loading:{type:Boolean},emptyValue:{},icons:{default:()=>Lt}},{modelValue:{},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),v=t.ref(null)
|
|
430
430
|
t.onMounted(x)
|
|
431
431
|
const f=t.computed((()=>o.clearable&&!o.readonly&&!o.disabled)),h=t.computed((()=>{var e
|
|
432
432
|
return"manual"!==o.filterMode&&w.value?(null==(e=o.items)?void 0:e.filter((e=>e[o.itemLabel].toLowerCase().startsWith(s.value.toLowerCase()))))??[]:o.items??[]})),y=t.computed((()=>{var e
|
|
@@ -1489,34 +1489,34 @@ function u(){n.noToggle||(l.value=!l.value,o("click"))}return(e,a)=>(t.openBlock
|
|
|
1489
1489
|
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-property-list-panel",a.class])},[a.field?t.renderSlot(e.$slots,"default",{key:0},(()=>[t.createElementVNode("div",Dc,t.toDisplayString(a.field.label),1),t.createElementVNode("div",Nc,t.toDisplayString(a.field.description),1)])):(t.openBlock(),t.createElementBlock("div",Tc,t.toDisplayString(a.texts.emptyMessage),1))],10,$c))}}),qc=B(_c),Ac=B(Cc),Rc=B(Vc),Lc=B(Pc),zc=["id","checked","name","value","disabled"],Oc=t.defineComponent({inheritAttrs:!1,__name:"QRadioButton",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},value:{},name:{},labelPlacement:{default:"end"},color:{default:"primary"},size:{default:"regular"},disabled:{type:Boolean},readonly:{type:Boolean},invalid:{type:Boolean}},setup(e){const a=e,n=Me(t.toRef(a,"id")),o=t.useTemplateRef("inputEl"),l=f(a.value)
|
|
1490
1490
|
if(!l)throw new Error("QRadioButton must be used inside a QRadioGroup")
|
|
1491
1491
|
const r=t.computed((()=>"start"===a.labelPlacement?"append":"prepend")),i=t.computed((()=>["q-radio-button","regular"!==a.size?`q-radio-button--${a.size}`:void 0,"primary"!==a.color?`q-radio-button--${a.color}`:void 0,{"q-radio-button--readonly":a.readonly,"q-radio-button--disabled":a.disabled,"q-radio-button--invalid":a.invalid},a.class]))
|
|
1492
|
-
function s(){var e
|
|
1493
|
-
null==(e=o.value)||e.focus()}return(e,o)=>(t.openBlock(),t.createBlock(t.unref(ht),{for:t.unref(n),class:t.normalizeClass(i.value),label:a.label,tabindex:
|
|
1492
|
+
function s(e){(a.readonly||a.disabled)&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)&&e.preventDefault()}function u(e){(a.readonly||a.disabled)&&e.preventDefault()}function d(e){a.readonly||a.disabled?e.preventDefault():null==l||l.toggle()}function c(){var e
|
|
1493
|
+
null==(e=o.value)||e.focus()}return(e,o)=>(t.openBlock(),t.createBlock(t.unref(ht),{for:t.unref(n),class:t.normalizeClass(i.value),label:a.label,tabindex:a.disabled?void 0:-1,onMousedown:t.withModifiers(c,["prevent"]),onClick:d},t.createSlots({[r.value]:t.withCtx((()=>[t.createElementVNode("input",t.mergeProps({id:t.unref(n),ref:"inputEl",checked:t.unref(l).isActive.value,type:"radio",class:"q-radio-button__input",name:a.name,value:e.value,disabled:a.disabled},e.$attrs,{onChange:o[0]||(o[0]=(...e)=>t.unref(l).toggle&&t.unref(l).toggle(...e)),onClick:t.withModifiers(u,["stop"]),onKeydown:s}),null,16,zc),"end"===a.labelPlacement?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0)])),_:2},["start"===a.labelPlacement?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),key:"0"}:void 0]),1032,["for","class","label","tabindex"]))}}),Ic=["id"],Fc={key:1,class:"q-field__extras"},Yc=t.defineComponent({inheritAttrs:!1,__name:"QRadioGroup",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},name:{},orientation:{default:"vertical"},size:{default:"regular"},columns:{default:1},disabled:{type:Boolean},readonly:{type:Boolean},invalid:{type:Boolean},hasFocusOutline:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),{active:o}=v({active:n,required:!0})
|
|
1494
1494
|
t.watch(o,(e=>{n.value=e}))
|
|
1495
|
-
const l=Me(t.toRef(a,"id")),r=Me(t.toRef(a,"name")),i=t.computed((()=>["q-radio-group",{"q-radio-group--horizontal":"horizontal"===a.orientation},a.class])),s=t.computed((()=>a.columns>1?{"--q-radio-group-columns":a.columns}:{undefined:void 0}))
|
|
1496
|
-
return c({QRadioButton:{size:t.toRef(a,"size"),disabled:t.toRef(a,"disabled"),readonly:t.toRef(a,"readonly"),invalid:t.toRef(a,"invalid"),name:r}}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.value)},[a.label?(t.openBlock(),t.createBlock(t.unref(ht),{key:0,for:t.unref(l),label:a.label,required:a.required},null,8,["for","label","required"])):t.createCommentVNode("",!0),t.createElementVNode("div",t.mergeProps({id:t.unref(l),class:["q-radio-group__group",{"q-radio-group--grid":a.columns>1}],role:"radiogroup",style:s.value},e.$attrs),[t.renderSlot(e.$slots,"default")],16,Ic),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",Fc,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)],2))}}),Qc=B(Oc),Hc=B(Yc),Uc={...Mt,placeholder:"Choose...",showOptions:"Show options"},jc={...b,...Vt},Wc={key:0,ref:"badgesContainer",class:"q-select__badge-container"},Gc={key:1,class:"q-select__value"},Kc={key:1,class:"q-select__placeholder"},Xc=["id","tabindex","aria-keyshortcuts"],Zc=["data-key"],Jc={key:0,class:"q-select__loader"},ep=B(t.defineComponent({inheritAttrs:!1,__name:"QSelect",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},items:{},groups:{default:()=>[]},clearable:{type:Boolean},inline:{type:Boolean},multiple:{type:Boolean},badges:{type:Boolean},loading:{type:Boolean},emptyValue:{},itemValue:{default:"key"},itemLabel:{default:"label"},icons:{default:()=>jc},texts:{default:()=>Uc}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["before-show","before-hide","show","hide"],["update:modelValue"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"modelValue"),r=Me(t.toRef(n,"id")),{active:i}=v({active:l,required:t.toRef(n,"required"),multiple:t.toRef(n,"multiple")}),s=t.ref(!1),u=t.ref(0),d=t.useTemplateRef("trigger"),c=t.useTemplateRef("
|
|
1497
|
-
t.onMounted(
|
|
1498
|
-
const
|
|
1499
|
-
if(n.multiple)return(null==(e=l.value)?void 0:e.map((e=>
|
|
1500
|
-
const t=typeof l.value<"u"?
|
|
1501
|
-
return t?[t]:[]})),
|
|
1495
|
+
const l=Me(t.toRef(a,"id")),r=Me(t.toRef(a,"name")),i=t.computed((()=>["q-radio-group",{"q-radio-group--horizontal":"horizontal"===a.orientation,"q-radio-group--focus-style":a.hasFocusOutline},a.class])),s=t.computed((()=>a.columns>1?{"--q-radio-group-columns":a.columns}:{undefined:void 0}))
|
|
1496
|
+
return c({QRadioButton:{size:t.toRef(a,"size"),disabled:t.toRef(a,"disabled"),readonly:t.toRef(a,"readonly"),invalid:t.toRef(a,"invalid"),name:r}}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.value)},[a.label?(t.openBlock(),t.createBlock(t.unref(ht),{key:0,for:t.unref(l),label:a.label,required:a.required},null,8,["for","label","required"])):t.createCommentVNode("",!0),t.createElementVNode("div",t.mergeProps({id:t.unref(l),class:["q-radio-group__group",{"q-radio-group--grid":a.columns>1}],role:"radiogroup",style:s.value},e.$attrs),[t.renderSlot(e.$slots,"default")],16,Ic),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",Fc,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)],2))}}),Qc=B(Oc),Hc=B(Yc),Uc={...Mt,placeholder:"Choose...",showOptions:"Show options"},jc={...b,...Vt},Wc={key:0,ref:"badgesContainer",class:"q-select__badge-container"},Gc={key:1,class:"q-select__value"},Kc={key:1,class:"q-select__placeholder"},Xc=["id","tabindex","aria-expanded","aria-keyshortcuts"],Zc=["data-key"],Jc={key:0,class:"q-select__loader"},ep=B(t.defineComponent({inheritAttrs:!1,__name:"QSelect",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},items:{},groups:{default:()=>[]},clearable:{type:Boolean},inline:{type:Boolean},multiple:{type:Boolean},badges:{type:Boolean},loading:{type:Boolean},emptyValue:{},itemValue:{default:"key"},itemLabel:{default:"label"},icons:{default:()=>jc},texts:{default:()=>Uc}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["before-show","before-hide","show","hide"],["update:modelValue"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"modelValue"),r=Me(t.toRef(n,"id")),{active:i}=v({active:l,required:t.toRef(n,"required"),multiple:t.toRef(n,"multiple")}),s=t.ref(!1),u=t.ref(0),d=t.useTemplateRef("trigger"),c=t.useTemplateRef("input"),p=t.useTemplateRef("list"),m=t.useTemplateRef("content"),f=t.useTemplateRef("badgesContainer"),h=t.useTemplateRef("allBadges")
|
|
1497
|
+
t.onMounted(A)
|
|
1498
|
+
const y=t.computed((()=>0===g.value.length)),g=t.computed((()=>{var e
|
|
1499
|
+
if(n.multiple)return(null==(e=l.value)?void 0:e.map((e=>_(e))))??[]
|
|
1500
|
+
const t=typeof l.value<"u"?_(l.value):void 0
|
|
1501
|
+
return t?[t]:[]})),b=t.computed((()=>{var e
|
|
1502
1502
|
const t=new Map
|
|
1503
|
-
return null==(e=n.items)||e.forEach(((e,a)=>{t.set(e.key,a)})),t})),
|
|
1504
|
-
return null==(e=
|
|
1505
|
-
function
|
|
1506
|
-
return null==(t=n.items)?void 0:t.find((t=>t[n.itemValue]===e))}function
|
|
1507
|
-
n.loading?null==(e=
|
|
1508
|
-
null==(
|
|
1509
|
-
null==(e=
|
|
1510
|
-
if(await t.nextTick(),await t.nextTick(),!n.multiple||!n.badges||!
|
|
1503
|
+
return null==(e=n.items)||e.forEach(((e,a)=>{t.set(e.key,a)})),t})),k=t.computed((()=>{var e
|
|
1504
|
+
return null==(e=g.value)?void 0:e.map((e=>e[n.itemLabel])).join(", ")})),w=t.computed((()=>n.clearable&&!n.readonly&&!n.disabled&&!n.loading&&!y.value))
|
|
1505
|
+
function _(e){var t
|
|
1506
|
+
return null==(t=n.items)?void 0:t.find((t=>t[n.itemValue]===e))}function x(e){Array.isArray(e)?(l.value=e.sort(((e,t)=>b.value.get(e)-b.value.get(t))),A()):(l.value=e,M())}function B(){x(n.emptyValue),P()}function S(e){var t,a,n;(null==(t=m.value)||!t.contains(e.relatedTarget))&&(null==(n=null==(a=d.value)?void 0:a.fieldRef)||!n.contains(e.relatedTarget))&&M()}function E(){s.value||(o("before-show"),s.value=!0)}function M(){s.value&&(o("before-hide"),s.value=!1)}function V(){n.readonly||n.disabled||(s.value?M():E())}function $(e){!e.key||n.readonly||n.disabled||(["Enter"," ","ArrowDown","ArrowUp","Home","End","Delete"].includes(e.key)&&(e.preventDefault(),e.stopPropagation()),["Enter"," ","ArrowDown"].includes(e.key)&&E(),["Escape","Tab"].includes(e.key)&&(s.value?M():w.value&&"Escape"===e.key&&B()),w.value&&"Delete"===e.key&&B())}function D(e){1===e.key.length&&e.preventDefault(),$(e)}function N(){setTimeout((()=>{var e
|
|
1507
|
+
n.loading?null==(e=m.value)||e.focus():q(),o("show")}),0)}function T(){P(),o("hide")}function P(){var e
|
|
1508
|
+
null==(e=c.value)||e.focus()}function q(){var e
|
|
1509
|
+
null==(e=p.value)||e.$el.focus()}async function A(){var e
|
|
1510
|
+
if(await t.nextTick(),await t.nextTick(),!n.multiple||!n.badges||!f.value)return
|
|
1511
1511
|
let a=0,o=0
|
|
1512
|
-
const l=
|
|
1513
|
-
for(const e of
|
|
1512
|
+
const l=f.value.offsetWidth
|
|
1513
|
+
for(const e of h.value??[]){const t=e.$el.scrollWidth+4
|
|
1514
1514
|
if(!(a+t<=l))break
|
|
1515
|
-
a+=t,o++}u.value=((null==(e=
|
|
1516
|
-
return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(Et),{id:t.unref(r),ref:"trigger",label:n.label,required:n.required,
|
|
1517
|
-
return[null!=(e=
|
|
1518
|
-
return[null!=(e=
|
|
1519
|
-
return[null!=(e=
|
|
1515
|
+
a+=t,o++}u.value=((null==(e=h.value)?void 0:e.length)??0)-o}return t.watch((()=>n.loading),(e=>{!e&&s.value&&t.nextTick(q)})),t.watch((()=>n.badges),A),t.watch((()=>n.clearable),A),t.watch(i,x),(e,a)=>{var o
|
|
1516
|
+
return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(Et),{id:t.unref(r),ref:"trigger",label:n.label,required:n.required,class:t.normalizeClass(["q-select",{"q-select--readonly":n.readonly,"q-select--disabled":n.disabled},n.class]),readonly:n.readonly,disabled:n.disabled,"data-loading":n.loading,size:n.size,invalid:n.invalid,onClick:V,onKeydown:$},t.createSlots({append:t.withCtx((()=>[t.renderSlot(e.$slots,"append"),w.value?(t.openBlock(),t.createBlock(t.unref($t),{key:0,icons:n.icons,texts:n.texts,onClick:B},null,8,["icons","texts"])):t.createCommentVNode("",!0),n.readonly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(X),{key:1,class:"q-select__chevron","aria-label":n.texts.showOptions,variant:"ghost",color:"neutral",borderless:"",tabindex:"-1",disabled:n.disabled,onClick:V},{default:t.withCtx((()=>[t.createVNode(t.unref(ge),{"model-value":s.value,icons:n.icons},null,8,["model-value","icons"])])),_:1},8,["aria-label","disabled"]))])),default:t.withCtx((()=>[y.value?(t.openBlock(),t.createElementBlock("span",Kc,[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(t.Fragment,{key:0},[n.badges?(t.openBlock(),t.createElementBlock("span",Wc,[n.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((e,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[a<l.value.length-u.value?(t.openBlock(),t.createBlock(t.unref(Oe),{key:0,pill:"",disabled:n.readonly||n.disabled,removable:!n.required||l.value.length>1,"onClick:remove":()=>function(e){n.multiple&&e<l.value.length&&(!n.required||l.value.length>1)?i.value=l.value.toSpliced(e,1):B()}(a)},{default:t.withCtx((()=>{var e,o
|
|
1517
|
+
return[null!=(e=g.value[a])&&e.icon?(t.openBlock(),t.createBlock(t.unref(ve),t.mergeProps({key:0,ref_for:!0},g.value[a].icon),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(null==(o=g.value[a])?void 0:o[n.itemLabel]),1)]})),_:2},1032,["disabled","removable","onClick:remove"])):t.createCommentVNode("",!0)],64)))),128)),u.value>0?(t.openBlock(),t.createBlock(t.unref(Oe),{key:0,pill:"",class:"q-select__badge-count",disabled:n.readonly||n.disabled},{default:t.withCtx((()=>[t.createTextVNode(" +"+t.toDisplayString(u.value),1)])),_:1},8,["disabled"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((e,a)=>(t.openBlock(),t.createBlock(t.unref(Oe),{key:a,ref_for:!0,ref:"allBadges",pill:"",disabled:"",class:"q-select__badge-hidden",removable:!n.required||l.value.length>1},{default:t.withCtx((()=>{var e,o
|
|
1518
|
+
return[null!=(e=g.value[a])&&e.icon?(t.openBlock(),t.createBlock(t.unref(ve),t.mergeProps({key:0,ref_for:!0},g.value[a].icon),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(null==(o=g.value[a])?void 0:o[n.itemLabel]),1)]})),_:2},1032,["removable"])))),128))],64)):(t.openBlock(),t.createBlock(t.unref(Oe),{key:1,pill:"",disabled:n.readonly||n.disabled,removable:!n.required,"onClick:remove":B},{default:t.withCtx((()=>{var e,a
|
|
1519
|
+
return[null!=(e=g.value[0])&&e.icon?(t.openBlock(),t.createBlock(t.unref(ve),t.normalizeProps(t.mergeProps({key:0},g.value[0].icon)),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(null==(a=g.value[0])?void 0:a[n.itemLabel]),1)]})),_:1},8,["disabled","removable"]))],512)):(t.openBlock(),t.createElementBlock("span",Gc,t.toDisplayString(k.value),1))],64)),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(r)}_input`,ref:"input"},e.$attrs,{"onUpdate:modelValue":a[0]||(a[0]=e=>k.value=e),class:"q-select__input",inputmode:"none",type:"text",autocomplete:"off",tabindex:n.disabled?-1:0,role:"combobox","aria-expanded":s.value,"aria-haspopup":"listbox","aria-keyshortcuts":w.value?"Delete":void 0,onKeydown:D}),null,16,Xc),[[t.vModelText,k.value]])])),_:2},[1===g.value.length&&g.value[0].icon&&!n.badges||e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend"),1===g.value.length&&g.value[0].icon&&!n.badges?(t.openBlock(),t.createBlock(t.unref(ve),t.normalizeProps(t.mergeProps({key:0},g.value[0].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]),1032,["id","label","required","class","readonly","disabled","data-loading","size","invalid"]),t.createVNode(t.unref(nn),{modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=e=>s.value=e),spy:"",trigger:"manual",placement:"bottom-start",width:"anchor","scroll-lock":"",inline:n.inline,anchor:null==(o=t.unref(d))?void 0:o.fieldRef,offset:2,onEnter:N,onLeave:T},{default:t.withCtx((()=>[t.createElementVNode("div",{ref:"content","data-testid":"combobox-dropdown","data-key":t.unref(r),class:"q-select__body",tabindex:"-1",onFocusout:S,onKeydown:t.withModifiers($,["stop"])},[t.renderSlot(e.$slots,"body.prepend"),n.loading?(t.openBlock(),t.createElementBlock("div",Jc,[t.createVNode(t.unref(C),{size:24})])):(t.openBlock(),t.createBlock(t.unref(Kt),{key:1,ref:"list",class:"q-select__items",selectable:"",required:n.required,multiple:n.multiple,"model-value":l.value,items:n.items,groups:e.groups,"item-label":n.itemLabel,"item-value":n.itemValue,"onUpdate:modelValue":x},{item:t.withCtx((({item:a})=>[t.renderSlot(e.$slots,"item",{item:a})])),_:3},8,["required","multiple","model-value","items","groups","item-label","item-value"])),t.renderSlot(e.$slots,"body.append")],40,Zc)])),_:3},8,["modelValue","inline","anchor"])],64)}}})),tp=B(t.defineComponent({__name:"QToggle",props:t.mergeModels({id:{},class:{},label:{},variant:{},color:{},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},size:{},iconPos:{},pill:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=t.computed((()=>["q-toggle",{"q-toggle--active":n.value}]))
|
|
1520
1520
|
function l(){n.value=!n.value}return(e,r)=>(t.openBlock(),t.createBlock(t.unref(X),t.mergeProps({class:o.value},a,{"aria-pressed":n.value,onClick:l}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class","aria-pressed"]))}})),ap={class:"q-sidebar__items"},np=t.defineComponent({__name:"QSidebarAnchor",props:t.mergeModels({panels:{},anchorWidth:{},showLabels:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["click:item"],["update:modelValue"]),setup(e,{emit:a}){const n=e,o=a,l=t.useModel(e,"modelValue"),r=t.ref({height:"0",transform:"translateY(0)",opacity:"0",transition:"transform 0.3s ease, height 0.3s ease, opacity 0.2s ease"}),i=t.ref([])
|
|
1521
1521
|
function s(){var e
|
|
1522
1522
|
if(!l.value)return void(r.value={...r.value,opacity:"0",height:"0"})
|
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.48
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1205,7 +1205,7 @@ $q-carousel-height-md: 300px;
|
|
|
1205
1205
|
width: fit-content;
|
|
1206
1206
|
color: var(--q-theme-neutral-dark);
|
|
1207
1207
|
cursor: pointer;
|
|
1208
|
-
|
|
1208
|
+
&--focus-style:focus-within {
|
|
1209
1209
|
outline: $outline;
|
|
1210
1210
|
}
|
|
1211
1211
|
label {
|
|
@@ -2639,9 +2639,6 @@ $base-border: 1px solid rgb(var(--q-theme-neutral-light-rgb) / 50%);
|
|
|
2639
2639
|
align-items: center;
|
|
2640
2640
|
gap: 0.5em;
|
|
2641
2641
|
cursor: pointer;
|
|
2642
|
-
&:focus-within {
|
|
2643
|
-
outline: $outline;
|
|
2644
|
-
}
|
|
2645
2642
|
label {
|
|
2646
2643
|
line-height: 1;
|
|
2647
2644
|
cursor: pointer;
|
|
@@ -2715,8 +2712,22 @@ $base-border: 1px solid rgb(var(--q-theme-neutral-light-rgb) / 50%);
|
|
|
2715
2712
|
}
|
|
2716
2713
|
}
|
|
2717
2714
|
&--readonly {
|
|
2718
|
-
#{$this}__input
|
|
2715
|
+
#{$this}__input,
|
|
2716
|
+
#{$this}__input:checked:not(:disabled) {
|
|
2719
2717
|
background-color: rgb(var(--q-theme-neutral-light-rgb) / 25%);
|
|
2718
|
+
border-color: inherit;
|
|
2719
|
+
cursor: unset;
|
|
2720
|
+
&::before {
|
|
2721
|
+
background-color: var(--q-theme-neutral);
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
&:hover {
|
|
2725
|
+
&#{$this} {
|
|
2726
|
+
#{$this}__input,
|
|
2727
|
+
#{$this}__input:not(:disabled) {
|
|
2728
|
+
border-color: inherit;
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2720
2731
|
}
|
|
2721
2732
|
cursor: default;
|
|
2722
2733
|
.q-radio-button__input:disabled,
|
|
@@ -2743,6 +2754,9 @@ $base-border: 1px solid rgb(var(--q-theme-neutral-light-rgb) / 50%);
|
|
|
2743
2754
|
padding: 0.625rem;
|
|
2744
2755
|
}
|
|
2745
2756
|
}
|
|
2757
|
+
.q-radio-group--focus-style .q-radio-button:focus-within {
|
|
2758
|
+
outline: $outline;
|
|
2759
|
+
}
|
|
2746
2760
|
.q-select {
|
|
2747
2761
|
$this: &;
|
|
2748
2762
|
&:not(#{$this}--readonly):not(#{$this}--disabled) {
|
|
@@ -26,6 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
26
26
|
color: string;
|
|
27
27
|
icons: typeof DEFAULT_ICONS;
|
|
28
28
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
29
|
+
hasFocusOutline: boolean;
|
|
29
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
31
|
inputEl: HTMLInputElement;
|
|
31
32
|
buttonEl: HTMLButtonElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AA8DA;
|
|
1
|
+
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AA8DA;AA4IC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,KAAK,WAAW,GAAG,cAAc,CAAC;AAoEnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAuHT,OAAO,IAA6B;;wBAdtB,GAAG;wBACF,GAAG;;;;;;;EAkB/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, mergeModels as _, useModel as g, toRef as w, useTemplateRef as f, computed as $, watch as M, createElementBlock as V, openBlock as r, withModifiers as a, normalizeClass as P, createBlock as s, createCommentVNode as n, createElementVNode as m, unref as l, createSlots as p, withCtx as h, renderSlot as k, mergeProps as y, withKeys as v } from "vue";
|
|
2
2
|
import { DEFAULT_ICONS as R } from "./constants.js";
|
|
3
3
|
import { QIcon as z } from "../QIcon/index.js";
|
|
4
4
|
import { QCheckboxLabel as q } from "./index.js";
|
|
5
|
-
import { useId as
|
|
6
|
-
const
|
|
5
|
+
import { useId as F } from "../../composables/uid.js";
|
|
6
|
+
const I = ["checked", "disabled", "required", "aria-readonly"], K = ["id", "aria-checked", "disabled", "onKeydown"], L = /* @__PURE__ */ E({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "QCheckbox",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ _({
|
|
10
10
|
id: {},
|
|
11
11
|
class: {},
|
|
12
12
|
label: {},
|
|
@@ -18,43 +18,45 @@ const K = ["checked", "disabled", "required", "aria-readonly"], N = ["id", "aria
|
|
|
18
18
|
disabled: { type: Boolean },
|
|
19
19
|
readonly: { type: Boolean },
|
|
20
20
|
indeterminate: { type: Boolean },
|
|
21
|
-
icons: { default: () => R }
|
|
21
|
+
icons: { default: () => R },
|
|
22
|
+
hasFocusOutline: { type: Boolean, default: !0 }
|
|
22
23
|
}, {
|
|
23
24
|
modelValue: { type: Boolean },
|
|
24
25
|
modelModifiers: {}
|
|
25
26
|
}),
|
|
26
27
|
emits: ["update:modelValue"],
|
|
27
28
|
setup(c) {
|
|
28
|
-
const e = c,
|
|
29
|
+
const e = c, o = g(c, "modelValue"), i = F(w(e, "id")), u = f("inputEl"), x = f("buttonEl"), C = $(() => [
|
|
29
30
|
"q-checkbox",
|
|
30
31
|
`q-checkbox--${e.size}`,
|
|
31
32
|
`q-checkbox--${e.color}`,
|
|
32
33
|
{
|
|
33
34
|
"q-checkbox--readonly": e.readonly,
|
|
34
35
|
"q-checkbox--disabled": e.disabled,
|
|
35
|
-
"q-checkbox--checked":
|
|
36
|
-
"q-checkbox--indeterminate": e.indeterminate
|
|
36
|
+
"q-checkbox--checked": o.value,
|
|
37
|
+
"q-checkbox--indeterminate": e.indeterminate,
|
|
38
|
+
"q-checkbox--focus-style": e.hasFocusOutline
|
|
37
39
|
},
|
|
38
40
|
e.class
|
|
39
41
|
]);
|
|
40
42
|
function d() {
|
|
41
|
-
!e.disabled && !e.readonly && (
|
|
43
|
+
!e.disabled && !e.readonly && (o.value = !o.value);
|
|
42
44
|
}
|
|
43
|
-
function
|
|
44
|
-
var
|
|
45
|
-
(
|
|
45
|
+
function B() {
|
|
46
|
+
var t;
|
|
47
|
+
(t = x.value) == null || t.focus();
|
|
46
48
|
}
|
|
47
|
-
return M(
|
|
48
|
-
u.value && (u.value.checked = !!
|
|
49
|
-
}), (
|
|
49
|
+
return M(o, (t) => {
|
|
50
|
+
u.value && (u.value.checked = !!t);
|
|
51
|
+
}), (t, b) => (r(), V(
|
|
50
52
|
"div",
|
|
51
53
|
{
|
|
52
54
|
class: P(C.value),
|
|
53
55
|
onClick: a(d, ["prevent"]),
|
|
54
|
-
onMousedown: a(
|
|
56
|
+
onMousedown: a(B, ["prevent"])
|
|
55
57
|
},
|
|
56
58
|
[
|
|
57
|
-
e.label && e.labelPlacement !== "right" ? (
|
|
59
|
+
e.label && e.labelPlacement !== "right" ? (r(), s(l(q), {
|
|
58
60
|
key: 0,
|
|
59
61
|
for: l(i),
|
|
60
62
|
label: e.label,
|
|
@@ -63,37 +65,37 @@ const K = ["checked", "disabled", "required", "aria-readonly"], N = ["id", "aria
|
|
|
63
65
|
_: 2
|
|
64
66
|
/* DYNAMIC */
|
|
65
67
|
}, [
|
|
66
|
-
|
|
68
|
+
t.$slots.extras ? {
|
|
67
69
|
name: "extras",
|
|
68
70
|
fn: h(() => [
|
|
69
|
-
k(
|
|
71
|
+
k(t.$slots, "extras")
|
|
70
72
|
]),
|
|
71
73
|
key: "0"
|
|
72
74
|
} : void 0
|
|
73
|
-
]), 1032, ["for", "label", "required"])) :
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
]), 1032, ["for", "label", "required"])) : n("v-if", !0),
|
|
76
|
+
n(" Hidden native input for form submission "),
|
|
77
|
+
m("input", {
|
|
76
78
|
ref: "inputEl",
|
|
77
79
|
type: "checkbox",
|
|
78
80
|
class: "q-checkbox__native-input",
|
|
79
|
-
checked:
|
|
80
|
-
disabled: e.disabled
|
|
81
|
+
checked: o.value,
|
|
82
|
+
disabled: e.disabled,
|
|
81
83
|
required: e.required,
|
|
82
84
|
"aria-readonly": e.readonly,
|
|
83
85
|
tabindex: "-1",
|
|
84
86
|
"aria-hidden": "true"
|
|
85
|
-
}, null, 8,
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
}, null, 8, I),
|
|
88
|
+
n(" Custom interactive button "),
|
|
89
|
+
m("button", y({
|
|
88
90
|
id: l(i),
|
|
89
91
|
ref: "buttonEl",
|
|
90
92
|
role: "checkbox",
|
|
91
93
|
type: "button",
|
|
92
94
|
class: "q-checkbox__input",
|
|
93
95
|
"data-testid": "checkbox-button",
|
|
94
|
-
"aria-checked": e.indeterminate ? "mixed" :
|
|
95
|
-
disabled: e.disabled
|
|
96
|
-
},
|
|
96
|
+
"aria-checked": e.indeterminate ? "mixed" : o.value,
|
|
97
|
+
disabled: e.disabled
|
|
98
|
+
}, t.$attrs, {
|
|
97
99
|
onClick: a(d, ["stop", "prevent"]),
|
|
98
100
|
onKeydown: [
|
|
99
101
|
v(a(d, ["prevent"]), ["space"]),
|
|
@@ -101,15 +103,15 @@ const K = ["checked", "disabled", "required", "aria-readonly"], N = ["id", "aria
|
|
|
101
103
|
}, ["prevent"]), ["enter"]))
|
|
102
104
|
]
|
|
103
105
|
}), [
|
|
104
|
-
|
|
106
|
+
o.value || t.indeterminate ? (r(), s(
|
|
105
107
|
l(z),
|
|
106
|
-
y({ key: 0 },
|
|
108
|
+
y({ key: 0 }, o.value ? e.icons.checked : e.icons.indeterminate, { class: "q-checkbox__input-icon" }),
|
|
107
109
|
null,
|
|
108
110
|
16
|
|
109
111
|
/* FULL_PROPS */
|
|
110
|
-
)) :
|
|
111
|
-
], 16,
|
|
112
|
-
e.label && e.labelPlacement === "right" ? (
|
|
112
|
+
)) : n("v-if", !0)
|
|
113
|
+
], 16, K),
|
|
114
|
+
e.label && e.labelPlacement === "right" ? (r(), s(l(q), {
|
|
113
115
|
key: 1,
|
|
114
116
|
for: l(i),
|
|
115
117
|
label: e.label,
|
|
@@ -118,14 +120,14 @@ const K = ["checked", "disabled", "required", "aria-readonly"], N = ["id", "aria
|
|
|
118
120
|
_: 2
|
|
119
121
|
/* DYNAMIC */
|
|
120
122
|
}, [
|
|
121
|
-
|
|
123
|
+
t.$slots.extras ? {
|
|
122
124
|
name: "extras",
|
|
123
125
|
fn: h(() => [
|
|
124
|
-
k(
|
|
126
|
+
k(t.$slots, "extras")
|
|
125
127
|
]),
|
|
126
128
|
key: "0"
|
|
127
129
|
} : void 0
|
|
128
|
-
]), 1032, ["for", "label", "required"])) :
|
|
130
|
+
]), 1032, ["for", "label", "required"])) : n("v-if", !0)
|
|
129
131
|
],
|
|
130
132
|
34
|
|
131
133
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -133,5 +135,5 @@ const K = ["checked", "disabled", "required", "aria-readonly"], N = ["id", "aria
|
|
|
133
135
|
}
|
|
134
136
|
});
|
|
135
137
|
export {
|
|
136
|
-
|
|
138
|
+
L as default
|
|
137
139
|
};
|
|
@@ -13,6 +13,7 @@ declare const QCheckbox: {
|
|
|
13
13
|
readonly?: boolean;
|
|
14
14
|
indeterminate?: boolean;
|
|
15
15
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
16
|
+
hasFocusOutline?: boolean;
|
|
16
17
|
}> & Readonly<{
|
|
17
18
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
19
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -22,6 +23,7 @@ declare const QCheckbox: {
|
|
|
22
23
|
color: string;
|
|
23
24
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
24
25
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
26
|
+
hasFocusOutline: boolean;
|
|
25
27
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
26
28
|
inputEl: HTMLInputElement;
|
|
27
29
|
buttonEl: HTMLButtonElement;
|
|
@@ -46,6 +48,7 @@ declare const QCheckbox: {
|
|
|
46
48
|
readonly?: boolean;
|
|
47
49
|
indeterminate?: boolean;
|
|
48
50
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
51
|
+
hasFocusOutline?: boolean;
|
|
49
52
|
}> & Readonly<{
|
|
50
53
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
51
54
|
}>, {}, {}, {}, {}, {
|
|
@@ -53,6 +56,7 @@ declare const QCheckbox: {
|
|
|
53
56
|
color: string;
|
|
54
57
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
55
58
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
59
|
+
hasFocusOutline: boolean;
|
|
56
60
|
}>;
|
|
57
61
|
__isFragment?: never;
|
|
58
62
|
__isTeleport?: never;
|
|
@@ -71,6 +75,7 @@ declare const QCheckbox: {
|
|
|
71
75
|
readonly?: boolean;
|
|
72
76
|
indeterminate?: boolean;
|
|
73
77
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
78
|
+
hasFocusOutline?: boolean;
|
|
74
79
|
}> & Readonly<{
|
|
75
80
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
76
81
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -80,6 +85,7 @@ declare const QCheckbox: {
|
|
|
80
85
|
color: string;
|
|
81
86
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
82
87
|
labelPlacement: import('./types').QCheckboxLabelPlacement;
|
|
88
|
+
hasFocusOutline: boolean;
|
|
83
89
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
84
90
|
$slots: {
|
|
85
91
|
extras?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAC7C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;EAAmC,CAAA;AAGvD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAGpC,cAAc,SAAS,CAAA"}
|
|
@@ -46,5 +46,11 @@ export type QCheckboxProps = QCheckboxLabelProps & {
|
|
|
46
46
|
* @category Configuration
|
|
47
47
|
*/
|
|
48
48
|
icons?: typeof DEFAULT_ICONS;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates whether the control will have an outline when focused.
|
|
51
|
+
*
|
|
52
|
+
* @category Behavior
|
|
53
|
+
*/
|
|
54
|
+
hasFocusOutline?: boolean;
|
|
49
55
|
};
|
|
50
56
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAA;IAExC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAA;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAA;IAExC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAA;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA8DA;
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA8DA;AAuhBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA0clC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6KT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA+BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|