@praxisui/files-upload 1.0.0-beta.30 → 1.0.0-beta.40
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 +4 -3
- package/fesm2022/praxisui-files-upload.mjs +714 -124
- package/fesm2022/praxisui-files-upload.mjs.map +1 -1
- package/index.d.ts +68 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,7 +16,8 @@ Main component selector: `praxis-files-upload`
|
|
|
16
16
|
Inputs
|
|
17
17
|
- `config: FilesUploadConfig | null` UI/limits/options for the upload flow.
|
|
18
18
|
- `baseUrl?: string` Required to enable uploads (backend base URL for files API).
|
|
19
|
-
- `
|
|
19
|
+
- `filesUploadId: string` Required identifier for config persistence.
|
|
20
|
+
- `componentInstanceId?: string` Optional instance key when rendering multiple uploads in the same route.
|
|
20
21
|
- `displayMode: 'full' | 'compact'` Controls UI density and overlays (default: `full`).
|
|
21
22
|
|
|
22
23
|
Outputs
|
|
@@ -39,7 +40,7 @@ import { PraxisFilesUpload, FilesUploadConfig, FileMetadata } from "@praxisui/fi
|
|
|
39
40
|
@Component({
|
|
40
41
|
standalone: true,
|
|
41
42
|
imports: [PraxisFilesUpload],
|
|
42
|
-
template: `<praxis-files-upload [config]="config" (uploadSuccess)="onSuccess($event)"></praxis-files-upload>`,
|
|
43
|
+
template: `<praxis-files-upload filesUploadId="docs-upload" [config]="config" (uploadSuccess)="onSuccess($event)"></praxis-files-upload>`,
|
|
43
44
|
})
|
|
44
45
|
export class DemoComponent {
|
|
45
46
|
config: FilesUploadConfig = {
|
|
@@ -130,7 +131,7 @@ providing the `FILES_UPLOAD_ERROR_MESSAGES` injection token:
|
|
|
130
131
|
|
|
131
132
|
## Configuration persistence
|
|
132
133
|
|
|
133
|
-
The configuration editor stores settings in `
|
|
134
|
+
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).
|
|
134
135
|
|
|
135
136
|
## Internationalização
|
|
136
137
|
|