@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/** A seat type: its key is the character that marks it in `layout`. */
|
|
2
|
+
export interface SeatCategory {
|
|
3
|
+
/** Single character used for this category in `layout` rows */
|
|
4
|
+
key: string;
|
|
5
|
+
/** Name shown in the legend and the seat's label, e.g. "Premium" */
|
|
6
|
+
label: string;
|
|
7
|
+
/** A color role (`primary`, `secondary`, `tertiary`, `error`, `success`) or any CSS color. Default `primary` */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Price, shown in the legend and the seat's label */
|
|
10
|
+
price?: number;
|
|
11
|
+
}
|
|
12
|
+
/** A seat as laid out by `MSeatMap`, given to the `seat` slot and the `select` event. */
|
|
13
|
+
export interface SeatInfo {
|
|
14
|
+
/** Id used in v-model, `occupied` and `blocked`: "F12" (theater naming) or "12C" (plane naming) */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Row label, e.g. "F" or "12" */
|
|
17
|
+
row: string;
|
|
18
|
+
/** Seat label within the row, e.g. "12" or "C" */
|
|
19
|
+
number: string;
|
|
20
|
+
/** Category key (the layout character) */
|
|
21
|
+
category: string;
|
|
22
|
+
/** Grid row and column (0-based, gaps included) */
|
|
23
|
+
r: number;
|
|
24
|
+
c: number;
|
|
25
|
+
}
|
|
26
|
+
export type SeatState = 'available' | 'selected' | 'occupied' | 'blocked';
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
30
|
+
/** Ids of the selected seats (v-model) */
|
|
31
|
+
modelValue?: string[];
|
|
32
|
+
/** Rows of the hall, top to bottom. Each character is a seat of that category; `_` or a space is a gap */
|
|
33
|
+
layout: string[];
|
|
34
|
+
/** Seat categories by layout character. Characters without one use a default "Standard" look */
|
|
35
|
+
categories?: SeatCategory[];
|
|
36
|
+
/** Ids of seats already taken */
|
|
37
|
+
occupied?: string[];
|
|
38
|
+
/** Ids of seats that can't be picked (out of service, kept free) */
|
|
39
|
+
blocked?: string[];
|
|
40
|
+
/** Seat naming: row letters + seat numbers ("F12"), or row numbers + seat letters ("12C") */
|
|
41
|
+
naming?: "theater" | "plane";
|
|
42
|
+
/** Custom row labels, one per seat row (blank rows don't count) */
|
|
43
|
+
rowLabels?: string[];
|
|
44
|
+
/** Seats are numbered from the left (`ltr`) or from the right (`rtl`) of each row */
|
|
45
|
+
numbering?: "ltr" | "rtl";
|
|
46
|
+
/** Most seats that can be selected */
|
|
47
|
+
max?: number;
|
|
48
|
+
/** Label of the screen/stage. Defaults to the locale's "Screen"; `false` hides it */
|
|
49
|
+
stage?: string | false;
|
|
50
|
+
/** Side the screen/stage is drawn on */
|
|
51
|
+
stagePosition?: "top" | "bottom";
|
|
52
|
+
/** Seat size in px */
|
|
53
|
+
seatSize?: number;
|
|
54
|
+
/** Shows row labels at both ends of each row */
|
|
55
|
+
showRowLabels?: boolean;
|
|
56
|
+
/** Shows the legend */
|
|
57
|
+
legend?: boolean;
|
|
58
|
+
/** ISO 4217 code to format prices (e.g. "USD"). Unset shows plain numbers */
|
|
59
|
+
currency?: string;
|
|
60
|
+
/** Disables picking */
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
select: (args_0: SeatInfo, args_1: boolean) => any;
|
|
64
|
+
"update:modelValue": (args_0: string[]) => any;
|
|
65
|
+
limit: () => any;
|
|
66
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
67
|
+
/** Ids of the selected seats (v-model) */
|
|
68
|
+
modelValue?: string[];
|
|
69
|
+
/** Rows of the hall, top to bottom. Each character is a seat of that category; `_` or a space is a gap */
|
|
70
|
+
layout: string[];
|
|
71
|
+
/** Seat categories by layout character. Characters without one use a default "Standard" look */
|
|
72
|
+
categories?: SeatCategory[];
|
|
73
|
+
/** Ids of seats already taken */
|
|
74
|
+
occupied?: string[];
|
|
75
|
+
/** Ids of seats that can't be picked (out of service, kept free) */
|
|
76
|
+
blocked?: string[];
|
|
77
|
+
/** Seat naming: row letters + seat numbers ("F12"), or row numbers + seat letters ("12C") */
|
|
78
|
+
naming?: "theater" | "plane";
|
|
79
|
+
/** Custom row labels, one per seat row (blank rows don't count) */
|
|
80
|
+
rowLabels?: string[];
|
|
81
|
+
/** Seats are numbered from the left (`ltr`) or from the right (`rtl`) of each row */
|
|
82
|
+
numbering?: "ltr" | "rtl";
|
|
83
|
+
/** Most seats that can be selected */
|
|
84
|
+
max?: number;
|
|
85
|
+
/** Label of the screen/stage. Defaults to the locale's "Screen"; `false` hides it */
|
|
86
|
+
stage?: string | false;
|
|
87
|
+
/** Side the screen/stage is drawn on */
|
|
88
|
+
stagePosition?: "top" | "bottom";
|
|
89
|
+
/** Seat size in px */
|
|
90
|
+
seatSize?: number;
|
|
91
|
+
/** Shows row labels at both ends of each row */
|
|
92
|
+
showRowLabels?: boolean;
|
|
93
|
+
/** Shows the legend */
|
|
94
|
+
legend?: boolean;
|
|
95
|
+
/** ISO 4217 code to format prices (e.g. "USD"). Unset shows plain numbers */
|
|
96
|
+
currency?: string;
|
|
97
|
+
/** Disables picking */
|
|
98
|
+
disabled?: boolean;
|
|
99
|
+
}> & Readonly<{
|
|
100
|
+
onSelect?: ((args_0: SeatInfo, args_1: boolean) => any) | undefined;
|
|
101
|
+
"onUpdate:modelValue"?: ((args_0: string[]) => any) | undefined;
|
|
102
|
+
onLimit?: (() => any) | undefined;
|
|
103
|
+
}>, {
|
|
104
|
+
legend: boolean;
|
|
105
|
+
modelValue: string[];
|
|
106
|
+
disabled: boolean;
|
|
107
|
+
categories: SeatCategory[];
|
|
108
|
+
occupied: string[];
|
|
109
|
+
stage: string | false;
|
|
110
|
+
blocked: string[];
|
|
111
|
+
naming: "theater" | "plane";
|
|
112
|
+
numbering: "ltr" | "rtl";
|
|
113
|
+
stagePosition: "top" | "bottom";
|
|
114
|
+
seatSize: number;
|
|
115
|
+
showRowLabels: boolean;
|
|
116
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
117
|
+
seat?: (props: {
|
|
118
|
+
seat: SeatInfo;
|
|
119
|
+
state: SeatState;
|
|
120
|
+
category: SeatCategory | undefined;
|
|
121
|
+
}) => any;
|
|
122
|
+
} & {
|
|
123
|
+
legend?: (props: {
|
|
124
|
+
categories: SeatCategory[];
|
|
125
|
+
}) => any;
|
|
126
|
+
}>;
|
|
127
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
128
|
+
new (): {
|
|
129
|
+
$slots: S;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -105,8 +105,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
105
105
|
variant: "slider" | "line" | "wavy";
|
|
106
106
|
disabled: boolean;
|
|
107
107
|
preview: boolean;
|
|
108
|
-
playbackRate: number;
|
|
109
108
|
remaining: boolean;
|
|
109
|
+
playbackRate: number;
|
|
110
110
|
keyStep: number;
|
|
111
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
112
112
|
preview?: (props: {
|
|
@@ -44,9 +44,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
44
44
|
variant: "standard" | "centered" | "range";
|
|
45
45
|
disabled: boolean;
|
|
46
46
|
step: number;
|
|
47
|
-
orientation: "horizontal" | "vertical";
|
|
48
|
-
max: number;
|
|
49
47
|
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
orientation: "horizontal" | "vertical";
|
|
50
50
|
showValue: boolean;
|
|
51
51
|
showTooltip: boolean;
|
|
52
52
|
stops: boolean;
|
|
@@ -16,8 +16,8 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
18
|
direction: "horizontal" | "vertical";
|
|
19
|
-
max: number;
|
|
20
19
|
min: number;
|
|
20
|
+
max: number;
|
|
21
21
|
initialSplit: number;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** One end of a trip in an `MTicket`: an airport, a station, a terminal. */
|
|
2
|
+
export interface TicketStop {
|
|
3
|
+
/** Short code shown big, e.g. "EZE" or "RET" */
|
|
4
|
+
code: string;
|
|
5
|
+
/** City or station name under the code */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** Departure / arrival time, shown under the name */
|
|
8
|
+
time?: string;
|
|
9
|
+
}
|
|
10
|
+
/** A label/value pair on an `MTicket`, e.g. `{ label: 'Gate', value: 'B12' }`. */
|
|
11
|
+
export interface TicketField {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string | number;
|
|
14
|
+
/** Emphasizes the value (e.g. the seat or the gate) */
|
|
15
|
+
strong?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
20
|
+
/** Title in the colored band, e.g. the airline, the event or the movie */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** A line under the title, e.g. the venue or the date */
|
|
23
|
+
subtitle?: string;
|
|
24
|
+
/** Material Symbol before the title */
|
|
25
|
+
icon?: string;
|
|
26
|
+
/** Band color: a role (primary, secondary, tertiary, error, success) or any CSS color */
|
|
27
|
+
color?: string;
|
|
28
|
+
/** Where the trip starts */
|
|
29
|
+
from?: TicketStop;
|
|
30
|
+
/** Where the trip ends */
|
|
31
|
+
to?: TicketStop;
|
|
32
|
+
/** Material Symbol between from and to */
|
|
33
|
+
transport?: string;
|
|
34
|
+
/** Label/value pairs in a grid */
|
|
35
|
+
fields?: TicketField[];
|
|
36
|
+
/** Stub beside the main part (an event ticket) or under it (a phone boarding pass) */
|
|
37
|
+
orientation?: "horizontal" | "vertical";
|
|
38
|
+
/** Width of the stub in horizontal orientation (any CSS length) */
|
|
39
|
+
stubSize?: string;
|
|
40
|
+
/** Radius of the notches cut at the perforation, in px */
|
|
41
|
+
notch?: number;
|
|
42
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
43
|
+
/** Title in the colored band, e.g. the airline, the event or the movie */
|
|
44
|
+
title?: string;
|
|
45
|
+
/** A line under the title, e.g. the venue or the date */
|
|
46
|
+
subtitle?: string;
|
|
47
|
+
/** Material Symbol before the title */
|
|
48
|
+
icon?: string;
|
|
49
|
+
/** Band color: a role (primary, secondary, tertiary, error, success) or any CSS color */
|
|
50
|
+
color?: string;
|
|
51
|
+
/** Where the trip starts */
|
|
52
|
+
from?: TicketStop;
|
|
53
|
+
/** Where the trip ends */
|
|
54
|
+
to?: TicketStop;
|
|
55
|
+
/** Material Symbol between from and to */
|
|
56
|
+
transport?: string;
|
|
57
|
+
/** Label/value pairs in a grid */
|
|
58
|
+
fields?: TicketField[];
|
|
59
|
+
/** Stub beside the main part (an event ticket) or under it (a phone boarding pass) */
|
|
60
|
+
orientation?: "horizontal" | "vertical";
|
|
61
|
+
/** Width of the stub in horizontal orientation (any CSS length) */
|
|
62
|
+
stubSize?: string;
|
|
63
|
+
/** Radius of the notches cut at the perforation, in px */
|
|
64
|
+
notch?: number;
|
|
65
|
+
}> & Readonly<{}>, {
|
|
66
|
+
color: string;
|
|
67
|
+
fields: TicketField[];
|
|
68
|
+
orientation: "horizontal" | "vertical";
|
|
69
|
+
transport: string;
|
|
70
|
+
stubSize: string;
|
|
71
|
+
notch: number;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
73
|
+
header?: (props: {}) => any;
|
|
74
|
+
} & {
|
|
75
|
+
default?: (props: {}) => any;
|
|
76
|
+
} & {
|
|
77
|
+
stub?: (props: {}) => any;
|
|
78
|
+
}>;
|
|
79
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export interface TourStep {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The element to highlight and point at: a CSS selector, or a function returning the element (looked up again
|
|
4
|
+
* on every frame in `interactive` mode, so it can change). None, or none found: the tooltip sits in the viewport,
|
|
5
|
+
* on its `placement` side (centered without one)
|
|
6
|
+
*/
|
|
7
|
+
target?: string | (() => Element | null | undefined);
|
|
3
8
|
title: string;
|
|
4
9
|
content: string;
|
|
5
10
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -15,13 +20,58 @@ type __VLS_Props = {
|
|
|
15
20
|
nextLabel?: string;
|
|
16
21
|
/** Label for the final step's button (defaults to the locale string, 'Finish') */
|
|
17
22
|
finishLabel?: string;
|
|
23
|
+
/** The current step's index (v-model:step); without it the tour keeps its own */
|
|
24
|
+
step?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Leaves the page usable while the tour is open: no scrim, a ring drawn over the target instead of lifting the
|
|
27
|
+
* target itself, tooltip and ring following the target as it moves, no scrolling to it
|
|
28
|
+
*/
|
|
29
|
+
interactive?: boolean;
|
|
18
30
|
};
|
|
19
|
-
declare
|
|
31
|
+
declare function goNext(): void;
|
|
32
|
+
declare function goPrev(): void;
|
|
33
|
+
declare function close(): void;
|
|
34
|
+
declare var __VLS_19: {
|
|
35
|
+
index: number;
|
|
36
|
+
count: number;
|
|
37
|
+
}, __VLS_26: {
|
|
38
|
+
step: TourStep;
|
|
39
|
+
index: number;
|
|
40
|
+
}, __VLS_28: {
|
|
41
|
+
index: number;
|
|
42
|
+
count: number;
|
|
43
|
+
}, __VLS_30: {
|
|
44
|
+
step: TourStep;
|
|
45
|
+
index: number;
|
|
46
|
+
isFirst: boolean;
|
|
47
|
+
isLast: boolean;
|
|
48
|
+
next: typeof goNext;
|
|
49
|
+
prev: typeof goPrev;
|
|
50
|
+
close: typeof close;
|
|
51
|
+
};
|
|
52
|
+
type __VLS_Slots = {} & {
|
|
53
|
+
indicator?: (props: typeof __VLS_19) => any;
|
|
54
|
+
} & {
|
|
55
|
+
content?: (props: typeof __VLS_26) => any;
|
|
56
|
+
} & {
|
|
57
|
+
progress?: (props: typeof __VLS_28) => any;
|
|
58
|
+
} & {
|
|
59
|
+
actions?: (props: typeof __VLS_30) => any;
|
|
60
|
+
};
|
|
61
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
62
|
"update:modelValue": (args_0: boolean) => any;
|
|
21
63
|
finish: () => any;
|
|
64
|
+
"update:step": (args_0: number) => any;
|
|
22
65
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
66
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
24
67
|
onFinish?: (() => any) | undefined;
|
|
68
|
+
"onUpdate:step"?: ((args_0: number) => any) | undefined;
|
|
25
69
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
71
|
declare const _default: typeof __VLS_export;
|
|
27
72
|
export default _default;
|
|
73
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
74
|
+
new (): {
|
|
75
|
+
$slots: S;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -189,9 +189,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
189
189
|
rate: number;
|
|
190
190
|
controls: boolean;
|
|
191
191
|
loop: boolean;
|
|
192
|
+
volume: number;
|
|
192
193
|
autoplay: boolean;
|
|
193
194
|
currentTime: number;
|
|
194
|
-
volume: number;
|
|
195
195
|
muted: boolean;
|
|
196
196
|
hasPrevious: boolean;
|
|
197
197
|
hasNext: boolean;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/** One reading of a vital sign. A pair is a range reading such as blood pressure: `[systolic, diastolic]`. */
|
|
2
|
+
export interface VitalReading {
|
|
3
|
+
time: Date | string | number;
|
|
4
|
+
value: number | [number, number];
|
|
5
|
+
}
|
|
6
|
+
/** A vital sign: its readings, unit and normal range. */
|
|
7
|
+
export interface VitalSeries {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
unit?: string;
|
|
11
|
+
/** Line / point color (any CSS color). Defaults to the primary color */
|
|
12
|
+
color?: string;
|
|
13
|
+
decimals?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Normal range, drawn as a band. For pair readings give one range per value:
|
|
16
|
+
* `[[90, 120], [60, 80]]` for systolic and diastolic
|
|
17
|
+
*/
|
|
18
|
+
normal?: [number, number] | [[number, number], [number, number]];
|
|
19
|
+
/** Fixed axis range; by default it fits the readings and the normal band */
|
|
20
|
+
domain?: [number, number];
|
|
21
|
+
data: VitalReading[];
|
|
22
|
+
}
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
26
|
+
series: VitalSeries[];
|
|
27
|
+
/** Height of each row's plot, in px */
|
|
28
|
+
rowHeight?: number;
|
|
29
|
+
/** Start of the time axis (defaults to the first reading) */
|
|
30
|
+
from?: Date | string | number;
|
|
31
|
+
/** End of the time axis (defaults to the last reading) */
|
|
32
|
+
to?: Date | string | number;
|
|
33
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
hover: (args_0: number | null) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
36
|
+
series: VitalSeries[];
|
|
37
|
+
/** Height of each row's plot, in px */
|
|
38
|
+
rowHeight?: number;
|
|
39
|
+
/** Start of the time axis (defaults to the first reading) */
|
|
40
|
+
from?: Date | string | number;
|
|
41
|
+
/** End of the time axis (defaults to the last reading) */
|
|
42
|
+
to?: Date | string | number;
|
|
43
|
+
}> & Readonly<{
|
|
44
|
+
onHover?: ((args_0: number | null) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
rowHeight: number;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
48
|
+
label?: (props: {
|
|
49
|
+
series: {
|
|
50
|
+
data: VitalReading[];
|
|
51
|
+
key: string;
|
|
52
|
+
label: string;
|
|
53
|
+
unit?: string;
|
|
54
|
+
/** Line / point color (any CSS color). Defaults to the primary color */
|
|
55
|
+
color?: string;
|
|
56
|
+
decimals?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Normal range, drawn as a band. For pair readings give one range per value:
|
|
59
|
+
* `[[90, 120], [60, 80]]` for systolic and diastolic
|
|
60
|
+
*/
|
|
61
|
+
normal?: [number, number] | [[number, number], [number, number]];
|
|
62
|
+
/** Fixed axis range; by default it fits the readings and the normal band */
|
|
63
|
+
domain?: [number, number];
|
|
64
|
+
};
|
|
65
|
+
reading: VitalReading | undefined;
|
|
66
|
+
status: "normal" | "high" | "low";
|
|
67
|
+
}) => any;
|
|
68
|
+
}>;
|
|
69
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prints one element on its own: copies it with the page's stylesheets into a hidden iframe and prints that frame,
|
|
3
|
+
* so the rest of the page (navigation, other content) never reaches the paper. Always prints the light theme.
|
|
4
|
+
* Internal: used by MReceipt and MCertificate.
|
|
5
|
+
*/
|
|
6
|
+
export declare function printElement(el: HTMLElement, { page, css }: {
|
|
7
|
+
page: string;
|
|
8
|
+
css?: string;
|
|
9
|
+
}): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Card networks recognized by `detectCardBrand()` and `MCreditCardInput`. */
|
|
2
|
+
export type CardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'diners' | 'jcb' | 'unionpay' | 'maestro' | 'naranja' | 'cabal' | 'unknown';
|
|
3
|
+
export interface CardBrandInfo {
|
|
4
|
+
brand: CardBrand;
|
|
5
|
+
/** Display name, e.g. "Mastercard" */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Valid lengths of the number, in digits */
|
|
8
|
+
lengths: number[];
|
|
9
|
+
/** Digit counts after which a space is shown, e.g. [4, 8, 12] → `4242 4242 4242 4242` */
|
|
10
|
+
gaps: number[];
|
|
11
|
+
/** Length of the security code */
|
|
12
|
+
cvcLength: number;
|
|
13
|
+
/** Whether the number has to pass the Luhn checksum */
|
|
14
|
+
luhn: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Card network of a (partial) number, from its leading digits. Spaces and dashes are ignored. */
|
|
17
|
+
export declare function detectCardBrand(number: string): CardBrandInfo;
|
|
18
|
+
/** Luhn (mod 10) checksum of a card number. Spaces and dashes are ignored. */
|
|
19
|
+
export declare function luhnCheck(number: string): boolean;
|
|
20
|
+
/** Formats digits with the brand's gaps: `"4242424242424242"` → `"4242 4242 4242 4242"`. */
|
|
21
|
+
export declare function formatCardNumber(number: string): string;
|
|
22
|
+
/** Whether a card number is complete and valid for its brand (length, plus Luhn where the network uses it). */
|
|
23
|
+
export declare function isValidCardNumber(number: string): boolean;
|
|
24
|
+
/** Whether an `MM/YY` expiry is well formed and not in the past (a card is valid through its expiry month). */
|
|
25
|
+
export declare function isValidExpiry(expiry: string, now?: Date): boolean;
|
|
@@ -29,7 +29,15 @@ export declare function getBezierPath(p: FlowEdgePathParams & {
|
|
|
29
29
|
}): FlowEdgePath;
|
|
30
30
|
type Pt = [number, number];
|
|
31
31
|
/** The corners of an orthogonal route between the ends, leaving and arriving square to the sides */
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Where a step edge from `sourcePosition` to `targetPosition` turns. `centerX` / `centerY` move its middle run (the
|
|
34
|
+
* one halfway between the ends) off the halfway point, e.g. to keep it off another edge's
|
|
35
|
+
*/
|
|
36
|
+
export interface FlowStepCenter {
|
|
37
|
+
centerX?: number;
|
|
38
|
+
centerY?: number;
|
|
39
|
+
}
|
|
40
|
+
export declare function smoothStepPoints(p: FlowEdgePathParams & FlowStepCenter & {
|
|
33
41
|
offset?: number;
|
|
34
42
|
}): Pt[];
|
|
35
43
|
/**
|
|
@@ -49,7 +57,7 @@ export declare function getRoutedPath(p: FlowEdgePathParams & {
|
|
|
49
57
|
borderRadius?: number;
|
|
50
58
|
}): FlowEdgePath;
|
|
51
59
|
/** Right-angled steps with rounded corners (`borderRadius`, default 8; 0 gives sharp steps). `offset` (default 20) is how far it leaves a node before turning */
|
|
52
|
-
export declare function getSmoothStepPath(p: FlowEdgePathParams & {
|
|
60
|
+
export declare function getSmoothStepPath(p: FlowEdgePathParams & FlowStepCenter & {
|
|
53
61
|
borderRadius?: number;
|
|
54
62
|
offset?: number;
|
|
55
63
|
}): FlowEdgePath;
|
|
@@ -63,7 +71,7 @@ export declare function edgePathPoints(type: string | undefined, p: FlowEdgePath
|
|
|
63
71
|
/** The distance from a point to a polyline */
|
|
64
72
|
export declare function distanceToPoints(x: number, y: number, pts: [number, number][]): number;
|
|
65
73
|
/** `getSmoothStepPath` with sharp corners */
|
|
66
|
-
export declare function getStepPath(p: FlowEdgePathParams & {
|
|
74
|
+
export declare function getStepPath(p: FlowEdgePathParams & FlowStepCenter & {
|
|
67
75
|
offset?: number;
|
|
68
76
|
route?: number[];
|
|
69
77
|
}): FlowEdgePath;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** One payment of an amortization schedule. */
|
|
2
|
+
export interface AmortizationPayment {
|
|
3
|
+
/** 1-based payment number */
|
|
4
|
+
n: number;
|
|
5
|
+
payment: number;
|
|
6
|
+
principal: number;
|
|
7
|
+
interest: number;
|
|
8
|
+
/** Balance left after this payment */
|
|
9
|
+
balance: number;
|
|
10
|
+
}
|
|
11
|
+
export interface AmortizationOptions {
|
|
12
|
+
/** Amount borrowed */
|
|
13
|
+
principal: number;
|
|
14
|
+
/** Yearly nominal interest rate, in percent (e.g. 6.5) */
|
|
15
|
+
rate: number;
|
|
16
|
+
/** Term in years */
|
|
17
|
+
years: number;
|
|
18
|
+
/**
|
|
19
|
+
* `french`: the same payment every period (most of the world's mortgages).
|
|
20
|
+
* `german`: the same principal every period, so payments start higher and fall.
|
|
21
|
+
*/
|
|
22
|
+
system?: 'french' | 'german';
|
|
23
|
+
/** Payments per year */
|
|
24
|
+
periodsPerYear?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface Amortization {
|
|
27
|
+
payments: AmortizationPayment[];
|
|
28
|
+
firstPayment: number;
|
|
29
|
+
lastPayment: number;
|
|
30
|
+
totalInterest: number;
|
|
31
|
+
totalPaid: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Builds the payment schedule of a loan. Amounts are rounded to cents per payment and the last payment absorbs the
|
|
35
|
+
* rounding, so the balance ends at exactly 0.
|
|
36
|
+
*/
|
|
37
|
+
export declare function amortize({ principal, rate, years, system, periodsPerYear }: AmortizationOptions): Amortization;
|
|
@@ -195,6 +195,8 @@ export interface FlowContext {
|
|
|
195
195
|
radius?: number;
|
|
196
196
|
ignore?: (e: FlowEdge) => boolean;
|
|
197
197
|
}): FlowEdgeHit | null;
|
|
198
|
+
/** The SVG path (`d`, flow coordinates) an edge is drawn along right now, its own route and edgeSpacing included: to draw it elsewhere, e.g. an exported image */
|
|
199
|
+
getEdgePath(id: string): string | null;
|
|
198
200
|
/** Page (client) coordinates → flow coordinates */
|
|
199
201
|
screenToFlow(p: {
|
|
200
202
|
x: number;
|
|
@@ -243,6 +245,8 @@ export interface FlowContext {
|
|
|
243
245
|
cut(): void;
|
|
244
246
|
/** Pastes what was copied, at a flow point (default a step from the originals) */
|
|
245
247
|
paste(at?: FlowXY): void;
|
|
248
|
+
/** Copies of the selection (with the edges between them) a step away, selected; the clipboard stays as it was */
|
|
249
|
+
duplicate(): void;
|
|
246
250
|
/**
|
|
247
251
|
* Drags a node with a pointer that's already down, e.g. one just added from a palette outside the canvas: it
|
|
248
252
|
* follows the pointer from there (guides, splicing into an edge) until it's let go. With a finger, the page
|
|
@@ -409,6 +409,137 @@ export interface M3Locale {
|
|
|
409
409
|
drawUnlockLayer: string;
|
|
410
410
|
drawLayerUp: string;
|
|
411
411
|
drawLayerDown: string;
|
|
412
|
+
compareBefore: string;
|
|
413
|
+
compareAfter: string;
|
|
414
|
+
compareSlider: string;
|
|
415
|
+
cardNumber: string;
|
|
416
|
+
cardExpiry: string;
|
|
417
|
+
cardCvc: string;
|
|
418
|
+
cardName: string;
|
|
419
|
+
cardInvalidNumber: string;
|
|
420
|
+
cardInvalidExpiry: string;
|
|
421
|
+
cardInvalidCvc: string;
|
|
422
|
+
keypadDelete: string;
|
|
423
|
+
keypadClear: string;
|
|
424
|
+
keypadChange: string;
|
|
425
|
+
keypadRemaining: string;
|
|
426
|
+
seatStage: string;
|
|
427
|
+
seatAvailable: string;
|
|
428
|
+
seatSelected: string;
|
|
429
|
+
seatOccupied: string;
|
|
430
|
+
seatLabel: string;
|
|
431
|
+
receiptSubtotal: string;
|
|
432
|
+
receiptTotal: string;
|
|
433
|
+
receiptPaid: string;
|
|
434
|
+
receiptChange: string;
|
|
435
|
+
configRequired: string;
|
|
436
|
+
configOptional: string;
|
|
437
|
+
configChooseUpTo: string;
|
|
438
|
+
configChooseAtLeast: string;
|
|
439
|
+
configChooseExactly: string;
|
|
440
|
+
configUnavailable: string;
|
|
441
|
+
configQuantity: string;
|
|
442
|
+
configIncrease: string;
|
|
443
|
+
configDecrease: string;
|
|
444
|
+
availNight: string;
|
|
445
|
+
availNights: string;
|
|
446
|
+
availMinNights: string;
|
|
447
|
+
availCheckIn: string;
|
|
448
|
+
availCheckOut: string;
|
|
449
|
+
availSelectCheckIn: string;
|
|
450
|
+
availSelectCheckOut: string;
|
|
451
|
+
availUnavailable: string;
|
|
452
|
+
chartOpen: string;
|
|
453
|
+
chartHigh: string;
|
|
454
|
+
chartLow: string;
|
|
455
|
+
chartClose: string;
|
|
456
|
+
chartVolume: string;
|
|
457
|
+
bookPrice: string;
|
|
458
|
+
bookSize: string;
|
|
459
|
+
bookTotal: string;
|
|
460
|
+
bookSpread: string;
|
|
461
|
+
mortgagePrice: string;
|
|
462
|
+
mortgageDown: string;
|
|
463
|
+
mortgageRate: string;
|
|
464
|
+
mortgageTerm: string;
|
|
465
|
+
mortgageYears: string;
|
|
466
|
+
mortgageLoan: string;
|
|
467
|
+
mortgageMonthly: string;
|
|
468
|
+
mortgageFirstPayment: string;
|
|
469
|
+
mortgageLastPayment: string;
|
|
470
|
+
mortgagePrincipal: string;
|
|
471
|
+
mortgageInterest: string;
|
|
472
|
+
mortgageTotal: string;
|
|
473
|
+
mortgageSchedule: string;
|
|
474
|
+
mortgageYear: string;
|
|
475
|
+
mortgageBalance: string;
|
|
476
|
+
bodyFront: string;
|
|
477
|
+
bodyBack: string;
|
|
478
|
+
bodyRight: string;
|
|
479
|
+
bodyLeft: string;
|
|
480
|
+
bodyRear: string;
|
|
481
|
+
bodyHead: string;
|
|
482
|
+
bodyNeck: string;
|
|
483
|
+
bodyChest: string;
|
|
484
|
+
bodyAbdomen: string;
|
|
485
|
+
bodyPelvis: string;
|
|
486
|
+
bodyShoulder: string;
|
|
487
|
+
bodyUpperArm: string;
|
|
488
|
+
bodyForearm: string;
|
|
489
|
+
bodyHand: string;
|
|
490
|
+
bodyThigh: string;
|
|
491
|
+
bodyKnee: string;
|
|
492
|
+
bodyLeg: string;
|
|
493
|
+
bodyFoot: string;
|
|
494
|
+
bodyUpperBack: string;
|
|
495
|
+
bodyLowerBack: string;
|
|
496
|
+
bodyGlute: string;
|
|
497
|
+
bodyCalf: string;
|
|
498
|
+
odontoTooth: string;
|
|
499
|
+
odontoUpper: string;
|
|
500
|
+
odontoLower: string;
|
|
501
|
+
odontoMesial: string;
|
|
502
|
+
odontoDistal: string;
|
|
503
|
+
odontoBuccal: string;
|
|
504
|
+
odontoLingual: string;
|
|
505
|
+
odontoOcclusal: string;
|
|
506
|
+
odontoCaries: string;
|
|
507
|
+
odontoFilling: string;
|
|
508
|
+
odontoSealant: string;
|
|
509
|
+
odontoCrown: string;
|
|
510
|
+
odontoRootCanal: string;
|
|
511
|
+
odontoImplant: string;
|
|
512
|
+
odontoMissing: string;
|
|
513
|
+
odontoExtraction: string;
|
|
514
|
+
odontoEraser: string;
|
|
515
|
+
vitalsNormal: string;
|
|
516
|
+
vitalsHigh: string;
|
|
517
|
+
vitalsLow: string;
|
|
518
|
+
vitalsNoData: string;
|
|
519
|
+
quizCheck: string;
|
|
520
|
+
quizNext: string;
|
|
521
|
+
quizFinish: string;
|
|
522
|
+
quizCorrect: string;
|
|
523
|
+
quizIncorrect: string;
|
|
524
|
+
quizCorrectAnswer: string;
|
|
525
|
+
quizQuestionOf: string;
|
|
526
|
+
quizScore: string;
|
|
527
|
+
quizPassed: string;
|
|
528
|
+
quizFailed: string;
|
|
529
|
+
quizRetry: string;
|
|
530
|
+
quizTrue: string;
|
|
531
|
+
quizFalse: string;
|
|
532
|
+
quizSelectAll: string;
|
|
533
|
+
quizOrderHint: string;
|
|
534
|
+
quizMoveUp: string;
|
|
535
|
+
quizMoveDown: string;
|
|
536
|
+
quizTypeAnswer: string;
|
|
537
|
+
quizTimeLeft: string;
|
|
538
|
+
quizReview: string;
|
|
539
|
+
certTitle: string;
|
|
540
|
+
certPresentedTo: string;
|
|
541
|
+
certDate: string;
|
|
542
|
+
certId: string;
|
|
412
543
|
}
|
|
413
544
|
export declare const defaultLocale: M3Locale;
|
|
414
545
|
export declare const M3_LOCALE_KEY: InjectionKey<MaybeRef<Partial<M3Locale>>>;
|