@m3ui-vue/m3ui-vue 1.4.0 → 1.4.2
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 +295 -11
- package/dist/{MButton-DQMTIlaV.js → MButton-D7M324r9.js} +2 -2
- package/dist/{MButton-DQMTIlaV.js.map → MButton-D7M324r9.js.map} +1 -1
- package/dist/{MDialog-cdgapGfZ.js → MDialog-DuOnNF9s.js} +2 -2
- package/dist/{MDialog-cdgapGfZ.js.map → MDialog-DuOnNF9s.js.map} +1 -1
- package/dist/{MListItem-ZkSGIIrb.js → MListItem-Bb84X6ex.js} +144 -120
- package/dist/{MListItem-ZkSGIIrb.js.map → MListItem-Bb84X6ex.js.map} +1 -1
- package/dist/{MLoadingIndicator-U6_oGx8z.js → MLoadingIndicator-BUGRo2Tu.js} +2 -2
- package/dist/{MLoadingIndicator-U6_oGx8z.js.map → MLoadingIndicator-BUGRo2Tu.js.map} +1 -1
- package/dist/{MSeekBar-DTZVizZg.js → MSeekBar-BQUvUqb9.js} +2 -2
- package/dist/{MSeekBar-DTZVizZg.js.map → MSeekBar-BQUvUqb9.js.map} +1 -1
- package/dist/{MSlider-CqJkEYRZ.js → MSlider-SFdjE1Hy.js} +2 -2
- package/dist/{MSlider-CqJkEYRZ.js.map → MSlider-SFdjE1Hy.js.map} +1 -1
- package/dist/{MSpinner-Btgc-0nb.js → MSpinner-DKGNN64_.js} +2 -2
- package/dist/{MSpinner-Btgc-0nb.js.map → MSpinner-DKGNN64_.js.map} +1 -1
- package/dist/{MTextField-B6M0gJEO.js → MTextField-Utsef6Kk.js} +2 -2
- package/dist/{MTextField-B6M0gJEO.js.map → MTextField-Utsef6Kk.js.map} +1 -1
- package/dist/{MTooltip-Dspji4XG.js → MTooltip-BhTFQ9Z2.js} +4 -4
- package/dist/{MTooltip-Dspji4XG.js.map → MTooltip-BhTFQ9Z2.js.map} +1 -1
- package/dist/api.json +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MAvailabilityCalendar.vue.d.ts +1 -1
- package/dist/components/MCalendarHeatmap.vue.d.ts +120 -0
- package/dist/components/MCountdown.vue.d.ts +80 -0
- package/dist/components/MDatePicker.vue.d.ts +5 -0
- package/dist/components/MDatePickerModal.vue.d.ts +5 -0
- package/dist/components/MDateRangePicker.vue.d.ts +5 -0
- package/dist/components/MDateRangePickerModal.vue.d.ts +5 -0
- package/dist/components/MLightbox.vue.d.ts +1 -1
- package/dist/components/MListItem.vue.d.ts +10 -6
- package/dist/components/MMeterGroup.vue.d.ts +98 -0
- package/dist/components/MPhoneInput.vue.d.ts +72 -0
- package/dist/components/MSeekBar.vue.d.ts +1 -1
- package/dist/components/MTreeTable.vue.d.ts +1 -1
- package/dist/components/MTypewriter.vue.d.ts +57 -0
- package/dist/components/MVideoPlayer.vue.d.ts +1 -1
- package/dist/components/_MMonthYearButton.vue.d.ts +16 -0
- package/dist/components/_MYearGrid.vue.d.ts +19 -0
- package/dist/composables/_useCalendarMonth.d.ts +7 -0
- package/dist/composables/phoneNumber.d.ts +39 -0
- package/dist/composables/useLocale.d.ts +18 -0
- package/dist/data/phone-countries.d.ts +2 -0
- package/dist/draw.js +2 -2
- package/dist/flow.js +1 -1
- package/dist/gantt.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/locales/index.js +63 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +5133 -3366
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +5 -5
- package/dist/media.js +4 -4
- package/dist/pdf.js +4 -4
- package/dist/rich-text-editor.js +4 -4
- package/dist/styles.css +1 -1
- package/dist/{useLocale-DLKJIRFi.js → useLocale-B8YKWg-H.js} +10 -1
- package/dist/useLocale-B8YKWg-H.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MCalendarHeatmap.test.ts +79 -0
- package/src/__tests__/MCountdown.test.ts +75 -0
- package/src/__tests__/MListItemNestedControl.test.ts +88 -0
- package/src/__tests__/MMeterGroup.test.ts +43 -0
- package/src/__tests__/MPhoneInput.test.ts +97 -0
- package/src/__tests__/MTypewriter.test.ts +50 -0
- package/src/__tests__/calendarMonth.test.ts +104 -0
- package/src/__tests__/clearToNull.test.ts +30 -0
- package/src/__tests__/ssr.test.ts +4 -0
- package/src/components/MAutocomplete.vue +2 -2
- package/src/components/MCalendarHeatmap.vue +349 -0
- package/src/components/MCountdown.vue +200 -0
- package/src/components/MDatePicker.vue +74 -34
- package/src/components/MDatePickerModal.vue +79 -36
- package/src/components/MDateRangePicker.vue +73 -33
- package/src/components/MDateRangePickerModal.vue +75 -35
- package/src/components/MListItem.vue +54 -8
- package/src/components/MMeterGroup.vue +196 -0
- package/src/components/MPhoneInput.vue +480 -0
- package/src/components/MSelect.vue +2 -2
- package/src/components/MTypewriter.vue +195 -0
- package/src/components/_MMonthYearButton.vue +36 -0
- package/src/components/_MYearGrid.vue +106 -0
- package/src/composables/_useCalendarMonth.ts +32 -2
- package/src/composables/phoneNumber.ts +137 -0
- package/src/composables/useLocale.ts +27 -0
- package/src/data/phone-countries.ts +62 -0
- package/src/index.ts +10 -0
- package/src/locales/de.ts +9 -0
- package/src/locales/es.ts +9 -0
- package/src/locales/fr.ts +9 -0
- package/src/locales/ja.ts +9 -0
- package/src/locales/ko.ts +9 -0
- package/src/locales/pt.ts +9 -0
- package/src/locales/zh.ts +9 -0
- package/dist/useLocale-DLKJIRFi.js.map +0 -1
package/dist/code-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./useLocale-
|
|
1
|
+
import { i as e } from "./useLocale-B8YKWg-H.js";
|
|
2
2
|
import { t } from "./MIcon-Bxh9j135.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.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";
|
|
@@ -68,8 +68,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
68
68
|
}>, {
|
|
69
69
|
modelValue: Range;
|
|
70
70
|
disabled: boolean;
|
|
71
|
-
minNights: number;
|
|
72
71
|
months: number;
|
|
72
|
+
minNights: number;
|
|
73
73
|
highlightDeals: boolean;
|
|
74
74
|
hideFooter: boolean;
|
|
75
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/** One day of `data` when given as an array */
|
|
2
|
+
export interface HeatmapDay {
|
|
3
|
+
/** YYYY-MM-DD */
|
|
4
|
+
date: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
/** A cell, as the tooltip slot and the select event get it */
|
|
8
|
+
export interface HeatmapCell {
|
|
9
|
+
/** YYYY-MM-DD */
|
|
10
|
+
date: string;
|
|
11
|
+
value: number;
|
|
12
|
+
/** 0 (nothing) to levels - 1 (the most) */
|
|
13
|
+
level: number;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
18
|
+
/** Values per day: `{ '2026-11-20': 4 }` or `[{ date: '2026-11-20', value: 4 }]`. Missing days are 0 */
|
|
19
|
+
data: Record<string, number> | HeatmapDay[];
|
|
20
|
+
/** Last day shown (YYYY-MM-DD or a Date); defaults to today */
|
|
21
|
+
end?: string | Date;
|
|
22
|
+
/** First day shown; defaults to `weeks` weeks before `end` */
|
|
23
|
+
start?: string | Date;
|
|
24
|
+
/** How many weeks to show when there's no `start` */
|
|
25
|
+
weeks?: number;
|
|
26
|
+
/** First day of the week: 1 Monday (default, like the date pickers), 0 Sunday */
|
|
27
|
+
weekStart?: 0 | 1;
|
|
28
|
+
/** Number of tints, the empty one included */
|
|
29
|
+
levels?: number;
|
|
30
|
+
/** The value that gets the darkest tint; defaults to the largest value shown */
|
|
31
|
+
max?: number;
|
|
32
|
+
/** An M3 color role (`primary`, `tertiary`, `success`...) or any CSS color */
|
|
33
|
+
color?: string;
|
|
34
|
+
/** Side of a day's square, in px */
|
|
35
|
+
cellSize?: number;
|
|
36
|
+
/** Space between days, in px */
|
|
37
|
+
gap?: number;
|
|
38
|
+
/** Month names above the weeks */
|
|
39
|
+
monthLabels?: boolean;
|
|
40
|
+
/** Weekday names (Mon, Wed, Fri) beside the rows */
|
|
41
|
+
dayLabels?: boolean;
|
|
42
|
+
/** The "Less ▢▢▢ More" scale below */
|
|
43
|
+
legend?: boolean;
|
|
44
|
+
/** Show the day's value on hover and focus */
|
|
45
|
+
tooltip?: boolean;
|
|
46
|
+
/** The tooltip's text (and each day's accessible name); defaults to "value · date" */
|
|
47
|
+
formatTooltip?: (cell: HeatmapCell) => string;
|
|
48
|
+
/** BCP-47 language for month/weekday names and numbers; defaults to the app's locale */
|
|
49
|
+
locale?: string;
|
|
50
|
+
/** Selected day, YYYY-MM-DD (v-model); outlined */
|
|
51
|
+
modelValue?: string | null;
|
|
52
|
+
/** Accessible name of the grid */
|
|
53
|
+
label?: string;
|
|
54
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
select: (args_0: HeatmapCell) => any;
|
|
56
|
+
"update:modelValue": (args_0: string) => any;
|
|
57
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
58
|
+
/** Values per day: `{ '2026-11-20': 4 }` or `[{ date: '2026-11-20', value: 4 }]`. Missing days are 0 */
|
|
59
|
+
data: Record<string, number> | HeatmapDay[];
|
|
60
|
+
/** Last day shown (YYYY-MM-DD or a Date); defaults to today */
|
|
61
|
+
end?: string | Date;
|
|
62
|
+
/** First day shown; defaults to `weeks` weeks before `end` */
|
|
63
|
+
start?: string | Date;
|
|
64
|
+
/** How many weeks to show when there's no `start` */
|
|
65
|
+
weeks?: number;
|
|
66
|
+
/** First day of the week: 1 Monday (default, like the date pickers), 0 Sunday */
|
|
67
|
+
weekStart?: 0 | 1;
|
|
68
|
+
/** Number of tints, the empty one included */
|
|
69
|
+
levels?: number;
|
|
70
|
+
/** The value that gets the darkest tint; defaults to the largest value shown */
|
|
71
|
+
max?: number;
|
|
72
|
+
/** An M3 color role (`primary`, `tertiary`, `success`...) or any CSS color */
|
|
73
|
+
color?: string;
|
|
74
|
+
/** Side of a day's square, in px */
|
|
75
|
+
cellSize?: number;
|
|
76
|
+
/** Space between days, in px */
|
|
77
|
+
gap?: number;
|
|
78
|
+
/** Month names above the weeks */
|
|
79
|
+
monthLabels?: boolean;
|
|
80
|
+
/** Weekday names (Mon, Wed, Fri) beside the rows */
|
|
81
|
+
dayLabels?: boolean;
|
|
82
|
+
/** The "Less ▢▢▢ More" scale below */
|
|
83
|
+
legend?: boolean;
|
|
84
|
+
/** Show the day's value on hover and focus */
|
|
85
|
+
tooltip?: boolean;
|
|
86
|
+
/** The tooltip's text (and each day's accessible name); defaults to "value · date" */
|
|
87
|
+
formatTooltip?: (cell: HeatmapCell) => string;
|
|
88
|
+
/** BCP-47 language for month/weekday names and numbers; defaults to the app's locale */
|
|
89
|
+
locale?: string;
|
|
90
|
+
/** Selected day, YYYY-MM-DD (v-model); outlined */
|
|
91
|
+
modelValue?: string | null;
|
|
92
|
+
/** Accessible name of the grid */
|
|
93
|
+
label?: string;
|
|
94
|
+
}> & Readonly<{
|
|
95
|
+
onSelect?: ((args_0: HeatmapCell) => any) | undefined;
|
|
96
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
color: string;
|
|
99
|
+
legend: boolean;
|
|
100
|
+
modelValue: string | null;
|
|
101
|
+
gap: number;
|
|
102
|
+
tooltip: boolean;
|
|
103
|
+
weeks: number;
|
|
104
|
+
weekStart: 0 | 1;
|
|
105
|
+
levels: number;
|
|
106
|
+
cellSize: number;
|
|
107
|
+
monthLabels: boolean;
|
|
108
|
+
dayLabels: boolean;
|
|
109
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
110
|
+
tooltip?: (props: {
|
|
111
|
+
date: string;
|
|
112
|
+
value: number;
|
|
113
|
+
level: number;
|
|
114
|
+
}) => any;
|
|
115
|
+
}>;
|
|
116
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export type CountdownUnit = 'days' | 'hours' | 'minutes' | 'seconds';
|
|
2
|
+
/** What the default slot receives: the time left, split into the units shown */
|
|
3
|
+
export interface CountdownParts {
|
|
4
|
+
days: number;
|
|
5
|
+
hours: number;
|
|
6
|
+
minutes: number;
|
|
7
|
+
seconds: number;
|
|
8
|
+
/** Milliseconds left (0 once finished) */
|
|
9
|
+
total: number;
|
|
10
|
+
finished: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
15
|
+
/** The moment it counts down to: a `Date`, a timestamp in ms, or a date string */
|
|
16
|
+
to: Date | number | string;
|
|
17
|
+
/** Units shown, largest first; leaving one out folds it into the next larger one */
|
|
18
|
+
units?: CountdownUnit[];
|
|
19
|
+
/** `boxes`: each unit in its own container with its name below; `inline`: one line of text (3d 04h 12m) */
|
|
20
|
+
variant?: "boxes" | "inline";
|
|
21
|
+
/** Digit size */
|
|
22
|
+
size?: "sm" | "md" | "lg";
|
|
23
|
+
/** Show unit names */
|
|
24
|
+
labels?: boolean;
|
|
25
|
+
/** Hide leading units while they're zero (no "0 days" a few hours before) */
|
|
26
|
+
hideEmpty?: boolean;
|
|
27
|
+
/** Roll the digits; false (or the system's reduced motion) swaps them */
|
|
28
|
+
animate?: boolean;
|
|
29
|
+
/** BCP-47 language for the unit names; defaults to the app's locale */
|
|
30
|
+
locale?: string;
|
|
31
|
+
}, {
|
|
32
|
+
parts: import("vue").ComputedRef<CountdownParts>;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
finished: () => any;
|
|
35
|
+
tick: (args_0: CountdownParts) => any;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
37
|
+
/** The moment it counts down to: a `Date`, a timestamp in ms, or a date string */
|
|
38
|
+
to: Date | number | string;
|
|
39
|
+
/** Units shown, largest first; leaving one out folds it into the next larger one */
|
|
40
|
+
units?: CountdownUnit[];
|
|
41
|
+
/** `boxes`: each unit in its own container with its name below; `inline`: one line of text (3d 04h 12m) */
|
|
42
|
+
variant?: "boxes" | "inline";
|
|
43
|
+
/** Digit size */
|
|
44
|
+
size?: "sm" | "md" | "lg";
|
|
45
|
+
/** Show unit names */
|
|
46
|
+
labels?: boolean;
|
|
47
|
+
/** Hide leading units while they're zero (no "0 days" a few hours before) */
|
|
48
|
+
hideEmpty?: boolean;
|
|
49
|
+
/** Roll the digits; false (or the system's reduced motion) swaps them */
|
|
50
|
+
animate?: boolean;
|
|
51
|
+
/** BCP-47 language for the unit names; defaults to the app's locale */
|
|
52
|
+
locale?: string;
|
|
53
|
+
}> & Readonly<{
|
|
54
|
+
onFinished?: (() => any) | undefined;
|
|
55
|
+
onTick?: ((args_0: CountdownParts) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
animate: boolean;
|
|
58
|
+
size: "sm" | "md" | "lg";
|
|
59
|
+
labels: boolean;
|
|
60
|
+
variant: "boxes" | "inline";
|
|
61
|
+
units: CountdownUnit[];
|
|
62
|
+
hideEmpty: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
64
|
+
finished?: (props: {}) => any;
|
|
65
|
+
} & {
|
|
66
|
+
default?: (props: {
|
|
67
|
+
days: number;
|
|
68
|
+
hours: number;
|
|
69
|
+
minutes: number;
|
|
70
|
+
seconds: number;
|
|
71
|
+
/** Milliseconds left (0 once finished) */
|
|
72
|
+
total: number;
|
|
73
|
+
finished: boolean;
|
|
74
|
+
}) => any;
|
|
75
|
+
}>;
|
|
76
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -9,6 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
min?: string;
|
|
10
10
|
/** Maximum selectable date (YYYY-MM-DD) */
|
|
11
11
|
max?: string;
|
|
12
|
+
/**
|
|
13
|
+
* First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
|
|
14
|
+
* leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
|
|
15
|
+
*/
|
|
16
|
+
yearRange?: [number, number];
|
|
12
17
|
/** Disables the picker */
|
|
13
18
|
disabled?: boolean;
|
|
14
19
|
/** Error state */
|
|
@@ -14,6 +14,11 @@ type __VLS_Props = {
|
|
|
14
14
|
locale?: string;
|
|
15
15
|
/** Dialog title */
|
|
16
16
|
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
|
|
19
|
+
* leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
|
|
20
|
+
*/
|
|
21
|
+
yearRange?: [number, number];
|
|
17
22
|
};
|
|
18
23
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
24
|
"update:modelValue": (args_0: string | null) => any;
|
|
@@ -13,6 +13,11 @@ type __VLS_Props = {
|
|
|
13
13
|
min?: string;
|
|
14
14
|
/** Maximum date (YYYY-MM-DD) */
|
|
15
15
|
max?: string;
|
|
16
|
+
/**
|
|
17
|
+
* First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
|
|
18
|
+
* leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
|
|
19
|
+
*/
|
|
20
|
+
yearRange?: [number, number];
|
|
16
21
|
/** Disables the picker */
|
|
17
22
|
disabled?: boolean;
|
|
18
23
|
/** Error state */
|
|
@@ -11,6 +11,11 @@ type __VLS_Props = {
|
|
|
11
11
|
min?: string;
|
|
12
12
|
/** Maximum selectable date (YYYY-MM-DD) */
|
|
13
13
|
max?: string;
|
|
14
|
+
/**
|
|
15
|
+
* First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
|
|
16
|
+
* leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
|
|
17
|
+
*/
|
|
18
|
+
yearRange?: [number, number];
|
|
14
19
|
/**
|
|
15
20
|
* Locale for month/day names. Falls back to the app's configured locale (createM3UI({ locale })) — same
|
|
16
21
|
* pattern as MRelativeTime
|
|
@@ -53,8 +53,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
53
53
|
maxZoom: number;
|
|
54
54
|
rounded: boolean;
|
|
55
55
|
zoom: boolean;
|
|
56
|
-
index: number;
|
|
57
56
|
loop: boolean;
|
|
57
|
+
index: number;
|
|
58
58
|
showThumbnails: boolean;
|
|
59
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
60
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -47,8 +47,10 @@ type __VLS_Props = {
|
|
|
47
47
|
expandable?: boolean;
|
|
48
48
|
/** Control the expanded state (v-model:expanded) — otherwise managed internally */
|
|
49
49
|
expanded?: boolean;
|
|
50
|
+
/** Indent of the expanded #children: px, or any CSS length. Narrow it on small screens */
|
|
51
|
+
indent?: number | string;
|
|
50
52
|
};
|
|
51
|
-
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {},
|
|
53
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_25: {}, __VLS_53: {}, __VLS_75: {}, __VLS_77: {}, __VLS_79: {};
|
|
52
54
|
type __VLS_Slots = {} & {
|
|
53
55
|
leading?: (props: typeof __VLS_1) => any;
|
|
54
56
|
} & {
|
|
@@ -56,15 +58,17 @@ type __VLS_Slots = {} & {
|
|
|
56
58
|
} & {
|
|
57
59
|
default?: (props: typeof __VLS_10) => any;
|
|
58
60
|
} & {
|
|
59
|
-
|
|
61
|
+
trailing?: (props: typeof __VLS_12) => any;
|
|
60
62
|
} & {
|
|
61
|
-
|
|
63
|
+
children?: (props: typeof __VLS_25) => any;
|
|
62
64
|
} & {
|
|
63
|
-
|
|
65
|
+
leading?: (props: typeof __VLS_53) => any;
|
|
64
66
|
} & {
|
|
65
|
-
|
|
67
|
+
overline?: (props: typeof __VLS_75) => any;
|
|
66
68
|
} & {
|
|
67
|
-
|
|
69
|
+
default?: (props: typeof __VLS_77) => any;
|
|
70
|
+
} & {
|
|
71
|
+
trailing?: (props: typeof __VLS_79) => any;
|
|
68
72
|
};
|
|
69
73
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
74
|
click: (e: MouseEvent) => any;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/** One part of the meter */
|
|
2
|
+
export interface MeterItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
/** An M3 color role (`primary`, `tertiary`...) or any CSS color; defaults to the next of a set of roles */
|
|
6
|
+
color?: string;
|
|
7
|
+
/** Material Symbol shown in the legend instead of the color dot */
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
13
|
+
items: MeterItem[];
|
|
14
|
+
/** The whole bar; defaults to the sum of the values (no remaining part) */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** Title above the bar */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** Unit appended to formatted values ("GB") */
|
|
19
|
+
unit?: string;
|
|
20
|
+
/** Intl.NumberFormat options for values */
|
|
21
|
+
numberFormat?: Intl.NumberFormatOptions;
|
|
22
|
+
/** Formats a value; overrides `unit` and `numberFormat` */
|
|
23
|
+
format?: (value: number) => string;
|
|
24
|
+
/** Bar thickness */
|
|
25
|
+
size?: "sm" | "md" | "lg";
|
|
26
|
+
/** Legend below the bar */
|
|
27
|
+
legend?: boolean;
|
|
28
|
+
/** Show each part's share (%) in the legend */
|
|
29
|
+
percent?: boolean;
|
|
30
|
+
/** With `max`, list what's left as a last legend entry (outlined dot) */
|
|
31
|
+
showRemaining?: boolean;
|
|
32
|
+
/** The remaining entry's label; defaults to the locale's */
|
|
33
|
+
remainingLabel?: string;
|
|
34
|
+
/** Show "used of max" on the right of the header */
|
|
35
|
+
summary?: boolean;
|
|
36
|
+
/** Grow the segments in on mount (off with reduced motion) */
|
|
37
|
+
animate?: boolean;
|
|
38
|
+
/** BCP-47 language for numbers; defaults to the app's locale */
|
|
39
|
+
locale?: string;
|
|
40
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
select: (item: MeterItem, index: number) => any;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
43
|
+
items: MeterItem[];
|
|
44
|
+
/** The whole bar; defaults to the sum of the values (no remaining part) */
|
|
45
|
+
max?: number;
|
|
46
|
+
/** Title above the bar */
|
|
47
|
+
label?: string;
|
|
48
|
+
/** Unit appended to formatted values ("GB") */
|
|
49
|
+
unit?: string;
|
|
50
|
+
/** Intl.NumberFormat options for values */
|
|
51
|
+
numberFormat?: Intl.NumberFormatOptions;
|
|
52
|
+
/** Formats a value; overrides `unit` and `numberFormat` */
|
|
53
|
+
format?: (value: number) => string;
|
|
54
|
+
/** Bar thickness */
|
|
55
|
+
size?: "sm" | "md" | "lg";
|
|
56
|
+
/** Legend below the bar */
|
|
57
|
+
legend?: boolean;
|
|
58
|
+
/** Show each part's share (%) in the legend */
|
|
59
|
+
percent?: boolean;
|
|
60
|
+
/** With `max`, list what's left as a last legend entry (outlined dot) */
|
|
61
|
+
showRemaining?: boolean;
|
|
62
|
+
/** The remaining entry's label; defaults to the locale's */
|
|
63
|
+
remainingLabel?: string;
|
|
64
|
+
/** Show "used of max" on the right of the header */
|
|
65
|
+
summary?: boolean;
|
|
66
|
+
/** Grow the segments in on mount (off with reduced motion) */
|
|
67
|
+
animate?: boolean;
|
|
68
|
+
/** BCP-47 language for numbers; defaults to the app's locale */
|
|
69
|
+
locale?: string;
|
|
70
|
+
}> & Readonly<{
|
|
71
|
+
onSelect?: ((item: MeterItem, index: number) => any) | undefined;
|
|
72
|
+
}>, {
|
|
73
|
+
legend: boolean;
|
|
74
|
+
summary: boolean;
|
|
75
|
+
animate: boolean;
|
|
76
|
+
size: "sm" | "md" | "lg";
|
|
77
|
+
percent: boolean;
|
|
78
|
+
showRemaining: boolean;
|
|
79
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
80
|
+
label?: (props: {}) => any;
|
|
81
|
+
} & {
|
|
82
|
+
summary?: (props: {
|
|
83
|
+
used: number;
|
|
84
|
+
max: number | undefined;
|
|
85
|
+
}) => any;
|
|
86
|
+
} & {
|
|
87
|
+
'legend-item'?: (props: {
|
|
88
|
+
item: MeterItem;
|
|
89
|
+
percent: number;
|
|
90
|
+
formatted: string;
|
|
91
|
+
color: string;
|
|
92
|
+
}) => any;
|
|
93
|
+
}>;
|
|
94
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The number in E.164 (`+541123456789`), or null (v-model) */
|
|
3
|
+
modelValue?: string | null;
|
|
4
|
+
/** Field label */
|
|
5
|
+
label: string;
|
|
6
|
+
/** ISO 3166-1 alpha-2 code of the country (v-model:country) */
|
|
7
|
+
country?: string;
|
|
8
|
+
/** Country to start on when there's neither a number nor `country`; defaults to the locale's region, else US */
|
|
9
|
+
defaultCountry?: string;
|
|
10
|
+
/** Only these countries (ISO codes) in the list */
|
|
11
|
+
countries?: string[];
|
|
12
|
+
/** Countries pinned at the top of the list */
|
|
13
|
+
preferred?: string[];
|
|
14
|
+
/** Visual style */
|
|
15
|
+
variant?: 'filled' | 'outlined';
|
|
16
|
+
/** Puts the field in error state */
|
|
17
|
+
error?: boolean;
|
|
18
|
+
/** Error message below the field (when `error`, or when `validate` finds the number incomplete) */
|
|
19
|
+
errorLabel?: string;
|
|
20
|
+
/** Hint text below the field */
|
|
21
|
+
hint?: string;
|
|
22
|
+
/** Disables the field */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Marks as required — adds a red asterisk after the label */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/** After leaving the field, show an error when the number doesn't fit its country's length */
|
|
27
|
+
validate?: boolean;
|
|
28
|
+
/** Placeholder; defaults to an example in the country's format */
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/** Show flag emoji */
|
|
31
|
+
flags?: boolean;
|
|
32
|
+
/** Overrides the auto-detected background behind the outlined label */
|
|
33
|
+
fieldBg?: string;
|
|
34
|
+
/** BCP-47 language for country names; defaults to the app's locale */
|
|
35
|
+
locale?: string;
|
|
36
|
+
};
|
|
37
|
+
declare var __VLS_1: {
|
|
38
|
+
iso2: string;
|
|
39
|
+
}, __VLS_25: {
|
|
40
|
+
iso2: string;
|
|
41
|
+
};
|
|
42
|
+
type __VLS_Slots = {} & {
|
|
43
|
+
flag?: (props: typeof __VLS_1) => any;
|
|
44
|
+
} & {
|
|
45
|
+
flag?: (props: typeof __VLS_25) => any;
|
|
46
|
+
};
|
|
47
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
48
|
+
focus: (options?: FocusOptions) => void | undefined;
|
|
49
|
+
/** Whether the number fits its country's length */
|
|
50
|
+
valid: import("vue").ComputedRef<boolean>;
|
|
51
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
|
+
"update:modelValue": (args_0: string | null) => any;
|
|
53
|
+
"update:country": (args_0: string) => any;
|
|
54
|
+
"update:valid": (args_0: boolean) => any;
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
56
|
+
"onUpdate:modelValue"?: ((args_0: string | null) => any) | undefined;
|
|
57
|
+
"onUpdate:country"?: ((args_0: string) => any) | undefined;
|
|
58
|
+
"onUpdate:valid"?: ((args_0: boolean) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
modelValue: string | null;
|
|
61
|
+
variant: "filled" | "outlined";
|
|
62
|
+
flags: boolean;
|
|
63
|
+
validate: boolean;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
export default _default;
|
|
68
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -104,8 +104,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
104
104
|
playing: boolean;
|
|
105
105
|
variant: "slider" | "line" | "wavy";
|
|
106
106
|
disabled: boolean;
|
|
107
|
-
preview: boolean;
|
|
108
107
|
remaining: boolean;
|
|
108
|
+
preview: boolean;
|
|
109
109
|
playbackRate: number;
|
|
110
110
|
keyStep: number;
|
|
111
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -52,8 +52,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
52
52
|
}>, {
|
|
53
53
|
dense: boolean;
|
|
54
54
|
rowKey: string;
|
|
55
|
-
defaultExpanded: boolean;
|
|
56
55
|
indent: number;
|
|
56
|
+
defaultExpanded: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** A phrase, or phrases typed one after another */
|
|
3
|
+
text: string | string[];
|
|
4
|
+
/** Milliseconds per character typed */
|
|
5
|
+
typeSpeed?: number;
|
|
6
|
+
/** Milliseconds per character erased */
|
|
7
|
+
deleteSpeed?: number;
|
|
8
|
+
/** Milliseconds a typed phrase stays before it's erased */
|
|
9
|
+
pause?: number;
|
|
10
|
+
/** Milliseconds before the first character */
|
|
11
|
+
startDelay?: number;
|
|
12
|
+
/** Start over after the last phrase; off stops on it */
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
/** Erase only the end that differs from the next phrase */
|
|
15
|
+
smartBackspace?: boolean;
|
|
16
|
+
/** Vary each keystroke's delay a little, like a person typing */
|
|
17
|
+
humanize?: boolean;
|
|
18
|
+
/** Show the caret */
|
|
19
|
+
cursor?: boolean;
|
|
20
|
+
/** Wait until it's on screen to start */
|
|
21
|
+
startOnVisible?: boolean;
|
|
22
|
+
/** Element rendered */
|
|
23
|
+
tag?: string;
|
|
24
|
+
};
|
|
25
|
+
declare function restart(): void;
|
|
26
|
+
declare var __VLS_9: {};
|
|
27
|
+
type __VLS_Slots = {} & {
|
|
28
|
+
cursor?: (props: typeof __VLS_9) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
31
|
+
restart: typeof restart;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
done: () => any;
|
|
34
|
+
typed: (index: number) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
onDone?: (() => any) | undefined;
|
|
37
|
+
onTyped?: ((index: number) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
cursor: boolean;
|
|
40
|
+
pause: number;
|
|
41
|
+
tag: string;
|
|
42
|
+
typeSpeed: number;
|
|
43
|
+
deleteSpeed: number;
|
|
44
|
+
startDelay: number;
|
|
45
|
+
loop: boolean;
|
|
46
|
+
smartBackspace: boolean;
|
|
47
|
+
humanize: boolean;
|
|
48
|
+
startOnVisible: boolean;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -187,8 +187,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
187
187
|
playing: boolean;
|
|
188
188
|
fit: "contain" | "cover";
|
|
189
189
|
rate: number;
|
|
190
|
-
controls: boolean;
|
|
191
190
|
loop: boolean;
|
|
191
|
+
controls: boolean;
|
|
192
192
|
volume: number;
|
|
193
193
|
autoplay: boolean;
|
|
194
194
|
currentTime: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The month's title ("May 1990") */
|
|
3
|
+
label: string;
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
/** What the button does: switch to the years, or back to the days */
|
|
6
|
+
action: string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
9
|
+
focus: () => void | undefined;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
toggle: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onToggle?: (() => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
years: {
|
|
4
|
+
year: number;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
}[];
|
|
7
|
+
/** The year on view: the selected pill */
|
|
8
|
+
viewYear: number;
|
|
9
|
+
locale: string;
|
|
10
|
+
/** The radiogroup's accessible name */
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
pick: (year: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onPick?: ((year: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -13,6 +13,8 @@ export declare function useCalendarMonth(viewDate: Ref<Date>, opts: {
|
|
|
13
13
|
locale: () => string;
|
|
14
14
|
min: () => string | undefined;
|
|
15
15
|
max: () => string | undefined;
|
|
16
|
+
/** First and last year the year grid offers (DatePickerDefaults.YearRange: 1900–2100); min/max disable years in it */
|
|
17
|
+
yearRange?: () => [number, number] | undefined;
|
|
16
18
|
}): {
|
|
17
19
|
weekdays: import("vue").ComputedRef<string[]>;
|
|
18
20
|
monthLabel: import("vue").ComputedRef<string>;
|
|
@@ -21,4 +23,9 @@ export declare function useCalendarMonth(viewDate: Ref<Date>, opts: {
|
|
|
21
23
|
isToday: (iso: string) => boolean;
|
|
22
24
|
prevMonth: () => void;
|
|
23
25
|
nextMonth: () => void;
|
|
26
|
+
years: import("vue").ComputedRef<{
|
|
27
|
+
year: number;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
}[]>;
|
|
30
|
+
showYear: (year: number) => void;
|
|
24
31
|
};
|