@coreui/angular-pro 5.3.14 → 5.3.16

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.
@@ -2,11 +2,10 @@ import * as i0 from "@angular/core";
2
2
  export declare class FormDirective {
3
3
  /**
4
4
  * Mark a form as validated. If you set it `true`, all validation styles will be applied to the form. [docs]
5
- * @type boolean
5
+ * @return boolean
6
6
  * @default false
7
7
  */
8
8
  readonly validated: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
9
- readonly hostClasses: import("@angular/core").Signal<Record<string, boolean>>;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective, never>;
11
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective, "form[cForm]", never, { "validated": { "alias": "validated"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
11
  }
@@ -5,7 +5,6 @@ export declare class FormFloatingDirective {
5
5
  * @type boolean
6
6
  */
7
7
  readonly floating: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
- readonly hostClasses: import("@angular/core").Signal<Record<string, boolean>>;
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFloatingDirective, never>;
10
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[cFormFloating]", never, { "floating": { "alias": "cFormFloating"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
10
  }
@@ -6,7 +6,7 @@ export declare class ModalToggleDirective {
6
6
  * @default undefined
7
7
  */
8
8
  readonly toggle: import("@angular/core").InputSignal<string | undefined>;
9
- dismiss($event: any): void;
9
+ dismiss($event: Event): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalToggleDirective, never>;
11
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<ModalToggleDirective, "[cModalToggle]", never, { "toggle": { "alias": "cModalToggle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
12
  }
@@ -21,7 +21,7 @@ export declare class NavbarTogglerDirective {
21
21
  * @default 'Toggle navigation'
22
22
  */
23
23
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
24
- handleClick(): void;
24
+ handleClick($event: MouseEvent): void;
25
25
  addDefaultIcon(): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarTogglerDirective, never>;
27
27
  static ɵdir: i0.ɵɵDirectiveDeclaration<NavbarTogglerDirective, "[cNavbarToggler]", never, { "collapseRef": { "alias": "cNavbarToggler"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -2,7 +2,8 @@ import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TemplateIdDirective {
4
4
  readonly templateRef: TemplateRef<any>;
5
- id: string;
5
+ readonly cTemplateId: import("@angular/core").InputSignal<string>;
6
+ get id(): string;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TemplateIdDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateIdDirective, "[cTemplateId]", never, { "id": { "alias": "cTemplateId"; "required": false; }; }, {}, never, never, true, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateIdDirective, "[cTemplateId]", never, { "cTemplateId": { "alias": "cTemplateId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
8
9
  }
@@ -1,70 +1,83 @@
1
- import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ISidebarAction } from '../sidebar.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
5
5
  #private;
6
- state: ISidebarAction;
6
+ readonly state: import("@angular/core").WritableSignal<ISidebarAction>;
7
7
  /**
8
- * Sets if the color of text should be colored for a light or dark background. [docs]
9
- *
10
- * @type 'dark' | 'light'
8
+ * Sets if the color of text should be colored for a light or dark background.
9
+ * @return 'dark' | 'light'
11
10
  */
12
- colorScheme?: 'dark' | 'light';
11
+ readonly colorScheme: import("@angular/core").InputSignal<"dark" | "light" | undefined>;
13
12
  /**
14
- * Sets html attribute id. [docs]
15
- *
16
- * @type string
13
+ * Sets html attribute id.
14
+ * @return string
17
15
  */
18
- id?: string;
16
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
19
17
  /**
20
- * Make sidebar narrow. [docs]
21
- * @type boolean
18
+ * Make sidebar narrow.
19
+ * @return boolean
22
20
  * @default false
23
21
  */
24
- narrow: boolean;
22
+ readonly narrowInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
23
+ set narrow(value: boolean);
24
+ get narrow(): boolean;
25
25
  /**
26
26
  * Set sidebar to overlaid variant.
27
- * @type boolean
27
+ * @return boolean
28
28
  * @default false
29
29
  */
30
- overlaid: boolean;
30
+ readonly overlaid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
31
31
  /**
32
- * Components placement, there’s no default placement. [docs]
33
- * @type 'start' | 'end'
32
+ * Components placement, there’s no default placement.
33
+ * @return 'start' | 'end'
34
34
  */
35
- placement?: 'start' | 'end';
35
+ readonly placement: import("@angular/core").InputSignal<"start" | "end" | undefined>;
36
36
  /**
37
- * Place sidebar in non-static positions. [docs]
37
+ * Place sidebar in non-static positions.
38
+ * @return 'fixed' | 'sticky'
38
39
  * @default 'fixed'
39
40
  */
40
- position: 'fixed' | 'sticky';
41
+ readonly position: import("@angular/core").InputSignal<"fixed" | "sticky">;
41
42
  /**
42
- * Size the component small, large, or extra large. [docs]
43
+ * Size the component small, large, or extra large.
44
+ * @return 'sm' | 'lg' | 'xl'
43
45
  */
44
- size?: 'sm' | 'lg' | 'xl';
46
+ readonly size: import("@angular/core").InputSignal<"sm" | "lg" | "xl" | undefined>;
45
47
  /**
46
- * Expand narrowed sidebar on hover. [docs]
48
+ * Expand narrowed sidebar on hover.
47
49
  * @type boolean
48
50
  * @default false
49
51
  */
50
- unfoldable: boolean;
52
+ readonly unfoldableInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
53
+ readonly unfoldable: import("@angular/core").WritableSignal<boolean>;
51
54
  /**
52
- * Toggle the visibility of sidebar component. [docs]
55
+ * Toggle the visibility of sidebar component.
53
56
  * @type boolean
54
57
  * @default false
55
58
  */
59
+ readonly visibleInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
56
60
  set visible(value: boolean);
57
61
  get visible(): boolean;
58
62
  /**
59
- * Event emitted on visibility change. [docs]
60
- * @type boolean
63
+ * Event emitted on visibility change.
64
+ * @return boolean
61
65
  */
62
- visibleChange: EventEmitter<boolean>;
66
+ readonly visibleChange: import("@angular/core").OutputEmitterRef<boolean>;
63
67
  set sidebarState(value: ISidebarAction);
64
68
  get sidebarState(): ISidebarAction;
65
69
  get getMobileBreakpoint(): string;
66
70
  constructor();
67
- get getClasses(): any;
71
+ readonly hostClasses: import("@angular/core").Signal<{
72
+ [x: string]: boolean | "toggle" | undefined;
73
+ sidebar: boolean;
74
+ 'sidebar-fixed': boolean;
75
+ 'sidebar-narrow': boolean;
76
+ 'sidebar-narrow-unfoldable': boolean;
77
+ 'sidebar-overlaid': boolean;
78
+ show: boolean | "toggle" | undefined;
79
+ hide: boolean;
80
+ }>;
68
81
  ngOnInit(): void;
69
82
  ngOnDestroy(): void;
70
83
  ngOnChanges(changes: SimpleChanges): void;
@@ -72,9 +85,5 @@ export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
72
85
  private stateToggleSubscribe;
73
86
  layoutChangeSubscribe(subscribe?: boolean): void;
74
87
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "c-sidebar", ["cSidebar"], { "colorScheme": { "alias": "colorScheme"; "required": false; }; "id": { "alias": "id"; "required": false; }; "narrow": { "alias": "narrow"; "required": false; }; "overlaid": { "alias": "overlaid"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "position": { "alias": "position"; "required": false; }; "size": { "alias": "size"; "required": false; }; "unfoldable": { "alias": "unfoldable"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
76
- static ngAcceptInputType_narrow: unknown;
77
- static ngAcceptInputType_overlaid: unknown;
78
- static ngAcceptInputType_unfoldable: unknown;
79
- static ngAcceptInputType_visible: unknown;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "c-sidebar", ["cSidebar"], { "colorScheme": { "alias": "colorScheme"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "narrowInput": { "alias": "narrow"; "required": false; "isSignal": true; }; "overlaid": { "alias": "overlaid"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "unfoldableInput": { "alias": "unfoldable"; "required": false; "isSignal": true; }; "visibleInput": { "alias": "visible"; "required": false; "isSignal": true; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
80
89
  }
@@ -1,12 +1,10 @@
1
- import { OnInit } from '@angular/core';
1
+ import { type UrlTree } from '@angular/router';
2
2
  import * as i0 from "@angular/core";
3
- export declare class SidebarBrandComponent implements OnInit {
4
- brandFull?: any;
5
- brandNarrow?: any;
6
- routerLink?: any[] | string;
7
- sidebarBrandClass: boolean;
8
- brandImg: boolean;
9
- ngOnInit(): void;
3
+ export declare class SidebarBrandComponent {
4
+ readonly brandFull: import("@angular/core").InputSignal<any>;
5
+ readonly brandNarrow: import("@angular/core").InputSignal<any>;
6
+ readonly routerLink: import("@angular/core").InputSignal<string | any[] | UrlTree | null | undefined>;
7
+ readonly brandImg: import("@angular/core").Signal<boolean>;
10
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarBrandComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarBrandComponent, "c-sidebar-brand", never, { "brandFull": { "alias": "brandFull"; "required": false; }; "brandNarrow": { "alias": "brandNarrow"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarBrandComponent, "c-sidebar-brand", never, { "brandFull": { "alias": "brandFull"; "required": false; "isSignal": true; }; "brandNarrow": { "alias": "brandNarrow"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
12
10
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { SidebarNavHelper } from './sidebar-nav.service';
4
4
  import { INavData } from './sidebar-nav';
@@ -14,7 +14,7 @@ export declare class SidebarNavLinkComponent implements OnInit, OnDestroy {
14
14
  protected _item: INavData;
15
15
  set item(item: INavData);
16
16
  get item(): INavData;
17
- linkClick: EventEmitter<any>;
17
+ readonly linkClick: import("@angular/core").OutputEmitterRef<void>;
18
18
  linkType: string;
19
19
  href: string;
20
20
  linkActive: boolean;
@@ -5,19 +5,18 @@ import * as i0 from "@angular/core";
5
5
  export declare class SidebarToggleDirective {
6
6
  #private;
7
7
  /**
8
- * Id of sidebar for toggle action. [docs]
9
- *
10
- * @type string
8
+ * Id of sidebar for toggle action.
9
+ * @return string
11
10
  */
12
- id?: string;
11
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
13
12
  /**
14
- * Sidebar property name for toggle action. [docs]
13
+ * Sidebar property name for toggle action.
15
14
  *
16
- * @type 'visible' | 'unfoldable'
15
+ * @return 'visible' | 'unfoldable'
17
16
  * @default 'visible'
18
17
  */
19
- toggle: 'visible' | 'unfoldable';
18
+ readonly toggle: import("@angular/core").InputSignal<"visible" | "unfoldable">;
20
19
  toggleOpen($event: any): void;
21
20
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarToggleDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarToggleDirective, "[cSidebarToggle]", ["cSidebarToggle"], { "id": { "alias": "cSidebarToggle"; "required": false; }; "toggle": { "alias": "toggle"; "required": false; }; }, {}, never, never, true, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarToggleDirective, "[cSidebarToggle]", ["cSidebarToggle"], { "id": { "alias": "cSidebarToggle"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
22
  }
@@ -1,9 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "../sidebar-toggle/sidebar-toggle.directive";
3
3
  export declare class SidebarTogglerDirective {
4
- role: string;
5
- sidebarTogglerClass: boolean;
4
+ readonly role: import("@angular/core").InputSignal<string>;
6
5
  get getStyles(): any;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarTogglerDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarTogglerDirective, "[cSidebarToggler]", never, { "role": { "alias": "role"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.SidebarToggleDirective; inputs: { "cSidebarToggle": "cSidebarToggler"; "toggle": "toggle"; }; outputs: {}; }]>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarTogglerDirective, "[cSidebarToggler]", never, { "role": { "alias": "role"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.SidebarToggleDirective; inputs: { "cSidebarToggle": "cSidebarToggler"; "toggle": "toggle"; }; outputs: {}; }]>;
9
8
  }
@@ -12,7 +12,7 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
12
12
  readonly getTableDataCellClass: (column: IColumn, item: IItem) => {
13
13
  [x: string]: boolean;
14
14
  };
15
- readonly getTableDataCellProps: (column: IColumn, item: IItem) => {};
15
+ readonly getTableDataCellProps: (column: IColumn, item: IItem) => Record<string, any>;
16
16
  readonly getTableDataCellStyles: (column: IColumn, item: IItem) => Partial<CSSStyleDeclaration>;
17
17
  readonly selectedAllSubject: BehaviorSubject<boolean | "indeterminate">;
18
18
  private readonly itemsDiffer;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, TemplateRef, WritableSignal } from '@angular/core';
1
+ import { OnInit, TemplateRef, WritableSignal } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { IColumn, IColumnFilter, IColumnFilterValue, IGroup, ISorter, ISorterValue, SortOrder } from '../smart-table.type';
4
4
  import { Colors } from '../../coreui.types';
@@ -12,20 +12,21 @@ export declare class SmartTableHeadComponent implements OnInit {
12
12
  protected readonly getTableHeaderCellClass: (column: IColumn) => {
13
13
  [x: string]: boolean;
14
14
  };
15
- columnFilter?: boolean | IColumnFilter;
16
- columnFilterState: IColumnFilterValue;
17
- columnSorter?: boolean | ISorter;
18
- component?: string;
15
+ readonly columnFilter: import("@angular/core").InputSignal<boolean | IColumnFilter | undefined>;
16
+ readonly columnFilterStateInput: import("@angular/core").InputSignal<IColumnFilterValue>;
17
+ readonly columnFilterState: WritableSignal<IColumnFilterValue>;
18
+ readonly columnSorter: import("@angular/core").InputSignal<boolean | ISorter | undefined>;
19
+ readonly component: import("@angular/core").InputSignal<string | undefined>;
19
20
  set columns(value: (IColumn | IGroup)[] | undefined);
20
21
  get columns(): (IColumn | IGroup)[] | undefined;
21
- set columnGroups(value: IGroup[][]);
22
- columnGroups$: WritableSignal<IGroup[][]>;
23
- selectable?: boolean;
24
- selectAll: boolean;
22
+ readonly columnGroupsInput: import("@angular/core").InputSignal<IGroup[][] | undefined>;
23
+ readonly columnGroups: WritableSignal<IGroup[][] | undefined>;
24
+ readonly selectable: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
25
+ readonly selectAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
26
  set selectedAll(value: boolean | 'indeterminate');
26
27
  get selectedAll(): boolean | 'indeterminate';
27
- showGroups: boolean;
28
- sorterValue?: ISorterValue;
28
+ readonly showGroups: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
29
+ readonly sorterValue: import("@angular/core").InputSignal<ISorterValue | undefined>;
29
30
  set columnFilterTemplates(value: any);
30
31
  get columnFilterTemplates(): any;
31
32
  set columnLabelTemplates(value: any);
@@ -33,13 +34,13 @@ export declare class SmartTableHeadComponent implements OnInit {
33
34
  set summaryRowTemplate(value: TemplateRef<unknown> | null);
34
35
  get summaryRowTemplate(): TemplateRef<unknown> | null;
35
36
  readonly indeterminate$: BehaviorSubject<boolean>;
36
- readonly columnFilterStateChange: EventEmitter<any>;
37
- readonly sorterStateChange: EventEmitter<any>;
38
- readonly selectAllChange: EventEmitter<boolean>;
39
- get hostClasses(): {
37
+ readonly columnFilterStateChange: import("@angular/core").OutputEmitterRef<any>;
38
+ readonly sorterStateChange: import("@angular/core").OutputEmitterRef<any>;
39
+ readonly selectAllChange: import("@angular/core").OutputEmitterRef<boolean>;
40
+ readonly hostClasses: import("@angular/core").Signal<{
40
41
  thead: boolean;
41
42
  tfoot: boolean;
42
- };
43
+ }>;
43
44
  ngOnInit(): void;
44
45
  tableHeaderCellColor(column: IColumn | string): Colors;
45
46
  columnKey(column: IColumn | string): string;
@@ -59,8 +60,5 @@ export declare class SmartTableHeadComponent implements OnInit {
59
60
  get columnFilterEvent(): 'change' | 'input';
60
61
  getAriaSort(column: IColumn | string): "ascending" | "descending" | null;
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableHeadComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnGroups": { "alias": "columnGroups"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "showGroups": { "alias": "showGroups"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "columnLabelTemplates": { "alias": "columnLabelTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
63
- static ngAcceptInputType_selectable: unknown;
64
- static ngAcceptInputType_selectAll: unknown;
65
- static ngAcceptInputType_showGroups: unknown;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; "isSignal": true; }; "columnFilterStateInput": { "alias": "columnFilterState"; "required": false; "isSignal": true; }; "columnSorter": { "alias": "columnSorter"; "required": false; "isSignal": true; }; "component": { "alias": "component"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; }; "columnGroupsInput": { "alias": "columnGroups"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selectAll": { "alias": "selectAll"; "required": false; "isSignal": true; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "showGroups": { "alias": "showGroups"; "required": false; "isSignal": true; }; "sorterValue": { "alias": "sorterValue"; "required": false; "isSignal": true; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "columnLabelTemplates": { "alias": "columnLabelTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
66
64
  }
@@ -219,13 +219,10 @@ export interface IColumnFilter {
219
219
  export interface IColumnFilterValue {
220
220
  [key: string]: any;
221
221
  }
222
- export interface IColumn {
223
- children?: IColumn[];
224
- filter?: boolean | ((column: IItem, value: string) => boolean);
225
- group?: string;
226
- key: string;
222
+ interface IColumnBase {
227
223
  label?: string;
228
224
  sorter?: boolean | ((a: IItem, b: IItem) => number);
225
+ filter?: boolean | ((column: IItem, value: string) => boolean);
229
226
  _attr?: Partial<HTMLTableCellElement>;
230
227
  _style?: Partial<CSSStyleDeclaration>;
231
228
  _props?: ITableHeaderCellProps;
@@ -237,13 +234,21 @@ export interface IColumn {
237
234
  _labelTemplateId?: string;
238
235
  _data?: any;
239
236
  }
240
- export interface IGroup {
241
- children?: (IGroup | IColumn)[];
242
- colspan?: number;
243
- deep?: number;
244
- group?: string;
237
+ interface IColumnWithGroup extends IColumnBase {
238
+ group: string;
239
+ children: IColumn[];
240
+ key?: never;
241
+ }
242
+ interface IColumnWithKey extends IColumnBase {
245
243
  key: string;
244
+ children?: never;
245
+ group?: never;
246
+ }
247
+ export type IColumn = IColumnWithGroup | IColumnWithKey;
248
+ interface IGroupBase {
246
249
  label?: string;
250
+ colspan?: number;
251
+ deep?: number;
247
252
  _attr?: Partial<HTMLTableCellElement>;
248
253
  _class?: NgCssClass;
249
254
  _props?: ITableHeaderCellProps;
@@ -251,6 +256,17 @@ export interface IGroup {
251
256
  _labelTemplateId?: string;
252
257
  _data?: any;
253
258
  }
259
+ interface IGroupWithGroup extends IGroupBase {
260
+ children: IColumn[] | IGroup[];
261
+ group: string;
262
+ key?: never;
263
+ }
264
+ interface IGroupWithKey extends IGroupBase {
265
+ children?: never;
266
+ group?: never;
267
+ key: string;
268
+ }
269
+ export type IGroup = IGroupWithGroup | IGroupWithKey;
254
270
  export interface ITableHeaderCellProps {
255
271
  /**
256
272
  * Sets the color context of the component to one of CoreUI’s themed colors.
@@ -300,3 +316,4 @@ export interface ITableFilter {
300
316
  value?: string | number;
301
317
  }
302
318
  export type SortOrder = 'asc' | 'desc' | 0 | undefined;
319
+ export {};
@@ -4,20 +4,18 @@ export declare const getColumnKey: (column: IColumn | string) => string;
4
4
  export declare const getColumnLabel: (column: IColumn | string) => string;
5
5
  export declare const getColumnName: (column: IColumn | string) => string;
6
6
  export declare const getColumnNames: (columns: (string | IColumn)[] | undefined, items: IItem[]) => string[];
7
- export declare const getColumns: (_columns: (IColumn | IGroup)[]) => (IColumn)[];
7
+ export declare const getColumns: (_columns: (IColumn | IGroup)[]) => IColumn[];
8
8
  export declare const countColumns: (columns: IColumn[], counter?: number) => number;
9
9
  export declare const getColumnGroups: (columns: (string | IColumn)[] | undefined) => IGroup[][];
10
10
  export declare const getColumnNamesFromItems: (items: IItem[]) => string[];
11
11
  export declare const getColumnValues: (items: IItem[], key: string) => any[];
12
12
  export declare const convertNgClassToObj: (value: string | string[] | Set<string> | {
13
13
  [klass: string]: any;
14
- } | null | undefined) => {
15
- [klass: string]: boolean;
16
- };
14
+ } | null | undefined) => Record<string, boolean>;
17
15
  export declare const getTableDataCellClass: (column: IColumn, item: IItem) => {
18
16
  [x: string]: boolean;
19
17
  };
20
- export declare const getTableDataCellProps: (column: IColumn, item: IItem) => {};
18
+ export declare const getTableDataCellProps: (column: IColumn, item: IItem) => Record<string, any>;
21
19
  export declare const getTableDataCellStyles: (column: IColumn, item: IItem) => Partial<CSSStyleDeclaration>;
22
20
  export declare const getTableHeaderCellProps: (column: IColumn | string) => {
23
21
  [key: string]: any;
@@ -7,7 +7,7 @@ export declare class TextBgColorDirective {
7
7
  * @type Colors
8
8
  */
9
9
  readonly textBgColor: InputSignal<Colors>;
10
- get hostClasses(): any;
10
+ readonly hostClasses: import("@angular/core").Signal<Record<string, boolean>>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBgColorDirective, never>;
12
12
  static ɵdir: i0.ɵɵDirectiveDeclaration<TextBgColorDirective, "[cTextBgColor]", never, { "textBgColor": { "alias": "cTextBgColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
13
  }
@@ -7,7 +7,9 @@ export declare class TextColorDirective {
7
7
  * @type TextColors
8
8
  */
9
9
  readonly color: InputSignal<TextColors>;
10
- get hostClasses(): any;
10
+ readonly hostClasses: import("@angular/core").Signal<{
11
+ [x: string]: boolean;
12
+ }>;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TextColorDirective, never>;
12
14
  static ɵdir: i0.ɵɵDirectiveDeclaration<TextColorDirective, "[cTextColor]", never, { "color": { "alias": "cTextColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular-pro",
3
- "version": "5.3.14",
3
+ "version": "5.3.16",
4
4
  "description": "CoreUI Pro Components Library for Angular",
5
5
  "copyright": "Copyright 2025 creativeLabs Łukasz Holeczek",
6
6
  "homepage": "https://coreui.io/angular",
@@ -28,8 +28,8 @@
28
28
  "@angular/core": "^19.1.0",
29
29
  "@angular/forms": "^19.1.0",
30
30
  "@angular/router": "^19.1.0",
31
- "@coreui/coreui-pro": "^5.8.0",
32
- "@coreui/icons-angular": "~5.3.12",
31
+ "@coreui/coreui-pro": "~5.9.0",
32
+ "@coreui/icons-angular": "~5.3.16",
33
33
  "rxjs": "^7.8.1"
34
34
  },
35
35
  "repository": {