@smartbit4all/ng-client 7.3.47 → 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/MIGRATION-7.0.md +30 -0
- package/fesm2022/smartbit4all-ng-client.mjs +53 -20
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-7.3.49.tgz +0 -0
- package/types/smartbit4all-ng-client.d.ts +32 -3
- package/smartbit4all-ng-client-7.3.47.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartbit4all/ng-client",
|
|
3
|
-
"version": "7.3.
|
|
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": {
|
|
Binary file
|
|
@@ -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 {
|
|
@@ -10017,6 +10034,7 @@ interface SmarttreeConfiguration {
|
|
|
10017
10034
|
}
|
|
10018
10035
|
declare class SmarttreeGenericService extends SmarttreeService<SmartTreeNode[]> implements UiActionExecutor {
|
|
10019
10036
|
protected pageName: string;
|
|
10037
|
+
private readonly resolveViewUuid?;
|
|
10020
10038
|
uiActionDescriptors: Map<string, UiActionDescriptor>;
|
|
10021
10039
|
selectedNode?: SmartTreeNode;
|
|
10022
10040
|
/**
|
|
@@ -10036,7 +10054,7 @@ declare class SmarttreeGenericService extends SmarttreeService<SmartTreeNode[]>
|
|
|
10036
10054
|
* manually (SmartComponentApiClient.createTreeService), where DI cannot fill a parameter. */
|
|
10037
10055
|
private smartConfig;
|
|
10038
10056
|
private iconService;
|
|
10039
|
-
constructor(inject: Injector, pageName: string, treeId: string);
|
|
10057
|
+
constructor(inject: Injector, pageName: string, treeId: string, resolveViewUuid?: (() => string) | undefined);
|
|
10040
10058
|
constructUiActionModels(uiActions: UiAction[]): void;
|
|
10041
10059
|
configureTree(configuration: SmarttreeConfiguration): void;
|
|
10042
10060
|
initialize(): Promise<void>;
|
|
@@ -10046,6 +10064,11 @@ declare class SmarttreeGenericService extends SmarttreeService<SmartTreeNode[]>
|
|
|
10046
10064
|
onTreeNodeClick(treeNode: SmartTreeNode): void;
|
|
10047
10065
|
selectFolder(folderUri: string, treeNode?: SmartTreeNode): Promise<void>;
|
|
10048
10066
|
isDownloadedForAnotherView(): boolean;
|
|
10067
|
+
/**
|
|
10068
|
+
* The page client hands its own view's uuid, which inside a dialog is the dialog's: the
|
|
10069
|
+
* page-name entry may point at another view of the same page.
|
|
10070
|
+
*/
|
|
10071
|
+
private viewUuid;
|
|
10049
10072
|
updateTreeOnTheFly(): Promise<void>;
|
|
10050
10073
|
syncTree(): void;
|
|
10051
10074
|
/**
|
|
@@ -10073,7 +10096,7 @@ declare class SmarttreeGenericService extends SmarttreeService<SmartTreeNode[]>
|
|
|
10073
10096
|
performNodeUiActionRequest(uiActionRequest: UiActionRequest): Promise<any>;
|
|
10074
10097
|
performMainUiActionRequest(uiActionRequest: UiActionRequest): Promise<any>;
|
|
10075
10098
|
handleSpecificDemandsAsynchronously(uiAction: UiAction, uiActionRequest: UiActionRequest): Promise<UiActionSpecificDemandResponse>;
|
|
10076
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmarttreeGenericService,
|
|
10099
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmarttreeGenericService, [null, null, null, { optional: true; }]>;
|
|
10077
10100
|
static ɵprov: i0.ɵɵInjectableDeclaration<SmarttreeGenericService>;
|
|
10078
10101
|
}
|
|
10079
10102
|
|
|
@@ -10490,6 +10513,12 @@ declare abstract class SmartComponentApiClient<T> implements UiActionExecutor {
|
|
|
10490
10513
|
setUpDefaultTree(treeId: string): void;
|
|
10491
10514
|
createTreeService(treeId: string): SmarttreeGenericService;
|
|
10492
10515
|
addFileUploader(uiActionCode: string, fileFormats?: string[], maxSizeMb?: number, isMultiple?: boolean): SmartComponentFileUploader;
|
|
10516
|
+
/**
|
|
10517
|
+
* Slot-hosted views (NORMAL/EMBEDDED) get their uuid injected at creation. DIALOG views are
|
|
10518
|
+
* not slot-hosted: they read it from the dialog data, and fall back to the pageName ->
|
|
10519
|
+
* getUuidOfPage shim only when the dialog was opened without one.
|
|
10520
|
+
*/
|
|
10521
|
+
private resolveViewUuid;
|
|
10493
10522
|
/**
|
|
10494
10523
|
* For dialog-hosted default components, the view uuid is passed through the
|
|
10495
10524
|
* dialog data (MAT_DIALOG_DATA). Returns undefined for slot-hosted
|
|
Binary file
|