@m3ui-vue/m3ui-vue 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/API.md +251 -9
  2. package/dist/{MButton-DQMTIlaV.js → MButton-D7M324r9.js} +2 -2
  3. package/dist/{MButton-DQMTIlaV.js.map → MButton-D7M324r9.js.map} +1 -1
  4. package/dist/{MDialog-cdgapGfZ.js → MDialog-DuOnNF9s.js} +2 -2
  5. package/dist/{MDialog-cdgapGfZ.js.map → MDialog-DuOnNF9s.js.map} +1 -1
  6. package/dist/{MListItem-ZkSGIIrb.js → MListItem-Bb84X6ex.js} +144 -120
  7. package/dist/{MListItem-ZkSGIIrb.js.map → MListItem-Bb84X6ex.js.map} +1 -1
  8. package/dist/{MLoadingIndicator-U6_oGx8z.js → MLoadingIndicator-BUGRo2Tu.js} +2 -2
  9. package/dist/{MLoadingIndicator-U6_oGx8z.js.map → MLoadingIndicator-BUGRo2Tu.js.map} +1 -1
  10. package/dist/{MSeekBar-DTZVizZg.js → MSeekBar-BQUvUqb9.js} +2 -2
  11. package/dist/{MSeekBar-DTZVizZg.js.map → MSeekBar-BQUvUqb9.js.map} +1 -1
  12. package/dist/{MSlider-CqJkEYRZ.js → MSlider-SFdjE1Hy.js} +2 -2
  13. package/dist/{MSlider-CqJkEYRZ.js.map → MSlider-SFdjE1Hy.js.map} +1 -1
  14. package/dist/{MSpinner-Btgc-0nb.js → MSpinner-DKGNN64_.js} +2 -2
  15. package/dist/{MSpinner-Btgc-0nb.js.map → MSpinner-DKGNN64_.js.map} +1 -1
  16. package/dist/{MTextField-B6M0gJEO.js → MTextField-Utsef6Kk.js} +2 -2
  17. package/dist/{MTextField-B6M0gJEO.js.map → MTextField-Utsef6Kk.js.map} +1 -1
  18. package/dist/{MTooltip-Dspji4XG.js → MTooltip-BhTFQ9Z2.js} +4 -4
  19. package/dist/{MTooltip-Dspji4XG.js.map → MTooltip-BhTFQ9Z2.js.map} +1 -1
  20. package/dist/api.json +1 -1
  21. package/dist/code-editor.js +1 -1
  22. package/dist/components/MAvailabilityCalendar.vue.d.ts +1 -1
  23. package/dist/components/MCalendarHeatmap.vue.d.ts +120 -0
  24. package/dist/components/MDatePicker.vue.d.ts +5 -0
  25. package/dist/components/MDatePickerModal.vue.d.ts +5 -0
  26. package/dist/components/MDateRangePicker.vue.d.ts +5 -0
  27. package/dist/components/MDateRangePickerModal.vue.d.ts +5 -0
  28. package/dist/components/MLightbox.vue.d.ts +1 -1
  29. package/dist/components/MListItem.vue.d.ts +10 -6
  30. package/dist/components/MMeterGroup.vue.d.ts +98 -0
  31. package/dist/components/MPhoneInput.vue.d.ts +72 -0
  32. package/dist/components/MSeekBar.vue.d.ts +1 -1
  33. package/dist/components/MTreeTable.vue.d.ts +1 -1
  34. package/dist/components/MTypewriter.vue.d.ts +57 -0
  35. package/dist/components/MVideoPlayer.vue.d.ts +1 -1
  36. package/dist/components/_MMonthYearButton.vue.d.ts +16 -0
  37. package/dist/components/_MYearGrid.vue.d.ts +19 -0
  38. package/dist/composables/_useCalendarMonth.d.ts +7 -0
  39. package/dist/composables/phoneNumber.d.ts +39 -0
  40. package/dist/composables/useLocale.d.ts +18 -0
  41. package/dist/data/phone-countries.d.ts +2 -0
  42. package/dist/draw.js +2 -2
  43. package/dist/flow.js +1 -1
  44. package/dist/gantt.js +1 -1
  45. package/dist/index.d.ts +8 -0
  46. package/dist/locales/index.js +63 -0
  47. package/dist/locales/index.js.map +1 -1
  48. package/dist/m3ui-vue.css +1 -1
  49. package/dist/m3ui.js +3615 -1999
  50. package/dist/m3ui.js.map +1 -1
  51. package/dist/map.js +5 -5
  52. package/dist/media.js +4 -4
  53. package/dist/pdf.js +4 -4
  54. package/dist/rich-text-editor.js +4 -4
  55. package/dist/styles.css +1 -1
  56. package/dist/{useLocale-DLKJIRFi.js → useLocale-B8YKWg-H.js} +10 -1
  57. package/dist/useLocale-B8YKWg-H.js.map +1 -0
  58. package/package.json +1 -1
  59. package/src/__tests__/MCalendarHeatmap.test.ts +79 -0
  60. package/src/__tests__/MListItemNestedControl.test.ts +88 -0
  61. package/src/__tests__/MMeterGroup.test.ts +43 -0
  62. package/src/__tests__/MPhoneInput.test.ts +97 -0
  63. package/src/__tests__/MTypewriter.test.ts +50 -0
  64. package/src/__tests__/calendarMonth.test.ts +104 -0
  65. package/src/__tests__/ssr.test.ts +4 -0
  66. package/src/components/MCalendarHeatmap.vue +349 -0
  67. package/src/components/MDatePicker.vue +74 -34
  68. package/src/components/MDatePickerModal.vue +79 -36
  69. package/src/components/MDateRangePicker.vue +73 -33
  70. package/src/components/MDateRangePickerModal.vue +75 -35
  71. package/src/components/MListItem.vue +54 -8
  72. package/src/components/MMeterGroup.vue +196 -0
  73. package/src/components/MPhoneInput.vue +480 -0
  74. package/src/components/MTypewriter.vue +195 -0
  75. package/src/components/_MMonthYearButton.vue +36 -0
  76. package/src/components/_MYearGrid.vue +106 -0
  77. package/src/composables/_useCalendarMonth.ts +32 -2
  78. package/src/composables/phoneNumber.ts +137 -0
  79. package/src/composables/useLocale.ts +27 -0
  80. package/src/data/phone-countries.ts +62 -0
  81. package/src/index.ts +8 -0
  82. package/src/locales/de.ts +9 -0
  83. package/src/locales/es.ts +9 -0
  84. package/src/locales/fr.ts +9 -0
  85. package/src/locales/ja.ts +9 -0
  86. package/src/locales/ko.ts +9 -0
  87. package/src/locales/pt.ts +9 -0
  88. package/src/locales/zh.ts +9 -0
  89. package/dist/useLocale-DLKJIRFi.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { i as e } from "./useLocale-DLKJIRFi.js";
1
+ import { i as e } from "./useLocale-B8YKWg-H.js";
2
2
  import { t } from "./MIcon-Bxh9j135.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
4
  import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
@@ -68,8 +68,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
68
68
  }>, {
69
69
  modelValue: Range;
70
70
  disabled: boolean;
71
- minNights: number;
72
71
  months: number;
72
+ minNights: number;
73
73
  highlightDeals: boolean;
74
74
  hideFooter: boolean;
75
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,120 @@
1
+ /** One day of `data` when given as an array */
2
+ export interface HeatmapDay {
3
+ /** YYYY-MM-DD */
4
+ date: string;
5
+ value: number;
6
+ }
7
+ /** A cell, as the tooltip slot and the select event get it */
8
+ export interface HeatmapCell {
9
+ /** YYYY-MM-DD */
10
+ date: string;
11
+ value: number;
12
+ /** 0 (nothing) to levels - 1 (the most) */
13
+ level: number;
14
+ }
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
18
+ /** Values per day: `{ '2026-11-20': 4 }` or `[{ date: '2026-11-20', value: 4 }]`. Missing days are 0 */
19
+ data: Record<string, number> | HeatmapDay[];
20
+ /** Last day shown (YYYY-MM-DD or a Date); defaults to today */
21
+ end?: string | Date;
22
+ /** First day shown; defaults to `weeks` weeks before `end` */
23
+ start?: string | Date;
24
+ /** How many weeks to show when there's no `start` */
25
+ weeks?: number;
26
+ /** First day of the week: 1 Monday (default, like the date pickers), 0 Sunday */
27
+ weekStart?: 0 | 1;
28
+ /** Number of tints, the empty one included */
29
+ levels?: number;
30
+ /** The value that gets the darkest tint; defaults to the largest value shown */
31
+ max?: number;
32
+ /** An M3 color role (`primary`, `tertiary`, `success`...) or any CSS color */
33
+ color?: string;
34
+ /** Side of a day's square, in px */
35
+ cellSize?: number;
36
+ /** Space between days, in px */
37
+ gap?: number;
38
+ /** Month names above the weeks */
39
+ monthLabels?: boolean;
40
+ /** Weekday names (Mon, Wed, Fri) beside the rows */
41
+ dayLabels?: boolean;
42
+ /** The "Less ▢▢▢ More" scale below */
43
+ legend?: boolean;
44
+ /** Show the day's value on hover and focus */
45
+ tooltip?: boolean;
46
+ /** The tooltip's text (and each day's accessible name); defaults to "value · date" */
47
+ formatTooltip?: (cell: HeatmapCell) => string;
48
+ /** BCP-47 language for month/weekday names and numbers; defaults to the app's locale */
49
+ locale?: string;
50
+ /** Selected day, YYYY-MM-DD (v-model); outlined */
51
+ modelValue?: string | null;
52
+ /** Accessible name of the grid */
53
+ label?: string;
54
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ select: (args_0: HeatmapCell) => any;
56
+ "update:modelValue": (args_0: string) => any;
57
+ }, string, import("vue").PublicProps, Readonly<{
58
+ /** Values per day: `{ '2026-11-20': 4 }` or `[{ date: '2026-11-20', value: 4 }]`. Missing days are 0 */
59
+ data: Record<string, number> | HeatmapDay[];
60
+ /** Last day shown (YYYY-MM-DD or a Date); defaults to today */
61
+ end?: string | Date;
62
+ /** First day shown; defaults to `weeks` weeks before `end` */
63
+ start?: string | Date;
64
+ /** How many weeks to show when there's no `start` */
65
+ weeks?: number;
66
+ /** First day of the week: 1 Monday (default, like the date pickers), 0 Sunday */
67
+ weekStart?: 0 | 1;
68
+ /** Number of tints, the empty one included */
69
+ levels?: number;
70
+ /** The value that gets the darkest tint; defaults to the largest value shown */
71
+ max?: number;
72
+ /** An M3 color role (`primary`, `tertiary`, `success`...) or any CSS color */
73
+ color?: string;
74
+ /** Side of a day's square, in px */
75
+ cellSize?: number;
76
+ /** Space between days, in px */
77
+ gap?: number;
78
+ /** Month names above the weeks */
79
+ monthLabels?: boolean;
80
+ /** Weekday names (Mon, Wed, Fri) beside the rows */
81
+ dayLabels?: boolean;
82
+ /** The "Less ▢▢▢ More" scale below */
83
+ legend?: boolean;
84
+ /** Show the day's value on hover and focus */
85
+ tooltip?: boolean;
86
+ /** The tooltip's text (and each day's accessible name); defaults to "value · date" */
87
+ formatTooltip?: (cell: HeatmapCell) => string;
88
+ /** BCP-47 language for month/weekday names and numbers; defaults to the app's locale */
89
+ locale?: string;
90
+ /** Selected day, YYYY-MM-DD (v-model); outlined */
91
+ modelValue?: string | null;
92
+ /** Accessible name of the grid */
93
+ label?: string;
94
+ }> & Readonly<{
95
+ onSelect?: ((args_0: HeatmapCell) => any) | undefined;
96
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
97
+ }>, {
98
+ color: string;
99
+ legend: boolean;
100
+ modelValue: string | null;
101
+ gap: number;
102
+ tooltip: boolean;
103
+ weeks: number;
104
+ weekStart: 0 | 1;
105
+ levels: number;
106
+ cellSize: number;
107
+ monthLabels: boolean;
108
+ dayLabels: boolean;
109
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
110
+ tooltip?: (props: {
111
+ date: string;
112
+ value: number;
113
+ level: number;
114
+ }) => any;
115
+ }>;
116
+ type __VLS_WithSlots<T, S> = T & {
117
+ new (): {
118
+ $slots: S;
119
+ };
120
+ };
@@ -9,6 +9,11 @@ type __VLS_Props = {
9
9
  min?: string;
10
10
  /** Maximum selectable date (YYYY-MM-DD) */
11
11
  max?: string;
12
+ /**
13
+ * First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
14
+ * leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
15
+ */
16
+ yearRange?: [number, number];
12
17
  /** Disables the picker */
13
18
  disabled?: boolean;
14
19
  /** Error state */
@@ -14,6 +14,11 @@ type __VLS_Props = {
14
14
  locale?: string;
15
15
  /** Dialog title */
16
16
  title?: string;
17
+ /**
18
+ * First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
19
+ * leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
20
+ */
21
+ yearRange?: [number, number];
17
22
  };
18
23
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
24
  "update:modelValue": (args_0: string | null) => any;
@@ -13,6 +13,11 @@ type __VLS_Props = {
13
13
  min?: string;
14
14
  /** Maximum date (YYYY-MM-DD) */
15
15
  max?: string;
16
+ /**
17
+ * First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
18
+ * leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
19
+ */
20
+ yearRange?: [number, number];
16
21
  /** Disables the picker */
17
22
  disabled?: boolean;
18
23
  /** Error state */
@@ -11,6 +11,11 @@ type __VLS_Props = {
11
11
  min?: string;
12
12
  /** Maximum selectable date (YYYY-MM-DD) */
13
13
  max?: string;
14
+ /**
15
+ * First and last year the year grid (opened from the month's title) offers, as `[from, to]`; the years min/max
16
+ * leave no day in are disabled. Default 1900–2100, as Compose's DatePickerDefaults.YearRange
17
+ */
18
+ yearRange?: [number, number];
14
19
  /**
15
20
  * Locale for month/day names. Falls back to the app's configured locale (createM3UI({ locale })) — same
16
21
  * pattern as MRelativeTime
@@ -53,8 +53,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
53
53
  maxZoom: number;
54
54
  rounded: boolean;
55
55
  zoom: boolean;
56
- index: number;
57
56
  loop: boolean;
57
+ index: number;
58
58
  showThumbnails: boolean;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
60
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -47,8 +47,10 @@ type __VLS_Props = {
47
47
  expandable?: boolean;
48
48
  /** Control the expanded state (v-model:expanded) — otherwise managed internally */
49
49
  expanded?: boolean;
50
+ /** Indent of the expanded #children: px, or any CSS length. Narrow it on small screens */
51
+ indent?: number | string;
50
52
  };
51
- declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_23: {}, __VLS_50: {}, __VLS_72: {}, __VLS_74: {}, __VLS_76: {};
53
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_25: {}, __VLS_53: {}, __VLS_75: {}, __VLS_77: {}, __VLS_79: {};
52
54
  type __VLS_Slots = {} & {
53
55
  leading?: (props: typeof __VLS_1) => any;
54
56
  } & {
@@ -56,15 +58,17 @@ type __VLS_Slots = {} & {
56
58
  } & {
57
59
  default?: (props: typeof __VLS_10) => any;
58
60
  } & {
59
- children?: (props: typeof __VLS_23) => any;
61
+ trailing?: (props: typeof __VLS_12) => any;
60
62
  } & {
61
- leading?: (props: typeof __VLS_50) => any;
63
+ children?: (props: typeof __VLS_25) => any;
62
64
  } & {
63
- overline?: (props: typeof __VLS_72) => any;
65
+ leading?: (props: typeof __VLS_53) => any;
64
66
  } & {
65
- default?: (props: typeof __VLS_74) => any;
67
+ overline?: (props: typeof __VLS_75) => any;
66
68
  } & {
67
- trailing?: (props: typeof __VLS_76) => any;
69
+ default?: (props: typeof __VLS_77) => any;
70
+ } & {
71
+ trailing?: (props: typeof __VLS_79) => any;
68
72
  };
69
73
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
74
  click: (e: MouseEvent) => any;
@@ -0,0 +1,98 @@
1
+ /** One part of the meter */
2
+ export interface MeterItem {
3
+ label: string;
4
+ value: number;
5
+ /** An M3 color role (`primary`, `tertiary`...) or any CSS color; defaults to the next of a set of roles */
6
+ color?: string;
7
+ /** Material Symbol shown in the legend instead of the color dot */
8
+ icon?: string;
9
+ }
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
13
+ items: MeterItem[];
14
+ /** The whole bar; defaults to the sum of the values (no remaining part) */
15
+ max?: number;
16
+ /** Title above the bar */
17
+ label?: string;
18
+ /** Unit appended to formatted values ("GB") */
19
+ unit?: string;
20
+ /** Intl.NumberFormat options for values */
21
+ numberFormat?: Intl.NumberFormatOptions;
22
+ /** Formats a value; overrides `unit` and `numberFormat` */
23
+ format?: (value: number) => string;
24
+ /** Bar thickness */
25
+ size?: "sm" | "md" | "lg";
26
+ /** Legend below the bar */
27
+ legend?: boolean;
28
+ /** Show each part's share (%) in the legend */
29
+ percent?: boolean;
30
+ /** With `max`, list what's left as a last legend entry (outlined dot) */
31
+ showRemaining?: boolean;
32
+ /** The remaining entry's label; defaults to the locale's */
33
+ remainingLabel?: string;
34
+ /** Show "used of max" on the right of the header */
35
+ summary?: boolean;
36
+ /** Grow the segments in on mount (off with reduced motion) */
37
+ animate?: boolean;
38
+ /** BCP-47 language for numbers; defaults to the app's locale */
39
+ locale?: string;
40
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ select: (item: MeterItem, index: number) => any;
42
+ }, string, import("vue").PublicProps, Readonly<{
43
+ items: MeterItem[];
44
+ /** The whole bar; defaults to the sum of the values (no remaining part) */
45
+ max?: number;
46
+ /** Title above the bar */
47
+ label?: string;
48
+ /** Unit appended to formatted values ("GB") */
49
+ unit?: string;
50
+ /** Intl.NumberFormat options for values */
51
+ numberFormat?: Intl.NumberFormatOptions;
52
+ /** Formats a value; overrides `unit` and `numberFormat` */
53
+ format?: (value: number) => string;
54
+ /** Bar thickness */
55
+ size?: "sm" | "md" | "lg";
56
+ /** Legend below the bar */
57
+ legend?: boolean;
58
+ /** Show each part's share (%) in the legend */
59
+ percent?: boolean;
60
+ /** With `max`, list what's left as a last legend entry (outlined dot) */
61
+ showRemaining?: boolean;
62
+ /** The remaining entry's label; defaults to the locale's */
63
+ remainingLabel?: string;
64
+ /** Show "used of max" on the right of the header */
65
+ summary?: boolean;
66
+ /** Grow the segments in on mount (off with reduced motion) */
67
+ animate?: boolean;
68
+ /** BCP-47 language for numbers; defaults to the app's locale */
69
+ locale?: string;
70
+ }> & Readonly<{
71
+ onSelect?: ((item: MeterItem, index: number) => any) | undefined;
72
+ }>, {
73
+ legend: boolean;
74
+ summary: boolean;
75
+ animate: boolean;
76
+ size: "sm" | "md" | "lg";
77
+ percent: boolean;
78
+ showRemaining: boolean;
79
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
80
+ label?: (props: {}) => any;
81
+ } & {
82
+ summary?: (props: {
83
+ used: number;
84
+ max: number | undefined;
85
+ }) => any;
86
+ } & {
87
+ 'legend-item'?: (props: {
88
+ item: MeterItem;
89
+ percent: number;
90
+ formatted: string;
91
+ color: string;
92
+ }) => any;
93
+ }>;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
@@ -0,0 +1,72 @@
1
+ type __VLS_Props = {
2
+ /** The number in E.164 (`+541123456789`), or null (v-model) */
3
+ modelValue?: string | null;
4
+ /** Field label */
5
+ label: string;
6
+ /** ISO 3166-1 alpha-2 code of the country (v-model:country) */
7
+ country?: string;
8
+ /** Country to start on when there's neither a number nor `country`; defaults to the locale's region, else US */
9
+ defaultCountry?: string;
10
+ /** Only these countries (ISO codes) in the list */
11
+ countries?: string[];
12
+ /** Countries pinned at the top of the list */
13
+ preferred?: string[];
14
+ /** Visual style */
15
+ variant?: 'filled' | 'outlined';
16
+ /** Puts the field in error state */
17
+ error?: boolean;
18
+ /** Error message below the field (when `error`, or when `validate` finds the number incomplete) */
19
+ errorLabel?: string;
20
+ /** Hint text below the field */
21
+ hint?: string;
22
+ /** Disables the field */
23
+ disabled?: boolean;
24
+ /** Marks as required — adds a red asterisk after the label */
25
+ required?: boolean;
26
+ /** After leaving the field, show an error when the number doesn't fit its country's length */
27
+ validate?: boolean;
28
+ /** Placeholder; defaults to an example in the country's format */
29
+ placeholder?: string;
30
+ /** Show flag emoji */
31
+ flags?: boolean;
32
+ /** Overrides the auto-detected background behind the outlined label */
33
+ fieldBg?: string;
34
+ /** BCP-47 language for country names; defaults to the app's locale */
35
+ locale?: string;
36
+ };
37
+ declare var __VLS_1: {
38
+ iso2: string;
39
+ }, __VLS_25: {
40
+ iso2: string;
41
+ };
42
+ type __VLS_Slots = {} & {
43
+ flag?: (props: typeof __VLS_1) => any;
44
+ } & {
45
+ flag?: (props: typeof __VLS_25) => any;
46
+ };
47
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
48
+ focus: (options?: FocusOptions) => void | undefined;
49
+ /** Whether the number fits its country's length */
50
+ valid: import("vue").ComputedRef<boolean>;
51
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
52
+ "update:modelValue": (args_0: string | null) => any;
53
+ "update:country": (args_0: string) => any;
54
+ "update:valid": (args_0: boolean) => any;
55
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
56
+ "onUpdate:modelValue"?: ((args_0: string | null) => any) | undefined;
57
+ "onUpdate:country"?: ((args_0: string) => any) | undefined;
58
+ "onUpdate:valid"?: ((args_0: boolean) => any) | undefined;
59
+ }>, {
60
+ modelValue: string | null;
61
+ variant: "filled" | "outlined";
62
+ flags: boolean;
63
+ validate: boolean;
64
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
65
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
66
+ declare const _default: typeof __VLS_export;
67
+ export default _default;
68
+ type __VLS_WithSlots<T, S> = T & {
69
+ new (): {
70
+ $slots: S;
71
+ };
72
+ };
@@ -104,8 +104,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
104
104
  playing: boolean;
105
105
  variant: "slider" | "line" | "wavy";
106
106
  disabled: boolean;
107
- preview: boolean;
108
107
  remaining: boolean;
108
+ preview: boolean;
109
109
  playbackRate: number;
110
110
  keyStep: number;
111
111
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -52,8 +52,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
52
52
  }>, {
53
53
  dense: boolean;
54
54
  rowKey: string;
55
- defaultExpanded: boolean;
56
55
  indent: number;
56
+ defaultExpanded: boolean;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
58
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
59
59
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,57 @@
1
+ type __VLS_Props = {
2
+ /** A phrase, or phrases typed one after another */
3
+ text: string | string[];
4
+ /** Milliseconds per character typed */
5
+ typeSpeed?: number;
6
+ /** Milliseconds per character erased */
7
+ deleteSpeed?: number;
8
+ /** Milliseconds a typed phrase stays before it's erased */
9
+ pause?: number;
10
+ /** Milliseconds before the first character */
11
+ startDelay?: number;
12
+ /** Start over after the last phrase; off stops on it */
13
+ loop?: boolean;
14
+ /** Erase only the end that differs from the next phrase */
15
+ smartBackspace?: boolean;
16
+ /** Vary each keystroke's delay a little, like a person typing */
17
+ humanize?: boolean;
18
+ /** Show the caret */
19
+ cursor?: boolean;
20
+ /** Wait until it's on screen to start */
21
+ startOnVisible?: boolean;
22
+ /** Element rendered */
23
+ tag?: string;
24
+ };
25
+ declare function restart(): void;
26
+ declare var __VLS_9: {};
27
+ type __VLS_Slots = {} & {
28
+ cursor?: (props: typeof __VLS_9) => any;
29
+ };
30
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
31
+ restart: typeof restart;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ done: () => any;
34
+ typed: (index: number) => any;
35
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onDone?: (() => any) | undefined;
37
+ onTyped?: ((index: number) => any) | undefined;
38
+ }>, {
39
+ cursor: boolean;
40
+ pause: number;
41
+ tag: string;
42
+ typeSpeed: number;
43
+ deleteSpeed: number;
44
+ startDelay: number;
45
+ loop: boolean;
46
+ smartBackspace: boolean;
47
+ humanize: boolean;
48
+ startOnVisible: boolean;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
51
+ declare const _default: typeof __VLS_export;
52
+ export default _default;
53
+ type __VLS_WithSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -187,8 +187,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
187
187
  playing: boolean;
188
188
  fit: "contain" | "cover";
189
189
  rate: number;
190
- controls: boolean;
191
190
  loop: boolean;
191
+ controls: boolean;
192
192
  volume: number;
193
193
  autoplay: boolean;
194
194
  currentTime: number;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ /** The month's title ("May 1990") */
3
+ label: string;
4
+ expanded: boolean;
5
+ /** What the button does: switch to the years, or back to the days */
6
+ action: string;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
9
+ focus: () => void | undefined;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ toggle: () => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onToggle?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ open: boolean;
3
+ years: {
4
+ year: number;
5
+ disabled: boolean;
6
+ }[];
7
+ /** The year on view: the selected pill */
8
+ viewYear: number;
9
+ locale: string;
10
+ /** The radiogroup's accessible name */
11
+ label: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ pick: (year: number) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onPick?: ((year: number) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -13,6 +13,8 @@ export declare function useCalendarMonth(viewDate: Ref<Date>, opts: {
13
13
  locale: () => string;
14
14
  min: () => string | undefined;
15
15
  max: () => string | undefined;
16
+ /** First and last year the year grid offers (DatePickerDefaults.YearRange: 1900–2100); min/max disable years in it */
17
+ yearRange?: () => [number, number] | undefined;
16
18
  }): {
17
19
  weekdays: import("vue").ComputedRef<string[]>;
18
20
  monthLabel: import("vue").ComputedRef<string>;
@@ -21,4 +23,9 @@ export declare function useCalendarMonth(viewDate: Ref<Date>, opts: {
21
23
  isToday: (iso: string) => boolean;
22
24
  prevMonth: () => void;
23
25
  nextMonth: () => void;
26
+ years: import("vue").ComputedRef<{
27
+ year: number;
28
+ disabled: boolean;
29
+ }[]>;
30
+ showYear: (year: number) => void;
24
31
  };
@@ -0,0 +1,39 @@
1
+ export interface PhoneCountry {
2
+ /** ISO 3166-1 alpha-2 */
3
+ iso2: string;
4
+ /** Calling code, without the + */
5
+ dial: string;
6
+ /** National number masks, `#` a digit */
7
+ masks: readonly string[];
8
+ }
9
+ export interface ParsedPhone {
10
+ country: PhoneCountry;
11
+ /** National significant number: digits only, no trunk 0 */
12
+ national: string;
13
+ }
14
+ /** Every country, in the data's order */
15
+ export declare function phoneCountries(): PhoneCountry[];
16
+ export declare function phoneCountry(iso2: string): PhoneCountry | undefined;
17
+ /** Digits of a national number as typed: no formatting, no trunk 0 */
18
+ export declare function nationalDigits(input: string, country: PhoneCountry): string;
19
+ /**
20
+ * Splits an international number (`+541123456789`, `00 54 11...`, `+54 9 11 2345-6789`) into its country and
21
+ * national digits. Where a calling code is shared (+1), `prefer` wins if it has it, else the first listed (US).
22
+ */
23
+ export declare function parsePhone(value: string, prefer?: string): ParsedPhone | null;
24
+ /**
25
+ * National digits formatted with the country's masks: the one whose leading digits match (Argentina's 9 for
26
+ * mobiles), else the shortest that holds them. Digits past every mask are appended; countries without masks get
27
+ * groups of three with the last four together.
28
+ */
29
+ export declare function formatNational(national: string, country: PhoneCountry): string;
30
+ /** Whether national digits are a plausible full number for the country */
31
+ export declare function isValidNational(national: string, country: PhoneCountry): boolean;
32
+ /** E.164 (`+541123456789`) from a country and national digits; null when there are none */
33
+ export declare function toE164(national: string, country: PhoneCountry): string | null;
34
+ /** A stored E.164 number for display: `+54 11 2345-6789`; the input back when it isn't one */
35
+ export declare function formatPhone(e164: string, prefer?: string): string;
36
+ /** Whether an E.164 number is a plausible full number for its country */
37
+ export declare function isValidPhone(e164: string, prefer?: string): boolean;
38
+ /** The flag emoji of an ISO 3166-1 alpha-2 code (regional indicator letters) */
39
+ export declare function flagEmoji(iso2: string): string;
@@ -32,6 +32,24 @@ export interface M3Locale {
32
32
  ok: string;
33
33
  dateToggleInput: string;
34
34
  dateToggleCalendar: string;
35
+ /** The date pickers' month/year button: opens the year grid */
36
+ dateSwitchToYear: string;
37
+ /** The same button while the year grid is open: back to the days */
38
+ dateSwitchToDay: string;
39
+ /** Calendar heatmap legend, low end */
40
+ heatmapLess: string;
41
+ /** Calendar heatmap legend, high end */
42
+ heatmapMore: string;
43
+ /** Meter group: what's left of max */
44
+ meterRemaining: string;
45
+ /** Meter group header; {used} and {max} are replaced */
46
+ meterUsedOf: string;
47
+ /** Phone input: the country selector */
48
+ phoneCountry: string;
49
+ /** Phone input: the country search field */
50
+ phoneSearchCountry: string;
51
+ /** Phone input: the number doesn't fit its country's length */
52
+ phoneInvalid: string;
35
53
  dateInputLabel: string;
36
54
  selectTime: string;
37
55
  timeHourSelection: string;
@@ -0,0 +1,2 @@
1
+ export type PhoneCountryData = readonly [iso2: string, dial: string, masks?: readonly string[]];
2
+ export declare const PHONE_COUNTRIES: readonly PhoneCountryData[];
package/dist/draw.js CHANGED
@@ -1,6 +1,6 @@
1
- import { i as e } from "./useLocale-DLKJIRFi.js";
1
+ import { i as e } from "./useLocale-B8YKWg-H.js";
2
2
  import { t } from "./MIconButton-DoNotQ9v.js";
3
- import { n, t as r } from "./MTooltip-Dspji4XG.js";
3
+ import { n, t as r } from "./MTooltip-BhTFQ9Z2.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-DLKJIRFi.js";
1
+ import { i as e } from "./useLocale-B8YKWg-H.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-DLKJIRFi.js";
1
+ import { i as e } from "./useLocale-B8YKWg-H.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";