@xy-planning-network/trees 0.4.8-rc-2 → 0.4.9-rc-2
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 +1020 -398
- package/dist/trees.umd.js +6 -6
- 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 +181 -0
- package/types/api/base.d.ts +12 -6
- package/types/composables/useBaseAPI.d.ts +8 -8
- package/types/composables/useFlashes.d.ts +100 -0
- package/types/entry.d.ts +2 -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/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() {
|
|
@@ -1237,53 +1237,39 @@ axios$1.isAxiosError = isAxiosError;
|
|
|
1237
1237
|
axios$2.exports = axios$1;
|
|
1238
1238
|
axios$2.exports.default = axios$1;
|
|
1239
1239
|
var axios = axios$2.exports;
|
|
1240
|
+
const apiDelayReqIntercept = (config) => {
|
|
1241
|
+
const delay = config.withDelay || 0;
|
|
1242
|
+
return new Promise((resolve) => {
|
|
1243
|
+
setTimeout(() => {
|
|
1244
|
+
resolve(config);
|
|
1245
|
+
}, Math.max(delay, 0));
|
|
1246
|
+
});
|
|
1247
|
+
};
|
|
1248
|
+
const apiDataRespIntercept = (response) => {
|
|
1249
|
+
var _a;
|
|
1250
|
+
if (response.config.dataIntercept && ((_a = response.data) == null ? void 0 : _a.data)) {
|
|
1251
|
+
response.data = response.data.data;
|
|
1252
|
+
}
|
|
1253
|
+
return response;
|
|
1254
|
+
};
|
|
1240
1255
|
const apiAxiosInstance = axios.create({
|
|
1241
1256
|
baseURL: process.env.VUE_APP_BASE_API_URL || "/api/v1",
|
|
1242
1257
|
responseType: "json",
|
|
1243
1258
|
withCredentials: true
|
|
1244
1259
|
});
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
if ((_a = response.data) == null ? void 0 : _a.data) {
|
|
1248
|
-
return response.data;
|
|
1249
|
-
}
|
|
1250
|
-
return response;
|
|
1251
|
-
};
|
|
1252
|
-
const apiDelay = (func, delay = 0) => {
|
|
1253
|
-
setTimeout(func, delay);
|
|
1254
|
-
};
|
|
1260
|
+
apiAxiosInstance.interceptors.request.use(apiDelayReqIntercept);
|
|
1261
|
+
apiAxiosInstance.interceptors.response.use(apiDataRespIntercept);
|
|
1255
1262
|
const BaseAPI = {
|
|
1256
1263
|
makeRequest(config, opts) {
|
|
1257
|
-
config.data = JSON.stringify(config.data);
|
|
1258
|
-
config.headers = { "Content-Type": "application/json" };
|
|
1259
|
-
let dataIntercept;
|
|
1260
|
-
if (opts.dataIntercept) {
|
|
1261
|
-
dataIntercept = apiAxiosInstance.interceptors.response.use(apiDataIntercept);
|
|
1262
|
-
}
|
|
1263
1264
|
const wait = window.setTimeout(() => {
|
|
1264
1265
|
if (!opts.skipLoader) {
|
|
1265
1266
|
window.VueBus.emit("Spinner-show");
|
|
1266
1267
|
}
|
|
1267
1268
|
}, 200);
|
|
1268
|
-
return
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}, opts.withDelay || 0);
|
|
1273
|
-
}, (err) => {
|
|
1274
|
-
apiDelay(() => {
|
|
1275
|
-
reject(err);
|
|
1276
|
-
}, opts.withDelay || 0);
|
|
1277
|
-
}).finally(() => {
|
|
1278
|
-
if (dataIntercept !== null) {
|
|
1279
|
-
apiAxiosInstance.interceptors.response.eject(dataIntercept);
|
|
1280
|
-
}
|
|
1281
|
-
apiDelay(() => {
|
|
1282
|
-
window.clearTimeout(wait);
|
|
1283
|
-
if (!opts.skipLoader)
|
|
1284
|
-
window.VueBus.emit("Spinner-hide");
|
|
1285
|
-
}, opts.withDelay || 0);
|
|
1286
|
-
});
|
|
1269
|
+
return apiAxiosInstance(__spreadValues(__spreadValues({}, config), opts)).then((success) => success.data).finally(() => {
|
|
1270
|
+
if (!opts.skipLoader)
|
|
1271
|
+
window.VueBus.emit("Spinner-hide");
|
|
1272
|
+
window.clearTimeout(wait);
|
|
1287
1273
|
});
|
|
1288
1274
|
},
|
|
1289
1275
|
get(path, opts, params) {
|
|
@@ -1296,7 +1282,11 @@ const BaseAPI = {
|
|
|
1296
1282
|
return this.makeRequest({ url: path, data: data2, method: "POST" }, opts);
|
|
1297
1283
|
},
|
|
1298
1284
|
put(path, data2, opts) {
|
|
1299
|
-
return this.makeRequest({
|
|
1285
|
+
return this.makeRequest({
|
|
1286
|
+
url: path,
|
|
1287
|
+
data: data2,
|
|
1288
|
+
method: "PUT"
|
|
1289
|
+
}, opts);
|
|
1300
1290
|
}
|
|
1301
1291
|
};
|
|
1302
1292
|
function _extends() {
|
|
@@ -1396,7 +1386,7 @@ var RenderStrategy;
|
|
|
1396
1386
|
RenderStrategy2[RenderStrategy2["Unmount"] = 0] = "Unmount";
|
|
1397
1387
|
RenderStrategy2[RenderStrategy2["Hidden"] = 1] = "Hidden";
|
|
1398
1388
|
})(RenderStrategy || (RenderStrategy = {}));
|
|
1399
|
-
function render$
|
|
1389
|
+
function render$9(_ref) {
|
|
1400
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"]);
|
|
1401
1391
|
if (visible)
|
|
1402
1392
|
return _render(main);
|
|
@@ -1522,7 +1512,7 @@ var ForcePortalRoot = /* @__PURE__ */ defineComponent({
|
|
|
1522
1512
|
provide(ForcePortalRootContext, props.force);
|
|
1523
1513
|
return function() {
|
|
1524
1514
|
var passThroughProps = _objectWithoutPropertiesLoose(props, ["force"]);
|
|
1525
|
-
return render$
|
|
1515
|
+
return render$9({
|
|
1526
1516
|
props: passThroughProps,
|
|
1527
1517
|
slot: {},
|
|
1528
1518
|
slots,
|
|
@@ -1582,7 +1572,7 @@ var Portal = /* @__PURE__ */ defineComponent({
|
|
|
1582
1572
|
};
|
|
1583
1573
|
return h(Teleport, {
|
|
1584
1574
|
to: myTarget.value
|
|
1585
|
-
}, render$
|
|
1575
|
+
}, render$9({
|
|
1586
1576
|
props: _extends({}, props, propsWeControl),
|
|
1587
1577
|
slot: {},
|
|
1588
1578
|
attrs,
|
|
@@ -1615,7 +1605,7 @@ var PortalGroup = /* @__PURE__ */ defineComponent({
|
|
|
1615
1605
|
provide(PortalGroupContext, api);
|
|
1616
1606
|
return function() {
|
|
1617
1607
|
var passThroughProps = _objectWithoutPropertiesLoose(props, ["target"]);
|
|
1618
|
-
return render$
|
|
1608
|
+
return render$9({
|
|
1619
1609
|
props: passThroughProps,
|
|
1620
1610
|
slot: {},
|
|
1621
1611
|
attrs,
|
|
@@ -1949,6 +1939,13 @@ function useInertOthers(container, enabled) {
|
|
|
1949
1939
|
});
|
|
1950
1940
|
}
|
|
1951
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
|
+
}
|
|
1952
1949
|
function useDescriptions(_temp) {
|
|
1953
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;
|
|
1954
1951
|
var descriptionIds = ref([]);
|
|
@@ -1971,6 +1968,44 @@ function useDescriptions(_temp) {
|
|
|
1971
1968
|
return descriptionIds.value.length > 0 ? descriptionIds.value.join(" ") : void 0;
|
|
1972
1969
|
});
|
|
1973
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
|
+
});
|
|
1974
2009
|
function dom(ref2) {
|
|
1975
2010
|
var _ref$value$$el;
|
|
1976
2011
|
if (ref2 == null)
|
|
@@ -2041,7 +2076,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2041
2076
|
return true;
|
|
2042
2077
|
}
|
|
2043
2078
|
},
|
|
2044
|
-
render: function render$
|
|
2079
|
+
render: function render$12() {
|
|
2045
2080
|
var _this = this;
|
|
2046
2081
|
var propsWeControl = _extends({}, this.$attrs, {
|
|
2047
2082
|
ref: "el",
|
|
@@ -2066,7 +2101,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2066
2101
|
return h(ForcePortalRoot, {
|
|
2067
2102
|
force: false
|
|
2068
2103
|
}, function() {
|
|
2069
|
-
return render$
|
|
2104
|
+
return render$9({
|
|
2070
2105
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2071
2106
|
slot,
|
|
2072
2107
|
attrs: _this.$attrs,
|
|
@@ -2080,7 +2115,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2080
2115
|
});
|
|
2081
2116
|
});
|
|
2082
2117
|
},
|
|
2083
|
-
setup: function
|
|
2118
|
+
setup: function setup5(props, _ref) {
|
|
2084
2119
|
var emit = _ref.emit;
|
|
2085
2120
|
var containers = ref(new Set());
|
|
2086
2121
|
var usesOpenClosedState = useOpenClosed();
|
|
@@ -2230,7 +2265,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2230
2265
|
"default": "div"
|
|
2231
2266
|
}
|
|
2232
2267
|
},
|
|
2233
|
-
render: function render$
|
|
2268
|
+
render: function render$13() {
|
|
2234
2269
|
var api = useDialogContext("DialogOverlay");
|
|
2235
2270
|
var propsWeControl = {
|
|
2236
2271
|
ref: "el",
|
|
@@ -2239,7 +2274,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2239
2274
|
onClick: this.handleClick
|
|
2240
2275
|
};
|
|
2241
2276
|
var passThroughProps = this.$props;
|
|
2242
|
-
return render$
|
|
2277
|
+
return render$9({
|
|
2243
2278
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2244
2279
|
slot: {
|
|
2245
2280
|
open: api.dialogState.value === DialogStates.Open
|
|
@@ -2249,7 +2284,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2249
2284
|
name: "DialogOverlay"
|
|
2250
2285
|
});
|
|
2251
2286
|
},
|
|
2252
|
-
setup: function
|
|
2287
|
+
setup: function setup6() {
|
|
2253
2288
|
var api = useDialogContext("DialogOverlay");
|
|
2254
2289
|
var id2 = "headlessui-dialog-overlay-" + useId();
|
|
2255
2290
|
return {
|
|
@@ -2272,13 +2307,13 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
|
|
|
2272
2307
|
"default": "h2"
|
|
2273
2308
|
}
|
|
2274
2309
|
},
|
|
2275
|
-
render: function render$
|
|
2310
|
+
render: function render$14() {
|
|
2276
2311
|
var api = useDialogContext("DialogTitle");
|
|
2277
2312
|
var propsWeControl = {
|
|
2278
2313
|
id: this.id
|
|
2279
2314
|
};
|
|
2280
2315
|
var passThroughProps = this.$props;
|
|
2281
|
-
return render$
|
|
2316
|
+
return render$9({
|
|
2282
2317
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2283
2318
|
slot: {
|
|
2284
2319
|
open: api.dialogState.value === DialogStates.Open
|
|
@@ -2288,7 +2323,7 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
|
|
|
2288
2323
|
name: "DialogTitle"
|
|
2289
2324
|
});
|
|
2290
2325
|
},
|
|
2291
|
-
setup: function
|
|
2326
|
+
setup: function setup7() {
|
|
2292
2327
|
var api = useDialogContext("DialogTitle");
|
|
2293
2328
|
var id2 = "headlessui-dialog-title-" + useId();
|
|
2294
2329
|
onMounted(function() {
|
|
@@ -2359,7 +2394,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
|
|
|
2359
2394
|
"default": false
|
|
2360
2395
|
}
|
|
2361
2396
|
},
|
|
2362
|
-
setup: function
|
|
2397
|
+
setup: function setup8(props, _ref) {
|
|
2363
2398
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
2364
2399
|
var buttonId = "headlessui-disclosure-button-" + useId();
|
|
2365
2400
|
var panelId = "headlessui-disclosure-panel-" + useId();
|
|
@@ -2406,7 +2441,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
|
|
|
2406
2441
|
open: disclosureState.value === DisclosureStates.Open,
|
|
2407
2442
|
close: api.close
|
|
2408
2443
|
};
|
|
2409
|
-
return render$
|
|
2444
|
+
return render$9({
|
|
2410
2445
|
props: passThroughProps,
|
|
2411
2446
|
slot,
|
|
2412
2447
|
slots,
|
|
@@ -2428,7 +2463,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2428
2463
|
"default": false
|
|
2429
2464
|
}
|
|
2430
2465
|
},
|
|
2431
|
-
render: function render$
|
|
2466
|
+
render: function render$15() {
|
|
2432
2467
|
var api = useDisclosureContext("DisclosureButton");
|
|
2433
2468
|
var slot = {
|
|
2434
2469
|
open: api.disclosureState.value === DisclosureStates.Open
|
|
@@ -2449,7 +2484,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2449
2484
|
onKeydown: this.handleKeyDown,
|
|
2450
2485
|
onKeyup: this.handleKeyUp
|
|
2451
2486
|
};
|
|
2452
|
-
return render$
|
|
2487
|
+
return render$9({
|
|
2453
2488
|
props: _extends({}, this.$props, propsWeControl),
|
|
2454
2489
|
slot,
|
|
2455
2490
|
attrs: this.$attrs,
|
|
@@ -2457,7 +2492,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2457
2492
|
name: "DisclosureButton"
|
|
2458
2493
|
});
|
|
2459
2494
|
},
|
|
2460
|
-
setup: function
|
|
2495
|
+
setup: function setup9(props, _ref2) {
|
|
2461
2496
|
var attrs = _ref2.attrs;
|
|
2462
2497
|
var api = useDisclosureContext("DisclosureButton");
|
|
2463
2498
|
var panelContext = useDisclosurePanelContext();
|
|
@@ -2540,7 +2575,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2540
2575
|
"default": true
|
|
2541
2576
|
}
|
|
2542
2577
|
},
|
|
2543
|
-
render: function render$
|
|
2578
|
+
render: function render$16() {
|
|
2544
2579
|
var api = useDisclosureContext("DisclosurePanel");
|
|
2545
2580
|
var slot = {
|
|
2546
2581
|
open: api.disclosureState.value === DisclosureStates.Open,
|
|
@@ -2550,7 +2585,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2550
2585
|
id: this.id,
|
|
2551
2586
|
ref: "el"
|
|
2552
2587
|
};
|
|
2553
|
-
return render$
|
|
2588
|
+
return render$9({
|
|
2554
2589
|
props: _extends({}, this.$props, propsWeControl),
|
|
2555
2590
|
slot,
|
|
2556
2591
|
attrs: this.$attrs,
|
|
@@ -2560,7 +2595,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2560
2595
|
name: "DisclosurePanel"
|
|
2561
2596
|
});
|
|
2562
2597
|
},
|
|
2563
|
-
setup: function
|
|
2598
|
+
setup: function setup10() {
|
|
2564
2599
|
var api = useDisclosureContext("DisclosurePanel");
|
|
2565
2600
|
provide(DisclosurePanelContext, api.panelId);
|
|
2566
2601
|
var usesOpenClosedState = useOpenClosed();
|
|
@@ -2685,7 +2720,7 @@ var Menu = /* @__PURE__ */ defineComponent({
|
|
|
2685
2720
|
"default": "template"
|
|
2686
2721
|
}
|
|
2687
2722
|
},
|
|
2688
|
-
setup: function
|
|
2723
|
+
setup: function setup11(props, _ref) {
|
|
2689
2724
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
2690
2725
|
var menuState = ref(MenuStates.Closed);
|
|
2691
2726
|
var buttonRef = ref(null);
|
|
@@ -2794,7 +2829,7 @@ var Menu = /* @__PURE__ */ defineComponent({
|
|
|
2794
2829
|
var slot = {
|
|
2795
2830
|
open: menuState.value === MenuStates.Open
|
|
2796
2831
|
};
|
|
2797
|
-
return render$
|
|
2832
|
+
return render$9({
|
|
2798
2833
|
props,
|
|
2799
2834
|
slot,
|
|
2800
2835
|
slots,
|
|
@@ -2816,7 +2851,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2816
2851
|
"default": "button"
|
|
2817
2852
|
}
|
|
2818
2853
|
},
|
|
2819
|
-
render: function render$
|
|
2854
|
+
render: function render$17() {
|
|
2820
2855
|
var _dom4;
|
|
2821
2856
|
var api = useMenuContext("MenuButton");
|
|
2822
2857
|
var slot = {
|
|
@@ -2833,7 +2868,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2833
2868
|
onKeyup: this.handleKeyUp,
|
|
2834
2869
|
onClick: this.handleClick
|
|
2835
2870
|
};
|
|
2836
|
-
return render$
|
|
2871
|
+
return render$9({
|
|
2837
2872
|
props: _extends({}, this.$props, propsWeControl),
|
|
2838
2873
|
slot,
|
|
2839
2874
|
attrs: this.$attrs,
|
|
@@ -2841,7 +2876,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2841
2876
|
name: "MenuButton"
|
|
2842
2877
|
});
|
|
2843
2878
|
},
|
|
2844
|
-
setup: function
|
|
2879
|
+
setup: function setup12(props, _ref2) {
|
|
2845
2880
|
var attrs = _ref2.attrs;
|
|
2846
2881
|
var api = useMenuContext("MenuButton");
|
|
2847
2882
|
var id2 = "headlessui-menu-button-" + useId();
|
|
@@ -2936,7 +2971,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2936
2971
|
"default": true
|
|
2937
2972
|
}
|
|
2938
2973
|
},
|
|
2939
|
-
render: function render$
|
|
2974
|
+
render: function render$18() {
|
|
2940
2975
|
var _api$items$value$api$, _dom9;
|
|
2941
2976
|
var api = useMenuContext("MenuItems");
|
|
2942
2977
|
var slot = {
|
|
@@ -2953,7 +2988,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2953
2988
|
ref: "el"
|
|
2954
2989
|
};
|
|
2955
2990
|
var passThroughProps = this.$props;
|
|
2956
|
-
return render$
|
|
2991
|
+
return render$9({
|
|
2957
2992
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2958
2993
|
slot,
|
|
2959
2994
|
attrs: this.$attrs,
|
|
@@ -2963,7 +2998,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2963
2998
|
name: "MenuItems"
|
|
2964
2999
|
});
|
|
2965
3000
|
},
|
|
2966
|
-
setup: function
|
|
3001
|
+
setup: function setup13() {
|
|
2967
3002
|
var api = useMenuContext("MenuItems");
|
|
2968
3003
|
var id2 = "headlessui-menu-items-" + useId();
|
|
2969
3004
|
var searchDebounce = ref(null);
|
|
@@ -3089,7 +3124,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
|
|
|
3089
3124
|
"default": false
|
|
3090
3125
|
}
|
|
3091
3126
|
},
|
|
3092
|
-
setup: function
|
|
3127
|
+
setup: function setup14(props, _ref3) {
|
|
3093
3128
|
var slots = _ref3.slots, attrs = _ref3.attrs;
|
|
3094
3129
|
var api = useMenuContext("MenuItem");
|
|
3095
3130
|
var id2 = "headlessui-menu-item-" + useId();
|
|
@@ -3172,7 +3207,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
|
|
|
3172
3207
|
onPointerleave: handleLeave,
|
|
3173
3208
|
onMouseleave: handleLeave
|
|
3174
3209
|
};
|
|
3175
|
-
return render$
|
|
3210
|
+
return render$9({
|
|
3176
3211
|
props: _extends({}, props, propsWeControl),
|
|
3177
3212
|
slot,
|
|
3178
3213
|
attrs,
|
|
@@ -3214,7 +3249,7 @@ var Popover = /* @__PURE__ */ defineComponent({
|
|
|
3214
3249
|
"default": "div"
|
|
3215
3250
|
}
|
|
3216
3251
|
},
|
|
3217
|
-
setup: function
|
|
3252
|
+
setup: function setup15(props, _ref) {
|
|
3218
3253
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
3219
3254
|
var buttonId = "headlessui-popover-button-" + useId();
|
|
3220
3255
|
var panelId = "headlessui-popover-panel-" + useId();
|
|
@@ -3303,7 +3338,7 @@ var Popover = /* @__PURE__ */ defineComponent({
|
|
|
3303
3338
|
open: popoverState.value === PopoverStates.Open,
|
|
3304
3339
|
close: api.close
|
|
3305
3340
|
};
|
|
3306
|
-
return render$
|
|
3341
|
+
return render$9({
|
|
3307
3342
|
props,
|
|
3308
3343
|
slot,
|
|
3309
3344
|
slots,
|
|
@@ -3325,7 +3360,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3325
3360
|
"default": false
|
|
3326
3361
|
}
|
|
3327
3362
|
},
|
|
3328
|
-
render: function render$
|
|
3363
|
+
render: function render$19() {
|
|
3329
3364
|
var api = usePopoverContext("PopoverButton");
|
|
3330
3365
|
var slot = {
|
|
3331
3366
|
open: api.popoverState.value === PopoverStates.Open
|
|
@@ -3346,7 +3381,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3346
3381
|
onKeyup: this.handleKeyUp,
|
|
3347
3382
|
onClick: this.handleClick
|
|
3348
3383
|
};
|
|
3349
|
-
return render$
|
|
3384
|
+
return render$9({
|
|
3350
3385
|
props: _extends({}, this.$props, propsWeControl),
|
|
3351
3386
|
slot,
|
|
3352
3387
|
attrs: this.$attrs,
|
|
@@ -3354,7 +3389,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3354
3389
|
name: "PopoverButton"
|
|
3355
3390
|
});
|
|
3356
3391
|
},
|
|
3357
|
-
setup: function
|
|
3392
|
+
setup: function setup16(props, _ref2) {
|
|
3358
3393
|
var attrs = _ref2.attrs;
|
|
3359
3394
|
var api = usePopoverContext("PopoverButton");
|
|
3360
3395
|
var groupContext = usePopoverGroupContext();
|
|
@@ -3519,7 +3554,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3519
3554
|
"default": false
|
|
3520
3555
|
}
|
|
3521
3556
|
},
|
|
3522
|
-
render: function render$
|
|
3557
|
+
render: function render$110() {
|
|
3523
3558
|
var api = usePopoverContext("PopoverPanel");
|
|
3524
3559
|
var slot = {
|
|
3525
3560
|
open: api.popoverState.value === PopoverStates.Open,
|
|
@@ -3530,7 +3565,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3530
3565
|
id: this.id,
|
|
3531
3566
|
onKeydown: this.handleKeyDown
|
|
3532
3567
|
};
|
|
3533
|
-
return render$
|
|
3568
|
+
return render$9({
|
|
3534
3569
|
props: _extends({}, this.$props, propsWeControl),
|
|
3535
3570
|
slot,
|
|
3536
3571
|
attrs: this.$attrs,
|
|
@@ -3540,7 +3575,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3540
3575
|
name: "PopoverPanel"
|
|
3541
3576
|
});
|
|
3542
3577
|
},
|
|
3543
|
-
setup: function
|
|
3578
|
+
setup: function setup17(props) {
|
|
3544
3579
|
var focus = props.focus;
|
|
3545
3580
|
var api = usePopoverContext("PopoverPanel");
|
|
3546
3581
|
provide(PopoverPanelContext, api.panelId);
|
|
@@ -3634,11 +3669,403 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3634
3669
|
};
|
|
3635
3670
|
}
|
|
3636
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;
|
|
3637
4064
|
var GroupContext = /* @__PURE__ */ Symbol("GroupContext");
|
|
3638
4065
|
var Switch = /* @__PURE__ */ defineComponent({
|
|
3639
4066
|
name: "Switch",
|
|
3640
4067
|
emits: {
|
|
3641
|
-
"update:modelValue": function
|
|
4068
|
+
"update:modelValue": function updateModelValue2(_value) {
|
|
3642
4069
|
return true;
|
|
3643
4070
|
}
|
|
3644
4071
|
},
|
|
@@ -3652,7 +4079,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3652
4079
|
"default": false
|
|
3653
4080
|
}
|
|
3654
4081
|
},
|
|
3655
|
-
render: function render$
|
|
4082
|
+
render: function render$114() {
|
|
3656
4083
|
var slot = {
|
|
3657
4084
|
checked: this.$props.modelValue
|
|
3658
4085
|
};
|
|
@@ -3669,7 +4096,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3669
4096
|
onKeyup: this.handleKeyUp,
|
|
3670
4097
|
onKeypress: this.handleKeyPress
|
|
3671
4098
|
};
|
|
3672
|
-
return render$
|
|
4099
|
+
return render$9({
|
|
3673
4100
|
props: _extends({}, this.$props, propsWeControl),
|
|
3674
4101
|
slot,
|
|
3675
4102
|
attrs: this.$attrs,
|
|
@@ -3677,7 +4104,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3677
4104
|
name: "Switch"
|
|
3678
4105
|
});
|
|
3679
4106
|
},
|
|
3680
|
-
setup: function
|
|
4107
|
+
setup: function setup21(props, _ref2) {
|
|
3681
4108
|
var emit = _ref2.emit, attrs = _ref2.attrs;
|
|
3682
4109
|
var api = inject(GroupContext, null);
|
|
3683
4110
|
var id2 = "headlessui-switch-" + useId();
|
|
@@ -3996,7 +4423,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
3996
4423
|
return true;
|
|
3997
4424
|
}
|
|
3998
4425
|
},
|
|
3999
|
-
render: function render$
|
|
4426
|
+
render: function render$115() {
|
|
4000
4427
|
var _this = this;
|
|
4001
4428
|
if (this.renderAsRoot) {
|
|
4002
4429
|
return h(TransitionRoot, _extends({}, this.$props, {
|
|
@@ -4019,7 +4446,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
4019
4446
|
ref: "el"
|
|
4020
4447
|
};
|
|
4021
4448
|
var passthroughProps = rest;
|
|
4022
|
-
return render$
|
|
4449
|
+
return render$9({
|
|
4023
4450
|
props: _extends({}, passthroughProps, propsWeControl),
|
|
4024
4451
|
slot: {},
|
|
4025
4452
|
slots: this.$slots,
|
|
@@ -4029,7 +4456,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
4029
4456
|
name: "TransitionChild"
|
|
4030
4457
|
});
|
|
4031
4458
|
},
|
|
4032
|
-
setup: function
|
|
4459
|
+
setup: function setup22(props, _ref4) {
|
|
4033
4460
|
var emit = _ref4.emit;
|
|
4034
4461
|
if (!hasTransitionContext() && hasOpenClosed()) {
|
|
4035
4462
|
return {
|
|
@@ -4204,13 +4631,13 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4204
4631
|
return true;
|
|
4205
4632
|
}
|
|
4206
4633
|
},
|
|
4207
|
-
render: function render$
|
|
4634
|
+
render: function render$116() {
|
|
4208
4635
|
var _this2 = this;
|
|
4209
4636
|
var _this$$props2 = this.$props, unmount = _this$$props2.unmount, passThroughProps = _objectWithoutPropertiesLoose(_this$$props2, ["show", "appear", "unmount"]);
|
|
4210
4637
|
var sharedProps = {
|
|
4211
4638
|
unmount
|
|
4212
4639
|
};
|
|
4213
|
-
return render$
|
|
4640
|
+
return render$9({
|
|
4214
4641
|
props: _extends({}, sharedProps, {
|
|
4215
4642
|
as: "template"
|
|
4216
4643
|
}),
|
|
@@ -4239,7 +4666,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4239
4666
|
name: "Transition"
|
|
4240
4667
|
});
|
|
4241
4668
|
},
|
|
4242
|
-
setup: function
|
|
4669
|
+
setup: function setup23(props) {
|
|
4243
4670
|
var usesOpenClosedState = useOpenClosed();
|
|
4244
4671
|
var show = computed(function() {
|
|
4245
4672
|
if (props.show === null && usesOpenClosedState !== null) {
|
|
@@ -4284,6 +4711,20 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4284
4711
|
};
|
|
4285
4712
|
}
|
|
4286
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
|
+
}
|
|
4287
4728
|
function render$7(_ctx, _cache) {
|
|
4288
4729
|
return openBlock(), createBlock("svg", {
|
|
4289
4730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4322,10 +4763,10 @@ function render$5(_ctx, _cache) {
|
|
|
4322
4763
|
})
|
|
4323
4764
|
]);
|
|
4324
4765
|
}
|
|
4325
|
-
const _hoisted_1$
|
|
4326
|
-
const _hoisted_2$
|
|
4327
|
-
const _hoisted_3$
|
|
4328
|
-
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({
|
|
4329
4770
|
props: {
|
|
4330
4771
|
currentUser: null,
|
|
4331
4772
|
items: null,
|
|
@@ -4366,7 +4807,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4366
4807
|
disabled: !hasActionItems.value
|
|
4367
4808
|
}, {
|
|
4368
4809
|
default: withCtx(() => [
|
|
4369
|
-
_hoisted_1$
|
|
4810
|
+
_hoisted_1$r,
|
|
4370
4811
|
createVNode(unref(render$6), {
|
|
4371
4812
|
class: "w-5 h-5",
|
|
4372
4813
|
"aria-hidden": "true"
|
|
@@ -4385,7 +4826,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4385
4826
|
default: withCtx(() => [
|
|
4386
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" }, {
|
|
4387
4828
|
default: withCtx(() => [
|
|
4388
|
-
createElementVNode("div", _hoisted_2$
|
|
4829
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
4389
4830
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, idx) => {
|
|
4390
4831
|
return openBlock(), createElementBlock(Fragment, { key: idx }, [
|
|
4391
4832
|
show(item) ? (openBlock(), createBlock(unref(MenuItem), {
|
|
@@ -4401,7 +4842,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4401
4842
|
]),
|
|
4402
4843
|
textContent: toDisplayString(item.label),
|
|
4403
4844
|
onClick: ($event) => emitEvent(item.event)
|
|
4404
|
-
}, null, 10, _hoisted_3$
|
|
4845
|
+
}, null, 10, _hoisted_3$k)
|
|
4405
4846
|
]),
|
|
4406
4847
|
_: 2
|
|
4407
4848
|
}, 1024)) : createCommentVNode("", true)
|
|
@@ -4420,10 +4861,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4420
4861
|
};
|
|
4421
4862
|
}
|
|
4422
4863
|
});
|
|
4423
|
-
const _hoisted_1$
|
|
4424
|
-
const _hoisted_2$
|
|
4425
|
-
const _hoisted_3$
|
|
4426
|
-
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({
|
|
4427
4868
|
props: {
|
|
4428
4869
|
cards: null
|
|
4429
4870
|
},
|
|
@@ -4437,16 +4878,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4437
4878
|
class: "bg-white overflow-hidden shadow rounded-lg",
|
|
4438
4879
|
key: idx
|
|
4439
4880
|
}, [
|
|
4440
|
-
createElementVNode("div", _hoisted_1$
|
|
4881
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
4441
4882
|
createElementVNode("dl", null, [
|
|
4442
4883
|
createElementVNode("dd", {
|
|
4443
4884
|
class: "mt-1 text-3xl leading-9 font-semibold text-xy-blue",
|
|
4444
4885
|
textContent: toDisplayString(card.primary)
|
|
4445
|
-
}, null, 8, _hoisted_2$
|
|
4886
|
+
}, null, 8, _hoisted_2$k),
|
|
4446
4887
|
createElementVNode("dt", {
|
|
4447
4888
|
class: "text-sm leading-5 font-medium text-gray-700 truncate",
|
|
4448
4889
|
textContent: toDisplayString(card.secondary)
|
|
4449
|
-
}, null, 8, _hoisted_3$
|
|
4890
|
+
}, null, 8, _hoisted_3$j)
|
|
4450
4891
|
])
|
|
4451
4892
|
])
|
|
4452
4893
|
]);
|
|
@@ -4455,23 +4896,23 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4455
4896
|
};
|
|
4456
4897
|
}
|
|
4457
4898
|
});
|
|
4458
|
-
const _hoisted_1$
|
|
4459
|
-
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", {
|
|
4460
4901
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4461
4902
|
"aria-hidden": "true"
|
|
4462
4903
|
}, "\u200B", -1);
|
|
4463
|
-
const _hoisted_3$
|
|
4464
|
-
const _hoisted_4$
|
|
4465
|
-
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" };
|
|
4466
4907
|
const _hoisted_6$c = { class: "mt-5 sm:mt-6" };
|
|
4467
|
-
const _sfc_main$
|
|
4908
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
4468
4909
|
props: {
|
|
4469
4910
|
modelValue: { type: Boolean },
|
|
4470
4911
|
title: { default: "" }
|
|
4471
4912
|
},
|
|
4472
4913
|
emits: ["update:modelValue"],
|
|
4473
4914
|
setup(__props, { emit }) {
|
|
4474
|
-
const
|
|
4915
|
+
const updateModelValue3 = (value) => {
|
|
4475
4916
|
emit("update:modelValue", value);
|
|
4476
4917
|
};
|
|
4477
4918
|
return (_ctx, _cache) => {
|
|
@@ -4484,11 +4925,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4484
4925
|
as: "div",
|
|
4485
4926
|
static: "",
|
|
4486
4927
|
class: "fixed z-10 inset-0 overflow-y-auto",
|
|
4487
|
-
onClose: _cache[1] || (_cache[1] = ($event) =>
|
|
4928
|
+
onClose: _cache[1] || (_cache[1] = ($event) => updateModelValue3(false)),
|
|
4488
4929
|
open: __props.modelValue
|
|
4489
4930
|
}, {
|
|
4490
4931
|
default: withCtx(() => [
|
|
4491
|
-
createElementVNode("div", _hoisted_1$
|
|
4932
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
4492
4933
|
createVNode(unref(TransitionChild), {
|
|
4493
4934
|
as: "template",
|
|
4494
4935
|
enter: "ease-out duration-300",
|
|
@@ -4503,7 +4944,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4503
4944
|
]),
|
|
4504
4945
|
_: 1
|
|
4505
4946
|
}),
|
|
4506
|
-
_hoisted_2$
|
|
4947
|
+
_hoisted_2$j,
|
|
4507
4948
|
createVNode(unref(TransitionChild), {
|
|
4508
4949
|
as: "template",
|
|
4509
4950
|
enter: "ease-out duration-300",
|
|
@@ -4514,15 +4955,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4514
4955
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
4515
4956
|
}, {
|
|
4516
4957
|
default: withCtx(() => [
|
|
4517
|
-
createElementVNode("div", _hoisted_3$
|
|
4958
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
4518
4959
|
createElementVNode("div", null, [
|
|
4519
4960
|
renderSlot(_ctx.$slots, "icon"),
|
|
4520
|
-
createElementVNode("div", _hoisted_4$
|
|
4961
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
4521
4962
|
createVNode(unref(DialogTitle), {
|
|
4522
4963
|
as: "h3",
|
|
4523
4964
|
textContent: toDisplayString(__props.title)
|
|
4524
4965
|
}, null, 8, ["textContent"]),
|
|
4525
|
-
createElementVNode("div", _hoisted_5$
|
|
4966
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
4526
4967
|
renderSlot(_ctx.$slots, "default")
|
|
4527
4968
|
])
|
|
4528
4969
|
])
|
|
@@ -4531,7 +4972,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4531
4972
|
createElementVNode("button", {
|
|
4532
4973
|
type: "button",
|
|
4533
4974
|
class: "inline-flex justify-center w-full xy-btn",
|
|
4534
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
4975
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
4535
4976
|
}, " Go back ")
|
|
4536
4977
|
])
|
|
4537
4978
|
])
|
|
@@ -6641,7 +7082,7 @@ if (typeof window !== "undefined") {
|
|
|
6641
7082
|
window.flatpickr = flatpickr;
|
|
6642
7083
|
}
|
|
6643
7084
|
var flatpickr_min = "";
|
|
6644
|
-
const _sfc_main$
|
|
7085
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
6645
7086
|
props: {
|
|
6646
7087
|
disabled: { type: Boolean, default: false },
|
|
6647
7088
|
label: { default: "" },
|
|
@@ -6664,7 +7105,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6664
7105
|
};
|
|
6665
7106
|
}
|
|
6666
7107
|
});
|
|
6667
|
-
const _sfc_main$
|
|
7108
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
6668
7109
|
props: {
|
|
6669
7110
|
tag: { default: "div" },
|
|
6670
7111
|
text: { default: "" }
|
|
@@ -6682,8 +7123,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6682
7123
|
};
|
|
6683
7124
|
}
|
|
6684
7125
|
});
|
|
6685
|
-
const _hoisted_1$
|
|
6686
|
-
const _sfc_main$
|
|
7126
|
+
const _hoisted_1$o = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
|
|
7127
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
6687
7128
|
props: {
|
|
6688
7129
|
type: null,
|
|
6689
7130
|
help: { default: "" },
|
|
@@ -6714,7 +7155,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6714
7155
|
});
|
|
6715
7156
|
return (_ctx, _cache) => {
|
|
6716
7157
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6717
|
-
createVNode(_sfc_main$
|
|
7158
|
+
createVNode(_sfc_main$t, {
|
|
6718
7159
|
class: "block",
|
|
6719
7160
|
id: `${unref(uuid)}-label`,
|
|
6720
7161
|
for: unref(uuid),
|
|
@@ -6742,8 +7183,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6742
7183
|
type: __props.type,
|
|
6743
7184
|
value: __props.modelValue,
|
|
6744
7185
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
6745
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
6746
|
-
createVNode(_sfc_main$
|
|
7186
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$o),
|
|
7187
|
+
createVNode(_sfc_main$s, {
|
|
6747
7188
|
id: `${unref(uuid)}-help`,
|
|
6748
7189
|
text: __props.help
|
|
6749
7190
|
}, null, 8, ["id", "text"])
|
|
@@ -6751,7 +7192,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6751
7192
|
};
|
|
6752
7193
|
}
|
|
6753
7194
|
});
|
|
6754
|
-
const _sfc_main$
|
|
7195
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
6755
7196
|
props: {
|
|
6756
7197
|
modelValue: null,
|
|
6757
7198
|
startDate: { default: 0 },
|
|
@@ -6763,7 +7204,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6763
7204
|
const props = __props;
|
|
6764
7205
|
const attrs = useAttrs();
|
|
6765
7206
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
6766
|
-
const
|
|
7207
|
+
const updateModelValue3 = (value) => {
|
|
6767
7208
|
emits("update:modelValue", value);
|
|
6768
7209
|
};
|
|
6769
7210
|
onMounted(() => {
|
|
@@ -6774,12 +7215,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6774
7215
|
minDate: props.startDate,
|
|
6775
7216
|
onClose: (selectedDates) => {
|
|
6776
7217
|
if (selectedDates.length === 2) {
|
|
6777
|
-
|
|
7218
|
+
updateModelValue3({
|
|
6778
7219
|
minDate: selectedDates[0].setUTCHours(0, 0, 0, 0) / 1e3,
|
|
6779
7220
|
maxDate: Math.floor(selectedDates[1].setUTCHours(23, 59, 59, 999) / 1e3)
|
|
6780
7221
|
});
|
|
6781
7222
|
} else if (selectedDates.length === 0) {
|
|
6782
|
-
|
|
7223
|
+
updateModelValue3({
|
|
6783
7224
|
minDate: 0,
|
|
6784
7225
|
maxDate: 0
|
|
6785
7226
|
});
|
|
@@ -6788,7 +7229,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6788
7229
|
});
|
|
6789
7230
|
});
|
|
6790
7231
|
return (_ctx, _cache) => {
|
|
6791
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7232
|
+
return openBlock(), createBlock(_sfc_main$r, {
|
|
6792
7233
|
type: "text",
|
|
6793
7234
|
placeholder: "mm-dd-yyyy range",
|
|
6794
7235
|
id: unref(uuid),
|
|
@@ -6798,15 +7239,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6798
7239
|
};
|
|
6799
7240
|
}
|
|
6800
7241
|
});
|
|
6801
|
-
const _hoisted_1$
|
|
6802
|
-
const _hoisted_2$
|
|
7242
|
+
const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "value"];
|
|
7243
|
+
const _hoisted_2$i = {
|
|
6803
7244
|
key: 0,
|
|
6804
7245
|
value: "",
|
|
6805
7246
|
disabled: "",
|
|
6806
7247
|
selected: ""
|
|
6807
7248
|
};
|
|
6808
|
-
const _hoisted_3$
|
|
6809
|
-
const _sfc_main$
|
|
7249
|
+
const _hoisted_3$h = ["value", "textContent"];
|
|
7250
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
6810
7251
|
props: {
|
|
6811
7252
|
design: { default: "standard" },
|
|
6812
7253
|
label: { default: "" },
|
|
@@ -6828,7 +7269,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6828
7269
|
});
|
|
6829
7270
|
return (_ctx, _cache) => {
|
|
6830
7271
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6831
|
-
createVNode(_sfc_main$
|
|
7272
|
+
createVNode(_sfc_main$t, {
|
|
6832
7273
|
id: `${unref(uuid)}-label`,
|
|
6833
7274
|
for: unref(uuid),
|
|
6834
7275
|
label: __props.label
|
|
@@ -6844,16 +7285,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6844
7285
|
emit("update:modelValue", $event.target.value);
|
|
6845
7286
|
}
|
|
6846
7287
|
})), [
|
|
6847
|
-
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$
|
|
7288
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$i, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
|
|
6848
7289
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
6849
7290
|
return openBlock(), createElementBlock("option", {
|
|
6850
7291
|
value: option.value,
|
|
6851
7292
|
textContent: toDisplayString(option.label),
|
|
6852
7293
|
key: option.value
|
|
6853
|
-
}, null, 8, _hoisted_3$
|
|
7294
|
+
}, null, 8, _hoisted_3$h);
|
|
6854
7295
|
}), 128))
|
|
6855
|
-
], 16, _hoisted_1$
|
|
6856
|
-
createVNode(_sfc_main$
|
|
7296
|
+
], 16, _hoisted_1$n),
|
|
7297
|
+
createVNode(_sfc_main$s, {
|
|
6857
7298
|
id: `${unref(uuid)}-help`,
|
|
6858
7299
|
text: __props.help
|
|
6859
7300
|
}, null, 8, ["id", "text"])
|
|
@@ -6861,11 +7302,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6861
7302
|
};
|
|
6862
7303
|
}
|
|
6863
7304
|
});
|
|
6864
|
-
const _hoisted_1$
|
|
6865
|
-
const _hoisted_2$
|
|
6866
|
-
const _hoisted_3$
|
|
6867
|
-
const _hoisted_4$
|
|
6868
|
-
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({
|
|
6869
7310
|
props: {
|
|
6870
7311
|
dateRange: null,
|
|
6871
7312
|
sortDir: null,
|
|
@@ -6887,12 +7328,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6887
7328
|
emits("date-range-changed", dateRange2);
|
|
6888
7329
|
};
|
|
6889
7330
|
return (_ctx, _cache) => {
|
|
6890
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6891
|
-
createElementVNode("div", _hoisted_2$
|
|
6892
|
-
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)
|
|
6893
7334
|
]),
|
|
6894
|
-
createElementVNode("div", _hoisted_4$
|
|
6895
|
-
createVNode(_sfc_main$
|
|
7335
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
7336
|
+
createVNode(_sfc_main$p, {
|
|
6896
7337
|
modelValue: sortDir.value,
|
|
6897
7338
|
"onUpdate:modelValue": [
|
|
6898
7339
|
_cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
@@ -6900,7 +7341,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6900
7341
|
],
|
|
6901
7342
|
options: sortOptions
|
|
6902
7343
|
}, null, 8, ["modelValue"]),
|
|
6903
|
-
createVNode(_sfc_main$
|
|
7344
|
+
createVNode(_sfc_main$q, {
|
|
6904
7345
|
modelValue: dateRange.value,
|
|
6905
7346
|
"onUpdate:modelValue": [
|
|
6906
7347
|
_cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
|
|
@@ -6913,9 +7354,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6913
7354
|
};
|
|
6914
7355
|
}
|
|
6915
7356
|
});
|
|
6916
|
-
const _hoisted_1$
|
|
6917
|
-
const _hoisted_2$
|
|
6918
|
-
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", {
|
|
6919
7360
|
class: "mr-3 h-5 w-5",
|
|
6920
7361
|
fill: "currentColor",
|
|
6921
7362
|
viewBox: "0 0 20 20"
|
|
@@ -6926,10 +7367,10 @@ const _hoisted_3$e = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
6926
7367
|
"clip-rule": "evenodd"
|
|
6927
7368
|
})
|
|
6928
7369
|
], -1);
|
|
6929
|
-
const _hoisted_4$
|
|
6930
|
-
const _hoisted_5$
|
|
6931
|
-
_hoisted_3$
|
|
6932
|
-
_hoisted_4$
|
|
7370
|
+
const _hoisted_4$d = /* @__PURE__ */ createTextVNode(" Previous ");
|
|
7371
|
+
const _hoisted_5$c = [
|
|
7372
|
+
_hoisted_3$f,
|
|
7373
|
+
_hoisted_4$d
|
|
6933
7374
|
];
|
|
6934
7375
|
const _hoisted_6$b = { class: "hidden md:flex" };
|
|
6935
7376
|
const _hoisted_7$a = ["textContent", "onClick"];
|
|
@@ -6950,7 +7391,7 @@ const _hoisted_11$5 = [
|
|
|
6950
7391
|
_hoisted_9$8,
|
|
6951
7392
|
_hoisted_10$8
|
|
6952
7393
|
];
|
|
6953
|
-
const _sfc_main$
|
|
7394
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
6954
7395
|
props: {
|
|
6955
7396
|
modelValue: null
|
|
6956
7397
|
},
|
|
@@ -6983,8 +7424,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6983
7424
|
return shortcuts;
|
|
6984
7425
|
});
|
|
6985
7426
|
return (_ctx, _cache) => {
|
|
6986
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6987
|
-
createElementVNode("div", _hoisted_2$
|
|
7427
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
7428
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
6988
7429
|
createElementVNode("a", {
|
|
6989
7430
|
href: "#",
|
|
6990
7431
|
class: normalizeClass([
|
|
@@ -6992,7 +7433,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6992
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"
|
|
6993
7434
|
]),
|
|
6994
7435
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(__props.modelValue.page - 1), ["prevent"]))
|
|
6995
|
-
}, _hoisted_5$
|
|
7436
|
+
}, _hoisted_5$c, 2)
|
|
6996
7437
|
]),
|
|
6997
7438
|
createElementVNode("div", _hoisted_6$b, [
|
|
6998
7439
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pageShortcuts), (i) => {
|
|
@@ -7022,11 +7463,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7022
7463
|
};
|
|
7023
7464
|
}
|
|
7024
7465
|
});
|
|
7025
|
-
const _hoisted_1$
|
|
7466
|
+
const _hoisted_1$k = {
|
|
7026
7467
|
key: 0,
|
|
7027
7468
|
class: "shadow overflow-hidden sm:rounded-md border"
|
|
7028
7469
|
};
|
|
7029
|
-
const _sfc_main$
|
|
7470
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
7030
7471
|
props: {
|
|
7031
7472
|
refreshTrigger: { default: 0 },
|
|
7032
7473
|
reloadTrigger: { default: 0 },
|
|
@@ -7081,14 +7522,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7081
7522
|
loadAndRender(true);
|
|
7082
7523
|
return (_ctx, _cache) => {
|
|
7083
7524
|
return openBlock(), createElementBlock("div", null, [
|
|
7084
|
-
createVNode(_sfc_main$
|
|
7525
|
+
createVNode(_sfc_main$o, {
|
|
7085
7526
|
"date-range": dateRange.value,
|
|
7086
7527
|
"sort-dir": sortDir.value,
|
|
7087
7528
|
title: __props.title,
|
|
7088
7529
|
onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
7089
7530
|
onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
|
|
7090
7531
|
}, null, 8, ["date-range", "sort-dir", "title"]),
|
|
7091
|
-
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7532
|
+
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
7092
7533
|
createElementVNode("ul", null, [
|
|
7093
7534
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
|
|
7094
7535
|
return openBlock(), createElementBlock("li", {
|
|
@@ -7100,7 +7541,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7100
7541
|
}), 128))
|
|
7101
7542
|
])
|
|
7102
7543
|
])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
|
|
7103
|
-
hasContent.value ? (openBlock(), createBlock(_sfc_main$
|
|
7544
|
+
hasContent.value ? (openBlock(), createBlock(_sfc_main$n, {
|
|
7104
7545
|
key: 2,
|
|
7105
7546
|
modelValue: pagination.value,
|
|
7106
7547
|
"onUpdate:modelValue": [
|
|
@@ -7112,8 +7553,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7112
7553
|
};
|
|
7113
7554
|
}
|
|
7114
7555
|
});
|
|
7115
|
-
const _hoisted_1$
|
|
7116
|
-
const _sfc_main$
|
|
7556
|
+
const _hoisted_1$j = ["href"];
|
|
7557
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
7117
7558
|
props: {
|
|
7118
7559
|
propsData: null,
|
|
7119
7560
|
attribute: null
|
|
@@ -7124,15 +7565,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
7124
7565
|
href: __props.propsData[__props.attribute]
|
|
7125
7566
|
}, [
|
|
7126
7567
|
createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
|
|
7127
|
-
], 8, _hoisted_1$
|
|
7568
|
+
], 8, _hoisted_1$j);
|
|
7128
7569
|
};
|
|
7129
7570
|
}
|
|
7130
7571
|
});
|
|
7131
|
-
const _hoisted_1$
|
|
7132
|
-
const _hoisted_2$
|
|
7133
|
-
const _hoisted_3$
|
|
7134
|
-
const _hoisted_4$
|
|
7135
|
-
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" };
|
|
7136
7577
|
const _hoisted_6$a = ["innerHTML"];
|
|
7137
7578
|
const _hoisted_7$9 = { class: "ml-4 flex-shrink-0 flex" };
|
|
7138
7579
|
const _hoisted_8$7 = ["onClick"];
|
|
@@ -7150,7 +7591,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7150
7591
|
const _hoisted_10$7 = [
|
|
7151
7592
|
_hoisted_9$7
|
|
7152
7593
|
];
|
|
7153
|
-
const _sfc_main$
|
|
7594
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
7154
7595
|
setup(__props) {
|
|
7155
7596
|
const flashes = ref([]);
|
|
7156
7597
|
const flashTypeBorderClass = {
|
|
@@ -7205,7 +7646,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7205
7646
|
}
|
|
7206
7647
|
});
|
|
7207
7648
|
return (_ctx, _cache) => {
|
|
7208
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7649
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
7209
7650
|
createVNode(TransitionGroup, {
|
|
7210
7651
|
tag: "div",
|
|
7211
7652
|
class: "max-w-sm w-full",
|
|
@@ -7222,10 +7663,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7222
7663
|
key: flash.message,
|
|
7223
7664
|
class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
|
|
7224
7665
|
}, [
|
|
7225
|
-
createElementVNode("div", _hoisted_2$
|
|
7226
|
-
createElementVNode("div", _hoisted_3$
|
|
7227
|
-
createElementVNode("div", _hoisted_4$
|
|
7228
|
-
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, [
|
|
7229
7670
|
createElementVNode("p", {
|
|
7230
7671
|
class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
|
|
7231
7672
|
innerHTML: flash.message
|
|
@@ -7297,7 +7738,7 @@ function render$2(_ctx, _cache) {
|
|
|
7297
7738
|
})
|
|
7298
7739
|
]);
|
|
7299
7740
|
}
|
|
7300
|
-
function render$
|
|
7741
|
+
function render$117(_ctx, _cache) {
|
|
7301
7742
|
return openBlock(), createBlock("svg", {
|
|
7302
7743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7303
7744
|
fill: "none",
|
|
@@ -7329,14 +7770,14 @@ function render(_ctx, _cache) {
|
|
|
7329
7770
|
})
|
|
7330
7771
|
]);
|
|
7331
7772
|
}
|
|
7332
|
-
const _hoisted_1$
|
|
7333
|
-
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", {
|
|
7334
7775
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
7335
7776
|
"aria-hidden": "true"
|
|
7336
7777
|
}, "\u200B", -1);
|
|
7337
|
-
const _hoisted_3$
|
|
7338
|
-
const _hoisted_4$
|
|
7339
|
-
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);
|
|
7340
7781
|
const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
|
|
7341
7782
|
const _hoisted_7$8 = { class: "mt-3 sm:mt-0 sm:text-left" };
|
|
7342
7783
|
const _hoisted_8$6 = { class: "mt-2" };
|
|
@@ -7345,7 +7786,7 @@ const _hoisted_9$6 = {
|
|
|
7345
7786
|
class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
|
|
7346
7787
|
};
|
|
7347
7788
|
const _hoisted_10$6 = ["textContent", "disabled"];
|
|
7348
|
-
const _sfc_main$
|
|
7789
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
7349
7790
|
props: {
|
|
7350
7791
|
destructive: { type: Boolean, default: false },
|
|
7351
7792
|
disabled: { type: Boolean, default: false },
|
|
@@ -7358,7 +7799,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7358
7799
|
const submit = () => {
|
|
7359
7800
|
emit("submit");
|
|
7360
7801
|
};
|
|
7361
|
-
const
|
|
7802
|
+
const updateModelValue3 = (value) => {
|
|
7362
7803
|
emit("update:modelValue", value);
|
|
7363
7804
|
};
|
|
7364
7805
|
return (_ctx, _cache) => {
|
|
@@ -7371,11 +7812,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7371
7812
|
as: "div",
|
|
7372
7813
|
static: "",
|
|
7373
7814
|
class: "fixed z-10 inset-0 overflow-y-auto",
|
|
7374
|
-
onClose: _cache[3] || (_cache[3] = ($event) =>
|
|
7815
|
+
onClose: _cache[3] || (_cache[3] = ($event) => updateModelValue3(false)),
|
|
7375
7816
|
open: __props.modelValue
|
|
7376
7817
|
}, {
|
|
7377
7818
|
default: withCtx(() => [
|
|
7378
|
-
createElementVNode("div", _hoisted_1$
|
|
7819
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
7379
7820
|
createVNode(unref(TransitionChild), {
|
|
7380
7821
|
as: "template",
|
|
7381
7822
|
enter: "ease-out duration-300",
|
|
@@ -7390,7 +7831,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7390
7831
|
]),
|
|
7391
7832
|
_: 1
|
|
7392
7833
|
}),
|
|
7393
|
-
_hoisted_2$
|
|
7834
|
+
_hoisted_2$e,
|
|
7394
7835
|
createVNode(unref(TransitionChild), {
|
|
7395
7836
|
as: "template",
|
|
7396
7837
|
enter: "ease-out duration-300",
|
|
@@ -7401,14 +7842,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7401
7842
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
7402
7843
|
}, {
|
|
7403
7844
|
default: withCtx(() => [
|
|
7404
|
-
createElementVNode("div", _hoisted_3$
|
|
7405
|
-
createElementVNode("div", _hoisted_4$
|
|
7845
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
7846
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
7406
7847
|
createElementVNode("button", {
|
|
7407
7848
|
type: "button",
|
|
7408
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",
|
|
7409
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
7850
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
7410
7851
|
}, [
|
|
7411
|
-
_hoisted_5$
|
|
7852
|
+
_hoisted_5$a,
|
|
7412
7853
|
createVNode(unref(render), {
|
|
7413
7854
|
class: "h-6 w-6",
|
|
7414
7855
|
"aria-hidden": "true"
|
|
@@ -7438,7 +7879,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7438
7879
|
createElementVNode("button", {
|
|
7439
7880
|
type: "button",
|
|
7440
7881
|
class: "xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
|
|
7441
|
-
onClick: _cache[2] || (_cache[2] = ($event) =>
|
|
7882
|
+
onClick: _cache[2] || (_cache[2] = ($event) => updateModelValue3(false)),
|
|
7442
7883
|
ref: "cancelButtonRef"
|
|
7443
7884
|
}, " Cancel ", 512)
|
|
7444
7885
|
])) : createCommentVNode("", true),
|
|
@@ -7457,11 +7898,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7457
7898
|
};
|
|
7458
7899
|
}
|
|
7459
7900
|
});
|
|
7460
|
-
const _hoisted_1$
|
|
7901
|
+
const _hoisted_1$g = {
|
|
7461
7902
|
key: 0,
|
|
7462
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"
|
|
7463
7904
|
};
|
|
7464
|
-
const _hoisted_2$
|
|
7905
|
+
const _hoisted_2$d = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
|
|
7465
7906
|
/* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
|
|
7466
7907
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
7467
7908
|
width: "129px",
|
|
@@ -7539,7 +7980,7 @@ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
|
|
|
7539
7980
|
])
|
|
7540
7981
|
])
|
|
7541
7982
|
], -1);
|
|
7542
|
-
const _sfc_main$
|
|
7983
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
7543
7984
|
setup(__props) {
|
|
7544
7985
|
const idx = ref(0);
|
|
7545
7986
|
const loading = ref(false);
|
|
@@ -7581,9 +8022,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7581
8022
|
});
|
|
7582
8023
|
});
|
|
7583
8024
|
return (_ctx, _cache) => {
|
|
7584
|
-
return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8025
|
+
return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
7585
8026
|
createElementVNode("div", null, [
|
|
7586
|
-
_hoisted_2$
|
|
8027
|
+
_hoisted_2$d,
|
|
7587
8028
|
withDirectives(createElementVNode("div", null, [
|
|
7588
8029
|
createVNode(Transition, {
|
|
7589
8030
|
appear: "",
|
|
@@ -7611,11 +8052,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7611
8052
|
};
|
|
7612
8053
|
}
|
|
7613
8054
|
});
|
|
7614
|
-
const _hoisted_1$
|
|
7615
|
-
const _hoisted_2$
|
|
7616
|
-
const _hoisted_3$
|
|
7617
|
-
const _hoisted_4$
|
|
7618
|
-
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" };
|
|
7619
8060
|
const _hoisted_6$8 = ["src"];
|
|
7620
8061
|
const _hoisted_7$7 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
|
|
7621
8062
|
const _hoisted_8$5 = { class: "px-2 space-y-1" };
|
|
@@ -7643,7 +8084,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
|
|
|
7643
8084
|
const _hoisted_27 = ["href"];
|
|
7644
8085
|
const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
|
|
7645
8086
|
const _hoisted_29 = { class: "mx-auto" };
|
|
7646
|
-
const _sfc_main$
|
|
8087
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
7647
8088
|
props: {
|
|
7648
8089
|
activeURL: { default: "" },
|
|
7649
8090
|
iconURL: null,
|
|
@@ -7658,7 +8099,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7658
8099
|
};
|
|
7659
8100
|
return (_ctx, _cache) => {
|
|
7660
8101
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7661
|
-
createElementVNode("div", _hoisted_1$
|
|
8102
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
7662
8103
|
createVNode(unref(TransitionRoot), {
|
|
7663
8104
|
as: "template",
|
|
7664
8105
|
show: sidebarOpen.value
|
|
@@ -7696,7 +8137,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7696
8137
|
"leave-to": "-translate-x-full"
|
|
7697
8138
|
}, {
|
|
7698
8139
|
default: withCtx(() => [
|
|
7699
|
-
createElementVNode("div", _hoisted_2$
|
|
8140
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
7700
8141
|
createVNode(unref(TransitionChild), {
|
|
7701
8142
|
as: "template",
|
|
7702
8143
|
enter: "ease-in-out duration-300",
|
|
@@ -7707,12 +8148,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7707
8148
|
"leave-to": "opacity-0"
|
|
7708
8149
|
}, {
|
|
7709
8150
|
default: withCtx(() => [
|
|
7710
|
-
createElementVNode("div", _hoisted_3$
|
|
8151
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
7711
8152
|
createElementVNode("button", {
|
|
7712
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",
|
|
7713
8154
|
onClick: _cache[0] || (_cache[0] = ($event) => sidebarOpen.value = false)
|
|
7714
8155
|
}, [
|
|
7715
|
-
_hoisted_4$
|
|
8156
|
+
_hoisted_4$a,
|
|
7716
8157
|
createVNode(unref(render), {
|
|
7717
8158
|
class: "h-6 w-6 text-white",
|
|
7718
8159
|
"aria-hidden": "true"
|
|
@@ -7722,7 +8163,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7722
8163
|
]),
|
|
7723
8164
|
_: 1
|
|
7724
8165
|
}),
|
|
7725
|
-
createElementVNode("div", _hoisted_5$
|
|
8166
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
7726
8167
|
createElementVNode("img", {
|
|
7727
8168
|
class: "w-auto h-12",
|
|
7728
8169
|
src: __props.iconURL,
|
|
@@ -7883,8 +8324,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7883
8324
|
])
|
|
7884
8325
|
])
|
|
7885
8326
|
]),
|
|
7886
|
-
createVNode(_sfc_main$
|
|
7887
|
-
createVNode(_sfc_main$
|
|
8327
|
+
createVNode(_sfc_main$k),
|
|
8328
|
+
createVNode(_sfc_main$i)
|
|
7888
8329
|
], 64);
|
|
7889
8330
|
};
|
|
7890
8331
|
}
|
|
@@ -7899,7 +8340,7 @@ function throttle(func, timeout = 100) {
|
|
|
7899
8340
|
}
|
|
7900
8341
|
};
|
|
7901
8342
|
}
|
|
7902
|
-
const _sfc_main$
|
|
8343
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
7903
8344
|
props: {
|
|
7904
8345
|
as: { default: "div" },
|
|
7905
8346
|
position: { default: "auto" }
|
|
@@ -8095,26 +8536,26 @@ var _export_sfc = (sfc, props) => {
|
|
|
8095
8536
|
}
|
|
8096
8537
|
return target;
|
|
8097
8538
|
};
|
|
8098
|
-
const _sfc_main$
|
|
8099
|
-
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" };
|
|
8100
8541
|
function _sfc_render(_ctx, _cache) {
|
|
8101
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8542
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
8102
8543
|
renderSlot(_ctx.$slots, "default")
|
|
8103
8544
|
]);
|
|
8104
8545
|
}
|
|
8105
|
-
var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8106
|
-
const _hoisted_1$
|
|
8107
|
-
const _hoisted_2$
|
|
8108
|
-
const _hoisted_3$
|
|
8109
|
-
const _hoisted_4$
|
|
8110
|
-
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" };
|
|
8111
8552
|
const _hoisted_6$7 = { class: "flex items-center justify-between" };
|
|
8112
8553
|
const _hoisted_7$6 = { class: "ml-3 h-7 flex items-center" };
|
|
8113
8554
|
const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
|
|
8114
8555
|
const _hoisted_9$4 = { class: "mt-1" };
|
|
8115
8556
|
const _hoisted_10$4 = ["textContent"];
|
|
8116
8557
|
const _hoisted_11$3 = { class: "relative flex-1 py-6 px-4 sm:px-6" };
|
|
8117
|
-
const _sfc_main$
|
|
8558
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
8118
8559
|
props: {
|
|
8119
8560
|
header: null,
|
|
8120
8561
|
description: null,
|
|
@@ -8143,9 +8584,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8143
8584
|
open: __props.modelValue
|
|
8144
8585
|
}, {
|
|
8145
8586
|
default: withCtx(() => [
|
|
8146
|
-
createElementVNode("div", _hoisted_1$
|
|
8587
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
8147
8588
|
createVNode(unref(DialogOverlay), { class: "absolute inset-0" }),
|
|
8148
|
-
createElementVNode("div", _hoisted_2$
|
|
8589
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
8149
8590
|
createVNode(unref(TransitionChild), {
|
|
8150
8591
|
as: "template",
|
|
8151
8592
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -8156,9 +8597,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8156
8597
|
"leave-to": "translate-x-full"
|
|
8157
8598
|
}, {
|
|
8158
8599
|
default: withCtx(() => [
|
|
8159
|
-
createElementVNode("div", _hoisted_3$
|
|
8160
|
-
createElementVNode("div", _hoisted_4$
|
|
8161
|
-
createElementVNode("div", _hoisted_5$
|
|
8600
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
8601
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
8602
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
8162
8603
|
createElementVNode("div", _hoisted_6$7, [
|
|
8163
8604
|
createVNode(unref(DialogTitle), {
|
|
8164
8605
|
as: "h3",
|
|
@@ -8205,28 +8646,28 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8205
8646
|
};
|
|
8206
8647
|
}
|
|
8207
8648
|
});
|
|
8208
|
-
const _hoisted_1$
|
|
8209
|
-
const _hoisted_2$
|
|
8210
|
-
const _hoisted_3$
|
|
8211
|
-
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({
|
|
8212
8653
|
props: {
|
|
8213
8654
|
as: { default: "span" },
|
|
8214
8655
|
position: { default: "auto" }
|
|
8215
8656
|
},
|
|
8216
8657
|
setup(__props) {
|
|
8217
8658
|
return (_ctx, _cache) => {
|
|
8218
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8659
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
8219
8660
|
position: __props.position,
|
|
8220
8661
|
as: __props.as
|
|
8221
8662
|
}, {
|
|
8222
8663
|
button: withCtx(() => [
|
|
8223
|
-
createElementVNode("div", _hoisted_1$
|
|
8664
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
8224
8665
|
createVNode(unref(render$4)),
|
|
8225
|
-
_hoisted_2$
|
|
8666
|
+
_hoisted_2$a
|
|
8226
8667
|
])
|
|
8227
8668
|
]),
|
|
8228
8669
|
default: withCtx(() => [
|
|
8229
|
-
createElementVNode("div", _hoisted_3$
|
|
8670
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
8230
8671
|
renderSlot(_ctx.$slots, "default")
|
|
8231
8672
|
])
|
|
8232
8673
|
]),
|
|
@@ -8235,11 +8676,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8235
8676
|
};
|
|
8236
8677
|
}
|
|
8237
8678
|
});
|
|
8238
|
-
const _hoisted_1$
|
|
8239
|
-
const _hoisted_2$
|
|
8240
|
-
const _hoisted_3$
|
|
8241
|
-
const _hoisted_4$
|
|
8242
|
-
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" };
|
|
8243
8684
|
const _hoisted_6$6 = ["src"];
|
|
8244
8685
|
const _hoisted_7$5 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
|
|
8245
8686
|
const _hoisted_8$3 = ["href", "aria-current"];
|
|
@@ -8260,7 +8701,7 @@ const _hoisted_22$1 = { class: "mt-3 space-y-1" };
|
|
|
8260
8701
|
const _hoisted_23$1 = ["href"];
|
|
8261
8702
|
const _hoisted_24$1 = { class: "mx-auto sm:px-6 lg:px-8" };
|
|
8262
8703
|
const _hoisted_25 = { class: "px-4 py-8 sm:px-0" };
|
|
8263
|
-
const _sfc_main$
|
|
8704
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
8264
8705
|
props: {
|
|
8265
8706
|
activeURL: { default: "" },
|
|
8266
8707
|
currentUser: null,
|
|
@@ -8275,16 +8716,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8275
8716
|
};
|
|
8276
8717
|
return (_ctx, _cache) => {
|
|
8277
8718
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
8278
|
-
createElementVNode("div", _hoisted_1$
|
|
8719
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
8279
8720
|
createVNode(unref(Disclosure), {
|
|
8280
8721
|
as: "nav",
|
|
8281
8722
|
class: "bg-white shadow-sm"
|
|
8282
8723
|
}, {
|
|
8283
8724
|
default: withCtx(({ open }) => [
|
|
8284
|
-
createElementVNode("div", _hoisted_2$
|
|
8285
|
-
createElementVNode("div", _hoisted_3$
|
|
8286
|
-
createElementVNode("div", _hoisted_4$
|
|
8287
|
-
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, [
|
|
8288
8729
|
createElementVNode("img", {
|
|
8289
8730
|
class: "block h-8 w-auto",
|
|
8290
8731
|
src: __props.iconURL,
|
|
@@ -8315,7 +8756,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8315
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" }, {
|
|
8316
8757
|
default: withCtx(() => [
|
|
8317
8758
|
_hoisted_10$3,
|
|
8318
|
-
createVNode(unref(render$
|
|
8759
|
+
createVNode(unref(render$117), { class: "text-gray-500 h-8 w-8 rounded-full" })
|
|
8319
8760
|
]),
|
|
8320
8761
|
_: 1
|
|
8321
8762
|
})
|
|
@@ -8394,7 +8835,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8394
8835
|
createElementVNode("div", _hoisted_16$1, [
|
|
8395
8836
|
createElementVNode("div", _hoisted_17$1, [
|
|
8396
8837
|
createElementVNode("div", _hoisted_18$1, [
|
|
8397
|
-
createVNode(unref(render$
|
|
8838
|
+
createVNode(unref(render$117), { class: "text-gray-500 h-10 w-10 rounded-full" })
|
|
8398
8839
|
]),
|
|
8399
8840
|
createElementVNode("div", _hoisted_19$1, [
|
|
8400
8841
|
__props.currentUser.name ? (openBlock(), createElementBlock("div", {
|
|
@@ -8433,23 +8874,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8433
8874
|
])
|
|
8434
8875
|
])
|
|
8435
8876
|
]),
|
|
8436
|
-
createVNode(_sfc_main$
|
|
8437
|
-
createVNode(_sfc_main$
|
|
8877
|
+
createVNode(_sfc_main$k),
|
|
8878
|
+
createVNode(_sfc_main$i)
|
|
8438
8879
|
], 64);
|
|
8439
8880
|
};
|
|
8440
8881
|
}
|
|
8441
8882
|
});
|
|
8442
|
-
const _hoisted_1$
|
|
8443
|
-
const _hoisted_2$
|
|
8444
|
-
const _hoisted_3$
|
|
8445
|
-
const _hoisted_4$
|
|
8446
|
-
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" };
|
|
8447
8888
|
const _hoisted_6$5 = ["textContent"];
|
|
8448
8889
|
const _hoisted_7$4 = { class: "bg-white divide-y divide-gray-200" };
|
|
8449
8890
|
const _hoisted_8$2 = ["textContent"];
|
|
8450
8891
|
const _hoisted_9$2 = { key: 0 };
|
|
8451
8892
|
const _hoisted_10$2 = ["colspan"];
|
|
8452
|
-
const _sfc_main$
|
|
8893
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
8453
8894
|
props: {
|
|
8454
8895
|
tableData: null
|
|
8455
8896
|
},
|
|
@@ -8465,11 +8906,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8465
8906
|
return "";
|
|
8466
8907
|
};
|
|
8467
8908
|
return (_ctx, _cache) => {
|
|
8468
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8469
|
-
createElementVNode("div", _hoisted_2$
|
|
8470
|
-
createElementVNode("div", _hoisted_3$
|
|
8471
|
-
createElementVNode("div", _hoisted_4$
|
|
8472
|
-
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, [
|
|
8473
8914
|
createElementVNode("thead", null, [
|
|
8474
8915
|
createElementVNode("tr", null, [
|
|
8475
8916
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.columns, (col, idx) => {
|
|
@@ -8519,14 +8960,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8519
8960
|
};
|
|
8520
8961
|
}
|
|
8521
8962
|
});
|
|
8522
|
-
const _hoisted_1$
|
|
8523
|
-
const _hoisted_2$
|
|
8524
|
-
const _hoisted_3$
|
|
8525
|
-
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 = {
|
|
8526
8967
|
key: 0,
|
|
8527
8968
|
class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
|
|
8528
8969
|
};
|
|
8529
|
-
const _hoisted_5$
|
|
8970
|
+
const _hoisted_5$5 = {
|
|
8530
8971
|
key: 1,
|
|
8531
8972
|
class: "relative flex items-center justify-center"
|
|
8532
8973
|
};
|
|
@@ -8554,7 +8995,7 @@ const _hoisted_11$1 = {
|
|
|
8554
8995
|
const _hoisted_12$1 = ["textContent"];
|
|
8555
8996
|
const _hoisted_13$1 = { class: "ml-3 inline-flex rounded-md shadow-sm" };
|
|
8556
8997
|
const _hoisted_14$1 = ["textContent"];
|
|
8557
|
-
const _sfc_main$
|
|
8998
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
8558
8999
|
props: {
|
|
8559
9000
|
hideActions: { type: Boolean, default: false },
|
|
8560
9001
|
hidePrevious: { type: Boolean, default: false },
|
|
@@ -8573,12 +9014,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
8573
9014
|
};
|
|
8574
9015
|
return (_ctx, _cache) => {
|
|
8575
9016
|
return openBlock(), createElementBlock("div", null, [
|
|
8576
|
-
createElementVNode("nav", _hoisted_1$
|
|
8577
|
-
createElementVNode("p", _hoisted_2$
|
|
8578
|
-
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, [
|
|
8579
9020
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.total, (index) => {
|
|
8580
9021
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
8581
|
-
__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))
|
|
8582
9023
|
]);
|
|
8583
9024
|
}), 128))
|
|
8584
9025
|
])
|
|
@@ -8605,17 +9046,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
8605
9046
|
};
|
|
8606
9047
|
}
|
|
8607
9048
|
});
|
|
8608
|
-
const _hoisted_1$
|
|
8609
|
-
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 = {
|
|
8610
9051
|
key: 0,
|
|
8611
9052
|
class: "w-full max-w-lg lg:max-w-xs"
|
|
8612
9053
|
};
|
|
8613
|
-
const _hoisted_3$
|
|
9054
|
+
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("label", {
|
|
8614
9055
|
for: "search",
|
|
8615
9056
|
class: "sr-only"
|
|
8616
9057
|
}, "Search", -1);
|
|
8617
|
-
const _hoisted_4$
|
|
8618
|
-
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" }, [
|
|
8619
9060
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
8620
9061
|
class: "w-5 h-5 text-gray-400",
|
|
8621
9062
|
fill: "currentColor",
|
|
@@ -8688,7 +9129,7 @@ const _hoisted_21 = ["onClick"];
|
|
|
8688
9129
|
const _hoisted_22 = ["textContent"];
|
|
8689
9130
|
const _hoisted_23 = { key: 0 };
|
|
8690
9131
|
const _hoisted_24 = ["colspan"];
|
|
8691
|
-
const _sfc_main$
|
|
9132
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
8692
9133
|
props: {
|
|
8693
9134
|
clickable: { type: Boolean, default: false },
|
|
8694
9135
|
loader: { type: Boolean, default: true },
|
|
@@ -8772,11 +9213,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8772
9213
|
loadAndRender();
|
|
8773
9214
|
return (_ctx, _cache) => {
|
|
8774
9215
|
return openBlock(), createElementBlock("div", null, [
|
|
8775
|
-
createElementVNode("div", _hoisted_1$
|
|
8776
|
-
__props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8777
|
-
_hoisted_3$
|
|
8778
|
-
createElementVNode("div", _hoisted_4$
|
|
8779
|
-
_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,
|
|
8780
9221
|
withDirectives(createElementVNode("input", {
|
|
8781
9222
|
class: "pl-10",
|
|
8782
9223
|
type: "search",
|
|
@@ -8794,7 +9235,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8794
9235
|
])
|
|
8795
9236
|
])) : createCommentVNode("", true),
|
|
8796
9237
|
__props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
8797
|
-
createVNode(_sfc_main$
|
|
9238
|
+
createVNode(_sfc_main$q, {
|
|
8798
9239
|
modelValue: dateRange.value,
|
|
8799
9240
|
"onUpdate:modelValue": [
|
|
8800
9241
|
_cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
|
|
@@ -8859,7 +9300,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8859
9300
|
])
|
|
8860
9301
|
])
|
|
8861
9302
|
]),
|
|
8862
|
-
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$
|
|
9303
|
+
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8863
9304
|
key: 0,
|
|
8864
9305
|
modelValue: pagination.value,
|
|
8865
9306
|
"onUpdate:modelValue": [
|
|
@@ -8871,13 +9312,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8871
9312
|
};
|
|
8872
9313
|
}
|
|
8873
9314
|
});
|
|
8874
|
-
const _hoisted_1$
|
|
9315
|
+
const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("label", {
|
|
8875
9316
|
for: "tabs",
|
|
8876
9317
|
class: "sr-only"
|
|
8877
9318
|
}, "Select a tab", -1);
|
|
8878
|
-
const _hoisted_2$
|
|
8879
|
-
const _hoisted_3$
|
|
8880
|
-
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({
|
|
8881
9322
|
props: {
|
|
8882
9323
|
modelValue: null,
|
|
8883
9324
|
pillDesign: { type: Boolean, default: false },
|
|
@@ -8886,7 +9327,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8886
9327
|
emits: ["update:modelValue"],
|
|
8887
9328
|
setup(__props, { emit }) {
|
|
8888
9329
|
const props = __props;
|
|
8889
|
-
const
|
|
9330
|
+
const updateModelValue3 = (modelValue) => {
|
|
8890
9331
|
emit("update:modelValue", modelValue);
|
|
8891
9332
|
};
|
|
8892
9333
|
const classes = (currentTab, pastFirstTab) => {
|
|
@@ -8919,15 +9360,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8919
9360
|
createElementVNode("div", {
|
|
8920
9361
|
class: normalizeClass(["sm:hidden", { "mb-4": __props.pillDesign }])
|
|
8921
9362
|
}, [
|
|
8922
|
-
_hoisted_1$
|
|
9363
|
+
_hoisted_1$7,
|
|
8923
9364
|
createVNode(_component_Select, {
|
|
8924
9365
|
name: "tabs",
|
|
8925
9366
|
modelValue: __props.modelValue,
|
|
8926
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
9367
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => updateModelValue3($event)),
|
|
8927
9368
|
options: __props.tabs
|
|
8928
9369
|
}, null, 8, ["modelValue", "options"])
|
|
8929
9370
|
], 2),
|
|
8930
|
-
createElementVNode("div", _hoisted_2$
|
|
9371
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
8931
9372
|
createElementVNode("div", {
|
|
8932
9373
|
class: normalizeClass({ "border-b border-gray-200": unref(notPillDesign) })
|
|
8933
9374
|
}, [
|
|
@@ -8940,8 +9381,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8940
9381
|
class: normalizeClass(classes(tab.value, idx > 0)),
|
|
8941
9382
|
key: idx,
|
|
8942
9383
|
textContent: toDisplayString(tab.label),
|
|
8943
|
-
onClick: withModifiers(($event) =>
|
|
8944
|
-
}, null, 10, _hoisted_3$
|
|
9384
|
+
onClick: withModifiers(($event) => updateModelValue3(tab.value), ["prevent"])
|
|
9385
|
+
}, null, 10, _hoisted_3$5);
|
|
8945
9386
|
}), 128))
|
|
8946
9387
|
], 2)
|
|
8947
9388
|
], 2)
|
|
@@ -8950,8 +9391,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8950
9391
|
};
|
|
8951
9392
|
}
|
|
8952
9393
|
});
|
|
8953
|
-
const _hoisted_1$
|
|
8954
|
-
const _sfc_main$
|
|
9394
|
+
const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
|
|
9395
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
8955
9396
|
props: {
|
|
8956
9397
|
modelValue: { type: Boolean, default: false }
|
|
8957
9398
|
},
|
|
@@ -8967,7 +9408,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8967
9408
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event))
|
|
8968
9409
|
}, {
|
|
8969
9410
|
default: withCtx(() => [
|
|
8970
|
-
_hoisted_1$
|
|
9411
|
+
_hoisted_1$6,
|
|
8971
9412
|
createElementVNode("span", {
|
|
8972
9413
|
"aria-hidden": "true",
|
|
8973
9414
|
class: normalizeClass([
|
|
@@ -8981,11 +9422,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8981
9422
|
};
|
|
8982
9423
|
}
|
|
8983
9424
|
});
|
|
8984
|
-
const _hoisted_1$
|
|
8985
|
-
const _hoisted_2$
|
|
8986
|
-
const _hoisted_3$
|
|
8987
|
-
const _hoisted_4$
|
|
8988
|
-
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({
|
|
8989
9430
|
props: {
|
|
8990
9431
|
label: { default: "" },
|
|
8991
9432
|
help: { default: "" },
|
|
@@ -8996,8 +9437,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
8996
9437
|
const attrs = useAttrs();
|
|
8997
9438
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
8998
9439
|
return (_ctx, _cache) => {
|
|
8999
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
9000
|
-
createElementVNode("div", _hoisted_2$
|
|
9440
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
9441
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
9001
9442
|
createElementVNode("input", mergeProps({
|
|
9002
9443
|
id: unref(uuid),
|
|
9003
9444
|
"aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
|
|
@@ -9009,17 +9450,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
9009
9450
|
onChange: ($event) => {
|
|
9010
9451
|
emits("update:modelValue", $event.target.checked);
|
|
9011
9452
|
}
|
|
9012
|
-
}, _ctx.$attrs)), null, 16, _hoisted_3$
|
|
9453
|
+
}, _ctx.$attrs)), null, 16, _hoisted_3$4)
|
|
9013
9454
|
]),
|
|
9014
|
-
createElementVNode("div", _hoisted_4$
|
|
9015
|
-
createVNode(_sfc_main$
|
|
9455
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
9456
|
+
createVNode(_sfc_main$t, {
|
|
9016
9457
|
class: "mt-auto",
|
|
9017
9458
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9018
9459
|
id: `${unref(uuid)}-label`,
|
|
9019
9460
|
for: unref(uuid),
|
|
9020
9461
|
label: __props.label
|
|
9021
9462
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9022
|
-
createVNode(_sfc_main$
|
|
9463
|
+
createVNode(_sfc_main$s, {
|
|
9023
9464
|
class: "-mt-1",
|
|
9024
9465
|
id: `${unref(uuid)}-help`,
|
|
9025
9466
|
text: __props.help
|
|
@@ -9040,28 +9481,34 @@ function hasSlotContent(slot, slotProps = {}) {
|
|
|
9040
9481
|
return vnode.type !== Text || typeof vnode.children === "string" && vnode.children.trim() !== "";
|
|
9041
9482
|
});
|
|
9042
9483
|
}
|
|
9043
|
-
const _sfc_main$
|
|
9484
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
9485
|
+
props: {
|
|
9486
|
+
tag: { default: "legend" }
|
|
9487
|
+
},
|
|
9044
9488
|
setup(__props) {
|
|
9045
9489
|
return (_ctx, _cache) => {
|
|
9046
|
-
return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(),
|
|
9047
|
-
class: "text-
|
|
9048
|
-
}))),
|
|
9049
|
-
|
|
9050
|
-
|
|
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);
|
|
9051
9498
|
};
|
|
9052
9499
|
}
|
|
9053
9500
|
});
|
|
9054
|
-
const _hoisted_1$
|
|
9055
|
-
const _hoisted_2$
|
|
9501
|
+
const _hoisted_1$4 = ["aria-labelledby", "aria-describedby"];
|
|
9502
|
+
const _hoisted_2$3 = {
|
|
9056
9503
|
key: 0,
|
|
9057
9504
|
class: "space-y-0.5"
|
|
9058
9505
|
};
|
|
9059
|
-
const _hoisted_3$
|
|
9060
|
-
const _hoisted_4$
|
|
9061
|
-
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" };
|
|
9062
9509
|
const _hoisted_6$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
|
|
9063
9510
|
const _hoisted_7$1 = { class: "ml-3" };
|
|
9064
|
-
const _sfc_main$
|
|
9511
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
9065
9512
|
props: {
|
|
9066
9513
|
options: null,
|
|
9067
9514
|
help: { default: "" },
|
|
@@ -9079,13 +9526,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9079
9526
|
return props.legend !== "" || slots.legend !== void 0;
|
|
9080
9527
|
});
|
|
9081
9528
|
const onChange = (checked, val) => {
|
|
9082
|
-
let
|
|
9529
|
+
let updateModelValue3 = [...props.modelValue];
|
|
9083
9530
|
if (checked) {
|
|
9084
|
-
|
|
9531
|
+
updateModelValue3.push(val);
|
|
9085
9532
|
} else {
|
|
9086
|
-
|
|
9533
|
+
updateModelValue3.splice(updateModelValue3.indexOf(val), 1);
|
|
9087
9534
|
}
|
|
9088
|
-
emit("update:modelValue",
|
|
9535
|
+
emit("update:modelValue", updateModelValue3);
|
|
9089
9536
|
};
|
|
9090
9537
|
return (_ctx, _cache) => {
|
|
9091
9538
|
return openBlock(), createElementBlock("fieldset", {
|
|
@@ -9093,23 +9540,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9093
9540
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9094
9541
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9095
9542
|
}, [
|
|
9096
|
-
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9097
|
-
createVNode(_sfc_main$
|
|
9543
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
9544
|
+
createVNode(_sfc_main$5, {
|
|
9098
9545
|
id: `${unref(uuid)}-legend`
|
|
9099
9546
|
}, {
|
|
9100
9547
|
default: withCtx(() => [
|
|
9101
|
-
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9548
|
+
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9102
9549
|
_ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
|
|
9103
9550
|
]),
|
|
9104
9551
|
_: 3
|
|
9105
9552
|
}, 8, ["id"]),
|
|
9106
|
-
createVNode(_sfc_main$
|
|
9553
|
+
createVNode(_sfc_main$s, {
|
|
9107
9554
|
tag: "p",
|
|
9108
9555
|
text: __props.help,
|
|
9109
9556
|
id: `${unref(uuid)}-help`
|
|
9110
9557
|
}, null, 8, ["text", "id"])
|
|
9111
9558
|
])) : createCommentVNode("", true),
|
|
9112
|
-
createElementVNode("div", _hoisted_4$
|
|
9559
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
9113
9560
|
createElementVNode("div", {
|
|
9114
9561
|
class: normalizeClass(["grid gap-4", {
|
|
9115
9562
|
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
@@ -9123,7 +9570,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9123
9570
|
key: option.value,
|
|
9124
9571
|
class: "flex items-start"
|
|
9125
9572
|
}, [
|
|
9126
|
-
createElementVNode("div", _hoisted_5$
|
|
9573
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
9127
9574
|
createElementVNode("input", mergeProps({
|
|
9128
9575
|
id: `${unref(uuid)}-${index}`,
|
|
9129
9576
|
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
@@ -9139,14 +9586,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9139
9586
|
}, _ctx.$attrs)), null, 16, _hoisted_6$2)
|
|
9140
9587
|
]),
|
|
9141
9588
|
createElementVNode("div", _hoisted_7$1, [
|
|
9142
|
-
createVNode(_sfc_main$
|
|
9589
|
+
createVNode(_sfc_main$t, {
|
|
9143
9590
|
class: "mt-auto",
|
|
9144
9591
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9145
9592
|
id: `${unref(uuid)}-${index}-label`,
|
|
9146
9593
|
for: `${unref(uuid)}-${index}`,
|
|
9147
9594
|
label: option.label
|
|
9148
9595
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9149
|
-
createVNode(_sfc_main$
|
|
9596
|
+
createVNode(_sfc_main$s, {
|
|
9150
9597
|
class: "-mt-1",
|
|
9151
9598
|
id: `${unref(uuid)}-${index}-help`,
|
|
9152
9599
|
text: option.help
|
|
@@ -9156,21 +9603,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9156
9603
|
}), 128))
|
|
9157
9604
|
], 2)
|
|
9158
9605
|
])
|
|
9159
|
-
], 8, _hoisted_1$
|
|
9606
|
+
], 8, _hoisted_1$4);
|
|
9160
9607
|
};
|
|
9161
9608
|
}
|
|
9162
9609
|
});
|
|
9163
|
-
const _hoisted_1$
|
|
9164
|
-
const _hoisted_2$
|
|
9610
|
+
const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
|
|
9611
|
+
const _hoisted_2$2 = {
|
|
9165
9612
|
key: 0,
|
|
9166
9613
|
class: "space-y-0.5"
|
|
9167
9614
|
};
|
|
9168
|
-
const _hoisted_3$
|
|
9169
|
-
const _hoisted_4$
|
|
9170
|
-
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" };
|
|
9171
9618
|
const _hoisted_6$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
|
|
9172
9619
|
const _hoisted_7 = { class: "ml-3" };
|
|
9173
|
-
const _sfc_main$
|
|
9620
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
9174
9621
|
props: {
|
|
9175
9622
|
options: null,
|
|
9176
9623
|
help: { default: "" },
|
|
@@ -9193,23 +9640,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9193
9640
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9194
9641
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9195
9642
|
}, [
|
|
9196
|
-
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9197
|
-
createVNode(_sfc_main$
|
|
9643
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
9644
|
+
createVNode(_sfc_main$5, {
|
|
9198
9645
|
id: `${unref(uuid)}-legend`
|
|
9199
9646
|
}, {
|
|
9200
9647
|
default: withCtx(() => [
|
|
9201
|
-
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9648
|
+
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9202
9649
|
_ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
|
|
9203
9650
|
]),
|
|
9204
9651
|
_: 3
|
|
9205
9652
|
}, 8, ["id"]),
|
|
9206
|
-
createVNode(_sfc_main$
|
|
9653
|
+
createVNode(_sfc_main$s, {
|
|
9207
9654
|
tag: "p",
|
|
9208
9655
|
text: __props.help,
|
|
9209
9656
|
id: `${unref(uuid)}-help`
|
|
9210
9657
|
}, null, 8, ["text", "id"])
|
|
9211
9658
|
])) : createCommentVNode("", true),
|
|
9212
|
-
createElementVNode("div", _hoisted_4$
|
|
9659
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
9213
9660
|
createElementVNode("div", {
|
|
9214
9661
|
class: normalizeClass(["grid gap-4", {
|
|
9215
9662
|
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
@@ -9223,7 +9670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9223
9670
|
key: option.value,
|
|
9224
9671
|
class: "flex items-start"
|
|
9225
9672
|
}, [
|
|
9226
|
-
createElementVNode("div", _hoisted_5$
|
|
9673
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
9227
9674
|
createElementVNode("input", mergeProps({
|
|
9228
9675
|
"aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
|
|
9229
9676
|
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
@@ -9241,14 +9688,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9241
9688
|
}, _ctx.$attrs)), null, 16, _hoisted_6$1)
|
|
9242
9689
|
]),
|
|
9243
9690
|
createElementVNode("div", _hoisted_7, [
|
|
9244
|
-
createVNode(_sfc_main$
|
|
9691
|
+
createVNode(_sfc_main$t, {
|
|
9245
9692
|
class: "mt-auto",
|
|
9246
9693
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9247
9694
|
id: `${unref(uuid)}-${index}-label`,
|
|
9248
9695
|
for: `${unref(uuid)}-${index}`,
|
|
9249
9696
|
label: option.label
|
|
9250
9697
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9251
|
-
createVNode(_sfc_main$
|
|
9698
|
+
createVNode(_sfc_main$s, {
|
|
9252
9699
|
class: "-mt-1",
|
|
9253
9700
|
id: `${unref(uuid)}-${index}-help`,
|
|
9254
9701
|
text: option.help
|
|
@@ -9258,7 +9705,181 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9258
9705
|
}), 128))
|
|
9259
9706
|
], 2)
|
|
9260
9707
|
])
|
|
9261
|
-
], 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
|
+
const _component_InputHelp = resolveComponent("InputHelp");
|
|
9751
|
+
const _component_InputLabel = resolveComponent("InputLabel");
|
|
9752
|
+
return openBlock(), createBlock(unref(RadioGroup), {
|
|
9753
|
+
modelValue: unref(checked),
|
|
9754
|
+
"onUpdate:modelValue": onChange,
|
|
9755
|
+
disabled: typeof unref(attrs).disabled === "boolean" ? unref(attrs).disabled : false,
|
|
9756
|
+
"aria-invalid": invalid.value === true ? "true" : null,
|
|
9757
|
+
"aria-errormessage": invalid.value === true ? `error-${unref(uuid)}` : null
|
|
9758
|
+
}, {
|
|
9759
|
+
default: withCtx(() => [
|
|
9760
|
+
__props.legend ? (openBlock(), createBlock(unref(RadioGroupLabel), {
|
|
9761
|
+
key: 0,
|
|
9762
|
+
class: "block"
|
|
9763
|
+
}, {
|
|
9764
|
+
default: withCtx(() => [
|
|
9765
|
+
createVNode(_sfc_main$5, { tag: "div" }, {
|
|
9766
|
+
default: withCtx(() => [
|
|
9767
|
+
createTextVNode(toDisplayString(__props.legend), 1)
|
|
9768
|
+
]),
|
|
9769
|
+
_: 1
|
|
9770
|
+
})
|
|
9771
|
+
]),
|
|
9772
|
+
_: 1
|
|
9773
|
+
})) : createCommentVNode("", true),
|
|
9774
|
+
__props.help ? (openBlock(), createBlock(unref(RadioGroupDescription), { key: 1 }, {
|
|
9775
|
+
default: withCtx(() => [
|
|
9776
|
+
createVNode(_component_InputHelp, { text: __props.help }, null, 8, ["text"])
|
|
9777
|
+
]),
|
|
9778
|
+
_: 1
|
|
9779
|
+
})) : createCommentVNode("", true),
|
|
9780
|
+
invalid.value === true ? (openBlock(), createElementBlock("div", {
|
|
9781
|
+
key: 2,
|
|
9782
|
+
id: `error-${unref(uuid)}`,
|
|
9783
|
+
class: "sr-only"
|
|
9784
|
+
}, " Please select one of these options. ", 8, _hoisted_1$2)) : createCommentVNode("", true),
|
|
9785
|
+
createElementVNode("div", {
|
|
9786
|
+
class: normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative", {
|
|
9787
|
+
"sm:grid-cols-2": __props.columns === 2,
|
|
9788
|
+
"sm:grid-cols-3": __props.columns === 3
|
|
9789
|
+
}])
|
|
9790
|
+
}, [
|
|
9791
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
9792
|
+
return openBlock(), createBlock(unref(RadioGroupOption), {
|
|
9793
|
+
as: "template",
|
|
9794
|
+
disabled: (option == null ? void 0 : option.disabled) ? option.disabled : false,
|
|
9795
|
+
key: option.value,
|
|
9796
|
+
value: option.value
|
|
9797
|
+
}, {
|
|
9798
|
+
default: withCtx(({ active, checked: checked2, disabled }) => [
|
|
9799
|
+
createElementVNode("div", {
|
|
9800
|
+
class: normalizeClass([
|
|
9801
|
+
checked2 ? "border-transparent" : "border-gray-300",
|
|
9802
|
+
active ? "border-blue-500 ring-2 ring-blue-500" : "",
|
|
9803
|
+
"relative bg-white border rounded-lg shadow-sm p-4 flex cursor-pointer focus:outline-none",
|
|
9804
|
+
disabled ? "opacity-75" : ""
|
|
9805
|
+
])
|
|
9806
|
+
}, [
|
|
9807
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
9808
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
9809
|
+
createVNode(unref(RadioGroupLabel), { as: "div" }, {
|
|
9810
|
+
default: withCtx(() => [
|
|
9811
|
+
createVNode(_component_InputLabel, {
|
|
9812
|
+
tag: "div",
|
|
9813
|
+
class: "mt-auto mb-auto",
|
|
9814
|
+
label: option.label
|
|
9815
|
+
}, null, 8, ["label"])
|
|
9816
|
+
]),
|
|
9817
|
+
_: 2
|
|
9818
|
+
}, 1024),
|
|
9819
|
+
option.help ? (openBlock(), createBlock(unref(RadioGroupDescription), {
|
|
9820
|
+
key: 0,
|
|
9821
|
+
as: "div"
|
|
9822
|
+
}, {
|
|
9823
|
+
default: withCtx(() => [
|
|
9824
|
+
createVNode(_component_InputHelp, {
|
|
9825
|
+
tag: "div",
|
|
9826
|
+
class: "mt-auto",
|
|
9827
|
+
text: option.help
|
|
9828
|
+
}, null, 8, ["text"])
|
|
9829
|
+
]),
|
|
9830
|
+
_: 2
|
|
9831
|
+
}, 1024)) : createCommentVNode("", true),
|
|
9832
|
+
option.sublabel || _ctx.$slots.sublabel ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
9833
|
+
createVNode(unref(RadioGroupDescription), {
|
|
9834
|
+
as: "div",
|
|
9835
|
+
class: "font-semibold leading-snug mt-4 text-gray-900 text-sm"
|
|
9836
|
+
}, {
|
|
9837
|
+
default: withCtx(() => [
|
|
9838
|
+
createTextVNode(toDisplayString(option.sublabel) + " ", 1),
|
|
9839
|
+
renderSlot(_ctx.$slots, "sublabel", {
|
|
9840
|
+
active,
|
|
9841
|
+
checked: checked2,
|
|
9842
|
+
disabled,
|
|
9843
|
+
option
|
|
9844
|
+
})
|
|
9845
|
+
]),
|
|
9846
|
+
_: 2
|
|
9847
|
+
}, 1024)
|
|
9848
|
+
])) : createCommentVNode("", true)
|
|
9849
|
+
])
|
|
9850
|
+
]),
|
|
9851
|
+
createVNode(unref(render$8), {
|
|
9852
|
+
class: normalizeClass([!checked2 ? "invisible" : "", "h-5 w-5 text-blue-600"]),
|
|
9853
|
+
"aria-hidden": "true"
|
|
9854
|
+
}, null, 8, ["class"]),
|
|
9855
|
+
createElementVNode("div", {
|
|
9856
|
+
class: normalizeClass([
|
|
9857
|
+
active ? "border" : "border-2",
|
|
9858
|
+
checked2 ? "border-blue-500" : "border-transparent",
|
|
9859
|
+
"absolute -inset-px rounded-lg pointer-events-none"
|
|
9860
|
+
]),
|
|
9861
|
+
"aria-hidden": "true"
|
|
9862
|
+
}, null, 2),
|
|
9863
|
+
createElementVNode("input", {
|
|
9864
|
+
class: "sr-only top-1 left-1",
|
|
9865
|
+
"aria-hidden": "true",
|
|
9866
|
+
checked: checked2,
|
|
9867
|
+
name: unref(nameAttr),
|
|
9868
|
+
required: unref(attrs).required !== void 0 && unref(attrs).required !== false,
|
|
9869
|
+
tabindex: "-1",
|
|
9870
|
+
type: "radio",
|
|
9871
|
+
value: option.value,
|
|
9872
|
+
onInvalid: _cache[0] || (_cache[0] = ($event) => invalid.value = true)
|
|
9873
|
+
}, null, 40, _hoisted_5$1)
|
|
9874
|
+
], 2)
|
|
9875
|
+
]),
|
|
9876
|
+
_: 2
|
|
9877
|
+
}, 1032, ["disabled", "value"]);
|
|
9878
|
+
}), 128))
|
|
9879
|
+
], 2)
|
|
9880
|
+
]),
|
|
9881
|
+
_: 3
|
|
9882
|
+
}, 8, ["modelValue", "disabled", "aria-invalid", "aria-errormessage"]);
|
|
9262
9883
|
};
|
|
9263
9884
|
}
|
|
9264
9885
|
});
|
|
@@ -9275,7 +9896,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9275
9896
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
9276
9897
|
return (_ctx, _cache) => {
|
|
9277
9898
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9278
|
-
createVNode(_sfc_main$
|
|
9899
|
+
createVNode(_sfc_main$t, {
|
|
9279
9900
|
class: "block",
|
|
9280
9901
|
id: `${unref(uuid)}-label`,
|
|
9281
9902
|
for: unref(uuid),
|
|
@@ -9301,7 +9922,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9301
9922
|
value: __props.modelValue,
|
|
9302
9923
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
9303
9924
|
}, _ctx.$attrs), null, 16, _hoisted_1$1),
|
|
9304
|
-
createVNode(_sfc_main$
|
|
9925
|
+
createVNode(_sfc_main$s, {
|
|
9305
9926
|
id: `${unref(uuid)}-help`,
|
|
9306
9927
|
text: __props.help
|
|
9307
9928
|
}, null, 8, ["id", "text"])
|
|
@@ -9343,12 +9964,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9343
9964
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9344
9965
|
}, [
|
|
9345
9966
|
__props.legend || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
9346
|
-
createVNode(_sfc_main$
|
|
9967
|
+
createVNode(_sfc_main$t, {
|
|
9347
9968
|
class: "block my-auto",
|
|
9348
9969
|
label: __props.legend,
|
|
9349
9970
|
tag: "legend"
|
|
9350
9971
|
}, null, 8, ["label"]),
|
|
9351
|
-
createVNode(_sfc_main$
|
|
9972
|
+
createVNode(_sfc_main$s, {
|
|
9352
9973
|
tag: "p",
|
|
9353
9974
|
text: __props.help,
|
|
9354
9975
|
id: `${unref(uuid)}-help`
|
|
@@ -9369,7 +9990,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9369
9990
|
}, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9370
9991
|
onChange
|
|
9371
9992
|
})), null, 16, _hoisted_4),
|
|
9372
|
-
createVNode(_sfc_main$
|
|
9993
|
+
createVNode(_sfc_main$t, {
|
|
9373
9994
|
class: "ml-2",
|
|
9374
9995
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9375
9996
|
label: "Yes",
|
|
@@ -9390,7 +10011,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9390
10011
|
}, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9391
10012
|
onChange
|
|
9392
10013
|
})), null, 16, _hoisted_6),
|
|
9393
|
-
createVNode(_sfc_main$
|
|
10014
|
+
createVNode(_sfc_main$t, {
|
|
9394
10015
|
class: "ml-2",
|
|
9395
10016
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9396
10017
|
label: "No",
|
|
@@ -9405,41 +10026,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9405
10026
|
var components = /* @__PURE__ */ Object.freeze({
|
|
9406
10027
|
__proto__: null,
|
|
9407
10028
|
[Symbol.toStringTag]: "Module",
|
|
9408
|
-
ActionsDropdown: _sfc_main$
|
|
9409
|
-
Cards: _sfc_main$
|
|
9410
|
-
ContentModal: _sfc_main$
|
|
9411
|
-
DateFilter: _sfc_main$
|
|
9412
|
-
DetailList: _sfc_main$
|
|
9413
|
-
DownloadCell: _sfc_main$
|
|
9414
|
-
Flash: _sfc_main$
|
|
9415
|
-
Modal: _sfc_main$
|
|
9416
|
-
SidebarLayout: _sfc_main$
|
|
9417
|
-
Slideover: _sfc_main$
|
|
9418
|
-
StackedLayout: _sfc_main$
|
|
9419
|
-
Popover: _sfc_main$
|
|
10029
|
+
ActionsDropdown: _sfc_main$w,
|
|
10030
|
+
Cards: _sfc_main$v,
|
|
10031
|
+
ContentModal: _sfc_main$u,
|
|
10032
|
+
DateFilter: _sfc_main$o,
|
|
10033
|
+
DetailList: _sfc_main$m,
|
|
10034
|
+
DownloadCell: _sfc_main$l,
|
|
10035
|
+
Flash: _sfc_main$k,
|
|
10036
|
+
Modal: _sfc_main$j,
|
|
10037
|
+
SidebarLayout: _sfc_main$h,
|
|
10038
|
+
Slideover: _sfc_main$e,
|
|
10039
|
+
StackedLayout: _sfc_main$c,
|
|
10040
|
+
Popover: _sfc_main$g,
|
|
9420
10041
|
PopoverContent,
|
|
9421
|
-
PopoverPosition: _sfc_main$
|
|
9422
|
-
Paginator: _sfc_main$
|
|
9423
|
-
Spinner: _sfc_main$
|
|
9424
|
-
StaticTable: _sfc_main$
|
|
9425
|
-
Steps: _sfc_main$
|
|
9426
|
-
Table: _sfc_main$
|
|
9427
|
-
Tabs: _sfc_main$
|
|
9428
|
-
Toggle: _sfc_main$
|
|
9429
|
-
Tooltip: _sfc_main$
|
|
9430
|
-
BaseInput: _sfc_main$
|
|
9431
|
-
Checkbox: _sfc_main$
|
|
9432
|
-
DateRangePicker: _sfc_main$
|
|
9433
|
-
InputHelp: _sfc_main$
|
|
9434
|
-
InputLabel: _sfc_main$
|
|
9435
|
-
FieldsetLegend: _sfc_main$
|
|
9436
|
-
MultiCheckboxes: _sfc_main$
|
|
9437
|
-
Radio: _sfc_main$
|
|
9438
|
-
|
|
10042
|
+
PopoverPosition: _sfc_main$g,
|
|
10043
|
+
Paginator: _sfc_main$n,
|
|
10044
|
+
Spinner: _sfc_main$i,
|
|
10045
|
+
StaticTable: _sfc_main$b,
|
|
10046
|
+
Steps: _sfc_main$a,
|
|
10047
|
+
Table: _sfc_main$9,
|
|
10048
|
+
Tabs: _sfc_main$8,
|
|
10049
|
+
Toggle: _sfc_main$7,
|
|
10050
|
+
Tooltip: _sfc_main$d,
|
|
10051
|
+
BaseInput: _sfc_main$r,
|
|
10052
|
+
Checkbox: _sfc_main$6,
|
|
10053
|
+
DateRangePicker: _sfc_main$q,
|
|
10054
|
+
InputHelp: _sfc_main$s,
|
|
10055
|
+
InputLabel: _sfc_main$t,
|
|
10056
|
+
FieldsetLegend: _sfc_main$5,
|
|
10057
|
+
MultiCheckboxes: _sfc_main$4,
|
|
10058
|
+
Radio: _sfc_main$3,
|
|
10059
|
+
RadioCards: _sfc_main$2,
|
|
10060
|
+
Select: _sfc_main$p,
|
|
9439
10061
|
TextArea: _sfc_main$1,
|
|
9440
10062
|
YesOrNoRadio: _sfc_main
|
|
9441
10063
|
});
|
|
9442
|
-
function useBaseAPI(path, method = "GET", initOpts = {}
|
|
10064
|
+
function useBaseAPI(path, method = "GET", initOpts = {}) {
|
|
9443
10065
|
const result = ref();
|
|
9444
10066
|
const error = shallowRef();
|
|
9445
10067
|
const hasFetched = ref(false);
|
|
@@ -9453,21 +10075,21 @@ function useBaseAPI(path, method = "GET", initOpts = {}, initConfig = {}) {
|
|
|
9453
10075
|
controller.abort();
|
|
9454
10076
|
}
|
|
9455
10077
|
};
|
|
9456
|
-
const execute = (data2 = {},
|
|
10078
|
+
const execute = (data2 = {}, opts = {}) => {
|
|
9457
10079
|
requestCount++;
|
|
9458
10080
|
const count = requestCount;
|
|
9459
10081
|
controller = new AbortController();
|
|
9460
10082
|
isAborted.value = false;
|
|
9461
10083
|
isFinished.value = false;
|
|
9462
10084
|
isLoading.value = true;
|
|
9463
|
-
const requestConfig =
|
|
9464
|
-
data:
|
|
10085
|
+
const requestConfig = {
|
|
10086
|
+
data: ["POST", "post", "PUT", "put"].includes(method) ? data2 : {},
|
|
9465
10087
|
method,
|
|
9466
10088
|
params: ["GET", "get"].includes(method) ? data2 : {},
|
|
9467
10089
|
signal: controller.signal,
|
|
9468
10090
|
url: path
|
|
9469
|
-
}
|
|
9470
|
-
return BaseAPI.makeRequest(requestConfig, __spreadValues(__spreadValues({}, initOpts),
|
|
10091
|
+
};
|
|
10092
|
+
return BaseAPI.makeRequest(requestConfig, __spreadValues(__spreadValues({}, initOpts), opts)).then((success) => {
|
|
9471
10093
|
result.value = success;
|
|
9472
10094
|
error.value = void 0;
|
|
9473
10095
|
isAborted.value = false;
|
|
@@ -9500,21 +10122,21 @@ function useBaseAPI(path, method = "GET", initOpts = {}, initConfig = {}) {
|
|
|
9500
10122
|
execute
|
|
9501
10123
|
};
|
|
9502
10124
|
}
|
|
9503
|
-
function useBaseAPIGet(url,
|
|
9504
|
-
return useBaseAPI(url, "GET",
|
|
10125
|
+
function useBaseAPIGet(url, opts = {}) {
|
|
10126
|
+
return useBaseAPI(url, "GET", opts);
|
|
9505
10127
|
}
|
|
9506
|
-
function useBaseAPIDelete(url,
|
|
9507
|
-
return useBaseAPI(url, "DELETE",
|
|
10128
|
+
function useBaseAPIDelete(url, opts = {}) {
|
|
10129
|
+
return useBaseAPI(url, "DELETE", opts);
|
|
9508
10130
|
}
|
|
9509
|
-
function useBaseAPIPost(url,
|
|
9510
|
-
return useBaseAPI(url, "POST",
|
|
10131
|
+
function useBaseAPIPost(url, opts = {}) {
|
|
10132
|
+
return useBaseAPI(url, "POST", opts);
|
|
9511
10133
|
}
|
|
9512
|
-
function useBaseAPIPut(url,
|
|
9513
|
-
return useBaseAPI(url, "PUT",
|
|
10134
|
+
function useBaseAPIPut(url, opts = {}) {
|
|
10135
|
+
return useBaseAPI(url, "PUT", opts);
|
|
9514
10136
|
}
|
|
9515
10137
|
const install = function installTrees(app) {
|
|
9516
10138
|
Object.entries(components).forEach(([componentName, component]) => {
|
|
9517
10139
|
app.component(componentName, component);
|
|
9518
10140
|
});
|
|
9519
10141
|
};
|
|
9520
|
-
export { _sfc_main$
|
|
10142
|
+
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 };
|