@robuust-digital/vue-components 3.0.0 → 3.0.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.0.1 (06-07-2026)
2
+
3
+ ### Added
4
+
5
+ * `FormSelect`: Added `optionDisabled` support for disabling options rendered through the `options` prop
6
+
1
7
  ## 3.0.0 (17-06-2026)
2
8
 
3
9
  ### Updated
@@ -203,7 +203,7 @@ function ne(e, t) {
203
203
  }
204
204
  //#endregion
205
205
  //#region src/components/FormSelect.vue?vue&type=script&setup=true&lang.ts
206
- var q = ["value"], J = ["value"], Y = /* @__PURE__ */ p({
206
+ var q = ["value", "disabled"], J = ["value", "disabled"], Y = /* @__PURE__ */ p({
207
207
  inheritAttrs: !1,
208
208
  __name: "FormSelect",
209
209
  props: {
@@ -237,7 +237,8 @@ var q = ["value"], J = ["value"], Y = /* @__PURE__ */ p({
237
237
  size: { default: "base" },
238
238
  options: { default: () => [] },
239
239
  optionLabel: { default: "name" },
240
- optionValue: { default: "id" }
240
+ optionValue: { default: "id" },
241
+ optionDisabled: { default: "disabled" }
241
242
  },
242
243
  emits: ["update:modelValue"],
243
244
  setup(e, { emit: n }) {
@@ -245,7 +246,7 @@ var q = ["value"], J = ["value"], Y = /* @__PURE__ */ p({
245
246
  get: () => r.modelValue,
246
247
  set: (e) => u("update:modelValue", e)
247
248
  }), { hasModelBinding: f } = i(), p = b(null);
248
- return (n, r) => (y(), l("div", { class: g([
249
+ return (n, i) => (y(), l("div", { class: g([
249
250
  "rvc-select",
250
251
  `rvc-select-${e.size}`,
251
252
  e.rootClass
@@ -257,16 +258,18 @@ var q = ["value"], J = ["value"], Y = /* @__PURE__ */ p({
257
258
  S(n.$slots, "select", _(m(n.$attrs)), () => [T(f) ? j((y(), l("select", h({ key: 0 }, n.$attrs, {
258
259
  ref_key: "select",
259
260
  ref: p,
260
- "onUpdate:modelValue": r[0] ||= (e) => d.value = e
261
+ "onUpdate:modelValue": i[0] ||= (e) => d.value = e
261
262
  }), [S(n.$slots, "default", {}, () => [e.options.length > 0 ? (y(!0), l(a, { key: 0 }, x(e.options, (t, n) => (y(), l("option", {
262
263
  key: `option-${n}-${t[e.optionValue]}`,
263
- value: t[e.optionValue]
264
+ value: t[e.optionValue],
265
+ disabled: t[r.optionDisabled] === !0
264
266
  }, w(t[e.optionLabel]), 9, q))), 128)) : c("", !0)])], 16)), [[O, d.value]]) : (y(), l("select", h({ key: 1 }, n.$attrs, {
265
267
  ref_key: "select",
266
268
  ref: p
267
269
  }), [S(n.$slots, "default", {}, () => [e.options.length > 0 ? (y(!0), l(a, { key: 0 }, x(e.options, (t, n) => (y(), l("option", {
268
270
  key: `option-${n}-${t[e.optionValue]}`,
269
- value: t[e.optionValue]
271
+ value: t[e.optionValue],
272
+ disabled: t[r.optionDisabled] === !0
270
273
  }, w(t[e.optionLabel]), 9, J))), 128)) : c("", !0)])], 16))]),
271
274
  S(n.$slots, "icon", { icon: e.icon }, () => [(y(), s(C(e.icon ?? T(t)), { "aria-hidden": "true" }))])
272
275
  ], 2));
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-C0o6izrz.js";
1
+ import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-D8wjjKnI.js";
2
2
  import { n as d } from "../_shared/ChevronDownIcon-Y_yqpwON.js";
3
3
  import { t as f } from "../_shared/ButtonBase-DyeIkb-l.js";
4
4
  import { t as p } from "../_shared/FormInput-k0vAk3VU.js";
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-C0o6izrz.js";
1
+ import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../_shared/core-D8wjjKnI.js";
2
2
  import { n as d } from "../_shared/ChevronDownIcon-Y_yqpwON.js";
3
3
  import { t as f } from "../_shared/ButtonBase-DyeIkb-l.js";
4
4
  import { t as p } from "../_shared/FormInput-k0vAk3VU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"