@xy-planning-network/trees 0.4.8 → 0.4.9-rc-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 +992 -361
- package/dist/trees.umd.js +5 -5
- package/package.json +1 -1
- package/src/lib-components/forms/FieldsetLegend.vue +12 -3
- package/src/lib-components/forms/Radio.vue +1 -1
- package/src/lib-components/forms/RadioCards.vue +183 -0
- package/types/api/base.d.ts +4 -4
- package/types/composables/useBaseAPI.d.ts +2 -2
- package/types/composables/useFlashes.d.ts +100 -0
- package/types/lib-components/forms/FieldsetLegend.vue.d.ts +13 -1
- package/types/lib-components/forms/RadioCards.vue.d.ts +57 -0
- package/types/lib-components/index.d.ts +3 -1
- package/types/types/lists.d.ts +12 -0
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,
|
|
20
|
+
import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, unref, onMounted, nextTick, toRaw, watch, openBlock, createBlock, createVNode, 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, shallowRef } from "vue";
|
|
21
21
|
var axios$2 = { exports: {} };
|
|
22
22
|
var bind$2 = function bind(fn, thisArg) {
|
|
23
23
|
return function wrap() {
|
|
@@ -1255,37 +1255,38 @@ const apiDataRespIntercept = (response) => {
|
|
|
1255
1255
|
const apiAxiosInstance = axios.create({
|
|
1256
1256
|
baseURL: process.env.VUE_APP_BASE_API_URL || "/api/v1",
|
|
1257
1257
|
responseType: "json",
|
|
1258
|
-
withCredentials: true
|
|
1259
|
-
headers: {
|
|
1260
|
-
"Content-Type": "application/json"
|
|
1261
|
-
}
|
|
1258
|
+
withCredentials: true
|
|
1262
1259
|
});
|
|
1263
1260
|
apiAxiosInstance.interceptors.request.use(apiDelayReqIntercept);
|
|
1264
1261
|
apiAxiosInstance.interceptors.response.use(apiDataRespIntercept);
|
|
1265
1262
|
const BaseAPI = {
|
|
1266
|
-
makeRequest(opts) {
|
|
1263
|
+
makeRequest(config, opts) {
|
|
1267
1264
|
const wait = window.setTimeout(() => {
|
|
1268
1265
|
if (!opts.skipLoader) {
|
|
1269
1266
|
window.VueBus.emit("Spinner-show");
|
|
1270
1267
|
}
|
|
1271
1268
|
}, 200);
|
|
1272
|
-
return apiAxiosInstance(opts).then((success) => success.data).finally(() => {
|
|
1269
|
+
return apiAxiosInstance(__spreadValues(__spreadValues({}, config), opts)).then((success) => success.data).finally(() => {
|
|
1273
1270
|
if (!opts.skipLoader)
|
|
1274
1271
|
window.VueBus.emit("Spinner-hide");
|
|
1275
1272
|
window.clearTimeout(wait);
|
|
1276
1273
|
});
|
|
1277
1274
|
},
|
|
1278
1275
|
get(path, opts, params) {
|
|
1279
|
-
return this.makeRequest(
|
|
1276
|
+
return this.makeRequest({ url: path, method: "GET", params }, opts);
|
|
1280
1277
|
},
|
|
1281
1278
|
delete(path, opts) {
|
|
1282
|
-
return this.makeRequest(
|
|
1279
|
+
return this.makeRequest({ url: path, method: "DELETE" }, opts);
|
|
1283
1280
|
},
|
|
1284
1281
|
post(path, data2, opts) {
|
|
1285
|
-
return this.makeRequest(
|
|
1282
|
+
return this.makeRequest({ url: path, data: data2, method: "POST" }, opts);
|
|
1286
1283
|
},
|
|
1287
1284
|
put(path, data2, opts) {
|
|
1288
|
-
return this.makeRequest(
|
|
1285
|
+
return this.makeRequest({
|
|
1286
|
+
url: path,
|
|
1287
|
+
data: data2,
|
|
1288
|
+
method: "PUT"
|
|
1289
|
+
}, opts);
|
|
1289
1290
|
}
|
|
1290
1291
|
};
|
|
1291
1292
|
function _extends() {
|
|
@@ -1385,7 +1386,7 @@ var RenderStrategy;
|
|
|
1385
1386
|
RenderStrategy2[RenderStrategy2["Unmount"] = 0] = "Unmount";
|
|
1386
1387
|
RenderStrategy2[RenderStrategy2["Hidden"] = 1] = "Hidden";
|
|
1387
1388
|
})(RenderStrategy || (RenderStrategy = {}));
|
|
1388
|
-
function render$
|
|
1389
|
+
function render$9(_ref) {
|
|
1389
1390
|
var _ref$visible = _ref.visible, visible = _ref$visible === void 0 ? true : _ref$visible, _ref$features = _ref.features, features = _ref$features === void 0 ? Features.None : _ref$features, main = _objectWithoutPropertiesLoose(_ref, ["visible", "features"]);
|
|
1390
1391
|
if (visible)
|
|
1391
1392
|
return _render(main);
|
|
@@ -1511,7 +1512,7 @@ var ForcePortalRoot = /* @__PURE__ */ defineComponent({
|
|
|
1511
1512
|
provide(ForcePortalRootContext, props.force);
|
|
1512
1513
|
return function() {
|
|
1513
1514
|
var passThroughProps = _objectWithoutPropertiesLoose(props, ["force"]);
|
|
1514
|
-
return render$
|
|
1515
|
+
return render$9({
|
|
1515
1516
|
props: passThroughProps,
|
|
1516
1517
|
slot: {},
|
|
1517
1518
|
slots,
|
|
@@ -1571,7 +1572,7 @@ var Portal = /* @__PURE__ */ defineComponent({
|
|
|
1571
1572
|
};
|
|
1572
1573
|
return h(Teleport, {
|
|
1573
1574
|
to: myTarget.value
|
|
1574
|
-
}, render$
|
|
1575
|
+
}, render$9({
|
|
1575
1576
|
props: _extends({}, props, propsWeControl),
|
|
1576
1577
|
slot: {},
|
|
1577
1578
|
attrs,
|
|
@@ -1604,7 +1605,7 @@ var PortalGroup = /* @__PURE__ */ defineComponent({
|
|
|
1604
1605
|
provide(PortalGroupContext, api);
|
|
1605
1606
|
return function() {
|
|
1606
1607
|
var passThroughProps = _objectWithoutPropertiesLoose(props, ["target"]);
|
|
1607
|
-
return render$
|
|
1608
|
+
return render$9({
|
|
1608
1609
|
props: passThroughProps,
|
|
1609
1610
|
slot: {},
|
|
1610
1611
|
attrs,
|
|
@@ -1938,6 +1939,13 @@ function useInertOthers(container, enabled) {
|
|
|
1938
1939
|
});
|
|
1939
1940
|
}
|
|
1940
1941
|
var DescriptionContext = /* @__PURE__ */ Symbol("DescriptionContext");
|
|
1942
|
+
function useDescriptionContext() {
|
|
1943
|
+
var context = inject(DescriptionContext, null);
|
|
1944
|
+
if (context === null) {
|
|
1945
|
+
throw new Error("Missing parent");
|
|
1946
|
+
}
|
|
1947
|
+
return context;
|
|
1948
|
+
}
|
|
1941
1949
|
function useDescriptions(_temp) {
|
|
1942
1950
|
var _ref = _temp === void 0 ? {} : _temp, _ref$slot = _ref.slot, slot = _ref$slot === void 0 ? ref({}) : _ref$slot, _ref$name = _ref.name, name = _ref$name === void 0 ? "Description" : _ref$name, _ref$props = _ref.props, props = _ref$props === void 0 ? {} : _ref$props;
|
|
1943
1951
|
var descriptionIds = ref([]);
|
|
@@ -1960,6 +1968,44 @@ function useDescriptions(_temp) {
|
|
|
1960
1968
|
return descriptionIds.value.length > 0 ? descriptionIds.value.join(" ") : void 0;
|
|
1961
1969
|
});
|
|
1962
1970
|
}
|
|
1971
|
+
var Description = /* @__PURE__ */ defineComponent({
|
|
1972
|
+
name: "Description",
|
|
1973
|
+
props: {
|
|
1974
|
+
as: {
|
|
1975
|
+
type: [Object, String],
|
|
1976
|
+
"default": "p"
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
render: function render$1() {
|
|
1980
|
+
var _this$context = this.context, _this$context$name = _this$context.name, name = _this$context$name === void 0 ? "Description" : _this$context$name, _this$context$slot = _this$context.slot, slot = _this$context$slot === void 0 ? ref({}) : _this$context$slot, _this$context$props = _this$context.props, props = _this$context$props === void 0 ? {} : _this$context$props;
|
|
1981
|
+
var passThroughProps = this.$props;
|
|
1982
|
+
var propsWeControl = _extends({}, Object.entries(props).reduce(function(acc, _ref2) {
|
|
1983
|
+
var _Object$assign;
|
|
1984
|
+
var key = _ref2[0], value = _ref2[1];
|
|
1985
|
+
return Object.assign(acc, (_Object$assign = {}, _Object$assign[key] = unref(value), _Object$assign));
|
|
1986
|
+
}, {}), {
|
|
1987
|
+
id: this.id
|
|
1988
|
+
});
|
|
1989
|
+
return render$9({
|
|
1990
|
+
props: _extends({}, passThroughProps, propsWeControl),
|
|
1991
|
+
slot: slot.value,
|
|
1992
|
+
attrs: this.$attrs,
|
|
1993
|
+
slots: this.$slots,
|
|
1994
|
+
name
|
|
1995
|
+
});
|
|
1996
|
+
},
|
|
1997
|
+
setup: function setup4() {
|
|
1998
|
+
var context = useDescriptionContext();
|
|
1999
|
+
var id2 = "headlessui-description-" + useId();
|
|
2000
|
+
onMounted(function() {
|
|
2001
|
+
return onUnmounted(context.register(id2));
|
|
2002
|
+
});
|
|
2003
|
+
return {
|
|
2004
|
+
id: id2,
|
|
2005
|
+
context
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
});
|
|
1963
2009
|
function dom(ref2) {
|
|
1964
2010
|
var _ref$value$$el;
|
|
1965
2011
|
if (ref2 == null)
|
|
@@ -2030,7 +2076,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2030
2076
|
return true;
|
|
2031
2077
|
}
|
|
2032
2078
|
},
|
|
2033
|
-
render: function render$
|
|
2079
|
+
render: function render$12() {
|
|
2034
2080
|
var _this = this;
|
|
2035
2081
|
var propsWeControl = _extends({}, this.$attrs, {
|
|
2036
2082
|
ref: "el",
|
|
@@ -2055,7 +2101,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2055
2101
|
return h(ForcePortalRoot, {
|
|
2056
2102
|
force: false
|
|
2057
2103
|
}, function() {
|
|
2058
|
-
return render$
|
|
2104
|
+
return render$9({
|
|
2059
2105
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2060
2106
|
slot,
|
|
2061
2107
|
attrs: _this.$attrs,
|
|
@@ -2069,7 +2115,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2069
2115
|
});
|
|
2070
2116
|
});
|
|
2071
2117
|
},
|
|
2072
|
-
setup: function
|
|
2118
|
+
setup: function setup5(props, _ref) {
|
|
2073
2119
|
var emit = _ref.emit;
|
|
2074
2120
|
var containers = ref(new Set());
|
|
2075
2121
|
var usesOpenClosedState = useOpenClosed();
|
|
@@ -2219,7 +2265,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2219
2265
|
"default": "div"
|
|
2220
2266
|
}
|
|
2221
2267
|
},
|
|
2222
|
-
render: function render$
|
|
2268
|
+
render: function render$13() {
|
|
2223
2269
|
var api = useDialogContext("DialogOverlay");
|
|
2224
2270
|
var propsWeControl = {
|
|
2225
2271
|
ref: "el",
|
|
@@ -2228,7 +2274,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2228
2274
|
onClick: this.handleClick
|
|
2229
2275
|
};
|
|
2230
2276
|
var passThroughProps = this.$props;
|
|
2231
|
-
return render$
|
|
2277
|
+
return render$9({
|
|
2232
2278
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2233
2279
|
slot: {
|
|
2234
2280
|
open: api.dialogState.value === DialogStates.Open
|
|
@@ -2238,7 +2284,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2238
2284
|
name: "DialogOverlay"
|
|
2239
2285
|
});
|
|
2240
2286
|
},
|
|
2241
|
-
setup: function
|
|
2287
|
+
setup: function setup6() {
|
|
2242
2288
|
var api = useDialogContext("DialogOverlay");
|
|
2243
2289
|
var id2 = "headlessui-dialog-overlay-" + useId();
|
|
2244
2290
|
return {
|
|
@@ -2261,13 +2307,13 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
|
|
|
2261
2307
|
"default": "h2"
|
|
2262
2308
|
}
|
|
2263
2309
|
},
|
|
2264
|
-
render: function render$
|
|
2310
|
+
render: function render$14() {
|
|
2265
2311
|
var api = useDialogContext("DialogTitle");
|
|
2266
2312
|
var propsWeControl = {
|
|
2267
2313
|
id: this.id
|
|
2268
2314
|
};
|
|
2269
2315
|
var passThroughProps = this.$props;
|
|
2270
|
-
return render$
|
|
2316
|
+
return render$9({
|
|
2271
2317
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2272
2318
|
slot: {
|
|
2273
2319
|
open: api.dialogState.value === DialogStates.Open
|
|
@@ -2277,7 +2323,7 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
|
|
|
2277
2323
|
name: "DialogTitle"
|
|
2278
2324
|
});
|
|
2279
2325
|
},
|
|
2280
|
-
setup: function
|
|
2326
|
+
setup: function setup7() {
|
|
2281
2327
|
var api = useDialogContext("DialogTitle");
|
|
2282
2328
|
var id2 = "headlessui-dialog-title-" + useId();
|
|
2283
2329
|
onMounted(function() {
|
|
@@ -2348,7 +2394,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
|
|
|
2348
2394
|
"default": false
|
|
2349
2395
|
}
|
|
2350
2396
|
},
|
|
2351
|
-
setup: function
|
|
2397
|
+
setup: function setup8(props, _ref) {
|
|
2352
2398
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
2353
2399
|
var buttonId = "headlessui-disclosure-button-" + useId();
|
|
2354
2400
|
var panelId = "headlessui-disclosure-panel-" + useId();
|
|
@@ -2395,7 +2441,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
|
|
|
2395
2441
|
open: disclosureState.value === DisclosureStates.Open,
|
|
2396
2442
|
close: api.close
|
|
2397
2443
|
};
|
|
2398
|
-
return render$
|
|
2444
|
+
return render$9({
|
|
2399
2445
|
props: passThroughProps,
|
|
2400
2446
|
slot,
|
|
2401
2447
|
slots,
|
|
@@ -2417,7 +2463,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2417
2463
|
"default": false
|
|
2418
2464
|
}
|
|
2419
2465
|
},
|
|
2420
|
-
render: function render$
|
|
2466
|
+
render: function render$15() {
|
|
2421
2467
|
var api = useDisclosureContext("DisclosureButton");
|
|
2422
2468
|
var slot = {
|
|
2423
2469
|
open: api.disclosureState.value === DisclosureStates.Open
|
|
@@ -2438,7 +2484,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2438
2484
|
onKeydown: this.handleKeyDown,
|
|
2439
2485
|
onKeyup: this.handleKeyUp
|
|
2440
2486
|
};
|
|
2441
|
-
return render$
|
|
2487
|
+
return render$9({
|
|
2442
2488
|
props: _extends({}, this.$props, propsWeControl),
|
|
2443
2489
|
slot,
|
|
2444
2490
|
attrs: this.$attrs,
|
|
@@ -2446,7 +2492,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2446
2492
|
name: "DisclosureButton"
|
|
2447
2493
|
});
|
|
2448
2494
|
},
|
|
2449
|
-
setup: function
|
|
2495
|
+
setup: function setup9(props, _ref2) {
|
|
2450
2496
|
var attrs = _ref2.attrs;
|
|
2451
2497
|
var api = useDisclosureContext("DisclosureButton");
|
|
2452
2498
|
var panelContext = useDisclosurePanelContext();
|
|
@@ -2529,7 +2575,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2529
2575
|
"default": true
|
|
2530
2576
|
}
|
|
2531
2577
|
},
|
|
2532
|
-
render: function render$
|
|
2578
|
+
render: function render$16() {
|
|
2533
2579
|
var api = useDisclosureContext("DisclosurePanel");
|
|
2534
2580
|
var slot = {
|
|
2535
2581
|
open: api.disclosureState.value === DisclosureStates.Open,
|
|
@@ -2539,7 +2585,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2539
2585
|
id: this.id,
|
|
2540
2586
|
ref: "el"
|
|
2541
2587
|
};
|
|
2542
|
-
return render$
|
|
2588
|
+
return render$9({
|
|
2543
2589
|
props: _extends({}, this.$props, propsWeControl),
|
|
2544
2590
|
slot,
|
|
2545
2591
|
attrs: this.$attrs,
|
|
@@ -2549,7 +2595,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2549
2595
|
name: "DisclosurePanel"
|
|
2550
2596
|
});
|
|
2551
2597
|
},
|
|
2552
|
-
setup: function
|
|
2598
|
+
setup: function setup10() {
|
|
2553
2599
|
var api = useDisclosureContext("DisclosurePanel");
|
|
2554
2600
|
provide(DisclosurePanelContext, api.panelId);
|
|
2555
2601
|
var usesOpenClosedState = useOpenClosed();
|
|
@@ -2674,7 +2720,7 @@ var Menu = /* @__PURE__ */ defineComponent({
|
|
|
2674
2720
|
"default": "template"
|
|
2675
2721
|
}
|
|
2676
2722
|
},
|
|
2677
|
-
setup: function
|
|
2723
|
+
setup: function setup11(props, _ref) {
|
|
2678
2724
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
2679
2725
|
var menuState = ref(MenuStates.Closed);
|
|
2680
2726
|
var buttonRef = ref(null);
|
|
@@ -2783,7 +2829,7 @@ var Menu = /* @__PURE__ */ defineComponent({
|
|
|
2783
2829
|
var slot = {
|
|
2784
2830
|
open: menuState.value === MenuStates.Open
|
|
2785
2831
|
};
|
|
2786
|
-
return render$
|
|
2832
|
+
return render$9({
|
|
2787
2833
|
props,
|
|
2788
2834
|
slot,
|
|
2789
2835
|
slots,
|
|
@@ -2805,7 +2851,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2805
2851
|
"default": "button"
|
|
2806
2852
|
}
|
|
2807
2853
|
},
|
|
2808
|
-
render: function render$
|
|
2854
|
+
render: function render$17() {
|
|
2809
2855
|
var _dom4;
|
|
2810
2856
|
var api = useMenuContext("MenuButton");
|
|
2811
2857
|
var slot = {
|
|
@@ -2822,7 +2868,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2822
2868
|
onKeyup: this.handleKeyUp,
|
|
2823
2869
|
onClick: this.handleClick
|
|
2824
2870
|
};
|
|
2825
|
-
return render$
|
|
2871
|
+
return render$9({
|
|
2826
2872
|
props: _extends({}, this.$props, propsWeControl),
|
|
2827
2873
|
slot,
|
|
2828
2874
|
attrs: this.$attrs,
|
|
@@ -2830,7 +2876,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2830
2876
|
name: "MenuButton"
|
|
2831
2877
|
});
|
|
2832
2878
|
},
|
|
2833
|
-
setup: function
|
|
2879
|
+
setup: function setup12(props, _ref2) {
|
|
2834
2880
|
var attrs = _ref2.attrs;
|
|
2835
2881
|
var api = useMenuContext("MenuButton");
|
|
2836
2882
|
var id2 = "headlessui-menu-button-" + useId();
|
|
@@ -2925,7 +2971,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2925
2971
|
"default": true
|
|
2926
2972
|
}
|
|
2927
2973
|
},
|
|
2928
|
-
render: function render$
|
|
2974
|
+
render: function render$18() {
|
|
2929
2975
|
var _api$items$value$api$, _dom9;
|
|
2930
2976
|
var api = useMenuContext("MenuItems");
|
|
2931
2977
|
var slot = {
|
|
@@ -2942,7 +2988,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2942
2988
|
ref: "el"
|
|
2943
2989
|
};
|
|
2944
2990
|
var passThroughProps = this.$props;
|
|
2945
|
-
return render$
|
|
2991
|
+
return render$9({
|
|
2946
2992
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2947
2993
|
slot,
|
|
2948
2994
|
attrs: this.$attrs,
|
|
@@ -2952,7 +2998,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2952
2998
|
name: "MenuItems"
|
|
2953
2999
|
});
|
|
2954
3000
|
},
|
|
2955
|
-
setup: function
|
|
3001
|
+
setup: function setup13() {
|
|
2956
3002
|
var api = useMenuContext("MenuItems");
|
|
2957
3003
|
var id2 = "headlessui-menu-items-" + useId();
|
|
2958
3004
|
var searchDebounce = ref(null);
|
|
@@ -3078,7 +3124,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
|
|
|
3078
3124
|
"default": false
|
|
3079
3125
|
}
|
|
3080
3126
|
},
|
|
3081
|
-
setup: function
|
|
3127
|
+
setup: function setup14(props, _ref3) {
|
|
3082
3128
|
var slots = _ref3.slots, attrs = _ref3.attrs;
|
|
3083
3129
|
var api = useMenuContext("MenuItem");
|
|
3084
3130
|
var id2 = "headlessui-menu-item-" + useId();
|
|
@@ -3161,7 +3207,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
|
|
|
3161
3207
|
onPointerleave: handleLeave,
|
|
3162
3208
|
onMouseleave: handleLeave
|
|
3163
3209
|
};
|
|
3164
|
-
return render$
|
|
3210
|
+
return render$9({
|
|
3165
3211
|
props: _extends({}, props, propsWeControl),
|
|
3166
3212
|
slot,
|
|
3167
3213
|
attrs,
|
|
@@ -3203,7 +3249,7 @@ var Popover = /* @__PURE__ */ defineComponent({
|
|
|
3203
3249
|
"default": "div"
|
|
3204
3250
|
}
|
|
3205
3251
|
},
|
|
3206
|
-
setup: function
|
|
3252
|
+
setup: function setup15(props, _ref) {
|
|
3207
3253
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
3208
3254
|
var buttonId = "headlessui-popover-button-" + useId();
|
|
3209
3255
|
var panelId = "headlessui-popover-panel-" + useId();
|
|
@@ -3292,7 +3338,7 @@ var Popover = /* @__PURE__ */ defineComponent({
|
|
|
3292
3338
|
open: popoverState.value === PopoverStates.Open,
|
|
3293
3339
|
close: api.close
|
|
3294
3340
|
};
|
|
3295
|
-
return render$
|
|
3341
|
+
return render$9({
|
|
3296
3342
|
props,
|
|
3297
3343
|
slot,
|
|
3298
3344
|
slots,
|
|
@@ -3314,7 +3360,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3314
3360
|
"default": false
|
|
3315
3361
|
}
|
|
3316
3362
|
},
|
|
3317
|
-
render: function render$
|
|
3363
|
+
render: function render$19() {
|
|
3318
3364
|
var api = usePopoverContext("PopoverButton");
|
|
3319
3365
|
var slot = {
|
|
3320
3366
|
open: api.popoverState.value === PopoverStates.Open
|
|
@@ -3335,7 +3381,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3335
3381
|
onKeyup: this.handleKeyUp,
|
|
3336
3382
|
onClick: this.handleClick
|
|
3337
3383
|
};
|
|
3338
|
-
return render$
|
|
3384
|
+
return render$9({
|
|
3339
3385
|
props: _extends({}, this.$props, propsWeControl),
|
|
3340
3386
|
slot,
|
|
3341
3387
|
attrs: this.$attrs,
|
|
@@ -3343,7 +3389,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3343
3389
|
name: "PopoverButton"
|
|
3344
3390
|
});
|
|
3345
3391
|
},
|
|
3346
|
-
setup: function
|
|
3392
|
+
setup: function setup16(props, _ref2) {
|
|
3347
3393
|
var attrs = _ref2.attrs;
|
|
3348
3394
|
var api = usePopoverContext("PopoverButton");
|
|
3349
3395
|
var groupContext = usePopoverGroupContext();
|
|
@@ -3508,7 +3554,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3508
3554
|
"default": false
|
|
3509
3555
|
}
|
|
3510
3556
|
},
|
|
3511
|
-
render: function render$
|
|
3557
|
+
render: function render$110() {
|
|
3512
3558
|
var api = usePopoverContext("PopoverPanel");
|
|
3513
3559
|
var slot = {
|
|
3514
3560
|
open: api.popoverState.value === PopoverStates.Open,
|
|
@@ -3519,7 +3565,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3519
3565
|
id: this.id,
|
|
3520
3566
|
onKeydown: this.handleKeyDown
|
|
3521
3567
|
};
|
|
3522
|
-
return render$
|
|
3568
|
+
return render$9({
|
|
3523
3569
|
props: _extends({}, this.$props, propsWeControl),
|
|
3524
3570
|
slot,
|
|
3525
3571
|
attrs: this.$attrs,
|
|
@@ -3529,7 +3575,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3529
3575
|
name: "PopoverPanel"
|
|
3530
3576
|
});
|
|
3531
3577
|
},
|
|
3532
|
-
setup: function
|
|
3578
|
+
setup: function setup17(props) {
|
|
3533
3579
|
var focus = props.focus;
|
|
3534
3580
|
var api = usePopoverContext("PopoverPanel");
|
|
3535
3581
|
provide(PopoverPanelContext, api.panelId);
|
|
@@ -3623,11 +3669,403 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3623
3669
|
};
|
|
3624
3670
|
}
|
|
3625
3671
|
});
|
|
3672
|
+
var LabelContext = /* @__PURE__ */ Symbol("LabelContext");
|
|
3673
|
+
function useLabelContext() {
|
|
3674
|
+
var context = inject(LabelContext, null);
|
|
3675
|
+
if (context === null) {
|
|
3676
|
+
var err = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
3677
|
+
if (Error.captureStackTrace)
|
|
3678
|
+
Error.captureStackTrace(err, useLabelContext);
|
|
3679
|
+
throw err;
|
|
3680
|
+
}
|
|
3681
|
+
return context;
|
|
3682
|
+
}
|
|
3683
|
+
function useLabels(_temp) {
|
|
3684
|
+
var _ref = _temp === void 0 ? {} : _temp, _ref$slot = _ref.slot, slot = _ref$slot === void 0 ? {} : _ref$slot, _ref$name = _ref.name, name = _ref$name === void 0 ? "Label" : _ref$name, _ref$props = _ref.props, props = _ref$props === void 0 ? {} : _ref$props;
|
|
3685
|
+
var labelIds = ref([]);
|
|
3686
|
+
function register(value) {
|
|
3687
|
+
labelIds.value.push(value);
|
|
3688
|
+
return function() {
|
|
3689
|
+
var idx = labelIds.value.indexOf(value);
|
|
3690
|
+
if (idx === -1)
|
|
3691
|
+
return;
|
|
3692
|
+
labelIds.value.splice(idx, 1);
|
|
3693
|
+
};
|
|
3694
|
+
}
|
|
3695
|
+
provide(LabelContext, {
|
|
3696
|
+
register,
|
|
3697
|
+
slot,
|
|
3698
|
+
name,
|
|
3699
|
+
props
|
|
3700
|
+
});
|
|
3701
|
+
return computed(function() {
|
|
3702
|
+
return labelIds.value.length > 0 ? labelIds.value.join(" ") : void 0;
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
var Label = /* @__PURE__ */ defineComponent({
|
|
3706
|
+
name: "Label",
|
|
3707
|
+
props: {
|
|
3708
|
+
as: {
|
|
3709
|
+
type: [Object, String],
|
|
3710
|
+
"default": "label"
|
|
3711
|
+
},
|
|
3712
|
+
passive: {
|
|
3713
|
+
type: [Boolean],
|
|
3714
|
+
"default": false
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
render: function render$111() {
|
|
3718
|
+
var _this$context = this.context, _this$context$name = _this$context.name, name = _this$context$name === void 0 ? "Label" : _this$context$name, _this$context$slot = _this$context.slot, slot = _this$context$slot === void 0 ? {} : _this$context$slot, _this$context$props = _this$context.props, props = _this$context$props === void 0 ? {} : _this$context$props;
|
|
3719
|
+
var _this$$props = this.$props, passive = _this$$props.passive, passThroughProps = _objectWithoutPropertiesLoose(_this$$props, ["passive"]);
|
|
3720
|
+
var propsWeControl = _extends({}, Object.entries(props).reduce(function(acc, _ref2) {
|
|
3721
|
+
var _Object$assign;
|
|
3722
|
+
var key = _ref2[0], value = _ref2[1];
|
|
3723
|
+
return Object.assign(acc, (_Object$assign = {}, _Object$assign[key] = unref(value), _Object$assign));
|
|
3724
|
+
}, {}), {
|
|
3725
|
+
id: this.id
|
|
3726
|
+
});
|
|
3727
|
+
var allProps = _extends({}, passThroughProps, propsWeControl);
|
|
3728
|
+
if (passive)
|
|
3729
|
+
delete allProps["onClick"];
|
|
3730
|
+
return render$9({
|
|
3731
|
+
props: allProps,
|
|
3732
|
+
slot,
|
|
3733
|
+
attrs: this.$attrs,
|
|
3734
|
+
slots: this.$slots,
|
|
3735
|
+
name
|
|
3736
|
+
});
|
|
3737
|
+
},
|
|
3738
|
+
setup: function setup18() {
|
|
3739
|
+
var context = useLabelContext();
|
|
3740
|
+
var id2 = "headlessui-label-" + useId();
|
|
3741
|
+
onMounted(function() {
|
|
3742
|
+
return onUnmounted(context.register(id2));
|
|
3743
|
+
});
|
|
3744
|
+
return {
|
|
3745
|
+
id: id2,
|
|
3746
|
+
context
|
|
3747
|
+
};
|
|
3748
|
+
}
|
|
3749
|
+
});
|
|
3750
|
+
var RadioGroupContext = /* @__PURE__ */ Symbol("RadioGroupContext");
|
|
3751
|
+
function useRadioGroupContext(component) {
|
|
3752
|
+
var context = inject(RadioGroupContext, null);
|
|
3753
|
+
if (context === null) {
|
|
3754
|
+
var err = new Error("<" + component + " /> is missing a parent <RadioGroup /> component.");
|
|
3755
|
+
if (Error.captureStackTrace)
|
|
3756
|
+
Error.captureStackTrace(err, useRadioGroupContext);
|
|
3757
|
+
throw err;
|
|
3758
|
+
}
|
|
3759
|
+
return context;
|
|
3760
|
+
}
|
|
3761
|
+
var RadioGroup = /* @__PURE__ */ defineComponent({
|
|
3762
|
+
name: "RadioGroup",
|
|
3763
|
+
emits: {
|
|
3764
|
+
"update:modelValue": function updateModelValue(_value) {
|
|
3765
|
+
return true;
|
|
3766
|
+
}
|
|
3767
|
+
},
|
|
3768
|
+
props: {
|
|
3769
|
+
as: {
|
|
3770
|
+
type: [Object, String],
|
|
3771
|
+
"default": "div"
|
|
3772
|
+
},
|
|
3773
|
+
disabled: {
|
|
3774
|
+
type: [Boolean],
|
|
3775
|
+
"default": false
|
|
3776
|
+
},
|
|
3777
|
+
modelValue: {
|
|
3778
|
+
type: [Object, String, Number, Boolean]
|
|
3779
|
+
}
|
|
3780
|
+
},
|
|
3781
|
+
render: function render$112() {
|
|
3782
|
+
var _this$$props = this.$props, passThroughProps = _objectWithoutPropertiesLoose(_this$$props, ["modelValue", "disabled"]);
|
|
3783
|
+
var propsWeControl = {
|
|
3784
|
+
ref: "el",
|
|
3785
|
+
id: this.id,
|
|
3786
|
+
role: "radiogroup",
|
|
3787
|
+
"aria-labelledby": this.labelledby,
|
|
3788
|
+
"aria-describedby": this.describedby,
|
|
3789
|
+
onKeydown: this.handleKeyDown
|
|
3790
|
+
};
|
|
3791
|
+
return render$9({
|
|
3792
|
+
props: _extends({}, passThroughProps, propsWeControl),
|
|
3793
|
+
slot: {},
|
|
3794
|
+
attrs: this.$attrs,
|
|
3795
|
+
slots: this.$slots,
|
|
3796
|
+
name: "RadioGroup"
|
|
3797
|
+
});
|
|
3798
|
+
},
|
|
3799
|
+
setup: function setup19(props, _ref) {
|
|
3800
|
+
var emit = _ref.emit;
|
|
3801
|
+
var radioGroupRef = ref(null);
|
|
3802
|
+
var options = ref([]);
|
|
3803
|
+
var labelledby = useLabels({
|
|
3804
|
+
name: "RadioGroupLabel"
|
|
3805
|
+
});
|
|
3806
|
+
var describedby = useDescriptions({
|
|
3807
|
+
name: "RadioGroupDescription"
|
|
3808
|
+
});
|
|
3809
|
+
var value = computed(function() {
|
|
3810
|
+
return props.modelValue;
|
|
3811
|
+
});
|
|
3812
|
+
var api = {
|
|
3813
|
+
options,
|
|
3814
|
+
value,
|
|
3815
|
+
disabled: computed(function() {
|
|
3816
|
+
return props.disabled;
|
|
3817
|
+
}),
|
|
3818
|
+
firstOption: computed(function() {
|
|
3819
|
+
return options.value.find(function(option) {
|
|
3820
|
+
if (option.propsRef.disabled)
|
|
3821
|
+
return false;
|
|
3822
|
+
return true;
|
|
3823
|
+
});
|
|
3824
|
+
}),
|
|
3825
|
+
containsCheckedOption: computed(function() {
|
|
3826
|
+
return options.value.some(function(option) {
|
|
3827
|
+
return toRaw(option.propsRef.value) === toRaw(props.modelValue);
|
|
3828
|
+
});
|
|
3829
|
+
}),
|
|
3830
|
+
change: function change(nextValue) {
|
|
3831
|
+
var _options$value$find;
|
|
3832
|
+
if (props.disabled)
|
|
3833
|
+
return false;
|
|
3834
|
+
if (value.value === nextValue)
|
|
3835
|
+
return false;
|
|
3836
|
+
var nextOption = (_options$value$find = options.value.find(function(option) {
|
|
3837
|
+
return toRaw(option.propsRef.value) === toRaw(nextValue);
|
|
3838
|
+
})) == null ? void 0 : _options$value$find.propsRef;
|
|
3839
|
+
if (nextOption == null ? void 0 : nextOption.disabled)
|
|
3840
|
+
return false;
|
|
3841
|
+
emit("update:modelValue", nextValue);
|
|
3842
|
+
return true;
|
|
3843
|
+
},
|
|
3844
|
+
registerOption: function registerOption(action) {
|
|
3845
|
+
var _radioGroupRef$value;
|
|
3846
|
+
var orderMap = Array.from((_radioGroupRef$value = radioGroupRef.value) == null ? void 0 : _radioGroupRef$value.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(lookup, element, index) {
|
|
3847
|
+
var _Object$assign;
|
|
3848
|
+
return Object.assign(lookup, (_Object$assign = {}, _Object$assign[element.id] = index, _Object$assign));
|
|
3849
|
+
}, {});
|
|
3850
|
+
options.value.push(action);
|
|
3851
|
+
options.value.sort(function(a, z) {
|
|
3852
|
+
return orderMap[a.id] - orderMap[z.id];
|
|
3853
|
+
});
|
|
3854
|
+
},
|
|
3855
|
+
unregisterOption: function unregisterOption(id3) {
|
|
3856
|
+
var idx = options.value.findIndex(function(radio) {
|
|
3857
|
+
return radio.id === id3;
|
|
3858
|
+
});
|
|
3859
|
+
if (idx === -1)
|
|
3860
|
+
return;
|
|
3861
|
+
options.value.splice(idx, 1);
|
|
3862
|
+
}
|
|
3863
|
+
};
|
|
3864
|
+
provide(RadioGroupContext, api);
|
|
3865
|
+
useTreeWalker({
|
|
3866
|
+
container: computed(function() {
|
|
3867
|
+
return dom(radioGroupRef);
|
|
3868
|
+
}),
|
|
3869
|
+
accept: function accept(node) {
|
|
3870
|
+
if (node.getAttribute("role") === "radio")
|
|
3871
|
+
return NodeFilter.FILTER_REJECT;
|
|
3872
|
+
if (node.hasAttribute("role"))
|
|
3873
|
+
return NodeFilter.FILTER_SKIP;
|
|
3874
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
3875
|
+
},
|
|
3876
|
+
walk: function walk(node) {
|
|
3877
|
+
node.setAttribute("role", "none");
|
|
3878
|
+
}
|
|
3879
|
+
});
|
|
3880
|
+
function handleKeyDown(event) {
|
|
3881
|
+
if (!radioGroupRef.value)
|
|
3882
|
+
return;
|
|
3883
|
+
if (!radioGroupRef.value.contains(event.target))
|
|
3884
|
+
return;
|
|
3885
|
+
var all2 = options.value.filter(function(option) {
|
|
3886
|
+
return option.propsRef.disabled === false;
|
|
3887
|
+
}).map(function(radio) {
|
|
3888
|
+
return radio.element;
|
|
3889
|
+
});
|
|
3890
|
+
switch (event.key) {
|
|
3891
|
+
case Keys.ArrowLeft:
|
|
3892
|
+
case Keys.ArrowUp:
|
|
3893
|
+
{
|
|
3894
|
+
event.preventDefault();
|
|
3895
|
+
event.stopPropagation();
|
|
3896
|
+
var result = focusIn(all2, Focus$1.Previous | Focus$1.WrapAround);
|
|
3897
|
+
if (result === FocusResult.Success) {
|
|
3898
|
+
var activeOption = options.value.find(function(option) {
|
|
3899
|
+
return option.element === document.activeElement;
|
|
3900
|
+
});
|
|
3901
|
+
if (activeOption)
|
|
3902
|
+
api.change(activeOption.propsRef.value);
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
break;
|
|
3906
|
+
case Keys.ArrowRight:
|
|
3907
|
+
case Keys.ArrowDown:
|
|
3908
|
+
{
|
|
3909
|
+
event.preventDefault();
|
|
3910
|
+
event.stopPropagation();
|
|
3911
|
+
var _result = focusIn(all2, Focus$1.Next | Focus$1.WrapAround);
|
|
3912
|
+
if (_result === FocusResult.Success) {
|
|
3913
|
+
var _activeOption = options.value.find(function(option) {
|
|
3914
|
+
return option.element === document.activeElement;
|
|
3915
|
+
});
|
|
3916
|
+
if (_activeOption)
|
|
3917
|
+
api.change(_activeOption.propsRef.value);
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
break;
|
|
3921
|
+
case Keys.Space:
|
|
3922
|
+
{
|
|
3923
|
+
event.preventDefault();
|
|
3924
|
+
event.stopPropagation();
|
|
3925
|
+
var _activeOption2 = options.value.find(function(option) {
|
|
3926
|
+
return option.element === document.activeElement;
|
|
3927
|
+
});
|
|
3928
|
+
if (_activeOption2)
|
|
3929
|
+
api.change(_activeOption2.propsRef.value);
|
|
3930
|
+
}
|
|
3931
|
+
break;
|
|
3932
|
+
}
|
|
3933
|
+
}
|
|
3934
|
+
var id2 = "headlessui-radiogroup-" + useId();
|
|
3935
|
+
return {
|
|
3936
|
+
id: id2,
|
|
3937
|
+
labelledby,
|
|
3938
|
+
describedby,
|
|
3939
|
+
el: radioGroupRef,
|
|
3940
|
+
handleKeyDown
|
|
3941
|
+
};
|
|
3942
|
+
}
|
|
3943
|
+
});
|
|
3944
|
+
var OptionState;
|
|
3945
|
+
(function(OptionState2) {
|
|
3946
|
+
OptionState2[OptionState2["Empty"] = 1] = "Empty";
|
|
3947
|
+
OptionState2[OptionState2["Active"] = 2] = "Active";
|
|
3948
|
+
})(OptionState || (OptionState = {}));
|
|
3949
|
+
var RadioGroupOption = /* @__PURE__ */ defineComponent({
|
|
3950
|
+
name: "RadioGroupOption",
|
|
3951
|
+
props: {
|
|
3952
|
+
as: {
|
|
3953
|
+
type: [Object, String],
|
|
3954
|
+
"default": "div"
|
|
3955
|
+
},
|
|
3956
|
+
value: {
|
|
3957
|
+
type: [Object, String, Number, Boolean]
|
|
3958
|
+
},
|
|
3959
|
+
disabled: {
|
|
3960
|
+
type: Boolean,
|
|
3961
|
+
"default": false
|
|
3962
|
+
}
|
|
3963
|
+
},
|
|
3964
|
+
render: function render$113() {
|
|
3965
|
+
var _this$$props2 = this.$props, passThroughProps = _objectWithoutPropertiesLoose(_this$$props2, ["value", "disabled"]);
|
|
3966
|
+
var slot = {
|
|
3967
|
+
checked: this.checked,
|
|
3968
|
+
disabled: this.disabled,
|
|
3969
|
+
active: Boolean(this.state & OptionState.Active)
|
|
3970
|
+
};
|
|
3971
|
+
var propsWeControl = {
|
|
3972
|
+
id: this.id,
|
|
3973
|
+
ref: "el",
|
|
3974
|
+
role: "radio",
|
|
3975
|
+
"aria-checked": this.checked ? "true" : "false",
|
|
3976
|
+
"aria-labelledby": this.labelledby,
|
|
3977
|
+
"aria-describedby": this.describedby,
|
|
3978
|
+
"aria-disabled": this.disabled ? true : void 0,
|
|
3979
|
+
tabIndex: this.tabIndex,
|
|
3980
|
+
onClick: this.disabled ? void 0 : this.handleClick,
|
|
3981
|
+
onFocus: this.disabled ? void 0 : this.handleFocus,
|
|
3982
|
+
onBlur: this.disabled ? void 0 : this.handleBlur
|
|
3983
|
+
};
|
|
3984
|
+
return render$9({
|
|
3985
|
+
props: _extends({}, passThroughProps, propsWeControl),
|
|
3986
|
+
slot,
|
|
3987
|
+
attrs: this.$attrs,
|
|
3988
|
+
slots: this.$slots,
|
|
3989
|
+
name: "RadioGroupOption"
|
|
3990
|
+
});
|
|
3991
|
+
},
|
|
3992
|
+
setup: function setup20(props) {
|
|
3993
|
+
var api = useRadioGroupContext("RadioGroupOption");
|
|
3994
|
+
var id2 = "headlessui-radiogroup-option-" + useId();
|
|
3995
|
+
var labelledby = useLabels({
|
|
3996
|
+
name: "RadioGroupLabel"
|
|
3997
|
+
});
|
|
3998
|
+
var describedby = useDescriptions({
|
|
3999
|
+
name: "RadioGroupDescription"
|
|
4000
|
+
});
|
|
4001
|
+
var optionRef = ref(null);
|
|
4002
|
+
var propsRef = computed(function() {
|
|
4003
|
+
return {
|
|
4004
|
+
value: props.value,
|
|
4005
|
+
disabled: props.disabled
|
|
4006
|
+
};
|
|
4007
|
+
});
|
|
4008
|
+
var state = ref(OptionState.Empty);
|
|
4009
|
+
onMounted(function() {
|
|
4010
|
+
return api.registerOption({
|
|
4011
|
+
id: id2,
|
|
4012
|
+
element: optionRef,
|
|
4013
|
+
propsRef
|
|
4014
|
+
});
|
|
4015
|
+
});
|
|
4016
|
+
onUnmounted(function() {
|
|
4017
|
+
return api.unregisterOption(id2);
|
|
4018
|
+
});
|
|
4019
|
+
var isFirstOption = computed(function() {
|
|
4020
|
+
var _api$firstOption$valu;
|
|
4021
|
+
return ((_api$firstOption$valu = api.firstOption.value) == null ? void 0 : _api$firstOption$valu.id) === id2;
|
|
4022
|
+
});
|
|
4023
|
+
var disabled = computed(function() {
|
|
4024
|
+
return api.disabled.value || props.disabled;
|
|
4025
|
+
});
|
|
4026
|
+
var checked = computed(function() {
|
|
4027
|
+
return toRaw(api.value.value) === toRaw(props.value);
|
|
4028
|
+
});
|
|
4029
|
+
return {
|
|
4030
|
+
id: id2,
|
|
4031
|
+
el: optionRef,
|
|
4032
|
+
labelledby,
|
|
4033
|
+
describedby,
|
|
4034
|
+
state,
|
|
4035
|
+
disabled,
|
|
4036
|
+
checked,
|
|
4037
|
+
tabIndex: computed(function() {
|
|
4038
|
+
if (disabled.value)
|
|
4039
|
+
return -1;
|
|
4040
|
+
if (checked.value)
|
|
4041
|
+
return 0;
|
|
4042
|
+
if (!api.containsCheckedOption.value && isFirstOption.value)
|
|
4043
|
+
return 0;
|
|
4044
|
+
return -1;
|
|
4045
|
+
}),
|
|
4046
|
+
handleClick: function handleClick() {
|
|
4047
|
+
var _optionRef$value;
|
|
4048
|
+
if (!api.change(props.value))
|
|
4049
|
+
return;
|
|
4050
|
+
state.value |= OptionState.Active;
|
|
4051
|
+
(_optionRef$value = optionRef.value) == null ? void 0 : _optionRef$value.focus();
|
|
4052
|
+
},
|
|
4053
|
+
handleFocus: function handleFocus() {
|
|
4054
|
+
state.value |= OptionState.Active;
|
|
4055
|
+
},
|
|
4056
|
+
handleBlur: function handleBlur() {
|
|
4057
|
+
state.value &= ~OptionState.Active;
|
|
4058
|
+
}
|
|
4059
|
+
};
|
|
4060
|
+
}
|
|
4061
|
+
});
|
|
4062
|
+
var RadioGroupLabel = Label;
|
|
4063
|
+
var RadioGroupDescription = Description;
|
|
3626
4064
|
var GroupContext = /* @__PURE__ */ Symbol("GroupContext");
|
|
3627
4065
|
var Switch = /* @__PURE__ */ defineComponent({
|
|
3628
4066
|
name: "Switch",
|
|
3629
4067
|
emits: {
|
|
3630
|
-
"update:modelValue": function
|
|
4068
|
+
"update:modelValue": function updateModelValue2(_value) {
|
|
3631
4069
|
return true;
|
|
3632
4070
|
}
|
|
3633
4071
|
},
|
|
@@ -3641,7 +4079,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3641
4079
|
"default": false
|
|
3642
4080
|
}
|
|
3643
4081
|
},
|
|
3644
|
-
render: function render$
|
|
4082
|
+
render: function render$114() {
|
|
3645
4083
|
var slot = {
|
|
3646
4084
|
checked: this.$props.modelValue
|
|
3647
4085
|
};
|
|
@@ -3658,7 +4096,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3658
4096
|
onKeyup: this.handleKeyUp,
|
|
3659
4097
|
onKeypress: this.handleKeyPress
|
|
3660
4098
|
};
|
|
3661
|
-
return render$
|
|
4099
|
+
return render$9({
|
|
3662
4100
|
props: _extends({}, this.$props, propsWeControl),
|
|
3663
4101
|
slot,
|
|
3664
4102
|
attrs: this.$attrs,
|
|
@@ -3666,7 +4104,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3666
4104
|
name: "Switch"
|
|
3667
4105
|
});
|
|
3668
4106
|
},
|
|
3669
|
-
setup: function
|
|
4107
|
+
setup: function setup21(props, _ref2) {
|
|
3670
4108
|
var emit = _ref2.emit, attrs = _ref2.attrs;
|
|
3671
4109
|
var api = inject(GroupContext, null);
|
|
3672
4110
|
var id2 = "headlessui-switch-" + useId();
|
|
@@ -3985,7 +4423,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
3985
4423
|
return true;
|
|
3986
4424
|
}
|
|
3987
4425
|
},
|
|
3988
|
-
render: function render$
|
|
4426
|
+
render: function render$115() {
|
|
3989
4427
|
var _this = this;
|
|
3990
4428
|
if (this.renderAsRoot) {
|
|
3991
4429
|
return h(TransitionRoot, _extends({}, this.$props, {
|
|
@@ -4008,7 +4446,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
4008
4446
|
ref: "el"
|
|
4009
4447
|
};
|
|
4010
4448
|
var passthroughProps = rest;
|
|
4011
|
-
return render$
|
|
4449
|
+
return render$9({
|
|
4012
4450
|
props: _extends({}, passthroughProps, propsWeControl),
|
|
4013
4451
|
slot: {},
|
|
4014
4452
|
slots: this.$slots,
|
|
@@ -4018,7 +4456,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
4018
4456
|
name: "TransitionChild"
|
|
4019
4457
|
});
|
|
4020
4458
|
},
|
|
4021
|
-
setup: function
|
|
4459
|
+
setup: function setup22(props, _ref4) {
|
|
4022
4460
|
var emit = _ref4.emit;
|
|
4023
4461
|
if (!hasTransitionContext() && hasOpenClosed()) {
|
|
4024
4462
|
return {
|
|
@@ -4193,13 +4631,13 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4193
4631
|
return true;
|
|
4194
4632
|
}
|
|
4195
4633
|
},
|
|
4196
|
-
render: function render$
|
|
4634
|
+
render: function render$116() {
|
|
4197
4635
|
var _this2 = this;
|
|
4198
4636
|
var _this$$props2 = this.$props, unmount = _this$$props2.unmount, passThroughProps = _objectWithoutPropertiesLoose(_this$$props2, ["show", "appear", "unmount"]);
|
|
4199
4637
|
var sharedProps = {
|
|
4200
4638
|
unmount
|
|
4201
4639
|
};
|
|
4202
|
-
return render$
|
|
4640
|
+
return render$9({
|
|
4203
4641
|
props: _extends({}, sharedProps, {
|
|
4204
4642
|
as: "template"
|
|
4205
4643
|
}),
|
|
@@ -4228,7 +4666,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4228
4666
|
name: "Transition"
|
|
4229
4667
|
});
|
|
4230
4668
|
},
|
|
4231
|
-
setup: function
|
|
4669
|
+
setup: function setup23(props) {
|
|
4232
4670
|
var usesOpenClosedState = useOpenClosed();
|
|
4233
4671
|
var show = computed(function() {
|
|
4234
4672
|
if (props.show === null && usesOpenClosedState !== null) {
|
|
@@ -4273,6 +4711,20 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4273
4711
|
};
|
|
4274
4712
|
}
|
|
4275
4713
|
});
|
|
4714
|
+
function render$8(_ctx, _cache) {
|
|
4715
|
+
return openBlock(), createBlock("svg", {
|
|
4716
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4717
|
+
viewBox: "0 0 20 20",
|
|
4718
|
+
fill: "currentColor",
|
|
4719
|
+
"aria-hidden": "true"
|
|
4720
|
+
}, [
|
|
4721
|
+
createVNode("path", {
|
|
4722
|
+
"fill-rule": "evenodd",
|
|
4723
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
4724
|
+
"clip-rule": "evenodd"
|
|
4725
|
+
})
|
|
4726
|
+
]);
|
|
4727
|
+
}
|
|
4276
4728
|
function render$7(_ctx, _cache) {
|
|
4277
4729
|
return openBlock(), createBlock("svg", {
|
|
4278
4730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4311,10 +4763,10 @@ function render$5(_ctx, _cache) {
|
|
|
4311
4763
|
})
|
|
4312
4764
|
]);
|
|
4313
4765
|
}
|
|
4314
|
-
const _hoisted_1$
|
|
4315
|
-
const _hoisted_2$
|
|
4316
|
-
const _hoisted_3$
|
|
4317
|
-
const _sfc_main$
|
|
4766
|
+
const _hoisted_1$r = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
|
|
4767
|
+
const _hoisted_2$l = { class: "py-1" };
|
|
4768
|
+
const _hoisted_3$k = ["textContent", "onClick"];
|
|
4769
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
4318
4770
|
props: {
|
|
4319
4771
|
currentUser: null,
|
|
4320
4772
|
items: null,
|
|
@@ -4355,7 +4807,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4355
4807
|
disabled: !hasActionItems.value
|
|
4356
4808
|
}, {
|
|
4357
4809
|
default: withCtx(() => [
|
|
4358
|
-
_hoisted_1$
|
|
4810
|
+
_hoisted_1$r,
|
|
4359
4811
|
createVNode(unref(render$6), {
|
|
4360
4812
|
class: "w-5 h-5",
|
|
4361
4813
|
"aria-hidden": "true"
|
|
@@ -4374,7 +4826,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4374
4826
|
default: withCtx(() => [
|
|
4375
4827
|
createVNode(unref(MenuItems), { class: "z-10 mx-3 origin-top-right absolute right-7 top-0 w-48 mt-1 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none" }, {
|
|
4376
4828
|
default: withCtx(() => [
|
|
4377
|
-
createElementVNode("div", _hoisted_2$
|
|
4829
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
4378
4830
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, idx) => {
|
|
4379
4831
|
return openBlock(), createElementBlock(Fragment, { key: idx }, [
|
|
4380
4832
|
show(item) ? (openBlock(), createBlock(unref(MenuItem), {
|
|
@@ -4390,7 +4842,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4390
4842
|
]),
|
|
4391
4843
|
textContent: toDisplayString(item.label),
|
|
4392
4844
|
onClick: ($event) => emitEvent(item.event)
|
|
4393
|
-
}, null, 10, _hoisted_3$
|
|
4845
|
+
}, null, 10, _hoisted_3$k)
|
|
4394
4846
|
]),
|
|
4395
4847
|
_: 2
|
|
4396
4848
|
}, 1024)) : createCommentVNode("", true)
|
|
@@ -4409,10 +4861,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4409
4861
|
};
|
|
4410
4862
|
}
|
|
4411
4863
|
});
|
|
4412
|
-
const _hoisted_1$
|
|
4413
|
-
const _hoisted_2$
|
|
4414
|
-
const _hoisted_3$
|
|
4415
|
-
const _sfc_main$
|
|
4864
|
+
const _hoisted_1$q = { class: "px-4 py-5 sm:p-6 text-center" };
|
|
4865
|
+
const _hoisted_2$k = ["textContent"];
|
|
4866
|
+
const _hoisted_3$j = ["textContent"];
|
|
4867
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
4416
4868
|
props: {
|
|
4417
4869
|
cards: null
|
|
4418
4870
|
},
|
|
@@ -4426,16 +4878,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4426
4878
|
class: "bg-white overflow-hidden shadow rounded-lg",
|
|
4427
4879
|
key: idx
|
|
4428
4880
|
}, [
|
|
4429
|
-
createElementVNode("div", _hoisted_1$
|
|
4881
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
4430
4882
|
createElementVNode("dl", null, [
|
|
4431
4883
|
createElementVNode("dd", {
|
|
4432
4884
|
class: "mt-1 text-3xl leading-9 font-semibold text-xy-blue",
|
|
4433
4885
|
textContent: toDisplayString(card.primary)
|
|
4434
|
-
}, null, 8, _hoisted_2$
|
|
4886
|
+
}, null, 8, _hoisted_2$k),
|
|
4435
4887
|
createElementVNode("dt", {
|
|
4436
4888
|
class: "text-sm leading-5 font-medium text-gray-700 truncate",
|
|
4437
4889
|
textContent: toDisplayString(card.secondary)
|
|
4438
|
-
}, null, 8, _hoisted_3$
|
|
4890
|
+
}, null, 8, _hoisted_3$j)
|
|
4439
4891
|
])
|
|
4440
4892
|
])
|
|
4441
4893
|
]);
|
|
@@ -4444,23 +4896,23 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4444
4896
|
};
|
|
4445
4897
|
}
|
|
4446
4898
|
});
|
|
4447
|
-
const _hoisted_1$
|
|
4448
|
-
const _hoisted_2$
|
|
4899
|
+
const _hoisted_1$p = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
|
|
4900
|
+
const _hoisted_2$j = /* @__PURE__ */ createElementVNode("span", {
|
|
4449
4901
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4450
4902
|
"aria-hidden": "true"
|
|
4451
4903
|
}, "\u200B", -1);
|
|
4452
|
-
const _hoisted_3$
|
|
4453
|
-
const _hoisted_4$
|
|
4454
|
-
const _hoisted_5$
|
|
4904
|
+
const _hoisted_3$i = { 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" };
|
|
4905
|
+
const _hoisted_4$f = { class: "mt-3 text-center sm:mt-5" };
|
|
4906
|
+
const _hoisted_5$d = { class: "mt-2" };
|
|
4455
4907
|
const _hoisted_6$c = { class: "mt-5 sm:mt-6" };
|
|
4456
|
-
const _sfc_main$
|
|
4908
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
4457
4909
|
props: {
|
|
4458
4910
|
modelValue: { type: Boolean },
|
|
4459
4911
|
title: { default: "" }
|
|
4460
4912
|
},
|
|
4461
4913
|
emits: ["update:modelValue"],
|
|
4462
4914
|
setup(__props, { emit }) {
|
|
4463
|
-
const
|
|
4915
|
+
const updateModelValue3 = (value) => {
|
|
4464
4916
|
emit("update:modelValue", value);
|
|
4465
4917
|
};
|
|
4466
4918
|
return (_ctx, _cache) => {
|
|
@@ -4473,11 +4925,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4473
4925
|
as: "div",
|
|
4474
4926
|
static: "",
|
|
4475
4927
|
class: "fixed z-10 inset-0 overflow-y-auto",
|
|
4476
|
-
onClose: _cache[1] || (_cache[1] = ($event) =>
|
|
4928
|
+
onClose: _cache[1] || (_cache[1] = ($event) => updateModelValue3(false)),
|
|
4477
4929
|
open: __props.modelValue
|
|
4478
4930
|
}, {
|
|
4479
4931
|
default: withCtx(() => [
|
|
4480
|
-
createElementVNode("div", _hoisted_1$
|
|
4932
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
4481
4933
|
createVNode(unref(TransitionChild), {
|
|
4482
4934
|
as: "template",
|
|
4483
4935
|
enter: "ease-out duration-300",
|
|
@@ -4492,7 +4944,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4492
4944
|
]),
|
|
4493
4945
|
_: 1
|
|
4494
4946
|
}),
|
|
4495
|
-
_hoisted_2$
|
|
4947
|
+
_hoisted_2$j,
|
|
4496
4948
|
createVNode(unref(TransitionChild), {
|
|
4497
4949
|
as: "template",
|
|
4498
4950
|
enter: "ease-out duration-300",
|
|
@@ -4503,15 +4955,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4503
4955
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
4504
4956
|
}, {
|
|
4505
4957
|
default: withCtx(() => [
|
|
4506
|
-
createElementVNode("div", _hoisted_3$
|
|
4958
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
4507
4959
|
createElementVNode("div", null, [
|
|
4508
4960
|
renderSlot(_ctx.$slots, "icon"),
|
|
4509
|
-
createElementVNode("div", _hoisted_4$
|
|
4961
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
4510
4962
|
createVNode(unref(DialogTitle), {
|
|
4511
4963
|
as: "h3",
|
|
4512
4964
|
textContent: toDisplayString(__props.title)
|
|
4513
4965
|
}, null, 8, ["textContent"]),
|
|
4514
|
-
createElementVNode("div", _hoisted_5$
|
|
4966
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
4515
4967
|
renderSlot(_ctx.$slots, "default")
|
|
4516
4968
|
])
|
|
4517
4969
|
])
|
|
@@ -4520,7 +4972,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4520
4972
|
createElementVNode("button", {
|
|
4521
4973
|
type: "button",
|
|
4522
4974
|
class: "inline-flex justify-center w-full xy-btn",
|
|
4523
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
4975
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
4524
4976
|
}, " Go back ")
|
|
4525
4977
|
])
|
|
4526
4978
|
])
|
|
@@ -6630,7 +7082,7 @@ if (typeof window !== "undefined") {
|
|
|
6630
7082
|
window.flatpickr = flatpickr;
|
|
6631
7083
|
}
|
|
6632
7084
|
var flatpickr_min = "";
|
|
6633
|
-
const _sfc_main$
|
|
7085
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
6634
7086
|
props: {
|
|
6635
7087
|
disabled: { type: Boolean, default: false },
|
|
6636
7088
|
label: { default: "" },
|
|
@@ -6653,7 +7105,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6653
7105
|
};
|
|
6654
7106
|
}
|
|
6655
7107
|
});
|
|
6656
|
-
const _sfc_main$
|
|
7108
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
6657
7109
|
props: {
|
|
6658
7110
|
tag: { default: "div" },
|
|
6659
7111
|
text: { default: "" }
|
|
@@ -6671,8 +7123,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6671
7123
|
};
|
|
6672
7124
|
}
|
|
6673
7125
|
});
|
|
6674
|
-
const _hoisted_1$
|
|
6675
|
-
const _sfc_main$
|
|
7126
|
+
const _hoisted_1$o = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
|
|
7127
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
6676
7128
|
props: {
|
|
6677
7129
|
type: null,
|
|
6678
7130
|
help: { default: "" },
|
|
@@ -6703,7 +7155,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6703
7155
|
});
|
|
6704
7156
|
return (_ctx, _cache) => {
|
|
6705
7157
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6706
|
-
createVNode(_sfc_main$
|
|
7158
|
+
createVNode(_sfc_main$t, {
|
|
6707
7159
|
class: "block",
|
|
6708
7160
|
id: `${unref(uuid)}-label`,
|
|
6709
7161
|
for: unref(uuid),
|
|
@@ -6731,8 +7183,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6731
7183
|
type: __props.type,
|
|
6732
7184
|
value: __props.modelValue,
|
|
6733
7185
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
6734
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
6735
|
-
createVNode(_sfc_main$
|
|
7186
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$o),
|
|
7187
|
+
createVNode(_sfc_main$s, {
|
|
6736
7188
|
id: `${unref(uuid)}-help`,
|
|
6737
7189
|
text: __props.help
|
|
6738
7190
|
}, null, 8, ["id", "text"])
|
|
@@ -6740,7 +7192,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6740
7192
|
};
|
|
6741
7193
|
}
|
|
6742
7194
|
});
|
|
6743
|
-
const _sfc_main$
|
|
7195
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
6744
7196
|
props: {
|
|
6745
7197
|
modelValue: null,
|
|
6746
7198
|
startDate: { default: 0 },
|
|
@@ -6752,7 +7204,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6752
7204
|
const props = __props;
|
|
6753
7205
|
const attrs = useAttrs();
|
|
6754
7206
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
6755
|
-
const
|
|
7207
|
+
const updateModelValue3 = (value) => {
|
|
6756
7208
|
emits("update:modelValue", value);
|
|
6757
7209
|
};
|
|
6758
7210
|
onMounted(() => {
|
|
@@ -6763,12 +7215,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6763
7215
|
minDate: props.startDate,
|
|
6764
7216
|
onClose: (selectedDates) => {
|
|
6765
7217
|
if (selectedDates.length === 2) {
|
|
6766
|
-
|
|
7218
|
+
updateModelValue3({
|
|
6767
7219
|
minDate: selectedDates[0].setUTCHours(0, 0, 0, 0) / 1e3,
|
|
6768
7220
|
maxDate: Math.floor(selectedDates[1].setUTCHours(23, 59, 59, 999) / 1e3)
|
|
6769
7221
|
});
|
|
6770
7222
|
} else if (selectedDates.length === 0) {
|
|
6771
|
-
|
|
7223
|
+
updateModelValue3({
|
|
6772
7224
|
minDate: 0,
|
|
6773
7225
|
maxDate: 0
|
|
6774
7226
|
});
|
|
@@ -6777,7 +7229,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6777
7229
|
});
|
|
6778
7230
|
});
|
|
6779
7231
|
return (_ctx, _cache) => {
|
|
6780
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7232
|
+
return openBlock(), createBlock(_sfc_main$r, {
|
|
6781
7233
|
type: "text",
|
|
6782
7234
|
placeholder: "mm-dd-yyyy range",
|
|
6783
7235
|
id: unref(uuid),
|
|
@@ -6787,15 +7239,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6787
7239
|
};
|
|
6788
7240
|
}
|
|
6789
7241
|
});
|
|
6790
|
-
const _hoisted_1$
|
|
6791
|
-
const _hoisted_2$
|
|
7242
|
+
const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "value"];
|
|
7243
|
+
const _hoisted_2$i = {
|
|
6792
7244
|
key: 0,
|
|
6793
7245
|
value: "",
|
|
6794
7246
|
disabled: "",
|
|
6795
7247
|
selected: ""
|
|
6796
7248
|
};
|
|
6797
|
-
const _hoisted_3$
|
|
6798
|
-
const _sfc_main$
|
|
7249
|
+
const _hoisted_3$h = ["value", "textContent"];
|
|
7250
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
6799
7251
|
props: {
|
|
6800
7252
|
design: { default: "standard" },
|
|
6801
7253
|
label: { default: "" },
|
|
@@ -6817,7 +7269,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6817
7269
|
});
|
|
6818
7270
|
return (_ctx, _cache) => {
|
|
6819
7271
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6820
|
-
createVNode(_sfc_main$
|
|
7272
|
+
createVNode(_sfc_main$t, {
|
|
6821
7273
|
id: `${unref(uuid)}-label`,
|
|
6822
7274
|
for: unref(uuid),
|
|
6823
7275
|
label: __props.label
|
|
@@ -6833,16 +7285,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6833
7285
|
emit("update:modelValue", $event.target.value);
|
|
6834
7286
|
}
|
|
6835
7287
|
})), [
|
|
6836
|
-
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$
|
|
7288
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$i, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
|
|
6837
7289
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
6838
7290
|
return openBlock(), createElementBlock("option", {
|
|
6839
7291
|
value: option.value,
|
|
6840
7292
|
textContent: toDisplayString(option.label),
|
|
6841
7293
|
key: option.value
|
|
6842
|
-
}, null, 8, _hoisted_3$
|
|
7294
|
+
}, null, 8, _hoisted_3$h);
|
|
6843
7295
|
}), 128))
|
|
6844
|
-
], 16, _hoisted_1$
|
|
6845
|
-
createVNode(_sfc_main$
|
|
7296
|
+
], 16, _hoisted_1$n),
|
|
7297
|
+
createVNode(_sfc_main$s, {
|
|
6846
7298
|
id: `${unref(uuid)}-help`,
|
|
6847
7299
|
text: __props.help
|
|
6848
7300
|
}, null, 8, ["id", "text"])
|
|
@@ -6850,11 +7302,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6850
7302
|
};
|
|
6851
7303
|
}
|
|
6852
7304
|
});
|
|
6853
|
-
const _hoisted_1$
|
|
6854
|
-
const _hoisted_2$
|
|
6855
|
-
const _hoisted_3$
|
|
6856
|
-
const _hoisted_4$
|
|
6857
|
-
const _sfc_main$
|
|
7305
|
+
const _hoisted_1$m = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
|
|
7306
|
+
const _hoisted_2$h = { class: "flex-1 min-w-0" };
|
|
7307
|
+
const _hoisted_3$g = { class: "text-lg leading-6 font-semibold text-gray-900" };
|
|
7308
|
+
const _hoisted_4$e = { class: "mt-4 flex md:mt-0 md:ml-4" };
|
|
7309
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
6858
7310
|
props: {
|
|
6859
7311
|
dateRange: null,
|
|
6860
7312
|
sortDir: null,
|
|
@@ -6876,12 +7328,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6876
7328
|
emits("date-range-changed", dateRange2);
|
|
6877
7329
|
};
|
|
6878
7330
|
return (_ctx, _cache) => {
|
|
6879
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6880
|
-
createElementVNode("div", _hoisted_2$
|
|
6881
|
-
createElementVNode("h1", _hoisted_3$
|
|
7331
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
7332
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
7333
|
+
createElementVNode("h1", _hoisted_3$g, toDisplayString(__props.title), 1)
|
|
6882
7334
|
]),
|
|
6883
|
-
createElementVNode("div", _hoisted_4$
|
|
6884
|
-
createVNode(_sfc_main$
|
|
7335
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
7336
|
+
createVNode(_sfc_main$p, {
|
|
6885
7337
|
modelValue: sortDir.value,
|
|
6886
7338
|
"onUpdate:modelValue": [
|
|
6887
7339
|
_cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
@@ -6889,7 +7341,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6889
7341
|
],
|
|
6890
7342
|
options: sortOptions
|
|
6891
7343
|
}, null, 8, ["modelValue"]),
|
|
6892
|
-
createVNode(_sfc_main$
|
|
7344
|
+
createVNode(_sfc_main$q, {
|
|
6893
7345
|
modelValue: dateRange.value,
|
|
6894
7346
|
"onUpdate:modelValue": [
|
|
6895
7347
|
_cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
|
|
@@ -6902,9 +7354,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6902
7354
|
};
|
|
6903
7355
|
}
|
|
6904
7356
|
});
|
|
6905
|
-
const _hoisted_1$
|
|
6906
|
-
const _hoisted_2$
|
|
6907
|
-
const _hoisted_3$
|
|
7357
|
+
const _hoisted_1$l = { class: "px-4 flex items-center justify-between sm:px-0" };
|
|
7358
|
+
const _hoisted_2$g = { class: "w-0 flex-1 flex" };
|
|
7359
|
+
const _hoisted_3$f = /* @__PURE__ */ createElementVNode("svg", {
|
|
6908
7360
|
class: "mr-3 h-5 w-5",
|
|
6909
7361
|
fill: "currentColor",
|
|
6910
7362
|
viewBox: "0 0 20 20"
|
|
@@ -6915,10 +7367,10 @@ const _hoisted_3$e = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
6915
7367
|
"clip-rule": "evenodd"
|
|
6916
7368
|
})
|
|
6917
7369
|
], -1);
|
|
6918
|
-
const _hoisted_4$
|
|
6919
|
-
const _hoisted_5$
|
|
6920
|
-
_hoisted_3$
|
|
6921
|
-
_hoisted_4$
|
|
7370
|
+
const _hoisted_4$d = /* @__PURE__ */ createTextVNode(" Previous ");
|
|
7371
|
+
const _hoisted_5$c = [
|
|
7372
|
+
_hoisted_3$f,
|
|
7373
|
+
_hoisted_4$d
|
|
6922
7374
|
];
|
|
6923
7375
|
const _hoisted_6$b = { class: "hidden md:flex" };
|
|
6924
7376
|
const _hoisted_7$a = ["textContent", "onClick"];
|
|
@@ -6939,7 +7391,7 @@ const _hoisted_11$5 = [
|
|
|
6939
7391
|
_hoisted_9$8,
|
|
6940
7392
|
_hoisted_10$8
|
|
6941
7393
|
];
|
|
6942
|
-
const _sfc_main$
|
|
7394
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
6943
7395
|
props: {
|
|
6944
7396
|
modelValue: null
|
|
6945
7397
|
},
|
|
@@ -6972,8 +7424,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6972
7424
|
return shortcuts;
|
|
6973
7425
|
});
|
|
6974
7426
|
return (_ctx, _cache) => {
|
|
6975
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6976
|
-
createElementVNode("div", _hoisted_2$
|
|
7427
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
7428
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
6977
7429
|
createElementVNode("a", {
|
|
6978
7430
|
href: "#",
|
|
6979
7431
|
class: normalizeClass([
|
|
@@ -6981,7 +7433,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6981
7433
|
__props.modelValue.page == 1 ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
|
|
6982
7434
|
]),
|
|
6983
7435
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(__props.modelValue.page - 1), ["prevent"]))
|
|
6984
|
-
}, _hoisted_5$
|
|
7436
|
+
}, _hoisted_5$c, 2)
|
|
6985
7437
|
]),
|
|
6986
7438
|
createElementVNode("div", _hoisted_6$b, [
|
|
6987
7439
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pageShortcuts), (i) => {
|
|
@@ -7011,11 +7463,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7011
7463
|
};
|
|
7012
7464
|
}
|
|
7013
7465
|
});
|
|
7014
|
-
const _hoisted_1$
|
|
7466
|
+
const _hoisted_1$k = {
|
|
7015
7467
|
key: 0,
|
|
7016
7468
|
class: "shadow overflow-hidden sm:rounded-md border"
|
|
7017
7469
|
};
|
|
7018
|
-
const _sfc_main$
|
|
7470
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
7019
7471
|
props: {
|
|
7020
7472
|
refreshTrigger: { default: 0 },
|
|
7021
7473
|
reloadTrigger: { default: 0 },
|
|
@@ -7070,14 +7522,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7070
7522
|
loadAndRender(true);
|
|
7071
7523
|
return (_ctx, _cache) => {
|
|
7072
7524
|
return openBlock(), createElementBlock("div", null, [
|
|
7073
|
-
createVNode(_sfc_main$
|
|
7525
|
+
createVNode(_sfc_main$o, {
|
|
7074
7526
|
"date-range": dateRange.value,
|
|
7075
7527
|
"sort-dir": sortDir.value,
|
|
7076
7528
|
title: __props.title,
|
|
7077
7529
|
onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
7078
7530
|
onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
|
|
7079
7531
|
}, null, 8, ["date-range", "sort-dir", "title"]),
|
|
7080
|
-
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7532
|
+
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
7081
7533
|
createElementVNode("ul", null, [
|
|
7082
7534
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
|
|
7083
7535
|
return openBlock(), createElementBlock("li", {
|
|
@@ -7089,7 +7541,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7089
7541
|
}), 128))
|
|
7090
7542
|
])
|
|
7091
7543
|
])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
|
|
7092
|
-
hasContent.value ? (openBlock(), createBlock(_sfc_main$
|
|
7544
|
+
hasContent.value ? (openBlock(), createBlock(_sfc_main$n, {
|
|
7093
7545
|
key: 2,
|
|
7094
7546
|
modelValue: pagination.value,
|
|
7095
7547
|
"onUpdate:modelValue": [
|
|
@@ -7101,8 +7553,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7101
7553
|
};
|
|
7102
7554
|
}
|
|
7103
7555
|
});
|
|
7104
|
-
const _hoisted_1$
|
|
7105
|
-
const _sfc_main$
|
|
7556
|
+
const _hoisted_1$j = ["href"];
|
|
7557
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
7106
7558
|
props: {
|
|
7107
7559
|
propsData: null,
|
|
7108
7560
|
attribute: null
|
|
@@ -7113,15 +7565,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
7113
7565
|
href: __props.propsData[__props.attribute]
|
|
7114
7566
|
}, [
|
|
7115
7567
|
createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
|
|
7116
|
-
], 8, _hoisted_1$
|
|
7568
|
+
], 8, _hoisted_1$j);
|
|
7117
7569
|
};
|
|
7118
7570
|
}
|
|
7119
7571
|
});
|
|
7120
|
-
const _hoisted_1$
|
|
7121
|
-
const _hoisted_2$
|
|
7122
|
-
const _hoisted_3$
|
|
7123
|
-
const _hoisted_4$
|
|
7124
|
-
const _hoisted_5$
|
|
7572
|
+
const _hoisted_1$i = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
|
|
7573
|
+
const _hoisted_2$f = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
|
|
7574
|
+
const _hoisted_3$e = { class: "p-4" };
|
|
7575
|
+
const _hoisted_4$c = { class: "flex items-center" };
|
|
7576
|
+
const _hoisted_5$b = { class: "w-0 flex-1 flex justify-between" };
|
|
7125
7577
|
const _hoisted_6$a = ["innerHTML"];
|
|
7126
7578
|
const _hoisted_7$9 = { class: "ml-4 flex-shrink-0 flex" };
|
|
7127
7579
|
const _hoisted_8$7 = ["onClick"];
|
|
@@ -7139,7 +7591,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7139
7591
|
const _hoisted_10$7 = [
|
|
7140
7592
|
_hoisted_9$7
|
|
7141
7593
|
];
|
|
7142
|
-
const _sfc_main$
|
|
7594
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
7143
7595
|
setup(__props) {
|
|
7144
7596
|
const flashes = ref([]);
|
|
7145
7597
|
const flashTypeBorderClass = {
|
|
@@ -7194,7 +7646,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7194
7646
|
}
|
|
7195
7647
|
});
|
|
7196
7648
|
return (_ctx, _cache) => {
|
|
7197
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7649
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
7198
7650
|
createVNode(TransitionGroup, {
|
|
7199
7651
|
tag: "div",
|
|
7200
7652
|
class: "max-w-sm w-full",
|
|
@@ -7211,10 +7663,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7211
7663
|
key: flash.message,
|
|
7212
7664
|
class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
|
|
7213
7665
|
}, [
|
|
7214
|
-
createElementVNode("div", _hoisted_2$
|
|
7215
|
-
createElementVNode("div", _hoisted_3$
|
|
7216
|
-
createElementVNode("div", _hoisted_4$
|
|
7217
|
-
createElementVNode("div", _hoisted_5$
|
|
7666
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
7667
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
7668
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
7669
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
7218
7670
|
createElementVNode("p", {
|
|
7219
7671
|
class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
|
|
7220
7672
|
innerHTML: flash.message
|
|
@@ -7286,7 +7738,7 @@ function render$2(_ctx, _cache) {
|
|
|
7286
7738
|
})
|
|
7287
7739
|
]);
|
|
7288
7740
|
}
|
|
7289
|
-
function render$
|
|
7741
|
+
function render$117(_ctx, _cache) {
|
|
7290
7742
|
return openBlock(), createBlock("svg", {
|
|
7291
7743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7292
7744
|
fill: "none",
|
|
@@ -7318,14 +7770,14 @@ function render(_ctx, _cache) {
|
|
|
7318
7770
|
})
|
|
7319
7771
|
]);
|
|
7320
7772
|
}
|
|
7321
|
-
const _hoisted_1$
|
|
7322
|
-
const _hoisted_2$
|
|
7773
|
+
const _hoisted_1$h = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
|
|
7774
|
+
const _hoisted_2$e = /* @__PURE__ */ createElementVNode("span", {
|
|
7323
7775
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
7324
7776
|
"aria-hidden": "true"
|
|
7325
7777
|
}, "\u200B", -1);
|
|
7326
|
-
const _hoisted_3$
|
|
7327
|
-
const _hoisted_4$
|
|
7328
|
-
const _hoisted_5$
|
|
7778
|
+
const _hoisted_3$d = { 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" };
|
|
7779
|
+
const _hoisted_4$b = { class: "block absolute top-0 right-0 pt-4 pr-4" };
|
|
7780
|
+
const _hoisted_5$a = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
|
|
7329
7781
|
const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
|
|
7330
7782
|
const _hoisted_7$8 = { class: "mt-3 sm:mt-0 sm:text-left" };
|
|
7331
7783
|
const _hoisted_8$6 = { class: "mt-2" };
|
|
@@ -7334,7 +7786,7 @@ const _hoisted_9$6 = {
|
|
|
7334
7786
|
class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
|
|
7335
7787
|
};
|
|
7336
7788
|
const _hoisted_10$6 = ["textContent", "disabled"];
|
|
7337
|
-
const _sfc_main$
|
|
7789
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
7338
7790
|
props: {
|
|
7339
7791
|
destructive: { type: Boolean, default: false },
|
|
7340
7792
|
disabled: { type: Boolean, default: false },
|
|
@@ -7347,7 +7799,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7347
7799
|
const submit = () => {
|
|
7348
7800
|
emit("submit");
|
|
7349
7801
|
};
|
|
7350
|
-
const
|
|
7802
|
+
const updateModelValue3 = (value) => {
|
|
7351
7803
|
emit("update:modelValue", value);
|
|
7352
7804
|
};
|
|
7353
7805
|
return (_ctx, _cache) => {
|
|
@@ -7360,11 +7812,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7360
7812
|
as: "div",
|
|
7361
7813
|
static: "",
|
|
7362
7814
|
class: "fixed z-10 inset-0 overflow-y-auto",
|
|
7363
|
-
onClose: _cache[3] || (_cache[3] = ($event) =>
|
|
7815
|
+
onClose: _cache[3] || (_cache[3] = ($event) => updateModelValue3(false)),
|
|
7364
7816
|
open: __props.modelValue
|
|
7365
7817
|
}, {
|
|
7366
7818
|
default: withCtx(() => [
|
|
7367
|
-
createElementVNode("div", _hoisted_1$
|
|
7819
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
7368
7820
|
createVNode(unref(TransitionChild), {
|
|
7369
7821
|
as: "template",
|
|
7370
7822
|
enter: "ease-out duration-300",
|
|
@@ -7379,7 +7831,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7379
7831
|
]),
|
|
7380
7832
|
_: 1
|
|
7381
7833
|
}),
|
|
7382
|
-
_hoisted_2$
|
|
7834
|
+
_hoisted_2$e,
|
|
7383
7835
|
createVNode(unref(TransitionChild), {
|
|
7384
7836
|
as: "template",
|
|
7385
7837
|
enter: "ease-out duration-300",
|
|
@@ -7390,14 +7842,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7390
7842
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
7391
7843
|
}, {
|
|
7392
7844
|
default: withCtx(() => [
|
|
7393
|
-
createElementVNode("div", _hoisted_3$
|
|
7394
|
-
createElementVNode("div", _hoisted_4$
|
|
7845
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
7846
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
7395
7847
|
createElementVNode("button", {
|
|
7396
7848
|
type: "button",
|
|
7397
7849
|
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",
|
|
7398
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
7850
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
7399
7851
|
}, [
|
|
7400
|
-
_hoisted_5$
|
|
7852
|
+
_hoisted_5$a,
|
|
7401
7853
|
createVNode(unref(render), {
|
|
7402
7854
|
class: "h-6 w-6",
|
|
7403
7855
|
"aria-hidden": "true"
|
|
@@ -7427,7 +7879,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7427
7879
|
createElementVNode("button", {
|
|
7428
7880
|
type: "button",
|
|
7429
7881
|
class: "xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
|
|
7430
|
-
onClick: _cache[2] || (_cache[2] = ($event) =>
|
|
7882
|
+
onClick: _cache[2] || (_cache[2] = ($event) => updateModelValue3(false)),
|
|
7431
7883
|
ref: "cancelButtonRef"
|
|
7432
7884
|
}, " Cancel ", 512)
|
|
7433
7885
|
])) : createCommentVNode("", true),
|
|
@@ -7446,11 +7898,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7446
7898
|
};
|
|
7447
7899
|
}
|
|
7448
7900
|
});
|
|
7449
|
-
const _hoisted_1$
|
|
7901
|
+
const _hoisted_1$g = {
|
|
7450
7902
|
key: 0,
|
|
7451
7903
|
class: "fixed top-0 left-0 flex items-center justify-center w-full h-full cursor-not-allowed z-50 bg-gray-50 bg-opacity-50"
|
|
7452
7904
|
};
|
|
7453
|
-
const _hoisted_2$
|
|
7905
|
+
const _hoisted_2$d = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
|
|
7454
7906
|
/* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
|
|
7455
7907
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
7456
7908
|
width: "129px",
|
|
@@ -7528,7 +7980,7 @@ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
|
|
|
7528
7980
|
])
|
|
7529
7981
|
])
|
|
7530
7982
|
], -1);
|
|
7531
|
-
const _sfc_main$
|
|
7983
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
7532
7984
|
setup(__props) {
|
|
7533
7985
|
const idx = ref(0);
|
|
7534
7986
|
const loading = ref(false);
|
|
@@ -7570,9 +8022,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7570
8022
|
});
|
|
7571
8023
|
});
|
|
7572
8024
|
return (_ctx, _cache) => {
|
|
7573
|
-
return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8025
|
+
return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
7574
8026
|
createElementVNode("div", null, [
|
|
7575
|
-
_hoisted_2$
|
|
8027
|
+
_hoisted_2$d,
|
|
7576
8028
|
withDirectives(createElementVNode("div", null, [
|
|
7577
8029
|
createVNode(Transition, {
|
|
7578
8030
|
appear: "",
|
|
@@ -7600,11 +8052,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7600
8052
|
};
|
|
7601
8053
|
}
|
|
7602
8054
|
});
|
|
7603
|
-
const _hoisted_1$
|
|
7604
|
-
const _hoisted_2$
|
|
7605
|
-
const _hoisted_3$
|
|
7606
|
-
const _hoisted_4$
|
|
7607
|
-
const _hoisted_5$
|
|
8055
|
+
const _hoisted_1$f = { class: "h-screen flex overflow-hidden bg-gray-100" };
|
|
8056
|
+
const _hoisted_2$c = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" };
|
|
8057
|
+
const _hoisted_3$c = { class: "absolute top-0 right-0 -mr-12 pt-2" };
|
|
8058
|
+
const _hoisted_4$a = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
|
|
8059
|
+
const _hoisted_5$9 = { class: "flex-shrink-0 flex justify-center px-4" };
|
|
7608
8060
|
const _hoisted_6$8 = ["src"];
|
|
7609
8061
|
const _hoisted_7$7 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
|
|
7610
8062
|
const _hoisted_8$5 = { class: "px-2 space-y-1" };
|
|
@@ -7632,7 +8084,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
|
|
|
7632
8084
|
const _hoisted_27 = ["href"];
|
|
7633
8085
|
const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
|
|
7634
8086
|
const _hoisted_29 = { class: "mx-auto" };
|
|
7635
|
-
const _sfc_main$
|
|
8087
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
7636
8088
|
props: {
|
|
7637
8089
|
activeURL: { default: "" },
|
|
7638
8090
|
iconURL: null,
|
|
@@ -7647,7 +8099,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7647
8099
|
};
|
|
7648
8100
|
return (_ctx, _cache) => {
|
|
7649
8101
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7650
|
-
createElementVNode("div", _hoisted_1$
|
|
8102
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
7651
8103
|
createVNode(unref(TransitionRoot), {
|
|
7652
8104
|
as: "template",
|
|
7653
8105
|
show: sidebarOpen.value
|
|
@@ -7685,7 +8137,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7685
8137
|
"leave-to": "-translate-x-full"
|
|
7686
8138
|
}, {
|
|
7687
8139
|
default: withCtx(() => [
|
|
7688
|
-
createElementVNode("div", _hoisted_2$
|
|
8140
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
7689
8141
|
createVNode(unref(TransitionChild), {
|
|
7690
8142
|
as: "template",
|
|
7691
8143
|
enter: "ease-in-out duration-300",
|
|
@@ -7696,12 +8148,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7696
8148
|
"leave-to": "opacity-0"
|
|
7697
8149
|
}, {
|
|
7698
8150
|
default: withCtx(() => [
|
|
7699
|
-
createElementVNode("div", _hoisted_3$
|
|
8151
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
7700
8152
|
createElementVNode("button", {
|
|
7701
8153
|
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",
|
|
7702
8154
|
onClick: _cache[0] || (_cache[0] = ($event) => sidebarOpen.value = false)
|
|
7703
8155
|
}, [
|
|
7704
|
-
_hoisted_4$
|
|
8156
|
+
_hoisted_4$a,
|
|
7705
8157
|
createVNode(unref(render), {
|
|
7706
8158
|
class: "h-6 w-6 text-white",
|
|
7707
8159
|
"aria-hidden": "true"
|
|
@@ -7711,7 +8163,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7711
8163
|
]),
|
|
7712
8164
|
_: 1
|
|
7713
8165
|
}),
|
|
7714
|
-
createElementVNode("div", _hoisted_5$
|
|
8166
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
7715
8167
|
createElementVNode("img", {
|
|
7716
8168
|
class: "w-auto h-12",
|
|
7717
8169
|
src: __props.iconURL,
|
|
@@ -7872,8 +8324,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7872
8324
|
])
|
|
7873
8325
|
])
|
|
7874
8326
|
]),
|
|
7875
|
-
createVNode(_sfc_main$
|
|
7876
|
-
createVNode(_sfc_main$
|
|
8327
|
+
createVNode(_sfc_main$k),
|
|
8328
|
+
createVNode(_sfc_main$i)
|
|
7877
8329
|
], 64);
|
|
7878
8330
|
};
|
|
7879
8331
|
}
|
|
@@ -7888,7 +8340,7 @@ function throttle(func, timeout = 100) {
|
|
|
7888
8340
|
}
|
|
7889
8341
|
};
|
|
7890
8342
|
}
|
|
7891
|
-
const _sfc_main$
|
|
8343
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
7892
8344
|
props: {
|
|
7893
8345
|
as: { default: "div" },
|
|
7894
8346
|
position: { default: "auto" }
|
|
@@ -8084,26 +8536,26 @@ var _export_sfc = (sfc, props) => {
|
|
|
8084
8536
|
}
|
|
8085
8537
|
return target;
|
|
8086
8538
|
};
|
|
8087
|
-
const _sfc_main$
|
|
8088
|
-
const _hoisted_1$
|
|
8539
|
+
const _sfc_main$f = {};
|
|
8540
|
+
const _hoisted_1$e = { class: "w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md" };
|
|
8089
8541
|
function _sfc_render(_ctx, _cache) {
|
|
8090
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8542
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
8091
8543
|
renderSlot(_ctx.$slots, "default")
|
|
8092
8544
|
]);
|
|
8093
8545
|
}
|
|
8094
|
-
var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8095
|
-
const _hoisted_1$
|
|
8096
|
-
const _hoisted_2$
|
|
8097
|
-
const _hoisted_3$
|
|
8098
|
-
const _hoisted_4$
|
|
8099
|
-
const _hoisted_5$
|
|
8546
|
+
var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
8547
|
+
const _hoisted_1$d = { class: "absolute inset-0 overflow-hidden" };
|
|
8548
|
+
const _hoisted_2$b = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" };
|
|
8549
|
+
const _hoisted_3$b = { class: "w-screen max-w-md" };
|
|
8550
|
+
const _hoisted_4$9 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
|
|
8551
|
+
const _hoisted_5$8 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
|
|
8100
8552
|
const _hoisted_6$7 = { class: "flex items-center justify-between" };
|
|
8101
8553
|
const _hoisted_7$6 = { class: "ml-3 h-7 flex items-center" };
|
|
8102
8554
|
const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
|
|
8103
8555
|
const _hoisted_9$4 = { class: "mt-1" };
|
|
8104
8556
|
const _hoisted_10$4 = ["textContent"];
|
|
8105
8557
|
const _hoisted_11$3 = { class: "relative flex-1 py-6 px-4 sm:px-6" };
|
|
8106
|
-
const _sfc_main$
|
|
8558
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
8107
8559
|
props: {
|
|
8108
8560
|
header: null,
|
|
8109
8561
|
description: null,
|
|
@@ -8132,9 +8584,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8132
8584
|
open: __props.modelValue
|
|
8133
8585
|
}, {
|
|
8134
8586
|
default: withCtx(() => [
|
|
8135
|
-
createElementVNode("div", _hoisted_1$
|
|
8587
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
8136
8588
|
createVNode(unref(DialogOverlay), { class: "absolute inset-0" }),
|
|
8137
|
-
createElementVNode("div", _hoisted_2$
|
|
8589
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
8138
8590
|
createVNode(unref(TransitionChild), {
|
|
8139
8591
|
as: "template",
|
|
8140
8592
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -8145,9 +8597,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8145
8597
|
"leave-to": "translate-x-full"
|
|
8146
8598
|
}, {
|
|
8147
8599
|
default: withCtx(() => [
|
|
8148
|
-
createElementVNode("div", _hoisted_3$
|
|
8149
|
-
createElementVNode("div", _hoisted_4$
|
|
8150
|
-
createElementVNode("div", _hoisted_5$
|
|
8600
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
8601
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
8602
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
8151
8603
|
createElementVNode("div", _hoisted_6$7, [
|
|
8152
8604
|
createVNode(unref(DialogTitle), {
|
|
8153
8605
|
as: "h3",
|
|
@@ -8194,28 +8646,28 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8194
8646
|
};
|
|
8195
8647
|
}
|
|
8196
8648
|
});
|
|
8197
|
-
const _hoisted_1$
|
|
8198
|
-
const _hoisted_2$
|
|
8199
|
-
const _hoisted_3$
|
|
8200
|
-
const _sfc_main$
|
|
8649
|
+
const _hoisted_1$c = { class: "leading-none w-4 h-4" };
|
|
8650
|
+
const _hoisted_2$a = /* @__PURE__ */ createElementVNode("div", { class: "p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }, null, -1);
|
|
8651
|
+
const _hoisted_3$a = { 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" };
|
|
8652
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
8201
8653
|
props: {
|
|
8202
8654
|
as: { default: "span" },
|
|
8203
8655
|
position: { default: "auto" }
|
|
8204
8656
|
},
|
|
8205
8657
|
setup(__props) {
|
|
8206
8658
|
return (_ctx, _cache) => {
|
|
8207
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8659
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
8208
8660
|
position: __props.position,
|
|
8209
8661
|
as: __props.as
|
|
8210
8662
|
}, {
|
|
8211
8663
|
button: withCtx(() => [
|
|
8212
|
-
createElementVNode("div", _hoisted_1$
|
|
8664
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
8213
8665
|
createVNode(unref(render$4)),
|
|
8214
|
-
_hoisted_2$
|
|
8666
|
+
_hoisted_2$a
|
|
8215
8667
|
])
|
|
8216
8668
|
]),
|
|
8217
8669
|
default: withCtx(() => [
|
|
8218
|
-
createElementVNode("div", _hoisted_3$
|
|
8670
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
8219
8671
|
renderSlot(_ctx.$slots, "default")
|
|
8220
8672
|
])
|
|
8221
8673
|
]),
|
|
@@ -8224,11 +8676,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8224
8676
|
};
|
|
8225
8677
|
}
|
|
8226
8678
|
});
|
|
8227
|
-
const _hoisted_1$
|
|
8228
|
-
const _hoisted_2$
|
|
8229
|
-
const _hoisted_3$
|
|
8230
|
-
const _hoisted_4$
|
|
8231
|
-
const _hoisted_5$
|
|
8679
|
+
const _hoisted_1$b = { class: "min-h-screen bg-gray-100" };
|
|
8680
|
+
const _hoisted_2$9 = { class: "mx-auto px-4 sm:px-6 lg:px-8" };
|
|
8681
|
+
const _hoisted_3$9 = { class: "flex justify-between h-16" };
|
|
8682
|
+
const _hoisted_4$8 = { class: "flex" };
|
|
8683
|
+
const _hoisted_5$7 = { class: "flex-shrink-0 flex items-center" };
|
|
8232
8684
|
const _hoisted_6$6 = ["src"];
|
|
8233
8685
|
const _hoisted_7$5 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
|
|
8234
8686
|
const _hoisted_8$3 = ["href", "aria-current"];
|
|
@@ -8249,7 +8701,7 @@ const _hoisted_22$1 = { class: "mt-3 space-y-1" };
|
|
|
8249
8701
|
const _hoisted_23$1 = ["href"];
|
|
8250
8702
|
const _hoisted_24$1 = { class: "mx-auto sm:px-6 lg:px-8" };
|
|
8251
8703
|
const _hoisted_25 = { class: "px-4 py-8 sm:px-0" };
|
|
8252
|
-
const _sfc_main$
|
|
8704
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
8253
8705
|
props: {
|
|
8254
8706
|
activeURL: { default: "" },
|
|
8255
8707
|
currentUser: null,
|
|
@@ -8264,16 +8716,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8264
8716
|
};
|
|
8265
8717
|
return (_ctx, _cache) => {
|
|
8266
8718
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
8267
|
-
createElementVNode("div", _hoisted_1$
|
|
8719
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
8268
8720
|
createVNode(unref(Disclosure), {
|
|
8269
8721
|
as: "nav",
|
|
8270
8722
|
class: "bg-white shadow-sm"
|
|
8271
8723
|
}, {
|
|
8272
8724
|
default: withCtx(({ open }) => [
|
|
8273
|
-
createElementVNode("div", _hoisted_2$
|
|
8274
|
-
createElementVNode("div", _hoisted_3$
|
|
8275
|
-
createElementVNode("div", _hoisted_4$
|
|
8276
|
-
createElementVNode("div", _hoisted_5$
|
|
8725
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
8726
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
8727
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
8728
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
8277
8729
|
createElementVNode("img", {
|
|
8278
8730
|
class: "block h-8 w-auto",
|
|
8279
8731
|
src: __props.iconURL,
|
|
@@ -8304,7 +8756,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8304
8756
|
createVNode(unref(MenuButton), { class: "bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" }, {
|
|
8305
8757
|
default: withCtx(() => [
|
|
8306
8758
|
_hoisted_10$3,
|
|
8307
|
-
createVNode(unref(render$
|
|
8759
|
+
createVNode(unref(render$117), { class: "text-gray-500 h-8 w-8 rounded-full" })
|
|
8308
8760
|
]),
|
|
8309
8761
|
_: 1
|
|
8310
8762
|
})
|
|
@@ -8383,7 +8835,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8383
8835
|
createElementVNode("div", _hoisted_16$1, [
|
|
8384
8836
|
createElementVNode("div", _hoisted_17$1, [
|
|
8385
8837
|
createElementVNode("div", _hoisted_18$1, [
|
|
8386
|
-
createVNode(unref(render$
|
|
8838
|
+
createVNode(unref(render$117), { class: "text-gray-500 h-10 w-10 rounded-full" })
|
|
8387
8839
|
]),
|
|
8388
8840
|
createElementVNode("div", _hoisted_19$1, [
|
|
8389
8841
|
__props.currentUser.name ? (openBlock(), createElementBlock("div", {
|
|
@@ -8422,23 +8874,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8422
8874
|
])
|
|
8423
8875
|
])
|
|
8424
8876
|
]),
|
|
8425
|
-
createVNode(_sfc_main$
|
|
8426
|
-
createVNode(_sfc_main$
|
|
8877
|
+
createVNode(_sfc_main$k),
|
|
8878
|
+
createVNode(_sfc_main$i)
|
|
8427
8879
|
], 64);
|
|
8428
8880
|
};
|
|
8429
8881
|
}
|
|
8430
8882
|
});
|
|
8431
|
-
const _hoisted_1$
|
|
8432
|
-
const _hoisted_2$
|
|
8433
|
-
const _hoisted_3$
|
|
8434
|
-
const _hoisted_4$
|
|
8435
|
-
const _hoisted_5$
|
|
8883
|
+
const _hoisted_1$a = { class: "flex flex-col" };
|
|
8884
|
+
const _hoisted_2$8 = { class: "-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" };
|
|
8885
|
+
const _hoisted_3$8 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
|
|
8886
|
+
const _hoisted_4$7 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
|
|
8887
|
+
const _hoisted_5$6 = { class: "min-w-full divide-y divide-gray-200" };
|
|
8436
8888
|
const _hoisted_6$5 = ["textContent"];
|
|
8437
8889
|
const _hoisted_7$4 = { class: "bg-white divide-y divide-gray-200" };
|
|
8438
8890
|
const _hoisted_8$2 = ["textContent"];
|
|
8439
8891
|
const _hoisted_9$2 = { key: 0 };
|
|
8440
8892
|
const _hoisted_10$2 = ["colspan"];
|
|
8441
|
-
const _sfc_main$
|
|
8893
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
8442
8894
|
props: {
|
|
8443
8895
|
tableData: null
|
|
8444
8896
|
},
|
|
@@ -8454,11 +8906,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8454
8906
|
return "";
|
|
8455
8907
|
};
|
|
8456
8908
|
return (_ctx, _cache) => {
|
|
8457
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8458
|
-
createElementVNode("div", _hoisted_2$
|
|
8459
|
-
createElementVNode("div", _hoisted_3$
|
|
8460
|
-
createElementVNode("div", _hoisted_4$
|
|
8461
|
-
createElementVNode("table", _hoisted_5$
|
|
8909
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
8910
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
8911
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
8912
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
8913
|
+
createElementVNode("table", _hoisted_5$6, [
|
|
8462
8914
|
createElementVNode("thead", null, [
|
|
8463
8915
|
createElementVNode("tr", null, [
|
|
8464
8916
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.columns, (col, idx) => {
|
|
@@ -8508,14 +8960,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8508
8960
|
};
|
|
8509
8961
|
}
|
|
8510
8962
|
});
|
|
8511
|
-
const _hoisted_1$
|
|
8512
|
-
const _hoisted_2$
|
|
8513
|
-
const _hoisted_3$
|
|
8514
|
-
const _hoisted_4$
|
|
8963
|
+
const _hoisted_1$9 = { class: "flex items-center justify-center space-x-8" };
|
|
8964
|
+
const _hoisted_2$7 = { class: "font-medium" };
|
|
8965
|
+
const _hoisted_3$7 = { class: "flex items-center space-x-5" };
|
|
8966
|
+
const _hoisted_4$6 = {
|
|
8515
8967
|
key: 0,
|
|
8516
8968
|
class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
|
|
8517
8969
|
};
|
|
8518
|
-
const _hoisted_5$
|
|
8970
|
+
const _hoisted_5$5 = {
|
|
8519
8971
|
key: 1,
|
|
8520
8972
|
class: "relative flex items-center justify-center"
|
|
8521
8973
|
};
|
|
@@ -8543,7 +8995,7 @@ const _hoisted_11$1 = {
|
|
|
8543
8995
|
const _hoisted_12$1 = ["textContent"];
|
|
8544
8996
|
const _hoisted_13$1 = { class: "ml-3 inline-flex rounded-md shadow-sm" };
|
|
8545
8997
|
const _hoisted_14$1 = ["textContent"];
|
|
8546
|
-
const _sfc_main$
|
|
8998
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
8547
8999
|
props: {
|
|
8548
9000
|
hideActions: { type: Boolean, default: false },
|
|
8549
9001
|
hidePrevious: { type: Boolean, default: false },
|
|
@@ -8562,12 +9014,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
8562
9014
|
};
|
|
8563
9015
|
return (_ctx, _cache) => {
|
|
8564
9016
|
return openBlock(), createElementBlock("div", null, [
|
|
8565
|
-
createElementVNode("nav", _hoisted_1$
|
|
8566
|
-
createElementVNode("p", _hoisted_2$
|
|
8567
|
-
createElementVNode("ul", _hoisted_3$
|
|
9017
|
+
createElementVNode("nav", _hoisted_1$9, [
|
|
9018
|
+
createElementVNode("p", _hoisted_2$7, "Step " + toDisplayString(__props.step) + " of " + toDisplayString(__props.total), 1),
|
|
9019
|
+
createElementVNode("ul", _hoisted_3$7, [
|
|
8568
9020
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.total, (index) => {
|
|
8569
9021
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
8570
|
-
__props.step > index ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9022
|
+
__props.step > index ? (openBlock(), createElementBlock("span", _hoisted_4$6)) : __props.step === index ? (openBlock(), createElementBlock("div", _hoisted_5$5, _hoisted_8$1)) : (openBlock(), createElementBlock("span", _hoisted_9$1))
|
|
8571
9023
|
]);
|
|
8572
9024
|
}), 128))
|
|
8573
9025
|
])
|
|
@@ -8594,17 +9046,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
8594
9046
|
};
|
|
8595
9047
|
}
|
|
8596
9048
|
});
|
|
8597
|
-
const _hoisted_1$
|
|
8598
|
-
const _hoisted_2$
|
|
9049
|
+
const _hoisted_1$8 = { class: "flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between" };
|
|
9050
|
+
const _hoisted_2$6 = {
|
|
8599
9051
|
key: 0,
|
|
8600
9052
|
class: "w-full max-w-lg lg:max-w-xs"
|
|
8601
9053
|
};
|
|
8602
|
-
const _hoisted_3$
|
|
9054
|
+
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("label", {
|
|
8603
9055
|
for: "search",
|
|
8604
9056
|
class: "sr-only"
|
|
8605
9057
|
}, "Search", -1);
|
|
8606
|
-
const _hoisted_4$
|
|
8607
|
-
const _hoisted_5$
|
|
9058
|
+
const _hoisted_4$5 = { class: "relative" };
|
|
9059
|
+
const _hoisted_5$4 = /* @__PURE__ */ createElementVNode("div", { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" }, [
|
|
8608
9060
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
8609
9061
|
class: "w-5 h-5 text-gray-400",
|
|
8610
9062
|
fill: "currentColor",
|
|
@@ -8677,7 +9129,7 @@ const _hoisted_21 = ["onClick"];
|
|
|
8677
9129
|
const _hoisted_22 = ["textContent"];
|
|
8678
9130
|
const _hoisted_23 = { key: 0 };
|
|
8679
9131
|
const _hoisted_24 = ["colspan"];
|
|
8680
|
-
const _sfc_main$
|
|
9132
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
8681
9133
|
props: {
|
|
8682
9134
|
clickable: { type: Boolean, default: false },
|
|
8683
9135
|
loader: { type: Boolean, default: true },
|
|
@@ -8761,11 +9213,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8761
9213
|
loadAndRender();
|
|
8762
9214
|
return (_ctx, _cache) => {
|
|
8763
9215
|
return openBlock(), createElementBlock("div", null, [
|
|
8764
|
-
createElementVNode("div", _hoisted_1$
|
|
8765
|
-
__props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8766
|
-
_hoisted_3$
|
|
8767
|
-
createElementVNode("div", _hoisted_4$
|
|
8768
|
-
_hoisted_5$
|
|
9216
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
9217
|
+
__props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
9218
|
+
_hoisted_3$6,
|
|
9219
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
9220
|
+
_hoisted_5$4,
|
|
8769
9221
|
withDirectives(createElementVNode("input", {
|
|
8770
9222
|
class: "pl-10",
|
|
8771
9223
|
type: "search",
|
|
@@ -8783,7 +9235,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8783
9235
|
])
|
|
8784
9236
|
])) : createCommentVNode("", true),
|
|
8785
9237
|
__props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
8786
|
-
createVNode(_sfc_main$
|
|
9238
|
+
createVNode(_sfc_main$q, {
|
|
8787
9239
|
modelValue: dateRange.value,
|
|
8788
9240
|
"onUpdate:modelValue": [
|
|
8789
9241
|
_cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
|
|
@@ -8848,7 +9300,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8848
9300
|
])
|
|
8849
9301
|
])
|
|
8850
9302
|
]),
|
|
8851
|
-
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$
|
|
9303
|
+
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8852
9304
|
key: 0,
|
|
8853
9305
|
modelValue: pagination.value,
|
|
8854
9306
|
"onUpdate:modelValue": [
|
|
@@ -8860,13 +9312,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8860
9312
|
};
|
|
8861
9313
|
}
|
|
8862
9314
|
});
|
|
8863
|
-
const _hoisted_1$
|
|
9315
|
+
const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("label", {
|
|
8864
9316
|
for: "tabs",
|
|
8865
9317
|
class: "sr-only"
|
|
8866
9318
|
}, "Select a tab", -1);
|
|
8867
|
-
const _hoisted_2$
|
|
8868
|
-
const _hoisted_3$
|
|
8869
|
-
const _sfc_main$
|
|
9319
|
+
const _hoisted_2$5 = { class: "hidden sm:block" };
|
|
9320
|
+
const _hoisted_3$5 = ["textContent", "onClick"];
|
|
9321
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
8870
9322
|
props: {
|
|
8871
9323
|
modelValue: null,
|
|
8872
9324
|
pillDesign: { type: Boolean, default: false },
|
|
@@ -8875,7 +9327,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8875
9327
|
emits: ["update:modelValue"],
|
|
8876
9328
|
setup(__props, { emit }) {
|
|
8877
9329
|
const props = __props;
|
|
8878
|
-
const
|
|
9330
|
+
const updateModelValue3 = (modelValue) => {
|
|
8879
9331
|
emit("update:modelValue", modelValue);
|
|
8880
9332
|
};
|
|
8881
9333
|
const classes = (currentTab, pastFirstTab) => {
|
|
@@ -8908,15 +9360,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8908
9360
|
createElementVNode("div", {
|
|
8909
9361
|
class: normalizeClass(["sm:hidden", { "mb-4": __props.pillDesign }])
|
|
8910
9362
|
}, [
|
|
8911
|
-
_hoisted_1$
|
|
9363
|
+
_hoisted_1$7,
|
|
8912
9364
|
createVNode(_component_Select, {
|
|
8913
9365
|
name: "tabs",
|
|
8914
9366
|
modelValue: __props.modelValue,
|
|
8915
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
9367
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => updateModelValue3($event)),
|
|
8916
9368
|
options: __props.tabs
|
|
8917
9369
|
}, null, 8, ["modelValue", "options"])
|
|
8918
9370
|
], 2),
|
|
8919
|
-
createElementVNode("div", _hoisted_2$
|
|
9371
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
8920
9372
|
createElementVNode("div", {
|
|
8921
9373
|
class: normalizeClass({ "border-b border-gray-200": unref(notPillDesign) })
|
|
8922
9374
|
}, [
|
|
@@ -8929,8 +9381,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8929
9381
|
class: normalizeClass(classes(tab.value, idx > 0)),
|
|
8930
9382
|
key: idx,
|
|
8931
9383
|
textContent: toDisplayString(tab.label),
|
|
8932
|
-
onClick: withModifiers(($event) =>
|
|
8933
|
-
}, null, 10, _hoisted_3$
|
|
9384
|
+
onClick: withModifiers(($event) => updateModelValue3(tab.value), ["prevent"])
|
|
9385
|
+
}, null, 10, _hoisted_3$5);
|
|
8934
9386
|
}), 128))
|
|
8935
9387
|
], 2)
|
|
8936
9388
|
], 2)
|
|
@@ -8939,8 +9391,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8939
9391
|
};
|
|
8940
9392
|
}
|
|
8941
9393
|
});
|
|
8942
|
-
const _hoisted_1$
|
|
8943
|
-
const _sfc_main$
|
|
9394
|
+
const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
|
|
9395
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
8944
9396
|
props: {
|
|
8945
9397
|
modelValue: { type: Boolean, default: false }
|
|
8946
9398
|
},
|
|
@@ -8956,7 +9408,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8956
9408
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event))
|
|
8957
9409
|
}, {
|
|
8958
9410
|
default: withCtx(() => [
|
|
8959
|
-
_hoisted_1$
|
|
9411
|
+
_hoisted_1$6,
|
|
8960
9412
|
createElementVNode("span", {
|
|
8961
9413
|
"aria-hidden": "true",
|
|
8962
9414
|
class: normalizeClass([
|
|
@@ -8970,11 +9422,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8970
9422
|
};
|
|
8971
9423
|
}
|
|
8972
9424
|
});
|
|
8973
|
-
const _hoisted_1$
|
|
8974
|
-
const _hoisted_2$
|
|
8975
|
-
const _hoisted_3$
|
|
8976
|
-
const _hoisted_4$
|
|
8977
|
-
const _sfc_main$
|
|
9425
|
+
const _hoisted_1$5 = { class: "relative flex items-start" };
|
|
9426
|
+
const _hoisted_2$4 = { class: "flex items-center h-5" };
|
|
9427
|
+
const _hoisted_3$4 = ["id", "aria-labelledby", "aria-describedby", "checked"];
|
|
9428
|
+
const _hoisted_4$4 = { class: "ml-3" };
|
|
9429
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
8978
9430
|
props: {
|
|
8979
9431
|
label: { default: "" },
|
|
8980
9432
|
help: { default: "" },
|
|
@@ -8985,8 +9437,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
8985
9437
|
const attrs = useAttrs();
|
|
8986
9438
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
8987
9439
|
return (_ctx, _cache) => {
|
|
8988
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8989
|
-
createElementVNode("div", _hoisted_2$
|
|
9440
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
9441
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
8990
9442
|
createElementVNode("input", mergeProps({
|
|
8991
9443
|
id: unref(uuid),
|
|
8992
9444
|
"aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
|
|
@@ -8998,17 +9450,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
8998
9450
|
onChange: ($event) => {
|
|
8999
9451
|
emits("update:modelValue", $event.target.checked);
|
|
9000
9452
|
}
|
|
9001
|
-
}, _ctx.$attrs)), null, 16, _hoisted_3$
|
|
9453
|
+
}, _ctx.$attrs)), null, 16, _hoisted_3$4)
|
|
9002
9454
|
]),
|
|
9003
|
-
createElementVNode("div", _hoisted_4$
|
|
9004
|
-
createVNode(_sfc_main$
|
|
9455
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
9456
|
+
createVNode(_sfc_main$t, {
|
|
9005
9457
|
class: "mt-auto",
|
|
9006
9458
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9007
9459
|
id: `${unref(uuid)}-label`,
|
|
9008
9460
|
for: unref(uuid),
|
|
9009
9461
|
label: __props.label
|
|
9010
9462
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9011
|
-
createVNode(_sfc_main$
|
|
9463
|
+
createVNode(_sfc_main$s, {
|
|
9012
9464
|
class: "-mt-1",
|
|
9013
9465
|
id: `${unref(uuid)}-help`,
|
|
9014
9466
|
text: __props.help
|
|
@@ -9029,28 +9481,34 @@ function hasSlotContent(slot, slotProps = {}) {
|
|
|
9029
9481
|
return vnode.type !== Text || typeof vnode.children === "string" && vnode.children.trim() !== "";
|
|
9030
9482
|
});
|
|
9031
9483
|
}
|
|
9032
|
-
const _sfc_main$
|
|
9484
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
9485
|
+
props: {
|
|
9486
|
+
tag: { default: "legend" }
|
|
9487
|
+
},
|
|
9033
9488
|
setup(__props) {
|
|
9034
9489
|
return (_ctx, _cache) => {
|
|
9035
|
-
return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(),
|
|
9036
|
-
class: "text-
|
|
9037
|
-
}))),
|
|
9038
|
-
|
|
9039
|
-
|
|
9490
|
+
return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9491
|
+
class: "text-sm font-semibold leading-snug text-gray-900"
|
|
9492
|
+
}))), {
|
|
9493
|
+
default: withCtx(() => [
|
|
9494
|
+
renderSlot(_ctx.$slots, "default")
|
|
9495
|
+
]),
|
|
9496
|
+
_: 3
|
|
9497
|
+
}, 16)) : createCommentVNode("", true);
|
|
9040
9498
|
};
|
|
9041
9499
|
}
|
|
9042
9500
|
});
|
|
9043
|
-
const _hoisted_1$
|
|
9044
|
-
const _hoisted_2$
|
|
9501
|
+
const _hoisted_1$4 = ["aria-labelledby", "aria-describedby"];
|
|
9502
|
+
const _hoisted_2$3 = {
|
|
9045
9503
|
key: 0,
|
|
9046
9504
|
class: "space-y-0.5"
|
|
9047
9505
|
};
|
|
9048
|
-
const _hoisted_3$
|
|
9049
|
-
const _hoisted_4$
|
|
9050
|
-
const _hoisted_5$
|
|
9506
|
+
const _hoisted_3$3 = { key: 0 };
|
|
9507
|
+
const _hoisted_4$3 = { class: "flex" };
|
|
9508
|
+
const _hoisted_5$3 = { class: "flex items-center h-5" };
|
|
9051
9509
|
const _hoisted_6$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
|
|
9052
9510
|
const _hoisted_7$1 = { class: "ml-3" };
|
|
9053
|
-
const _sfc_main$
|
|
9511
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
9054
9512
|
props: {
|
|
9055
9513
|
options: null,
|
|
9056
9514
|
help: { default: "" },
|
|
@@ -9068,13 +9526,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9068
9526
|
return props.legend !== "" || slots.legend !== void 0;
|
|
9069
9527
|
});
|
|
9070
9528
|
const onChange = (checked, val) => {
|
|
9071
|
-
let
|
|
9529
|
+
let updateModelValue3 = [...props.modelValue];
|
|
9072
9530
|
if (checked) {
|
|
9073
|
-
|
|
9531
|
+
updateModelValue3.push(val);
|
|
9074
9532
|
} else {
|
|
9075
|
-
|
|
9533
|
+
updateModelValue3.splice(updateModelValue3.indexOf(val), 1);
|
|
9076
9534
|
}
|
|
9077
|
-
emit("update:modelValue",
|
|
9535
|
+
emit("update:modelValue", updateModelValue3);
|
|
9078
9536
|
};
|
|
9079
9537
|
return (_ctx, _cache) => {
|
|
9080
9538
|
return openBlock(), createElementBlock("fieldset", {
|
|
@@ -9082,23 +9540,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9082
9540
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9083
9541
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9084
9542
|
}, [
|
|
9085
|
-
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9086
|
-
createVNode(_sfc_main$
|
|
9543
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
9544
|
+
createVNode(_sfc_main$5, {
|
|
9087
9545
|
id: `${unref(uuid)}-legend`
|
|
9088
9546
|
}, {
|
|
9089
9547
|
default: withCtx(() => [
|
|
9090
|
-
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9548
|
+
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9091
9549
|
_ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
|
|
9092
9550
|
]),
|
|
9093
9551
|
_: 3
|
|
9094
9552
|
}, 8, ["id"]),
|
|
9095
|
-
createVNode(_sfc_main$
|
|
9553
|
+
createVNode(_sfc_main$s, {
|
|
9096
9554
|
tag: "p",
|
|
9097
9555
|
text: __props.help,
|
|
9098
9556
|
id: `${unref(uuid)}-help`
|
|
9099
9557
|
}, null, 8, ["text", "id"])
|
|
9100
9558
|
])) : createCommentVNode("", true),
|
|
9101
|
-
createElementVNode("div", _hoisted_4$
|
|
9559
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
9102
9560
|
createElementVNode("div", {
|
|
9103
9561
|
class: normalizeClass(["grid gap-4", {
|
|
9104
9562
|
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
@@ -9112,7 +9570,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9112
9570
|
key: option.value,
|
|
9113
9571
|
class: "flex items-start"
|
|
9114
9572
|
}, [
|
|
9115
|
-
createElementVNode("div", _hoisted_5$
|
|
9573
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
9116
9574
|
createElementVNode("input", mergeProps({
|
|
9117
9575
|
id: `${unref(uuid)}-${index}`,
|
|
9118
9576
|
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
@@ -9128,14 +9586,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9128
9586
|
}, _ctx.$attrs)), null, 16, _hoisted_6$2)
|
|
9129
9587
|
]),
|
|
9130
9588
|
createElementVNode("div", _hoisted_7$1, [
|
|
9131
|
-
createVNode(_sfc_main$
|
|
9589
|
+
createVNode(_sfc_main$t, {
|
|
9132
9590
|
class: "mt-auto",
|
|
9133
9591
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9134
9592
|
id: `${unref(uuid)}-${index}-label`,
|
|
9135
9593
|
for: `${unref(uuid)}-${index}`,
|
|
9136
9594
|
label: option.label
|
|
9137
9595
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9138
|
-
createVNode(_sfc_main$
|
|
9596
|
+
createVNode(_sfc_main$s, {
|
|
9139
9597
|
class: "-mt-1",
|
|
9140
9598
|
id: `${unref(uuid)}-${index}-help`,
|
|
9141
9599
|
text: option.help
|
|
@@ -9145,21 +9603,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9145
9603
|
}), 128))
|
|
9146
9604
|
], 2)
|
|
9147
9605
|
])
|
|
9148
|
-
], 8, _hoisted_1$
|
|
9606
|
+
], 8, _hoisted_1$4);
|
|
9149
9607
|
};
|
|
9150
9608
|
}
|
|
9151
9609
|
});
|
|
9152
|
-
const _hoisted_1$
|
|
9153
|
-
const _hoisted_2$
|
|
9610
|
+
const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
|
|
9611
|
+
const _hoisted_2$2 = {
|
|
9154
9612
|
key: 0,
|
|
9155
9613
|
class: "space-y-0.5"
|
|
9156
9614
|
};
|
|
9157
|
-
const _hoisted_3$
|
|
9158
|
-
const _hoisted_4$
|
|
9159
|
-
const _hoisted_5$
|
|
9615
|
+
const _hoisted_3$2 = { key: 0 };
|
|
9616
|
+
const _hoisted_4$2 = { class: "flex" };
|
|
9617
|
+
const _hoisted_5$2 = { class: "flex items-center h-5" };
|
|
9160
9618
|
const _hoisted_6$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
|
|
9161
9619
|
const _hoisted_7 = { class: "ml-3" };
|
|
9162
|
-
const _sfc_main$
|
|
9620
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
9163
9621
|
props: {
|
|
9164
9622
|
options: null,
|
|
9165
9623
|
help: { default: "" },
|
|
@@ -9182,23 +9640,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9182
9640
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9183
9641
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9184
9642
|
}, [
|
|
9185
|
-
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9186
|
-
createVNode(_sfc_main$
|
|
9643
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
9644
|
+
createVNode(_sfc_main$5, {
|
|
9187
9645
|
id: `${unref(uuid)}-legend`
|
|
9188
9646
|
}, {
|
|
9189
9647
|
default: withCtx(() => [
|
|
9190
|
-
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9648
|
+
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9191
9649
|
_ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
|
|
9192
9650
|
]),
|
|
9193
9651
|
_: 3
|
|
9194
9652
|
}, 8, ["id"]),
|
|
9195
|
-
createVNode(_sfc_main$
|
|
9653
|
+
createVNode(_sfc_main$s, {
|
|
9196
9654
|
tag: "p",
|
|
9197
9655
|
text: __props.help,
|
|
9198
9656
|
id: `${unref(uuid)}-help`
|
|
9199
9657
|
}, null, 8, ["text", "id"])
|
|
9200
9658
|
])) : createCommentVNode("", true),
|
|
9201
|
-
createElementVNode("div", _hoisted_4$
|
|
9659
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
9202
9660
|
createElementVNode("div", {
|
|
9203
9661
|
class: normalizeClass(["grid gap-4", {
|
|
9204
9662
|
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
@@ -9212,7 +9670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9212
9670
|
key: option.value,
|
|
9213
9671
|
class: "flex items-start"
|
|
9214
9672
|
}, [
|
|
9215
|
-
createElementVNode("div", _hoisted_5$
|
|
9673
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
9216
9674
|
createElementVNode("input", mergeProps({
|
|
9217
9675
|
"aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
|
|
9218
9676
|
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
@@ -9230,14 +9688,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9230
9688
|
}, _ctx.$attrs)), null, 16, _hoisted_6$1)
|
|
9231
9689
|
]),
|
|
9232
9690
|
createElementVNode("div", _hoisted_7, [
|
|
9233
|
-
createVNode(_sfc_main$
|
|
9691
|
+
createVNode(_sfc_main$t, {
|
|
9234
9692
|
class: "mt-auto",
|
|
9235
9693
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9236
9694
|
id: `${unref(uuid)}-${index}-label`,
|
|
9237
9695
|
for: `${unref(uuid)}-${index}`,
|
|
9238
9696
|
label: option.label
|
|
9239
9697
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9240
|
-
createVNode(_sfc_main$
|
|
9698
|
+
createVNode(_sfc_main$s, {
|
|
9241
9699
|
class: "-mt-1",
|
|
9242
9700
|
id: `${unref(uuid)}-${index}-help`,
|
|
9243
9701
|
text: option.help
|
|
@@ -9247,7 +9705,179 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9247
9705
|
}), 128))
|
|
9248
9706
|
], 2)
|
|
9249
9707
|
])
|
|
9250
|
-
], 8, _hoisted_1$
|
|
9708
|
+
], 8, _hoisted_1$3);
|
|
9709
|
+
};
|
|
9710
|
+
}
|
|
9711
|
+
});
|
|
9712
|
+
const _hoisted_1$2 = ["id"];
|
|
9713
|
+
const _hoisted_2$1 = { class: "flex-1 flex pr-1" };
|
|
9714
|
+
const _hoisted_3$1 = { class: "flex flex-col" };
|
|
9715
|
+
const _hoisted_4$1 = {
|
|
9716
|
+
key: 1,
|
|
9717
|
+
class: "mt-auto mb-0"
|
|
9718
|
+
};
|
|
9719
|
+
const _hoisted_5$1 = ["checked", "name", "required", "value"];
|
|
9720
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
9721
|
+
props: {
|
|
9722
|
+
columns: { default: void 0 },
|
|
9723
|
+
help: { default: "" },
|
|
9724
|
+
legend: { default: "" },
|
|
9725
|
+
modelValue: { default: void 0 },
|
|
9726
|
+
options: null
|
|
9727
|
+
},
|
|
9728
|
+
emits: ["update:modelValue"],
|
|
9729
|
+
setup(__props, { emit }) {
|
|
9730
|
+
const props = __props;
|
|
9731
|
+
const attrs = useAttrs();
|
|
9732
|
+
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
9733
|
+
const internalState = ref();
|
|
9734
|
+
const invalid = ref();
|
|
9735
|
+
const checked = computed(() => {
|
|
9736
|
+
if (props.modelValue === void 0) {
|
|
9737
|
+
return internalState.value;
|
|
9738
|
+
}
|
|
9739
|
+
return props.modelValue;
|
|
9740
|
+
});
|
|
9741
|
+
const onChange = (val) => {
|
|
9742
|
+
internalState.value = val;
|
|
9743
|
+
invalid.value = false;
|
|
9744
|
+
emit("update:modelValue", val);
|
|
9745
|
+
};
|
|
9746
|
+
const nameAttr = computed(() => {
|
|
9747
|
+
return typeof attrs.name === "string" && attrs.name !== "" ? attrs.name : uuid;
|
|
9748
|
+
});
|
|
9749
|
+
return (_ctx, _cache) => {
|
|
9750
|
+
return openBlock(), createBlock(unref(RadioGroup), {
|
|
9751
|
+
modelValue: unref(checked),
|
|
9752
|
+
"onUpdate:modelValue": onChange,
|
|
9753
|
+
disabled: typeof unref(attrs).disabled === "boolean" ? unref(attrs).disabled : false,
|
|
9754
|
+
"aria-invalid": invalid.value === true ? "true" : null,
|
|
9755
|
+
"aria-errormessage": invalid.value === true ? `error-${unref(uuid)}` : null
|
|
9756
|
+
}, {
|
|
9757
|
+
default: withCtx(() => [
|
|
9758
|
+
__props.legend ? (openBlock(), createBlock(unref(RadioGroupLabel), {
|
|
9759
|
+
key: 0,
|
|
9760
|
+
class: "block"
|
|
9761
|
+
}, {
|
|
9762
|
+
default: withCtx(() => [
|
|
9763
|
+
createVNode(_sfc_main$5, { tag: "div" }, {
|
|
9764
|
+
default: withCtx(() => [
|
|
9765
|
+
createTextVNode(toDisplayString(__props.legend), 1)
|
|
9766
|
+
]),
|
|
9767
|
+
_: 1
|
|
9768
|
+
})
|
|
9769
|
+
]),
|
|
9770
|
+
_: 1
|
|
9771
|
+
})) : createCommentVNode("", true),
|
|
9772
|
+
__props.help ? (openBlock(), createBlock(unref(RadioGroupDescription), { key: 1 }, {
|
|
9773
|
+
default: withCtx(() => [
|
|
9774
|
+
createVNode(_sfc_main$s, { text: __props.help }, null, 8, ["text"])
|
|
9775
|
+
]),
|
|
9776
|
+
_: 1
|
|
9777
|
+
})) : createCommentVNode("", true),
|
|
9778
|
+
invalid.value === true ? (openBlock(), createElementBlock("div", {
|
|
9779
|
+
key: 2,
|
|
9780
|
+
id: `error-${unref(uuid)}`,
|
|
9781
|
+
class: "sr-only"
|
|
9782
|
+
}, " Please select one of these options. ", 8, _hoisted_1$2)) : createCommentVNode("", true),
|
|
9783
|
+
createElementVNode("div", {
|
|
9784
|
+
class: normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative", {
|
|
9785
|
+
"sm:grid-cols-2": __props.columns === 2,
|
|
9786
|
+
"sm:grid-cols-3": __props.columns === 3
|
|
9787
|
+
}])
|
|
9788
|
+
}, [
|
|
9789
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
9790
|
+
return openBlock(), createBlock(unref(RadioGroupOption), {
|
|
9791
|
+
as: "template",
|
|
9792
|
+
disabled: (option == null ? void 0 : option.disabled) ? option.disabled : false,
|
|
9793
|
+
key: option.value,
|
|
9794
|
+
value: option.value
|
|
9795
|
+
}, {
|
|
9796
|
+
default: withCtx(({ active, checked: checked2, disabled }) => [
|
|
9797
|
+
createElementVNode("div", {
|
|
9798
|
+
class: normalizeClass([
|
|
9799
|
+
checked2 ? "border-transparent" : "border-gray-300",
|
|
9800
|
+
active ? "border-blue-500 ring-2 ring-blue-500" : "",
|
|
9801
|
+
"relative bg-white border rounded-lg shadow-sm p-4 flex cursor-pointer focus:outline-none",
|
|
9802
|
+
disabled ? "opacity-75" : ""
|
|
9803
|
+
])
|
|
9804
|
+
}, [
|
|
9805
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
9806
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
9807
|
+
createVNode(unref(RadioGroupLabel), { as: "div" }, {
|
|
9808
|
+
default: withCtx(() => [
|
|
9809
|
+
createVNode(_sfc_main$t, {
|
|
9810
|
+
tag: "div",
|
|
9811
|
+
class: "mt-auto mb-auto",
|
|
9812
|
+
label: option.label
|
|
9813
|
+
}, null, 8, ["label"])
|
|
9814
|
+
]),
|
|
9815
|
+
_: 2
|
|
9816
|
+
}, 1024),
|
|
9817
|
+
option.help ? (openBlock(), createBlock(unref(RadioGroupDescription), {
|
|
9818
|
+
key: 0,
|
|
9819
|
+
as: "div"
|
|
9820
|
+
}, {
|
|
9821
|
+
default: withCtx(() => [
|
|
9822
|
+
createVNode(_sfc_main$s, {
|
|
9823
|
+
tag: "div",
|
|
9824
|
+
class: "mt-auto",
|
|
9825
|
+
text: option.help
|
|
9826
|
+
}, null, 8, ["text"])
|
|
9827
|
+
]),
|
|
9828
|
+
_: 2
|
|
9829
|
+
}, 1024)) : createCommentVNode("", true),
|
|
9830
|
+
option.sublabel || _ctx.$slots.sublabel ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
9831
|
+
createVNode(unref(RadioGroupDescription), {
|
|
9832
|
+
as: "div",
|
|
9833
|
+
class: "font-semibold leading-snug mt-4 text-gray-900 text-sm"
|
|
9834
|
+
}, {
|
|
9835
|
+
default: withCtx(() => [
|
|
9836
|
+
createTextVNode(toDisplayString(option.sublabel) + " ", 1),
|
|
9837
|
+
renderSlot(_ctx.$slots, "sublabel", {
|
|
9838
|
+
active,
|
|
9839
|
+
checked: checked2,
|
|
9840
|
+
disabled,
|
|
9841
|
+
option
|
|
9842
|
+
})
|
|
9843
|
+
]),
|
|
9844
|
+
_: 2
|
|
9845
|
+
}, 1024)
|
|
9846
|
+
])) : createCommentVNode("", true)
|
|
9847
|
+
])
|
|
9848
|
+
]),
|
|
9849
|
+
createVNode(unref(render$8), {
|
|
9850
|
+
class: normalizeClass([!checked2 ? "invisible" : "", "h-5 w-5 text-blue-600"]),
|
|
9851
|
+
"aria-hidden": "true"
|
|
9852
|
+
}, null, 8, ["class"]),
|
|
9853
|
+
createElementVNode("div", {
|
|
9854
|
+
class: normalizeClass([
|
|
9855
|
+
active ? "border" : "border-2",
|
|
9856
|
+
checked2 ? "border-blue-500" : "border-transparent",
|
|
9857
|
+
"absolute -inset-px rounded-lg pointer-events-none"
|
|
9858
|
+
]),
|
|
9859
|
+
"aria-hidden": "true"
|
|
9860
|
+
}, null, 2),
|
|
9861
|
+
createElementVNode("input", {
|
|
9862
|
+
class: "sr-only top-1 left-1",
|
|
9863
|
+
"aria-hidden": "true",
|
|
9864
|
+
checked: checked2,
|
|
9865
|
+
name: unref(nameAttr),
|
|
9866
|
+
required: unref(attrs).required !== void 0 && unref(attrs).required !== false,
|
|
9867
|
+
tabindex: "-1",
|
|
9868
|
+
type: "radio",
|
|
9869
|
+
value: option.value,
|
|
9870
|
+
onInvalid: _cache[0] || (_cache[0] = ($event) => invalid.value = true)
|
|
9871
|
+
}, null, 40, _hoisted_5$1)
|
|
9872
|
+
], 2)
|
|
9873
|
+
]),
|
|
9874
|
+
_: 2
|
|
9875
|
+
}, 1032, ["disabled", "value"]);
|
|
9876
|
+
}), 128))
|
|
9877
|
+
], 2)
|
|
9878
|
+
]),
|
|
9879
|
+
_: 3
|
|
9880
|
+
}, 8, ["modelValue", "disabled", "aria-invalid", "aria-errormessage"]);
|
|
9251
9881
|
};
|
|
9252
9882
|
}
|
|
9253
9883
|
});
|
|
@@ -9264,7 +9894,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9264
9894
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
9265
9895
|
return (_ctx, _cache) => {
|
|
9266
9896
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9267
|
-
createVNode(_sfc_main$
|
|
9897
|
+
createVNode(_sfc_main$t, {
|
|
9268
9898
|
class: "block",
|
|
9269
9899
|
id: `${unref(uuid)}-label`,
|
|
9270
9900
|
for: unref(uuid),
|
|
@@ -9290,7 +9920,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9290
9920
|
value: __props.modelValue,
|
|
9291
9921
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
9292
9922
|
}, _ctx.$attrs), null, 16, _hoisted_1$1),
|
|
9293
|
-
createVNode(_sfc_main$
|
|
9923
|
+
createVNode(_sfc_main$s, {
|
|
9294
9924
|
id: `${unref(uuid)}-help`,
|
|
9295
9925
|
text: __props.help
|
|
9296
9926
|
}, null, 8, ["id", "text"])
|
|
@@ -9332,12 +9962,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9332
9962
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9333
9963
|
}, [
|
|
9334
9964
|
__props.legend || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
9335
|
-
createVNode(_sfc_main$
|
|
9965
|
+
createVNode(_sfc_main$t, {
|
|
9336
9966
|
class: "block my-auto",
|
|
9337
9967
|
label: __props.legend,
|
|
9338
9968
|
tag: "legend"
|
|
9339
9969
|
}, null, 8, ["label"]),
|
|
9340
|
-
createVNode(_sfc_main$
|
|
9970
|
+
createVNode(_sfc_main$s, {
|
|
9341
9971
|
tag: "p",
|
|
9342
9972
|
text: __props.help,
|
|
9343
9973
|
id: `${unref(uuid)}-help`
|
|
@@ -9358,7 +9988,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9358
9988
|
}, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9359
9989
|
onChange
|
|
9360
9990
|
})), null, 16, _hoisted_4),
|
|
9361
|
-
createVNode(_sfc_main$
|
|
9991
|
+
createVNode(_sfc_main$t, {
|
|
9362
9992
|
class: "ml-2",
|
|
9363
9993
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9364
9994
|
label: "Yes",
|
|
@@ -9379,7 +10009,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9379
10009
|
}, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9380
10010
|
onChange
|
|
9381
10011
|
})), null, 16, _hoisted_6),
|
|
9382
|
-
createVNode(_sfc_main$
|
|
10012
|
+
createVNode(_sfc_main$t, {
|
|
9383
10013
|
class: "ml-2",
|
|
9384
10014
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9385
10015
|
label: "No",
|
|
@@ -9394,37 +10024,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9394
10024
|
var components = /* @__PURE__ */ Object.freeze({
|
|
9395
10025
|
__proto__: null,
|
|
9396
10026
|
[Symbol.toStringTag]: "Module",
|
|
9397
|
-
ActionsDropdown: _sfc_main$
|
|
9398
|
-
Cards: _sfc_main$
|
|
9399
|
-
ContentModal: _sfc_main$
|
|
9400
|
-
DateFilter: _sfc_main$
|
|
9401
|
-
DetailList: _sfc_main$
|
|
9402
|
-
DownloadCell: _sfc_main$
|
|
9403
|
-
Flash: _sfc_main$
|
|
9404
|
-
Modal: _sfc_main$
|
|
9405
|
-
SidebarLayout: _sfc_main$
|
|
9406
|
-
Slideover: _sfc_main$
|
|
9407
|
-
StackedLayout: _sfc_main$
|
|
9408
|
-
Popover: _sfc_main$
|
|
10027
|
+
ActionsDropdown: _sfc_main$w,
|
|
10028
|
+
Cards: _sfc_main$v,
|
|
10029
|
+
ContentModal: _sfc_main$u,
|
|
10030
|
+
DateFilter: _sfc_main$o,
|
|
10031
|
+
DetailList: _sfc_main$m,
|
|
10032
|
+
DownloadCell: _sfc_main$l,
|
|
10033
|
+
Flash: _sfc_main$k,
|
|
10034
|
+
Modal: _sfc_main$j,
|
|
10035
|
+
SidebarLayout: _sfc_main$h,
|
|
10036
|
+
Slideover: _sfc_main$e,
|
|
10037
|
+
StackedLayout: _sfc_main$c,
|
|
10038
|
+
Popover: _sfc_main$g,
|
|
9409
10039
|
PopoverContent,
|
|
9410
|
-
PopoverPosition: _sfc_main$
|
|
9411
|
-
Paginator: _sfc_main$
|
|
9412
|
-
Spinner: _sfc_main$
|
|
9413
|
-
StaticTable: _sfc_main$
|
|
9414
|
-
Steps: _sfc_main$
|
|
9415
|
-
Table: _sfc_main$
|
|
9416
|
-
Tabs: _sfc_main$
|
|
9417
|
-
Toggle: _sfc_main$
|
|
9418
|
-
Tooltip: _sfc_main$
|
|
9419
|
-
BaseInput: _sfc_main$
|
|
9420
|
-
Checkbox: _sfc_main$
|
|
9421
|
-
DateRangePicker: _sfc_main$
|
|
9422
|
-
InputHelp: _sfc_main$
|
|
9423
|
-
InputLabel: _sfc_main$
|
|
9424
|
-
FieldsetLegend: _sfc_main$
|
|
9425
|
-
MultiCheckboxes: _sfc_main$
|
|
9426
|
-
Radio: _sfc_main$
|
|
9427
|
-
|
|
10040
|
+
PopoverPosition: _sfc_main$g,
|
|
10041
|
+
Paginator: _sfc_main$n,
|
|
10042
|
+
Spinner: _sfc_main$i,
|
|
10043
|
+
StaticTable: _sfc_main$b,
|
|
10044
|
+
Steps: _sfc_main$a,
|
|
10045
|
+
Table: _sfc_main$9,
|
|
10046
|
+
Tabs: _sfc_main$8,
|
|
10047
|
+
Toggle: _sfc_main$7,
|
|
10048
|
+
Tooltip: _sfc_main$d,
|
|
10049
|
+
BaseInput: _sfc_main$r,
|
|
10050
|
+
Checkbox: _sfc_main$6,
|
|
10051
|
+
DateRangePicker: _sfc_main$q,
|
|
10052
|
+
InputHelp: _sfc_main$s,
|
|
10053
|
+
InputLabel: _sfc_main$t,
|
|
10054
|
+
FieldsetLegend: _sfc_main$5,
|
|
10055
|
+
MultiCheckboxes: _sfc_main$4,
|
|
10056
|
+
Radio: _sfc_main$3,
|
|
10057
|
+
RadioCards: _sfc_main$2,
|
|
10058
|
+
Select: _sfc_main$p,
|
|
9428
10059
|
TextArea: _sfc_main$1,
|
|
9429
10060
|
YesOrNoRadio: _sfc_main
|
|
9430
10061
|
});
|
|
@@ -9449,14 +10080,14 @@ function useBaseAPI(path, method = "GET", initOpts = {}) {
|
|
|
9449
10080
|
isAborted.value = false;
|
|
9450
10081
|
isFinished.value = false;
|
|
9451
10082
|
isLoading.value = true;
|
|
9452
|
-
const
|
|
10083
|
+
const requestConfig = {
|
|
9453
10084
|
data: ["POST", "post", "PUT", "put"].includes(method) ? data2 : {},
|
|
9454
10085
|
method,
|
|
9455
10086
|
params: ["GET", "get"].includes(method) ? data2 : {},
|
|
9456
10087
|
signal: controller.signal,
|
|
9457
10088
|
url: path
|
|
9458
|
-
}
|
|
9459
|
-
return BaseAPI.makeRequest(
|
|
10089
|
+
};
|
|
10090
|
+
return BaseAPI.makeRequest(requestConfig, __spreadValues(__spreadValues({}, initOpts), opts)).then((success) => {
|
|
9460
10091
|
result.value = success;
|
|
9461
10092
|
error.value = void 0;
|
|
9462
10093
|
isAborted.value = false;
|
|
@@ -9506,4 +10137,4 @@ const install = function installTrees(app) {
|
|
|
9506
10137
|
app.component(componentName, component);
|
|
9507
10138
|
});
|
|
9508
10139
|
};
|
|
9509
|
-
export { _sfc_main$
|
|
10140
|
+
export { _sfc_main$w as ActionsDropdown, BaseAPI, _sfc_main$r as BaseInput, _sfc_main$v as Cards, _sfc_main$6 as Checkbox, _sfc_main$u as ContentModal, _sfc_main$o as DateFilter, _sfc_main$q as DateRangePicker, _sfc_main$m as DetailList, _sfc_main$l as DownloadCell, _sfc_main$5 as FieldsetLegend, _sfc_main$k as Flash, _sfc_main$s as InputHelp, _sfc_main$t as InputLabel, _sfc_main$j as Modal, _sfc_main$4 as MultiCheckboxes, _sfc_main$n as Paginator, _sfc_main$g as Popover, PopoverContent, _sfc_main$g as PopoverPosition, _sfc_main$3 as Radio, _sfc_main$2 as RadioCards, _sfc_main$p as Select, _sfc_main$h as SidebarLayout, _sfc_main$e as Slideover, _sfc_main$i as Spinner, _sfc_main$c as StackedLayout, _sfc_main$b as StaticTable, _sfc_main$a as Steps, _sfc_main$9 as Table, _sfc_main$8 as Tabs, _sfc_main$1 as TextArea, _sfc_main$7 as Toggle, _sfc_main$d as Tooltip, _sfc_main as YesOrNoRadio, install as default, useBaseAPI, useBaseAPIDelete, useBaseAPIGet, useBaseAPIPost, useBaseAPIPut };
|