@neuravision/ng-construct 0.3.6 → 0.4.2

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.3.6",
3
+ "version": "0.4.2",
4
4
  "description": "Angular components for the Construct Design System",
5
5
  "keywords": [
6
6
  "angular",
@@ -979,6 +979,49 @@ declare class AfTabsComponent {
979
979
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AfTabsComponent, "af-tabs", never, { "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; }, ["panels"], ["*"], true, never>;
980
980
  }
981
981
 
982
+ interface AfNavTab {
983
+ /** Unique identifier for the tab. */
984
+ id: string;
985
+ /** Display label. */
986
+ label: string;
987
+ /** Angular Router link for navigation. */
988
+ routerLink: string | string[];
989
+ /** Disables the tab. */
990
+ disabled?: boolean;
991
+ }
992
+ type AfNavTabsVariant = 'default' | 'pill';
993
+ type AfNavTabsSize = 'sm' | 'md' | 'lg';
994
+ /**
995
+ * Router-based tab navigation component.
996
+ *
997
+ * Uses the `ct-tabs` CSS classes from the Construct Design System but renders
998
+ * `<a routerLink>` elements for navigation. Active state is determined
999
+ * automatically via `routerLinkActive`.
1000
+ *
1001
+ * For content-panel tabs (show/hide content without routing), use `<af-tabs>` instead.
1002
+ *
1003
+ * @example
1004
+ * <af-nav-tabs
1005
+ * [tabs]="[
1006
+ * { id: 'my', label: 'My Documents', routerLink: '/documents/my' },
1007
+ * { id: 'all', label: 'All Documents', routerLink: '/documents/all' }
1008
+ * ]">
1009
+ * </af-nav-tabs>
1010
+ */
1011
+ declare class AfNavTabsComponent {
1012
+ /** Tab items to render. */
1013
+ tabs: _angular_core.InputSignal<AfNavTab[]>;
1014
+ /** Visual variant. `'pill'` renders pill-shaped tabs with background. */
1015
+ variant: _angular_core.InputSignal<AfNavTabsVariant>;
1016
+ /** Size variant. */
1017
+ size: _angular_core.InputSignal<AfNavTabsSize>;
1018
+ /** Accessible label for the tab navigation. */
1019
+ ariaLabel: _angular_core.InputSignal<string>;
1020
+ containerClasses: _angular_core.Signal<string>;
1021
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AfNavTabsComponent, never>;
1022
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AfNavTabsComponent, "af-nav-tabs", never, { "tabs": { "alias": "tabs"; "required": true; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1023
+ }
1024
+
982
1025
  interface AfDropdownItem {
983
1026
  label: string;
984
1027
  value: unknown;
@@ -1080,13 +1123,24 @@ declare class AfPaginationComponent {
1080
1123
 
1081
1124
  interface AfBreadcrumb {
1082
1125
  label: string;
1126
+ /** Angular Router link for SPA navigation (preferred for internal routes). */
1127
+ routerLink?: string | string[];
1128
+ /** Plain HTML href for external links. Causes a full page reload. */
1083
1129
  url?: string;
1084
1130
  }
1085
1131
  /**
1086
- * Breadcrumbs navigation component
1132
+ * Breadcrumbs navigation component with Angular Router support.
1133
+ *
1134
+ * Items with `routerLink` navigate via the Angular Router (no page reload).
1135
+ * Items with `url` render a plain `<a href>` (for external links).
1136
+ * The last item is always rendered as static text (current page).
1087
1137
  *
1088
1138
  * @example
1089
- * <af-breadcrumbs [items]="breadcrumbs"></af-breadcrumbs>
1139
+ * <af-breadcrumbs [items]="[
1140
+ * { label: 'Home', routerLink: '/' },
1141
+ * { label: 'Documents', routerLink: '/documents' },
1142
+ * { label: 'My Documents' }
1143
+ * ]"></af-breadcrumbs>
1090
1144
  */
1091
1145
  declare class AfBreadcrumbsComponent {
1092
1146
  /** Breadcrumb items */
@@ -1168,6 +1222,57 @@ declare class AfDatepickerComponent implements ControlValueAccessor {
1168
1222
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AfDatepickerComponent, "af-datepicker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "dateChange": "dateChange"; }, never, never, true, never>;
1169
1223
  }
1170
1224
 
1225
+ type AfChipVariant = 'default' | 'info' | 'success' | 'warning' | 'danger';
1226
+ type AfChipAppearance = 'subtle' | 'outline' | 'solid';
1227
+ type AfChipSize = 'sm' | 'md' | 'lg';
1228
+ /**
1229
+ * Chip component for labels, tags, statuses, and interactive filters.
1230
+ *
1231
+ * @example Static chip
1232
+ * <af-chip variant="success" size="sm">Resolved</af-chip>
1233
+ *
1234
+ * @example Toggle chip with two-way binding
1235
+ * <af-chip selectable [(selected)]="isActive">Filter</af-chip>
1236
+ *
1237
+ * @example Removable chip
1238
+ * <af-chip removable (removed)="onRemove()">Status: Active</af-chip>
1239
+ */
1240
+ declare class AfChipComponent {
1241
+ /** Semantic color variant. */
1242
+ variant: _angular_core.InputSignal<AfChipVariant>;
1243
+ /** Visual style: subtle (filled background), outline, or solid. */
1244
+ appearance: _angular_core.InputSignal<AfChipAppearance>;
1245
+ /** Size of the chip. */
1246
+ size: _angular_core.InputSignal<AfChipSize>;
1247
+ /** Opaque value for identifying this chip in lists or groups. */
1248
+ value: _angular_core.InputSignal<unknown>;
1249
+ /** Enables toggle behavior with hover, active, focus styles, and keyboard support. */
1250
+ selectable: _angular_core.InputSignalWithTransform<boolean, unknown>;
1251
+ /** Selected state for toggle chips. Supports two-way binding via `[(selected)]`. */
1252
+ selected: _angular_core.ModelSignal<boolean>;
1253
+ /** Disables the chip, preventing all interaction. */
1254
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
1255
+ /** Shows a remove button inside the chip. */
1256
+ removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
1257
+ /** Shows a dot status indicator instead of an icon. */
1258
+ dot: _angular_core.InputSignalWithTransform<boolean, unknown>;
1259
+ /** Accessible label for icon-only or truncated chips. */
1260
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
1261
+ /** Accessible label for the remove button. Should be localized by the consumer. */
1262
+ removeAriaLabel: _angular_core.InputSignal<string>;
1263
+ /** Emits the chip's `value` when the remove button is clicked or Delete/Backspace is pressed. */
1264
+ removed: _angular_core.OutputEmitterRef<unknown>;
1265
+ chipRole: _angular_core.Signal<"button" | "group" | null>;
1266
+ iconClasses: _angular_core.Signal<string>;
1267
+ chipClasses: _angular_core.Signal<string>;
1268
+ handleClick(): void;
1269
+ handleKeydown(event: Event): void;
1270
+ handleRemoveKeydown(event: Event): void;
1271
+ handleRemove(event: MouseEvent): void;
1272
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AfChipComponent, never>;
1273
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AfChipComponent, "af-chip", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "removeAriaLabel": { "alias": "removeAriaLabel"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "removed": "removed"; }, never, ["[chipAvatar]", "af-icon,[chipIcon]", "*"], true, never>;
1274
+ }
1275
+
1171
1276
  /**
1172
1277
  * Chip input component for managing a list of string values.
1173
1278
  *
@@ -2390,5 +2495,5 @@ declare class AfFormatLabelPipe implements PipeTransform {
2390
2495
  static ɵpipe: _angular_core.ɵɵPipeDeclaration<AfFormatLabelPipe, "afFormatLabel", true>;
2391
2496
  }
2392
2497
 
2393
- export { AfAccordionComponent, AfAccordionItemComponent, AfAlertComponent, AfAppShellComponent, AfAppShellPageHeaderComponent, AfAppShellV2Component, AfAppShellV2ToolbarComponent, AfAvatarComponent, AfBadgeComponent, AfBannerComponent, AfBreadcrumbsComponent, AfButtonComponent, AfCardComponent, AfCellDefDirective, AfCheckboxComponent, AfChipInputComponent, AfComboboxComponent, AfDataTableComponent, AfDatepickerComponent, AfDividerComponent, AfDrawerComponent, AfDropdownComponent, AfEmptyStateComponent, AfFieldComponent, AfFileUploadComponent, AfFormatLabelPipe, AfIconComponent, AfInputComponent, AfModalComponent, AfNavItemComponent, AfNavbarComponent, AfPaginationComponent, AfPopoverComponent, AfPopoverTriggerDirective, AfProgressBarComponent, AfRadioComponent, AfRadioGroupComponent, AfSelectComponent, AfSelectMenuComponent, AfSidebarComponent, AfSkeletonComponent, AfSkipLinkComponent, AfSliderComponent, AfSpinnerComponent, AfSwitchComponent, AfTabPanelComponent, AfTableBodyComponent, AfTableCellComponent, AfTableComponent, AfTableHeaderCellComponent, AfTableHeaderComponent, AfTableRowComponent, AfTabsComponent, AfTextareaComponent, AfToastContainerComponent, AfToastService, AfToggleGroupComponent, AfToolbarComponent, AfTooltipDirective };
2394
- export type { AfAlertVariant, AfAvatarSize, AfAvatarStatus, AfBadgeVariant, AfBannerAppearance, AfBannerPosition, AfBannerVariant, AfBreadcrumb, AfButtonSize, AfButtonType, AfButtonVariant, AfCardElevation, AfCardPadding, AfColumn, AfComboboxOption, AfDataRow, AfDataTableConfig, AfDividerColor, AfDividerOrientation, AfDividerSpacing, AfDrawerPosition, AfDrawerSize, AfDropdownItem, AfEmptyStateSize, AfEmptyStateVariant, AfFileEntry, AfFileValidationError, AfIconSize, AfInputType, AfNavbarSize, AfNavbarVariant, AfPopoverAlign, AfPopoverPosition, AfPopoverSize, AfProgressBarSize, AfProgressBarVariant, AfSelectMenuOption, AfSelectOption, AfShellPanelState, AfShellSidebarState, AfSidebarMode, AfSkeletonVariant, AfSliderSize, AfSortDirection, AfSortState, AfSpinnerSize, AfTab, AfTableCellType, AfTableVariant, AfToast, AfToastVariant, AfToggleGroupSize, AfToggleItem, AfTooltipPosition };
2498
+ export { AfAccordionComponent, AfAccordionItemComponent, AfAlertComponent, AfAppShellComponent, AfAppShellPageHeaderComponent, AfAppShellV2Component, AfAppShellV2ToolbarComponent, AfAvatarComponent, AfBadgeComponent, AfBannerComponent, AfBreadcrumbsComponent, AfButtonComponent, AfCardComponent, AfCellDefDirective, AfCheckboxComponent, AfChipComponent, AfChipInputComponent, AfComboboxComponent, AfDataTableComponent, AfDatepickerComponent, AfDividerComponent, AfDrawerComponent, AfDropdownComponent, AfEmptyStateComponent, AfFieldComponent, AfFileUploadComponent, AfFormatLabelPipe, AfIconComponent, AfInputComponent, AfModalComponent, AfNavItemComponent, AfNavTabsComponent, AfNavbarComponent, AfPaginationComponent, AfPopoverComponent, AfPopoverTriggerDirective, AfProgressBarComponent, AfRadioComponent, AfRadioGroupComponent, AfSelectComponent, AfSelectMenuComponent, AfSidebarComponent, AfSkeletonComponent, AfSkipLinkComponent, AfSliderComponent, AfSpinnerComponent, AfSwitchComponent, AfTabPanelComponent, AfTableBodyComponent, AfTableCellComponent, AfTableComponent, AfTableHeaderCellComponent, AfTableHeaderComponent, AfTableRowComponent, AfTabsComponent, AfTextareaComponent, AfToastContainerComponent, AfToastService, AfToggleGroupComponent, AfToolbarComponent, AfTooltipDirective };
2499
+ export type { AfAlertVariant, AfAvatarSize, AfAvatarStatus, AfBadgeVariant, AfBannerAppearance, AfBannerPosition, AfBannerVariant, AfBreadcrumb, AfButtonSize, AfButtonType, AfButtonVariant, AfCardElevation, AfCardPadding, AfChipAppearance, AfChipSize, AfChipVariant, AfColumn, AfComboboxOption, AfDataRow, AfDataTableConfig, AfDividerColor, AfDividerOrientation, AfDividerSpacing, AfDrawerPosition, AfDrawerSize, AfDropdownItem, AfEmptyStateSize, AfEmptyStateVariant, AfFileEntry, AfFileValidationError, AfIconSize, AfInputType, AfNavTab, AfNavTabsSize, AfNavTabsVariant, AfNavbarSize, AfNavbarVariant, AfPopoverAlign, AfPopoverPosition, AfPopoverSize, AfProgressBarSize, AfProgressBarVariant, AfSelectMenuOption, AfSelectOption, AfShellPanelState, AfShellSidebarState, AfSidebarMode, AfSkeletonVariant, AfSliderSize, AfSortDirection, AfSortState, AfSpinnerSize, AfTab, AfTableCellType, AfTableVariant, AfToast, AfToastVariant, AfToggleGroupSize, AfToggleItem, AfTooltipPosition };