@m3ui-vue/m3ui-vue 1.6.0 → 1.6.1
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 +940 -33
- package/dist/{MButton-CPghlKb0.js → MButton-OQ4wIERQ.js} +2 -2
- package/dist/{MButton-CPghlKb0.js.map → MButton-OQ4wIERQ.js.map} +1 -1
- package/dist/{MDialog-X50At1Gk.js → MDialog-DYMnaBlt.js} +3 -3
- package/dist/{MDialog-X50At1Gk.js.map → MDialog-DYMnaBlt.js.map} +1 -1
- package/dist/{MListItem-DVi1j1QI.js → MListItem-D2cNUyzP.js} +211 -168
- package/dist/MListItem-D2cNUyzP.js.map +1 -0
- package/dist/{MLoadingIndicator-vooA3110.js → MLoadingIndicator-DWUj0BAB.js} +2 -2
- package/dist/{MLoadingIndicator-vooA3110.js.map → MLoadingIndicator-DWUj0BAB.js.map} +1 -1
- package/dist/{MMenuItem-CRNZkVVr.js → MMenuItem-BuxYoASE.js} +133 -151
- package/dist/MMenuItem-BuxYoASE.js.map +1 -0
- package/dist/{MSeekBar-BL2W5_rD.js → MSeekBar-C4cn9RIF.js} +2 -2
- package/dist/{MSeekBar-BL2W5_rD.js.map → MSeekBar-C4cn9RIF.js.map} +1 -1
- package/dist/{MSlider-B9NcKTmZ.js → MSlider-BIkA6DiE.js} +2 -2
- package/dist/{MSlider-B9NcKTmZ.js.map → MSlider-BIkA6DiE.js.map} +1 -1
- package/dist/{MSpinner-_XpTRkAg.js → MSpinner-DZkXZJpc.js} +2 -2
- package/dist/{MSpinner-_XpTRkAg.js.map → MSpinner-DZkXZJpc.js.map} +1 -1
- package/dist/{MTextField-DpcPmR5B.js → MTextField-CNH-byir.js} +2 -2
- package/dist/{MTextField-DpcPmR5B.js.map → MTextField-CNH-byir.js.map} +1 -1
- package/dist/{MTooltip-BL3jPYPT.js → MTooltip-Dd5g2zhh.js} +4 -4
- package/dist/{MTooltip-BL3jPYPT.js.map → MTooltip-Dd5g2zhh.js.map} +1 -1
- package/dist/{_useEscapeStack-C5-BYr8y.js → _popupPosition-nL8SVKPK.js} +20 -2
- package/dist/_popupPosition-nL8SVKPK.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MAddressField.vue.d.ts +54 -0
- package/dist/components/MAudioPlayer.vue.d.ts +1 -1
- package/dist/components/MAudioRecorder.vue.d.ts +51 -0
- package/dist/components/MAvailabilityCalendar.vue.d.ts +1 -1
- package/dist/components/MCameraCapture.vue.d.ts +51 -0
- package/dist/components/MCollapse.vue.d.ts +32 -0
- package/dist/components/MCountrySelect.vue.d.ts +41 -0
- package/dist/components/MCronField.vue.d.ts +26 -0
- package/dist/components/MDashboardGrid.vue.d.ts +65 -0
- package/dist/components/MDiffViewer.vue.d.ts +56 -0
- package/dist/components/MExpansionPanel.vue.d.ts +26 -3
- package/dist/components/MFilterBuilder.vue.d.ts +22 -0
- package/dist/components/MFlex.vue.d.ts +1 -1
- package/dist/components/MMapCluster.vue.d.ts +80 -0
- package/dist/components/MMapDraw.vue.d.ts +79 -0
- package/dist/components/MMentionField.vue.d.ts +102 -0
- package/dist/components/MNotificationCenter.vue.d.ts +57 -0
- package/dist/components/MQRScanner.vue.d.ts +52 -0
- package/dist/components/MQuiz.vue.d.ts +1 -1
- package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
- package/dist/components/MStack.vue.d.ts +1 -1
- package/dist/components/MTimezoneSelect.vue.d.ts +39 -0
- package/dist/components/MToolbar.vue.d.ts +1 -1
- package/dist/components/MVideoPlayer.vue.d.ts +1 -1
- package/dist/components/_MFilterGroup.vue.d.ts +17 -0
- package/dist/composables/_caretPosition.d.ts +6 -0
- package/dist/composables/_useCamera.d.ts +16 -0
- package/dist/composables/_useFollowAnchor.d.ts +15 -0
- package/dist/composables/cron.d.ts +29 -0
- package/dist/composables/dashboardLayout.d.ts +28 -0
- package/dist/composables/filterBuilder.d.ts +55 -0
- package/dist/composables/mapAdapters.d.ts +6 -1
- package/dist/composables/mapSearch.d.ts +1 -0
- package/dist/composables/textDiff.d.ts +24 -0
- package/dist/composables/useLocale.d.ts +108 -0
- package/dist/draw.js +3 -3
- package/dist/flow.js +1 -1
- package/dist/gantt.js +1 -1
- package/dist/index.d.ts +25 -0
- package/dist/locales/index.js +749 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +9888 -6940
- package/dist/m3ui.js.map +1 -1
- package/dist/map.d.ts +5 -0
- package/dist/map.js +1462 -576
- package/dist/map.js.map +1 -1
- package/dist/media.js +5 -5
- package/dist/pdf.js +5 -5
- package/dist/rich-text-editor.js +5 -5
- package/dist/styles.css +1 -1
- package/dist/{useLocale-COav9m8C.js → useLocale-DaVSTdm0.js} +108 -1
- package/dist/useLocale-DaVSTdm0.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MAddressField.test.ts +149 -0
- package/src/__tests__/MAudioRecorder.test.ts +125 -0
- package/src/__tests__/MCameraCapture.test.ts +154 -0
- package/src/__tests__/MCountrySelect.test.ts +67 -0
- package/src/__tests__/MCronField.test.ts +100 -0
- package/src/__tests__/MDashboardGrid.test.ts +122 -0
- package/src/__tests__/MDiffViewer.test.ts +68 -0
- package/src/__tests__/MExpansionPanel.test.ts +107 -0
- package/src/__tests__/MFilterBuilder.test.ts +130 -0
- package/src/__tests__/MMapCluster.test.ts +127 -0
- package/src/__tests__/MMapDraw.test.ts +188 -0
- package/src/__tests__/MMapLayers.test.ts +56 -0
- package/src/__tests__/MMentionField.test.ts +163 -0
- package/src/__tests__/MNotificationCenter.test.ts +94 -0
- package/src/__tests__/_fakeMaplibre.ts +14 -3
- package/src/__tests__/attrsFallthrough.test.ts +4 -0
- package/src/__tests__/cron.test.ts +68 -0
- package/src/__tests__/dashboardLayout.test.ts +45 -0
- package/src/__tests__/filterBuilder.test.ts +91 -0
- package/src/__tests__/followAnchor.test.ts +162 -0
- package/src/__tests__/ssr.test.ts +3 -0
- package/src/__tests__/textDiff.test.ts +37 -0
- package/src/components/MAddressField.vue +301 -0
- package/src/components/MAudioRecorder.vue +334 -0
- package/src/components/MAutocomplete.vue +3 -7
- package/src/components/MCameraCapture.vue +156 -0
- package/src/components/MCollapse.vue +91 -0
- package/src/components/MColorPicker.vue +4 -8
- package/src/components/MCountrySelect.vue +89 -0
- package/src/components/MCronField.vue +251 -0
- package/src/components/MDashboardGrid.vue +382 -0
- package/src/components/MDatePicker.vue +10 -7
- package/src/components/MDateRangePicker.vue +10 -7
- package/src/components/MDiffViewer.vue +234 -0
- package/src/components/MExpansionPanel.vue +56 -48
- package/src/components/MFilterBuilder.vue +47 -0
- package/src/components/MMapCluster.vue +295 -0
- package/src/components/MMapDraw.vue +601 -0
- package/src/components/MMapSearch.vue +1 -9
- package/src/components/MMentionField.vue +373 -0
- package/src/components/MMultiAutocomplete.vue +3 -7
- package/src/components/MMultiSelect.vue +3 -7
- package/src/components/MNotificationCenter.vue +252 -0
- package/src/components/MPhoneInput.vue +3 -10
- package/src/components/MQRScanner.vue +177 -0
- package/src/components/MSelect.vue +3 -7
- package/src/components/MTimePicker.vue +10 -7
- package/src/components/MTimezoneSelect.vue +116 -0
- package/src/components/_MFilterGroup.vue +210 -0
- package/src/composables/_caretPosition.ts +44 -0
- package/src/composables/_useCamera.ts +66 -0
- package/src/composables/_useFollowAnchor.ts +109 -0
- package/src/composables/cron.ts +179 -0
- package/src/composables/dashboardLayout.ts +94 -0
- package/src/composables/filterBuilder.ts +195 -0
- package/src/composables/mapAdapters.ts +29 -15
- package/src/composables/mapSearch.ts +10 -0
- package/src/composables/textDiff.ts +106 -0
- package/src/composables/useLocale.ts +215 -0
- package/src/index.ts +25 -0
- package/src/locales/de.ts +107 -0
- package/src/locales/es.ts +107 -0
- package/src/locales/fr.ts +107 -0
- package/src/locales/ja.ts +107 -0
- package/src/locales/ko.ts +107 -0
- package/src/locales/pt.ts +107 -0
- package/src/locales/zh.ts +107 -0
- package/src/map.ts +5 -0
- package/dist/MListItem-DVi1j1QI.js.map +0 -1
- package/dist/MMenuItem-CRNZkVVr.js.map +0 -1
- package/dist/_useEscapeStack-C5-BYr8y.js.map +0 -1
- package/dist/useLocale-COav9m8C.js.map +0 -1
package/dist/code-editor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./MIcon-DpajuUTJ.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
3
|
-
import { i as n } from "./useLocale-
|
|
3
|
+
import { i as n } from "./useLocale-DaVSTdm0.js";
|
|
4
4
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
|
|
5
5
|
// src/components/MCodeEditor.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, x = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-2" }, S = { class: "text-label-medium text-on-surface-variant" }, C = { class: "flex items-center gap-2" }, w = ["title"], T = {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type MapSearchProvider, type MapSearchResult } from '../composables/mapSearch';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The picked place (v-model), or null */
|
|
4
|
+
modelValue?: MapSearchResult | null;
|
|
5
|
+
/** Where to search: `nominatimProvider(options)` by default, or your own function */
|
|
6
|
+
provider?: MapSearchProvider;
|
|
7
|
+
/** The field's label (the locale's "Address" by default) */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Field style */
|
|
10
|
+
variant?: 'filled' | 'outlined';
|
|
11
|
+
/** Material Symbol on the left */
|
|
12
|
+
leadingIcon?: string;
|
|
13
|
+
/** Search while typing (debounced), for providers that allow it; Nominatim's public server doesn't */
|
|
14
|
+
instant?: boolean;
|
|
15
|
+
/** The delay before an `instant` search, in ms */
|
|
16
|
+
debounce?: number;
|
|
17
|
+
/** Characters needed before searching */
|
|
18
|
+
minLength?: number;
|
|
19
|
+
/** Helper text below the field */
|
|
20
|
+
hint?: string;
|
|
21
|
+
/** Error state */
|
|
22
|
+
error?: boolean;
|
|
23
|
+
/** Error message shown when `error` is true */
|
|
24
|
+
errorLabel?: string;
|
|
25
|
+
/** Marks it as required */
|
|
26
|
+
required?: boolean;
|
|
27
|
+
/** Disables the field */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
};
|
|
30
|
+
declare function search(): Promise<void>;
|
|
31
|
+
declare function clear(): void;
|
|
32
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
33
|
+
/** Searches for the current text now */
|
|
34
|
+
search: typeof search;
|
|
35
|
+
/** Empties the field */
|
|
36
|
+
clear: typeof clear;
|
|
37
|
+
/** Focuses the field */
|
|
38
|
+
focus: () => void | undefined;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
+
select: (place: MapSearchResult) => any;
|
|
41
|
+
"update:modelValue": (place: MapSearchResult | null) => any;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
43
|
+
onSelect?: ((place: MapSearchResult) => any) | undefined;
|
|
44
|
+
"onUpdate:modelValue"?: ((place: MapSearchResult | null) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
modelValue: MapSearchResult | null;
|
|
47
|
+
variant: "filled" | "outlined";
|
|
48
|
+
instant: boolean;
|
|
49
|
+
leadingIcon: string;
|
|
50
|
+
debounce: number;
|
|
51
|
+
minLength: number;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
@@ -99,11 +99,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
99
99
|
playing: boolean;
|
|
100
100
|
variant: "standard" | "mini";
|
|
101
101
|
rate: number;
|
|
102
|
+
muted: boolean;
|
|
102
103
|
volume: number;
|
|
103
104
|
shuffle: boolean;
|
|
104
105
|
autoplay: boolean;
|
|
105
106
|
currentTime: number;
|
|
106
|
-
muted: boolean;
|
|
107
107
|
hasPrevious: boolean;
|
|
108
108
|
hasNext: boolean;
|
|
109
109
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** A voice note made by `MAudioRecorder`. */
|
|
2
|
+
export interface AudioRecording {
|
|
3
|
+
blob: Blob;
|
|
4
|
+
/** An object URL for the blob, to play it (revoked when the recorder is discarded or unmounted) */
|
|
5
|
+
url: string;
|
|
6
|
+
/** In seconds */
|
|
7
|
+
duration: number;
|
|
8
|
+
mimeType: string;
|
|
9
|
+
/** Its waveform, levels 0–1 (`bars` of them), to draw it elsewhere */
|
|
10
|
+
peaks: number[];
|
|
11
|
+
}
|
|
12
|
+
type MicError = 'denied' | 'unavailable' | 'unsupported' | 'failed';
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** The recording used (v-model), or null */
|
|
15
|
+
modelValue?: AudioRecording | null;
|
|
16
|
+
/** Stop by itself after this many seconds (0: no limit) */
|
|
17
|
+
maxDuration?: number;
|
|
18
|
+
/** How many bars the waveform has */
|
|
19
|
+
bars?: number;
|
|
20
|
+
/** The format to ask for, when the browser can record it */
|
|
21
|
+
mimeType?: string;
|
|
22
|
+
/** Skip the review step: a stopped recording is used right away */
|
|
23
|
+
instant?: boolean;
|
|
24
|
+
};
|
|
25
|
+
declare function start(): Promise<void>;
|
|
26
|
+
declare function pause(): void;
|
|
27
|
+
declare function resume(): void;
|
|
28
|
+
declare function stop(): void;
|
|
29
|
+
declare function discard(): void;
|
|
30
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
31
|
+
start: typeof start;
|
|
32
|
+
stop: typeof stop;
|
|
33
|
+
pause: typeof pause;
|
|
34
|
+
resume: typeof resume;
|
|
35
|
+
discard: typeof discard;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
error: (error: MicError) => any;
|
|
38
|
+
"update:modelValue": (recording: AudioRecording | null) => any;
|
|
39
|
+
record: (recording: AudioRecording) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
41
|
+
onError?: ((error: MicError) => any) | undefined;
|
|
42
|
+
"onUpdate:modelValue"?: ((recording: AudioRecording | null) => any) | undefined;
|
|
43
|
+
onRecord?: ((recording: AudioRecording) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
modelValue: AudioRecording | null;
|
|
46
|
+
instant: boolean;
|
|
47
|
+
maxDuration: number;
|
|
48
|
+
bars: number;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
@@ -70,8 +70,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
70
70
|
}>, {
|
|
71
71
|
modelValue: Range;
|
|
72
72
|
disabled: boolean;
|
|
73
|
-
minNights: number;
|
|
74
73
|
months: number;
|
|
74
|
+
minNights: number;
|
|
75
75
|
highlightDeals: boolean;
|
|
76
76
|
hideFooter: boolean;
|
|
77
77
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type CameraError, type CameraFacing } from '../composables/_useCamera';
|
|
2
|
+
/** A photo taken by `MCameraCapture`. */
|
|
3
|
+
export interface CameraPhoto {
|
|
4
|
+
blob: Blob;
|
|
5
|
+
dataUrl: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
/** The photo used (v-model): a data URL, or null */
|
|
11
|
+
modelValue?: string | null;
|
|
12
|
+
/** Which camera to start with: the back one (`environment`) or the selfie one (`user`) */
|
|
13
|
+
facing?: CameraFacing;
|
|
14
|
+
/** The preview's aspect ratio (CSS `aspect-ratio`) */
|
|
15
|
+
aspect?: string;
|
|
16
|
+
/** The photo's format */
|
|
17
|
+
type?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
18
|
+
/** JPEG / WebP quality, 0–1 */
|
|
19
|
+
quality?: number;
|
|
20
|
+
/** The resolution asked for (the longer side, ideal) */
|
|
21
|
+
resolution?: number;
|
|
22
|
+
/** Start the camera on mount instead of on a button press */
|
|
23
|
+
autostart?: boolean;
|
|
24
|
+
};
|
|
25
|
+
declare function capture(): Promise<void>;
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
27
|
+
/** Starts the camera */
|
|
28
|
+
start: () => Promise<void>;
|
|
29
|
+
/** Stops the camera */
|
|
30
|
+
stop: () => void;
|
|
31
|
+
/** Takes the photo now (as the shutter button) */
|
|
32
|
+
capture: typeof capture;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
error: (error: CameraError) => any;
|
|
35
|
+
"update:modelValue": (dataUrl: string | null) => any;
|
|
36
|
+
capture: (photo: CameraPhoto) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
+
onError?: ((error: CameraError) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((dataUrl: string | null) => any) | undefined;
|
|
40
|
+
onCapture?: ((photo: CameraPhoto) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
type: "image/png" | "image/jpeg" | "image/webp";
|
|
43
|
+
modelValue: string | null;
|
|
44
|
+
aspect: string;
|
|
45
|
+
facing: CameraFacing;
|
|
46
|
+
quality: number;
|
|
47
|
+
resolution: number;
|
|
48
|
+
autostart: boolean;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Shown or not */
|
|
3
|
+
open: boolean;
|
|
4
|
+
/** Unmount the content once closed (it keeps its state otherwise) */
|
|
5
|
+
unmountOnClose?: boolean;
|
|
6
|
+
/** The animation's length, in ms */
|
|
7
|
+
duration?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_template: () => {
|
|
10
|
+
__VLS_Slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"after-open": () => any;
|
|
17
|
+
"after-close": () => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onAfter-open"?: (() => any) | undefined;
|
|
20
|
+
"onAfter-close"?: (() => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
duration: number;
|
|
23
|
+
unmountOnClose: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The country's ISO alpha-2 code (v-model), or null */
|
|
3
|
+
modelValue?: string | null;
|
|
4
|
+
/** Field label (the locale's "Country" by default) */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Only these countries (codes), in this order */
|
|
7
|
+
only?: string[];
|
|
8
|
+
/** These first, above the rest (e.g. the ones your users pick most) */
|
|
9
|
+
preferred?: string[];
|
|
10
|
+
/** Show the flag emoji before each name (Windows shows the two letters instead) */
|
|
11
|
+
flags?: boolean;
|
|
12
|
+
/** Field style */
|
|
13
|
+
variant?: 'filled' | 'outlined';
|
|
14
|
+
/** Dropdown, or a dialog on small screens */
|
|
15
|
+
mode?: 'docked' | 'modal';
|
|
16
|
+
/** Show a clear button */
|
|
17
|
+
clearable?: boolean;
|
|
18
|
+
/** Helper text below the field */
|
|
19
|
+
hint?: string;
|
|
20
|
+
/** Error state */
|
|
21
|
+
error?: boolean;
|
|
22
|
+
/** Error message shown when `error` is true */
|
|
23
|
+
errorLabel?: string;
|
|
24
|
+
/** Marks it as required */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/** Disables the field */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (code: string | null) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((code: string | null) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
mode: "docked" | "modal";
|
|
35
|
+
modelValue: string | null;
|
|
36
|
+
variant: "filled" | "outlined";
|
|
37
|
+
flags: boolean;
|
|
38
|
+
clearable: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The expression (v-model): `minute hour day-of-month month day-of-week`, or a macro (`@daily`) */
|
|
3
|
+
modelValue: string;
|
|
4
|
+
/** Field label (the locale's "Cron expression" by default) */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Show the schedule controls above the expression */
|
|
7
|
+
builder?: boolean;
|
|
8
|
+
/** How many upcoming runs to list (0: none) */
|
|
9
|
+
nextRuns?: number;
|
|
10
|
+
/** Field style */
|
|
11
|
+
variant?: 'filled' | 'outlined';
|
|
12
|
+
/** Disables it */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (expression: string) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((expression: string) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
variant: "filled" | "outlined";
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
builder: boolean;
|
|
23
|
+
nextRuns: number;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type DashboardItem } from '../composables/dashboardLayout';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The layout (v-model): `{ id, x, y, w, h, minW?, minH?, maxW?, maxH?, static?, label? }[]`, in cells */
|
|
4
|
+
modelValue: (DashboardItem & {
|
|
5
|
+
label?: string;
|
|
6
|
+
})[];
|
|
7
|
+
/** Columns */
|
|
8
|
+
columns?: number;
|
|
9
|
+
/** A row's height, in px */
|
|
10
|
+
rowHeight?: number;
|
|
11
|
+
/** The gap between cells, in px */
|
|
12
|
+
gap?: number;
|
|
13
|
+
/** Let people move and resize widgets */
|
|
14
|
+
editable?: boolean;
|
|
15
|
+
/** Show a resize handle on each widget's corner */
|
|
16
|
+
resizable?: boolean;
|
|
17
|
+
/** Below this width (px, the grid's own) the widgets stack in one column, in reading order */
|
|
18
|
+
breakpoint?: number;
|
|
19
|
+
/** Only start a drag from inside an element matching this (a widget's title bar), instead of anywhere on it */
|
|
20
|
+
handle?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_template: () => {
|
|
23
|
+
__VLS_Slots: {
|
|
24
|
+
item?: (props: {
|
|
25
|
+
item: DashboardItem & {
|
|
26
|
+
label?: string;
|
|
27
|
+
};
|
|
28
|
+
dragging: boolean;
|
|
29
|
+
resizing: boolean;
|
|
30
|
+
}) => any;
|
|
31
|
+
} & {
|
|
32
|
+
item?: (props: {
|
|
33
|
+
item: DashboardItem & {
|
|
34
|
+
label?: string;
|
|
35
|
+
};
|
|
36
|
+
dragging: boolean;
|
|
37
|
+
resizing: boolean;
|
|
38
|
+
}) => any;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
42
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
"update:modelValue": (layout: (DashboardItem & {
|
|
44
|
+
label?: string;
|
|
45
|
+
})[]) => any;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((layout: (DashboardItem & {
|
|
48
|
+
label?: string;
|
|
49
|
+
})[]) => any) | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
columns: number;
|
|
52
|
+
gap: number;
|
|
53
|
+
resizable: boolean;
|
|
54
|
+
rowHeight: number;
|
|
55
|
+
editable: boolean;
|
|
56
|
+
breakpoint: number;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The text before */
|
|
3
|
+
original: string;
|
|
4
|
+
/** The text after */
|
|
5
|
+
modified: string;
|
|
6
|
+
/** Side by side or unified (v-model:mode with the toggle) */
|
|
7
|
+
mode?: 'split' | 'unified';
|
|
8
|
+
/** Show the split / unified toggle in the header */
|
|
9
|
+
toggle?: boolean;
|
|
10
|
+
/** The original's name in the header (a file name, "v1") */
|
|
11
|
+
originalLabel?: string;
|
|
12
|
+
/** The modified version's name */
|
|
13
|
+
modifiedLabel?: string;
|
|
14
|
+
/** Unchanged lines kept around each change; longer stretches fold (-1: never fold) */
|
|
15
|
+
context?: number;
|
|
16
|
+
/** Highlight the changed words inside changed lines */
|
|
17
|
+
wordDiff?: boolean;
|
|
18
|
+
/** Show line numbers */
|
|
19
|
+
lineNumbers?: boolean;
|
|
20
|
+
/** Wrap long lines instead of scrolling */
|
|
21
|
+
wrap?: boolean;
|
|
22
|
+
/** Below this width (px, its own) side by side shows unified */
|
|
23
|
+
breakpoint?: number;
|
|
24
|
+
/** Limit the height (CSS), scrolling inside */
|
|
25
|
+
maxHeight?: string;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_template: () => {
|
|
28
|
+
__VLS_Slots: {
|
|
29
|
+
header?: (props: {
|
|
30
|
+
added: number;
|
|
31
|
+
removed: number;
|
|
32
|
+
}) => any;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
36
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
"update:mode": (mode: "split" | "unified") => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
"onUpdate:mode"?: ((mode: "split" | "unified") => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
mode: "split" | "unified";
|
|
42
|
+
lineNumbers: boolean;
|
|
43
|
+
wrap: boolean;
|
|
44
|
+
toggle: boolean;
|
|
45
|
+
context: number;
|
|
46
|
+
breakpoint: number;
|
|
47
|
+
wordDiff: boolean;
|
|
48
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
/** Panel header text */
|
|
3
|
-
title
|
|
2
|
+
/** Panel header text (or the `#title` slot) */
|
|
3
|
+
title?: string;
|
|
4
4
|
/** Secondary text in the header, below the title */
|
|
5
5
|
subtitle?: string;
|
|
6
6
|
/** Leading Material Symbol icon in the header */
|
|
@@ -10,25 +10,48 @@ type __VLS_Props = {
|
|
|
10
10
|
* (uncontrolled).
|
|
11
11
|
*/
|
|
12
12
|
modelValue?: boolean;
|
|
13
|
-
/** Disables toggling */
|
|
13
|
+
/** Disables toggling (dimmed) */
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
/** Whether it opens at all: false shows a plain header row, no chevron, not a button (not dimmed, unlike `disabled`) */
|
|
16
|
+
expandable?: boolean;
|
|
17
|
+
/** The body with no padding or divider, for edge-to-edge content such as a list */
|
|
18
|
+
flush?: boolean;
|
|
19
|
+
/** Unmount the body while closed */
|
|
20
|
+
unmountOnClose?: boolean;
|
|
15
21
|
/** Visual style of the panel container */
|
|
16
22
|
variant?: 'outlined' | 'filled' | 'elevated';
|
|
17
23
|
};
|
|
18
24
|
declare const __VLS_template: () => {
|
|
19
25
|
__VLS_Slots: {
|
|
26
|
+
leading?: (props: {}) => any;
|
|
27
|
+
} & {
|
|
28
|
+
title?: (props: {}) => any;
|
|
29
|
+
} & {
|
|
30
|
+
subtitle?: (props: {}) => any;
|
|
31
|
+
} & {
|
|
32
|
+
trailing?: (props: {}) => any;
|
|
33
|
+
} & {
|
|
34
|
+
default?: (props: {}) => any;
|
|
35
|
+
} & {
|
|
20
36
|
default?: (props: {}) => any;
|
|
21
37
|
};
|
|
22
38
|
};
|
|
23
39
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
24
40
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
41
|
"update:modelValue": (args_0: boolean) => any;
|
|
42
|
+
"after-open": () => any;
|
|
43
|
+
"after-close": () => any;
|
|
26
44
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
45
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
46
|
+
"onAfter-open"?: (() => any) | undefined;
|
|
47
|
+
"onAfter-close"?: (() => any) | undefined;
|
|
28
48
|
}>, {
|
|
49
|
+
flush: boolean;
|
|
29
50
|
modelValue: boolean;
|
|
30
51
|
variant: "filled" | "outlined" | "elevated";
|
|
31
52
|
disabled: boolean;
|
|
53
|
+
expandable: boolean;
|
|
54
|
+
unmountOnClose: boolean;
|
|
32
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
56
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
57
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FilterField, type FilterGroup } from '../composables/filterBuilder';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The filter (v-model): a group of rules and nested groups. Leave it out or null to start empty */
|
|
4
|
+
modelValue?: FilterGroup | null;
|
|
5
|
+
/** The fields that can be filtered on; see `FilterField` */
|
|
6
|
+
fields: FilterField[];
|
|
7
|
+
/** How deep groups can nest (0: no groups, conditions only) */
|
|
8
|
+
maxDepth?: number;
|
|
9
|
+
/** Read-only */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (filter: FilterGroup) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((filter: FilterGroup) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
modelValue: FilterGroup | null;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
maxDepth: number;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -24,7 +24,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
24
24
|
align: "center" | "start" | "end" | "stretch" | "baseline";
|
|
25
25
|
direction: "row" | "column" | "row-reverse" | "column-reverse";
|
|
26
26
|
inline: boolean;
|
|
27
|
-
justify: "
|
|
27
|
+
justify: "between" | "center" | "start" | "end" | "around" | "evenly";
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type * as Maplibre from 'maplibre-gl';
|
|
2
|
+
import type { MapGeoJsonLayer } from './MMapGeoJson.vue';
|
|
3
|
+
/** One of the points in a cluster (a GeoJSON feature). */
|
|
4
|
+
export type MapClusterLeaf = Awaited<ReturnType<Maplibre.GeoJSONSource['getClusterLeaves']>>[number];
|
|
5
|
+
/** A bubble, as `#cluster` and `cluster-click` get it. */
|
|
6
|
+
export interface MapCluster {
|
|
7
|
+
/** MapLibre's cluster id */
|
|
8
|
+
id: number;
|
|
9
|
+
/** How many points it holds */
|
|
10
|
+
count: number;
|
|
11
|
+
/** Where it sits, `[lng, lat]` */
|
|
12
|
+
lngLat: [number, number];
|
|
13
|
+
/** Zooms in until it splits */
|
|
14
|
+
zoomIn: () => Promise<void>;
|
|
15
|
+
/** Its points (all of them by default, or the first `limit`) */
|
|
16
|
+
leaves: (limit?: number) => Promise<MapClusterLeaf[]>;
|
|
17
|
+
}
|
|
18
|
+
type __VLS_Props = {
|
|
19
|
+
/** A GeoJSON object (a FeatureCollection of points), or the URL of one */
|
|
20
|
+
data: Maplibre.GeoJSONSourceSpecification['data'];
|
|
21
|
+
/** The source's id (and the prefix of its layers' ids). Unique on the map; generated when left out */
|
|
22
|
+
id?: string;
|
|
23
|
+
/** The theme color of the bubbles and the single points */
|
|
24
|
+
color?: 'primary' | 'secondary' | 'tertiary';
|
|
25
|
+
/** How close points must be to be grouped, in pixels (MapLibre's `clusterRadius`) */
|
|
26
|
+
radius?: number;
|
|
27
|
+
/** Above this zoom nothing is grouped (MapLibre's `clusterMaxZoom`) */
|
|
28
|
+
maxZoom?: number;
|
|
29
|
+
/** Zoom in on a bubble when it's clicked */
|
|
30
|
+
zoomOnClick?: boolean;
|
|
31
|
+
/** How to draw the single points: MapLibre layers without `source` (filter out clusters yourself: `['!', ['has', 'point_count']]`). Defaults to a circle */
|
|
32
|
+
pointLayers?: MapGeoJsonLayer[];
|
|
33
|
+
/** Insert the point layers below this layer id */
|
|
34
|
+
before?: string;
|
|
35
|
+
/** Show a pointer over the single points (set it when you handle `click`) */
|
|
36
|
+
interactive?: boolean;
|
|
37
|
+
/** More options for the GeoJSON source (`clusterProperties`, `clusterMinPoints`, `promoteId`…) */
|
|
38
|
+
sourceOptions?: Partial<Omit<Maplibre.GeoJSONSourceSpecification, 'type' | 'data' | 'cluster' | 'clusterRadius' | 'clusterMaxZoom'>>;
|
|
39
|
+
};
|
|
40
|
+
declare const __VLS_template: () => {
|
|
41
|
+
__VLS_Slots: {
|
|
42
|
+
cluster?: (props: {
|
|
43
|
+
id: number;
|
|
44
|
+
count: number;
|
|
45
|
+
label: string;
|
|
46
|
+
lngLat: [number, number];
|
|
47
|
+
zoomIn: () => Promise<void>;
|
|
48
|
+
leaves: (limit?: number) => Promise<MapClusterLeaf[]>;
|
|
49
|
+
}) => any;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
53
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
54
|
+
/** The source's id */
|
|
55
|
+
sourceId: string;
|
|
56
|
+
/** The ids of its point layers on the map */
|
|
57
|
+
layerIds: () => string[];
|
|
58
|
+
/** The bubbles on screen now */
|
|
59
|
+
clusters: () => MapCluster[];
|
|
60
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
click: (event: Maplibre.MapLayerMouseEvent) => any;
|
|
62
|
+
"cluster-click": (cluster: MapCluster) => any;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
64
|
+
onClick?: ((event: Maplibre.MapLayerMouseEvent) => any) | undefined;
|
|
65
|
+
"onCluster-click"?: ((cluster: MapCluster) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
color: "primary" | "secondary" | "tertiary";
|
|
68
|
+
radius: number;
|
|
69
|
+
maxZoom: number;
|
|
70
|
+
interactive: boolean;
|
|
71
|
+
zoomOnClick: boolean;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
73
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|