@g9tm/lynxcontrols-foundation 0.0.0-stage → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/collections.d.ts +16 -0
- package/dist/collections.d.ts.map +1 -0
- package/dist/collections.js +40 -0
- package/dist/collections.js.map +1 -0
- package/dist/culture/calendar.d.ts +122 -0
- package/dist/culture/calendar.d.ts.map +1 -0
- package/dist/culture/calendar.js +379 -0
- package/dist/culture/calendar.js.map +1 -0
- package/dist/culture/culture.d.ts +91 -0
- package/dist/culture/culture.d.ts.map +1 -0
- package/dist/culture/culture.js +173 -0
- package/dist/culture/culture.js.map +1 -0
- package/dist/culture/date-format.d.ts +19 -0
- package/dist/culture/date-format.d.ts.map +1 -0
- package/dist/culture/date-format.js +101 -0
- package/dist/culture/date-format.js.map +1 -0
- package/dist/culture/digits.d.ts +29 -0
- package/dist/culture/digits.d.ts.map +1 -0
- package/dist/culture/digits.js +43 -0
- package/dist/culture/digits.js.map +1 -0
- package/dist/culture/duration.d.ts +38 -0
- package/dist/culture/duration.d.ts.map +1 -0
- package/dist/culture/duration.js +41 -0
- package/dist/culture/duration.js.map +1 -0
- package/dist/culture/index.d.ts +9 -0
- package/dist/culture/index.d.ts.map +1 -0
- package/dist/culture/index.js +8 -0
- package/dist/culture/numbers.d.ts +38 -0
- package/dist/culture/numbers.d.ts.map +1 -0
- package/dist/culture/numbers.js +64 -0
- package/dist/culture/numbers.js.map +1 -0
- package/dist/culture/relative-time.d.ts +50 -0
- package/dist/culture/relative-time.d.ts.map +1 -0
- package/dist/culture/relative-time.js +63 -0
- package/dist/culture/relative-time.js.map +1 -0
- package/dist/culture/strings.d.ts +145 -0
- package/dist/culture/strings.d.ts.map +1 -0
- package/dist/culture/strings.js +345 -0
- package/dist/culture/strings.js.map +1 -0
- package/dist/enums/index.d.ts +195 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/index.js +130 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/errors.d.ts +10 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +21 -0
- package/dist/errors.js.map +1 -0
- package/dist/exec/diagnostics.d.ts +74 -0
- package/dist/exec/diagnostics.d.ts.map +1 -0
- package/dist/exec/diagnostics.js +73 -0
- package/dist/exec/diagnostics.js.map +1 -0
- package/dist/exec/index.d.ts +5 -0
- package/dist/exec/index.d.ts.map +1 -0
- package/dist/exec/index.js +4 -0
- package/dist/exec/options.d.ts +75 -0
- package/dist/exec/options.d.ts.map +1 -0
- package/dist/exec/options.js +107 -0
- package/dist/exec/options.js.map +1 -0
- package/dist/exec/safe-executor.d.ts +138 -0
- package/dist/exec/safe-executor.d.ts.map +1 -0
- package/dist/exec/safe-executor.js +401 -0
- package/dist/exec/safe-executor.js.map +1 -0
- package/dist/exec/trace.d.ts +59 -0
- package/dist/exec/trace.d.ts.map +1 -0
- package/dist/exec/trace.js +108 -0
- package/dist/exec/trace.js.map +1 -0
- package/dist/icons/generated/glyph-svg.d.ts +37 -0
- package/dist/icons/generated/glyph-svg.d.ts.map +1 -0
- package/dist/icons/generated/glyph-svg.js +33 -0
- package/dist/icons/generated/glyph-svg.js.map +1 -0
- package/dist/icons/glyph-slots.d.ts +79 -0
- package/dist/icons/glyph-slots.d.ts.map +1 -0
- package/dist/icons/glyph-slots.js +50 -0
- package/dist/icons/glyph-slots.js.map +1 -0
- package/dist/icons/glyph.d.ts +76 -0
- package/dist/icons/glyph.d.ts.map +1 -0
- package/dist/icons/glyph.js +42 -0
- package/dist/icons/glyph.js.map +1 -0
- package/dist/icons/icon-fonts.d.ts +55 -0
- package/dist/icons/icon-fonts.d.ts.map +1 -0
- package/dist/icons/icon-fonts.js +74 -0
- package/dist/icons/icon-fonts.js.map +1 -0
- package/dist/icons/icon.d.ts +102 -0
- package/dist/icons/icon.d.ts.map +1 -0
- package/dist/icons/icon.js +132 -0
- package/dist/icons/icon.js.map +1 -0
- package/dist/icons/index.d.ts +7 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +6 -0
- package/dist/icons/svg.d.ts +28 -0
- package/dist/icons/svg.d.ts.map +1 -0
- package/dist/icons/svg.js +59 -0
- package/dist/icons/svg.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/services/abort.d.ts +31 -0
- package/dist/services/abort.d.ts.map +1 -0
- package/dist/services/abort.js +47 -0
- package/dist/services/abort.js.map +1 -0
- package/dist/services/clock.d.ts +35 -0
- package/dist/services/clock.d.ts.map +1 -0
- package/dist/services/clock.js +37 -0
- package/dist/services/clock.js.map +1 -0
- package/dist/services/contracts.d.ts +200 -0
- package/dist/services/contracts.d.ts.map +1 -0
- package/dist/services/contracts.js +37 -0
- package/dist/services/contracts.js.map +1 -0
- package/dist/services/index.d.ts +5 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +4 -0
- package/dist/services/preferences.d.ts +105 -0
- package/dist/services/preferences.d.ts.map +1 -0
- package/dist/services/preferences.js +253 -0
- package/dist/services/preferences.js.map +1 -0
- package/dist/theme/color.d.ts +94 -0
- package/dist/theme/color.d.ts.map +1 -0
- package/dist/theme/color.js +150 -0
- package/dist/theme/color.js.map +1 -0
- package/dist/theme/control-colors.d.ts +46 -0
- package/dist/theme/control-colors.d.ts.map +1 -0
- package/dist/theme/control-colors.js +46 -0
- package/dist/theme/control-colors.js.map +1 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +4 -0
- package/dist/theme/theme.d.ts +88 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/theme/theme.js +190 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/theme/variants.d.ts +33 -0
- package/dist/theme/variants.d.ts.map +1 -0
- package/dist/theme/variants.js +53 -0
- package/dist/theme/variants.js.map +1 -0
- package/dist/tokens/css-vars.d.ts +35 -0
- package/dist/tokens/css-vars.d.ts.map +1 -0
- package/dist/tokens/css-vars.js +49 -0
- package/dist/tokens/css-vars.js.map +1 -0
- package/dist/tokens/generated/metrics.d.ts +184 -0
- package/dist/tokens/generated/metrics.d.ts.map +1 -0
- package/dist/tokens/generated/metrics.js +349 -0
- package/dist/tokens/generated/metrics.js.map +1 -0
- package/dist/tokens/generated/palettes.d.ts +113 -0
- package/dist/tokens/generated/palettes.d.ts.map +1 -0
- package/dist/tokens/generated/palettes.js +391 -0
- package/dist/tokens/generated/palettes.js.map +1 -0
- package/dist/tokens/index.d.ts +5 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +4 -0
- package/dist/tokens/layout-metrics.d.ts +120 -0
- package/dist/tokens/layout-metrics.d.ts.map +1 -0
- package/dist/tokens/layout-metrics.js +111 -0
- package/dist/tokens/layout-metrics.js.map +1 -0
- package/docs/api.md +368 -0
- package/docs/foundation.md +369 -0
- package/docs/migration/Core.Controls.Shared.md +475 -0
- package/docs/migration/Core.Helpers.md +132 -0
- package/docs/migration/Core.Icons.md +135 -0
- package/docs/migration/Core.Localization.md +118 -0
- package/docs/migration/Core.Storage.md +54 -0
- package/docs/migration/Core.Theming.md +328 -0
- package/package.json +59 -4
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { G9Error } from "../errors.js";
|
|
2
|
+
import { formatPlainNumber } from "./numbers.js";
|
|
3
|
+
const G9StringKey = {
|
|
4
|
+
Ok: 'ok',
|
|
5
|
+
Cancel: 'cancel',
|
|
6
|
+
Save: 'save',
|
|
7
|
+
Confirm: 'confirm',
|
|
8
|
+
Close: 'close',
|
|
9
|
+
Done: 'done',
|
|
10
|
+
Back: 'back',
|
|
11
|
+
Retry: 'retry',
|
|
12
|
+
Skip: 'skip',
|
|
13
|
+
MoreDetails: 'moreDetails',
|
|
14
|
+
Clear: 'clear',
|
|
15
|
+
Reset: 'reset',
|
|
16
|
+
Delete: 'delete',
|
|
17
|
+
Search: 'search',
|
|
18
|
+
NoResults: 'noResults',
|
|
19
|
+
Selected: 'selected',
|
|
20
|
+
ComingSoon: 'comingSoon',
|
|
21
|
+
Loading: 'loading',
|
|
22
|
+
SelectDate: 'selectDate',
|
|
23
|
+
SelectTime: 'selectTime',
|
|
24
|
+
SelectDateTime: 'selectDateTime',
|
|
25
|
+
SelectDuration: 'selectDuration',
|
|
26
|
+
Today: 'today',
|
|
27
|
+
Tomorrow: 'tomorrow',
|
|
28
|
+
Yesterday: 'yesterday',
|
|
29
|
+
Now: 'now',
|
|
30
|
+
Year: 'year',
|
|
31
|
+
Month: 'month',
|
|
32
|
+
Day: 'day',
|
|
33
|
+
Hour: 'hour',
|
|
34
|
+
Minute: 'minute',
|
|
35
|
+
TimeSpanYearsFormat: 'timeSpanYearsFormat',
|
|
36
|
+
TimeSpanMonthsFormat: 'timeSpanMonthsFormat',
|
|
37
|
+
TimeSpanDaysFormat: 'timeSpanDaysFormat',
|
|
38
|
+
Information: 'information',
|
|
39
|
+
Success: 'success',
|
|
40
|
+
Warning: 'warning',
|
|
41
|
+
Error: 'error',
|
|
42
|
+
RequiredSuffix: 'requiredSuffix',
|
|
43
|
+
InvalidEmail: 'invalidEmail',
|
|
44
|
+
InvalidUrl: 'invalidUrl',
|
|
45
|
+
InvalidValue: 'invalidValue',
|
|
46
|
+
Scanning: 'scanning',
|
|
47
|
+
MicrophonePermissionDenied: 'microphonePermissionDenied',
|
|
48
|
+
SpeechRecognitionPermissionDenied: 'speechRecognitionPermissionDenied',
|
|
49
|
+
SpeechRecognitionUnavailable: 'speechRecognitionUnavailable',
|
|
50
|
+
VoiceRecognitionFailed: 'voiceRecognitionFailed',
|
|
51
|
+
PermissionErrorFormat: 'permissionErrorFormat',
|
|
52
|
+
TimeAgoJustNow: 'timeAgoJustNow',
|
|
53
|
+
TimeAgoMinutesFormat: 'timeAgoMinutesFormat',
|
|
54
|
+
TimeAgoHoursFormat: 'timeAgoHoursFormat',
|
|
55
|
+
TimeAgoDaysFormat: 'timeAgoDaysFormat',
|
|
56
|
+
TimeAgoWeeksFormat: 'timeAgoWeeksFormat',
|
|
57
|
+
TimeAgoMonthsFormat: 'timeAgoMonthsFormat',
|
|
58
|
+
TimeAgoYearsFormat: 'timeAgoYearsFormat',
|
|
59
|
+
Cancelled: 'cancelled',
|
|
60
|
+
CancelFinishingStep: 'cancelFinishingStep',
|
|
61
|
+
UnexpectedError: 'unexpectedError',
|
|
62
|
+
Checked: 'checked',
|
|
63
|
+
NotChecked: 'notChecked',
|
|
64
|
+
PartiallyChecked: 'partiallyChecked'
|
|
65
|
+
};
|
|
66
|
+
const g9StringKeys = Object.freeze(Object.keys(G9StringKey).map((name)=>toKey(name)));
|
|
67
|
+
function toKey(name) {
|
|
68
|
+
return G9StringKey[name];
|
|
69
|
+
}
|
|
70
|
+
const resourceNames = new Map(Object.keys(G9StringKey).map((name)=>[
|
|
71
|
+
toKey(name),
|
|
72
|
+
name
|
|
73
|
+
]));
|
|
74
|
+
function g9StringResourceName(key) {
|
|
75
|
+
const name = resourceNames.get(key);
|
|
76
|
+
if (void 0 === name) throw new G9Error('strings-unknown-key', `"${String(key)}" is not a G9StringKey.`);
|
|
77
|
+
return name;
|
|
78
|
+
}
|
|
79
|
+
const g9EnglishStrings = Object.freeze({
|
|
80
|
+
ok: 'OK',
|
|
81
|
+
cancel: 'Cancel',
|
|
82
|
+
save: 'Save',
|
|
83
|
+
confirm: 'Confirm',
|
|
84
|
+
close: 'Close',
|
|
85
|
+
done: 'Done',
|
|
86
|
+
back: 'Back',
|
|
87
|
+
retry: 'Retry',
|
|
88
|
+
skip: 'Skip',
|
|
89
|
+
moreDetails: 'More details',
|
|
90
|
+
clear: 'Clear',
|
|
91
|
+
reset: 'Reset',
|
|
92
|
+
delete: 'Delete',
|
|
93
|
+
search: 'Search…',
|
|
94
|
+
noResults: 'No results',
|
|
95
|
+
selected: 'selected',
|
|
96
|
+
comingSoon: 'Coming soon',
|
|
97
|
+
loading: 'Loading…',
|
|
98
|
+
selectDate: 'Select date',
|
|
99
|
+
selectTime: 'Select time',
|
|
100
|
+
selectDateTime: 'Select date and time',
|
|
101
|
+
selectDuration: 'Select duration',
|
|
102
|
+
today: 'Today',
|
|
103
|
+
tomorrow: 'Tomorrow',
|
|
104
|
+
yesterday: 'Yesterday',
|
|
105
|
+
now: 'Now',
|
|
106
|
+
year: 'Year',
|
|
107
|
+
month: 'Month',
|
|
108
|
+
day: 'Day',
|
|
109
|
+
hour: 'Hour',
|
|
110
|
+
minute: 'Minute',
|
|
111
|
+
timeSpanYearsFormat: '{0}y',
|
|
112
|
+
timeSpanMonthsFormat: '{0}m',
|
|
113
|
+
timeSpanDaysFormat: '{0}d',
|
|
114
|
+
information: 'Information',
|
|
115
|
+
success: 'Success',
|
|
116
|
+
warning: 'Warning',
|
|
117
|
+
error: 'Error',
|
|
118
|
+
requiredSuffix: 'is required',
|
|
119
|
+
invalidEmail: 'Invalid email',
|
|
120
|
+
invalidUrl: 'Invalid URL',
|
|
121
|
+
invalidValue: 'Invalid value',
|
|
122
|
+
scanning: 'Scanning…',
|
|
123
|
+
microphonePermissionDenied: 'Microphone permission denied',
|
|
124
|
+
speechRecognitionPermissionDenied: 'Speech recognition permission denied',
|
|
125
|
+
speechRecognitionUnavailable: 'Voice input is not available on this device',
|
|
126
|
+
voiceRecognitionFailed: 'Voice recognition failed',
|
|
127
|
+
permissionErrorFormat: 'Permission error: {0}',
|
|
128
|
+
timeAgoJustNow: 'just now',
|
|
129
|
+
timeAgoMinutesFormat: '{0} min ago',
|
|
130
|
+
timeAgoHoursFormat: '{0} h ago',
|
|
131
|
+
timeAgoDaysFormat: '{0} d ago',
|
|
132
|
+
timeAgoWeeksFormat: '{0} w ago',
|
|
133
|
+
timeAgoMonthsFormat: '{0} mo ago',
|
|
134
|
+
timeAgoYearsFormat: '{0} y ago',
|
|
135
|
+
cancelled: 'Cancelled',
|
|
136
|
+
cancelFinishingStep: 'Finishing the current step…',
|
|
137
|
+
unexpectedError: 'Something went wrong. Please try again.',
|
|
138
|
+
checked: 'checked',
|
|
139
|
+
notChecked: 'not checked',
|
|
140
|
+
partiallyChecked: 'partially checked'
|
|
141
|
+
});
|
|
142
|
+
const g9PersianStrings = Object.freeze({
|
|
143
|
+
ok: 'تأیید',
|
|
144
|
+
cancel: 'انصراف',
|
|
145
|
+
save: 'ذخیره',
|
|
146
|
+
confirm: 'تأیید',
|
|
147
|
+
close: 'بستن',
|
|
148
|
+
done: 'انجام شد',
|
|
149
|
+
back: 'بازگشت',
|
|
150
|
+
retry: 'تلاش دوباره',
|
|
151
|
+
skip: 'رد شدن',
|
|
152
|
+
moreDetails: 'جزئیات بیشتر',
|
|
153
|
+
clear: 'پاک کردن',
|
|
154
|
+
reset: 'بازنشانی',
|
|
155
|
+
delete: 'حذف',
|
|
156
|
+
search: 'جستجو…',
|
|
157
|
+
noResults: 'نتیجهای یافت نشد',
|
|
158
|
+
selected: 'انتخابشده',
|
|
159
|
+
comingSoon: 'بهزودی',
|
|
160
|
+
loading: 'در حال بارگذاری…',
|
|
161
|
+
selectDate: 'انتخاب تاریخ',
|
|
162
|
+
selectTime: 'انتخاب زمان',
|
|
163
|
+
selectDateTime: 'انتخاب تاریخ و زمان',
|
|
164
|
+
selectDuration: 'انتخاب مدت',
|
|
165
|
+
today: 'امروز',
|
|
166
|
+
tomorrow: 'فردا',
|
|
167
|
+
yesterday: 'دیروز',
|
|
168
|
+
now: 'اکنون',
|
|
169
|
+
year: 'سال',
|
|
170
|
+
month: 'ماه',
|
|
171
|
+
day: 'روز',
|
|
172
|
+
hour: 'ساعت',
|
|
173
|
+
minute: 'دقیقه',
|
|
174
|
+
timeSpanYearsFormat: '{0} سال',
|
|
175
|
+
timeSpanMonthsFormat: '{0} ماه',
|
|
176
|
+
timeSpanDaysFormat: '{0} روز',
|
|
177
|
+
information: 'اطلاعات',
|
|
178
|
+
success: 'موفق',
|
|
179
|
+
warning: 'هشدار',
|
|
180
|
+
error: 'خطا',
|
|
181
|
+
requiredSuffix: 'الزامی است',
|
|
182
|
+
invalidEmail: 'ایمیل نامعتبر است',
|
|
183
|
+
invalidUrl: 'نشانی اینترنتی نامعتبر است',
|
|
184
|
+
invalidValue: 'مقدار نامعتبر است',
|
|
185
|
+
scanning: 'در حال اسکن…',
|
|
186
|
+
microphonePermissionDenied: 'اجازهٔ دسترسی به میکروفون داده نشد',
|
|
187
|
+
speechRecognitionPermissionDenied: 'اجازهٔ تشخیص گفتار داده نشد',
|
|
188
|
+
speechRecognitionUnavailable: 'ورودی صوتی در این دستگاه در دسترس نیست',
|
|
189
|
+
voiceRecognitionFailed: 'تشخیص گفتار ناموفق بود',
|
|
190
|
+
permissionErrorFormat: 'خطای مجوز: {0}',
|
|
191
|
+
timeAgoJustNow: 'همین الان',
|
|
192
|
+
timeAgoMinutesFormat: '{0} دقیقه پیش',
|
|
193
|
+
timeAgoHoursFormat: '{0} ساعت پیش',
|
|
194
|
+
timeAgoDaysFormat: '{0} روز پیش',
|
|
195
|
+
timeAgoWeeksFormat: '{0} هفته پیش',
|
|
196
|
+
timeAgoMonthsFormat: '{0} ماه پیش',
|
|
197
|
+
timeAgoYearsFormat: '{0} سال پیش',
|
|
198
|
+
cancelled: 'لغو شد',
|
|
199
|
+
cancelFinishingStep: 'در حال پایان دادن به مرحلهٔ جاری…',
|
|
200
|
+
unexpectedError: 'مشکلی پیش آمد. لطفاً دوباره تلاش کنید.',
|
|
201
|
+
checked: 'انتخابشده',
|
|
202
|
+
notChecked: 'انتخابنشده',
|
|
203
|
+
partiallyChecked: 'بخشی انتخابشده'
|
|
204
|
+
});
|
|
205
|
+
const g9ArabicStrings = Object.freeze({
|
|
206
|
+
ok: 'موافق',
|
|
207
|
+
cancel: 'إلغاء',
|
|
208
|
+
save: 'حفظ',
|
|
209
|
+
confirm: 'تأكيد',
|
|
210
|
+
close: 'إغلاق',
|
|
211
|
+
done: 'تم',
|
|
212
|
+
back: 'رجوع',
|
|
213
|
+
retry: 'إعادة المحاولة',
|
|
214
|
+
skip: 'تخطي',
|
|
215
|
+
moreDetails: 'مزيد من التفاصيل',
|
|
216
|
+
clear: 'مسح',
|
|
217
|
+
reset: 'إعادة تعيين',
|
|
218
|
+
delete: 'حذف',
|
|
219
|
+
search: 'بحث…',
|
|
220
|
+
noResults: 'لا توجد نتائج',
|
|
221
|
+
selected: 'محدد',
|
|
222
|
+
comingSoon: 'قريبًا',
|
|
223
|
+
loading: 'جارٍ التحميل…',
|
|
224
|
+
selectDate: 'اختر التاريخ',
|
|
225
|
+
selectTime: 'اختر الوقت',
|
|
226
|
+
selectDateTime: 'اختر التاريخ والوقت',
|
|
227
|
+
selectDuration: 'اختر المدة',
|
|
228
|
+
today: 'اليوم',
|
|
229
|
+
tomorrow: 'غدًا',
|
|
230
|
+
yesterday: 'أمس',
|
|
231
|
+
now: 'الآن',
|
|
232
|
+
year: 'السنة',
|
|
233
|
+
month: 'الشهر',
|
|
234
|
+
day: 'اليوم',
|
|
235
|
+
hour: 'الساعة',
|
|
236
|
+
minute: 'الدقيقة',
|
|
237
|
+
timeSpanYearsFormat: '{0} سنة',
|
|
238
|
+
timeSpanMonthsFormat: '{0} شهر',
|
|
239
|
+
timeSpanDaysFormat: '{0} يوم',
|
|
240
|
+
information: 'معلومات',
|
|
241
|
+
success: 'نجاح',
|
|
242
|
+
warning: 'تحذير',
|
|
243
|
+
error: 'خطأ',
|
|
244
|
+
requiredSuffix: 'مطلوب',
|
|
245
|
+
invalidEmail: 'بريد إلكتروني غير صالح',
|
|
246
|
+
invalidUrl: 'عنوان URL غير صالح',
|
|
247
|
+
invalidValue: 'قيمة غير صالحة',
|
|
248
|
+
scanning: 'جارٍ المسح…',
|
|
249
|
+
microphonePermissionDenied: 'تم رفض إذن الميكروفون',
|
|
250
|
+
speechRecognitionPermissionDenied: 'تم رفض إذن التعرف على الكلام',
|
|
251
|
+
speechRecognitionUnavailable: 'الإدخال الصوتي غير متاح على هذا الجهاز',
|
|
252
|
+
voiceRecognitionFailed: 'فشل التعرف على الصوت',
|
|
253
|
+
permissionErrorFormat: 'خطأ في الإذن: {0}',
|
|
254
|
+
timeAgoJustNow: 'الآن',
|
|
255
|
+
timeAgoMinutesFormat: 'منذ {0} دقيقة',
|
|
256
|
+
timeAgoHoursFormat: 'منذ {0} ساعة',
|
|
257
|
+
timeAgoDaysFormat: 'منذ {0} يوم',
|
|
258
|
+
timeAgoWeeksFormat: 'منذ {0} أسبوع',
|
|
259
|
+
timeAgoMonthsFormat: 'منذ {0} شهر',
|
|
260
|
+
timeAgoYearsFormat: 'منذ {0} سنة',
|
|
261
|
+
cancelled: 'تم الإلغاء',
|
|
262
|
+
cancelFinishingStep: 'جارٍ إنهاء الخطوة الحالية…',
|
|
263
|
+
unexpectedError: 'حدث خطأ ما. يرجى المحاولة مرة أخرى.',
|
|
264
|
+
checked: 'محدد',
|
|
265
|
+
notChecked: 'غير محدد',
|
|
266
|
+
partiallyChecked: 'محدد جزئيًا'
|
|
267
|
+
});
|
|
268
|
+
const g9BuiltInStringTables = Object.freeze({
|
|
269
|
+
fa: g9PersianStrings,
|
|
270
|
+
ar: g9ArabicStrings
|
|
271
|
+
});
|
|
272
|
+
function checkTable(name, table) {
|
|
273
|
+
if (!table) return;
|
|
274
|
+
for (const [key, text] of Object.entries(table)){
|
|
275
|
+
if (!resourceNames.has(key)) throw new G9Error('strings-unknown-key', `${name}: "${key}" is not a G9StringKey.`);
|
|
276
|
+
if (void 0 !== text && 'string' != typeof text) throw new G9Error('strings-invalid-text', `${name}: the text of "${key}" must be a string.`);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function formatTemplate(template, args, culture) {
|
|
280
|
+
let out = '';
|
|
281
|
+
let i = 0;
|
|
282
|
+
const fail = (why)=>{
|
|
283
|
+
throw new G9Error('strings-format', `Cannot format "${template}": ${why}.`);
|
|
284
|
+
};
|
|
285
|
+
while(i < template.length){
|
|
286
|
+
const ch = template.charAt(i);
|
|
287
|
+
if ('}' === ch) {
|
|
288
|
+
if ('}' !== template.charAt(i + 1)) fail(`unmatched "}" at ${i}`);
|
|
289
|
+
out += '}';
|
|
290
|
+
i += 2;
|
|
291
|
+
} else if ('{' === ch) {
|
|
292
|
+
if ('{' === template.charAt(i + 1)) {
|
|
293
|
+
out += '{';
|
|
294
|
+
i += 2;
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
const close = template.indexOf('}', i);
|
|
298
|
+
const body = close < 0 ? '' : template.slice(i + 1, close);
|
|
299
|
+
if (!/^\d+$/.test(body)) fail(`unsupported placeholder at ${i}`);
|
|
300
|
+
const index = Number(body);
|
|
301
|
+
if (index >= args.length) fail(`no argument {${index}}`);
|
|
302
|
+
const arg = args[index];
|
|
303
|
+
out += 'number' == typeof arg ? formatPlainNumber(arg, culture.numberingSystem) : null == arg ? '' : 'boolean' == typeof arg ? arg ? 'True' : 'False' : arg;
|
|
304
|
+
i = close + 1;
|
|
305
|
+
} else {
|
|
306
|
+
out += ch;
|
|
307
|
+
i += 1;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return out;
|
|
311
|
+
}
|
|
312
|
+
function createStrings(options) {
|
|
313
|
+
var _options_keyPrefix, _options_tables;
|
|
314
|
+
var _options_tables1;
|
|
315
|
+
const { culture, provider, onProviderError } = options;
|
|
316
|
+
const keyPrefix = null != (_options_keyPrefix = options.keyPrefix) ? _options_keyPrefix : '';
|
|
317
|
+
checkTable('overrides', options.overrides);
|
|
318
|
+
for (const [language, table] of Object.entries(null != (_options_tables = options.tables) ? _options_tables : {}))checkTable(`tables.${language}`, table);
|
|
319
|
+
const table = null == (_options_tables1 = options.tables) ? void 0 : _options_tables1[culture.language];
|
|
320
|
+
const overrides = options.overrides;
|
|
321
|
+
function ask(name) {
|
|
322
|
+
if (!provider) return null;
|
|
323
|
+
try {
|
|
324
|
+
const value = provider(name, culture);
|
|
325
|
+
return 'string' == typeof value && '' !== value ? value : null;
|
|
326
|
+
} catch (error) {
|
|
327
|
+
null == onProviderError || onProviderError(error, name);
|
|
328
|
+
return null;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function get(key) {
|
|
332
|
+
var _ref, _ref1, _ask;
|
|
333
|
+
const name = g9StringResourceName(key);
|
|
334
|
+
return null != (_ref = null != (_ref1 = null != (_ask = ask(keyPrefix + name)) ? _ask : null == overrides ? void 0 : overrides[key]) ? _ref1 : null == table ? void 0 : table[key]) ? _ref : g9EnglishStrings[key];
|
|
335
|
+
}
|
|
336
|
+
return Object.freeze({
|
|
337
|
+
culture,
|
|
338
|
+
get,
|
|
339
|
+
format: (key, ...args)=>formatTemplate(get(key), args, culture),
|
|
340
|
+
resolve: (name)=>'string' == typeof name && name.trim() ? ask(name) : null
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
export { G9StringKey, createStrings, formatTemplate, g9ArabicStrings, g9BuiltInStringTables, g9EnglishStrings, g9PersianStrings, g9StringKeys, g9StringResourceName };
|
|
344
|
+
|
|
345
|
+
//# sourceMappingURL=strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"culture/strings.js","sources":["../../src/culture/strings.ts"],"sourcesContent":["import { G9Error } from '../errors';\nimport type { G9Culture } from './culture';\nimport { formatPlainNumber } from './numbers';\n\n/**\n * Every string the controls display on their own initiative (MAUI `G9StringKey`). Values are the camelCase member\n * names; {@link g9StringResourceName} gives the MAUI (PascalCase) name a provider is asked for. Keys ending in\n * `Format` are templates with a `{0}` placeholder: a translation must keep it.\n */\nexport const G9StringKey = {\n Ok: 'ok',\n Cancel: 'cancel',\n Save: 'save',\n Confirm: 'confirm',\n Close: 'close',\n Done: 'done',\n Back: 'back',\n Retry: 'retry',\n Skip: 'skip',\n MoreDetails: 'moreDetails',\n Clear: 'clear',\n Reset: 'reset',\n Delete: 'delete',\n Search: 'search',\n NoResults: 'noResults',\n Selected: 'selected',\n ComingSoon: 'comingSoon',\n Loading: 'loading',\n SelectDate: 'selectDate',\n SelectTime: 'selectTime',\n SelectDateTime: 'selectDateTime',\n SelectDuration: 'selectDuration',\n Today: 'today',\n Tomorrow: 'tomorrow',\n Yesterday: 'yesterday',\n Now: 'now',\n Year: 'year',\n Month: 'month',\n Day: 'day',\n Hour: 'hour',\n Minute: 'minute',\n TimeSpanYearsFormat: 'timeSpanYearsFormat',\n TimeSpanMonthsFormat: 'timeSpanMonthsFormat',\n TimeSpanDaysFormat: 'timeSpanDaysFormat',\n Information: 'information',\n Success: 'success',\n Warning: 'warning',\n Error: 'error',\n RequiredSuffix: 'requiredSuffix',\n InvalidEmail: 'invalidEmail',\n InvalidUrl: 'invalidUrl',\n InvalidValue: 'invalidValue',\n Scanning: 'scanning',\n MicrophonePermissionDenied: 'microphonePermissionDenied',\n SpeechRecognitionPermissionDenied: 'speechRecognitionPermissionDenied',\n SpeechRecognitionUnavailable: 'speechRecognitionUnavailable',\n VoiceRecognitionFailed: 'voiceRecognitionFailed',\n PermissionErrorFormat: 'permissionErrorFormat',\n TimeAgoJustNow: 'timeAgoJustNow',\n TimeAgoMinutesFormat: 'timeAgoMinutesFormat',\n TimeAgoHoursFormat: 'timeAgoHoursFormat',\n TimeAgoDaysFormat: 'timeAgoDaysFormat',\n TimeAgoWeeksFormat: 'timeAgoWeeksFormat',\n TimeAgoMonthsFormat: 'timeAgoMonthsFormat',\n TimeAgoYearsFormat: 'timeAgoYearsFormat',\n Cancelled: 'cancelled',\n CancelFinishingStep: 'cancelFinishingStep',\n UnexpectedError: 'unexpectedError',\n Checked: 'checked',\n NotChecked: 'notChecked',\n PartiallyChecked: 'partiallyChecked',\n} as const;\nexport type G9StringKey = (typeof G9StringKey)[keyof typeof G9StringKey];\n\n/** Every key in MAUI declaration order. */\nexport const g9StringKeys: readonly G9StringKey[] = Object.freeze(Object.keys(G9StringKey).map((name) => toKey(name)));\n\nfunction toKey(name: string): G9StringKey {\n return G9StringKey[name as keyof typeof G9StringKey];\n}\n\nconst resourceNames = new Map<string, string>(Object.keys(G9StringKey).map((name) => [toKey(name), name]));\n\n/** The MAUI member name of a key (`'noResults'` → `'NoResults'`): the name a provider or resource catalogue sees. */\nexport function g9StringResourceName(key: G9StringKey): string {\n const name = resourceNames.get(key);\n if (name === undefined) throw new G9Error('strings-unknown-key', `\"${String(key)}\" is not a G9StringKey.`);\n return name;\n}\n\n/** A complete string table. */\nexport type G9StringTable = { readonly [K in G9StringKey]: string };\n/** Some strings of a table (overrides, a partial translation). */\nexport type G9PartialStringTable = { readonly [K in G9StringKey]?: string | undefined };\n\n/** The built-in English strings (MAUI `G9Strings` defaults; the golden `strings.json`). */\nexport const g9EnglishStrings: G9StringTable = Object.freeze({\n ok: 'OK',\n cancel: 'Cancel',\n save: 'Save',\n confirm: 'Confirm',\n close: 'Close',\n done: 'Done',\n back: 'Back',\n retry: 'Retry',\n skip: 'Skip',\n moreDetails: 'More details',\n clear: 'Clear',\n reset: 'Reset',\n delete: 'Delete',\n search: 'Search…',\n noResults: 'No results',\n selected: 'selected',\n comingSoon: 'Coming soon',\n loading: 'Loading…',\n selectDate: 'Select date',\n selectTime: 'Select time',\n selectDateTime: 'Select date and time',\n selectDuration: 'Select duration',\n today: 'Today',\n tomorrow: 'Tomorrow',\n yesterday: 'Yesterday',\n now: 'Now',\n year: 'Year',\n month: 'Month',\n day: 'Day',\n hour: 'Hour',\n minute: 'Minute',\n timeSpanYearsFormat: '{0}y',\n timeSpanMonthsFormat: '{0}m',\n timeSpanDaysFormat: '{0}d',\n information: 'Information',\n success: 'Success',\n warning: 'Warning',\n error: 'Error',\n requiredSuffix: 'is required',\n invalidEmail: 'Invalid email',\n invalidUrl: 'Invalid URL',\n invalidValue: 'Invalid value',\n scanning: 'Scanning…',\n microphonePermissionDenied: 'Microphone permission denied',\n speechRecognitionPermissionDenied: 'Speech recognition permission denied',\n speechRecognitionUnavailable: 'Voice input is not available on this device',\n voiceRecognitionFailed: 'Voice recognition failed',\n permissionErrorFormat: 'Permission error: {0}',\n timeAgoJustNow: 'just now',\n timeAgoMinutesFormat: '{0} min ago',\n timeAgoHoursFormat: '{0} h ago',\n timeAgoDaysFormat: '{0} d ago',\n timeAgoWeeksFormat: '{0} w ago',\n timeAgoMonthsFormat: '{0} mo ago',\n timeAgoYearsFormat: '{0} y ago',\n cancelled: 'Cancelled',\n cancelFinishingStep: 'Finishing the current step…',\n unexpectedError: 'Something went wrong. Please try again.',\n checked: 'checked',\n notChecked: 'not checked',\n partiallyChecked: 'partially checked',\n});\n\n/**\n * Persian translation of every built-in string. Opt-in (pass it in {@link G9StringsOptions.tables}): MAUI shipped\n * English only, so without it a `fa` culture still shows English, exactly as MAUI did.\n */\nexport const g9PersianStrings: G9StringTable = Object.freeze({\n ok: 'تأیید',\n cancel: 'انصراف',\n save: 'ذخیره',\n confirm: 'تأیید',\n close: 'بستن',\n done: 'انجام شد',\n back: 'بازگشت',\n retry: 'تلاش دوباره',\n skip: 'رد شدن',\n moreDetails: 'جزئیات بیشتر',\n clear: 'پاک کردن',\n reset: 'بازنشانی',\n delete: 'حذف',\n search: 'جستجو…',\n noResults: 'نتیجهای یافت نشد',\n selected: 'انتخابشده',\n comingSoon: 'بهزودی',\n loading: 'در حال بارگذاری…',\n selectDate: 'انتخاب تاریخ',\n selectTime: 'انتخاب زمان',\n selectDateTime: 'انتخاب تاریخ و زمان',\n selectDuration: 'انتخاب مدت',\n today: 'امروز',\n tomorrow: 'فردا',\n yesterday: 'دیروز',\n now: 'اکنون',\n year: 'سال',\n month: 'ماه',\n day: 'روز',\n hour: 'ساعت',\n minute: 'دقیقه',\n timeSpanYearsFormat: '{0} سال',\n timeSpanMonthsFormat: '{0} ماه',\n timeSpanDaysFormat: '{0} روز',\n information: 'اطلاعات',\n success: 'موفق',\n warning: 'هشدار',\n error: 'خطا',\n requiredSuffix: 'الزامی است',\n invalidEmail: 'ایمیل نامعتبر است',\n invalidUrl: 'نشانی اینترنتی نامعتبر است',\n invalidValue: 'مقدار نامعتبر است',\n scanning: 'در حال اسکن…',\n microphonePermissionDenied: 'اجازهٔ دسترسی به میکروفون داده نشد',\n speechRecognitionPermissionDenied: 'اجازهٔ تشخیص گفتار داده نشد',\n speechRecognitionUnavailable: 'ورودی صوتی در این دستگاه در دسترس نیست',\n voiceRecognitionFailed: 'تشخیص گفتار ناموفق بود',\n permissionErrorFormat: 'خطای مجوز: {0}',\n timeAgoJustNow: 'همین الان',\n timeAgoMinutesFormat: '{0} دقیقه پیش',\n timeAgoHoursFormat: '{0} ساعت پیش',\n timeAgoDaysFormat: '{0} روز پیش',\n timeAgoWeeksFormat: '{0} هفته پیش',\n timeAgoMonthsFormat: '{0} ماه پیش',\n timeAgoYearsFormat: '{0} سال پیش',\n cancelled: 'لغو شد',\n cancelFinishingStep: 'در حال پایان دادن به مرحلهٔ جاری…',\n unexpectedError: 'مشکلی پیش آمد. لطفاً دوباره تلاش کنید.',\n checked: 'انتخابشده',\n notChecked: 'انتخابنشده',\n partiallyChecked: 'بخشی انتخابشده',\n});\n\n/**\n * Arabic translation of every built-in string. Opt-in, like {@link g9PersianStrings}. Count templates use one form;\n * apps that need Arabic plural agreement override those keys or supply a provider.\n */\nexport const g9ArabicStrings: G9StringTable = Object.freeze({\n ok: 'موافق',\n cancel: 'إلغاء',\n save: 'حفظ',\n confirm: 'تأكيد',\n close: 'إغلاق',\n done: 'تم',\n back: 'رجوع',\n retry: 'إعادة المحاولة',\n skip: 'تخطي',\n moreDetails: 'مزيد من التفاصيل',\n clear: 'مسح',\n reset: 'إعادة تعيين',\n delete: 'حذف',\n search: 'بحث…',\n noResults: 'لا توجد نتائج',\n selected: 'محدد',\n comingSoon: 'قريبًا',\n loading: 'جارٍ التحميل…',\n selectDate: 'اختر التاريخ',\n selectTime: 'اختر الوقت',\n selectDateTime: 'اختر التاريخ والوقت',\n selectDuration: 'اختر المدة',\n today: 'اليوم',\n tomorrow: 'غدًا',\n yesterday: 'أمس',\n now: 'الآن',\n year: 'السنة',\n month: 'الشهر',\n day: 'اليوم',\n hour: 'الساعة',\n minute: 'الدقيقة',\n timeSpanYearsFormat: '{0} سنة',\n timeSpanMonthsFormat: '{0} شهر',\n timeSpanDaysFormat: '{0} يوم',\n information: 'معلومات',\n success: 'نجاح',\n warning: 'تحذير',\n error: 'خطأ',\n requiredSuffix: 'مطلوب',\n invalidEmail: 'بريد إلكتروني غير صالح',\n invalidUrl: 'عنوان URL غير صالح',\n invalidValue: 'قيمة غير صالحة',\n scanning: 'جارٍ المسح…',\n microphonePermissionDenied: 'تم رفض إذن الميكروفون',\n speechRecognitionPermissionDenied: 'تم رفض إذن التعرف على الكلام',\n speechRecognitionUnavailable: 'الإدخال الصوتي غير متاح على هذا الجهاز',\n voiceRecognitionFailed: 'فشل التعرف على الصوت',\n permissionErrorFormat: 'خطأ في الإذن: {0}',\n timeAgoJustNow: 'الآن',\n timeAgoMinutesFormat: 'منذ {0} دقيقة',\n timeAgoHoursFormat: 'منذ {0} ساعة',\n timeAgoDaysFormat: 'منذ {0} يوم',\n timeAgoWeeksFormat: 'منذ {0} أسبوع',\n timeAgoMonthsFormat: 'منذ {0} شهر',\n timeAgoYearsFormat: 'منذ {0} سنة',\n cancelled: 'تم الإلغاء',\n cancelFinishingStep: 'جارٍ إنهاء الخطوة الحالية…',\n unexpectedError: 'حدث خطأ ما. يرجى المحاولة مرة أخرى.',\n checked: 'محدد',\n notChecked: 'غير محدد',\n partiallyChecked: 'محدد جزئيًا',\n});\n\n/** The bundled translations keyed by language: pass as `tables` to localize `fa` and `ar` without a provider. */\nexport const g9BuiltInStringTables: Readonly<Record<string, G9PartialStringTable>> = Object.freeze({\n fa: g9PersianStrings,\n ar: g9ArabicStrings,\n});\n\n/**\n * An app resolver (MAUI `G9Strings.UseProvider` / `UseResources`): receives the resource name (`keyPrefix` + the MAUI\n * member name for built-in keys, the caller's own key for {@link G9Strings.resolve}) and the culture. Return\n * `null`/`undefined`/`''` to fall back.\n */\nexport type G9StringProvider = (name: string, culture: G9Culture) => string | null | undefined;\n\n/** Inputs of {@link createStrings}. */\nexport interface G9StringsOptions {\n /** The culture strings are resolved and numbers formatted for (normally the culture store's snapshot). */\n readonly culture: G9Culture;\n /** App resolver, asked first. */\n readonly provider?: G9StringProvider;\n /** Prepended to built-in key names only, never to `resolve` keys (MAUI `UseResources(…, keyPrefix)`). */\n readonly keyPrefix?: string;\n /** Strings replaced in code (MAUI `G9Strings.Override`); used when the provider has no entry. */\n readonly overrides?: G9PartialStringTable;\n /** Translations by language (`{ fa: g9PersianStrings }`, or {@link g9BuiltInStringTables}). */\n readonly tables?: Readonly<Record<string, G9PartialStringTable>>;\n /**\n * Told when the provider throws. The lookup then falls back (MAUI swallowed it so a broken catalogue cannot take\n * a control down mid-render); this is where the app logs it.\n */\n readonly onProviderError?: (error: unknown, name: string) => void;\n}\n\n/** Resolved strings for one culture (MAUI `G9Strings`). Immutable: build a new one when an input changes. */\nexport interface G9Strings {\n readonly culture: G9Culture;\n /** Text of a key: provider → overrides → the culture's table → built-in English. */\n get(key: G9StringKey): string;\n /**\n * A `Format` key with its `{n}` placeholders filled; numbers are written in the culture's digits and separators,\n * `null`/`undefined` as `''`, `{{`/`}}` are literal braces.\n * @throws {G9Error} `strings-format` for a malformed template, an alignment/format specifier, or a missing argument.\n */\n format(key: G9StringKey, ...args: ReadonlyArray<string | number | boolean | null | undefined>): string;\n /** An app key resolved through the provider only (no prefix, no fallback); `null` when there is no entry. */\n resolve(name: string): string | null;\n}\n\nfunction checkTable(name: string, table: G9PartialStringTable | undefined): void {\n if (!table) return;\n for (const [key, text] of Object.entries(table)) {\n if (!resourceNames.has(key)) throw new G9Error('strings-unknown-key', `${name}: \"${key}\" is not a G9StringKey.`);\n if (text !== undefined && typeof text !== 'string') {\n throw new G9Error('strings-invalid-text', `${name}: the text of \"${key}\" must be a string.`);\n }\n }\n}\n\n/**\n * Fills a .NET composite-format template (`{0}`, `{{`, `}}`). Specifiers (`{0:N2}`, `{0,5}`) are rejected rather than\n * ignored.\n */\nexport function formatTemplate(\n template: string,\n args: ReadonlyArray<string | number | boolean | null | undefined>,\n culture: G9Culture,\n): string {\n let out = '';\n let i = 0;\n const fail = (why: string): never => {\n throw new G9Error('strings-format', `Cannot format \"${template}\": ${why}.`);\n };\n while (i < template.length) {\n const ch = template.charAt(i);\n if (ch === '}') {\n if (template.charAt(i + 1) !== '}') fail(`unmatched \"}\" at ${i}`);\n out += '}';\n i += 2;\n } else if (ch === '{') {\n if (template.charAt(i + 1) === '{') {\n out += '{';\n i += 2;\n continue;\n }\n const close = template.indexOf('}', i);\n const body = close < 0 ? '' : template.slice(i + 1, close);\n if (!/^\\d+$/.test(body)) fail(`unsupported placeholder at ${i}`);\n const index = Number(body);\n if (index >= args.length) fail(`no argument {${index}}`);\n const arg = args[index];\n out +=\n typeof arg === 'number'\n ? formatPlainNumber(arg, culture.numberingSystem)\n : arg === null || arg === undefined\n ? ''\n : typeof arg === 'boolean'\n ? arg\n ? 'True'\n : 'False'\n : arg;\n i = close + 1;\n } else {\n out += ch;\n i += 1;\n }\n }\n return out;\n}\n\n/**\n * Creates the strings of one culture. Every input is validated now (unknown keys, non-string texts), so a typo fails\n * at startup rather than rendering a raw key.\n */\nexport function createStrings(options: G9StringsOptions): G9Strings {\n const { culture, provider, onProviderError } = options;\n const keyPrefix = options.keyPrefix ?? '';\n checkTable('overrides', options.overrides);\n for (const [language, table] of Object.entries(options.tables ?? {})) checkTable(`tables.${language}`, table);\n const table = options.tables?.[culture.language];\n const overrides = options.overrides;\n\n function ask(name: string): string | null {\n if (!provider) return null;\n try {\n const value = provider(name, culture);\n return typeof value === 'string' && value !== '' ? value : null;\n } catch (error) {\n onProviderError?.(error, name);\n return null;\n }\n }\n\n function get(key: G9StringKey): string {\n const name = g9StringResourceName(key);\n return ask(keyPrefix + name) ?? overrides?.[key] ?? table?.[key] ?? g9EnglishStrings[key];\n }\n\n return Object.freeze({\n culture,\n get,\n format: (key: G9StringKey, ...args: ReadonlyArray<string | number | boolean | null | undefined>) =>\n formatTemplate(get(key), args, culture),\n resolve: (name: string) => (typeof name === 'string' && name.trim() ? ask(name) : null),\n });\n}\n"],"names":["G9StringKey","g9StringKeys","Object","name","toKey","resourceNames","Map","g9StringResourceName","key","undefined","G9Error","String","g9EnglishStrings","g9PersianStrings","g9ArabicStrings","g9BuiltInStringTables","checkTable","table","text","formatTemplate","template","args","culture","out","i","fail","why","ch","close","body","index","Number","arg","formatPlainNumber","createStrings","options","_options_keyPrefix","_options_tables","_options_tables1","provider","onProviderError","keyPrefix","language","overrides","ask","value","error","get","_ref"],"mappings":";;AASO,MAAMA,cAAc;IACzB,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,aAAa;IACb,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;IACV,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,OAAO;IACP,UAAU;IACV,WAAW;IACX,KAAK;IACL,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,QAAQ;IACR,qBAAqB;IACrB,sBAAsB;IACtB,oBAAoB;IACpB,aAAa;IACb,SAAS;IACT,SAAS;IACT,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,cAAc;IACd,UAAU;IACV,4BAA4B;IAC5B,mCAAmC;IACnC,8BAA8B;IAC9B,wBAAwB;IACxB,uBAAuB;IACvB,gBAAgB;IAChB,sBAAsB;IACtB,oBAAoB;IACpB,mBAAmB;IACnB,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,WAAW;IACX,qBAAqB;IACrB,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,kBAAkB;AACpB;AAIO,MAAMC,eAAuCC,OAAO,MAAM,CAACA,OAAO,IAAI,CAACF,aAAa,GAAG,CAAC,CAACG,OAASC,MAAMD;AAE/G,SAASC,MAAMD,IAAY;IACzB,OAAOH,WAAW,CAACG,KAAiC;AACtD;AAEA,MAAME,gBAAgB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QACtB,IAAI;YACF,MAAMM,QAAQN,SAASpC,MAAMmB;YAC7B,OAAO,AAAiB,YAAjB,OAAOuB,SAAsBA,AAAU,OAAVA,QAAeA,QAAQ;QAC7D,EAAE,OAAOC,OAAO;YACdN,QAAAA,mBAAAA,gBAAkBM,OAAO3C;YACzB,OAAO;QACT;IACF;IAEA,SAAS4C,IAAIvC,GAAgB;YAEpBwC,MAAAA,OAAAA;QADP,MAAM7C,OAAOI,qBAAqBC;QAClC,OAAO,QAAAwC,CAAAA,OAAAA,QAAAA,CAAAA,QAAAA,QAAAA,CAAAA,OAAAA,IAAIP,YAAYtC,KAAI,IAApB6C,OAAyBL,QAAAA,YAAAA,KAAAA,IAAAA,SAAW,CAACnC,IAAI,AAAD,IAAxCwC,QAA6C/B,QAAAA,QAAAA,KAAAA,IAAAA,KAAO,CAACT,IAAI,AAAD,IAAxDwC,OAA6DpC,gBAAgB,CAACJ,IAAI;IAC3F;IAEA,OAAON,OAAO,MAAM,CAAC;QACnBoB;QACAyB;QACA,QAAQ,CAACvC,KAAkB,GAAGa,OAC5BF,eAAe4B,IAAIvC,MAAMa,MAAMC;QACjC,SAAS,CAACnB,OAAkB,AAAgB,YAAhB,OAAOA,QAAqBA,KAAK,IAAI,KAAKyC,IAAIzC,QAAQ;IACpF;AACF"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/** Colour role of a button-like control (MAUI `G9ButtonVariant`). Default for buttons: `'primary'`. */
|
|
2
|
+
export declare const G9ButtonVariant: {
|
|
3
|
+
readonly Primary: "primary";
|
|
4
|
+
readonly Tonal: "tonal";
|
|
5
|
+
readonly Default: "default";
|
|
6
|
+
readonly Secondary: "secondary";
|
|
7
|
+
readonly Info: "info";
|
|
8
|
+
readonly Success: "success";
|
|
9
|
+
readonly Warning: "warning";
|
|
10
|
+
/** Solid red fill, white glyph: the loud, committing destructive action (Delete, Truncate). */
|
|
11
|
+
readonly Error: "error";
|
|
12
|
+
/**
|
|
13
|
+
* The soft destructive look: an `ErrorContainer` fill with the `Error` glyph on top, quiet enough to stay on screen
|
|
14
|
+
* permanently.
|
|
15
|
+
*/
|
|
16
|
+
readonly ErrorTonal: "errorTonal";
|
|
17
|
+
readonly Surface: "surface";
|
|
18
|
+
readonly Outline: "outline";
|
|
19
|
+
readonly Text: "text";
|
|
20
|
+
};
|
|
21
|
+
export type G9ButtonVariant = (typeof G9ButtonVariant)[keyof typeof G9ButtonVariant];
|
|
22
|
+
/** Colour role of a progress indicator (MAUI `G9ProgressType`). */
|
|
23
|
+
export declare const G9ProgressType: {
|
|
24
|
+
readonly Primary: "primary";
|
|
25
|
+
readonly Success: "success";
|
|
26
|
+
readonly Warning: "warning";
|
|
27
|
+
readonly Error: "error";
|
|
28
|
+
};
|
|
29
|
+
export type G9ProgressType = (typeof G9ProgressType)[keyof typeof G9ProgressType];
|
|
30
|
+
/** Size step of a control (MAUI `G9ControlSize`). Default for controls: `'medium'`. */
|
|
31
|
+
export declare const G9ControlSize: {
|
|
32
|
+
readonly Small: "small";
|
|
33
|
+
readonly Medium: "medium";
|
|
34
|
+
readonly Large: "large";
|
|
35
|
+
readonly Hero: "hero";
|
|
36
|
+
};
|
|
37
|
+
export type G9ControlSize = (typeof G9ControlSize)[keyof typeof G9ControlSize];
|
|
38
|
+
/** Writing direction of a field's entered value (MAUI `G9TextInputDirection`). `'matchParent'` follows the culture. */
|
|
39
|
+
export declare const G9TextInputDirection: {
|
|
40
|
+
readonly MatchParent: "matchParent";
|
|
41
|
+
readonly LeftToRight: "leftToRight";
|
|
42
|
+
readonly RightToLeft: "rightToLeft";
|
|
43
|
+
};
|
|
44
|
+
export type G9TextInputDirection = (typeof G9TextInputDirection)[keyof typeof G9TextInputDirection];
|
|
45
|
+
/**
|
|
46
|
+
* How a filled field's value is highlighted (MAUI `G9FilledValueHighlight`): `'inherit'` takes the app-wide setting,
|
|
47
|
+
* `'accent'` tints with the primary colour, `'neutral'` keeps the regular text colour.
|
|
48
|
+
*/
|
|
49
|
+
export declare const G9FilledValueHighlight: {
|
|
50
|
+
readonly Inherit: "inherit";
|
|
51
|
+
readonly Accent: "accent";
|
|
52
|
+
readonly Neutral: "neutral";
|
|
53
|
+
};
|
|
54
|
+
export type G9FilledValueHighlight = (typeof G9FilledValueHighlight)[keyof typeof G9FilledValueHighlight];
|
|
55
|
+
/** On-screen keyboard of a text field (MAUI `G9KeyboardType`). */
|
|
56
|
+
export declare const G9KeyboardType: {
|
|
57
|
+
readonly Default: "default";
|
|
58
|
+
readonly Email: "email";
|
|
59
|
+
readonly Phone: "phone";
|
|
60
|
+
readonly Number: "number";
|
|
61
|
+
readonly Url: "url";
|
|
62
|
+
readonly Password: "password";
|
|
63
|
+
};
|
|
64
|
+
export type G9KeyboardType = (typeof G9KeyboardType)[keyof typeof G9KeyboardType];
|
|
65
|
+
/** What a date/time picker edits (MAUI `G9DateTimePickerMode`). */
|
|
66
|
+
export declare const G9DateTimePickerMode: {
|
|
67
|
+
readonly Date: "date";
|
|
68
|
+
readonly Time: "time";
|
|
69
|
+
readonly DateTime: "dateTime";
|
|
70
|
+
};
|
|
71
|
+
export type G9DateTimePickerMode = (typeof G9DateTimePickerMode)[keyof typeof G9DateTimePickerMode];
|
|
72
|
+
/** How a picked date/time is displayed (MAUI `G9DateTimeDisplayFormat`); `'custom'` uses the caller's pattern. */
|
|
73
|
+
export declare const G9DateTimeDisplayFormat: {
|
|
74
|
+
readonly ShortDate: "shortDate";
|
|
75
|
+
readonly LongDate: "longDate";
|
|
76
|
+
readonly TimeOnly: "timeOnly";
|
|
77
|
+
readonly ShortDateTime: "shortDateTime";
|
|
78
|
+
readonly LongDateTime: "longDateTime";
|
|
79
|
+
readonly Custom: "custom";
|
|
80
|
+
};
|
|
81
|
+
export type G9DateTimeDisplayFormat = (typeof G9DateTimeDisplayFormat)[keyof typeof G9DateTimeDisplayFormat];
|
|
82
|
+
/** One thumb or two (MAUI `G9RangeSliderMode`). */
|
|
83
|
+
export declare const G9RangeSliderMode: {
|
|
84
|
+
readonly Single: "single";
|
|
85
|
+
readonly Range: "range";
|
|
86
|
+
};
|
|
87
|
+
export type G9RangeSliderMode = (typeof G9RangeSliderMode)[keyof typeof G9RangeSliderMode];
|
|
88
|
+
/** Characters a PIN entry accepts (MAUI `G9PinEntryType`); `'password'` masks them. */
|
|
89
|
+
export declare const G9PinEntryType: {
|
|
90
|
+
readonly Number: "number";
|
|
91
|
+
readonly Letters: "letters";
|
|
92
|
+
readonly Alphanumeric: "alphanumeric";
|
|
93
|
+
readonly Password: "password";
|
|
94
|
+
};
|
|
95
|
+
export type G9PinEntryType = (typeof G9PinEntryType)[keyof typeof G9PinEntryType];
|
|
96
|
+
/** Selection behaviour of a chip group (MAUI `G9ChipGroupSelectionMode`). */
|
|
97
|
+
export declare const G9ChipGroupSelectionMode: {
|
|
98
|
+
readonly MultiSelection: "multiSelection";
|
|
99
|
+
readonly SingleSelection: "singleSelection";
|
|
100
|
+
};
|
|
101
|
+
export type G9ChipGroupSelectionMode = (typeof G9ChipGroupSelectionMode)[keyof typeof G9ChipGroupSelectionMode];
|
|
102
|
+
/** Layout of a chip group (MAUI `G9ChipGroupLayoutMode`): wrapping rows or one horizontally scrolling line. */
|
|
103
|
+
export declare const G9ChipGroupLayoutMode: {
|
|
104
|
+
readonly Wrap: "wrap";
|
|
105
|
+
readonly SingleLineScroll: "singleLineScroll";
|
|
106
|
+
};
|
|
107
|
+
export type G9ChipGroupLayoutMode = (typeof G9ChipGroupLayoutMode)[keyof typeof G9ChipGroupLayoutMode];
|
|
108
|
+
/** Where a progress bar's label sits (MAUI `G9ProgressLabelPlacement`). */
|
|
109
|
+
export declare const G9ProgressLabelPlacement: {
|
|
110
|
+
readonly None: "none";
|
|
111
|
+
readonly Above: "above";
|
|
112
|
+
readonly End: "end";
|
|
113
|
+
};
|
|
114
|
+
export type G9ProgressLabelPlacement = (typeof G9ProgressLabelPlacement)[keyof typeof G9ProgressLabelPlacement];
|
|
115
|
+
/** Alignment of a separator's title (MAUI `G9SeparatorTitleAlignment`); `'auto'` follows the direction. */
|
|
116
|
+
export declare const G9SeparatorTitleAlignment: {
|
|
117
|
+
readonly Auto: "auto";
|
|
118
|
+
readonly Start: "start";
|
|
119
|
+
readonly Center: "center";
|
|
120
|
+
readonly End: "end";
|
|
121
|
+
};
|
|
122
|
+
export type G9SeparatorTitleAlignment = (typeof G9SeparatorTitleAlignment)[keyof typeof G9SeparatorTitleAlignment];
|
|
123
|
+
/** Tab width behaviour (MAUI `G9TabMode`): equal fixed tabs or a scrolling strip. */
|
|
124
|
+
export declare const G9TabMode: {
|
|
125
|
+
readonly Fixed: "fixed";
|
|
126
|
+
readonly Scrollable: "scrollable";
|
|
127
|
+
};
|
|
128
|
+
export type G9TabMode = (typeof G9TabMode)[keyof typeof G9TabMode];
|
|
129
|
+
/** Tab indicator style (MAUI `G9TabStyle`). */
|
|
130
|
+
export declare const G9TabStyle: {
|
|
131
|
+
readonly Underlined: "underlined";
|
|
132
|
+
readonly Pill: "pill";
|
|
133
|
+
};
|
|
134
|
+
export type G9TabStyle = (typeof G9TabStyle)[keyof typeof G9TabStyle];
|
|
135
|
+
/** Direction a cascade (drill-down) panel moves in (MAUI `G9CascadeDirection`); `'auto'` follows the direction. */
|
|
136
|
+
export declare const G9CascadeDirection: {
|
|
137
|
+
readonly Auto: "auto";
|
|
138
|
+
readonly LeftToRight: "leftToRight";
|
|
139
|
+
readonly RightToLeft: "rightToLeft";
|
|
140
|
+
readonly TopToBottom: "topToBottom";
|
|
141
|
+
readonly BottomToTop: "bottomToTop";
|
|
142
|
+
};
|
|
143
|
+
export type G9CascadeDirection = (typeof G9CascadeDirection)[keyof typeof G9CascadeDirection];
|
|
144
|
+
/** How the next cascade level appears (MAUI `G9CascadeTransition`): over the current one, or pushing it out. */
|
|
145
|
+
export declare const G9CascadeTransition: {
|
|
146
|
+
readonly Overlay: "overlay";
|
|
147
|
+
readonly Push: "push";
|
|
148
|
+
};
|
|
149
|
+
export type G9CascadeTransition = (typeof G9CascadeTransition)[keyof typeof G9CascadeTransition];
|
|
150
|
+
/** Where a tab bar sits (MAUI `G9TabBarPosition`). */
|
|
151
|
+
export declare const G9TabBarPosition: {
|
|
152
|
+
readonly Top: "top";
|
|
153
|
+
readonly Bottom: "bottom";
|
|
154
|
+
};
|
|
155
|
+
export type G9TabBarPosition = (typeof G9TabBarPosition)[keyof typeof G9TabBarPosition];
|
|
156
|
+
/**
|
|
157
|
+
* Semantic input type of a text field (MAUI `G9InputType`). One value drives the keyboard, the live keystroke filter
|
|
158
|
+
* and the on-blur validation; the policy itself (filters, validation, LTR preference) lands with the fields in WP03.
|
|
159
|
+
*/
|
|
160
|
+
export declare const G9InputType: {
|
|
161
|
+
/** No filtering, no validation, default keyboard. */
|
|
162
|
+
readonly Default: "default";
|
|
163
|
+
/** Digits 0-9 only. Numeric keyboard. */
|
|
164
|
+
readonly Number: "number";
|
|
165
|
+
/** Digits plus one decimal separator (the culture's, `.` or `٫`). Numeric keyboard. */
|
|
166
|
+
readonly Decimal: "decimal";
|
|
167
|
+
/** Digits with an optional leading `-`. Numeric keyboard. */
|
|
168
|
+
readonly SignedNumber: "signedNumber";
|
|
169
|
+
/** Digits with an optional leading `-` and one decimal separator. Numeric keyboard. */
|
|
170
|
+
readonly SignedDecimal: "signedDecimal";
|
|
171
|
+
/** Digits, `+`, `-`, space, `(` and `)`. Telephone keyboard; no format validation. */
|
|
172
|
+
readonly Phone: "phone";
|
|
173
|
+
/** Anything but whitespace while typing; `local@domain.tld` shape on blur. Email keyboard. */
|
|
174
|
+
readonly Email: "email";
|
|
175
|
+
/** Anything but whitespace while typing; an absolute URI on blur. URL keyboard. */
|
|
176
|
+
readonly Url: "url";
|
|
177
|
+
/** Latin letters a-z, A-Z. */
|
|
178
|
+
readonly Letters: "letters";
|
|
179
|
+
/** Latin letters and digits 0-9. */
|
|
180
|
+
readonly LettersAndNumbers: "lettersAndNumbers";
|
|
181
|
+
/** Latin letters, digits and space. */
|
|
182
|
+
readonly LettersNumbersSpace: "lettersNumbersSpace";
|
|
183
|
+
/** Persian/Arabic letters (U+0600–U+06FF without digits) and space. */
|
|
184
|
+
readonly PersianLetters: "persianLetters";
|
|
185
|
+
/** Persian/Arabic letters, Persian and ASCII digits, and space. */
|
|
186
|
+
readonly PersianLettersAndNumbers: "persianLettersAndNumbers";
|
|
187
|
+
/** Latin and Persian/Arabic letters, ASCII and Persian digits, and space. */
|
|
188
|
+
readonly MultilingualLettersAndNumbers: "multilingualLettersAndNumbers";
|
|
189
|
+
/** Letters (Latin/Persian/Arabic), digits and space; every punctuation or symbol is rejected. */
|
|
190
|
+
readonly NoSpecialChars: "noSpecialChars";
|
|
191
|
+
/** The field's own allowed-characters and validation patterns. */
|
|
192
|
+
readonly Custom: "custom";
|
|
193
|
+
};
|
|
194
|
+
export type G9InputType = (typeof G9InputType)[keyof typeof G9InputType];
|
|
195
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,eAAO,MAAM,eAAe;;;;;;;;IAQ1B,+FAA+F;;IAE/F;;;OAGG;;;;;CAKK,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF,mEAAmE;AACnE,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF,uFAAuF;AACvF,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,uHAAuH;AACvH,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,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