@energycap/components 0.27.3 → 0.27.4
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/bundles/energycap-components.umd.js +57 -49
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +1 -1
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/esm2015/lib/components.module.js +1 -1
- package/esm2015/lib/display/table/searchable-table.component.js +15 -7
- package/fesm2015/energycap-components.js +56 -48
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/display/table/searchable-table.component.d.ts +9 -5
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { ErrorService } from '../../core/error.service';
|
|
6
|
+
import { RowCountPipe } from '../../shared/display/pipes/row-count.pipe';
|
|
6
7
|
import { Overlay } from '../view-overlay/view-overlay.component';
|
|
7
|
-
import {
|
|
8
|
+
import { ResizableColumnComponent } from './resizable-column.component';
|
|
8
9
|
import { PagingInfo } from './table-pagination.component';
|
|
9
|
-
import { RowCountPipe } from '../../shared/display/pipes/row-count.pipe';
|
|
10
10
|
import { TableSelectableRowContext } from './table-selectable-row.component';
|
|
11
|
-
import {
|
|
11
|
+
import { TableSort } from './table.component';
|
|
12
12
|
export declare type TableSearchResults = {
|
|
13
13
|
items: unknown[];
|
|
14
14
|
totalItems: number;
|
|
@@ -17,7 +17,7 @@ export declare type TableSearchResults = {
|
|
|
17
17
|
export declare type SearchableTableRefreshOptions = {
|
|
18
18
|
clearSearch?: boolean;
|
|
19
19
|
};
|
|
20
|
-
export declare class SearchableTableComponent implements OnInit, OnDestroy {
|
|
20
|
+
export declare class SearchableTableComponent implements OnInit, OnDestroy, OnChanges {
|
|
21
21
|
private errorService;
|
|
22
22
|
private translateService;
|
|
23
23
|
private rowCountPipe;
|
|
@@ -142,6 +142,9 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy {
|
|
|
142
142
|
additionalCountText: string;
|
|
143
143
|
/** Enables table row selection and row highlighting styles when true */
|
|
144
144
|
selectable: boolean;
|
|
145
|
+
/**Defaults to undefined. Specify your own template if an ec-table wrapped around your transcluded content won't meet your needs
|
|
146
|
+
*/
|
|
147
|
+
customContentTemplate?: TemplateRef<any>;
|
|
145
148
|
/**
|
|
146
149
|
* PagingInfo for the current page.
|
|
147
150
|
*/
|
|
@@ -167,6 +170,7 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy {
|
|
|
167
170
|
/** Triggers the initial load of the table */
|
|
168
171
|
private initTable;
|
|
169
172
|
constructor(errorService: ErrorService, translateService: TranslateService, rowCountPipe: RowCountPipe);
|
|
173
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
170
174
|
ngOnInit(): void;
|
|
171
175
|
ngOnDestroy(): void;
|
|
172
176
|
/** Pass along sort to parent component */
|