@xy-planning-network/trees 0.4.9-rc-1 → 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 +980 -348
- 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/lib-components/forms/FieldsetLegend.vue.d.ts +13 -1
- package/types/lib-components/forms/RadioCards.vue.d.ts +4 -2
- 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() {
|
|
@@ -1386,7 +1386,7 @@ var RenderStrategy;
|
|
|
1386
1386
|
RenderStrategy2[RenderStrategy2["Unmount"] = 0] = "Unmount";
|
|
1387
1387
|
RenderStrategy2[RenderStrategy2["Hidden"] = 1] = "Hidden";
|
|
1388
1388
|
})(RenderStrategy || (RenderStrategy = {}));
|
|
1389
|
-
function render$
|
|
1389
|
+
function render$9(_ref) {
|
|
1390
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"]);
|
|
1391
1391
|
if (visible)
|
|
1392
1392
|
return _render(main);
|
|
@@ -1512,7 +1512,7 @@ var ForcePortalRoot = /* @__PURE__ */ defineComponent({
|
|
|
1512
1512
|
provide(ForcePortalRootContext, props.force);
|
|
1513
1513
|
return function() {
|
|
1514
1514
|
var passThroughProps = _objectWithoutPropertiesLoose(props, ["force"]);
|
|
1515
|
-
return render$
|
|
1515
|
+
return render$9({
|
|
1516
1516
|
props: passThroughProps,
|
|
1517
1517
|
slot: {},
|
|
1518
1518
|
slots,
|
|
@@ -1572,7 +1572,7 @@ var Portal = /* @__PURE__ */ defineComponent({
|
|
|
1572
1572
|
};
|
|
1573
1573
|
return h(Teleport, {
|
|
1574
1574
|
to: myTarget.value
|
|
1575
|
-
}, render$
|
|
1575
|
+
}, render$9({
|
|
1576
1576
|
props: _extends({}, props, propsWeControl),
|
|
1577
1577
|
slot: {},
|
|
1578
1578
|
attrs,
|
|
@@ -1605,7 +1605,7 @@ var PortalGroup = /* @__PURE__ */ defineComponent({
|
|
|
1605
1605
|
provide(PortalGroupContext, api);
|
|
1606
1606
|
return function() {
|
|
1607
1607
|
var passThroughProps = _objectWithoutPropertiesLoose(props, ["target"]);
|
|
1608
|
-
return render$
|
|
1608
|
+
return render$9({
|
|
1609
1609
|
props: passThroughProps,
|
|
1610
1610
|
slot: {},
|
|
1611
1611
|
attrs,
|
|
@@ -1939,6 +1939,13 @@ function useInertOthers(container, enabled) {
|
|
|
1939
1939
|
});
|
|
1940
1940
|
}
|
|
1941
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
|
+
}
|
|
1942
1949
|
function useDescriptions(_temp) {
|
|
1943
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;
|
|
1944
1951
|
var descriptionIds = ref([]);
|
|
@@ -1961,6 +1968,44 @@ function useDescriptions(_temp) {
|
|
|
1961
1968
|
return descriptionIds.value.length > 0 ? descriptionIds.value.join(" ") : void 0;
|
|
1962
1969
|
});
|
|
1963
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
|
+
});
|
|
1964
2009
|
function dom(ref2) {
|
|
1965
2010
|
var _ref$value$$el;
|
|
1966
2011
|
if (ref2 == null)
|
|
@@ -2031,7 +2076,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2031
2076
|
return true;
|
|
2032
2077
|
}
|
|
2033
2078
|
},
|
|
2034
|
-
render: function render$
|
|
2079
|
+
render: function render$12() {
|
|
2035
2080
|
var _this = this;
|
|
2036
2081
|
var propsWeControl = _extends({}, this.$attrs, {
|
|
2037
2082
|
ref: "el",
|
|
@@ -2056,7 +2101,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2056
2101
|
return h(ForcePortalRoot, {
|
|
2057
2102
|
force: false
|
|
2058
2103
|
}, function() {
|
|
2059
|
-
return render$
|
|
2104
|
+
return render$9({
|
|
2060
2105
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2061
2106
|
slot,
|
|
2062
2107
|
attrs: _this.$attrs,
|
|
@@ -2070,7 +2115,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2070
2115
|
});
|
|
2071
2116
|
});
|
|
2072
2117
|
},
|
|
2073
|
-
setup: function
|
|
2118
|
+
setup: function setup5(props, _ref) {
|
|
2074
2119
|
var emit = _ref.emit;
|
|
2075
2120
|
var containers = ref(new Set());
|
|
2076
2121
|
var usesOpenClosedState = useOpenClosed();
|
|
@@ -2220,7 +2265,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2220
2265
|
"default": "div"
|
|
2221
2266
|
}
|
|
2222
2267
|
},
|
|
2223
|
-
render: function render$
|
|
2268
|
+
render: function render$13() {
|
|
2224
2269
|
var api = useDialogContext("DialogOverlay");
|
|
2225
2270
|
var propsWeControl = {
|
|
2226
2271
|
ref: "el",
|
|
@@ -2229,7 +2274,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2229
2274
|
onClick: this.handleClick
|
|
2230
2275
|
};
|
|
2231
2276
|
var passThroughProps = this.$props;
|
|
2232
|
-
return render$
|
|
2277
|
+
return render$9({
|
|
2233
2278
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2234
2279
|
slot: {
|
|
2235
2280
|
open: api.dialogState.value === DialogStates.Open
|
|
@@ -2239,7 +2284,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
|
|
|
2239
2284
|
name: "DialogOverlay"
|
|
2240
2285
|
});
|
|
2241
2286
|
},
|
|
2242
|
-
setup: function
|
|
2287
|
+
setup: function setup6() {
|
|
2243
2288
|
var api = useDialogContext("DialogOverlay");
|
|
2244
2289
|
var id2 = "headlessui-dialog-overlay-" + useId();
|
|
2245
2290
|
return {
|
|
@@ -2262,13 +2307,13 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
|
|
|
2262
2307
|
"default": "h2"
|
|
2263
2308
|
}
|
|
2264
2309
|
},
|
|
2265
|
-
render: function render$
|
|
2310
|
+
render: function render$14() {
|
|
2266
2311
|
var api = useDialogContext("DialogTitle");
|
|
2267
2312
|
var propsWeControl = {
|
|
2268
2313
|
id: this.id
|
|
2269
2314
|
};
|
|
2270
2315
|
var passThroughProps = this.$props;
|
|
2271
|
-
return render$
|
|
2316
|
+
return render$9({
|
|
2272
2317
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2273
2318
|
slot: {
|
|
2274
2319
|
open: api.dialogState.value === DialogStates.Open
|
|
@@ -2278,7 +2323,7 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
|
|
|
2278
2323
|
name: "DialogTitle"
|
|
2279
2324
|
});
|
|
2280
2325
|
},
|
|
2281
|
-
setup: function
|
|
2326
|
+
setup: function setup7() {
|
|
2282
2327
|
var api = useDialogContext("DialogTitle");
|
|
2283
2328
|
var id2 = "headlessui-dialog-title-" + useId();
|
|
2284
2329
|
onMounted(function() {
|
|
@@ -2349,7 +2394,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
|
|
|
2349
2394
|
"default": false
|
|
2350
2395
|
}
|
|
2351
2396
|
},
|
|
2352
|
-
setup: function
|
|
2397
|
+
setup: function setup8(props, _ref) {
|
|
2353
2398
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
2354
2399
|
var buttonId = "headlessui-disclosure-button-" + useId();
|
|
2355
2400
|
var panelId = "headlessui-disclosure-panel-" + useId();
|
|
@@ -2396,7 +2441,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
|
|
|
2396
2441
|
open: disclosureState.value === DisclosureStates.Open,
|
|
2397
2442
|
close: api.close
|
|
2398
2443
|
};
|
|
2399
|
-
return render$
|
|
2444
|
+
return render$9({
|
|
2400
2445
|
props: passThroughProps,
|
|
2401
2446
|
slot,
|
|
2402
2447
|
slots,
|
|
@@ -2418,7 +2463,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2418
2463
|
"default": false
|
|
2419
2464
|
}
|
|
2420
2465
|
},
|
|
2421
|
-
render: function render$
|
|
2466
|
+
render: function render$15() {
|
|
2422
2467
|
var api = useDisclosureContext("DisclosureButton");
|
|
2423
2468
|
var slot = {
|
|
2424
2469
|
open: api.disclosureState.value === DisclosureStates.Open
|
|
@@ -2439,7 +2484,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2439
2484
|
onKeydown: this.handleKeyDown,
|
|
2440
2485
|
onKeyup: this.handleKeyUp
|
|
2441
2486
|
};
|
|
2442
|
-
return render$
|
|
2487
|
+
return render$9({
|
|
2443
2488
|
props: _extends({}, this.$props, propsWeControl),
|
|
2444
2489
|
slot,
|
|
2445
2490
|
attrs: this.$attrs,
|
|
@@ -2447,7 +2492,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
|
|
|
2447
2492
|
name: "DisclosureButton"
|
|
2448
2493
|
});
|
|
2449
2494
|
},
|
|
2450
|
-
setup: function
|
|
2495
|
+
setup: function setup9(props, _ref2) {
|
|
2451
2496
|
var attrs = _ref2.attrs;
|
|
2452
2497
|
var api = useDisclosureContext("DisclosureButton");
|
|
2453
2498
|
var panelContext = useDisclosurePanelContext();
|
|
@@ -2530,7 +2575,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2530
2575
|
"default": true
|
|
2531
2576
|
}
|
|
2532
2577
|
},
|
|
2533
|
-
render: function render$
|
|
2578
|
+
render: function render$16() {
|
|
2534
2579
|
var api = useDisclosureContext("DisclosurePanel");
|
|
2535
2580
|
var slot = {
|
|
2536
2581
|
open: api.disclosureState.value === DisclosureStates.Open,
|
|
@@ -2540,7 +2585,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2540
2585
|
id: this.id,
|
|
2541
2586
|
ref: "el"
|
|
2542
2587
|
};
|
|
2543
|
-
return render$
|
|
2588
|
+
return render$9({
|
|
2544
2589
|
props: _extends({}, this.$props, propsWeControl),
|
|
2545
2590
|
slot,
|
|
2546
2591
|
attrs: this.$attrs,
|
|
@@ -2550,7 +2595,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
|
|
|
2550
2595
|
name: "DisclosurePanel"
|
|
2551
2596
|
});
|
|
2552
2597
|
},
|
|
2553
|
-
setup: function
|
|
2598
|
+
setup: function setup10() {
|
|
2554
2599
|
var api = useDisclosureContext("DisclosurePanel");
|
|
2555
2600
|
provide(DisclosurePanelContext, api.panelId);
|
|
2556
2601
|
var usesOpenClosedState = useOpenClosed();
|
|
@@ -2675,7 +2720,7 @@ var Menu = /* @__PURE__ */ defineComponent({
|
|
|
2675
2720
|
"default": "template"
|
|
2676
2721
|
}
|
|
2677
2722
|
},
|
|
2678
|
-
setup: function
|
|
2723
|
+
setup: function setup11(props, _ref) {
|
|
2679
2724
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
2680
2725
|
var menuState = ref(MenuStates.Closed);
|
|
2681
2726
|
var buttonRef = ref(null);
|
|
@@ -2784,7 +2829,7 @@ var Menu = /* @__PURE__ */ defineComponent({
|
|
|
2784
2829
|
var slot = {
|
|
2785
2830
|
open: menuState.value === MenuStates.Open
|
|
2786
2831
|
};
|
|
2787
|
-
return render$
|
|
2832
|
+
return render$9({
|
|
2788
2833
|
props,
|
|
2789
2834
|
slot,
|
|
2790
2835
|
slots,
|
|
@@ -2806,7 +2851,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2806
2851
|
"default": "button"
|
|
2807
2852
|
}
|
|
2808
2853
|
},
|
|
2809
|
-
render: function render$
|
|
2854
|
+
render: function render$17() {
|
|
2810
2855
|
var _dom4;
|
|
2811
2856
|
var api = useMenuContext("MenuButton");
|
|
2812
2857
|
var slot = {
|
|
@@ -2823,7 +2868,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2823
2868
|
onKeyup: this.handleKeyUp,
|
|
2824
2869
|
onClick: this.handleClick
|
|
2825
2870
|
};
|
|
2826
|
-
return render$
|
|
2871
|
+
return render$9({
|
|
2827
2872
|
props: _extends({}, this.$props, propsWeControl),
|
|
2828
2873
|
slot,
|
|
2829
2874
|
attrs: this.$attrs,
|
|
@@ -2831,7 +2876,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
|
|
|
2831
2876
|
name: "MenuButton"
|
|
2832
2877
|
});
|
|
2833
2878
|
},
|
|
2834
|
-
setup: function
|
|
2879
|
+
setup: function setup12(props, _ref2) {
|
|
2835
2880
|
var attrs = _ref2.attrs;
|
|
2836
2881
|
var api = useMenuContext("MenuButton");
|
|
2837
2882
|
var id2 = "headlessui-menu-button-" + useId();
|
|
@@ -2926,7 +2971,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2926
2971
|
"default": true
|
|
2927
2972
|
}
|
|
2928
2973
|
},
|
|
2929
|
-
render: function render$
|
|
2974
|
+
render: function render$18() {
|
|
2930
2975
|
var _api$items$value$api$, _dom9;
|
|
2931
2976
|
var api = useMenuContext("MenuItems");
|
|
2932
2977
|
var slot = {
|
|
@@ -2943,7 +2988,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2943
2988
|
ref: "el"
|
|
2944
2989
|
};
|
|
2945
2990
|
var passThroughProps = this.$props;
|
|
2946
|
-
return render$
|
|
2991
|
+
return render$9({
|
|
2947
2992
|
props: _extends({}, passThroughProps, propsWeControl),
|
|
2948
2993
|
slot,
|
|
2949
2994
|
attrs: this.$attrs,
|
|
@@ -2953,7 +2998,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
|
|
|
2953
2998
|
name: "MenuItems"
|
|
2954
2999
|
});
|
|
2955
3000
|
},
|
|
2956
|
-
setup: function
|
|
3001
|
+
setup: function setup13() {
|
|
2957
3002
|
var api = useMenuContext("MenuItems");
|
|
2958
3003
|
var id2 = "headlessui-menu-items-" + useId();
|
|
2959
3004
|
var searchDebounce = ref(null);
|
|
@@ -3079,7 +3124,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
|
|
|
3079
3124
|
"default": false
|
|
3080
3125
|
}
|
|
3081
3126
|
},
|
|
3082
|
-
setup: function
|
|
3127
|
+
setup: function setup14(props, _ref3) {
|
|
3083
3128
|
var slots = _ref3.slots, attrs = _ref3.attrs;
|
|
3084
3129
|
var api = useMenuContext("MenuItem");
|
|
3085
3130
|
var id2 = "headlessui-menu-item-" + useId();
|
|
@@ -3162,7 +3207,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
|
|
|
3162
3207
|
onPointerleave: handleLeave,
|
|
3163
3208
|
onMouseleave: handleLeave
|
|
3164
3209
|
};
|
|
3165
|
-
return render$
|
|
3210
|
+
return render$9({
|
|
3166
3211
|
props: _extends({}, props, propsWeControl),
|
|
3167
3212
|
slot,
|
|
3168
3213
|
attrs,
|
|
@@ -3204,7 +3249,7 @@ var Popover = /* @__PURE__ */ defineComponent({
|
|
|
3204
3249
|
"default": "div"
|
|
3205
3250
|
}
|
|
3206
3251
|
},
|
|
3207
|
-
setup: function
|
|
3252
|
+
setup: function setup15(props, _ref) {
|
|
3208
3253
|
var slots = _ref.slots, attrs = _ref.attrs;
|
|
3209
3254
|
var buttonId = "headlessui-popover-button-" + useId();
|
|
3210
3255
|
var panelId = "headlessui-popover-panel-" + useId();
|
|
@@ -3293,7 +3338,7 @@ var Popover = /* @__PURE__ */ defineComponent({
|
|
|
3293
3338
|
open: popoverState.value === PopoverStates.Open,
|
|
3294
3339
|
close: api.close
|
|
3295
3340
|
};
|
|
3296
|
-
return render$
|
|
3341
|
+
return render$9({
|
|
3297
3342
|
props,
|
|
3298
3343
|
slot,
|
|
3299
3344
|
slots,
|
|
@@ -3315,7 +3360,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3315
3360
|
"default": false
|
|
3316
3361
|
}
|
|
3317
3362
|
},
|
|
3318
|
-
render: function render$
|
|
3363
|
+
render: function render$19() {
|
|
3319
3364
|
var api = usePopoverContext("PopoverButton");
|
|
3320
3365
|
var slot = {
|
|
3321
3366
|
open: api.popoverState.value === PopoverStates.Open
|
|
@@ -3336,7 +3381,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3336
3381
|
onKeyup: this.handleKeyUp,
|
|
3337
3382
|
onClick: this.handleClick
|
|
3338
3383
|
};
|
|
3339
|
-
return render$
|
|
3384
|
+
return render$9({
|
|
3340
3385
|
props: _extends({}, this.$props, propsWeControl),
|
|
3341
3386
|
slot,
|
|
3342
3387
|
attrs: this.$attrs,
|
|
@@ -3344,7 +3389,7 @@ var PopoverButton = /* @__PURE__ */ defineComponent({
|
|
|
3344
3389
|
name: "PopoverButton"
|
|
3345
3390
|
});
|
|
3346
3391
|
},
|
|
3347
|
-
setup: function
|
|
3392
|
+
setup: function setup16(props, _ref2) {
|
|
3348
3393
|
var attrs = _ref2.attrs;
|
|
3349
3394
|
var api = usePopoverContext("PopoverButton");
|
|
3350
3395
|
var groupContext = usePopoverGroupContext();
|
|
@@ -3509,7 +3554,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3509
3554
|
"default": false
|
|
3510
3555
|
}
|
|
3511
3556
|
},
|
|
3512
|
-
render: function render$
|
|
3557
|
+
render: function render$110() {
|
|
3513
3558
|
var api = usePopoverContext("PopoverPanel");
|
|
3514
3559
|
var slot = {
|
|
3515
3560
|
open: api.popoverState.value === PopoverStates.Open,
|
|
@@ -3520,7 +3565,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3520
3565
|
id: this.id,
|
|
3521
3566
|
onKeydown: this.handleKeyDown
|
|
3522
3567
|
};
|
|
3523
|
-
return render$
|
|
3568
|
+
return render$9({
|
|
3524
3569
|
props: _extends({}, this.$props, propsWeControl),
|
|
3525
3570
|
slot,
|
|
3526
3571
|
attrs: this.$attrs,
|
|
@@ -3530,7 +3575,7 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3530
3575
|
name: "PopoverPanel"
|
|
3531
3576
|
});
|
|
3532
3577
|
},
|
|
3533
|
-
setup: function
|
|
3578
|
+
setup: function setup17(props) {
|
|
3534
3579
|
var focus = props.focus;
|
|
3535
3580
|
var api = usePopoverContext("PopoverPanel");
|
|
3536
3581
|
provide(PopoverPanelContext, api.panelId);
|
|
@@ -3624,11 +3669,403 @@ var PopoverPanel = /* @__PURE__ */ defineComponent({
|
|
|
3624
3669
|
};
|
|
3625
3670
|
}
|
|
3626
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;
|
|
3627
4064
|
var GroupContext = /* @__PURE__ */ Symbol("GroupContext");
|
|
3628
4065
|
var Switch = /* @__PURE__ */ defineComponent({
|
|
3629
4066
|
name: "Switch",
|
|
3630
4067
|
emits: {
|
|
3631
|
-
"update:modelValue": function
|
|
4068
|
+
"update:modelValue": function updateModelValue2(_value) {
|
|
3632
4069
|
return true;
|
|
3633
4070
|
}
|
|
3634
4071
|
},
|
|
@@ -3642,7 +4079,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3642
4079
|
"default": false
|
|
3643
4080
|
}
|
|
3644
4081
|
},
|
|
3645
|
-
render: function render$
|
|
4082
|
+
render: function render$114() {
|
|
3646
4083
|
var slot = {
|
|
3647
4084
|
checked: this.$props.modelValue
|
|
3648
4085
|
};
|
|
@@ -3659,7 +4096,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3659
4096
|
onKeyup: this.handleKeyUp,
|
|
3660
4097
|
onKeypress: this.handleKeyPress
|
|
3661
4098
|
};
|
|
3662
|
-
return render$
|
|
4099
|
+
return render$9({
|
|
3663
4100
|
props: _extends({}, this.$props, propsWeControl),
|
|
3664
4101
|
slot,
|
|
3665
4102
|
attrs: this.$attrs,
|
|
@@ -3667,7 +4104,7 @@ var Switch = /* @__PURE__ */ defineComponent({
|
|
|
3667
4104
|
name: "Switch"
|
|
3668
4105
|
});
|
|
3669
4106
|
},
|
|
3670
|
-
setup: function
|
|
4107
|
+
setup: function setup21(props, _ref2) {
|
|
3671
4108
|
var emit = _ref2.emit, attrs = _ref2.attrs;
|
|
3672
4109
|
var api = inject(GroupContext, null);
|
|
3673
4110
|
var id2 = "headlessui-switch-" + useId();
|
|
@@ -3986,7 +4423,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
3986
4423
|
return true;
|
|
3987
4424
|
}
|
|
3988
4425
|
},
|
|
3989
|
-
render: function render$
|
|
4426
|
+
render: function render$115() {
|
|
3990
4427
|
var _this = this;
|
|
3991
4428
|
if (this.renderAsRoot) {
|
|
3992
4429
|
return h(TransitionRoot, _extends({}, this.$props, {
|
|
@@ -4009,7 +4446,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
4009
4446
|
ref: "el"
|
|
4010
4447
|
};
|
|
4011
4448
|
var passthroughProps = rest;
|
|
4012
|
-
return render$
|
|
4449
|
+
return render$9({
|
|
4013
4450
|
props: _extends({}, passthroughProps, propsWeControl),
|
|
4014
4451
|
slot: {},
|
|
4015
4452
|
slots: this.$slots,
|
|
@@ -4019,7 +4456,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
|
|
|
4019
4456
|
name: "TransitionChild"
|
|
4020
4457
|
});
|
|
4021
4458
|
},
|
|
4022
|
-
setup: function
|
|
4459
|
+
setup: function setup22(props, _ref4) {
|
|
4023
4460
|
var emit = _ref4.emit;
|
|
4024
4461
|
if (!hasTransitionContext() && hasOpenClosed()) {
|
|
4025
4462
|
return {
|
|
@@ -4194,13 +4631,13 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4194
4631
|
return true;
|
|
4195
4632
|
}
|
|
4196
4633
|
},
|
|
4197
|
-
render: function render$
|
|
4634
|
+
render: function render$116() {
|
|
4198
4635
|
var _this2 = this;
|
|
4199
4636
|
var _this$$props2 = this.$props, unmount = _this$$props2.unmount, passThroughProps = _objectWithoutPropertiesLoose(_this$$props2, ["show", "appear", "unmount"]);
|
|
4200
4637
|
var sharedProps = {
|
|
4201
4638
|
unmount
|
|
4202
4639
|
};
|
|
4203
|
-
return render$
|
|
4640
|
+
return render$9({
|
|
4204
4641
|
props: _extends({}, sharedProps, {
|
|
4205
4642
|
as: "template"
|
|
4206
4643
|
}),
|
|
@@ -4229,7 +4666,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4229
4666
|
name: "Transition"
|
|
4230
4667
|
});
|
|
4231
4668
|
},
|
|
4232
|
-
setup: function
|
|
4669
|
+
setup: function setup23(props) {
|
|
4233
4670
|
var usesOpenClosedState = useOpenClosed();
|
|
4234
4671
|
var show = computed(function() {
|
|
4235
4672
|
if (props.show === null && usesOpenClosedState !== null) {
|
|
@@ -4274,6 +4711,20 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
|
|
|
4274
4711
|
};
|
|
4275
4712
|
}
|
|
4276
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
|
+
}
|
|
4277
4728
|
function render$7(_ctx, _cache) {
|
|
4278
4729
|
return openBlock(), createBlock("svg", {
|
|
4279
4730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4312,10 +4763,10 @@ function render$5(_ctx, _cache) {
|
|
|
4312
4763
|
})
|
|
4313
4764
|
]);
|
|
4314
4765
|
}
|
|
4315
|
-
const _hoisted_1$
|
|
4316
|
-
const _hoisted_2$
|
|
4317
|
-
const _hoisted_3$
|
|
4318
|
-
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({
|
|
4319
4770
|
props: {
|
|
4320
4771
|
currentUser: null,
|
|
4321
4772
|
items: null,
|
|
@@ -4356,7 +4807,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4356
4807
|
disabled: !hasActionItems.value
|
|
4357
4808
|
}, {
|
|
4358
4809
|
default: withCtx(() => [
|
|
4359
|
-
_hoisted_1$
|
|
4810
|
+
_hoisted_1$r,
|
|
4360
4811
|
createVNode(unref(render$6), {
|
|
4361
4812
|
class: "w-5 h-5",
|
|
4362
4813
|
"aria-hidden": "true"
|
|
@@ -4375,7 +4826,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4375
4826
|
default: withCtx(() => [
|
|
4376
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" }, {
|
|
4377
4828
|
default: withCtx(() => [
|
|
4378
|
-
createElementVNode("div", _hoisted_2$
|
|
4829
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
4379
4830
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, idx) => {
|
|
4380
4831
|
return openBlock(), createElementBlock(Fragment, { key: idx }, [
|
|
4381
4832
|
show(item) ? (openBlock(), createBlock(unref(MenuItem), {
|
|
@@ -4391,7 +4842,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4391
4842
|
]),
|
|
4392
4843
|
textContent: toDisplayString(item.label),
|
|
4393
4844
|
onClick: ($event) => emitEvent(item.event)
|
|
4394
|
-
}, null, 10, _hoisted_3$
|
|
4845
|
+
}, null, 10, _hoisted_3$k)
|
|
4395
4846
|
]),
|
|
4396
4847
|
_: 2
|
|
4397
4848
|
}, 1024)) : createCommentVNode("", true)
|
|
@@ -4410,10 +4861,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4410
4861
|
};
|
|
4411
4862
|
}
|
|
4412
4863
|
});
|
|
4413
|
-
const _hoisted_1$
|
|
4414
|
-
const _hoisted_2$
|
|
4415
|
-
const _hoisted_3$
|
|
4416
|
-
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({
|
|
4417
4868
|
props: {
|
|
4418
4869
|
cards: null
|
|
4419
4870
|
},
|
|
@@ -4427,16 +4878,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4427
4878
|
class: "bg-white overflow-hidden shadow rounded-lg",
|
|
4428
4879
|
key: idx
|
|
4429
4880
|
}, [
|
|
4430
|
-
createElementVNode("div", _hoisted_1$
|
|
4881
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
4431
4882
|
createElementVNode("dl", null, [
|
|
4432
4883
|
createElementVNode("dd", {
|
|
4433
4884
|
class: "mt-1 text-3xl leading-9 font-semibold text-xy-blue",
|
|
4434
4885
|
textContent: toDisplayString(card.primary)
|
|
4435
|
-
}, null, 8, _hoisted_2$
|
|
4886
|
+
}, null, 8, _hoisted_2$k),
|
|
4436
4887
|
createElementVNode("dt", {
|
|
4437
4888
|
class: "text-sm leading-5 font-medium text-gray-700 truncate",
|
|
4438
4889
|
textContent: toDisplayString(card.secondary)
|
|
4439
|
-
}, null, 8, _hoisted_3$
|
|
4890
|
+
}, null, 8, _hoisted_3$j)
|
|
4440
4891
|
])
|
|
4441
4892
|
])
|
|
4442
4893
|
]);
|
|
@@ -4445,23 +4896,23 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4445
4896
|
};
|
|
4446
4897
|
}
|
|
4447
4898
|
});
|
|
4448
|
-
const _hoisted_1$
|
|
4449
|
-
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", {
|
|
4450
4901
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4451
4902
|
"aria-hidden": "true"
|
|
4452
4903
|
}, "\u200B", -1);
|
|
4453
|
-
const _hoisted_3$
|
|
4454
|
-
const _hoisted_4$
|
|
4455
|
-
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" };
|
|
4456
4907
|
const _hoisted_6$c = { class: "mt-5 sm:mt-6" };
|
|
4457
|
-
const _sfc_main$
|
|
4908
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
4458
4909
|
props: {
|
|
4459
4910
|
modelValue: { type: Boolean },
|
|
4460
4911
|
title: { default: "" }
|
|
4461
4912
|
},
|
|
4462
4913
|
emits: ["update:modelValue"],
|
|
4463
4914
|
setup(__props, { emit }) {
|
|
4464
|
-
const
|
|
4915
|
+
const updateModelValue3 = (value) => {
|
|
4465
4916
|
emit("update:modelValue", value);
|
|
4466
4917
|
};
|
|
4467
4918
|
return (_ctx, _cache) => {
|
|
@@ -4474,11 +4925,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4474
4925
|
as: "div",
|
|
4475
4926
|
static: "",
|
|
4476
4927
|
class: "fixed z-10 inset-0 overflow-y-auto",
|
|
4477
|
-
onClose: _cache[1] || (_cache[1] = ($event) =>
|
|
4928
|
+
onClose: _cache[1] || (_cache[1] = ($event) => updateModelValue3(false)),
|
|
4478
4929
|
open: __props.modelValue
|
|
4479
4930
|
}, {
|
|
4480
4931
|
default: withCtx(() => [
|
|
4481
|
-
createElementVNode("div", _hoisted_1$
|
|
4932
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
4482
4933
|
createVNode(unref(TransitionChild), {
|
|
4483
4934
|
as: "template",
|
|
4484
4935
|
enter: "ease-out duration-300",
|
|
@@ -4493,7 +4944,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4493
4944
|
]),
|
|
4494
4945
|
_: 1
|
|
4495
4946
|
}),
|
|
4496
|
-
_hoisted_2$
|
|
4947
|
+
_hoisted_2$j,
|
|
4497
4948
|
createVNode(unref(TransitionChild), {
|
|
4498
4949
|
as: "template",
|
|
4499
4950
|
enter: "ease-out duration-300",
|
|
@@ -4504,15 +4955,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4504
4955
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
4505
4956
|
}, {
|
|
4506
4957
|
default: withCtx(() => [
|
|
4507
|
-
createElementVNode("div", _hoisted_3$
|
|
4958
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
4508
4959
|
createElementVNode("div", null, [
|
|
4509
4960
|
renderSlot(_ctx.$slots, "icon"),
|
|
4510
|
-
createElementVNode("div", _hoisted_4$
|
|
4961
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
4511
4962
|
createVNode(unref(DialogTitle), {
|
|
4512
4963
|
as: "h3",
|
|
4513
4964
|
textContent: toDisplayString(__props.title)
|
|
4514
4965
|
}, null, 8, ["textContent"]),
|
|
4515
|
-
createElementVNode("div", _hoisted_5$
|
|
4966
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
4516
4967
|
renderSlot(_ctx.$slots, "default")
|
|
4517
4968
|
])
|
|
4518
4969
|
])
|
|
@@ -4521,7 +4972,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4521
4972
|
createElementVNode("button", {
|
|
4522
4973
|
type: "button",
|
|
4523
4974
|
class: "inline-flex justify-center w-full xy-btn",
|
|
4524
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
4975
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
4525
4976
|
}, " Go back ")
|
|
4526
4977
|
])
|
|
4527
4978
|
])
|
|
@@ -6631,7 +7082,7 @@ if (typeof window !== "undefined") {
|
|
|
6631
7082
|
window.flatpickr = flatpickr;
|
|
6632
7083
|
}
|
|
6633
7084
|
var flatpickr_min = "";
|
|
6634
|
-
const _sfc_main$
|
|
7085
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
6635
7086
|
props: {
|
|
6636
7087
|
disabled: { type: Boolean, default: false },
|
|
6637
7088
|
label: { default: "" },
|
|
@@ -6654,7 +7105,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6654
7105
|
};
|
|
6655
7106
|
}
|
|
6656
7107
|
});
|
|
6657
|
-
const _sfc_main$
|
|
7108
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
6658
7109
|
props: {
|
|
6659
7110
|
tag: { default: "div" },
|
|
6660
7111
|
text: { default: "" }
|
|
@@ -6672,8 +7123,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6672
7123
|
};
|
|
6673
7124
|
}
|
|
6674
7125
|
});
|
|
6675
|
-
const _hoisted_1$
|
|
6676
|
-
const _sfc_main$
|
|
7126
|
+
const _hoisted_1$o = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
|
|
7127
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
6677
7128
|
props: {
|
|
6678
7129
|
type: null,
|
|
6679
7130
|
help: { default: "" },
|
|
@@ -6704,7 +7155,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6704
7155
|
});
|
|
6705
7156
|
return (_ctx, _cache) => {
|
|
6706
7157
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6707
|
-
createVNode(_sfc_main$
|
|
7158
|
+
createVNode(_sfc_main$t, {
|
|
6708
7159
|
class: "block",
|
|
6709
7160
|
id: `${unref(uuid)}-label`,
|
|
6710
7161
|
for: unref(uuid),
|
|
@@ -6732,8 +7183,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6732
7183
|
type: __props.type,
|
|
6733
7184
|
value: __props.modelValue,
|
|
6734
7185
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
6735
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
6736
|
-
createVNode(_sfc_main$
|
|
7186
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$o),
|
|
7187
|
+
createVNode(_sfc_main$s, {
|
|
6737
7188
|
id: `${unref(uuid)}-help`,
|
|
6738
7189
|
text: __props.help
|
|
6739
7190
|
}, null, 8, ["id", "text"])
|
|
@@ -6741,7 +7192,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6741
7192
|
};
|
|
6742
7193
|
}
|
|
6743
7194
|
});
|
|
6744
|
-
const _sfc_main$
|
|
7195
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
6745
7196
|
props: {
|
|
6746
7197
|
modelValue: null,
|
|
6747
7198
|
startDate: { default: 0 },
|
|
@@ -6753,7 +7204,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6753
7204
|
const props = __props;
|
|
6754
7205
|
const attrs = useAttrs();
|
|
6755
7206
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
6756
|
-
const
|
|
7207
|
+
const updateModelValue3 = (value) => {
|
|
6757
7208
|
emits("update:modelValue", value);
|
|
6758
7209
|
};
|
|
6759
7210
|
onMounted(() => {
|
|
@@ -6764,12 +7215,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6764
7215
|
minDate: props.startDate,
|
|
6765
7216
|
onClose: (selectedDates) => {
|
|
6766
7217
|
if (selectedDates.length === 2) {
|
|
6767
|
-
|
|
7218
|
+
updateModelValue3({
|
|
6768
7219
|
minDate: selectedDates[0].setUTCHours(0, 0, 0, 0) / 1e3,
|
|
6769
7220
|
maxDate: Math.floor(selectedDates[1].setUTCHours(23, 59, 59, 999) / 1e3)
|
|
6770
7221
|
});
|
|
6771
7222
|
} else if (selectedDates.length === 0) {
|
|
6772
|
-
|
|
7223
|
+
updateModelValue3({
|
|
6773
7224
|
minDate: 0,
|
|
6774
7225
|
maxDate: 0
|
|
6775
7226
|
});
|
|
@@ -6778,7 +7229,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6778
7229
|
});
|
|
6779
7230
|
});
|
|
6780
7231
|
return (_ctx, _cache) => {
|
|
6781
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7232
|
+
return openBlock(), createBlock(_sfc_main$r, {
|
|
6782
7233
|
type: "text",
|
|
6783
7234
|
placeholder: "mm-dd-yyyy range",
|
|
6784
7235
|
id: unref(uuid),
|
|
@@ -6788,15 +7239,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
6788
7239
|
};
|
|
6789
7240
|
}
|
|
6790
7241
|
});
|
|
6791
|
-
const _hoisted_1$
|
|
6792
|
-
const _hoisted_2$
|
|
7242
|
+
const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "value"];
|
|
7243
|
+
const _hoisted_2$i = {
|
|
6793
7244
|
key: 0,
|
|
6794
7245
|
value: "",
|
|
6795
7246
|
disabled: "",
|
|
6796
7247
|
selected: ""
|
|
6797
7248
|
};
|
|
6798
|
-
const _hoisted_3$
|
|
6799
|
-
const _sfc_main$
|
|
7249
|
+
const _hoisted_3$h = ["value", "textContent"];
|
|
7250
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
6800
7251
|
props: {
|
|
6801
7252
|
design: { default: "standard" },
|
|
6802
7253
|
label: { default: "" },
|
|
@@ -6818,7 +7269,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6818
7269
|
});
|
|
6819
7270
|
return (_ctx, _cache) => {
|
|
6820
7271
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6821
|
-
createVNode(_sfc_main$
|
|
7272
|
+
createVNode(_sfc_main$t, {
|
|
6822
7273
|
id: `${unref(uuid)}-label`,
|
|
6823
7274
|
for: unref(uuid),
|
|
6824
7275
|
label: __props.label
|
|
@@ -6834,16 +7285,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6834
7285
|
emit("update:modelValue", $event.target.value);
|
|
6835
7286
|
}
|
|
6836
7287
|
})), [
|
|
6837
|
-
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$
|
|
7288
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$i, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
|
|
6838
7289
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
6839
7290
|
return openBlock(), createElementBlock("option", {
|
|
6840
7291
|
value: option.value,
|
|
6841
7292
|
textContent: toDisplayString(option.label),
|
|
6842
7293
|
key: option.value
|
|
6843
|
-
}, null, 8, _hoisted_3$
|
|
7294
|
+
}, null, 8, _hoisted_3$h);
|
|
6844
7295
|
}), 128))
|
|
6845
|
-
], 16, _hoisted_1$
|
|
6846
|
-
createVNode(_sfc_main$
|
|
7296
|
+
], 16, _hoisted_1$n),
|
|
7297
|
+
createVNode(_sfc_main$s, {
|
|
6847
7298
|
id: `${unref(uuid)}-help`,
|
|
6848
7299
|
text: __props.help
|
|
6849
7300
|
}, null, 8, ["id", "text"])
|
|
@@ -6851,11 +7302,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
6851
7302
|
};
|
|
6852
7303
|
}
|
|
6853
7304
|
});
|
|
6854
|
-
const _hoisted_1$
|
|
6855
|
-
const _hoisted_2$
|
|
6856
|
-
const _hoisted_3$
|
|
6857
|
-
const _hoisted_4$
|
|
6858
|
-
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({
|
|
6859
7310
|
props: {
|
|
6860
7311
|
dateRange: null,
|
|
6861
7312
|
sortDir: null,
|
|
@@ -6877,12 +7328,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6877
7328
|
emits("date-range-changed", dateRange2);
|
|
6878
7329
|
};
|
|
6879
7330
|
return (_ctx, _cache) => {
|
|
6880
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6881
|
-
createElementVNode("div", _hoisted_2$
|
|
6882
|
-
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)
|
|
6883
7334
|
]),
|
|
6884
|
-
createElementVNode("div", _hoisted_4$
|
|
6885
|
-
createVNode(_sfc_main$
|
|
7335
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
7336
|
+
createVNode(_sfc_main$p, {
|
|
6886
7337
|
modelValue: sortDir.value,
|
|
6887
7338
|
"onUpdate:modelValue": [
|
|
6888
7339
|
_cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
@@ -6890,7 +7341,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6890
7341
|
],
|
|
6891
7342
|
options: sortOptions
|
|
6892
7343
|
}, null, 8, ["modelValue"]),
|
|
6893
|
-
createVNode(_sfc_main$
|
|
7344
|
+
createVNode(_sfc_main$q, {
|
|
6894
7345
|
modelValue: dateRange.value,
|
|
6895
7346
|
"onUpdate:modelValue": [
|
|
6896
7347
|
_cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
|
|
@@ -6903,9 +7354,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6903
7354
|
};
|
|
6904
7355
|
}
|
|
6905
7356
|
});
|
|
6906
|
-
const _hoisted_1$
|
|
6907
|
-
const _hoisted_2$
|
|
6908
|
-
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", {
|
|
6909
7360
|
class: "mr-3 h-5 w-5",
|
|
6910
7361
|
fill: "currentColor",
|
|
6911
7362
|
viewBox: "0 0 20 20"
|
|
@@ -6916,10 +7367,10 @@ const _hoisted_3$e = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
6916
7367
|
"clip-rule": "evenodd"
|
|
6917
7368
|
})
|
|
6918
7369
|
], -1);
|
|
6919
|
-
const _hoisted_4$
|
|
6920
|
-
const _hoisted_5$
|
|
6921
|
-
_hoisted_3$
|
|
6922
|
-
_hoisted_4$
|
|
7370
|
+
const _hoisted_4$d = /* @__PURE__ */ createTextVNode(" Previous ");
|
|
7371
|
+
const _hoisted_5$c = [
|
|
7372
|
+
_hoisted_3$f,
|
|
7373
|
+
_hoisted_4$d
|
|
6923
7374
|
];
|
|
6924
7375
|
const _hoisted_6$b = { class: "hidden md:flex" };
|
|
6925
7376
|
const _hoisted_7$a = ["textContent", "onClick"];
|
|
@@ -6940,7 +7391,7 @@ const _hoisted_11$5 = [
|
|
|
6940
7391
|
_hoisted_9$8,
|
|
6941
7392
|
_hoisted_10$8
|
|
6942
7393
|
];
|
|
6943
|
-
const _sfc_main$
|
|
7394
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
6944
7395
|
props: {
|
|
6945
7396
|
modelValue: null
|
|
6946
7397
|
},
|
|
@@ -6973,8 +7424,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6973
7424
|
return shortcuts;
|
|
6974
7425
|
});
|
|
6975
7426
|
return (_ctx, _cache) => {
|
|
6976
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6977
|
-
createElementVNode("div", _hoisted_2$
|
|
7427
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
7428
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
6978
7429
|
createElementVNode("a", {
|
|
6979
7430
|
href: "#",
|
|
6980
7431
|
class: normalizeClass([
|
|
@@ -6982,7 +7433,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6982
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"
|
|
6983
7434
|
]),
|
|
6984
7435
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(__props.modelValue.page - 1), ["prevent"]))
|
|
6985
|
-
}, _hoisted_5$
|
|
7436
|
+
}, _hoisted_5$c, 2)
|
|
6986
7437
|
]),
|
|
6987
7438
|
createElementVNode("div", _hoisted_6$b, [
|
|
6988
7439
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pageShortcuts), (i) => {
|
|
@@ -7012,11 +7463,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7012
7463
|
};
|
|
7013
7464
|
}
|
|
7014
7465
|
});
|
|
7015
|
-
const _hoisted_1$
|
|
7466
|
+
const _hoisted_1$k = {
|
|
7016
7467
|
key: 0,
|
|
7017
7468
|
class: "shadow overflow-hidden sm:rounded-md border"
|
|
7018
7469
|
};
|
|
7019
|
-
const _sfc_main$
|
|
7470
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
7020
7471
|
props: {
|
|
7021
7472
|
refreshTrigger: { default: 0 },
|
|
7022
7473
|
reloadTrigger: { default: 0 },
|
|
@@ -7071,14 +7522,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7071
7522
|
loadAndRender(true);
|
|
7072
7523
|
return (_ctx, _cache) => {
|
|
7073
7524
|
return openBlock(), createElementBlock("div", null, [
|
|
7074
|
-
createVNode(_sfc_main$
|
|
7525
|
+
createVNode(_sfc_main$o, {
|
|
7075
7526
|
"date-range": dateRange.value,
|
|
7076
7527
|
"sort-dir": sortDir.value,
|
|
7077
7528
|
title: __props.title,
|
|
7078
7529
|
onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
7079
7530
|
onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
|
|
7080
7531
|
}, null, 8, ["date-range", "sort-dir", "title"]),
|
|
7081
|
-
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7532
|
+
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
7082
7533
|
createElementVNode("ul", null, [
|
|
7083
7534
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
|
|
7084
7535
|
return openBlock(), createElementBlock("li", {
|
|
@@ -7090,7 +7541,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7090
7541
|
}), 128))
|
|
7091
7542
|
])
|
|
7092
7543
|
])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
|
|
7093
|
-
hasContent.value ? (openBlock(), createBlock(_sfc_main$
|
|
7544
|
+
hasContent.value ? (openBlock(), createBlock(_sfc_main$n, {
|
|
7094
7545
|
key: 2,
|
|
7095
7546
|
modelValue: pagination.value,
|
|
7096
7547
|
"onUpdate:modelValue": [
|
|
@@ -7102,8 +7553,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7102
7553
|
};
|
|
7103
7554
|
}
|
|
7104
7555
|
});
|
|
7105
|
-
const _hoisted_1$
|
|
7106
|
-
const _sfc_main$
|
|
7556
|
+
const _hoisted_1$j = ["href"];
|
|
7557
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
7107
7558
|
props: {
|
|
7108
7559
|
propsData: null,
|
|
7109
7560
|
attribute: null
|
|
@@ -7114,15 +7565,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
7114
7565
|
href: __props.propsData[__props.attribute]
|
|
7115
7566
|
}, [
|
|
7116
7567
|
createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
|
|
7117
|
-
], 8, _hoisted_1$
|
|
7568
|
+
], 8, _hoisted_1$j);
|
|
7118
7569
|
};
|
|
7119
7570
|
}
|
|
7120
7571
|
});
|
|
7121
|
-
const _hoisted_1$
|
|
7122
|
-
const _hoisted_2$
|
|
7123
|
-
const _hoisted_3$
|
|
7124
|
-
const _hoisted_4$
|
|
7125
|
-
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" };
|
|
7126
7577
|
const _hoisted_6$a = ["innerHTML"];
|
|
7127
7578
|
const _hoisted_7$9 = { class: "ml-4 flex-shrink-0 flex" };
|
|
7128
7579
|
const _hoisted_8$7 = ["onClick"];
|
|
@@ -7140,7 +7591,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7140
7591
|
const _hoisted_10$7 = [
|
|
7141
7592
|
_hoisted_9$7
|
|
7142
7593
|
];
|
|
7143
|
-
const _sfc_main$
|
|
7594
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
7144
7595
|
setup(__props) {
|
|
7145
7596
|
const flashes = ref([]);
|
|
7146
7597
|
const flashTypeBorderClass = {
|
|
@@ -7195,7 +7646,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7195
7646
|
}
|
|
7196
7647
|
});
|
|
7197
7648
|
return (_ctx, _cache) => {
|
|
7198
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7649
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
7199
7650
|
createVNode(TransitionGroup, {
|
|
7200
7651
|
tag: "div",
|
|
7201
7652
|
class: "max-w-sm w-full",
|
|
@@ -7212,10 +7663,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7212
7663
|
key: flash.message,
|
|
7213
7664
|
class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
|
|
7214
7665
|
}, [
|
|
7215
|
-
createElementVNode("div", _hoisted_2$
|
|
7216
|
-
createElementVNode("div", _hoisted_3$
|
|
7217
|
-
createElementVNode("div", _hoisted_4$
|
|
7218
|
-
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, [
|
|
7219
7670
|
createElementVNode("p", {
|
|
7220
7671
|
class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
|
|
7221
7672
|
innerHTML: flash.message
|
|
@@ -7287,7 +7738,7 @@ function render$2(_ctx, _cache) {
|
|
|
7287
7738
|
})
|
|
7288
7739
|
]);
|
|
7289
7740
|
}
|
|
7290
|
-
function render$
|
|
7741
|
+
function render$117(_ctx, _cache) {
|
|
7291
7742
|
return openBlock(), createBlock("svg", {
|
|
7292
7743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7293
7744
|
fill: "none",
|
|
@@ -7319,14 +7770,14 @@ function render(_ctx, _cache) {
|
|
|
7319
7770
|
})
|
|
7320
7771
|
]);
|
|
7321
7772
|
}
|
|
7322
|
-
const _hoisted_1$
|
|
7323
|
-
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", {
|
|
7324
7775
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
7325
7776
|
"aria-hidden": "true"
|
|
7326
7777
|
}, "\u200B", -1);
|
|
7327
|
-
const _hoisted_3$
|
|
7328
|
-
const _hoisted_4$
|
|
7329
|
-
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);
|
|
7330
7781
|
const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
|
|
7331
7782
|
const _hoisted_7$8 = { class: "mt-3 sm:mt-0 sm:text-left" };
|
|
7332
7783
|
const _hoisted_8$6 = { class: "mt-2" };
|
|
@@ -7335,7 +7786,7 @@ const _hoisted_9$6 = {
|
|
|
7335
7786
|
class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
|
|
7336
7787
|
};
|
|
7337
7788
|
const _hoisted_10$6 = ["textContent", "disabled"];
|
|
7338
|
-
const _sfc_main$
|
|
7789
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
7339
7790
|
props: {
|
|
7340
7791
|
destructive: { type: Boolean, default: false },
|
|
7341
7792
|
disabled: { type: Boolean, default: false },
|
|
@@ -7348,7 +7799,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7348
7799
|
const submit = () => {
|
|
7349
7800
|
emit("submit");
|
|
7350
7801
|
};
|
|
7351
|
-
const
|
|
7802
|
+
const updateModelValue3 = (value) => {
|
|
7352
7803
|
emit("update:modelValue", value);
|
|
7353
7804
|
};
|
|
7354
7805
|
return (_ctx, _cache) => {
|
|
@@ -7361,11 +7812,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7361
7812
|
as: "div",
|
|
7362
7813
|
static: "",
|
|
7363
7814
|
class: "fixed z-10 inset-0 overflow-y-auto",
|
|
7364
|
-
onClose: _cache[3] || (_cache[3] = ($event) =>
|
|
7815
|
+
onClose: _cache[3] || (_cache[3] = ($event) => updateModelValue3(false)),
|
|
7365
7816
|
open: __props.modelValue
|
|
7366
7817
|
}, {
|
|
7367
7818
|
default: withCtx(() => [
|
|
7368
|
-
createElementVNode("div", _hoisted_1$
|
|
7819
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
7369
7820
|
createVNode(unref(TransitionChild), {
|
|
7370
7821
|
as: "template",
|
|
7371
7822
|
enter: "ease-out duration-300",
|
|
@@ -7380,7 +7831,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7380
7831
|
]),
|
|
7381
7832
|
_: 1
|
|
7382
7833
|
}),
|
|
7383
|
-
_hoisted_2$
|
|
7834
|
+
_hoisted_2$e,
|
|
7384
7835
|
createVNode(unref(TransitionChild), {
|
|
7385
7836
|
as: "template",
|
|
7386
7837
|
enter: "ease-out duration-300",
|
|
@@ -7391,14 +7842,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7391
7842
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
7392
7843
|
}, {
|
|
7393
7844
|
default: withCtx(() => [
|
|
7394
|
-
createElementVNode("div", _hoisted_3$
|
|
7395
|
-
createElementVNode("div", _hoisted_4$
|
|
7845
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
7846
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
7396
7847
|
createElementVNode("button", {
|
|
7397
7848
|
type: "button",
|
|
7398
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",
|
|
7399
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
7850
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
7400
7851
|
}, [
|
|
7401
|
-
_hoisted_5$
|
|
7852
|
+
_hoisted_5$a,
|
|
7402
7853
|
createVNode(unref(render), {
|
|
7403
7854
|
class: "h-6 w-6",
|
|
7404
7855
|
"aria-hidden": "true"
|
|
@@ -7428,7 +7879,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7428
7879
|
createElementVNode("button", {
|
|
7429
7880
|
type: "button",
|
|
7430
7881
|
class: "xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
|
|
7431
|
-
onClick: _cache[2] || (_cache[2] = ($event) =>
|
|
7882
|
+
onClick: _cache[2] || (_cache[2] = ($event) => updateModelValue3(false)),
|
|
7432
7883
|
ref: "cancelButtonRef"
|
|
7433
7884
|
}, " Cancel ", 512)
|
|
7434
7885
|
])) : createCommentVNode("", true),
|
|
@@ -7447,11 +7898,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7447
7898
|
};
|
|
7448
7899
|
}
|
|
7449
7900
|
});
|
|
7450
|
-
const _hoisted_1$
|
|
7901
|
+
const _hoisted_1$g = {
|
|
7451
7902
|
key: 0,
|
|
7452
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"
|
|
7453
7904
|
};
|
|
7454
|
-
const _hoisted_2$
|
|
7905
|
+
const _hoisted_2$d = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
|
|
7455
7906
|
/* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
|
|
7456
7907
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
7457
7908
|
width: "129px",
|
|
@@ -7529,7 +7980,7 @@ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
|
|
|
7529
7980
|
])
|
|
7530
7981
|
])
|
|
7531
7982
|
], -1);
|
|
7532
|
-
const _sfc_main$
|
|
7983
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
7533
7984
|
setup(__props) {
|
|
7534
7985
|
const idx = ref(0);
|
|
7535
7986
|
const loading = ref(false);
|
|
@@ -7571,9 +8022,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7571
8022
|
});
|
|
7572
8023
|
});
|
|
7573
8024
|
return (_ctx, _cache) => {
|
|
7574
|
-
return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8025
|
+
return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
7575
8026
|
createElementVNode("div", null, [
|
|
7576
|
-
_hoisted_2$
|
|
8027
|
+
_hoisted_2$d,
|
|
7577
8028
|
withDirectives(createElementVNode("div", null, [
|
|
7578
8029
|
createVNode(Transition, {
|
|
7579
8030
|
appear: "",
|
|
@@ -7601,11 +8052,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
7601
8052
|
};
|
|
7602
8053
|
}
|
|
7603
8054
|
});
|
|
7604
|
-
const _hoisted_1$
|
|
7605
|
-
const _hoisted_2$
|
|
7606
|
-
const _hoisted_3$
|
|
7607
|
-
const _hoisted_4$
|
|
7608
|
-
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" };
|
|
7609
8060
|
const _hoisted_6$8 = ["src"];
|
|
7610
8061
|
const _hoisted_7$7 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
|
|
7611
8062
|
const _hoisted_8$5 = { class: "px-2 space-y-1" };
|
|
@@ -7633,7 +8084,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
|
|
|
7633
8084
|
const _hoisted_27 = ["href"];
|
|
7634
8085
|
const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
|
|
7635
8086
|
const _hoisted_29 = { class: "mx-auto" };
|
|
7636
|
-
const _sfc_main$
|
|
8087
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
7637
8088
|
props: {
|
|
7638
8089
|
activeURL: { default: "" },
|
|
7639
8090
|
iconURL: null,
|
|
@@ -7648,7 +8099,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7648
8099
|
};
|
|
7649
8100
|
return (_ctx, _cache) => {
|
|
7650
8101
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7651
|
-
createElementVNode("div", _hoisted_1$
|
|
8102
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
7652
8103
|
createVNode(unref(TransitionRoot), {
|
|
7653
8104
|
as: "template",
|
|
7654
8105
|
show: sidebarOpen.value
|
|
@@ -7686,7 +8137,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7686
8137
|
"leave-to": "-translate-x-full"
|
|
7687
8138
|
}, {
|
|
7688
8139
|
default: withCtx(() => [
|
|
7689
|
-
createElementVNode("div", _hoisted_2$
|
|
8140
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
7690
8141
|
createVNode(unref(TransitionChild), {
|
|
7691
8142
|
as: "template",
|
|
7692
8143
|
enter: "ease-in-out duration-300",
|
|
@@ -7697,12 +8148,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7697
8148
|
"leave-to": "opacity-0"
|
|
7698
8149
|
}, {
|
|
7699
8150
|
default: withCtx(() => [
|
|
7700
|
-
createElementVNode("div", _hoisted_3$
|
|
8151
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
7701
8152
|
createElementVNode("button", {
|
|
7702
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",
|
|
7703
8154
|
onClick: _cache[0] || (_cache[0] = ($event) => sidebarOpen.value = false)
|
|
7704
8155
|
}, [
|
|
7705
|
-
_hoisted_4$
|
|
8156
|
+
_hoisted_4$a,
|
|
7706
8157
|
createVNode(unref(render), {
|
|
7707
8158
|
class: "h-6 w-6 text-white",
|
|
7708
8159
|
"aria-hidden": "true"
|
|
@@ -7712,7 +8163,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7712
8163
|
]),
|
|
7713
8164
|
_: 1
|
|
7714
8165
|
}),
|
|
7715
|
-
createElementVNode("div", _hoisted_5$
|
|
8166
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
7716
8167
|
createElementVNode("img", {
|
|
7717
8168
|
class: "w-auto h-12",
|
|
7718
8169
|
src: __props.iconURL,
|
|
@@ -7873,8 +8324,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
7873
8324
|
])
|
|
7874
8325
|
])
|
|
7875
8326
|
]),
|
|
7876
|
-
createVNode(_sfc_main$
|
|
7877
|
-
createVNode(_sfc_main$
|
|
8327
|
+
createVNode(_sfc_main$k),
|
|
8328
|
+
createVNode(_sfc_main$i)
|
|
7878
8329
|
], 64);
|
|
7879
8330
|
};
|
|
7880
8331
|
}
|
|
@@ -7889,7 +8340,7 @@ function throttle(func, timeout = 100) {
|
|
|
7889
8340
|
}
|
|
7890
8341
|
};
|
|
7891
8342
|
}
|
|
7892
|
-
const _sfc_main$
|
|
8343
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
7893
8344
|
props: {
|
|
7894
8345
|
as: { default: "div" },
|
|
7895
8346
|
position: { default: "auto" }
|
|
@@ -8085,26 +8536,26 @@ var _export_sfc = (sfc, props) => {
|
|
|
8085
8536
|
}
|
|
8086
8537
|
return target;
|
|
8087
8538
|
};
|
|
8088
|
-
const _sfc_main$
|
|
8089
|
-
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" };
|
|
8090
8541
|
function _sfc_render(_ctx, _cache) {
|
|
8091
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8542
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
8092
8543
|
renderSlot(_ctx.$slots, "default")
|
|
8093
8544
|
]);
|
|
8094
8545
|
}
|
|
8095
|
-
var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8096
|
-
const _hoisted_1$
|
|
8097
|
-
const _hoisted_2$
|
|
8098
|
-
const _hoisted_3$
|
|
8099
|
-
const _hoisted_4$
|
|
8100
|
-
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" };
|
|
8101
8552
|
const _hoisted_6$7 = { class: "flex items-center justify-between" };
|
|
8102
8553
|
const _hoisted_7$6 = { class: "ml-3 h-7 flex items-center" };
|
|
8103
8554
|
const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
|
|
8104
8555
|
const _hoisted_9$4 = { class: "mt-1" };
|
|
8105
8556
|
const _hoisted_10$4 = ["textContent"];
|
|
8106
8557
|
const _hoisted_11$3 = { class: "relative flex-1 py-6 px-4 sm:px-6" };
|
|
8107
|
-
const _sfc_main$
|
|
8558
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
8108
8559
|
props: {
|
|
8109
8560
|
header: null,
|
|
8110
8561
|
description: null,
|
|
@@ -8133,9 +8584,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8133
8584
|
open: __props.modelValue
|
|
8134
8585
|
}, {
|
|
8135
8586
|
default: withCtx(() => [
|
|
8136
|
-
createElementVNode("div", _hoisted_1$
|
|
8587
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
8137
8588
|
createVNode(unref(DialogOverlay), { class: "absolute inset-0" }),
|
|
8138
|
-
createElementVNode("div", _hoisted_2$
|
|
8589
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
8139
8590
|
createVNode(unref(TransitionChild), {
|
|
8140
8591
|
as: "template",
|
|
8141
8592
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -8146,9 +8597,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8146
8597
|
"leave-to": "translate-x-full"
|
|
8147
8598
|
}, {
|
|
8148
8599
|
default: withCtx(() => [
|
|
8149
|
-
createElementVNode("div", _hoisted_3$
|
|
8150
|
-
createElementVNode("div", _hoisted_4$
|
|
8151
|
-
createElementVNode("div", _hoisted_5$
|
|
8600
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
8601
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
8602
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
8152
8603
|
createElementVNode("div", _hoisted_6$7, [
|
|
8153
8604
|
createVNode(unref(DialogTitle), {
|
|
8154
8605
|
as: "h3",
|
|
@@ -8195,28 +8646,28 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
8195
8646
|
};
|
|
8196
8647
|
}
|
|
8197
8648
|
});
|
|
8198
|
-
const _hoisted_1$
|
|
8199
|
-
const _hoisted_2$
|
|
8200
|
-
const _hoisted_3$
|
|
8201
|
-
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({
|
|
8202
8653
|
props: {
|
|
8203
8654
|
as: { default: "span" },
|
|
8204
8655
|
position: { default: "auto" }
|
|
8205
8656
|
},
|
|
8206
8657
|
setup(__props) {
|
|
8207
8658
|
return (_ctx, _cache) => {
|
|
8208
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8659
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
8209
8660
|
position: __props.position,
|
|
8210
8661
|
as: __props.as
|
|
8211
8662
|
}, {
|
|
8212
8663
|
button: withCtx(() => [
|
|
8213
|
-
createElementVNode("div", _hoisted_1$
|
|
8664
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
8214
8665
|
createVNode(unref(render$4)),
|
|
8215
|
-
_hoisted_2$
|
|
8666
|
+
_hoisted_2$a
|
|
8216
8667
|
])
|
|
8217
8668
|
]),
|
|
8218
8669
|
default: withCtx(() => [
|
|
8219
|
-
createElementVNode("div", _hoisted_3$
|
|
8670
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
8220
8671
|
renderSlot(_ctx.$slots, "default")
|
|
8221
8672
|
])
|
|
8222
8673
|
]),
|
|
@@ -8225,11 +8676,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8225
8676
|
};
|
|
8226
8677
|
}
|
|
8227
8678
|
});
|
|
8228
|
-
const _hoisted_1$
|
|
8229
|
-
const _hoisted_2$
|
|
8230
|
-
const _hoisted_3$
|
|
8231
|
-
const _hoisted_4$
|
|
8232
|
-
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" };
|
|
8233
8684
|
const _hoisted_6$6 = ["src"];
|
|
8234
8685
|
const _hoisted_7$5 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
|
|
8235
8686
|
const _hoisted_8$3 = ["href", "aria-current"];
|
|
@@ -8250,7 +8701,7 @@ const _hoisted_22$1 = { class: "mt-3 space-y-1" };
|
|
|
8250
8701
|
const _hoisted_23$1 = ["href"];
|
|
8251
8702
|
const _hoisted_24$1 = { class: "mx-auto sm:px-6 lg:px-8" };
|
|
8252
8703
|
const _hoisted_25 = { class: "px-4 py-8 sm:px-0" };
|
|
8253
|
-
const _sfc_main$
|
|
8704
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
8254
8705
|
props: {
|
|
8255
8706
|
activeURL: { default: "" },
|
|
8256
8707
|
currentUser: null,
|
|
@@ -8265,16 +8716,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8265
8716
|
};
|
|
8266
8717
|
return (_ctx, _cache) => {
|
|
8267
8718
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
8268
|
-
createElementVNode("div", _hoisted_1$
|
|
8719
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
8269
8720
|
createVNode(unref(Disclosure), {
|
|
8270
8721
|
as: "nav",
|
|
8271
8722
|
class: "bg-white shadow-sm"
|
|
8272
8723
|
}, {
|
|
8273
8724
|
default: withCtx(({ open }) => [
|
|
8274
|
-
createElementVNode("div", _hoisted_2$
|
|
8275
|
-
createElementVNode("div", _hoisted_3$
|
|
8276
|
-
createElementVNode("div", _hoisted_4$
|
|
8277
|
-
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, [
|
|
8278
8729
|
createElementVNode("img", {
|
|
8279
8730
|
class: "block h-8 w-auto",
|
|
8280
8731
|
src: __props.iconURL,
|
|
@@ -8305,7 +8756,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8305
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" }, {
|
|
8306
8757
|
default: withCtx(() => [
|
|
8307
8758
|
_hoisted_10$3,
|
|
8308
|
-
createVNode(unref(render$
|
|
8759
|
+
createVNode(unref(render$117), { class: "text-gray-500 h-8 w-8 rounded-full" })
|
|
8309
8760
|
]),
|
|
8310
8761
|
_: 1
|
|
8311
8762
|
})
|
|
@@ -8384,7 +8835,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8384
8835
|
createElementVNode("div", _hoisted_16$1, [
|
|
8385
8836
|
createElementVNode("div", _hoisted_17$1, [
|
|
8386
8837
|
createElementVNode("div", _hoisted_18$1, [
|
|
8387
|
-
createVNode(unref(render$
|
|
8838
|
+
createVNode(unref(render$117), { class: "text-gray-500 h-10 w-10 rounded-full" })
|
|
8388
8839
|
]),
|
|
8389
8840
|
createElementVNode("div", _hoisted_19$1, [
|
|
8390
8841
|
__props.currentUser.name ? (openBlock(), createElementBlock("div", {
|
|
@@ -8423,23 +8874,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
8423
8874
|
])
|
|
8424
8875
|
])
|
|
8425
8876
|
]),
|
|
8426
|
-
createVNode(_sfc_main$
|
|
8427
|
-
createVNode(_sfc_main$
|
|
8877
|
+
createVNode(_sfc_main$k),
|
|
8878
|
+
createVNode(_sfc_main$i)
|
|
8428
8879
|
], 64);
|
|
8429
8880
|
};
|
|
8430
8881
|
}
|
|
8431
8882
|
});
|
|
8432
|
-
const _hoisted_1$
|
|
8433
|
-
const _hoisted_2$
|
|
8434
|
-
const _hoisted_3$
|
|
8435
|
-
const _hoisted_4$
|
|
8436
|
-
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" };
|
|
8437
8888
|
const _hoisted_6$5 = ["textContent"];
|
|
8438
8889
|
const _hoisted_7$4 = { class: "bg-white divide-y divide-gray-200" };
|
|
8439
8890
|
const _hoisted_8$2 = ["textContent"];
|
|
8440
8891
|
const _hoisted_9$2 = { key: 0 };
|
|
8441
8892
|
const _hoisted_10$2 = ["colspan"];
|
|
8442
|
-
const _sfc_main$
|
|
8893
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
8443
8894
|
props: {
|
|
8444
8895
|
tableData: null
|
|
8445
8896
|
},
|
|
@@ -8455,11 +8906,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8455
8906
|
return "";
|
|
8456
8907
|
};
|
|
8457
8908
|
return (_ctx, _cache) => {
|
|
8458
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8459
|
-
createElementVNode("div", _hoisted_2$
|
|
8460
|
-
createElementVNode("div", _hoisted_3$
|
|
8461
|
-
createElementVNode("div", _hoisted_4$
|
|
8462
|
-
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, [
|
|
8463
8914
|
createElementVNode("thead", null, [
|
|
8464
8915
|
createElementVNode("tr", null, [
|
|
8465
8916
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.columns, (col, idx) => {
|
|
@@ -8509,14 +8960,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
8509
8960
|
};
|
|
8510
8961
|
}
|
|
8511
8962
|
});
|
|
8512
|
-
const _hoisted_1$
|
|
8513
|
-
const _hoisted_2$
|
|
8514
|
-
const _hoisted_3$
|
|
8515
|
-
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 = {
|
|
8516
8967
|
key: 0,
|
|
8517
8968
|
class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
|
|
8518
8969
|
};
|
|
8519
|
-
const _hoisted_5$
|
|
8970
|
+
const _hoisted_5$5 = {
|
|
8520
8971
|
key: 1,
|
|
8521
8972
|
class: "relative flex items-center justify-center"
|
|
8522
8973
|
};
|
|
@@ -8544,7 +8995,7 @@ const _hoisted_11$1 = {
|
|
|
8544
8995
|
const _hoisted_12$1 = ["textContent"];
|
|
8545
8996
|
const _hoisted_13$1 = { class: "ml-3 inline-flex rounded-md shadow-sm" };
|
|
8546
8997
|
const _hoisted_14$1 = ["textContent"];
|
|
8547
|
-
const _sfc_main$
|
|
8998
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
8548
8999
|
props: {
|
|
8549
9000
|
hideActions: { type: Boolean, default: false },
|
|
8550
9001
|
hidePrevious: { type: Boolean, default: false },
|
|
@@ -8563,12 +9014,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
8563
9014
|
};
|
|
8564
9015
|
return (_ctx, _cache) => {
|
|
8565
9016
|
return openBlock(), createElementBlock("div", null, [
|
|
8566
|
-
createElementVNode("nav", _hoisted_1$
|
|
8567
|
-
createElementVNode("p", _hoisted_2$
|
|
8568
|
-
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, [
|
|
8569
9020
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.total, (index) => {
|
|
8570
9021
|
return openBlock(), createElementBlock("li", { key: index }, [
|
|
8571
|
-
__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))
|
|
8572
9023
|
]);
|
|
8573
9024
|
}), 128))
|
|
8574
9025
|
])
|
|
@@ -8595,17 +9046,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
8595
9046
|
};
|
|
8596
9047
|
}
|
|
8597
9048
|
});
|
|
8598
|
-
const _hoisted_1$
|
|
8599
|
-
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 = {
|
|
8600
9051
|
key: 0,
|
|
8601
9052
|
class: "w-full max-w-lg lg:max-w-xs"
|
|
8602
9053
|
};
|
|
8603
|
-
const _hoisted_3$
|
|
9054
|
+
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("label", {
|
|
8604
9055
|
for: "search",
|
|
8605
9056
|
class: "sr-only"
|
|
8606
9057
|
}, "Search", -1);
|
|
8607
|
-
const _hoisted_4$
|
|
8608
|
-
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" }, [
|
|
8609
9060
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
8610
9061
|
class: "w-5 h-5 text-gray-400",
|
|
8611
9062
|
fill: "currentColor",
|
|
@@ -8678,7 +9129,7 @@ const _hoisted_21 = ["onClick"];
|
|
|
8678
9129
|
const _hoisted_22 = ["textContent"];
|
|
8679
9130
|
const _hoisted_23 = { key: 0 };
|
|
8680
9131
|
const _hoisted_24 = ["colspan"];
|
|
8681
|
-
const _sfc_main$
|
|
9132
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
8682
9133
|
props: {
|
|
8683
9134
|
clickable: { type: Boolean, default: false },
|
|
8684
9135
|
loader: { type: Boolean, default: true },
|
|
@@ -8762,11 +9213,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8762
9213
|
loadAndRender();
|
|
8763
9214
|
return (_ctx, _cache) => {
|
|
8764
9215
|
return openBlock(), createElementBlock("div", null, [
|
|
8765
|
-
createElementVNode("div", _hoisted_1$
|
|
8766
|
-
__props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8767
|
-
_hoisted_3$
|
|
8768
|
-
createElementVNode("div", _hoisted_4$
|
|
8769
|
-
_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,
|
|
8770
9221
|
withDirectives(createElementVNode("input", {
|
|
8771
9222
|
class: "pl-10",
|
|
8772
9223
|
type: "search",
|
|
@@ -8784,7 +9235,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8784
9235
|
])
|
|
8785
9236
|
])) : createCommentVNode("", true),
|
|
8786
9237
|
__props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
8787
|
-
createVNode(_sfc_main$
|
|
9238
|
+
createVNode(_sfc_main$q, {
|
|
8788
9239
|
modelValue: dateRange.value,
|
|
8789
9240
|
"onUpdate:modelValue": [
|
|
8790
9241
|
_cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
|
|
@@ -8849,7 +9300,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8849
9300
|
])
|
|
8850
9301
|
])
|
|
8851
9302
|
]),
|
|
8852
|
-
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$
|
|
9303
|
+
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8853
9304
|
key: 0,
|
|
8854
9305
|
modelValue: pagination.value,
|
|
8855
9306
|
"onUpdate:modelValue": [
|
|
@@ -8861,13 +9312,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
8861
9312
|
};
|
|
8862
9313
|
}
|
|
8863
9314
|
});
|
|
8864
|
-
const _hoisted_1$
|
|
9315
|
+
const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("label", {
|
|
8865
9316
|
for: "tabs",
|
|
8866
9317
|
class: "sr-only"
|
|
8867
9318
|
}, "Select a tab", -1);
|
|
8868
|
-
const _hoisted_2$
|
|
8869
|
-
const _hoisted_3$
|
|
8870
|
-
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({
|
|
8871
9322
|
props: {
|
|
8872
9323
|
modelValue: null,
|
|
8873
9324
|
pillDesign: { type: Boolean, default: false },
|
|
@@ -8876,7 +9327,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8876
9327
|
emits: ["update:modelValue"],
|
|
8877
9328
|
setup(__props, { emit }) {
|
|
8878
9329
|
const props = __props;
|
|
8879
|
-
const
|
|
9330
|
+
const updateModelValue3 = (modelValue) => {
|
|
8880
9331
|
emit("update:modelValue", modelValue);
|
|
8881
9332
|
};
|
|
8882
9333
|
const classes = (currentTab, pastFirstTab) => {
|
|
@@ -8909,15 +9360,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8909
9360
|
createElementVNode("div", {
|
|
8910
9361
|
class: normalizeClass(["sm:hidden", { "mb-4": __props.pillDesign }])
|
|
8911
9362
|
}, [
|
|
8912
|
-
_hoisted_1$
|
|
9363
|
+
_hoisted_1$7,
|
|
8913
9364
|
createVNode(_component_Select, {
|
|
8914
9365
|
name: "tabs",
|
|
8915
9366
|
modelValue: __props.modelValue,
|
|
8916
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
9367
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => updateModelValue3($event)),
|
|
8917
9368
|
options: __props.tabs
|
|
8918
9369
|
}, null, 8, ["modelValue", "options"])
|
|
8919
9370
|
], 2),
|
|
8920
|
-
createElementVNode("div", _hoisted_2$
|
|
9371
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
8921
9372
|
createElementVNode("div", {
|
|
8922
9373
|
class: normalizeClass({ "border-b border-gray-200": unref(notPillDesign) })
|
|
8923
9374
|
}, [
|
|
@@ -8930,8 +9381,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8930
9381
|
class: normalizeClass(classes(tab.value, idx > 0)),
|
|
8931
9382
|
key: idx,
|
|
8932
9383
|
textContent: toDisplayString(tab.label),
|
|
8933
|
-
onClick: withModifiers(($event) =>
|
|
8934
|
-
}, null, 10, _hoisted_3$
|
|
9384
|
+
onClick: withModifiers(($event) => updateModelValue3(tab.value), ["prevent"])
|
|
9385
|
+
}, null, 10, _hoisted_3$5);
|
|
8935
9386
|
}), 128))
|
|
8936
9387
|
], 2)
|
|
8937
9388
|
], 2)
|
|
@@ -8940,8 +9391,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8940
9391
|
};
|
|
8941
9392
|
}
|
|
8942
9393
|
});
|
|
8943
|
-
const _hoisted_1$
|
|
8944
|
-
const _sfc_main$
|
|
9394
|
+
const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
|
|
9395
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
8945
9396
|
props: {
|
|
8946
9397
|
modelValue: { type: Boolean, default: false }
|
|
8947
9398
|
},
|
|
@@ -8957,7 +9408,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8957
9408
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event))
|
|
8958
9409
|
}, {
|
|
8959
9410
|
default: withCtx(() => [
|
|
8960
|
-
_hoisted_1$
|
|
9411
|
+
_hoisted_1$6,
|
|
8961
9412
|
createElementVNode("span", {
|
|
8962
9413
|
"aria-hidden": "true",
|
|
8963
9414
|
class: normalizeClass([
|
|
@@ -8971,11 +9422,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
8971
9422
|
};
|
|
8972
9423
|
}
|
|
8973
9424
|
});
|
|
8974
|
-
const _hoisted_1$
|
|
8975
|
-
const _hoisted_2$
|
|
8976
|
-
const _hoisted_3$
|
|
8977
|
-
const _hoisted_4$
|
|
8978
|
-
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({
|
|
8979
9430
|
props: {
|
|
8980
9431
|
label: { default: "" },
|
|
8981
9432
|
help: { default: "" },
|
|
@@ -8986,8 +9437,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
8986
9437
|
const attrs = useAttrs();
|
|
8987
9438
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
8988
9439
|
return (_ctx, _cache) => {
|
|
8989
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8990
|
-
createElementVNode("div", _hoisted_2$
|
|
9440
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
9441
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
8991
9442
|
createElementVNode("input", mergeProps({
|
|
8992
9443
|
id: unref(uuid),
|
|
8993
9444
|
"aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
|
|
@@ -8999,17 +9450,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
8999
9450
|
onChange: ($event) => {
|
|
9000
9451
|
emits("update:modelValue", $event.target.checked);
|
|
9001
9452
|
}
|
|
9002
|
-
}, _ctx.$attrs)), null, 16, _hoisted_3$
|
|
9453
|
+
}, _ctx.$attrs)), null, 16, _hoisted_3$4)
|
|
9003
9454
|
]),
|
|
9004
|
-
createElementVNode("div", _hoisted_4$
|
|
9005
|
-
createVNode(_sfc_main$
|
|
9455
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
9456
|
+
createVNode(_sfc_main$t, {
|
|
9006
9457
|
class: "mt-auto",
|
|
9007
9458
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9008
9459
|
id: `${unref(uuid)}-label`,
|
|
9009
9460
|
for: unref(uuid),
|
|
9010
9461
|
label: __props.label
|
|
9011
9462
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9012
|
-
createVNode(_sfc_main$
|
|
9463
|
+
createVNode(_sfc_main$s, {
|
|
9013
9464
|
class: "-mt-1",
|
|
9014
9465
|
id: `${unref(uuid)}-help`,
|
|
9015
9466
|
text: __props.help
|
|
@@ -9030,28 +9481,34 @@ function hasSlotContent(slot, slotProps = {}) {
|
|
|
9030
9481
|
return vnode.type !== Text || typeof vnode.children === "string" && vnode.children.trim() !== "";
|
|
9031
9482
|
});
|
|
9032
9483
|
}
|
|
9033
|
-
const _sfc_main$
|
|
9484
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
9485
|
+
props: {
|
|
9486
|
+
tag: { default: "legend" }
|
|
9487
|
+
},
|
|
9034
9488
|
setup(__props) {
|
|
9035
9489
|
return (_ctx, _cache) => {
|
|
9036
|
-
return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(),
|
|
9037
|
-
class: "text-
|
|
9038
|
-
}))),
|
|
9039
|
-
|
|
9040
|
-
|
|
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);
|
|
9041
9498
|
};
|
|
9042
9499
|
}
|
|
9043
9500
|
});
|
|
9044
|
-
const _hoisted_1$
|
|
9045
|
-
const _hoisted_2$
|
|
9501
|
+
const _hoisted_1$4 = ["aria-labelledby", "aria-describedby"];
|
|
9502
|
+
const _hoisted_2$3 = {
|
|
9046
9503
|
key: 0,
|
|
9047
9504
|
class: "space-y-0.5"
|
|
9048
9505
|
};
|
|
9049
|
-
const _hoisted_3$
|
|
9050
|
-
const _hoisted_4$
|
|
9051
|
-
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" };
|
|
9052
9509
|
const _hoisted_6$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
|
|
9053
9510
|
const _hoisted_7$1 = { class: "ml-3" };
|
|
9054
|
-
const _sfc_main$
|
|
9511
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
9055
9512
|
props: {
|
|
9056
9513
|
options: null,
|
|
9057
9514
|
help: { default: "" },
|
|
@@ -9069,13 +9526,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9069
9526
|
return props.legend !== "" || slots.legend !== void 0;
|
|
9070
9527
|
});
|
|
9071
9528
|
const onChange = (checked, val) => {
|
|
9072
|
-
let
|
|
9529
|
+
let updateModelValue3 = [...props.modelValue];
|
|
9073
9530
|
if (checked) {
|
|
9074
|
-
|
|
9531
|
+
updateModelValue3.push(val);
|
|
9075
9532
|
} else {
|
|
9076
|
-
|
|
9533
|
+
updateModelValue3.splice(updateModelValue3.indexOf(val), 1);
|
|
9077
9534
|
}
|
|
9078
|
-
emit("update:modelValue",
|
|
9535
|
+
emit("update:modelValue", updateModelValue3);
|
|
9079
9536
|
};
|
|
9080
9537
|
return (_ctx, _cache) => {
|
|
9081
9538
|
return openBlock(), createElementBlock("fieldset", {
|
|
@@ -9083,23 +9540,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9083
9540
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9084
9541
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9085
9542
|
}, [
|
|
9086
|
-
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9087
|
-
createVNode(_sfc_main$
|
|
9543
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
9544
|
+
createVNode(_sfc_main$5, {
|
|
9088
9545
|
id: `${unref(uuid)}-legend`
|
|
9089
9546
|
}, {
|
|
9090
9547
|
default: withCtx(() => [
|
|
9091
|
-
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9548
|
+
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9092
9549
|
_ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
|
|
9093
9550
|
]),
|
|
9094
9551
|
_: 3
|
|
9095
9552
|
}, 8, ["id"]),
|
|
9096
|
-
createVNode(_sfc_main$
|
|
9553
|
+
createVNode(_sfc_main$s, {
|
|
9097
9554
|
tag: "p",
|
|
9098
9555
|
text: __props.help,
|
|
9099
9556
|
id: `${unref(uuid)}-help`
|
|
9100
9557
|
}, null, 8, ["text", "id"])
|
|
9101
9558
|
])) : createCommentVNode("", true),
|
|
9102
|
-
createElementVNode("div", _hoisted_4$
|
|
9559
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
9103
9560
|
createElementVNode("div", {
|
|
9104
9561
|
class: normalizeClass(["grid gap-4", {
|
|
9105
9562
|
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
@@ -9113,7 +9570,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9113
9570
|
key: option.value,
|
|
9114
9571
|
class: "flex items-start"
|
|
9115
9572
|
}, [
|
|
9116
|
-
createElementVNode("div", _hoisted_5$
|
|
9573
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
9117
9574
|
createElementVNode("input", mergeProps({
|
|
9118
9575
|
id: `${unref(uuid)}-${index}`,
|
|
9119
9576
|
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
@@ -9129,14 +9586,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9129
9586
|
}, _ctx.$attrs)), null, 16, _hoisted_6$2)
|
|
9130
9587
|
]),
|
|
9131
9588
|
createElementVNode("div", _hoisted_7$1, [
|
|
9132
|
-
createVNode(_sfc_main$
|
|
9589
|
+
createVNode(_sfc_main$t, {
|
|
9133
9590
|
class: "mt-auto",
|
|
9134
9591
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9135
9592
|
id: `${unref(uuid)}-${index}-label`,
|
|
9136
9593
|
for: `${unref(uuid)}-${index}`,
|
|
9137
9594
|
label: option.label
|
|
9138
9595
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9139
|
-
createVNode(_sfc_main$
|
|
9596
|
+
createVNode(_sfc_main$s, {
|
|
9140
9597
|
class: "-mt-1",
|
|
9141
9598
|
id: `${unref(uuid)}-${index}-help`,
|
|
9142
9599
|
text: option.help
|
|
@@ -9146,21 +9603,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9146
9603
|
}), 128))
|
|
9147
9604
|
], 2)
|
|
9148
9605
|
])
|
|
9149
|
-
], 8, _hoisted_1$
|
|
9606
|
+
], 8, _hoisted_1$4);
|
|
9150
9607
|
};
|
|
9151
9608
|
}
|
|
9152
9609
|
});
|
|
9153
|
-
const _hoisted_1$
|
|
9154
|
-
const _hoisted_2$
|
|
9610
|
+
const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
|
|
9611
|
+
const _hoisted_2$2 = {
|
|
9155
9612
|
key: 0,
|
|
9156
9613
|
class: "space-y-0.5"
|
|
9157
9614
|
};
|
|
9158
|
-
const _hoisted_3$
|
|
9159
|
-
const _hoisted_4$
|
|
9160
|
-
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" };
|
|
9161
9618
|
const _hoisted_6$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
|
|
9162
9619
|
const _hoisted_7 = { class: "ml-3" };
|
|
9163
|
-
const _sfc_main$
|
|
9620
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
9164
9621
|
props: {
|
|
9165
9622
|
options: null,
|
|
9166
9623
|
help: { default: "" },
|
|
@@ -9183,23 +9640,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9183
9640
|
"aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
|
|
9184
9641
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9185
9642
|
}, [
|
|
9186
|
-
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9187
|
-
createVNode(_sfc_main$
|
|
9643
|
+
unref(hasLegend) || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
9644
|
+
createVNode(_sfc_main$5, {
|
|
9188
9645
|
id: `${unref(uuid)}-legend`
|
|
9189
9646
|
}, {
|
|
9190
9647
|
default: withCtx(() => [
|
|
9191
|
-
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9648
|
+
__props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
|
|
9192
9649
|
_ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
|
|
9193
9650
|
]),
|
|
9194
9651
|
_: 3
|
|
9195
9652
|
}, 8, ["id"]),
|
|
9196
|
-
createVNode(_sfc_main$
|
|
9653
|
+
createVNode(_sfc_main$s, {
|
|
9197
9654
|
tag: "p",
|
|
9198
9655
|
text: __props.help,
|
|
9199
9656
|
id: `${unref(uuid)}-help`
|
|
9200
9657
|
}, null, 8, ["text", "id"])
|
|
9201
9658
|
])) : createCommentVNode("", true),
|
|
9202
|
-
createElementVNode("div", _hoisted_4$
|
|
9659
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
9203
9660
|
createElementVNode("div", {
|
|
9204
9661
|
class: normalizeClass(["grid gap-4", {
|
|
9205
9662
|
"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
|
|
@@ -9213,7 +9670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9213
9670
|
key: option.value,
|
|
9214
9671
|
class: "flex items-start"
|
|
9215
9672
|
}, [
|
|
9216
|
-
createElementVNode("div", _hoisted_5$
|
|
9673
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
9217
9674
|
createElementVNode("input", mergeProps({
|
|
9218
9675
|
"aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
|
|
9219
9676
|
"aria-labelledby": `${unref(uuid)}-${index}-label`,
|
|
@@ -9231,14 +9688,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9231
9688
|
}, _ctx.$attrs)), null, 16, _hoisted_6$1)
|
|
9232
9689
|
]),
|
|
9233
9690
|
createElementVNode("div", _hoisted_7, [
|
|
9234
|
-
createVNode(_sfc_main$
|
|
9691
|
+
createVNode(_sfc_main$t, {
|
|
9235
9692
|
class: "mt-auto",
|
|
9236
9693
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9237
9694
|
id: `${unref(uuid)}-${index}-label`,
|
|
9238
9695
|
for: `${unref(uuid)}-${index}`,
|
|
9239
9696
|
label: option.label
|
|
9240
9697
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9241
|
-
createVNode(_sfc_main$
|
|
9698
|
+
createVNode(_sfc_main$s, {
|
|
9242
9699
|
class: "-mt-1",
|
|
9243
9700
|
id: `${unref(uuid)}-${index}-help`,
|
|
9244
9701
|
text: option.help
|
|
@@ -9248,7 +9705,181 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9248
9705
|
}), 128))
|
|
9249
9706
|
], 2)
|
|
9250
9707
|
])
|
|
9251
|
-
], 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"]);
|
|
9252
9883
|
};
|
|
9253
9884
|
}
|
|
9254
9885
|
});
|
|
@@ -9265,7 +9896,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9265
9896
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
9266
9897
|
return (_ctx, _cache) => {
|
|
9267
9898
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9268
|
-
createVNode(_sfc_main$
|
|
9899
|
+
createVNode(_sfc_main$t, {
|
|
9269
9900
|
class: "block",
|
|
9270
9901
|
id: `${unref(uuid)}-label`,
|
|
9271
9902
|
for: unref(uuid),
|
|
@@ -9291,7 +9922,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9291
9922
|
value: __props.modelValue,
|
|
9292
9923
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
9293
9924
|
}, _ctx.$attrs), null, 16, _hoisted_1$1),
|
|
9294
|
-
createVNode(_sfc_main$
|
|
9925
|
+
createVNode(_sfc_main$s, {
|
|
9295
9926
|
id: `${unref(uuid)}-help`,
|
|
9296
9927
|
text: __props.help
|
|
9297
9928
|
}, null, 8, ["id", "text"])
|
|
@@ -9333,12 +9964,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9333
9964
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9334
9965
|
}, [
|
|
9335
9966
|
__props.legend || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
9336
|
-
createVNode(_sfc_main$
|
|
9967
|
+
createVNode(_sfc_main$t, {
|
|
9337
9968
|
class: "block my-auto",
|
|
9338
9969
|
label: __props.legend,
|
|
9339
9970
|
tag: "legend"
|
|
9340
9971
|
}, null, 8, ["label"]),
|
|
9341
|
-
createVNode(_sfc_main$
|
|
9972
|
+
createVNode(_sfc_main$s, {
|
|
9342
9973
|
tag: "p",
|
|
9343
9974
|
text: __props.help,
|
|
9344
9975
|
id: `${unref(uuid)}-help`
|
|
@@ -9359,7 +9990,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9359
9990
|
}, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9360
9991
|
onChange
|
|
9361
9992
|
})), null, 16, _hoisted_4),
|
|
9362
|
-
createVNode(_sfc_main$
|
|
9993
|
+
createVNode(_sfc_main$t, {
|
|
9363
9994
|
class: "ml-2",
|
|
9364
9995
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9365
9996
|
label: "Yes",
|
|
@@ -9380,7 +10011,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9380
10011
|
}, __spreadProps(__spreadValues({}, _ctx.$attrs), {
|
|
9381
10012
|
onChange
|
|
9382
10013
|
})), null, 16, _hoisted_6),
|
|
9383
|
-
createVNode(_sfc_main$
|
|
10014
|
+
createVNode(_sfc_main$t, {
|
|
9384
10015
|
class: "ml-2",
|
|
9385
10016
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9386
10017
|
label: "No",
|
|
@@ -9395,37 +10026,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9395
10026
|
var components = /* @__PURE__ */ Object.freeze({
|
|
9396
10027
|
__proto__: null,
|
|
9397
10028
|
[Symbol.toStringTag]: "Module",
|
|
9398
|
-
ActionsDropdown: _sfc_main$
|
|
9399
|
-
Cards: _sfc_main$
|
|
9400
|
-
ContentModal: _sfc_main$
|
|
9401
|
-
DateFilter: _sfc_main$
|
|
9402
|
-
DetailList: _sfc_main$
|
|
9403
|
-
DownloadCell: _sfc_main$
|
|
9404
|
-
Flash: _sfc_main$
|
|
9405
|
-
Modal: _sfc_main$
|
|
9406
|
-
SidebarLayout: _sfc_main$
|
|
9407
|
-
Slideover: _sfc_main$
|
|
9408
|
-
StackedLayout: _sfc_main$
|
|
9409
|
-
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,
|
|
9410
10041
|
PopoverContent,
|
|
9411
|
-
PopoverPosition: _sfc_main$
|
|
9412
|
-
Paginator: _sfc_main$
|
|
9413
|
-
Spinner: _sfc_main$
|
|
9414
|
-
StaticTable: _sfc_main$
|
|
9415
|
-
Steps: _sfc_main$
|
|
9416
|
-
Table: _sfc_main$
|
|
9417
|
-
Tabs: _sfc_main$
|
|
9418
|
-
Toggle: _sfc_main$
|
|
9419
|
-
Tooltip: _sfc_main$
|
|
9420
|
-
BaseInput: _sfc_main$
|
|
9421
|
-
Checkbox: _sfc_main$
|
|
9422
|
-
DateRangePicker: _sfc_main$
|
|
9423
|
-
InputHelp: _sfc_main$
|
|
9424
|
-
InputLabel: _sfc_main$
|
|
9425
|
-
FieldsetLegend: _sfc_main$
|
|
9426
|
-
MultiCheckboxes: _sfc_main$
|
|
9427
|
-
Radio: _sfc_main$
|
|
9428
|
-
|
|
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,
|
|
9429
10061
|
TextArea: _sfc_main$1,
|
|
9430
10062
|
YesOrNoRadio: _sfc_main
|
|
9431
10063
|
});
|
|
@@ -9507,4 +10139,4 @@ const install = function installTrees(app) {
|
|
|
9507
10139
|
app.component(componentName, component);
|
|
9508
10140
|
});
|
|
9509
10141
|
};
|
|
9510
|
-
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 };
|