wave-ui 3.4.7 → 3.5.0

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.
@@ -1556,7 +1556,7 @@ const _t = {
1556
1556
  Vt
1557
1557
  ], Rt = ["for"], Tt = ["for", "innerHTML"];
1558
1558
  function Lt(e, t, l, a, r, i) {
1559
- return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled }, {
1559
+ return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1560
1560
  valid: e.valid,
1561
1561
  "onUpdate:valid": t[5] || (t[5] = (o) => e.valid = o),
1562
1562
  onReset: t[6] || (t[6] = (o) => {
@@ -1571,7 +1571,7 @@ function Lt(e, t, l, a, r, i) {
1571
1571
  type: "checkbox",
1572
1572
  name: e.inputName,
1573
1573
  checked: r.isChecked || null,
1574
- disabled: e.isDisabled || null,
1574
+ disabled: e.isDisabled || e.isReadonly || null,
1575
1575
  required: e.required || null,
1576
1576
  tabindex: e.tabindex || null,
1577
1577
  onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
@@ -1661,6 +1661,7 @@ const xt = {
1661
1661
  return {
1662
1662
  [`w-checkbox w-checkbox--${this.isChecked ? "checked" : "unchecked"}`]: !0,
1663
1663
  "w-checkbox--disabled": this.isDisabled,
1664
+ "w-checkbox--readonly": this.isReadonly,
1664
1665
  "w-checkbox--indeterminate": this.indeterminate,
1665
1666
  "w-checkbox--ripple": this.ripple.start,
1666
1667
  "w-checkbox--rippled": this.ripple.end,
@@ -4143,7 +4144,7 @@ const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
4143
4144
  }
4144
4145
  }, ii = /* @__PURE__ */ v(li, [["render", Zl]]), si = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ai = ["for"], oi = ["for", "innerHTML"], ni = ["for"], ri = ["for", "innerHTML"];
4145
4146
  function di(e, t, l, a, r, i) {
4146
- return s(), m(V(e.formRegister && !i.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4147
+ return s(), m(V(e.formRegister && !i.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4147
4148
  valid: e.valid,
4148
4149
  "onUpdate:valid": t[3] || (t[3] = (o) => e.valid = o),
4149
4150
  onReset: t[4] || (t[4] = (o) => {
@@ -4158,7 +4159,7 @@ function di(e, t, l, a, r, i) {
4158
4159
  type: "radio",
4159
4160
  name: e.inputName,
4160
4161
  checked: e.inputValue || null,
4161
- disabled: e.isDisabled || null,
4162
+ disabled: e.isDisabled || e.isReadonly || null,
4162
4163
  required: e.required || null,
4163
4164
  tabindex: e.tabindex || null,
4164
4165
  onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
@@ -4240,6 +4241,7 @@ const ui = {
4240
4241
  return {
4241
4242
  [`w-radio w-radio--${this.inputValue ? "checked" : "unchecked"}`]: !0,
4242
4243
  "w-radio--disabled": this.isDisabled,
4244
+ "w-radio--readonly": this.isReadonly,
4243
4245
  "w-radio--ripple": this.ripple.start,
4244
4246
  "w-radio--rippled": this.ripple.end,
4245
4247
  "w-radio--dark": this.ripple.dark,