@coreui/angular-pro 4.2.33 → 4.2.34

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.
@@ -1,7 +1,7 @@
1
1
  import { AfterContentInit, EventEmitter, IterableDiffers, KeyValueDiffers, OnChanges, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
3
3
  import { ITable } from '../../table/table.type';
4
- import { IColumnFilter, IColumnFilterValue, IItem, IItemInternal, ISmartTable, ISorter, ISorterValue, ITableFilter, ITableGroupProps, ItemsPerPageSelect } from '../smart-table.type';
4
+ import { IColumn, IColumnFilter, IColumnFilterValue, IItem, IItemInternal, ISmartTable, ISorter, ISorterValue, ITableFilter, ITableGroupProps, ItemsPerPageSelect } from '../smart-table.type';
5
5
  import { TemplateIdDirective } from '../../shared';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class SmartTableComponent implements ISmartTable, AfterContentInit, OnChanges {
@@ -29,8 +29,8 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
29
29
  set clickableRows(value: boolean);
30
30
  get clickableRows(): boolean;
31
31
  private _clickableRows;
32
- set columns(value: any[]);
33
- get columns(): any[];
32
+ set columns(value: (string | IColumn)[]);
33
+ get columns(): (string | IColumn)[];
34
34
  private _columns?;
35
35
  columnFilter?: boolean | IColumnFilter;
36
36
  set columnFilterValue(value: IColumnFilterValue);
@@ -102,8 +102,8 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
102
102
  get itemsOnActivePage(): IItemInternal[];
103
103
  get currentItems(): IItemInternal[];
104
104
  get genCols(): string[];
105
- get rawColumnNames(): any[];
106
- get itemsDataColumns(): any[];
105
+ get rawColumnNames(): string[];
106
+ get itemsDataColumns(): string[];
107
107
  get sortedItems(): IItemInternal[];
108
108
  get tableFilterEvent(): 'change' | 'input';
109
109
  private _columnFiltered;
@@ -132,7 +132,9 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
132
132
  align?: "top" | "bottom" | "middle" | undefined;
133
133
  color?: string | undefined;
134
134
  } | undefined;
135
- tableDataCellClasses(item: IItem, colName: string): any;
135
+ tableDataCellClasses(item: IItem, colName: string): string | {
136
+ [klass: string]: any;
137
+ } | undefined;
136
138
  getColumnName($event: MouseEvent): string;
137
139
  handleRowClick(param: {
138
140
  $event: MouseEvent;
@@ -30,8 +30,8 @@ export declare class SmartTableHeadComponent implements OnInit {
30
30
  getColumnSorterState(column: IColumn | string): string | number;
31
31
  prettifyName(name: string): string;
32
32
  handleSortClick(column: IColumn | string, i: number): void;
33
- columnFilterEnabled(column: IColumn | string): boolean;
34
- columnSorterEnabled(column: IColumn | string): boolean;
33
+ columnFilterEnabled(column: IColumn | string): boolean | ((column: import("../smart-table.type").IItem, value: string) => boolean);
34
+ columnSorterEnabled(column: IColumn | string): boolean | ((a: import("../smart-table.type").IItem, b: import("../smart-table.type").IItem) => number);
35
35
  handleColumnFilterValueChange($event: {
36
36
  value: string;
37
37
  type?: string;
@@ -125,7 +125,7 @@ export interface ISmartTable {
125
125
  pagination?: boolean;
126
126
  /**
127
127
  * Properties to `CSmartPagination` component.
128
- * @link https://coreui.io/react/docs/4.0/components/smart-pagination#csmartpagination
128
+ * @link https://coreui.io/angular/docs/components/smart-pagination#csmartpagination
129
129
  * todo or remove?
130
130
  */
131
131
  /**
@@ -160,12 +160,12 @@ export interface ISmartTable {
160
160
  sortingIconDescending?: TemplateRef<any>;
161
161
  /**
162
162
  * Properties to `CTableBody` component.
163
- * @link https://coreui.io/react/docs/4.0/components/table/#ctablebody
163
+ * @link https://coreui.io/angular/docs/components/table/#ctablebody
164
164
  * todo or remove?
165
165
  */
166
166
  /**
167
167
  * Properties to `CTableFoot` component.
168
- * @link https://coreui.io/react/docs/4.0/components/table/#ctablefoot
168
+ * @link https://coreui.io/angular/docs/components/table/#ctablefoot
169
169
  * todo or remove?
170
170
  */
171
171
  /**
@@ -197,12 +197,12 @@ export interface ISmartTable {
197
197
  tableFilterValue?: string;
198
198
  /**
199
199
  * Properties to `CTableHead` component.
200
- * @link https://coreui.io/react/docs/4.0/components/table/#ctablehead
200
+ * @link https://coreui.io/angular/docs/components/table/#ctablehead
201
201
  * todo or remove?
202
202
  */
203
203
  /**
204
204
  * Properties to `CTable` component.
205
- * @link https://coreui.io/react/docs/4.0/components/table/#ctable
205
+ * @link https://coreui.io/angular/docs/components/table/#ctable
206
206
  */
207
207
  tableProps?: ITable;
208
208
  }
@@ -214,10 +214,10 @@ export interface IColumnFilterValue {
214
214
  [key: string]: any;
215
215
  }
216
216
  export interface IColumn {
217
- filter?: boolean;
217
+ filter?: boolean | ((column: IItem, value: string) => boolean);
218
218
  label?: string;
219
219
  key: string;
220
- sorter?: boolean;
220
+ sorter?: boolean | ((a: IItem, b: IItem) => number);
221
221
  _style?: any;
222
222
  _props?: ITableHeaderCellProps;
223
223
  _classes?: string | string[] | Set<string> | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular-pro",
3
- "version": "4.2.33",
3
+ "version": "4.2.34",
4
4
  "description": "CoreUI Pro Components Library for Angular",
5
5
  "homepage": "https://coreui.io/angular",
6
6
  "author": {