@xy-planning-network/trees 0.13.4 → 0.13.5-dev-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 +5717 -6518
- package/dist/trees.umd.js +14 -15
- package/package.json +2 -2
- package/src/lib-components/forms/DateRangePicker.vue +1 -1
- package/src/lib-components/forms/RadioCards.vue +15 -1
- package/src/lib-components/overlays/Popover/Popover.vue +15 -8
- package/src/lib-components/overlays/Tooltip.vue +7 -3
- package/types/api/base.d.ts +0 -0
- package/types/api/client.d.ts +0 -0
- package/types/composables/date.d.ts +0 -0
- package/types/composables/forms.d.ts +0 -0
- package/types/composables/index.d.ts +0 -0
- package/types/composables/list.d.ts +0 -0
- package/types/composables/nav.d.ts +0 -0
- package/types/composables/overlay.d.ts +0 -0
- package/types/composables/table.d.ts +0 -0
- package/types/composables/useActionItems.d.ts +0 -0
- package/types/composables/useBaseAPI.d.ts +0 -0
- package/types/composables/useBulkTable.d.ts +0 -0
- package/types/composables/useFlashes.d.ts +0 -0
- package/types/composables/useSpinner.d.ts +0 -0
- package/types/composables/useTable.d.ts +0 -0
- package/types/composables/user.d.ts +0 -0
- package/types/entry.d.ts +0 -0
- package/types/helpers/Debounce.d.ts +0 -0
- package/types/helpers/Throttle.d.ts +0 -0
- package/types/helpers/Uniques.d.ts +0 -0
- package/types/lib-components/forms/BaseInput.vue.d.ts +0 -0
- package/types/lib-components/forms/Checkbox.vue.d.ts +0 -0
- package/types/lib-components/forms/DateRangePicker.vue.d.ts +0 -0
- package/types/lib-components/forms/DateTimeInput.vue.d.ts +0 -0
- package/types/lib-components/forms/FieldsetLegend.vue.d.ts +0 -0
- package/types/lib-components/forms/InputError.vue.d.ts +0 -0
- package/types/lib-components/forms/InputHelp.vue.d.ts +0 -0
- package/types/lib-components/forms/InputLabel.vue.d.ts +0 -0
- package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +0 -0
- package/types/lib-components/forms/NumberInput.vue.d.ts +0 -0
- package/types/lib-components/forms/Radio.vue.d.ts +0 -0
- package/types/lib-components/forms/RadioCards.vue.d.ts +3 -0
- package/types/lib-components/forms/Select.vue.d.ts +0 -0
- package/types/lib-components/forms/TextArea.vue.d.ts +0 -0
- package/types/lib-components/forms/Toggle.vue.d.ts +0 -0
- package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +0 -0
- package/types/lib-components/index.d.ts +0 -0
- package/types/lib-components/indicators/AppIcon.vue.d.ts +24 -0
- package/types/lib-components/indicators/InlineAlert.vue.d.ts +0 -0
- package/types/lib-components/indicators/ProgressCircles.vue.d.ts +0 -0
- package/types/lib-components/indicators/ProgressCirclesLabeled.vue.d.ts +0 -0
- package/types/lib-components/indicators/XYSpinner.vue.d.ts +0 -0
- package/types/lib-components/layout/DateFilter.vue.d.ts +0 -0
- package/types/lib-components/layout/SidebarLayout.vue.d.ts +0 -0
- package/types/lib-components/layout/StackedLayout.vue.d.ts +0 -0
- package/types/lib-components/layout/UserMenu.vue.d.ts +8 -0
- package/types/lib-components/lists/Cards.vue.d.ts +0 -0
- package/types/lib-components/lists/DataTable.vue.d.ts +0 -0
- package/types/lib-components/lists/DetailList.vue.d.ts +0 -0
- package/types/lib-components/lists/DownloadCell.vue.d.ts +0 -0
- package/types/lib-components/lists/DynamicTable.vue.d.ts +0 -0
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +0 -0
- package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +0 -0
- package/types/lib-components/navigation/Paginator.vue.d.ts +0 -0
- package/types/lib-components/navigation/Steps.vue.d.ts +0 -0
- package/types/lib-components/navigation/TablePaginator.vue.d.ts +0 -0
- package/types/lib-components/navigation/Tabs.vue.d.ts +0 -0
- package/types/lib-components/overlays/ContentModal.vue.d.ts +0 -0
- package/types/lib-components/overlays/Flash.vue.d.ts +0 -0
- package/types/lib-components/overlays/Modal.vue.d.ts +0 -0
- package/types/lib-components/overlays/Popover/Popover.vue.d.ts +0 -0
- package/types/lib-components/overlays/Popover/PopoverContent.vue.d.ts +0 -0
- package/types/lib-components/overlays/Slideover.vue.d.ts +0 -0
- package/types/lib-components/overlays/Spinner.vue.d.ts +0 -0
- package/types/lib-components/overlays/Tooltip.vue.d.ts +0 -0
- package/types/lib-components/overlays/TooltipWrapper.vue.d.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xy-planning-network/trees",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5-dev-1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:xy-planning-network/trees",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@floating-ui/vue": "^1.0.1",
|
|
61
|
-
"@headlessui/vue": "^1.
|
|
61
|
+
"@headlessui/vue": "^1.7.23",
|
|
62
62
|
"@heroicons/vue": "^1.0.5",
|
|
63
63
|
"@maskito/core": "^3.5.0",
|
|
64
64
|
"@maskito/kit": "^3.5.0",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useInputField,
|
|
12
12
|
} from "@/composables/forms"
|
|
13
13
|
import type { DateRangeInput } from "@/composables/forms"
|
|
14
|
-
import { Instance } from "flatpickr/dist/types/instance"
|
|
14
|
+
import type { Instance } from "flatpickr/dist/types/instance"
|
|
15
15
|
import { DateRange } from "@/composables/date"
|
|
16
16
|
|
|
17
17
|
defineOptions({
|
|
@@ -38,7 +38,21 @@ const props = withDefaults(
|
|
|
38
38
|
defineProps<RadioCards & ColumnedInput>(),
|
|
39
39
|
defaultInputProps
|
|
40
40
|
)
|
|
41
|
-
const modelState = defineModel<
|
|
41
|
+
const modelState = defineModel<
|
|
42
|
+
RadioCards["modelValue"],
|
|
43
|
+
"modelValue",
|
|
44
|
+
string | number | undefined
|
|
45
|
+
>({
|
|
46
|
+
...defaultModelOpts,
|
|
47
|
+
get: (v) => {
|
|
48
|
+
// NOTE(spk): HeadlessUI RadioGroup does not support "null" values
|
|
49
|
+
if (v === null) {
|
|
50
|
+
return undefined
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return v
|
|
54
|
+
},
|
|
55
|
+
})
|
|
42
56
|
|
|
43
57
|
const { aria, isDisabled, isRequired, nameAttr, errorState, onInvalid } =
|
|
44
58
|
useInputField(props)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
PopoverButton as HeadlessPopoverButton,
|
|
5
5
|
PopoverPanel as HeadlessPopoverPanel,
|
|
6
6
|
} from "@headlessui/vue"
|
|
7
|
-
import { computed, useTemplateRef } from "vue"
|
|
7
|
+
import { computed, onMounted, ref, useTemplateRef } from "vue"
|
|
8
8
|
import {
|
|
9
9
|
useFloating,
|
|
10
10
|
offset,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
autoUpdate,
|
|
13
13
|
shift,
|
|
14
14
|
} from "@floating-ui/vue"
|
|
15
|
-
import type { Placement } from "@floating-ui/vue"
|
|
15
|
+
import type { Placement, UseFloatingReturn } from "@floating-ui/vue"
|
|
16
16
|
|
|
17
17
|
const props = withDefaults(
|
|
18
18
|
defineProps<{
|
|
@@ -51,11 +51,14 @@ const placement = computed(() => {
|
|
|
51
51
|
return props.position
|
|
52
52
|
})
|
|
53
53
|
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
const floating = ref<UseFloatingReturn | null>(null)
|
|
55
|
+
onMounted(() => {
|
|
56
|
+
floating.value = useFloating(triggerRef, wrapperRef, {
|
|
57
|
+
middleware: middleware,
|
|
58
|
+
placement: placement,
|
|
59
|
+
strategy: "fixed",
|
|
60
|
+
whileElementsMounted: autoUpdate,
|
|
61
|
+
})
|
|
59
62
|
})
|
|
60
63
|
</script>
|
|
61
64
|
|
|
@@ -65,7 +68,11 @@ const { floatingStyles } = useFloating(triggerRef, wrapperRef, {
|
|
|
65
68
|
<slot name="button" :open="open" :close="close"></slot>
|
|
66
69
|
</HeadlessPopoverButton>
|
|
67
70
|
|
|
68
|
-
<div
|
|
71
|
+
<div
|
|
72
|
+
ref="wrapper"
|
|
73
|
+
class="z-[5]"
|
|
74
|
+
:style="floating ? floating.floatingStyles : undefined"
|
|
75
|
+
>
|
|
69
76
|
<HeadlessPopoverPanel>
|
|
70
77
|
<slot :open="open" :close="close"></slot>
|
|
71
78
|
</HeadlessPopoverPanel>
|
|
@@ -16,10 +16,14 @@ withDefaults(
|
|
|
16
16
|
)
|
|
17
17
|
|
|
18
18
|
// data
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
let popoverHover: boolean = false
|
|
20
|
+
let popoverTimeout: null | NodeJS.Timeout = null
|
|
21
21
|
|
|
22
22
|
// functions
|
|
23
|
+
const openPopover = () => {
|
|
24
|
+
popoverHover = true
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
const closePopover = (close: () => void): void => {
|
|
24
28
|
popoverHover = false
|
|
25
29
|
if (popoverTimeout) clearTimeout(popoverTimeout)
|
|
@@ -52,7 +56,7 @@ const hoverPopover = (e: MouseEvent, open: boolean): void => {
|
|
|
52
56
|
<template #default="{ close }: { close: () => void }">
|
|
53
57
|
<div
|
|
54
58
|
class="sm:min-w-max bg-white rounded-xy px-3.5 py-2.5 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium"
|
|
55
|
-
@mouseover.prevent="
|
|
59
|
+
@mouseover.prevent="openPopover"
|
|
56
60
|
@mouseleave.prevent="closePopover(close)"
|
|
57
61
|
>
|
|
58
62
|
<div class="max-w-xs">
|
package/types/api/base.d.ts
CHANGED
|
File without changes
|
package/types/api/client.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/entry.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,7 @@ import type { InputOption } from "../../composables/forms";
|
|
|
2
2
|
declare const _default: <T extends InputOption>(__VLS_props: {
|
|
3
3
|
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
4
4
|
modelValue?: string | number | null | undefined;
|
|
5
|
+
modelModifiers?: Record<"modelValue", true> | undefined;
|
|
5
6
|
options: T[];
|
|
6
7
|
label?: string | undefined;
|
|
7
8
|
help?: string | undefined;
|
|
@@ -22,6 +23,7 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
22
23
|
props: {
|
|
23
24
|
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
24
25
|
modelValue?: string | number | null | undefined;
|
|
26
|
+
modelModifiers?: Record<"modelValue", true> | undefined;
|
|
25
27
|
options: T[];
|
|
26
28
|
label?: string | undefined;
|
|
27
29
|
help?: string | undefined;
|
|
@@ -46,6 +48,7 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
46
48
|
props: {
|
|
47
49
|
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
48
50
|
modelValue?: string | number | null | undefined;
|
|
51
|
+
modelModifiers?: Record<"modelValue", true> | undefined;
|
|
49
52
|
options: T[];
|
|
50
53
|
label?: string | undefined;
|
|
51
54
|
help?: string | undefined;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Component, FunctionalComponent, RenderFunction } from "vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bgColor?: `bg-${string}`;
|
|
4
|
+
iconColor?: `text-${string}`;
|
|
5
|
+
icon: FunctionalComponent | Component | RenderFunction;
|
|
6
|
+
indicator?: string | number | boolean;
|
|
7
|
+
size?: "xs" | "sm" | "base" | "lg" | "xl";
|
|
8
|
+
type?: "circle" | "square";
|
|
9
|
+
};
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
type: "circle" | "square";
|
|
12
|
+
size: "base" | "xs" | "sm" | "lg" | "xl";
|
|
13
|
+
bgColor: `bg-${string}`;
|
|
14
|
+
iconColor: `text-${string}`;
|
|
15
|
+
indicator: string | number | boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserMenuItem } from "../../composables/nav";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
menu?: UserMenuItem[];
|
|
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
|
+
menu: UserMenuItem[];
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Placement } from "@floating-ui/vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
as?: string;
|
|
4
|
+
position?: Placement | "auto";
|
|
5
|
+
tooltip: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
as: string;
|
|
9
|
+
position: Placement | "auto";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|