@quidgest/ui 0.16.5 → 0.16.7

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.css CHANGED
@@ -3798,6 +3798,7 @@ body *::-webkit-scrollbar-track {
3798
3798
  }
3799
3799
 
3800
3800
  .q-radio-group {
3801
+ --q-radio-group-columns: 1;
3801
3802
  display: flex;
3802
3803
  flex-direction: column;
3803
3804
  gap: 0.5rem;
@@ -3810,6 +3811,10 @@ body *::-webkit-scrollbar-track {
3810
3811
  .q-radio-group--horizontal .q-radio-group__group {
3811
3812
  flex-direction: row;
3812
3813
  }
3814
+ .q-radio-group--grid {
3815
+ display: grid;
3816
+ grid-template-columns: repeat(var(--q-radio-group-columns), auto);
3817
+ }
3813
3818
 
3814
3819
  .q-radio-button {
3815
3820
  --q-radio-button-circle-size: 1rem;
package/dist/ui.esm.js CHANGED
@@ -3,7 +3,7 @@ var ko = (t, e, a) => e in t ? _o(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var ge = (t, e, a) => ko(t, typeof e != "symbol" ? e + "" : e, a);
4
4
  import { getCurrentInstance as _l, computed as T, ref as U, provide as kl, inject as _n, unref as f, isRef as un, watch as Ce, defineComponent as he, mergeModels as qe, toRef as Ue, useModel as Ve, createElementBlock as A, openBlock as v, normalizeClass as ue, renderSlot as S, normalizeStyle as Ge, withModifiers as gt, createCommentVNode as L, createElementVNode as ee, createVNode as ke, createTextVNode as ut, toDisplayString as Ae, useAttrs as $l, createBlock as oe, resolveDynamicComponent as ea, withCtx as j, Fragment as be, h as dn, mergeProps as Me, withKeys as cn, normalizeProps as Be, guardReactiveProps as je, useSlots as Wt, createSlots as Ye, withDirectives as ia, vModelDynamic as $o, vModelText as Rr, renderList as Ne, readonly as xo, customRef as Do, getCurrentScope as Lr, onScopeDispose as xl, shallowRef as ol, nextTick as Qe, toValue as Lt, onMounted as Je, useId as To, onUnmounted as Ct, reactive as Zt, onBeforeUnmount as Mo, Teleport as Br, Transition as Yt, render as Kl, onBeforeUpdate as Ao, vShow as on, useTemplateRef as Po, toHandlers as Co } from "vue";
5
5
  /*!
6
- * Quidgest UI v0.16.5
6
+ * Quidgest UI v0.16.7
7
7
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
8
8
  * Released under the MIT License.
9
9
  */
@@ -14061,7 +14061,8 @@ const kh = /* @__PURE__ */ gh(bh, [["render", _h]]), $h = _e(vh), xh = _e(hh), D
14061
14061
  readonly: { type: Boolean },
14062
14062
  size: { default: "regular" },
14063
14063
  invalid: { type: Boolean },
14064
- name: {}
14064
+ name: {},
14065
+ columns: { default: 1 }
14065
14066
  }, {
14066
14067
  modelValue: {},
14067
14068
  modelModifiers: {}
@@ -14069,8 +14070,8 @@ const kh = /* @__PURE__ */ gh(bh, [["render", _h]]), $h = _e(vh), xh = _e(hh), D
14069
14070
  emits: ["update:modelValue"],
14070
14071
  setup(t) {
14071
14072
  const e = t, a = Ve(t, "modelValue"), { active: n } = kn({ active: a });
14072
- Ce(n, (o) => {
14073
- a.value = o;
14073
+ Ce(n, (i) => {
14074
+ a.value = i;
14074
14075
  });
14075
14076
  const l = kt(e.id), r = T(() => kt(e.name)), s = T(() => [
14076
14077
  "q-radio-group",
@@ -14078,7 +14079,11 @@ const kh = /* @__PURE__ */ gh(bh, [["render", _h]]), $h = _e(vh), xh = _e(hh), D
14078
14079
  "q-radio-group--horizontal": e.orientation === "horizontal"
14079
14080
  },
14080
14081
  e.class
14081
- ]);
14082
+ ]), o = T(() => e.columns > 1 ? {
14083
+ "--q-radio-group-columns": e.columns
14084
+ } : {
14085
+ undefined: void 0
14086
+ });
14082
14087
  return Ca({
14083
14088
  QRadioButton: {
14084
14089
  size: Ue(e, "size"),
@@ -14087,7 +14092,7 @@ const kh = /* @__PURE__ */ gh(bh, [["render", _h]]), $h = _e(vh), xh = _e(hh), D
14087
14092
  invalid: Ue(e, "invalid"),
14088
14093
  name: r
14089
14094
  }
14090
- }), (o, i) => (v(), A("div", {
14095
+ }), (i, d) => (v(), A("div", {
14091
14096
  class: ue(s.value)
14092
14097
  }, [
14093
14098
  e.label ? (v(), oe(f($a), {
@@ -14098,13 +14103,14 @@ const kh = /* @__PURE__ */ gh(bh, [["render", _h]]), $h = _e(vh), xh = _e(hh), D
14098
14103
  }, null, 8, ["for", "label", "required"])) : L("", !0),
14099
14104
  ee("div", Me({
14100
14105
  id: f(l),
14101
- class: "q-radio-group__group",
14102
- role: "radiogroup"
14103
- }, o.$attrs), [
14104
- S(o.$slots, "default")
14106
+ class: ["q-radio-group__group", { "q-radio-group--grid": e.columns > 1 }],
14107
+ role: "radiogroup",
14108
+ style: o.value
14109
+ }, i.$attrs), [
14110
+ S(i.$slots, "default")
14105
14111
  ], 16, gy),
14106
- o.$slots.extras ? (v(), A("div", by, [
14107
- S(o.$slots, "extras")
14112
+ i.$slots.extras ? (v(), A("div", by, [
14113
+ S(i.$slots, "extras")
14108
14114
  ])) : L("", !0)
14109
14115
  ], 2));
14110
14116
  }