@coreui/angular-pro 4.2.41 → 4.2.42

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.
@@ -95,6 +95,7 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
95
95
  columnFilterTemplates: {
96
96
  [key: string]: (TemplateRef<any> | null);
97
97
  };
98
+ summaryRowTemplate: TemplateRef<unknown> | null;
98
99
  ngAfterContentInit(): void;
99
100
  get selectedAll(): boolean | "indeterminate";
100
101
  get tableFilterState(): string;
@@ -134,6 +135,9 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
134
135
  active?: boolean | undefined;
135
136
  align?: "top" | "bottom" | "middle" | undefined;
136
137
  color?: string | undefined;
138
+ _attributes?: {
139
+ [key: string]: any;
140
+ } | undefined;
137
141
  } | undefined;
138
142
  tableDataCellClasses(item: IItem, colName: string): string | {
139
143
  [klass: string]: any;
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { IColumn } from '../smart-table.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SmartTableColumnLabelPipe implements PipeTransform {
5
+ transform(column: IColumn | string, ...args: unknown[]): unknown;
6
+ prettifyName(name: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableColumnLabelPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<SmartTableColumnLabelPipe, "columnLabel", false>;
9
+ }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { IColumn, IColumnFilter, IColumnFilterValue, ISorter, ISorterValue } from '../smart-table.type';
4
4
  import * as i0 from "@angular/core";
@@ -18,8 +18,9 @@ export declare class SmartTableHeadComponent implements OnInit {
18
18
  sorterValue?: ISorterValue;
19
19
  set columnFilterTemplates(value: any);
20
20
  get columnFilterTemplates(): any;
21
- _columnFilterTemplates?: any;
22
- indeterminate: BehaviorSubject<boolean>;
21
+ set summaryRowTemplate(value: TemplateRef<unknown> | null);
22
+ get summaryRowTemplate(): TemplateRef<unknown> | null;
23
+ readonly indeterminate$: BehaviorSubject<boolean>;
23
24
  readonly columnFilterStateChange: EventEmitter<any>;
24
25
  readonly sorterStateChange: EventEmitter<any>;
25
26
  readonly selectAllChange: EventEmitter<boolean>;
@@ -33,10 +34,8 @@ export declare class SmartTableHeadComponent implements OnInit {
33
34
  };
34
35
  tableHeaderCellColor(column: IColumn | string): string;
35
36
  tableHeaderCellStyles(column: IColumn | string): any;
36
- columnLabel(column: IColumn | string): string;
37
37
  columnKey(column: IColumn | string): string;
38
38
  getColumnSorterState(column: IColumn | string): string | number;
39
- prettifyName(name: string): string;
40
39
  handleSortClick(column: IColumn | string, i: number): void;
41
40
  columnFilterEnabled(column: IColumn | string): boolean | ((column: import("../smart-table.type").IItem, value: string) => boolean);
42
41
  columnSorterEnabled(column: IColumn | string): boolean | ((a: import("../smart-table.type").IItem, b: import("../smart-table.type").IItem) => number);
@@ -49,5 +48,5 @@ export declare class SmartTableHeadComponent implements OnInit {
49
48
  getColumnFilter(column: IColumn | string): string;
50
49
  get columnFilterEvent(): 'change' | 'input';
51
50
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableHeadComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": "columnFilter"; "columnFilterState": "columnFilterState"; "columnSorter": "columnSorter"; "component": "component"; "columns": "columns"; "selectable": "selectable"; "selectAll": "selectAll"; "selectedAll": "selectedAll"; "sorterValue": "sorterValue"; "columnFilterTemplates": "columnFilterTemplates"; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, false>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": "columnFilter"; "columnFilterState": "columnFilterState"; "columnSorter": "columnSorter"; "component": "component"; "columns": "columns"; "selectable": "selectable"; "selectAll": "selectAll"; "selectedAll": "selectedAll"; "sorterValue": "sorterValue"; "columnFilterTemplates": "columnFilterTemplates"; "summaryRowTemplate": "summaryRowTemplate"; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, false>;
53
52
  }
@@ -1,22 +1,23 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./smart-table/smart-table.component";
3
- import * as i2 from "./smart-table-filter/smart-table-filter.component";
4
- import * as i3 from "./smart-table-items-per-page-selector/smart-table-items-per-page-selector.component";
5
- import * as i4 from "./smart-table-head/smart-table-head.component";
6
- import * as i5 from "./smart-table-filter/filter-input.directive";
7
- import * as i6 from "./smart-table-column-filter/smart-table-column-filter.component";
8
- import * as i7 from "@angular/common";
9
- import * as i8 from "../element-cover/element-cover.module";
10
- import * as i9 from "../table/table.module";
11
- import * as i10 from "../pagination/pagination.module";
12
- import * as i11 from "../smart-pagination/smart-pagination.module";
13
- import * as i12 from "../form/form.module";
14
- import * as i13 from "@angular/forms";
15
- import * as i14 from "../button/button.module";
16
- import * as i15 from "../shared/shared.module";
17
- import * as i16 from "../utilities/utilities.module";
2
+ import * as i1 from "./smart-table-head/smart-table-column-label.pipe";
3
+ import * as i2 from "./smart-table/smart-table.component";
4
+ import * as i3 from "./smart-table-filter/smart-table-filter.component";
5
+ import * as i4 from "./smart-table-items-per-page-selector/smart-table-items-per-page-selector.component";
6
+ import * as i5 from "./smart-table-head/smart-table-head.component";
7
+ import * as i6 from "./smart-table-filter/filter-input.directive";
8
+ import * as i7 from "./smart-table-column-filter/smart-table-column-filter.component";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "../element-cover/element-cover.module";
11
+ import * as i10 from "../table/table.module";
12
+ import * as i11 from "../pagination/pagination.module";
13
+ import * as i12 from "../smart-pagination/smart-pagination.module";
14
+ import * as i13 from "../form/form.module";
15
+ import * as i14 from "@angular/forms";
16
+ import * as i15 from "../button/button.module";
17
+ import * as i16 from "../shared/shared.module";
18
+ import * as i17 from "../utilities/utilities.module";
18
19
  export declare class SmartTableModule {
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<SmartTableModule, [typeof i1.SmartTableComponent, typeof i2.SmartTableFilterComponent, typeof i3.SmartTableItemsPerPageSelectorComponent, typeof i4.SmartTableHeadComponent, typeof i5.FilterInputDirective, typeof i6.SmartTableColumnFilterComponent], [typeof i7.CommonModule, typeof i8.ElementCoverModule, typeof i9.TableModule, typeof i10.PaginationModule, typeof i11.SmartPaginationModule, typeof i12.FormModule, typeof i13.FormsModule, typeof i14.ButtonModule, typeof i15.SharedModule, typeof i13.ReactiveFormsModule, typeof i16.UtilitiesModule], [typeof i1.SmartTableComponent, typeof i2.SmartTableFilterComponent]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartTableModule, [typeof i1.SmartTableColumnLabelPipe, typeof i2.SmartTableComponent, typeof i3.SmartTableFilterComponent, typeof i4.SmartTableItemsPerPageSelectorComponent, typeof i5.SmartTableHeadComponent, typeof i6.FilterInputDirective, typeof i7.SmartTableColumnFilterComponent], [typeof i8.CommonModule, typeof i9.ElementCoverModule, typeof i10.TableModule, typeof i11.PaginationModule, typeof i12.SmartPaginationModule, typeof i13.FormModule, typeof i14.FormsModule, typeof i15.ButtonModule, typeof i16.SharedModule, typeof i14.ReactiveFormsModule, typeof i17.UtilitiesModule], [typeof i2.SmartTableComponent, typeof i3.SmartTableFilterComponent]>;
21
22
  static ɵinj: i0.ɵɵInjectorDeclaration<SmartTableModule>;
22
23
  }
@@ -15,12 +15,12 @@ export interface ITable {
15
15
  * Add borders on all sides of the table and cells.
16
16
  * @type boolean
17
17
  */
18
- bordered?: boolean;
18
+ bordered?: boolean | string;
19
19
  /**
20
20
  * Remove borders on all sides of the table and cells.
21
21
  * @type boolean
22
22
  */
23
- borderless?: boolean;
23
+ borderless?: boolean | string;
24
24
  /**
25
25
  * Put the `<caption>` on the top of the table.
26
26
  * @values 'top'
@@ -35,7 +35,7 @@ export interface ITable {
35
35
  * Enable a hover state on table rows within table body.
36
36
  * @type boolean
37
37
  */
38
- hover?: boolean;
38
+ hover?: boolean | string;
39
39
  /**
40
40
  * Make table responsive across all viewports or pick a maximum breakpoint with which to have a responsive table up to.
41
41
  * @type: {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'}
@@ -45,12 +45,12 @@ export interface ITable {
45
45
  * Make table more compact by cutting all cell `padding` in half.
46
46
  * @type boolean
47
47
  */
48
- small?: boolean;
48
+ small?: boolean | string;
49
49
  /**
50
50
  * Add zebra-striping to any table row within the table body`.
51
51
  * @type boolean
52
52
  */
53
- striped?: boolean;
53
+ striped?: boolean | string;
54
54
  attributes?: {
55
55
  [key: string]: any;
56
56
  };
@@ -66,6 +66,9 @@ export interface ITableElementProps {
66
66
  * @type Colors
67
67
  */
68
68
  color?: Colors;
69
+ _attributes?: {
70
+ [key: string]: any;
71
+ };
69
72
  }
70
73
  export interface ITableRowCellProps extends ITableElementProps {
71
74
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular-pro",
3
- "version": "4.2.41",
3
+ "version": "4.2.42",
4
4
  "description": "CoreUI Pro Components Library for Angular",
5
5
  "copyright": "Copyright 2023 creativeLabs Łukasz Holeczek",
6
6
  "homepage": "https://coreui.io/angular",