@tilde-nlp/ngx-menu 6.1.47 → 6.1.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/esm2022/lib/components/menu-item-link/menu-item-link.component.mjs +4 -6
- package/esm2022/lib/components/menu-item-list/menu-item-list.component.mjs +6 -6
- package/esm2022/lib/components/menu-profile/menu-profile.component.mjs +17 -20
- package/esm2022/lib/components/side-nav-menu/side-nav-menu.component.mjs +8 -5
- package/esm2022/lib/constants/user-menu-options.const.mjs +21 -1
- package/fesm2022/tilde-nlp-ngx-menu.mjs +51 -34
- package/fesm2022/tilde-nlp-ngx-menu.mjs.map +1 -1
- package/lib/components/menu-item-link/menu-item-link.component.d.ts +1 -2
- package/lib/components/menu-profile/menu-profile.component.d.ts +6 -6
- package/lib/components/side-nav-menu/side-nav-menu.component.d.ts +2 -1
- package/lib/constants/user-menu-options.const.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UserMenuOption } from '../components/side-nav-menu/models/user-menu-option.model';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
3
|
/**
|
|
3
4
|
* Prefefined user menu options, so that same style of items are used across all products. Use this by passing necessary configuration.
|
|
4
5
|
*/
|
|
@@ -11,5 +12,7 @@ export declare const USER_MENU_OPTIONS: {
|
|
|
11
12
|
isCustom: boolean;
|
|
12
13
|
}, callback?: () => void) => UserMenuOption;
|
|
13
14
|
contactUs: (href: string, callback?: () => void) => UserMenuOption;
|
|
15
|
+
/** use language update callback to save in localstorage */
|
|
16
|
+
changeLanguage: (dialog: MatDialog, languages: string[], languageChangeCallback?: (language: string) => void) => UserMenuOption;
|
|
14
17
|
logout: (callback: () => void) => UserMenuOption;
|
|
15
18
|
};
|