@xy-planning-network/trees 0.14.0-dev-3 → 0.14.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 +434 -434
- package/dist/trees.umd.js +9 -9
- package/package.json +1 -1
- package/src/lib-components/overlays/ContentModal.vue +2 -0
- package/src/lib-components/overlays/Modal.vue +2 -0
- package/src/lib-components/overlays/Popover/Popover.vue +1 -1
- package/src/lib-components/overlays/Slideover.vue +2 -0
- package/types/lib-components/overlays/ContentModal.vue.d.ts +2 -0
- package/types/lib-components/overlays/Modal.vue.d.ts +2 -0
- package/types/lib-components/overlays/Slideover.vue.d.ts +2 -0
- package/types/composables/useActionItems.d.ts +0 -12
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +0 -8
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ withDefaults(
|
|
|
22
22
|
const open = defineModel<boolean>({ required: true })
|
|
23
23
|
|
|
24
24
|
const emit = defineEmits<{
|
|
25
|
+
(e: "afterLeave"): void
|
|
25
26
|
(e: "close"): void
|
|
26
27
|
}>()
|
|
27
28
|
|
|
@@ -71,6 +72,7 @@ watch(open, (isOpen) => {
|
|
|
71
72
|
leave="ease-in duration-200"
|
|
72
73
|
leave-from="opacity-100 translate-y-0 sm:scale-100"
|
|
73
74
|
leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
75
|
+
@after-leave="emit('afterLeave')"
|
|
74
76
|
>
|
|
75
77
|
<div
|
|
76
78
|
class="inline-block align-bottom bg-white rounded-xy px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md sm:w-full sm:p-8 sm:rounded-xy-lg"
|
|
@@ -29,6 +29,7 @@ const props = withDefaults(
|
|
|
29
29
|
const open = defineModel<boolean>({ required: true })
|
|
30
30
|
|
|
31
31
|
const emit = defineEmits<{
|
|
32
|
+
(e: "afterLeave"): void
|
|
32
33
|
(e: "close"): void
|
|
33
34
|
(e: "submit"): void
|
|
34
35
|
}>()
|
|
@@ -89,6 +90,7 @@ watch(open, (isOpen) => {
|
|
|
89
90
|
leave="ease-in duration-200"
|
|
90
91
|
leave-from="opacity-100 translate-y-0 sm:scale-100"
|
|
91
92
|
leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
93
|
+
@after-leave="emit('afterLeave')"
|
|
92
94
|
>
|
|
93
95
|
<div
|
|
94
96
|
class="inline-block align-bottom text-left overflow-y-visible transform transition-all w-full sm:my-8 sm:align-middle"
|
|
@@ -61,7 +61,7 @@ const { floatingStyles } = useFloating(triggerRef, wrapperRef, {
|
|
|
61
61
|
|
|
62
62
|
<template>
|
|
63
63
|
<HeadlessPopover v-slot="{ open, close }" :as="as" class="relative">
|
|
64
|
-
<HeadlessPopoverButton ref="trigger"
|
|
64
|
+
<HeadlessPopoverButton ref="trigger">
|
|
65
65
|
<slot name="button" :open="open" :close="close"></slot>
|
|
66
66
|
</HeadlessPopoverButton>
|
|
67
67
|
|
|
@@ -43,6 +43,7 @@ const layout = computed(() => {
|
|
|
43
43
|
const open = defineModel<boolean>({ required: true })
|
|
44
44
|
|
|
45
45
|
const emit = defineEmits<{
|
|
46
|
+
(e: "afterLeave"): void
|
|
46
47
|
(e: "close"): void
|
|
47
48
|
}>()
|
|
48
49
|
|
|
@@ -73,6 +74,7 @@ watch(open, (isOpen) => {
|
|
|
73
74
|
leave="transform transition ease-in-out duration-500 sm:duration-700"
|
|
74
75
|
leave-from="translate-x-0"
|
|
75
76
|
leave-to="translate-x-full"
|
|
77
|
+
@after-leave="emit('afterLeave')"
|
|
76
78
|
>
|
|
77
79
|
<div :class="['w-screen', layout.maxWidth]">
|
|
78
80
|
<div
|
|
@@ -9,8 +9,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
11
|
close: () => any;
|
|
12
|
+
afterLeave: () => any;
|
|
12
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
14
|
onClose?: (() => any) | undefined;
|
|
15
|
+
onAfterLeave?: (() => any) | undefined;
|
|
14
16
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
17
|
}>, {
|
|
16
18
|
title: string;
|
|
@@ -13,9 +13,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
} & {
|
|
14
14
|
close: () => any;
|
|
15
15
|
submit: () => any;
|
|
16
|
+
afterLeave: () => any;
|
|
16
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
18
|
onClose?: (() => any) | undefined;
|
|
18
19
|
onSubmit?: (() => any) | undefined;
|
|
20
|
+
onAfterLeave?: (() => any) | undefined;
|
|
19
21
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
22
|
}>, {
|
|
21
23
|
title: string;
|
|
@@ -10,8 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
"update:modelValue": (value: boolean) => any;
|
|
11
11
|
} & {
|
|
12
12
|
close: () => any;
|
|
13
|
+
afterLeave: () => any;
|
|
13
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
15
|
onClose?: (() => any) | undefined;
|
|
16
|
+
onAfterLeave?: (() => any) | undefined;
|
|
15
17
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
18
|
}>, {
|
|
17
19
|
size: "sm" | "md" | "lg";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
import { ActionItem } from "./nav";
|
|
3
|
-
export declare const useActionItems: (items: ActionItem[] | Ref<ActionItem[]>) => {
|
|
4
|
-
actions: import("vue").ComputedRef<{
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
show: boolean;
|
|
7
|
-
onClick: (...args: any[]) => void;
|
|
8
|
-
icon?: import("vue").RenderFunction | import("vue").FunctionalComponent<{}, {}, any, {}> | undefined;
|
|
9
|
-
label: string;
|
|
10
|
-
}[]>;
|
|
11
|
-
hasActions: import("vue").ComputedRef<boolean>;
|
|
12
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TableActionItem } from "../../composables";
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
actions?: TableActionItem[];
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
-
actions: TableActionItem<import("../../composables").TableRowData>[];
|
|
7
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export default _default;
|