@wirekyt/vue 0.0.1 → 0.0.3
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/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-BnUr4dTo.cjs +232 -0
- package/dist/collapsible-jvqnRz16.js +179 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-B0onOyyK.cjs +254 -0
- package/dist/collection-Dg6EtML_.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C8zR9eg3.d.ts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DaLvr6SW.d.ts +37 -0
- package/dist/index-Di84rFjS.d.cts +444 -0
- package/dist/index-Dpm1wGVS.d.cts +74 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-kCBQJqpU.d.ts +74 -0
- package/dist/index-vIbTjrJ-.d.cts +37 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-DnTVwhew.cjs +651 -0
- package/dist/tree-view-goUH3_RC.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +277 -6
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-B-o8jLyV.cjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as splitter from "@wirekyt/dom/machines/splitter";
|
|
5
|
+
import { ExpandCollapseDetails, ExpandCollapseDetails as SplitterExpandCollapseDetails, PanelData, PanelData as SplitterPanelData, PanelProps, ResizeDetails, ResizeDetails as SplitterResizeDetails, ResizeEndDetails, ResizeEndDetails as SplitterResizeEndDetails, ResizeTriggerProps, anatomy as splitterAnatomy, layout as getLayout, layout as getSplitterLayout } from "@wirekyt/dom/machines/splitter";
|
|
6
|
+
//#region src/components/splitter/types.d.ts
|
|
7
|
+
interface RootProps {
|
|
8
|
+
defaultSize?: number[];
|
|
9
|
+
id?: string;
|
|
10
|
+
ids?: Partial<{
|
|
11
|
+
root: string;
|
|
12
|
+
resizeTrigger(id: string): string;
|
|
13
|
+
label(id: string): string;
|
|
14
|
+
panel(id: string | number): string;
|
|
15
|
+
}>;
|
|
16
|
+
keyboardResizeBy?: number;
|
|
17
|
+
nonce?: string;
|
|
18
|
+
orientation?: "horizontal" | "vertical";
|
|
19
|
+
panels: splitter.PanelData[];
|
|
20
|
+
registry?: splitter.SplitterRegistry;
|
|
21
|
+
size?: number[];
|
|
22
|
+
}
|
|
23
|
+
type RootEmits = {
|
|
24
|
+
collapse: [details: splitter.ExpandCollapseDetails];
|
|
25
|
+
expand: [details: splitter.ExpandCollapseDetails];
|
|
26
|
+
resize: [details: splitter.ResizeDetails];
|
|
27
|
+
resizeEnd: [details: splitter.ResizeEndDetails];
|
|
28
|
+
resizeStart: [];
|
|
29
|
+
"update:size": [size: number[]];
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/splitter/use-splitter.d.ts
|
|
33
|
+
interface UseSplitterProps extends Optional<Omit<splitter.Props, "dir" | "getRootNode">, "id"> {}
|
|
34
|
+
interface UseSplitterReturn extends ComputedRef<splitter.Api<PropTypes>> {}
|
|
35
|
+
declare const useSplitter: (props: MaybeRef<UseSplitterProps>, emit?: EmitFn$1<RootEmits>) => UseSplitterReturn;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/splitter/use-context.d.ts
|
|
38
|
+
interface UseSplitterContext extends UseSplitterReturn {}
|
|
39
|
+
declare const SplitterProvider: (opts: UseSplitterContext) => void, useSplitterContext: (fallback?: UseSplitterContext | undefined) => UseSplitterContext;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/splitter/context.vue.d.ts
|
|
42
|
+
interface SplitterContextProps extends SlotsType<{
|
|
43
|
+
default: UnwrapRef<UseSplitterContext>;
|
|
44
|
+
}> {}
|
|
45
|
+
declare const _default: typeof __VLS_export$5;
|
|
46
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
+
default(splitter: UnwrapRef<UseSplitterContext>): unknown;
|
|
48
|
+
}>;
|
|
49
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/splitter/panel.vue.d.ts
|
|
56
|
+
interface SplitterPanelBaseProps extends PanelProps, PolymorphicProps {}
|
|
57
|
+
interface SplitterPanelProps extends SplitterPanelBaseProps,
|
|
58
|
+
/**
|
|
59
|
+
* @vue-ignore
|
|
60
|
+
*/
|
|
61
|
+
Omit<HTMLAttributes, "id"> {}
|
|
62
|
+
declare const _default$1: typeof __VLS_export$4;
|
|
63
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<SplitterPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterPanelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
64
|
+
default?: (props: {}) => any;
|
|
65
|
+
}>;
|
|
66
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/splitter/resize-trigger.vue.d.ts
|
|
73
|
+
interface SplitterResizeTriggerBaseProps extends ResizeTriggerProps, PolymorphicProps {}
|
|
74
|
+
interface SplitterResizeTriggerProps extends SplitterResizeTriggerBaseProps,
|
|
75
|
+
/**
|
|
76
|
+
* @vue-ignore
|
|
77
|
+
*/
|
|
78
|
+
Omit<ButtonHTMLAttributes, "disabled" | "id"> {}
|
|
79
|
+
declare const _default$2: typeof __VLS_export$3;
|
|
80
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<SplitterResizeTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterResizeTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
81
|
+
default?: (props: {}) => any;
|
|
82
|
+
}>;
|
|
83
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/splitter/resize-trigger-indicator.vue.d.ts
|
|
90
|
+
interface SplitterResizeTriggerIndicatorBaseProps extends PolymorphicProps {}
|
|
91
|
+
interface SplitterResizeTriggerIndicatorProps extends SplitterResizeTriggerIndicatorBaseProps,
|
|
92
|
+
/**
|
|
93
|
+
* @vue-ignore
|
|
94
|
+
*/
|
|
95
|
+
HTMLAttributes {}
|
|
96
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
97
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<SplitterResizeTriggerIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterResizeTriggerIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
98
|
+
default?: (props: {}) => any;
|
|
99
|
+
}>;
|
|
100
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/splitter/root-provider.vue.d.ts
|
|
107
|
+
interface RootProviderProps {
|
|
108
|
+
value: UnwrapRef<UseSplitterReturn>;
|
|
109
|
+
}
|
|
110
|
+
interface SplitterRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
111
|
+
interface SplitterRootProviderProps extends SplitterRootProviderBaseProps,
|
|
112
|
+
/**
|
|
113
|
+
* @vue-ignore
|
|
114
|
+
*/
|
|
115
|
+
HTMLAttributes {}
|
|
116
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
117
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<SplitterRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
118
|
+
default?: (props: {}) => any;
|
|
119
|
+
}>;
|
|
120
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/splitter/root.vue.d.ts
|
|
127
|
+
interface SplitterRootBaseProps extends RootProps, PolymorphicProps {}
|
|
128
|
+
interface SplitterRootProps extends SplitterRootBaseProps,
|
|
129
|
+
/**
|
|
130
|
+
* @vue-ignore
|
|
131
|
+
*/
|
|
132
|
+
HTMLAttributes {}
|
|
133
|
+
interface SplitterRootEmits extends RootEmits {}
|
|
134
|
+
declare const _default$4: typeof __VLS_export;
|
|
135
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SplitterRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
136
|
+
collapse: (details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any;
|
|
137
|
+
expand: (details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any;
|
|
138
|
+
resize: (details: import("@wirekyt/dom/machines/splitter").ResizeDetails) => any;
|
|
139
|
+
resizeEnd: (details: import("@wirekyt/dom/machines/splitter").ResizeEndDetails) => any;
|
|
140
|
+
resizeStart: () => any;
|
|
141
|
+
"update:size": (size: number[]) => any;
|
|
142
|
+
}, string, import("vue").PublicProps, Readonly<SplitterRootProps> & Readonly<{
|
|
143
|
+
onCollapse?: ((details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any) | undefined;
|
|
144
|
+
onExpand?: ((details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any) | undefined;
|
|
145
|
+
onResize?: ((details: import("@wirekyt/dom/machines/splitter").ResizeDetails) => any) | undefined;
|
|
146
|
+
onResizeEnd?: ((details: import("@wirekyt/dom/machines/splitter").ResizeEndDetails) => any) | undefined;
|
|
147
|
+
onResizeStart?: (() => any) | undefined;
|
|
148
|
+
"onUpdate:size"?: ((size: number[]) => any) | undefined;
|
|
149
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
150
|
+
default?: (props: {}) => any;
|
|
151
|
+
}>;
|
|
152
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
153
|
+
new (): {
|
|
154
|
+
$slots: S;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/splitter/create-registry.d.ts
|
|
159
|
+
interface SplitterRegistryProps extends splitter.SplitterRegistryOptions {}
|
|
160
|
+
interface SplitterRegistryReturn extends splitter.SplitterRegistry {}
|
|
161
|
+
declare const createSplitterRegistry: (props?: splitter.SplitterRegistryOptions) => splitter.SplitterRegistry;
|
|
162
|
+
declare namespace splitter_d_exports {
|
|
163
|
+
export { _default as Context, SplitterContextProps as ContextProps, ExpandCollapseDetails, _default$1 as Panel, SplitterPanelBaseProps as PanelBaseProps, PanelData, SplitterPanelProps as PanelProps, ResizeDetails, ResizeEndDetails, _default$2 as ResizeTrigger, SplitterResizeTriggerBaseProps as ResizeTriggerBaseProps, _default$3 as ResizeTriggerIndicator, SplitterResizeTriggerIndicatorBaseProps as ResizeTriggerIndicatorBaseProps, SplitterResizeTriggerIndicatorProps as ResizeTriggerIndicatorProps, SplitterResizeTriggerProps as ResizeTriggerProps, _default$4 as Root, SplitterRootBaseProps as RootBaseProps, SplitterRootEmits as RootEmits, SplitterRootProps as RootProps, _default$5 as RootProvider, SplitterRootProviderBaseProps as RootProviderBaseProps, SplitterRootProviderProps as RootProviderProps, createSplitterRegistry as createRegistry, getLayout };
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { splitter_d_exports as Splitter, _default as SplitterContext, type SplitterContextProps, type SplitterExpandCollapseDetails, _default$1 as SplitterPanel, type SplitterPanelBaseProps, type SplitterPanelData, type SplitterPanelProps, type SplitterRegistryProps, type SplitterRegistryReturn, type SplitterResizeDetails, type SplitterResizeEndDetails, _default$2 as SplitterResizeTrigger, type SplitterResizeTriggerBaseProps, _default$3 as SplitterResizeTriggerIndicator, type SplitterResizeTriggerIndicatorBaseProps, type SplitterResizeTriggerIndicatorProps, type SplitterResizeTriggerProps, _default$4 as SplitterRoot, type SplitterRootBaseProps, type SplitterRootEmits, type SplitterRootProps, _default$5 as SplitterRootProvider, type SplitterRootProviderBaseProps, type SplitterRootProviderProps, type UseSplitterContext, type UseSplitterProps, type UseSplitterReturn, createSplitterRegistry, getSplitterLayout, splitterAnatomy, useSplitter, useSplitterContext };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as splitter from "@wirekyt/dom/machines/splitter";
|
|
5
|
+
import { ExpandCollapseDetails, ExpandCollapseDetails as SplitterExpandCollapseDetails, PanelData, PanelData as SplitterPanelData, PanelProps, ResizeDetails, ResizeDetails as SplitterResizeDetails, ResizeEndDetails, ResizeEndDetails as SplitterResizeEndDetails, ResizeTriggerProps, anatomy as splitterAnatomy, layout as getLayout, layout as getSplitterLayout } from "@wirekyt/dom/machines/splitter";
|
|
6
|
+
//#region src/components/splitter/types.d.ts
|
|
7
|
+
interface RootProps {
|
|
8
|
+
defaultSize?: number[];
|
|
9
|
+
id?: string;
|
|
10
|
+
ids?: Partial<{
|
|
11
|
+
root: string;
|
|
12
|
+
resizeTrigger(id: string): string;
|
|
13
|
+
label(id: string): string;
|
|
14
|
+
panel(id: string | number): string;
|
|
15
|
+
}>;
|
|
16
|
+
keyboardResizeBy?: number;
|
|
17
|
+
nonce?: string;
|
|
18
|
+
orientation?: "horizontal" | "vertical";
|
|
19
|
+
panels: splitter.PanelData[];
|
|
20
|
+
registry?: splitter.SplitterRegistry;
|
|
21
|
+
size?: number[];
|
|
22
|
+
}
|
|
23
|
+
type RootEmits = {
|
|
24
|
+
collapse: [details: splitter.ExpandCollapseDetails];
|
|
25
|
+
expand: [details: splitter.ExpandCollapseDetails];
|
|
26
|
+
resize: [details: splitter.ResizeDetails];
|
|
27
|
+
resizeEnd: [details: splitter.ResizeEndDetails];
|
|
28
|
+
resizeStart: [];
|
|
29
|
+
"update:size": [size: number[]];
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/splitter/use-splitter.d.ts
|
|
33
|
+
interface UseSplitterProps extends Optional<Omit<splitter.Props, "dir" | "getRootNode">, "id"> {}
|
|
34
|
+
interface UseSplitterReturn extends ComputedRef<splitter.Api<PropTypes>> {}
|
|
35
|
+
declare const useSplitter: (props: MaybeRef<UseSplitterProps>, emit?: EmitFn$1<RootEmits>) => UseSplitterReturn;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/splitter/use-context.d.ts
|
|
38
|
+
interface UseSplitterContext extends UseSplitterReturn {}
|
|
39
|
+
declare const SplitterProvider: (opts: UseSplitterContext) => void, useSplitterContext: (fallback?: UseSplitterContext | undefined) => UseSplitterContext;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/splitter/context.vue.d.ts
|
|
42
|
+
interface SplitterContextProps extends SlotsType<{
|
|
43
|
+
default: UnwrapRef<UseSplitterContext>;
|
|
44
|
+
}> {}
|
|
45
|
+
declare const _default: typeof __VLS_export$5;
|
|
46
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
+
default(splitter: UnwrapRef<UseSplitterContext>): unknown;
|
|
48
|
+
}>;
|
|
49
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/splitter/panel.vue.d.ts
|
|
56
|
+
interface SplitterPanelBaseProps extends PanelProps, PolymorphicProps {}
|
|
57
|
+
interface SplitterPanelProps extends SplitterPanelBaseProps,
|
|
58
|
+
/**
|
|
59
|
+
* @vue-ignore
|
|
60
|
+
*/
|
|
61
|
+
Omit<HTMLAttributes, "id"> {}
|
|
62
|
+
declare const _default$1: typeof __VLS_export$4;
|
|
63
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<SplitterPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterPanelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
64
|
+
default?: (props: {}) => any;
|
|
65
|
+
}>;
|
|
66
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/splitter/resize-trigger.vue.d.ts
|
|
73
|
+
interface SplitterResizeTriggerBaseProps extends ResizeTriggerProps, PolymorphicProps {}
|
|
74
|
+
interface SplitterResizeTriggerProps extends SplitterResizeTriggerBaseProps,
|
|
75
|
+
/**
|
|
76
|
+
* @vue-ignore
|
|
77
|
+
*/
|
|
78
|
+
Omit<ButtonHTMLAttributes, "disabled" | "id"> {}
|
|
79
|
+
declare const _default$2: typeof __VLS_export$3;
|
|
80
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<SplitterResizeTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterResizeTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
81
|
+
default?: (props: {}) => any;
|
|
82
|
+
}>;
|
|
83
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/splitter/resize-trigger-indicator.vue.d.ts
|
|
90
|
+
interface SplitterResizeTriggerIndicatorBaseProps extends PolymorphicProps {}
|
|
91
|
+
interface SplitterResizeTriggerIndicatorProps extends SplitterResizeTriggerIndicatorBaseProps,
|
|
92
|
+
/**
|
|
93
|
+
* @vue-ignore
|
|
94
|
+
*/
|
|
95
|
+
HTMLAttributes {}
|
|
96
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
97
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<SplitterResizeTriggerIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterResizeTriggerIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
98
|
+
default?: (props: {}) => any;
|
|
99
|
+
}>;
|
|
100
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/splitter/root-provider.vue.d.ts
|
|
107
|
+
interface RootProviderProps {
|
|
108
|
+
value: UnwrapRef<UseSplitterReturn>;
|
|
109
|
+
}
|
|
110
|
+
interface SplitterRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
111
|
+
interface SplitterRootProviderProps extends SplitterRootProviderBaseProps,
|
|
112
|
+
/**
|
|
113
|
+
* @vue-ignore
|
|
114
|
+
*/
|
|
115
|
+
HTMLAttributes {}
|
|
116
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
117
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<SplitterRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitterRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
118
|
+
default?: (props: {}) => any;
|
|
119
|
+
}>;
|
|
120
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/splitter/root.vue.d.ts
|
|
127
|
+
interface SplitterRootBaseProps extends RootProps, PolymorphicProps {}
|
|
128
|
+
interface SplitterRootProps extends SplitterRootBaseProps,
|
|
129
|
+
/**
|
|
130
|
+
* @vue-ignore
|
|
131
|
+
*/
|
|
132
|
+
HTMLAttributes {}
|
|
133
|
+
interface SplitterRootEmits extends RootEmits {}
|
|
134
|
+
declare const _default$4: typeof __VLS_export;
|
|
135
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SplitterRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
136
|
+
collapse: (details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any;
|
|
137
|
+
expand: (details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any;
|
|
138
|
+
resize: (details: import("@wirekyt/dom/machines/splitter").ResizeDetails) => any;
|
|
139
|
+
resizeEnd: (details: import("@wirekyt/dom/machines/splitter").ResizeEndDetails) => any;
|
|
140
|
+
resizeStart: () => any;
|
|
141
|
+
"update:size": (size: number[]) => any;
|
|
142
|
+
}, string, import("vue").PublicProps, Readonly<SplitterRootProps> & Readonly<{
|
|
143
|
+
onCollapse?: ((details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any) | undefined;
|
|
144
|
+
onExpand?: ((details: import("@wirekyt/dom/machines/splitter").ExpandCollapseDetails) => any) | undefined;
|
|
145
|
+
onResize?: ((details: import("@wirekyt/dom/machines/splitter").ResizeDetails) => any) | undefined;
|
|
146
|
+
onResizeEnd?: ((details: import("@wirekyt/dom/machines/splitter").ResizeEndDetails) => any) | undefined;
|
|
147
|
+
onResizeStart?: (() => any) | undefined;
|
|
148
|
+
"onUpdate:size"?: ((size: number[]) => any) | undefined;
|
|
149
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
150
|
+
default?: (props: {}) => any;
|
|
151
|
+
}>;
|
|
152
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
153
|
+
new (): {
|
|
154
|
+
$slots: S;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/splitter/create-registry.d.ts
|
|
159
|
+
interface SplitterRegistryProps extends splitter.SplitterRegistryOptions {}
|
|
160
|
+
interface SplitterRegistryReturn extends splitter.SplitterRegistry {}
|
|
161
|
+
declare const createSplitterRegistry: (props?: splitter.SplitterRegistryOptions) => splitter.SplitterRegistry;
|
|
162
|
+
declare namespace splitter_d_exports {
|
|
163
|
+
export { _default as Context, SplitterContextProps as ContextProps, ExpandCollapseDetails, _default$1 as Panel, SplitterPanelBaseProps as PanelBaseProps, PanelData, SplitterPanelProps as PanelProps, ResizeDetails, ResizeEndDetails, _default$2 as ResizeTrigger, SplitterResizeTriggerBaseProps as ResizeTriggerBaseProps, _default$3 as ResizeTriggerIndicator, SplitterResizeTriggerIndicatorBaseProps as ResizeTriggerIndicatorBaseProps, SplitterResizeTriggerIndicatorProps as ResizeTriggerIndicatorProps, SplitterResizeTriggerProps as ResizeTriggerProps, _default$4 as Root, SplitterRootBaseProps as RootBaseProps, SplitterRootEmits as RootEmits, SplitterRootProps as RootProps, _default$5 as RootProvider, SplitterRootProviderBaseProps as RootProviderBaseProps, SplitterRootProviderProps as RootProviderProps, createSplitterRegistry as createRegistry, getLayout };
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { splitter_d_exports as Splitter, _default as SplitterContext, type SplitterContextProps, type SplitterExpandCollapseDetails, _default$1 as SplitterPanel, type SplitterPanelBaseProps, type SplitterPanelData, type SplitterPanelProps, type SplitterRegistryProps, type SplitterRegistryReturn, type SplitterResizeDetails, type SplitterResizeEndDetails, _default$2 as SplitterResizeTrigger, type SplitterResizeTriggerBaseProps, _default$3 as SplitterResizeTriggerIndicator, type SplitterResizeTriggerIndicatorBaseProps, type SplitterResizeTriggerIndicatorProps, type SplitterResizeTriggerProps, _default$4 as SplitterRoot, type SplitterRootBaseProps, type SplitterRootEmits, type SplitterRootProps, _default$5 as SplitterRootProvider, type SplitterRootProviderBaseProps, type SplitterRootProviderProps, type UseSplitterContext, type UseSplitterProps, type UseSplitterReturn, createSplitterRegistry, getSplitterLayout, splitterAnatomy, useSplitter, useSplitterContext };
|
package/dist/splitter.js
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { c as normalizeProps$1, d as useForwardExpose, m as createContext, s as useMachine } from "./utils-D95V66v9.js";
|
|
3
|
+
import { a as DEFAULT_LOCALE, d as useEnvironmentContext, o as useLocaleContext, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
|
|
4
|
+
import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
|
|
5
|
+
import { n as wire } from "./factory-8Ao0DEy3.js";
|
|
6
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
7
|
+
import * as splitter from "@wirekyt/dom/machines/splitter";
|
|
8
|
+
import { anatomy as splitterAnatomy, layout as getLayout, layout as getSplitterLayout } from "@wirekyt/dom/machines/splitter";
|
|
9
|
+
//#region src/components/splitter/use-context.ts
|
|
10
|
+
const [SplitterProvider, useSplitterContext] = createContext("SplitterContext");
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/splitter/context.vue
|
|
13
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
14
|
+
__name: "context",
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const splitter = useSplitterContext();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(splitter))));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/splitter/panel.vue
|
|
24
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
25
|
+
__name: "panel",
|
|
26
|
+
props: {
|
|
27
|
+
id: {},
|
|
28
|
+
asChild: { type: Boolean }
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const splitter = useSplitterContext();
|
|
33
|
+
useForwardExpose();
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(splitter).getPanelProps(props), { "as-child": __props.asChild }), {
|
|
36
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16, ["as-child"]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/splitter/use-resize-trigger-props-context.ts
|
|
44
|
+
const [SplitterResizeTriggerPropsProvider, useSplitterResizeTriggerPropsContext] = createContext("SplitterResizeTriggerPropsContext");
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/splitter/resize-trigger.vue
|
|
47
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
48
|
+
__name: "resize-trigger",
|
|
49
|
+
props: {
|
|
50
|
+
id: {},
|
|
51
|
+
disabled: { type: Boolean },
|
|
52
|
+
asChild: { type: Boolean }
|
|
53
|
+
},
|
|
54
|
+
setup(__props) {
|
|
55
|
+
const props = __props;
|
|
56
|
+
const splitter = useSplitterContext();
|
|
57
|
+
SplitterResizeTriggerPropsProvider(computed(() => props));
|
|
58
|
+
useForwardExpose();
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createBlock(unref(wire).button, mergeProps(unref(splitter).getResizeTriggerProps(props), { "as-child": __props.asChild }), {
|
|
61
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
62
|
+
_: 3
|
|
63
|
+
}, 16, ["as-child"]);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/splitter/resize-trigger-indicator.vue
|
|
69
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
70
|
+
__name: "resize-trigger-indicator",
|
|
71
|
+
props: { asChild: { type: Boolean } },
|
|
72
|
+
setup(__props) {
|
|
73
|
+
const splitter = useSplitterContext();
|
|
74
|
+
const triggerProps = useSplitterResizeTriggerPropsContext();
|
|
75
|
+
useForwardExpose();
|
|
76
|
+
return (_ctx, _cache) => {
|
|
77
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(splitter).getResizeTriggerIndicator(unref(triggerProps)), { "as-child": __props.asChild }), {
|
|
78
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
79
|
+
_: 3
|
|
80
|
+
}, 16, ["as-child"]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/splitter/root-provider.vue
|
|
86
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
87
|
+
__name: "root-provider",
|
|
88
|
+
props: {
|
|
89
|
+
value: {},
|
|
90
|
+
asChild: { type: Boolean }
|
|
91
|
+
},
|
|
92
|
+
setup(__props) {
|
|
93
|
+
const props = __props;
|
|
94
|
+
const splitter = computed(() => props.value);
|
|
95
|
+
SplitterProvider(splitter);
|
|
96
|
+
useForwardExpose();
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(splitter.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
99
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 16, ["as-child"]);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/splitter/use-splitter.ts
|
|
107
|
+
const useSplitter = (props, emit) => {
|
|
108
|
+
const id = useId();
|
|
109
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
110
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
111
|
+
const context = computed(() => {
|
|
112
|
+
const localProps = toValue(props);
|
|
113
|
+
return {
|
|
114
|
+
id,
|
|
115
|
+
dir: locale.value.dir,
|
|
116
|
+
getRootNode: env?.value.getRootNode,
|
|
117
|
+
...cleanProps(localProps),
|
|
118
|
+
onResize: (details) => {
|
|
119
|
+
emit?.("resize", details);
|
|
120
|
+
emit?.("update:size", details.size);
|
|
121
|
+
localProps.onResize?.(details);
|
|
122
|
+
},
|
|
123
|
+
onResizeEnd: (details) => {
|
|
124
|
+
emit?.("resizeEnd", details);
|
|
125
|
+
localProps.onResizeEnd?.(details);
|
|
126
|
+
},
|
|
127
|
+
onCollapse: (details) => {
|
|
128
|
+
emit?.("collapse", details);
|
|
129
|
+
localProps.onCollapse?.(details);
|
|
130
|
+
},
|
|
131
|
+
onExpand: (details) => {
|
|
132
|
+
emit?.("expand", details);
|
|
133
|
+
localProps.onExpand?.(details);
|
|
134
|
+
},
|
|
135
|
+
onResizeStart() {
|
|
136
|
+
emit?.("resizeStart");
|
|
137
|
+
localProps.onResizeStart?.();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
const service = useMachine(splitter.machine, context);
|
|
142
|
+
return computed(() => splitter.connect(service, normalizeProps$1));
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/components/splitter/root.vue
|
|
146
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
147
|
+
__name: "root",
|
|
148
|
+
props: {
|
|
149
|
+
defaultSize: {},
|
|
150
|
+
id: {},
|
|
151
|
+
ids: {},
|
|
152
|
+
keyboardResizeBy: {},
|
|
153
|
+
nonce: {},
|
|
154
|
+
orientation: {},
|
|
155
|
+
panels: {},
|
|
156
|
+
registry: {},
|
|
157
|
+
size: {},
|
|
158
|
+
asChild: { type: Boolean }
|
|
159
|
+
},
|
|
160
|
+
emits: [
|
|
161
|
+
"collapse",
|
|
162
|
+
"expand",
|
|
163
|
+
"resize",
|
|
164
|
+
"resizeEnd",
|
|
165
|
+
"resizeStart",
|
|
166
|
+
"update:size"
|
|
167
|
+
],
|
|
168
|
+
setup(__props, { emit: __emit }) {
|
|
169
|
+
const splitter = useSplitter(__props, __emit);
|
|
170
|
+
SplitterProvider(splitter);
|
|
171
|
+
useForwardExpose();
|
|
172
|
+
return (_ctx, _cache) => {
|
|
173
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(splitter).getRootProps(), { "as-child": __props.asChild }), {
|
|
174
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 16, ["as-child"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/components/splitter/create-registry.ts
|
|
182
|
+
const createSplitterRegistry = (props) => {
|
|
183
|
+
return splitter.registry(props);
|
|
184
|
+
};
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/splitter/splitter.ts
|
|
187
|
+
var splitter_exports = /* @__PURE__ */ __exportAll({
|
|
188
|
+
Context: () => _sfc_main,
|
|
189
|
+
Panel: () => _sfc_main$1,
|
|
190
|
+
ResizeTrigger: () => _sfc_main$2,
|
|
191
|
+
ResizeTriggerIndicator: () => _sfc_main$3,
|
|
192
|
+
Root: () => _sfc_main$4,
|
|
193
|
+
RootProvider: () => _sfc_main$5,
|
|
194
|
+
createRegistry: () => createSplitterRegistry,
|
|
195
|
+
getLayout: () => getLayout
|
|
196
|
+
});
|
|
197
|
+
//#endregion
|
|
198
|
+
export { splitter_exports as Splitter, _sfc_main as SplitterContext, _sfc_main$1 as SplitterPanel, _sfc_main$2 as SplitterResizeTrigger, _sfc_main$3 as SplitterResizeTriggerIndicator, _sfc_main$4 as SplitterRoot, _sfc_main$5 as SplitterRootProvider, createSplitterRegistry, getSplitterLayout, splitterAnatomy, useSplitter, useSplitterContext };
|