@tolle_/tolle-ui 0.0.30-beta → 0.0.31-beta

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.
@@ -7,6 +7,7 @@ export declare class AccordionComponent implements AfterContentInit {
7
7
  class: string;
8
8
  items: QueryList<AccordionItemComponent>;
9
9
  ngAfterContentInit(): void;
10
+ private initItems;
10
11
  private handleToggle;
11
12
  protected readonly cn: typeof cn;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
3
3
  import { cn } from './utils/cn';
4
4
  import * as i0 from "@angular/core";
5
5
  declare const alertVariants: (props?: ({
6
- variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
6
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type AlertVariants = VariantProps<typeof alertVariants>;
9
9
  export declare class AlertComponent {
@@ -13,9 +13,8 @@ export declare class AlertComponent {
13
13
  dismissible: boolean;
14
14
  onClose: EventEmitter<void>;
15
15
  dismissed: boolean;
16
- isDismissing: boolean;
17
16
  protected alertVariants: (props?: ({
18
- variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
17
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
19
18
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
19
  protected cn: typeof cn;
21
20
  dismiss(): void;
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  import * as i0 from "@angular/core";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
5
  size?: "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
6
6
  busy?: boolean | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1,37 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { cn } from './utils/cn';
3
+ import * as i0 from "@angular/core";
4
+ export interface SidebarItem {
5
+ title: string;
6
+ url?: string;
7
+ icon?: string;
8
+ isActive?: boolean;
9
+ items?: SidebarItem[];
10
+ id?: string;
11
+ expanded?: boolean;
12
+ }
13
+ export interface SidebarGroup {
14
+ title: string;
15
+ items: SidebarItem[];
16
+ id?: string;
17
+ }
18
+ export declare class SidebarComponent implements OnChanges {
19
+ items: SidebarGroup[];
20
+ collapsed: boolean;
21
+ class: string;
22
+ expandedParents: Set<string>;
23
+ expandedChildren: Set<string>;
24
+ protected readonly cn: typeof cn;
25
+ ngOnChanges(changes: SimpleChanges): void;
26
+ private initializeState;
27
+ getGroupId(group: SidebarGroup, index: number): string;
28
+ getParentId(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): string;
29
+ getChildId(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): string;
30
+ toggleParent(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): void;
31
+ toggleChild(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): void;
32
+ private collapseAll;
33
+ isParentExpanded(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): boolean;
34
+ isChildExpanded(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): boolean;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "tolle-sidebar", never, { "items": { "alias": "items"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["[header]", "[footer]"], true, never>;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolle_/tolle-ui",
3
- "version": "0.0.30-beta",
3
+ "version": "0.0.31-beta",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/public-api.d.ts CHANGED
@@ -54,3 +54,4 @@ export * from './lib/popover-content.component';
54
54
  export * from './lib/radio-group.component';
55
55
  export * from './lib/radio-item.component';
56
56
  export * from './lib/segment.component';
57
+ export * from './lib/sidebar.component';