@nanahoshi/mona-ui 0.27.2 → 0.28.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/docs/api/chart.md +2 -2
- package/docs/api/popup.md +1 -1
- package/docs/api/theme.md +2 -2
- package/docs/chart.md +14 -0
- package/docs/editor.md +2 -0
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +6 -2
- package/package.json +62 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +354 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
|
@@ -1,1043 +1,985 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} : T;
|
|
10
|
-
|
|
11
|
-
type MonaTextDirection = "ltr" | "rtl";
|
|
12
|
-
|
|
13
|
-
interface MonaAutoCompleteMessages {
|
|
14
|
-
readonly clear: string;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ElementRef, EnvironmentProviders, InjectionToken, Signal } from "@angular/core";
|
|
3
|
+
import { Directionality } from "@angular/cdk/bidi";
|
|
4
|
+
import { DateTime } from "luxon";
|
|
5
|
+
export type DeepPartial<T> = T extends ((...args: never[]) => unknown) ? T : T extends readonly (infer U)[] ? readonly DeepPartial<U>[] : T extends object ? { [K in keyof T]?: DeepPartial<T[K]>; } : T;
|
|
6
|
+
export type MonaTextDirection = "ltr" | "rtl";
|
|
7
|
+
export interface MonaAutoCompleteMessages {
|
|
8
|
+
readonly clear: string;
|
|
15
9
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
readonly showFullPath: string;
|
|
10
|
+
export interface MonaBreadcrumbMessages {
|
|
11
|
+
readonly breadcrumb: string;
|
|
12
|
+
readonly showFullPath: string;
|
|
20
13
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
readonly buttonGroup: string;
|
|
14
|
+
export interface MonaButtonGroupMessages {
|
|
15
|
+
readonly buttonGroup: string;
|
|
24
16
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
yearViewLabel(year: string): string;
|
|
17
|
+
export interface MonaCalendarMessages {
|
|
18
|
+
calendarLabel(formattedMonthAndYear: string): string;
|
|
19
|
+
decadeRange(start: number, end: number): string;
|
|
20
|
+
decadeViewLabel(start: number, end: number): string;
|
|
21
|
+
goToToday(formattedDate: string): string;
|
|
22
|
+
readonly nextDecade: string;
|
|
23
|
+
readonly nextMonth: string;
|
|
24
|
+
readonly nextYear: string;
|
|
25
|
+
readonly previousDecade: string;
|
|
26
|
+
readonly previousMonth: string;
|
|
27
|
+
readonly previousYear: string;
|
|
28
|
+
switchToDecadeView(currentYear: string): string;
|
|
29
|
+
switchToYearView(currentMonthAndYear: string): string;
|
|
30
|
+
readonly today: string;
|
|
31
|
+
yearCellLabel(year: number): string;
|
|
32
|
+
yearViewLabel(year: string): string;
|
|
42
33
|
}
|
|
43
|
-
type CalendarMessages = MonaCalendarMessages;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
readonly actionsLabel: string;
|
|
34
|
+
export type CalendarMessages = MonaCalendarMessages;
|
|
35
|
+
export interface MonaCardMessages {
|
|
36
|
+
readonly actionsLabel: string;
|
|
47
37
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
readonly zoomedOut: string;
|
|
38
|
+
export interface MonaChartMessages {
|
|
39
|
+
/** Joins the parts of a screen reader announcement (", " in English). */
|
|
40
|
+
readonly announcementSeparator: string;
|
|
41
|
+
/** Announced when a keyboard brush is committed. */
|
|
42
|
+
readonly brushApplied: (count: number) => string;
|
|
43
|
+
/** Announced when a keyboard brush is canceled. */
|
|
44
|
+
readonly brushCleared: string;
|
|
45
|
+
/** Announced while a keyboard brush is extended. */
|
|
46
|
+
readonly brushRange: (from: string, to: string) => string;
|
|
47
|
+
/** The data table's first column header when the X axis has no title. */
|
|
48
|
+
readonly category: string;
|
|
49
|
+
/** The name of a radar category without a value. */
|
|
50
|
+
readonly categoryFallbackName: (index: number) => string;
|
|
51
|
+
/** The category range of a Cartesian chart, in its description. */
|
|
52
|
+
readonly categoryRange: (from: string, to: string) => string;
|
|
53
|
+
/** The tooltip label for a waterfall change step or a financial point's price change. */
|
|
54
|
+
readonly change: string;
|
|
55
|
+
/** The price change in a financial announcement. */
|
|
56
|
+
readonly changeValue: (change: string) => string;
|
|
57
|
+
/** The chart's accessible name when it has neither an `ariaLabel` nor a title. */
|
|
58
|
+
readonly chart: string;
|
|
59
|
+
/** The accessible name of the legend. */
|
|
60
|
+
readonly chartLegend: string;
|
|
61
|
+
/** What screen readers call the chart (`aria-roledescription`). */
|
|
62
|
+
readonly chartRoleDescription: string;
|
|
63
|
+
/** The tooltip label for a candlestick or OHLC point's closing price. */
|
|
64
|
+
readonly close: string;
|
|
65
|
+
/** The short closing price label in a tooltip that lists several financial series ("C" in English). */
|
|
66
|
+
readonly closeAbbreviation: string;
|
|
67
|
+
/** The name of a heatmap color legend whose scale has no title, in its accessible name. */
|
|
68
|
+
readonly colorScale: string;
|
|
69
|
+
/** The tooltip label for a funnel stage's conversion rate. */
|
|
70
|
+
readonly conversion: string;
|
|
71
|
+
/** A funnel stage's conversion from the previous stage, in an announcement. */
|
|
72
|
+
readonly conversionOfPrevious: (rate: string) => string;
|
|
73
|
+
/** Below the data table when it shows only the first rows. */
|
|
74
|
+
readonly dataTableTruncated: (shown: number, total: number) => string;
|
|
75
|
+
/** The waterfall legend's name for falling steps. */
|
|
76
|
+
readonly decrease: string;
|
|
77
|
+
/** Announced for a waterfall step that lowers the running total. */
|
|
78
|
+
readonly decreaseAnnouncement: (delta: string, from: string, to: string) => string;
|
|
79
|
+
/** The accessible name of a diverging heatmap color legend, with its minimum, midpoint and maximum. */
|
|
80
|
+
readonly divergingRangeDescription: (title: string, minimum: string, midpoint: string, maximum: string) => string;
|
|
81
|
+
/** The tooltip label for a funnel stage's drop-off from the previous stage. */
|
|
82
|
+
readonly dropOff: string;
|
|
83
|
+
/** A funnel stage's drop-off from the previous stage, in an announcement. */
|
|
84
|
+
readonly dropOffValue: (value: string) => string;
|
|
85
|
+
/** Names a falling candlestick or OHLC point, in the tooltip and in announcements. */
|
|
86
|
+
readonly falling: string;
|
|
87
|
+
/** A gauge's scale, in an announcement. */
|
|
88
|
+
readonly gaugeRange: (minimum: string, maximum: string) => string;
|
|
89
|
+
/** The tooltip label for a candlestick or OHLC point's high price. */
|
|
90
|
+
readonly high: string;
|
|
91
|
+
/** The short high price label in a tooltip that lists several financial series ("H" in English). */
|
|
92
|
+
readonly highAbbreviation: string;
|
|
93
|
+
/** The waterfall legend's name for rising steps. */
|
|
94
|
+
readonly increase: string;
|
|
95
|
+
/** Announced for a waterfall step that raises the running total. */
|
|
96
|
+
readonly increaseAnnouncement: (delta: string, from: string, to: string) => string;
|
|
97
|
+
/** Announced when the keyboard deselects a point. */
|
|
98
|
+
readonly itemDeselected: (item: string) => string;
|
|
99
|
+
/** The name of a pie, donut, rose or radial bar item without a category. */
|
|
100
|
+
readonly itemFallbackName: (index: number) => string;
|
|
101
|
+
/** Announced when the keyboard selects a point. */
|
|
102
|
+
readonly itemSelected: (item: string) => string;
|
|
103
|
+
/** The keyboard instructions at the end of the chart's description. */
|
|
104
|
+
readonly keyboardHelp: string;
|
|
105
|
+
/** Separates a label from its value in the tooltip (":" in English). */
|
|
106
|
+
readonly labelValueSeparator: string;
|
|
107
|
+
/** Pairs a label with a value in an announcement, such as a series name with the point's values. */
|
|
108
|
+
readonly labeledValue: (label: string, value: string) => string;
|
|
109
|
+
/** The tooltip label for a candlestick or OHLC point's low price. */
|
|
110
|
+
readonly low: string;
|
|
111
|
+
/** The short low price label in a tooltip that lists several financial series ("L" in English). */
|
|
112
|
+
readonly lowAbbreviation: string;
|
|
113
|
+
/** The waterfall legend's name for unchanged steps. */
|
|
114
|
+
readonly noChange: string;
|
|
115
|
+
/** Announced for a waterfall step that leaves the running total unchanged. */
|
|
116
|
+
readonly noChangeAnnouncement: (value: string) => string;
|
|
117
|
+
/** Shown and included in the chart's description when it has no data and no `noData` template. */
|
|
118
|
+
readonly noData: string;
|
|
119
|
+
/** A candlestick or OHLC point's prices, in an announcement. */
|
|
120
|
+
readonly ohlcValues: (open: string, high: string, low: string, close: string) => string;
|
|
121
|
+
/** The tooltip label for a candlestick or OHLC point's opening price. */
|
|
122
|
+
readonly open: string;
|
|
123
|
+
/** The short opening price label in a tooltip that lists several financial series ("O" in English). */
|
|
124
|
+
readonly openAbbreviation: string;
|
|
125
|
+
/** The tooltip label for a funnel stage's conversion from the first stage. */
|
|
126
|
+
readonly overall: string;
|
|
127
|
+
/** A funnel stage's conversion from the first stage, in an announcement. */
|
|
128
|
+
readonly overallConversion: (rate: string) => string;
|
|
129
|
+
/** Announced when the keyboard pans the viewport down. */
|
|
130
|
+
readonly pannedDown: string;
|
|
131
|
+
/** Announced when the keyboard pans the viewport left. */
|
|
132
|
+
readonly pannedLeft: string;
|
|
133
|
+
/** Announced when the keyboard pans the viewport right. */
|
|
134
|
+
readonly pannedRight: string;
|
|
135
|
+
/** Announced when the keyboard pans the viewport up. */
|
|
136
|
+
readonly pannedUp: string;
|
|
137
|
+
/** Joins a treemap node's path (" / " in English). */
|
|
138
|
+
readonly pathSeparator: string;
|
|
139
|
+
/** A point's position among the points it is navigated with, in an announcement. */
|
|
140
|
+
readonly pointPosition: (position: number, total: number) => string;
|
|
141
|
+
/** The tooltip label for a radial point's minimum-to-maximum range. */
|
|
142
|
+
readonly range: string;
|
|
143
|
+
/**
|
|
144
|
+
* Describes a range with its title, minimum and maximum: a range point in an announcement, or a heatmap color
|
|
145
|
+
* legend in its accessible name.
|
|
146
|
+
*/
|
|
147
|
+
readonly rangeDescription: (title: string, minimum: string, maximum: string) => string;
|
|
148
|
+
/** A range value, in an announcement. */
|
|
149
|
+
readonly rangeValue: (from: string, to: string) => string;
|
|
150
|
+
/** Names a rising candlestick or OHLC point, in the tooltip and in announcements. */
|
|
151
|
+
readonly rising: string;
|
|
152
|
+
/** The tooltip label for a waterfall step's running total. */
|
|
153
|
+
readonly runningTotal: string;
|
|
154
|
+
/** The name of a series without a name. */
|
|
155
|
+
readonly seriesFallbackName: (index: number) => string;
|
|
156
|
+
/** Announced when a legend item hides a series or item. */
|
|
157
|
+
readonly seriesHidden: (series: string) => string;
|
|
158
|
+
/** Announced when a legend item shows a series or item. */
|
|
159
|
+
readonly seriesShown: (series: string) => string;
|
|
160
|
+
/** The series of the chart, in its description. */
|
|
161
|
+
readonly seriesSummary: (count: number, names: string) => string;
|
|
162
|
+
/** A series' lowest and highest value, in the chart's description. */
|
|
163
|
+
readonly seriesValueRange: (series: string, minimum: string, maximum: string) => string;
|
|
164
|
+
/** A treemap node's share of the whole, in an announcement. */
|
|
165
|
+
readonly shareOfTotal: (share: string) => string;
|
|
166
|
+
/** The tooltip label for a bubble's size. */
|
|
167
|
+
readonly size: string;
|
|
168
|
+
/** A bubble's size, in an announcement. */
|
|
169
|
+
readonly sizeValue: (size: string) => string;
|
|
170
|
+
/** A point's share of its 100% stack, in an announcement. */
|
|
171
|
+
readonly stackShare: (share: string) => string;
|
|
172
|
+
/** The name of a funnel stage without a category. */
|
|
173
|
+
readonly stageFallbackName: (index: number) => string;
|
|
174
|
+
/** A funnel stage's position among the stages, in an announcement. */
|
|
175
|
+
readonly stagePosition: (position: number, total: number) => string;
|
|
176
|
+
/** The name of a waterfall step without a category. */
|
|
177
|
+
readonly stepFallbackName: (index: number) => string;
|
|
178
|
+
/** A waterfall step's position among the steps, in an announcement. */
|
|
179
|
+
readonly stepPosition: (position: number, total: number) => string;
|
|
180
|
+
/** The waterfall legend's name for subtotal steps. */
|
|
181
|
+
readonly subtotal: string;
|
|
182
|
+
/** Announced for a waterfall subtotal step. */
|
|
183
|
+
readonly subtotalAnnouncement: (value: string) => string;
|
|
184
|
+
/** The waterfall legend's name for total steps. */
|
|
185
|
+
readonly total: string;
|
|
186
|
+
/** Announced for a waterfall total step. */
|
|
187
|
+
readonly totalAnnouncement: (value: string) => string;
|
|
188
|
+
/** A treemap group, in an announcement. */
|
|
189
|
+
readonly treemapGroup: (count: number) => string;
|
|
190
|
+
/** A treemap leaf, in an announcement. */
|
|
191
|
+
readonly treemapLeaf: string;
|
|
192
|
+
/** Names a candlestick or OHLC point that closed at its opening price, in the tooltip and in announcements. */
|
|
193
|
+
readonly unchanged: string;
|
|
194
|
+
/** The tooltip label for a point's value. */
|
|
195
|
+
readonly value: string;
|
|
196
|
+
/** A range value in the tooltip ("10 – 20" in English). */
|
|
197
|
+
readonly valueRange: (from: string, to: string) => string;
|
|
198
|
+
/** Announced when the keyboard resets the viewport to its configured default range. */
|
|
199
|
+
readonly viewportResetToDefault: string;
|
|
200
|
+
/** Announced when the keyboard resets the viewport to the full data range, when no default range is configured. */
|
|
201
|
+
readonly viewportResetToFull: string;
|
|
202
|
+
/** Shown and announced when a gauge value lies outside the gauge's scale and its indicator stops at the edge. */
|
|
203
|
+
readonly visualIndicatorClamped: string;
|
|
204
|
+
/** Announced when the keyboard zooms the viewport in. */
|
|
205
|
+
readonly zoomedIn: string;
|
|
206
|
+
/** Announced when the keyboard zooms the viewport out. */
|
|
207
|
+
readonly zoomedOut: string;
|
|
219
208
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
removeLabel(label?: string): string;
|
|
209
|
+
export interface MonaChipMessages {
|
|
210
|
+
removeLabel(label?: string): string;
|
|
223
211
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
readonly value: string;
|
|
212
|
+
export interface MonaColorGradientMessages {
|
|
213
|
+
readonly alpha: string;
|
|
214
|
+
readonly alphaText: (opacity: number) => string;
|
|
215
|
+
readonly apply: string;
|
|
216
|
+
readonly blue: string;
|
|
217
|
+
readonly cancel: string;
|
|
218
|
+
readonly clearColor: string;
|
|
219
|
+
readonly colorCopied: string;
|
|
220
|
+
readonly colorGradient: string;
|
|
221
|
+
readonly copyAsHex: string;
|
|
222
|
+
readonly copyAsRgb: string;
|
|
223
|
+
readonly copyColor: string;
|
|
224
|
+
readonly copyFailed: string;
|
|
225
|
+
readonly currentColor: string;
|
|
226
|
+
readonly green: string;
|
|
227
|
+
readonly hexColor: string;
|
|
228
|
+
readonly hue: string;
|
|
229
|
+
readonly previousColor: string;
|
|
230
|
+
readonly red: string;
|
|
231
|
+
readonly saturation: string;
|
|
232
|
+
readonly saturationAndValue: string;
|
|
233
|
+
readonly saturationAndValueText: (saturation: number, value: number) => string;
|
|
234
|
+
readonly switchColorMode: string;
|
|
235
|
+
readonly value: string;
|
|
249
236
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
readonly namedColor: (name: string, color: string) => string;
|
|
237
|
+
export interface MonaColorPaletteMessages {
|
|
238
|
+
readonly color: (color: string) => string;
|
|
239
|
+
readonly colorPalette: string;
|
|
240
|
+
readonly namedColor: (name: string, color: string) => string;
|
|
255
241
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
readonly noColor: string;
|
|
242
|
+
export interface MonaColorPickerMessages {
|
|
243
|
+
readonly clearColor: string;
|
|
244
|
+
readonly colorGradientPicker: string;
|
|
245
|
+
readonly colorPalettePicker: string;
|
|
246
|
+
readonly colorPicker: string;
|
|
247
|
+
readonly noColor: string;
|
|
263
248
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
readonly clear: string;
|
|
249
|
+
export interface MonaComboBoxMessages {
|
|
250
|
+
readonly clear: string;
|
|
267
251
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
readonly openCalendar: string;
|
|
252
|
+
export interface MonaDatePickerMessages {
|
|
253
|
+
readonly datePicker: string;
|
|
254
|
+
readonly openCalendar: string;
|
|
272
255
|
}
|
|
273
|
-
type DatePickerMessages = MonaDatePickerMessages;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
readonly timePicker: string;
|
|
256
|
+
export type DatePickerMessages = MonaDatePickerMessages;
|
|
257
|
+
export interface MonaDateTimePickerMessages {
|
|
258
|
+
readonly calendar: string;
|
|
259
|
+
readonly cancel: string;
|
|
260
|
+
readonly date: string;
|
|
261
|
+
readonly dateTimePicker: string;
|
|
262
|
+
readonly openDateTimePicker: string;
|
|
263
|
+
readonly set: string;
|
|
264
|
+
readonly time: string;
|
|
265
|
+
readonly timePicker: string;
|
|
284
266
|
}
|
|
285
|
-
type DateTimePickerMessages = MonaDateTimePickerMessages;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
readonly ok: string;
|
|
267
|
+
export type DateTimePickerMessages = MonaDateTimePickerMessages;
|
|
268
|
+
export interface MonaDialogMessages {
|
|
269
|
+
/** The label of the Cancel button that `confirm()` and a `"confirm"` dialog without `actions` add. */
|
|
270
|
+
readonly cancel: string;
|
|
271
|
+
/** The accessible name of the close button in the dialog header. */
|
|
272
|
+
readonly closeDialog: string;
|
|
273
|
+
/** The label of the OK button that `alert()`, `confirm()` and a dialog without `actions` add. */
|
|
274
|
+
readonly ok: string;
|
|
294
275
|
}
|
|
295
|
-
type DialogMessages = MonaDialogMessages;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
readonly clear: string;
|
|
276
|
+
export type DialogMessages = MonaDialogMessages;
|
|
277
|
+
export interface MonaDropdownListMessages {
|
|
278
|
+
readonly clear: string;
|
|
299
279
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
readonly resultsAvailable: (count: number) => string;
|
|
280
|
+
export interface MonaDropdownsMessages {
|
|
281
|
+
readonly itemPosition: (text: string, position: number, total: number) => string;
|
|
282
|
+
readonly noResultsFound: string;
|
|
283
|
+
readonly resultsAvailable: (count: number) => string;
|
|
305
284
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
readonly widthPx: string;
|
|
285
|
+
export interface MonaEditorMessages {
|
|
286
|
+
/** The label of the toolbar button that adds a column after the current one. */
|
|
287
|
+
readonly addColumnAfter: string;
|
|
288
|
+
/** The label of the toolbar button that adds a column before the current one. */
|
|
289
|
+
readonly addColumnBefore: string;
|
|
290
|
+
/** The label of the toolbar button that inserts a horizontal line. */
|
|
291
|
+
readonly addHorizontalLine: string;
|
|
292
|
+
/** The label of the toolbar button that adds a row after the current one. */
|
|
293
|
+
readonly addRowAfter: string;
|
|
294
|
+
/** The label of the toolbar button that adds a row before the current one. */
|
|
295
|
+
readonly addRowBefore: string;
|
|
296
|
+
/** The label of the toolbar button that centers the text. */
|
|
297
|
+
readonly alignCenter: string;
|
|
298
|
+
/** The label of the toolbar button that aligns the text to the end of the line. */
|
|
299
|
+
readonly alignEnd: string;
|
|
300
|
+
/** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
|
|
301
|
+
readonly alignLeft: string;
|
|
302
|
+
/** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
|
|
303
|
+
readonly alignRight: string;
|
|
304
|
+
/** The label of the toolbar button that aligns the text to the start of the line. */
|
|
305
|
+
readonly alignStart: string;
|
|
306
|
+
/** The accessible name of the toolbar's text alignment button group. */
|
|
307
|
+
readonly alignmentGroup: string;
|
|
308
|
+
/** The label of the alternative text field in the insert image form. */
|
|
309
|
+
readonly altText: string;
|
|
310
|
+
/** The label of the link dialog's button that sets the link. */
|
|
311
|
+
readonly apply: string;
|
|
312
|
+
/** The label of the toolbar color picker that sets the text's highlight color. */
|
|
313
|
+
readonly backgroundColor: string;
|
|
314
|
+
/** The label of the toolbar button that toggles bold. */
|
|
315
|
+
readonly bold: string;
|
|
316
|
+
/** The label of the Cancel button in the link dialog and the insert image form. */
|
|
317
|
+
readonly cancel: string;
|
|
318
|
+
/** The label of the toolbar button that toggles a code block. */
|
|
319
|
+
readonly codeBlock: string;
|
|
320
|
+
/** The label of the toolbar color picker that sets the text color. */
|
|
321
|
+
readonly color: string;
|
|
322
|
+
/** The accessible name of the editable content when the editor has no `aria-label` or `aria-labelledby`. */
|
|
323
|
+
readonly contentLabel: string;
|
|
324
|
+
/** The placeholder of the font family dropdown when the text uses no specific font. */
|
|
325
|
+
readonly defaultFontFamily: string;
|
|
326
|
+
/** The label of the toolbar button that deletes the current column. */
|
|
327
|
+
readonly deleteColumn: string;
|
|
328
|
+
/** The label of the toolbar button that deletes the current row. */
|
|
329
|
+
readonly deleteRow: string;
|
|
330
|
+
/** The label of the toolbar button that deletes the table. */
|
|
331
|
+
readonly deleteTable: string;
|
|
332
|
+
/** The title of the link dialog when the selection is already in a link. */
|
|
333
|
+
readonly editLink: string;
|
|
334
|
+
/** The label of the URL field in the link dialog. */
|
|
335
|
+
readonly enterUrl: string;
|
|
336
|
+
/** The placeholder of the font size dropdown when the text has no specific size. */
|
|
337
|
+
readonly fontSize: string;
|
|
338
|
+
/** The label of the toolbar dropdown that switches between paragraph and heading levels. */
|
|
339
|
+
readonly format: string;
|
|
340
|
+
/** The text of a heading level in the format dropdown, given the level number. */
|
|
341
|
+
readonly heading: (level: number) => string;
|
|
342
|
+
/** The label of the height field in the insert image form. */
|
|
343
|
+
readonly heightPx: string;
|
|
344
|
+
/** The accessible name of the toolbar's undo and redo button group. */
|
|
345
|
+
readonly historyGroup: string;
|
|
346
|
+
/** The label of the image URL field in the insert image form. */
|
|
347
|
+
readonly imageUrl: string;
|
|
348
|
+
/** The label of the toolbar button that increases the indentation. */
|
|
349
|
+
readonly indent: string;
|
|
350
|
+
/** The accessible name of the toolbar's indent and outdent button group. */
|
|
351
|
+
readonly indentGroup: string;
|
|
352
|
+
/** The label of the insert image form's button that inserts the image. */
|
|
353
|
+
readonly insert: string;
|
|
354
|
+
/** The label of the toolbar button that opens the insert image form, and the title of that form's window. */
|
|
355
|
+
readonly insertImage: string;
|
|
356
|
+
/** The label of the toolbar button that opens the link dialog, and the dialog's title for a new link. */
|
|
357
|
+
readonly insertLink: string;
|
|
358
|
+
/** The label of the toolbar button that toggles a numbered list. */
|
|
359
|
+
readonly insertOrderedList: string;
|
|
360
|
+
/** The label of the toolbar button that opens the table size grid, and the accessible name of that grid. */
|
|
361
|
+
readonly insertTable: string;
|
|
362
|
+
/** The label of the toolbar button that toggles a task list. */
|
|
363
|
+
readonly insertTaskList: string;
|
|
364
|
+
/** The label of the toolbar button that toggles a bulleted list. */
|
|
365
|
+
readonly insertUnorderedList: string;
|
|
366
|
+
/** The error shown in the link dialog when the URL isn't a valid link. */
|
|
367
|
+
readonly invalidUrl: string;
|
|
368
|
+
/** The label of the toolbar button that toggles italic. */
|
|
369
|
+
readonly italic: string;
|
|
370
|
+
/** The label of the toolbar button that justifies the text. */
|
|
371
|
+
readonly justify: string;
|
|
372
|
+
/** The accessible name of the toolbar's link button group. */
|
|
373
|
+
readonly linkGroup: string;
|
|
374
|
+
/** The accessible name of the toolbar's list button group. */
|
|
375
|
+
readonly listGroup: string;
|
|
376
|
+
/** The label of the toolbar button that merges the selected cells. */
|
|
377
|
+
readonly mergeCells: string;
|
|
378
|
+
/** The label of the toolbar button that decreases the indentation. */
|
|
379
|
+
readonly outdent: string;
|
|
380
|
+
/** The text of the plain paragraph option in the format dropdown. */
|
|
381
|
+
readonly paragraph: string;
|
|
382
|
+
/** The label of the toolbar button that toggles a block quote. */
|
|
383
|
+
readonly quotation: string;
|
|
384
|
+
/** The label of the toolbar button that redoes the last undone change. */
|
|
385
|
+
readonly redo: string;
|
|
386
|
+
/** The label of the toolbar button and the link dialog button that remove the link. */
|
|
387
|
+
readonly removeLink: string;
|
|
388
|
+
/** The label of the toolbar's font family dropdown. */
|
|
389
|
+
readonly selectFontFamily: string;
|
|
390
|
+
/** The label of the toolbar's font size dropdown. */
|
|
391
|
+
readonly selectFontSize: string;
|
|
392
|
+
/** The label of the toolbar button that splits a merged cell. */
|
|
393
|
+
readonly splitCell: string;
|
|
394
|
+
/** The label of the toolbar button that toggles strikethrough. */
|
|
395
|
+
readonly strikethrough: string;
|
|
396
|
+
/** The label of the toolbar button that toggles subscript. */
|
|
397
|
+
readonly subscript: string;
|
|
398
|
+
/** The label of the toolbar button that toggles superscript. */
|
|
399
|
+
readonly superscript: string;
|
|
400
|
+
/** The accessible name of the toolbar's table button group. */
|
|
401
|
+
readonly tableGroup: string;
|
|
402
|
+
/**
|
|
403
|
+
* Describes a table size in the table size grid, given the number of rows and columns. It names each grid cell and
|
|
404
|
+
* announces the highlighted size.
|
|
405
|
+
*/
|
|
406
|
+
readonly tableSize: (rows: number, columns: number) => string;
|
|
407
|
+
/** The accessible name of the toolbar's bold, italic and other text style button group. */
|
|
408
|
+
readonly textStyleGroup: string;
|
|
409
|
+
/** The label of the toolbar button that turns the header row on or off. */
|
|
410
|
+
readonly toggleHeaderRow: string;
|
|
411
|
+
/** The accessible name of the editor's toolbar. */
|
|
412
|
+
readonly toolbar: string;
|
|
413
|
+
/** The label of the toolbar button that toggles underline. */
|
|
414
|
+
readonly underline: string;
|
|
415
|
+
/** The label of the toolbar button that undoes the last change. */
|
|
416
|
+
readonly undo: string;
|
|
417
|
+
/** The label of the width field in the insert image form. */
|
|
418
|
+
readonly widthPx: string;
|
|
441
419
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
readonly value: string;
|
|
420
|
+
export interface MonaFilterMessages {
|
|
421
|
+
readonly and: string;
|
|
422
|
+
readonly apply: string;
|
|
423
|
+
readonly clear: string;
|
|
424
|
+
readonly contains: string;
|
|
425
|
+
readonly doesNotContain: string;
|
|
426
|
+
readonly endsWith: string;
|
|
427
|
+
readonly isAfter: string;
|
|
428
|
+
readonly isAfterOrEqualTo: string;
|
|
429
|
+
readonly isBefore: string;
|
|
430
|
+
readonly isBeforeOrEqualTo: string;
|
|
431
|
+
readonly isEmpty: string;
|
|
432
|
+
readonly isEqualTo: string;
|
|
433
|
+
readonly isFalse: string;
|
|
434
|
+
readonly isGreaterThan: string;
|
|
435
|
+
readonly isGreaterThanOrEqualTo: string;
|
|
436
|
+
readonly isLessThan: string;
|
|
437
|
+
readonly isLessThanOrEqualTo: string;
|
|
438
|
+
readonly isNotEmpty: string;
|
|
439
|
+
readonly isNotEqualTo: string;
|
|
440
|
+
readonly isNotNull: string;
|
|
441
|
+
readonly isNotNullOrEmpty: string;
|
|
442
|
+
readonly isNull: string;
|
|
443
|
+
readonly isNullOrEmpty: string;
|
|
444
|
+
readonly isTrue: string;
|
|
445
|
+
readonly logic: string;
|
|
446
|
+
readonly operator: string;
|
|
447
|
+
readonly or: string;
|
|
448
|
+
readonly secondOperator: string;
|
|
449
|
+
readonly secondValue: string;
|
|
450
|
+
readonly startsWith: string;
|
|
451
|
+
readonly value: string;
|
|
475
452
|
}
|
|
476
|
-
type FilterMessages = MonaFilterMessages;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
readonly toolbar: string;
|
|
453
|
+
export type FilterMessages = MonaFilterMessages;
|
|
454
|
+
export interface MonaGridMessages {
|
|
455
|
+
readonly all: string;
|
|
456
|
+
readonly apply: string;
|
|
457
|
+
readonly cancel: string;
|
|
458
|
+
readonly cancelNewRow: string;
|
|
459
|
+
cancelRowEdit(rowNumber: number): string;
|
|
460
|
+
clearFilter(column: string): string;
|
|
461
|
+
/** The name of the button that closes a row's detail row. */
|
|
462
|
+
collapseDetail(rowNumber: number): string;
|
|
463
|
+
/** Announced when the keyboard groups the grid by a column. */
|
|
464
|
+
columnGrouped(column: string): string;
|
|
465
|
+
/** Announced when the keyboard moves a column; the position counts visible columns from 1. */
|
|
466
|
+
columnMoved(column: string, position: number): string;
|
|
467
|
+
readonly columns: string;
|
|
468
|
+
columnsSelected(count: number): string;
|
|
469
|
+
readonly commandColumnTitle: string;
|
|
470
|
+
readonly delete: string;
|
|
471
|
+
deleteRowConfirmation(rowNumber: number): string;
|
|
472
|
+
readonly deleteRowTitle: string;
|
|
473
|
+
/** The name of the detail-toggle column's header. */
|
|
474
|
+
readonly details: string;
|
|
475
|
+
readonly dragColumnHeaderToGroup: string;
|
|
476
|
+
readonly edit: string;
|
|
477
|
+
editRow(rowNumber: number): string;
|
|
478
|
+
/** The name of the button that opens a row's detail row. */
|
|
479
|
+
expandDetail(rowNumber: number): string;
|
|
480
|
+
readonly fieldValidationError?: string;
|
|
481
|
+
filterByColumn(column: string): string;
|
|
482
|
+
filterByColumnFiltered(column: string): string;
|
|
483
|
+
filterOperator(column: string, operator: string): string;
|
|
484
|
+
readonly filterPlaceholder: string;
|
|
485
|
+
/** The name of a group indent column's header. */
|
|
486
|
+
readonly group: string;
|
|
487
|
+
/** The name of the button on a group chip that opens its menu. */
|
|
488
|
+
groupOptions(column: string): string;
|
|
489
|
+
/** Shown while the grid body loads. */
|
|
490
|
+
readonly loading: string;
|
|
491
|
+
readonly modified: string;
|
|
492
|
+
readonly moveAsNext: string;
|
|
493
|
+
readonly moveAsPrevious: string;
|
|
494
|
+
readonly moveRow: string;
|
|
495
|
+
readonly noData: string;
|
|
496
|
+
readonly remove: string;
|
|
497
|
+
removeRow(rowNumber: number): string;
|
|
498
|
+
reorderRow(rowNumber: number): string;
|
|
499
|
+
resizeColumn(column: string): string;
|
|
500
|
+
readonly rowReorder: string;
|
|
501
|
+
readonly rowReorderDisabled: string;
|
|
502
|
+
readonly rowReorderDisabledEditing: string;
|
|
503
|
+
readonly rowReorderDisabledFiltered: string;
|
|
504
|
+
readonly rowReorderDisabledGrouped: string;
|
|
505
|
+
readonly rowReorderDisabledServerBinding: string;
|
|
506
|
+
readonly rowReorderDisabledSingleRow: string;
|
|
507
|
+
readonly rowReorderDisabledSorted: string;
|
|
508
|
+
readonly rowReorderDisabledVirtualScroll: string;
|
|
509
|
+
rowReorderHandleAriaLabel(rowLabel: string, keyboardHint: string, disabledReason?: string): string;
|
|
510
|
+
readonly rowReorderKeyboardHint: string;
|
|
511
|
+
rowReorderMoved(fromRowNumber: number, toPosition: number): string;
|
|
512
|
+
readonly rowValidationError: string;
|
|
513
|
+
readonly save: string;
|
|
514
|
+
readonly saveNewRow: string;
|
|
515
|
+
saveRow(rowNumber: number): string;
|
|
516
|
+
readonly selectAllRows: string;
|
|
517
|
+
selectRow(rowNumber: number): string;
|
|
518
|
+
/** Describes a header's place in a multi-column sort, from 1. */
|
|
519
|
+
sortOrder(position: number): string;
|
|
520
|
+
/** The accessible name of the toolbar above the grid. */
|
|
521
|
+
readonly toolbar: string;
|
|
546
522
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
readonly optional: string;
|
|
523
|
+
export interface MonaLabelMessages {
|
|
524
|
+
readonly optional: string;
|
|
550
525
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
pagerLabel(list: string): string;
|
|
526
|
+
export interface MonaListMessages {
|
|
527
|
+
readonly filterList: string;
|
|
528
|
+
/** Status text while a list view is loading. */
|
|
529
|
+
readonly loading: string;
|
|
530
|
+
readonly noData: string;
|
|
531
|
+
/** Accessible name of a list view's pager, from the list's name ("People pagination"). */
|
|
532
|
+
pagerLabel(list: string): string;
|
|
559
533
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
transferToList(list: string): string;
|
|
534
|
+
export interface MonaListBoxMessages {
|
|
535
|
+
/** Label of the Clear Selection toolbar button. */
|
|
536
|
+
readonly clearSelection: string;
|
|
537
|
+
/** Announced after Move Up or Move Down, with the new position of the first moved item ("Moved to position 2 of 5"). */
|
|
538
|
+
itemsMoved(position: number, total: number): string;
|
|
539
|
+
/** Announced after Remove, with the number of items removed. */
|
|
540
|
+
itemsRemoved(count: number): string;
|
|
541
|
+
/** Announced after a transfer, with the number of items moved and the name of the list they moved to. */
|
|
542
|
+
itemsTransferred(count: number, list: string): string;
|
|
543
|
+
/** Announced after a transfer to a list box that has no accessible name. */
|
|
544
|
+
itemsTransferredToOtherList(count: number): string;
|
|
545
|
+
/** Label of the Move Down toolbar button. */
|
|
546
|
+
readonly moveDown: string;
|
|
547
|
+
/** Label of the Move Up toolbar button. */
|
|
548
|
+
readonly moveUp: string;
|
|
549
|
+
/** Label of the Remove toolbar button. */
|
|
550
|
+
readonly remove: string;
|
|
551
|
+
/** Announced after Clear Selection. */
|
|
552
|
+
readonly selectionCleared: string;
|
|
553
|
+
/** Accessible name of the toolbar, from the list box's name ("Available foods actions"). */
|
|
554
|
+
toolbarLabel(list: string): string;
|
|
555
|
+
/** Label of Transfer All From when the connected list box has no accessible name. */
|
|
556
|
+
readonly transferAllFrom: string;
|
|
557
|
+
/** Label of Transfer All From, naming the connected list box. */
|
|
558
|
+
transferAllFromList(list: string): string;
|
|
559
|
+
/** Label of Transfer All To when the connected list box has no accessible name. */
|
|
560
|
+
readonly transferAllTo: string;
|
|
561
|
+
/** Label of Transfer All To, naming the connected list box. */
|
|
562
|
+
transferAllToList(list: string): string;
|
|
563
|
+
/** Label of Transfer From when the connected list box has no accessible name. */
|
|
564
|
+
readonly transferFrom: string;
|
|
565
|
+
/** Label of Transfer From, naming the connected list box. */
|
|
566
|
+
transferFromList(list: string): string;
|
|
567
|
+
/** Label of Transfer To when the connected list box has no accessible name. */
|
|
568
|
+
readonly transferTo: string;
|
|
569
|
+
/** Label of Transfer To, naming the connected list box. */
|
|
570
|
+
transferToList(list: string): string;
|
|
598
571
|
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
readonly removeMoreItems: (count: number) => string;
|
|
572
|
+
export interface MonaMultiSelectMessages {
|
|
573
|
+
readonly clear: string;
|
|
574
|
+
readonly itemsCount: (count: number) => string;
|
|
575
|
+
readonly removeMoreItems: (count: number) => string;
|
|
604
576
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
readonly warning: string;
|
|
577
|
+
export interface MonaNotificationMessages {
|
|
578
|
+
readonly close: string;
|
|
579
|
+
readonly error: string;
|
|
580
|
+
readonly info: string;
|
|
581
|
+
/** The name of the region that holds the notifications at one position. */
|
|
582
|
+
readonly region: string;
|
|
583
|
+
readonly success: string;
|
|
584
|
+
readonly warning: string;
|
|
614
585
|
}
|
|
615
|
-
type NotificationMessages = MonaNotificationMessages;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
readonly increase: string;
|
|
586
|
+
export type NotificationMessages = MonaNotificationMessages;
|
|
587
|
+
export interface MonaNumericTextBoxMessages {
|
|
588
|
+
readonly decrease: string;
|
|
589
|
+
readonly increase: string;
|
|
620
590
|
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
readonly verificationCode: string;
|
|
591
|
+
export interface MonaOtpInputMessages {
|
|
592
|
+
readonly verificationCode: string;
|
|
624
593
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
rangeStatus(start: number, end: number, total: number): string;
|
|
594
|
+
export interface MonaPagerMessages {
|
|
595
|
+
readonly firstPageLabel: string;
|
|
596
|
+
/** Accessible name of the page-size dropdown. */
|
|
597
|
+
readonly itemsPerPageLabel: string;
|
|
598
|
+
jumpBackwardLabel(pages: number): string;
|
|
599
|
+
jumpForwardLabel(pages: number): string;
|
|
600
|
+
readonly lastPageLabel: string;
|
|
601
|
+
readonly nextPageLabel: string;
|
|
602
|
+
/** @deprecated No longer rendered; input mode uses {@link pageInputPrefix} and {@link pageInputSuffix}. */
|
|
603
|
+
readonly ofText: string;
|
|
604
|
+
/** Text before the page input in input mode ("Page" in "Page [3] of 10"). */
|
|
605
|
+
pageInputPrefix(totalPages: number): string;
|
|
606
|
+
/** Text after the page input in input mode ("of 10" in "Page [3] of 10"). */
|
|
607
|
+
pageInputSuffix(totalPages: number): string;
|
|
608
|
+
pageLabel(page: number): string;
|
|
609
|
+
/** Accessible name of the page input and of the page dropdown shown on narrow pagers. */
|
|
610
|
+
readonly pageSelectLabel: string;
|
|
611
|
+
pageSizeLabel(pageSize: number): string;
|
|
612
|
+
pageStatus(page: number, totalPages: number): string;
|
|
613
|
+
/** @deprecated No longer rendered; input mode uses {@link pageInputPrefix} and {@link pageInputSuffix}. */
|
|
614
|
+
readonly pageText: string;
|
|
615
|
+
/** Accessible name of the pager's navigation landmark. */
|
|
616
|
+
readonly pagerLabel: string;
|
|
617
|
+
readonly previousPageLabel: string;
|
|
618
|
+
rangeStatus(start: number, end: number, total: number): string;
|
|
651
619
|
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
readonly label: string;
|
|
620
|
+
export interface MonaProgressBarMessages {
|
|
621
|
+
readonly label: string;
|
|
655
622
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
readonly rail: string;
|
|
623
|
+
export interface MonaSidebarMessages {
|
|
624
|
+
readonly drawerLabel: string;
|
|
625
|
+
readonly rail: string;
|
|
660
626
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
valueText(value: number, max: number): string;
|
|
627
|
+
export interface MonaRatingMessages {
|
|
628
|
+
readonly notRated: string;
|
|
629
|
+
valueText(value: number, max: number): string;
|
|
665
630
|
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
readonly resultsAvailable: (count: number) => string;
|
|
631
|
+
export interface MonaCommandMessages {
|
|
632
|
+
readonly dialogLabel: string;
|
|
633
|
+
readonly inputLabel: string;
|
|
634
|
+
readonly listLabel: string;
|
|
635
|
+
readonly loading: string;
|
|
636
|
+
readonly noResults: string;
|
|
637
|
+
readonly placeholder: string;
|
|
638
|
+
readonly resultsAvailable: (count: number) => string;
|
|
675
639
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
readonly slide: string;
|
|
640
|
+
export interface MonaScrollViewMessages {
|
|
641
|
+
readonly carousel: string;
|
|
642
|
+
readonly nextPage: string;
|
|
643
|
+
readonly page: (current: number) => string;
|
|
644
|
+
readonly pageOf: (current: number, total: number) => string;
|
|
645
|
+
readonly pages: string;
|
|
646
|
+
readonly previousPage: string;
|
|
647
|
+
readonly scrollPagerNext: string;
|
|
648
|
+
readonly scrollPagerPrevious: string;
|
|
649
|
+
readonly slide: string;
|
|
687
650
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
readonly closeSheet: string;
|
|
651
|
+
export interface MonaSheetMessages {
|
|
652
|
+
readonly closeSheet: string;
|
|
691
653
|
}
|
|
692
|
-
type SheetMessages = MonaSheetMessages;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
readonly sliderValue: string;
|
|
654
|
+
export type SheetMessages = MonaSheetMessages;
|
|
655
|
+
export interface MonaSliderMessages {
|
|
656
|
+
readonly maximumValue: string;
|
|
657
|
+
readonly minimumValue: string;
|
|
658
|
+
readonly sliderValue: string;
|
|
698
659
|
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
readonly loading: string;
|
|
660
|
+
export interface MonaSpinnerMessages {
|
|
661
|
+
readonly cancel: string;
|
|
662
|
+
readonly loading: string;
|
|
703
663
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
readonly splitButton: (text: string) => string;
|
|
664
|
+
export interface MonaSplitButtonMessages {
|
|
665
|
+
/** The arrow button's name when the main button has no `text` (it shows a template instead). */
|
|
666
|
+
readonly menuButtonAriaLabel: string;
|
|
667
|
+
/** The arrow button's name, from the main button's `text`. */
|
|
668
|
+
readonly menuButtonWithText: (text: string) => string;
|
|
669
|
+
/** @deprecated No longer rendered; the main button is named by its content or by `aria-label`. */
|
|
670
|
+
readonly splitButton: (text: string) => string;
|
|
712
671
|
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
readonly resizer: string;
|
|
672
|
+
export interface MonaSplitterMessages {
|
|
673
|
+
readonly collapseDown: string;
|
|
674
|
+
readonly collapseNext: string;
|
|
675
|
+
readonly collapsePrevious: string;
|
|
676
|
+
readonly collapseUp: string;
|
|
677
|
+
readonly resizer: string;
|
|
720
678
|
}
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
readonly stepper: string;
|
|
679
|
+
export interface MonaStepperMessages {
|
|
680
|
+
readonly stepCompleted: string;
|
|
681
|
+
readonly stepInvalid: string;
|
|
682
|
+
readonly stepPosition: (current: number, total: number) => string;
|
|
683
|
+
readonly stepProgress: string;
|
|
684
|
+
readonly stepper: string;
|
|
728
685
|
}
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
readonly scrollPrevious: string;
|
|
686
|
+
export interface MonaTabsMessages {
|
|
687
|
+
readonly closeTab: string;
|
|
688
|
+
readonly scrollNext: string;
|
|
689
|
+
readonly scrollPrevious: string;
|
|
734
690
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
readonly clear: string;
|
|
691
|
+
export interface MonaTextBoxMessages {
|
|
692
|
+
readonly clear: string;
|
|
738
693
|
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
readonly timePicker: string;
|
|
694
|
+
export interface MonaTimePickerMessages {
|
|
695
|
+
readonly openTimePicker: string;
|
|
696
|
+
readonly timePicker: string;
|
|
743
697
|
}
|
|
744
|
-
type TimePickerMessages = MonaTimePickerMessages;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
readonly timeSelector: string;
|
|
698
|
+
export type TimePickerMessages = MonaTimePickerMessages;
|
|
699
|
+
export interface MonaTimeSelectorMessages {
|
|
700
|
+
readonly am: string;
|
|
701
|
+
readonly amPm: string;
|
|
702
|
+
readonly headerHours: string;
|
|
703
|
+
readonly headerMinutes: string;
|
|
704
|
+
readonly headerSeconds: string;
|
|
705
|
+
readonly hours: string;
|
|
706
|
+
readonly minutes: string;
|
|
707
|
+
readonly now: string;
|
|
708
|
+
readonly pm: string;
|
|
709
|
+
readonly seconds: string;
|
|
710
|
+
readonly set: string;
|
|
711
|
+
readonly timeSelector: string;
|
|
759
712
|
}
|
|
760
|
-
type TimeSelectorMessages = MonaTimeSelectorMessages;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
retryLoading(node: string): string;
|
|
713
|
+
export type TimeSelectorMessages = MonaTimeSelectorMessages;
|
|
714
|
+
export interface MonaTreeViewMessages {
|
|
715
|
+
/** Start of an expanded node's expander name, followed by the node's text ("Collapse Documents"). */
|
|
716
|
+
readonly collapse: string;
|
|
717
|
+
/** Start of a collapsed node's expander name, followed by the node's text ("Expand Documents"). */
|
|
718
|
+
readonly expand: string;
|
|
719
|
+
/** @deprecated No longer rendered; the filter input's name comes from {@link filterLabel}. */
|
|
720
|
+
readonly filter: string;
|
|
721
|
+
/** Accessible name of the filter input, from the tree view's name ("Filter Files"). */
|
|
722
|
+
filterLabel(tree: string): string;
|
|
723
|
+
/** Accessible name of the filter input when the tree view has no `aria-label`. */
|
|
724
|
+
readonly filterTree: string;
|
|
725
|
+
/** Announced, and read with the node, when a node's children couldn't be loaded. */
|
|
726
|
+
loadError(node: string): string;
|
|
727
|
+
/** Announced while a node's children take a while to load, and the expander's name meanwhile. */
|
|
728
|
+
loadingNode(node: string): string;
|
|
729
|
+
/** Announced when a keyboard move (Ctrl+Shift+Arrow) put a node after another node. */
|
|
730
|
+
movedAfter(node: string, target: string): string;
|
|
731
|
+
/** Announced when a keyboard move put a node before another node. */
|
|
732
|
+
movedBefore(node: string, target: string): string;
|
|
733
|
+
/** Announced when a keyboard move put a node inside another node, as its last child. */
|
|
734
|
+
movedInto(node: string, target: string): string;
|
|
735
|
+
/** Shown, and describes the tree, when the tree view has no data. */
|
|
736
|
+
readonly noData: string;
|
|
737
|
+
/** Shown, describes the tree and is announced, when no node matches the filter. */
|
|
738
|
+
readonly noMatches: string;
|
|
739
|
+
/** Announced after the user filters, with the number of nodes that match. */
|
|
740
|
+
results(count: number): string;
|
|
741
|
+
/** Name of the expander of a node whose children couldn't be loaded. */
|
|
742
|
+
retryLoading(node: string): string;
|
|
791
743
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
readonly restore: string;
|
|
744
|
+
export interface MonaWindowMessages {
|
|
745
|
+
/** The close button's tooltip. */
|
|
746
|
+
readonly close: string;
|
|
747
|
+
/** The close button's accessible name. */
|
|
748
|
+
readonly closeWindow: string;
|
|
749
|
+
/** The maximize button's tooltip and accessible name while the window isn't maximized. */
|
|
750
|
+
readonly maximize: string;
|
|
751
|
+
/** The minimize button's tooltip and accessible name while the window isn't minimized. */
|
|
752
|
+
readonly minimize: string;
|
|
753
|
+
/** The title bar's name when the window can be both dragged and resized; it says which keys do each. */
|
|
754
|
+
readonly moveOrResizeWindow: string;
|
|
755
|
+
/** The title bar's name when the window can be dragged but not resized. */
|
|
756
|
+
readonly moveWindow: string;
|
|
757
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
758
|
+
readonly resizeBottom: string;
|
|
759
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
760
|
+
readonly resizeBottomLeft: string;
|
|
761
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
762
|
+
readonly resizeBottomRight: string;
|
|
763
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
764
|
+
readonly resizeLeft: string;
|
|
765
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
766
|
+
readonly resizeRight: string;
|
|
767
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
768
|
+
readonly resizeTop: string;
|
|
769
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
770
|
+
readonly resizeTopLeft: string;
|
|
771
|
+
/** @deprecated No longer rendered; resize handles are for the pointer, and the title bar resizes with the keyboard. */
|
|
772
|
+
readonly resizeTopRight: string;
|
|
773
|
+
/** The title bar's name when the window can be resized but not dragged. */
|
|
774
|
+
readonly resizeWindow: string;
|
|
775
|
+
/** The tooltip and accessible name of the minimize or maximize button while it would restore the window. */
|
|
776
|
+
readonly restore: string;
|
|
826
777
|
}
|
|
827
|
-
type WindowMessages = MonaWindowMessages;
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
window: MonaWindowMessages;
|
|
778
|
+
export type WindowMessages = MonaWindowMessages;
|
|
779
|
+
export interface MonaLocaleMessages {
|
|
780
|
+
autoComplete: MonaAutoCompleteMessages;
|
|
781
|
+
breadcrumb: MonaBreadcrumbMessages;
|
|
782
|
+
buttonGroup: MonaButtonGroupMessages;
|
|
783
|
+
calendar: MonaCalendarMessages;
|
|
784
|
+
card: MonaCardMessages;
|
|
785
|
+
chart: MonaChartMessages;
|
|
786
|
+
chip: MonaChipMessages;
|
|
787
|
+
colorGradient: MonaColorGradientMessages;
|
|
788
|
+
colorPalette: MonaColorPaletteMessages;
|
|
789
|
+
colorPicker: MonaColorPickerMessages;
|
|
790
|
+
comboBox: MonaComboBoxMessages;
|
|
791
|
+
datePicker: MonaDatePickerMessages;
|
|
792
|
+
dateTimePicker: MonaDateTimePickerMessages;
|
|
793
|
+
dialog: MonaDialogMessages;
|
|
794
|
+
dropdownList: MonaDropdownListMessages;
|
|
795
|
+
dropdowns: MonaDropdownsMessages;
|
|
796
|
+
editor: MonaEditorMessages;
|
|
797
|
+
filter: MonaFilterMessages;
|
|
798
|
+
grid: MonaGridMessages;
|
|
799
|
+
label: MonaLabelMessages;
|
|
800
|
+
list: MonaListMessages;
|
|
801
|
+
listBox: MonaListBoxMessages;
|
|
802
|
+
multiSelect: MonaMultiSelectMessages;
|
|
803
|
+
notification: MonaNotificationMessages;
|
|
804
|
+
numericTextBox: MonaNumericTextBoxMessages;
|
|
805
|
+
otpInput: MonaOtpInputMessages;
|
|
806
|
+
pager: MonaPagerMessages;
|
|
807
|
+
progressBar: MonaProgressBarMessages;
|
|
808
|
+
sidebar: MonaSidebarMessages;
|
|
809
|
+
rating: MonaRatingMessages;
|
|
810
|
+
command: MonaCommandMessages;
|
|
811
|
+
scrollView: MonaScrollViewMessages;
|
|
812
|
+
sheet: MonaSheetMessages;
|
|
813
|
+
slider: MonaSliderMessages;
|
|
814
|
+
spinner: MonaSpinnerMessages;
|
|
815
|
+
splitButton: MonaSplitButtonMessages;
|
|
816
|
+
splitter: MonaSplitterMessages;
|
|
817
|
+
stepper: MonaStepperMessages;
|
|
818
|
+
tabs: MonaTabsMessages;
|
|
819
|
+
textBox: MonaTextBoxMessages;
|
|
820
|
+
timePicker: MonaTimePickerMessages;
|
|
821
|
+
timeSelector: MonaTimeSelectorMessages;
|
|
822
|
+
treeView: MonaTreeViewMessages;
|
|
823
|
+
window: MonaWindowMessages;
|
|
874
824
|
}
|
|
875
|
-
type MonaMessageNamespace = keyof MonaLocaleMessages;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
readonly messages: DeepPartial<MonaLocaleMessages>;
|
|
825
|
+
export type MonaMessageNamespace = keyof MonaLocaleMessages;
|
|
826
|
+
export interface MonaLocale {
|
|
827
|
+
readonly direction: MonaTextDirection;
|
|
828
|
+
readonly id: string;
|
|
829
|
+
readonly messages: DeepPartial<MonaLocaleMessages>;
|
|
881
830
|
}
|
|
882
|
-
declare const MONA_DEFAULT_LOCALE: MonaLocale;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
readonly messages?: DeepPartial<MonaLocaleMessages>;
|
|
831
|
+
export declare const MONA_DEFAULT_LOCALE: MonaLocale;
|
|
832
|
+
export interface MonaI18nConfig {
|
|
833
|
+
/**
|
|
834
|
+
* Locale id loaded with {@link MonaI18nConfig.loadLocale} before the application starts, so the first render
|
|
835
|
+
* is already localized. When loading fails, the application starts with {@link MonaI18nConfig.locale} (or
|
|
836
|
+
* English) and the error is logged.
|
|
837
|
+
*/
|
|
838
|
+
readonly initialLocale?: string;
|
|
839
|
+
/**
|
|
840
|
+
* Loads a locale by id for `MonaI18nService.load()` and {@link MonaI18nConfig.initialLocale}. Use
|
|
841
|
+
* `loadMonaLocale` from `@nanahoshi/mona-ui/locales` for the official locales, or any function that resolves
|
|
842
|
+
* to a `MonaLocale`, such as one that fetches a catalog over HTTP.
|
|
843
|
+
*/
|
|
844
|
+
readonly loadLocale?: (localeId: string) => Promise<MonaLocale>;
|
|
845
|
+
readonly locale?: MonaLocale;
|
|
846
|
+
/**
|
|
847
|
+
* Overrides applied only while the locale with that id is active, keyed by locale id such as "de-DE".
|
|
848
|
+
* They take precedence over {@link MonaI18nConfig.messages}.
|
|
849
|
+
*/
|
|
850
|
+
readonly localeMessages?: Readonly<Record<string, DeepPartial<MonaLocaleMessages>>>;
|
|
851
|
+
/** Overrides applied whatever the active locale is. */
|
|
852
|
+
readonly messages?: DeepPartial<MonaLocaleMessages>;
|
|
905
853
|
}
|
|
906
|
-
interface MonaMessageOverrideOptions {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
854
|
+
export interface MonaMessageOverrideOptions {
|
|
855
|
+
/**
|
|
856
|
+
* Locale id the overrides apply to. When omitted, the overrides apply to every locale.
|
|
857
|
+
* Ids are canonicalized, so `de_DE` and `de-DE` address the same overrides.
|
|
858
|
+
*/
|
|
859
|
+
readonly locale?: string;
|
|
912
860
|
}
|
|
913
|
-
|
|
914
|
-
declare
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonaI18nService, never>;
|
|
959
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MonaI18nService>;
|
|
861
|
+
export declare const MONA_I18N_CONFIG: InjectionToken<MonaI18nConfig>;
|
|
862
|
+
export declare class MonaI18nService {
|
|
863
|
+
#private;
|
|
864
|
+
readonly direction: Signal<import("@nanahoshi/mona-ui/i18n").MonaTextDirection>;
|
|
865
|
+
/** The error of the latest `load()` when it failed, otherwise `null`. */
|
|
866
|
+
readonly loadError: Signal<unknown>;
|
|
867
|
+
/** Whether a `load()` is in progress and has not been superseded. */
|
|
868
|
+
readonly loading: Signal<boolean>;
|
|
869
|
+
readonly locale: Signal<MonaLocale>;
|
|
870
|
+
/**
|
|
871
|
+
* Canonical BCP 47 id of the active locale. POSIX ids such as `en_US` are converted to `en-US`,
|
|
872
|
+
* and invalid ids resolve to `MONA_FALLBACK_LOCALE_ID` so formatters always receive a valid tag.
|
|
873
|
+
*/
|
|
874
|
+
readonly localeId: Signal<string>;
|
|
875
|
+
constructor();
|
|
876
|
+
/**
|
|
877
|
+
* Removes overrides. With `options.locale`, only that locale's overrides are removed; without it, every
|
|
878
|
+
* override is removed, global and per locale.
|
|
879
|
+
*/
|
|
880
|
+
clearMessages(options?: MonaMessageOverrideOptions): void;
|
|
881
|
+
componentMessages<K extends keyof MonaLocaleMessages>(namespace: K, fallback: MonaLocaleMessages[K]): Signal<MonaLocaleMessages[K]>;
|
|
882
|
+
/**
|
|
883
|
+
* Loads a locale with the `loadLocale` function configured in `provideMonaI18n` and switches to it.
|
|
884
|
+
*
|
|
885
|
+
* - Ids are canonicalized, and each locale is loaded once: later calls reuse it, and concurrent calls for the
|
|
886
|
+
* same id share one request.
|
|
887
|
+
* - The latest `load()` or `use()` wins. When a newer one starts before this one finishes, this one resolves
|
|
888
|
+
* without switching.
|
|
889
|
+
* - When loading fails, the current locale stays, `loadError` is set and the promise rejects. The failed
|
|
890
|
+
* locale is not cached, so a later call retries it.
|
|
891
|
+
*/
|
|
892
|
+
load(localeId: string): Promise<void>;
|
|
893
|
+
/**
|
|
894
|
+
* Merges overrides into the existing ones. With `options.locale`, they apply only while that locale is
|
|
895
|
+
* active, so overrides patched for German do not show after switching to English.
|
|
896
|
+
*/
|
|
897
|
+
patchMessages(messages: DeepPartial<MonaLocaleMessages>, options?: MonaMessageOverrideOptions): void;
|
|
898
|
+
/**
|
|
899
|
+
* Replaces the existing overrides. With `options.locale`, only that locale's overrides are replaced.
|
|
900
|
+
*/
|
|
901
|
+
setMessages(messages: DeepPartial<MonaLocaleMessages>, options?: MonaMessageOverrideOptions): void;
|
|
902
|
+
/** Switches to a locale that is already loaded. It supersedes a `load()` still in progress. */
|
|
903
|
+
use(locale: MonaLocale): void;
|
|
904
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonaI18nService, never>;
|
|
905
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
960
906
|
}
|
|
961
|
-
|
|
962
907
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
963
|
-
declare function resolveComponentDirection(hostElement?: ElementRef<HTMLElement> | HTMLElement | null, directionality?: Directionality | null): MonaTextDirection;
|
|
908
|
+
export declare function resolveComponentDirection(hostElement?: ElementRef<HTMLElement> | HTMLElement | null, directionality?: Directionality | null): MonaTextDirection;
|
|
964
909
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
965
|
-
interface DirectionObserverHandle {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
910
|
+
export interface DirectionObserverHandle {
|
|
911
|
+
(): void;
|
|
912
|
+
check: () => void;
|
|
913
|
+
updateAutoObserver: () => void;
|
|
969
914
|
}
|
|
970
915
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
971
|
-
declare function observeComponentDirection(hostElement: ElementRef<HTMLElement> | HTMLElement | null | undefined, directionality: Directionality | null | undefined, onChange: (dir: MonaTextDirection) => void): DirectionObserverHandle;
|
|
972
|
-
declare function injectComponentDirection(hostElementRef?: ElementRef<HTMLElement>): Signal<MonaTextDirection>;
|
|
973
|
-
declare class MonaDirectionService {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
916
|
+
export declare function observeComponentDirection(hostElement: ElementRef<HTMLElement> | HTMLElement | null | undefined, directionality: Directionality | null | undefined, onChange: (dir: MonaTextDirection) => void): DirectionObserverHandle;
|
|
917
|
+
export declare function injectComponentDirection(hostElementRef?: ElementRef<HTMLElement>): Signal<MonaTextDirection>;
|
|
918
|
+
export declare class MonaDirectionService {
|
|
919
|
+
#private;
|
|
920
|
+
getDirection(element?: ElementRef<HTMLElement> | HTMLElement | null): MonaTextDirection;
|
|
921
|
+
isRtl(element?: ElementRef<HTMLElement> | HTMLElement | null): boolean;
|
|
922
|
+
observeDirection(element: ElementRef<HTMLElement> | HTMLElement | null | undefined, onChange: (dir: MonaTextDirection) => void): () => void;
|
|
923
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonaDirectionService, never>;
|
|
924
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
980
925
|
}
|
|
981
|
-
|
|
982
|
-
declare function
|
|
983
|
-
|
|
984
|
-
declare function mergeTwo<T extends object>(base: T, source?: DeepPartial<T>): T;
|
|
926
|
+
export declare function provideMonaI18n(config?: MonaI18nConfig): EnvironmentProviders;
|
|
927
|
+
export declare function mergeTwo<T extends object>(base: T, source?: DeepPartial<T>): T;
|
|
985
928
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
986
|
-
declare function mergeMessages<T extends object>(fallback: T, localeMessages?: DeepPartial<NoInfer<T>>, overrideMessages?: DeepPartial<NoInfer<T>>): T;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
readonly digits: ReadonlyMap<string, string>;
|
|
929
|
+
export declare function mergeMessages<T extends object>(fallback: T, localeMessages?: DeepPartial<NoInfer<T>>, overrideMessages?: DeepPartial<NoInfer<T>>): T;
|
|
930
|
+
export interface NumberSymbols {
|
|
931
|
+
readonly decimal: string;
|
|
932
|
+
readonly group: string;
|
|
933
|
+
readonly minus: string;
|
|
934
|
+
readonly digits: ReadonlyMap<string, string>;
|
|
993
935
|
}
|
|
994
|
-
interface NumberGroupingPattern {
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
936
|
+
export interface NumberGroupingPattern {
|
|
937
|
+
readonly primaryGroupSize: number;
|
|
938
|
+
readonly secondaryGroupSize: number;
|
|
939
|
+
readonly groupSeparator: string;
|
|
940
|
+
/**
|
|
941
|
+
* Fewest integer digits the locale groups when formatting (5 in es-ES, which formats 1000 but 10.000).
|
|
942
|
+
* Parsing does not enforce it: "1.000" is still read as 1000 in es-ES.
|
|
943
|
+
*/
|
|
944
|
+
readonly minimumGroupedIntegerDigits: number;
|
|
1003
945
|
}
|
|
1004
|
-
declare function getNumberGroupingPattern(locale: string): NumberGroupingPattern;
|
|
946
|
+
export declare function getNumberGroupingPattern(locale: string): NumberGroupingPattern;
|
|
1005
947
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
1006
|
-
declare function getNumberSymbols(locale: string): NumberSymbols;
|
|
948
|
+
export declare function getNumberSymbols(locale: string): NumberSymbols;
|
|
1007
949
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
1008
|
-
declare function getNumberFormatter(locale: string, options?: Intl.NumberFormatOptions): Intl.NumberFormat;
|
|
950
|
+
export declare function getNumberFormatter(locale: string, options?: Intl.NumberFormatOptions): Intl.NumberFormat;
|
|
1009
951
|
/**
|
|
1010
952
|
* Formats a number for the locale. A decimal string, such as one returned by {@link parseLocalizedDecimal}, is
|
|
1011
953
|
* formatted exactly, without converting it to a `number` first.
|
|
1012
954
|
*/
|
|
1013
|
-
declare function formatNumber(value: number | string, locale: string, options?: Intl.NumberFormatOptions): string;
|
|
955
|
+
export declare function formatNumber(value: number | string, locale: string, options?: Intl.NumberFormatOptions): string;
|
|
1014
956
|
/**
|
|
1015
957
|
* Converts digits of any script to ASCII digits. Full-width forms typed by CJK input methods
|
|
1016
958
|
* ("12.5", "-3", "1,000") are folded to ASCII first.
|
|
1017
959
|
*/
|
|
1018
|
-
declare function normalizeLocalizedDigits(text: string, localeId?: string): string;
|
|
1019
|
-
declare function normalizeLocalizedMinus(text: string, symbols?: NumberSymbols): string;
|
|
1020
|
-
declare function normalizeLocalizedInput(text: string, localeId: string): string;
|
|
960
|
+
export declare function normalizeLocalizedDigits(text: string, localeId?: string): string;
|
|
961
|
+
export declare function normalizeLocalizedMinus(text: string, symbols?: NumberSymbols): string;
|
|
962
|
+
export declare function normalizeLocalizedInput(text: string, localeId: string): string;
|
|
1021
963
|
/**
|
|
1022
964
|
* Decimal separators accepted while editing: the locale's own, plus "." and "," so a separator typed on a
|
|
1023
965
|
* keyboard layout that does not match the locale still works. An alternate is dropped when it is the locale's
|
|
1024
966
|
* group separator; otherwise "1,234" typed in en-US (or "1.234" in de-DE) would be read as 1.234.
|
|
1025
967
|
*/
|
|
1026
|
-
declare function getEditDecimalSeparators(symbols: NumberSymbols): ReadonlySet<string>;
|
|
1027
|
-
type LocalizedNumberParseMode = "edit" | "locale";
|
|
1028
|
-
interface ParseLocalizedNumberOptions {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
968
|
+
export declare function getEditDecimalSeparators(symbols: NumberSymbols): ReadonlySet<string>;
|
|
969
|
+
export type LocalizedNumberParseMode = "edit" | "locale";
|
|
970
|
+
export interface ParseLocalizedNumberOptions {
|
|
971
|
+
/**
|
|
972
|
+
* When "locale" (default), parses strictly according to canonical locale rules.
|
|
973
|
+
* Only the locale's canonical decimal separator is treated as decimal, and only
|
|
974
|
+
* canonical grouping separators are treated as grouping.
|
|
975
|
+
* When "edit", allows alternate decimal separators (such as '.' in comma-decimal locales)
|
|
976
|
+
* during interactive input entry, unless the alternate is the locale's group separator.
|
|
977
|
+
*/
|
|
978
|
+
mode?: LocalizedNumberParseMode;
|
|
979
|
+
/**
|
|
980
|
+
* Legacy convenience flag equivalent to `mode: "edit"`.
|
|
981
|
+
*/
|
|
982
|
+
alternateDecimal?: boolean;
|
|
1041
983
|
}
|
|
1042
984
|
/**
|
|
1043
985
|
* Why a value was refused:
|
|
@@ -1046,194 +988,187 @@ interface ParseLocalizedNumberOptions {
|
|
|
1046
988
|
* - `"precision"`: a JavaScript `number` cannot hold it exactly (an integer beyond
|
|
1047
989
|
* `Number.MAX_SAFE_INTEGER`, or more than 15 significant digits), so accepting it would silently change it.
|
|
1048
990
|
*/
|
|
1049
|
-
type LocalizedNumberInvalidReason = "decimals" | "precision" | "syntax";
|
|
991
|
+
export type LocalizedNumberInvalidReason = "decimals" | "precision" | "syntax";
|
|
1050
992
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
1051
|
-
interface LocalizedNumberValidationResult {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
993
|
+
export interface LocalizedNumberValidationResult {
|
|
994
|
+
fractionDigits: number;
|
|
995
|
+
/** Set when `valid` is false. */
|
|
996
|
+
reason?: LocalizedNumberInvalidReason;
|
|
997
|
+
valid: boolean;
|
|
998
|
+
value: number | null;
|
|
1057
999
|
}
|
|
1058
1000
|
/**
|
|
1059
1001
|
* Parses localized text to a number. Returns `null` when the text is not a number in the locale, or when a
|
|
1060
1002
|
* `number` cannot hold it exactly (see {@link LocalizedNumberInvalidReason}); it never rounds silently.
|
|
1061
1003
|
* Use {@link parseLocalizedDecimal} for values that need more precision.
|
|
1062
1004
|
*/
|
|
1063
|
-
declare function parseLocalizedNumber(text: string | null | undefined, localeId: string, options?: ParseLocalizedNumberOptions): number | null;
|
|
1005
|
+
export declare function parseLocalizedNumber(text: string | null | undefined, localeId: string, options?: ParseLocalizedNumberOptions): number | null;
|
|
1064
1006
|
/**
|
|
1065
1007
|
* Parses localized text with the same rules as {@link parseLocalizedNumber}, but returns a canonical decimal string
|
|
1066
1008
|
* (`"-1234.5"`: ASCII digits, `.` as the decimal separator, no grouping, exponent, leading zeros or trailing
|
|
1067
1009
|
* fraction zeros) and has no precision limit. Returns `null` when the text is not a number in the locale.
|
|
1068
1010
|
*/
|
|
1069
|
-
declare function parseLocalizedDecimal(text: string | null | undefined, localeId: string, options?: ParseLocalizedNumberOptions): string | null;
|
|
1011
|
+
export declare function parseLocalizedDecimal(text: string | null | undefined, localeId: string, options?: ParseLocalizedNumberOptions): string | null;
|
|
1070
1012
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
1071
|
-
declare function validateLocalizedNumber(text: string | null | undefined, localeId: string, options?: {
|
|
1072
|
-
|
|
1073
|
-
|
|
1013
|
+
export declare function validateLocalizedNumber(text: string | null | undefined, localeId: string, options?: {
|
|
1014
|
+
mode?: LocalizedNumberParseMode;
|
|
1015
|
+
decimals?: number;
|
|
1074
1016
|
}): LocalizedNumberValidationResult;
|
|
1075
|
-
interface LocalizedDecimalValidationResult {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1017
|
+
export interface LocalizedDecimalValidationResult {
|
|
1018
|
+
fractionDigits: number;
|
|
1019
|
+
/** Set when `valid` is false. */
|
|
1020
|
+
reason?: LocalizedNumberInvalidReason;
|
|
1021
|
+
valid: boolean;
|
|
1022
|
+
/** A canonical decimal string, see {@link parseLocalizedDecimal}. */
|
|
1023
|
+
value: string | null;
|
|
1082
1024
|
}
|
|
1083
1025
|
/**
|
|
1084
1026
|
* Validates localized text like {@link validateLocalizedNumber}, but returns a canonical decimal string and has no
|
|
1085
1027
|
* precision limit, so `reason` is never `"precision"`.
|
|
1086
1028
|
*/
|
|
1087
|
-
declare function validateLocalizedDecimal(text: string | null | undefined, localeId: string, options?: {
|
|
1088
|
-
|
|
1089
|
-
|
|
1029
|
+
export declare function validateLocalizedDecimal(text: string | null | undefined, localeId: string, options?: {
|
|
1030
|
+
mode?: LocalizedNumberParseMode;
|
|
1031
|
+
decimals?: number;
|
|
1090
1032
|
}): LocalizedDecimalValidationResult;
|
|
1091
1033
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
1092
|
-
interface LocalizedNumberEditValidationResult {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1034
|
+
export interface LocalizedNumberEditValidationResult {
|
|
1035
|
+
readonly complete: boolean;
|
|
1036
|
+
/** Set when `valid` is false. */
|
|
1037
|
+
readonly reason?: LocalizedNumberInvalidReason;
|
|
1038
|
+
readonly valid: boolean;
|
|
1039
|
+
readonly value: number | null;
|
|
1098
1040
|
}
|
|
1099
|
-
interface LocalizedDecimalEditValidationResult {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1041
|
+
export interface LocalizedDecimalEditValidationResult {
|
|
1042
|
+
readonly complete: boolean;
|
|
1043
|
+
/** Set when `valid` is false. */
|
|
1044
|
+
readonly reason?: LocalizedNumberInvalidReason;
|
|
1045
|
+
readonly valid: boolean;
|
|
1046
|
+
/** A canonical decimal string, see {@link parseLocalizedDecimal}. */
|
|
1047
|
+
readonly value: string | null;
|
|
1106
1048
|
}
|
|
1107
|
-
interface ValidateLocalizedNumberEditOptions {
|
|
1108
|
-
|
|
1109
|
-
|
|
1049
|
+
export interface ValidateLocalizedNumberEditOptions {
|
|
1050
|
+
readonly decimals?: number;
|
|
1051
|
+
readonly allowSign?: boolean;
|
|
1110
1052
|
}
|
|
1111
1053
|
/** @hidden Exported for Mona UI's other entry points; applications don't need it. */
|
|
1112
|
-
declare function validateLocalizedNumberEdit(text: string | null | undefined, localeId: string, options?: ValidateLocalizedNumberEditOptions): LocalizedNumberEditValidationResult;
|
|
1054
|
+
export declare function validateLocalizedNumberEdit(text: string | null | undefined, localeId: string, options?: ValidateLocalizedNumberEditOptions): LocalizedNumberEditValidationResult;
|
|
1113
1055
|
/**
|
|
1114
1056
|
* Validates text while it is typed, like {@link validateLocalizedNumberEdit}, but returns a canonical decimal string
|
|
1115
1057
|
* and has no precision limit.
|
|
1116
1058
|
*/
|
|
1117
|
-
declare function validateLocalizedDecimalEdit(text: string | null | undefined, localeId: string, options?: ValidateLocalizedNumberEditOptions): LocalizedDecimalEditValidationResult;
|
|
1118
|
-
|
|
1059
|
+
export declare function validateLocalizedDecimalEdit(text: string | null | undefined, localeId: string, options?: ValidateLocalizedNumberEditOptions): LocalizedDecimalEditValidationResult;
|
|
1119
1060
|
/**
|
|
1120
1061
|
* Locale id used whenever a supplied id cannot be turned into a valid BCP 47 tag.
|
|
1121
1062
|
* Matches the id of `MONA_DEFAULT_LOCALE`.
|
|
1122
1063
|
*/
|
|
1123
|
-
declare const MONA_FALLBACK_LOCALE_ID = "en-US";
|
|
1064
|
+
export declare const MONA_FALLBACK_LOCALE_ID = "en-US";
|
|
1124
1065
|
/**
|
|
1125
1066
|
* Converts a locale id to a canonical BCP 47 tag, or returns `null` when it is not a valid tag.
|
|
1126
1067
|
*
|
|
1127
1068
|
* POSIX/Java style ids are accepted: `en_US` becomes `en-US`, and an encoding or modifier suffix
|
|
1128
1069
|
* (`de_DE.UTF-8`, `de_DE@euro`) is dropped.
|
|
1129
1070
|
*/
|
|
1130
|
-
declare function tryCanonicalizeLocaleId(localeId: string | null | undefined): string | null;
|
|
1071
|
+
export declare function tryCanonicalizeLocaleId(localeId: string | null | undefined): string | null;
|
|
1131
1072
|
/**
|
|
1132
1073
|
* Converts a locale id to a canonical BCP 47 tag. Ids that are empty or not valid tags resolve to
|
|
1133
1074
|
* {@link MONA_FALLBACK_LOCALE_ID}, so every formatter receives the same, valid locale.
|
|
1134
1075
|
*/
|
|
1135
|
-
declare function canonicalizeLocaleId(localeId: string | null | undefined): string;
|
|
1136
|
-
|
|
1076
|
+
export declare function canonicalizeLocaleId(localeId: string | null | undefined): string;
|
|
1137
1077
|
/**
|
|
1138
1078
|
* Normalizes a locale string to ensure it uses the Gregorian calendar system
|
|
1139
1079
|
* and doesn't contain a conflicting -u-ca-* extension.
|
|
1140
1080
|
* Empty or malformed ids resolve to `MONA_FALLBACK_LOCALE_ID` (en-US).
|
|
1141
1081
|
*/
|
|
1142
|
-
declare function normalizeGregorianLocale(localeId: string): string;
|
|
1082
|
+
export declare function normalizeGregorianLocale(localeId: string): string;
|
|
1143
1083
|
/**
|
|
1144
1084
|
* Creates a Luxon DateTime from a Date instance, reconfigured to the specified locale
|
|
1145
1085
|
* with an explicit Gregorian output calendar.
|
|
1146
1086
|
* @hidden Exported for Mona UI's other entry points; applications don't need it.
|
|
1147
1087
|
*/
|
|
1148
|
-
declare function gregorianDateTime(date: Date, localeId: string): DateTime;
|
|
1088
|
+
export declare function gregorianDateTime(date: Date, localeId: string): DateTime;
|
|
1149
1089
|
/**
|
|
1150
1090
|
* Creates a Luxon DateTime from object components (year, month, etc.), reconfigured to the
|
|
1151
1091
|
* specified locale with an explicit Gregorian output calendar.
|
|
1152
1092
|
* @hidden Exported for Mona UI's other entry points; applications don't need it.
|
|
1153
1093
|
*/
|
|
1154
|
-
declare function gregorianDateTimeFromObject(obj: {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1094
|
+
export declare function gregorianDateTimeFromObject(obj: {
|
|
1095
|
+
year: number;
|
|
1096
|
+
month?: number;
|
|
1097
|
+
day?: number;
|
|
1098
|
+
hour?: number;
|
|
1099
|
+
minute?: number;
|
|
1100
|
+
second?: number;
|
|
1161
1101
|
}, localeId: string): DateTime;
|
|
1162
1102
|
/**
|
|
1163
1103
|
* Formats a date using locale-native token ordering and explicit Gregorian calendar.
|
|
1164
1104
|
*/
|
|
1165
|
-
declare function formatGregorianDateToLocaleString(date: Date, localeId: string, options: Intl.DateTimeFormatOptions): string;
|
|
1105
|
+
export declare function formatGregorianDateToLocaleString(date: Date, localeId: string, options: Intl.DateTimeFormatOptions): string;
|
|
1166
1106
|
/**
|
|
1167
1107
|
* Regular expression matching Unicode bidirectional formatting controls
|
|
1168
1108
|
* (such as LRM, RLM, ALM, embeddings, overrides, and isolates).
|
|
1169
1109
|
*/
|
|
1170
|
-
declare const BIDI_CONTROL_REGEX: RegExp;
|
|
1110
|
+
export declare const BIDI_CONTROL_REGEX: RegExp;
|
|
1171
1111
|
/**
|
|
1172
1112
|
* Strips Unicode bidirectional formatting controls from a string.
|
|
1173
1113
|
*/
|
|
1174
|
-
declare function stripBidiControls(value: string): string;
|
|
1114
|
+
export declare function stripBidiControls(value: string): string;
|
|
1175
1115
|
/**
|
|
1176
1116
|
* Sanitizes date/time text by stripping invisible bidi controls and
|
|
1177
1117
|
* normalizing typographic/non-breaking spaces to standard ASCII spaces.
|
|
1178
1118
|
*/
|
|
1179
|
-
declare function sanitizeDateText(value: string): string;
|
|
1119
|
+
export declare function sanitizeDateText(value: string): string;
|
|
1180
1120
|
/**
|
|
1181
1121
|
* Parses a date string using the specified format and locale, forcing Gregorian calendar.
|
|
1182
1122
|
* Localized digits are normalized first to support locales that use native numbering systems.
|
|
1183
1123
|
*/
|
|
1184
|
-
declare function parseGregorianDate(text: string, format: string, localeId: string): DateTime;
|
|
1185
|
-
|
|
1124
|
+
export declare function parseGregorianDate(text: string, format: string, localeId: string): DateTime;
|
|
1186
1125
|
type LocaleFirstDayOfWeek = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
readonly showSeconds?: boolean;
|
|
1126
|
+
export interface LocaleTimeFormatOptions {
|
|
1127
|
+
readonly hourFormat?: "12" | "24";
|
|
1128
|
+
readonly showSeconds?: boolean;
|
|
1191
1129
|
}
|
|
1192
1130
|
/**
|
|
1193
1131
|
* Derives a localized numeric date format (e.g. "yyyy/MM/dd" or "dd/MM/yyyy") for the given locale.
|
|
1194
1132
|
*/
|
|
1195
|
-
declare function getLocaleDateInputFormat(localeId: string): string;
|
|
1133
|
+
export declare function getLocaleDateInputFormat(localeId: string): string;
|
|
1196
1134
|
/**
|
|
1197
1135
|
* Derives a localized time format (e.g. "HH:mm", "ahh:mm", "hh:mm a") for the given locale.
|
|
1198
1136
|
*/
|
|
1199
|
-
declare function getLocaleTimeInputFormat(localeId: string, options?: LocaleTimeFormatOptions): string;
|
|
1137
|
+
export declare function getLocaleTimeInputFormat(localeId: string, options?: LocaleTimeFormatOptions): string;
|
|
1200
1138
|
/**
|
|
1201
1139
|
* Derives a localized date-time format for the given locale.
|
|
1202
1140
|
*/
|
|
1203
|
-
declare function getLocaleDateTimeInputFormat(localeId: string, options?: LocaleTimeFormatOptions): string;
|
|
1141
|
+
export declare function getLocaleDateTimeInputFormat(localeId: string, options?: LocaleTimeFormatOptions): string;
|
|
1204
1142
|
/**
|
|
1205
1143
|
* Resolves the first day of the week for the given locale using Intl.Locale.weekInfo,
|
|
1206
1144
|
* Intl.Locale.getWeekInfo(), or CLDR fallbacks.
|
|
1207
1145
|
*/
|
|
1208
|
-
declare function getLocaleFirstDayOfWeek(localeId: string): LocaleFirstDayOfWeek;
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
readonly expansionFactor?: number;
|
|
1146
|
+
export declare function getLocaleFirstDayOfWeek(localeId: string): LocaleFirstDayOfWeek;
|
|
1147
|
+
export interface PseudoLocalizationOptions {
|
|
1148
|
+
readonly prefix?: string;
|
|
1149
|
+
readonly suffix?: string;
|
|
1150
|
+
readonly expand?: boolean;
|
|
1151
|
+
readonly expansionFactor?: number;
|
|
1215
1152
|
}
|
|
1216
|
-
interface GeneratePseudoLocaleOptions {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1153
|
+
export interface GeneratePseudoLocaleOptions {
|
|
1154
|
+
readonly id?: string;
|
|
1155
|
+
readonly direction?: MonaTextDirection;
|
|
1156
|
+
readonly pseudoOptions?: PseudoLocalizationOptions;
|
|
1220
1157
|
}
|
|
1221
1158
|
/**
|
|
1222
1159
|
* Transforms a text string into pseudo-localized text (e.g. "Apply" -> "[!! Åþþļÿ~~ !!]").
|
|
1223
1160
|
* Tokens enclosed in single braces {placeholder}, double braces {{placeholder}}, or HTML tags <tag>
|
|
1224
1161
|
* are preserved verbatim so formatting / parameter substitution continues to function.
|
|
1225
1162
|
*/
|
|
1226
|
-
declare function pseudoLocalize(text: string, options?: PseudoLocalizationOptions): string;
|
|
1163
|
+
export declare function pseudoLocalize(text: string, options?: PseudoLocalizationOptions): string;
|
|
1227
1164
|
/**
|
|
1228
1165
|
* Recursively pseudo-localizes a message catalog or nested object of message catalogs.
|
|
1229
1166
|
* Plain strings are pseudo-localized, and message functions (e.g. (page: number) => string)
|
|
1230
1167
|
* are wrapped so their string outputs are pseudo-localized when invoked.
|
|
1231
1168
|
*/
|
|
1232
|
-
declare function pseudoLocalizeCatalog<T extends object>(catalog: T, options?: PseudoLocalizationOptions): T;
|
|
1169
|
+
export declare function pseudoLocalizeCatalog<T extends object>(catalog: T, options?: PseudoLocalizationOptions): T;
|
|
1233
1170
|
/**
|
|
1234
1171
|
* Generates a full pseudo-localized MonaLocale (e.g. en-XA) from a dictionary of message catalogs.
|
|
1235
1172
|
*/
|
|
1236
|
-
declare function generatePseudoLocale(catalogs: DeepPartial<MonaLocaleMessages>, options?: GeneratePseudoLocaleOptions): MonaLocale;
|
|
1237
|
-
|
|
1238
|
-
export { BIDI_CONTROL_REGEX, MONA_DEFAULT_LOCALE, MONA_FALLBACK_LOCALE_ID, MONA_I18N_CONFIG, MonaDirectionService, MonaI18nService, canonicalizeLocaleId, formatGregorianDateToLocaleString, formatNumber, generatePseudoLocale, getEditDecimalSeparators, getLocaleDateInputFormat, getLocaleDateTimeInputFormat, getLocaleFirstDayOfWeek, getLocaleTimeInputFormat, getNumberFormatter, getNumberGroupingPattern, getNumberSymbols, gregorianDateTime, gregorianDateTimeFromObject, injectComponentDirection, mergeMessages, mergeTwo, normalizeGregorianLocale, normalizeLocalizedDigits, normalizeLocalizedInput, normalizeLocalizedMinus, observeComponentDirection, parseGregorianDate, parseLocalizedDecimal, parseLocalizedNumber, provideMonaI18n, pseudoLocalize, pseudoLocalizeCatalog, resolveComponentDirection, sanitizeDateText, stripBidiControls, tryCanonicalizeLocaleId, validateLocalizedDecimal, validateLocalizedDecimalEdit, validateLocalizedNumber, validateLocalizedNumberEdit };
|
|
1239
|
-
export type { CalendarMessages, DatePickerMessages, DateTimePickerMessages, DeepPartial, DialogMessages, DirectionObserverHandle, FilterMessages, GeneratePseudoLocaleOptions, LocaleFirstDayOfWeek, LocaleTimeFormatOptions, LocalizedDecimalEditValidationResult, LocalizedDecimalValidationResult, LocalizedNumberEditValidationResult, LocalizedNumberInvalidReason, LocalizedNumberParseMode, LocalizedNumberValidationResult, MonaAutoCompleteMessages, MonaBreadcrumbMessages, MonaButtonGroupMessages, MonaCalendarMessages, MonaCardMessages, MonaChartMessages, MonaChipMessages, MonaColorGradientMessages, MonaColorPaletteMessages, MonaColorPickerMessages, MonaComboBoxMessages, MonaCommandMessages, MonaDatePickerMessages, MonaDateTimePickerMessages, MonaDialogMessages, MonaDropdownListMessages, MonaDropdownsMessages, MonaEditorMessages, MonaFilterMessages, MonaGridMessages, MonaI18nConfig, MonaLabelMessages, MonaListBoxMessages, MonaListMessages, MonaLocale, MonaLocaleMessages, MonaMessageNamespace, MonaMessageOverrideOptions, MonaMultiSelectMessages, MonaNotificationMessages, MonaNumericTextBoxMessages, MonaOtpInputMessages, MonaPagerMessages, MonaProgressBarMessages, MonaRatingMessages, MonaScrollViewMessages, MonaSheetMessages, MonaSidebarMessages, MonaSliderMessages, MonaSpinnerMessages, MonaSplitButtonMessages, MonaSplitterMessages, MonaStepperMessages, MonaTabsMessages, MonaTextBoxMessages, MonaTextDirection, MonaTimePickerMessages, MonaTimeSelectorMessages, MonaTreeViewMessages, MonaWindowMessages, NotificationMessages, NumberGroupingPattern, NumberSymbols, ParseLocalizedNumberOptions, PseudoLocalizationOptions, SheetMessages, TimePickerMessages, TimeSelectorMessages, ValidateLocalizedNumberEditOptions, WindowMessages };
|
|
1173
|
+
export declare function generatePseudoLocale(catalogs: DeepPartial<MonaLocaleMessages>, options?: GeneratePseudoLocaleOptions): MonaLocale;
|
|
1174
|
+
export type { LocaleFirstDayOfWeek };
|