@visma-swno/vsn-navigation 1.1.0 → 1.2.0-beta.10

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.
@@ -141,8 +141,9 @@ export declare class VSNNavigation extends LitElement {
141
141
  showNotification: boolean;
142
142
  /** Notification icon shows active state */
143
143
  notificationActive: boolean;
144
+ /** When true, the side bar is opened */
145
+ open: boolean;
144
146
  private _currentItem;
145
- private _sideBarOpen;
146
147
  private _resolvedModules;
147
148
  private _modulesLoading;
148
149
  private _modulesLoadToken;
@@ -161,20 +162,14 @@ export declare class VSNNavigation extends LitElement {
161
162
  /** Open the side-bar and, once rendered, focus the search field (if enabled).
162
163
  Shared by the hamburger toggle and the CTRL/Cmd+K shortcut. */
163
164
  private _openAndFocusSearch;
164
- private _onSideBarClose;
165
- /** Close the side-bar. Captures `:focus-within` BEFORE flipping the state, since
166
- the side-bar becomes display:none and the check would then always be false. */
167
165
  private _closeSideBar;
166
+ update(changed: Map<string, unknown>): void;
168
167
  updated(changed: Map<string, unknown>): void;
169
168
  connectedCallback(): void;
170
169
  disconnectedCallback(): void;
171
170
  /** CTRL+K (Cmd+K on Mac) opens the side-bar and focuses the search field (if enabled). */
172
171
  private _onShortcut;
173
- /** Escape closes the side-bar when nothing is focused. Skips when focus is on
174
- any element — including inside the side-bar's shadow (activeElement is then
175
- the host `<vsn-side-bar>`, not body), so existing in-component Escape
176
- handlers (search input clear-then-close) keep their priority. */
177
- private _onDocEscape;
172
+ private _onEscape;
178
173
  private _onTopBarClick;
179
174
  render(): TemplateResult<1>;
180
175
  }