@universis/ngx-tables 6.13.4 → 6.13.5
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/universis-ngx-tables.umd.js +88 -8
- package/bundles/universis-ngx-tables.umd.js.map +1 -1
- package/bundles/universis-ngx-tables.umd.min.js +1 -1
- package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
- package/esm2015/lib/components/advanced-aggregator/advanced-aggregator.component.js +6 -3
- package/esm2015/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +6 -3
- package/esm2015/lib/components/advanced-table/advanced-table.component.js +31 -4
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.interface.js +6 -31
- package/esm2015/lib/components/advanced-table/custom-button.formatter.js +45 -0
- package/esm2015/universis-ngx-tables.js +5 -4
- package/esm5/lib/components/advanced-aggregator/advanced-aggregator.component.js +6 -3
- package/esm5/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +6 -3
- package/esm5/lib/components/advanced-table/advanced-table.component.js +31 -4
- package/esm5/lib/components/advanced-table/advanced-table.formatters.interface.js +6 -31
- package/esm5/lib/components/advanced-table/custom-button.formatter.js +56 -0
- package/esm5/universis-ngx-tables.js +5 -4
- package/fesm2015/universis-ngx-tables.js +77 -7
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +87 -8
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/advanced-aggregator/advanced-aggregator.component.d.ts +2 -1
- package/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.d.ts +2 -1
- package/lib/components/advanced-table/advanced-table.component.d.ts +3 -2
- package/lib/components/advanced-table/advanced-table.formatters.interface.d.ts +5 -17
- package/lib/components/advanced-table/custom-button.formatter.d.ts +11 -0
- package/package.json +1 -1
- package/universis-ngx-tables.d.ts +5 -4
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy, ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AdvancedAggregatorService } from '../../services/advanced-aggregator/advanced-aggregator.service';
|
|
3
3
|
import { AdvancedAggregatorConfig, AdvancedAggregatorFilters } from '../../advanced-aggregator';
|
|
4
4
|
import { LoadingService } from '@universis/common';
|
|
@@ -24,6 +24,7 @@ export declare class AdvancedAggregatorComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
selectedGroups$: any;
|
|
25
25
|
filters$: any;
|
|
26
26
|
searchExpression?: string;
|
|
27
|
+
detailTemplate?: TemplateRef<any>;
|
|
27
28
|
eventHandler: EventEmitter<{}>;
|
|
28
29
|
constructor(_changeDetector: ChangeDetectorRef, _advancedAggregatorService: AdvancedAggregatorService, _loadingService: LoadingService);
|
|
29
30
|
ngOnInit(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { TemplatePipe } from '@universis/common';
|
|
3
3
|
export declare class AdvancedAggregatorListComponent implements OnInit {
|
|
4
4
|
private _template;
|
|
@@ -10,6 +10,7 @@ export declare class AdvancedAggregatorListComponent implements OnInit {
|
|
|
10
10
|
* @property {Array<Array<any>>} body The list of data entries to show as the list body
|
|
11
11
|
*/
|
|
12
12
|
body: any;
|
|
13
|
+
detailTemplate?: TemplateRef<any>;
|
|
13
14
|
clickEvent: EventEmitter<{}>;
|
|
14
15
|
constructor(_template: TemplatePipe);
|
|
15
16
|
ngOnInit(): void;
|
|
@@ -7,7 +7,7 @@ import { ClientDataQueryable } from '@themost/client';
|
|
|
7
7
|
import { AdvancedFilterValueProvider } from './advanced-filter-value-provider.service';
|
|
8
8
|
import { BehaviorSubject } from 'rxjs';
|
|
9
9
|
import { TemplatePipe, LoadingService, ConfigurationService, ModalService, ErrorService, ExportSpreadsheetService } from '@universis/common';
|
|
10
|
-
import {
|
|
10
|
+
import { AdvancedTableFormatters } from './advanced-table.formatters.interface';
|
|
11
11
|
import 'datatables.net';
|
|
12
12
|
import 'datatables.net-rowgroup';
|
|
13
13
|
import 'datatables.net-scroller';
|
|
@@ -61,6 +61,7 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
61
61
|
height: number;
|
|
62
62
|
showActions: boolean;
|
|
63
63
|
autoLoad: boolean;
|
|
64
|
+
customEvent: EventEmitter<any>;
|
|
64
65
|
load: EventEmitter<AdvancedTableDataResult>;
|
|
65
66
|
init: EventEmitter<any>;
|
|
66
67
|
reload: EventEmitter<any>;
|
|
@@ -151,7 +152,7 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
151
152
|
private lastQueryParams?;
|
|
152
153
|
private _lastQueryTotalItems;
|
|
153
154
|
private reloadSubscription;
|
|
154
|
-
constructor(_context: AngularDataContext, _columnFormatters:
|
|
155
|
+
constructor(_context: AngularDataContext, _columnFormatters: AdvancedTableFormatters, _activatedRoute: ActivatedRoute, _translateService: TranslateService, _injector: Injector, _advancedFilterValueProvider: AdvancedFilterValueProvider, _element: ElementRef, _template: TemplatePipe, _loading: LoadingService, _http: HttpClient, _columnSelector: ColumnSelectorService, _configuration: ConfigurationService, _exportSpreadsheet: ExportSpreadsheetService, _modalService: ModalService, _errorService: ErrorService, _viewContainerRef: ViewContainerRef);
|
|
155
156
|
search(searchText: any): void;
|
|
156
157
|
fetch(clearSelected?: boolean): void;
|
|
157
158
|
destroy(): void;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
LanguageFormatter?: LanguageFormatter;
|
|
7
|
-
LinkFormatter?: LinkFormatter;
|
|
8
|
-
NestedPropertyFormatter?: NestedPropertyFormatter;
|
|
9
|
-
NgClassFormatter?: NgClassFormatter;
|
|
10
|
-
SelectRowFormatter?: SelectRowFormatter;
|
|
11
|
-
TemplateFormatter?: TemplateFormatter;
|
|
12
|
-
TranslationFormatter?: TranslationFormatter;
|
|
13
|
-
TrueFalseFormatter?: TrueFalseFormatter;
|
|
14
|
-
ActionButtonFormatter?: ActionButtonFormatter;
|
|
15
|
-
ActionSplitButtonFormatter?: ActionSplitButtonFormatter;
|
|
16
|
-
}
|
|
17
|
-
export declare const FORMATTERS: IAdvancedTableFormatters;
|
|
1
|
+
import { AdvancedColumnFormatter } from './advanced-table.formatters';
|
|
2
|
+
export declare type AdvancedTableFormatters = {
|
|
3
|
+
[k: string]: AdvancedColumnFormatter;
|
|
4
|
+
};
|
|
5
|
+
export declare const FORMATTERS: AdvancedTableFormatters;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="datatables.net" />
|
|
2
|
+
import { ButtonFormatter } from './advanced-table.formatters';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
dispatchCustomEvent: (type: string, event: any) => void;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class CustomButtonFormatter extends ButtonFormatter {
|
|
9
|
+
constructor();
|
|
10
|
+
render(data: any, type: string, row: any, meta: DataTables.CellMetaSettings): string;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
5
|
+
export { CustomButtonFormatter as ɵa } from './lib/components/advanced-table/custom-button.formatter';
|
|
6
|
+
export { AdvancedSearchState as ɵb } from './lib/directives/advance-search-state.directive';
|
|
7
|
+
export { AdvancedTableState as ɵd } from './lib/directives/advance-table-state.directive';
|
|
8
|
+
export { AdvancedSearchRouterState as ɵe } from './lib/directives/advanced-search-router-state.directive';
|
|
9
|
+
export { NgxTablesState as ɵc } from './lib/reducers';
|