@smartbit4all/ng-client 7.3.36 → 7.3.38

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.38",
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
  /**
@@ -3276,6 +3280,10 @@ interface ValueSetData {
3276
3280
  * The name of the key property in the value. It will be the value that copied into the reference when a given item is selected from the value set.
3277
3281
  */
3278
3282
  keyProperty?: string;
3283
+ /**
3284
+ * The elements are told apart by the version of their uri: a key comparison keeps the version. Every other set ignores it.
3285
+ */
3286
+ versionedKeys?: boolean;
3279
3287
  properties: Array<PropertyDefinitionData>;
3280
3288
  /**
3281
3289
  * Optional icon code for the given value set.
@@ -7393,8 +7401,15 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7393
7401
  uploadDescriptor?: UiActionUploadDescriptor;
7394
7402
  }>;
7395
7403
  fileToChange?: any;
7404
+ /**
7405
+ * The file before a clear, held for the undo until an upload, a newly written value or the end
7406
+ * of editing.
7407
+ */
7408
+ clearedFile?: any;
7396
7409
  private clone;
7397
7410
  upload(event: any): void;
7411
+ clear(): void;
7412
+ undoClear(): void;
7398
7413
  change(file: any): void;
7399
7414
  cancelChange(): void;
7400
7415
  isTypeSupported(value: any): boolean;
@@ -7413,13 +7428,18 @@ declare class SmartFileEditorComponent implements ControlValueAccessor {
7413
7428
  };
7414
7429
  onChange: (value: any) => void;
7415
7430
  onTouched: () => void;
7431
+ /** The editor's disabled state: the widget's at creation, then the form control's. */
7416
7432
  isDisabled: boolean;
7417
7433
  writeValue(value: any): void;
7418
7434
  registerOnChange(fn: any): void;
7419
7435
  registerOnTouched(fn: any): void;
7420
7436
  setDisabledState?(isDisabled: boolean): void;
7437
+ /** An absent clearEnabled offers the clear, as its default in the form definition. */
7438
+ get isClearEnabled(): boolean;
7421
7439
  get fileIcon(): string;
7422
7440
  get changeButton(): UiActionDescriptor;
7441
+ /** The delete icon's own descriptor: nothing of the change or upload action, so no tooltip. */
7442
+ get deleteButton(): UiActionDescriptor;
7423
7443
  get removeButton(): UiActionDescriptor;
7424
7444
  get errorIcon(): string;
7425
7445
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartFileEditorComponent, never>;
@@ -7461,6 +7481,7 @@ declare class SmartMultiFileEditorComponent implements ControlValueAccessor {
7461
7481
  };
7462
7482
  onChange: (value: any) => void;
7463
7483
  onTouched: () => void;
7484
+ /** The editor's disabled state: the widget's at creation, then the form control's. */
7464
7485
  isDisabled: boolean;
7465
7486
  writeValue(value: any): void;
7466
7487
  registerOnChange(fn: any): void;
Binary file