@smartbit4all/ng-client 7.3.36 → 7.3.37

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.36",
3
+ "version": "7.3.37",
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": {
@@ -1989,6 +1989,10 @@ interface FileUploaderProperties {
1989
1989
  changeAction?: UiAction;
1990
1990
  undoIcon?: ImageResource;
1991
1991
  uploadDescriptor?: UiActionUploadDescriptor;
1992
+ /**
1993
+ * Whether the editor offers the clear of the file; a page whose save needs a file sets it to false.
1994
+ */
1995
+ clearEnabled?: boolean;
1992
1996
  }
1993
1997
 
1994
1998
  /**
@@ -7393,8 +7397,15 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7393
7397
  uploadDescriptor?: UiActionUploadDescriptor;
7394
7398
  }>;
7395
7399
  fileToChange?: any;
7400
+ /**
7401
+ * The file before a clear, held for the undo until an upload, a newly written value or the end
7402
+ * of editing.
7403
+ */
7404
+ clearedFile?: any;
7396
7405
  private clone;
7397
7406
  upload(event: any): void;
7407
+ clear(): void;
7408
+ undoClear(): void;
7398
7409
  change(file: any): void;
7399
7410
  cancelChange(): void;
7400
7411
  isTypeSupported(value: any): boolean;
@@ -7413,13 +7424,18 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7413
7424
  };
7414
7425
  onChange: (value: any) => void;
7415
7426
  onTouched: () => void;
7427
+ /** The editor's disabled state: the widget's at creation, then the form control's. */
7416
7428
  isDisabled: boolean;
7417
7429
  writeValue(value: any): void;
7418
7430
  registerOnChange(fn: any): void;
7419
7431
  registerOnTouched(fn: any): void;
7420
7432
  setDisabledState?(isDisabled: boolean): void;
7433
+ /** An absent clearEnabled offers the clear, as its default in the form definition. */
7434
+ get isClearEnabled(): boolean;
7421
7435
  get fileIcon(): string;
7422
7436
  get changeButton(): UiActionDescriptor;
7437
+ /** The delete icon's own descriptor: nothing of the change or upload action, so no tooltip. */
7438
+ get deleteButton(): UiActionDescriptor;
7423
7439
  get removeButton(): UiActionDescriptor;
7424
7440
  get errorIcon(): string;
7425
7441
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileEditorComponent, never>;
@@ -7461,6 +7477,7 @@ declare class SmartMultiFileEditorComponent implements ControlValueAccessor {
7461
7477
  };
7462
7478
  onChange: (value: any) => void;
7463
7479
  onTouched: () => void;
7480
+ /** The editor's disabled state: the widget's at creation, then the form control's. */
7464
7481
  isDisabled: boolean;
7465
7482
  writeValue(value: any): void;
7466
7483
  registerOnChange(fn: any): void;
Binary file