@life-cockpit/angular-ui-kit 1.1.0 → 1.1.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": "@life-cockpit/angular-ui-kit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Life Cockpit Design System - Angular UI component library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -611,6 +611,11 @@ declare class MenuComponent {
611
611
  * @default 'bottom-right'
612
612
  */
613
613
  position: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
614
+ /**
615
+ * Size of menu items
616
+ * @default 'md'
617
+ */
618
+ size: 'sm' | 'md' | 'lg';
614
619
  /**
615
620
  * Minimum width of menu dropdown
616
621
  * @default '220px'
@@ -642,7 +647,7 @@ declare class MenuComponent {
642
647
  */
643
648
  onEscapeKey(): void;
644
649
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuComponent, never>;
645
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuComponent, "lc-menu", never, { "items": { "alias": "items"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "position": { "alias": "position"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "itemClick": "itemClick"; "closed": "closed"; }, never, ["[trigger]", "[header]", "[footer]"], true, never>;
650
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuComponent, "lc-menu", never, { "items": { "alias": "items"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "position": { "alias": "position"; "required": false; }; "size": { "alias": "size"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "itemClick": "itemClick"; "closed": "closed"; }, never, ["[trigger]", "[header]", "[footer]"], true, never>;
646
651
  }
647
652
 
648
653
  /**
@@ -1820,11 +1825,13 @@ declare class EmailInputComponent implements ControlValueAccessor {
1820
1825
 
1821
1826
  type HeroColor = 'primary' | 'secondary' | 'neutral' | 'success' | 'info' | 'warning' | 'accent-orange' | 'accent-purple' | 'accent-violet';
1822
1827
  type HeroSize = 'sm' | 'md' | 'lg';
1828
+ type HeroVariant = 'default' | 'slim' | 'light';
1823
1829
  /**
1824
1830
  * Hero component for prominent page headers with gradient backgrounds.
1825
1831
  *
1826
1832
  * Features:
1827
- * - Color gradient variants (primary, secondary, success, warning, error, neutral)
1833
+ * - Color gradient variants (primary, secondary, success, warning, info, neutral, accent-orange, accent-purple, accent-violet)
1834
+ * - 3 visual variants: default (dark gradient), slim (compact banner), light (pastel gradient with dark text)
1828
1835
  * - Size options (sm, md, lg)
1829
1836
  * - Optional label text above the title
1830
1837
  * - Configurable border radius
@@ -1833,7 +1840,7 @@ type HeroSize = 'sm' | 'md' | 'lg';
1833
1840
  *
1834
1841
  * @example
1835
1842
  * ```html
1836
- * <lc-hero label="MY APP" title="Welcome" color="primary">
1843
+ * <lc-hero label="MY APP" title="Welcome" color="primary" variant="slim">
1837
1844
  * <p>Description text</p>
1838
1845
  * <div hero-footer>Status: Active</div>
1839
1846
  * </lc-hero>
@@ -1863,9 +1870,17 @@ declare class HeroComponent {
1863
1870
  * @default 'lg'
1864
1871
  */
1865
1872
  borderRadius: _angular_core.InputSignal<"sm" | "md" | "lg" | "none">;
1873
+ /**
1874
+ * Visual variant.
1875
+ * - `default`: dark gradient with white text
1876
+ * - `slim`: compact single-line banner
1877
+ * - `light`: softer pastel gradient with dark text
1878
+ * @default 'default'
1879
+ */
1880
+ variant: _angular_core.InputSignal<HeroVariant>;
1866
1881
  protected heroClasses: _angular_core.Signal<string>;
1867
1882
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeroComponent, never>;
1868
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeroComponent, "lc-hero", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[hero-footer]"], true, never>;
1883
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeroComponent, "lc-hero", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[hero-footer]"], true, never>;
1869
1884
  }
1870
1885
 
1871
1886
  type ProgressBarColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
@@ -2952,6 +2967,7 @@ type SidenavMode = 'drawer' | 'docked';
2952
2967
  *
2953
2968
  * Features:
2954
2969
  * - Drawer (overlay) and docked (persistent) modes
2970
+ * - Collapsed icon-rail mode (narrow 56px sidebar with icons only)
2955
2971
  * - Hierarchical navigation with collapsible groups
2956
2972
  * - Section headlines for item grouping
2957
2973
  * - Active route highlighting
@@ -2962,11 +2978,13 @@ type SidenavMode = 'drawer' | 'docked';
2962
2978
  *
2963
2979
  * @example
2964
2980
  * ```html
2965
- * <lc-sidenav [isOpen]="isOpen" mode="docked" [items]="navItems"
2981
+ * <lc-sidenav [isOpen]="isOpen" mode="docked" [collapsed]="isCollapsed" [items]="navItems"
2966
2982
  * (closed)="isOpen = false" (itemClicked)="navigate($event)" />
2967
2983
  * ```
2968
2984
  */
2969
2985
  declare class SidenavComponent {
2986
+ /** Whether the sidenav is collapsed to icon-only rail */
2987
+ collapsed: _angular_core.WritableSignal<boolean>;
2970
2988
  /** Whether the sidenav is open */
2971
2989
  isOpen: _angular_core.WritableSignal<boolean>;
2972
2990
  /** Display mode: 'drawer' (overlay) or 'docked' (persistent sidebar) */
@@ -3021,6 +3039,10 @@ declare class SidenavComponent {
3021
3039
  * Input setter for active route
3022
3040
  */
3023
3041
  set activeRouteInput(value: string);
3042
+ /**
3043
+ * Input setter for collapsed
3044
+ */
3045
+ set collapsedInput(value: boolean);
3024
3046
  /**
3025
3047
  * Event emitted when the sidenav should close
3026
3048
  */
@@ -3039,6 +3061,10 @@ declare class SidenavComponent {
3039
3061
  sidenavStyles: _angular_core.Signal<{
3040
3062
  width: string;
3041
3063
  }>;
3064
+ /**
3065
+ * Toggle collapsed state
3066
+ */
3067
+ toggleCollapsed(): void;
3042
3068
  /**
3043
3069
  * Handle close action
3044
3070
  */
@@ -3068,7 +3094,7 @@ declare class SidenavComponent {
3068
3094
  */
3069
3095
  handleKeydown(event: KeyboardEvent): void;
3070
3096
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidenavComponent, never>;
3071
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavComponent, "lc-sidenav", never, { "isOpenInput": { "alias": "isOpenInput"; "required": false; }; "modeInput": { "alias": "modeInput"; "required": false; }; "positionInput": { "alias": "positionInput"; "required": false; }; "widthInput": { "alias": "widthInput"; "required": false; }; "ariaLabelInput": { "alias": "ariaLabelInput"; "required": false; }; "hasOverlayInput": { "alias": "hasOverlayInput"; "required": false; }; "itemsInput": { "alias": "itemsInput"; "required": false; }; "activeRouteInput": { "alias": "activeRouteInput"; "required": false; }; }, { "closed": "closed"; "itemClicked": "itemClicked"; }, never, ["*"], true, never>;
3097
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidenavComponent, "lc-sidenav", never, { "isOpenInput": { "alias": "isOpenInput"; "required": false; }; "modeInput": { "alias": "modeInput"; "required": false; }; "positionInput": { "alias": "positionInput"; "required": false; }; "widthInput": { "alias": "widthInput"; "required": false; }; "ariaLabelInput": { "alias": "ariaLabelInput"; "required": false; }; "hasOverlayInput": { "alias": "hasOverlayInput"; "required": false; }; "itemsInput": { "alias": "itemsInput"; "required": false; }; "activeRouteInput": { "alias": "activeRouteInput"; "required": false; }; "collapsedInput": { "alias": "collapsedInput"; "required": false; }; }, { "closed": "closed"; "itemClicked": "itemClicked"; }, never, ["*"], true, never>;
3072
3098
  }
3073
3099
 
3074
3100
  type TabOrientation = 'horizontal' | 'vertical';
@@ -3379,19 +3405,37 @@ type ListVariant = 'default' | 'card';
3379
3405
  * List item interface
3380
3406
  */
3381
3407
  interface ListItem {
3382
- /** Item label text */
3408
+ /** Item label text (primary line) */
3383
3409
  label: string;
3410
+ /** Secondary text shown below the label */
3411
+ subtitle?: string;
3412
+ /** Description text shown below subtitle (third line) */
3413
+ description?: string;
3384
3414
  /** Optional icon identifier */
3385
3415
  icon?: string;
3416
+ /** Avatar URL or initials (renders a circular avatar instead of icon) */
3417
+ avatar?: string;
3418
+ /** Badge text (e.g. count, status label) shown on the trailing side */
3419
+ badge?: string;
3420
+ /** Badge color variant */
3421
+ badgeVariant?: 'default' | 'primary' | 'success' | 'warning' | 'error';
3422
+ /** Metadata text shown on the trailing side (e.g. date, size) */
3423
+ metadata?: string;
3386
3424
  /** Optional action label */
3387
3425
  action?: string;
3388
3426
  /** Item identifier */
3389
3427
  id?: string;
3390
3428
  /** Whether the item is disabled */
3391
3429
  disabled?: boolean;
3430
+ /** Whether the item is selected / highlighted */
3431
+ selected?: boolean;
3392
3432
  /** Any additional data */
3393
3433
  [key: string]: any;
3394
3434
  }
3435
+ /**
3436
+ * List item size
3437
+ */
3438
+ type ListSize = 'sm' | 'md' | 'lg';
3395
3439
  /**
3396
3440
  * List component for displaying structured item collections.
3397
3441
  *
@@ -3422,6 +3466,8 @@ declare class ListComponent {
3422
3466
  orientation: _angular_core.InputSignal<ListOrientation>;
3423
3467
  /** Visual variant */
3424
3468
  variant: _angular_core.InputSignal<ListVariant>;
3469
+ /** Size of list items */
3470
+ size: _angular_core.InputSignal<ListSize>;
3425
3471
  /** Whether to show dividers between items */
3426
3472
  showDividers: _angular_core.InputSignal<boolean>;
3427
3473
  /** Event emitted when an item is clicked */
@@ -3445,7 +3491,7 @@ declare class ListComponent {
3445
3491
  */
3446
3492
  onActionClick(item: ListItem): void;
3447
3493
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
3448
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "lc-list", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showDividers": { "alias": "showDividers"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "actionClick": "actionClick"; }, ["itemTemplate"], never, true, never>;
3494
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "lc-list", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showDividers": { "alias": "showDividers"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "actionClick": "actionClick"; }, ["itemTemplate"], never, true, never>;
3449
3495
  }
3450
3496
 
3451
3497
  type ChipVariant = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
@@ -5926,4 +5972,4 @@ declare class RichTextEditorComponent implements ControlValueAccessor, AfterView
5926
5972
  }
5927
5973
 
5928
5974
  export { AccordionComponent, AlertComponent, AnimationDurationFast, AnimationEasingEaseIn, AnimationEasingEaseInOut, AnimationEasingEaseOut, AreaChartComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BarChartComponent, BorderRadius2xl, BorderRadiusFull, BorderRadiusLg, BorderRadiusMd, BorderRadiusNone, BorderRadiusSm, BorderRadiusXl, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CalloutComponent, CardComponent, ChatComponent, CheckboxComponent, ChipComponent, CodeBlockComponent, ColorAccentOrange, ColorAccentPurple, ColorAccentRed, ColorAccentRust, ColorAccentViolet, ColorErrorDark, ColorErrorDefault, ColorErrorLight, ColorInfoDark, ColorInfoDefault, ColorInfoLight, ColorNeutral100, ColorNeutral200, ColorNeutral300, ColorNeutral400, ColorNeutral50, ColorNeutral500, ColorNeutral600, ColorNeutral700, ColorNeutral800, ColorNeutral900, ColorPickerComponent, ColorPrimary100, ColorPrimary200, ColorPrimary300, ColorPrimary400, ColorPrimary50, ColorPrimary500, ColorPrimary600, ColorPrimary700, ColorPrimary800, ColorPrimary900, ColorSecondary100, ColorSecondary200, ColorSecondary300, ColorSecondary400, ColorSecondary50, ColorSecondary500, ColorSecondary600, ColorSecondary700, ColorSecondary800, ColorSecondary900, ColorSuccessDark, ColorSuccessDefault, ColorSuccessLight, ColorWarningDark, ColorWarningDefault, ColorWarningLight, ContainerComponent, DateRangePickerComponent, DatepickerComponent, DependencyViewerComponent, DiffViewerComponent, DividerComponent, DocumentViewerComponent, DonutChartComponent, DrawerComponent, Elevation1, Elevation2, Elevation3, Elevation4, EmailInputComponent, EmptyStateComponent, ErrorDisplayComponent, FieldGroupComponent, FileUploadComponent, FilterBarComponent, FooterComponent, FunnelChartComponent, GalleryComponent, GanttChartComponent, GaugeComponent, HeaderComponent, HeatmapComponent, HeroComponent, IconComponent, InputComponent, KanbanBoardComponent, LineChartComponent, ListComponent, ListItemTemplateDirective, LogoComponent, MenuComponent, ModalComponent, NotificationCenterComponent, NumberInputComponent, PaginationComponent, PasswordInputComponent, PieChartComponent, PopoverComponent, ProgressBarComponent, ProgressRingComponent, RadarChartComponent, RadioComponent, RatingComponent, RichTextEditorComponent, ScatterPlotComponent, SearchInputComponent, SectionComponent, SelectComponent, SidenavComponent, SizeInteractiveLgFontSize, SizeInteractiveLgHeight, SizeInteractiveLgPadding, SizeInteractiveMdFontSize, SizeInteractiveMdHeight, SizeInteractiveMdPadding, SizeInteractiveSmFontSize, SizeInteractiveSmHeight, SizeInteractiveSmPadding, SizeInteractiveXsFontSize, SizeInteractiveXsHeight, SizeInteractiveXsPadding, SizeMinTouchHeight, SizeMinTouchWidth, SkeletonComponent, SliderComponent, SpacerComponent, Spacing0, Spacing05, Spacing1, Spacing10, Spacing11, Spacing12, Spacing14, Spacing15, Spacing16, Spacing2, Spacing25, Spacing3, Spacing35, Spacing4, Spacing5, Spacing6, Spacing7, Spacing8, Spacing9, SparklineComponent, SpinnerComponent, StackComponent, StackedBarChartComponent, StatTrendComponent, StepperComponent, SwitchComponent, TabComponent, TableCellDirective, TableComponent, TabsComponent, TagInputComponent, TextareaComponent, ThemeService, TimelineComponent, ToastComponent, ToastService, ToggleGroupComponent, TooltipContentComponent, TooltipDirective, TypographyComponent, TypographyFontFamilyBase, TypographyFontFamilyMono, TypographyFontSize2xl, TypographyFontSize3xl, TypographyFontSize4xl, TypographyFontSize5xl, TypographyFontSize6xl, TypographyFontSizeBase, TypographyFontSizeLg, TypographyFontSizeSm, TypographyFontSizeXl, TypographyFontSizeXs, TypographyFontWeightBold, TypographyFontWeightMedium, TypographyFontWeightNormal, TypographyFontWeightSemibold, TypographyLineHeightNormal, TypographyLineHeightRelaxed, TypographyLineHeightTight, VerificationCodeInputComponent, WaterfallChartComponent };
5929
- export type { AlertVariant, AreaChartSeries, AvatarGroupItem, AvatarSize, AvatarStatus, BadgeSize, BadgeVariant, BarChartItem, BarChartOrientation, BreadcrumbItem, BreadcrumbSize, ButtonSize, ButtonType, ButtonVariant, CalendarEvent, CalendarView, CalloutVariant, CellEditEvent, ChatMessage, ChatMessageRole, ChatSendEvent, CheckboxSize, ChipSize, ChipVariant, CodeBlockLanguage, ContainerSize, DateRange, DateValue, DependencyDirection, DependencyEdgeDef, DependencyNode, DependencyNodeStatus, DependencyRelation, DiffViewMode, DividerOrientation, DividerSpacing, DividerVariant, DocumentType, DonutChartSize, DonutSegment, DrawerPosition, DrawerSize, EmptyStateSize, ErrorSeverity, FileUploadFile, FilterConfig, FilterOption, FilterValues, FooterLink, FooterSection, FooterVariant, FunnelStep, GalleryItem, GalleryLayout, GallerySize, GanttDependency, GanttTask, GaugeColor, GaugeSize, HeatmapCell, HeroColor, HeroSize, IconSize, IconVariant, KanbanCard, KanbanColumn, KanbanLabel, KanbanMoveEvent, LineChartSeries, ListItem, ListOrientation, ListVariant, MenuItem, ModalSize, NavigationItem, Notification, NotificationPriority, NotificationType, PaginationSize, PasswordRequirement, PasswordStrength, PieChartSize, PieSegment, PopoverPosition, PopoverTrigger, ProgressBarColor, ProgressBarSize, ProgressBarVariant, ProgressRingColor, ProgressRingSize, RadarChartSeries, RadioSize, RatingSize, RichTextEditorMode, ScatterPoint, ScatterSeries, SearchInputSize, SectionBackground, SectionSpacing, SelectOption, SelectOptionGroup, SelectValue, SelectionChangeEvent, SidenavMode, SidenavPosition, SkeletonVariant, SortEvent, SpacerSize, SparklineColor, SparklineCurve, SpinnerSize, StackAlign, StackDirection, StackGap, StackJustify, StackedBarCategory, StackedBarLegend, StackedBarOrientation, StatTrendDirection, StepState, StepperStep, TabOrientation, TableColumn, TableSize, TableVariant, ThemeConfig, ThemeMode, ThemeState, TimelineItem, TimelineOrientation, Toast, ToastAction, ToastConfig, ToastPosition, ToastVariant, ToggleOption, ToolbarAction, ToolbarConfig, TooltipPosition, WaterfallItem };
5975
+ export type { AlertVariant, AreaChartSeries, AvatarGroupItem, AvatarSize, AvatarStatus, BadgeSize, BadgeVariant, BarChartItem, BarChartOrientation, BreadcrumbItem, BreadcrumbSize, ButtonSize, ButtonType, ButtonVariant, CalendarEvent, CalendarView, CalloutVariant, CellEditEvent, ChatMessage, ChatMessageRole, ChatSendEvent, CheckboxSize, ChipSize, ChipVariant, CodeBlockLanguage, ContainerSize, DateRange, DateValue, DependencyDirection, DependencyEdgeDef, DependencyNode, DependencyNodeStatus, DependencyRelation, DiffViewMode, DividerOrientation, DividerSpacing, DividerVariant, DocumentType, DonutChartSize, DonutSegment, DrawerPosition, DrawerSize, EmptyStateSize, ErrorSeverity, FileUploadFile, FilterConfig, FilterOption, FilterValues, FooterLink, FooterSection, FooterVariant, FunnelStep, GalleryItem, GalleryLayout, GallerySize, GanttDependency, GanttTask, GaugeColor, GaugeSize, HeatmapCell, HeroColor, HeroSize, HeroVariant, IconSize, IconVariant, KanbanCard, KanbanColumn, KanbanLabel, KanbanMoveEvent, LineChartSeries, ListItem, ListOrientation, ListSize, ListVariant, MenuItem, ModalSize, NavigationItem, Notification, NotificationPriority, NotificationType, PaginationSize, PasswordRequirement, PasswordStrength, PieChartSize, PieSegment, PopoverPosition, PopoverTrigger, ProgressBarColor, ProgressBarSize, ProgressBarVariant, ProgressRingColor, ProgressRingSize, RadarChartSeries, RadioSize, RatingSize, RichTextEditorMode, ScatterPoint, ScatterSeries, SearchInputSize, SectionBackground, SectionSpacing, SelectOption, SelectOptionGroup, SelectValue, SelectionChangeEvent, SidenavMode, SidenavPosition, SkeletonVariant, SortEvent, SpacerSize, SparklineColor, SparklineCurve, SpinnerSize, StackAlign, StackDirection, StackGap, StackJustify, StackedBarCategory, StackedBarLegend, StackedBarOrientation, StatTrendDirection, StepState, StepperStep, TabOrientation, TableColumn, TableSize, TableVariant, ThemeConfig, ThemeMode, ThemeState, TimelineItem, TimelineOrientation, Toast, ToastAction, ToastConfig, ToastPosition, ToastVariant, ToggleOption, ToolbarAction, ToolbarConfig, TooltipPosition, WaterfallItem };