@xy-planning-network/trees 0.6.0 → 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 CHANGED
@@ -1,4 +1,4 @@
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";
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-10 inset-0 overflow-y-auto",
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-40" };
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(), createElementBlock("div", _hoisted_1$j, [
7894
- createVNode(TransitionGroup, {
7895
- tag: "div",
7896
- class: "max-w-sm space-y-2 w-full",
7897
- "enter-active-class": "ease-out duration-300",
7898
- "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
7899
- "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0",
7900
- "leave-active-class": "ease-in duration-100",
7901
- "leave-from-class": "opacity-100",
7902
- "leave-to-class": "opacity-0"
7903
- }, {
7904
- default: withCtx(() => [
7905
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(flashes), ([id2, flash]) => {
7906
- return openBlock(), createElementBlock("div", {
7907
- key: flash.message,
7908
- class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [getFlashClass(flash.type)]])
7909
- }, [
7910
- createElementVNode("div", _hoisted_2$g, [
7911
- createElementVNode("div", _hoisted_3$f, [
7912
- createElementVNode("div", _hoisted_4$d, [
7913
- createElementVNode("div", _hoisted_5$c, [
7914
- createElementVNode("p", {
7915
- class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
7916
- innerHTML: flash.message
7917
- }, null, 8, _hoisted_6$a)
7918
- ]),
7919
- createElementVNode("div", _hoisted_7$9, [
7920
- createElementVNode("button", {
7921
- onClick: ($event) => unref(flasher).remove(id2),
7922
- class: "inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"
7923
- }, _hoisted_10$7, 8, _hoisted_8$7)
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
- ], 2);
7929
- }), 128))
7930
- ]),
7931
- _: 1
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-10 inset-0 overflow-y-auto",
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-50 bg-gray-50 bg-opacity-50"
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 unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
8267
- createVNode(_sfc_main$j, { class: "w-32 h-32" }),
8268
- withDirectives(createElementVNode("div", _hoisted_2$d, [
8269
- createVNode(Transition, {
8270
- appear: "",
8271
- "enter-active-class": "ease-out duration-1000",
8272
- "enter-from-class": "opacity-0",
8273
- "enter-to-class": "opacity-100",
8274
- "leave-active-class": "ease-in duration-500",
8275
- "leave-from-class": "opacity-100",
8276
- "leave-to-class": "opacity-0",
8277
- onAfterEnter: fadeOut,
8278
- onAfterLeave: fadeIn
8279
- }, {
8280
- default: withCtx(() => [
8281
- withDirectives(createElementVNode("div", { class: "container font-medium text-lg leading-snug text-center transition-opacity" }, toDisplayString(unref(msg)), 513), [
8282
- [vShow, unref(showMsg)]
8283
- ])
8284
- ]),
8285
- _: 1
8286
- })
8287
- ], 512), [
8288
- [vShow, unref(messages)]
8289
- ])
8290
- ])) : createCommentVNode("", true);
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-40 md:hidden",
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-40 overflow-hidden bg-black bg-opacity-50",
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
  }, {