@tilde-nlp/ngx-menu 8.1.55 → 8.1.57
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/tilde-nlp-ngx-menu.mjs +166 -114
- package/fesm2022/tilde-nlp-ngx-menu.mjs.map +1 -1
- package/index.d.ts +16 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -26,6 +26,17 @@ declare enum MENU_VERSION {
|
|
|
26
26
|
COMPACT = "compact-menu"
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Interface for custom icons for sidebar top icon button action.
|
|
31
|
+
* Support only material icons
|
|
32
|
+
*/
|
|
33
|
+
interface CustomIcons {
|
|
34
|
+
customOpenIcon?: string;
|
|
35
|
+
customCloseIcon?: string;
|
|
36
|
+
customMobileCloseIcon?: string;
|
|
37
|
+
customMobileOpenIcon?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
29
40
|
interface UserMenuOptionIcon {
|
|
30
41
|
name?: string;
|
|
31
42
|
isCustom?: boolean;
|
|
@@ -63,6 +74,7 @@ interface SideNavSettings {
|
|
|
63
74
|
openExternalLinksInSameTab?: boolean;
|
|
64
75
|
showAccessibility?: boolean;
|
|
65
76
|
menuVersion?: MENU_VERSION;
|
|
77
|
+
customIcons?: CustomIcons;
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
declare enum MenuLayoutDirection {
|
|
@@ -128,6 +140,8 @@ interface MenuItemGroupBase {
|
|
|
128
140
|
isItemGroupActive?: () => boolean;
|
|
129
141
|
/** Set to true if icon is registered as svg through icon service */
|
|
130
142
|
isCustomItemGroupIcon?: boolean;
|
|
143
|
+
/** Provide if menu should display description block. Description block uses title and description params. */
|
|
144
|
+
description?: string;
|
|
131
145
|
}
|
|
132
146
|
|
|
133
147
|
/** Necessary for menu components to determine where loaded data from strapi should be placed - either in front of pre defined items or in end. */
|
|
@@ -254,6 +268,7 @@ declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, O
|
|
|
254
268
|
loginEvent: EventEmitter<any>;
|
|
255
269
|
userInitials: string;
|
|
256
270
|
collapsed: boolean;
|
|
271
|
+
customIcons: CustomIcons;
|
|
257
272
|
readonly COLLAPSED_LOCAL_STORAGE_KEY = "TLD_MENU_SIDE_NAV_COLLAPSED";
|
|
258
273
|
private readonly COLLAPSE_PLAUSIBLE_EVENT_ID;
|
|
259
274
|
private readonly COLLAPSE_PLAUSIBLE_ACTION_KEY;
|
|
@@ -276,6 +291,7 @@ declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, O
|
|
|
276
291
|
changeLanguage(lang: string): void;
|
|
277
292
|
private getColapsedFromLocalStorage;
|
|
278
293
|
private setColapsedFromLocalStorage;
|
|
294
|
+
private setIcons;
|
|
279
295
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavMenuComponent, never>;
|
|
280
296
|
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavMenuComponent, "lib-side-nav-menu", never, { "username": { "alias": "username"; "required": false; }; "menuSettings": { "alias": "menuSettings"; "required": false; }; "productName": { "alias": "productName"; "required": false; }; "supportedLanguages": { "alias": "supportedLanguages"; "required": false; }; "useDefaultLanguageSwitcher": { "alias": "useDefaultLanguageSwitcher"; "required": false; }; }, { "changeLanguageEvent": "changeLanguageEvent"; "loginEvent": "loginEvent"; }, never, ["*"], false, never>;
|
|
281
297
|
}
|