@praxisui/files-upload 8.0.0-beta.0 → 8.0.0-beta.100
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 +26 -0
- package/fesm2022/praxisui-files-upload.mjs +2796 -2181
- package/package.json +16 -11
- package/{index.d.ts → types/praxisui-files-upload.d.ts} +44 -6
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/files-upload",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.100",
|
|
4
4
|
"description": "File upload components and services for Praxis UI with presigned and direct strategies, quotas and rate-limit handling.",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/cdk": "^
|
|
8
|
-
"@angular/core": "^
|
|
9
|
-
"@angular/material": "^
|
|
10
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
11
|
-
"@praxisui/dynamic-fields": "^8.0.0-beta.
|
|
12
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
6
|
+
"@angular/common": "^21.0.0",
|
|
7
|
+
"@angular/cdk": "^21.0.0",
|
|
8
|
+
"@angular/core": "^21.0.0",
|
|
9
|
+
"@angular/material": "^21.0.0",
|
|
10
|
+
"@praxisui/core": "^8.0.0-beta.100",
|
|
11
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.100",
|
|
12
|
+
"@praxisui/settings-panel": "^8.0.0-beta.100",
|
|
13
|
+
"@angular/forms": "^21.0.0",
|
|
14
|
+
"@angular/router": "^21.0.0",
|
|
15
|
+
"@praxisui/ai": "^8.0.0-beta.100",
|
|
16
|
+
"rxjs": "~7.8.0"
|
|
13
17
|
},
|
|
14
18
|
"dependencies": {
|
|
15
19
|
"tslib": "^2.3.0"
|
|
@@ -36,14 +40,15 @@
|
|
|
36
40
|
],
|
|
37
41
|
"sideEffects": false,
|
|
38
42
|
"module": "fesm2022/praxisui-files-upload.mjs",
|
|
39
|
-
"typings": "
|
|
43
|
+
"typings": "types/praxisui-files-upload.d.ts",
|
|
40
44
|
"exports": {
|
|
41
45
|
"./package.json": {
|
|
42
46
|
"default": "./package.json"
|
|
43
47
|
},
|
|
44
48
|
".": {
|
|
45
|
-
"types": "./
|
|
49
|
+
"types": "./types/praxisui-files-upload.d.ts",
|
|
46
50
|
"default": "./fesm2022/praxisui-files-upload.mjs"
|
|
47
51
|
}
|
|
48
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"type": "module"
|
|
49
54
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as _praxisui_files_upload from '@praxisui/files-upload';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
3
|
import { InjectionToken, OnDestroy, NgZone, OnInit, OnChanges, AfterViewInit, EventEmitter, ViewContainerRef, ChangeDetectorRef, DestroyRef, Provider } from '@angular/core';
|
|
3
4
|
import { FormControl, ValidatorFn, FormGroup, FormBuilder } from '@angular/forms';
|
|
4
|
-
import { PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nService, AsyncConfigStorage, ComponentDocMeta, AiCapabilityCategory,
|
|
5
|
+
import { PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nService, AsyncConfigStorage, ComponentDocMeta, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
5
6
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
6
7
|
import { HttpClient, HttpEvent, HttpHeaders } from '@angular/common/http';
|
|
7
8
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
@@ -384,7 +385,7 @@ declare const FILES_UPLOAD_TEXTS: InjectionToken<FilesUploadTexts>;
|
|
|
384
385
|
/** @deprecated Transitional compatibility token. Prefer PraxisI18nService. */
|
|
385
386
|
declare const TRANSLATE_LIKE: InjectionToken<TranslateLike>;
|
|
386
387
|
declare function createPraxisFilesUploadI18nConfig(options?: PraxisFilesUploadI18nOptions): Partial<PraxisI18nConfig>;
|
|
387
|
-
declare function providePraxisFilesUploadI18n(options?: PraxisFilesUploadI18nOptions): i0.Provider;
|
|
388
|
+
declare function providePraxisFilesUploadI18n(options?: PraxisFilesUploadI18nOptions): i0.Provider[];
|
|
388
389
|
declare function resolvePraxisFilesUploadText(i18n: PraxisI18nService, key: string, fallback: string, legacyTexts?: FilesUploadTexts, legacyTranslate?: TranslateLike): string;
|
|
389
390
|
|
|
390
391
|
interface RateLimitInfo {
|
|
@@ -512,7 +513,7 @@ declare class PraxisFilesUpload implements OnInit, OnChanges, AfterViewInit, OnD
|
|
|
512
513
|
enableCustomization: boolean;
|
|
513
514
|
uploadSuccess: EventEmitter<FileMetadata>;
|
|
514
515
|
bulkComplete: EventEmitter<BulkUploadResponseData>;
|
|
515
|
-
error: EventEmitter<ApiErrorEnvelope>;
|
|
516
|
+
error: EventEmitter<_praxisui_files_upload.ApiErrorEnvelope>;
|
|
516
517
|
rateLimited: EventEmitter<RateLimitInfo>;
|
|
517
518
|
uploadStart: EventEmitter<UploadStartEvent>;
|
|
518
519
|
uploadProgress: EventEmitter<UploadProgressEvent>;
|
|
@@ -631,6 +632,7 @@ declare class PraxisFilesUpload implements OnInit, OnChanges, AfterViewInit, OnD
|
|
|
631
632
|
removePendingFile(file: File): void;
|
|
632
633
|
private emitPendingState;
|
|
633
634
|
private startUpload;
|
|
635
|
+
private shouldUseBulkMode;
|
|
634
636
|
private directUpload;
|
|
635
637
|
private uploadMultipleFiles;
|
|
636
638
|
private uploadMultipleFilesDirect;
|
|
@@ -732,6 +734,7 @@ declare class PdxFilesUploadFieldComponent extends SimpleBaseInputComponent {
|
|
|
732
734
|
pendingFileSummary(file: File): string;
|
|
733
735
|
formatBytes(bytes: number): string;
|
|
734
736
|
private focusPendingPanelSoon;
|
|
737
|
+
private getNonUploadErrors;
|
|
735
738
|
private updateUploadValidationState;
|
|
736
739
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdxFilesUploadFieldComponent, never>;
|
|
737
740
|
static ɵcmp: i0.ɵɵComponentDeclaration<PdxFilesUploadFieldComponent, "pdx-material-files-upload", never, { "config": { "alias": "config"; "required": false; }; "valueMode": { "alias": "valueMode"; "required": false; }; "baseUrl": { "alias": "baseUrl"; "required": false; }; }, { "uploadSuccess": "uploadSuccess"; "bulkComplete": "bulkComplete"; "error": "error"; }, never, never, true, never>;
|
|
@@ -752,7 +755,7 @@ declare class PraxisFilesUploadConfigEditor implements OnInit, SettingsValueProv
|
|
|
752
755
|
baseUrl?: string;
|
|
753
756
|
private state;
|
|
754
757
|
serverLoading: () => boolean;
|
|
755
|
-
serverData: () => EffectiveUploadConfig | undefined;
|
|
758
|
+
serverData: () => _praxisui_files_upload.EffectiveUploadConfig | undefined;
|
|
756
759
|
serverError: () => unknown;
|
|
757
760
|
get uiGroup(): FormGroup;
|
|
758
761
|
get dropzoneGroup(): FormGroup;
|
|
@@ -800,6 +803,39 @@ declare class PraxisFilesUploadConfigEditor implements OnInit, SettingsValueProv
|
|
|
800
803
|
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilesUploadConfigEditor, "praxis-files-upload-config-editor", never, {}, {}, never, never, true, never>;
|
|
801
804
|
}
|
|
802
805
|
|
|
806
|
+
interface PraxisFilesUploadWidgetEditorInputs {
|
|
807
|
+
config?: FilesUploadConfig | null;
|
|
808
|
+
filesUploadId?: string;
|
|
809
|
+
componentInstanceId?: string;
|
|
810
|
+
baseUrl?: string;
|
|
811
|
+
displayMode?: 'full' | 'compact';
|
|
812
|
+
context?: Record<string, unknown> | null;
|
|
813
|
+
enableCustomization?: boolean;
|
|
814
|
+
[key: string]: unknown;
|
|
815
|
+
}
|
|
816
|
+
interface PraxisFilesUploadWidgetEditorValue {
|
|
817
|
+
inputs: PraxisFilesUploadWidgetEditorInputs;
|
|
818
|
+
}
|
|
819
|
+
declare class PraxisFilesUploadWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
820
|
+
inputs: PraxisFilesUploadWidgetEditorInputs | null;
|
|
821
|
+
widgetKey?: string;
|
|
822
|
+
uploadEditor?: PraxisFilesUploadConfigEditor;
|
|
823
|
+
readonly isDirty$: BehaviorSubject<boolean>;
|
|
824
|
+
readonly isValid$: BehaviorSubject<boolean>;
|
|
825
|
+
readonly isBusy$: BehaviorSubject<boolean>;
|
|
826
|
+
private readonly subscription;
|
|
827
|
+
ngAfterViewInit(): void;
|
|
828
|
+
ngOnDestroy(): void;
|
|
829
|
+
getSettingsValue(): PraxisFilesUploadWidgetEditorValue;
|
|
830
|
+
onSave(): PraxisFilesUploadWidgetEditorValue;
|
|
831
|
+
reset(): void;
|
|
832
|
+
private initializeChildEditor;
|
|
833
|
+
private buildValue;
|
|
834
|
+
private normalizeEditorPatch;
|
|
835
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFilesUploadWidgetConfigEditor, never>;
|
|
836
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilesUploadWidgetConfigEditor, "praxis-files-upload-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
837
|
+
}
|
|
838
|
+
|
|
803
839
|
declare const FILES_UPLOAD_EN_US: {
|
|
804
840
|
'praxis.filesUpload.editor.summary.ariaLabel': string;
|
|
805
841
|
'praxis.filesUpload.editor.summary.title': string;
|
|
@@ -1463,5 +1499,7 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
|
|
|
1463
1499
|
}
|
|
1464
1500
|
declare const FILES_UPLOAD_AI_CAPABILITIES: CapabilityCatalog;
|
|
1465
1501
|
|
|
1466
|
-
|
|
1467
|
-
|
|
1502
|
+
declare const PRAXIS_FILES_UPLOAD_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
1503
|
+
|
|
1504
|
+
export { BulkUploadResultStatus, ErrorCode, ErrorMapperService, FILES_UPLOAD_AI_CAPABILITIES, FILES_UPLOAD_EN_US, FILES_UPLOAD_ERROR_MESSAGES, FILES_UPLOAD_PT_BR, FILES_UPLOAD_TEXTS, FilesApiClient, PRAXIS_FILES_UPLOAD_AUTHORING_MANIFEST, PRAXIS_FILES_UPLOAD_COMPONENT_METADATA, PdxFilesUploadFieldComponent, PraxisFilesUpload, PraxisFilesUploadConfigEditor, PraxisFilesUploadWidgetConfigEditor, PresignedUploaderService, ScanStatus, TRANSLATE_LIKE, acceptValidator, createPraxisFilesUploadI18nConfig, getPrimaryErrorItem, isErrorEnvelope, maxBulkSizeValidator, maxFileSizeValidator, maxFilesPerBulkValidator, providePraxisFilesUploadI18n, providePraxisFilesUploadMetadata, resolvePraxisFilesUploadText };
|
|
1505
|
+
export type { ApiErrorEnvelope, ApiErrorItem, ApiResponseStatus, ApiSuccessEnvelope, BulkConfig, BulkUploadFile, BulkUploadFileResult, BulkUploadOptions, BulkUploadResponse, BulkUploadResponseData, Capability, CapabilityCatalog, CapabilityCategory, EffectiveUploadConfig, ErrorLike, ErrorResponse, FileMetadata, FileUploadOptions, FilesUploadBackendOptionsConfig, FilesUploadConfig, FilesUploadExecutionConfig, FilesUploadHeadersConfig, FilesUploadMessagesConfig, FilesUploadQuotaFeedbackConfig, FilesUploadRateLimitFeedbackConfig, FilesUploadReadinessEvent, FilesUploadReadySource, FilesUploadReadyState, FilesUploadStrategy, FilesUploadTexts, FilesUploadValidationConfig, FilesUploadVisualConfig, MappedError, Metadata, PendingFilesState, PraxisFilesUploadI18nOptions, PraxisFilesUploadWidgetEditorInputs, PraxisFilesUploadWidgetEditorValue, PresignResponse, QuotasConfig, RateLimitConfig, RateLimitInfo, ServerMessages, TranslateLike, UploadOptions, UploadProgressEvent, UploadResponse, UploadResponseData, UploadStartEvent, ValueKind };
|