@xy-planning-network/trees 0.13.1 → 0.13.3-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 +313 -305
- package/dist/trees.umd.js +10 -10
- package/package.json +1 -1
- package/src/lib-components/overlays/Modal.vue +53 -36
- 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 +0 -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
|
@@ -85,52 +85,69 @@ watch(open, (isOpen) => {
|
|
|
85
85
|
leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
86
86
|
>
|
|
87
87
|
<div
|
|
88
|
-
class="inline-block align-bottom
|
|
88
|
+
class="inline-block align-bottom text-left overflow-y-visible transform transition-all w-full sm:my-8 sm:align-middle"
|
|
89
89
|
:class="wide ? 'sm:max-w-6xl' : 'sm:max-w-2xl'"
|
|
90
90
|
>
|
|
91
|
-
<div
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
<div
|
|
92
|
+
class="bg-white rounded-t-xy sm:rounded-t-xy-lg"
|
|
93
|
+
:class="
|
|
94
|
+
!submitText && 'rounded-b-xy sm:rounded-b-xy-lg shadow-xl'
|
|
95
|
+
"
|
|
96
|
+
>
|
|
97
|
+
<!--Close Button-->
|
|
98
|
+
<div
|
|
99
|
+
class="block absolute top-0 right-0 pt-4 pr-4 sm:pt-6 sm:pr-8"
|
|
96
100
|
>
|
|
97
|
-
<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
<div class="bg-white px-4 pt-5 pb-4 sm:p-8 sm:pb-6">
|
|
102
|
-
<div class="mt-3 sm:mt-0 sm:text-left">
|
|
103
|
-
<DialogTitle
|
|
104
|
-
as="h3"
|
|
105
|
-
class="text-center text-lg leading-6 font-medium text-gray-900"
|
|
106
|
-
>{{ title }}</DialogTitle
|
|
101
|
+
<button
|
|
102
|
+
type="button"
|
|
103
|
+
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"
|
|
104
|
+
@click="open = false"
|
|
107
105
|
>
|
|
108
|
-
|
|
109
|
-
<
|
|
106
|
+
<span class="sr-only">Close</span>
|
|
107
|
+
<XIcon class="h-6 w-6" aria-hidden="true" />
|
|
108
|
+
</button>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<!--Content-->
|
|
112
|
+
<div class="px-4 pt-5 pb-4 sm:p-8 sm:pb-6">
|
|
113
|
+
<div class="mt-3 sm:mt-0 sm:text-left">
|
|
114
|
+
<DialogTitle
|
|
115
|
+
as="h3"
|
|
116
|
+
class="text-center text-lg leading-6 font-medium text-gray-900"
|
|
117
|
+
>{{ title }}</DialogTitle
|
|
118
|
+
>
|
|
119
|
+
<div class="mt-2">
|
|
120
|
+
<slot></slot>
|
|
121
|
+
</div>
|
|
110
122
|
</div>
|
|
111
123
|
</div>
|
|
112
124
|
</div>
|
|
125
|
+
|
|
126
|
+
<!--Button-->
|
|
113
127
|
<div
|
|
114
|
-
v-if="submitText"
|
|
115
|
-
class="bg-gray-50 px-4 py-3 sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse"
|
|
128
|
+
v-if="submitText || $slots['buttons']"
|
|
129
|
+
class="bg-gray-50 flex flex-col gap-3 px-4 py-3 rounded-b-xy shadow-xl sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse sm:rounded-b-xy-lg"
|
|
116
130
|
>
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
<template v-if="submitText">
|
|
132
|
+
<button
|
|
133
|
+
type="button"
|
|
134
|
+
:class="[destructive ? 'xy-btn-red' : 'xy-btn']"
|
|
135
|
+
:disabled="disabled"
|
|
136
|
+
@click="submit()"
|
|
137
|
+
>
|
|
138
|
+
{{ submitText }}
|
|
139
|
+
</button>
|
|
140
|
+
<button
|
|
141
|
+
type="button"
|
|
142
|
+
class="xy-btn-neutral"
|
|
143
|
+
@click="open = false"
|
|
144
|
+
>
|
|
145
|
+
Cancel
|
|
146
|
+
</button>
|
|
147
|
+
</template>
|
|
148
|
+
|
|
149
|
+
<slot name="buttons" />
|
|
132
150
|
</div>
|
|
133
|
-
<slot name="buttons"></slot>
|
|
134
151
|
</div>
|
|
135
152
|
</TransitionChild>
|
|
136
153
|
</div>
|
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
|
|
File without changes
|
|
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
|
+
};
|