@messaia/cdk 20.2.1 → 20.2.3
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/fesm2022/messaia-cdk.mjs +39 -11
- package/fesm2022/messaia-cdk.mjs.map +1 -1
- package/index.d.ts +17 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3081,6 +3081,13 @@ declare class EnumMetadata {
|
|
|
3081
3081
|
* @type {boolean}
|
|
3082
3082
|
*/
|
|
3083
3083
|
hidden?: boolean;
|
|
3084
|
+
/**
|
|
3085
|
+
* @property Hide
|
|
3086
|
+
* @description An optional function that returns a boolean to conditionally hide the enum value based on runtime parameters.
|
|
3087
|
+
* For example, you can hide certain enum values depending on another enum's value.
|
|
3088
|
+
* @type {(context: any) => boolean}
|
|
3089
|
+
*/
|
|
3090
|
+
hide?: (context?: any) => boolean;
|
|
3084
3091
|
/**
|
|
3085
3092
|
* Constructor to initialize the EnumMetadata class with optional values.
|
|
3086
3093
|
* @param init An optional partial object to initialize the properties of EnumMetadata.
|
|
@@ -5982,18 +5989,23 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
|
|
|
5982
5989
|
* Loads an item by ID.
|
|
5983
5990
|
* This method fetches the item if the component is in edit mode and the service endpoint is defined.
|
|
5984
5991
|
*
|
|
5985
|
-
* @param
|
|
5986
|
-
*
|
|
5992
|
+
* @param successCallback - A function to be called after the item has been successfully loaded.
|
|
5993
|
+
* This function will receive the loaded item as an argument.
|
|
5994
|
+
* @param errorCallback - A function to be called if an error occurs during loading.
|
|
5995
|
+
* This function will receive the error as an argument.
|
|
5996
|
+
* @param headers - Optional HTTP headers to include in the request.
|
|
5987
5997
|
*/
|
|
5988
|
-
loadItem(
|
|
5998
|
+
loadItem(successCallback?: (item: {
|
|
5989
5999
|
entity: TEntity;
|
|
5990
6000
|
permissions: Permission;
|
|
5991
|
-
}) => void): void;
|
|
6001
|
+
}) => void, errorCallback?: (error: any) => void, headers?: Record<string, string>): void;
|
|
5992
6002
|
/**
|
|
5993
6003
|
* Loads an item by ID asynchronously.
|
|
6004
|
+
*
|
|
6005
|
+
* @param headers - Optional HTTP headers to include in the request.
|
|
5994
6006
|
* @returns An Observable of the loaded entity.
|
|
5995
6007
|
*/
|
|
5996
|
-
loadItemAsync(): Observable<{
|
|
6008
|
+
loadItemAsync(headers?: Record<string, string>): Observable<{
|
|
5997
6009
|
entity: TEntity;
|
|
5998
6010
|
permissions: Permission;
|
|
5999
6011
|
}>;
|