readytech-ui-library-v2 1.0.28 → 1.0.30

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.
@@ -13129,6 +13129,12 @@ const lm = /* @__PURE__ */ ce(tm, [["render", nm]]), am = {
13129
13129
  indeterminate: {
13130
13130
  type: Boolean,
13131
13131
  default: !1
13132
+ },
13133
+ uid: {
13134
+ type: String,
13135
+ default() {
13136
+ return `rt-checkbox-${Math.random().toString(36).substr(2, 9)}`;
13137
+ }
13132
13138
  }
13133
13139
  },
13134
13140
  computed: {
@@ -13140,6 +13146,9 @@ const lm = /* @__PURE__ */ ce(tm, [["render", nm]]), am = {
13140
13146
  this.$emit("update:modelValue", e);
13141
13147
  }
13142
13148
  },
13149
+ id() {
13150
+ return `rt-checkbox-${this.uid}`;
13151
+ },
13143
13152
  // Compute the unique ID for the checkbox label
13144
13153
  ariaLabelId() {
13145
13154
  return `checkbox-label-${this._uid}`;
@@ -13154,6 +13163,7 @@ function im(e, n, t, l, a, i) {
13154
13163
  return D(), U(Yv, {
13155
13164
  modelValue: i.checkedValue,
13156
13165
  "onUpdate:modelValue": n[0] || (n[0] = (o) => i.checkedValue = o),
13166
+ id: i.id,
13157
13167
  label: t.label,
13158
13168
  disabled: t.disabled,
13159
13169
  error: t.error,
@@ -13163,9 +13173,9 @@ function im(e, n, t, l, a, i) {
13163
13173
  "aria-describedby": i.ariaErrorMessagesId,
13164
13174
  "aria-checked": t.indeterminate ? "mixed" : i.checkedValue ? "true" : "false",
13165
13175
  "aria-disabled": t.disabled ? "true" : "false"
13166
- }, null, 8, ["modelValue", "label", "disabled", "error", "error-messages", "indeterminate", "aria-labelledby", "aria-describedby", "aria-checked", "aria-disabled"]);
13176
+ }, null, 8, ["modelValue", "id", "label", "disabled", "error", "error-messages", "indeterminate", "aria-labelledby", "aria-describedby", "aria-checked", "aria-disabled"]);
13167
13177
  }
13168
- const om = /* @__PURE__ */ ce(am, [["render", im], ["__scopeId", "data-v-a84e71fe"]]), rm = R({
13178
+ const om = /* @__PURE__ */ ce(am, [["render", im], ["__scopeId", "data-v-4fbd85d3"]]), rm = R({
13169
13179
  color: {
13170
13180
  type: Object
13171
13181
  },