@rt-tools/ui-kit-v2 0.24.0 → 0.26.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 CHANGED
@@ -23,6 +23,16 @@ import { RtChatComponent, RtMessageComposerComponent, RtRichEditorComponent } fr
23
23
 
24
24
  Основной вход quill не называет, и приложение без этих трёх компонентов собирается без него.
25
25
 
26
+ `pdfjs-dist` нужен только тем, кто открывает просмотрщик документа PDF. Он стоит отдельным входом
27
+ `@rt-tools/ui-kit-v2/pdf-viewer`, а файл воркера `pdf.worker.min.mjs` приложение кладёт себе в
28
+ `assets/pdfjs/` при сборке — подробности на странице обзора `rt-pdf-viewer`:
29
+
30
+ ```typescript
31
+ import { RtPdfViewerComponent } from '@rt-tools/ui-kit-v2/pdf-viewer';
32
+ ```
33
+
34
+ Основной вход `pdfjs-dist` не называет, и приложение без просмотрщика собирается без него.
35
+
26
36
  ### Точки входа компонентов
27
37
 
28
38
  Каждый компонент собран своей точкой входа по имени своего каталога: `@rt-tools/ui-kit-v2/table`,
@@ -126,6 +126,15 @@ const RT_KIT_LABELS_EN = {
126
126
  fieldErrorMinLength: "Value is too short",
127
127
  fieldErrorPattern: "Invalid format",
128
128
  fieldErrorRequired: "Required field",
129
+ pdfViewerClose: "Close document",
130
+ pdfViewerDownload: "Download",
131
+ pdfViewerErrorText: "You can download the file and open it on your computer.",
132
+ pdfViewerErrorTitle: "Couldn't show the document",
133
+ pdfViewerFitWidth: "Fit to width",
134
+ pdfViewerPageOf: "Page {{page}} of {{total}}",
135
+ pdfViewerPrint: "Print",
136
+ pdfViewerZoomIn: "Zoom in",
137
+ pdfViewerZoomOut: "Zoom out",
129
138
  photoViewerClose: "Close viewer",
130
139
  photoViewerNext: "Next photo",
131
140
  photoViewerPrev: "Previous photo",