@xy-planning-network/trees 0.4.2 → 0.4.3

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/trees.es.js CHANGED
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, onMounted, nextTick, watch, openBlock, createBlock, createVNode, unref, withCtx, Transition, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, normalizeProps, mergeProps, createTextVNode, useAttrs, withModifiers, TransitionGroup, withDirectives, vShow, normalizeStyle, getCurrentInstance, vModelText, resolveComponent, vModelCheckbox } from "vue";
20
+ import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, onMounted, nextTick, watch, openBlock, createBlock, createVNode, unref, withCtx, Transition, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, mergeProps, createTextVNode, normalizeProps, useAttrs, withModifiers, TransitionGroup, withDirectives, vShow, normalizeStyle, getCurrentInstance, vModelText, resolveComponent, Comment as Comment$1, Text, useSlots } from "vue";
21
21
  var axios$2 = { exports: {} };
22
22
  var bind$2 = function bind(fn, thisArg) {
23
23
  return function wrap() {
@@ -4172,8 +4172,8 @@ function render$5(_ctx, _cache) {
4172
4172
  }
4173
4173
  const _hoisted_1$q = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
4174
4174
  const _hoisted_2$k = { class: "py-1" };
4175
- const _hoisted_3$h = ["textContent", "onClick"];
4176
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
4175
+ const _hoisted_3$j = ["textContent", "onClick"];
4176
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
4177
4177
  props: {
4178
4178
  currentUser: null,
4179
4179
  items: null,
@@ -4249,7 +4249,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4249
4249
  ]),
4250
4250
  textContent: toDisplayString(item.label),
4251
4251
  onClick: ($event) => emitEvent(item.event)
4252
- }, null, 10, _hoisted_3$h)
4252
+ }, null, 10, _hoisted_3$j)
4253
4253
  ]),
4254
4254
  _: 2
4255
4255
  }, 1024)) : createCommentVNode("", true)
@@ -4270,8 +4270,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4270
4270
  });
4271
4271
  const _hoisted_1$p = { class: "px-4 py-5 sm:p-6 text-center" };
4272
4272
  const _hoisted_2$j = ["textContent"];
4273
- const _hoisted_3$g = ["textContent"];
4274
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
4273
+ const _hoisted_3$i = ["textContent"];
4274
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4275
4275
  props: {
4276
4276
  cards: null
4277
4277
  },
@@ -4294,7 +4294,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4294
4294
  createElementVNode("dt", {
4295
4295
  class: "text-sm leading-5 font-medium text-gray-700 truncate",
4296
4296
  textContent: toDisplayString(card.secondary)
4297
- }, null, 8, _hoisted_3$g)
4297
+ }, null, 8, _hoisted_3$i)
4298
4298
  ])
4299
4299
  ])
4300
4300
  ]);
@@ -4308,11 +4308,11 @@ const _hoisted_2$i = /* @__PURE__ */ createElementVNode("span", {
4308
4308
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
4309
4309
  "aria-hidden": "true"
4310
4310
  }, "\u200B", -1);
4311
- const _hoisted_3$f = { class: "inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6" };
4312
- const _hoisted_4$b = { class: "mt-3 text-center sm:mt-5" };
4313
- const _hoisted_5$9 = { class: "mt-2" };
4314
- const _hoisted_6$9 = { class: "mt-5 sm:mt-6" };
4315
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
4311
+ const _hoisted_3$h = { class: "inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6" };
4312
+ const _hoisted_4$e = { class: "mt-3 text-center sm:mt-5" };
4313
+ const _hoisted_5$c = { class: "mt-2" };
4314
+ const _hoisted_6$c = { class: "mt-5 sm:mt-6" };
4315
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4316
4316
  props: {
4317
4317
  modelValue: { type: Boolean },
4318
4318
  title: { default: "" }
@@ -4362,20 +4362,20 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4362
4362
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
4363
4363
  }, {
4364
4364
  default: withCtx(() => [
4365
- createElementVNode("div", _hoisted_3$f, [
4365
+ createElementVNode("div", _hoisted_3$h, [
4366
4366
  createElementVNode("div", null, [
4367
4367
  renderSlot(_ctx.$slots, "icon"),
4368
- createElementVNode("div", _hoisted_4$b, [
4368
+ createElementVNode("div", _hoisted_4$e, [
4369
4369
  createVNode(unref(DialogTitle), {
4370
4370
  as: "h3",
4371
4371
  textContent: toDisplayString(__props.title)
4372
4372
  }, null, 8, ["textContent"]),
4373
- createElementVNode("div", _hoisted_5$9, [
4373
+ createElementVNode("div", _hoisted_5$c, [
4374
4374
  renderSlot(_ctx.$slots, "default")
4375
4375
  ])
4376
4376
  ])
4377
4377
  ]),
4378
- createElementVNode("div", _hoisted_6$9, [
4378
+ createElementVNode("div", _hoisted_6$c, [
4379
4379
  createElementVNode("button", {
4380
4380
  type: "button",
4381
4381
  class: "inline-flex justify-center w-full xy-btn",
@@ -6489,25 +6489,30 @@ if (typeof window !== "undefined") {
6489
6489
  window.flatpickr = flatpickr;
6490
6490
  }
6491
6491
  var flatpickr_min = "";
6492
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
6492
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
6493
6493
  props: {
6494
+ disabled: { type: Boolean, default: false },
6494
6495
  label: { default: "" },
6495
6496
  tag: { default: "label" }
6496
6497
  },
6497
6498
  setup(__props) {
6498
6499
  return (_ctx, _cache) => {
6499
- return __props.label ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
6500
- class: "block my-1 text-sm font-semibold leading-snug text-gray-900"
6501
- }))), {
6500
+ return __props.label ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps({
6501
+ key: 0,
6502
+ class: {
6503
+ "block my-1 text-sm font-semibold leading-snug text-gray-900": true,
6504
+ "opacity-75": __props.disabled
6505
+ }
6506
+ }, __spreadValues({}, _ctx.$attrs)), {
6502
6507
  default: withCtx(() => [
6503
6508
  createTextVNode(toDisplayString(__props.label), 1)
6504
6509
  ]),
6505
6510
  _: 1
6506
- }, 16)) : createCommentVNode("", true);
6511
+ }, 16, ["class"])) : createCommentVNode("", true);
6507
6512
  };
6508
6513
  }
6509
6514
  });
6510
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
6515
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6511
6516
  props: {
6512
6517
  tag: { default: "div" },
6513
6518
  text: { default: "" }
@@ -6515,7 +6520,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6515
6520
  setup(__props) {
6516
6521
  return (_ctx, _cache) => {
6517
6522
  return __props.text ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
6518
- class: "mt-2 text-sm leading-snug font-semibold text-gray-700"
6523
+ class: "mt-1 text-sm leading-snug font-normal text-gray-700"
6519
6524
  }))), {
6520
6525
  default: withCtx(() => [
6521
6526
  createTextVNode(toDisplayString(__props.text), 1)
@@ -6526,7 +6531,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6526
6531
  }
6527
6532
  });
6528
6533
  const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6529
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
6534
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6530
6535
  props: {
6531
6536
  type: null,
6532
6537
  help: { default: "" },
@@ -6557,7 +6562,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6557
6562
  });
6558
6563
  return (_ctx, _cache) => {
6559
6564
  return openBlock(), createElementBlock(Fragment, null, [
6560
- createVNode(_sfc_main$r, {
6565
+ createVNode(_sfc_main$s, {
6561
6566
  class: "block",
6562
6567
  id: `${unref(uuid)}-label`,
6563
6568
  for: unref(uuid),
@@ -6575,7 +6580,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6575
6580
  "focus:border-blue-500",
6576
6581
  "border-gray-600",
6577
6582
  "rounded-md",
6578
- "w-full"
6583
+ "w-full",
6584
+ "disabled:opacity-70",
6585
+ "disabled:cursor-not-allowed"
6579
6586
  ] : []
6580
6587
  ],
6581
6588
  id: unref(uuid),
@@ -6584,7 +6591,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6584
6591
  value: __props.modelValue,
6585
6592
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
6586
6593
  }, _ctx.$attrs), null, 16, _hoisted_1$n),
6587
- createVNode(_sfc_main$q, {
6594
+ createVNode(_sfc_main$r, {
6588
6595
  id: `${unref(uuid)}-help`,
6589
6596
  text: __props.help
6590
6597
  }, null, 8, ["id", "text"])
@@ -6592,7 +6599,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6592
6599
  };
6593
6600
  }
6594
6601
  });
6595
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
6602
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6596
6603
  props: {
6597
6604
  modelValue: null,
6598
6605
  startDate: { default: 0 },
@@ -6629,7 +6636,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6629
6636
  });
6630
6637
  });
6631
6638
  return (_ctx, _cache) => {
6632
- return openBlock(), createBlock(_sfc_main$p, {
6639
+ return openBlock(), createBlock(_sfc_main$q, {
6633
6640
  type: "text",
6634
6641
  placeholder: "mm-dd-yyyy range",
6635
6642
  id: unref(uuid),
@@ -6646,8 +6653,8 @@ const _hoisted_2$h = {
6646
6653
  disabled: "",
6647
6654
  selected: ""
6648
6655
  };
6649
- const _hoisted_3$e = ["value", "textContent"];
6650
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
6656
+ const _hoisted_3$g = ["value", "textContent"];
6657
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6651
6658
  props: {
6652
6659
  design: { default: "standard" },
6653
6660
  label: { default: "" },
@@ -6663,13 +6670,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6663
6670
  const uuid = attrs.id || Uniques.CreateIdAttribute();
6664
6671
  const classes = computed(() => {
6665
6672
  return {
6666
- standard: "mt-1 block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
6667
- compressed: "appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-600 text-gray-900 focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm"
6673
+ standard: "mt-1 block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm disabled:opacity-70 disabled:cursor-not-allowed",
6674
+ compressed: "appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-600 text-gray-900 focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm disabled:opacity-70 disabled:cursor-not-allowed"
6668
6675
  }[props.design];
6669
6676
  });
6670
6677
  return (_ctx, _cache) => {
6671
6678
  return openBlock(), createElementBlock(Fragment, null, [
6672
- createVNode(_sfc_main$r, {
6679
+ createVNode(_sfc_main$s, {
6673
6680
  id: `${unref(uuid)}-label`,
6674
6681
  for: unref(uuid),
6675
6682
  label: __props.label
@@ -6691,10 +6698,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6691
6698
  value: option.value,
6692
6699
  textContent: toDisplayString(option.label),
6693
6700
  key: option.value
6694
- }, null, 8, _hoisted_3$e);
6701
+ }, null, 8, _hoisted_3$g);
6695
6702
  }), 128))
6696
6703
  ], 16, _hoisted_1$m),
6697
- createVNode(_sfc_main$q, {
6704
+ createVNode(_sfc_main$r, {
6698
6705
  id: `${unref(uuid)}-help`,
6699
6706
  text: __props.help
6700
6707
  }, null, 8, ["id", "text"])
@@ -6704,9 +6711,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6704
6711
  });
6705
6712
  const _hoisted_1$l = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
6706
6713
  const _hoisted_2$g = { class: "flex-1 min-w-0" };
6707
- const _hoisted_3$d = { class: "text-lg leading-6 font-semibold text-gray-900" };
6708
- const _hoisted_4$a = { class: "mt-4 flex md:mt-0 md:ml-4" };
6709
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
6714
+ const _hoisted_3$f = { class: "text-lg leading-6 font-semibold text-gray-900" };
6715
+ const _hoisted_4$d = { class: "mt-4 flex md:mt-0 md:ml-4" };
6716
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6710
6717
  props: {
6711
6718
  dateRange: null,
6712
6719
  sortDir: null,
@@ -6730,10 +6737,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6730
6737
  return (_ctx, _cache) => {
6731
6738
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
6732
6739
  createElementVNode("div", _hoisted_2$g, [
6733
- createElementVNode("h1", _hoisted_3$d, toDisplayString(__props.title), 1)
6740
+ createElementVNode("h1", _hoisted_3$f, toDisplayString(__props.title), 1)
6734
6741
  ]),
6735
- createElementVNode("div", _hoisted_4$a, [
6736
- createVNode(_sfc_main$n, {
6742
+ createElementVNode("div", _hoisted_4$d, [
6743
+ createVNode(_sfc_main$o, {
6737
6744
  modelValue: sortDir.value,
6738
6745
  "onUpdate:modelValue": [
6739
6746
  _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
@@ -6741,7 +6748,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6741
6748
  ],
6742
6749
  options: sortOptions
6743
6750
  }, null, 8, ["modelValue"]),
6744
- createVNode(_sfc_main$o, {
6751
+ createVNode(_sfc_main$p, {
6745
6752
  modelValue: dateRange.value,
6746
6753
  "onUpdate:modelValue": [
6747
6754
  _cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
@@ -6756,7 +6763,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6756
6763
  });
6757
6764
  const _hoisted_1$k = { class: "px-4 flex items-center justify-between sm:px-0" };
6758
6765
  const _hoisted_2$f = { class: "w-0 flex-1 flex" };
6759
- const _hoisted_3$c = /* @__PURE__ */ createElementVNode("svg", {
6766
+ const _hoisted_3$e = /* @__PURE__ */ createElementVNode("svg", {
6760
6767
  class: "mr-3 h-5 w-5",
6761
6768
  fill: "currentColor",
6762
6769
  viewBox: "0 0 20 20"
@@ -6767,12 +6774,12 @@ const _hoisted_3$c = /* @__PURE__ */ createElementVNode("svg", {
6767
6774
  "clip-rule": "evenodd"
6768
6775
  })
6769
6776
  ], -1);
6770
- const _hoisted_4$9 = /* @__PURE__ */ createTextVNode(" Previous ");
6771
- const _hoisted_5$8 = [
6772
- _hoisted_3$c,
6773
- _hoisted_4$9
6777
+ const _hoisted_4$c = /* @__PURE__ */ createTextVNode(" Previous ");
6778
+ const _hoisted_5$b = [
6779
+ _hoisted_3$e,
6780
+ _hoisted_4$c
6774
6781
  ];
6775
- const _hoisted_6$8 = { class: "hidden md:flex" };
6782
+ const _hoisted_6$b = { class: "hidden md:flex" };
6776
6783
  const _hoisted_7$8 = ["textContent", "onClick"];
6777
6784
  const _hoisted_8$8 = { class: "w-0 flex-1 flex justify-end" };
6778
6785
  const _hoisted_9$8 = /* @__PURE__ */ createTextVNode(" Next ");
@@ -6791,7 +6798,7 @@ const _hoisted_11$5 = [
6791
6798
  _hoisted_9$8,
6792
6799
  _hoisted_10$8
6793
6800
  ];
6794
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
6801
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6795
6802
  props: {
6796
6803
  modelValue: null
6797
6804
  },
@@ -6833,9 +6840,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6833
6840
  __props.modelValue.page == 1 ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
6834
6841
  ]),
6835
6842
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(__props.modelValue.page - 1), ["prevent"]))
6836
- }, _hoisted_5$8, 2)
6843
+ }, _hoisted_5$b, 2)
6837
6844
  ]),
6838
- createElementVNode("div", _hoisted_6$8, [
6845
+ createElementVNode("div", _hoisted_6$b, [
6839
6846
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(pageShortcuts), (i) => {
6840
6847
  return openBlock(), createElementBlock("a", {
6841
6848
  href: "#",
@@ -6867,7 +6874,7 @@ const _hoisted_1$j = {
6867
6874
  key: 0,
6868
6875
  class: "shadow overflow-hidden sm:rounded-md border"
6869
6876
  };
6870
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
6877
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6871
6878
  props: {
6872
6879
  refreshTrigger: { default: 0 },
6873
6880
  reloadTrigger: { default: 0 },
@@ -6922,7 +6929,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6922
6929
  loadAndRender(true);
6923
6930
  return (_ctx, _cache) => {
6924
6931
  return openBlock(), createElementBlock("div", null, [
6925
- createVNode(_sfc_main$m, {
6932
+ createVNode(_sfc_main$n, {
6926
6933
  "date-range": dateRange.value,
6927
6934
  "sort-dir": sortDir.value,
6928
6935
  title: __props.title,
@@ -6941,7 +6948,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6941
6948
  }), 128))
6942
6949
  ])
6943
6950
  ])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
6944
- hasContent.value ? (openBlock(), createBlock(_sfc_main$l, {
6951
+ hasContent.value ? (openBlock(), createBlock(_sfc_main$m, {
6945
6952
  key: 2,
6946
6953
  modelValue: pagination.value,
6947
6954
  "onUpdate:modelValue": [
@@ -6954,7 +6961,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6954
6961
  }
6955
6962
  });
6956
6963
  const _hoisted_1$i = ["href"];
6957
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
6964
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6958
6965
  props: {
6959
6966
  propsData: null,
6960
6967
  attribute: null
@@ -6971,10 +6978,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6971
6978
  });
6972
6979
  const _hoisted_1$h = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
6973
6980
  const _hoisted_2$e = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
6974
- const _hoisted_3$b = { class: "p-4" };
6975
- const _hoisted_4$8 = { class: "flex items-center" };
6976
- const _hoisted_5$7 = { class: "w-0 flex-1 flex justify-between" };
6977
- const _hoisted_6$7 = ["innerHTML"];
6981
+ const _hoisted_3$d = { class: "p-4" };
6982
+ const _hoisted_4$b = { class: "flex items-center" };
6983
+ const _hoisted_5$a = { class: "w-0 flex-1 flex justify-between" };
6984
+ const _hoisted_6$a = ["innerHTML"];
6978
6985
  const _hoisted_7$7 = { class: "ml-4 flex-shrink-0 flex" };
6979
6986
  const _hoisted_8$7 = ["onClick"];
6980
6987
  const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
@@ -6991,7 +6998,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
6991
6998
  const _hoisted_10$7 = [
6992
6999
  _hoisted_9$7
6993
7000
  ];
6994
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
7001
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6995
7002
  setup(__props) {
6996
7003
  const flashes = ref([]);
6997
7004
  const flashTypeBorderClass = {
@@ -7064,13 +7071,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
7064
7071
  class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
7065
7072
  }, [
7066
7073
  createElementVNode("div", _hoisted_2$e, [
7067
- createElementVNode("div", _hoisted_3$b, [
7068
- createElementVNode("div", _hoisted_4$8, [
7069
- createElementVNode("div", _hoisted_5$7, [
7074
+ createElementVNode("div", _hoisted_3$d, [
7075
+ createElementVNode("div", _hoisted_4$b, [
7076
+ createElementVNode("div", _hoisted_5$a, [
7070
7077
  createElementVNode("p", {
7071
7078
  class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
7072
7079
  innerHTML: flash.message
7073
- }, null, 8, _hoisted_6$7)
7080
+ }, null, 8, _hoisted_6$a)
7074
7081
  ]),
7075
7082
  createElementVNode("div", _hoisted_7$7, [
7076
7083
  createElementVNode("button", {
@@ -7175,10 +7182,10 @@ const _hoisted_2$d = /* @__PURE__ */ createElementVNode("span", {
7175
7182
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
7176
7183
  "aria-hidden": "true"
7177
7184
  }, "\u200B", -1);
7178
- const _hoisted_3$a = { 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" };
7179
- const _hoisted_4$7 = { class: "block absolute top-0 right-0 pt-4 pr-4" };
7180
- const _hoisted_5$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
7181
- const _hoisted_6$6 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
7185
+ const _hoisted_3$c = { 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" };
7186
+ const _hoisted_4$a = { class: "block absolute top-0 right-0 pt-4 pr-4" };
7187
+ const _hoisted_5$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
7188
+ const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
7182
7189
  const _hoisted_7$6 = { class: "mt-3 sm:mt-0 sm:text-left" };
7183
7190
  const _hoisted_8$6 = { class: "mt-2" };
7184
7191
  const _hoisted_9$6 = {
@@ -7186,7 +7193,7 @@ const _hoisted_9$6 = {
7186
7193
  class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
7187
7194
  };
7188
7195
  const _hoisted_10$6 = ["textContent", "disabled"];
7189
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
7196
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
7190
7197
  props: {
7191
7198
  destructive: { type: Boolean, default: false },
7192
7199
  disabled: { type: Boolean, default: false },
@@ -7242,21 +7249,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7242
7249
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
7243
7250
  }, {
7244
7251
  default: withCtx(() => [
7245
- createElementVNode("div", _hoisted_3$a, [
7246
- createElementVNode("div", _hoisted_4$7, [
7252
+ createElementVNode("div", _hoisted_3$c, [
7253
+ createElementVNode("div", _hoisted_4$a, [
7247
7254
  createElementVNode("button", {
7248
7255
  type: "button",
7249
7256
  class: "bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",
7250
7257
  onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue2(false))
7251
7258
  }, [
7252
- _hoisted_5$6,
7259
+ _hoisted_5$9,
7253
7260
  createVNode(unref(render), {
7254
7261
  class: "h-6 w-6",
7255
7262
  "aria-hidden": "true"
7256
7263
  })
7257
7264
  ])
7258
7265
  ]),
7259
- createElementVNode("div", _hoisted_6$6, [
7266
+ createElementVNode("div", _hoisted_6$9, [
7260
7267
  createElementVNode("div", _hoisted_7$6, [
7261
7268
  createVNode(unref(DialogTitle), {
7262
7269
  as: "h3",
@@ -7380,7 +7387,7 @@ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
7380
7387
  ])
7381
7388
  ])
7382
7389
  ], -1);
7383
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
7390
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
7384
7391
  setup(__props) {
7385
7392
  const idx = ref(0);
7386
7393
  const loading = ref(false);
@@ -7454,10 +7461,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7454
7461
  });
7455
7462
  const _hoisted_1$e = { class: "h-screen flex overflow-hidden bg-gray-100" };
7456
7463
  const _hoisted_2$b = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" };
7457
- const _hoisted_3$9 = { class: "absolute top-0 right-0 -mr-12 pt-2" };
7458
- const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
7459
- const _hoisted_5$5 = { class: "flex-shrink-0 flex justify-center px-4" };
7460
- const _hoisted_6$5 = ["src"];
7464
+ const _hoisted_3$b = { class: "absolute top-0 right-0 -mr-12 pt-2" };
7465
+ const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
7466
+ const _hoisted_5$8 = { class: "flex-shrink-0 flex justify-center px-4" };
7467
+ const _hoisted_6$8 = ["src"];
7461
7468
  const _hoisted_7$5 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
7462
7469
  const _hoisted_8$5 = { class: "px-2 space-y-1" };
7463
7470
  const _hoisted_9$5 = ["href", "target"];
@@ -7484,7 +7491,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
7484
7491
  const _hoisted_27 = ["href"];
7485
7492
  const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
7486
7493
  const _hoisted_29 = { class: "mx-auto" };
7487
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
7494
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7488
7495
  props: {
7489
7496
  activeURL: { default: "" },
7490
7497
  iconURL: null,
@@ -7548,12 +7555,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7548
7555
  "leave-to": "opacity-0"
7549
7556
  }, {
7550
7557
  default: withCtx(() => [
7551
- createElementVNode("div", _hoisted_3$9, [
7558
+ createElementVNode("div", _hoisted_3$b, [
7552
7559
  createElementVNode("button", {
7553
7560
  class: "ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",
7554
7561
  onClick: _cache[0] || (_cache[0] = ($event) => sidebarOpen.value = false)
7555
7562
  }, [
7556
- _hoisted_4$6,
7563
+ _hoisted_4$9,
7557
7564
  createVNode(unref(render), {
7558
7565
  class: "h-6 w-6 text-white",
7559
7566
  "aria-hidden": "true"
@@ -7563,12 +7570,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7563
7570
  ]),
7564
7571
  _: 1
7565
7572
  }),
7566
- createElementVNode("div", _hoisted_5$5, [
7573
+ createElementVNode("div", _hoisted_5$8, [
7567
7574
  createElementVNode("img", {
7568
7575
  class: "w-auto h-12",
7569
7576
  src: __props.iconURL,
7570
7577
  alt: "Logo"
7571
- }, null, 8, _hoisted_6$5)
7578
+ }, null, 8, _hoisted_6$8)
7572
7579
  ]),
7573
7580
  createElementVNode("div", _hoisted_7$5, [
7574
7581
  createElementVNode("nav", _hoisted_8$5, [
@@ -7724,8 +7731,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7724
7731
  ])
7725
7732
  ])
7726
7733
  ]),
7727
- createVNode(_sfc_main$i),
7728
- createVNode(_sfc_main$g)
7734
+ createVNode(_sfc_main$j),
7735
+ createVNode(_sfc_main$h)
7729
7736
  ], 64);
7730
7737
  };
7731
7738
  }
@@ -7740,7 +7747,7 @@ function throttle(func, timeout = 100) {
7740
7747
  }
7741
7748
  };
7742
7749
  }
7743
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
7750
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7744
7751
  props: {
7745
7752
  as: { default: "div" },
7746
7753
  position: { default: "auto" }
@@ -7876,7 +7883,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
7876
7883
  }
7877
7884
  return (_ctx, _cache) => {
7878
7885
  return openBlock(), createBlock(unref(Popover), {
7879
- class: "relative",
7886
+ class: "relative flex",
7880
7887
  as: __props.as
7881
7888
  }, {
7882
7889
  default: withCtx(({ open, close: close2 }) => [
@@ -7936,26 +7943,26 @@ var _export_sfc = (sfc, props) => {
7936
7943
  }
7937
7944
  return target;
7938
7945
  };
7939
- const _sfc_main$d = {};
7946
+ const _sfc_main$e = {};
7940
7947
  const _hoisted_1$d = { class: "w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md" };
7941
7948
  function _sfc_render(_ctx, _cache) {
7942
7949
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
7943
7950
  renderSlot(_ctx.$slots, "default")
7944
7951
  ]);
7945
7952
  }
7946
- var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render]]);
7953
+ var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
7947
7954
  const _hoisted_1$c = { class: "absolute inset-0 overflow-hidden" };
7948
7955
  const _hoisted_2$a = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" };
7949
- const _hoisted_3$8 = { class: "w-screen max-w-md" };
7950
- const _hoisted_4$5 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7951
- const _hoisted_5$4 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
7952
- const _hoisted_6$4 = { class: "flex items-center justify-between" };
7956
+ const _hoisted_3$a = { class: "w-screen max-w-md" };
7957
+ const _hoisted_4$8 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7958
+ const _hoisted_5$7 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
7959
+ const _hoisted_6$7 = { class: "flex items-center justify-between" };
7953
7960
  const _hoisted_7$4 = { class: "ml-3 h-7 flex items-center" };
7954
7961
  const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
7955
7962
  const _hoisted_9$4 = { class: "mt-1" };
7956
7963
  const _hoisted_10$4 = ["textContent"];
7957
7964
  const _hoisted_11$3 = { class: "relative flex-1 py-6 px-4 sm:px-6" };
7958
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
7965
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
7959
7966
  props: {
7960
7967
  header: null,
7961
7968
  description: null,
@@ -7997,10 +8004,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7997
8004
  "leave-to": "translate-x-full"
7998
8005
  }, {
7999
8006
  default: withCtx(() => [
8000
- createElementVNode("div", _hoisted_3$8, [
8001
- createElementVNode("div", _hoisted_4$5, [
8002
- createElementVNode("div", _hoisted_5$4, [
8003
- createElementVNode("div", _hoisted_6$4, [
8007
+ createElementVNode("div", _hoisted_3$a, [
8008
+ createElementVNode("div", _hoisted_4$8, [
8009
+ createElementVNode("div", _hoisted_5$7, [
8010
+ createElementVNode("div", _hoisted_6$7, [
8004
8011
  createVNode(unref(DialogTitle), {
8005
8012
  as: "h3",
8006
8013
  class: "text-white",
@@ -8048,15 +8055,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8048
8055
  });
8049
8056
  const _hoisted_1$b = { class: "leading-none w-4 h-4" };
8050
8057
  const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }, null, -1);
8051
- const _hoisted_3$7 = { class: "w-full max-w-xs bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium" };
8052
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
8058
+ const _hoisted_3$9 = { class: "w-full max-w-xs bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium" };
8059
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8053
8060
  props: {
8054
8061
  as: { default: "span" },
8055
8062
  position: { default: "auto" }
8056
8063
  },
8057
8064
  setup(__props) {
8058
8065
  return (_ctx, _cache) => {
8059
- return openBlock(), createBlock(_sfc_main$e, {
8066
+ return openBlock(), createBlock(_sfc_main$f, {
8060
8067
  position: __props.position,
8061
8068
  as: __props.as
8062
8069
  }, {
@@ -8067,7 +8074,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8067
8074
  ])
8068
8075
  ]),
8069
8076
  default: withCtx(() => [
8070
- createElementVNode("div", _hoisted_3$7, [
8077
+ createElementVNode("div", _hoisted_3$9, [
8071
8078
  renderSlot(_ctx.$slots, "default")
8072
8079
  ])
8073
8080
  ]),
@@ -8078,10 +8085,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8078
8085
  });
8079
8086
  const _hoisted_1$a = { class: "min-h-screen bg-gray-100" };
8080
8087
  const _hoisted_2$8 = { class: "mx-auto px-4 sm:px-6 lg:px-8" };
8081
- const _hoisted_3$6 = { class: "flex justify-between h-16" };
8082
- const _hoisted_4$4 = { class: "flex" };
8083
- const _hoisted_5$3 = { class: "flex-shrink-0 flex items-center" };
8084
- const _hoisted_6$3 = ["src"];
8088
+ const _hoisted_3$8 = { class: "flex justify-between h-16" };
8089
+ const _hoisted_4$7 = { class: "flex" };
8090
+ const _hoisted_5$6 = { class: "flex-shrink-0 flex items-center" };
8091
+ const _hoisted_6$6 = ["src"];
8085
8092
  const _hoisted_7$3 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
8086
8093
  const _hoisted_8$3 = ["href", "aria-current"];
8087
8094
  const _hoisted_9$3 = { class: "hidden sm:ml-6 sm:flex sm:items-center" };
@@ -8101,7 +8108,7 @@ const _hoisted_22$1 = { class: "mt-3 space-y-1" };
8101
8108
  const _hoisted_23$1 = ["href"];
8102
8109
  const _hoisted_24$1 = { class: "mx-auto sm:px-6 lg:px-8" };
8103
8110
  const _hoisted_25 = { class: "px-4 py-8 sm:px-0" };
8104
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
8111
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
8105
8112
  props: {
8106
8113
  activeURL: { default: "" },
8107
8114
  currentUser: null,
@@ -8123,14 +8130,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8123
8130
  }, {
8124
8131
  default: withCtx(({ open }) => [
8125
8132
  createElementVNode("div", _hoisted_2$8, [
8126
- createElementVNode("div", _hoisted_3$6, [
8127
- createElementVNode("div", _hoisted_4$4, [
8128
- createElementVNode("div", _hoisted_5$3, [
8133
+ createElementVNode("div", _hoisted_3$8, [
8134
+ createElementVNode("div", _hoisted_4$7, [
8135
+ createElementVNode("div", _hoisted_5$6, [
8129
8136
  createElementVNode("img", {
8130
8137
  class: "block h-8 w-auto",
8131
8138
  src: __props.iconURL,
8132
8139
  alt: "XY Trees"
8133
- }, null, 8, _hoisted_6$3)
8140
+ }, null, 8, _hoisted_6$6)
8134
8141
  ]),
8135
8142
  createElementVNode("div", _hoisted_7$3, [
8136
8143
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.navigation, (item) => {
@@ -8274,23 +8281,23 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8274
8281
  ])
8275
8282
  ])
8276
8283
  ]),
8277
- createVNode(_sfc_main$i),
8278
- createVNode(_sfc_main$g)
8284
+ createVNode(_sfc_main$j),
8285
+ createVNode(_sfc_main$h)
8279
8286
  ], 64);
8280
8287
  };
8281
8288
  }
8282
8289
  });
8283
8290
  const _hoisted_1$9 = { class: "flex flex-col" };
8284
8291
  const _hoisted_2$7 = { class: "-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" };
8285
- const _hoisted_3$5 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
8286
- const _hoisted_4$3 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
8287
- const _hoisted_5$2 = { class: "min-w-full divide-y divide-gray-200" };
8288
- const _hoisted_6$2 = ["textContent"];
8292
+ const _hoisted_3$7 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
8293
+ const _hoisted_4$6 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
8294
+ const _hoisted_5$5 = { class: "min-w-full divide-y divide-gray-200" };
8295
+ const _hoisted_6$5 = ["textContent"];
8289
8296
  const _hoisted_7$2 = { class: "bg-white divide-y divide-gray-200" };
8290
8297
  const _hoisted_8$2 = ["textContent"];
8291
8298
  const _hoisted_9$2 = { key: 0 };
8292
8299
  const _hoisted_10$2 = ["colspan"];
8293
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8300
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
8294
8301
  props: {
8295
8302
  tableData: null
8296
8303
  },
@@ -8308,9 +8315,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8308
8315
  return (_ctx, _cache) => {
8309
8316
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
8310
8317
  createElementVNode("div", _hoisted_2$7, [
8311
- createElementVNode("div", _hoisted_3$5, [
8312
- createElementVNode("div", _hoisted_4$3, [
8313
- createElementVNode("table", _hoisted_5$2, [
8318
+ createElementVNode("div", _hoisted_3$7, [
8319
+ createElementVNode("div", _hoisted_4$6, [
8320
+ createElementVNode("table", _hoisted_5$5, [
8314
8321
  createElementVNode("thead", null, [
8315
8322
  createElementVNode("tr", null, [
8316
8323
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.columns, (col, idx) => {
@@ -8318,7 +8325,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8318
8325
  class: "px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase bg-gray-50 leading-4",
8319
8326
  key: idx,
8320
8327
  textContent: toDisplayString(col.display)
8321
- }, null, 8, _hoisted_6$2);
8328
+ }, null, 8, _hoisted_6$5);
8322
8329
  }), 128))
8323
8330
  ])
8324
8331
  ]),
@@ -8362,21 +8369,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8362
8369
  });
8363
8370
  const _hoisted_1$8 = { class: "flex items-center justify-center space-x-8" };
8364
8371
  const _hoisted_2$6 = { class: "font-medium" };
8365
- const _hoisted_3$4 = { class: "flex items-center space-x-5" };
8366
- const _hoisted_4$2 = {
8372
+ const _hoisted_3$6 = { class: "flex items-center space-x-5" };
8373
+ const _hoisted_4$5 = {
8367
8374
  key: 0,
8368
8375
  class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
8369
8376
  };
8370
- const _hoisted_5$1 = {
8377
+ const _hoisted_5$4 = {
8371
8378
  key: 1,
8372
8379
  class: "relative flex items-center justify-center"
8373
8380
  };
8374
- const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("span", { class: "absolute w-5 h-5 p-px flex" }, [
8381
+ const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("span", { class: "absolute w-5 h-5 p-px flex" }, [
8375
8382
  /* @__PURE__ */ createElementVNode("span", { class: "w-full h-full rounded-full bg-green-100" })
8376
8383
  ], -1);
8377
8384
  const _hoisted_7$1 = /* @__PURE__ */ createElementVNode("span", { class: "relative block w-2.5 h-2.5 bg-xy-green rounded-full" }, null, -1);
8378
8385
  const _hoisted_8$1 = [
8379
- _hoisted_6$1,
8386
+ _hoisted_6$4,
8380
8387
  _hoisted_7$1
8381
8388
  ];
8382
8389
  const _hoisted_9$1 = {
@@ -8395,7 +8402,7 @@ const _hoisted_11$1 = {
8395
8402
  const _hoisted_12$1 = ["textContent"];
8396
8403
  const _hoisted_13$1 = { class: "ml-3 inline-flex rounded-md shadow-sm" };
8397
8404
  const _hoisted_14$1 = ["textContent"];
8398
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8405
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8399
8406
  props: {
8400
8407
  hideActions: { type: Boolean, default: false },
8401
8408
  hidePrevious: { type: Boolean, default: false },
@@ -8416,10 +8423,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8416
8423
  return openBlock(), createElementBlock("div", null, [
8417
8424
  createElementVNode("nav", _hoisted_1$8, [
8418
8425
  createElementVNode("p", _hoisted_2$6, "Step " + toDisplayString(__props.step) + " of " + toDisplayString(__props.total), 1),
8419
- createElementVNode("ul", _hoisted_3$4, [
8426
+ createElementVNode("ul", _hoisted_3$6, [
8420
8427
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.total, (index) => {
8421
8428
  return openBlock(), createElementBlock("li", { key: index }, [
8422
- __props.step > index ? (openBlock(), createElementBlock("span", _hoisted_4$2)) : __props.step === index ? (openBlock(), createElementBlock("div", _hoisted_5$1, _hoisted_8$1)) : (openBlock(), createElementBlock("span", _hoisted_9$1))
8429
+ __props.step > index ? (openBlock(), createElementBlock("span", _hoisted_4$5)) : __props.step === index ? (openBlock(), createElementBlock("div", _hoisted_5$4, _hoisted_8$1)) : (openBlock(), createElementBlock("span", _hoisted_9$1))
8423
8430
  ]);
8424
8431
  }), 128))
8425
8432
  ])
@@ -8451,12 +8458,12 @@ const _hoisted_2$5 = {
8451
8458
  key: 0,
8452
8459
  class: "w-full max-w-lg lg:max-w-xs"
8453
8460
  };
8454
- const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("label", {
8461
+ const _hoisted_3$5 = /* @__PURE__ */ createElementVNode("label", {
8455
8462
  for: "search",
8456
8463
  class: "sr-only"
8457
8464
  }, "Search", -1);
8458
- const _hoisted_4$1 = { class: "relative" };
8459
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" }, [
8465
+ const _hoisted_4$4 = { class: "relative" };
8466
+ const _hoisted_5$3 = /* @__PURE__ */ createElementVNode("div", { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" }, [
8460
8467
  /* @__PURE__ */ createElementVNode("svg", {
8461
8468
  class: "w-5 h-5 text-gray-400",
8462
8469
  fill: "currentColor",
@@ -8469,7 +8476,7 @@ const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "absolute
8469
8476
  })
8470
8477
  ])
8471
8478
  ], -1);
8472
- const _hoisted_6 = {
8479
+ const _hoisted_6$3 = {
8473
8480
  key: 1,
8474
8481
  class: "w-full max-w-lg lg:max-w-xs"
8475
8482
  };
@@ -8529,7 +8536,7 @@ const _hoisted_21 = ["onClick"];
8529
8536
  const _hoisted_22 = ["textContent"];
8530
8537
  const _hoisted_23 = { key: 0 };
8531
8538
  const _hoisted_24 = ["colspan"];
8532
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8539
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8533
8540
  props: {
8534
8541
  clickable: { type: Boolean, default: false },
8535
8542
  loader: { type: Boolean, default: true },
@@ -8615,9 +8622,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8615
8622
  return openBlock(), createElementBlock("div", null, [
8616
8623
  createElementVNode("div", _hoisted_1$7, [
8617
8624
  __props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
8618
- _hoisted_3$3,
8619
- createElementVNode("div", _hoisted_4$1, [
8620
- _hoisted_5,
8625
+ _hoisted_3$5,
8626
+ createElementVNode("div", _hoisted_4$4, [
8627
+ _hoisted_5$3,
8621
8628
  withDirectives(createElementVNode("input", {
8622
8629
  class: "pl-10",
8623
8630
  type: "search",
@@ -8634,8 +8641,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8634
8641
  ])
8635
8642
  ])
8636
8643
  ])) : createCommentVNode("", true),
8637
- __props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6, [
8638
- createVNode(_sfc_main$o, {
8644
+ __props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
8645
+ createVNode(_sfc_main$p, {
8639
8646
  modelValue: dateRange.value,
8640
8647
  "onUpdate:modelValue": [
8641
8648
  _cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
@@ -8700,7 +8707,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8700
8707
  ])
8701
8708
  ])
8702
8709
  ]),
8703
- unref(hasContent) ? (openBlock(), createBlock(_sfc_main$l, {
8710
+ unref(hasContent) ? (openBlock(), createBlock(_sfc_main$m, {
8704
8711
  key: 0,
8705
8712
  modelValue: pagination.value,
8706
8713
  "onUpdate:modelValue": [
@@ -8717,8 +8724,8 @@ const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("label", {
8717
8724
  class: "sr-only"
8718
8725
  }, "Select a tab", -1);
8719
8726
  const _hoisted_2$4 = { class: "hidden sm:block" };
8720
- const _hoisted_3$2 = ["textContent", "onClick"];
8721
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8727
+ const _hoisted_3$4 = ["textContent", "onClick"];
8728
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8722
8729
  props: {
8723
8730
  modelValue: null,
8724
8731
  pillDesign: { type: Boolean, default: false },
@@ -8782,7 +8789,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8782
8789
  key: idx,
8783
8790
  textContent: toDisplayString(tab.label),
8784
8791
  onClick: withModifiers(($event) => updateModelValue2(tab.value), ["prevent"])
8785
- }, null, 10, _hoisted_3$2);
8792
+ }, null, 10, _hoisted_3$4);
8786
8793
  }), 128))
8787
8794
  ], 2)
8788
8795
  ], 2)
@@ -8792,7 +8799,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8792
8799
  }
8793
8800
  });
8794
8801
  const _hoisted_1$5 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
8795
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8802
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8796
8803
  props: {
8797
8804
  modelValue: { type: Boolean, default: false }
8798
8805
  },
@@ -8822,11 +8829,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8822
8829
  };
8823
8830
  }
8824
8831
  });
8825
- const _hoisted_1$4 = { class: "inline-flex items-center" };
8826
- const _hoisted_2$3 = ["aria-labelledby", "checked", "id"];
8827
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8832
+ const _hoisted_1$4 = { class: "relative flex items-start" };
8833
+ const _hoisted_2$3 = { class: "flex items-center h-5" };
8834
+ const _hoisted_3$3 = ["id", "aria-labelledby", "aria-describedby", "checked"];
8835
+ const _hoisted_4$3 = { class: "ml-3" };
8836
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8828
8837
  props: {
8829
8838
  label: { default: "" },
8839
+ help: { default: "" },
8830
8840
  modelValue: { type: Boolean }
8831
8841
  },
8832
8842
  emits: ["update:modelValue"],
@@ -8834,138 +8844,257 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8834
8844
  const attrs = useAttrs();
8835
8845
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8836
8846
  return (_ctx, _cache) => {
8837
- return openBlock(), createElementBlock("div", null, [
8838
- createElementVNode("label", _hoisted_1$4, [
8847
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
8848
+ createElementVNode("div", _hoisted_2$3, [
8839
8849
  createElementVNode("input", mergeProps({
8850
+ id: unref(uuid),
8840
8851
  "aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
8852
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0,
8841
8853
  checked: __props.modelValue,
8842
8854
  class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8843
- id: unref(uuid),
8844
8855
  type: "checkbox"
8845
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8856
+ }, __spreadValues({
8846
8857
  onChange: ($event) => {
8847
8858
  emits("update:modelValue", $event.target.checked);
8848
8859
  }
8849
- })), null, 16, _hoisted_2$3),
8850
- createVNode(_sfc_main$r, {
8851
- class: "ml-2",
8860
+ }, _ctx.$attrs)), null, 16, _hoisted_3$3)
8861
+ ]),
8862
+ createElementVNode("div", _hoisted_4$3, [
8863
+ createVNode(_sfc_main$s, {
8864
+ class: "mt-auto",
8865
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
8852
8866
  id: `${unref(uuid)}-label`,
8853
8867
  for: unref(uuid),
8854
- label: __props.label,
8855
- tag: "span"
8856
- }, null, 8, ["id", "for", "label"])
8868
+ label: __props.label
8869
+ }, null, 8, ["disabled", "id", "for", "label"]),
8870
+ createVNode(_sfc_main$r, {
8871
+ class: "-mt-1",
8872
+ id: `${unref(uuid)}-help`,
8873
+ text: __props.help
8874
+ }, null, 8, ["id", "text"])
8857
8875
  ])
8858
8876
  ]);
8859
8877
  };
8860
8878
  }
8861
8879
  });
8862
- const _hoisted_1$3 = { class: "inline-flex items-center" };
8863
- const _hoisted_2$2 = ["id", "value"];
8880
+ function hasSlotContent(slot, slotProps = {}) {
8881
+ if (!slot)
8882
+ return false;
8883
+ return slot(slotProps).some((vnode) => {
8884
+ if (vnode.type === Comment$1)
8885
+ return false;
8886
+ if (Array.isArray(vnode.children) && !vnode.children.length)
8887
+ return false;
8888
+ return vnode.type !== Text || typeof vnode.children === "string" && vnode.children.trim() !== "";
8889
+ });
8890
+ }
8891
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8892
+ setup(__props) {
8893
+ return (_ctx, _cache) => {
8894
+ return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(), createElementBlock("legend", normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8895
+ class: "text-base font-medium leading-tight text-gray-900"
8896
+ }))), [
8897
+ renderSlot(_ctx.$slots, "default")
8898
+ ], 16)) : createCommentVNode("", true);
8899
+ };
8900
+ }
8901
+ });
8902
+ const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
8903
+ const _hoisted_2$2 = { class: "space-y-0.5" };
8904
+ const _hoisted_3$2 = { key: 0 };
8905
+ const _hoisted_4$2 = { class: "flex items-center h-5" };
8906
+ const _hoisted_5$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
8907
+ const _hoisted_6$2 = { class: "ml-3" };
8864
8908
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8865
8909
  props: {
8866
8910
  options: null,
8911
+ help: { default: "" },
8867
8912
  legend: { default: "" },
8868
- modelValue: null
8913
+ modelValue: null,
8914
+ columns: { default: void 0 }
8869
8915
  },
8870
8916
  emits: ["update:modelValue"],
8871
- setup(__props, { emit: emits }) {
8917
+ setup(__props, { emit }) {
8872
8918
  const props = __props;
8873
8919
  const attrs = useAttrs();
8920
+ const slots = useSlots();
8874
8921
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8875
- const model = ref(props.modelValue);
8922
+ const hasLegend = computed(() => {
8923
+ return props.legend !== "" || slots.legend !== void 0;
8924
+ });
8925
+ const onChange = (checked, val) => {
8926
+ let updateModelValue2 = [...props.modelValue];
8927
+ if (checked) {
8928
+ updateModelValue2.push(val);
8929
+ } else {
8930
+ updateModelValue2.splice(updateModelValue2.indexOf(val), 1);
8931
+ }
8932
+ emit("update:modelValue", updateModelValue2);
8933
+ };
8876
8934
  return (_ctx, _cache) => {
8877
- return openBlock(), createElementBlock("fieldset", null, [
8878
- createVNode(_sfc_main$r, {
8879
- class: "block mb-0",
8880
- label: __props.legend,
8881
- tag: "legend"
8882
- }, null, 8, ["label"]),
8883
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8884
- return openBlock(), createElementBlock("div", {
8885
- class: "mt-4",
8886
- key: option.value
8887
- }, [
8888
- createElementVNode("label", _hoisted_1$3, [
8889
- withDirectives(createElementVNode("input", mergeProps({
8890
- type: "checkbox",
8891
- class: "focus:ring-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8892
- id: `${unref(uuid)}-${index}`,
8893
- value: option.value,
8894
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
8895
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8896
- onChange: () => {
8897
- emits("update:modelValue", model.value);
8898
- }
8899
- })), null, 16, _hoisted_2$2), [
8900
- [vModelCheckbox, model.value]
8935
+ return openBlock(), createElementBlock("fieldset", {
8936
+ class: "space-y-5",
8937
+ "aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
8938
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
8939
+ }, [
8940
+ createElementVNode("div", _hoisted_2$2, [
8941
+ createVNode(_sfc_main$4, {
8942
+ id: `${unref(uuid)}-legend`
8943
+ }, {
8944
+ default: withCtx(() => [
8945
+ __props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
8946
+ _ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
8947
+ ]),
8948
+ _: 3
8949
+ }, 8, ["id"]),
8950
+ createVNode(_sfc_main$r, {
8951
+ tag: "p",
8952
+ text: __props.help,
8953
+ id: `${unref(uuid)}-help`
8954
+ }, null, 8, ["text", "id"])
8955
+ ]),
8956
+ createElementVNode("div", {
8957
+ class: normalizeClass(["grid gap-4", {
8958
+ "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
8959
+ "sm:grid-cols-2": __props.columns === 2,
8960
+ "sm:grid-cols-3": __props.columns === 3,
8961
+ "sm:grid-cols-4": __props.columns === 4
8962
+ }])
8963
+ }, [
8964
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8965
+ return openBlock(), createElementBlock("div", {
8966
+ key: option.value,
8967
+ class: "flex items-start"
8968
+ }, [
8969
+ createElementVNode("div", _hoisted_4$2, [
8970
+ createElementVNode("input", mergeProps({
8971
+ id: unref(uuid),
8972
+ "aria-labelledby": `${unref(uuid)}-${index}-label`,
8973
+ "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
8974
+ checked: __props.modelValue.includes(option.value),
8975
+ disabled: option.disabled === true ? true : void 0,
8976
+ class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8977
+ type: "checkbox"
8978
+ }, __spreadValues({
8979
+ onChange: ($event) => {
8980
+ onChange($event.target.checked, option.value);
8981
+ }
8982
+ }, _ctx.$attrs)), null, 16, _hoisted_5$2)
8901
8983
  ]),
8902
- createVNode(_sfc_main$r, {
8903
- class: "ml-2",
8904
- for: `${unref(uuid)}-${index}`,
8905
- label: option.label,
8906
- tag: "span"
8907
- }, null, 8, ["for", "label"])
8908
- ])
8909
- ]);
8910
- }), 128))
8911
- ]);
8984
+ createElementVNode("div", _hoisted_6$2, [
8985
+ createVNode(_sfc_main$s, {
8986
+ class: "mt-auto",
8987
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
8988
+ id: `${unref(uuid)}-${index}-label`,
8989
+ for: unref(uuid),
8990
+ label: option.label
8991
+ }, null, 8, ["disabled", "id", "for", "label"]),
8992
+ createVNode(_sfc_main$r, {
8993
+ class: "-mt-1",
8994
+ id: `${unref(uuid)}-${index}-help`,
8995
+ text: option.help
8996
+ }, null, 8, ["id", "text"])
8997
+ ])
8998
+ ]);
8999
+ }), 128))
9000
+ ], 2)
9001
+ ], 8, _hoisted_1$3);
8912
9002
  };
8913
9003
  }
8914
9004
  });
8915
- const _hoisted_1$2 = { class: "mt-1 space-y-2" };
8916
- const _hoisted_2$1 = ["for"];
8917
- const _hoisted_3$1 = ["checked", "id", "name", "value"];
9005
+ const _hoisted_1$2 = ["aria-labelledby", "aria-describedby"];
9006
+ const _hoisted_2$1 = { class: "space-y-0.5" };
9007
+ const _hoisted_3$1 = { key: 0 };
9008
+ const _hoisted_4$1 = { class: "flex items-center h-5" };
9009
+ const _hoisted_5$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
9010
+ const _hoisted_6$1 = { class: "ml-3" };
8918
9011
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8919
9012
  props: {
8920
9013
  options: null,
9014
+ help: { default: "" },
8921
9015
  legend: { default: "" },
8922
- modelValue: { default: "" },
8923
- vertical: { type: Boolean, default: true }
9016
+ modelValue: { default: void 0 },
9017
+ columns: { default: void 0 }
8924
9018
  },
8925
9019
  emits: ["update:modelValue"],
8926
9020
  setup(__props, { emit: emits }) {
8927
9021
  const props = __props;
8928
9022
  const attrs = useAttrs();
9023
+ const slots = useSlots();
8929
9024
  const uuid = attrs.id || Uniques.CreateIdAttribute();
9025
+ const hasLegend = computed(() => {
9026
+ return props.legend !== "" || slots.legend !== void 0;
9027
+ });
8930
9028
  return (_ctx, _cache) => {
8931
- return openBlock(), createElementBlock("fieldset", _hoisted_1$2, [
8932
- createVNode(_sfc_main$r, {
8933
- class: "block",
8934
- label: __props.legend,
8935
- tag: "legend"
8936
- }, null, 8, ["label"]),
8937
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8938
- return openBlock(), createBlock(resolveDynamicComponent(props.vertical ? "div" : "span"), {
8939
- key: option.value
9029
+ return openBlock(), createElementBlock("fieldset", {
9030
+ class: "space-y-5",
9031
+ "aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
9032
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
9033
+ }, [
9034
+ createElementVNode("div", _hoisted_2$1, [
9035
+ createVNode(_sfc_main$4, {
9036
+ id: `${unref(uuid)}-legend`
8940
9037
  }, {
8941
9038
  default: withCtx(() => [
8942
- createElementVNode("label", {
8943
- class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
8944
- for: `${unref(uuid)}-${index}`
8945
- }, [
9039
+ __props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
9040
+ _ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
9041
+ ]),
9042
+ _: 3
9043
+ }, 8, ["id"]),
9044
+ createVNode(_sfc_main$r, {
9045
+ tag: "p",
9046
+ text: __props.help,
9047
+ id: `${unref(uuid)}-help`
9048
+ }, null, 8, ["text", "id"])
9049
+ ]),
9050
+ createElementVNode("div", {
9051
+ class: normalizeClass(["grid gap-4", {
9052
+ "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
9053
+ "sm:grid-cols-2": __props.columns === 2,
9054
+ "sm:grid-cols-3": __props.columns === 3,
9055
+ "sm:grid-cols-4": __props.columns === 4
9056
+ }])
9057
+ }, [
9058
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
9059
+ return openBlock(), createElementBlock("div", {
9060
+ key: option.value,
9061
+ class: "flex items-start"
9062
+ }, [
9063
+ createElementVNode("div", _hoisted_4$1, [
8946
9064
  createElementVNode("input", mergeProps({
9065
+ "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
9066
+ "aria-labelledby": `${unref(uuid)}-${index}-label`,
8947
9067
  checked: __props.modelValue === option.value,
8948
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue",
9068
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9069
+ disabled: option.disabled === true ? true : void 0,
8949
9070
  id: `${unref(uuid)}-${index}`,
8950
9071
  name: unref(uuid),
8951
9072
  type: "radio",
8952
9073
  value: option.value
8953
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8954
- onChange: ($event) => {
8955
- emits("update:modelValue", $event.target.value);
9074
+ }, __spreadValues({
9075
+ onChange: () => {
9076
+ emits("update:modelValue", option.value);
8956
9077
  }
8957
- })), null, 16, _hoisted_3$1),
9078
+ }, _ctx.$attrs)), null, 16, _hoisted_5$1)
9079
+ ]),
9080
+ createElementVNode("div", _hoisted_6$1, [
9081
+ createVNode(_sfc_main$s, {
9082
+ class: "mt-auto",
9083
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
9084
+ id: `${unref(uuid)}-${index}-label`,
9085
+ for: unref(uuid),
9086
+ label: option.label
9087
+ }, null, 8, ["disabled", "id", "for", "label"]),
8958
9088
  createVNode(_sfc_main$r, {
8959
- class: "ml-2",
8960
- label: option.label,
8961
- tag: "span"
8962
- }, null, 8, ["label"])
8963
- ], 10, _hoisted_2$1)
8964
- ]),
8965
- _: 2
8966
- }, 1024);
8967
- }), 128))
8968
- ]);
9089
+ class: "-mt-1",
9090
+ id: `${unref(uuid)}-${index}-help`,
9091
+ text: option.help
9092
+ }, null, 8, ["id", "text"])
9093
+ ])
9094
+ ]);
9095
+ }), 128))
9096
+ ], 2)
9097
+ ], 8, _hoisted_1$2);
8969
9098
  };
8970
9099
  }
8971
9100
  });
@@ -8982,7 +9111,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8982
9111
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8983
9112
  return (_ctx, _cache) => {
8984
9113
  return openBlock(), createElementBlock(Fragment, null, [
8985
- createVNode(_sfc_main$r, {
9114
+ createVNode(_sfc_main$s, {
8986
9115
  class: "block",
8987
9116
  id: `${unref(uuid)}-label`,
8988
9117
  for: unref(uuid),
@@ -9000,13 +9129,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
9000
9129
  "focus:border-blue-500",
9001
9130
  "border-gray-600",
9002
9131
  "rounded-md",
9003
- "w-full"
9132
+ "w-full",
9133
+ "disabled:opacity-70",
9134
+ "disabled:cursor-not-allowed"
9004
9135
  ],
9005
9136
  id: unref(uuid),
9006
9137
  value: __props.modelValue,
9007
9138
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
9008
9139
  }, _ctx.$attrs), null, 16, _hoisted_1$1),
9009
- createVNode(_sfc_main$q, {
9140
+ createVNode(_sfc_main$r, {
9010
9141
  id: `${unref(uuid)}-help`,
9011
9142
  text: __props.help
9012
9143
  }, null, 8, ["id", "text"])
@@ -9014,13 +9145,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
9014
9145
  };
9015
9146
  }
9016
9147
  });
9017
- const _hoisted_1 = ["for"];
9018
- const _hoisted_2 = ["id", "name", "checked"];
9148
+ const _hoisted_1 = ["aria-labelledby", "aria-describedby"];
9149
+ const _hoisted_2 = { class: "space-y-0.5" };
9019
9150
  const _hoisted_3 = ["for"];
9020
9151
  const _hoisted_4 = ["id", "name", "checked"];
9152
+ const _hoisted_5 = ["for"];
9153
+ const _hoisted_6 = ["id", "name", "checked"];
9021
9154
  const _sfc_main = /* @__PURE__ */ defineComponent({
9022
9155
  props: {
9023
9156
  modelValue: { type: Boolean, default: void 0 },
9157
+ help: { default: "" },
9024
9158
  legend: { default: "" },
9025
9159
  name: { default: "" }
9026
9160
  },
@@ -9036,89 +9170,106 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9036
9170
  emits("update:modelValue", e.target.value === "true");
9037
9171
  };
9038
9172
  return (_ctx, _cache) => {
9039
- return openBlock(), createElementBlock("fieldset", null, [
9040
- createVNode(_sfc_main$r, {
9041
- class: "block",
9042
- label: __props.legend,
9043
- tag: "legend"
9044
- }, null, 8, ["label"]),
9045
- createElementVNode("label", {
9046
- class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
9047
- for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`
9048
- }, [
9049
- createElementVNode("input", mergeProps({
9050
- type: "radio",
9051
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue",
9052
- id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`,
9053
- name: unref(hasNameAttr) ? __props.name : unref(uuid),
9054
- value: true,
9055
- checked: __props.modelValue === true
9056
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
9057
- onChange
9058
- })), null, 16, _hoisted_2),
9059
- createVNode(_sfc_main$r, {
9060
- class: "ml-2",
9061
- label: "Yes",
9062
- tag: "span"
9063
- })
9064
- ], 10, _hoisted_1),
9065
- createElementVNode("label", {
9066
- class: normalizeClass(["inline-flex items-center ml-6", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
9067
- for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`
9068
- }, [
9069
- createElementVNode("input", mergeProps({
9070
- type: "radio",
9071
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue",
9072
- id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`,
9073
- name: unref(hasNameAttr) ? __props.name : unref(uuid),
9074
- value: false,
9075
- checked: __props.modelValue === false
9076
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
9077
- onChange
9078
- })), null, 16, _hoisted_4),
9079
- createVNode(_sfc_main$r, {
9080
- class: "ml-2",
9081
- label: "No",
9082
- tag: "span"
9083
- })
9084
- ], 10, _hoisted_3)
9085
- ]);
9173
+ const _component_InputHelp = resolveComponent("InputHelp");
9174
+ return openBlock(), createElementBlock("fieldset", {
9175
+ class: "space-y-3",
9176
+ "aria-labelledby": __props.legend ? `${unref(uuid)}-legend` : void 0,
9177
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
9178
+ }, [
9179
+ createElementVNode("div", _hoisted_2, [
9180
+ createVNode(_sfc_main$s, {
9181
+ class: "block my-auto",
9182
+ label: __props.legend,
9183
+ tag: "legend"
9184
+ }, null, 8, ["label"]),
9185
+ createVNode(_component_InputHelp, {
9186
+ tag: "p",
9187
+ text: __props.help,
9188
+ id: `${unref(uuid)}-help`
9189
+ }, null, 8, ["text", "id"])
9190
+ ]),
9191
+ createElementVNode("div", null, [
9192
+ createElementVNode("label", {
9193
+ class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
9194
+ for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`
9195
+ }, [
9196
+ createElementVNode("input", mergeProps({
9197
+ type: "radio",
9198
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9199
+ id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`,
9200
+ name: unref(hasNameAttr) ? __props.name : unref(uuid),
9201
+ value: true,
9202
+ checked: __props.modelValue === true
9203
+ }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
9204
+ onChange
9205
+ })), null, 16, _hoisted_4),
9206
+ createVNode(_sfc_main$s, {
9207
+ class: "ml-2",
9208
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
9209
+ label: "Yes",
9210
+ tag: "span"
9211
+ }, null, 8, ["disabled"])
9212
+ ], 10, _hoisted_3),
9213
+ createElementVNode("label", {
9214
+ class: normalizeClass(["inline-flex items-center ml-6", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
9215
+ for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`
9216
+ }, [
9217
+ createElementVNode("input", mergeProps({
9218
+ type: "radio",
9219
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9220
+ id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`,
9221
+ name: unref(hasNameAttr) ? __props.name : unref(uuid),
9222
+ value: false,
9223
+ checked: __props.modelValue === false
9224
+ }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
9225
+ onChange
9226
+ })), null, 16, _hoisted_6),
9227
+ createVNode(_sfc_main$s, {
9228
+ class: "ml-2",
9229
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
9230
+ label: "No",
9231
+ tag: "span"
9232
+ }, null, 8, ["disabled"])
9233
+ ], 10, _hoisted_5)
9234
+ ])
9235
+ ], 8, _hoisted_1);
9086
9236
  };
9087
9237
  }
9088
9238
  });
9089
9239
  var components = /* @__PURE__ */ Object.freeze({
9090
9240
  __proto__: null,
9091
9241
  [Symbol.toStringTag]: "Module",
9092
- ActionsDropdown: _sfc_main$u,
9093
- Cards: _sfc_main$t,
9094
- ContentModal: _sfc_main$s,
9095
- DateFilter: _sfc_main$m,
9096
- DetailList: _sfc_main$k,
9097
- DownloadCell: _sfc_main$j,
9098
- Flash: _sfc_main$i,
9099
- Modal: _sfc_main$h,
9100
- SidebarLayout: _sfc_main$f,
9101
- Slideover: _sfc_main$c,
9102
- StackedLayout: _sfc_main$a,
9103
- Popover: _sfc_main$e,
9242
+ ActionsDropdown: _sfc_main$v,
9243
+ Cards: _sfc_main$u,
9244
+ ContentModal: _sfc_main$t,
9245
+ DateFilter: _sfc_main$n,
9246
+ DetailList: _sfc_main$l,
9247
+ DownloadCell: _sfc_main$k,
9248
+ Flash: _sfc_main$j,
9249
+ Modal: _sfc_main$i,
9250
+ SidebarLayout: _sfc_main$g,
9251
+ Slideover: _sfc_main$d,
9252
+ StackedLayout: _sfc_main$b,
9253
+ Popover: _sfc_main$f,
9104
9254
  PopoverContent,
9105
- PopoverPosition: _sfc_main$e,
9106
- Paginator: _sfc_main$l,
9107
- Spinner: _sfc_main$g,
9108
- StaticTable: _sfc_main$9,
9109
- Steps: _sfc_main$8,
9110
- Table: _sfc_main$7,
9111
- Tabs: _sfc_main$6,
9112
- Toggle: _sfc_main$5,
9113
- Tooltip: _sfc_main$b,
9114
- BaseInput: _sfc_main$p,
9115
- Checkbox: _sfc_main$4,
9116
- DateRangePicker: _sfc_main$o,
9117
- InputHelp: _sfc_main$q,
9118
- InputLabel: _sfc_main$r,
9255
+ PopoverPosition: _sfc_main$f,
9256
+ Paginator: _sfc_main$m,
9257
+ Spinner: _sfc_main$h,
9258
+ StaticTable: _sfc_main$a,
9259
+ Steps: _sfc_main$9,
9260
+ Table: _sfc_main$8,
9261
+ Tabs: _sfc_main$7,
9262
+ Toggle: _sfc_main$6,
9263
+ Tooltip: _sfc_main$c,
9264
+ BaseInput: _sfc_main$q,
9265
+ Checkbox: _sfc_main$5,
9266
+ DateRangePicker: _sfc_main$p,
9267
+ InputHelp: _sfc_main$r,
9268
+ InputLabel: _sfc_main$s,
9269
+ FieldsetLegend: _sfc_main$4,
9119
9270
  MultiCheckboxes: _sfc_main$3,
9120
9271
  Radio: _sfc_main$2,
9121
- Select: _sfc_main$n,
9272
+ Select: _sfc_main$o,
9122
9273
  TextArea: _sfc_main$1,
9123
9274
  YesOrNoRadio: _sfc_main
9124
9275
  });
@@ -9127,4 +9278,4 @@ const install = function installTrees(app) {
9127
9278
  app.component(componentName, component);
9128
9279
  });
9129
9280
  };
9130
- export { _sfc_main$u as ActionsDropdown, BaseAPI, _sfc_main$p as BaseInput, _sfc_main$t as Cards, _sfc_main$4 as Checkbox, _sfc_main$s as ContentModal, _sfc_main$m as DateFilter, _sfc_main$o as DateRangePicker, _sfc_main$k as DetailList, _sfc_main$j as DownloadCell, _sfc_main$i as Flash, _sfc_main$q as InputHelp, _sfc_main$r as InputLabel, _sfc_main$h as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$l as Paginator, _sfc_main$e as Popover, PopoverContent, _sfc_main$e as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$n as Select, _sfc_main$f as SidebarLayout, _sfc_main$c as Slideover, _sfc_main$g as Spinner, _sfc_main$a as StackedLayout, _sfc_main$9 as StaticTable, _sfc_main$8 as Steps, _sfc_main$7 as Table, _sfc_main$6 as Tabs, _sfc_main$1 as TextArea, _sfc_main$5 as Toggle, _sfc_main$b as Tooltip, _sfc_main as YesOrNoRadio, install as default };
9281
+ export { _sfc_main$v as ActionsDropdown, BaseAPI, _sfc_main$q as BaseInput, _sfc_main$u as Cards, _sfc_main$5 as Checkbox, _sfc_main$t as ContentModal, _sfc_main$n as DateFilter, _sfc_main$p as DateRangePicker, _sfc_main$l as DetailList, _sfc_main$k as DownloadCell, _sfc_main$4 as FieldsetLegend, _sfc_main$j as Flash, _sfc_main$r as InputHelp, _sfc_main$s as InputLabel, _sfc_main$i as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$m as Paginator, _sfc_main$f as Popover, PopoverContent, _sfc_main$f as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$o as Select, _sfc_main$g as SidebarLayout, _sfc_main$d as Slideover, _sfc_main$h as Spinner, _sfc_main$b as StackedLayout, _sfc_main$a as StaticTable, _sfc_main$9 as Steps, _sfc_main$8 as Table, _sfc_main$7 as Tabs, _sfc_main$1 as TextArea, _sfc_main$6 as Toggle, _sfc_main$c as Tooltip, _sfc_main as YesOrNoRadio, install as default };