@luigi-project/core-modular 0.0.1-dev.202601180042 → 0.0.1-dev.202601200039
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
|
@@ -76,6 +76,10 @@ export interface PathData {
|
|
|
76
76
|
export interface Node {
|
|
77
77
|
altText?: string;
|
|
78
78
|
anonymousAccess?: any;
|
|
79
|
+
badgeCounter?: {
|
|
80
|
+
count?: () => number | Promise<number>;
|
|
81
|
+
label?: string;
|
|
82
|
+
};
|
|
79
83
|
category?: any;
|
|
80
84
|
children?: Node[];
|
|
81
85
|
clientPermissions?: {
|
|
@@ -95,6 +99,7 @@ export interface Node {
|
|
|
95
99
|
openNodeInModal?: boolean;
|
|
96
100
|
pageErrorHandler?: PageErrorHandler;
|
|
97
101
|
pathSegment?: string;
|
|
102
|
+
runTimeErrorHandler?: RunTimeErrorHandler;
|
|
98
103
|
tabNav?: boolean;
|
|
99
104
|
tooltip?: string;
|
|
100
105
|
viewUrl?: string;
|
|
@@ -106,6 +111,9 @@ export interface PageErrorHandler {
|
|
|
106
111
|
redirectPath?: string;
|
|
107
112
|
errorFn?: (node?: Node) => void;
|
|
108
113
|
}
|
|
114
|
+
export interface RunTimeErrorHandler {
|
|
115
|
+
errorFn?: (error: object, node?: Node) => void;
|
|
116
|
+
}
|
|
109
117
|
export interface Category {
|
|
110
118
|
altText?: string;
|
|
111
119
|
collabsible?: boolean;
|
|
@@ -11,7 +11,9 @@ declare class ConfigHelpersClass {
|
|
|
11
11
|
* If the value is a Function it is called (with the given parameters) and the result of that call is the value.
|
|
12
12
|
* If the value is not a Promise it is wrapped to a Promise so that the returned value is definitely a Promise.
|
|
13
13
|
* @private
|
|
14
|
-
* @
|
|
14
|
+
* @param {string} property the object traversal path
|
|
15
|
+
* @param {boolean} throwError to throw an error or not
|
|
16
|
+
* @param {*} parameters optional parameters that are used if the target is a function
|
|
15
17
|
*/
|
|
16
18
|
executeConfigFnAsync(property: string, throwError?: boolean, ...parameters: any): Promise<any>;
|
|
17
19
|
}
|