@m3ui-vue/m3ui-vue 1.3.7 → 1.4.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 +1097 -26
- package/dist/{MButton-D5eJiDza.js → MButton-DQMTIlaV.js} +2 -2
- package/dist/{MButton-D5eJiDza.js.map → MButton-DQMTIlaV.js.map} +1 -1
- package/dist/{MDialog-WqB0jewp.js → MDialog-cdgapGfZ.js} +2 -2
- package/dist/{MDialog-WqB0jewp.js.map → MDialog-cdgapGfZ.js.map} +1 -1
- package/dist/{MListItem-Cf-C2Ru-.js → MListItem-ZkSGIIrb.js} +2 -2
- package/dist/{MListItem-Cf-C2Ru-.js.map → MListItem-ZkSGIIrb.js.map} +1 -1
- package/dist/{MLoadingIndicator-D4GzEZoH.js → MLoadingIndicator-U6_oGx8z.js} +2 -2
- package/dist/{MLoadingIndicator-D4GzEZoH.js.map → MLoadingIndicator-U6_oGx8z.js.map} +1 -1
- package/dist/{MSeekBar-B19xoWE3.js → MSeekBar-DTZVizZg.js} +2 -2
- package/dist/{MSeekBar-B19xoWE3.js.map → MSeekBar-DTZVizZg.js.map} +1 -1
- package/dist/{MSlider-9RoiuebS.js → MSlider-CqJkEYRZ.js} +2 -2
- package/dist/{MSlider-9RoiuebS.js.map → MSlider-CqJkEYRZ.js.map} +1 -1
- package/dist/{MSpinner-BNF8MN-L.js → MSpinner-Btgc-0nb.js} +2 -2
- package/dist/{MSpinner-BNF8MN-L.js.map → MSpinner-Btgc-0nb.js.map} +1 -1
- package/dist/{MTextField-CuG0T3qh.js → MTextField-B6M0gJEO.js} +2 -2
- package/dist/{MTextField-CuG0T3qh.js.map → MTextField-B6M0gJEO.js.map} +1 -1
- package/dist/{MTooltip-Bv7yxngk.js → MTooltip-Dspji4XG.js} +4 -4
- package/dist/{MTooltip-Bv7yxngk.js.map → MTooltip-Dspji4XG.js.map} +1 -1
- package/dist/api.json +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MAudioPlayer.vue.d.ts +2 -2
- package/dist/components/MAvailabilityCalendar.vue.d.ts +83 -0
- package/dist/components/MBadge.vue.d.ts +1 -1
- package/dist/components/MBeforeAfter.vue.d.ts +61 -0
- package/dist/components/MBodyMap.vue.d.ts +70 -0
- package/dist/components/MCandlestickChart.vue.d.ts +82 -0
- package/dist/components/MCertificate.vue.d.ts +76 -0
- package/dist/components/MCreditCardInput.vue.d.ts +75 -0
- package/dist/components/MFlow.vue.d.ts +13 -0
- package/dist/components/MMortgageCalculator.vue.d.ts +83 -0
- package/dist/components/MOdontogram.vue.d.ts +86 -0
- package/dist/components/MOrderBook.vue.d.ts +89 -0
- package/dist/components/MOrderTicket.vue.d.ts +91 -0
- package/dist/components/MPosKeypad.vue.d.ts +84 -0
- package/dist/components/MProductConfigurator.vue.d.ts +136 -0
- package/dist/components/MQuiz.vue.d.ts +102 -0
- package/dist/components/MReceipt.vue.d.ts +93 -0
- package/dist/components/MSeatMap.vue.d.ts +131 -0
- package/dist/components/MSeekBar.vue.d.ts +1 -1
- package/dist/components/MSlider.vue.d.ts +2 -2
- package/dist/components/MSplitter.vue.d.ts +1 -1
- package/dist/components/MTicket.vue.d.ts +83 -0
- package/dist/components/MTour.vue.d.ts +52 -2
- package/dist/components/MVideoPlayer.vue.d.ts +1 -1
- package/dist/components/MVitalsChart.vue.d.ts +73 -0
- package/dist/composables/_printElement.d.ts +9 -0
- package/dist/composables/cardBrand.d.ts +25 -0
- package/dist/composables/flowPaths.d.ts +11 -3
- package/dist/composables/mortgage.d.ts +37 -0
- package/dist/composables/useFlow.d.ts +4 -0
- package/dist/composables/useLocale.d.ts +131 -0
- package/dist/draw.js +2 -2
- package/dist/flow.d.ts +1 -1
- package/dist/flow.js +526 -434
- package/dist/flow.js.map +1 -1
- package/dist/{flowPaths-DzW-aiET.js → flowPaths-CcWOKY4Z.js} +5 -5
- package/dist/flowPaths-CcWOKY4Z.js.map +1 -0
- package/dist/gantt.js +2 -2
- package/dist/index.d.ts +35 -0
- package/dist/locales/index.js +924 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +8393 -3613
- 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-D2ucaY-l.js → useLocale-DLKJIRFi.js} +133 -2
- package/dist/useLocale-DLKJIRFi.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MAvailabilityCalendar.test.ts +85 -0
- package/src/__tests__/MBeforeAfter.test.ts +79 -0
- package/src/__tests__/MBodyMap.test.ts +60 -0
- package/src/__tests__/MCandlestickChart.test.ts +66 -0
- package/src/__tests__/MCertificate.test.ts +32 -0
- package/src/__tests__/MCreditCardInput.test.ts +122 -0
- package/src/__tests__/MFlow.test.ts +69 -0
- package/src/__tests__/MMortgageCalculator.test.ts +49 -0
- package/src/__tests__/MOdontogram.test.ts +93 -0
- package/src/__tests__/MOrderBook.test.ts +66 -0
- package/src/__tests__/MOrderTicket.test.ts +68 -0
- package/src/__tests__/MPosKeypad.test.ts +116 -0
- package/src/__tests__/MProductConfigurator.test.ts +73 -0
- package/src/__tests__/MQuiz.test.ts +104 -0
- package/src/__tests__/MReceipt.test.ts +52 -0
- package/src/__tests__/MSeatMap.test.ts +76 -0
- package/src/__tests__/MTicket.test.ts +38 -0
- package/src/__tests__/MTour.test.ts +102 -0
- package/src/__tests__/MVitalsChart.test.ts +49 -0
- package/src/__tests__/mortgage.test.ts +25 -0
- package/src/__tests__/ssr.test.ts +11 -0
- package/src/components/MAvailabilityCalendar.vue +460 -0
- package/src/components/MBeforeAfter.vue +248 -0
- package/src/components/MBodyMap.vue +266 -0
- package/src/components/MCandlestickChart.vue +479 -0
- package/src/components/MCertificate.vue +351 -0
- package/src/components/MCreditCardInput.vue +351 -0
- package/src/components/MFlow.vue +117 -17
- package/src/components/MMortgageCalculator.vue +258 -0
- package/src/components/MOdontogram.vue +462 -0
- package/src/components/MOrderBook.vue +287 -0
- package/src/components/MOrderTicket.vue +217 -0
- package/src/components/MPosKeypad.vue +406 -0
- package/src/components/MProductConfigurator.vue +412 -0
- package/src/components/MQuiz.vue +531 -0
- package/src/components/MReceipt.vue +249 -0
- package/src/components/MSeatMap.vue +431 -0
- package/src/components/MTicket.vue +209 -0
- package/src/components/MTour.vue +145 -27
- package/src/components/MVitalsChart.vue +303 -0
- package/src/composables/_printElement.ts +36 -0
- package/src/composables/cardBrand.ts +104 -0
- package/src/composables/flowPaths.ts +16 -7
- package/src/composables/mortgage.ts +70 -0
- package/src/composables/useFlow.ts +4 -0
- package/src/composables/useLocale.ts +277 -0
- package/src/flow.ts +1 -1
- package/src/index.ts +35 -0
- package/src/locales/de.ts +131 -0
- package/src/locales/es.ts +131 -0
- package/src/locales/fr.ts +131 -0
- package/src/locales/ja.ts +131 -0
- package/src/locales/ko.ts +131 -0
- package/src/locales/pt.ts +131 -0
- package/src/locales/zh.ts +131 -0
- package/dist/flowPaths-DzW-aiET.js.map +0 -1
- package/dist/useLocale-D2ucaY-l.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-DLKJIRFi.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";
|
|
@@ -97,13 +97,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
97
97
|
playing: boolean;
|
|
98
98
|
variant: "mini" | "standard";
|
|
99
99
|
rate: number;
|
|
100
|
+
volume: number;
|
|
101
|
+
shuffle: boolean;
|
|
100
102
|
autoplay: boolean;
|
|
101
103
|
currentTime: number;
|
|
102
|
-
volume: number;
|
|
103
104
|
muted: boolean;
|
|
104
105
|
hasPrevious: boolean;
|
|
105
106
|
hasNext: boolean;
|
|
106
|
-
shuffle: boolean;
|
|
107
107
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
108
108
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
109
109
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
type Range = [string | null, string | null];
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** `[checkIn, checkOut]` as `YYYY-MM-DD` (v-model) */
|
|
4
|
+
modelValue?: Range;
|
|
5
|
+
/** Price of the night starting on each date: a map or a function */
|
|
6
|
+
prices?: Record<string, number> | ((date: string) => number | undefined);
|
|
7
|
+
/** Nights already booked or closed: a list of dates or a function */
|
|
8
|
+
unavailable?: string[] | ((date: string) => boolean);
|
|
9
|
+
/** Shortest stay, in nights */
|
|
10
|
+
minNights?: number;
|
|
11
|
+
/** Longest stay, in nights */
|
|
12
|
+
maxNights?: number;
|
|
13
|
+
/** First bookable date. Defaults to today */
|
|
14
|
+
min?: string;
|
|
15
|
+
/** Last bookable night */
|
|
16
|
+
max?: string;
|
|
17
|
+
/** Months shown side by side (they wrap on narrow screens) */
|
|
18
|
+
months?: number;
|
|
19
|
+
/** 0 = Sunday … 6 = Saturday. Defaults to the locale's first day of the week */
|
|
20
|
+
firstDayOfWeek?: number;
|
|
21
|
+
/** ISO 4217 code to format prices */
|
|
22
|
+
currency?: string;
|
|
23
|
+
/** Colors the cheapest quarter of the nights shown as deals */
|
|
24
|
+
highlightDeals?: boolean;
|
|
25
|
+
/** Hides the summary under the months */
|
|
26
|
+
hideFooter?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
type DayState = 'start' | 'end' | 'range' | 'preview' | 'booked' | 'disabled' | 'available' | 'checkout-only';
|
|
30
|
+
declare function clear(): void;
|
|
31
|
+
declare var __VLS_15: {
|
|
32
|
+
date: string;
|
|
33
|
+
day: number;
|
|
34
|
+
price: number | undefined;
|
|
35
|
+
state: DayState;
|
|
36
|
+
}, __VLS_17: {
|
|
37
|
+
start: string | null;
|
|
38
|
+
end: string | null;
|
|
39
|
+
nights: number;
|
|
40
|
+
total: number;
|
|
41
|
+
clear: typeof clear;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Slots = {} & {
|
|
44
|
+
day?: (props: typeof __VLS_15) => any;
|
|
45
|
+
} & {
|
|
46
|
+
footer?: (props: typeof __VLS_17) => any;
|
|
47
|
+
};
|
|
48
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
49
|
+
nights: import("vue").ComputedRef<number>;
|
|
50
|
+
total: import("vue").ComputedRef<number>;
|
|
51
|
+
clear: typeof clear;
|
|
52
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"update:modelValue": (args_0: Range) => any;
|
|
54
|
+
change: (args_0: {
|
|
55
|
+
start: string;
|
|
56
|
+
end: string;
|
|
57
|
+
nights: number;
|
|
58
|
+
total: number;
|
|
59
|
+
}) => any;
|
|
60
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((args_0: Range) => any) | undefined;
|
|
62
|
+
onChange?: ((args_0: {
|
|
63
|
+
start: string;
|
|
64
|
+
end: string;
|
|
65
|
+
nights: number;
|
|
66
|
+
total: number;
|
|
67
|
+
}) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
modelValue: Range;
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
minNights: number;
|
|
72
|
+
months: number;
|
|
73
|
+
highlightDeals: boolean;
|
|
74
|
+
hideFooter: boolean;
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
76
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
77
|
+
declare const _default: typeof __VLS_export;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
22
|
color: "primary" | "error" | "secondary" | "tertiary";
|
|
23
23
|
position: BadgePosition;
|
|
24
|
-
overlap: BadgeOverlap;
|
|
25
24
|
max: number;
|
|
25
|
+
overlap: BadgeOverlap;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Split position as a percentage (v-model). Without v-model the component keeps its own, starting here */
|
|
3
|
+
modelValue?: number;
|
|
4
|
+
/** Image URL of the "before" side (left, or top when vertical) */
|
|
5
|
+
before?: string;
|
|
6
|
+
/** Image URL of the "after" side (right, or bottom when vertical) */
|
|
7
|
+
after?: string;
|
|
8
|
+
/** Alt text of the "before" image */
|
|
9
|
+
beforeAlt?: string;
|
|
10
|
+
/** Alt text of the "after" image */
|
|
11
|
+
afterAlt?: string;
|
|
12
|
+
/** Label chip on the "before" side. Defaults to the locale's "Before"; pass an empty string to hide it */
|
|
13
|
+
beforeLabel?: string;
|
|
14
|
+
/** Label chip on the "after" side. Defaults to the locale's "After"; pass an empty string to hide it */
|
|
15
|
+
afterLabel?: string;
|
|
16
|
+
/** Direction the divider moves in */
|
|
17
|
+
orientation?: 'horizontal' | 'vertical';
|
|
18
|
+
/** Moves the split with the pointer on hover, without pressing (mouse only; touch still drags) */
|
|
19
|
+
hover?: boolean;
|
|
20
|
+
/** CSS aspect-ratio of the box, e.g. "16 / 9". Unset sizes to the "after" content */
|
|
21
|
+
aspectRatio?: string;
|
|
22
|
+
/** Hides the round grip, leaving only the divider line */
|
|
23
|
+
hideHandle?: boolean;
|
|
24
|
+
/** Percentage moved by an arrow key (Page Up/Down move 10×) */
|
|
25
|
+
step?: number;
|
|
26
|
+
/** Disables dragging and the keyboard */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {
|
|
30
|
+
position: number;
|
|
31
|
+
dragging: boolean;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
after?: (props: typeof __VLS_1) => any;
|
|
35
|
+
} & {
|
|
36
|
+
before?: (props: typeof __VLS_3) => any;
|
|
37
|
+
} & {
|
|
38
|
+
handle?: (props: typeof __VLS_5) => any;
|
|
39
|
+
};
|
|
40
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
"update:modelValue": (args_0: number) => any;
|
|
42
|
+
change: (args_0: number) => any;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
44
|
+
"onUpdate:modelValue"?: ((args_0: number) => any) | undefined;
|
|
45
|
+
onChange?: ((args_0: number) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
hover: boolean;
|
|
48
|
+
modelValue: number;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
step: number;
|
|
51
|
+
orientation: "horizontal" | "vertical";
|
|
52
|
+
hideHandle: boolean;
|
|
53
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
|
+
declare const _default: typeof __VLS_export;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** Marked regions of an `MBodyMap`: region id → level (1…levels). Regions not in the record are unmarked. */
|
|
2
|
+
export type BodyMapValue = Record<string, number>;
|
|
3
|
+
/** A region of the body map, as passed to `select` and the `region` slot. */
|
|
4
|
+
export interface BodyRegion {
|
|
5
|
+
/** e.g. "head", "shoulder-right", "back-calf-left" */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Translated name, e.g. "Shoulder, right" */
|
|
8
|
+
label: string;
|
|
9
|
+
view: 'front' | 'back';
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
14
|
+
/** Marked regions: id → level (v-model) */
|
|
15
|
+
modelValue?: BodyMapValue;
|
|
16
|
+
/** Levels a region cycles through. 1 = a plain on/off selection */
|
|
17
|
+
levels?: number;
|
|
18
|
+
/** Color of each level (any CSS color). Defaults to a ramp from the error container to the error color */
|
|
19
|
+
levelColors?: string[];
|
|
20
|
+
/** Names of the levels, shown in the legend, e.g. ['Mild', 'Moderate', 'Severe'] */
|
|
21
|
+
levelLabels?: string[];
|
|
22
|
+
/** Which side(s) of the body to draw */
|
|
23
|
+
view?: "front" | "back" | "both";
|
|
24
|
+
/** Region ids that can't be marked */
|
|
25
|
+
disabledRegions?: string[];
|
|
26
|
+
/** Shows the marks but doesn't change them */
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
select: (args_0: BodyRegion & {
|
|
30
|
+
level: number;
|
|
31
|
+
}) => any;
|
|
32
|
+
"update:modelValue": (args_0: BodyMapValue) => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
34
|
+
/** Marked regions: id → level (v-model) */
|
|
35
|
+
modelValue?: BodyMapValue;
|
|
36
|
+
/** Levels a region cycles through. 1 = a plain on/off selection */
|
|
37
|
+
levels?: number;
|
|
38
|
+
/** Color of each level (any CSS color). Defaults to a ramp from the error container to the error color */
|
|
39
|
+
levelColors?: string[];
|
|
40
|
+
/** Names of the levels, shown in the legend, e.g. ['Mild', 'Moderate', 'Severe'] */
|
|
41
|
+
levelLabels?: string[];
|
|
42
|
+
/** Which side(s) of the body to draw */
|
|
43
|
+
view?: "front" | "back" | "both";
|
|
44
|
+
/** Region ids that can't be marked */
|
|
45
|
+
disabledRegions?: string[];
|
|
46
|
+
/** Shows the marks but doesn't change them */
|
|
47
|
+
readonly?: boolean;
|
|
48
|
+
}> & Readonly<{
|
|
49
|
+
onSelect?: ((args_0: BodyRegion & {
|
|
50
|
+
level: number;
|
|
51
|
+
}) => any) | undefined;
|
|
52
|
+
"onUpdate:modelValue"?: ((args_0: BodyMapValue) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
view: "front" | "back" | "both";
|
|
55
|
+
modelValue: BodyMapValue;
|
|
56
|
+
readonly: boolean;
|
|
57
|
+
levels: number;
|
|
58
|
+
disabledRegions: string[];
|
|
59
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
60
|
+
legend?: (props: {
|
|
61
|
+
levels: number;
|
|
62
|
+
colors: string[];
|
|
63
|
+
labels: string[] | undefined;
|
|
64
|
+
}) => any;
|
|
65
|
+
}>;
|
|
66
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/** One period of an `MCandlestickChart`. */
|
|
2
|
+
export interface Candle {
|
|
3
|
+
/** Start of the period (Date, ISO string or epoch ms) */
|
|
4
|
+
time: Date | string | number;
|
|
5
|
+
open: number;
|
|
6
|
+
high: number;
|
|
7
|
+
low: number;
|
|
8
|
+
close: number;
|
|
9
|
+
volume?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
14
|
+
/** Candles, oldest first */
|
|
15
|
+
data: Candle[];
|
|
16
|
+
/** Height in px */
|
|
17
|
+
height?: number;
|
|
18
|
+
/** Volume bars under the candles (when the data has volume) */
|
|
19
|
+
volume?: boolean;
|
|
20
|
+
/** Periods of simple moving averages to draw over the candles, e.g. [20, 50] */
|
|
21
|
+
movingAverages?: number[];
|
|
22
|
+
/** Candles visible at first (the latest ones) */
|
|
23
|
+
visible?: number;
|
|
24
|
+
/** Color of rising candles (any CSS color) */
|
|
25
|
+
upColor?: string;
|
|
26
|
+
/** Color of falling candles (any CSS color) */
|
|
27
|
+
downColor?: string;
|
|
28
|
+
/** Decimals of prices */
|
|
29
|
+
decimals?: number;
|
|
30
|
+
/** ISO 4217 code to format prices as money */
|
|
31
|
+
currency?: string;
|
|
32
|
+
/** Draws the dashed line at the last close */
|
|
33
|
+
lastPrice?: boolean;
|
|
34
|
+
}, {
|
|
35
|
+
/** Shows the latest candles again */
|
|
36
|
+
reset(): void;
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
hover: (args_0: Candle | null) => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
40
|
+
/** Candles, oldest first */
|
|
41
|
+
data: Candle[];
|
|
42
|
+
/** Height in px */
|
|
43
|
+
height?: number;
|
|
44
|
+
/** Volume bars under the candles (when the data has volume) */
|
|
45
|
+
volume?: boolean;
|
|
46
|
+
/** Periods of simple moving averages to draw over the candles, e.g. [20, 50] */
|
|
47
|
+
movingAverages?: number[];
|
|
48
|
+
/** Candles visible at first (the latest ones) */
|
|
49
|
+
visible?: number;
|
|
50
|
+
/** Color of rising candles (any CSS color) */
|
|
51
|
+
upColor?: string;
|
|
52
|
+
/** Color of falling candles (any CSS color) */
|
|
53
|
+
downColor?: string;
|
|
54
|
+
/** Decimals of prices */
|
|
55
|
+
decimals?: number;
|
|
56
|
+
/** ISO 4217 code to format prices as money */
|
|
57
|
+
currency?: string;
|
|
58
|
+
/** Draws the dashed line at the last close */
|
|
59
|
+
lastPrice?: boolean;
|
|
60
|
+
}> & Readonly<{
|
|
61
|
+
onHover?: ((args_0: Candle | null) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
height: number;
|
|
64
|
+
visible: number;
|
|
65
|
+
decimals: number;
|
|
66
|
+
volume: boolean;
|
|
67
|
+
movingAverages: number[];
|
|
68
|
+
upColor: string;
|
|
69
|
+
downColor: string;
|
|
70
|
+
lastPrice: boolean;
|
|
71
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
72
|
+
legend?: (props: {
|
|
73
|
+
candle: Candle | undefined;
|
|
74
|
+
change: number;
|
|
75
|
+
changePercent: number;
|
|
76
|
+
}) => any;
|
|
77
|
+
}>;
|
|
78
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
79
|
+
new (): {
|
|
80
|
+
$slots: S;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/** A signature line of an `MCertificate`. */
|
|
2
|
+
export interface CertificateSignature {
|
|
3
|
+
name: string;
|
|
4
|
+
/** e.g. "Course director" */
|
|
5
|
+
role?: string;
|
|
6
|
+
/** Image of the signature (a URL or a data URL, e.g. from MSignaturePad), drawn over the line */
|
|
7
|
+
image?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
12
|
+
/** Who receives it */
|
|
13
|
+
recipient: string;
|
|
14
|
+
/** Big title. Defaults to the locale's "Certificate of completion" */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** Line before the name. Defaults to the locale's "This certifies that" */
|
|
17
|
+
presentedTo?: string;
|
|
18
|
+
/** What it is for, e.g. "has completed the course Vue 3 Fundamentals (24 hours)" */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Name of the issuing organization */
|
|
21
|
+
issuer?: string;
|
|
22
|
+
/** Date it was awarded (Date, ISO string or epoch ms) */
|
|
23
|
+
date?: Date | string | number;
|
|
24
|
+
/** Certificate number or verification code */
|
|
25
|
+
code?: string;
|
|
26
|
+
signatures?: CertificateSignature[];
|
|
27
|
+
/** Look of the certificate */
|
|
28
|
+
variant?: "classic" | "modern" | "minimal";
|
|
29
|
+
/** Accent color: a role (primary, secondary, tertiary, error, success) or any CSS color */
|
|
30
|
+
color?: string;
|
|
31
|
+
/** Material Symbol in the seal; `false` hides the seal */
|
|
32
|
+
seal?: string | false;
|
|
33
|
+
orientation?: "landscape" | "portrait";
|
|
34
|
+
}, {
|
|
35
|
+
print: () => void;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
37
|
+
/** Who receives it */
|
|
38
|
+
recipient: string;
|
|
39
|
+
/** Big title. Defaults to the locale's "Certificate of completion" */
|
|
40
|
+
title?: string;
|
|
41
|
+
/** Line before the name. Defaults to the locale's "This certifies that" */
|
|
42
|
+
presentedTo?: string;
|
|
43
|
+
/** What it is for, e.g. "has completed the course Vue 3 Fundamentals (24 hours)" */
|
|
44
|
+
description?: string;
|
|
45
|
+
/** Name of the issuing organization */
|
|
46
|
+
issuer?: string;
|
|
47
|
+
/** Date it was awarded (Date, ISO string or epoch ms) */
|
|
48
|
+
date?: Date | string | number;
|
|
49
|
+
/** Certificate number or verification code */
|
|
50
|
+
code?: string;
|
|
51
|
+
signatures?: CertificateSignature[];
|
|
52
|
+
/** Look of the certificate */
|
|
53
|
+
variant?: "classic" | "modern" | "minimal";
|
|
54
|
+
/** Accent color: a role (primary, secondary, tertiary, error, success) or any CSS color */
|
|
55
|
+
color?: string;
|
|
56
|
+
/** Material Symbol in the seal; `false` hides the seal */
|
|
57
|
+
seal?: string | false;
|
|
58
|
+
orientation?: "landscape" | "portrait";
|
|
59
|
+
}> & Readonly<{}>, {
|
|
60
|
+
color: string;
|
|
61
|
+
variant: "classic" | "modern" | "minimal";
|
|
62
|
+
orientation: "landscape" | "portrait";
|
|
63
|
+
signatures: CertificateSignature[];
|
|
64
|
+
seal: string | false;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
66
|
+
logo?: (props: {}) => any;
|
|
67
|
+
} & {
|
|
68
|
+
default?: (props: {}) => any;
|
|
69
|
+
} & {
|
|
70
|
+
seal?: (props: {}) => any;
|
|
71
|
+
}>;
|
|
72
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type CardBrand } from '../composables/cardBrand';
|
|
2
|
+
/** Value of `MCreditCardInput` (v-model). `number` holds digits only; `expiry` is `MM/YY`. */
|
|
3
|
+
export interface CreditCardValue {
|
|
4
|
+
number: string;
|
|
5
|
+
expiry: string;
|
|
6
|
+
cvc: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
export type CreditCardField = 'number' | 'expiry' | 'cvc' | 'name';
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
13
|
+
/** Card value (v-model) */
|
|
14
|
+
modelValue: CreditCardValue;
|
|
15
|
+
/** Shows the card preview above the fields */
|
|
16
|
+
preview?: boolean;
|
|
17
|
+
/** Adds the "Name on card" field */
|
|
18
|
+
showName?: boolean;
|
|
19
|
+
/** Visual style of the fields */
|
|
20
|
+
variant?: "filled" | "outlined";
|
|
21
|
+
/** Moves focus to the next field once one is complete and valid */
|
|
22
|
+
autoAdvance?: boolean;
|
|
23
|
+
/** Error messages to show regardless of the built-in checks, e.g. a decline from the server */
|
|
24
|
+
errors?: Partial<Record<CreditCardField, string>>;
|
|
25
|
+
/** Disables every field */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}, {
|
|
28
|
+
/** Detected card network */
|
|
29
|
+
brand: import("vue").ComputedRef<CardBrand>;
|
|
30
|
+
/** Whether every field is valid */
|
|
31
|
+
valid: import("vue").ComputedRef<boolean>;
|
|
32
|
+
/** Shows the errors of every field (as if each had been visited) and returns whether all are valid */
|
|
33
|
+
validate: () => boolean;
|
|
34
|
+
/** Focuses a field (the number by default) */
|
|
35
|
+
focus: (field?: CreditCardField) => void | undefined;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
"update:modelValue": (args_0: CreditCardValue) => any;
|
|
38
|
+
complete: (args_0: CreditCardValue) => any;
|
|
39
|
+
brand: (args_0: CardBrand) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
41
|
+
/** Card value (v-model) */
|
|
42
|
+
modelValue: CreditCardValue;
|
|
43
|
+
/** Shows the card preview above the fields */
|
|
44
|
+
preview?: boolean;
|
|
45
|
+
/** Adds the "Name on card" field */
|
|
46
|
+
showName?: boolean;
|
|
47
|
+
/** Visual style of the fields */
|
|
48
|
+
variant?: "filled" | "outlined";
|
|
49
|
+
/** Moves focus to the next field once one is complete and valid */
|
|
50
|
+
autoAdvance?: boolean;
|
|
51
|
+
/** Error messages to show regardless of the built-in checks, e.g. a decline from the server */
|
|
52
|
+
errors?: Partial<Record<CreditCardField, string>>;
|
|
53
|
+
/** Disables every field */
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
}> & Readonly<{
|
|
56
|
+
"onUpdate:modelValue"?: ((args_0: CreditCardValue) => any) | undefined;
|
|
57
|
+
onComplete?: ((args_0: CreditCardValue) => any) | undefined;
|
|
58
|
+
onBrand?: ((args_0: CardBrand) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
variant: "filled" | "outlined";
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
preview: boolean;
|
|
63
|
+
showName: boolean;
|
|
64
|
+
autoAdvance: boolean;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
66
|
+
brand?: (props: {
|
|
67
|
+
brand: CardBrand;
|
|
68
|
+
name: string;
|
|
69
|
+
}) => any;
|
|
70
|
+
}>;
|
|
71
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -39,6 +39,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
39
39
|
* the route in `edge.route`), or drag a leg at either end to add a jog. Default off
|
|
40
40
|
*/
|
|
41
41
|
edgesReroutable?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* `smoothstep`/`step` edges from different sources whose middle runs would lie on top of each other, running the
|
|
44
|
+
* same way, are moved apart by this many px, so two wires never read as one (edges from the same output may share
|
|
45
|
+
* a run). Edges with their own `route` stay put and the others keep off them. Default 0: off
|
|
46
|
+
*/
|
|
47
|
+
edgeSpacing?: number;
|
|
42
48
|
/** Merged into edges made by connecting (`type`, `animated`, `markerEnd`…) */
|
|
43
49
|
defaultEdgeOptions?: Partial<FlowEdge>;
|
|
44
50
|
/** Adds an edge to `edges` when a connection is made; off, only `connect` fires */
|
|
@@ -192,6 +198,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
192
198
|
* the route in `edge.route`), or drag a leg at either end to add a jog. Default off
|
|
193
199
|
*/
|
|
194
200
|
edgesReroutable?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* `smoothstep`/`step` edges from different sources whose middle runs would lie on top of each other, running the
|
|
203
|
+
* same way, are moved apart by this many px, so two wires never read as one (edges from the same output may share
|
|
204
|
+
* a run). Edges with their own `route` stay put and the others keep off them. Default 0: off
|
|
205
|
+
*/
|
|
206
|
+
edgeSpacing?: number;
|
|
195
207
|
/** Merged into edges made by connecting (`type`, `animated`, `markerEnd`…) */
|
|
196
208
|
defaultEdgeOptions?: Partial<FlowEdge>;
|
|
197
209
|
/** Adds an edge to `edges` when a connection is made; off, only `connect` fires */
|
|
@@ -335,6 +347,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
335
347
|
elementsSelectable: boolean;
|
|
336
348
|
edgesReconnectable: boolean;
|
|
337
349
|
edgesReroutable: boolean;
|
|
350
|
+
edgeSpacing: number;
|
|
338
351
|
autoConnect: boolean;
|
|
339
352
|
connectionRadius: number;
|
|
340
353
|
deleteKeys: string[] | null;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** The inputs of an `MMortgageCalculator` (its v-model). */
|
|
2
|
+
export interface MortgageInput {
|
|
3
|
+
/** Price of the property */
|
|
4
|
+
price: number;
|
|
5
|
+
/** Down payment, in money (not percent) */
|
|
6
|
+
down: number;
|
|
7
|
+
/** Yearly interest rate, in percent */
|
|
8
|
+
rate: number;
|
|
9
|
+
/** Term in years */
|
|
10
|
+
years: number;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
15
|
+
/** The inputs (v-model) */
|
|
16
|
+
modelValue: MortgageInput;
|
|
17
|
+
/** `french`: fixed payment. `german`: fixed principal, payments fall over time */
|
|
18
|
+
system?: "french" | "german";
|
|
19
|
+
/** Terms offered, in years */
|
|
20
|
+
terms?: number[];
|
|
21
|
+
/** Monthly costs added on top of the loan payment, e.g. property tax or insurance */
|
|
22
|
+
extras?: {
|
|
23
|
+
label: string;
|
|
24
|
+
amount: number;
|
|
25
|
+
}[];
|
|
26
|
+
/** ISO 4217 code to format amounts */
|
|
27
|
+
currency?: string;
|
|
28
|
+
/** Fields layout: the default filled or outlined */
|
|
29
|
+
variant?: "filled" | "outlined";
|
|
30
|
+
/** Hides the inputs, showing only the results (for a read-only quote) */
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
/** Shows the yearly schedule open */
|
|
33
|
+
scheduleOpen?: boolean;
|
|
34
|
+
}, {
|
|
35
|
+
loan: import("vue").ComputedRef<number>;
|
|
36
|
+
monthly: import("vue").ComputedRef<number>;
|
|
37
|
+
schedule: import("vue").ComputedRef<import("../index.ts").Amortization>;
|
|
38
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
"update:modelValue": (args_0: MortgageInput) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
41
|
+
/** The inputs (v-model) */
|
|
42
|
+
modelValue: MortgageInput;
|
|
43
|
+
/** `french`: fixed payment. `german`: fixed principal, payments fall over time */
|
|
44
|
+
system?: "french" | "german";
|
|
45
|
+
/** Terms offered, in years */
|
|
46
|
+
terms?: number[];
|
|
47
|
+
/** Monthly costs added on top of the loan payment, e.g. property tax or insurance */
|
|
48
|
+
extras?: {
|
|
49
|
+
label: string;
|
|
50
|
+
amount: number;
|
|
51
|
+
}[];
|
|
52
|
+
/** ISO 4217 code to format amounts */
|
|
53
|
+
currency?: string;
|
|
54
|
+
/** Fields layout: the default filled or outlined */
|
|
55
|
+
variant?: "filled" | "outlined";
|
|
56
|
+
/** Hides the inputs, showing only the results (for a read-only quote) */
|
|
57
|
+
readonly?: boolean;
|
|
58
|
+
/** Shows the yearly schedule open */
|
|
59
|
+
scheduleOpen?: boolean;
|
|
60
|
+
}> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((args_0: MortgageInput) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
readonly: boolean;
|
|
64
|
+
variant: "filled" | "outlined";
|
|
65
|
+
system: "french" | "german";
|
|
66
|
+
terms: number[];
|
|
67
|
+
extras: {
|
|
68
|
+
label: string;
|
|
69
|
+
amount: number;
|
|
70
|
+
}[];
|
|
71
|
+
scheduleOpen: boolean;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
73
|
+
summary?: (props: {
|
|
74
|
+
loan: number;
|
|
75
|
+
monthly: number;
|
|
76
|
+
schedule: import("../index.ts").Amortization;
|
|
77
|
+
}) => any;
|
|
78
|
+
}>;
|
|
79
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|