@m3ui-vue/m3ui-vue 1.1.4 → 1.2.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/API.md +511 -34
- package/dist/MMenuItem-DI351kIf.js +929 -0
- package/dist/MMenuItem-DI351kIf.js.map +1 -0
- package/dist/{MSlider-JflHJ70q.js → MSlider-BnEy5ieZ.js} +295 -320
- package/dist/MSlider-BnEy5ieZ.js.map +1 -0
- package/dist/MTextField-BBmkaIbO.js +633 -0
- package/dist/MTextField-BBmkaIbO.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/chart.js +83 -49
- package/dist/chart.js.map +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MButton.vue.d.ts +7 -1
- package/dist/components/MButtonGroup.vue.d.ts +40 -31
- package/dist/components/MCarousel.vue.d.ts +2 -0
- package/dist/components/MChart.vue.d.ts +6 -0
- package/dist/components/MCircleProgressBar.vue.d.ts +5 -3
- package/dist/components/MContextMenu.vue.d.ts +2 -2
- package/dist/components/MCopyButton.vue.d.ts +1 -1
- package/dist/components/MExportButton.vue.d.ts +1 -1
- package/dist/components/MFab.vue.d.ts +2 -2
- package/dist/components/MFabMenu.vue.d.ts +1 -1
- package/dist/components/MIconButton.vue.d.ts +13 -1
- package/dist/components/MInfiniteScroll.vue.d.ts +1 -1
- package/dist/components/MMap.vue.d.ts +20 -2
- package/dist/components/MMapBaseLayers.vue.d.ts +3 -0
- package/dist/components/MMapFilter.vue.d.ts +3 -0
- package/dist/components/MMapLayers.vue.d.ts +3 -0
- package/dist/components/MMenu.vue.d.ts +2 -2
- package/dist/components/MMenuItem.vue.d.ts +7 -3
- package/dist/components/MNavigationDrawer.vue.d.ts +13 -2
- package/dist/components/MOverlay.vue.d.ts +12 -1
- package/dist/components/MProgressBar.vue.d.ts +5 -3
- package/dist/components/MPullToRefresh.vue.d.ts +7 -2
- package/dist/components/MRichTextEditor.vue.d.ts +7 -1
- package/dist/components/MSearchField.vue.d.ts +58 -0
- package/dist/components/MSegmentedButton.vue.d.ts +31 -23
- package/dist/components/MSimpleCarousel.vue.d.ts +2 -0
- package/dist/components/MSkeleton.vue.d.ts +6 -3
- package/dist/components/MSwipeToDismiss.vue.d.ts +1 -1
- package/dist/components/MSwitch.vue.d.ts +1 -1
- package/dist/components/MTextField.vue.d.ts +5 -1
- package/dist/components/MTimeline.vue.d.ts +85 -22
- package/dist/components/MTooltip.vue.d.ts +1 -1
- package/dist/components/_MDrawerItemList.vue.d.ts +2 -0
- package/dist/composables/_mapStyle.d.ts +13 -0
- package/dist/composables/_themeTransition.d.ts +2 -0
- package/dist/composables/_tooltipTrigger.d.ts +22 -0
- package/dist/composables/_useMenuNav.d.ts +28 -0
- package/dist/composables/useAutoGrow.d.ts +21 -0
- package/dist/composables/useColorPalette.d.ts +1 -1
- package/dist/composables/useLocale.d.ts +3 -0
- package/dist/composables/useMap.d.ts +19 -3
- package/dist/composables/useMapFilter.d.ts +4 -1
- package/dist/composables/useMapLayers.d.ts +5 -2
- package/dist/composables/useScrollReveal.d.ts +44 -0
- package/dist/composables/useThemeTokens.d.ts +21 -0
- package/dist/composables/viewportHints.d.ts +27 -0
- package/dist/directives/vClickOutside.d.ts +25 -0
- package/dist/directives/vFocusRing.d.ts +22 -0
- package/dist/directives/vLongPress.d.ts +27 -0
- package/dist/directives/vReveal.d.ts +10 -0
- package/dist/directives/vScrollElevation.d.ts +31 -0
- package/dist/directives/vSkeleton.d.ts +19 -0
- package/dist/directives/vStateLayer.d.ts +20 -0
- package/dist/directives/vSwipe.d.ts +45 -0
- package/dist/directives/vTooltip.d.ts +23 -0
- package/dist/index.d.ts +28 -1
- package/dist/locales/index.js +21 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +7131 -6216
- package/dist/m3ui.js.map +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/map.js +821 -791
- package/dist/map.js.map +1 -1
- package/dist/motion-DZiXG09o.js +150 -0
- package/dist/motion-DZiXG09o.js.map +1 -0
- package/dist/plugin.d.ts +24 -0
- package/dist/rich-text-editor.js +13 -9
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles/theme.css +63 -0
- package/dist/styles.css +1 -1
- package/dist/{useLocale-CXibICQA.js → useLocale-JYxDDeXC.js} +4 -2
- package/dist/useLocale-JYxDDeXC.js.map +1 -0
- package/dist/useThemeTokens-Bv-Uv8eX.js +135 -0
- package/dist/useThemeTokens-Bv-Uv8eX.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MButton.test.ts +22 -0
- package/src/__tests__/MCarousel.test.ts +9 -0
- package/src/__tests__/MChart.test.ts +77 -5
- package/src/__tests__/MIconButton.test.ts +33 -0
- package/src/__tests__/MMap.test.ts +53 -1
- package/src/__tests__/MMapLayers.test.ts +46 -2
- package/src/__tests__/MMenu.test.ts +104 -1
- package/src/__tests__/MMenuItem.test.ts +18 -0
- package/src/__tests__/MNavigationDrawer.test.ts +80 -0
- package/src/__tests__/MOverlay.test.ts +49 -0
- package/src/__tests__/MProgressBar.test.ts +41 -0
- package/src/__tests__/MPullToRefresh.test.ts +33 -0
- package/src/__tests__/MRichTextEditor.test.ts +22 -0
- package/src/__tests__/MSearchField.test.ts +71 -0
- package/src/__tests__/MSkeleton.test.ts +38 -0
- package/src/__tests__/MTimeline.test.ts +238 -0
- package/src/__tests__/_fakeMaplibre.ts +3 -1
- package/src/__tests__/attrsFallthrough.test.ts +3 -0
- package/src/__tests__/escapeStack.test.ts +93 -0
- package/src/__tests__/ssr.test.ts +21 -2
- package/src/__tests__/useAutoGrow.test.ts +103 -0
- package/src/__tests__/useScrollReveal.test.ts +102 -0
- package/src/__tests__/useThemeTokens.test.ts +114 -0
- package/src/__tests__/vClickOutside.test.ts +82 -0
- package/src/__tests__/vFocusRing.test.ts +36 -0
- package/src/__tests__/vLongPress.test.ts +81 -0
- package/src/__tests__/vScrollElevation.test.ts +89 -0
- package/src/__tests__/vSkeleton.test.ts +48 -0
- package/src/__tests__/vStateLayer.test.ts +53 -0
- package/src/__tests__/vSwipe.test.ts +93 -0
- package/src/__tests__/vTooltip.test.ts +95 -0
- package/src/__tests__/viewportHints.test.ts +41 -0
- package/src/components/MAutocomplete.vue +5 -0
- package/src/components/MBottomSheet.vue +4 -1
- package/src/components/MButton.vue +15 -1
- package/src/components/MButtonGroup.vue +22 -17
- package/src/components/MCarousel.vue +7 -1
- package/src/components/MChart.vue +74 -34
- package/src/components/MCircleProgressBar.vue +14 -9
- package/src/components/MCommandPalette.vue +3 -2
- package/src/components/MContextMenu.vue +19 -60
- package/src/components/MDragDropList.vue +2 -0
- package/src/components/MIconButton.vue +40 -1
- package/src/components/MKanban.vue +2 -0
- package/src/components/MLightbox.vue +7 -2
- package/src/components/MMap.vue +38 -5
- package/src/components/MMapBaseLayers.vue +7 -3
- package/src/components/MMapFilter.vue +7 -4
- package/src/components/MMapGeoJson.vue +1 -1
- package/src/components/MMapLayers.vue +6 -2
- package/src/components/MMapMeasure.vue +5 -2
- package/src/components/MMenu.vue +18 -59
- package/src/components/MMenuItem.vue +11 -2
- package/src/components/MMultiAutocomplete.vue +5 -0
- package/src/components/MNavigationDrawer.vue +96 -11
- package/src/components/MNavigationRail.vue +4 -15
- package/src/components/MOverlay.vue +32 -13
- package/src/components/MProgressBar.vue +25 -27
- package/src/components/MPullToRefresh.vue +20 -1
- package/src/components/MRichTextEditor.vue +19 -5
- package/src/components/MSearchBar.vue +5 -0
- package/src/components/MSearchField.vue +142 -0
- package/src/components/MSegmentedButton.vue +19 -17
- package/src/components/MSelect.vue +10 -1
- package/src/components/MSideSheet.vue +5 -2
- package/src/components/MSimpleCarousel.vue +10 -1
- package/src/components/MSkeleton.vue +30 -8
- package/src/components/MSpotlightSearch.vue +3 -2
- package/src/components/MTextField.vue +15 -2
- package/src/components/MTimeline.vue +370 -81
- package/src/components/MTooltip.vue +20 -152
- package/src/components/_MDrawerItemList.vue +25 -6
- package/src/composables/_mapStyle.ts +45 -0
- package/src/composables/_themeTransition.ts +2 -0
- package/src/composables/_tooltipTrigger.ts +184 -0
- package/src/composables/_useMenuNav.ts +209 -0
- package/src/composables/useAutoGrow.ts +78 -0
- package/src/composables/useLocale.ts +5 -0
- package/src/composables/useMap.ts +43 -5
- package/src/composables/useMapFilter.ts +6 -5
- package/src/composables/useMapLayers.ts +7 -6
- package/src/composables/useScrollReveal.ts +151 -0
- package/src/composables/useThemeTokens.ts +116 -0
- package/src/composables/viewportHints.ts +80 -0
- package/src/directives/vClickOutside.ts +90 -0
- package/src/directives/vFocusRing.ts +60 -0
- package/src/directives/vLongPress.ts +134 -0
- package/src/directives/vReveal.ts +57 -0
- package/src/directives/vScrollElevation.ts +116 -0
- package/src/directives/vSkeleton.ts +87 -0
- package/src/directives/vStateLayer.ts +83 -0
- package/src/directives/vSwipe.ts +197 -0
- package/src/directives/vTooltip.ts +128 -0
- package/src/index.ts +28 -1
- package/src/locales/de.ts +2 -0
- package/src/locales/es.ts +2 -0
- package/src/locales/fr.ts +2 -0
- package/src/locales/ja.ts +2 -0
- package/src/locales/ko.ts +2 -0
- package/src/locales/pt.ts +2 -0
- package/src/locales/zh.ts +2 -0
- package/src/map.ts +1 -1
- package/src/plugin.ts +34 -0
- package/src/styles/theme.css +63 -0
- package/dist/MMenuItem-BfjqwcYP.js +0 -830
- package/dist/MMenuItem-BfjqwcYP.js.map +0 -1
- package/dist/MSlider-JflHJ70q.js.map +0 -1
- package/dist/MTextField-NaIB6RbM.js +0 -673
- package/dist/MTextField-NaIB6RbM.js.map +0 -1
- package/dist/composables/_useThemeTokens.d.ts +0 -7
- package/dist/useLocale-CXibICQA.js.map +0 -1
- package/src/composables/_useThemeTokens.ts +0 -42
|
@@ -18,13 +18,13 @@ type __VLS_Props = {
|
|
|
18
18
|
declare function close(): void;
|
|
19
19
|
declare var __VLS_1: {
|
|
20
20
|
open: boolean;
|
|
21
|
-
},
|
|
21
|
+
}, __VLS_47: {
|
|
22
22
|
close: typeof close;
|
|
23
23
|
};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
25
|
trigger?: (props: typeof __VLS_1) => any;
|
|
26
26
|
} & {
|
|
27
|
-
default?: (props: typeof
|
|
27
|
+
default?: (props: typeof __VLS_47) => any;
|
|
28
28
|
};
|
|
29
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
30
30
|
close: typeof close;
|
|
@@ -21,11 +21,15 @@ type __VLS_Props = {
|
|
|
21
21
|
*/
|
|
22
22
|
selectedIcon?: string;
|
|
23
23
|
};
|
|
24
|
-
declare var
|
|
24
|
+
declare var __VLS_16: {
|
|
25
|
+
on: boolean;
|
|
26
|
+
}, __VLS_23: {}, __VLS_44: {};
|
|
25
27
|
type __VLS_Slots = {} & {
|
|
26
|
-
|
|
28
|
+
icon?: (props: typeof __VLS_16) => any;
|
|
27
29
|
} & {
|
|
28
|
-
|
|
30
|
+
default?: (props: typeof __VLS_23) => any;
|
|
31
|
+
} & {
|
|
32
|
+
children?: (props: typeof __VLS_44) => any;
|
|
29
33
|
};
|
|
30
34
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
35
|
click: () => any;
|
|
@@ -30,6 +30,11 @@ type __VLS_Props = {
|
|
|
30
30
|
modal?: boolean;
|
|
31
31
|
/** Compact mode (72px) showing only icons — inline variant only */
|
|
32
32
|
collapsed?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* In `collapsed` mode, shows each item's label under its icon, with the selection on a 56×32 pill around
|
|
35
|
+
* the icon, like MNavigationRail's collapsed items — nested items included
|
|
36
|
+
*/
|
|
37
|
+
collapsedLabels?: boolean;
|
|
33
38
|
/** Custom drawer width (e.g. "320px", "25rem"). Defaults to 22.5rem (360px) */
|
|
34
39
|
width?: string;
|
|
35
40
|
/**
|
|
@@ -39,8 +44,12 @@ type __VLS_Props = {
|
|
|
39
44
|
side?: 'left' | 'right' | 'top' | 'bottom';
|
|
40
45
|
/** Lets the modal drawer be swiped closed toward its edge; with false it only closes through v-model or the scrim */
|
|
41
46
|
swipeEnabled?: boolean;
|
|
47
|
+
/** Opens the groups that hold the selected item (and the selected item, if it's a group) whenever `selected` changes */
|
|
48
|
+
expandSelected?: boolean;
|
|
49
|
+
/** Keeps one group open per level: opening a group, by hand or through `expandSelected`, closes its siblings */
|
|
50
|
+
accordion?: boolean;
|
|
42
51
|
};
|
|
43
|
-
declare var __VLS_16: {}, __VLS_66: {}, __VLS_68: {}, __VLS_70: {},
|
|
52
|
+
declare var __VLS_16: {}, __VLS_66: {}, __VLS_68: {}, __VLS_70: {}, __VLS_131: {};
|
|
44
53
|
type __VLS_Slots = {} & {
|
|
45
54
|
header?: (props: typeof __VLS_16) => any;
|
|
46
55
|
} & {
|
|
@@ -50,7 +59,7 @@ type __VLS_Slots = {} & {
|
|
|
50
59
|
} & {
|
|
51
60
|
header?: (props: typeof __VLS_70) => any;
|
|
52
61
|
} & {
|
|
53
|
-
default?: (props: typeof
|
|
62
|
+
default?: (props: typeof __VLS_131) => any;
|
|
54
63
|
};
|
|
55
64
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
56
65
|
openItems: Record<string | number, boolean>;
|
|
@@ -64,6 +73,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
64
73
|
modal: boolean;
|
|
65
74
|
swipeEnabled: boolean;
|
|
66
75
|
side: "left" | "right" | "top" | "bottom";
|
|
76
|
+
expandSelected: boolean;
|
|
77
|
+
accordion: boolean;
|
|
67
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
79
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,6 +5,15 @@ type __VLS_Props = {
|
|
|
5
5
|
scrim?: boolean;
|
|
6
6
|
/** Z-index value */
|
|
7
7
|
zIndex?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Closes on Escape. It shares the library's Escape stack with MDialog and the sheets, so a dialog or menu opened
|
|
10
|
+
* over it takes Escape first
|
|
11
|
+
*/
|
|
12
|
+
closeOnEscape?: boolean;
|
|
13
|
+
/** Locks the page's scroll while open (shared with the library's other modal surfaces, so stacking is safe) */
|
|
14
|
+
lockScroll?: boolean;
|
|
15
|
+
/** Name of a `<Transition>` (your CSS classes) to play instead of the default fade */
|
|
16
|
+
transition?: string;
|
|
8
17
|
};
|
|
9
18
|
declare var __VLS_13: {};
|
|
10
19
|
type __VLS_Slots = {} & {
|
|
@@ -15,9 +24,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
15
24
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
25
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
26
|
}>, {
|
|
18
|
-
modelValue: boolean;
|
|
19
27
|
scrim: boolean;
|
|
28
|
+
modelValue: boolean;
|
|
20
29
|
zIndex: number;
|
|
30
|
+
closeOnEscape: boolean;
|
|
31
|
+
lockScroll: boolean;
|
|
21
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,8 +3,10 @@ type __VLS_Props = {
|
|
|
3
3
|
value?: number;
|
|
4
4
|
/** Indeterminate animation — also implied by omitting value */
|
|
5
5
|
indeterminate?: boolean;
|
|
6
|
-
/** Bar color */
|
|
7
|
-
color?: "primary" | "secondary" | "tertiary" | "error";
|
|
6
|
+
/** Bar color: an M3 role or any CSS color (`#fff` over a photo, say) */
|
|
7
|
+
color?: "primary" | "secondary" | "tertiary" | "error" | (string & {});
|
|
8
|
+
/** Track color: an M3 role or any CSS color. Default the role's container, or the bar color at 24% for a CSS color */
|
|
9
|
+
trackColor?: string;
|
|
8
10
|
/** Bar style */
|
|
9
11
|
variant?: "linear" | "wavy";
|
|
10
12
|
/** Label text above the bar */
|
|
@@ -13,7 +15,7 @@ type __VLS_Props = {
|
|
|
13
15
|
thickness?: number;
|
|
14
16
|
};
|
|
15
17
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
-
color: "primary" | "secondary" | "tertiary" | "error";
|
|
18
|
+
color: "primary" | "secondary" | "tertiary" | "error" | (string & {});
|
|
17
19
|
variant: "linear" | "wavy";
|
|
18
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,15 +17,20 @@ declare var __VLS_6: {};
|
|
|
17
17
|
type __VLS_Slots = {} & {
|
|
18
18
|
default?: (props: typeof __VLS_6) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
21
|
+
/** The element that scrolls the slot's content */
|
|
22
|
+
scrollEl: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
23
|
+
/** Scrolls the content, like `Element.scrollTo()` (e.g. `{ top: 0, behavior: 'smooth' }`) */
|
|
24
|
+
scrollTo: (options: ScrollToOptions) => void | undefined;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
26
|
refresh: () => any;
|
|
22
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
28
|
onRefresh?: (() => any) | undefined;
|
|
24
29
|
}>, {
|
|
25
30
|
color: "primary" | "secondary" | "tertiary" | "error";
|
|
26
31
|
size: number;
|
|
27
|
-
disabled: boolean;
|
|
28
32
|
threshold: number;
|
|
33
|
+
disabled: boolean;
|
|
29
34
|
refreshing: boolean;
|
|
30
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -32,8 +32,13 @@ type __VLS_Props = {
|
|
|
32
32
|
placeholder?: string;
|
|
33
33
|
/** Disables editing */
|
|
34
34
|
disabled?: boolean;
|
|
35
|
-
/** Minimum
|
|
35
|
+
/** Minimum height of the text area (not used with `fill`) */
|
|
36
36
|
minHeight?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Fills the height you give the editor (`class="h-full"`, `flex-1`…): the toolbar stays put and the text
|
|
39
|
+
* scrolls inside, instead of the editor growing with its content
|
|
40
|
+
*/
|
|
41
|
+
fill?: boolean;
|
|
37
42
|
/**
|
|
38
43
|
* Object with all toolbar/dialog label overrides for i18n (see `RichTextEditorLabels`) — defaults come from
|
|
39
44
|
* useLocale()
|
|
@@ -45,6 +50,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
45
50
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
46
51
|
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
47
52
|
}>, {
|
|
53
|
+
fill: boolean;
|
|
48
54
|
minHeight: string;
|
|
49
55
|
disabled: boolean;
|
|
50
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The text (v-model) */
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
/** Placeholder. Defaults to the locale's `search` */
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
/** Accessible name when there's no visible label. Defaults to the placeholder */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Leading icon, a Material Symbol. Set to '' for none */
|
|
9
|
+
icon?: string;
|
|
10
|
+
/** Height: `sm` 40px (body-medium text), `md` 48px, `lg` 56px (M3's search bar) */
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
/** Shows a clear button while there's text */
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Escape empties the field (keeping the key from closing a dialog or menu around it); on an empty field it
|
|
16
|
+
* leaves it and lets the key through
|
|
17
|
+
*/
|
|
18
|
+
clearOnEscape?: boolean;
|
|
19
|
+
/** Disables the field */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare var __VLS_1: {}, __VLS_13: {};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
leading?: (props: typeof __VLS_1) => any;
|
|
25
|
+
} & {
|
|
26
|
+
trailing?: (props: typeof __VLS_13) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
29
|
+
/** The `<input>` element */
|
|
30
|
+
inputEl: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
31
|
+
/** Focuses the input */
|
|
32
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
33
|
+
/** Takes focus away from the input */
|
|
34
|
+
blur: () => void | undefined;
|
|
35
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
search: (args_0: string) => any;
|
|
37
|
+
clear: () => any;
|
|
38
|
+
"update:modelValue": (args_0: string) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
|
+
onSearch?: ((args_0: string) => any) | undefined;
|
|
41
|
+
onClear?: (() => any) | undefined;
|
|
42
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
size: "sm" | "md" | "lg";
|
|
45
|
+
modelValue: string;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
icon: string;
|
|
48
|
+
clearable: boolean;
|
|
49
|
+
clearOnEscape: boolean;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -1,29 +1,37 @@
|
|
|
1
|
-
export interface SegmentedOption {
|
|
2
|
-
value:
|
|
1
|
+
export interface SegmentedOption<V extends string | number = string | number> {
|
|
2
|
+
value: V;
|
|
3
3
|
label: string;
|
|
4
4
|
icon?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
-
type __VLS_Props = {
|
|
8
|
-
/** Selected value(s) */
|
|
9
|
-
modelValue: string | number | (string | number)[];
|
|
10
|
-
/** The options to choose from; see `SegmentedOption`. */
|
|
11
|
-
options: SegmentedOption[];
|
|
12
|
-
/** Allow multiple selections */
|
|
13
|
-
multiSelect?: boolean;
|
|
14
|
-
/** Button density */
|
|
15
|
-
density?: 'default' | 'comfortable' | 'compact';
|
|
16
|
-
/** Selected segment color */
|
|
17
|
-
color?: 'primary' | 'secondary' | 'tertiary';
|
|
18
|
-
};
|
|
19
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (args_0: string | number | (string | number)[]) => any;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((args_0: string | number | (string | number)[]) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
color: "primary" | "secondary" | "tertiary";
|
|
25
|
-
multiSelect: boolean;
|
|
26
|
-
density: "default" | "comfortable" | "compact";
|
|
27
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
7
|
declare const _default: typeof __VLS_export;
|
|
29
8
|
export default _default;
|
|
9
|
+
declare const __VLS_export: <V extends string | number, M extends V | V[] = V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
10
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
11
|
+
/** Selected value, or values with `multiSelect` (v-model); typed after the options' values */
|
|
12
|
+
modelValue: M;
|
|
13
|
+
/** The options to choose from; see `SegmentedOption`. */
|
|
14
|
+
options: SegmentedOption<V>[];
|
|
15
|
+
/** Allow multiple selections */
|
|
16
|
+
multiSelect?: boolean;
|
|
17
|
+
/** Button density */
|
|
18
|
+
density?: "default" | "comfortable" | "compact";
|
|
19
|
+
/** Selected segment color */
|
|
20
|
+
color?: "primary" | "secondary" | "tertiary";
|
|
21
|
+
} & {
|
|
22
|
+
"onUpdate:modelValue"?: ((args_0: M) => any) | undefined;
|
|
23
|
+
}> & (typeof globalThis extends {
|
|
24
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
25
|
+
} ? P : {});
|
|
26
|
+
expose: (exposed: {}) => void;
|
|
27
|
+
attrs: any;
|
|
28
|
+
slots: {};
|
|
29
|
+
emit: (evt: "update:modelValue", args_0: M) => void;
|
|
30
|
+
}>) => import("vue").VNode & {
|
|
31
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} : {
|
|
36
|
+
[K in keyof T as K]: T[K];
|
|
37
|
+
}) & {};
|
|
@@ -36,6 +36,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
36
36
|
prev: typeof prev;
|
|
37
37
|
scrollToItem: typeof scrollToItem;
|
|
38
38
|
scrollToPage: typeof scrollToPage;
|
|
39
|
+
/** Moves keyboard focus to the carousel, so the arrow keys move it */
|
|
40
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
39
41
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
42
|
change: (index: number) => any;
|
|
41
43
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A loading placeholder shape — text, circular, rectangular, or rounded — with pulse or wave animation.
|
|
3
|
-
*/
|
|
4
1
|
type __VLS_Props = {
|
|
5
2
|
/** Skeleton shape */
|
|
6
3
|
variant?: 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
@@ -12,6 +9,12 @@ type __VLS_Props = {
|
|
|
12
9
|
lines?: number;
|
|
13
10
|
/** Animation style */
|
|
14
11
|
animation?: 'pulse' | 'wave' | 'none';
|
|
12
|
+
/**
|
|
13
|
+
* Corner radius: an M3 shape step (`none`, `xs` 4px, `sm` 8px, `md` 12px, `lg` 16px, `xl` 28px, `full`) or any CSS
|
|
14
|
+
* length, to match the card or thumbnail it stands in for. Defaults to the variant's (a Tailwind `rounded-*` class
|
|
15
|
+
* works too)
|
|
16
|
+
*/
|
|
17
|
+
radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | (string & {});
|
|
15
18
|
};
|
|
16
19
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
20
|
animation: "pulse" | "wave" | "none";
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
34
34
|
onDismiss?: ((args_0: "start-to-end" | "end-to-start") => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
36
|
modelValue: SwipeToDismissValue;
|
|
37
|
-
disabled: boolean;
|
|
38
37
|
threshold: number;
|
|
38
|
+
disabled: boolean;
|
|
39
39
|
startToEnd: boolean;
|
|
40
40
|
endToStart: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -16,8 +16,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
16
16
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
color: "primary" | "secondary" | "tertiary" | "error";
|
|
19
|
-
icon: boolean;
|
|
20
19
|
disabled: boolean;
|
|
20
|
+
icon: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
export default _default;
|
|
@@ -19,8 +19,12 @@ type __VLS_Props = {
|
|
|
19
19
|
required?: boolean;
|
|
20
20
|
/** Renders a textarea instead of an input */
|
|
21
21
|
multiline?: boolean;
|
|
22
|
-
/** Textarea rows (when multiline) */
|
|
22
|
+
/** Textarea rows (when multiline); with autoGrow, the fewest it shrinks to */
|
|
23
23
|
rows?: number;
|
|
24
|
+
/** Multiline only: grows with the text from `rows` up to `maxRows`, instead of a fixed height with a drag handle */
|
|
25
|
+
autoGrow?: boolean;
|
|
26
|
+
/** With autoGrow, the most rows it grows to before scrolling. Unset grows without limit */
|
|
27
|
+
maxRows?: number;
|
|
24
28
|
/** Passed through to the native autocomplete attribute */
|
|
25
29
|
autocomplete?: string;
|
|
26
30
|
/** Material Symbol shown before the input */
|
|
@@ -1,34 +1,97 @@
|
|
|
1
1
|
export interface TimelineItem {
|
|
2
|
+
/** Stable key for the entry (defaults to its index): set it when entries are added or removed */
|
|
3
|
+
key?: string | number;
|
|
2
4
|
title: string;
|
|
3
5
|
description?: string;
|
|
4
6
|
date?: string;
|
|
5
7
|
icon?: string;
|
|
6
8
|
color?: "primary" | "secondary" | "tertiary" | "error" | "success";
|
|
9
|
+
/** Any CSS color for the dot (and its line), over `color` */
|
|
7
10
|
dotColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Progress of a step: `done` (filled, a solid line to the next), `current` (filled, with a pulsing halo) or
|
|
13
|
+
* `pending` (outlined, a dashed line). Over what the timeline's `current` gives it
|
|
14
|
+
*/
|
|
15
|
+
status?: "done" | "current" | "pending";
|
|
16
|
+
/**
|
|
17
|
+
* A group to show it under ("Today", "Yesterday"): a header goes before each run of consecutive entries with the
|
|
18
|
+
* same group, and the line stops at the end of the run
|
|
19
|
+
*/
|
|
20
|
+
group?: string;
|
|
8
21
|
}
|
|
9
|
-
type
|
|
10
|
-
/** Array of timeline entries — required */
|
|
11
|
-
items: TimelineItem[];
|
|
12
|
-
/** Compact spacing between items */
|
|
13
|
-
dense?: boolean;
|
|
14
|
-
/** Alternate items left/right of a central line instead of a single left-aligned column */
|
|
15
|
-
alternating?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare var __VLS_7: `item-${number}`, __VLS_8: {
|
|
18
|
-
item: TimelineItem;
|
|
19
|
-
};
|
|
20
|
-
type __VLS_Slots = {} & {
|
|
21
|
-
[K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
|
|
22
|
-
};
|
|
23
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
|
-
dense: boolean;
|
|
25
|
-
alternating: boolean;
|
|
26
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
export type TimelineStatus = NonNullable<TimelineItem["status"]>;
|
|
28
23
|
declare const _default: typeof __VLS_export;
|
|
29
24
|
export default _default;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
declare const __VLS_export: <T extends TimelineItem = TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
26
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
27
|
+
/** Array of timeline entries — required */
|
|
28
|
+
items: T[];
|
|
29
|
+
/** Compact spacing between items */
|
|
30
|
+
dense?: boolean;
|
|
31
|
+
/** Alternate items left/right of a central line instead of a single left-aligned column (vertical only) */
|
|
32
|
+
alternating?: boolean;
|
|
33
|
+
/** Vertical (default) or horizontal: entries side by side along a line, scrolling sideways when they don't fit */
|
|
34
|
+
orientation?: "vertical" | "horizontal";
|
|
35
|
+
/** Leaves each entry's content to the `#item` slot: no title, description or date */
|
|
36
|
+
bare?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Makes it a progress timeline (an order's tracking, a setup's steps): the index of the current step. The ones
|
|
39
|
+
* before are done, the ones after pending; an item's own `status` wins. `items.length` marks them all done
|
|
40
|
+
*/
|
|
41
|
+
current?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Lets the alternating layout fold into a single column (the line on the left, `#opposite` under the content)
|
|
44
|
+
* while the timeline is narrower than 32rem: its own width, so it works in a side column too
|
|
45
|
+
*/
|
|
46
|
+
responsive?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Entries added after it mounts fade and slide in, and the rest move to their new places, on M3 springs (none
|
|
49
|
+
* with reduced motion). Give items a `key`, or an insertion looks like a change to every entry after it
|
|
50
|
+
*/
|
|
51
|
+
animate?: boolean;
|
|
52
|
+
/** Shows only the first entries (a count; groups' headers don't count), with a button for the rest */
|
|
53
|
+
limit?: number;
|
|
54
|
+
/** Whether the entries past `limit` show (v-model:expanded); the timeline keeps its own state otherwise */
|
|
55
|
+
expanded?: boolean;
|
|
56
|
+
} & {
|
|
57
|
+
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
58
|
+
}> & (typeof globalThis extends {
|
|
59
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
60
|
+
} ? P : {});
|
|
61
|
+
expose: (exposed: {}) => void;
|
|
62
|
+
attrs: any;
|
|
63
|
+
slots: {
|
|
64
|
+
[name: `item-${number}`]: ((props: {
|
|
65
|
+
item: T;
|
|
66
|
+
index: number;
|
|
67
|
+
}) => unknown) | undefined;
|
|
68
|
+
item?: (props: {
|
|
69
|
+
item: T;
|
|
70
|
+
index: number;
|
|
71
|
+
}) => unknown;
|
|
72
|
+
title?: (props: {
|
|
73
|
+
item: T;
|
|
74
|
+
index: number;
|
|
75
|
+
}) => unknown;
|
|
76
|
+
dot?: (props: {
|
|
77
|
+
item: T;
|
|
78
|
+
index: number;
|
|
79
|
+
}) => unknown;
|
|
80
|
+
opposite?: (props: {
|
|
81
|
+
item: T;
|
|
82
|
+
index: number;
|
|
83
|
+
}) => unknown;
|
|
84
|
+
group?: (props: {
|
|
85
|
+
group: string;
|
|
86
|
+
items: T[];
|
|
87
|
+
}) => unknown;
|
|
33
88
|
};
|
|
89
|
+
emit: (evt: "update:expanded", expanded: boolean) => void;
|
|
90
|
+
}>) => import("vue").VNode & {
|
|
91
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
34
92
|
};
|
|
93
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
94
|
+
[K in keyof T]: T[K];
|
|
95
|
+
} : {
|
|
96
|
+
[K in keyof T as K]: T[K];
|
|
97
|
+
}) & {};
|
|
@@ -20,8 +20,8 @@ type __VLS_Slots = {} & {
|
|
|
20
20
|
actions?: (props: typeof __VLS_17) => any;
|
|
21
21
|
};
|
|
22
22
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
-
placement: "top" | "bottom" | "left" | "right";
|
|
24
23
|
delay: number;
|
|
24
|
+
placement: "top" | "bottom" | "left" | "right";
|
|
25
25
|
rich: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -20,6 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
20
20
|
toggleItem: (item: DrawerItem) => void;
|
|
21
21
|
selectItem: (item: DrawerItem) => void;
|
|
22
22
|
collapsed: Ref<boolean, boolean>;
|
|
23
|
+
rail: Ref<boolean, boolean>;
|
|
24
|
+
collapsedLabels: Ref<boolean, boolean>;
|
|
23
25
|
}, {}, {}, {
|
|
24
26
|
itemTag(item: DrawerItem): "button" | "RouterLink";
|
|
25
27
|
onClick(item: DrawerItem): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Maplibre from 'maplibre-gl';
|
|
2
|
+
/** The ids a style came with, before anything was added at runtime */
|
|
3
|
+
export interface StyleIds {
|
|
4
|
+
sources: Set<string>;
|
|
5
|
+
layers: Set<string>;
|
|
6
|
+
}
|
|
7
|
+
export declare function styleIds(style: Pick<Maplibre.StyleSpecification, 'sources' | 'layers'> | undefined): StyleIds;
|
|
8
|
+
/**
|
|
9
|
+
* `next` with the runtime sources and layers of `previous` added: layers on top, in their order, unless `keep`
|
|
10
|
+
* says no or the next style has the same id; sources unless the next style has one by that id (it wins, and
|
|
11
|
+
* carried layers use it).
|
|
12
|
+
*/
|
|
13
|
+
export declare function carryRuntimeLayers(previous: Maplibre.StyleSpecification | undefined, next: Maplibre.StyleSpecification, own: StyleIds, keep?: (layer: Maplibre.LayerSpecification) => boolean): Maplibre.StyleSpecification;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
/** How long a theme switch's color transition takes, in ms (both paths) */
|
|
2
|
+
export declare const THEME_TRANSITION_MS = 250;
|
|
1
3
|
/** Runs `apply` (the DOM writes of a theme change) with the theme transition. */
|
|
2
4
|
export declare function themeTransition(apply: () => void): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
/** Where `tip` goes next to `trigger`, kept 6px inside the window */
|
|
3
|
+
export declare function placeTooltip(trigger: HTMLElement, tip: HTMLElement, placement: TooltipPlacement): {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
};
|
|
7
|
+
export interface TooltipTriggerOptions {
|
|
8
|
+
delay: () => number;
|
|
9
|
+
rich?: () => boolean;
|
|
10
|
+
visible: () => boolean;
|
|
11
|
+
open: () => void;
|
|
12
|
+
close: () => void;
|
|
13
|
+
/** The tooltip's element while shown: a touch on it doesn't close a rich tooltip */
|
|
14
|
+
tip: () => HTMLElement | null | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare function createTooltipTrigger(el: HTMLElement, o: TooltipTriggerOptions): {
|
|
17
|
+
/** Keeps it open (the pointer moved onto a rich tooltip) */
|
|
18
|
+
cancel: () => void;
|
|
19
|
+
/** Closes it at once */
|
|
20
|
+
closeNow: () => void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type MenuNavEntry = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
header?: () => any;
|
|
4
|
+
content?: () => any;
|
|
5
|
+
};
|
|
6
|
+
export declare function useMenuNav(focusFirst: () => void): {
|
|
7
|
+
navStack: import("vue").Ref<{
|
|
8
|
+
icon?: string | undefined;
|
|
9
|
+
header?: (() => any) | undefined;
|
|
10
|
+
content?: (() => any) | undefined;
|
|
11
|
+
}[], MenuNavEntry[] | {
|
|
12
|
+
icon?: string | undefined;
|
|
13
|
+
header?: (() => any) | undefined;
|
|
14
|
+
content?: (() => any) | undefined;
|
|
15
|
+
}[]>;
|
|
16
|
+
currentNav: import("vue").ComputedRef<{
|
|
17
|
+
icon?: string | undefined;
|
|
18
|
+
header?: (() => any) | undefined;
|
|
19
|
+
content?: (() => any) | undefined;
|
|
20
|
+
} | undefined>;
|
|
21
|
+
navBox: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
22
|
+
navSlideEnter: (el: Element, done: () => void) => void;
|
|
23
|
+
navSlideLeave: (el: Element, done: () => void) => void;
|
|
24
|
+
pushNav: (entry: MenuNavEntry) => void;
|
|
25
|
+
popNav: () => void;
|
|
26
|
+
resetNav: () => void;
|
|
27
|
+
onNavPointerDown: (e: PointerEvent) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter, type WatchSource } from 'vue';
|
|
2
|
+
export interface AutoGrowOptions {
|
|
3
|
+
/** Fewest rows it shrinks to (default 1) */
|
|
4
|
+
minRows?: MaybeRefOrGetter<number | undefined>;
|
|
5
|
+
/** Most rows it grows to; past them it scrolls. Unset grows without limit */
|
|
6
|
+
maxRows?: MaybeRefOrGetter<number | undefined>;
|
|
7
|
+
/**
|
|
8
|
+
* The text, when it can change without typing (cleared after sending, an emoji inserted…): a ref or getter, so the
|
|
9
|
+
* height follows. Typing is followed on its own
|
|
10
|
+
*/
|
|
11
|
+
value?: WatchSource<unknown>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Makes a `<textarea>` grow with its text, between `minRows` and `maxRows` rows, scrolling past the last one: a chat
|
|
15
|
+
* composer, a comment box. Works on any textarea, styled however you like (rows are measured from its computed line
|
|
16
|
+
* height, padding and border). It also follows width changes, which rewrap the text. Returns `resize()` for anything
|
|
17
|
+
* else that changes the text.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useAutoGrow(target: MaybeRefOrGetter<HTMLTextAreaElement | null | undefined>, options?: AutoGrowOptions): {
|
|
20
|
+
resize: () => void;
|
|
21
|
+
};
|
|
@@ -206,7 +206,7 @@ export declare function useColorPalette(): {
|
|
|
206
206
|
} | null>>;
|
|
207
207
|
setSeed: (seed: string, options?: SeedOptions) => Promise<void>;
|
|
208
208
|
contrast: Readonly<Ref<ContrastLevel>>;
|
|
209
|
-
activeContrast: Ref<"
|
|
209
|
+
activeContrast: Ref<"standard" | "medium" | "high", "standard" | "medium" | "high">;
|
|
210
210
|
setContrast: (level: ContrastLevel) => void;
|
|
211
211
|
persistPalette: Ref<boolean, boolean>;
|
|
212
212
|
setPersistPalette: (enabled: boolean) => void;
|
|
@@ -193,6 +193,9 @@ export interface M3Locale {
|
|
|
193
193
|
mapDeleteMeasurement: string;
|
|
194
194
|
mapTotal: string;
|
|
195
195
|
mapSearchPlaces: string;
|
|
196
|
+
/** MTimeline's button past `limit`; `{count}` is how many entries are hidden */
|
|
197
|
+
timelineShowMore: string;
|
|
198
|
+
timelineShowLess: string;
|
|
196
199
|
}
|
|
197
200
|
export declare const defaultLocale: M3Locale;
|
|
198
201
|
export declare const M3_LOCALE_KEY: InjectionKey<MaybeRef<Partial<M3Locale>>>;
|