@ngx-smz/layout 21.1.21 → 21.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-smz/layout",
3
- "version": "21.1.21",
3
+ "version": "21.2.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -57,6 +57,13 @@
57
57
  }
58
58
  }
59
59
 
60
+ &.layout-sidebar-hidden {
61
+ .layout-main-container {
62
+ margin-left: 0;
63
+ padding-left: 2rem;
64
+ }
65
+ }
66
+
60
67
  .layout-mask {
61
68
  display: none;
62
69
  }
@@ -13,6 +13,8 @@ interface LayoutConfig {
13
13
  surface?: string | undefined | null;
14
14
  darkTheme?: boolean;
15
15
  menuMode?: string;
16
+ /** When false, the sidebar is not rendered and main content uses full width. Defaults to true. */
17
+ showSidebar?: boolean;
16
18
  }
17
19
  interface LayoutState {
18
20
  staticMenuDesktopInactive?: boolean;
@@ -129,6 +131,8 @@ interface Topbar {
129
131
  showBackButton?: boolean;
130
132
  showConfigurator?: boolean;
131
133
  showDarkModeToggle?: boolean;
134
+ /** When false, hides profile/feature menus on the right of the topbar. Defaults to visible when omitted. */
135
+ showProfileMenu?: boolean;
132
136
  logoPath?: {
133
137
  light?: string;
134
138
  dark?: string;
@@ -178,6 +182,7 @@ declare class AppLayout {
178
182
  'layout-static-inactive': boolean;
179
183
  'layout-overlay-active': boolean;
180
184
  'layout-mobile-active': boolean;
185
+ 'layout-sidebar-hidden': boolean;
181
186
  };
182
187
  ngOnDestroy(): void;
183
188
  static ɵfac: i0.ɵɵFactoryDeclaration<AppLayout, never>;