@praxisui/files-upload 1.0.0-beta.5 → 1.0.0-beta.53
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 +52 -3
- package/fesm2022/praxisui-files-upload.mjs +736 -146
- package/fesm2022/praxisui-files-upload.mjs.map +1 -1
- package/index.d.ts +68 -13
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Files Upload"
|
|
3
|
+
slug: "files-upload-overview"
|
|
4
|
+
description: "Visao geral do @praxisui/files-upload com upload direto ou presign, validacoes, i18n, persistencia de configuracao e integracao com backend Praxis."
|
|
5
|
+
doc_type: "reference"
|
|
6
|
+
document_kind: "component-overview"
|
|
7
|
+
component: "files-upload"
|
|
8
|
+
category: "components"
|
|
9
|
+
audience:
|
|
10
|
+
- "frontend"
|
|
11
|
+
- "host"
|
|
12
|
+
- "architect"
|
|
13
|
+
level: "intermediate"
|
|
14
|
+
status: "active"
|
|
15
|
+
owner: "praxis-ui"
|
|
16
|
+
tags:
|
|
17
|
+
- "files-upload"
|
|
18
|
+
- "upload"
|
|
19
|
+
- "presign"
|
|
20
|
+
- "validation"
|
|
21
|
+
- "i18n"
|
|
22
|
+
order: 37
|
|
23
|
+
icon: "upload"
|
|
24
|
+
toc: true
|
|
25
|
+
sidebar: true
|
|
26
|
+
search_boost: 0.95
|
|
27
|
+
reading_time: 11
|
|
28
|
+
estimated_setup_time: 20
|
|
29
|
+
version: "1.0"
|
|
30
|
+
related_docs:
|
|
31
|
+
- "host-files-upload-integration"
|
|
32
|
+
- "consumer-integration-quickstart"
|
|
33
|
+
- "host-integration-guide"
|
|
34
|
+
keywords:
|
|
35
|
+
- "praxis files upload"
|
|
36
|
+
- "presigned upload"
|
|
37
|
+
- "upload config"
|
|
38
|
+
- "bulk upload"
|
|
39
|
+
last_updated: "2026-03-07"
|
|
40
|
+
---
|
|
41
|
+
|
|
1
42
|
# Praxis Files Upload
|
|
2
43
|
|
|
44
|
+
## 🔰 Exemplos / Quickstart
|
|
45
|
+
|
|
46
|
+
Para ver esta biblioteca em funcionamento em uma aplicação completa, utilize o projeto de exemplo (Quickstart):
|
|
47
|
+
|
|
48
|
+
- Repositório: https://github.com/codexrodrigues/praxis-ui-quickstart
|
|
49
|
+
- O Quickstart demonstra a integração das bibliotecas `@praxisui/*` em um app Angular, incluindo instalação, configuração e uso em telas reais.
|
|
50
|
+
|
|
3
51
|
Components and services for integrating file uploads with the Praxis backend. Configuration is provided as JSON and can be edited at runtime through the Settings Panel.
|
|
4
52
|
|
|
5
53
|
## Component Overview
|
|
@@ -9,7 +57,8 @@ Main component selector: `praxis-files-upload`
|
|
|
9
57
|
Inputs
|
|
10
58
|
- `config: FilesUploadConfig | null` UI/limits/options for the upload flow.
|
|
11
59
|
- `baseUrl?: string` Required to enable uploads (backend base URL for files API).
|
|
12
|
-
- `
|
|
60
|
+
- `filesUploadId: string` Required identifier for config persistence.
|
|
61
|
+
- `componentInstanceId?: string` Optional instance key when rendering multiple uploads in the same route.
|
|
13
62
|
- `displayMode: 'full' | 'compact'` Controls UI density and overlays (default: `full`).
|
|
14
63
|
|
|
15
64
|
Outputs
|
|
@@ -32,7 +81,7 @@ import { PraxisFilesUpload, FilesUploadConfig, FileMetadata } from "@praxisui/fi
|
|
|
32
81
|
@Component({
|
|
33
82
|
standalone: true,
|
|
34
83
|
imports: [PraxisFilesUpload],
|
|
35
|
-
template: `<praxis-files-upload [config]="config" (uploadSuccess)="onSuccess($event)"></praxis-files-upload>`,
|
|
84
|
+
template: `<praxis-files-upload filesUploadId="docs-upload" [config]="config" (uploadSuccess)="onSuccess($event)"></praxis-files-upload>`,
|
|
36
85
|
})
|
|
37
86
|
export class DemoComponent {
|
|
38
87
|
config: FilesUploadConfig = {
|
|
@@ -123,7 +172,7 @@ providing the `FILES_UPLOAD_ERROR_MESSAGES` injection token:
|
|
|
123
172
|
|
|
124
173
|
## Configuration persistence
|
|
125
174
|
|
|
126
|
-
The configuration editor stores settings in `
|
|
175
|
+
The configuration editor stores settings in `ASYNC_CONFIG_STORAGE`, using the key `files-upload-config:<component_id>`. Provide an async storage implementation (for example, `LocalStorageAsyncAdapter` for local persistence or `ApiConfigStorage` for remote persistence).
|
|
127
176
|
|
|
128
177
|
## Internationalização
|
|
129
178
|
|