ngx-vector-components 0.0.11 → 0.0.12
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/esm2020/lib/components/menu/menu.component.mjs +23 -20
- package/fesm2015/ngx-vector-components.mjs +22 -19
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +22 -19
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/menu/menu.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2383,6 +2383,28 @@ class MenuComponent {
|
|
|
2383
2383
|
this.onFinishMenuOptionsConfig = new EventEmitter();
|
|
2384
2384
|
this._opened = true;
|
|
2385
2385
|
this.subscription = new Subscription();
|
|
2386
|
+
this.currentWindowWidth = 0;
|
|
2387
|
+
}
|
|
2388
|
+
set opened(opened) {
|
|
2389
|
+
this._opened = opened;
|
|
2390
|
+
this.menuService.menuOpened$.next(this.opened);
|
|
2391
|
+
}
|
|
2392
|
+
get opened() {
|
|
2393
|
+
return this._opened;
|
|
2394
|
+
}
|
|
2395
|
+
get hasFintechAdminPermission() {
|
|
2396
|
+
return this.profileService.hasFintechAdminPermission;
|
|
2397
|
+
}
|
|
2398
|
+
get hasMarketplaceAdminPermission() {
|
|
2399
|
+
return this.profileService.hasMarketplaceAdminPermission;
|
|
2400
|
+
}
|
|
2401
|
+
get hasAnyMarketplacePermission() {
|
|
2402
|
+
return this.profileService.hasAnyMarketplacePermission;
|
|
2403
|
+
}
|
|
2404
|
+
get hasAnyFintechPermission() {
|
|
2405
|
+
return this.profileService.hasAnyFintechPermission;
|
|
2406
|
+
}
|
|
2407
|
+
ngOnInit() {
|
|
2386
2408
|
this.subscription.add(this.menuService.toggleMenu$.subscribe(() => {
|
|
2387
2409
|
this.toggleMenu();
|
|
2388
2410
|
}));
|
|
@@ -2426,25 +2448,6 @@ class MenuComponent {
|
|
|
2426
2448
|
}));
|
|
2427
2449
|
this.currentWindowWidth = window.innerWidth;
|
|
2428
2450
|
}
|
|
2429
|
-
set opened(opened) {
|
|
2430
|
-
this._opened = opened;
|
|
2431
|
-
this.menuService.menuOpened$.next(this.opened);
|
|
2432
|
-
}
|
|
2433
|
-
get opened() {
|
|
2434
|
-
return this._opened;
|
|
2435
|
-
}
|
|
2436
|
-
get hasFintechAdminPermission() {
|
|
2437
|
-
return this.profileService.hasFintechAdminPermission;
|
|
2438
|
-
}
|
|
2439
|
-
get hasMarketplaceAdminPermission() {
|
|
2440
|
-
return this.profileService.hasMarketplaceAdminPermission;
|
|
2441
|
-
}
|
|
2442
|
-
get hasAnyMarketplacePermission() {
|
|
2443
|
-
return this.profileService.hasAnyMarketplacePermission;
|
|
2444
|
-
}
|
|
2445
|
-
get hasAnyFintechPermission() {
|
|
2446
|
-
return this.profileService.hasAnyFintechPermission;
|
|
2447
|
-
}
|
|
2448
2451
|
onResize() {
|
|
2449
2452
|
if (this.opened && this.currentWindowWidth !== window.innerWidth) {
|
|
2450
2453
|
this.clearAndCloseMenu();
|