@xy-planning-network/trees 0.6.0-rc-1 → 0.6.1
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 +82 -72
- package/dist/trees.umd.js +6 -6
- package/package.json +1 -1
- package/src/lib-components/indicators/XYSpinner.vue +1 -1
- package/src/lib-components/layout/SidebarLayout.vue +1 -1
- package/src/lib-components/overlays/ContentModal.vue +1 -1
- package/src/lib-components/overlays/Flash.vue +49 -42
- package/src/lib-components/overlays/Modal.vue +1 -1
- package/src/lib-components/overlays/Slideover.vue +1 -1
- package/src/lib-components/overlays/Spinner.vue +27 -24
- package/types/api/url.d.ts +0 -1
- package/types/composables/usePopper.d.ts +0 -19
- package/types/types/lists.d.ts +0 -12
package/dist/trees.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, cloneVNode, h, inject,
|
|
1
|
+
import { ref, cloneVNode, h, inject, watchEffect, provide, 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
2
|
function useSpinnerDisplay() {
|
|
3
3
|
const idx = ref(0);
|
|
4
4
|
const loading = ref(false);
|
|
@@ -4998,7 +4998,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4998
4998
|
createVNode(unref(Dialog), {
|
|
4999
4999
|
as: "div",
|
|
5000
5000
|
static: "",
|
|
5001
|
-
class: "fixed z-
|
|
5001
|
+
class: "fixed z-30 inset-0 overflow-y-auto",
|
|
5002
5002
|
onClose: _cache[1] || (_cache[1] = ($event) => updateModelValue3(false)),
|
|
5003
5003
|
open: __props.modelValue
|
|
5004
5004
|
}, {
|
|
@@ -7849,7 +7849,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
7849
7849
|
}
|
|
7850
7850
|
});
|
|
7851
7851
|
var Flash_vue_vue_type_style_index_0_lang = "";
|
|
7852
|
-
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-
|
|
7852
|
+
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-[45]" };
|
|
7853
7853
|
const _hoisted_2$g = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
|
|
7854
7854
|
const _hoisted_3$f = { class: "p-4" };
|
|
7855
7855
|
const _hoisted_4$d = { class: "flex items-center" };
|
|
@@ -7890,47 +7890,52 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
7890
7890
|
loadWindowFlashes(flasher);
|
|
7891
7891
|
});
|
|
7892
7892
|
return (_ctx, _cache) => {
|
|
7893
|
-
return openBlock(),
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
createElementVNode("div",
|
|
7913
|
-
createElementVNode("div",
|
|
7914
|
-
createElementVNode("
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7893
|
+
return openBlock(), createBlock(unref(Portal), null, {
|
|
7894
|
+
default: withCtx(() => [
|
|
7895
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
7896
|
+
createVNode(TransitionGroup, {
|
|
7897
|
+
tag: "div",
|
|
7898
|
+
class: "max-w-sm space-y-2 w-full",
|
|
7899
|
+
"enter-active-class": "ease-out duration-300",
|
|
7900
|
+
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
7901
|
+
"enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
|
|
7902
|
+
"leave-active-class": "ease-in duration-100",
|
|
7903
|
+
"leave-from-class": "opacity-100",
|
|
7904
|
+
"leave-to-class": "opacity-0"
|
|
7905
|
+
}, {
|
|
7906
|
+
default: withCtx(() => [
|
|
7907
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(flashes), ([id2, flash]) => {
|
|
7908
|
+
return openBlock(), createElementBlock("div", {
|
|
7909
|
+
key: flash.message,
|
|
7910
|
+
class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10", [getFlashClass(flash.type)]])
|
|
7911
|
+
}, [
|
|
7912
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
7913
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
7914
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
7915
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
7916
|
+
createElementVNode("p", {
|
|
7917
|
+
class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
|
|
7918
|
+
innerHTML: flash.message
|
|
7919
|
+
}, null, 8, _hoisted_6$a)
|
|
7920
|
+
]),
|
|
7921
|
+
createElementVNode("div", _hoisted_7$9, [
|
|
7922
|
+
createElementVNode("button", {
|
|
7923
|
+
onClick: ($event) => unref(flasher).remove(id2),
|
|
7924
|
+
class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"
|
|
7925
|
+
}, _hoisted_10$7, 8, _hoisted_8$7)
|
|
7926
|
+
])
|
|
7927
|
+
])
|
|
7924
7928
|
])
|
|
7925
7929
|
])
|
|
7926
|
-
])
|
|
7927
|
-
|
|
7928
|
-
],
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7930
|
+
], 2);
|
|
7931
|
+
}), 128))
|
|
7932
|
+
]),
|
|
7933
|
+
_: 1
|
|
7934
|
+
})
|
|
7935
|
+
])
|
|
7936
|
+
]),
|
|
7937
|
+
_: 1
|
|
7938
|
+
});
|
|
7934
7939
|
};
|
|
7935
7940
|
}
|
|
7936
7941
|
});
|
|
@@ -8055,7 +8060,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8055
8060
|
createVNode(unref(Dialog), {
|
|
8056
8061
|
as: "div",
|
|
8057
8062
|
static: "",
|
|
8058
|
-
class: "fixed z-
|
|
8063
|
+
class: "fixed z-30 inset-0 overflow-y-auto",
|
|
8059
8064
|
onClose: _cache[3] || (_cache[3] = ($event) => updateModelValue3(false)),
|
|
8060
8065
|
open: __props.modelValue
|
|
8061
8066
|
}, {
|
|
@@ -8145,7 +8150,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8145
8150
|
const _hoisted_1$h = { class: "aspect-square overflow-hidden" };
|
|
8146
8151
|
const _hoisted_2$e = { class: "flex justify-center relative" };
|
|
8147
8152
|
const _hoisted_3$d = { class: "sr-only" };
|
|
8148
|
-
const _hoisted_4$b = /* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
|
|
8153
|
+
const _hoisted_4$b = /* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear drop-shadow-md" }, [
|
|
8149
8154
|
/* @__PURE__ */ createElementVNode("svg", {
|
|
8150
8155
|
width: "100%",
|
|
8151
8156
|
height: "100%",
|
|
@@ -8241,7 +8246,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8241
8246
|
});
|
|
8242
8247
|
const _hoisted_1$g = {
|
|
8243
8248
|
key: 0,
|
|
8244
|
-
class: "fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-
|
|
8249
|
+
class: "fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-50"
|
|
8245
8250
|
};
|
|
8246
8251
|
const _hoisted_2$d = { class: "mt-2" };
|
|
8247
8252
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
@@ -8263,31 +8268,36 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8263
8268
|
}, 2500);
|
|
8264
8269
|
};
|
|
8265
8270
|
return (_ctx, _cache) => {
|
|
8266
|
-
return
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8271
|
+
return openBlock(), createBlock(unref(Portal), null, {
|
|
8272
|
+
default: withCtx(() => [
|
|
8273
|
+
unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
8274
|
+
createVNode(_sfc_main$j, { class: "w-32 h-32" }),
|
|
8275
|
+
withDirectives(createElementVNode("div", _hoisted_2$d, [
|
|
8276
|
+
createVNode(Transition, {
|
|
8277
|
+
appear: "",
|
|
8278
|
+
"enter-active-class": "ease-out duration-1000",
|
|
8279
|
+
"enter-from-class": "opacity-0",
|
|
8280
|
+
"enter-to-class": "opacity-100",
|
|
8281
|
+
"leave-active-class": "ease-in duration-500",
|
|
8282
|
+
"leave-from-class": "opacity-100",
|
|
8283
|
+
"leave-to-class": "opacity-0",
|
|
8284
|
+
onAfterEnter: fadeOut,
|
|
8285
|
+
onAfterLeave: fadeIn
|
|
8286
|
+
}, {
|
|
8287
|
+
default: withCtx(() => [
|
|
8288
|
+
withDirectives(createElementVNode("div", { class: "container font-medium text-lg leading-snug text-center transition-opacity" }, toDisplayString(unref(msg)), 513), [
|
|
8289
|
+
[vShow, unref(showMsg)]
|
|
8290
|
+
])
|
|
8291
|
+
]),
|
|
8292
|
+
_: 1
|
|
8293
|
+
})
|
|
8294
|
+
], 512), [
|
|
8295
|
+
[vShow, unref(messages)]
|
|
8296
|
+
])
|
|
8297
|
+
])) : createCommentVNode("", true)
|
|
8298
|
+
]),
|
|
8299
|
+
_: 1
|
|
8300
|
+
});
|
|
8291
8301
|
};
|
|
8292
8302
|
}
|
|
8293
8303
|
});
|
|
@@ -8347,7 +8357,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8347
8357
|
createVNode(unref(Dialog), {
|
|
8348
8358
|
as: "div",
|
|
8349
8359
|
static: "",
|
|
8350
|
-
class: "fixed inset-0 flex z-
|
|
8360
|
+
class: "fixed inset-0 flex z-10 md:hidden",
|
|
8351
8361
|
onClose: _cache[1] || (_cache[1] = ($event) => sidebarOpen.value = false),
|
|
8352
8362
|
open: sidebarOpen.value
|
|
8353
8363
|
}, {
|
|
@@ -8818,7 +8828,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
8818
8828
|
createVNode(unref(Dialog), {
|
|
8819
8829
|
as: "div",
|
|
8820
8830
|
static: "",
|
|
8821
|
-
class: "fixed inset-0 z-
|
|
8831
|
+
class: "fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",
|
|
8822
8832
|
onClose: _cache[1] || (_cache[1] = ($event) => close2()),
|
|
8823
8833
|
open: __props.modelValue
|
|
8824
8834
|
}, {
|