@neuravision/ng-construct 0.2.0 → 0.3.1

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": "@neuravision/ng-construct",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Angular components for the Construct Design System",
5
5
  "keywords": [
6
6
  "angular",
@@ -11,6 +11,7 @@
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^21.1.0",
13
13
  "@angular/core": "^21.1.0",
14
+ "@angular/router": "^21.1.0",
14
15
  "@neuravision/construct": "^1.0.0"
15
16
  },
16
17
  "dependencies": {
@@ -1689,17 +1689,25 @@ declare class AfSelectMenuComponent implements ControlValueAccessor {
1689
1689
  type AfNavbarSize = 'sm' | 'md' | 'lg';
1690
1690
  type AfNavbarVariant = 'default' | 'sticky' | 'fixed' | 'elevated' | 'transparent' | 'dark' | 'bordered';
1691
1691
  /**
1692
- * Individual navigation item used within af-navbar.
1692
+ * Individual navigation item used within af-navbar or af-toolbar.
1693
+ *
1694
+ * Supports Angular Router via `routerLink`, standard links via `href`,
1695
+ * and button mode when neither is provided. Content projection allows
1696
+ * icons and custom markup inside the link.
1693
1697
  *
1694
1698
  * @example
1695
- * <af-nav-item label="Dashboard" href="/dashboard" [active]="true" />
1699
+ * <af-nav-item label="Dashboard" routerLink="/dashboard">
1700
+ * <af-icon name="dashboard" /> Dashboard
1701
+ * </af-nav-item>
1696
1702
  */
1697
1703
  declare class AfNavItemComponent {
1698
- /** Text label for the navigation item. */
1704
+ /** Text label shown as fallback when no content is projected. Also used by the mobile menu. */
1699
1705
  label: _angular_core.InputSignal<string>;
1700
1706
  /** URL for the navigation link. Renders as `<a>` when provided, `<button>` otherwise. */
1701
1707
  href: _angular_core.InputSignal<string>;
1702
- /** Marks this item as the currently active page. */
1708
+ /** Angular Router link. Renders as `<a>` with routerLink and auto-active detection. */
1709
+ routerLink: _angular_core.InputSignal<string | string[] | null>;
1710
+ /** Marks this item as the currently active page (used for href/button mode, routerLink auto-detects). */
1703
1711
  active: _angular_core.InputSignalWithTransform<boolean, unknown>;
1704
1712
  /** Disables interaction with this item. */
1705
1713
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
@@ -1712,7 +1720,7 @@ declare class AfNavItemComponent {
1712
1720
  focusLink(): void;
1713
1721
  onClick(event: MouseEvent): void;
1714
1722
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AfNavItemComponent, never>;
1715
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AfNavItemComponent, "af-nav-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1723
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AfNavItemComponent, "af-nav-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*", "*", "*"], true, never>;
1716
1724
  }
1717
1725
  /**
1718
1726
  * Responsive navbar with mobile menu, keyboard navigation, and ARIA landmarks.
@@ -1720,8 +1728,10 @@ declare class AfNavItemComponent {
1720
1728
  * @example
1721
1729
  * <af-navbar ariaLabel="Main navigation">
1722
1730
  * <a brand class="ct-navbar__brand" href="/">My App</a>
1723
- * <af-nav-item label="Dashboard" href="/dashboard" [active]="true" />
1724
- * <af-nav-item label="Settings" href="/settings" />
1731
+ * <af-nav-item label="Dashboard" routerLink="/dashboard">
1732
+ * <af-icon name="dashboard" /> Dashboard
1733
+ * </af-nav-item>
1734
+ * <af-nav-item label="Settings" routerLink="/settings" />
1725
1735
  * <button actions class="ct-button">Profile</button>
1726
1736
  * </af-navbar>
1727
1737
  */