@sprawlify/vue 0.0.66 → 0.0.67
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/{collapsible-BBV8R9Wm.js → collapsible-DQfAISmg.js} +1 -1
- package/dist/{collection-DR2kMzrX.js → collection-Ba0Aeh5P.js} +1 -1
- package/dist/components/accordion/index.d.ts +14 -14
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/angle-slider/index.d.ts +15 -15
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/avatar/index.d.ts +8 -8
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/index.d.ts +15 -15
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/carousel/index.d.ts +18 -18
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.d.ts +23 -23
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +14 -14
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/collapsible/index.d.ts +12 -12
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +610 -0
- package/dist/components/color-picker/index.js +1127 -0
- package/dist/components/combobox/index.d.ts +618 -0
- package/dist/components/combobox/index.js +802 -0
- package/dist/components/date-picker/index.d.ts +597 -0
- package/dist/components/date-picker/index.js +1110 -0
- package/dist/components/dialog/index.d.ts +270 -0
- package/dist/components/dialog/index.js +433 -0
- package/dist/components/download-trigger/index.d.ts +29 -0
- package/dist/components/download-trigger/index.js +68 -0
- package/dist/components/editable/index.d.ts +288 -0
- package/dist/components/editable/index.js +459 -0
- package/dist/components/field/index.d.ts +24 -24
- package/dist/components/fieldset/index.d.ts +10 -10
- package/dist/components/highlight/index.d.ts +35 -0
- package/dist/components/highlight/index.js +57 -0
- package/dist/components/menu/index.d.ts +498 -0
- package/dist/components/menu/index.js +885 -0
- package/dist/components/presence/index.d.ts +1 -1
- package/dist/components/select/index.d.ts +30 -29
- package/dist/components/select/index.js +2 -2
- package/dist/index-BBHms9-0.d.ts +91 -0
- package/dist/{index-rHf4D8np.d.ts → index-CDQghZtv.d.ts} +8 -8
- package/dist/index.d.ts +2 -91
- package/package.json +34 -2
- /package/dist/{clean-props-ChPEW0vT.js → clean-props-BDv2zb5M.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue246 from "vue";
|
|
3
3
|
import { FieldsetHTMLAttributes, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
4
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
5
5
|
|
|
@@ -10,9 +10,9 @@ interface UseFieldsetProps {
|
|
|
10
10
|
invalid?: boolean;
|
|
11
11
|
}
|
|
12
12
|
type UseFieldsetReturn = ReturnType<typeof useFieldset>;
|
|
13
|
-
declare const useFieldset: (props?: MaybeRef<UseFieldsetProps>) =>
|
|
13
|
+
declare const useFieldset: (props?: MaybeRef<UseFieldsetProps>) => vue246.ComputedRef<{
|
|
14
14
|
refs: {
|
|
15
|
-
rootRef:
|
|
15
|
+
rootRef: vue246.Ref<null, null>;
|
|
16
16
|
};
|
|
17
17
|
ids: {
|
|
18
18
|
legend: string;
|
|
@@ -45,7 +45,7 @@ interface FieldsetContextProps extends SlotsType<{
|
|
|
45
45
|
default: UnwrapRef<UseFieldsetContext>;
|
|
46
46
|
}> {}
|
|
47
47
|
declare const _default: typeof __VLS_export$5;
|
|
48
|
-
declare const __VLS_export$5: __VLS_WithSlots$5<
|
|
48
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue246.DefineComponent<{}, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, true, {}, any>, {
|
|
49
49
|
default(fieldset: UnwrapRef<UseFieldsetContext>): unknown;
|
|
50
50
|
}>;
|
|
51
51
|
type __VLS_WithSlots$5<T, S> = T & {
|
|
@@ -62,7 +62,7 @@ interface FieldsetErrorTextProps extends FieldsetErrorTextBaseProps,
|
|
|
62
62
|
*/
|
|
63
63
|
HTMLAttributes {}
|
|
64
64
|
declare const _default$1: typeof __VLS_export$4;
|
|
65
|
-
declare const __VLS_export$4: __VLS_WithSlots$4<
|
|
65
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue246.DefineComponent<FieldsetErrorTextProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetErrorTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
66
66
|
default?: (props: {}) => any;
|
|
67
67
|
}>;
|
|
68
68
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
@@ -79,7 +79,7 @@ interface FieldsetHelperTextProps extends FieldsetHelperTextBaseProps,
|
|
|
79
79
|
*/
|
|
80
80
|
HTMLAttributes {}
|
|
81
81
|
declare const _default$2: typeof __VLS_export$3;
|
|
82
|
-
declare const __VLS_export$3: __VLS_WithSlots$3<
|
|
82
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue246.DefineComponent<FieldsetHelperTextProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetHelperTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
83
83
|
default?: (props: {}) => any;
|
|
84
84
|
}>;
|
|
85
85
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
@@ -96,7 +96,7 @@ interface FieldsetLegendProps extends FieldsetLegendBaseProps,
|
|
|
96
96
|
*/
|
|
97
97
|
HTMLAttributes {}
|
|
98
98
|
declare const _default$3: typeof __VLS_export$2;
|
|
99
|
-
declare const __VLS_export$2: __VLS_WithSlots$2<
|
|
99
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue246.DefineComponent<FieldsetLegendProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetLegendProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
100
100
|
default?: (props: {}) => any;
|
|
101
101
|
}>;
|
|
102
102
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
@@ -116,7 +116,7 @@ interface FieldsetRootProviderProps extends FieldsetRootProviderBaseProps,
|
|
|
116
116
|
*/
|
|
117
117
|
FieldsetHTMLAttributes {}
|
|
118
118
|
declare const _default$5: typeof __VLS_export$1;
|
|
119
|
-
declare const __VLS_export$1: __VLS_WithSlots$1<
|
|
119
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue246.DefineComponent<FieldsetRootProviderProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
120
120
|
default?: (props: {}) => any;
|
|
121
121
|
}>;
|
|
122
122
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -140,10 +140,10 @@ interface FieldsetRootProps extends FieldsetRootBaseProps,
|
|
|
140
140
|
*/
|
|
141
141
|
FieldsetHTMLAttributes {}
|
|
142
142
|
declare const _default$4: typeof __VLS_export;
|
|
143
|
-
declare const __VLS_export: __VLS_WithSlots<
|
|
143
|
+
declare const __VLS_export: __VLS_WithSlots<vue246.DefineComponent<FieldsetRootProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetRootProps> & Readonly<{}>, {
|
|
144
144
|
disabled: boolean | "true" | "false";
|
|
145
145
|
invalid: boolean;
|
|
146
|
-
}, {}, {}, {}, string,
|
|
146
|
+
}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
147
147
|
default?: (props: {}) => any;
|
|
148
148
|
}>;
|
|
149
149
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as vue258 from "vue";
|
|
2
|
+
import { HTMLAttributes, MaybeRef } from "vue";
|
|
3
|
+
import * as _sprawlify_primitives_highlight_word0 from "@sprawlify/primitives/highlight-word";
|
|
4
|
+
|
|
5
|
+
//#region src/components/highlight/highlight-types.d.ts
|
|
6
|
+
interface UseHighlightProps {
|
|
7
|
+
text: string;
|
|
8
|
+
query: string | string[];
|
|
9
|
+
ignoreCase?: boolean;
|
|
10
|
+
matchAll?: boolean;
|
|
11
|
+
exactMatch?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface HighlightChunk {
|
|
14
|
+
text: string;
|
|
15
|
+
match: boolean;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/highlight/use-highlight.d.ts
|
|
19
|
+
declare const useHighlight: (props: MaybeRef<UseHighlightProps>) => vue258.ComputedRef<_sprawlify_primitives_highlight_word0.HighlightChunk[]>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/highlight/highlight.vue.d.ts
|
|
22
|
+
interface HighlightBaseProps extends UseHighlightProps {}
|
|
23
|
+
interface HighlightProps extends HighlightBaseProps,
|
|
24
|
+
/**
|
|
25
|
+
* @vue-ignore
|
|
26
|
+
*/
|
|
27
|
+
HTMLAttributes {}
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
declare const __VLS_export: vue258.DefineComponent<HighlightProps, {}, {}, {}, {}, vue258.ComponentOptionsMixin, vue258.ComponentOptionsMixin, {}, string, vue258.PublicProps, Readonly<HighlightProps> & Readonly<{}>, {
|
|
30
|
+
ignoreCase: boolean;
|
|
31
|
+
matchAll: boolean;
|
|
32
|
+
exactMatch: boolean;
|
|
33
|
+
}, {}, {}, {}, string, vue258.ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { _default as Highlight, type HighlightChunk, type HighlightProps, type UseHighlightProps, useHighlight };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { t as cleanProps } from "../../clean-props-BDv2zb5M.js";
|
|
2
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createTextVNode, defineComponent, openBlock, renderList, toDisplayString, toValue, unref } from "vue";
|
|
3
|
+
import { highlightWord } from "@sprawlify/primitives/highlight-word";
|
|
4
|
+
|
|
5
|
+
//#region src/components/highlight/use-highlight.ts
|
|
6
|
+
const useHighlight = (props) => {
|
|
7
|
+
return computed(() => highlightWord(cleanProps(toValue(props))));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/highlight/highlight.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
const _hoisted_1 = { key: 0 };
|
|
13
|
+
var highlight_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "highlight",
|
|
15
|
+
props: {
|
|
16
|
+
text: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
query: {
|
|
21
|
+
type: [String, Array],
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
ignoreCase: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: false,
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
matchAll: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
required: false,
|
|
32
|
+
default: void 0
|
|
33
|
+
},
|
|
34
|
+
exactMatch: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: false,
|
|
37
|
+
default: void 0
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
if (typeof props.text !== "string") throw new Error("[sprawlify/highlight] text must be a string");
|
|
43
|
+
const chunks = useHighlight(props);
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(chunks), (chunk) => {
|
|
46
|
+
return openBlock(), createElementBlock(Fragment, null, [chunk.match ? (openBlock(), createElementBlock("mark", _hoisted_1, toDisplayString(chunk.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(chunk.text), 1)], 64))], 64);
|
|
47
|
+
}), 256);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/highlight/highlight.vue
|
|
54
|
+
var highlight_default = highlight_vue_vue_type_script_setup_true_lang_default;
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { highlight_default as Highlight, useHighlight };
|
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
|
|
2
|
+
import { t as RootEmits$1 } from "../../presence-types-Bv1E60Cw.js";
|
|
3
|
+
import { a as Optional, r as EmitFn$1 } from "../../types-Bj-dS2Hc.js";
|
|
4
|
+
import { r as PropTypes } from "../../index-B66Om_3U.js";
|
|
5
|
+
import { t as RenderStrategyProps } from "../../use-render-strategy-CHj_pCfT.js";
|
|
6
|
+
import "../../index-BBHms9-0.js";
|
|
7
|
+
import * as vue88 from "vue";
|
|
8
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
9
|
+
import * as _sprawlify_primitives_machines_bottom_sheet1 from "@sprawlify/primitives/machines/bottom-sheet";
|
|
10
|
+
import * as menu from "@sprawlify/primitives/machines/menu";
|
|
11
|
+
import { FocusOutsideEvent, FocusOutsideEvent as MenuFocusOutsideEvent, HighlightChangeDetails, HighlightChangeDetails as MenuHighlightChangeDetails, InteractOutsideEvent, InteractOutsideEvent as MenuInteractOutsideEvent, ItemGroupProps, ItemProps, OpenChangeDetails, OpenChangeDetails as MenuOpenChangeDetails, OptionItemProps, OptionItemState, PointerDownOutsideEvent, PointerDownOutsideEvent as MenuPointerDownOutsideEvent, SelectionDetails, SelectionDetails as MenuSelectionDetails, anatomy as menuAnatomy } from "@sprawlify/primitives/machines/menu";
|
|
12
|
+
|
|
13
|
+
//#region src/components/menu/menu-arrow-tip.vue.d.ts
|
|
14
|
+
interface MenuArrowTipBaseProps extends PolymorphicProps {}
|
|
15
|
+
interface MenuArrowTipProps extends MenuArrowTipBaseProps,
|
|
16
|
+
/**
|
|
17
|
+
* @vue-ignore
|
|
18
|
+
*/
|
|
19
|
+
HTMLAttributes {}
|
|
20
|
+
declare const _default$1: typeof __VLS_export$20;
|
|
21
|
+
declare const __VLS_export$20: __VLS_WithSlots$19<vue88.DefineComponent<MenuArrowTipProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuArrowTipProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
22
|
+
default?: (props: {}) => any;
|
|
23
|
+
}>;
|
|
24
|
+
type __VLS_WithSlots$19<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/menu/menu-arrow.vue.d.ts
|
|
31
|
+
interface MenuArrowBaseProps extends PolymorphicProps {}
|
|
32
|
+
interface MenuArrowProps extends MenuArrowBaseProps,
|
|
33
|
+
/**
|
|
34
|
+
* @vue-ignore
|
|
35
|
+
*/
|
|
36
|
+
HTMLAttributes {}
|
|
37
|
+
declare const _default: typeof __VLS_export$19;
|
|
38
|
+
declare const __VLS_export$19: __VLS_WithSlots$18<vue88.DefineComponent<MenuArrowProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
39
|
+
default?: (props: {}) => any;
|
|
40
|
+
}>;
|
|
41
|
+
type __VLS_WithSlots$18<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/menu/menu-checkbox-item.vue.d.ts
|
|
48
|
+
type CheckboxItemProps = Omit<OptionItemProps, 'type' | 'onCheckedChange'>;
|
|
49
|
+
interface MenuCheckboxItemBaseProps extends CheckboxItemProps, PolymorphicProps {}
|
|
50
|
+
interface MenuCheckboxItemProps extends MenuCheckboxItemBaseProps,
|
|
51
|
+
/**
|
|
52
|
+
* @vue-ignore
|
|
53
|
+
*/
|
|
54
|
+
HTMLAttributes {}
|
|
55
|
+
type MenuCheckboxItemEmits = {
|
|
56
|
+
'update:checked': [value: boolean];
|
|
57
|
+
};
|
|
58
|
+
declare const _default$2: typeof __VLS_export$18;
|
|
59
|
+
declare const __VLS_export$18: __VLS_WithSlots$17<vue88.DefineComponent<MenuCheckboxItemProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {
|
|
60
|
+
"update:checked": (value: boolean) => any;
|
|
61
|
+
}, string, vue88.PublicProps, Readonly<MenuCheckboxItemProps> & Readonly<{
|
|
62
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
closeOnSelect: boolean;
|
|
66
|
+
checked: boolean;
|
|
67
|
+
}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
68
|
+
default?: (props: {}) => any;
|
|
69
|
+
}>;
|
|
70
|
+
type __VLS_WithSlots$17<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/menu/menu-content.vue.d.ts
|
|
77
|
+
interface MenuContentBaseProps extends PolymorphicProps {}
|
|
78
|
+
interface MenuContentProps extends MenuContentBaseProps,
|
|
79
|
+
/**
|
|
80
|
+
* @vue-ignore
|
|
81
|
+
*/
|
|
82
|
+
HTMLAttributes {}
|
|
83
|
+
declare const _default$3: typeof __VLS_export$17;
|
|
84
|
+
declare const __VLS_export$17: __VLS_WithSlots$16<vue88.DefineComponent<MenuContentProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
85
|
+
default?: (props: {}) => any;
|
|
86
|
+
}>;
|
|
87
|
+
type __VLS_WithSlots$16<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/menu/menu-context-trigger.vue.d.ts
|
|
94
|
+
interface MenuContextTriggerBaseProps extends PolymorphicProps {}
|
|
95
|
+
interface MenuContextTriggerProps extends MenuContextTriggerBaseProps,
|
|
96
|
+
/**
|
|
97
|
+
* @vue-ignore
|
|
98
|
+
*/
|
|
99
|
+
ButtonHTMLAttributes {}
|
|
100
|
+
declare const _default$5: typeof __VLS_export$16;
|
|
101
|
+
declare const __VLS_export$16: __VLS_WithSlots$15<vue88.DefineComponent<MenuContextTriggerProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuContextTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
102
|
+
default?: (props: {}) => any;
|
|
103
|
+
}>;
|
|
104
|
+
type __VLS_WithSlots$15<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/menu/menu-indicator.vue.d.ts
|
|
111
|
+
interface MenuIndicatorBaseProps extends PolymorphicProps {}
|
|
112
|
+
interface MenuIndicatorProps extends MenuIndicatorBaseProps,
|
|
113
|
+
/**
|
|
114
|
+
* @vue-ignore
|
|
115
|
+
*/
|
|
116
|
+
HTMLAttributes {}
|
|
117
|
+
declare const _default$6: typeof __VLS_export$15;
|
|
118
|
+
declare const __VLS_export$15: __VLS_WithSlots$14<vue88.DefineComponent<MenuIndicatorProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
119
|
+
default?: (props: {}) => any;
|
|
120
|
+
}>;
|
|
121
|
+
type __VLS_WithSlots$14<T, S> = T & {
|
|
122
|
+
new (): {
|
|
123
|
+
$slots: S;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/components/menu/use-menu-item-context.d.ts
|
|
128
|
+
interface UseMenuItemContext extends ComputedRef<Optional<OptionItemState, 'checked'>> {}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/menu/menu-item-context.vue.d.ts
|
|
131
|
+
interface MenuItemContextProps extends SlotsType<{
|
|
132
|
+
default: UnwrapRef<UseMenuItemContext>;
|
|
133
|
+
}> {}
|
|
134
|
+
declare const _default$8: typeof __VLS_export$14;
|
|
135
|
+
declare const __VLS_export$14: __VLS_WithSlots$13<vue88.DefineComponent<{}, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, true, {}, any>, {
|
|
136
|
+
default(item: UnwrapRef<UseMenuItemContext>): unknown;
|
|
137
|
+
}>;
|
|
138
|
+
type __VLS_WithSlots$13<T, S> = T & {
|
|
139
|
+
new (): {
|
|
140
|
+
$slots: S;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/components/menu/menu-item-group-label.vue.d.ts
|
|
145
|
+
interface MenuItemGroupLabelBaseProps extends PolymorphicProps {}
|
|
146
|
+
interface MenuItemGroupLabelProps extends MenuItemGroupLabelBaseProps,
|
|
147
|
+
/**
|
|
148
|
+
* @vue-ignore
|
|
149
|
+
*/
|
|
150
|
+
HTMLAttributes {}
|
|
151
|
+
declare const _default$10: typeof __VLS_export$13;
|
|
152
|
+
declare const __VLS_export$13: __VLS_WithSlots$12<vue88.DefineComponent<MenuItemGroupLabelProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuItemGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
153
|
+
default?: (props: {}) => any;
|
|
154
|
+
}>;
|
|
155
|
+
type __VLS_WithSlots$12<T, S> = T & {
|
|
156
|
+
new (): {
|
|
157
|
+
$slots: S;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/components/menu/menu-item-group.vue.d.ts
|
|
162
|
+
interface MenuItemGroupBaseProps extends Partial<ItemGroupProps>, PolymorphicProps {}
|
|
163
|
+
interface MenuItemGroupProps extends MenuItemGroupBaseProps,
|
|
164
|
+
/**
|
|
165
|
+
* @vue-ignore
|
|
166
|
+
*/
|
|
167
|
+
HTMLAttributes {}
|
|
168
|
+
declare const _default$9: typeof __VLS_export$12;
|
|
169
|
+
declare const __VLS_export$12: __VLS_WithSlots$11<vue88.DefineComponent<MenuItemGroupProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuItemGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
170
|
+
default?: (props: {}) => any;
|
|
171
|
+
}>;
|
|
172
|
+
type __VLS_WithSlots$11<T, S> = T & {
|
|
173
|
+
new (): {
|
|
174
|
+
$slots: S;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/menu/menu-item-indicator.vue.d.ts
|
|
179
|
+
interface MenuItemIndicatorBaseProps extends PolymorphicProps {}
|
|
180
|
+
interface MenuItemIndicatorProps extends MenuItemIndicatorBaseProps,
|
|
181
|
+
/**
|
|
182
|
+
* @vue-ignore
|
|
183
|
+
*/
|
|
184
|
+
HTMLAttributes {}
|
|
185
|
+
declare const _default$11: typeof __VLS_export$11;
|
|
186
|
+
declare const __VLS_export$11: __VLS_WithSlots$10<vue88.DefineComponent<MenuItemIndicatorProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuItemIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
187
|
+
default?: (props: {}) => any;
|
|
188
|
+
}>;
|
|
189
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
190
|
+
new (): {
|
|
191
|
+
$slots: S;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region src/components/menu/menu-item-text.vue.d.ts
|
|
196
|
+
interface MenuItemTextBaseProps extends PolymorphicProps {}
|
|
197
|
+
interface MenuItemTextProps extends MenuItemTextBaseProps,
|
|
198
|
+
/**
|
|
199
|
+
* @vue-ignore
|
|
200
|
+
*/
|
|
201
|
+
HTMLAttributes {}
|
|
202
|
+
declare const _default$12: typeof __VLS_export$10;
|
|
203
|
+
declare const __VLS_export$10: __VLS_WithSlots$9<vue88.DefineComponent<MenuItemTextProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
204
|
+
default?: (props: {}) => any;
|
|
205
|
+
}>;
|
|
206
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
207
|
+
new (): {
|
|
208
|
+
$slots: S;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/components/menu/menu-item.vue.d.ts
|
|
213
|
+
interface MenuItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
214
|
+
interface MenuItemProps extends MenuItemBaseProps,
|
|
215
|
+
/**
|
|
216
|
+
* @vue-ignore
|
|
217
|
+
*/
|
|
218
|
+
Omit<HTMLAttributes, 'onSelect'> {}
|
|
219
|
+
declare const _default$7: typeof __VLS_export$9;
|
|
220
|
+
declare const __VLS_export$9: __VLS_WithSlots$8<vue88.DefineComponent<MenuItemProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {} & {
|
|
221
|
+
select: () => any;
|
|
222
|
+
}, string, vue88.PublicProps, Readonly<MenuItemProps> & Readonly<{
|
|
223
|
+
onSelect?: (() => any) | undefined;
|
|
224
|
+
}>, {
|
|
225
|
+
disabled: boolean;
|
|
226
|
+
closeOnSelect: boolean;
|
|
227
|
+
}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
228
|
+
default?: (props: {}) => any;
|
|
229
|
+
}>;
|
|
230
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
231
|
+
new (): {
|
|
232
|
+
$slots: S;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/components/menu/menu-positioner.vue.d.ts
|
|
237
|
+
interface MenuPositionerBaseProps extends PolymorphicProps {}
|
|
238
|
+
interface MenuPositionerProps extends MenuPositionerBaseProps,
|
|
239
|
+
/**
|
|
240
|
+
* @vue-ignore
|
|
241
|
+
*/
|
|
242
|
+
HTMLAttributes {}
|
|
243
|
+
declare const _default$13: typeof __VLS_export$8;
|
|
244
|
+
declare const __VLS_export$8: __VLS_WithSlots$7<vue88.DefineComponent<MenuPositionerProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
245
|
+
default?: (props: {}) => any;
|
|
246
|
+
}>;
|
|
247
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
248
|
+
new (): {
|
|
249
|
+
$slots: S;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/components/menu/menu-radio-item-group.vue.d.ts
|
|
254
|
+
interface MenuRadioItemGroupBaseProps extends PolymorphicProps {}
|
|
255
|
+
interface MenuRadioItemGroupProps extends MenuRadioItemGroupBaseProps,
|
|
256
|
+
/**
|
|
257
|
+
* @vue-ignore
|
|
258
|
+
*/
|
|
259
|
+
HTMLAttributes {
|
|
260
|
+
id?: string;
|
|
261
|
+
modelValue?: string;
|
|
262
|
+
}
|
|
263
|
+
type MenuRadioItemGroupEmits = {
|
|
264
|
+
'update:modelValue': [value: string];
|
|
265
|
+
};
|
|
266
|
+
declare const _default$15: typeof __VLS_export$7;
|
|
267
|
+
declare const __VLS_export$7: __VLS_WithSlots$6<vue88.DefineComponent<MenuRadioItemGroupProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {
|
|
268
|
+
"update:modelValue": (value: string) => any;
|
|
269
|
+
}, string, vue88.PublicProps, Readonly<MenuRadioItemGroupProps> & Readonly<{
|
|
270
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
271
|
+
}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
272
|
+
default?: (props: {}) => any;
|
|
273
|
+
}>;
|
|
274
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
275
|
+
new (): {
|
|
276
|
+
$slots: S;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region src/components/menu/menu-radio-item.vue.d.ts
|
|
281
|
+
type RadioItemProps = Omit<OptionItemProps, 'type' | 'onCheckedChange' | 'checked'>;
|
|
282
|
+
interface MenuRadioItemBaseProps extends RadioItemProps, PolymorphicProps {}
|
|
283
|
+
interface MenuRadioItemProps extends MenuRadioItemBaseProps,
|
|
284
|
+
/**
|
|
285
|
+
* @vue-ignore
|
|
286
|
+
*/
|
|
287
|
+
HTMLAttributes {}
|
|
288
|
+
declare const _default$14: typeof __VLS_export$6;
|
|
289
|
+
declare const __VLS_export$6: __VLS_WithSlots$5<vue88.DefineComponent<MenuRadioItemProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuRadioItemProps> & Readonly<{}>, {
|
|
290
|
+
disabled: boolean;
|
|
291
|
+
closeOnSelect: boolean;
|
|
292
|
+
}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
293
|
+
default?: (props: {}) => any;
|
|
294
|
+
}>;
|
|
295
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
296
|
+
new (): {
|
|
297
|
+
$slots: S;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/components/menu/menu-root-provider.vue.d.ts
|
|
302
|
+
interface RootProviderProps {
|
|
303
|
+
value: UseMenuReturn;
|
|
304
|
+
}
|
|
305
|
+
interface MenuRootProviderBaseProps extends RootProviderProps, RenderStrategyProps, PolymorphicProps {}
|
|
306
|
+
interface MenuRootProviderProps extends MenuRootProviderBaseProps {}
|
|
307
|
+
interface MenuRootProviderEmits extends RootEmits$1 {}
|
|
308
|
+
declare const _default$17: typeof __VLS_export$5;
|
|
309
|
+
declare const __VLS_export$5: __VLS_WithSlots$4<vue88.DefineComponent<MenuRootProviderProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {
|
|
310
|
+
exitComplete: () => any;
|
|
311
|
+
}, string, vue88.PublicProps, Readonly<MenuRootProviderProps> & Readonly<{
|
|
312
|
+
onExitComplete?: (() => any) | undefined;
|
|
313
|
+
}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
314
|
+
default?: (props: {}) => any;
|
|
315
|
+
}>;
|
|
316
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
317
|
+
new (): {
|
|
318
|
+
$slots: S;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region src/components/menu/menu-types.d.ts
|
|
323
|
+
interface RootProps {
|
|
324
|
+
anchorPoint?: menu.Point;
|
|
325
|
+
'aria-label'?: string;
|
|
326
|
+
closeOnSelect?: boolean;
|
|
327
|
+
composite?: boolean;
|
|
328
|
+
defaultHighlightedValue?: string;
|
|
329
|
+
defaultOpen?: boolean;
|
|
330
|
+
highlightedValue?: string;
|
|
331
|
+
id?: string;
|
|
332
|
+
ids?: Partial<{
|
|
333
|
+
trigger: string;
|
|
334
|
+
contextTrigger: string;
|
|
335
|
+
content: string;
|
|
336
|
+
groupLabel(id: string): string;
|
|
337
|
+
group(id: string): string;
|
|
338
|
+
positioner: string;
|
|
339
|
+
arrow: string;
|
|
340
|
+
}>;
|
|
341
|
+
loopFocus?: boolean;
|
|
342
|
+
navigate?: (details: menu.NavigateDetails) => void;
|
|
343
|
+
open?: boolean;
|
|
344
|
+
positioning?: menu.PositioningOptions;
|
|
345
|
+
typeahead?: boolean;
|
|
346
|
+
}
|
|
347
|
+
type RootEmits = {
|
|
348
|
+
escapeKeyDown: [event: KeyboardEvent];
|
|
349
|
+
exitComplete: [];
|
|
350
|
+
focusOutside: [event: menu.FocusOutsideEvent];
|
|
351
|
+
highlightChange: [details: menu.HighlightChangeDetails];
|
|
352
|
+
interactOutside: [event: menu.InteractOutsideEvent];
|
|
353
|
+
openChange: [details: menu.OpenChangeDetails];
|
|
354
|
+
pointerDownOutside: [event: menu.PointerDownOutsideEvent];
|
|
355
|
+
requestDismiss: [event: CustomEvent<{
|
|
356
|
+
originalLayer: HTMLElement;
|
|
357
|
+
targetLayer: HTMLElement | undefined;
|
|
358
|
+
originalIndex: number;
|
|
359
|
+
targetIndex: number;
|
|
360
|
+
}>];
|
|
361
|
+
select: [details: menu.SelectionDetails];
|
|
362
|
+
'update:open': [open: boolean];
|
|
363
|
+
'update:highlightedValue': [highlightedValue: string | null];
|
|
364
|
+
};
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/components/menu/menu-root.vue.d.ts
|
|
367
|
+
interface MenuRootBaseProps extends RootProps, RenderStrategyProps, PolymorphicProps {}
|
|
368
|
+
interface MenuRootProps extends MenuRootBaseProps {}
|
|
369
|
+
interface MenuRootEmits extends RootEmits {}
|
|
370
|
+
declare const _default$16: typeof __VLS_export$4;
|
|
371
|
+
declare const __VLS_export$4: __VLS_WithSlots$3<vue88.DefineComponent<MenuRootProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {
|
|
372
|
+
select: (details: menu.SelectionDetails) => any;
|
|
373
|
+
exitComplete: () => any;
|
|
374
|
+
openChange: (details: menu.OpenChangeDetails) => any;
|
|
375
|
+
"update:open": (open: boolean) => any;
|
|
376
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
377
|
+
focusOutside: (event: _sprawlify_primitives_machines_bottom_sheet1.FocusOutsideEvent) => any;
|
|
378
|
+
highlightChange: (details: menu.HighlightChangeDetails) => any;
|
|
379
|
+
interactOutside: (event: _sprawlify_primitives_machines_bottom_sheet1.InteractOutsideEvent) => any;
|
|
380
|
+
pointerDownOutside: (event: _sprawlify_primitives_machines_bottom_sheet1.PointerDownOutsideEvent) => any;
|
|
381
|
+
requestDismiss: (event: CustomEvent<{
|
|
382
|
+
originalLayer: HTMLElement;
|
|
383
|
+
targetLayer: HTMLElement | undefined;
|
|
384
|
+
originalIndex: number;
|
|
385
|
+
targetIndex: number;
|
|
386
|
+
}>) => any;
|
|
387
|
+
"update:highlightedValue": (highlightedValue: string | null) => any;
|
|
388
|
+
}, string, vue88.PublicProps, Readonly<MenuRootProps> & Readonly<{
|
|
389
|
+
onSelect?: ((details: menu.SelectionDetails) => any) | undefined;
|
|
390
|
+
onExitComplete?: (() => any) | undefined;
|
|
391
|
+
onOpenChange?: ((details: menu.OpenChangeDetails) => any) | undefined;
|
|
392
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
393
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
394
|
+
onFocusOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet1.FocusOutsideEvent) => any) | undefined;
|
|
395
|
+
onHighlightChange?: ((details: menu.HighlightChangeDetails) => any) | undefined;
|
|
396
|
+
onInteractOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet1.InteractOutsideEvent) => any) | undefined;
|
|
397
|
+
onPointerDownOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet1.PointerDownOutsideEvent) => any) | undefined;
|
|
398
|
+
onRequestDismiss?: ((event: CustomEvent<{
|
|
399
|
+
originalLayer: HTMLElement;
|
|
400
|
+
targetLayer: HTMLElement | undefined;
|
|
401
|
+
originalIndex: number;
|
|
402
|
+
targetIndex: number;
|
|
403
|
+
}>) => any) | undefined;
|
|
404
|
+
"onUpdate:highlightedValue"?: ((highlightedValue: string | null) => any) | undefined;
|
|
405
|
+
}>, {
|
|
406
|
+
defaultOpen: boolean;
|
|
407
|
+
open: boolean;
|
|
408
|
+
closeOnSelect: boolean;
|
|
409
|
+
composite: boolean;
|
|
410
|
+
loopFocus: boolean;
|
|
411
|
+
typeahead: boolean;
|
|
412
|
+
}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
413
|
+
default?: (props: {}) => any;
|
|
414
|
+
}>;
|
|
415
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
416
|
+
new (): {
|
|
417
|
+
$slots: S;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
//#endregion
|
|
421
|
+
//#region src/components/menu/menu-separator.vue.d.ts
|
|
422
|
+
interface MenuSeparatorBaseProps extends PolymorphicProps {}
|
|
423
|
+
interface MenuSeparatorProps extends MenuSeparatorBaseProps,
|
|
424
|
+
/**
|
|
425
|
+
* @vue-ignore
|
|
426
|
+
*/
|
|
427
|
+
HTMLAttributes {}
|
|
428
|
+
declare const _default$18: typeof __VLS_export$3;
|
|
429
|
+
declare const __VLS_export$3: vue88.DefineComponent<MenuSeparatorProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>;
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region src/components/menu/menu-trigger-item.vue.d.ts
|
|
432
|
+
interface MenuTriggerItemBaseProps extends PolymorphicProps {}
|
|
433
|
+
interface MenuTriggerItemProps extends MenuTriggerItemBaseProps,
|
|
434
|
+
/**
|
|
435
|
+
* @vue-ignore
|
|
436
|
+
*/
|
|
437
|
+
HTMLAttributes {}
|
|
438
|
+
declare const _default$20: typeof __VLS_export$2;
|
|
439
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue88.DefineComponent<MenuTriggerItemProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuTriggerItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
440
|
+
default?: (props: {}) => any;
|
|
441
|
+
}>;
|
|
442
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
443
|
+
new (): {
|
|
444
|
+
$slots: S;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/components/menu/menu-trigger.vue.d.ts
|
|
449
|
+
interface MenuTriggerBaseProps extends PolymorphicProps {}
|
|
450
|
+
interface MenuTriggerProps extends MenuTriggerBaseProps,
|
|
451
|
+
/**
|
|
452
|
+
* @vue-ignore
|
|
453
|
+
*/
|
|
454
|
+
ButtonHTMLAttributes {}
|
|
455
|
+
declare const _default$19: typeof __VLS_export$1;
|
|
456
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue88.DefineComponent<MenuTriggerProps, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<MenuTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, false, {}, any>, {
|
|
457
|
+
default?: (props: {}) => any;
|
|
458
|
+
}>;
|
|
459
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
460
|
+
new (): {
|
|
461
|
+
$slots: S;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/components/menu/use-menu-item-group-context.d.ts
|
|
466
|
+
interface ValueChangeDetails {
|
|
467
|
+
value: string;
|
|
468
|
+
}
|
|
469
|
+
declare namespace menu_d_exports {
|
|
470
|
+
export { _default as Arrow, MenuArrowBaseProps as ArrowBaseProps, MenuArrowProps as ArrowProps, _default$1 as ArrowTip, MenuArrowTipBaseProps as ArrowTipBaseProps, MenuArrowTipProps as ArrowTipProps, _default$2 as CheckboxItem, MenuCheckboxItemBaseProps as CheckboxItemBaseProps, MenuCheckboxItemEmits as CheckboxItemEmits, MenuCheckboxItemProps as CheckboxItemProps, _default$3 as Content, MenuContentBaseProps as ContentBaseProps, MenuContentProps as ContentProps, _default$4 as Context, MenuContextProps as ContextProps, _default$5 as ContextTrigger, MenuContextTriggerBaseProps as ContextTriggerBaseProps, MenuContextTriggerProps as ContextTriggerProps, FocusOutsideEvent, HighlightChangeDetails, _default$6 as Indicator, MenuIndicatorBaseProps as IndicatorBaseProps, MenuIndicatorProps as IndicatorProps, InteractOutsideEvent, _default$7 as Item, MenuItemBaseProps as ItemBaseProps, _default$8 as ItemContext, MenuItemContextProps as ItemContextProps, _default$9 as ItemGroup, MenuItemGroupBaseProps as ItemGroupBaseProps, _default$10 as ItemGroupLabel, MenuItemGroupLabelBaseProps as ItemGroupLabelBaseProps, MenuItemGroupLabelProps as ItemGroupLabelProps, MenuItemGroupProps as ItemGroupProps, _default$11 as ItemIndicator, MenuItemIndicatorBaseProps as ItemIndicatorBaseProps, MenuItemIndicatorProps as ItemIndicatorProps, MenuItemProps as ItemProps, _default$12 as ItemText, MenuItemTextBaseProps as ItemTextBaseProps, MenuItemTextProps as ItemTextProps, OpenChangeDetails, PointerDownOutsideEvent, _default$13 as Positioner, MenuPositionerBaseProps as PositionerBaseProps, MenuPositionerProps as PositionerProps, _default$14 as RadioItem, MenuRadioItemBaseProps as RadioItemBaseProps, _default$15 as RadioItemGroup, MenuRadioItemGroupBaseProps as RadioItemGroupBaseProps, MenuRadioItemGroupEmits as RadioItemGroupEmits, MenuRadioItemGroupProps as RadioItemGroupProps, MenuRadioItemProps as RadioItemProps, _default$16 as Root, MenuRootBaseProps as RootBaseProps, MenuRootEmits as RootEmits, MenuRootProps as RootProps, _default$17 as RootProvider, MenuRootProviderBaseProps as RootProviderBaseProps, MenuRootProviderProps as RootProviderProps, SelectionDetails, _default$18 as Separator, MenuSeparatorBaseProps as SeparatorBaseProps, MenuSeparatorProps as SeparatorProps, _default$19 as Trigger, MenuTriggerBaseProps as TriggerBaseProps, _default$20 as TriggerItem, MenuTriggerItemBaseProps as TriggerItemBaseProps, MenuTriggerItemProps as TriggerItemProps, MenuTriggerProps as TriggerProps, ValueChangeDetails };
|
|
471
|
+
}
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/components/menu/use-menu.d.ts
|
|
474
|
+
interface UseMenuProps extends Optional<Omit<menu.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
475
|
+
interface UseMenuReturn {
|
|
476
|
+
api: ComputedRef<menu.Api<PropTypes>>;
|
|
477
|
+
machine: menu.Service;
|
|
478
|
+
}
|
|
479
|
+
declare const useMenu: (props?: MaybeRef<UseMenuProps>, emit?: EmitFn$1<MenuRootEmits>) => UseMenuReturn;
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/components/menu/use-menu-context.d.ts
|
|
482
|
+
type UseMenuContext = UseMenuReturn['api'];
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region src/components/menu/menu-context.vue.d.ts
|
|
485
|
+
interface MenuContextProps extends SlotsType<{
|
|
486
|
+
default: UnwrapRef<UseMenuContext>;
|
|
487
|
+
}> {}
|
|
488
|
+
declare const _default$4: typeof __VLS_export;
|
|
489
|
+
declare const __VLS_export: __VLS_WithSlots<vue88.DefineComponent<{}, {}, {}, {}, {}, vue88.ComponentOptionsMixin, vue88.ComponentOptionsMixin, {}, string, vue88.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue88.ComponentProvideOptions, true, {}, any>, {
|
|
490
|
+
default(menu: UnwrapRef<UseMenuContext>): unknown;
|
|
491
|
+
}>;
|
|
492
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
493
|
+
new (): {
|
|
494
|
+
$slots: S;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
//#endregion
|
|
498
|
+
export { menu_d_exports as Menu, _default as MenuArrow, type MenuArrowBaseProps, type MenuArrowProps, _default$1 as MenuArrowTip, type MenuArrowTipBaseProps, type MenuArrowTipProps, _default$2 as MenuCheckboxItem, type MenuCheckboxItemBaseProps, type MenuCheckboxItemEmits, type MenuCheckboxItemProps, _default$3 as MenuContent, type MenuContentBaseProps, type MenuContentProps, _default$4 as MenuContext, type MenuContextProps, _default$5 as MenuContextTrigger, type MenuContextTriggerBaseProps, type MenuContextTriggerProps, type MenuFocusOutsideEvent, type MenuHighlightChangeDetails, _default$6 as MenuIndicator, type MenuIndicatorBaseProps, type MenuIndicatorProps, type MenuInteractOutsideEvent, _default$7 as MenuItem, type MenuItemBaseProps, _default$8 as MenuItemContext, type MenuItemContextProps, _default$9 as MenuItemGroup, type MenuItemGroupBaseProps, _default$10 as MenuItemGroupLabel, type MenuItemGroupLabelBaseProps, type MenuItemGroupLabelProps, type MenuItemGroupProps, _default$11 as MenuItemIndicator, type MenuItemIndicatorBaseProps, type MenuItemIndicatorProps, type MenuItemProps, _default$12 as MenuItemText, type MenuItemTextBaseProps, type MenuItemTextProps, type MenuOpenChangeDetails, type MenuPointerDownOutsideEvent, _default$13 as MenuPositioner, type MenuPositionerBaseProps, type MenuPositionerProps, _default$14 as MenuRadioItem, type MenuRadioItemBaseProps, _default$15 as MenuRadioItemGroup, type MenuRadioItemGroupBaseProps, type MenuRadioItemGroupEmits, type MenuRadioItemGroupProps, type MenuRadioItemProps, _default$16 as MenuRoot, type MenuRootBaseProps, type MenuRootEmits, type MenuRootProps, _default$17 as MenuRootProvider, type MenuRootProviderBaseProps, type MenuRootProviderEmits, type MenuRootProviderProps, type MenuSelectionDetails, _default$18 as MenuSeparator, type MenuSeparatorBaseProps, type MenuSeparatorProps, _default$19 as MenuTrigger, type MenuTriggerBaseProps, _default$20 as MenuTriggerItem, type MenuTriggerItemBaseProps, type MenuTriggerItemProps, type MenuTriggerProps, type ValueChangeDetails as MenuValueChangeDetails, type UseMenuContext, type UseMenuItemContext, type UseMenuProps, type UseMenuReturn, menuAnatomy, useMenu, useMenuContext, useMenuItemContext };
|