@gandalan/weblibs 1.5.34 → 1.5.36

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.
@@ -9,7 +9,6 @@
9
9
  * @typedef {Object} BerechtigungDTO
10
10
  * @property {string} Code
11
11
  * @property {string} ErklaerungsText
12
- * @property {string} Level
13
12
  */
14
13
 
15
14
  /**
@@ -98,7 +98,9 @@
98
98
 
99
99
  /**
100
100
  * @typedef {Object} NeherApp3
101
- * @property {(menuItem: NeherApp3MenuItem) => void} addMenuItem
101
+ * @property {(menuItem: NeherApp3MenuItem) => void} addMenuItem - Adds a menu item. If an item with the same `id` already exists it is replaced.
102
+ * @property {(id: string, patch: Partial<NeherApp3MenuItem>) => boolean} updateMenuItem - Updates properties of an existing menu item by `id`. Only keys present in `patch` are changed; the `id` is preserved. Returns `true` if the item existed. Relative icon URLs are resolved against the module's base URL.
103
+ * @property {(id: string) => boolean} removeMenuItem - Removes the menu item with the given `id`. Returns `true` if an item was removed.
102
104
  * @property {(appModule: NeherApp3Module | string) => Promise<void>} addApp
103
105
  * @property {(message: string, type?: NeherApp3NotifyType, cb?: function) => void} notify - Shows a notification. Type defaults to 0 (info). Callback is optional.
104
106
  * @property {NeherApp3ApiCollection} api
package/index.d.ts CHANGED
@@ -790,7 +790,6 @@ export type BerechnungResultDTO = {
790
790
  export type BerechtigungDTO = {
791
791
  Code: string;
792
792
  ErklaerungsText: string;
793
- Level: string;
794
793
  };
795
794
 
796
795
  export type BestellungListItemDTO = BaseListItemDTO;
@@ -1961,6 +1960,8 @@ export type NachrichtenDTO = {
1961
1960
 
1962
1961
  export type NeherApp3 = {
1963
1962
  addMenuItem: (menuItem: NeherApp3MenuItem) => void;
1963
+ updateMenuItem: (id: string, patch: Partial<NeherApp3MenuItem>) => boolean;
1964
+ removeMenuItem: (id: string) => boolean;
1964
1965
  addApp: (appModule: NeherApp3Module | string) => Promise<void>;
1965
1966
  notify: (message: string, type?: NeherApp3NotifyType, cb?: Function) => void;
1966
1967
  api: NeherApp3ApiCollection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.5.34",
3
+ "version": "1.5.36",
4
4
  "description": "WebLibs for Gandalan JS/TS projects",
5
5
  "keywords": [
6
6
  "gandalan"