@xy-planning-network/trees 0.6.5-rc-2 → 0.6.5-rc-4

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.
Files changed (33) hide show
  1. package/README.md +19 -0
  2. package/{eslint-config-base/index.js → config/eslint.js} +1 -1
  3. package/dist/trees.es.js +89 -86
  4. package/dist/trees.umd.js +3 -3
  5. package/package.json +1 -3
  6. package/src/lib-components/forms/BaseInput.vue +3 -3
  7. package/src/lib-components/forms/Checkbox.vue +2 -2
  8. package/src/lib-components/forms/DateRangePicker.vue +1 -1
  9. package/src/lib-components/forms/MultiCheckboxes.vue +3 -3
  10. package/src/lib-components/forms/Radio.vue +4 -4
  11. package/src/lib-components/forms/RadioCards.vue +6 -6
  12. package/src/lib-components/forms/Select.vue +2 -2
  13. package/src/lib-components/forms/TextArea.vue +3 -3
  14. package/src/lib-components/forms/Toggle.vue +2 -2
  15. package/src/lib-components/forms/YesOrNoRadio.vue +3 -3
  16. package/src/lib-components/layout/DateFilter.vue +2 -2
  17. package/src/lib-components/layout/SidebarLayout.vue +1 -1
  18. package/src/lib-components/layout/StackedLayout.vue +2 -2
  19. package/src/lib-components/lists/Cards.vue +1 -1
  20. package/src/lib-components/lists/DetailList.vue +4 -4
  21. package/src/lib-components/lists/StaticTable.vue +2 -2
  22. package/src/lib-components/lists/Table.vue +17 -13
  23. package/src/lib-components/navigation/ActionsDropdown.vue +2 -2
  24. package/src/lib-components/navigation/Paginator.vue +5 -5
  25. package/src/lib-components/navigation/Steps.vue +5 -5
  26. package/src/lib-components/navigation/Tabs.vue +5 -5
  27. package/src/lib-components/overlays/ContentModal.vue +1 -1
  28. package/src/lib-components/overlays/Flash.vue +5 -2
  29. package/src/lib-components/overlays/Modal.vue +5 -5
  30. package/src/lib-components/overlays/Slideover.vue +1 -1
  31. package/src/lib-components/overlays/Spinner.vue +3 -3
  32. package/types/lib-components/lists/Table.vue.d.ts +6 -2
  33. /package/{prettier-config/index.js → config/prettier.js} +0 -0
package/README.md CHANGED
@@ -57,6 +57,25 @@ Additional peer dependecies will be installed by NPM. If you are using NPM < 7 y
57
57
 
58
58
  ## Setup
59
59
 
60
+ ### ESLint
61
+
62
+ **Initialize ESLint rules in .eslintrc.js**
63
+
64
+ ```js
65
+ /* eslint-env node */
66
+ module.exports = {
67
+ extends: "./node_modules/@xy-planning-network/trees/config/eslint.js",
68
+ }
69
+ ```
70
+
71
+ ### Prettier
72
+
73
+ **Initialize Prettier rules in .prettierrc.json**
74
+
75
+ ```json
76
+ "@xy-planning-network/trees/config/prettier.js"
77
+ ```
78
+
60
79
  ### Fonts
61
80
 
62
81
  **Include Inter Var in html template**
@@ -4,7 +4,7 @@ require("@rushstack/eslint-patch/modern-module-resolution")
4
4
  module.exports = {
5
5
  root: true,
6
6
  extends: [
7
- "plugin:vue/vue3-essential",
7
+ "plugin:vue/vue3-recommended",
8
8
  "eslint:recommended",
9
9
  "@vue/eslint-config-typescript",
10
10
  "@vue/eslint-config-prettier/skip-formatting",
package/dist/trees.es.js CHANGED
@@ -3705,7 +3705,7 @@ function tl(t, n) {
3705
3705
  })
3706
3706
  ]);
3707
3707
  }
3708
- const nl = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open options", -1), rl = { class: "py-1" }, al = ["textContent", "onClick"], ol = /* @__PURE__ */ L({
3708
+ const nl = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open options", -1), rl = { class: "py-1" }, al = ["onClick", "textContent"], ol = /* @__PURE__ */ L({
3709
3709
  props: {
3710
3710
  currentUser: null,
3711
3711
  items: null,
@@ -3768,8 +3768,8 @@ const nl = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open options", -1),
3768
3768
  c ? "bg-gray-100 text-gray-900" : "text-gray-700",
3769
3769
  "block w-full text-left px-4 py-2 text-sm font-semibold"
3770
3770
  ]),
3771
- textContent: H(s.label),
3772
- onClick: (f) => a(s.event)
3771
+ onClick: (f) => a(s.event),
3772
+ textContent: H(s.label)
3773
3773
  }, null, 10, al)
3774
3774
  ]),
3775
3775
  _: 2
@@ -3795,8 +3795,8 @@ const nl = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open options", -1),
3795
3795
  class: Y(["mt-5 grid grid-cols-1 gap-5", "lg:grid-cols-" + t.cards.length])
3796
3796
  }, [
3797
3797
  (y(!0), E(K, null, ee(t.cards, (a, r) => (y(), E("div", {
3798
- class: "bg-white overflow-hidden shadow rounded-lg",
3799
- key: r
3798
+ key: r,
3799
+ class: "bg-white overflow-hidden shadow rounded-lg"
3800
3800
  }, [
3801
3801
  m("div", il, [
3802
3802
  m("dl", null, [
@@ -3835,8 +3835,8 @@ const nl = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open options", -1),
3835
3835
  as: "div",
3836
3836
  static: "",
3837
3837
  class: "fixed z-30 inset-0 overflow-y-auto",
3838
- onClose: r[1] || (r[1] = (o) => e(!1)),
3839
- open: t.modelValue
3838
+ open: t.modelValue,
3839
+ onClose: r[1] || (r[1] = (o) => e(!1))
3840
3840
  }, {
3841
3841
  default: P(() => [
3842
3842
  m("div", dl, [
@@ -5167,7 +5167,7 @@ const Ne = /* @__PURE__ */ L({
5167
5167
  _: 1
5168
5168
  }, 16)) : W("", !0);
5169
5169
  }
5170
- }), Dl = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"], go = /* @__PURE__ */ L({
5170
+ }), Dl = ["id", "aria-labelledby", "aria-describedby", "placeholder", "type", "value"], go = /* @__PURE__ */ L({
5171
5171
  props: {
5172
5172
  type: null,
5173
5173
  help: { default: "" },
@@ -5192,12 +5192,13 @@ const Ne = /* @__PURE__ */ L({
5192
5192
  ], i = F(() => typeof e.type == "string" && o.includes(e.type));
5193
5193
  return (s, u) => (y(), E(K, null, [
5194
5194
  k(Ne, {
5195
- class: "block",
5196
5195
  id: `${v(r)}-label`,
5196
+ class: "block",
5197
5197
  for: v(r),
5198
5198
  label: t.label
5199
5199
  }, null, 8, ["id", "for", "label"]),
5200
5200
  m("input", je({
5201
+ id: v(r),
5201
5202
  "aria-labelledby": t.label ? `${v(r)}-label` : void 0,
5202
5203
  "aria-describedby": t.help ? `${v(r)}-help` : void 0,
5203
5204
  class: [
@@ -5215,12 +5216,12 @@ const Ne = /* @__PURE__ */ L({
5215
5216
  "disabled:cursor-not-allowed"
5216
5217
  ] : []
5217
5218
  ],
5218
- id: v(r),
5219
5219
  placeholder: t.label,
5220
5220
  type: t.type,
5221
- value: t.modelValue,
5221
+ value: t.modelValue
5222
+ }, s.$attrs, {
5222
5223
  onInput: u[0] || (u[0] = (c) => n("update:modelValue", c.target.value))
5223
- }, s.$attrs), null, 16, Dl),
5224
+ }), null, 16, Dl),
5224
5225
  k(Ie, {
5225
5226
  id: `${v(r)}-help`,
5226
5227
  text: t.help
@@ -5259,14 +5260,14 @@ const Ne = /* @__PURE__ */ L({
5259
5260
  }
5260
5261
  });
5261
5262
  }), (i, s) => (y(), V(go, {
5263
+ id: v(r),
5262
5264
  type: "text",
5263
5265
  placeholder: "mm-dd-yyyy range",
5264
- id: v(r),
5265
5266
  label: t.label,
5266
5267
  help: t.help
5267
5268
  }, null, 8, ["id", "label", "help"]));
5268
5269
  }
5269
- }), $l = ["aria-labelledby", "aria-describedby", "id", "value"], El = {
5270
+ }), $l = ["id", "aria-labelledby", "aria-describedby", "value"], El = {
5270
5271
  key: 0,
5271
5272
  value: "",
5272
5273
  disabled: "",
@@ -5293,10 +5294,10 @@ const Ne = /* @__PURE__ */ L({
5293
5294
  label: t.label
5294
5295
  }, null, 8, ["id", "for", "label"]),
5295
5296
  m("select", je({
5297
+ id: v(r),
5296
5298
  "aria-labelledby": t.label ? `${v(r)}-label` : void 0,
5297
5299
  "aria-describedby": t.help ? `${v(r)}-help` : void 0,
5298
5300
  class: v(o),
5299
- id: v(r),
5300
5301
  value: t.modelValue
5301
5302
  }, {
5302
5303
  ...i.$attrs,
@@ -5306,9 +5307,9 @@ const Ne = /* @__PURE__ */ L({
5306
5307
  }), [
5307
5308
  t.placeholder ? (y(), E("option", El, H(t.placeholder), 1)) : W("", !0),
5308
5309
  (y(!0), E(K, null, ee(t.options, (u) => (y(), E("option", {
5310
+ key: u.value,
5309
5311
  value: u.value,
5310
- textContent: H(u.label),
5311
- key: u.value
5312
+ textContent: H(u.label)
5312
5313
  }, null, 8, kl))), 128))
5313
5314
  ], 16, $l),
5314
5315
  k(Ie, {
@@ -5503,7 +5504,7 @@ const wo = {
5503
5504
  ], -1), Rl = /* @__PURE__ */ Fe(" Previous "), Nl = [
5504
5505
  Ll,
5505
5506
  Rl
5506
- ], Fl = { class: "hidden md:flex" }, jl = ["textContent", "onClick"], Bl = { class: "w-0 flex-1 flex justify-end" }, Vl = /* @__PURE__ */ Fe(" Next "), Hl = /* @__PURE__ */ m("svg", {
5507
+ ], Fl = { class: "hidden md:flex" }, jl = ["onClick", "textContent"], Bl = { class: "w-0 flex-1 flex justify-end" }, Vl = /* @__PURE__ */ Fe(" Next "), Hl = /* @__PURE__ */ m("svg", {
5507
5508
  class: "ml-3 h-5 w-5",
5508
5509
  fill: "currentColor",
5509
5510
  viewBox: "0 0 20 20"
@@ -5556,14 +5557,14 @@ const wo = {
5556
5557
  ]),
5557
5558
  m("div", Fl, [
5558
5559
  (y(!0), E(K, null, ee(v(r), (s) => (y(), E("a", {
5560
+ key: s,
5559
5561
  href: "#",
5560
5562
  class: Y([
5561
5563
  "-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",
5562
5564
  t.modelValue.page === s ? "border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700" : "border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"
5563
5565
  ]),
5564
- key: s,
5565
- textContent: H(s),
5566
- onClick: Pt((u) => a(s), ["prevent"])
5566
+ onClick: Pt((u) => a(s), ["prevent"]),
5567
+ textContent: H(s)
5567
5568
  }, null, 10, jl))), 128))
5568
5569
  ]),
5569
5570
  m("div", Bl, [
@@ -5726,8 +5727,8 @@ const wo = {
5726
5727
  ]),
5727
5728
  m("div", eu, [
5728
5729
  m("button", {
5729
- onClick: (u) => v(n).remove(i),
5730
- class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"
5730
+ class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",
5731
+ onClick: (u) => v(n).remove(i)
5731
5732
  }, ru, 8, tu)
5732
5733
  ])
5733
5734
  ])
@@ -5829,7 +5830,7 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
5829
5830
  }, "​", -1), uu = { class: "inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full" }, du = { class: "block absolute top-0 right-0 pt-4 pr-4" }, cu = /* @__PURE__ */ m("span", { class: "sr-only" }, "Close", -1), fu = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, pu = { class: "mt-3 sm:mt-0 sm:text-left" }, mu = { class: "mt-2" }, hu = {
5830
5831
  key: 0,
5831
5832
  class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
5832
- }, vu = ["textContent", "disabled"], gu = /* @__PURE__ */ L({
5833
+ }, vu = ["disabled", "textContent"], gu = /* @__PURE__ */ L({
5833
5834
  props: {
5834
5835
  destructive: { type: Boolean, default: !1 },
5835
5836
  disabled: { type: Boolean, default: !1 },
@@ -5853,8 +5854,8 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
5853
5854
  as: "div",
5854
5855
  static: "",
5855
5856
  class: "fixed z-30 inset-0 overflow-y-auto",
5856
- onClose: o[3] || (o[3] = (i) => a(!1)),
5857
- open: t.modelValue
5857
+ open: t.modelValue,
5858
+ onClose: o[3] || (o[3] = (i) => a(!1))
5858
5859
  }, {
5859
5860
  default: P(() => [
5860
5861
  m("div", su, [
@@ -5917,15 +5918,15 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
5917
5918
  m("button", {
5918
5919
  type: "button",
5919
5920
  class: Y(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm", [t.destructive ? "xy-btn-red" : "xy-btn"]]),
5921
+ disabled: t.disabled,
5920
5922
  onClick: o[1] || (o[1] = (i) => e()),
5921
- textContent: H(t.submitText),
5922
- disabled: t.disabled
5923
+ textContent: H(t.submitText)
5923
5924
  }, null, 10, vu),
5924
5925
  m("button", {
5926
+ ref: "cancelButtonRef",
5925
5927
  type: "button",
5926
5928
  class: "xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
5927
- onClick: o[2] || (o[2] = (i) => a(!1)),
5928
- ref: "cancelButtonRef"
5929
+ onClick: o[2] || (o[2] = (i) => a(!1))
5929
5930
  }, " Cancel ", 512)
5930
5931
  ])) : W("", !0),
5931
5932
  ne(r.$slots, "buttons")
@@ -6104,8 +6105,8 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
6104
6105
  as: "div",
6105
6106
  static: "",
6106
6107
  class: "fixed inset-0 flex z-10 md:hidden",
6107
- onClose: o[1] || (o[1] = (i) => e.value = !1),
6108
- open: e.value
6108
+ open: e.value,
6109
+ onClose: o[1] || (o[1] = (i) => e.value = !1)
6109
6110
  }, {
6110
6111
  default: P(() => [
6111
6112
  k(v(Je), {
@@ -6495,8 +6496,8 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
6495
6496
  as: "div",
6496
6497
  static: "",
6497
6498
  class: "fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",
6498
- onClose: i[1] || (i[1] = (s) => r()),
6499
- open: t.modelValue
6499
+ open: t.modelValue,
6500
+ onClose: i[1] || (i[1] = (s) => r())
6500
6501
  }, {
6501
6502
  default: P(() => [
6502
6503
  m("div", cd, [
@@ -6777,8 +6778,8 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
6777
6778
  m("thead", null, [
6778
6779
  m("tr", null, [
6779
6780
  (y(!0), E(K, null, ee(t.tableData.columns, (r, o) => (y(), E("th", {
6780
- class: "px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase bg-gray-50 leading-4",
6781
6781
  key: o,
6782
+ class: "px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase bg-gray-50 leading-4",
6782
6783
  textContent: H(r.display)
6783
6784
  }, null, 8, ac))), 128))
6784
6785
  ])
@@ -6788,8 +6789,8 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
6788
6789
  key: r.id ? r.id : o
6789
6790
  }, [
6790
6791
  (y(!0), E(K, null, ee(t.tableData.columns, (i, s) => (y(), E("td", {
6791
- class: "px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",
6792
- key: o + "-" + s
6792
+ key: o + "-" + s,
6793
+ class: "px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"
6793
6794
  }, [
6794
6795
  i.component ? (y(), V(lt(i.component), {
6795
6796
  key: 0,
@@ -6946,6 +6947,7 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
6946
6947
  loader: { type: Boolean, default: !0 },
6947
6948
  tableData: null
6948
6949
  },
6950
+ emits: ["handleClick"],
6949
6951
  setup(t) {
6950
6952
  const n = t, e = S(
6951
6953
  n.tableData.defaultSort ? n.tableData.defaultSort : ""
@@ -7021,9 +7023,9 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7021
7023
  m("div", Sc, [
7022
7024
  Mc,
7023
7025
  Jn(m("input", {
7026
+ "onUpdate:modelValue": C[0] || (C[0] = (D) => s.value = D),
7024
7027
  class: "pl-10",
7025
7028
  type: "search",
7026
- "onUpdate:modelValue": C[0] || (C[0] = (D) => s.value = D),
7027
7029
  placeholder: "Search",
7028
7030
  onChange: C[1] || (C[1] = (D) => p())
7029
7031
  }, null, 544), [
@@ -7051,8 +7053,8 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7051
7053
  m("thead", null, [
7052
7054
  m("tr", null, [
7053
7055
  (y(!0), E(K, null, ee(t.tableData.columns, (D, _) => (y(), E("th", {
7054
- class: "px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase border-b border-gray-200 bg-gray-50 leading-4",
7055
- key: _
7056
+ key: _,
7057
+ class: "px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase border-b border-gray-200 bg-gray-50 leading-4"
7056
7058
  }, [
7057
7059
  D.display.length ? (y(), E("span", Ac, H(D.display), 1)) : W("", !0),
7058
7060
  D.sort ? (y(), E("span", {
@@ -7068,12 +7070,12 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7068
7070
  m("tbody", Yc, [
7069
7071
  (y(!0), E(K, null, ee(o.value, (D, _) => (y(), E("tr", {
7070
7072
  key: D.id ? D.id : _,
7071
- onClick: (O) => w.$emit("handleClick", D),
7072
- class: Y({ "cursor-pointer": t.clickable })
7073
+ class: Y({ "cursor-pointer": t.clickable }),
7074
+ onClick: (O) => w.$emit("handleClick", D)
7073
7075
  }, [
7074
7076
  (y(!0), E(K, null, ee(t.tableData.columns, (O, R) => (y(), E("td", {
7075
- class: Y(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap border-b border-gray-200 leading-5", O.class]),
7076
- key: _ + "-" + R
7077
+ key: _ + "-" + R,
7078
+ class: Y(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap border-b border-gray-200 leading-5", O.class])
7077
7079
  }, [
7078
7080
  O.component ? (y(), V(lt(O.component), {
7079
7081
  key: 0,
@@ -7109,7 +7111,7 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7109
7111
  }), Jc = /* @__PURE__ */ m("label", {
7110
7112
  for: "tabs",
7111
7113
  class: "sr-only"
7112
- }, "Select a tab", -1), Xc = { class: "hidden sm:block" }, Qc = ["textContent", "onClick"], Zc = /* @__PURE__ */ L({
7114
+ }, "Select a tab", -1), Xc = { class: "hidden sm:block" }, Qc = ["onClick", "textContent"], Zc = /* @__PURE__ */ L({
7113
7115
  props: {
7114
7116
  modelValue: null,
7115
7117
  pillDesign: { type: Boolean, default: !1 },
@@ -7132,10 +7134,10 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7132
7134
  Jc,
7133
7135
  k(u, {
7134
7136
  name: "tabs",
7135
- modelValue: t.modelValue,
7136
- "onUpdate:modelValue": s[0] || (s[0] = (c) => a(c)),
7137
- options: t.tabs
7138
- }, null, 8, ["modelValue", "options"])
7137
+ "model-value": t.modelValue,
7138
+ options: t.tabs,
7139
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => a(c))
7140
+ }, null, 8, ["model-value", "options"])
7139
7141
  ], 2),
7140
7142
  m("div", Xc, [
7141
7143
  m("div", {
@@ -7145,11 +7147,11 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7145
7147
  class: Y(["flex", [t.pillDesign ? "ml-8" : "-mb-px"]])
7146
7148
  }, [
7147
7149
  (y(!0), E(K, null, ee(t.tabs, (c, f) => (y(), E("a", {
7150
+ key: f,
7148
7151
  href: "#",
7149
7152
  class: Y(r(c.value, f > 0)),
7150
- key: f,
7151
- textContent: H(c.label),
7152
- onClick: Pt((b) => a(c.value), ["prevent"])
7153
+ onClick: Pt((b) => a(c.value), ["prevent"]),
7154
+ textContent: H(c.label)
7153
7155
  }, null, 10, Qc))), 128))
7154
7156
  ], 2)
7155
7157
  ], 2)
@@ -7168,7 +7170,7 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7168
7170
  t.modelValue ? "bg-blue-600" : "bg-gray-200",
7169
7171
  "relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
7170
7172
  ]),
7171
- modelValue: t.modelValue,
7173
+ "model-value": t.modelValue,
7172
7174
  "onUpdate:modelValue": a[0] || (a[0] = (r) => n("update:modelValue", r))
7173
7175
  }, {
7174
7176
  default: P(() => [
@@ -7182,7 +7184,7 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7182
7184
  }, null, 2)
7183
7185
  ]),
7184
7186
  _: 1
7185
- }, 8, ["class", "modelValue"]));
7187
+ }, 8, ["class", "model-value"]));
7186
7188
  }
7187
7189
  }), nf = { class: "relative flex items-start" }, rf = { class: "flex items-center h-5" }, af = ["id", "aria-labelledby", "aria-describedby", "checked"], of = { class: "ml-3" }, sf = /* @__PURE__ */ L({
7188
7190
  props: {
@@ -7211,15 +7213,15 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
7211
7213
  ]),
7212
7214
  m("div", of, [
7213
7215
  k(Ne, {
7216
+ id: `${v(a)}-label`,
7214
7217
  class: "mt-auto",
7215
7218
  disabled: r.$attrs.hasOwnProperty("disabled") && r.$attrs.disabled !== !1,
7216
- id: `${v(a)}-label`,
7217
7219
  for: v(a),
7218
7220
  label: t.label
7219
- }, null, 8, ["disabled", "id", "for", "label"]),
7221
+ }, null, 8, ["id", "disabled", "for", "label"]),
7220
7222
  k(Ie, {
7221
- class: "-mt-1",
7222
7223
  id: `${v(a)}-help`,
7224
+ class: "-mt-1",
7223
7225
  text: t.help
7224
7226
  }, null, 8, ["id", "text"])
7225
7227
  ])
@@ -7277,10 +7279,10 @@ const gn = /* @__PURE__ */ L({
7277
7279
  _: 3
7278
7280
  }, 8, ["id"]),
7279
7281
  k(Ie, {
7282
+ id: `${v(o)}-help`,
7280
7283
  tag: "p",
7281
- text: t.help,
7282
- id: `${v(o)}-help`
7283
- }, null, 8, ["text", "id"])
7284
+ text: t.help
7285
+ }, null, 8, ["id", "text"])
7284
7286
  ])) : W("", !0),
7285
7287
  m("div", ff, [
7286
7288
  m("div", {
@@ -7313,15 +7315,15 @@ const gn = /* @__PURE__ */ L({
7313
7315
  ]),
7314
7316
  m("div", hf, [
7315
7317
  k(Ne, {
7318
+ id: `${v(o)}-${b}-label`,
7316
7319
  class: "mt-auto",
7317
7320
  disabled: u.$attrs.hasOwnProperty("disabled") && u.$attrs.disabled !== !1 || f.disabled === !0,
7318
- id: `${v(o)}-${b}-label`,
7319
7321
  for: `${v(o)}-${b}`,
7320
7322
  label: f.label
7321
- }, null, 8, ["disabled", "id", "for", "label"]),
7323
+ }, null, 8, ["id", "disabled", "for", "label"]),
7322
7324
  k(Ie, {
7323
- class: "-mt-1",
7324
7325
  id: `${v(o)}-${b}-help`,
7326
+ class: "-mt-1",
7325
7327
  text: f.help
7326
7328
  }, null, 8, ["id", "text"])
7327
7329
  ])
@@ -7333,7 +7335,7 @@ const gn = /* @__PURE__ */ L({
7333
7335
  }), gf = ["aria-labelledby", "aria-describedby"], bf = {
7334
7336
  key: 0,
7335
7337
  class: "space-y-0.5"
7336
- }, yf = { key: 0 }, wf = { class: "flex" }, xf = { class: "flex items-center h-5" }, Cf = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"], Df = { class: "ml-3" }, $f = /* @__PURE__ */ L({
7338
+ }, yf = { key: 0 }, wf = { class: "flex" }, xf = { class: "flex items-center h-5" }, Cf = ["id", "aria-describedby", "aria-labelledby", "checked", "disabled", "name", "value"], Df = { class: "ml-3" }, $f = /* @__PURE__ */ L({
7337
7339
  props: {
7338
7340
  options: null,
7339
7341
  help: { default: "" },
@@ -7360,10 +7362,10 @@ const gn = /* @__PURE__ */ L({
7360
7362
  _: 3
7361
7363
  }, 8, ["id"]),
7362
7364
  k(Ie, {
7365
+ id: `${v(o)}-help`,
7363
7366
  tag: "p",
7364
- text: t.help,
7365
- id: `${v(o)}-help`
7366
- }, null, 8, ["text", "id"])
7367
+ text: t.help
7368
+ }, null, 8, ["id", "text"])
7367
7369
  ])) : W("", !0),
7368
7370
  m("div", wf, [
7369
7371
  m("div", {
@@ -7380,12 +7382,12 @@ const gn = /* @__PURE__ */ L({
7380
7382
  }, [
7381
7383
  m("div", xf, [
7382
7384
  m("input", je({
7385
+ id: `${v(o)}-${f}`,
7383
7386
  "aria-describedby": c != null && c.help && c.help ? `${v(o)}-${f}-help` : void 0,
7384
7387
  "aria-labelledby": `${v(o)}-${f}-label`,
7385
7388
  checked: t.modelValue === c.value,
7386
7389
  class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
7387
7390
  disabled: c.disabled === !0 ? !0 : void 0,
7388
- id: `${v(o)}-${f}`,
7389
7391
  name: v(o),
7390
7392
  type: "radio",
7391
7393
  value: c.value
@@ -7398,15 +7400,15 @@ const gn = /* @__PURE__ */ L({
7398
7400
  ]),
7399
7401
  m("div", Df, [
7400
7402
  k(Ne, {
7403
+ id: `${v(o)}-${f}-label`,
7401
7404
  class: "mt-auto",
7402
7405
  disabled: s.$attrs.hasOwnProperty("disabled") && s.$attrs.disabled !== !1 || c.disabled === !0,
7403
- id: `${v(o)}-${f}-label`,
7404
7406
  for: `${v(o)}-${f}`,
7405
7407
  label: c.label
7406
- }, null, 8, ["disabled", "id", "for", "label"]),
7408
+ }, null, 8, ["id", "disabled", "for", "label"]),
7407
7409
  k(Ie, {
7408
- class: "-mt-1",
7409
7410
  id: `${v(o)}-${f}-help`,
7411
+ class: "-mt-1",
7410
7412
  text: c.help
7411
7413
  }, null, 8, ["id", "text"])
7412
7414
  ])
@@ -7432,11 +7434,11 @@ const gn = /* @__PURE__ */ L({
7432
7434
  o.value = f, i.value = !1, n("update:modelValue", f);
7433
7435
  }, c = F(() => typeof a.name == "string" && a.name !== "" ? a.name : r);
7434
7436
  return (f, b) => (y(), V(v(Us), {
7435
- modelValue: v(s),
7436
- "onUpdate:modelValue": u,
7437
+ "model-value": v(s),
7437
7438
  disabled: typeof v(a).disabled == "boolean" ? v(a).disabled : !1,
7438
7439
  "aria-invalid": i.value === !0 ? "true" : null,
7439
- "aria-errormessage": i.value === !0 ? `error-${v(r)}` : null
7440
+ "aria-errormessage": i.value === !0 ? `error-${v(r)}` : null,
7441
+ "onUpdate:modelValue": u
7440
7442
  }, {
7441
7443
  default: P(() => [
7442
7444
  t.legend ? (y(), V(v(ma), {
@@ -7471,9 +7473,9 @@ const gn = /* @__PURE__ */ L({
7471
7473
  }])
7472
7474
  }, [
7473
7475
  (y(!0), E(K, null, ee(t.options, (p) => (y(), V(v(Ys), {
7476
+ key: p.value,
7474
7477
  as: "template",
7475
7478
  disabled: p != null && p.disabled ? p.disabled : !1,
7476
- key: p.value,
7477
7479
  value: p.value
7478
7480
  }, {
7479
7481
  default: P(({ active: g, checked: w, disabled: C }) => [
@@ -7559,9 +7561,9 @@ const gn = /* @__PURE__ */ L({
7559
7561
  ], 2)
7560
7562
  ]),
7561
7563
  _: 3
7562
- }, 8, ["modelValue", "disabled", "aria-invalid", "aria-errormessage"]));
7564
+ }, 8, ["model-value", "disabled", "aria-invalid", "aria-errormessage"]));
7563
7565
  }
7564
- }), Of = ["aria-labelledby", "aria-describedby", "id", "value"], Pf = /* @__PURE__ */ L({
7566
+ }), Of = ["id", "aria-labelledby", "aria-describedby", "value"], Pf = /* @__PURE__ */ L({
7565
7567
  props: {
7566
7568
  help: { default: "" },
7567
7569
  label: { default: "" },
@@ -7572,12 +7574,13 @@ const gn = /* @__PURE__ */ L({
7572
7574
  const a = Ke().id || ze.CreateIdAttribute();
7573
7575
  return (r, o) => (y(), E(K, null, [
7574
7576
  k(Ne, {
7575
- class: "block",
7576
7577
  id: `${v(a)}-label`,
7578
+ class: "block",
7577
7579
  for: v(a),
7578
7580
  label: t.label
7579
7581
  }, null, 8, ["id", "for", "label"]),
7580
7582
  m("textarea", je({
7583
+ id: v(a),
7581
7584
  "aria-labelledby": t.label ? `${v(a)}-label` : void 0,
7582
7585
  "aria-describedby": t.help ? `${v(a)}-help` : void 0,
7583
7586
  class: [
@@ -7593,10 +7596,10 @@ const gn = /* @__PURE__ */ L({
7593
7596
  "disabled:opacity-70",
7594
7597
  "disabled:cursor-not-allowed"
7595
7598
  ],
7596
- id: v(a),
7597
- value: t.modelValue,
7599
+ value: t.modelValue
7600
+ }, r.$attrs, {
7598
7601
  onInput: o[0] || (o[0] = (i) => n("update:modelValue", i.target.value))
7599
- }, r.$attrs), null, 16, Of),
7602
+ }), null, 16, Of),
7600
7603
  k(Ie, {
7601
7604
  id: `${v(a)}-help`,
7602
7605
  text: t.help
@@ -7630,10 +7633,10 @@ const gn = /* @__PURE__ */ L({
7630
7633
  tag: "legend"
7631
7634
  }, null, 8, ["label"]),
7632
7635
  k(Ie, {
7636
+ id: `${v(r)}-help`,
7633
7637
  tag: "p",
7634
- text: t.help,
7635
- id: `${v(r)}-help`
7636
- }, null, 8, ["text", "id"])
7638
+ text: t.help
7639
+ }, null, 8, ["id", "text"])
7637
7640
  ])) : W("", !0),
7638
7641
  m("div", null, [
7639
7642
  m("label", {
@@ -7641,9 +7644,9 @@ const gn = /* @__PURE__ */ L({
7641
7644
  for: `${v(o) ? t.name : v(r)}-true`
7642
7645
  }, [
7643
7646
  m("input", je({
7647
+ id: `${v(o) ? t.name : v(r)}-true`,
7644
7648
  type: "radio",
7645
7649
  class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
7646
- id: `${v(o) ? t.name : v(r)}-true`,
7647
7650
  name: v(o) ? t.name : v(r),
7648
7651
  value: !0,
7649
7652
  checked: t.modelValue === !0
@@ -7663,9 +7666,9 @@ const gn = /* @__PURE__ */ L({
7663
7666
  for: `${v(o) ? t.name : v(r)}-false`
7664
7667
  }, [
7665
7668
  m("input", je({
7669
+ id: `${v(o) ? t.name : v(r)}-false`,
7666
7670
  type: "radio",
7667
7671
  class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
7668
- id: `${v(o) ? t.name : v(r)}-false`,
7669
7672
  name: v(o) ? t.name : v(r),
7670
7673
  value: !1,
7671
7674
  checked: t.modelValue === !1