@tilde-nlp/ngx-menu 8.1.13 → 8.1.15
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 +114 -95
- package/fesm2022/tilde-nlp-ngx-menu.mjs.map +1 -1
- package/index.d.ts +17 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as i21 from '@tilde-nlp/ngx-common';
|
|
|
6
6
|
import { PlausibleEvent, IconService, DOMService } from '@tilde-nlp/ngx-common';
|
|
7
7
|
import { StrapiSubscriptionService, StrapiApiConfig, StrapiLinkService, PlaceholderComponentBase, StrapiVariablesService } from '@tilde-nlp/ngx-strapi';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
|
-
import { Observable, Subscription } from 'rxjs';
|
|
9
|
+
import { Observable, Subscription, Subject } from 'rxjs';
|
|
10
10
|
import * as i12 from '@angular/router';
|
|
11
11
|
import { IsActiveMatchOptions, Router } from '@angular/router';
|
|
12
12
|
import * as _tilde_nlp_ngx_menu from '@tilde-nlp/ngx-menu';
|
|
@@ -236,11 +236,22 @@ declare class NavBaseComponent implements OnInit, OnDestroy {
|
|
|
236
236
|
static ɵcmp: i0.ɵɵComponentDeclaration<NavBaseComponent, "nav-base", never, { "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, false, never>;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
declare class MenuAccessibilityService {
|
|
240
|
+
readonly fontSizeLocalStorageKey = "ACCESSIBILITY_FONT_SIZE_IX";
|
|
241
|
+
sizeIncreaseSubject: Subject<boolean>;
|
|
242
|
+
getSavedFontSize(): number;
|
|
243
|
+
saveFontSize(ix: number): void;
|
|
244
|
+
setFontSize(fontSizeIx: number): void;
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuAccessibilityService, never>;
|
|
246
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MenuAccessibilityService>;
|
|
247
|
+
}
|
|
248
|
+
|
|
239
249
|
declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, OnDestroy {
|
|
240
250
|
#private;
|
|
241
251
|
strapiLinkService: StrapiLinkService;
|
|
242
252
|
readonly domService: DOMService;
|
|
243
253
|
readonly menuItems: MenuItemsService;
|
|
254
|
+
readonly accessibility: MenuAccessibilityService;
|
|
244
255
|
get username(): string | undefined;
|
|
245
256
|
set username(value: string | undefined);
|
|
246
257
|
menuSettings: SideNavSettings;
|
|
@@ -262,13 +273,16 @@ declare class SideNavMenuComponent extends NavBaseComponent implements OnInit, O
|
|
|
262
273
|
get menuLogoImage(): string;
|
|
263
274
|
get sideNavWidth(): string | undefined;
|
|
264
275
|
get footerItems(): _tilde_nlp_strapi_models.MenuItem[];
|
|
265
|
-
|
|
276
|
+
isViewIncreased: boolean;
|
|
277
|
+
isMobileRes: boolean;
|
|
278
|
+
constructor(strapiLinkService: StrapiLinkService, domService: DOMService, menuItems: MenuItemsService, accessibility: MenuAccessibilityService);
|
|
266
279
|
ngOnInit(): void;
|
|
267
280
|
login(): void;
|
|
268
281
|
logoClick(event: MouseEvent): void;
|
|
269
282
|
toggleCollapse(): void;
|
|
270
283
|
linkCallback(link: UserMenuOptionLink): void;
|
|
271
284
|
changeLanguage(lang: string): void;
|
|
285
|
+
private watchAccessibilityChanges;
|
|
272
286
|
private getColapsedFromLocalStorage;
|
|
273
287
|
private setColapsedFromLocalStorage;
|
|
274
288
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavMenuComponent, never>;
|
|
@@ -444,5 +458,5 @@ declare const USER_MENU_OPTIONS: {
|
|
|
444
458
|
login: (callback: () => void) => UserMenuOption;
|
|
445
459
|
};
|
|
446
460
|
|
|
447
|
-
export { MENU_ICON_STRAPI_EXTENSION, MENU_SHARED_CONFIG, MENU_VERSION, MenuColumnsComponent, MenuItemsService, MenuLayoutDirection, MenuModule, NavBaseComponent, SideNavMenuComponent, StarpiMenuService, StrapiDataLocation, USER_MENU_OPTIONS };
|
|
461
|
+
export { MENU_ICON_STRAPI_EXTENSION, MENU_SHARED_CONFIG, MENU_VERSION, MenuAccessibilityService, MenuColumnsComponent, MenuItemsService, MenuLayoutDirection, MenuModule, NavBaseComponent, SideNavMenuComponent, StarpiMenuService, StrapiDataLocation, USER_MENU_OPTIONS };
|
|
448
462
|
export type { ActiveMenuItemConfig, ActiveMenuItems, CustomMenuItem, MenuItemGroup, MenuItemGroupBase, MenuSharedConfig, SideNavSettings, UserMenuOption };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tilde-nlp/ngx-menu",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.15",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.0.0",
|
|
6
6
|
"@angular/core": "^20.0.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@angular/router": "^20.0.0",
|
|
10
10
|
"@ngx-translate/core": "^17.0.0",
|
|
11
11
|
"@ngx-translate/http-loader": "^17.0.0",
|
|
12
|
-
"@tilde-nlp/ngx-common": "~8.
|
|
12
|
+
"@tilde-nlp/ngx-common": "~8.1.0",
|
|
13
13
|
"@tilde-nlp/ngx-strapi": "^8.1.0",
|
|
14
14
|
"@tilde-nlp/strapi-models": "^2.x"
|
|
15
15
|
},
|