@praxisui/files-upload 8.0.0-beta.4 → 8.0.0-beta.41

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/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "@praxisui/files-upload",
3
- "version": "8.0.0-beta.4",
3
+ "version": "8.0.0-beta.41",
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": "^20.0.0",
7
- "@angular/cdk": "^20.0.0",
8
- "@angular/core": "^20.0.0",
9
- "@angular/material": "^20.0.0",
10
- "@praxisui/core": "^8.0.0-beta.4",
11
- "@praxisui/dynamic-fields": "^8.0.0-beta.4",
12
- "@praxisui/settings-panel": "^8.0.0-beta.4"
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.41",
11
+ "@praxisui/dynamic-fields": "^8.0.0-beta.41",
12
+ "@praxisui/settings-panel": "^8.0.0-beta.41",
13
+ "@angular/forms": "^21.0.0",
14
+ "@angular/router": "^21.0.0",
15
+ "@praxisui/ai": "^8.0.0-beta.41",
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": "index.d.ts",
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": "./index.d.ts",
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, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
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';
@@ -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>;
@@ -754,7 +755,7 @@ declare class PraxisFilesUploadConfigEditor implements OnInit, SettingsValueProv
754
755
  baseUrl?: string;
755
756
  private state;
756
757
  serverLoading: () => boolean;
757
- serverData: () => EffectiveUploadConfig | undefined;
758
+ serverData: () => _praxisui_files_upload.EffectiveUploadConfig | undefined;
758
759
  serverError: () => unknown;
759
760
  get uiGroup(): FormGroup;
760
761
  get dropzoneGroup(): FormGroup;
@@ -802,6 +803,39 @@ declare class PraxisFilesUploadConfigEditor implements OnInit, SettingsValueProv
802
803
  static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilesUploadConfigEditor, "praxis-files-upload-config-editor", never, {}, {}, never, never, true, never>;
803
804
  }
804
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
+
805
839
  declare const FILES_UPLOAD_EN_US: {
806
840
  'praxis.filesUpload.editor.summary.ariaLabel': string;
807
841
  'praxis.filesUpload.editor.summary.title': string;
@@ -1465,5 +1499,7 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
1465
1499
  }
1466
1500
  declare const FILES_UPLOAD_AI_CAPABILITIES: CapabilityCatalog;
1467
1501
 
1468
- 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_COMPONENT_METADATA, PdxFilesUploadFieldComponent, PraxisFilesUpload, PraxisFilesUploadConfigEditor, PresignedUploaderService, ScanStatus, TRANSLATE_LIKE, acceptValidator, createPraxisFilesUploadI18nConfig, getPrimaryErrorItem, isErrorEnvelope, maxBulkSizeValidator, maxFileSizeValidator, maxFilesPerBulkValidator, providePraxisFilesUploadI18n, providePraxisFilesUploadMetadata, resolvePraxisFilesUploadText };
1469
- 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, PresignResponse, QuotasConfig, RateLimitConfig, RateLimitInfo, ServerMessages, TranslateLike, UploadOptions, UploadProgressEvent, UploadResponse, UploadResponseData, UploadStartEvent, ValueKind };
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 };