@xy-planning-network/trees 0.4.9-rc-3 → 0.5.0-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/README.md +1 -1
- package/dist/style.css +1 -1
- package/dist/trees.es.js +543 -431
- package/dist/trees.umd.js +10 -6
- package/package.json +1 -1
- package/src/lib-components/forms/RadioCards.vue +3 -3
- package/src/lib-components/indicators/XYSpinner.vue +93 -0
- package/src/lib-components/lists/DetailList.vue +2 -5
- package/src/lib-components/lists/Table.vue +2 -4
- package/src/lib-components/overlays/Flash.vue +45 -75
- package/src/lib-components/overlays/Spinner.vue +23 -121
- package/types/composables/index.d.ts +6 -0
- package/types/composables/useFlashes.d.ts +36 -50
- package/types/composables/useSpinner.d.ts +28 -0
- package/types/lib-components/index.d.ts +3 -1
- package/types/lib-components/indicators/XYSpinner.vue.d.ts +2 -0
package/dist/trees.es.js
CHANGED
|
@@ -1,23 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
1
|
+
import { ref, cloneVNode, h, inject, provide, watchEffect, defineComponent, 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, shallowRef, withModifiers, TransitionGroup, withDirectives, vShow, normalizeStyle, getCurrentInstance, vModelText, resolveComponent, Comment as Comment$1, Text, useSlots } from "vue";
|
|
2
|
+
function useSpinnerDisplay() {
|
|
3
|
+
const idx = ref(0);
|
|
4
|
+
const loading = ref(false);
|
|
5
|
+
const maxIdx = ref(0);
|
|
6
|
+
const messages = ref([]);
|
|
7
|
+
const msg = ref("");
|
|
8
|
+
const showMsg = ref(false);
|
|
9
|
+
const show = (spinMessages = []) => {
|
|
10
|
+
if (spinMessages) {
|
|
11
|
+
messages.value = spinMessages;
|
|
12
|
+
maxIdx.value = spinMessages.length - 1;
|
|
13
|
+
msg.value = messages.value[idx.value];
|
|
14
|
+
showMsg.value = true;
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
loading.value = true;
|
|
17
|
+
};
|
|
18
|
+
const hide = () => {
|
|
19
|
+
idx.value = 0;
|
|
20
|
+
maxIdx.value = 0;
|
|
21
|
+
messages.value = [];
|
|
22
|
+
msg.value = "";
|
|
23
|
+
loading.value = false;
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
idx,
|
|
27
|
+
loading,
|
|
28
|
+
maxIdx,
|
|
29
|
+
messages,
|
|
30
|
+
msg,
|
|
31
|
+
showMsg,
|
|
32
|
+
show,
|
|
33
|
+
hide
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
let appSpinner = void 0;
|
|
37
|
+
function useAppSpinnerDisplay() {
|
|
38
|
+
if (appSpinner === void 0) {
|
|
39
|
+
appSpinner = useSpinnerDisplay();
|
|
40
|
+
}
|
|
41
|
+
return appSpinner;
|
|
42
|
+
}
|
|
43
|
+
const useAppSpinner = (() => {
|
|
44
|
+
const { show, hide } = useAppSpinnerDisplay();
|
|
45
|
+
return { show, hide };
|
|
46
|
+
})();
|
|
21
47
|
var axios$2 = { exports: {} };
|
|
22
48
|
var bind$2 = function bind(fn, thisArg) {
|
|
23
49
|
return function wrap() {
|
|
@@ -35,7 +61,7 @@ var kindOf = function(cache) {
|
|
|
35
61
|
var str = toString.call(thing);
|
|
36
62
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
37
63
|
};
|
|
38
|
-
}(Object.create(null));
|
|
64
|
+
}(/* @__PURE__ */ Object.create(null));
|
|
39
65
|
function kindOfTest(type) {
|
|
40
66
|
type = type.toLowerCase();
|
|
41
67
|
return function isKindOf(thing) {
|
|
@@ -1263,12 +1289,12 @@ const BaseAPI = {
|
|
|
1263
1289
|
makeRequest(config, opts) {
|
|
1264
1290
|
const wait = window.setTimeout(() => {
|
|
1265
1291
|
if (!opts.skipLoader) {
|
|
1266
|
-
|
|
1292
|
+
useAppSpinner.show();
|
|
1267
1293
|
}
|
|
1268
1294
|
}, 200);
|
|
1269
|
-
return apiAxiosInstance(
|
|
1295
|
+
return apiAxiosInstance({ ...config, ...opts }).then((success) => success.data).finally(() => {
|
|
1270
1296
|
if (!opts.skipLoader)
|
|
1271
|
-
|
|
1297
|
+
useAppSpinner.hide();
|
|
1272
1298
|
window.clearTimeout(wait);
|
|
1273
1299
|
});
|
|
1274
1300
|
},
|
|
@@ -2117,7 +2143,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
|
|
|
2117
2143
|
},
|
|
2118
2144
|
setup: function setup5(props, _ref) {
|
|
2119
2145
|
var emit = _ref.emit;
|
|
2120
|
-
var containers = ref(new Set());
|
|
2146
|
+
var containers = ref(/* @__PURE__ */ new Set());
|
|
2121
2147
|
var usesOpenClosedState = useOpenClosed();
|
|
2122
2148
|
var open = computed(function() {
|
|
2123
2149
|
if (props.open === Missing && usesOpenClosedState !== null) {
|
|
@@ -4763,10 +4789,10 @@ function render$5(_ctx, _cache) {
|
|
|
4763
4789
|
})
|
|
4764
4790
|
]);
|
|
4765
4791
|
}
|
|
4766
|
-
const _hoisted_1$
|
|
4767
|
-
const _hoisted_2$
|
|
4768
|
-
const _hoisted_3$
|
|
4769
|
-
const _sfc_main$
|
|
4792
|
+
const _hoisted_1$s = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
|
|
4793
|
+
const _hoisted_2$m = { class: "py-1" };
|
|
4794
|
+
const _hoisted_3$l = ["textContent", "onClick"];
|
|
4795
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
4770
4796
|
props: {
|
|
4771
4797
|
currentUser: null,
|
|
4772
4798
|
items: null,
|
|
@@ -4807,7 +4833,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
4807
4833
|
disabled: !hasActionItems.value
|
|
4808
4834
|
}, {
|
|
4809
4835
|
default: withCtx(() => [
|
|
4810
|
-
_hoisted_1$
|
|
4836
|
+
_hoisted_1$s,
|
|
4811
4837
|
createVNode(unref(render$6), {
|
|
4812
4838
|
class: "w-5 h-5",
|
|
4813
4839
|
"aria-hidden": "true"
|
|
@@ -4826,7 +4852,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
4826
4852
|
default: withCtx(() => [
|
|
4827
4853
|
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" }, {
|
|
4828
4854
|
default: withCtx(() => [
|
|
4829
|
-
createElementVNode("div", _hoisted_2$
|
|
4855
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
4830
4856
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, idx) => {
|
|
4831
4857
|
return openBlock(), createElementBlock(Fragment, { key: idx }, [
|
|
4832
4858
|
show(item) ? (openBlock(), createBlock(unref(MenuItem), {
|
|
@@ -4842,7 +4868,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
4842
4868
|
]),
|
|
4843
4869
|
textContent: toDisplayString(item.label),
|
|
4844
4870
|
onClick: ($event) => emitEvent(item.event)
|
|
4845
|
-
}, null, 10, _hoisted_3$
|
|
4871
|
+
}, null, 10, _hoisted_3$l)
|
|
4846
4872
|
]),
|
|
4847
4873
|
_: 2
|
|
4848
4874
|
}, 1024)) : createCommentVNode("", true)
|
|
@@ -4861,10 +4887,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
4861
4887
|
};
|
|
4862
4888
|
}
|
|
4863
4889
|
});
|
|
4864
|
-
const _hoisted_1$
|
|
4865
|
-
const _hoisted_2$
|
|
4866
|
-
const _hoisted_3$
|
|
4867
|
-
const _sfc_main$
|
|
4890
|
+
const _hoisted_1$r = { class: "px-4 py-5 sm:p-6 text-center" };
|
|
4891
|
+
const _hoisted_2$l = ["textContent"];
|
|
4892
|
+
const _hoisted_3$k = ["textContent"];
|
|
4893
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
4868
4894
|
props: {
|
|
4869
4895
|
cards: null
|
|
4870
4896
|
},
|
|
@@ -4878,16 +4904,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4878
4904
|
class: "bg-white overflow-hidden shadow rounded-lg",
|
|
4879
4905
|
key: idx
|
|
4880
4906
|
}, [
|
|
4881
|
-
createElementVNode("div", _hoisted_1$
|
|
4907
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
4882
4908
|
createElementVNode("dl", null, [
|
|
4883
4909
|
createElementVNode("dd", {
|
|
4884
4910
|
class: "mt-1 text-3xl leading-9 font-semibold text-xy-blue",
|
|
4885
4911
|
textContent: toDisplayString(card.primary)
|
|
4886
|
-
}, null, 8, _hoisted_2$
|
|
4912
|
+
}, null, 8, _hoisted_2$l),
|
|
4887
4913
|
createElementVNode("dt", {
|
|
4888
4914
|
class: "text-sm leading-5 font-medium text-gray-700 truncate",
|
|
4889
4915
|
textContent: toDisplayString(card.secondary)
|
|
4890
|
-
}, null, 8, _hoisted_3$
|
|
4916
|
+
}, null, 8, _hoisted_3$k)
|
|
4891
4917
|
])
|
|
4892
4918
|
])
|
|
4893
4919
|
]);
|
|
@@ -4896,16 +4922,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4896
4922
|
};
|
|
4897
4923
|
}
|
|
4898
4924
|
});
|
|
4899
|
-
const _hoisted_1$
|
|
4900
|
-
const _hoisted_2$
|
|
4925
|
+
const _hoisted_1$q = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
|
|
4926
|
+
const _hoisted_2$k = /* @__PURE__ */ createElementVNode("span", {
|
|
4901
4927
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4902
4928
|
"aria-hidden": "true"
|
|
4903
4929
|
}, "\u200B", -1);
|
|
4904
|
-
const _hoisted_3$
|
|
4905
|
-
const _hoisted_4$
|
|
4906
|
-
const _hoisted_5$
|
|
4930
|
+
const _hoisted_3$j = { 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" };
|
|
4931
|
+
const _hoisted_4$g = { class: "mt-3 text-center sm:mt-5" };
|
|
4932
|
+
const _hoisted_5$e = { class: "mt-2" };
|
|
4907
4933
|
const _hoisted_6$c = { class: "mt-5 sm:mt-6" };
|
|
4908
|
-
const _sfc_main$
|
|
4934
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
4909
4935
|
props: {
|
|
4910
4936
|
modelValue: { type: Boolean },
|
|
4911
4937
|
title: { default: "" }
|
|
@@ -4929,7 +4955,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4929
4955
|
open: __props.modelValue
|
|
4930
4956
|
}, {
|
|
4931
4957
|
default: withCtx(() => [
|
|
4932
|
-
createElementVNode("div", _hoisted_1$
|
|
4958
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
4933
4959
|
createVNode(unref(TransitionChild), {
|
|
4934
4960
|
as: "template",
|
|
4935
4961
|
enter: "ease-out duration-300",
|
|
@@ -4944,7 +4970,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4944
4970
|
]),
|
|
4945
4971
|
_: 1
|
|
4946
4972
|
}),
|
|
4947
|
-
_hoisted_2$
|
|
4973
|
+
_hoisted_2$k,
|
|
4948
4974
|
createVNode(unref(TransitionChild), {
|
|
4949
4975
|
as: "template",
|
|
4950
4976
|
enter: "ease-out duration-300",
|
|
@@ -4955,15 +4981,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
4955
4981
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
4956
4982
|
}, {
|
|
4957
4983
|
default: withCtx(() => [
|
|
4958
|
-
createElementVNode("div", _hoisted_3$
|
|
4984
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
4959
4985
|
createElementVNode("div", null, [
|
|
4960
4986
|
renderSlot(_ctx.$slots, "icon"),
|
|
4961
|
-
createElementVNode("div", _hoisted_4$
|
|
4987
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
4962
4988
|
createVNode(unref(DialogTitle), {
|
|
4963
4989
|
as: "h3",
|
|
4964
4990
|
textContent: toDisplayString(__props.title)
|
|
4965
4991
|
}, null, 8, ["textContent"]),
|
|
4966
|
-
createElementVNode("div", _hoisted_5$
|
|
4992
|
+
createElementVNode("div", _hoisted_5$e, [
|
|
4967
4993
|
renderSlot(_ctx.$slots, "default")
|
|
4968
4994
|
])
|
|
4969
4995
|
])
|
|
@@ -7081,8 +7107,8 @@ Date.prototype.fp_incr = function(days) {
|
|
|
7081
7107
|
if (typeof window !== "undefined") {
|
|
7082
7108
|
window.flatpickr = flatpickr;
|
|
7083
7109
|
}
|
|
7084
|
-
var flatpickr_min = "";
|
|
7085
|
-
const _sfc_main$
|
|
7110
|
+
var flatpickr_min = /* @__PURE__ */ (() => '.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 #e6e6e6,-1px 0 #e6e6e6,0 1px #e6e6e6,0 -1px #e6e6e6,0 3px 13px #00000014}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:#000000e6;fill:#000000e6;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#000000e6;fill:#000000e6}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:#00000080}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\fffd;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:#000000e6}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:#000000e6}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:#00000080;background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:#0000008a;line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:#3939394d;background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:#3939391a}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 #569ff7,5px 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:#3939394d;background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}\n')();
|
|
7111
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
7086
7112
|
props: {
|
|
7087
7113
|
disabled: { type: Boolean, default: false },
|
|
7088
7114
|
label: { default: "" },
|
|
@@ -7096,7 +7122,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
7096
7122
|
"block my-1 text-sm font-semibold leading-snug text-gray-900": true,
|
|
7097
7123
|
"opacity-75": __props.disabled
|
|
7098
7124
|
}
|
|
7099
|
-
},
|
|
7125
|
+
}, {
|
|
7126
|
+
..._ctx.$attrs
|
|
7127
|
+
}), {
|
|
7100
7128
|
default: withCtx(() => [
|
|
7101
7129
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
7102
7130
|
]),
|
|
@@ -7105,16 +7133,17 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
7105
7133
|
};
|
|
7106
7134
|
}
|
|
7107
7135
|
});
|
|
7108
|
-
const _sfc_main$
|
|
7136
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
7109
7137
|
props: {
|
|
7110
7138
|
tag: { default: "div" },
|
|
7111
7139
|
text: { default: "" }
|
|
7112
7140
|
},
|
|
7113
7141
|
setup(__props) {
|
|
7114
7142
|
return (_ctx, _cache) => {
|
|
7115
|
-
return __props.text ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 },
|
|
7143
|
+
return __props.text ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, {
|
|
7144
|
+
..._ctx.$attrs,
|
|
7116
7145
|
class: "mt-1 text-sm leading-snug font-normal text-gray-700"
|
|
7117
|
-
}))
|
|
7146
|
+
})), {
|
|
7118
7147
|
default: withCtx(() => [
|
|
7119
7148
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
7120
7149
|
]),
|
|
@@ -7123,8 +7152,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
7123
7152
|
};
|
|
7124
7153
|
}
|
|
7125
7154
|
});
|
|
7126
|
-
const _hoisted_1$
|
|
7127
|
-
const _sfc_main$
|
|
7155
|
+
const _hoisted_1$p = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
|
|
7156
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
7128
7157
|
props: {
|
|
7129
7158
|
type: null,
|
|
7130
7159
|
help: { default: "" },
|
|
@@ -7155,7 +7184,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7155
7184
|
});
|
|
7156
7185
|
return (_ctx, _cache) => {
|
|
7157
7186
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7158
|
-
createVNode(_sfc_main$
|
|
7187
|
+
createVNode(_sfc_main$u, {
|
|
7159
7188
|
class: "block",
|
|
7160
7189
|
id: `${unref(uuid)}-label`,
|
|
7161
7190
|
for: unref(uuid),
|
|
@@ -7183,8 +7212,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7183
7212
|
type: __props.type,
|
|
7184
7213
|
value: __props.modelValue,
|
|
7185
7214
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
7186
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
7187
|
-
createVNode(_sfc_main$
|
|
7215
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$p),
|
|
7216
|
+
createVNode(_sfc_main$t, {
|
|
7188
7217
|
id: `${unref(uuid)}-help`,
|
|
7189
7218
|
text: __props.help
|
|
7190
7219
|
}, null, 8, ["id", "text"])
|
|
@@ -7192,7 +7221,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7192
7221
|
};
|
|
7193
7222
|
}
|
|
7194
7223
|
});
|
|
7195
|
-
const _sfc_main$
|
|
7224
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
7196
7225
|
props: {
|
|
7197
7226
|
modelValue: null,
|
|
7198
7227
|
startDate: { default: 0 },
|
|
@@ -7229,7 +7258,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7229
7258
|
});
|
|
7230
7259
|
});
|
|
7231
7260
|
return (_ctx, _cache) => {
|
|
7232
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7261
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
7233
7262
|
type: "text",
|
|
7234
7263
|
placeholder: "mm-dd-yyyy range",
|
|
7235
7264
|
id: unref(uuid),
|
|
@@ -7239,15 +7268,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7239
7268
|
};
|
|
7240
7269
|
}
|
|
7241
7270
|
});
|
|
7242
|
-
const _hoisted_1$
|
|
7243
|
-
const _hoisted_2$
|
|
7271
|
+
const _hoisted_1$o = ["aria-labelledby", "aria-describedby", "id", "value"];
|
|
7272
|
+
const _hoisted_2$j = {
|
|
7244
7273
|
key: 0,
|
|
7245
7274
|
value: "",
|
|
7246
7275
|
disabled: "",
|
|
7247
7276
|
selected: ""
|
|
7248
7277
|
};
|
|
7249
|
-
const _hoisted_3$
|
|
7250
|
-
const _sfc_main$
|
|
7278
|
+
const _hoisted_3$i = ["value", "textContent"];
|
|
7279
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
7251
7280
|
props: {
|
|
7252
7281
|
design: { default: "standard" },
|
|
7253
7282
|
label: { default: "" },
|
|
@@ -7269,7 +7298,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7269
7298
|
});
|
|
7270
7299
|
return (_ctx, _cache) => {
|
|
7271
7300
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7272
|
-
createVNode(_sfc_main$
|
|
7301
|
+
createVNode(_sfc_main$u, {
|
|
7273
7302
|
id: `${unref(uuid)}-label`,
|
|
7274
7303
|
for: unref(uuid),
|
|
7275
7304
|
label: __props.label
|
|
@@ -7280,21 +7309,22 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7280
7309
|
class: unref(classes),
|
|
7281
7310
|
id: unref(uuid),
|
|
7282
7311
|
value: __props.modelValue
|
|
7283
|
-
},
|
|
7312
|
+
}, {
|
|
7313
|
+
..._ctx.$attrs,
|
|
7284
7314
|
onChange: ($event) => {
|
|
7285
7315
|
emit("update:modelValue", $event.target.value);
|
|
7286
7316
|
}
|
|
7287
|
-
})
|
|
7288
|
-
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$
|
|
7317
|
+
}), [
|
|
7318
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$j, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
|
|
7289
7319
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
7290
7320
|
return openBlock(), createElementBlock("option", {
|
|
7291
7321
|
value: option.value,
|
|
7292
7322
|
textContent: toDisplayString(option.label),
|
|
7293
7323
|
key: option.value
|
|
7294
|
-
}, null, 8, _hoisted_3$
|
|
7324
|
+
}, null, 8, _hoisted_3$i);
|
|
7295
7325
|
}), 128))
|
|
7296
|
-
], 16, _hoisted_1$
|
|
7297
|
-
createVNode(_sfc_main$
|
|
7326
|
+
], 16, _hoisted_1$o),
|
|
7327
|
+
createVNode(_sfc_main$t, {
|
|
7298
7328
|
id: `${unref(uuid)}-help`,
|
|
7299
7329
|
text: __props.help
|
|
7300
7330
|
}, null, 8, ["id", "text"])
|
|
@@ -7302,11 +7332,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7302
7332
|
};
|
|
7303
7333
|
}
|
|
7304
7334
|
});
|
|
7305
|
-
const _hoisted_1$
|
|
7306
|
-
const _hoisted_2$
|
|
7307
|
-
const _hoisted_3$
|
|
7308
|
-
const _hoisted_4$
|
|
7309
|
-
const _sfc_main$
|
|
7335
|
+
const _hoisted_1$n = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
|
|
7336
|
+
const _hoisted_2$i = { class: "flex-1 min-w-0" };
|
|
7337
|
+
const _hoisted_3$h = { class: "text-lg leading-6 font-semibold text-gray-900" };
|
|
7338
|
+
const _hoisted_4$f = { class: "mt-4 flex md:mt-0 md:ml-4" };
|
|
7339
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
7310
7340
|
props: {
|
|
7311
7341
|
dateRange: null,
|
|
7312
7342
|
sortDir: null,
|
|
@@ -7328,12 +7358,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7328
7358
|
emits("date-range-changed", dateRange2);
|
|
7329
7359
|
};
|
|
7330
7360
|
return (_ctx, _cache) => {
|
|
7331
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7332
|
-
createElementVNode("div", _hoisted_2$
|
|
7333
|
-
createElementVNode("h1", _hoisted_3$
|
|
7361
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
7362
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
7363
|
+
createElementVNode("h1", _hoisted_3$h, toDisplayString(__props.title), 1)
|
|
7334
7364
|
]),
|
|
7335
|
-
createElementVNode("div", _hoisted_4$
|
|
7336
|
-
createVNode(_sfc_main$
|
|
7365
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
7366
|
+
createVNode(_sfc_main$q, {
|
|
7337
7367
|
modelValue: sortDir.value,
|
|
7338
7368
|
"onUpdate:modelValue": [
|
|
7339
7369
|
_cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
@@ -7341,7 +7371,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7341
7371
|
],
|
|
7342
7372
|
options: sortOptions
|
|
7343
7373
|
}, null, 8, ["modelValue"]),
|
|
7344
|
-
createVNode(_sfc_main$
|
|
7374
|
+
createVNode(_sfc_main$r, {
|
|
7345
7375
|
modelValue: dateRange.value,
|
|
7346
7376
|
"onUpdate:modelValue": [
|
|
7347
7377
|
_cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
|
|
@@ -7354,9 +7384,195 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7354
7384
|
};
|
|
7355
7385
|
}
|
|
7356
7386
|
});
|
|
7357
|
-
|
|
7358
|
-
const
|
|
7359
|
-
const
|
|
7387
|
+
function useBaseAPI(path, method = "GET", initOpts = {}) {
|
|
7388
|
+
const result = ref();
|
|
7389
|
+
const error = shallowRef();
|
|
7390
|
+
const hasFetched = ref(false);
|
|
7391
|
+
const isFinished = ref(false);
|
|
7392
|
+
const isLoading = ref(false);
|
|
7393
|
+
const isAborted = ref(false);
|
|
7394
|
+
let requestCount = 0;
|
|
7395
|
+
let controller;
|
|
7396
|
+
const abort = () => {
|
|
7397
|
+
if (controller !== void 0) {
|
|
7398
|
+
controller.abort();
|
|
7399
|
+
}
|
|
7400
|
+
};
|
|
7401
|
+
const execute = (data2 = {}, opts = {}) => {
|
|
7402
|
+
requestCount++;
|
|
7403
|
+
const count = requestCount;
|
|
7404
|
+
controller = new AbortController();
|
|
7405
|
+
isAborted.value = false;
|
|
7406
|
+
isFinished.value = false;
|
|
7407
|
+
isLoading.value = true;
|
|
7408
|
+
const requestConfig = {
|
|
7409
|
+
data: ["POST", "post", "PUT", "put"].includes(method) ? data2 : {},
|
|
7410
|
+
method,
|
|
7411
|
+
params: ["GET", "get"].includes(method) ? data2 : {},
|
|
7412
|
+
signal: controller.signal,
|
|
7413
|
+
url: path
|
|
7414
|
+
};
|
|
7415
|
+
return BaseAPI.makeRequest(requestConfig, { ...initOpts, ...opts }).then((success) => {
|
|
7416
|
+
result.value = success;
|
|
7417
|
+
error.value = void 0;
|
|
7418
|
+
isAborted.value = false;
|
|
7419
|
+
return success;
|
|
7420
|
+
}, (err) => {
|
|
7421
|
+
error.value = err;
|
|
7422
|
+
if (axios.isCancel(err)) {
|
|
7423
|
+
isAborted.value = true;
|
|
7424
|
+
}
|
|
7425
|
+
throw err;
|
|
7426
|
+
}).finally(() => {
|
|
7427
|
+
if (count == requestCount) {
|
|
7428
|
+
isFinished.value = true;
|
|
7429
|
+
isLoading.value = false;
|
|
7430
|
+
}
|
|
7431
|
+
hasFetched.value = true;
|
|
7432
|
+
});
|
|
7433
|
+
};
|
|
7434
|
+
if ((initOpts == null ? void 0 : initOpts.immediate) && initOpts.immediate === true) {
|
|
7435
|
+
execute();
|
|
7436
|
+
}
|
|
7437
|
+
return {
|
|
7438
|
+
result,
|
|
7439
|
+
error,
|
|
7440
|
+
isFinished,
|
|
7441
|
+
isLoading,
|
|
7442
|
+
isAborted,
|
|
7443
|
+
hasFetched,
|
|
7444
|
+
abort,
|
|
7445
|
+
execute
|
|
7446
|
+
};
|
|
7447
|
+
}
|
|
7448
|
+
function useBaseAPIGet(url, opts = {}) {
|
|
7449
|
+
return useBaseAPI(url, "GET", opts);
|
|
7450
|
+
}
|
|
7451
|
+
function useBaseAPIDelete(url, opts = {}) {
|
|
7452
|
+
return useBaseAPI(url, "DELETE", opts);
|
|
7453
|
+
}
|
|
7454
|
+
function useBaseAPIPost(url, opts = {}) {
|
|
7455
|
+
return useBaseAPI(url, "POST", opts);
|
|
7456
|
+
}
|
|
7457
|
+
function useBaseAPIPut(url, opts = {}) {
|
|
7458
|
+
return useBaseAPI(url, "PUT", opts);
|
|
7459
|
+
}
|
|
7460
|
+
function useFlashes(flasherConfig = {}) {
|
|
7461
|
+
const flashes = ref(/* @__PURE__ */ new Map());
|
|
7462
|
+
let config = {
|
|
7463
|
+
removeDelay: 1e4,
|
|
7464
|
+
email: ""
|
|
7465
|
+
};
|
|
7466
|
+
const configure = (newConfig) => {
|
|
7467
|
+
config = {
|
|
7468
|
+
...config,
|
|
7469
|
+
...newConfig
|
|
7470
|
+
};
|
|
7471
|
+
};
|
|
7472
|
+
const remove = (id2) => {
|
|
7473
|
+
flashes.value.delete(id2);
|
|
7474
|
+
};
|
|
7475
|
+
const add = (flash2) => {
|
|
7476
|
+
const ID = Uniques.CreateIdAttribute();
|
|
7477
|
+
flashes.value.set(ID, flash2);
|
|
7478
|
+
if (flash2.persistent === void 0 || !flash2.persistent) {
|
|
7479
|
+
setTimeout(() => remove(ID), config.removeDelay);
|
|
7480
|
+
}
|
|
7481
|
+
return ID;
|
|
7482
|
+
};
|
|
7483
|
+
const flash = (flash2) => {
|
|
7484
|
+
return add(flash2);
|
|
7485
|
+
};
|
|
7486
|
+
const error = (message, persistent = false) => {
|
|
7487
|
+
return add({ message, persistent, type: "error" });
|
|
7488
|
+
};
|
|
7489
|
+
const info = (message, persistent = false) => {
|
|
7490
|
+
return add({
|
|
7491
|
+
message,
|
|
7492
|
+
persistent,
|
|
7493
|
+
type: "info"
|
|
7494
|
+
});
|
|
7495
|
+
};
|
|
7496
|
+
const success = (message, persistent = false) => {
|
|
7497
|
+
return add({
|
|
7498
|
+
message,
|
|
7499
|
+
persistent,
|
|
7500
|
+
type: "success"
|
|
7501
|
+
});
|
|
7502
|
+
};
|
|
7503
|
+
const warning = (message, persistent = false) => {
|
|
7504
|
+
return add({
|
|
7505
|
+
message,
|
|
7506
|
+
persistent,
|
|
7507
|
+
type: "warning"
|
|
7508
|
+
});
|
|
7509
|
+
};
|
|
7510
|
+
const genericError = (email = "", persistent = false) => {
|
|
7511
|
+
const msgEmail = email || config.email;
|
|
7512
|
+
const message = msgEmail ? `Whoops! Something went wrong, please reach out to
|
|
7513
|
+
<a class="underline text-xy-blue" href="mailto:${msgEmail}">${msgEmail}</a>
|
|
7514
|
+
if the issue persists.` : `Whoops! Something went wrong.`;
|
|
7515
|
+
return add({
|
|
7516
|
+
message,
|
|
7517
|
+
persistent,
|
|
7518
|
+
type: "error"
|
|
7519
|
+
});
|
|
7520
|
+
};
|
|
7521
|
+
configure(flasherConfig || {});
|
|
7522
|
+
return {
|
|
7523
|
+
flasher: {
|
|
7524
|
+
add,
|
|
7525
|
+
remove,
|
|
7526
|
+
flash,
|
|
7527
|
+
error,
|
|
7528
|
+
warning,
|
|
7529
|
+
info,
|
|
7530
|
+
success,
|
|
7531
|
+
genericError
|
|
7532
|
+
},
|
|
7533
|
+
flashes,
|
|
7534
|
+
configure
|
|
7535
|
+
};
|
|
7536
|
+
}
|
|
7537
|
+
const loadWindowFlashes = (flasher) => {
|
|
7538
|
+
if (window.Flashes) {
|
|
7539
|
+
for (const flash of window.Flashes) {
|
|
7540
|
+
if (typeof flash.type === "undefined") {
|
|
7541
|
+
const values = flash.message.split(": ");
|
|
7542
|
+
flasher.add({ type: values[0], message: values[1] });
|
|
7543
|
+
continue;
|
|
7544
|
+
}
|
|
7545
|
+
flasher.add(flash);
|
|
7546
|
+
}
|
|
7547
|
+
}
|
|
7548
|
+
};
|
|
7549
|
+
let appFlashes = void 0;
|
|
7550
|
+
function useAppFlashes() {
|
|
7551
|
+
if (appFlashes === void 0) {
|
|
7552
|
+
appFlashes = useFlashes();
|
|
7553
|
+
}
|
|
7554
|
+
return appFlashes;
|
|
7555
|
+
}
|
|
7556
|
+
const useAppFlasher = {
|
|
7557
|
+
error(msg, persistent) {
|
|
7558
|
+
useAppFlashes().flasher.error(msg, persistent);
|
|
7559
|
+
},
|
|
7560
|
+
info(msg, persistent) {
|
|
7561
|
+
useAppFlashes().flasher.warning(msg, persistent);
|
|
7562
|
+
},
|
|
7563
|
+
success(msg, persistent) {
|
|
7564
|
+
useAppFlashes().flasher.info(msg, persistent);
|
|
7565
|
+
},
|
|
7566
|
+
warning(msg, persistent) {
|
|
7567
|
+
useAppFlashes().flasher.success(msg, persistent);
|
|
7568
|
+
},
|
|
7569
|
+
genericError(email, persistent) {
|
|
7570
|
+
useAppFlashes().flasher.genericError(email, persistent);
|
|
7571
|
+
}
|
|
7572
|
+
};
|
|
7573
|
+
const _hoisted_1$m = { class: "px-4 flex items-center justify-between sm:px-0" };
|
|
7574
|
+
const _hoisted_2$h = { class: "w-0 flex-1 flex" };
|
|
7575
|
+
const _hoisted_3$g = /* @__PURE__ */ createElementVNode("svg", {
|
|
7360
7576
|
class: "mr-3 h-5 w-5",
|
|
7361
7577
|
fill: "currentColor",
|
|
7362
7578
|
viewBox: "0 0 20 20"
|
|
@@ -7367,10 +7583,10 @@ const _hoisted_3$f = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7367
7583
|
"clip-rule": "evenodd"
|
|
7368
7584
|
})
|
|
7369
7585
|
], -1);
|
|
7370
|
-
const _hoisted_4$
|
|
7371
|
-
const _hoisted_5$
|
|
7372
|
-
_hoisted_3$
|
|
7373
|
-
_hoisted_4$
|
|
7586
|
+
const _hoisted_4$e = /* @__PURE__ */ createTextVNode(" Previous ");
|
|
7587
|
+
const _hoisted_5$d = [
|
|
7588
|
+
_hoisted_3$g,
|
|
7589
|
+
_hoisted_4$e
|
|
7374
7590
|
];
|
|
7375
7591
|
const _hoisted_6$b = { class: "hidden md:flex" };
|
|
7376
7592
|
const _hoisted_7$a = ["textContent", "onClick"];
|
|
@@ -7391,7 +7607,7 @@ const _hoisted_11$5 = [
|
|
|
7391
7607
|
_hoisted_9$8,
|
|
7392
7608
|
_hoisted_10$8
|
|
7393
7609
|
];
|
|
7394
|
-
const _sfc_main$
|
|
7610
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
7395
7611
|
props: {
|
|
7396
7612
|
modelValue: null
|
|
7397
7613
|
},
|
|
@@ -7399,9 +7615,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7399
7615
|
setup(__props, { emit }) {
|
|
7400
7616
|
const props = __props;
|
|
7401
7617
|
const changePage = (page) => {
|
|
7402
|
-
emit("update:modelValue",
|
|
7618
|
+
emit("update:modelValue", {
|
|
7619
|
+
...props.modelValue,
|
|
7403
7620
|
page
|
|
7404
|
-
})
|
|
7621
|
+
});
|
|
7405
7622
|
};
|
|
7406
7623
|
const pageShortcuts = computed(() => {
|
|
7407
7624
|
const shortcuts = [];
|
|
@@ -7424,8 +7641,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7424
7641
|
return shortcuts;
|
|
7425
7642
|
});
|
|
7426
7643
|
return (_ctx, _cache) => {
|
|
7427
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7428
|
-
createElementVNode("div", _hoisted_2$
|
|
7644
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
7645
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
7429
7646
|
createElementVNode("a", {
|
|
7430
7647
|
href: "#",
|
|
7431
7648
|
class: normalizeClass([
|
|
@@ -7433,7 +7650,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7433
7650
|
__props.modelValue.page == 1 ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
|
|
7434
7651
|
]),
|
|
7435
7652
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(__props.modelValue.page - 1), ["prevent"]))
|
|
7436
|
-
}, _hoisted_5$
|
|
7653
|
+
}, _hoisted_5$d, 2)
|
|
7437
7654
|
]),
|
|
7438
7655
|
createElementVNode("div", _hoisted_6$b, [
|
|
7439
7656
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pageShortcuts), (i) => {
|
|
@@ -7463,11 +7680,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
7463
7680
|
};
|
|
7464
7681
|
}
|
|
7465
7682
|
});
|
|
7466
|
-
const _hoisted_1$
|
|
7683
|
+
const _hoisted_1$l = {
|
|
7467
7684
|
key: 0,
|
|
7468
7685
|
class: "shadow overflow-hidden sm:rounded-md border"
|
|
7469
7686
|
};
|
|
7470
|
-
const _sfc_main$
|
|
7687
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
7471
7688
|
props: {
|
|
7472
7689
|
refreshTrigger: { default: 0 },
|
|
7473
7690
|
reloadTrigger: { default: 0 },
|
|
@@ -7506,7 +7723,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7506
7723
|
if (checkForContent)
|
|
7507
7724
|
hasContent.value = items.value.length != 0;
|
|
7508
7725
|
}, () => {
|
|
7509
|
-
|
|
7726
|
+
useAppFlasher.genericError();
|
|
7510
7727
|
});
|
|
7511
7728
|
};
|
|
7512
7729
|
watch([sortDir, dateRange], () => {
|
|
@@ -7522,14 +7739,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7522
7739
|
loadAndRender(true);
|
|
7523
7740
|
return (_ctx, _cache) => {
|
|
7524
7741
|
return openBlock(), createElementBlock("div", null, [
|
|
7525
|
-
createVNode(_sfc_main$
|
|
7742
|
+
createVNode(_sfc_main$p, {
|
|
7526
7743
|
"date-range": dateRange.value,
|
|
7527
7744
|
"sort-dir": sortDir.value,
|
|
7528
7745
|
title: __props.title,
|
|
7529
7746
|
onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
|
|
7530
7747
|
onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
|
|
7531
7748
|
}, null, 8, ["date-range", "sort-dir", "title"]),
|
|
7532
|
-
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7749
|
+
hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
7533
7750
|
createElementVNode("ul", null, [
|
|
7534
7751
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
|
|
7535
7752
|
return openBlock(), createElementBlock("li", {
|
|
@@ -7541,7 +7758,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7541
7758
|
}), 128))
|
|
7542
7759
|
])
|
|
7543
7760
|
])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
|
|
7544
|
-
hasContent.value ? (openBlock(), createBlock(_sfc_main$
|
|
7761
|
+
hasContent.value ? (openBlock(), createBlock(_sfc_main$o, {
|
|
7545
7762
|
key: 2,
|
|
7546
7763
|
modelValue: pagination.value,
|
|
7547
7764
|
"onUpdate:modelValue": [
|
|
@@ -7553,8 +7770,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7553
7770
|
};
|
|
7554
7771
|
}
|
|
7555
7772
|
});
|
|
7556
|
-
const _hoisted_1$
|
|
7557
|
-
const _sfc_main$
|
|
7773
|
+
const _hoisted_1$k = ["href"];
|
|
7774
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
7558
7775
|
props: {
|
|
7559
7776
|
propsData: null,
|
|
7560
7777
|
attribute: null
|
|
@@ -7565,15 +7782,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7565
7782
|
href: __props.propsData[__props.attribute]
|
|
7566
7783
|
}, [
|
|
7567
7784
|
createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
|
|
7568
|
-
], 8, _hoisted_1$
|
|
7785
|
+
], 8, _hoisted_1$k);
|
|
7569
7786
|
};
|
|
7570
7787
|
}
|
|
7571
7788
|
});
|
|
7572
|
-
|
|
7573
|
-
const
|
|
7574
|
-
const
|
|
7575
|
-
const
|
|
7576
|
-
const
|
|
7789
|
+
var Flash_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}\n")();
|
|
7790
|
+
const _hoisted_1$j = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
|
|
7791
|
+
const _hoisted_2$g = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
|
|
7792
|
+
const _hoisted_3$f = { class: "p-4" };
|
|
7793
|
+
const _hoisted_4$d = { class: "flex items-center" };
|
|
7794
|
+
const _hoisted_5$c = { class: "w-0 flex-1 flex justify-between" };
|
|
7577
7795
|
const _hoisted_6$a = ["innerHTML"];
|
|
7578
7796
|
const _hoisted_7$9 = { class: "ml-4 flex-shrink-0 flex" };
|
|
7579
7797
|
const _hoisted_8$7 = ["onClick"];
|
|
@@ -7591,65 +7809,29 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7591
7809
|
const _hoisted_10$7 = [
|
|
7592
7810
|
_hoisted_9$7
|
|
7593
7811
|
];
|
|
7594
|
-
const _sfc_main$
|
|
7812
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
7595
7813
|
setup(__props) {
|
|
7596
|
-
const flashes =
|
|
7597
|
-
const
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
};
|
|
7608
|
-
const remove = (flash) => {
|
|
7609
|
-
let index = 0;
|
|
7610
|
-
for (const f of flashes.value) {
|
|
7611
|
-
if (flash.message === f.message) {
|
|
7612
|
-
flashes.value.splice(index, 1);
|
|
7613
|
-
return;
|
|
7614
|
-
}
|
|
7615
|
-
index++;
|
|
7814
|
+
const { flasher, flashes } = useAppFlashes();
|
|
7815
|
+
const getFlashClass = (type) => {
|
|
7816
|
+
switch (type) {
|
|
7817
|
+
case "warning":
|
|
7818
|
+
return "border-orange-500";
|
|
7819
|
+
case "error":
|
|
7820
|
+
return "border-red-500";
|
|
7821
|
+
case "info":
|
|
7822
|
+
return "border-blue-500";
|
|
7823
|
+
case "success":
|
|
7824
|
+
return "border-green-500";
|
|
7616
7825
|
}
|
|
7617
7826
|
};
|
|
7618
|
-
const renderFlash = (flash) => {
|
|
7619
|
-
flashes.value.push(flash);
|
|
7620
|
-
setTimeout((flashes2) => {
|
|
7621
|
-
flashes2.pop();
|
|
7622
|
-
}, 1e4, flashes.value);
|
|
7623
|
-
};
|
|
7624
|
-
const renderGenericError = (email) => {
|
|
7625
|
-
renderFlash({
|
|
7626
|
-
type: "error",
|
|
7627
|
-
message: `Whoops! Something went wrong, please reach out to <a class="underline text-xy-blue" href="mailto:${email}">${email}</a> if the issue persists.`
|
|
7628
|
-
});
|
|
7629
|
-
};
|
|
7630
7827
|
onMounted(() => {
|
|
7631
|
-
|
|
7632
|
-
renderFlash(flash);
|
|
7633
|
-
});
|
|
7634
|
-
window.VueBus.on("Flash-show-generic-error", (email) => {
|
|
7635
|
-
renderGenericError(email);
|
|
7636
|
-
});
|
|
7637
|
-
if (window.Flashes) {
|
|
7638
|
-
for (const flash of window.Flashes) {
|
|
7639
|
-
if (typeof flash.type === "undefined") {
|
|
7640
|
-
const values = flash.message.split(": ");
|
|
7641
|
-
renderFlash({ type: values[0], message: values[1] });
|
|
7642
|
-
return;
|
|
7643
|
-
}
|
|
7644
|
-
renderFlash({ type: flash.type, message: flash.message });
|
|
7645
|
-
}
|
|
7646
|
-
}
|
|
7828
|
+
loadWindowFlashes(flasher);
|
|
7647
7829
|
});
|
|
7648
7830
|
return (_ctx, _cache) => {
|
|
7649
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7831
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
7650
7832
|
createVNode(TransitionGroup, {
|
|
7651
7833
|
tag: "div",
|
|
7652
|
-
class: "max-w-sm w-full",
|
|
7834
|
+
class: "max-w-sm space-y-2 w-full",
|
|
7653
7835
|
"enter-active-class": "ease-out duration-300",
|
|
7654
7836
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
7655
7837
|
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
@@ -7658,15 +7840,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
7658
7840
|
"leave-to-class": "opacity-0"
|
|
7659
7841
|
}, {
|
|
7660
7842
|
default: withCtx(() => [
|
|
7661
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(flashes
|
|
7843
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(flashes), ([id2, flash]) => {
|
|
7662
7844
|
return openBlock(), createElementBlock("div", {
|
|
7663
7845
|
key: flash.message,
|
|
7664
|
-
class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [
|
|
7846
|
+
class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [getFlashClass(flash.type)]])
|
|
7665
7847
|
}, [
|
|
7666
|
-
createElementVNode("div", _hoisted_2$
|
|
7667
|
-
createElementVNode("div", _hoisted_3$
|
|
7668
|
-
createElementVNode("div", _hoisted_4$
|
|
7669
|
-
createElementVNode("div", _hoisted_5$
|
|
7848
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
7849
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
7850
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
7851
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
7670
7852
|
createElementVNode("p", {
|
|
7671
7853
|
class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
|
|
7672
7854
|
innerHTML: flash.message
|
|
@@ -7674,7 +7856,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
7674
7856
|
]),
|
|
7675
7857
|
createElementVNode("div", _hoisted_7$9, [
|
|
7676
7858
|
createElementVNode("button", {
|
|
7677
|
-
onClick: ($event) => remove(
|
|
7859
|
+
onClick: ($event) => unref(flasher).remove(id2),
|
|
7678
7860
|
class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"
|
|
7679
7861
|
}, _hoisted_10$7, 8, _hoisted_8$7)
|
|
7680
7862
|
])
|
|
@@ -7770,14 +7952,14 @@ function render(_ctx, _cache) {
|
|
|
7770
7952
|
})
|
|
7771
7953
|
]);
|
|
7772
7954
|
}
|
|
7773
|
-
const _hoisted_1$
|
|
7774
|
-
const _hoisted_2$
|
|
7955
|
+
const _hoisted_1$i = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
|
|
7956
|
+
const _hoisted_2$f = /* @__PURE__ */ createElementVNode("span", {
|
|
7775
7957
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
7776
7958
|
"aria-hidden": "true"
|
|
7777
7959
|
}, "\u200B", -1);
|
|
7778
|
-
const _hoisted_3$
|
|
7779
|
-
const _hoisted_4$
|
|
7780
|
-
const _hoisted_5$
|
|
7960
|
+
const _hoisted_3$e = { 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" };
|
|
7961
|
+
const _hoisted_4$c = { class: "block absolute top-0 right-0 pt-4 pr-4" };
|
|
7962
|
+
const _hoisted_5$b = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
|
|
7781
7963
|
const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
|
|
7782
7964
|
const _hoisted_7$8 = { class: "mt-3 sm:mt-0 sm:text-left" };
|
|
7783
7965
|
const _hoisted_8$6 = { class: "mt-2" };
|
|
@@ -7786,7 +7968,7 @@ const _hoisted_9$6 = {
|
|
|
7786
7968
|
class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
|
|
7787
7969
|
};
|
|
7788
7970
|
const _hoisted_10$6 = ["textContent", "disabled"];
|
|
7789
|
-
const _sfc_main$
|
|
7971
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
7790
7972
|
props: {
|
|
7791
7973
|
destructive: { type: Boolean, default: false },
|
|
7792
7974
|
disabled: { type: Boolean, default: false },
|
|
@@ -7816,7 +7998,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7816
7998
|
open: __props.modelValue
|
|
7817
7999
|
}, {
|
|
7818
8000
|
default: withCtx(() => [
|
|
7819
|
-
createElementVNode("div", _hoisted_1$
|
|
8001
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
7820
8002
|
createVNode(unref(TransitionChild), {
|
|
7821
8003
|
as: "template",
|
|
7822
8004
|
enter: "ease-out duration-300",
|
|
@@ -7831,7 +8013,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7831
8013
|
]),
|
|
7832
8014
|
_: 1
|
|
7833
8015
|
}),
|
|
7834
|
-
_hoisted_2$
|
|
8016
|
+
_hoisted_2$f,
|
|
7835
8017
|
createVNode(unref(TransitionChild), {
|
|
7836
8018
|
as: "template",
|
|
7837
8019
|
enter: "ease-out duration-300",
|
|
@@ -7842,14 +8024,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7842
8024
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
7843
8025
|
}, {
|
|
7844
8026
|
default: withCtx(() => [
|
|
7845
|
-
createElementVNode("div", _hoisted_3$
|
|
7846
|
-
createElementVNode("div", _hoisted_4$
|
|
8027
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
8028
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
7847
8029
|
createElementVNode("button", {
|
|
7848
8030
|
type: "button",
|
|
7849
8031
|
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",
|
|
7850
8032
|
onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue3(false))
|
|
7851
8033
|
}, [
|
|
7852
|
-
_hoisted_5$
|
|
8034
|
+
_hoisted_5$b,
|
|
7853
8035
|
createVNode(unref(render), {
|
|
7854
8036
|
class: "h-6 w-6",
|
|
7855
8037
|
"aria-hidden": "true"
|
|
@@ -7898,96 +8080,111 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7898
8080
|
};
|
|
7899
8081
|
}
|
|
7900
8082
|
});
|
|
7901
|
-
const _hoisted_1$
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
}
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
"stroke-width": "1",
|
|
7926
|
-
fill: "none",
|
|
7927
|
-
"fill-rule": "evenodd"
|
|
7928
|
-
}, [
|
|
7929
|
-
/* @__PURE__ */ createElementVNode("g", { id: "Group-6-Copy-3" }, [
|
|
7930
|
-
/* @__PURE__ */ createElementVNode("g", { id: "Group-3" }, [
|
|
7931
|
-
/* @__PURE__ */ createElementVNode("mask", {
|
|
7932
|
-
id: "mask-2",
|
|
7933
|
-
fill: "white"
|
|
7934
|
-
}, [
|
|
7935
|
-
/* @__PURE__ */ createElementVNode("use", { "xlink:href": "#path-1" })
|
|
7936
|
-
]),
|
|
7937
|
-
/* @__PURE__ */ createElementVNode("g", { id: "Clip-2" }),
|
|
7938
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
7939
|
-
d: "M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z",
|
|
7940
|
-
id: "Fill-1",
|
|
7941
|
-
fill: "#51A749",
|
|
7942
|
-
mask: "url(#mask-2)"
|
|
7943
|
-
})
|
|
7944
|
-
])
|
|
7945
|
-
])
|
|
7946
|
-
])
|
|
7947
|
-
])
|
|
7948
|
-
]),
|
|
7949
|
-
/* @__PURE__ */ createElementVNode("div", { class: "absolute" }, [
|
|
7950
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
7951
|
-
class: "mt-8",
|
|
7952
|
-
width: "70px",
|
|
7953
|
-
height: "70px",
|
|
7954
|
-
viewBox: "0 0 53 32",
|
|
7955
|
-
version: "1.1",
|
|
7956
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7957
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
8083
|
+
const _hoisted_1$h = { class: "aspect-w-1 aspect-h-1 overflow-hidden" };
|
|
8084
|
+
const _hoisted_2$e = { class: "flex justify-center relative" };
|
|
8085
|
+
const _hoisted_3$d = { class: "sr-only" };
|
|
8086
|
+
const _hoisted_4$b = /* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
|
|
8087
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
8088
|
+
width: "100%",
|
|
8089
|
+
height: "100%",
|
|
8090
|
+
viewBox: "0 0 129 129",
|
|
8091
|
+
version: "1.1",
|
|
8092
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8093
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
8094
|
+
}, [
|
|
8095
|
+
/* @__PURE__ */ createElementVNode("defs", null, [
|
|
8096
|
+
/* @__PURE__ */ createElementVNode("polygon", {
|
|
8097
|
+
id: "path-1",
|
|
8098
|
+
points: "0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"
|
|
8099
|
+
})
|
|
8100
|
+
]),
|
|
8101
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
8102
|
+
id: "Page-1",
|
|
8103
|
+
stroke: "none",
|
|
8104
|
+
"stroke-width": "1",
|
|
8105
|
+
fill: "none",
|
|
8106
|
+
"fill-rule": "evenodd"
|
|
7958
8107
|
}, [
|
|
7959
|
-
/* @__PURE__ */ createElementVNode("
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
/* @__PURE__ */ createElementVNode("
|
|
8108
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Group-6-Copy-3" }, [
|
|
8109
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Group-3" }, [
|
|
8110
|
+
/* @__PURE__ */ createElementVNode("mask", {
|
|
8111
|
+
id: "mask-2",
|
|
8112
|
+
fill: "white"
|
|
8113
|
+
}, [
|
|
8114
|
+
/* @__PURE__ */ createElementVNode("use", { "xlink:href": "#path-1" })
|
|
8115
|
+
]),
|
|
8116
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Clip-2" }),
|
|
8117
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
7969
8118
|
id: "Fill-1",
|
|
7970
|
-
|
|
7971
|
-
points: "0.7994 0.3999 11.2214 16.0009 0.7994 31.5999 11.2214 31.5999 16.4004 24.0149 21.1934 31.5999 31.9994 31.5999 21.4254 15.7449 26.0064 9.1719 20.6194 1.3729 16.1554 7.9149 11.2214 0.3999"
|
|
7972
|
-
}),
|
|
7973
|
-
/* @__PURE__ */ createElementVNode("polygon", {
|
|
7974
|
-
id: "Fill-2",
|
|
8119
|
+
d: "M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z",
|
|
7975
8120
|
fill: "#51A749",
|
|
7976
|
-
|
|
8121
|
+
mask: "url(#mask-2)"
|
|
7977
8122
|
})
|
|
7978
8123
|
])
|
|
7979
8124
|
])
|
|
7980
8125
|
])
|
|
7981
8126
|
])
|
|
7982
8127
|
], -1);
|
|
8128
|
+
const _hoisted_5$a = /* @__PURE__ */ createElementVNode("div", { class: "absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50" }, [
|
|
8129
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
8130
|
+
width: "100%",
|
|
8131
|
+
height: "100%",
|
|
8132
|
+
viewBox: "0 0 53 32",
|
|
8133
|
+
version: "1.1",
|
|
8134
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8135
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
8136
|
+
}, [
|
|
8137
|
+
/* @__PURE__ */ createElementVNode("g", {
|
|
8138
|
+
id: "Page-1",
|
|
8139
|
+
stroke: "none",
|
|
8140
|
+
"stroke-width": "1",
|
|
8141
|
+
fill: "none",
|
|
8142
|
+
"fill-rule": "evenodd"
|
|
8143
|
+
}, [
|
|
8144
|
+
/* @__PURE__ */ createElementVNode("g", { id: "Group-3-Copy" }, [
|
|
8145
|
+
/* @__PURE__ */ createElementVNode("polygon", {
|
|
8146
|
+
id: "Fill-1",
|
|
8147
|
+
fill: "#1F6DF4",
|
|
8148
|
+
points: "0.7994 0.3999 11.2214 16.0009 0.7994 31.5999 11.2214 31.5999 16.4004 24.0149 21.1934 31.5999 31.9994 31.5999 21.4254 15.7449 26.0064 9.1719 20.6194 1.3729 16.1554 7.9149 11.2214 0.3999"
|
|
8149
|
+
}),
|
|
8150
|
+
/* @__PURE__ */ createElementVNode("polygon", {
|
|
8151
|
+
id: "Fill-2",
|
|
8152
|
+
fill: "#51A749",
|
|
8153
|
+
points: "41.978 0.3999 36.799 7.6269 32.006 0.3999 21.2 0.3999 31.775 15.5069 27.194 21.7689 32.27 29.1999 52.4 0.3999"
|
|
8154
|
+
})
|
|
8155
|
+
])
|
|
8156
|
+
])
|
|
8157
|
+
])
|
|
8158
|
+
], -1);
|
|
8159
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
8160
|
+
setup(__props) {
|
|
8161
|
+
const attrs = useAttrs();
|
|
8162
|
+
return (_ctx, _cache) => {
|
|
8163
|
+
var _a, _b;
|
|
8164
|
+
return openBlock(), createElementBlock("div", {
|
|
8165
|
+
class: normalizeClass(((_a = unref(attrs)) == null ? void 0 : _a.class) ? (_b = unref(attrs)) == null ? void 0 : _b.class : "h-20 w-20")
|
|
8166
|
+
}, [
|
|
8167
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
8168
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
8169
|
+
createElementVNode("p", _hoisted_3$d, [
|
|
8170
|
+
renderSlot(_ctx.$slots, "default")
|
|
8171
|
+
]),
|
|
8172
|
+
_hoisted_4$b,
|
|
8173
|
+
_hoisted_5$a
|
|
8174
|
+
])
|
|
8175
|
+
])
|
|
8176
|
+
], 2);
|
|
8177
|
+
};
|
|
8178
|
+
}
|
|
8179
|
+
});
|
|
8180
|
+
const _hoisted_1$g = {
|
|
8181
|
+
key: 0,
|
|
8182
|
+
class: "fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-50 bg-gray-50 bg-opacity-50"
|
|
8183
|
+
};
|
|
8184
|
+
const _hoisted_2$d = { class: "mt-2" };
|
|
7983
8185
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
7984
8186
|
setup(__props) {
|
|
7985
|
-
const idx =
|
|
7986
|
-
const loading = ref(false);
|
|
7987
|
-
const maxIdx = ref(0);
|
|
7988
|
-
const messages = ref([]);
|
|
7989
|
-
const msg = ref("");
|
|
7990
|
-
const showMsg = ref(false);
|
|
8187
|
+
const { idx, loading, maxIdx, messages, msg, showMsg } = useAppSpinnerDisplay();
|
|
7991
8188
|
const fadeIn = () => {
|
|
7992
8189
|
idx.value++;
|
|
7993
8190
|
if (idx.value > maxIdx.value) {
|
|
@@ -8003,50 +8200,30 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8003
8200
|
showMsg.value = false;
|
|
8004
8201
|
}, 2500);
|
|
8005
8202
|
};
|
|
8006
|
-
onMounted(() => {
|
|
8007
|
-
window.VueBus.on("Spinner-show", (spinMessages) => {
|
|
8008
|
-
if (spinMessages) {
|
|
8009
|
-
messages.value = spinMessages;
|
|
8010
|
-
maxIdx.value = spinMessages.length - 1;
|
|
8011
|
-
msg.value = messages.value[idx.value];
|
|
8012
|
-
showMsg.value = true;
|
|
8013
|
-
}
|
|
8014
|
-
loading.value = true;
|
|
8015
|
-
});
|
|
8016
|
-
window.VueBus.on("Spinner-hide", () => {
|
|
8017
|
-
idx.value = 0;
|
|
8018
|
-
maxIdx.value = 0;
|
|
8019
|
-
messages.value = [];
|
|
8020
|
-
msg.value = "";
|
|
8021
|
-
loading.value = false;
|
|
8022
|
-
});
|
|
8023
|
-
});
|
|
8024
8203
|
return (_ctx, _cache) => {
|
|
8025
|
-
return loading
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
[vShow, messages.value]
|
|
8049
|
-
])
|
|
8204
|
+
return unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
8205
|
+
createVNode(_sfc_main$j, { class: "w-32 h-32" }),
|
|
8206
|
+
withDirectives(createElementVNode("div", _hoisted_2$d, [
|
|
8207
|
+
createVNode(Transition, {
|
|
8208
|
+
appear: "",
|
|
8209
|
+
"enter-active-class": "ease-out duration-1000",
|
|
8210
|
+
"enter-from-class": "opacity-0",
|
|
8211
|
+
"enter-to-class": "opacity-100",
|
|
8212
|
+
"leave-active-class": "ease-in duration-500",
|
|
8213
|
+
"leave-from-class": "opacity-100",
|
|
8214
|
+
"leave-to-class": "opacity-0",
|
|
8215
|
+
onAfterEnter: fadeOut,
|
|
8216
|
+
onAfterLeave: fadeIn
|
|
8217
|
+
}, {
|
|
8218
|
+
default: withCtx(() => [
|
|
8219
|
+
withDirectives(createElementVNode("div", { class: "container font-medium text-lg leading-snug text-center transition-opacity" }, toDisplayString(unref(msg)), 513), [
|
|
8220
|
+
[vShow, unref(showMsg)]
|
|
8221
|
+
])
|
|
8222
|
+
]),
|
|
8223
|
+
_: 1
|
|
8224
|
+
})
|
|
8225
|
+
], 512), [
|
|
8226
|
+
[vShow, unref(messages)]
|
|
8050
8227
|
])
|
|
8051
8228
|
])) : createCommentVNode("", true);
|
|
8052
8229
|
};
|
|
@@ -8324,7 +8501,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8324
8501
|
])
|
|
8325
8502
|
])
|
|
8326
8503
|
]),
|
|
8327
|
-
createVNode(_sfc_main$
|
|
8504
|
+
createVNode(_sfc_main$l),
|
|
8328
8505
|
createVNode(_sfc_main$i)
|
|
8329
8506
|
], 64);
|
|
8330
8507
|
};
|
|
@@ -8874,7 +9051,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8874
9051
|
])
|
|
8875
9052
|
])
|
|
8876
9053
|
]),
|
|
8877
|
-
createVNode(_sfc_main$
|
|
9054
|
+
createVNode(_sfc_main$l),
|
|
8878
9055
|
createVNode(_sfc_main$i)
|
|
8879
9056
|
], 64);
|
|
8880
9057
|
};
|
|
@@ -9194,7 +9371,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
9194
9371
|
};
|
|
9195
9372
|
items.value = success.data.items;
|
|
9196
9373
|
}, () => {
|
|
9197
|
-
|
|
9374
|
+
useAppFlasher.genericError();
|
|
9198
9375
|
});
|
|
9199
9376
|
};
|
|
9200
9377
|
const reloadTable = () => {
|
|
@@ -9235,7 +9412,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
9235
9412
|
])
|
|
9236
9413
|
])) : createCommentVNode("", true),
|
|
9237
9414
|
__props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
9238
|
-
createVNode(_sfc_main$
|
|
9415
|
+
createVNode(_sfc_main$r, {
|
|
9239
9416
|
modelValue: dateRange.value,
|
|
9240
9417
|
"onUpdate:modelValue": [
|
|
9241
9418
|
_cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
|
|
@@ -9300,7 +9477,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
9300
9477
|
])
|
|
9301
9478
|
])
|
|
9302
9479
|
]),
|
|
9303
|
-
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$
|
|
9480
|
+
unref(hasContent) ? (openBlock(), createBlock(_sfc_main$o, {
|
|
9304
9481
|
key: 0,
|
|
9305
9482
|
modelValue: pagination.value,
|
|
9306
9483
|
"onUpdate:modelValue": [
|
|
@@ -9446,21 +9623,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
9446
9623
|
checked: __props.modelValue,
|
|
9447
9624
|
class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
|
|
9448
9625
|
type: "checkbox"
|
|
9449
|
-
},
|
|
9626
|
+
}, {
|
|
9450
9627
|
onChange: ($event) => {
|
|
9451
9628
|
emits("update:modelValue", $event.target.checked);
|
|
9452
|
-
}
|
|
9453
|
-
|
|
9629
|
+
},
|
|
9630
|
+
..._ctx.$attrs
|
|
9631
|
+
}), null, 16, _hoisted_3$4)
|
|
9454
9632
|
]),
|
|
9455
9633
|
createElementVNode("div", _hoisted_4$4, [
|
|
9456
|
-
createVNode(_sfc_main$
|
|
9634
|
+
createVNode(_sfc_main$u, {
|
|
9457
9635
|
class: "mt-auto",
|
|
9458
9636
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9459
9637
|
id: `${unref(uuid)}-label`,
|
|
9460
9638
|
for: unref(uuid),
|
|
9461
9639
|
label: __props.label
|
|
9462
9640
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9463
|
-
createVNode(_sfc_main$
|
|
9641
|
+
createVNode(_sfc_main$t, {
|
|
9464
9642
|
class: "-mt-1",
|
|
9465
9643
|
id: `${unref(uuid)}-help`,
|
|
9466
9644
|
text: __props.help
|
|
@@ -9487,9 +9665,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
9487
9665
|
},
|
|
9488
9666
|
setup(__props) {
|
|
9489
9667
|
return (_ctx, _cache) => {
|
|
9490
|
-
return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 },
|
|
9668
|
+
return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, {
|
|
9669
|
+
..._ctx.$attrs,
|
|
9491
9670
|
class: "text-sm font-semibold leading-snug text-gray-900"
|
|
9492
|
-
}))
|
|
9671
|
+
})), {
|
|
9493
9672
|
default: withCtx(() => [
|
|
9494
9673
|
renderSlot(_ctx.$slots, "default")
|
|
9495
9674
|
]),
|
|
@@ -9550,7 +9729,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9550
9729
|
]),
|
|
9551
9730
|
_: 3
|
|
9552
9731
|
}, 8, ["id"]),
|
|
9553
|
-
createVNode(_sfc_main$
|
|
9732
|
+
createVNode(_sfc_main$t, {
|
|
9554
9733
|
tag: "p",
|
|
9555
9734
|
text: __props.help,
|
|
9556
9735
|
id: `${unref(uuid)}-help`
|
|
@@ -9579,21 +9758,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9579
9758
|
disabled: option.disabled === true ? true : void 0,
|
|
9580
9759
|
class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
|
|
9581
9760
|
type: "checkbox"
|
|
9582
|
-
},
|
|
9761
|
+
}, {
|
|
9583
9762
|
onChange: ($event) => {
|
|
9584
9763
|
onChange($event.target.checked, option.value);
|
|
9585
|
-
}
|
|
9586
|
-
|
|
9764
|
+
},
|
|
9765
|
+
..._ctx.$attrs
|
|
9766
|
+
}), null, 16, _hoisted_6$2)
|
|
9587
9767
|
]),
|
|
9588
9768
|
createElementVNode("div", _hoisted_7$1, [
|
|
9589
|
-
createVNode(_sfc_main$
|
|
9769
|
+
createVNode(_sfc_main$u, {
|
|
9590
9770
|
class: "mt-auto",
|
|
9591
9771
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9592
9772
|
id: `${unref(uuid)}-${index}-label`,
|
|
9593
9773
|
for: `${unref(uuid)}-${index}`,
|
|
9594
9774
|
label: option.label
|
|
9595
9775
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9596
|
-
createVNode(_sfc_main$
|
|
9776
|
+
createVNode(_sfc_main$t, {
|
|
9597
9777
|
class: "-mt-1",
|
|
9598
9778
|
id: `${unref(uuid)}-${index}-help`,
|
|
9599
9779
|
text: option.help
|
|
@@ -9650,7 +9830,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9650
9830
|
]),
|
|
9651
9831
|
_: 3
|
|
9652
9832
|
}, 8, ["id"]),
|
|
9653
|
-
createVNode(_sfc_main$
|
|
9833
|
+
createVNode(_sfc_main$t, {
|
|
9654
9834
|
tag: "p",
|
|
9655
9835
|
text: __props.help,
|
|
9656
9836
|
id: `${unref(uuid)}-help`
|
|
@@ -9681,21 +9861,22 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9681
9861
|
name: unref(uuid),
|
|
9682
9862
|
type: "radio",
|
|
9683
9863
|
value: option.value
|
|
9684
|
-
},
|
|
9864
|
+
}, {
|
|
9685
9865
|
onChange: () => {
|
|
9686
9866
|
emits("update:modelValue", option.value);
|
|
9687
|
-
}
|
|
9688
|
-
|
|
9867
|
+
},
|
|
9868
|
+
..._ctx.$attrs
|
|
9869
|
+
}), null, 16, _hoisted_6$1)
|
|
9689
9870
|
]),
|
|
9690
9871
|
createElementVNode("div", _hoisted_7, [
|
|
9691
|
-
createVNode(_sfc_main$
|
|
9872
|
+
createVNode(_sfc_main$u, {
|
|
9692
9873
|
class: "mt-auto",
|
|
9693
9874
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
|
|
9694
9875
|
id: `${unref(uuid)}-${index}-label`,
|
|
9695
9876
|
for: `${unref(uuid)}-${index}`,
|
|
9696
9877
|
label: option.label
|
|
9697
9878
|
}, null, 8, ["disabled", "id", "for", "label"]),
|
|
9698
|
-
createVNode(_sfc_main$
|
|
9879
|
+
createVNode(_sfc_main$t, {
|
|
9699
9880
|
class: "-mt-1",
|
|
9700
9881
|
id: `${unref(uuid)}-${index}-help`,
|
|
9701
9882
|
text: option.help
|
|
@@ -9729,7 +9910,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9729
9910
|
setup(__props, { emit }) {
|
|
9730
9911
|
const props = __props;
|
|
9731
9912
|
const attrs = useAttrs();
|
|
9732
|
-
const uuid =
|
|
9913
|
+
const uuid = Uniques.CreateIdAttribute();
|
|
9733
9914
|
const internalState = ref();
|
|
9734
9915
|
const invalid = ref();
|
|
9735
9916
|
const checked = computed(() => {
|
|
@@ -9771,7 +9952,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9771
9952
|
})) : createCommentVNode("", true),
|
|
9772
9953
|
__props.help ? (openBlock(), createBlock(unref(RadioGroupDescription), { key: 1 }, {
|
|
9773
9954
|
default: withCtx(() => [
|
|
9774
|
-
createVNode(_sfc_main$
|
|
9955
|
+
createVNode(_sfc_main$t, { text: __props.help }, null, 8, ["text"])
|
|
9775
9956
|
]),
|
|
9776
9957
|
_: 1
|
|
9777
9958
|
})) : createCommentVNode("", true),
|
|
@@ -9806,7 +9987,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9806
9987
|
createElementVNode("div", _hoisted_3$1, [
|
|
9807
9988
|
createVNode(unref(RadioGroupLabel), { as: "div" }, {
|
|
9808
9989
|
default: withCtx(() => [
|
|
9809
|
-
createVNode(_sfc_main$
|
|
9990
|
+
createVNode(_sfc_main$u, {
|
|
9810
9991
|
tag: "div",
|
|
9811
9992
|
class: "mt-auto mb-auto",
|
|
9812
9993
|
label: option.label
|
|
@@ -9819,7 +10000,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9819
10000
|
as: "div"
|
|
9820
10001
|
}, {
|
|
9821
10002
|
default: withCtx(() => [
|
|
9822
|
-
createVNode(_sfc_main$
|
|
10003
|
+
createVNode(_sfc_main$t, {
|
|
9823
10004
|
tag: "div",
|
|
9824
10005
|
class: "mt-auto",
|
|
9825
10006
|
text: option.help
|
|
@@ -9833,13 +10014,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9833
10014
|
class: "font-semibold leading-snug mt-4 text-gray-900 text-sm"
|
|
9834
10015
|
}, {
|
|
9835
10016
|
default: withCtx(() => [
|
|
9836
|
-
createTextVNode(toDisplayString(option.sublabel) + " ", 1),
|
|
9837
10017
|
renderSlot(_ctx.$slots, "sublabel", {
|
|
9838
10018
|
active,
|
|
9839
10019
|
checked: checked2,
|
|
9840
10020
|
disabled,
|
|
9841
10021
|
option
|
|
9842
|
-
})
|
|
10022
|
+
}, () => [
|
|
10023
|
+
createTextVNode(toDisplayString(option.sublabel), 1)
|
|
10024
|
+
])
|
|
9843
10025
|
]),
|
|
9844
10026
|
_: 2
|
|
9845
10027
|
}, 1024)
|
|
@@ -9894,7 +10076,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9894
10076
|
const uuid = attrs.id || Uniques.CreateIdAttribute();
|
|
9895
10077
|
return (_ctx, _cache) => {
|
|
9896
10078
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9897
|
-
createVNode(_sfc_main$
|
|
10079
|
+
createVNode(_sfc_main$u, {
|
|
9898
10080
|
class: "block",
|
|
9899
10081
|
id: `${unref(uuid)}-label`,
|
|
9900
10082
|
for: unref(uuid),
|
|
@@ -9920,7 +10102,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
9920
10102
|
value: __props.modelValue,
|
|
9921
10103
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
9922
10104
|
}, _ctx.$attrs), null, 16, _hoisted_1$1),
|
|
9923
|
-
createVNode(_sfc_main$
|
|
10105
|
+
createVNode(_sfc_main$t, {
|
|
9924
10106
|
id: `${unref(uuid)}-help`,
|
|
9925
10107
|
text: __props.help
|
|
9926
10108
|
}, null, 8, ["id", "text"])
|
|
@@ -9962,12 +10144,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9962
10144
|
"aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
|
|
9963
10145
|
}, [
|
|
9964
10146
|
__props.legend || __props.help ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
9965
|
-
createVNode(_sfc_main$
|
|
10147
|
+
createVNode(_sfc_main$u, {
|
|
9966
10148
|
class: "block my-auto",
|
|
9967
10149
|
label: __props.legend,
|
|
9968
10150
|
tag: "legend"
|
|
9969
10151
|
}, null, 8, ["label"]),
|
|
9970
|
-
createVNode(_sfc_main$
|
|
10152
|
+
createVNode(_sfc_main$t, {
|
|
9971
10153
|
tag: "p",
|
|
9972
10154
|
text: __props.help,
|
|
9973
10155
|
id: `${unref(uuid)}-help`
|
|
@@ -9985,10 +10167,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9985
10167
|
name: unref(hasNameAttr) ? __props.name : unref(uuid),
|
|
9986
10168
|
value: true,
|
|
9987
10169
|
checked: __props.modelValue === true
|
|
9988
|
-
},
|
|
10170
|
+
}, {
|
|
10171
|
+
..._ctx.$attrs,
|
|
9989
10172
|
onChange
|
|
9990
|
-
})
|
|
9991
|
-
createVNode(_sfc_main$
|
|
10173
|
+
}), null, 16, _hoisted_4),
|
|
10174
|
+
createVNode(_sfc_main$u, {
|
|
9992
10175
|
class: "ml-2",
|
|
9993
10176
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
9994
10177
|
label: "Yes",
|
|
@@ -10006,10 +10189,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10006
10189
|
name: unref(hasNameAttr) ? __props.name : unref(uuid),
|
|
10007
10190
|
value: false,
|
|
10008
10191
|
checked: __props.modelValue === false
|
|
10009
|
-
},
|
|
10192
|
+
}, {
|
|
10193
|
+
..._ctx.$attrs,
|
|
10010
10194
|
onChange
|
|
10011
|
-
})
|
|
10012
|
-
createVNode(_sfc_main$
|
|
10195
|
+
}), null, 16, _hoisted_6),
|
|
10196
|
+
createVNode(_sfc_main$u, {
|
|
10013
10197
|
class: "ml-2",
|
|
10014
10198
|
disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
|
|
10015
10199
|
label: "No",
|
|
@@ -10024,21 +10208,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10024
10208
|
var components = /* @__PURE__ */ Object.freeze({
|
|
10025
10209
|
__proto__: null,
|
|
10026
10210
|
[Symbol.toStringTag]: "Module",
|
|
10027
|
-
ActionsDropdown: _sfc_main$
|
|
10028
|
-
Cards: _sfc_main$
|
|
10029
|
-
ContentModal: _sfc_main$
|
|
10030
|
-
DateFilter: _sfc_main$
|
|
10031
|
-
DetailList: _sfc_main$
|
|
10032
|
-
DownloadCell: _sfc_main$
|
|
10033
|
-
Flash: _sfc_main$
|
|
10034
|
-
Modal: _sfc_main$
|
|
10211
|
+
ActionsDropdown: _sfc_main$x,
|
|
10212
|
+
Cards: _sfc_main$w,
|
|
10213
|
+
ContentModal: _sfc_main$v,
|
|
10214
|
+
DateFilter: _sfc_main$p,
|
|
10215
|
+
DetailList: _sfc_main$n,
|
|
10216
|
+
DownloadCell: _sfc_main$m,
|
|
10217
|
+
Flash: _sfc_main$l,
|
|
10218
|
+
Modal: _sfc_main$k,
|
|
10035
10219
|
SidebarLayout: _sfc_main$h,
|
|
10036
10220
|
Slideover: _sfc_main$e,
|
|
10037
10221
|
StackedLayout: _sfc_main$c,
|
|
10038
10222
|
Popover: _sfc_main$g,
|
|
10039
10223
|
PopoverContent,
|
|
10040
10224
|
PopoverPosition: _sfc_main$g,
|
|
10041
|
-
Paginator: _sfc_main$
|
|
10225
|
+
Paginator: _sfc_main$o,
|
|
10042
10226
|
Spinner: _sfc_main$i,
|
|
10043
10227
|
StaticTable: _sfc_main$b,
|
|
10044
10228
|
Steps: _sfc_main$a,
|
|
@@ -10046,95 +10230,23 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
10046
10230
|
Tabs: _sfc_main$8,
|
|
10047
10231
|
Toggle: _sfc_main$7,
|
|
10048
10232
|
Tooltip: _sfc_main$d,
|
|
10049
|
-
BaseInput: _sfc_main$
|
|
10233
|
+
BaseInput: _sfc_main$s,
|
|
10050
10234
|
Checkbox: _sfc_main$6,
|
|
10051
|
-
DateRangePicker: _sfc_main$
|
|
10052
|
-
InputHelp: _sfc_main$
|
|
10053
|
-
InputLabel: _sfc_main$
|
|
10235
|
+
DateRangePicker: _sfc_main$r,
|
|
10236
|
+
InputHelp: _sfc_main$t,
|
|
10237
|
+
InputLabel: _sfc_main$u,
|
|
10054
10238
|
FieldsetLegend: _sfc_main$5,
|
|
10055
10239
|
MultiCheckboxes: _sfc_main$4,
|
|
10056
10240
|
Radio: _sfc_main$3,
|
|
10057
10241
|
RadioCards: _sfc_main$2,
|
|
10058
|
-
Select: _sfc_main$
|
|
10242
|
+
Select: _sfc_main$q,
|
|
10059
10243
|
TextArea: _sfc_main$1,
|
|
10060
|
-
YesOrNoRadio: _sfc_main
|
|
10244
|
+
YesOrNoRadio: _sfc_main,
|
|
10245
|
+
XYSpinner: _sfc_main$j
|
|
10061
10246
|
});
|
|
10062
|
-
function useBaseAPI(path, method = "GET", initOpts = {}) {
|
|
10063
|
-
const result = ref();
|
|
10064
|
-
const error = shallowRef();
|
|
10065
|
-
const hasFetched = ref(false);
|
|
10066
|
-
const isFinished = ref(false);
|
|
10067
|
-
const isLoading = ref(false);
|
|
10068
|
-
const isAborted = ref(false);
|
|
10069
|
-
let requestCount = 0;
|
|
10070
|
-
let controller;
|
|
10071
|
-
const abort = () => {
|
|
10072
|
-
if (controller !== void 0) {
|
|
10073
|
-
controller.abort();
|
|
10074
|
-
}
|
|
10075
|
-
};
|
|
10076
|
-
const execute = (data2 = {}, opts = {}) => {
|
|
10077
|
-
requestCount++;
|
|
10078
|
-
const count = requestCount;
|
|
10079
|
-
controller = new AbortController();
|
|
10080
|
-
isAborted.value = false;
|
|
10081
|
-
isFinished.value = false;
|
|
10082
|
-
isLoading.value = true;
|
|
10083
|
-
const requestConfig = {
|
|
10084
|
-
data: ["POST", "post", "PUT", "put"].includes(method) ? data2 : {},
|
|
10085
|
-
method,
|
|
10086
|
-
params: ["GET", "get"].includes(method) ? data2 : {},
|
|
10087
|
-
signal: controller.signal,
|
|
10088
|
-
url: path
|
|
10089
|
-
};
|
|
10090
|
-
return BaseAPI.makeRequest(requestConfig, __spreadValues(__spreadValues({}, initOpts), opts)).then((success) => {
|
|
10091
|
-
result.value = success;
|
|
10092
|
-
error.value = void 0;
|
|
10093
|
-
isAborted.value = false;
|
|
10094
|
-
return success;
|
|
10095
|
-
}, (err) => {
|
|
10096
|
-
error.value = err;
|
|
10097
|
-
if (axios.isCancel(err)) {
|
|
10098
|
-
isAborted.value = true;
|
|
10099
|
-
}
|
|
10100
|
-
throw err;
|
|
10101
|
-
}).finally(() => {
|
|
10102
|
-
if (count == requestCount) {
|
|
10103
|
-
isFinished.value = true;
|
|
10104
|
-
isLoading.value = false;
|
|
10105
|
-
}
|
|
10106
|
-
hasFetched.value = true;
|
|
10107
|
-
});
|
|
10108
|
-
};
|
|
10109
|
-
if ((initOpts == null ? void 0 : initOpts.immediate) && initOpts.immediate === true) {
|
|
10110
|
-
execute();
|
|
10111
|
-
}
|
|
10112
|
-
return {
|
|
10113
|
-
result,
|
|
10114
|
-
error,
|
|
10115
|
-
isFinished,
|
|
10116
|
-
isLoading,
|
|
10117
|
-
isAborted,
|
|
10118
|
-
hasFetched,
|
|
10119
|
-
abort,
|
|
10120
|
-
execute
|
|
10121
|
-
};
|
|
10122
|
-
}
|
|
10123
|
-
function useBaseAPIGet(url, opts = {}) {
|
|
10124
|
-
return useBaseAPI(url, "GET", opts);
|
|
10125
|
-
}
|
|
10126
|
-
function useBaseAPIDelete(url, opts = {}) {
|
|
10127
|
-
return useBaseAPI(url, "DELETE", opts);
|
|
10128
|
-
}
|
|
10129
|
-
function useBaseAPIPost(url, opts = {}) {
|
|
10130
|
-
return useBaseAPI(url, "POST", opts);
|
|
10131
|
-
}
|
|
10132
|
-
function useBaseAPIPut(url, opts = {}) {
|
|
10133
|
-
return useBaseAPI(url, "PUT", opts);
|
|
10134
|
-
}
|
|
10135
10247
|
const install = function installTrees(app) {
|
|
10136
10248
|
Object.entries(components).forEach(([componentName, component]) => {
|
|
10137
10249
|
app.component(componentName, component);
|
|
10138
10250
|
});
|
|
10139
10251
|
};
|
|
10140
|
-
export { _sfc_main$
|
|
10252
|
+
export { _sfc_main$x as ActionsDropdown, BaseAPI, _sfc_main$s as BaseInput, _sfc_main$w as Cards, _sfc_main$6 as Checkbox, _sfc_main$v as ContentModal, _sfc_main$p as DateFilter, _sfc_main$r as DateRangePicker, _sfc_main$n as DetailList, _sfc_main$m as DownloadCell, _sfc_main$5 as FieldsetLegend, _sfc_main$l as Flash, _sfc_main$t as InputHelp, _sfc_main$u as InputLabel, _sfc_main$k as Modal, _sfc_main$4 as MultiCheckboxes, _sfc_main$o 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$q 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$j as XYSpinner, _sfc_main as YesOrNoRadio, install as default, useAppFlasher, useAppFlashes, useAppSpinner, useBaseAPI, useBaseAPIDelete, useBaseAPIGet, useBaseAPIPost, useBaseAPIPut, useFlashes, useSpinnerDisplay };
|