@plexui/vue 0.9.0 → 0.11.0
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/es/components/Alert/Alert.js +6 -2
- package/dist/es/components/Alert/Alert.js.map +1 -1
- package/dist/es/components/Avatar/Avatar.js +3 -1
- package/dist/es/components/Avatar/Avatar.js.map +1 -1
- package/dist/es/components/ButtonGroup/ButtonGroup.js +7 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/es/components/ButtonGroup/index.js.map +1 -1
- package/dist/es/components/Checkbox/Checkbox.js +5 -6
- package/dist/es/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/es/components/ColorPicker/ColorPicker.js +476 -0
- package/dist/es/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/es/components/ColorPicker/ColorWell.js +186 -0
- package/dist/es/components/ColorPicker/ColorWell.js.map +1 -0
- package/dist/es/components/ColorPicker/index.js +3 -0
- package/dist/es/components/ColorPicker/index.js.map +1 -0
- package/dist/es/components/ColorPicker/shared.js +132 -0
- package/dist/es/components/ColorPicker/shared.js.map +1 -0
- package/dist/es/components/ContextMenu/ContextMenu.js +223 -0
- package/dist/es/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/es/components/ContextMenu/index.js +2 -0
- package/dist/es/components/ContextMenu/index.js.map +1 -0
- package/dist/es/components/ContextMenu/shared.js +58 -0
- package/dist/es/components/ContextMenu/shared.js.map +1 -0
- package/dist/es/components/DatePicker/DatePicker.js +19 -3
- package/dist/es/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/es/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/es/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/es/components/Dialog/Dialog.js +245 -25
- package/dist/es/components/Dialog/Dialog.js.map +1 -1
- package/dist/es/components/Dialog/dialogSteps.js +85 -0
- package/dist/es/components/Dialog/dialogSteps.js.map +1 -0
- package/dist/es/components/Dialog/dialogViewport.js +74 -0
- package/dist/es/components/Dialog/dialogViewport.js.map +1 -0
- package/dist/es/components/Dialog/index.js +1 -1
- package/dist/es/components/Dialog/index.js.map +1 -1
- package/dist/es/components/Dialog/sheetDrag.js +2 -1
- package/dist/es/components/Dialog/sheetDrag.js.map +1 -1
- package/dist/es/components/Field/Field.js +11 -3
- package/dist/es/components/Field/Field.js.map +1 -1
- package/dist/es/components/FieldGroup/FieldGroup.js +12 -1
- package/dist/es/components/FieldGroup/FieldGroup.js.map +1 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js +2 -2
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js.map +1 -1
- package/dist/es/components/Icon/index.js +1 -0
- package/dist/es/components/Icon/index.js.map +1 -1
- package/dist/es/components/Icon/svg/Eyedropper.js +10 -0
- package/dist/es/components/Icon/svg/Eyedropper.js.map +1 -0
- package/dist/es/components/IndexBar/IndexBar.js +215 -0
- package/dist/es/components/IndexBar/IndexBar.js.map +1 -0
- package/dist/es/components/IndexBar/index.js +2 -0
- package/dist/es/components/IndexBar/index.js.map +1 -0
- package/dist/es/components/Indicator/LoadingIndicator.js +1 -1
- package/dist/es/components/Indicator/LoadingIndicator.js.map +1 -1
- package/dist/es/components/Input/Input.js +3 -2
- package/dist/es/components/Input/Input.js.map +1 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.js +149 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.js.map +1 -1
- package/dist/es/components/Menu/Menu.js +206 -33
- package/dist/es/components/Menu/Menu.js.map +1 -1
- package/dist/es/components/Menu/index.js +1 -1
- package/dist/es/components/Menu/index.js.map +1 -1
- package/dist/es/components/Page/Page.js +43 -11
- package/dist/es/components/Page/Page.js.map +1 -1
- package/dist/es/components/PageControl/PageControl.js +210 -0
- package/dist/es/components/PageControl/PageControl.js.map +1 -0
- package/dist/es/components/PageControl/index.js +2 -0
- package/dist/es/components/PageControl/index.js.map +1 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.js +50 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.js.map +1 -0
- package/dist/es/components/PhoneLayout/index.js +2 -0
- package/dist/es/components/PhoneLayout/index.js.map +1 -0
- package/dist/es/components/Popover/Popover.js +5 -1
- package/dist/es/components/Popover/Popover.js.map +1 -1
- package/dist/es/components/Popover/deferredPointerDownOutside.js +59 -4
- package/dist/es/components/Popover/deferredPointerDownOutside.js.map +1 -1
- package/dist/es/components/Select/Select.js +18 -11
- package/dist/es/components/Select/Select.js.map +1 -1
- package/dist/es/components/SelectControl/SelectControl.js +1 -0
- package/dist/es/components/SelectControl/SelectControl.js.map +1 -1
- package/dist/es/components/Sidebar/Sidebar.js +21 -6
- package/dist/es/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/es/components/Slider/Slider.js +44 -9
- package/dist/es/components/Slider/Slider.js.map +1 -1
- package/dist/es/components/Stepper/Stepper.js +195 -0
- package/dist/es/components/Stepper/Stepper.js.map +1 -0
- package/dist/es/components/Stepper/index.js +2 -0
- package/dist/es/components/Stepper/index.js.map +1 -0
- package/dist/es/components/SwipeActions/SwipeActions.js +374 -0
- package/dist/es/components/SwipeActions/SwipeActions.js.map +1 -0
- package/dist/es/components/SwipeActions/index.js +2 -0
- package/dist/es/components/SwipeActions/index.js.map +1 -0
- package/dist/es/components/Switch/Switch.js +3 -1
- package/dist/es/components/Switch/Switch.js.map +1 -1
- package/dist/es/components/TabBar/TabBar.js +205 -0
- package/dist/es/components/TabBar/TabBar.js.map +1 -0
- package/dist/es/components/TabBar/index.js +2 -0
- package/dist/es/components/TabBar/index.js.map +1 -0
- package/dist/es/components/Tabs/Tabs.js +10 -2
- package/dist/es/components/Tabs/Tabs.js.map +1 -1
- package/dist/es/components/TagInput/TagInput.js +3 -46
- package/dist/es/components/TagInput/TagInput.js.map +1 -1
- package/dist/es/components/Textarea/Textarea.js +2 -0
- package/dist/es/components/Textarea/Textarea.js.map +1 -1
- package/dist/es/components/Tip/Tip.js +276 -0
- package/dist/es/components/Tip/Tip.js.map +1 -0
- package/dist/es/components/Tip/index.js +2 -0
- package/dist/es/components/Tip/index.js.map +1 -0
- package/dist/es/components/Toast/ToastRenderer.js +30 -13
- package/dist/es/components/Toast/ToastRenderer.js.map +1 -1
- package/dist/es/components/Toast/Toaster.js +17 -6
- package/dist/es/components/Toast/Toaster.js.map +1 -1
- package/dist/es/components/Toast/toastLifecycle.js +113 -1
- package/dist/es/components/Toast/toastLifecycle.js.map +1 -1
- package/dist/es/components/Toolbar/Toolbar.js +37 -6
- package/dist/es/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/es/components/Toolbar/index.js.map +1 -1
- package/dist/es/components/Tooltip/slot.js +3 -3
- package/dist/es/components/Tooltip/slot.js.map +1 -1
- package/dist/es/composables/useEscCloseStack.js +8 -4
- package/dist/es/composables/useEscCloseStack.js.map +1 -1
- package/dist/es/lib/fieldRow.js +15 -2
- package/dist/es/lib/fieldRow.js.map +1 -1
- package/dist/es/lib/floatingBoundary.js +3 -1
- package/dist/es/lib/floatingBoundary.js.map +1 -1
- package/dist/es/lib/helpers.js +21 -0
- package/dist/es/lib/helpers.js.map +1 -1
- package/dist/es/lib/menuSubmenuPlacement.js +51 -6
- package/dist/es/lib/menuSubmenuPlacement.js.map +1 -1
- package/dist/es/lib/menuTriggerCover.js +70 -0
- package/dist/es/lib/menuTriggerCover.js.map +1 -0
- package/dist/es/lib/phoneLayout.js +16 -0
- package/dist/es/lib/phoneLayout.js.map +1 -0
- package/dist/es/lib/scrollEdges.js +34 -0
- package/dist/es/lib/scrollEdges.js.map +1 -0
- package/dist/es/lib/toastRegion.js +6 -0
- package/dist/es/lib/toastRegion.js.map +1 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +13 -0
- package/dist/types/components/ButtonGroup/index.d.ts +1 -1
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +244 -0
- package/dist/types/components/ColorPicker/ColorWell.d.ts +334 -0
- package/dist/types/components/ColorPicker/index.d.ts +3 -0
- package/dist/types/components/ColorPicker/shared.d.ts +69 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +128 -0
- package/dist/types/components/ContextMenu/index.d.ts +1 -0
- package/dist/types/components/ContextMenu/shared.d.ts +51 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +24 -4
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +4 -4
- package/dist/types/components/Dialog/Dialog.d.ts +100 -4
- package/dist/types/components/Dialog/dialogSteps.d.ts +10 -0
- package/dist/types/components/Dialog/dialogViewport.d.ts +1 -0
- package/dist/types/components/Dialog/index.d.ts +1 -1
- package/dist/types/components/Field/Field.d.ts +21 -2
- package/dist/types/components/FieldGroup/FieldGroup.d.ts +18 -1
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Icon/svg/Eyedropper.d.ts +3 -0
- package/dist/types/components/IndexBar/IndexBar.d.ts +112 -0
- package/dist/types/components/IndexBar/index.d.ts +1 -0
- package/dist/types/components/Indicator/LoadingIndicator.d.ts +2 -2
- package/dist/types/components/Menu/Menu.d.ts +153 -40
- package/dist/types/components/Menu/index.d.ts +1 -1
- package/dist/types/components/Page/Page.d.ts +13 -5
- package/dist/types/components/PageControl/PageControl.d.ts +216 -0
- package/dist/types/components/PageControl/index.d.ts +1 -0
- package/dist/types/components/PhoneLayout/PhoneLayout.d.ts +21 -0
- package/dist/types/components/PhoneLayout/index.d.ts +1 -0
- package/dist/types/components/Popover/deferredPointerDownOutside.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +6 -6
- package/dist/types/components/Stepper/Stepper.d.ts +338 -0
- package/dist/types/components/Stepper/index.d.ts +1 -0
- package/dist/types/components/SwipeActions/SwipeActions.d.ts +135 -0
- package/dist/types/components/SwipeActions/index.d.ts +1 -0
- package/dist/types/components/TabBar/TabBar.d.ts +405 -0
- package/dist/types/components/TabBar/index.d.ts +1 -0
- package/dist/types/components/Tip/Tip.d.ts +146 -0
- package/dist/types/components/Tip/index.d.ts +1 -0
- package/dist/types/components/Toast/toastLifecycle.d.ts +34 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +26 -9
- package/dist/types/components/Toolbar/index.d.ts +1 -1
- package/dist/types/components/Tooltip/CopyTooltip.d.ts +1 -1
- package/dist/types/composables/useEscCloseStack.d.ts +2 -2
- package/dist/types/lib/fieldRow.d.ts +5 -0
- package/dist/types/lib/helpers.d.ts +6 -0
- package/dist/types/lib/menuSubmenuPlacement.d.ts +14 -1
- package/dist/types/lib/menuTriggerCover.d.ts +23 -0
- package/dist/types/lib/phoneLayout.d.ts +11 -0
- package/dist/types/lib/scrollEdges.d.ts +16 -0
- package/dist/types/lib/toastRegion.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* What the bar shows: the index of each title, or `null` for a dot. Every title shows while they fit in `capacity`
|
|
4
|
+
* lines, or while `capacity` is not known (`undefined`). Otherwise the first and the last title keep their places
|
|
5
|
+
* and titles spread evenly between them, a dot in each line between two, as UIKit's index shortens itself on a
|
|
6
|
+
* short screen; two lines hold the first and the last title, one the first, none nothing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const indexBarSlots: (count: number, capacity?: number) => Array<number | null>;
|
|
9
|
+
declare const IndexBarComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
/** The `id` of the index bar. */
|
|
11
|
+
id: StringConstructor;
|
|
12
|
+
/** The titles of the sections, in order: usually letters, such as `"A"` to `"Z"` and `"#"`. */
|
|
13
|
+
items: {
|
|
14
|
+
type: PropType<string[]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
/** Accessible name of the index bar. @default "Section index" */
|
|
18
|
+
ariaLabel: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** The `id` of the list the index scrolls. */
|
|
23
|
+
ariaControls: StringConstructor;
|
|
24
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
/** The section to show: on a press, on each new letter while dragging, and from the keys (React `onSelect`) */
|
|
28
|
+
select: (item: string, index: number) => boolean;
|
|
29
|
+
/** The index bar gained focus */
|
|
30
|
+
focus: (event: FocusEvent) => boolean;
|
|
31
|
+
/** The index bar lost focus */
|
|
32
|
+
blur: (event: FocusEvent) => boolean;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
/** The `id` of the index bar. */
|
|
35
|
+
id: StringConstructor;
|
|
36
|
+
/** The titles of the sections, in order: usually letters, such as `"A"` to `"Z"` and `"#"`. */
|
|
37
|
+
items: {
|
|
38
|
+
type: PropType<string[]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
/** Accessible name of the index bar. @default "Section index" */
|
|
42
|
+
ariaLabel: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
/** The `id` of the list the index scrolls. */
|
|
47
|
+
ariaControls: StringConstructor;
|
|
48
|
+
}>> & Readonly<{
|
|
49
|
+
onSelect?: ((item: string, index: number) => any) | undefined;
|
|
50
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
51
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
ariaLabel: string;
|
|
54
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
type IndexBarOwnProps = InstanceType<typeof IndexBarComponent>["$props"];
|
|
56
|
+
/** IndexBar props. */
|
|
57
|
+
export type IndexBarProps = IndexBarOwnProps;
|
|
58
|
+
/**
|
|
59
|
+
* The section index of a phone list, as the iOS section index: a column of letters at the trailing edge of the
|
|
60
|
+
* nearest positioned container (a Page), centred between the bars of the Page. A press shows the section of the letter under the
|
|
61
|
+
* finger, and a drag moves through the sections letter by letter. On a short screen every other letter gives
|
|
62
|
+
* way to a dot. It is one slider for assistive technology: Down and Up (or Right and Left) move one section, Home
|
|
63
|
+
* and End go to the first and the last, and Enter or Space shows the current one again. A desktop list has no
|
|
64
|
+
* index, so the bar renders under 768px only.
|
|
65
|
+
*/
|
|
66
|
+
export declare const IndexBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
67
|
+
/** The `id` of the index bar. */
|
|
68
|
+
id: StringConstructor;
|
|
69
|
+
/** The titles of the sections, in order: usually letters, such as `"A"` to `"Z"` and `"#"`. */
|
|
70
|
+
items: {
|
|
71
|
+
type: PropType<string[]>;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
/** Accessible name of the index bar. @default "Section index" */
|
|
75
|
+
ariaLabel: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** The `id` of the list the index scrolls. */
|
|
80
|
+
ariaControls: StringConstructor;
|
|
81
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
/** The section to show: on a press, on each new letter while dragging, and from the keys (React `onSelect`) */
|
|
85
|
+
select: (item: string, index: number) => boolean;
|
|
86
|
+
/** The index bar gained focus */
|
|
87
|
+
focus: (event: FocusEvent) => boolean;
|
|
88
|
+
/** The index bar lost focus */
|
|
89
|
+
blur: (event: FocusEvent) => boolean;
|
|
90
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
/** The `id` of the index bar. */
|
|
92
|
+
id: StringConstructor;
|
|
93
|
+
/** The titles of the sections, in order: usually letters, such as `"A"` to `"Z"` and `"#"`. */
|
|
94
|
+
items: {
|
|
95
|
+
type: PropType<string[]>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
/** Accessible name of the index bar. @default "Section index" */
|
|
99
|
+
ariaLabel: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
/** The `id` of the list the index scrolls. */
|
|
104
|
+
ariaControls: StringConstructor;
|
|
105
|
+
}>> & Readonly<{
|
|
106
|
+
onSelect?: ((item: string, index: number) => any) | undefined;
|
|
107
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
108
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
ariaLabel: string;
|
|
111
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IndexBar, indexBarSlots, type IndexBarProps } from "./IndexBar.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type HTMLAttributes, type PropType } from "vue";
|
|
2
2
|
declare const LoadingIndicatorComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
/** Size of the indicator, in pixels. Defaults to 1em, or
|
|
3
|
+
/** Size of the indicator, in pixels. Defaults to 1em, or 20px with the touch stylesheet. */
|
|
4
4
|
size: PropType<number | string>;
|
|
5
5
|
/** Stroke width of the indicator, in pixels. Defaults to 2. */
|
|
6
6
|
strokeWidth: NumberConstructor;
|
|
7
7
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
/** Size of the indicator, in pixels. Defaults to 1em, or
|
|
10
|
+
/** Size of the indicator, in pixels. Defaults to 1em, or 20px with the touch stylesheet. */
|
|
11
11
|
size: PropType<number | string>;
|
|
12
12
|
/** Stroke width of the indicator, in pixels. Defaults to 2. */
|
|
13
13
|
strokeWidth: NumberConstructor;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { type PropType } from "vue";
|
|
1
|
+
import { type ComputedRef, type PropType, type VNode } from "vue";
|
|
2
2
|
import type { LinkComponent } from "../PlexUIProvider/index.js";
|
|
3
3
|
import { type CheckedState } from "./internal.js";
|
|
4
|
+
type MenuContextValue = {
|
|
5
|
+
open: ComputedRef<boolean>;
|
|
6
|
+
setOpen: (next: boolean) => void;
|
|
7
|
+
prepareFocusRestore: (trigger: HTMLElement) => void;
|
|
8
|
+
};
|
|
9
|
+
/** @internal The open state of the enclosing Menu, for ContextMenu. Not exported from the package index. */
|
|
10
|
+
export declare const useMenuContext: () => MenuContextValue;
|
|
4
11
|
/** Dropdown menu root. Open state is internal; `forceOpen` overrides it. */
|
|
5
12
|
export declare const Menu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
13
|
/** Force the menu to remain open or closed */
|
|
@@ -16,7 +23,7 @@ export declare const Menu: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
16
23
|
type: BooleanConstructor;
|
|
17
24
|
default: boolean;
|
|
18
25
|
};
|
|
19
|
-
}>, () =>
|
|
26
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
20
27
|
[key: string]: any;
|
|
21
28
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
29
|
/** The menu opened */
|
|
@@ -54,7 +61,7 @@ export declare const MenuTrigger: import("vue").DefineComponent<import("vue").Ex
|
|
|
54
61
|
type: BooleanConstructor;
|
|
55
62
|
default: boolean;
|
|
56
63
|
};
|
|
57
|
-
}>, () =>
|
|
64
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
58
65
|
[key: string]: any;
|
|
59
66
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
67
|
/** Prevents the menu from opening */
|
|
@@ -71,28 +78,34 @@ type SizeValue = number | "auto";
|
|
|
71
78
|
/** The menu panel. Positioned against the trigger and portalled to `<body>`. */
|
|
72
79
|
export declare const MenuContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
73
80
|
/**
|
|
74
|
-
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
|
81
|
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur. Without
|
|
82
|
+
* it a menu on a phone opens toward the larger part of the screen: upward from a trigger in the lower half.
|
|
75
83
|
* @default bottom
|
|
76
84
|
*/
|
|
77
85
|
side: PropType<MenuSide>;
|
|
78
86
|
/**
|
|
79
|
-
* The distance in pixels from the trigger.
|
|
87
|
+
* The distance in pixels from the trigger. Without it a menu on a phone covers its trigger, as iOS menus grow out
|
|
88
|
+
* of the control that opens them.
|
|
80
89
|
* @default 5
|
|
81
90
|
*/
|
|
82
91
|
sideOffset: {
|
|
83
92
|
type: NumberConstructor;
|
|
84
|
-
default:
|
|
93
|
+
default: undefined;
|
|
85
94
|
};
|
|
86
95
|
/**
|
|
87
96
|
* The preferred alignment against the trigger. May change when collisions occur.
|
|
88
97
|
* @default center
|
|
89
98
|
*/
|
|
90
99
|
align: PropType<MenuAlign>;
|
|
91
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* An offset in pixels from the "start" or "end" alignment options. Without it a menu on a phone that covers its
|
|
102
|
+
* trigger keeps the trigger's edge.
|
|
103
|
+
* @default -5 with "start" or "end", 0 with "center"
|
|
104
|
+
*/
|
|
92
105
|
alignOffset: NumberConstructor;
|
|
93
106
|
/**
|
|
94
|
-
* Defines the `width` property of the content
|
|
95
|
-
*
|
|
107
|
+
* Defines the `width` property of the content. Without it the menu fits its content, or with `touch.css` on a phone
|
|
108
|
+
* is the 250px panel of an iOS menu; `"auto"` fits its content there too.
|
|
96
109
|
*/
|
|
97
110
|
width: PropType<SizeValue>;
|
|
98
111
|
/**
|
|
@@ -123,7 +136,7 @@ export declare const MenuContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
123
136
|
type: BooleanConstructor;
|
|
124
137
|
default: boolean;
|
|
125
138
|
};
|
|
126
|
-
}>, () =>
|
|
139
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
127
140
|
[key: string]: any;
|
|
128
141
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
129
142
|
/**
|
|
@@ -132,30 +145,41 @@ export declare const MenuContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
132
145
|
* its focus-visible ring).
|
|
133
146
|
*/
|
|
134
147
|
closeAutoFocus: (event: Event) => boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Focus is about to move into the menu as it opens. Call `event.preventDefault()` to leave focus where it is, as
|
|
150
|
+
* for a menu that stands open when its screen appears.
|
|
151
|
+
*/
|
|
152
|
+
openAutoFocus: (event: Event) => boolean;
|
|
135
153
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
136
154
|
/**
|
|
137
|
-
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur.
|
|
155
|
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur. Without
|
|
156
|
+
* it a menu on a phone opens toward the larger part of the screen: upward from a trigger in the lower half.
|
|
138
157
|
* @default bottom
|
|
139
158
|
*/
|
|
140
159
|
side: PropType<MenuSide>;
|
|
141
160
|
/**
|
|
142
|
-
* The distance in pixels from the trigger.
|
|
161
|
+
* The distance in pixels from the trigger. Without it a menu on a phone covers its trigger, as iOS menus grow out
|
|
162
|
+
* of the control that opens them.
|
|
143
163
|
* @default 5
|
|
144
164
|
*/
|
|
145
165
|
sideOffset: {
|
|
146
166
|
type: NumberConstructor;
|
|
147
|
-
default:
|
|
167
|
+
default: undefined;
|
|
148
168
|
};
|
|
149
169
|
/**
|
|
150
170
|
* The preferred alignment against the trigger. May change when collisions occur.
|
|
151
171
|
* @default center
|
|
152
172
|
*/
|
|
153
173
|
align: PropType<MenuAlign>;
|
|
154
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* An offset in pixels from the "start" or "end" alignment options. Without it a menu on a phone that covers its
|
|
176
|
+
* trigger keeps the trigger's edge.
|
|
177
|
+
* @default -5 with "start" or "end", 0 with "center"
|
|
178
|
+
*/
|
|
155
179
|
alignOffset: NumberConstructor;
|
|
156
180
|
/**
|
|
157
|
-
* Defines the `width` property of the content
|
|
158
|
-
*
|
|
181
|
+
* Defines the `width` property of the content. Without it the menu fits its content, or with `touch.css` on a phone
|
|
182
|
+
* is the 250px panel of an iOS menu; `"auto"` fits its content there too.
|
|
159
183
|
*/
|
|
160
184
|
width: PropType<SizeValue>;
|
|
161
185
|
/**
|
|
@@ -187,6 +211,7 @@ export declare const MenuContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
187
211
|
default: boolean;
|
|
188
212
|
};
|
|
189
213
|
}>> & Readonly<{
|
|
214
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
190
215
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
191
216
|
}>, {
|
|
192
217
|
layout: "vertical" | "horizontal";
|
|
@@ -222,7 +247,7 @@ export declare const MenuItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
222
247
|
onSelect: PropType<(event: Event) => void>;
|
|
223
248
|
/** Called when the item is clicked (`@click`); also makes the item interactive */
|
|
224
249
|
onClick: PropType<(event: MouseEvent) => void>;
|
|
225
|
-
}>, () =>
|
|
250
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
226
251
|
[key: string]: any;
|
|
227
252
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
228
253
|
/**
|
|
@@ -254,14 +279,14 @@ export declare const MenuItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
254
279
|
danger: boolean;
|
|
255
280
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
256
281
|
/** Hover actions at the end of an item. */
|
|
257
|
-
export declare const MenuItemActions: import("vue").DefineComponent<{}, () =>
|
|
282
|
+
export declare const MenuItemActions: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
258
283
|
[key: string]: any;
|
|
259
284
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
260
285
|
/** A small ghost button inside `MenuItemActions`. Closes the menu and emits `click`. */
|
|
261
286
|
export declare const MenuItemAction: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
262
287
|
/** Accessible name; the action is an icon-only button */
|
|
263
288
|
ariaLabel: StringConstructor;
|
|
264
|
-
}>, () =>
|
|
289
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
265
290
|
[key: string]: any;
|
|
266
291
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
267
292
|
click: (event: MouseEvent) => boolean;
|
|
@@ -296,7 +321,7 @@ export declare const MenuLink: import("vue").DefineComponent<import("vue").Extra
|
|
|
296
321
|
* @default 'a'
|
|
297
322
|
*/
|
|
298
323
|
as: PropType<LinkComponent>;
|
|
299
|
-
}>, () =>
|
|
324
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
300
325
|
[key: string]: any;
|
|
301
326
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
302
327
|
href: StringConstructor;
|
|
@@ -323,17 +348,65 @@ export declare const MenuLink: import("vue").DefineComponent<import("vue").Extra
|
|
|
323
348
|
danger: boolean;
|
|
324
349
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
325
350
|
/** A divider between items. */
|
|
326
|
-
export declare const MenuSeparator: import("vue").DefineComponent<{}, () =>
|
|
351
|
+
export declare const MenuSeparator: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
327
352
|
[key: string]: any;
|
|
328
353
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
329
354
|
/** A non-interactive label for a group of items. */
|
|
330
|
-
export declare const MenuLabel: import("vue").DefineComponent<{}, () =>
|
|
355
|
+
export declare const MenuLabel: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
331
356
|
[key: string]: any;
|
|
332
357
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
333
358
|
/** Groups related items. */
|
|
334
|
-
export declare const MenuGroup: import("vue").DefineComponent<{}, () =>
|
|
359
|
+
export declare const MenuGroup: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
335
360
|
[key: string]: any;
|
|
336
361
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
362
|
+
/**
|
|
363
|
+
* Names what the menu acts on, above its items: the picture, name and kind of a file in the iOS Files menu, with a
|
|
364
|
+
* round action at its end. Not an item itself; its action is. The default slot is the title; `media` is a picture
|
|
365
|
+
* before it (a thumbnail image, an icon or an Avatar, in a square of 32px, 40px on a phone: an image or icon fills
|
|
366
|
+
* the square, an image gets small rounded corners), and `action` a `MenuHeaderAction` at the end.
|
|
367
|
+
*/
|
|
368
|
+
export declare const MenuHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
369
|
+
/** A line under the title: what it is, such as its kind and size ("Folder · 382 KB"). Also a `description` slot. */
|
|
370
|
+
description: StringConstructor;
|
|
371
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
372
|
+
[key: string]: any;
|
|
373
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
374
|
+
/** A line under the title: what it is, such as its kind and size ("Folder · 382 KB"). Also a `description` slot. */
|
|
375
|
+
description: StringConstructor;
|
|
376
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
377
|
+
/** The round action at the end of a `MenuHeader`, such as Share: a menu item, reached with the arrow keys too. */
|
|
378
|
+
export declare const MenuHeaderAction: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
379
|
+
/** Accessible name; the action is an icon-only button */
|
|
380
|
+
ariaLabel: {
|
|
381
|
+
type: StringConstructor;
|
|
382
|
+
required: true;
|
|
383
|
+
};
|
|
384
|
+
/** Disables the action */
|
|
385
|
+
disabled: {
|
|
386
|
+
type: BooleanConstructor;
|
|
387
|
+
default: boolean;
|
|
388
|
+
};
|
|
389
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
390
|
+
[key: string]: any;
|
|
391
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
392
|
+
/** The action was pressed; the menu then closes. `event.preventDefault()` keeps it open. */
|
|
393
|
+
select: (event: Event) => boolean;
|
|
394
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
395
|
+
/** Accessible name; the action is an icon-only button */
|
|
396
|
+
ariaLabel: {
|
|
397
|
+
type: StringConstructor;
|
|
398
|
+
required: true;
|
|
399
|
+
};
|
|
400
|
+
/** Disables the action */
|
|
401
|
+
disabled: {
|
|
402
|
+
type: BooleanConstructor;
|
|
403
|
+
default: boolean;
|
|
404
|
+
};
|
|
405
|
+
}>> & Readonly<{
|
|
406
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
407
|
+
}>, {
|
|
408
|
+
disabled: boolean;
|
|
409
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
337
410
|
/** A nested menu: `MenuSubTrigger` plus `MenuSubContent`. */
|
|
338
411
|
export declare const MenuSub: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
339
412
|
/** Force the menu to remain open or closed */
|
|
@@ -341,7 +414,7 @@ export declare const MenuSub: import("vue").DefineComponent<import("vue").Extrac
|
|
|
341
414
|
type: BooleanConstructor;
|
|
342
415
|
default: undefined;
|
|
343
416
|
};
|
|
344
|
-
}>, () =>
|
|
417
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
345
418
|
[key: string]: any;
|
|
346
419
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
347
420
|
/** The submenu opened */
|
|
@@ -367,7 +440,12 @@ export declare const MenuSubTrigger: import("vue").DefineComponent<import("vue")
|
|
|
367
440
|
type: BooleanConstructor;
|
|
368
441
|
default: boolean;
|
|
369
442
|
};
|
|
370
|
-
|
|
443
|
+
/**
|
|
444
|
+
* Second line under the label: what the submenu has chosen, as Reminders shows "Manual" under Sort By. It stacks
|
|
445
|
+
* as an item's description does; icons before the label stay beside both lines. Also a `description` slot.
|
|
446
|
+
*/
|
|
447
|
+
description: StringConstructor;
|
|
448
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
371
449
|
[key: string]: any;
|
|
372
450
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
373
451
|
/** Disables the trigger */
|
|
@@ -375,6 +453,11 @@ export declare const MenuSubTrigger: import("vue").DefineComponent<import("vue")
|
|
|
375
453
|
type: BooleanConstructor;
|
|
376
454
|
default: boolean;
|
|
377
455
|
};
|
|
456
|
+
/**
|
|
457
|
+
* Second line under the label: what the submenu has chosen, as Reminders shows "Manual" under Sort By. It stacks
|
|
458
|
+
* as an item's description does; icons before the label stay beside both lines. Also a `description` slot.
|
|
459
|
+
*/
|
|
460
|
+
description: StringConstructor;
|
|
378
461
|
}>> & Readonly<{}>, {
|
|
379
462
|
disabled: boolean;
|
|
380
463
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -390,11 +473,11 @@ export declare const MenuSubContent: import("vue").DefineComponent<import("vue")
|
|
|
390
473
|
type: NumberConstructor;
|
|
391
474
|
default: number;
|
|
392
475
|
};
|
|
393
|
-
/**
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
476
|
+
/**
|
|
477
|
+
* The width of the submenu. Without it the submenu fits its content, or with `touch.css` on a phone is the 250px
|
|
478
|
+
* of a menu; `"auto"` fits its content there too.
|
|
479
|
+
*/
|
|
480
|
+
width: PropType<SizeValue>;
|
|
398
481
|
/** Defines the `min-width` property of the content. @default "auto" */
|
|
399
482
|
minWidth: PropType<SizeValue>;
|
|
400
483
|
/** Defines the `max-height` property of the content, in pixels. */
|
|
@@ -407,7 +490,7 @@ export declare const MenuSubContent: import("vue").DefineComponent<import("vue")
|
|
|
407
490
|
type: BooleanConstructor;
|
|
408
491
|
default: boolean;
|
|
409
492
|
};
|
|
410
|
-
}>, () =>
|
|
493
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
411
494
|
[key: string]: any;
|
|
412
495
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
413
496
|
/** The distance in pixels from the trigger. @default 4 */
|
|
@@ -420,11 +503,11 @@ export declare const MenuSubContent: import("vue").DefineComponent<import("vue")
|
|
|
420
503
|
type: NumberConstructor;
|
|
421
504
|
default: number;
|
|
422
505
|
};
|
|
423
|
-
/**
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
506
|
+
/**
|
|
507
|
+
* The width of the submenu. Without it the submenu fits its content, or with `touch.css` on a phone is the 250px
|
|
508
|
+
* of a menu; `"auto"` fits its content there too.
|
|
509
|
+
*/
|
|
510
|
+
width: PropType<SizeValue>;
|
|
428
511
|
/** Defines the `min-width` property of the content. @default "auto" */
|
|
429
512
|
minWidth: PropType<SizeValue>;
|
|
430
513
|
/** Defines the `max-height` property of the content, in pixels. */
|
|
@@ -438,7 +521,6 @@ export declare const MenuSubContent: import("vue").DefineComponent<import("vue")
|
|
|
438
521
|
default: boolean;
|
|
439
522
|
};
|
|
440
523
|
}>> & Readonly<{}>, {
|
|
441
|
-
width: SizeValue;
|
|
442
524
|
pill: boolean;
|
|
443
525
|
sideOffset: number;
|
|
444
526
|
alignOffset: number;
|
|
@@ -455,7 +537,16 @@ export declare const MenuRadioGroup: import("vue").DefineComponent<import("vue")
|
|
|
455
537
|
type: PropType<"start" | "end">;
|
|
456
538
|
default: string;
|
|
457
539
|
};
|
|
458
|
-
|
|
540
|
+
/**
|
|
541
|
+
* `horizontal` sets the options side by side, each an icon over its label and the chosen one on a fill: a mode at
|
|
542
|
+
* the top of an iOS menu, above its list, as Photos orders by Added or by Captured. No radio indicator is drawn;
|
|
543
|
+
* choosing one closes the menu, as any item does.
|
|
544
|
+
*/
|
|
545
|
+
layout: {
|
|
546
|
+
type: PropType<"vertical" | "horizontal">;
|
|
547
|
+
default: string;
|
|
548
|
+
};
|
|
549
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
459
550
|
[key: string]: any;
|
|
460
551
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
461
552
|
"update:value": (value: string) => boolean;
|
|
@@ -472,10 +563,20 @@ export declare const MenuRadioGroup: import("vue").DefineComponent<import("vue")
|
|
|
472
563
|
type: PropType<"start" | "end">;
|
|
473
564
|
default: string;
|
|
474
565
|
};
|
|
566
|
+
/**
|
|
567
|
+
* `horizontal` sets the options side by side, each an icon over its label and the chosen one on a fill: a mode at
|
|
568
|
+
* the top of an iOS menu, above its list, as Photos orders by Added or by Captured. No radio indicator is drawn;
|
|
569
|
+
* choosing one closes the menu, as any item does.
|
|
570
|
+
*/
|
|
571
|
+
layout: {
|
|
572
|
+
type: PropType<"vertical" | "horizontal">;
|
|
573
|
+
default: string;
|
|
574
|
+
};
|
|
475
575
|
}>> & Readonly<{
|
|
476
576
|
onChange?: ((value: string) => any) | undefined;
|
|
477
577
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
478
578
|
}>, {
|
|
579
|
+
layout: "vertical" | "horizontal";
|
|
479
580
|
indicatorPosition: "end" | "start";
|
|
480
581
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
481
582
|
/** One option of a `MenuRadioGroup`. */
|
|
@@ -484,12 +585,17 @@ export declare const MenuRadioItem: import("vue").DefineComponent<import("vue").
|
|
|
484
585
|
type: StringConstructor;
|
|
485
586
|
required: true;
|
|
486
587
|
};
|
|
588
|
+
/**
|
|
589
|
+
* Second line under the label, as iOS shows the order of the chosen sort (Files: "Newest to Oldest" under Date). It
|
|
590
|
+
* stacks as a MenuItem's description does. Also a `description` slot.
|
|
591
|
+
*/
|
|
592
|
+
description: StringConstructor;
|
|
487
593
|
/** Disables the radio item */
|
|
488
594
|
disabled: {
|
|
489
595
|
type: BooleanConstructor;
|
|
490
596
|
default: boolean;
|
|
491
597
|
};
|
|
492
|
-
}>, () =>
|
|
598
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
493
599
|
[key: string]: any;
|
|
494
600
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
495
601
|
/** The radio item was pressed; `event.preventDefault()` keeps the menu open */
|
|
@@ -499,6 +605,11 @@ export declare const MenuRadioItem: import("vue").DefineComponent<import("vue").
|
|
|
499
605
|
type: StringConstructor;
|
|
500
606
|
required: true;
|
|
501
607
|
};
|
|
608
|
+
/**
|
|
609
|
+
* Second line under the label, as iOS shows the order of the chosen sort (Files: "Newest to Oldest" under Date). It
|
|
610
|
+
* stacks as a MenuItem's description does. Also a `description` slot.
|
|
611
|
+
*/
|
|
612
|
+
description: StringConstructor;
|
|
502
613
|
/** Disables the radio item */
|
|
503
614
|
disabled: {
|
|
504
615
|
type: BooleanConstructor;
|
|
@@ -537,7 +648,7 @@ export declare const MenuCheckboxItem: import("vue").DefineComponent<import("vue
|
|
|
537
648
|
type: PropType<"solid" | "ghost">;
|
|
538
649
|
default: string;
|
|
539
650
|
};
|
|
540
|
-
}>, () =>
|
|
651
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
541
652
|
[key: string]: any;
|
|
542
653
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
543
654
|
"update:checked": (checked: boolean) => boolean;
|
|
@@ -585,6 +696,8 @@ export declare const MenuCheckboxItem: import("vue").DefineComponent<import("vue
|
|
|
585
696
|
export type MenuProps = InstanceType<typeof Menu>["$props"];
|
|
586
697
|
export type MenuContentProps = InstanceType<typeof MenuContent>["$props"];
|
|
587
698
|
export type MenuItemProps = InstanceType<typeof MenuItem>["$props"];
|
|
699
|
+
export type MenuHeaderProps = InstanceType<typeof MenuHeader>["$props"];
|
|
700
|
+
export type MenuHeaderActionProps = InstanceType<typeof MenuHeaderAction>["$props"];
|
|
588
701
|
export type SubmenuProps = InstanceType<typeof MenuSub>["$props"];
|
|
589
702
|
export type MenuRadioGroupProps = InstanceType<typeof MenuRadioGroup>["$props"];
|
|
590
703
|
export type MenuRadioItemProps = InstanceType<typeof MenuRadioItem>["$props"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuItemAction, MenuItemActions, MenuLabel, MenuLink, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, type MenuCheckboxItemProps, type MenuContentProps, type MenuItemProps, type MenuProps, type MenuRadioGroupProps, type MenuRadioItemProps, type SubmenuProps, } from "./Menu.js";
|
|
1
|
+
export { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuHeader, MenuHeaderAction, MenuItem, MenuItemAction, MenuItemActions, MenuLabel, MenuLink, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, type MenuCheckboxItemProps, type MenuContentProps, type MenuHeaderActionProps, type MenuHeaderProps, type MenuItemProps, type MenuProps, type MenuRadioGroupProps, type MenuRadioItemProps, type SubmenuProps, } from "./Menu.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes, type PropType } from "vue";
|
|
2
|
-
|
|
2
|
+
import { type BarBackground } from "../Toolbar/Toolbar.js";
|
|
3
|
+
/** How a phone bar of the page meets the content scrolled under it; see `BarBackground`. */
|
|
4
|
+
export type PageBarBackground = BarBackground;
|
|
3
5
|
export type PageWidth = "full" | "wide" | "column";
|
|
4
6
|
declare const PageComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
7
|
/**
|
|
@@ -54,7 +56,8 @@ export declare const Page: typeof PageComponent & {
|
|
|
54
56
|
/** The band above the content, one column with it (React `Page.Header`). */
|
|
55
57
|
export declare const PageHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
56
58
|
/**
|
|
57
|
-
* Shows a divider once the content has scrolled under the header
|
|
59
|
+
* Shows a divider once the content has scrolled under the header: on a
|
|
60
|
+
* desktop layout, and on a phone with a `"hard"` or `"glass"` background.
|
|
58
61
|
* Turn it off when the content already draws a line of
|
|
59
62
|
* its own at that place.
|
|
60
63
|
* @default true
|
|
@@ -63,6 +66,7 @@ export declare const PageHeader: import("vue").DefineComponent<import("vue").Ext
|
|
|
63
66
|
type: BooleanConstructor;
|
|
64
67
|
default: boolean;
|
|
65
68
|
};
|
|
69
|
+
/** How the bar meets the content scrolled under it on a phone. @default "glass" */
|
|
66
70
|
background: {
|
|
67
71
|
type: PropType<PageBarBackground>;
|
|
68
72
|
default: string;
|
|
@@ -71,7 +75,8 @@ export declare const PageHeader: import("vue").DefineComponent<import("vue").Ext
|
|
|
71
75
|
[key: string]: any;
|
|
72
76
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
77
|
/**
|
|
74
|
-
* Shows a divider once the content has scrolled under the header
|
|
78
|
+
* Shows a divider once the content has scrolled under the header: on a
|
|
79
|
+
* desktop layout, and on a phone with a `"hard"` or `"glass"` background.
|
|
75
80
|
* Turn it off when the content already draws a line of
|
|
76
81
|
* its own at that place.
|
|
77
82
|
* @default true
|
|
@@ -80,12 +85,13 @@ export declare const PageHeader: import("vue").DefineComponent<import("vue").Ext
|
|
|
80
85
|
type: BooleanConstructor;
|
|
81
86
|
default: boolean;
|
|
82
87
|
};
|
|
88
|
+
/** How the bar meets the content scrolled under it on a phone. @default "glass" */
|
|
83
89
|
background: {
|
|
84
90
|
type: PropType<PageBarBackground>;
|
|
85
91
|
default: string;
|
|
86
92
|
};
|
|
87
93
|
}>> & Readonly<{}>, {
|
|
88
|
-
background:
|
|
94
|
+
background: BarBackground;
|
|
89
95
|
divider: boolean;
|
|
90
96
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
91
97
|
/** The row of the title and the actions (React `Page.Bar`). */
|
|
@@ -140,6 +146,7 @@ export declare const PageContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
140
146
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
147
|
/** Actions that remain below the scrolling content (React `Page.Footer`). */
|
|
142
148
|
export declare const PageFooter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
149
|
+
/** How the bar meets the content scrolled under it on a phone. @default "soft" */
|
|
143
150
|
background: {
|
|
144
151
|
type: PropType<PageBarBackground>;
|
|
145
152
|
default: string;
|
|
@@ -147,12 +154,13 @@ export declare const PageFooter: import("vue").DefineComponent<import("vue").Ext
|
|
|
147
154
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
148
155
|
[key: string]: any;
|
|
149
156
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
157
|
+
/** How the bar meets the content scrolled under it on a phone. @default "soft" */
|
|
150
158
|
background: {
|
|
151
159
|
type: PropType<PageBarBackground>;
|
|
152
160
|
default: string;
|
|
153
161
|
};
|
|
154
162
|
}>> & Readonly<{}>, {
|
|
155
|
-
background:
|
|
163
|
+
background: BarBackground;
|
|
156
164
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
157
165
|
/** Props of the Page parts: native attributes of their element. */
|
|
158
166
|
export type PageSlotProps = HTMLAttributes;
|