@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,1131 +1,1431 @@
|
|
|
1
|
-
import { isDevMode } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
// Generated by scripts/generate-message-parameters.ts from i18n/message-types. Do not edit.
|
|
5
|
-
// Run `npm run generate:message-parameters` after changing a message type.
|
|
6
|
-
/**
|
|
7
|
-
* The parameters of every message, by namespace and key, in the order the message function takes them. A plain
|
|
8
|
-
* string message has `null`.
|
|
9
|
-
*/
|
|
1
|
+
import { isDevMode } from "@angular/core";
|
|
2
|
+
import { MONA_FALLBACK_LOCALE_ID, canonicalizeLocaleId, formatNumber, tryCanonicalizeLocaleId } from "@nanahoshi/mona-ui/i18n";
|
|
10
3
|
const MONA_MESSAGE_PARAMETERS = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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
|
-
|
|
441
|
-
|
|
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
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
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
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
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
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
4
|
+
autoComplete: { clear: null },
|
|
5
|
+
breadcrumb: {
|
|
6
|
+
breadcrumb: null,
|
|
7
|
+
showFullPath: null
|
|
8
|
+
},
|
|
9
|
+
buttonGroup: { buttonGroup: null },
|
|
10
|
+
calendar: {
|
|
11
|
+
calendarLabel: [{
|
|
12
|
+
name: "formattedMonthAndYear",
|
|
13
|
+
type: "string"
|
|
14
|
+
}],
|
|
15
|
+
decadeRange: [{
|
|
16
|
+
name: "start",
|
|
17
|
+
type: "number"
|
|
18
|
+
}, {
|
|
19
|
+
name: "end",
|
|
20
|
+
type: "number"
|
|
21
|
+
}],
|
|
22
|
+
decadeViewLabel: [{
|
|
23
|
+
name: "start",
|
|
24
|
+
type: "number"
|
|
25
|
+
}, {
|
|
26
|
+
name: "end",
|
|
27
|
+
type: "number"
|
|
28
|
+
}],
|
|
29
|
+
goToToday: [{
|
|
30
|
+
name: "formattedDate",
|
|
31
|
+
type: "string"
|
|
32
|
+
}],
|
|
33
|
+
nextDecade: null,
|
|
34
|
+
nextMonth: null,
|
|
35
|
+
nextYear: null,
|
|
36
|
+
previousDecade: null,
|
|
37
|
+
previousMonth: null,
|
|
38
|
+
previousYear: null,
|
|
39
|
+
switchToDecadeView: [{
|
|
40
|
+
name: "currentYear",
|
|
41
|
+
type: "string"
|
|
42
|
+
}],
|
|
43
|
+
switchToYearView: [{
|
|
44
|
+
name: "currentMonthAndYear",
|
|
45
|
+
type: "string"
|
|
46
|
+
}],
|
|
47
|
+
today: null,
|
|
48
|
+
yearCellLabel: [{
|
|
49
|
+
name: "year",
|
|
50
|
+
type: "number"
|
|
51
|
+
}],
|
|
52
|
+
yearViewLabel: [{
|
|
53
|
+
name: "year",
|
|
54
|
+
type: "string"
|
|
55
|
+
}]
|
|
56
|
+
},
|
|
57
|
+
card: { actionsLabel: null },
|
|
58
|
+
chart: {
|
|
59
|
+
announcementSeparator: null,
|
|
60
|
+
brushApplied: [{
|
|
61
|
+
name: "count",
|
|
62
|
+
type: "number"
|
|
63
|
+
}],
|
|
64
|
+
brushCleared: null,
|
|
65
|
+
brushRange: [{
|
|
66
|
+
name: "from",
|
|
67
|
+
type: "string"
|
|
68
|
+
}, {
|
|
69
|
+
name: "to",
|
|
70
|
+
type: "string"
|
|
71
|
+
}],
|
|
72
|
+
category: null,
|
|
73
|
+
categoryFallbackName: [{
|
|
74
|
+
name: "index",
|
|
75
|
+
type: "number"
|
|
76
|
+
}],
|
|
77
|
+
categoryRange: [{
|
|
78
|
+
name: "from",
|
|
79
|
+
type: "string"
|
|
80
|
+
}, {
|
|
81
|
+
name: "to",
|
|
82
|
+
type: "string"
|
|
83
|
+
}],
|
|
84
|
+
change: null,
|
|
85
|
+
changeValue: [{
|
|
86
|
+
name: "change",
|
|
87
|
+
type: "string"
|
|
88
|
+
}],
|
|
89
|
+
chart: null,
|
|
90
|
+
chartLegend: null,
|
|
91
|
+
chartRoleDescription: null,
|
|
92
|
+
close: null,
|
|
93
|
+
closeAbbreviation: null,
|
|
94
|
+
colorScale: null,
|
|
95
|
+
conversion: null,
|
|
96
|
+
conversionOfPrevious: [{
|
|
97
|
+
name: "rate",
|
|
98
|
+
type: "string"
|
|
99
|
+
}],
|
|
100
|
+
dataTableTruncated: [{
|
|
101
|
+
name: "shown",
|
|
102
|
+
type: "number"
|
|
103
|
+
}, {
|
|
104
|
+
name: "total",
|
|
105
|
+
type: "number"
|
|
106
|
+
}],
|
|
107
|
+
decrease: null,
|
|
108
|
+
decreaseAnnouncement: [
|
|
109
|
+
{
|
|
110
|
+
name: "delta",
|
|
111
|
+
type: "string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "from",
|
|
115
|
+
type: "string"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "to",
|
|
119
|
+
type: "string"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
divergingRangeDescription: [
|
|
123
|
+
{
|
|
124
|
+
name: "title",
|
|
125
|
+
type: "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "minimum",
|
|
129
|
+
type: "string"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "midpoint",
|
|
133
|
+
type: "string"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "maximum",
|
|
137
|
+
type: "string"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
dropOff: null,
|
|
141
|
+
dropOffValue: [{
|
|
142
|
+
name: "value",
|
|
143
|
+
type: "string"
|
|
144
|
+
}],
|
|
145
|
+
falling: null,
|
|
146
|
+
gaugeRange: [{
|
|
147
|
+
name: "minimum",
|
|
148
|
+
type: "string"
|
|
149
|
+
}, {
|
|
150
|
+
name: "maximum",
|
|
151
|
+
type: "string"
|
|
152
|
+
}],
|
|
153
|
+
high: null,
|
|
154
|
+
highAbbreviation: null,
|
|
155
|
+
increase: null,
|
|
156
|
+
increaseAnnouncement: [
|
|
157
|
+
{
|
|
158
|
+
name: "delta",
|
|
159
|
+
type: "string"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "from",
|
|
163
|
+
type: "string"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "to",
|
|
167
|
+
type: "string"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
itemDeselected: [{
|
|
171
|
+
name: "item",
|
|
172
|
+
type: "string"
|
|
173
|
+
}],
|
|
174
|
+
itemFallbackName: [{
|
|
175
|
+
name: "index",
|
|
176
|
+
type: "number"
|
|
177
|
+
}],
|
|
178
|
+
itemSelected: [{
|
|
179
|
+
name: "item",
|
|
180
|
+
type: "string"
|
|
181
|
+
}],
|
|
182
|
+
keyboardHelp: null,
|
|
183
|
+
labelValueSeparator: null,
|
|
184
|
+
labeledValue: [{
|
|
185
|
+
name: "label",
|
|
186
|
+
type: "string"
|
|
187
|
+
}, {
|
|
188
|
+
name: "value",
|
|
189
|
+
type: "string"
|
|
190
|
+
}],
|
|
191
|
+
low: null,
|
|
192
|
+
lowAbbreviation: null,
|
|
193
|
+
noChange: null,
|
|
194
|
+
noChangeAnnouncement: [{
|
|
195
|
+
name: "value",
|
|
196
|
+
type: "string"
|
|
197
|
+
}],
|
|
198
|
+
noData: null,
|
|
199
|
+
ohlcValues: [
|
|
200
|
+
{
|
|
201
|
+
name: "open",
|
|
202
|
+
type: "string"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "high",
|
|
206
|
+
type: "string"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "low",
|
|
210
|
+
type: "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "close",
|
|
214
|
+
type: "string"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
open: null,
|
|
218
|
+
openAbbreviation: null,
|
|
219
|
+
overall: null,
|
|
220
|
+
overallConversion: [{
|
|
221
|
+
name: "rate",
|
|
222
|
+
type: "string"
|
|
223
|
+
}],
|
|
224
|
+
pannedDown: null,
|
|
225
|
+
pannedLeft: null,
|
|
226
|
+
pannedRight: null,
|
|
227
|
+
pannedUp: null,
|
|
228
|
+
pathSeparator: null,
|
|
229
|
+
pointPosition: [{
|
|
230
|
+
name: "position",
|
|
231
|
+
type: "number"
|
|
232
|
+
}, {
|
|
233
|
+
name: "total",
|
|
234
|
+
type: "number"
|
|
235
|
+
}],
|
|
236
|
+
range: null,
|
|
237
|
+
rangeDescription: [
|
|
238
|
+
{
|
|
239
|
+
name: "title",
|
|
240
|
+
type: "string"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "minimum",
|
|
244
|
+
type: "string"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: "maximum",
|
|
248
|
+
type: "string"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
rangeValue: [{
|
|
252
|
+
name: "from",
|
|
253
|
+
type: "string"
|
|
254
|
+
}, {
|
|
255
|
+
name: "to",
|
|
256
|
+
type: "string"
|
|
257
|
+
}],
|
|
258
|
+
rising: null,
|
|
259
|
+
runningTotal: null,
|
|
260
|
+
seriesFallbackName: [{
|
|
261
|
+
name: "index",
|
|
262
|
+
type: "number"
|
|
263
|
+
}],
|
|
264
|
+
seriesHidden: [{
|
|
265
|
+
name: "series",
|
|
266
|
+
type: "string"
|
|
267
|
+
}],
|
|
268
|
+
seriesShown: [{
|
|
269
|
+
name: "series",
|
|
270
|
+
type: "string"
|
|
271
|
+
}],
|
|
272
|
+
seriesSummary: [{
|
|
273
|
+
name: "count",
|
|
274
|
+
type: "number"
|
|
275
|
+
}, {
|
|
276
|
+
name: "names",
|
|
277
|
+
type: "string"
|
|
278
|
+
}],
|
|
279
|
+
seriesValueRange: [
|
|
280
|
+
{
|
|
281
|
+
name: "series",
|
|
282
|
+
type: "string"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "minimum",
|
|
286
|
+
type: "string"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "maximum",
|
|
290
|
+
type: "string"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
shareOfTotal: [{
|
|
294
|
+
name: "share",
|
|
295
|
+
type: "string"
|
|
296
|
+
}],
|
|
297
|
+
size: null,
|
|
298
|
+
sizeValue: [{
|
|
299
|
+
name: "size",
|
|
300
|
+
type: "string"
|
|
301
|
+
}],
|
|
302
|
+
stackShare: [{
|
|
303
|
+
name: "share",
|
|
304
|
+
type: "string"
|
|
305
|
+
}],
|
|
306
|
+
stageFallbackName: [{
|
|
307
|
+
name: "index",
|
|
308
|
+
type: "number"
|
|
309
|
+
}],
|
|
310
|
+
stagePosition: [{
|
|
311
|
+
name: "position",
|
|
312
|
+
type: "number"
|
|
313
|
+
}, {
|
|
314
|
+
name: "total",
|
|
315
|
+
type: "number"
|
|
316
|
+
}],
|
|
317
|
+
stepFallbackName: [{
|
|
318
|
+
name: "index",
|
|
319
|
+
type: "number"
|
|
320
|
+
}],
|
|
321
|
+
stepPosition: [{
|
|
322
|
+
name: "position",
|
|
323
|
+
type: "number"
|
|
324
|
+
}, {
|
|
325
|
+
name: "total",
|
|
326
|
+
type: "number"
|
|
327
|
+
}],
|
|
328
|
+
subtotal: null,
|
|
329
|
+
subtotalAnnouncement: [{
|
|
330
|
+
name: "value",
|
|
331
|
+
type: "string"
|
|
332
|
+
}],
|
|
333
|
+
total: null,
|
|
334
|
+
totalAnnouncement: [{
|
|
335
|
+
name: "value",
|
|
336
|
+
type: "string"
|
|
337
|
+
}],
|
|
338
|
+
treemapGroup: [{
|
|
339
|
+
name: "count",
|
|
340
|
+
type: "number"
|
|
341
|
+
}],
|
|
342
|
+
treemapLeaf: null,
|
|
343
|
+
unchanged: null,
|
|
344
|
+
value: null,
|
|
345
|
+
valueRange: [{
|
|
346
|
+
name: "from",
|
|
347
|
+
type: "string"
|
|
348
|
+
}, {
|
|
349
|
+
name: "to",
|
|
350
|
+
type: "string"
|
|
351
|
+
}],
|
|
352
|
+
viewportResetToDefault: null,
|
|
353
|
+
viewportResetToFull: null,
|
|
354
|
+
visualIndicatorClamped: null,
|
|
355
|
+
zoomedIn: null,
|
|
356
|
+
zoomedOut: null
|
|
357
|
+
},
|
|
358
|
+
chip: { removeLabel: [{
|
|
359
|
+
name: "label",
|
|
360
|
+
optional: true,
|
|
361
|
+
type: "string"
|
|
362
|
+
}] },
|
|
363
|
+
colorGradient: {
|
|
364
|
+
alpha: null,
|
|
365
|
+
alphaText: [{
|
|
366
|
+
name: "opacity",
|
|
367
|
+
type: "number"
|
|
368
|
+
}],
|
|
369
|
+
apply: null,
|
|
370
|
+
blue: null,
|
|
371
|
+
cancel: null,
|
|
372
|
+
clearColor: null,
|
|
373
|
+
colorCopied: null,
|
|
374
|
+
colorGradient: null,
|
|
375
|
+
copyAsHex: null,
|
|
376
|
+
copyAsRgb: null,
|
|
377
|
+
copyColor: null,
|
|
378
|
+
copyFailed: null,
|
|
379
|
+
currentColor: null,
|
|
380
|
+
green: null,
|
|
381
|
+
hexColor: null,
|
|
382
|
+
hue: null,
|
|
383
|
+
previousColor: null,
|
|
384
|
+
red: null,
|
|
385
|
+
saturation: null,
|
|
386
|
+
saturationAndValue: null,
|
|
387
|
+
saturationAndValueText: [{
|
|
388
|
+
name: "saturation",
|
|
389
|
+
type: "number"
|
|
390
|
+
}, {
|
|
391
|
+
name: "value",
|
|
392
|
+
type: "number"
|
|
393
|
+
}],
|
|
394
|
+
switchColorMode: null,
|
|
395
|
+
value: null
|
|
396
|
+
},
|
|
397
|
+
colorPalette: {
|
|
398
|
+
color: [{
|
|
399
|
+
name: "color",
|
|
400
|
+
type: "string"
|
|
401
|
+
}],
|
|
402
|
+
colorPalette: null,
|
|
403
|
+
namedColor: [{
|
|
404
|
+
name: "name",
|
|
405
|
+
type: "string"
|
|
406
|
+
}, {
|
|
407
|
+
name: "color",
|
|
408
|
+
type: "string"
|
|
409
|
+
}]
|
|
410
|
+
},
|
|
411
|
+
colorPicker: {
|
|
412
|
+
clearColor: null,
|
|
413
|
+
colorGradientPicker: null,
|
|
414
|
+
colorPalettePicker: null,
|
|
415
|
+
colorPicker: null,
|
|
416
|
+
noColor: null
|
|
417
|
+
},
|
|
418
|
+
comboBox: { clear: null },
|
|
419
|
+
command: {
|
|
420
|
+
dialogLabel: null,
|
|
421
|
+
inputLabel: null,
|
|
422
|
+
listLabel: null,
|
|
423
|
+
loading: null,
|
|
424
|
+
noResults: null,
|
|
425
|
+
placeholder: null,
|
|
426
|
+
resultsAvailable: [{
|
|
427
|
+
name: "count",
|
|
428
|
+
type: "number"
|
|
429
|
+
}]
|
|
430
|
+
},
|
|
431
|
+
datePicker: {
|
|
432
|
+
datePicker: null,
|
|
433
|
+
openCalendar: null
|
|
434
|
+
},
|
|
435
|
+
dateTimePicker: {
|
|
436
|
+
calendar: null,
|
|
437
|
+
cancel: null,
|
|
438
|
+
date: null,
|
|
439
|
+
dateTimePicker: null,
|
|
440
|
+
openDateTimePicker: null,
|
|
441
|
+
set: null,
|
|
442
|
+
time: null,
|
|
443
|
+
timePicker: null
|
|
444
|
+
},
|
|
445
|
+
dialog: {
|
|
446
|
+
cancel: null,
|
|
447
|
+
closeDialog: null,
|
|
448
|
+
ok: null
|
|
449
|
+
},
|
|
450
|
+
dropdownList: { clear: null },
|
|
451
|
+
dropdowns: {
|
|
452
|
+
itemPosition: [
|
|
453
|
+
{
|
|
454
|
+
name: "text",
|
|
455
|
+
type: "string"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: "position",
|
|
459
|
+
type: "number"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: "total",
|
|
463
|
+
type: "number"
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
noResultsFound: null,
|
|
467
|
+
resultsAvailable: [{
|
|
468
|
+
name: "count",
|
|
469
|
+
type: "number"
|
|
470
|
+
}]
|
|
471
|
+
},
|
|
472
|
+
editor: {
|
|
473
|
+
addColumnAfter: null,
|
|
474
|
+
addColumnBefore: null,
|
|
475
|
+
addHorizontalLine: null,
|
|
476
|
+
addRowAfter: null,
|
|
477
|
+
addRowBefore: null,
|
|
478
|
+
alignCenter: null,
|
|
479
|
+
alignEnd: null,
|
|
480
|
+
alignLeft: null,
|
|
481
|
+
alignRight: null,
|
|
482
|
+
alignStart: null,
|
|
483
|
+
alignmentGroup: null,
|
|
484
|
+
altText: null,
|
|
485
|
+
apply: null,
|
|
486
|
+
backgroundColor: null,
|
|
487
|
+
bold: null,
|
|
488
|
+
cancel: null,
|
|
489
|
+
codeBlock: null,
|
|
490
|
+
color: null,
|
|
491
|
+
contentLabel: null,
|
|
492
|
+
defaultFontFamily: null,
|
|
493
|
+
deleteColumn: null,
|
|
494
|
+
deleteRow: null,
|
|
495
|
+
deleteTable: null,
|
|
496
|
+
editLink: null,
|
|
497
|
+
enterUrl: null,
|
|
498
|
+
fontSize: null,
|
|
499
|
+
format: null,
|
|
500
|
+
heading: [{
|
|
501
|
+
name: "level",
|
|
502
|
+
type: "number"
|
|
503
|
+
}],
|
|
504
|
+
heightPx: null,
|
|
505
|
+
historyGroup: null,
|
|
506
|
+
imageUrl: null,
|
|
507
|
+
indent: null,
|
|
508
|
+
indentGroup: null,
|
|
509
|
+
insert: null,
|
|
510
|
+
insertImage: null,
|
|
511
|
+
insertLink: null,
|
|
512
|
+
insertOrderedList: null,
|
|
513
|
+
insertTable: null,
|
|
514
|
+
insertTaskList: null,
|
|
515
|
+
insertUnorderedList: null,
|
|
516
|
+
invalidUrl: null,
|
|
517
|
+
italic: null,
|
|
518
|
+
justify: null,
|
|
519
|
+
linkGroup: null,
|
|
520
|
+
listGroup: null,
|
|
521
|
+
mergeCells: null,
|
|
522
|
+
outdent: null,
|
|
523
|
+
paragraph: null,
|
|
524
|
+
quotation: null,
|
|
525
|
+
redo: null,
|
|
526
|
+
removeLink: null,
|
|
527
|
+
selectFontFamily: null,
|
|
528
|
+
selectFontSize: null,
|
|
529
|
+
splitCell: null,
|
|
530
|
+
strikethrough: null,
|
|
531
|
+
subscript: null,
|
|
532
|
+
superscript: null,
|
|
533
|
+
tableGroup: null,
|
|
534
|
+
tableSize: [{
|
|
535
|
+
name: "rows",
|
|
536
|
+
type: "number"
|
|
537
|
+
}, {
|
|
538
|
+
name: "columns",
|
|
539
|
+
type: "number"
|
|
540
|
+
}],
|
|
541
|
+
textStyleGroup: null,
|
|
542
|
+
toggleHeaderRow: null,
|
|
543
|
+
toolbar: null,
|
|
544
|
+
underline: null,
|
|
545
|
+
undo: null,
|
|
546
|
+
widthPx: null
|
|
547
|
+
},
|
|
548
|
+
filter: {
|
|
549
|
+
and: null,
|
|
550
|
+
apply: null,
|
|
551
|
+
clear: null,
|
|
552
|
+
contains: null,
|
|
553
|
+
doesNotContain: null,
|
|
554
|
+
endsWith: null,
|
|
555
|
+
isAfter: null,
|
|
556
|
+
isAfterOrEqualTo: null,
|
|
557
|
+
isBefore: null,
|
|
558
|
+
isBeforeOrEqualTo: null,
|
|
559
|
+
isEmpty: null,
|
|
560
|
+
isEqualTo: null,
|
|
561
|
+
isFalse: null,
|
|
562
|
+
isGreaterThan: null,
|
|
563
|
+
isGreaterThanOrEqualTo: null,
|
|
564
|
+
isLessThan: null,
|
|
565
|
+
isLessThanOrEqualTo: null,
|
|
566
|
+
isNotEmpty: null,
|
|
567
|
+
isNotEqualTo: null,
|
|
568
|
+
isNotNull: null,
|
|
569
|
+
isNotNullOrEmpty: null,
|
|
570
|
+
isNull: null,
|
|
571
|
+
isNullOrEmpty: null,
|
|
572
|
+
isTrue: null,
|
|
573
|
+
logic: null,
|
|
574
|
+
operator: null,
|
|
575
|
+
or: null,
|
|
576
|
+
secondOperator: null,
|
|
577
|
+
secondValue: null,
|
|
578
|
+
startsWith: null,
|
|
579
|
+
value: null
|
|
580
|
+
},
|
|
581
|
+
grid: {
|
|
582
|
+
all: null,
|
|
583
|
+
apply: null,
|
|
584
|
+
cancel: null,
|
|
585
|
+
cancelNewRow: null,
|
|
586
|
+
cancelRowEdit: [{
|
|
587
|
+
name: "rowNumber",
|
|
588
|
+
type: "number"
|
|
589
|
+
}],
|
|
590
|
+
clearFilter: [{
|
|
591
|
+
name: "column",
|
|
592
|
+
type: "string"
|
|
593
|
+
}],
|
|
594
|
+
collapseDetail: [{
|
|
595
|
+
name: "rowNumber",
|
|
596
|
+
type: "number"
|
|
597
|
+
}],
|
|
598
|
+
columnGrouped: [{
|
|
599
|
+
name: "column",
|
|
600
|
+
type: "string"
|
|
601
|
+
}],
|
|
602
|
+
columnMoved: [{
|
|
603
|
+
name: "column",
|
|
604
|
+
type: "string"
|
|
605
|
+
}, {
|
|
606
|
+
name: "position",
|
|
607
|
+
type: "number"
|
|
608
|
+
}],
|
|
609
|
+
columns: null,
|
|
610
|
+
columnsSelected: [{
|
|
611
|
+
name: "count",
|
|
612
|
+
type: "number"
|
|
613
|
+
}],
|
|
614
|
+
commandColumnTitle: null,
|
|
615
|
+
delete: null,
|
|
616
|
+
deleteRowConfirmation: [{
|
|
617
|
+
name: "rowNumber",
|
|
618
|
+
type: "number"
|
|
619
|
+
}],
|
|
620
|
+
deleteRowTitle: null,
|
|
621
|
+
details: null,
|
|
622
|
+
dragColumnHeaderToGroup: null,
|
|
623
|
+
edit: null,
|
|
624
|
+
editRow: [{
|
|
625
|
+
name: "rowNumber",
|
|
626
|
+
type: "number"
|
|
627
|
+
}],
|
|
628
|
+
expandDetail: [{
|
|
629
|
+
name: "rowNumber",
|
|
630
|
+
type: "number"
|
|
631
|
+
}],
|
|
632
|
+
fieldValidationError: null,
|
|
633
|
+
filterByColumn: [{
|
|
634
|
+
name: "column",
|
|
635
|
+
type: "string"
|
|
636
|
+
}],
|
|
637
|
+
filterByColumnFiltered: [{
|
|
638
|
+
name: "column",
|
|
639
|
+
type: "string"
|
|
640
|
+
}],
|
|
641
|
+
filterOperator: [{
|
|
642
|
+
name: "column",
|
|
643
|
+
type: "string"
|
|
644
|
+
}, {
|
|
645
|
+
name: "operator",
|
|
646
|
+
type: "string"
|
|
647
|
+
}],
|
|
648
|
+
filterPlaceholder: null,
|
|
649
|
+
group: null,
|
|
650
|
+
groupOptions: [{
|
|
651
|
+
name: "column",
|
|
652
|
+
type: "string"
|
|
653
|
+
}],
|
|
654
|
+
loading: null,
|
|
655
|
+
modified: null,
|
|
656
|
+
moveAsNext: null,
|
|
657
|
+
moveAsPrevious: null,
|
|
658
|
+
moveRow: null,
|
|
659
|
+
noData: null,
|
|
660
|
+
remove: null,
|
|
661
|
+
removeRow: [{
|
|
662
|
+
name: "rowNumber",
|
|
663
|
+
type: "number"
|
|
664
|
+
}],
|
|
665
|
+
reorderRow: [{
|
|
666
|
+
name: "rowNumber",
|
|
667
|
+
type: "number"
|
|
668
|
+
}],
|
|
669
|
+
resizeColumn: [{
|
|
670
|
+
name: "column",
|
|
671
|
+
type: "string"
|
|
672
|
+
}],
|
|
673
|
+
rowReorder: null,
|
|
674
|
+
rowReorderDisabled: null,
|
|
675
|
+
rowReorderDisabledEditing: null,
|
|
676
|
+
rowReorderDisabledFiltered: null,
|
|
677
|
+
rowReorderDisabledGrouped: null,
|
|
678
|
+
rowReorderDisabledServerBinding: null,
|
|
679
|
+
rowReorderDisabledSingleRow: null,
|
|
680
|
+
rowReorderDisabledSorted: null,
|
|
681
|
+
rowReorderDisabledVirtualScroll: null,
|
|
682
|
+
rowReorderHandleAriaLabel: [
|
|
683
|
+
{
|
|
684
|
+
name: "rowLabel",
|
|
685
|
+
type: "string"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
name: "keyboardHint",
|
|
689
|
+
type: "string"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
name: "disabledReason",
|
|
693
|
+
optional: true,
|
|
694
|
+
type: "string"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
rowReorderKeyboardHint: null,
|
|
698
|
+
rowReorderMoved: [{
|
|
699
|
+
name: "fromRowNumber",
|
|
700
|
+
type: "number"
|
|
701
|
+
}, {
|
|
702
|
+
name: "toPosition",
|
|
703
|
+
type: "number"
|
|
704
|
+
}],
|
|
705
|
+
rowValidationError: null,
|
|
706
|
+
save: null,
|
|
707
|
+
saveNewRow: null,
|
|
708
|
+
saveRow: [{
|
|
709
|
+
name: "rowNumber",
|
|
710
|
+
type: "number"
|
|
711
|
+
}],
|
|
712
|
+
selectAllRows: null,
|
|
713
|
+
selectRow: [{
|
|
714
|
+
name: "rowNumber",
|
|
715
|
+
type: "number"
|
|
716
|
+
}],
|
|
717
|
+
sortOrder: [{
|
|
718
|
+
name: "position",
|
|
719
|
+
type: "number"
|
|
720
|
+
}],
|
|
721
|
+
toolbar: null
|
|
722
|
+
},
|
|
723
|
+
label: { optional: null },
|
|
724
|
+
list: {
|
|
725
|
+
filterList: null,
|
|
726
|
+
loading: null,
|
|
727
|
+
noData: null,
|
|
728
|
+
pagerLabel: [{
|
|
729
|
+
name: "list",
|
|
730
|
+
type: "string"
|
|
731
|
+
}]
|
|
732
|
+
},
|
|
733
|
+
listBox: {
|
|
734
|
+
clearSelection: null,
|
|
735
|
+
itemsMoved: [{
|
|
736
|
+
name: "position",
|
|
737
|
+
type: "number"
|
|
738
|
+
}, {
|
|
739
|
+
name: "total",
|
|
740
|
+
type: "number"
|
|
741
|
+
}],
|
|
742
|
+
itemsRemoved: [{
|
|
743
|
+
name: "count",
|
|
744
|
+
type: "number"
|
|
745
|
+
}],
|
|
746
|
+
itemsTransferred: [{
|
|
747
|
+
name: "count",
|
|
748
|
+
type: "number"
|
|
749
|
+
}, {
|
|
750
|
+
name: "list",
|
|
751
|
+
type: "string"
|
|
752
|
+
}],
|
|
753
|
+
itemsTransferredToOtherList: [{
|
|
754
|
+
name: "count",
|
|
755
|
+
type: "number"
|
|
756
|
+
}],
|
|
757
|
+
moveDown: null,
|
|
758
|
+
moveUp: null,
|
|
759
|
+
remove: null,
|
|
760
|
+
selectionCleared: null,
|
|
761
|
+
toolbarLabel: [{
|
|
762
|
+
name: "list",
|
|
763
|
+
type: "string"
|
|
764
|
+
}],
|
|
765
|
+
transferAllFrom: null,
|
|
766
|
+
transferAllFromList: [{
|
|
767
|
+
name: "list",
|
|
768
|
+
type: "string"
|
|
769
|
+
}],
|
|
770
|
+
transferAllTo: null,
|
|
771
|
+
transferAllToList: [{
|
|
772
|
+
name: "list",
|
|
773
|
+
type: "string"
|
|
774
|
+
}],
|
|
775
|
+
transferFrom: null,
|
|
776
|
+
transferFromList: [{
|
|
777
|
+
name: "list",
|
|
778
|
+
type: "string"
|
|
779
|
+
}],
|
|
780
|
+
transferTo: null,
|
|
781
|
+
transferToList: [{
|
|
782
|
+
name: "list",
|
|
783
|
+
type: "string"
|
|
784
|
+
}]
|
|
785
|
+
},
|
|
786
|
+
multiSelect: {
|
|
787
|
+
clear: null,
|
|
788
|
+
itemsCount: [{
|
|
789
|
+
name: "count",
|
|
790
|
+
type: "number"
|
|
791
|
+
}],
|
|
792
|
+
removeMoreItems: [{
|
|
793
|
+
name: "count",
|
|
794
|
+
type: "number"
|
|
795
|
+
}]
|
|
796
|
+
},
|
|
797
|
+
notification: {
|
|
798
|
+
close: null,
|
|
799
|
+
error: null,
|
|
800
|
+
info: null,
|
|
801
|
+
region: null,
|
|
802
|
+
success: null,
|
|
803
|
+
warning: null
|
|
804
|
+
},
|
|
805
|
+
numericTextBox: {
|
|
806
|
+
decrease: null,
|
|
807
|
+
increase: null
|
|
808
|
+
},
|
|
809
|
+
otpInput: { verificationCode: null },
|
|
810
|
+
pager: {
|
|
811
|
+
firstPageLabel: null,
|
|
812
|
+
itemsPerPageLabel: null,
|
|
813
|
+
jumpBackwardLabel: [{
|
|
814
|
+
name: "pages",
|
|
815
|
+
type: "number"
|
|
816
|
+
}],
|
|
817
|
+
jumpForwardLabel: [{
|
|
818
|
+
name: "pages",
|
|
819
|
+
type: "number"
|
|
820
|
+
}],
|
|
821
|
+
lastPageLabel: null,
|
|
822
|
+
nextPageLabel: null,
|
|
823
|
+
ofText: null,
|
|
824
|
+
pageInputPrefix: [{
|
|
825
|
+
name: "totalPages",
|
|
826
|
+
type: "number"
|
|
827
|
+
}],
|
|
828
|
+
pageInputSuffix: [{
|
|
829
|
+
name: "totalPages",
|
|
830
|
+
type: "number"
|
|
831
|
+
}],
|
|
832
|
+
pageLabel: [{
|
|
833
|
+
name: "page",
|
|
834
|
+
type: "number"
|
|
835
|
+
}],
|
|
836
|
+
pageSelectLabel: null,
|
|
837
|
+
pageSizeLabel: [{
|
|
838
|
+
name: "pageSize",
|
|
839
|
+
type: "number"
|
|
840
|
+
}],
|
|
841
|
+
pageStatus: [{
|
|
842
|
+
name: "page",
|
|
843
|
+
type: "number"
|
|
844
|
+
}, {
|
|
845
|
+
name: "totalPages",
|
|
846
|
+
type: "number"
|
|
847
|
+
}],
|
|
848
|
+
pageText: null,
|
|
849
|
+
pagerLabel: null,
|
|
850
|
+
previousPageLabel: null,
|
|
851
|
+
rangeStatus: [
|
|
852
|
+
{
|
|
853
|
+
name: "start",
|
|
854
|
+
type: "number"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
name: "end",
|
|
858
|
+
type: "number"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
name: "total",
|
|
862
|
+
type: "number"
|
|
863
|
+
}
|
|
864
|
+
]
|
|
865
|
+
},
|
|
866
|
+
progressBar: { label: null },
|
|
867
|
+
rating: {
|
|
868
|
+
notRated: null,
|
|
869
|
+
valueText: [{
|
|
870
|
+
name: "value",
|
|
871
|
+
type: "number"
|
|
872
|
+
}, {
|
|
873
|
+
name: "max",
|
|
874
|
+
type: "number"
|
|
875
|
+
}]
|
|
876
|
+
},
|
|
877
|
+
scrollView: {
|
|
878
|
+
carousel: null,
|
|
879
|
+
nextPage: null,
|
|
880
|
+
page: [{
|
|
881
|
+
name: "current",
|
|
882
|
+
type: "number"
|
|
883
|
+
}],
|
|
884
|
+
pageOf: [{
|
|
885
|
+
name: "current",
|
|
886
|
+
type: "number"
|
|
887
|
+
}, {
|
|
888
|
+
name: "total",
|
|
889
|
+
type: "number"
|
|
890
|
+
}],
|
|
891
|
+
pages: null,
|
|
892
|
+
previousPage: null,
|
|
893
|
+
scrollPagerNext: null,
|
|
894
|
+
scrollPagerPrevious: null,
|
|
895
|
+
slide: null
|
|
896
|
+
},
|
|
897
|
+
sheet: { closeSheet: null },
|
|
898
|
+
sidebar: {
|
|
899
|
+
drawerLabel: null,
|
|
900
|
+
rail: null
|
|
901
|
+
},
|
|
902
|
+
slider: {
|
|
903
|
+
maximumValue: null,
|
|
904
|
+
minimumValue: null,
|
|
905
|
+
sliderValue: null
|
|
906
|
+
},
|
|
907
|
+
spinner: {
|
|
908
|
+
cancel: null,
|
|
909
|
+
loading: null
|
|
910
|
+
},
|
|
911
|
+
splitButton: {
|
|
912
|
+
menuButtonAriaLabel: null,
|
|
913
|
+
menuButtonWithText: [{
|
|
914
|
+
name: "text",
|
|
915
|
+
type: "string"
|
|
916
|
+
}],
|
|
917
|
+
splitButton: [{
|
|
918
|
+
name: "text",
|
|
919
|
+
type: "string"
|
|
920
|
+
}]
|
|
921
|
+
},
|
|
922
|
+
splitter: {
|
|
923
|
+
collapseDown: null,
|
|
924
|
+
collapseNext: null,
|
|
925
|
+
collapsePrevious: null,
|
|
926
|
+
collapseUp: null,
|
|
927
|
+
resizer: null
|
|
928
|
+
},
|
|
929
|
+
stepper: {
|
|
930
|
+
stepCompleted: null,
|
|
931
|
+
stepInvalid: null,
|
|
932
|
+
stepPosition: [{
|
|
933
|
+
name: "current",
|
|
934
|
+
type: "number"
|
|
935
|
+
}, {
|
|
936
|
+
name: "total",
|
|
937
|
+
type: "number"
|
|
938
|
+
}],
|
|
939
|
+
stepProgress: null,
|
|
940
|
+
stepper: null
|
|
941
|
+
},
|
|
942
|
+
tabs: {
|
|
943
|
+
closeTab: null,
|
|
944
|
+
scrollNext: null,
|
|
945
|
+
scrollPrevious: null
|
|
946
|
+
},
|
|
947
|
+
textBox: { clear: null },
|
|
948
|
+
timePicker: {
|
|
949
|
+
openTimePicker: null,
|
|
950
|
+
timePicker: null
|
|
951
|
+
},
|
|
952
|
+
timeSelector: {
|
|
953
|
+
am: null,
|
|
954
|
+
amPm: null,
|
|
955
|
+
headerHours: null,
|
|
956
|
+
headerMinutes: null,
|
|
957
|
+
headerSeconds: null,
|
|
958
|
+
hours: null,
|
|
959
|
+
minutes: null,
|
|
960
|
+
now: null,
|
|
961
|
+
pm: null,
|
|
962
|
+
seconds: null,
|
|
963
|
+
set: null,
|
|
964
|
+
timeSelector: null
|
|
965
|
+
},
|
|
966
|
+
treeView: {
|
|
967
|
+
collapse: null,
|
|
968
|
+
expand: null,
|
|
969
|
+
filter: null,
|
|
970
|
+
filterLabel: [{
|
|
971
|
+
name: "tree",
|
|
972
|
+
type: "string"
|
|
973
|
+
}],
|
|
974
|
+
filterTree: null,
|
|
975
|
+
loadError: [{
|
|
976
|
+
name: "node",
|
|
977
|
+
type: "string"
|
|
978
|
+
}],
|
|
979
|
+
loadingNode: [{
|
|
980
|
+
name: "node",
|
|
981
|
+
type: "string"
|
|
982
|
+
}],
|
|
983
|
+
movedAfter: [{
|
|
984
|
+
name: "node",
|
|
985
|
+
type: "string"
|
|
986
|
+
}, {
|
|
987
|
+
name: "target",
|
|
988
|
+
type: "string"
|
|
989
|
+
}],
|
|
990
|
+
movedBefore: [{
|
|
991
|
+
name: "node",
|
|
992
|
+
type: "string"
|
|
993
|
+
}, {
|
|
994
|
+
name: "target",
|
|
995
|
+
type: "string"
|
|
996
|
+
}],
|
|
997
|
+
movedInto: [{
|
|
998
|
+
name: "node",
|
|
999
|
+
type: "string"
|
|
1000
|
+
}, {
|
|
1001
|
+
name: "target",
|
|
1002
|
+
type: "string"
|
|
1003
|
+
}],
|
|
1004
|
+
noData: null,
|
|
1005
|
+
noMatches: null,
|
|
1006
|
+
results: [{
|
|
1007
|
+
name: "count",
|
|
1008
|
+
type: "number"
|
|
1009
|
+
}],
|
|
1010
|
+
retryLoading: [{
|
|
1011
|
+
name: "node",
|
|
1012
|
+
type: "string"
|
|
1013
|
+
}]
|
|
1014
|
+
},
|
|
1015
|
+
window: {
|
|
1016
|
+
close: null,
|
|
1017
|
+
closeWindow: null,
|
|
1018
|
+
maximize: null,
|
|
1019
|
+
minimize: null,
|
|
1020
|
+
moveOrResizeWindow: null,
|
|
1021
|
+
moveWindow: null,
|
|
1022
|
+
resizeBottom: null,
|
|
1023
|
+
resizeBottomLeft: null,
|
|
1024
|
+
resizeBottomRight: null,
|
|
1025
|
+
resizeLeft: null,
|
|
1026
|
+
resizeRight: null,
|
|
1027
|
+
resizeTop: null,
|
|
1028
|
+
resizeTopLeft: null,
|
|
1029
|
+
resizeTopRight: null,
|
|
1030
|
+
resizeWindow: null,
|
|
1031
|
+
restore: null
|
|
1032
|
+
}
|
|
667
1033
|
};
|
|
668
|
-
|
|
669
|
-
/** The `select` key that an absent or empty argument selects, before falling back to `other`. */
|
|
670
1034
|
const ICU_ABSENT_SELECT_KEY = "undefined";
|
|
671
|
-
const pluralRulesCache = new Map();
|
|
672
|
-
/**
|
|
673
|
-
* Formats a parsed message. Numbers go through `formatNumber`, so they use the locale's digits and grouping, the
|
|
674
|
-
* same as Mona's TypeScript catalogs.
|
|
675
|
-
*
|
|
676
|
-
* - An absent argument (`undefined`) formats as an empty string.
|
|
677
|
-
* - In `select`, an absent or empty argument picks the `undefined` option, then `other`; a present value never
|
|
678
|
-
* picks `undefined`.
|
|
679
|
-
* - In `plural`, an exact `=N` option wins over the value's plural category, which is taken after the offset.
|
|
680
|
-
*/
|
|
1035
|
+
const pluralRulesCache = /* @__PURE__ */ new Map();
|
|
681
1036
|
function formatIcuMessage(elements, values, localeId) {
|
|
682
|
-
|
|
1037
|
+
return formatElements(elements, values, localeId, null);
|
|
683
1038
|
}
|
|
684
1039
|
function formatElements(elements, values, localeId, pound) {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
const option = selectOption(element.options, values.get(element.name)) ?? element.options.get("other");
|
|
715
|
-
result += formatElements(option, values, localeId, pound);
|
|
716
|
-
break;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
return result;
|
|
1040
|
+
let result = "";
|
|
1041
|
+
for (const element of elements) switch (element.kind) {
|
|
1042
|
+
case "literal":
|
|
1043
|
+
result += element.value;
|
|
1044
|
+
break;
|
|
1045
|
+
case "argument":
|
|
1046
|
+
case "number": {
|
|
1047
|
+
const value = values.get(element.name);
|
|
1048
|
+
result += typeof value === "number" ? formatNumber(value, localeId, element.kind === "number" ? element.options : void 0) : value ?? "";
|
|
1049
|
+
break;
|
|
1050
|
+
}
|
|
1051
|
+
case "pound":
|
|
1052
|
+
result += pound == null ? "#" : formatNumber(pound, localeId);
|
|
1053
|
+
break;
|
|
1054
|
+
case "plural": {
|
|
1055
|
+
const value = Number(values.get(element.name));
|
|
1056
|
+
const exact = [...element.options].find(([key]) => key.startsWith("=") && Number(key.slice(1)) === value);
|
|
1057
|
+
const adjusted = value - element.offset;
|
|
1058
|
+
const option = exact?.[1] ?? element.options.get(getPluralRules(localeId, element.ordinal).select(adjusted)) ?? element.options.get("other");
|
|
1059
|
+
result += formatElements(option, values, localeId, adjusted);
|
|
1060
|
+
break;
|
|
1061
|
+
}
|
|
1062
|
+
case "select": {
|
|
1063
|
+
const option = selectOption(element.options, values.get(element.name)) ?? element.options.get("other");
|
|
1064
|
+
result += formatElements(option, values, localeId, pound);
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
return result;
|
|
721
1069
|
}
|
|
722
1070
|
function getPluralRules(localeId, ordinal) {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
1071
|
+
const cacheKey = `${ordinal ? "ordinal" : "cardinal"}:${localeId}`;
|
|
1072
|
+
let rules = pluralRulesCache.get(cacheKey);
|
|
1073
|
+
if (rules == null) {
|
|
1074
|
+
rules = new Intl.PluralRules(localeId, { type: ordinal ? "ordinal" : "cardinal" });
|
|
1075
|
+
pluralRulesCache.set(cacheKey, rules);
|
|
1076
|
+
}
|
|
1077
|
+
return rules;
|
|
730
1078
|
}
|
|
731
1079
|
function selectOption(options, value) {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
const key = String(value);
|
|
736
|
-
return key === ICU_ABSENT_SELECT_KEY ? undefined : options.get(key);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* Parser for the subset of ICU MessageFormat that Mona supports:
|
|
741
|
-
*
|
|
742
|
-
* - `{name}` and `{name, number}`, with the `integer` and `percent` styles and the `::group-off`,
|
|
743
|
-
* `::percent` and `::precision-integer` skeletons
|
|
744
|
-
* - `{name, plural, ...}` and `{name, selectordinal, ...}`, with `=N` and CLDR category selectors, `offset:N`, and `#`
|
|
745
|
-
* - `{name, select, ...}`
|
|
746
|
-
* - apostrophe quoting: `''` is an apostrophe, and `'{'`, `'}'` and, inside a plural, `'#'` are literal
|
|
747
|
-
*
|
|
748
|
-
* Dates, times and other argument types are rejected, because no Mona message takes one.
|
|
749
|
-
*/
|
|
750
|
-
class IcuSyntaxError extends Error {
|
|
751
|
-
constructor(message, offset, kind = "syntax") {
|
|
752
|
-
super(`${message} at position ${offset}`);
|
|
753
|
-
this.name = "IcuSyntaxError";
|
|
754
|
-
this.kind = kind;
|
|
755
|
-
this.offset = offset;
|
|
756
|
-
}
|
|
1080
|
+
if (value == null || value === "") return options.get(ICU_ABSENT_SELECT_KEY);
|
|
1081
|
+
const key = String(value);
|
|
1082
|
+
return key === "undefined" ? void 0 : options.get(key);
|
|
757
1083
|
}
|
|
758
|
-
|
|
1084
|
+
var IcuSyntaxError = class extends Error {
|
|
1085
|
+
constructor(message, offset, kind = "syntax") {
|
|
1086
|
+
super(`${message} at position ${offset}`);
|
|
1087
|
+
this.name = "IcuSyntaxError";
|
|
1088
|
+
this.kind = kind;
|
|
1089
|
+
this.offset = offset;
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
759
1092
|
const MAX_DEPTH = 16;
|
|
760
|
-
const PLURAL_CATEGORIES = new Set([
|
|
1093
|
+
const PLURAL_CATEGORIES = /* @__PURE__ */ new Set([
|
|
1094
|
+
"few",
|
|
1095
|
+
"many",
|
|
1096
|
+
"one",
|
|
1097
|
+
"other",
|
|
1098
|
+
"two",
|
|
1099
|
+
"zero"
|
|
1100
|
+
]);
|
|
761
1101
|
const IDENTIFIER_REGEX = /[A-Za-z_][A-Za-z0-9_]*/y;
|
|
762
1102
|
const KEYWORD_REGEX = /[\p{L}\p{N}_-]+/uy;
|
|
763
1103
|
const EXACT_SELECTOR_REGEX = /=-?\d+(?:\.\d+)?/y;
|
|
764
1104
|
const OFFSET_REGEX = /offset:\s*(\d+)/y;
|
|
765
1105
|
const WHITESPACE_REGEX = /\s*/y;
|
|
766
1106
|
const NUMBER_SKELETON_OPTIONS = {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
1107
|
+
"group-off": { useGrouping: false },
|
|
1108
|
+
percent: { style: "percent" },
|
|
1109
|
+
"precision-integer": { maximumFractionDigits: 0 }
|
|
770
1110
|
};
|
|
771
|
-
/** Parses an ICU message. Throws an {@link IcuSyntaxError} for input outside the supported subset. */
|
|
772
1111
|
function parseIcuMessage(source) {
|
|
773
|
-
|
|
774
|
-
|
|
1112
|
+
return parseMessage({
|
|
1113
|
+
pos: 0,
|
|
1114
|
+
source
|
|
1115
|
+
}, 0, false, false);
|
|
775
1116
|
}
|
|
776
1117
|
function expect(state, char) {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
state.pos++;
|
|
1118
|
+
if (state.source[state.pos] !== char) throw new IcuSyntaxError(state.pos >= state.source.length ? `Expected "${char}" but the message ended` : `Expected "${char}"`, state.pos);
|
|
1119
|
+
state.pos++;
|
|
781
1120
|
}
|
|
782
1121
|
function match(state, regex) {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
return result;
|
|
1122
|
+
regex.lastIndex = state.pos;
|
|
1123
|
+
const result = regex.exec(state.source);
|
|
1124
|
+
if (result != null) state.pos = regex.lastIndex;
|
|
1125
|
+
return result;
|
|
789
1126
|
}
|
|
790
1127
|
function parseArgument(state, depth, inPlural) {
|
|
791
|
-
|
|
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
|
-
|
|
1128
|
+
const start = state.pos;
|
|
1129
|
+
if (depth > MAX_DEPTH) throw new IcuSyntaxError(`Arguments are nested more than ${MAX_DEPTH} levels deep`, start);
|
|
1130
|
+
expect(state, "{");
|
|
1131
|
+
skipWhitespace(state);
|
|
1132
|
+
const name = match(state, IDENTIFIER_REGEX)?.[0];
|
|
1133
|
+
if (name == null) throw new IcuSyntaxError("Expected an argument name", state.pos);
|
|
1134
|
+
skipWhitespace(state);
|
|
1135
|
+
if (state.source[state.pos] === "}") {
|
|
1136
|
+
state.pos++;
|
|
1137
|
+
return {
|
|
1138
|
+
kind: "argument",
|
|
1139
|
+
name
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
expect(state, ",");
|
|
1143
|
+
skipWhitespace(state);
|
|
1144
|
+
const typeStart = state.pos;
|
|
1145
|
+
const type = match(state, IDENTIFIER_REGEX)?.[0];
|
|
1146
|
+
skipWhitespace(state);
|
|
1147
|
+
switch (type) {
|
|
1148
|
+
case "number": return parseNumberArgument(state, name);
|
|
1149
|
+
case "plural":
|
|
1150
|
+
case "selectordinal": return parsePluralArgument(state, name, type === "selectordinal", depth, start);
|
|
1151
|
+
case "select":
|
|
1152
|
+
expect(state, ",");
|
|
1153
|
+
return {
|
|
1154
|
+
kind: "select",
|
|
1155
|
+
name,
|
|
1156
|
+
options: parseOptions(state, depth, inPlural, false, start)
|
|
1157
|
+
};
|
|
1158
|
+
default: throw new IcuSyntaxError(type == null ? "Expected an argument type" : `Unsupported argument type "${type}"`, typeStart);
|
|
1159
|
+
}
|
|
823
1160
|
}
|
|
824
1161
|
function parseMessage(state, depth, inPlural, nested) {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
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
|
-
flush();
|
|
860
|
-
return elements;
|
|
1162
|
+
const { source } = state;
|
|
1163
|
+
const elements = [];
|
|
1164
|
+
let text = "";
|
|
1165
|
+
const flush = () => {
|
|
1166
|
+
if (text !== "") {
|
|
1167
|
+
elements.push({
|
|
1168
|
+
kind: "literal",
|
|
1169
|
+
value: text
|
|
1170
|
+
});
|
|
1171
|
+
text = "";
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
while (state.pos < source.length) {
|
|
1175
|
+
const char = source[state.pos];
|
|
1176
|
+
if (char === "'") text += readApostrophe(state, inPlural);
|
|
1177
|
+
else if (char === "{") {
|
|
1178
|
+
flush();
|
|
1179
|
+
elements.push(parseArgument(state, depth + 1, inPlural));
|
|
1180
|
+
} else if (char === "}") {
|
|
1181
|
+
if (nested) break;
|
|
1182
|
+
throw new IcuSyntaxError("Unexpected \"}\"", state.pos);
|
|
1183
|
+
} else if (char === "#" && inPlural) {
|
|
1184
|
+
flush();
|
|
1185
|
+
elements.push({ kind: "pound" });
|
|
1186
|
+
state.pos++;
|
|
1187
|
+
} else {
|
|
1188
|
+
text += char;
|
|
1189
|
+
state.pos++;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
flush();
|
|
1193
|
+
return elements;
|
|
861
1194
|
}
|
|
862
1195
|
function parseNumberArgument(state, name) {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
1196
|
+
if (state.source[state.pos] === "}") {
|
|
1197
|
+
state.pos++;
|
|
1198
|
+
return {
|
|
1199
|
+
kind: "number",
|
|
1200
|
+
name
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
expect(state, ",");
|
|
1204
|
+
const styleStart = state.pos;
|
|
1205
|
+
const end = state.source.indexOf("}", state.pos);
|
|
1206
|
+
if (end < 0) throw new IcuSyntaxError("Expected \"}\" but the message ended", state.source.length);
|
|
1207
|
+
const style = state.source.slice(state.pos, end).trim();
|
|
1208
|
+
state.pos = end + 1;
|
|
1209
|
+
if (style === "integer") return {
|
|
1210
|
+
kind: "number",
|
|
1211
|
+
name,
|
|
1212
|
+
options: NUMBER_SKELETON_OPTIONS["precision-integer"]
|
|
1213
|
+
};
|
|
1214
|
+
if (style === "percent") return {
|
|
1215
|
+
kind: "number",
|
|
1216
|
+
name,
|
|
1217
|
+
options: NUMBER_SKELETON_OPTIONS["percent"]
|
|
1218
|
+
};
|
|
1219
|
+
if (style.startsWith("::")) {
|
|
1220
|
+
let options = {};
|
|
1221
|
+
for (const token of style.slice(2).trim().split(/\s+/)) {
|
|
1222
|
+
if (!Object.hasOwn(NUMBER_SKELETON_OPTIONS, token)) throw new IcuSyntaxError(`Unsupported number skeleton "${token}"`, styleStart);
|
|
1223
|
+
options = {
|
|
1224
|
+
...options,
|
|
1225
|
+
...NUMBER_SKELETON_OPTIONS[token]
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
return {
|
|
1229
|
+
kind: "number",
|
|
1230
|
+
name,
|
|
1231
|
+
options
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
throw new IcuSyntaxError(`Unsupported number style "${style}"`, styleStart);
|
|
892
1235
|
}
|
|
893
|
-
/**
|
|
894
|
-
* Parses the `selector {message}` pairs that follow the comma after the argument type (and offset), up to and including the argument's closing brace. Every plural and select must
|
|
895
|
-
* have an `other` option, which is used when no other selector matches.
|
|
896
|
-
*/
|
|
897
1236
|
function parseOptions(state, depth, inPlural, plural, argumentStart) {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
expect(state, "{");
|
|
917
|
-
options.set(selector, parseMessage(state, depth, inPlural || plural, true));
|
|
918
|
-
expect(state, "}");
|
|
919
|
-
skipWhitespace(state);
|
|
920
|
-
}
|
|
921
|
-
state.pos++;
|
|
922
|
-
if (!options.has("other")) {
|
|
923
|
-
throw new IcuSyntaxError('Missing the "other" option', argumentStart, "missing-other");
|
|
924
|
-
}
|
|
925
|
-
return options;
|
|
1237
|
+
skipWhitespace(state);
|
|
1238
|
+
const options = /* @__PURE__ */ new Map();
|
|
1239
|
+
while (state.source[state.pos] !== "}") {
|
|
1240
|
+
if (state.pos >= state.source.length) throw new IcuSyntaxError("Expected \"}\" but the message ended", state.pos);
|
|
1241
|
+
const selectorStart = state.pos;
|
|
1242
|
+
const selector = (plural ? match(state, EXACT_SELECTOR_REGEX)?.[0] : void 0) ?? match(state, KEYWORD_REGEX)?.[0];
|
|
1243
|
+
if (selector == null) throw new IcuSyntaxError("Expected a selector", selectorStart);
|
|
1244
|
+
if (plural && !selector.startsWith("=") && !PLURAL_CATEGORIES.has(selector)) throw new IcuSyntaxError(`Unknown plural category "${selector}"`, selectorStart);
|
|
1245
|
+
if (options.has(selector)) throw new IcuSyntaxError(`Duplicate selector "${selector}"`, selectorStart);
|
|
1246
|
+
skipWhitespace(state);
|
|
1247
|
+
expect(state, "{");
|
|
1248
|
+
options.set(selector, parseMessage(state, depth, inPlural || plural, true));
|
|
1249
|
+
expect(state, "}");
|
|
1250
|
+
skipWhitespace(state);
|
|
1251
|
+
}
|
|
1252
|
+
state.pos++;
|
|
1253
|
+
if (!options.has("other")) throw new IcuSyntaxError("Missing the \"other\" option", argumentStart, "missing-other");
|
|
1254
|
+
return options;
|
|
926
1255
|
}
|
|
927
1256
|
function parsePluralArgument(state, name, ordinal, depth, argumentStart) {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1257
|
+
expect(state, ",");
|
|
1258
|
+
skipWhitespace(state);
|
|
1259
|
+
return {
|
|
1260
|
+
kind: "plural",
|
|
1261
|
+
name,
|
|
1262
|
+
offset: Number(match(state, OFFSET_REGEX)?.[1] ?? 0),
|
|
1263
|
+
options: parseOptions(state, depth, true, true, argumentStart),
|
|
1264
|
+
ordinal
|
|
1265
|
+
};
|
|
932
1266
|
}
|
|
933
|
-
/**
|
|
934
|
-
* Reads apostrophe quoting at the current position. `''` is one apostrophe. An apostrophe before `{`, `}`, or `#`
|
|
935
|
-
* inside a plural starts quoted text, which ends at the next single apostrophe. Any other apostrophe is literal.
|
|
936
|
-
*/
|
|
937
1267
|
function readApostrophe(state, inPlural) {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1268
|
+
const { source } = state;
|
|
1269
|
+
const next = source[state.pos + 1];
|
|
1270
|
+
if (next === "'") {
|
|
1271
|
+
state.pos += 2;
|
|
1272
|
+
return "'";
|
|
1273
|
+
}
|
|
1274
|
+
if (next !== "{" && next !== "}" && !(next === "#" && inPlural)) {
|
|
1275
|
+
state.pos++;
|
|
1276
|
+
return "'";
|
|
1277
|
+
}
|
|
1278
|
+
state.pos++;
|
|
1279
|
+
let text = "";
|
|
1280
|
+
while (state.pos < source.length) {
|
|
1281
|
+
if (source[state.pos] === "'") {
|
|
1282
|
+
if (source[state.pos + 1] === "'") {
|
|
1283
|
+
text += "'";
|
|
1284
|
+
state.pos += 2;
|
|
1285
|
+
continue;
|
|
1286
|
+
}
|
|
1287
|
+
state.pos++;
|
|
1288
|
+
break;
|
|
1289
|
+
}
|
|
1290
|
+
text += source[state.pos];
|
|
1291
|
+
state.pos++;
|
|
1292
|
+
}
|
|
1293
|
+
return text;
|
|
964
1294
|
}
|
|
965
1295
|
function skipWhitespace(state) {
|
|
966
|
-
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
/** Thrown by `compileMonaLocale` in strict mode when the data has issues. */
|
|
970
|
-
class MonaLocaleDataError extends Error {
|
|
971
|
-
constructor(issues) {
|
|
972
|
-
super(`[mona-ui] The locale data has ${issues.length} issue(s):\n` +
|
|
973
|
-
issues.map(issue => `- ${issue.path || "(root)"}: ${issue.message}`).join("\n"));
|
|
974
|
-
this.name = "MonaLocaleDataError";
|
|
975
|
-
this.issues = issues;
|
|
976
|
-
}
|
|
1296
|
+
match(state, WHITESPACE_REGEX);
|
|
977
1297
|
}
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
*
|
|
986
|
-
* ```ts
|
|
987
|
-
* provideMonaI18n({
|
|
988
|
-
* loadLocale: id => fetch(`/i18n/${id}.json`).then(r => r.json()).then(data => compileMonaLocale(data))
|
|
989
|
-
* });
|
|
990
|
-
* ```
|
|
991
|
-
*/
|
|
1298
|
+
var MonaLocaleDataError = class extends Error {
|
|
1299
|
+
constructor(issues) {
|
|
1300
|
+
super(`[mona-ui] The locale data has ${issues.length} issue(s):\n` + issues.map((issue) => `- ${issue.path || "(root)"}: ${issue.message}`).join("\n"));
|
|
1301
|
+
this.name = "MonaLocaleDataError";
|
|
1302
|
+
this.issues = issues;
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
992
1305
|
function compileMonaLocale(data, options) {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
console.warn(`[mona-ui] compileMonaLocale skipped what it could not compile; those messages fall back to English.`, issues);
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
return locale;
|
|
1306
|
+
const { issues, locale } = analyzeLocaleData(data);
|
|
1307
|
+
if (issues.length > 0) {
|
|
1308
|
+
if (options?.strict === true) throw new MonaLocaleDataError(issues);
|
|
1309
|
+
if (isDevMode()) console.warn(`[mona-ui] compileMonaLocale skipped what it could not compile; those messages fall back to English.`, issues);
|
|
1310
|
+
}
|
|
1311
|
+
return locale;
|
|
1003
1312
|
}
|
|
1004
|
-
/**
|
|
1005
|
-
* Checks locale data without compiling it, for example in CI before a catalog exported from a
|
|
1006
|
-
* translation-management system ships. Returns every issue; an empty array means the data compiles cleanly.
|
|
1007
|
-
*/
|
|
1008
1313
|
function validateMonaLocaleData(data) {
|
|
1009
|
-
|
|
1314
|
+
return analyzeLocaleData(data).issues;
|
|
1010
1315
|
}
|
|
1011
1316
|
function analyzeLocaleData(data) {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1317
|
+
const issues = [];
|
|
1318
|
+
const report = (code, path, message) => {
|
|
1319
|
+
issues.push({
|
|
1320
|
+
code,
|
|
1321
|
+
message,
|
|
1322
|
+
path
|
|
1323
|
+
});
|
|
1324
|
+
};
|
|
1325
|
+
if (!isRecord(data)) {
|
|
1326
|
+
report("invalid-structure", "", "Locale data must be an object with id, direction and messages.");
|
|
1327
|
+
return {
|
|
1328
|
+
issues,
|
|
1329
|
+
locale: {
|
|
1330
|
+
direction: "ltr",
|
|
1331
|
+
id: MONA_FALLBACK_LOCALE_ID,
|
|
1332
|
+
messages: {}
|
|
1333
|
+
}
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
let id = MONA_FALLBACK_LOCALE_ID;
|
|
1337
|
+
if (typeof data["id"] === "string" && tryCanonicalizeLocaleId(data["id"]) != null) id = data["id"];
|
|
1338
|
+
else report("invalid-id", "id", "id must be a valid BCP 47 locale id, such as de-DE.");
|
|
1339
|
+
let direction = "ltr";
|
|
1340
|
+
if (data["direction"] === "ltr" || data["direction"] === "rtl") direction = data["direction"];
|
|
1341
|
+
else report("invalid-direction", "direction", "direction must be \"ltr\" or \"rtl\".");
|
|
1342
|
+
const messages = {};
|
|
1343
|
+
const localeId = canonicalizeLocaleId(id);
|
|
1344
|
+
const dataMessages = data["messages"];
|
|
1345
|
+
if (!isRecord(dataMessages)) {
|
|
1346
|
+
report("invalid-structure", "messages", "messages must be an object of namespaces.");
|
|
1347
|
+
return {
|
|
1348
|
+
issues,
|
|
1349
|
+
locale: {
|
|
1350
|
+
direction,
|
|
1351
|
+
id,
|
|
1352
|
+
messages: {}
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
for (const [namespace, namespaceMessages] of Object.entries(dataMessages)) {
|
|
1357
|
+
const namespacePath = `messages.${namespace}`;
|
|
1358
|
+
if (!Object.hasOwn(MONA_MESSAGE_PARAMETERS, namespace)) {
|
|
1359
|
+
report("unknown-namespace", namespacePath, `"${namespace}" is not a message namespace.`);
|
|
1360
|
+
continue;
|
|
1361
|
+
}
|
|
1362
|
+
if (!isRecord(namespaceMessages)) {
|
|
1363
|
+
report("invalid-structure", namespacePath, "A namespace must be an object of messages.");
|
|
1364
|
+
continue;
|
|
1365
|
+
}
|
|
1366
|
+
const namespaceParameters = MONA_MESSAGE_PARAMETERS[namespace];
|
|
1367
|
+
const compiled = {};
|
|
1368
|
+
for (const [key, source] of Object.entries(namespaceMessages)) {
|
|
1369
|
+
const path = `${namespacePath}.${key}`;
|
|
1370
|
+
if (!Object.hasOwn(namespaceParameters, key)) {
|
|
1371
|
+
report("unknown-key", path, `"${key}" is not a message of the "${namespace}" namespace.`);
|
|
1372
|
+
continue;
|
|
1373
|
+
}
|
|
1374
|
+
if (typeof source !== "string") {
|
|
1375
|
+
report("not-a-string", path, "A message must be a string.");
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
const message = compileMessage(source, namespaceParameters[key], localeId, path, report);
|
|
1379
|
+
if (message !== void 0) compiled[key] = message;
|
|
1380
|
+
}
|
|
1381
|
+
messages[namespace] = compiled;
|
|
1382
|
+
}
|
|
1383
|
+
return {
|
|
1384
|
+
issues,
|
|
1385
|
+
locale: {
|
|
1386
|
+
direction,
|
|
1387
|
+
id,
|
|
1388
|
+
messages
|
|
1389
|
+
}
|
|
1390
|
+
};
|
|
1071
1391
|
}
|
|
1072
1392
|
function checkArguments(elements, parameters, path, report) {
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
for (const option of element.options.values()) {
|
|
1091
|
-
valid = checkArguments(option, parameters, path, report) && valid;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
return valid;
|
|
1393
|
+
let valid = true;
|
|
1394
|
+
for (const element of elements) {
|
|
1395
|
+
if (element.kind === "literal" || element.kind === "pound") continue;
|
|
1396
|
+
const parameter = parameters.find((p) => p.name === element.name);
|
|
1397
|
+
if (parameter == null) {
|
|
1398
|
+
const known = parameters.length === 0 ? "it takes none" : `it takes ${parameters.map((p) => p.name).join(", ")}`;
|
|
1399
|
+
report("unknown-parameter", path, `"${element.name}" is not a parameter of this message; ${known}.`);
|
|
1400
|
+
valid = false;
|
|
1401
|
+
continue;
|
|
1402
|
+
}
|
|
1403
|
+
if ((element.kind === "number" || element.kind === "plural") && parameter.type !== "number") {
|
|
1404
|
+
report("parameter-type", path, `"${element.name}" is a ${parameter.type}, so it cannot be a ${element.kind}.`);
|
|
1405
|
+
valid = false;
|
|
1406
|
+
}
|
|
1407
|
+
if (element.kind === "plural" || element.kind === "select") for (const option of element.options.values()) valid = checkArguments(option, parameters, path, report) && valid;
|
|
1408
|
+
}
|
|
1409
|
+
return valid;
|
|
1096
1410
|
}
|
|
1097
|
-
/** Compiles one message to a string or a function, or reports its issues and returns `undefined`. */
|
|
1098
1411
|
function compileMessage(source, parameters, localeId, path, report) {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1113
|
-
if (parameters == null) {
|
|
1114
|
-
return formatIcuMessage(elements, new Map(), localeId);
|
|
1115
|
-
}
|
|
1116
|
-
return (...args) => formatIcuMessage(elements, new Map(parameters.map((p, index) => [p.name, args[index]])), localeId);
|
|
1412
|
+
let elements;
|
|
1413
|
+
try {
|
|
1414
|
+
elements = parseIcuMessage(source);
|
|
1415
|
+
} catch (error) {
|
|
1416
|
+
if (error instanceof IcuSyntaxError) {
|
|
1417
|
+
report(error.kind, path, error.message);
|
|
1418
|
+
return;
|
|
1419
|
+
}
|
|
1420
|
+
throw error;
|
|
1421
|
+
}
|
|
1422
|
+
if (!checkArguments(elements, parameters ?? [], path, report)) return;
|
|
1423
|
+
if (parameters == null) return formatIcuMessage(elements, /* @__PURE__ */ new Map(), localeId);
|
|
1424
|
+
return (...args) => formatIcuMessage(elements, new Map(parameters.map((p, index) => [p.name, args[index]])), localeId);
|
|
1117
1425
|
}
|
|
1118
1426
|
function isRecord(value) {
|
|
1119
|
-
|
|
1427
|
+
return typeof value === "object" && value != null && !Array.isArray(value);
|
|
1120
1428
|
}
|
|
1121
|
-
|
|
1122
|
-
/*
|
|
1123
|
-
* Public API Surface of @nanahoshi/mona-ui/i18n/icu
|
|
1124
|
-
*/
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* Generated bundle index. Do not edit.
|
|
1128
|
-
*/
|
|
1129
|
-
|
|
1130
1429
|
export { MONA_MESSAGE_PARAMETERS, MonaLocaleDataError, compileMonaLocale, validateMonaLocaleData };
|
|
1131
|
-
|
|
1430
|
+
|
|
1431
|
+
//# sourceMappingURL=nanahoshi-mona-ui-i18n-icu.mjs.map
|