@smartbit4all/ng-client 7.3.48 → 7.3.49

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "7.3.48",
3
+ "version": "7.3.49",
4
4
  "description": "Angular client library for the smartbit4all platform — a server-driven UI framework that renders views, pages, forms, grids, trees and dialogs from backend (ViewApi/PageApi) definitions. Provides reactive view-context state management, dynamic component layouts and OpenAPI-generated BFF clients.",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -2131,6 +2131,14 @@ declare enum FileUploaderThumbnail {
2131
2131
  interface FileUploaderProperties {
2132
2132
  uploadAction?: UiAction;
2133
2133
  changeAction?: UiAction;
2134
+ /**
2135
+ * The action the editor sends after the clear of the file, with the model whose field is already null; absent = the clear stays on the client.
2136
+ */
2137
+ clearAction?: UiAction;
2138
+ /**
2139
+ * The action the editor sends after the undo of a clear, with the model holding the file again; absent = the undo stays on the client.
2140
+ */
2141
+ undoClearAction?: UiAction;
2134
2142
  undoIcon?: ImageResource;
2135
2143
  uploadDescriptor?: UiActionUploadDescriptor;
2136
2144
  /**
@@ -7618,6 +7626,13 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7618
7626
  uiAction: UiAction;
7619
7627
  uploadDescriptor?: UiActionUploadDescriptor;
7620
7628
  }>;
7629
+ /**
7630
+ * The clear and undo-clear actions of the widget, sent by the smart form like the multi-file
7631
+ * editor's actions.
7632
+ */
7633
+ readonly fileEvent: i0.OutputEmitterRef<{
7634
+ uiAction: UiAction;
7635
+ }>;
7621
7636
  fileToChange?: any;
7622
7637
  /**
7623
7638
  * The file before a clear, held for the undo until an upload, a newly written value or the end
@@ -7630,6 +7645,8 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7630
7645
  upload(event: any): void;
7631
7646
  clear(): void;
7632
7647
  undoClear(): void;
7648
+ /** Sends the action, if the page set one, with the model and the widget's key as its path. */
7649
+ private emitFileAction;
7633
7650
  change(file: any): void;
7634
7651
  cancelChange(): void;
7635
7652
  isTypeSupported(value: any): boolean;
@@ -7665,7 +7682,7 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7665
7682
  get removeButton(): UiActionDescriptor;
7666
7683
  get errorIcon(): string;
7667
7684
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileEditorComponent, never>;
7668
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartFileEditorComponent, "smart-file-editor", never, { "widgetInstance": { "alias": "widgetInstance"; "required": false; }; }, { "uploadFilesEvent": "uploadFilesEvent"; }, never, never, true, never>;
7685
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartFileEditorComponent, "smart-file-editor", never, { "widgetInstance": { "alias": "widgetInstance"; "required": false; }; }, { "uploadFilesEvent": "uploadFilesEvent"; "fileEvent": "fileEvent"; }, never, never, true, never>;
7669
7686
  }
7670
7687
 
7671
7688
  declare class SmartMultiFileEditorComponent implements ControlValueAccessor {
Binary file