@xy-planning-network/trees 0.4.4 → 0.4.7
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
|
@@ -6780,7 +6780,7 @@ const _hoisted_5$b = [
|
|
|
6780
6780
|
_hoisted_4$c
|
|
6781
6781
|
];
|
|
6782
6782
|
const _hoisted_6$b = { class: "hidden md:flex" };
|
|
6783
|
-
const _hoisted_7$
|
|
6783
|
+
const _hoisted_7$a = ["textContent", "onClick"];
|
|
6784
6784
|
const _hoisted_8$8 = { class: "w-0 flex-1 flex justify-end" };
|
|
6785
6785
|
const _hoisted_9$8 = /* @__PURE__ */ createTextVNode(" Next ");
|
|
6786
6786
|
const _hoisted_10$8 = /* @__PURE__ */ createElementVNode("svg", {
|
|
@@ -6853,7 +6853,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6853
6853
|
key: i,
|
|
6854
6854
|
textContent: toDisplayString(i),
|
|
6855
6855
|
onClick: withModifiers(($event) => changePage(i), ["prevent"])
|
|
6856
|
-
}, null, 10, _hoisted_7$
|
|
6856
|
+
}, null, 10, _hoisted_7$a);
|
|
6857
6857
|
}), 128))
|
|
6858
6858
|
]),
|
|
6859
6859
|
createElementVNode("div", _hoisted_8$8, [
|
|
@@ -6982,7 +6982,7 @@ const _hoisted_3$d = { class: "p-4" };
|
|
|
6982
6982
|
const _hoisted_4$b = { class: "flex items-center" };
|
|
6983
6983
|
const _hoisted_5$a = { class: "w-0 flex-1 flex justify-between" };
|
|
6984
6984
|
const _hoisted_6$a = ["innerHTML"];
|
|
6985
|
-
const _hoisted_7$
|
|
6985
|
+
const _hoisted_7$9 = { class: "ml-4 flex-shrink-0 flex" };
|
|
6986
6986
|
const _hoisted_8$7 = ["onClick"];
|
|
6987
6987
|
const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
|
|
6988
6988
|
class: "h-5 w-5",
|
|
@@ -7079,7 +7079,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7079
7079
|
innerHTML: flash.message
|
|
7080
7080
|
}, null, 8, _hoisted_6$a)
|
|
7081
7081
|
]),
|
|
7082
|
-
createElementVNode("div", _hoisted_7$
|
|
7082
|
+
createElementVNode("div", _hoisted_7$9, [
|
|
7083
7083
|
createElementVNode("button", {
|
|
7084
7084
|
onClick: ($event) => remove(flash),
|
|
7085
7085
|
class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"
|
|
@@ -7186,7 +7186,7 @@ const _hoisted_3$c = { class: "inline-block align-bottom bg-white rounded-lg tex
|
|
|
7186
7186
|
const _hoisted_4$a = { class: "block absolute top-0 right-0 pt-4 pr-4" };
|
|
7187
7187
|
const _hoisted_5$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
|
|
7188
7188
|
const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
|
|
7189
|
-
const _hoisted_7$
|
|
7189
|
+
const _hoisted_7$8 = { class: "mt-3 sm:mt-0 sm:text-left" };
|
|
7190
7190
|
const _hoisted_8$6 = { class: "mt-2" };
|
|
7191
7191
|
const _hoisted_9$6 = {
|
|
7192
7192
|
key: 0,
|
|
@@ -7264,7 +7264,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7264
7264
|
])
|
|
7265
7265
|
]),
|
|
7266
7266
|
createElementVNode("div", _hoisted_6$9, [
|
|
7267
|
-
createElementVNode("div", _hoisted_7$
|
|
7267
|
+
createElementVNode("div", _hoisted_7$8, [
|
|
7268
7268
|
createVNode(unref(DialogTitle), {
|
|
7269
7269
|
as: "h3",
|
|
7270
7270
|
class: "text-center text-lg leading-6 font-medium text-gray-900",
|
|
@@ -7465,7 +7465,7 @@ const _hoisted_3$b = { class: "absolute top-0 right-0 -mr-12 pt-2" };
|
|
|
7465
7465
|
const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
|
|
7466
7466
|
const _hoisted_5$8 = { class: "flex-shrink-0 flex justify-center px-4" };
|
|
7467
7467
|
const _hoisted_6$8 = ["src"];
|
|
7468
|
-
const _hoisted_7$
|
|
7468
|
+
const _hoisted_7$7 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
|
|
7469
7469
|
const _hoisted_8$5 = { class: "px-2 space-y-1" };
|
|
7470
7470
|
const _hoisted_9$5 = ["href", "target"];
|
|
7471
7471
|
const _hoisted_10$5 = /* @__PURE__ */ createElementVNode("div", {
|
|
@@ -7577,7 +7577,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7577
7577
|
alt: "Logo"
|
|
7578
7578
|
}, null, 8, _hoisted_6$8)
|
|
7579
7579
|
]),
|
|
7580
|
-
createElementVNode("div", _hoisted_7$
|
|
7580
|
+
createElementVNode("div", _hoisted_7$7, [
|
|
7581
7581
|
createElementVNode("nav", _hoisted_8$5, [
|
|
7582
7582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.navigation, (item) => {
|
|
7583
7583
|
return openBlock(), createElementBlock("a", {
|
|
@@ -7957,7 +7957,7 @@ const _hoisted_3$a = { class: "w-screen max-w-md" };
|
|
|
7957
7957
|
const _hoisted_4$8 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
|
|
7958
7958
|
const _hoisted_5$7 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
|
|
7959
7959
|
const _hoisted_6$7 = { class: "flex items-center justify-between" };
|
|
7960
|
-
const _hoisted_7$
|
|
7960
|
+
const _hoisted_7$6 = { class: "ml-3 h-7 flex items-center" };
|
|
7961
7961
|
const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
|
|
7962
7962
|
const _hoisted_9$4 = { class: "mt-1" };
|
|
7963
7963
|
const _hoisted_10$4 = ["textContent"];
|
|
@@ -8013,7 +8013,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8013
8013
|
class: "text-white",
|
|
8014
8014
|
textContent: toDisplayString(__props.header)
|
|
8015
8015
|
}, null, 8, ["textContent"]),
|
|
8016
|
-
createElementVNode("div", _hoisted_7$
|
|
8016
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
8017
8017
|
createElementVNode("button", {
|
|
8018
8018
|
class: "bg-blue-700 rounded-md text-blue-200 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",
|
|
8019
8019
|
onClick: _cache[0] || (_cache[0] = ($event) => close2())
|
|
@@ -8089,7 +8089,7 @@ const _hoisted_3$8 = { class: "flex justify-between h-16" };
|
|
|
8089
8089
|
const _hoisted_4$7 = { class: "flex" };
|
|
8090
8090
|
const _hoisted_5$6 = { class: "flex-shrink-0 flex items-center" };
|
|
8091
8091
|
const _hoisted_6$6 = ["src"];
|
|
8092
|
-
const _hoisted_7$
|
|
8092
|
+
const _hoisted_7$5 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
|
|
8093
8093
|
const _hoisted_8$3 = ["href", "aria-current"];
|
|
8094
8094
|
const _hoisted_9$3 = { class: "hidden sm:ml-6 sm:flex sm:items-center" };
|
|
8095
8095
|
const _hoisted_10$3 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open user menu", -1);
|
|
@@ -8139,7 +8139,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8139
8139
|
alt: "XY Trees"
|
|
8140
8140
|
}, null, 8, _hoisted_6$6)
|
|
8141
8141
|
]),
|
|
8142
|
-
createElementVNode("div", _hoisted_7$
|
|
8142
|
+
createElementVNode("div", _hoisted_7$5, [
|
|
8143
8143
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.navigation, (item) => {
|
|
8144
8144
|
return openBlock(), createElementBlock("a", {
|
|
8145
8145
|
key: item.name,
|
|
@@ -8293,7 +8293,7 @@ const _hoisted_3$7 = { class: "inline-block min-w-full py-2 align-middle sm:px-6
|
|
|
8293
8293
|
const _hoisted_4$6 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
|
|
8294
8294
|
const _hoisted_5$5 = { class: "min-w-full divide-y divide-gray-200" };
|
|
8295
8295
|
const _hoisted_6$5 = ["textContent"];
|
|
8296
|
-
const _hoisted_7$
|
|
8296
|
+
const _hoisted_7$4 = { class: "bg-white divide-y divide-gray-200" };
|
|
8297
8297
|
const _hoisted_8$2 = ["textContent"];
|
|
8298
8298
|
const _hoisted_9$2 = { key: 0 };
|
|
8299
8299
|
const _hoisted_10$2 = ["colspan"];
|
|
@@ -8329,7 +8329,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8329
8329
|
}), 128))
|
|
8330
8330
|
])
|
|
8331
8331
|
]),
|
|
8332
|
-
createElementVNode("tbody", _hoisted_7$
|
|
8332
|
+
createElementVNode("tbody", _hoisted_7$4, [
|
|
8333
8333
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.items, (item, rowIdx) => {
|
|
8334
8334
|
return openBlock(), createElementBlock("tr", {
|
|
8335
8335
|
key: item.id ? item.id : rowIdx
|
|
@@ -8381,10 +8381,10 @@ const _hoisted_5$4 = {
|
|
|
8381
8381
|
const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("span", { class: "absolute w-5 h-5 p-px flex" }, [
|
|
8382
8382
|
/* @__PURE__ */ createElementVNode("span", { class: "w-full h-full rounded-full bg-green-100" })
|
|
8383
8383
|
], -1);
|
|
8384
|
-
const _hoisted_7$
|
|
8384
|
+
const _hoisted_7$3 = /* @__PURE__ */ createElementVNode("span", { class: "relative block w-2.5 h-2.5 bg-xy-green rounded-full" }, null, -1);
|
|
8385
8385
|
const _hoisted_8$1 = [
|
|
8386
8386
|
_hoisted_6$4,
|
|
8387
|
-
_hoisted_7$
|
|
8387
|
+
_hoisted_7$3
|
|
8388
8388
|
];
|
|
8389
8389
|
const _hoisted_9$1 = {
|
|
8390
8390
|
key: 2,
|
|
@@ -8480,7 +8480,7 @@ const _hoisted_6$3 = {
|
|
|
8480
8480
|
key: 1,
|
|
8481
8481
|
class: "w-full max-w-lg lg:max-w-xs"
|
|
8482
8482
|
};
|
|
8483
|
-
const _hoisted_7 = { class: "relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto" };
|
|
8483
|
+
const _hoisted_7$2 = { class: "relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto" };
|
|
8484
8484
|
const _hoisted_8 = { class: "min-w-full" };
|
|
8485
8485
|
const _hoisted_9 = { key: 0 };
|
|
8486
8486
|
const _hoisted_10 = ["onClick"];
|
|
@@ -8651,7 +8651,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8651
8651
|
}, null, 8, ["modelValue"])
|
|
8652
8652
|
])) : createCommentVNode("", true)
|
|
8653
8653
|
]),
|
|
8654
|
-
createElementVNode("div", _hoisted_7, [
|
|
8654
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
8655
8655
|
createElementVNode("table", _hoisted_8, [
|
|
8656
8656
|
createElementVNode("thead", null, [
|
|
8657
8657
|
createElementVNode("tr", null, [
|
|
@@ -8900,11 +8900,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
8900
8900
|
}
|
|
8901
8901
|
});
|
|
8902
8902
|
const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
|
|
8903
|
-
const _hoisted_2$2 = {
|
|
8903
|
+
const _hoisted_2$2 = {
|
|
8904
|
+
key: 0,
|
|
8905
|
+
class: "space-y-0.5"
|
|
8906
|
+
};
|
|
8904
8907
|
const _hoisted_3$2 = { key: 0 };
|
|
8905
|
-
const _hoisted_4$2 = { class: "flex
|
|
8906
|
-
const _hoisted_5$2 =
|
|
8907
|
-
const _hoisted_6$2 =
|
|
8908
|
+
const _hoisted_4$2 = { class: "flex" };
|
|
8909
|
+
const _hoisted_5$2 = { class: "flex items-center h-5" };
|
|
8910
|
+
const _hoisted_6$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
|
|
8911
|
+
const _hoisted_7$1 = { class: "ml-3" };
|
|
8908
8912
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
8909
8913
|
props: {
|
|
8910
8914
|
options: null,
|
|
@@ -8937,7 +8941,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
8937
8941
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
8938
8942
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
8939
8943
|
}, [
|
|
8940
|
-
|
|
8944
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
8941
8945
|
createVNode(_sfc_main$4, {
|
|
8942
8946
|
id: `${unref(uuid)}-legend`
|
|
8943
8947
|
}, {
|
|
@@ -8952,62 +8956,68 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
8952
8956
|
text: __props.help,
|
|
8953
8957
|
id: `${unref(uuid)}-help`
|
|
8954
8958
|
}, null, 8, ["text", "id"])
|
|
8955
|
-
]),
|
|
8956
|
-
createElementVNode("div",
|
|
8957
|
-
|
|
8958
|
-
"
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
createElementVNode("
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
onChange($event
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
8959
|
+
])) : createCommentVNode("", true),
|
|
8960
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
8961
|
+
createElementVNode("div", {
|
|
8962
|
+
class: normalizeClass(["grid gap-4", {
|
|
8963
|
+
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
8964
|
+
"sm:grid-cols-2": __props.columns === 2,
|
|
8965
|
+
"sm:grid-cols-3": __props.columns === 3,
|
|
8966
|
+
"sm:grid-cols-4": __props.columns === 4
|
|
8967
|
+
}])
|
|
8968
|
+
}, [
|
|
8969
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
8970
|
+
return openBlock(), createElementBlock("div", {
|
|
8971
|
+
key: option.value,
|
|
8972
|
+
class: "flex items-start"
|
|
8973
|
+
}, [
|
|
8974
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
8975
|
+
createElementVNode("input", mergeProps({
|
|
8976
|
+
id: `${unref(uuid)}-${index}`,
|
|
8977
|
+
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
8978
|
+
"aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
|
|
8979
|
+
checked: __props.modelValue.includes(option.value),
|
|
8980
|
+
disabled: option.disabled === true ? true : void 0,
|
|
8981
|
+
class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
|
|
8982
|
+
type: "checkbox"
|
|
8983
|
+
}, __spreadValues({
|
|
8984
|
+
onChange: ($event) => {
|
|
8985
|
+
onChange($event.target.checked, option.value);
|
|
8986
|
+
}
|
|
8987
|
+
}, _ctx.$attrs)), null, 16, _hoisted_6$2)
|
|
8988
|
+
]),
|
|
8989
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
8990
|
+
createVNode(_sfc_main$s, {
|
|
8991
|
+
class: "mt-auto",
|
|
8992
|
+
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
8993
|
+
id: `${unref(uuid)}-${index}-label`,
|
|
8994
|
+
for: `${unref(uuid)}-${index}`,
|
|
8995
|
+
label: option.label
|
|
8996
|
+
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
8997
|
+
createVNode(_sfc_main$r, {
|
|
8998
|
+
class: "-mt-1",
|
|
8999
|
+
id: `${unref(uuid)}-${index}-help`,
|
|
9000
|
+
text: option.help
|
|
9001
|
+
}, null, 8, ["id", "text"])
|
|
9002
|
+
])
|
|
9003
|
+
]);
|
|
9004
|
+
}), 128))
|
|
9005
|
+
], 2)
|
|
9006
|
+
])
|
|
9001
9007
|
], 8, _hoisted_1$3);
|
|
9002
9008
|
};
|
|
9003
9009
|
}
|
|
9004
9010
|
});
|
|
9005
9011
|
const _hoisted_1$2 = ["aria-labelledby", "aria-describedby"];
|
|
9006
|
-
const _hoisted_2$1 = {
|
|
9012
|
+
const _hoisted_2$1 = {
|
|
9013
|
+
key: 0,
|
|
9014
|
+
class: "space-y-0.5"
|
|
9015
|
+
};
|
|
9007
9016
|
const _hoisted_3$1 = { key: 0 };
|
|
9008
|
-
const _hoisted_4$1 = { class: "
|
|
9009
|
-
const _hoisted_5$1 =
|
|
9010
|
-
const _hoisted_6$1 =
|
|
9017
|
+
const _hoisted_4$1 = { class: "" };
|
|
9018
|
+
const _hoisted_5$1 = { class: "flex items-center h-5" };
|
|
9019
|
+
const _hoisted_6$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
|
|
9020
|
+
const _hoisted_7 = { class: "ml-3" };
|
|
9011
9021
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
9012
9022
|
props: {
|
|
9013
9023
|
options: null,
|
|
@@ -9031,7 +9041,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9031
9041
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9032
9042
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9033
9043
|
}, [
|
|
9034
|
-
|
|
9044
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
9035
9045
|
createVNode(_sfc_main$4, {
|
|
9036
9046
|
id: `${unref(uuid)}-legend`
|
|
9037
9047
|
}, {
|
|
@@ -9046,54 +9056,56 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9046
9056
|
text: __props.help,
|
|
9047
9057
|
id: `${unref(uuid)}-help`
|
|
9048
9058
|
}, null, 8, ["text", "id"])
|
|
9049
|
-
]),
|
|
9050
|
-
createElementVNode("div",
|
|
9051
|
-
|
|
9052
|
-
"
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
createElementVNode("
|
|
9065
|
-
"
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9059
|
+
])) : createCommentVNode("", true),
|
|
9060
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
9061
|
+
createElementVNode("div", {
|
|
9062
|
+
class: normalizeClass(["grid gap-4", {
|
|
9063
|
+
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
9064
|
+
"sm:grid-cols-2": __props.columns === 2,
|
|
9065
|
+
"sm:grid-cols-3": __props.columns === 3,
|
|
9066
|
+
"sm:grid-cols-4": __props.columns === 4
|
|
9067
|
+
}])
|
|
9068
|
+
}, [
|
|
9069
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
9070
|
+
return openBlock(), createElementBlock("div", {
|
|
9071
|
+
key: option.value,
|
|
9072
|
+
class: "flex items-start"
|
|
9073
|
+
}, [
|
|
9074
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
9075
|
+
createElementVNode("input", mergeProps({
|
|
9076
|
+
"aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
|
|
9077
|
+
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
9078
|
+
checked: __props.modelValue === option.value,
|
|
9079
|
+
class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
|
|
9080
|
+
disabled: option.disabled === true ? true : void 0,
|
|
9081
|
+
id: `${unref(uuid)}-${index}`,
|
|
9082
|
+
name: unref(uuid),
|
|
9083
|
+
type: "radio",
|
|
9084
|
+
value: option.value
|
|
9085
|
+
}, __spreadValues({
|
|
9086
|
+
onChange: () => {
|
|
9087
|
+
emits("update:modelValue", option.value);
|
|
9088
|
+
}
|
|
9089
|
+
}, _ctx.$attrs)), null, 16, _hoisted_6$1)
|
|
9090
|
+
]),
|
|
9091
|
+
createElementVNode("div", _hoisted_7, [
|
|
9092
|
+
createVNode(_sfc_main$s, {
|
|
9093
|
+
class: "mt-auto",
|
|
9094
|
+
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9095
|
+
id: `${unref(uuid)}-${index}-label`,
|
|
9096
|
+
for: `${unref(uuid)}-${index}`,
|
|
9097
|
+
label: option.label
|
|
9098
|
+
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9099
|
+
createVNode(_sfc_main$r, {
|
|
9100
|
+
class: "-mt-1",
|
|
9101
|
+
id: `${unref(uuid)}-${index}-help`,
|
|
9102
|
+
text: option.help
|
|
9103
|
+
}, null, 8, ["id", "text"])
|
|
9104
|
+
])
|
|
9105
|
+
]);
|
|
9106
|
+
}), 128))
|
|
9107
|
+
], 2)
|
|
9108
|
+
])
|
|
9097
9109
|
], 8, _hoisted_1$2);
|
|
9098
9110
|
};
|
|
9099
9111
|
}
|
|
@@ -9146,7 +9158,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9146
9158
|
}
|
|
9147
9159
|
});
|
|
9148
9160
|
const _hoisted_1 = ["aria-labelledby", "aria-describedby"];
|
|
9149
|
-
const _hoisted_2 = {
|
|
9161
|
+
const _hoisted_2 = {
|
|
9162
|
+
key: 0,
|
|
9163
|
+
class: "space-y-0.5"
|
|
9164
|
+
};
|
|
9150
9165
|
const _hoisted_3 = ["for"];
|
|
9151
9166
|
const _hoisted_4 = ["id", "name", "checked"];
|
|
9152
9167
|
const _hoisted_5 = ["for"];
|
|
@@ -9175,7 +9190,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9175
9190
|
"aria-labelledby": __props.legend ? `${unref(uuid)}-legend` : void 0,
|
|
9176
9191
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9177
9192
|
}, [
|
|
9178
|
-
|
|
9193
|
+
__props.legend || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
9179
9194
|
createVNode(_sfc_main$s, {
|
|
9180
9195
|
class: "block my-auto",
|
|
9181
9196
|
label: __props.legend,
|
|
@@ -9186,7 +9201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9186
9201
|
text: __props.help,
|
|
9187
9202
|
id: `${unref(uuid)}-help`
|
|
9188
9203
|
}, null, 8, ["text", "id"])
|
|
9189
|
-
]),
|
|
9204
|
+
])) : createCommentVNode("", true),
|
|
9190
9205
|
createElementVNode("div", null, [
|
|
9191
9206
|
createElementVNode("label", {
|
|
9192
9207
|
class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
|