@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 +10 -0
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs +9 -0
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-pdf-viewer.mjs +677 -0
- package/fesm2022/rt-tools-ui-kit-v2-pdf-viewer.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs +2 -2
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs.map +1 -1
- package/package.json +9 -1
- package/src/lib/components/CONTEXT.md +1 -1
- package/src/lib/components/pdf-viewer/CONTEXT.md +54 -0
- package/src/lib/components/pdf-viewer/rt-pdf-viewer.component.scss +231 -0
- package/src/rich-editor/lib/components/ai-chat/CONTEXT.md +3 -0
- package/src/rich-editor/lib/components/ai-chat/rt-ai-chat.component.scss +7 -3
- package/types/rt-tools-ui-kit-v2-core.d.ts +9 -0
- package/types/rt-tools-ui-kit-v2-pdf-viewer.d.ts +243 -0
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",
|