@quidgest/ui 0.16.1 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.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.1
4
+ * Quidgest UI v0.16.2
5
5
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
6
6
  * Released under the MIT License.
7
7
  */
@@ -129,7 +129,7 @@ return["q-badge",`q-badge--${n.variant}`,e,t,{"q-badge--pill":n.pill,"q-badge--c
129
129
  if(!s.value)return{"--q-badge-main-color":null==(e=u.value)?void 0:e.mainColor,"--q-badge-on-main-color":null==(t=u.value)?void 0:t.onMainColor,"--q-badge-hover-color":null==(a=u.value)?void 0:a.hoverColor,"--q-badge-on-hover-color":null==(n=u.value)?void 0:n.onHoverColor}}))
130
130
  function c(e){e.stopImmediatePropagation()}function p(){o("click:remove")}return(e,a)=>(t.openBlock(),t.createElementBlock("span",{id:n.id,class:t.normalizeClass(i.value),role:r.value?"button":"presentation",style:t.normalizeStyle(d.value),tabindex:r.value?0:void 0,onKeydown:t.withKeys(t.withModifiers(c,["stop","prevent"]),["enter"])},["tonal"===n.variant?(t.openBlock(),t.createElementBlock("div",Se)):t.createCommentVNode("",!0),t.createElementVNode("div",Me,[t.renderSlot(e.$slots,"default"),n.removable?(t.openBlock(),t.createBlock(t.unref(F),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,onClick:p},{default:t.withCtx((()=>[t.createVNode(t.unref(le),t.normalizeProps(t.guardReactiveProps(n.icons.remove)),null,16)])),_:1},8,["color","aria-label"])):t.createCommentVNode("",!0)])],46,Ce))}})),Ve=["id"],De=x(t.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},placement:{default:"top-right"},color:{}},setup(e){const a=e,n=t.useSlots(),o=t.computed((()=>!a.content&&!n.content)),l=t.computed((()=>["q-badge-indicator",`q-badge-indicator--${a.placement}`,{"q-badge-indicator--dot":o.value}]))
131
131
  return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-badge-indicator__wrapper",a.class])},[t.renderSlot(e.$slots,"default"),t.createVNode(t.unref(Ee),{pill:"",variant:"bold",class:t.normalizeClass(l.value),color:a.color},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"content",{},(()=>[t.createTextVNode(t.toDisplayString(a.content),1)]))])),_:3},8,["class","color"])],10,Ve))}})),$e=["id"],Ne=x(t.defineComponent({__name:"QButtonGroup",props:{id:{},class:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean}},setup(e){const a=e
132
- return c({QButton:{disabled:t.toRef(a,"disabled"),borderless:t.toRef(a,"borderless")}}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-button-group",{"q-button-group--elevated":a.elevated},a.class])},[t.renderSlot(e.$slots,"default")],10,$e))}})),Te={checked:{icon:"check"},indeterminate:{icon:"minus"}},Pe=["id"],Ae=["aria-checked","disabled","onKeydown"],qe=["checked","disabled"],Re=t.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:t.mergeModels({id:{},class:{},label:{},labelPlacement:{default:"right"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},color:{default:"primary"},size:{default:"regular"},icons:{default:()=>Te}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=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]))
132
+ return c({QButton:{disabled:t.toRef(a,"disabled"),borderless:t.toRef(a,"borderless")}}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-button-group",{"q-button-group--elevated":a.elevated},a.class]),role:"group"},[t.renderSlot(e.$slots,"default")],10,$e))}})),Te={checked:{icon:"check"},indeterminate:{icon:"minus"}},Pe=["id"],Ae=["aria-checked","disabled","onKeydown"],qe=["checked","disabled"],Re=t.defineComponent({inheritAttrs:!1,__name:"QCheckbox",props:t.mergeModels({id:{},class:{},label:{},labelPlacement:{default:"right"},disabled:{type:Boolean},readonly:{type:Boolean},indeterminate:{type:Boolean},color:{default:"primary"},size:{default:"regular"},icons:{default:()=>Te}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=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]))
133
133
  function l(){!a.disabled&&!a.readonly&&(n.value=!n.value)}return(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("label",{id:a.id,class:t.normalizeClass(o.value)},["right"!==a.labelPlacement?(t.openBlock(),t.createBlock(t.unref(Ye),{key:0,label:a.label},t.createSlots({_:2},[e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"0"}:void 0]),1032,["label"])):t.createCommentVNode("",!0),t.createElementVNode("button",t.mergeProps({role:"checkbox",type:"button",class:"q-checkbox__input","aria-checked":a.indeterminate?"mixed":n.value,disabled:a.disabled||a.readonly},e.$attrs,{onClick:t.withModifiers(l,["prevent"]),onKeydown:[t.withKeys(t.withModifiers(l,["prevent"]),["space"]),r[0]||(r[0]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["enter"]))]}),[n.value||e.indeterminate?(t.openBlock(),t.createBlock(t.unref(le),t.mergeProps({key:0},n.value?a.icons.checked:a.icons.indeterminate,{class:"q-checkbox__input-icon"}),null,16)):t.createCommentVNode("",!0)],16,Ae),"right"===a.labelPlacement?(t.openBlock(),t.createBlock(t.unref(Ye),{key:1,label:a.label},t.createSlots({_:2},[e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"0"}:void 0]),1032,["label"])):t.createCommentVNode("",!0)],10,Pe),t.createElementVNode("input",{type:"checkbox",tabindex:"-1","aria-hidden":"true",class:"q-checkbox__native-input",checked:!!n.value,disabled:a.disabled||a.readonly},null,8,qe)],64))}}),Oe={key:0},Le={class:"q-field__extras"},ze={key:1},Ie=t.defineComponent({__name:"QCheckboxLabel",props:{id:{},class:{},label:{}},setup(e){const a=e
134
134
  return(e,n)=>e.$slots.extras?(t.openBlock(),t.createElementBlock("div",Oe,[t.createElementVNode("span",null,t.toDisplayString(a.label),1),t.createElementVNode("div",Le,[t.renderSlot(e.$slots,"extras")])])):(t.openBlock(),t.createElementBlock("span",ze,t.toDisplayString(a.label),1))}}),Fe=x(Re),Ye=x(Ie),Qe={selectColor:"Select a color"},He=["id"],Ue=["for"],je=x(t.defineComponent({inheritAttrs:!1,__name:"QLabel",props:{id:{},class:{},label:{},for:{},required:{type:Boolean}},setup(e){const a=e,n=t.computed((()=>["q-label",{"q-label--required":a.required},a.class]))
135
135
  return(e,o)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(n.value)},[t.renderSlot(e.$slots,"prepend"),t.createElementVNode("label",t.mergeProps({for:a.for},e.$attrs),[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]))],16,Ue),t.renderSlot(e.$slots,"append")],10,He))}})),We=["id"],Ge={key:0,class:"q-field__prepend"},Ke={key:1,class:"q-field__append"},Xe={key:1,class:"q-field__extras"},Ze=x(t.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},for:{},required:{type:Boolean},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(e,{expose:a}){const n=e,o=t.ref(null),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]))
@@ -1466,8 +1466,8 @@ t.watch(n,(e=>o.value=e),{immediate:!0})
1466
1466
  const l=be(a.id),r=t.computed((()=>a.readonly||a.disabled?void 0:a.placeholder)),i=t.computed((()=>({input:a.autosize?u:null}))),s=t.ref(),{triggerResize:u}=Rt({element:t.computed((()=>a.autosize?s.value:void 0)),styleProp:"minHeight"})
1467
1467
  return(e,n)=>(t.openBlock(),t.createBlock(t.unref(Ze),{class:t.normalizeClass(["q-text-area",a.class]),for:t.unref(l),label:a.label,size:a.size,readonly:a.readonly,disabled:a.disabled,required:a.required},t.createSlots({"label.prepend":t.withCtx((()=>[t.renderSlot(e.$slots,"label.prepend")])),"label.append":t.withCtx((()=>[t.renderSlot(e.$slots,"label.append")])),default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(l),ref_key:"textareaRef",ref:s,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),class:"q-text-area__input",required:a.required,placeholder:r.value,readonly:a.readonly,disabled:a.disabled,maxlength:a.maxLength,rows:a.rows,cols:a.cols,resize:a.resize,wrap:a.wrap},e.$attrs,t.toHandlers(i.value,!0)),null,16,pc),[[t.vModelText,o.value]])])),_:2},[e.$slots.prepend?{name:"prepend",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prepend")])),key:"0"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"append")])),key:"1"}:void 0,e.$slots.extras?{name:"extras",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"extras")])),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required"]))}})),vc=["id"],fc=x(t.defineComponent({__name:"QThemeProvider",props:{id:{},class:{},theme:{}},setup(e){const a=e,n=t.toRef(a,"theme"),{class:o}=R(n)
1468
1468
  return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-theme-provider",t.unref(o),a.class])},[t.renderSlot(e.$slots,"default")],10,vc))}})),hc=x(t.defineComponent({__name:"QToggle",props:t.mergeModels({id:{},class:{},label:{},variant:{},color:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},loading:{type:Boolean},size:{},iconPos:{},pill:{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}]))
1469
- function l(){n.value=!n.value}return(e,n)=>(t.openBlock(),t.createBlock(t.unref(F),t.mergeProps({class:o.value},a,{onClick:l}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class"]))}})),yc=t.defineComponent({__name:"QToggleGroup",props:t.mergeModels({id:{},class:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},multiple:{type:Boolean},required:{type:Boolean}},{modelValue:{type:[String,Number,Boolean,Symbol,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),{active:o}=v({active:n,required:t.toRef(a,"required"),multiple:t.toRef(a,"multiple")})
1470
- return t.watch(o,(e=>{n.value=e})),c({QToggleGroupItem:{disabled:t.toRef(a,"disabled"),borderless:t.toRef(a,"borderless")}}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(Ne),{id:a.id,class:t.normalizeClass(a.class),elevated:a.elevated,role:"listbox"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["id","class","elevated"]))}}),gc=t.defineComponent({__name:"QToggleGroupItem",props:{id:{},class:{},label:{},variant:{},color:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},loading:{type:Boolean},size:{},iconPos:{},pill:{type:Boolean},value:{}},setup(e){const a=e,n=f(be(a.value))
1469
+ function l(){n.value=!n.value}return(e,r)=>(t.openBlock(),t.createBlock(t.unref(F),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"]))}})),yc=t.defineComponent({__name:"QToggleGroup",props:t.mergeModels({id:{},class:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},multiple:{type:Boolean},required:{type:Boolean}},{modelValue:{type:[String,Number,Boolean,Symbol,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),{active:o}=v({active:n,required:t.toRef(a,"required"),multiple:t.toRef(a,"multiple")})
1470
+ return t.watch(o,(e=>{n.value=e})),c({QToggleGroupItem:{disabled:t.toRef(a,"disabled"),borderless:t.toRef(a,"borderless")}}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(Ne),{id:a.id,class:t.normalizeClass(a.class),elevated:a.elevated},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["id","class","elevated"]))}}),gc=t.defineComponent({__name:"QToggleGroupItem",props:{id:{},class:{},label:{},variant:{},color:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},loading:{type:Boolean},size:{},iconPos:{},pill:{type:Boolean},value:{}},setup(e){const a=e,n=f(be(a.value))
1471
1471
  if(!n)throw new Error("QToggleGroupItem: Failed to retrieve group item. Ensure the component is used within a QToggleGroup context.")
1472
1472
  return(e,o)=>(t.openBlock(),t.createBlock(t.unref(hc),t.mergeProps({"model-value":t.unref(n).isActive.value},a,{"onUpdate:modelValue":t.unref(n).toggle}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["model-value","onUpdate:modelValue"]))}}),bc=x(yc),kc=x(gc),wc={class:"q-tooltip__content"},_c=["innerHTML"],xc=x(t.defineComponent({__name:"QTooltip",props:t.mergeModels({id:{},class:{},anchor:{},appearance:{default:"inverted"},arrow:{type:Boolean,default:!0},attach:{default:"body"},inline:{type:Boolean},delay:{default:500},disabled:{type:Boolean},html:{type:Boolean,default:!0},placement:{default:"right"},text:{},icon:{},trigger:{default:"hover"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),o=be(a.id)
1473
1473
  function l(e){const t=Ra(e)
package/dist/ui.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quidgest UI v0.16.1
2
+ * Quidgest UI v0.16.2
3
3
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAaA;AAuCC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAiBjD,iBAAS,cAAc;WA+BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,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":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAcA;AAwCC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAiBjD,iBAAS,cAAc;WAgCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,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,6 +1,6 @@
1
- import { defineComponent as l, toRef as o, createElementBlock as r, openBlock as d, normalizeClass as a, renderSlot as n } from "vue";
1
+ import { defineComponent as r, toRef as o, createElementBlock as l, openBlock as d, normalizeClass as a, renderSlot as n } from "vue";
2
2
  import { provideDefaults as p } from "../../composables/defaults.js";
3
- const i = ["id"], b = /* @__PURE__ */ l({
3
+ const i = ["id"], b = /* @__PURE__ */ r({
4
4
  __name: "QButtonGroup",
5
5
  props: {
6
6
  id: {},
@@ -16,7 +16,7 @@ const i = ["id"], b = /* @__PURE__ */ l({
16
16
  disabled: o(e, "disabled"),
17
17
  borderless: o(e, "borderless")
18
18
  }
19
- }), (s, u) => (d(), r("div", {
19
+ }), (s, u) => (d(), l("div", {
20
20
  id: e.id,
21
21
  class: a([
22
22
  "q-button-group",
@@ -24,7 +24,8 @@ const i = ["id"], b = /* @__PURE__ */ l({
24
24
  "q-button-group--elevated": e.elevated
25
25
  },
26
26
  e.class
27
- ])
27
+ ]),
28
+ role: "group"
28
29
  }, [
29
30
  n(s.$slots, "default")
30
31
  ], 10, i));
@@ -1 +1 @@
1
- {"version":3,"file":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AASA;AA0CC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA2CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,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,6 +1,6 @@
1
- import { defineComponent as s, mergeModels as r, useModel as c, computed as d, createBlock as u, openBlock as p, unref as i, mergeProps as m, withCtx as g, renderSlot as f } from "vue";
1
+ import { defineComponent as n, mergeModels as r, useModel as d, computed as c, createBlock as p, openBlock as u, unref as i, mergeProps as m, withCtx as g, renderSlot as f } from "vue";
2
2
  import { QButton as B } from "../QButton/index.js";
3
- const k = /* @__PURE__ */ s({
3
+ const k = /* @__PURE__ */ n({
4
4
  __name: "QToggle",
5
5
  props: /* @__PURE__ */ r({
6
6
  id: {},
@@ -22,17 +22,20 @@ const k = /* @__PURE__ */ s({
22
22
  }),
23
23
  emits: ["update:modelValue"],
24
24
  setup(o) {
25
- const l = o, e = c(o, "modelValue"), t = d(() => ["q-toggle", { "q-toggle--active": e.value }]);
26
- function a() {
25
+ const l = o, e = d(o, "modelValue"), a = c(() => ["q-toggle", { "q-toggle--active": e.value }]);
26
+ function t() {
27
27
  e.value = !e.value;
28
28
  }
29
- return (n, v) => (p(), u(i(B), m({ class: t.value }, l, { onClick: a }), {
29
+ return (s, v) => (u(), p(i(B), m({ class: a.value }, l, {
30
+ "aria-pressed": e.value,
31
+ onClick: t
32
+ }), {
30
33
  default: g(() => [
31
- f(n.$slots, "default")
34
+ f(s.$slots, "default")
32
35
  ]),
33
36
  _: 3
34
37
  /* FORWARDED */
35
- }, 16, ["class"]));
38
+ }, 16, ["class", "aria-pressed"]));
36
39
  }
37
40
  });
38
41
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AAwDC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,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":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AAQA;AAuDC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,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,10 +1,10 @@
1
- import { defineComponent as s, mergeModels as d, useModel as i, toRef as o, watch as u, createBlock as m, openBlock as p, unref as n, normalizeClass as c, withCtx as f, renderSlot as b } from "vue";
2
- import { QButtonGroup as B } from "../QButtonGroup/index.js";
1
+ import { defineComponent as d, mergeModels as s, useModel as i, toRef as o, watch as u, createBlock as m, openBlock as p, unref as n, normalizeClass as c, withCtx as f, renderSlot as B } from "vue";
2
+ import { QButtonGroup as b } from "../QButtonGroup/index.js";
3
3
  import { provideDefaults as v } from "../../composables/defaults.js";
4
4
  import { useGroup as y } from "../../composables/useGroup/index.js";
5
- const x = /* @__PURE__ */ s({
5
+ const C = /* @__PURE__ */ d({
6
6
  __name: "QToggleGroup",
7
- props: /* @__PURE__ */ d({
7
+ props: /* @__PURE__ */ s({
8
8
  id: {},
9
9
  class: {},
10
10
  disabled: { type: Boolean },
@@ -30,14 +30,13 @@ const x = /* @__PURE__ */ s({
30
30
  disabled: o(e, "disabled"),
31
31
  borderless: o(e, "borderless")
32
32
  }
33
- }), (l, g) => (p(), m(n(B), {
33
+ }), (l, g) => (p(), m(n(b), {
34
34
  id: e.id,
35
35
  class: c(e.class),
36
- elevated: e.elevated,
37
- role: "listbox"
36
+ elevated: e.elevated
38
37
  }, {
39
38
  default: f(() => [
40
- b(l.$slots, "default")
39
+ B(l.$slots, "default")
41
40
  ]),
42
41
  _: 3
43
42
  /* FORWARDED */
@@ -45,5 +44,5 @@ const x = /* @__PURE__ */ s({
45
44
  }
46
45
  });
47
46
  export {
48
- x as default
47
+ C as default
49
48
  };
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.1",
4
+ "version": "0.16.2",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",