@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,216 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
/** How an indicator shows: full size, one of the two shrinking sizes past the window, or hidden. */
|
|
3
|
+
export type PageControlDotSize = "full" | "small" | "smaller" | "hidden";
|
|
4
|
+
export type PageControlChangeDetails = {
|
|
5
|
+
/** The change came from scrubbing: show the page without the scrolling animation, as the HIG asks. */
|
|
6
|
+
scrubbing: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The size of each indicator, after the variants of the iOS 26 kit Page control (507:24679). Up to six pages
|
|
10
|
+
* show full size. Seven show six, and the one past them at 6px. From eight a window of full dots holds the current
|
|
11
|
+
* page: six at either end, otherwise five with the current one in the middle, and the two dots past each side of
|
|
12
|
+
* the window shrink to 6px and 4px; the rest hide.
|
|
13
|
+
*/
|
|
14
|
+
export declare const pageControlDots: (count: number, current: number) => PageControlDotSize[];
|
|
15
|
+
declare const PageControlComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
|
+
/** The `id` of the page control. */
|
|
17
|
+
id: StringConstructor;
|
|
18
|
+
/** The number of pages. */
|
|
19
|
+
count: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
/** The controlled index of the current page, from 0. Bind with `v-model:value`. */
|
|
24
|
+
value: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
/** The index of the page when it is initially rendered. Use when you do not need to control the page. @default 0 */
|
|
29
|
+
defaultValue: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The rounded background behind the indicators: `automatic` shows it while a pointer presses or scrubs,
|
|
35
|
+
* `prominent` always, `minimal` never and turns off scrubbing, as in iOS. @default "automatic"
|
|
36
|
+
*/
|
|
37
|
+
background: {
|
|
38
|
+
type: PropType<"automatic" | "prominent" | "minimal">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
/** The text assistive technology reads for the current page. @default (index, count) => `Page ${index + 1} of ${count}` */
|
|
42
|
+
valueText: {
|
|
43
|
+
type: PropType<(index: number, count: number) => string>;
|
|
44
|
+
default: (index: number, count: number) => string;
|
|
45
|
+
};
|
|
46
|
+
/** Accessible name of the page control, when no visible label names it. @default "Pages" */
|
|
47
|
+
ariaLabel: StringConstructor;
|
|
48
|
+
/** The `id` of the visible label of the page control. */
|
|
49
|
+
ariaLabelledby: StringConstructor;
|
|
50
|
+
/** The `id` of the element that shows the pages. */
|
|
51
|
+
ariaControls: StringConstructor;
|
|
52
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
/** The page changed */
|
|
56
|
+
"update:value": (index: number) => boolean;
|
|
57
|
+
/** The page changed (React `onChange`) */
|
|
58
|
+
change: (index: number, details: PageControlChangeDetails) => boolean;
|
|
59
|
+
/** The page control gained focus */
|
|
60
|
+
focus: (event: FocusEvent) => boolean;
|
|
61
|
+
/** The page control lost focus */
|
|
62
|
+
blur: (event: FocusEvent) => boolean;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
/** The `id` of the page control. */
|
|
65
|
+
id: StringConstructor;
|
|
66
|
+
/** The number of pages. */
|
|
67
|
+
count: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
/** The controlled index of the current page, from 0. Bind with `v-model:value`. */
|
|
72
|
+
value: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
/** The index of the page when it is initially rendered. Use when you do not need to control the page. @default 0 */
|
|
77
|
+
defaultValue: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* The rounded background behind the indicators: `automatic` shows it while a pointer presses or scrubs,
|
|
83
|
+
* `prominent` always, `minimal` never and turns off scrubbing, as in iOS. @default "automatic"
|
|
84
|
+
*/
|
|
85
|
+
background: {
|
|
86
|
+
type: PropType<"automatic" | "prominent" | "minimal">;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
/** The text assistive technology reads for the current page. @default (index, count) => `Page ${index + 1} of ${count}` */
|
|
90
|
+
valueText: {
|
|
91
|
+
type: PropType<(index: number, count: number) => string>;
|
|
92
|
+
default: (index: number, count: number) => string;
|
|
93
|
+
};
|
|
94
|
+
/** Accessible name of the page control, when no visible label names it. @default "Pages" */
|
|
95
|
+
ariaLabel: StringConstructor;
|
|
96
|
+
/** The `id` of the visible label of the page control. */
|
|
97
|
+
ariaLabelledby: StringConstructor;
|
|
98
|
+
/** The `id` of the element that shows the pages. */
|
|
99
|
+
ariaControls: StringConstructor;
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
102
|
+
onChange?: ((index: number, details: PageControlChangeDetails) => any) | undefined;
|
|
103
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
104
|
+
"onUpdate:value"?: ((index: number) => any) | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
value: number;
|
|
107
|
+
defaultValue: number;
|
|
108
|
+
background: "automatic" | "prominent" | "minimal";
|
|
109
|
+
valueText: (index: number, count: number) => string;
|
|
110
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111
|
+
type PageControlOwnProps = InstanceType<typeof PageControlComponent>["$props"];
|
|
112
|
+
/** PageControl props. */
|
|
113
|
+
export type PageControlProps = PageControlOwnProps;
|
|
114
|
+
/**
|
|
115
|
+
* A row of dots, one for each page, the current one solid, as the iOS 26 page control. Tapping the leading or
|
|
116
|
+
* trailing side of the current dot shows the previous or next page; a mouse or pen picks a dot. Dragging across
|
|
117
|
+
* scrubs page by page, and past either end goes to the first or last page. It is a slider for assistive
|
|
118
|
+
* technology: Left and Right (or Up and Down) move one page, Home and End go to the first and last.
|
|
119
|
+
*/
|
|
120
|
+
export declare const PageControl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
121
|
+
/** The `id` of the page control. */
|
|
122
|
+
id: StringConstructor;
|
|
123
|
+
/** The number of pages. */
|
|
124
|
+
count: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
required: true;
|
|
127
|
+
};
|
|
128
|
+
/** The controlled index of the current page, from 0. Bind with `v-model:value`. */
|
|
129
|
+
value: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: undefined;
|
|
132
|
+
};
|
|
133
|
+
/** The index of the page when it is initially rendered. Use when you do not need to control the page. @default 0 */
|
|
134
|
+
defaultValue: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* The rounded background behind the indicators: `automatic` shows it while a pointer presses or scrubs,
|
|
140
|
+
* `prominent` always, `minimal` never and turns off scrubbing, as in iOS. @default "automatic"
|
|
141
|
+
*/
|
|
142
|
+
background: {
|
|
143
|
+
type: PropType<"automatic" | "prominent" | "minimal">;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
/** The text assistive technology reads for the current page. @default (index, count) => `Page ${index + 1} of ${count}` */
|
|
147
|
+
valueText: {
|
|
148
|
+
type: PropType<(index: number, count: number) => string>;
|
|
149
|
+
default: (index: number, count: number) => string;
|
|
150
|
+
};
|
|
151
|
+
/** Accessible name of the page control, when no visible label names it. @default "Pages" */
|
|
152
|
+
ariaLabel: StringConstructor;
|
|
153
|
+
/** The `id` of the visible label of the page control. */
|
|
154
|
+
ariaLabelledby: StringConstructor;
|
|
155
|
+
/** The `id` of the element that shows the pages. */
|
|
156
|
+
ariaControls: StringConstructor;
|
|
157
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
158
|
+
[key: string]: any;
|
|
159
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
160
|
+
/** The page changed */
|
|
161
|
+
"update:value": (index: number) => boolean;
|
|
162
|
+
/** The page changed (React `onChange`) */
|
|
163
|
+
change: (index: number, details: PageControlChangeDetails) => boolean;
|
|
164
|
+
/** The page control gained focus */
|
|
165
|
+
focus: (event: FocusEvent) => boolean;
|
|
166
|
+
/** The page control lost focus */
|
|
167
|
+
blur: (event: FocusEvent) => boolean;
|
|
168
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
+
/** The `id` of the page control. */
|
|
170
|
+
id: StringConstructor;
|
|
171
|
+
/** The number of pages. */
|
|
172
|
+
count: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
required: true;
|
|
175
|
+
};
|
|
176
|
+
/** The controlled index of the current page, from 0. Bind with `v-model:value`. */
|
|
177
|
+
value: {
|
|
178
|
+
type: NumberConstructor;
|
|
179
|
+
default: undefined;
|
|
180
|
+
};
|
|
181
|
+
/** The index of the page when it is initially rendered. Use when you do not need to control the page. @default 0 */
|
|
182
|
+
defaultValue: {
|
|
183
|
+
type: NumberConstructor;
|
|
184
|
+
default: number;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* The rounded background behind the indicators: `automatic` shows it while a pointer presses or scrubs,
|
|
188
|
+
* `prominent` always, `minimal` never and turns off scrubbing, as in iOS. @default "automatic"
|
|
189
|
+
*/
|
|
190
|
+
background: {
|
|
191
|
+
type: PropType<"automatic" | "prominent" | "minimal">;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
/** The text assistive technology reads for the current page. @default (index, count) => `Page ${index + 1} of ${count}` */
|
|
195
|
+
valueText: {
|
|
196
|
+
type: PropType<(index: number, count: number) => string>;
|
|
197
|
+
default: (index: number, count: number) => string;
|
|
198
|
+
};
|
|
199
|
+
/** Accessible name of the page control, when no visible label names it. @default "Pages" */
|
|
200
|
+
ariaLabel: StringConstructor;
|
|
201
|
+
/** The `id` of the visible label of the page control. */
|
|
202
|
+
ariaLabelledby: StringConstructor;
|
|
203
|
+
/** The `id` of the element that shows the pages. */
|
|
204
|
+
ariaControls: StringConstructor;
|
|
205
|
+
}>> & Readonly<{
|
|
206
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
207
|
+
onChange?: ((index: number, details: PageControlChangeDetails) => any) | undefined;
|
|
208
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
209
|
+
"onUpdate:value"?: ((index: number) => any) | undefined;
|
|
210
|
+
}>, {
|
|
211
|
+
value: number;
|
|
212
|
+
defaultValue: number;
|
|
213
|
+
background: "automatic" | "prominent" | "minimal";
|
|
214
|
+
valueText: (index: number, count: number) => string;
|
|
215
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
216
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageControl, pageControlDots, type PageControlChangeDetails, type PageControlDotSize, type PageControlProps } from "./PageControl.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ComputedRef, type InjectionKey, type Ref } from "vue";
|
|
2
|
+
export type PhoneLayoutValue = {
|
|
3
|
+
/** Where dialogs inside the layout portal to: the PhoneLayout box, or null for the document body. */
|
|
4
|
+
container: Ref<HTMLElement | null>;
|
|
5
|
+
/** Whether what is inside is laid out as on a phone: always inside a PhoneLayout, as its `layout` says in a Dialog. */
|
|
6
|
+
phone: Readonly<Ref<boolean>>;
|
|
7
|
+
};
|
|
8
|
+
/** Provided inside a PhoneLayout and a Dialog. */
|
|
9
|
+
export declare const PHONE_LAYOUT: InjectionKey<PhoneLayoutValue>;
|
|
10
|
+
/**
|
|
11
|
+
* Lays out what it holds as on a phone at any window width, such as a phone frame on a desktop page: components take
|
|
12
|
+
* their phone presentation inside it, and a Dialog opened inside it covers the box instead of the window.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PhoneLayout: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether components here are laid out as on a phone: inside a PhoneLayout (or a Dialog with `layout="phone"`), or
|
|
19
|
+
* in a window 767px wide or narrower. The server answers false outside a PhoneLayout.
|
|
20
|
+
*/
|
|
21
|
+
export declare const usePhoneLayout: () => ComputedRef<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PHONE_LAYOUT, PhoneLayout, usePhoneLayout, type PhoneLayoutValue } from "./PhoneLayout.js";
|
|
@@ -11,7 +11,7 @@ export declare const dismissableSurfaces: Set<Element>;
|
|
|
11
11
|
* runs on the click that completes a deferred press. `reset` drops a pending
|
|
12
12
|
* press (the layer closed some other way); unmounting does it too.
|
|
13
13
|
*/
|
|
14
|
-
export declare const useDeferredPointerDownOutside: (dismiss: (originalEvent: PointerEvent) => void) => {
|
|
14
|
+
export declare const useDeferredPointerDownOutside: (dismiss: (originalEvent: PointerEvent) => void, layer?: () => Element | null | undefined) => {
|
|
15
15
|
onPointerDownOutside: (event: OutsideEvent) => void;
|
|
16
16
|
onFocusOutside: (event: Event) => void;
|
|
17
17
|
reset: () => void;
|
|
@@ -148,7 +148,7 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
148
148
|
type: PropType<PopoverSide>;
|
|
149
149
|
default: string;
|
|
150
150
|
};
|
|
151
|
-
/** Preferred alignment against the trigger. @default "center" when block, otherwise "start" */
|
|
151
|
+
/** Preferred alignment against the trigger. @default "end" at the end of a `Field row` ("start" in a `FieldGroup columns`), "center" when block, otherwise "start" */
|
|
152
152
|
align: PropType<PopoverAlign>;
|
|
153
153
|
/** Offset in pixels from the "start" or "end" alignment. @default 0 */
|
|
154
154
|
alignOffset: NumberConstructor;
|
|
@@ -157,11 +157,11 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
157
157
|
type: BooleanConstructor;
|
|
158
158
|
default: boolean;
|
|
159
159
|
};
|
|
160
|
-
/** Width of the menu. @default the trigger width (fits the options when not block) */
|
|
160
|
+
/** Width of the menu. @default the trigger width (fits the options when not block or at the end of a `Field row`) */
|
|
161
161
|
listWidth: PropType<ListSize>;
|
|
162
162
|
/** `min-width` of the menu, in pixels. @default the trigger width */
|
|
163
163
|
listMinWidth: PropType<ListSize>;
|
|
164
|
-
/** `max-width` of the menu, in pixels. @default "auto" (300 when
|
|
164
|
+
/** `max-width` of the menu, in pixels. @default "auto" (300 when it fits the options) */
|
|
165
165
|
listMaxWidth: PropType<ListSize>;
|
|
166
166
|
/** Predicate used to filter searches */
|
|
167
167
|
searchPredicate: PropType<SearchPredicate<Option>>;
|
|
@@ -297,7 +297,7 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
297
297
|
type: PropType<PopoverSide>;
|
|
298
298
|
default: string;
|
|
299
299
|
};
|
|
300
|
-
/** Preferred alignment against the trigger. @default "center" when block, otherwise "start" */
|
|
300
|
+
/** Preferred alignment against the trigger. @default "end" at the end of a `Field row` ("start" in a `FieldGroup columns`), "center" when block, otherwise "start" */
|
|
301
301
|
align: PropType<PopoverAlign>;
|
|
302
302
|
/** Offset in pixels from the "start" or "end" alignment. @default 0 */
|
|
303
303
|
alignOffset: NumberConstructor;
|
|
@@ -306,11 +306,11 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
306
306
|
type: BooleanConstructor;
|
|
307
307
|
default: boolean;
|
|
308
308
|
};
|
|
309
|
-
/** Width of the menu. @default the trigger width (fits the options when not block) */
|
|
309
|
+
/** Width of the menu. @default the trigger width (fits the options when not block or at the end of a `Field row`) */
|
|
310
310
|
listWidth: PropType<ListSize>;
|
|
311
311
|
/** `min-width` of the menu, in pixels. @default the trigger width */
|
|
312
312
|
listMinWidth: PropType<ListSize>;
|
|
313
|
-
/** `max-width` of the menu, in pixels. @default "auto" (300 when
|
|
313
|
+
/** `max-width` of the menu, in pixels. @default "auto" (300 when it fits the options) */
|
|
314
314
|
listMaxWidth: PropType<ListSize>;
|
|
315
315
|
/** Predicate used to filter searches */
|
|
316
316
|
searchPredicate: PropType<SearchPredicate<Option>>;
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/** The value one step away, clamped to the range or wrapped, without floating point drift. */
|
|
2
|
+
export declare const stepValue: (current: number, direction: 1 | -1, { min, max, step, wrap }: {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
step: number;
|
|
6
|
+
wrap: boolean;
|
|
7
|
+
}) => number;
|
|
8
|
+
declare const StepperComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
/** The `id` of the stepper. */
|
|
10
|
+
id: StringConstructor;
|
|
11
|
+
/** The controlled value. Bind with `v-model:value`. */
|
|
12
|
+
value: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
/** The value when it is initially rendered. Use when you do not need to control the value. @default min */
|
|
17
|
+
defaultValue: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
/** The lowest value. @default 0 */
|
|
22
|
+
min: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
/** The highest value. @default 100 */
|
|
27
|
+
max: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
/** The amount each step adds or removes. @default 1 */
|
|
32
|
+
step: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
/** A step past `max` continues from `min`, and one below `min` from `max`. @default false */
|
|
37
|
+
wrap: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
/** Holding a segment keeps stepping, as a native stepper does. @default true */
|
|
42
|
+
autoRepeat: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** When `true`, prevents the user from interacting with the stepper. */
|
|
47
|
+
disabled: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
/** Fully rounded ends. @default true */
|
|
52
|
+
pill: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
/** Accessible name of the decrement segment. @default "Decrease" */
|
|
57
|
+
decrementLabel: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
/** Accessible name of the increment segment. @default "Increase" */
|
|
62
|
+
incrementLabel: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
/** The name of the stepper. Submits its value with the owning form. */
|
|
67
|
+
name: StringConstructor;
|
|
68
|
+
/** Accessible name of the value the stepper changes, when no visible label names it. */
|
|
69
|
+
ariaLabel: StringConstructor;
|
|
70
|
+
/** The `id` of the visible label of the value the stepper changes. */
|
|
71
|
+
ariaLabelledby: StringConstructor;
|
|
72
|
+
/** The `id` of an element that describes the stepper, such as the text that shows its value. */
|
|
73
|
+
ariaDescribedby: StringConstructor;
|
|
74
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
+
/** The value changed */
|
|
78
|
+
"update:value": (value: number) => boolean;
|
|
79
|
+
/** The value changed (React `onChange`) */
|
|
80
|
+
change: (value: number) => boolean;
|
|
81
|
+
/** The stepper gained focus */
|
|
82
|
+
focus: (event: FocusEvent) => boolean;
|
|
83
|
+
/** The stepper lost focus */
|
|
84
|
+
blur: (event: FocusEvent) => boolean;
|
|
85
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
/** The `id` of the stepper. */
|
|
87
|
+
id: StringConstructor;
|
|
88
|
+
/** The controlled value. Bind with `v-model:value`. */
|
|
89
|
+
value: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
/** The value when it is initially rendered. Use when you do not need to control the value. @default min */
|
|
94
|
+
defaultValue: {
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
/** The lowest value. @default 0 */
|
|
99
|
+
min: {
|
|
100
|
+
type: NumberConstructor;
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
/** The highest value. @default 100 */
|
|
104
|
+
max: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
/** The amount each step adds or removes. @default 1 */
|
|
109
|
+
step: {
|
|
110
|
+
type: NumberConstructor;
|
|
111
|
+
default: number;
|
|
112
|
+
};
|
|
113
|
+
/** A step past `max` continues from `min`, and one below `min` from `max`. @default false */
|
|
114
|
+
wrap: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
/** Holding a segment keeps stepping, as a native stepper does. @default true */
|
|
119
|
+
autoRepeat: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
/** When `true`, prevents the user from interacting with the stepper. */
|
|
124
|
+
disabled: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
/** Fully rounded ends. @default true */
|
|
129
|
+
pill: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
/** Accessible name of the decrement segment. @default "Decrease" */
|
|
134
|
+
decrementLabel: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
/** Accessible name of the increment segment. @default "Increase" */
|
|
139
|
+
incrementLabel: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
/** The name of the stepper. Submits its value with the owning form. */
|
|
144
|
+
name: StringConstructor;
|
|
145
|
+
/** Accessible name of the value the stepper changes, when no visible label names it. */
|
|
146
|
+
ariaLabel: StringConstructor;
|
|
147
|
+
/** The `id` of the visible label of the value the stepper changes. */
|
|
148
|
+
ariaLabelledby: StringConstructor;
|
|
149
|
+
/** The `id` of an element that describes the stepper, such as the text that shows its value. */
|
|
150
|
+
ariaDescribedby: StringConstructor;
|
|
151
|
+
}>> & Readonly<{
|
|
152
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
153
|
+
onChange?: ((value: number) => any) | undefined;
|
|
154
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
155
|
+
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
156
|
+
}>, {
|
|
157
|
+
value: number;
|
|
158
|
+
defaultValue: number;
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
wrap: boolean;
|
|
161
|
+
pill: boolean;
|
|
162
|
+
max: number;
|
|
163
|
+
min: number;
|
|
164
|
+
step: number;
|
|
165
|
+
autoRepeat: boolean;
|
|
166
|
+
decrementLabel: string;
|
|
167
|
+
incrementLabel: string;
|
|
168
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
169
|
+
type StepperOwnProps = InstanceType<typeof StepperComponent>["$props"];
|
|
170
|
+
/** Stepper props. */
|
|
171
|
+
export type StepperProps = StepperOwnProps;
|
|
172
|
+
/**
|
|
173
|
+
* Two segments that decrease and increase a number, as the iOS 26 stepper does. It shows no value of its own:
|
|
174
|
+
* name it with `aria-label` or `aria-labelledby` and show the value beside it. Keyboard focus lands on the
|
|
175
|
+
* stepper, a spin button: Up and Down step, Page Up and Page Down step ten times, Home and End go to the range ends.
|
|
176
|
+
*/
|
|
177
|
+
export declare const Stepper: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
178
|
+
/** The `id` of the stepper. */
|
|
179
|
+
id: StringConstructor;
|
|
180
|
+
/** The controlled value. Bind with `v-model:value`. */
|
|
181
|
+
value: {
|
|
182
|
+
type: NumberConstructor;
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
185
|
+
/** The value when it is initially rendered. Use when you do not need to control the value. @default min */
|
|
186
|
+
defaultValue: {
|
|
187
|
+
type: NumberConstructor;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
/** The lowest value. @default 0 */
|
|
191
|
+
min: {
|
|
192
|
+
type: NumberConstructor;
|
|
193
|
+
default: number;
|
|
194
|
+
};
|
|
195
|
+
/** The highest value. @default 100 */
|
|
196
|
+
max: {
|
|
197
|
+
type: NumberConstructor;
|
|
198
|
+
default: number;
|
|
199
|
+
};
|
|
200
|
+
/** The amount each step adds or removes. @default 1 */
|
|
201
|
+
step: {
|
|
202
|
+
type: NumberConstructor;
|
|
203
|
+
default: number;
|
|
204
|
+
};
|
|
205
|
+
/** A step past `max` continues from `min`, and one below `min` from `max`. @default false */
|
|
206
|
+
wrap: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
/** Holding a segment keeps stepping, as a native stepper does. @default true */
|
|
211
|
+
autoRepeat: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
/** When `true`, prevents the user from interacting with the stepper. */
|
|
216
|
+
disabled: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
/** Fully rounded ends. @default true */
|
|
221
|
+
pill: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
/** Accessible name of the decrement segment. @default "Decrease" */
|
|
226
|
+
decrementLabel: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
/** Accessible name of the increment segment. @default "Increase" */
|
|
231
|
+
incrementLabel: {
|
|
232
|
+
type: StringConstructor;
|
|
233
|
+
default: string;
|
|
234
|
+
};
|
|
235
|
+
/** The name of the stepper. Submits its value with the owning form. */
|
|
236
|
+
name: StringConstructor;
|
|
237
|
+
/** Accessible name of the value the stepper changes, when no visible label names it. */
|
|
238
|
+
ariaLabel: StringConstructor;
|
|
239
|
+
/** The `id` of the visible label of the value the stepper changes. */
|
|
240
|
+
ariaLabelledby: StringConstructor;
|
|
241
|
+
/** The `id` of an element that describes the stepper, such as the text that shows its value. */
|
|
242
|
+
ariaDescribedby: StringConstructor;
|
|
243
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
246
|
+
/** The value changed */
|
|
247
|
+
"update:value": (value: number) => boolean;
|
|
248
|
+
/** The value changed (React `onChange`) */
|
|
249
|
+
change: (value: number) => boolean;
|
|
250
|
+
/** The stepper gained focus */
|
|
251
|
+
focus: (event: FocusEvent) => boolean;
|
|
252
|
+
/** The stepper lost focus */
|
|
253
|
+
blur: (event: FocusEvent) => boolean;
|
|
254
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
255
|
+
/** The `id` of the stepper. */
|
|
256
|
+
id: StringConstructor;
|
|
257
|
+
/** The controlled value. Bind with `v-model:value`. */
|
|
258
|
+
value: {
|
|
259
|
+
type: NumberConstructor;
|
|
260
|
+
default: undefined;
|
|
261
|
+
};
|
|
262
|
+
/** The value when it is initially rendered. Use when you do not need to control the value. @default min */
|
|
263
|
+
defaultValue: {
|
|
264
|
+
type: NumberConstructor;
|
|
265
|
+
default: undefined;
|
|
266
|
+
};
|
|
267
|
+
/** The lowest value. @default 0 */
|
|
268
|
+
min: {
|
|
269
|
+
type: NumberConstructor;
|
|
270
|
+
default: number;
|
|
271
|
+
};
|
|
272
|
+
/** The highest value. @default 100 */
|
|
273
|
+
max: {
|
|
274
|
+
type: NumberConstructor;
|
|
275
|
+
default: number;
|
|
276
|
+
};
|
|
277
|
+
/** The amount each step adds or removes. @default 1 */
|
|
278
|
+
step: {
|
|
279
|
+
type: NumberConstructor;
|
|
280
|
+
default: number;
|
|
281
|
+
};
|
|
282
|
+
/** A step past `max` continues from `min`, and one below `min` from `max`. @default false */
|
|
283
|
+
wrap: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: boolean;
|
|
286
|
+
};
|
|
287
|
+
/** Holding a segment keeps stepping, as a native stepper does. @default true */
|
|
288
|
+
autoRepeat: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: boolean;
|
|
291
|
+
};
|
|
292
|
+
/** When `true`, prevents the user from interacting with the stepper. */
|
|
293
|
+
disabled: {
|
|
294
|
+
type: BooleanConstructor;
|
|
295
|
+
default: boolean;
|
|
296
|
+
};
|
|
297
|
+
/** Fully rounded ends. @default true */
|
|
298
|
+
pill: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
default: boolean;
|
|
301
|
+
};
|
|
302
|
+
/** Accessible name of the decrement segment. @default "Decrease" */
|
|
303
|
+
decrementLabel: {
|
|
304
|
+
type: StringConstructor;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
/** Accessible name of the increment segment. @default "Increase" */
|
|
308
|
+
incrementLabel: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
default: string;
|
|
311
|
+
};
|
|
312
|
+
/** The name of the stepper. Submits its value with the owning form. */
|
|
313
|
+
name: StringConstructor;
|
|
314
|
+
/** Accessible name of the value the stepper changes, when no visible label names it. */
|
|
315
|
+
ariaLabel: StringConstructor;
|
|
316
|
+
/** The `id` of the visible label of the value the stepper changes. */
|
|
317
|
+
ariaLabelledby: StringConstructor;
|
|
318
|
+
/** The `id` of an element that describes the stepper, such as the text that shows its value. */
|
|
319
|
+
ariaDescribedby: StringConstructor;
|
|
320
|
+
}>> & Readonly<{
|
|
321
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
322
|
+
onChange?: ((value: number) => any) | undefined;
|
|
323
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
324
|
+
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
325
|
+
}>, {
|
|
326
|
+
value: number;
|
|
327
|
+
defaultValue: number;
|
|
328
|
+
disabled: boolean;
|
|
329
|
+
wrap: boolean;
|
|
330
|
+
pill: boolean;
|
|
331
|
+
max: number;
|
|
332
|
+
min: number;
|
|
333
|
+
step: number;
|
|
334
|
+
autoRepeat: boolean;
|
|
335
|
+
decrementLabel: string;
|
|
336
|
+
incrementLabel: string;
|
|
337
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
338
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stepper, type StepperProps } from "./Stepper.js";
|