@quidgest/ui 0.16.70 → 0.16.71

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
@@ -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.70
4
+ * Quidgest UI v0.16.71
5
5
  * (c) 2026 Quidgest - Consultores de Gestão, S.A.
6
6
  * Released under the MIT License.
7
7
  */
@@ -174,8 +174,8 @@ const a=n.slides[e]
174
174
  l("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,lt)):t.createCommentVNode("",!0)],14,nt)))),128))],36)):(t.openBlock(),t.createElementBlock("div",ot,[t.renderSlot(e.$slots,"empty")])),e.slides[r.value]?(t.openBlock(),t.createElementBlock("div",rt,[null!=(i=e.slides[r.value])&&i.title?(t.openBlock(),t.createElementBlock("h2",it,t.toDisplayString(e.slides[r.value].title),1)):t.createCommentVNode("",!0),null!=(s=e.slides[r.value])&&s.subtitle?(t.openBlock(),t.createElementBlock("p",st,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",ut,[(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":$(a),"aria-current":a===r.value,onClick:()=>y(a)},null,14,dt)))),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:k},{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",ct,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",pt,t.toDisplayString(e.texts.nextText),1)])),_:1},8,["aria-label"])],64)):t.createCommentVNode("",!0)],64))],42,Je)}}})),vt={checked:{icon:"check"},indeterminate:{icon:"minus"}},ft=["checked","disabled","readonly","required","aria-readonly"],ht=["id","aria-checked","disabled","readonly","onKeydown"],yt=t.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{},labelPlacement:{default:"right"},color:{default:"primary"},size:{default:"regular"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},icons:{default:()=>vt},hasFocusOutline:{type:Boolean,default:!0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),l=Ne(t.toRef(a,"id")),o=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]))
175
175
  function s(){!a.disabled&&!a.readonly&&(n.value=!n.value)}function u(){var e
176
176
  null==(e=r.value)||e.focus()}return t.watch(n,(e=>{o.value&&(o.value.checked=!!e)})),(e,o)=>(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(Ct),{key:0,for:t.unref(l),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,readonly:a.readonly,required:a.required,"aria-readonly":a.readonly,tabindex:"-1","aria-hidden":"true"},null,8,ft),t.createElementVNode("button",t.mergeProps({id:t.unref(l),ref:"buttonEl",role:"checkbox",type:"button",class:"q-checkbox__input","data-testid":"checkbox-button","aria-checked":a.indeterminate?"mixed":n.value,disabled:a.disabled,readonly:a.readonly},e.$attrs,{onClick:t.withModifiers(s,["stop","prevent"]),onKeydown:[t.withKeys(t.withModifiers(s,["prevent"]),["space"]),o[0]||(o[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,ht),a.label&&"right"===a.labelPlacement?(t.openBlock(),t.createBlock(t.unref(Ct),{key:1,for:t.unref(l),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))}}),gt=["id"],kt=["for"],bt=x(t.defineComponent({__name:"QLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{}},setup(e){const a=e,n=t.computed((()=>["q-label",a.labelPosition?`q-label--${a.labelPosition}`:"",{"q-label--required":a.required},a.class]))
177
- return(e,l)=>(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,kt),t.renderSlot(e.$slots,"append")],10,gt))}})),wt={class:"q-checkbox__label-wrapper"},_t={key:0,class:"q-field__extras"},Bt=t.defineComponent({__name:"QCheckboxLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{}},setup(e){const a=e
178
- return(e,n)=>(t.openBlock(),t.createElementBlock("div",wt,[t.createVNode(t.unref(bt),{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",_t,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)]))}}),xt=x(yt),Ct=x(Bt),St={selectColor:"Select a color"},Vt=["id"],Mt={key:0,class:"q-field__prepend"},$t={key:1,class:"q-field__append"},Et={key:1,class:"q-field__extras"},Dt=x(t.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{default:"topleft"},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(e,{expose:a}){const n=e,l=t.useTemplateRef("field"),o=t.computed((()=>n.required&&!n.readonly&&!n.disabled)),r=t.computed((()=>["q-field",`q-field--${n.size}`,`q-field--label-${n.labelPosition}`,{"q-field--readonly":n.readonly,"q-field--disabled":n.disabled,"q-field--required":o.value,"q-field--invalid":n.invalid},n.class]))
177
+ return(e,l)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(n.value)},[t.renderSlot(e.$slots,"prepend"),a.label||e.$slots.default?(t.openBlock(),t.createElementBlock("label",{key:0,for:a.for},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]))],8,kt)):t.renderSlot(e.$slots,"default",{key:1}),t.renderSlot(e.$slots,"append")],10,gt))}})),wt={class:"q-checkbox__label-wrapper"},_t={key:0,class:"q-field__extras"},Bt=t.defineComponent({__name:"QCheckboxLabel",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{}},setup(e){const a=e
178
+ return(e,n)=>(t.openBlock(),t.createElementBlock("div",wt,[t.createVNode(t.unref(bt),{class:"q-checkbox__label",for:a.for,label:a.label,required:a.required},null,8,["for","label","required"]),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",_t,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)]))}}),xt=x(yt),Ct=x(Bt),St={selectColor:"Select a color"},Vt=["id"],Mt={key:0,class:"q-field__prepend"},$t={key:1,class:"q-field__append"},Et={key:1,class:"q-field__extras"},Dt=x(t.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{default:"topleft"},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(e,{expose:a}){const n=e,l=t.useTemplateRef("field"),o=t.computed((()=>n.required&&!n.readonly&&!n.disabled)),r=t.computed((()=>["q-field",`q-field--${n.size}`,`q-field--label-${n.labelPosition}`,{"q-field--readonly":n.readonly,"q-field--disabled":n.disabled,"q-field--required":o.value,"q-field--invalid":n.invalid},n.class]))
179
179
  return a({fieldRef:l}),(e,a)=>(t.openBlock(),t.createElementBlock("div",{id:n.id,class:t.normalizeClass(r.value)},[n.label?(t.openBlock(),t.createBlock(t.unref(bt),{key:0,class:"q-field__label",label:n.label,"label-position":n.labelPosition,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","label-position","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",Mt,[t.renderSlot(e.$slots,"prepend")])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.append?(t.openBlock(),t.createElementBlock("div",$t,[t.renderSlot(e.$slots,"append")])):t.createCommentVNode("",!0)],16)])),e.$slots.extras?(t.openBlock(),t.createElementBlock("div",Et,[t.renderSlot(e.$slots,"extras")])):t.createCommentVNode("",!0)],10,Vt))}})),Nt={clearValue:"Clear value"},Tt={clear:{icon:"close"}},Pt=x(t.defineComponent({__name:"QClearButton",props:{id:{},class:{},icons:{default:()=>Tt},texts:{default:()=>Nt}},emits:["click"],setup(e,{emit:a}){const n=e,l=a
180
180
  function o(e){l("click",e)}return(e,a)=>(t.openBlock(),t.createBlock(t.unref(X),{id:n.id,class:t.normalizeClass(["q-clear-btn",n.class]),"aria-label":n.texts.clearValue,variant:"ghost",color:"neutral",borderless:"",tabindex:"-1",onClick:o},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(n.icons.clear)),null,16)])),_:1},8,["id","class","aria-label"]))}})),qt=["id","type","maxlength","required","placeholder","readonly","disabled"],At=t.defineComponent({inheritAttrs:!1,__name:"QTextField",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{},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 l=e,o=n,r=t.useModel(e,"modelValue"),i=t.computed({get:()=>r.value,set:e=>{const t=l.maxLength
181
181
  r.value=t?null==e?void 0:e.slice(0,t):e}})
@@ -1365,7 +1365,7 @@ return t.forEach((t=>{const l=t.test instanceof RegExp?t.test.test(e):t.test(e)
1365
1365
  function d(){l.value=!l.value}function c(){r.value=!0}function p(){r.value=!1}return(e,s)=>{var m,v
1366
1366
  return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(zt),t.mergeProps({id:a.id,ref_key:"fieldRef",ref:o,modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=e=>n.value=e),class:a.class,type:i.value,placeholder:a.placeholder,disabled:a.disabled,readonly:a.readonly,required:a.required,label:a.label,size:a.size,invalid:a.invalid||!(null==(m=u.value)||!m.messages.length)},e.$attrs,{onFocusin:c,onFocusout:p}),t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),_:2},[e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend")])),key:"0"}:void 0,a.toggle?{name:"append",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"append"),t.createVNode(t.unref(X),{size:"small",borderless:"","data-testid":"q-password-toggle",disabled:a.disabled,onClick:d},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(l.value?a.icons.show:a.icons.hide)),null,16)])),_:1},8,["disabled"])])),key:"1"}:void 0,e.$slots.extras||a.rules&&!a.meter?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras",{},(()=>{var e
1367
1367
  return[null!=(e=u.value)&&e.messages.length?(t.openBlock(),t.createBlock(Md,{key:0,class:"q-password-field__inline-messages",messages:u.value.messages},null,8,["messages"])):t.createCommentVNode("",!0)]}))])),key:"2"}:void 0]),1040,["id","modelValue","class","type","placeholder","disabled","readonly","required","label","size","invalid"]),a.meter&&a.meterLevels&&u.value?(t.openBlock(),t.createBlock(Dd,{key:0,modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=e=>r.value=e),score:u.value.score,levels:a.meterLevels,messages:u.value.messages,anchor:null==(v=o.value)?void 0:v.$el},null,8,["modelValue","score","levels","messages","anchor"])):t.createCommentVNode("",!0)],64)}}})),Td={class:"q-popover__content"},Pd={key:0,class:"q-popover__header"},qd=["innerHTML"],Ad={key:1},Rd=x(t.defineComponent({inheritAttrs:!1,__name:"QPopover",props:t.mergeModels({id:{},class:{},anchor:{},text:{},title:{},headingLevel:{default:2},arrow:{type:Boolean,default:!0},placement:{default:"right"},attach:{default:"body"},inline:{type:Boolean},html:{type:Boolean,default:!0},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),l=t.computed((()=>a.headingLevel>=1&&a.headingLevel<=6?"h"+a.headingLevel:"div"))
1368
- return(e,o)=>(t.openBlock(),t.createBlock(t.unref(xa),{id:a.id,modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=e=>n.value=e),class:t.normalizeClass(["q-popover",a.class]),trigger:"click",anchor:a.anchor,arrow:a.arrow,attach:a.attach,inline:a.inline,disabled:a.disabled,placement:a.placement},{default:t.withCtx((()=>[t.createElementVNode("div",Td,[a.title||e.$slots.header?(t.openBlock(),t.createElementBlock("div",Pd,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"header.prepend"),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:"q-popover__title"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(a.title),1)])),_:1})),t.renderSlot(e.$slots,"header.append")],64))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},(()=>[a.html?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:a.text},null,8,qd)):(t.openBlock(),t.createElementBlock("span",Ad,t.toDisplayString(a.text),1))]))])])),_:3},8,["id","modelValue","class","anchor","arrow","attach","inline","disabled","placement"]))}})),zd={emptyMessage:"Select a field to view details."},Ld={open:{icon:"minus-box"},close:{icon:"plus-box"}},Od=["id"],Id={class:"q-property-list__table"},Fd=t.defineComponent({__name:"QPropertyList",props:{id:{},class:{},fields:{default:()=>[]},groups:{default:()=>[]},panelPosition:{default:"bottom"},block:{type:Boolean},noPanel:{type:Boolean},noToggle:{type:Boolean},readonly:{type:Boolean},icons:{default:()=>Ld},texts:{default:()=>zd}},emits:["field-change","select-field"],setup(e,{emit:a}){const n=e,l=a,o=t.ref(n.groups.map((e=>e.id))),r=t.ref(void 0),i=t.ref(null),s=t.computed((()=>n.groups.length?n.groups.filter((e=>n.fields.some((t=>t.group===e.id)))):[{id:"",title:""}])),u=t.computed((()=>["q-property-list",{"q-property-list--side-panel":"right"===n.panelPosition,"q-property-list--block":n.block},n.class]))
1368
+ return(e,o)=>(t.openBlock(),t.createBlock(t.unref(xa),{id:a.id,modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=e=>n.value=e),class:t.normalizeClass(["q-popover",a.class]),trigger:"click",anchor:a.anchor,arrow:a.arrow,attach:a.attach,inline:a.inline,disabled:a.disabled,placement:a.placement},{default:t.withCtx((()=>[t.createElementVNode("div",Td,[a.title||e.$slots.header?(t.openBlock(),t.createElementBlock("div",Pd,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"header.prepend"),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:"q-popover__title"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(a.title),1)])),_:1})),t.renderSlot(e.$slots,"header.append")],64))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},(()=>[a.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.html?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:a.text},null,8,qd)):(t.openBlock(),t.createElementBlock("span",Ad,t.toDisplayString(a.text),1))],64)):t.createCommentVNode("",!0)]))])])),_:3},8,["id","modelValue","class","anchor","arrow","attach","inline","disabled","placement"]))}})),zd={emptyMessage:"Select a field to view details."},Ld={open:{icon:"minus-box"},close:{icon:"plus-box"}},Od=["id"],Id={class:"q-property-list__table"},Fd=t.defineComponent({__name:"QPropertyList",props:{id:{},class:{},fields:{default:()=>[]},groups:{default:()=>[]},panelPosition:{default:"bottom"},block:{type:Boolean},noPanel:{type:Boolean},noToggle:{type:Boolean},readonly:{type:Boolean},icons:{default:()=>Ld},texts:{default:()=>zd}},emits:["field-change","select-field"],setup(e,{emit:a}){const n=e,l=a,o=t.ref(n.groups.map((e=>e.id))),r=t.ref(void 0),i=t.ref(null),s=t.computed((()=>n.groups.length?n.groups.filter((e=>n.fields.some((t=>t.group===e.id)))):[{id:"",title:""}])),u=t.computed((()=>["q-property-list",{"q-property-list--side-panel":"right"===n.panelPosition,"q-property-list--block":n.block},n.class]))
1369
1369
  function d(){var e
1370
1370
  null!=(e=i.value)&&e.contains(document.activeElement)||(r.value=void 0)}function c(e){return e?n.fields.filter((t=>t.group===e)):n.fields}function p(e){var t
1371
1371
  return[{"q-property-list__row--selected":(null==(t=r.value)?void 0:t.id)===e.id}]}function m(e){r.value=e,l("select-field",r.value.id)}return t.watch((()=>n.block),(async e=>{var a
@@ -1427,7 +1427,7 @@ function m(){l("resize:start")}function v(e){u.value=e,l("resize",e)}function f(
1427
1427
  const t=null==(e=i.value)?void 0:e.initialWidth
1428
1428
  u.value="number"==typeof t?t:void 0}),{immediate:!0,deep:!0}),(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(c.value),style:t.normalizeStyle({width:d.value})},[t.createVNode(Bc,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=e=>o.value=e),panels:n.panels,"anchor-width":n.anchorWidth,"show-labels":n.showLabels,"onClick:item":h},t.createSlots({_:2},[t.renderList(n.panels,(a=>({name:a.id,fn:t.withCtx((()=>[t.renderSlot(e.$slots,`anchor:${a.id}`,{item:a})]))})))]),1032,["modelValue","panels","anchor-width","show-labels"]),t.createVNode(t.Transition,{name:"left"===e.position?"slide-right":"slide-left",onAfterLeave:y},{default:t.withCtx((()=>[o.value&&i.value?(t.openBlock(),t.createBlock(Ec,{key:0,"show-grip":"",title:i.value.title,"initial-width":i.value.initialWidth,"min-width":i.value.minWidth,"max-width":i.value.maxWidth,resizable:i.value.resizable,"resize-position":p.value,"onResize:start":m,onResize:v,"onResize:end":f},t.createSlots({_:2},[e.$slots[`header.prepend:${o.value}`]?{name:"header.prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,`header.prepend:${o.value}`)])),key:"0"}:void 0,e.$slots[`header:${o.value}`]?{name:"header",fn:t.withCtx((()=>[t.renderSlot(e.$slots,`header:${o.value}`)])),key:"1"}:void 0,e.$slots[`header.append:${o.value}`]?{name:"header.append",fn:t.withCtx((()=>[t.renderSlot(e.$slots,`header.append:${o.value}`)])),key:"2"}:void 0,e.$slots[`content:${o.value}`]?{name:"content",fn:t.withCtx((()=>[t.renderSlot(e.$slots,`content:${o.value}`)])),key:"3"}:void 0,e.$slots[`footer:${o.value}`]?{name:"footer",fn:t.withCtx((()=>[t.renderSlot(e.$slots,`footer:${o.value}`)])),key:"4"}:void 0]),1032,["title","initial-width","min-width","max-width","resizable","resize-position"])):t.createCommentVNode("",!0)])),_:3},8,["name"])],6))}})),Nc=["id","aria-checked","disabled"],Tc={class:"q-switch__labels"},Pc={class:"q-switch__label q-switch__label--off","aria-hidden":"true"},qc={class:"q-switch__label q-switch__label--on","aria-hidden":"true"},Ac=x(t.defineComponent({inheritAttrs:!1,__name:"QSwitch",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},labelPosition:{},trueLabel:{default:"On"},falseLabel:{default:"Off"},showStateLabels:{type:Boolean},checkedColor:{},uncheckedColor:{},size:{default:"medium"},disabled:{type:Boolean},readonly:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),l=e=>{a.readonly&&(e.preventDefault(),e.stopImmediatePropagation(),e.target.checked=!!n.value)},o=Ne(t.toRef(a,"id")),{style:r}=W(t.toRef(a,"checkedColor")),{style:i}=W(t.toRef(a,"uncheckedColor")),s=t.computed((()=>["q-switch","medium"!==a.size?`q-switch--${a.size}`:void 0,{"q-switch--checked":n.value,"q-switch--disabled":a.disabled,"q-switch--readonly":a.readonly,"q-switch--with-labels":a.showStateLabels&&(a.trueLabel||a.falseLabel)},a.class])),u=t.computed((()=>{var e,t,a,n
1429
1429
  return{"--q-switch-checked-background":null==(e=r.value)?void 0:e.mainColor,"--q-switch-on-checked-background":null==(t=r.value)?void 0:t.onMainColor,"--q-switch-unchecked-background":null==(a=i.value)?void 0:a.mainColor,"--q-switch-on-unchecked-background":null==(n=i.value)?void 0:n.onMainColor}}))
1430
- return(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:"q-switch__container",onClick:r[1]||(r[1]=t.withModifiers((()=>{}),["stop"]))},[a.label?(t.openBlock(),t.createBlock(t.unref(bt),{key:0,for:t.unref(o),required:a.required},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(a.label),1)])),_:1},8,["for","required"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.value),style:t.normalizeStyle(u.value)},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(o),"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),class:"q-switch__input",type:"checkbox",role:"switch","aria-checked":n.value,disabled:a.disabled},e.$attrs,{onInput:l}),null,16,Nc),[[t.vModelCheckbox,n.value]]),t.createElementVNode("div",Tc,[t.createElementVNode("span",Pc,[a.showStateLabels?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.falseLabel),1)],64)):t.createCommentVNode("",!0)]),t.createElementVNode("span",qc,[a.showStateLabels?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.trueLabel),1)],64)):t.createCommentVNode("",!0)])])],6)]))}}))
1430
+ return(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:"q-switch__container",onClick:r[1]||(r[1]=t.withModifiers((()=>{}),["stop"]))},[a.label?(t.openBlock(),t.createBlock(t.unref(bt),{key:0,for:t.unref(o),label:a.label,required:a.required},null,8,["for","label","required"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.value),style:t.normalizeStyle(u.value)},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(o),"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),class:"q-switch__input",type:"checkbox",role:"switch","aria-checked":n.value,disabled:a.disabled},e.$attrs,{onInput:l}),null,16,Nc),[[t.vModelCheckbox,n.value]]),t.createElementVNode("div",Tc,[t.createElementVNode("span",Pc,[a.showStateLabels?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.falseLabel),1)],64)):t.createCommentVNode("",!0)]),t.createElementVNode("span",qc,[a.showStateLabels?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.trueLabel),1)],64)):t.createCommentVNode("",!0)])])],6)]))}}))
1431
1431
  const Rc=["id","required","placeholder","readonly","disabled","maxlength","rows","cols","resize","wrap"],zc=x(t.defineComponent({inheritAttrs:!1,__name:"QTextArea",props:t.mergeModels({id:{},class:{},label:{},required:{type:Boolean},for:{},labelPosition:{},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"),l=t.computed({get:()=>n.value,set:e=>{const t=a.maxLength
1432
1432
  n.value=t?null==e?void 0:e.slice(0,t):e}})
1433
1433
  t.watch(n,(e=>l.value=e),{immediate:!0})
package/dist/ui.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quidgest UI v0.16.70
2
+ * Quidgest UI v0.16.71
3
3
  * (c) 2026 Quidgest - Consultores de Gestão, S.A.
4
4
  * Released under the MIT License.
5
5
  */
@@ -2724,7 +2724,7 @@ $base-border: 1px solid rgb(var(--q-theme-neutral-light-rgb) / 50%);
2724
2724
  display: flex;
2725
2725
  width: fit-content;
2726
2726
  align-items: center;
2727
- gap: 0.5em;
2727
+ gap: calc($space-base * 1.5);
2728
2728
  cursor: pointer;
2729
2729
  label {
2730
2730
  line-height: 1;
@@ -1 +1 @@
1
- {"version":3,"file":"QCheckboxLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckboxLabel.vue"],"names":[],"mappings":"AAeA;AAsCA,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;wBAVtB,GAAG;;;;EAe9B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uUAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QCheckboxLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckboxLabel.vue"],"names":[],"mappings":"AAcA;AAqCA,iBAAS,cAAc;WA4CT,OAAO,IAA6B;;wBAVtB,GAAG;;;;EAe9B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uUAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as a, createElementBlock as r, openBlock as t, createVNode as l, createCommentVNode as c, unref as i, withCtx as n, createTextVNode as d, toDisplayString as _, renderSlot as p } from "vue";
2
- import { QLabel as f } from "../QLabel/index.js";
3
- const u = { class: "q-checkbox__label-wrapper" }, b = {
1
+ import { defineComponent as t, createElementBlock as r, openBlock as l, createVNode as a, createCommentVNode as c, unref as n, renderSlot as i } from "vue";
2
+ import { QLabel as d } from "../QLabel/index.js";
3
+ const _ = { class: "q-checkbox__label-wrapper" }, p = {
4
4
  key: 0,
5
5
  class: "q-field__extras"
6
- }, q = /* @__PURE__ */ a({
6
+ }, m = /* @__PURE__ */ t({
7
7
  __name: "QCheckboxLabel",
8
8
  props: {
9
9
  id: {},
@@ -15,28 +15,19 @@ const u = { class: "q-checkbox__label-wrapper" }, b = {
15
15
  },
16
16
  setup(s) {
17
17
  const e = s;
18
- return (o, m) => (t(), r("div", u, [
19
- l(i(f), {
18
+ return (o, b) => (l(), r("div", _, [
19
+ a(n(d), {
20
20
  class: "q-checkbox__label",
21
21
  for: e.for,
22
+ label: e.label,
22
23
  required: e.required
23
- }, {
24
- default: n(() => [
25
- d(
26
- _(e.label),
27
- 1
28
- /* TEXT */
29
- )
30
- ]),
31
- _: 1
32
- /* STABLE */
33
- }, 8, ["for", "required"]),
34
- o.$slots.extras ? (t(), r("div", b, [
35
- p(o.$slots, "extras")
24
+ }, null, 8, ["for", "label", "required"]),
25
+ o.$slots.extras ? (l(), r("div", p, [
26
+ i(o.$slots, "extras")
36
27
  ])) : c("v-if", !0)
37
28
  ]));
38
29
  }
39
30
  });
40
31
  export {
41
- q as default
32
+ m as default
42
33
  };
@@ -4,6 +4,7 @@ declare function __VLS_template(): {
4
4
  slots: {
5
5
  prepend?(_: {}): any;
6
6
  default?(_: {}): any;
7
+ default?(_: {}): any;
7
8
  append?(_: {}): any;
8
9
  };
9
10
  refs: {};
@@ -1 +1 @@
1
- {"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAaA;AAmCC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAmB3C,iBAAS,cAAc;WAkCT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAgBA;AAsCC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAmB3C,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as a, computed as r, createElementBlock as n, openBlock as i, normalizeClass as d, renderSlot as o, createElementVNode as c, createTextVNode as p, toDisplayString as b } from "vue";
2
- const u = ["id"], f = ["for"], q = /* @__PURE__ */ a({
1
+ import { defineComponent as n, computed as i, createElementBlock as s, openBlock as a, normalizeClass as d, renderSlot as o, createTextVNode as p, toDisplayString as c } from "vue";
2
+ const u = ["id"], b = ["for"], q = /* @__PURE__ */ n({
3
3
  __name: "QLabel",
4
4
  props: {
5
5
  id: {},
@@ -9,8 +9,8 @@ const u = ["id"], f = ["for"], q = /* @__PURE__ */ a({
9
9
  for: {},
10
10
  labelPosition: {}
11
11
  },
12
- setup(s) {
13
- const e = s, t = r(() => [
12
+ setup(t) {
13
+ const e = t, r = i(() => [
14
14
  "q-label",
15
15
  e.labelPosition ? `q-label--${e.labelPosition}` : "",
16
16
  {
@@ -18,22 +18,23 @@ const u = ["id"], f = ["for"], q = /* @__PURE__ */ a({
18
18
  },
19
19
  e.class
20
20
  ]);
21
- return (l, m) => (i(), n("div", {
21
+ return (l, f) => (a(), s("div", {
22
22
  id: e.id,
23
- class: d(t.value)
23
+ class: d(r.value)
24
24
  }, [
25
25
  o(l.$slots, "prepend"),
26
- c("label", {
26
+ e.label || l.$slots.default ? (a(), s("label", {
27
+ key: 0,
27
28
  for: e.for
28
29
  }, [
29
30
  o(l.$slots, "default", {}, () => [
30
31
  p(
31
- b(e.label),
32
+ c(e.label),
32
33
  1
33
34
  /* TEXT */
34
35
  )
35
36
  ])
36
- ], 8, f),
37
+ ], 8, b)) : o(l.$slots, "default", { key: 1 }),
37
38
  o(l.$slots, "append")
38
39
  ], 10, u));
39
40
  }
@@ -14,6 +14,7 @@ declare const QLabel: {
14
14
  $slots: {
15
15
  prepend?(_: {}): any;
16
16
  default?(_: {}): any;
17
+ default?(_: {}): any;
17
18
  append?(_: {}): any;
18
19
  };
19
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,cAAc,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAsCA;AAyEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA6BlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6FT,OAAO,IAA6B;;wBAbtB,GAAG;kCACO,GAAG;iCACH,GAAG;yBACX,GAAG;;;;EAehC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,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
+ {"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAwCA;AA2EC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA6BlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;wBAbtB,GAAG;kCACO,GAAG;iCACH,GAAG;yBACX,GAAG;;;;EAehC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,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 u, mergeModels as h, useModel as v, computed as f, createBlock as s, openBlock as a, unref as y, normalizeClass as g, withCtx as i, createElementVNode as _, createElementBlock as l, createCommentVNode as k, renderSlot as o, Fragment as V, resolveDynamicComponent as B, createTextVNode as L, toDisplayString as p } from "vue";
1
+ import { defineComponent as v, mergeModels as f, useModel as y, computed as g, createBlock as s, openBlock as t, unref as _, normalizeClass as k, withCtx as i, createElementVNode as V, createElementBlock as l, createCommentVNode as p, renderSlot as o, Fragment as c, resolveDynamicComponent as B, createTextVNode as L, toDisplayString as m } from "vue";
2
2
  import { QOverlay as $ } from "../QOverlay/index.js";
3
3
  const b = { class: "q-popover__content" }, w = {
4
4
  key: 0,
5
5
  class: "q-popover__header"
6
- }, C = ["innerHTML"], M = { key: 1 }, N = /* @__PURE__ */ u({
6
+ }, C = ["innerHTML"], M = { key: 1 }, N = /* @__PURE__ */ v({
7
7
  inheritAttrs: !1,
8
8
  __name: "QPopover",
9
- props: /* @__PURE__ */ h({
9
+ props: /* @__PURE__ */ f({
10
10
  id: {},
11
11
  class: {},
12
12
  anchor: {},
@@ -25,12 +25,12 @@ const b = { class: "q-popover__content" }, w = {
25
25
  }),
26
26
  emits: ["update:modelValue"],
27
27
  setup(n) {
28
- const e = n, d = v(n, "modelValue"), c = f(() => e.headingLevel >= 1 && e.headingLevel <= 6 ? "h" + e.headingLevel : "div");
29
- return (t, r) => (a(), s(y($), {
28
+ const e = n, r = y(n, "modelValue"), u = g(() => e.headingLevel >= 1 && e.headingLevel <= 6 ? "h" + e.headingLevel : "div");
29
+ return (a, d) => (t(), s(_($), {
30
30
  id: e.id,
31
- modelValue: d.value,
32
- "onUpdate:modelValue": r[0] || (r[0] = (m) => d.value = m),
33
- class: g(["q-popover", e.class]),
31
+ modelValue: r.value,
32
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => r.value = h),
33
+ class: k(["q-popover", e.class]),
34
34
  trigger: "click",
35
35
  anchor: e.anchor,
36
36
  arrow: e.arrow,
@@ -40,17 +40,17 @@ const b = { class: "q-popover__content" }, w = {
40
40
  placement: e.placement
41
41
  }, {
42
42
  default: i(() => [
43
- _("div", b, [
44
- e.title || t.$slots.header ? (a(), l("div", w, [
45
- t.$slots.header ? o(t.$slots, "header", { key: 0 }) : (a(), l(
46
- V,
43
+ V("div", b, [
44
+ e.title || a.$slots.header ? (t(), l("div", w, [
45
+ a.$slots.header ? o(a.$slots, "header", { key: 0 }) : (t(), l(
46
+ c,
47
47
  { key: 1 },
48
48
  [
49
- o(t.$slots, "header.prepend"),
50
- (a(), s(B(c.value), { class: "q-popover__title" }, {
49
+ o(a.$slots, "header.prepend"),
50
+ (t(), s(B(u.value), { class: "q-popover__title" }, {
51
51
  default: i(() => [
52
52
  L(
53
- p(e.title),
53
+ m(e.title),
54
54
  1
55
55
  /* TEXT */
56
56
  )
@@ -58,23 +58,31 @@ const b = { class: "q-popover__content" }, w = {
58
58
  _: 1
59
59
  /* STABLE */
60
60
  })),
61
- o(t.$slots, "header.append")
61
+ o(a.$slots, "header.append")
62
62
  ],
63
63
  64
64
64
  /* STABLE_FRAGMENT */
65
65
  ))
66
- ])) : k("v-if", !0),
67
- o(t.$slots, "default", {}, () => [
68
- e.html ? (a(), l("span", {
69
- key: 0,
70
- innerHTML: e.text
71
- }, null, 8, C)) : (a(), l(
72
- "span",
73
- M,
74
- p(e.text),
75
- 1
76
- /* TEXT */
77
- ))
66
+ ])) : p("v-if", !0),
67
+ o(a.$slots, "default", {}, () => [
68
+ e.text ? (t(), l(
69
+ c,
70
+ { key: 0 },
71
+ [
72
+ e.html ? (t(), l("span", {
73
+ key: 0,
74
+ innerHTML: e.text
75
+ }, null, 8, C)) : (t(), l(
76
+ "span",
77
+ M,
78
+ m(e.text),
79
+ 1
80
+ /* TEXT */
81
+ ))
82
+ ],
83
+ 64
84
+ /* STABLE_FRAGMENT */
85
+ )) : p("v-if", !0)
78
86
  ])
79
87
  ])
80
88
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAuBA;AAyGC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAiErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,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
+ {"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAsBA;AAwGC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAiErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,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 +1 @@
1
- {"version":3,"file":"QSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/QSwitch.vue"],"names":[],"mappings":"AA4CA;AAiIC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAqEjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;AAiGhB,wBAQG"}
1
+ {"version":3,"file":"QSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/QSwitch.vue"],"names":[],"mappings":"AA2CA;AAgIC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAqEjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;AAgGhB,wBAQG"}
@@ -1,14 +1,14 @@
1
- import { defineComponent as L, mergeModels as g, useModel as S, toRef as c, computed as w, createElementBlock as r, openBlock as i, withModifiers as B, createBlock as V, createCommentVNode as d, createElementVNode as a, unref as n, withCtx as z, createTextVNode as u, toDisplayString as h, normalizeStyle as M, normalizeClass as x, withDirectives as D, mergeProps as I, vModelCheckbox as N, Fragment as _ } from "vue";
2
- import { QLabel as P } from "../QLabel/index.js";
3
- import { useId as E } from "../../composables/uid.js";
4
- import { useColor as q } from "../../composables/useColor/index.js";
5
- const O = ["id", "aria-checked", "disabled"], Q = { class: "q-switch__labels" }, $ = {
1
+ import { defineComponent as L, mergeModels as g, useModel as S, toRef as c, computed as p, createElementBlock as r, openBlock as i, withModifiers as B, createBlock as V, createCommentVNode as d, createElementVNode as a, unref as n, normalizeStyle as z, normalizeClass as M, withDirectives as x, mergeProps as D, vModelCheckbox as I, Fragment as k, createTextVNode as w, toDisplayString as q } from "vue";
2
+ import { QLabel as N } from "../QLabel/index.js";
3
+ import { useId as P } from "../../composables/uid.js";
4
+ import { useColor as _ } from "../../composables/useColor/index.js";
5
+ const E = ["id", "aria-checked", "disabled"], O = { class: "q-switch__labels" }, Q = {
6
6
  class: "q-switch__label q-switch__label--off",
7
7
  "aria-hidden": "true"
8
- }, A = {
8
+ }, $ = {
9
9
  class: "q-switch__label q-switch__label--on",
10
10
  "aria-hidden": "true"
11
- }, j = /* @__PURE__ */ L({
11
+ }, U = /* @__PURE__ */ L({
12
12
  inheritAttrs: !1,
13
13
  __name: "QSwitch",
14
14
  props: /* @__PURE__ */ g({
@@ -30,74 +30,65 @@ const O = ["id", "aria-checked", "disabled"], Q = { class: "q-switch__labels" },
30
30
  modelModifiers: {}
31
31
  }),
32
32
  emits: ["update:modelValue"],
33
- setup(m) {
34
- const e = m, o = S(m, "modelValue"), v = (l) => {
35
- e.readonly && (l.preventDefault(), l.stopImmediatePropagation(), l.target.checked = !!o.value);
36
- }, b = E(c(e, "id")), { style: f } = q(c(e, "checkedColor")), { style: p } = q(c(e, "uncheckedColor")), y = w(() => [
33
+ setup(u) {
34
+ const e = u, t = S(u, "modelValue"), v = (l) => {
35
+ e.readonly && (l.preventDefault(), l.stopImmediatePropagation(), l.target.checked = !!t.value);
36
+ }, h = P(c(e, "id")), { style: b } = _(c(e, "checkedColor")), { style: m } = _(c(e, "uncheckedColor")), y = p(() => [
37
37
  "q-switch",
38
38
  e.size !== "medium" ? `q-switch--${e.size}` : void 0,
39
39
  {
40
- "q-switch--checked": o.value,
40
+ "q-switch--checked": t.value,
41
41
  "q-switch--disabled": e.disabled,
42
42
  "q-switch--readonly": e.readonly,
43
43
  "q-switch--with-labels": e.showStateLabels && (e.trueLabel || e.falseLabel)
44
44
  },
45
45
  e.class
46
- ]), C = w(() => {
47
- var l, t, s, k;
46
+ ]), C = p(() => {
47
+ var l, o, s, f;
48
48
  return {
49
- "--q-switch-checked-background": (l = f.value) == null ? void 0 : l.mainColor,
50
- "--q-switch-on-checked-background": (t = f.value) == null ? void 0 : t.onMainColor,
51
- "--q-switch-unchecked-background": (s = p.value) == null ? void 0 : s.mainColor,
52
- "--q-switch-on-unchecked-background": (k = p.value) == null ? void 0 : k.onMainColor
49
+ "--q-switch-checked-background": (l = b.value) == null ? void 0 : l.mainColor,
50
+ "--q-switch-on-checked-background": (o = b.value) == null ? void 0 : o.onMainColor,
51
+ "--q-switch-unchecked-background": (s = m.value) == null ? void 0 : s.mainColor,
52
+ "--q-switch-on-unchecked-background": (f = m.value) == null ? void 0 : f.onMainColor
53
53
  };
54
54
  });
55
- return (l, t) => (i(), r("div", {
55
+ return (l, o) => (i(), r("div", {
56
56
  class: "q-switch__container",
57
- onClick: t[1] || (t[1] = B(() => {
57
+ onClick: o[1] || (o[1] = B(() => {
58
58
  }, ["stop"]))
59
59
  }, [
60
- e.label ? (i(), V(n(P), {
60
+ e.label ? (i(), V(n(N), {
61
61
  key: 0,
62
- for: n(b),
62
+ for: n(h),
63
+ label: e.label,
63
64
  required: e.required
64
- }, {
65
- default: z(() => [
66
- u(
67
- h(e.label),
68
- 1
69
- /* TEXT */
70
- )
71
- ]),
72
- _: 1
73
- /* STABLE */
74
- }, 8, ["for", "required"])) : d("v-if", !0),
65
+ }, null, 8, ["for", "label", "required"])) : d("v-if", !0),
75
66
  a(
76
67
  "div",
77
68
  {
78
- class: x(y.value),
79
- style: M(C.value)
69
+ class: M(y.value),
70
+ style: z(C.value)
80
71
  },
81
72
  [
82
- D(a("input", I({
83
- id: n(b),
84
- "onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
73
+ x(a("input", D({
74
+ id: n(h),
75
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
85
76
  class: "q-switch__input",
86
77
  type: "checkbox",
87
78
  role: "switch",
88
- "aria-checked": o.value,
79
+ "aria-checked": t.value,
89
80
  disabled: e.disabled
90
- }, l.$attrs, { onInput: v }), null, 16, O), [
91
- [N, o.value]
81
+ }, l.$attrs, { onInput: v }), null, 16, E), [
82
+ [I, t.value]
92
83
  ]),
93
- a("div", Q, [
94
- a("span", $, [
84
+ a("div", O, [
85
+ a("span", Q, [
95
86
  e.showStateLabels ? (i(), r(
96
- _,
87
+ k,
97
88
  { key: 0 },
98
89
  [
99
- u(
100
- h(e.falseLabel),
90
+ w(
91
+ q(e.falseLabel),
101
92
  1
102
93
  /* TEXT */
103
94
  )
@@ -106,13 +97,13 @@ const O = ["id", "aria-checked", "disabled"], Q = { class: "q-switch__labels" },
106
97
  /* STABLE_FRAGMENT */
107
98
  )) : d("v-if", !0)
108
99
  ]),
109
- a("span", A, [
100
+ a("span", $, [
110
101
  e.showStateLabels ? (i(), r(
111
- _,
102
+ k,
112
103
  { key: 0 },
113
104
  [
114
- u(
115
- h(e.trueLabel),
105
+ w(
106
+ q(e.trueLabel),
116
107
  1
117
108
  /* TEXT */
118
109
  )
@@ -130,5 +121,5 @@ const O = ["id", "aria-checked", "disabled"], Q = { class: "q-switch__labels" },
130
121
  }
131
122
  });
132
123
  export {
133
- j as default
124
+ U as default
134
125
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.16.70",
4
+ "version": "0.16.71",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",