@posiwise/dashboard-module 0.0.152 → 0.0.154

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": "@posiwise/dashboard-module",
3
- "version": "0.0.152",
3
+ "version": "0.0.154",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0"
@@ -18,6 +18,7 @@ import * as i12 from "@angular/router";
18
18
  import { ActivatedRoute } from "@angular/router";
19
19
  import * as i19 from "primeng/tooltip";
20
20
  import * as i20 from "@posiwise/shared-components";
21
+ import { Observable, Subscription } from "rxjs";
21
22
  declare namespace documentation_view_component_d_exports {
22
23
  export { DocumentationComponent };
23
24
  }
@@ -376,6 +377,7 @@ export interface RouteInfo {
376
377
  permission: string;
377
378
  path: string;
378
379
  title: string;
380
+ titleKey?: string;
379
381
  icon: string;
380
382
  class: string;
381
383
  badge: string;
@@ -423,4 +425,20 @@ declare const COMMON_MENUS: {
423
425
  ENTERPRISE_MENU: RouteInfo;
424
426
  CHAT_MENU: RouteInfo;
425
427
  BLOG_MENU: RouteInfo;
426
- };
428
+ };
429
+ /**
430
+ * Opens every `has-sub` group around the active sidebar item and scrolls the sidebar
431
+ * until the item is visible. app-sidebar.js opens the group too, but only once jQuery
432
+ * is in, which on a direct load can be 10+ seconds away, and nothing scrolled: a long
433
+ * menu (super admin) left the active item below the fold. Additive only — it never
434
+ * collapses, so it cannot fight jQuery's toggle.
435
+ *
436
+ * Shared so every frontend's sidebar behaves the same on a cold load
437
+ * (posiwise-frontend#4205).
438
+ */
439
+ export declare function openActiveGroup(doc: Document): void;
440
+ /**
441
+ * Re-opens the active item's group after every navigation, once the new
442
+ * `routerLinkActive` classes have rendered.
443
+ */
444
+ export declare function watchActiveGroup(doc: Document, routerEvents$: Observable<unknown>): Subscription;