@pdfme/ui 5.2.11 → 5.2.12-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +42 -1
- package/dist/index.umd.js +5 -5
- package/dist/types/contexts.d.ts +3 -1
- package/package.json +1 -1
- package/src/i18n.ts +23 -1
package/dist/types/contexts.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Plugins, UIOptions } from '@pdfme/common';
|
3
|
-
export declare const I18nContext: import("react").Context<(key: "type" | "width" | "height" | "rotate" | "opacity" | "required" | "cancel" | "close" | "field" | "fieldName" | "align" | "edit" | "editable" | "plsInputName" | "fieldMustUniq" | "notUniq" | "noKeyName" | "fieldsList" | "editField" | "errorOccurred" | "errorBulkUpdateFieldName" | "commitBulkUpdateFieldName" | "bulkUpdateFieldName" | "addPageAfter" | "removePage" | "removePageConfirm" | "validation.uniqueName" | "validation.hexColor" | "schemas.color" | "schemas.borderWidth" | "schemas.borderColor" | "schemas.backgroundColor" | "schemas.textColor" | "schemas.bgColor" | "schemas.horizontal" | "schemas.vertical" | "schemas.left" | "schemas.center" | "schemas.right" | "schemas.top" | "schemas.middle" | "schemas.bottom" | "schemas.padding" | "schemas.text.fontName" | "schemas.text.size" | "schemas.text.spacing" | "schemas.text.textAlign" | "schemas.text.verticalAlign" | "schemas.text.lineHeight" | "schemas.text.min" | "schemas.text.max" | "schemas.text.fit" | "schemas.text.dynamicFontSize" | "schemas.text.format" | "schemas.mvt.typingInstructions" | "schemas.mvt.sampleField" | "schemas.mvt.variablesSampleData" | "schemas.barcodes.barColor" | "schemas.barcodes.includetext" | "schemas.table.alternateBackgroundColor" | "schemas.table.tableStyle" | "schemas.table.showHead" | "schemas.table.headStyle" | "schemas.table.bodyStyle" | "schemas.table.columnStyle" | "schemas.date.format" | "schemas.select.options" | "schemas.select.optionPlaceholder" | "schemas.radioGroup.groupName", dict?: {
|
3
|
+
export declare const I18nContext: import("react").Context<(key: "type" | "width" | "height" | "rotate" | "opacity" | "required" | "cancel" | "close" | "field" | "fieldName" | "align" | "edit" | "editable" | "plsInputName" | "fieldMustUniq" | "notUniq" | "noKeyName" | "fieldsList" | "editField" | "errorOccurred" | "errorBulkUpdateFieldName" | "commitBulkUpdateFieldName" | "bulkUpdateFieldName" | "addPageAfter" | "removePage" | "removePageConfirm" | "validation.uniqueName" | "validation.hexColor" | "validation.dateTimeFormat" | "schemas.color" | "schemas.borderWidth" | "schemas.borderColor" | "schemas.backgroundColor" | "schemas.textColor" | "schemas.bgColor" | "schemas.horizontal" | "schemas.vertical" | "schemas.left" | "schemas.center" | "schemas.right" | "schemas.top" | "schemas.middle" | "schemas.bottom" | "schemas.padding" | "schemas.text.fontName" | "schemas.text.size" | "schemas.text.spacing" | "schemas.text.textAlign" | "schemas.text.verticalAlign" | "schemas.text.lineHeight" | "schemas.text.min" | "schemas.text.max" | "schemas.text.fit" | "schemas.text.dynamicFontSize" | "schemas.text.format" | "schemas.mvt.typingInstructions" | "schemas.mvt.sampleField" | "schemas.mvt.variablesSampleData" | "schemas.barcodes.barColor" | "schemas.barcodes.includetext" | "schemas.table.alternateBackgroundColor" | "schemas.table.tableStyle" | "schemas.table.showHead" | "schemas.table.headStyle" | "schemas.table.bodyStyle" | "schemas.table.columnStyle" | "schemas.date.format" | "schemas.date.locale" | "schemas.select.options" | "schemas.select.optionPlaceholder" | "schemas.radioGroup.groupName", dict?: {
|
4
4
|
cancel: string;
|
5
5
|
close: string;
|
6
6
|
field: string;
|
@@ -29,6 +29,7 @@ export declare const I18nContext: import("react").Context<(key: "type" | "width"
|
|
29
29
|
removePageConfirm: string;
|
30
30
|
'validation.uniqueName': string;
|
31
31
|
'validation.hexColor': string;
|
32
|
+
'validation.dateTimeFormat': string;
|
32
33
|
'schemas.color': string;
|
33
34
|
'schemas.borderWidth': string;
|
34
35
|
'schemas.borderColor': string;
|
@@ -67,6 +68,7 @@ export declare const I18nContext: import("react").Context<(key: "type" | "width"
|
|
67
68
|
'schemas.table.bodyStyle': string;
|
68
69
|
'schemas.table.columnStyle': string;
|
69
70
|
'schemas.date.format': string;
|
71
|
+
'schemas.date.locale': string;
|
70
72
|
'schemas.select.options': string;
|
71
73
|
'schemas.select.optionPlaceholder': string;
|
72
74
|
'schemas.radioGroup.groupName': string;
|
package/package.json
CHANGED
package/src/i18n.ts
CHANGED
@@ -31,6 +31,7 @@ const dictEn: { [key in keyof Dict]: string } = {
|
|
31
31
|
removePageConfirm: 'Are you sure you want to delete this page? This action cannot be undone.',
|
32
32
|
'validation.hexColor': 'Please enter a valid hex color code.',
|
33
33
|
'validation.uniqueName': 'Please enter a unique name.',
|
34
|
+
'validation.dateTimeFormat': 'Invalid date time format.',
|
34
35
|
'schemas.color': 'Color',
|
35
36
|
'schemas.borderWidth': 'Border Width',
|
36
37
|
'schemas.borderColor': 'Border Color',
|
@@ -70,6 +71,7 @@ const dictEn: { [key in keyof Dict]: string } = {
|
|
70
71
|
'schemas.table.bodyStyle': 'Body Style',
|
71
72
|
'schemas.table.columnStyle': 'Column Style',
|
72
73
|
'schemas.date.format': 'Date Format',
|
74
|
+
'schemas.date.locale': 'Locale',
|
73
75
|
'schemas.select.options': 'Options',
|
74
76
|
'schemas.select.optionPlaceholder': 'Enter an option',
|
75
77
|
'schemas.radioGroup.groupName': 'Group Name',
|
@@ -104,6 +106,7 @@ const dictZh: { [key in keyof Dict]: string } = {
|
|
104
106
|
removePageConfirm: '您确定要删除此页面吗?此操作无法撤销。',
|
105
107
|
'validation.hexColor': '请输入有效的十六进制颜色代码。',
|
106
108
|
'validation.uniqueName': '请输入一个唯一的名称。',
|
109
|
+
'validation.dateTimeFormat': '日期时间格式无效。',
|
107
110
|
'schemas.color': '颜色',
|
108
111
|
'schemas.borderWidth': '边框宽度',
|
109
112
|
'schemas.borderColor': '边框颜色',
|
@@ -142,6 +145,7 @@ const dictZh: { [key in keyof Dict]: string } = {
|
|
142
145
|
'schemas.table.bodyStyle': '表体样式',
|
143
146
|
'schemas.table.columnStyle': '列样式',
|
144
147
|
'schemas.date.format': '日期格式',
|
148
|
+
'schemas.date.locale': ' 语言环境',
|
145
149
|
'schemas.select.options': '选项',
|
146
150
|
'schemas.select.optionPlaceholder': '请输入选项',
|
147
151
|
'schemas.radioGroup.groupName': '组名',
|
@@ -176,6 +180,7 @@ const dictJa: { [key in keyof Dict]: string } = {
|
|
176
180
|
removePageConfirm: 'ページを削除してもよろしいですか?この操作は元に戻せません。',
|
177
181
|
'validation.hexColor': '有効な16進数のカラーコードを入力してください。',
|
178
182
|
'validation.uniqueName': '一意の名前を入力してください。',
|
183
|
+
'validation.dateTimeFormat': '日付と時刻のフォーマットが無効です。',
|
179
184
|
'schemas.color': '色',
|
180
185
|
'schemas.borderWidth': '枠線の太さ',
|
181
186
|
'schemas.borderColor': '枠線の色',
|
@@ -214,6 +219,7 @@ const dictJa: { [key in keyof Dict]: string } = {
|
|
214
219
|
'schemas.table.bodyStyle': 'ボディスタイル',
|
215
220
|
'schemas.table.columnStyle': 'カラムスタイル',
|
216
221
|
'schemas.date.format': '日付形式',
|
222
|
+
'schemas.date.locale': 'ロケール',
|
217
223
|
'schemas.select.options': 'オプション',
|
218
224
|
'schemas.select.optionPlaceholder': 'オプションを入力してください',
|
219
225
|
'schemas.radioGroup.groupName': 'グループ名',
|
@@ -248,6 +254,7 @@ const dictKo: { [key in keyof Dict]: string } = {
|
|
248
254
|
removePageConfirm: '이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.',
|
249
255
|
'validation.hexColor': '유효한 16진수 색상 코드를 입력하세요.',
|
250
256
|
'validation.uniqueName': '고유한 이름을 입력하세요.',
|
257
|
+
'validation.dateTimeFormat': '날짜/시간 형식이 잘못되었습니다.',
|
251
258
|
'schemas.color': '색상',
|
252
259
|
'schemas.borderWidth': '테두리 너비',
|
253
260
|
'schemas.borderColor': '테두리 색상',
|
@@ -286,6 +293,7 @@ const dictKo: { [key in keyof Dict]: string } = {
|
|
286
293
|
'schemas.table.bodyStyle': '본문 스타일',
|
287
294
|
'schemas.table.columnStyle': '열 스타일',
|
288
295
|
'schemas.date.format': '날짜 형식',
|
296
|
+
'schemas.date.locale': ' 장소',
|
289
297
|
'schemas.select.options': '옵션',
|
290
298
|
'schemas.select.optionPlaceholder': '옵션을 입력하세요',
|
291
299
|
'schemas.radioGroup.groupName': '그룹 이름',
|
@@ -320,6 +328,7 @@ const dictAr: { [key in keyof Dict]: string } = {
|
|
320
328
|
removePageConfirm: 'هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.',
|
321
329
|
'validation.hexColor': 'الرجاء إدخال رمز لون سداسي عشري صالح.',
|
322
330
|
'validation.uniqueName': 'الرجاء إدخال اسم فريد.',
|
331
|
+
'validation.dateTimeFormat': 'تنسيق التاريخ والوقت غير صالح.',
|
323
332
|
'schemas.color': 'اللون',
|
324
333
|
'schemas.borderWidth': 'عرض الحدود',
|
325
334
|
'schemas.borderColor': 'لون الحدود',
|
@@ -359,6 +368,7 @@ const dictAr: { [key in keyof Dict]: string } = {
|
|
359
368
|
'schemas.table.bodyStyle': 'أسلوب الجسم',
|
360
369
|
'schemas.table.columnStyle': 'أسلوب العمود',
|
361
370
|
'schemas.date.format': 'تنسيق التاريخ',
|
371
|
+
'schemas.date.locale': 'لغة',
|
362
372
|
'schemas.select.options': 'خيارات',
|
363
373
|
'schemas.select.optionPlaceholder': 'أدخل خيارًا',
|
364
374
|
'schemas.radioGroup.groupName': 'اسم المجموعة',
|
@@ -393,6 +403,7 @@ const dictTh: { [key in keyof Dict]: string } = {
|
|
393
403
|
removePageConfirm: 'คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้',
|
394
404
|
'validation.hexColor': 'กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง',
|
395
405
|
'validation.uniqueName': 'กรุณาระบุชื่อที่ไม่ซ้ำ',
|
406
|
+
'validation.dateTimeFormat': 'รูปแบบวันที่และเวลาไม่ถูกต้อง',
|
396
407
|
'schemas.color': 'สี',
|
397
408
|
'schemas.borderWidth': 'ความกว้างของเส้นขอบ',
|
398
409
|
'schemas.borderColor': 'สีขอบ',
|
@@ -431,6 +442,7 @@ const dictTh: { [key in keyof Dict]: string } = {
|
|
431
442
|
'schemas.table.bodyStyle': 'สไตล์เนื้อหา',
|
432
443
|
'schemas.table.columnStyle': 'สไตล์คอลัมน์',
|
433
444
|
'schemas.date.format': 'รูปแบบวันที่',
|
445
|
+
'schemas.date.locale': 'สถาน',
|
434
446
|
'schemas.select.options': 'ตัวเลือก',
|
435
447
|
'schemas.select.optionPlaceholder': 'กรอกตัวเลือก',
|
436
448
|
'schemas.radioGroup.groupName': 'ชื่อกลุ่ม',
|
@@ -467,6 +479,7 @@ const dictIt: { [key in keyof Dict]: string } = {
|
|
467
479
|
'Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.',
|
468
480
|
'validation.hexColor': 'Inserisci un codice colore esadecimale valido.',
|
469
481
|
'validation.uniqueName': 'Inserisci un nome univoco.',
|
482
|
+
'validation.dateTimeFormat': 'Formato data-ora non valido.',
|
470
483
|
'schemas.color': 'Colore',
|
471
484
|
'schemas.borderWidth': 'Spessore bordo',
|
472
485
|
'schemas.borderColor': 'Colore bordo',
|
@@ -506,8 +519,9 @@ const dictIt: { [key in keyof Dict]: string } = {
|
|
506
519
|
'schemas.table.bodyStyle': 'Stile del Corpo',
|
507
520
|
'schemas.table.columnStyle': 'Stile della Colonna',
|
508
521
|
'schemas.date.format': 'Formato data',
|
522
|
+
'schemas.date.locale': 'Locale',
|
509
523
|
'schemas.select.options': 'Opzioni',
|
510
|
-
'schemas.select.optionPlaceholder':
|
524
|
+
'schemas.select.optionPlaceholder': "Inserisci un'opzione",
|
511
525
|
'schemas.radioGroup.groupName': 'Nome del Gruppo',
|
512
526
|
};
|
513
527
|
|
@@ -540,6 +554,7 @@ const dictPl: { [key in keyof Dict]: string } = {
|
|
540
554
|
removePageConfirm: 'Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.',
|
541
555
|
'validation.hexColor': 'Wprowadź poprawny kod koloru szesnastkowego.',
|
542
556
|
'validation.uniqueName': 'Proszę wpisać unikalną nazwę.',
|
557
|
+
'validation.dateTimeFormat': 'Nieprawidłowy format daty i godziny.',
|
543
558
|
'schemas.color': 'Kolor',
|
544
559
|
'schemas.borderWidth': 'Szerokość obramowania',
|
545
560
|
'schemas.borderColor': 'Kolor obramowania',
|
@@ -578,6 +593,7 @@ const dictPl: { [key in keyof Dict]: string } = {
|
|
578
593
|
'schemas.table.bodyStyle': 'Styl ciała',
|
579
594
|
'schemas.table.columnStyle': 'Styl kolumny',
|
580
595
|
'schemas.date.format': 'Format daty',
|
596
|
+
'schemas.date.locale': 'Widownia',
|
581
597
|
'schemas.select.options': 'Opcje',
|
582
598
|
'schemas.select.optionPlaceholder': 'Wpisz opcję',
|
583
599
|
'schemas.radioGroup.groupName': 'Nazwa grupy',
|
@@ -614,6 +630,7 @@ const dictDe: { [key in keyof Dict]: string } = {
|
|
614
630
|
'Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.',
|
615
631
|
'validation.hexColor': 'Bitte geben Sie einen gültigen Hex-Farbcode ein.',
|
616
632
|
'validation.uniqueName': 'Bitte geben Sie einen eindeutigen Namen ein.',
|
633
|
+
'validation.dateTimeFormat': 'Ungültiges Datums- und Zeitformat.',
|
617
634
|
'schemas.color': 'Farbe',
|
618
635
|
'schemas.borderWidth': 'Rahmenbreite',
|
619
636
|
'schemas.borderColor': 'Rahmenfarbe',
|
@@ -653,6 +670,7 @@ const dictDe: { [key in keyof Dict]: string } = {
|
|
653
670
|
'schemas.table.bodyStyle': 'Körperstil',
|
654
671
|
'schemas.table.columnStyle': 'Spaltenstil',
|
655
672
|
'schemas.date.format': 'Datumsformat',
|
673
|
+
'schemas.date.locale': 'Gebietsschema',
|
656
674
|
'schemas.select.options': 'Optionen',
|
657
675
|
'schemas.select.optionPlaceholder': 'Geben Sie eine Option ein',
|
658
676
|
'schemas.radioGroup.groupName': 'Gruppenname',
|
@@ -689,6 +707,7 @@ const dictEs: { [key in keyof Dict]: string } = {
|
|
689
707
|
'¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.',
|
690
708
|
'validation.hexColor': 'Introduce un código de color hexadecimal válido.',
|
691
709
|
'validation.uniqueName': 'Por favor, introduzca un nombre único.',
|
710
|
+
'validation.dateTimeFormat': 'Formato de fecha y hora no válido.',
|
692
711
|
'schemas.color': 'Color',
|
693
712
|
'schemas.borderWidth': 'Ancho del borde',
|
694
713
|
'schemas.borderColor': 'Color del borde',
|
@@ -727,6 +746,7 @@ const dictEs: { [key in keyof Dict]: string } = {
|
|
727
746
|
'schemas.table.bodyStyle': 'Estilo de cuerpo',
|
728
747
|
'schemas.table.columnStyle': 'Estilo de columna',
|
729
748
|
'schemas.date.format': 'Formato de fecha',
|
749
|
+
'schemas.date.locale': 'Lugar',
|
730
750
|
'schemas.select.options': 'Opciones',
|
731
751
|
'schemas.select.optionPlaceholder': 'Ingrese una opción',
|
732
752
|
'schemas.radioGroup.groupName': 'Nombre del grupo',
|
@@ -763,6 +783,7 @@ const dictFr: { [key in keyof Dict]: string } = {
|
|
763
783
|
'Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.',
|
764
784
|
'validation.hexColor': 'Veuillez entrer un code couleur hexadécimal valide.',
|
765
785
|
'validation.uniqueName': 'Veuillez saisir un nom unique.',
|
786
|
+
'validation.dateTimeFormat': "Format de date et d'heure non valide.",
|
766
787
|
'schemas.color': 'Couleur',
|
767
788
|
'schemas.borderWidth': 'Largeur de la bordure',
|
768
789
|
'schemas.borderColor': 'Couleur de la bordure',
|
@@ -802,6 +823,7 @@ const dictFr: { [key in keyof Dict]: string } = {
|
|
802
823
|
'schemas.table.bodyStyle': 'Style de corps',
|
803
824
|
'schemas.table.columnStyle': 'Style de colonne',
|
804
825
|
'schemas.date.format': 'Format de date',
|
826
|
+
'schemas.date.locale': 'Lieu',
|
805
827
|
'schemas.select.options': 'Options',
|
806
828
|
'schemas.select.optionPlaceholder': 'Entrez une option',
|
807
829
|
'schemas.radioGroup.groupName': 'Nom du groupe',
|