@pdfme/ui 5.2.3 → 5.2.4-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.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" | "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?: {
4
4
  cancel: string;
5
5
  close: string;
6
6
  field: string;
@@ -62,6 +62,7 @@ export declare const I18nContext: import("react").Context<(key: "type" | "width"
62
62
  'schemas.barcodes.includetext': string;
63
63
  'schemas.table.alternateBackgroundColor': string;
64
64
  'schemas.table.tableStyle': string;
65
+ 'schemas.table.showHead': string;
65
66
  'schemas.table.headStyle': string;
66
67
  'schemas.table.bodyStyle': string;
67
68
  'schemas.table.columnStyle': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/ui",
3
- "version": "5.2.3",
3
+ "version": "5.2.4-dev.2",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/helper.ts CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  } from '@pdfme/common';
16
16
  import { RULER_HEIGHT } from './constants.js';
17
17
 
18
- GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${version}/build/pdf.worker.min.mjs`;
18
+ GlobalWorkerOptions.workerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@${version}/build/pdf.worker.min.mjs`;
19
19
 
20
20
  export const uuid = () =>
21
21
  'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
package/src/i18n.ts CHANGED
@@ -65,6 +65,7 @@ const dictEn: { [key in keyof Dict]: string } = {
65
65
  'schemas.barcodes.includetext': 'Include Text',
66
66
  'schemas.table.alternateBackgroundColor': 'Alternate Background Color',
67
67
  'schemas.table.tableStyle': 'Table Style',
68
+ 'schemas.table.showHead': 'Show Head',
68
69
  'schemas.table.headStyle': 'Header Style',
69
70
  'schemas.table.bodyStyle': 'Body Style',
70
71
  'schemas.table.columnStyle': 'Column Style',
@@ -136,6 +137,7 @@ const dictZh: { [key in keyof Dict]: string } = {
136
137
  'schemas.barcodes.includetext': '包括文本',
137
138
  'schemas.table.alternateBackgroundColor': '交替背景颜色',
138
139
  'schemas.table.tableStyle': '表格样式',
140
+ 'schemas.table.showHead': '显示标题',
139
141
  'schemas.table.headStyle': '表头样式',
140
142
  'schemas.table.bodyStyle': '表体样式',
141
143
  'schemas.table.columnStyle': '列样式',
@@ -207,6 +209,7 @@ const dictJa: { [key in keyof Dict]: string } = {
207
209
  'schemas.barcodes.includetext': 'テキストを含める',
208
210
  'schemas.table.alternateBackgroundColor': '交互の背景色',
209
211
  'schemas.table.tableStyle': 'テーブルスタイル',
212
+ 'schemas.table.showHead': 'ヘッダーを表示',
210
213
  'schemas.table.headStyle': 'ヘッダースタイル',
211
214
  'schemas.table.bodyStyle': 'ボディスタイル',
212
215
  'schemas.table.columnStyle': 'カラムスタイル',
@@ -278,6 +281,7 @@ const dictKo: { [key in keyof Dict]: string } = {
278
281
  'schemas.barcodes.includetext': '텍스트 포함',
279
282
  'schemas.table.alternateBackgroundColor': '대체 배경색',
280
283
  'schemas.table.tableStyle': '테이블 스타일',
284
+ 'schemas.table.showHead': '헤드 표시',
281
285
  'schemas.table.headStyle': '헤더 스타일',
282
286
  'schemas.table.bodyStyle': '본문 스타일',
283
287
  'schemas.table.columnStyle': '열 스타일',
@@ -350,6 +354,7 @@ const dictAr: { [key in keyof Dict]: string } = {
350
354
  'schemas.barcodes.includetext': 'تضمين النص',
351
355
  'schemas.table.alternateBackgroundColor': 'لون الخلفية البديل',
352
356
  'schemas.table.tableStyle': 'أسلوب الجدول',
357
+ 'schemas.table.showHead': 'إظهار الرأس',
353
358
  'schemas.table.headStyle': 'أسلوب الرأس',
354
359
  'schemas.table.bodyStyle': 'أسلوب الجسم',
355
360
  'schemas.table.columnStyle': 'أسلوب العمود',
@@ -422,6 +427,7 @@ const dictTh: { [key in keyof Dict]: string } = {
422
427
  'schemas.table.alternateBackgroundColor': 'สีพื้นหลังสลับกัน',
423
428
  'schemas.table.tableStyle': 'สไตล์ตาราง',
424
429
  'schemas.table.headStyle': 'สไตล์หัวข้อ',
430
+ 'schemas.table.showHead': 'แสดงหัวข้อ',
425
431
  'schemas.table.bodyStyle': 'สไตล์เนื้อหา',
426
432
  'schemas.table.columnStyle': 'สไตล์คอลัมน์',
427
433
  'schemas.date.format': 'รูปแบบวันที่',
@@ -495,6 +501,7 @@ const dictIt: { [key in keyof Dict]: string } = {
495
501
  'schemas.barcodes.includetext': 'Includi testo',
496
502
  'schemas.table.alternateBackgroundColor': 'Colore di Sfondo Alternato',
497
503
  'schemas.table.tableStyle': 'Stile della Tabella',
504
+ 'schemas.table.showHead': 'Mostra Intestazione',
498
505
  'schemas.table.headStyle': "Stile dell'Intestazione",
499
506
  'schemas.table.bodyStyle': 'Stile del Corpo',
500
507
  'schemas.table.columnStyle': 'Stile della Colonna',
@@ -566,6 +573,7 @@ const dictPl: { [key in keyof Dict]: string } = {
566
573
  'schemas.barcodes.includetext': 'Dołącz tekst',
567
574
  'schemas.table.alternateBackgroundColor': 'Alternatywny kolor tła',
568
575
  'schemas.table.tableStyle': 'Styl tabeli',
576
+ 'schemas.table.showHead': 'Pokaż nagłówek',
569
577
  'schemas.table.headStyle': 'Styl nagłówka',
570
578
  'schemas.table.bodyStyle': 'Styl ciała',
571
579
  'schemas.table.columnStyle': 'Styl kolumny',
@@ -641,6 +649,7 @@ const dictDe: { [key in keyof Dict]: string } = {
641
649
  'schemas.table.alternateBackgroundColor': 'Wechselnde Hintergrundfarbe',
642
650
  'schemas.table.tableStyle': 'Tabellenstil',
643
651
  'schemas.table.headStyle': 'Kopfzeilenstil',
652
+ 'schemas.table.showHead': 'Kopfzeile anzeigen',
644
653
  'schemas.table.bodyStyle': 'Körperstil',
645
654
  'schemas.table.columnStyle': 'Spaltenstil',
646
655
  'schemas.date.format': 'Datumsformat',
@@ -713,6 +722,7 @@ const dictEs: { [key in keyof Dict]: string } = {
713
722
  'schemas.barcodes.includetext': 'Incluir texto',
714
723
  'schemas.table.alternateBackgroundColor': 'Color de fondo alternativo',
715
724
  'schemas.table.tableStyle': 'Estilo de tabla',
725
+ 'schemas.table.showHead': 'Mostrar encabezado',
716
726
  'schemas.table.headStyle': 'Estilo de cabecera',
717
727
  'schemas.table.bodyStyle': 'Estilo de cuerpo',
718
728
  'schemas.table.columnStyle': 'Estilo de columna',
@@ -787,6 +797,7 @@ const dictFr: { [key in keyof Dict]: string } = {
787
797
  'schemas.barcodes.includetext': 'Inclure le texte',
788
798
  'schemas.table.alternateBackgroundColor': 'Couleur de fond alternative',
789
799
  'schemas.table.tableStyle': 'Style de tableau',
800
+ 'schemas.table.showHead': 'Afficher l’en-tête',
790
801
  'schemas.table.headStyle': "Style d'en-tête",
791
802
  'schemas.table.bodyStyle': 'Style de corps',
792
803
  'schemas.table.columnStyle': 'Style de colonne',