@m3ui-vue/m3ui-vue 1.3.8 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/API.md +1102 -20
- 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/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/MCountdown.vue.d.ts +80 -0
- package/dist/components/MCreditCardInput.vue.d.ts +75 -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/MTicket.vue.d.ts +83 -0
- 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/mortgage.d.ts +37 -0
- package/dist/composables/useLocale.d.ts +131 -0
- package/dist/draw.js +2 -2
- package/dist/flow.js +1 -1
- package/dist/gantt.js +1 -1
- package/dist/index.d.ts +37 -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 +10125 -5263
- 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__/MCountdown.test.ts +75 -0
- package/src/__tests__/MCreditCardInput.test.ts +122 -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__/MVitalsChart.test.ts +49 -0
- package/src/__tests__/clearToNull.test.ts +30 -0
- package/src/__tests__/mortgage.test.ts +25 -0
- package/src/__tests__/ssr.test.ts +11 -0
- package/src/components/MAutocomplete.vue +2 -2
- 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/MCountdown.vue +200 -0
- package/src/components/MCreditCardInput.vue +351 -0
- 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/MSelect.vue +2 -2
- package/src/components/MTicket.vue +209 -0
- package/src/components/MVitalsChart.vue +303 -0
- package/src/composables/_printElement.ts +36 -0
- package/src/composables/cardBrand.ts +104 -0
- package/src/composables/mortgage.ts +70 -0
- package/src/composables/useLocale.ts +277 -0
- package/src/index.ts +37 -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/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: {
|
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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>>>;
|
package/dist/draw.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e } from "./useLocale-
|
|
1
|
+
import { i as e } from "./useLocale-DLKJIRFi.js";
|
|
2
2
|
import { t } from "./MIconButton-DoNotQ9v.js";
|
|
3
|
-
import { n, t as r } from "./MTooltip-
|
|
3
|
+
import { n, t as r } from "./MTooltip-Dspji4XG.js";
|
|
4
4
|
import { n as i, t as a } from "./MMenuItem-Bih0h4-n.js";
|
|
5
5
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, inject as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, provide as ee, ref as w, renderList as T, renderSlot as E, shallowRef as D, toDisplayString as te, unref as O, useId as ne, useModel as k, vModelText as re, watch as ie, withCtx as A, withDirectives as j, withKeys as ae, withModifiers as M } from "vue";
|
|
6
6
|
//#region src/composables/drawGeometry.ts
|
package/dist/flow.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 { r as t, t as n, u as r } from "./MIconButton-DoNotQ9v.js";
|
|
3
3
|
import { a as i, c as a, d as o, i as s, l as c, n as l, o as u, r as d, s as f, t as p, u as m } from "./flowPaths-CcWOKY4Z.js";
|
|
4
4
|
import { Fragment as h, Transition as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, inject as T, mergeProps as ee, nextTick as E, normalizeClass as D, normalizeStyle as O, onBeforeUnmount as te, onMounted as ne, openBlock as k, provide as re, reactive as ie, ref as A, renderList as ae, renderSlot as oe, shallowReactive as se, shallowRef as ce, toDisplayString as le, toRaw as ue, unref as j, useSlots as de, vShow as fe, watch as pe, withCtx as me, withDirectives as M, withModifiers as he } from "vue";
|
package/dist/gantt.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 { f as t, l as n, t as r, u as i } from "./MIconButton-DoNotQ9v.js";
|
|
3
3
|
import { t as a } from "./MSegmentedButton-DL9JtJFX.js";
|
|
4
4
|
import { t as o } from "./flowPaths-CcWOKY4Z.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ export type { SparkleOptions, SparkleValue } from './directives/vSparkle';
|
|
|
66
66
|
export { default as MAbsolute } from './components/MAbsolute.vue';
|
|
67
67
|
export { default as MAlert } from './components/MAlert.vue';
|
|
68
68
|
export { default as MAnimatedNumber } from './components/MAnimatedNumber.vue';
|
|
69
|
+
export { default as MCountdown } from './components/MCountdown.vue';
|
|
70
|
+
export type { CountdownUnit, CountdownParts } from './components/MCountdown.vue';
|
|
69
71
|
export { default as MAutocomplete } from './components/MAutocomplete.vue';
|
|
70
72
|
export { default as MAppBar } from './components/MAppBar.vue';
|
|
71
73
|
export { default as MAppBarWithSearch } from './components/MAppBarWithSearch.vue';
|
|
@@ -174,6 +176,41 @@ export { default as MCircleProgressBar } from './components/MCircleProgressBar.v
|
|
|
174
176
|
export { default as MRadio } from './components/MRadio.vue';
|
|
175
177
|
export { default as MRadioGroup } from './components/MRadioGroup.vue';
|
|
176
178
|
export { default as MRating } from './components/MRating.vue';
|
|
179
|
+
export { default as MBeforeAfter } from './components/MBeforeAfter.vue';
|
|
180
|
+
export { default as MCreditCardInput } from './components/MCreditCardInput.vue';
|
|
181
|
+
export type { CreditCardValue, CreditCardField } from './components/MCreditCardInput.vue';
|
|
182
|
+
export { detectCardBrand, luhnCheck, formatCardNumber, isValidCardNumber, isValidExpiry } from './composables/cardBrand';
|
|
183
|
+
export type { CardBrand, CardBrandInfo } from './composables/cardBrand';
|
|
184
|
+
export { default as MPosKeypad } from './components/MPosKeypad.vue';
|
|
185
|
+
export { default as MOrderTicket } from './components/MOrderTicket.vue';
|
|
186
|
+
export type { OrderItem, OrderModifier } from './components/MOrderTicket.vue';
|
|
187
|
+
export { default as MSeatMap } from './components/MSeatMap.vue';
|
|
188
|
+
export type { SeatCategory, SeatInfo, SeatState } from './components/MSeatMap.vue';
|
|
189
|
+
export { default as MReceipt } from './components/MReceipt.vue';
|
|
190
|
+
export type { ReceiptItem, ReceiptAdjustment, ReceiptPayment } from './components/MReceipt.vue';
|
|
191
|
+
export { default as MProductConfigurator } from './components/MProductConfigurator.vue';
|
|
192
|
+
export type { ProductOption, ProductOptionGroup, ProductSelection } from './components/MProductConfigurator.vue';
|
|
193
|
+
export { default as MAvailabilityCalendar } from './components/MAvailabilityCalendar.vue';
|
|
194
|
+
export { default as MTicket } from './components/MTicket.vue';
|
|
195
|
+
export type { TicketStop, TicketField } from './components/MTicket.vue';
|
|
196
|
+
export { default as MCandlestickChart } from './components/MCandlestickChart.vue';
|
|
197
|
+
export type { Candle } from './components/MCandlestickChart.vue';
|
|
198
|
+
export { default as MOrderBook } from './components/MOrderBook.vue';
|
|
199
|
+
export type { OrderBookLevel } from './components/MOrderBook.vue';
|
|
200
|
+
export { default as MMortgageCalculator } from './components/MMortgageCalculator.vue';
|
|
201
|
+
export type { MortgageInput } from './components/MMortgageCalculator.vue';
|
|
202
|
+
export { amortize } from './composables/mortgage';
|
|
203
|
+
export type { Amortization, AmortizationOptions, AmortizationPayment } from './composables/mortgage';
|
|
204
|
+
export { default as MBodyMap } from './components/MBodyMap.vue';
|
|
205
|
+
export type { BodyMapValue, BodyRegion } from './components/MBodyMap.vue';
|
|
206
|
+
export { default as MOdontogram } from './components/MOdontogram.vue';
|
|
207
|
+
export type { OdontogramValue, OdontogramCondition, ToothState, ToothSurface } from './components/MOdontogram.vue';
|
|
208
|
+
export { default as MVitalsChart } from './components/MVitalsChart.vue';
|
|
209
|
+
export type { VitalSeries, VitalReading } from './components/MVitalsChart.vue';
|
|
210
|
+
export { default as MQuiz } from './components/MQuiz.vue';
|
|
211
|
+
export type { QuizQuestion, QuizAnswer, QuizResult } from './components/MQuiz.vue';
|
|
212
|
+
export { default as MCertificate } from './components/MCertificate.vue';
|
|
213
|
+
export type { CertificateSignature } from './components/MCertificate.vue';
|
|
177
214
|
export { default as MRelative } from './components/MRelative.vue';
|
|
178
215
|
export { default as MRelativeTime } from './components/MRelativeTime.vue';
|
|
179
216
|
export { default as MResponsive } from './components/MResponsive.vue';
|