@universis/ngx-tables 0.8.5 → 15.0.2
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/esm2020/lib/actions/table.actions.mjs +27 -0
- package/esm2020/lib/advanced-aggregator.mjs +2 -0
- package/esm2020/lib/components/add-items/add-items.component.mjs +138 -0
- package/esm2020/lib/components/advanced-aggregator/advanced-aggregator.component.mjs +126 -0
- package/esm2020/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.mjs +53 -0
- package/esm2020/lib/components/advanced-list/advanced-list.component.mjs +184 -0
- package/esm2020/lib/components/advanced-row-action/advanced-row-action.component.mjs +178 -0
- package/esm2020/lib/components/advanced-search-form/advanced-search-form.component.mjs +154 -0
- package/esm2020/lib/components/advanced-select/advanced-select.component.mjs +42 -0
- package/esm2020/lib/components/advanced-select/advanced-select.service.mjs +38 -0
- package/esm2020/lib/components/advanced-table/advanced-filter-value-provider.service.mjs +31 -0
- package/esm2020/lib/components/advanced-table/advanced-table-resolvers.mjs +40 -0
- package/esm2020/lib/components/advanced-table/advanced-table-search-base.mjs +31 -0
- package/esm2020/lib/components/advanced-table/advanced-table-search.component.mjs +525 -0
- package/esm2020/lib/components/advanced-table/advanced-table-settings.component.mjs +108 -0
- package/esm2020/lib/components/advanced-table/advanced-table.component.mjs +1599 -0
- package/esm2020/lib/components/advanced-table/advanced-table.formatters.interface.mjs +17 -0
- package/esm2020/lib/components/advanced-table/advanced-table.formatters.mjs +429 -0
- package/esm2020/lib/components/advanced-table/advanced-table.interfaces.mjs +2 -0
- package/esm2020/lib/components/advanced-table-modal/advanced-table-modal-base.component.mjs +420 -0
- package/esm2020/lib/components/column-selector/column-selector.component.mjs +205 -0
- package/esm2020/lib/components/column-selector/column-selector.service.mjs +45 -0
- package/esm2020/lib/components/table-simple-header/table-simple-header.component.mjs +52 -0
- package/esm2020/lib/directives/advance-search-state.directive.mjs +111 -0
- package/esm2020/lib/directives/advance-table-state.directive.mjs +63 -0
- package/esm2020/lib/directives/advanced-search-router-state.directive.mjs +64 -0
- package/esm2020/lib/directives/advanced-table-editor.directive.mjs +154 -0
- package/esm2020/lib/directives/btnexp.directive.mjs +222 -0
- package/esm2020/lib/i18n/tables.el.mjs +129 -0
- package/esm2020/lib/i18n/tables.en.mjs +128 -0
- package/esm2020/lib/pipes/advanced-aggregator.pipe.mjs +38 -0
- package/esm2020/lib/pipes/advansed-aggregator-list-title-parse.pipe.mjs +45 -0
- package/esm2020/lib/reducers/index.mjs +37 -0
- package/esm2020/lib/services/advanced-aggregator/advanced-aggregator.service.mjs +119 -0
- package/esm2020/lib/tables.activated-table.service.mjs +46 -0
- package/esm2020/lib/tables.module.mjs +218 -0
- package/esm2020/public_api.mjs +37 -0
- package/esm2020/universis-ngx-tables.mjs +5 -0
- package/fesm2015/{universis-ngx-tables.js → universis-ngx-tables.mjs} +2927 -2729
- package/fesm2015/universis-ngx-tables.mjs.map +1 -0
- package/fesm2020/universis-ngx-tables.mjs +5609 -0
- package/fesm2020/universis-ngx-tables.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/actions/table.actions.d.ts +4 -4
- package/lib/components/add-items/add-items.component.d.ts +14 -21
- package/lib/components/advanced-aggregator/advanced-aggregator.component.d.ts +15 -9
- package/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.d.ts +4 -1
- package/lib/components/advanced-list/advanced-list.component.d.ts +17 -14
- package/lib/components/advanced-row-action/advanced-row-action.component.d.ts +20 -23
- package/lib/components/advanced-search-form/advanced-search-form.component.d.ts +7 -4
- package/lib/components/advanced-select/advanced-select.component.d.ts +3 -1
- package/lib/components/advanced-select/advanced-select.service.d.ts +3 -0
- package/lib/components/advanced-table/advanced-filter-value-provider.service.d.ts +3 -0
- package/lib/components/advanced-table/advanced-table-resolvers.d.ts +5 -0
- package/lib/components/advanced-table/advanced-table-search-base.d.ts +6 -2
- package/lib/components/advanced-table/advanced-table-search.component.d.ts +11 -7
- package/lib/components/advanced-table/advanced-table-settings.component.d.ts +8 -6
- package/lib/components/advanced-table/advanced-table.component.d.ts +33 -25
- package/lib/components/advanced-table/advanced-table.formatters.d.ts +11 -11
- package/lib/components/advanced-table-modal/advanced-table-modal-base.component.d.ts +15 -12
- package/lib/components/column-selector/column-selector.component.d.ts +9 -6
- package/lib/components/column-selector/column-selector.service.d.ts +3 -0
- package/lib/components/table-simple-header/table-simple-header.component.d.ts +8 -3
- package/lib/directives/advance-search-state.directive.d.ts +6 -3
- package/lib/directives/advance-table-state.directive.d.ts +4 -1
- package/lib/directives/advanced-search-router-state.directive.d.ts +9 -6
- package/lib/directives/advanced-table-editor.directive.d.ts +4 -1
- package/lib/directives/btnexp.directive.d.ts +12 -9
- package/lib/i18n/tables.el.d.ts +107 -107
- package/lib/i18n/tables.en.d.ts +106 -106
- package/lib/pipes/advanced-aggregator.pipe.d.ts +7 -4
- package/lib/pipes/advansed-aggregator-list-title-parse.pipe.d.ts +9 -6
- package/lib/reducers/index.d.ts +5 -3
- package/lib/services/advanced-aggregator/advanced-aggregator.service.d.ts +11 -8
- package/lib/tables.activated-table.service.d.ts +10 -6
- package/lib/tables.module.d.ts +36 -0
- package/package.json +44 -36
- package/public_api.d.ts +3 -0
- package/bundles/universis-ngx-tables.umd.js +0 -6101
- package/bundles/universis-ngx-tables.umd.js.map +0 -1
- package/bundles/universis-ngx-tables.umd.min.js +0 -2
- package/bundles/universis-ngx-tables.umd.min.js.map +0 -1
- package/esm2015/lib/actions/table.actions.js +0 -28
- package/esm2015/lib/advanced-aggregator.js +0 -2
- package/esm2015/lib/components/add-items/add-items.component.js +0 -142
- package/esm2015/lib/components/advanced-aggregator/advanced-aggregator.component.js +0 -120
- package/esm2015/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +0 -53
- package/esm2015/lib/components/advanced-list/advanced-list.component.js +0 -173
- package/esm2015/lib/components/advanced-row-action/advanced-row-action.component.js +0 -184
- package/esm2015/lib/components/advanced-search-form/advanced-search-form.component.js +0 -142
- package/esm2015/lib/components/advanced-select/advanced-select.component.js +0 -65
- package/esm2015/lib/components/advanced-select/advanced-select.service.js +0 -40
- package/esm2015/lib/components/advanced-table/advanced-filter-value-provider.service.js +0 -37
- package/esm2015/lib/components/advanced-table/advanced-table-resolvers.js +0 -44
- package/esm2015/lib/components/advanced-table/advanced-table-search-base.js +0 -28
- package/esm2015/lib/components/advanced-table/advanced-table-search.component.js +0 -526
- package/esm2015/lib/components/advanced-table/advanced-table-settings.component.js +0 -109
- package/esm2015/lib/components/advanced-table/advanced-table.component.js +0 -1523
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.interface.js +0 -18
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.js +0 -429
- package/esm2015/lib/components/advanced-table/advanced-table.interfaces.js +0 -2
- package/esm2015/lib/components/advanced-table-modal/advanced-table-modal-base.component.js +0 -397
- package/esm2015/lib/components/column-selector/column-selector.component.js +0 -202
- package/esm2015/lib/components/column-selector/column-selector.service.js +0 -47
- package/esm2015/lib/components/table-simple-header/table-simple-header.component.js +0 -52
- package/esm2015/lib/directives/advance-search-state.directive.js +0 -108
- package/esm2015/lib/directives/advance-table-state.directive.js +0 -63
- package/esm2015/lib/directives/advanced-search-router-state.directive.js +0 -63
- package/esm2015/lib/directives/advanced-table-editor.directive.js +0 -156
- package/esm2015/lib/directives/btnexp.directive.js +0 -229
- package/esm2015/lib/i18n/tables.el.js +0 -130
- package/esm2015/lib/i18n/tables.en.js +0 -129
- package/esm2015/lib/pipes/advanced-aggregator.pipe.js +0 -35
- package/esm2015/lib/pipes/advansed-aggregator-list-title-parse.pipe.js +0 -46
- package/esm2015/lib/reducers/index.js +0 -32
- package/esm2015/lib/services/advanced-aggregator/advanced-aggregator.service.js +0 -120
- package/esm2015/lib/tables.activated-table.service.js +0 -50
- package/esm2015/lib/tables.module.js +0 -149
- package/esm2015/public_api.js +0 -33
- package/esm2015/universis-ngx-tables.js +0 -9
- package/esm5/lib/actions/table.actions.js +0 -34
- package/esm5/lib/advanced-aggregator.js +0 -2
- package/esm5/lib/components/add-items/add-items.component.js +0 -153
- package/esm5/lib/components/advanced-aggregator/advanced-aggregator.component.js +0 -169
- package/esm5/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +0 -56
- package/esm5/lib/components/advanced-list/advanced-list.component.js +0 -185
- package/esm5/lib/components/advanced-row-action/advanced-row-action.component.js +0 -188
- package/esm5/lib/components/advanced-search-form/advanced-search-form.component.js +0 -145
- package/esm5/lib/components/advanced-select/advanced-select.component.js +0 -71
- package/esm5/lib/components/advanced-select/advanced-select.service.js +0 -43
- package/esm5/lib/components/advanced-table/advanced-filter-value-provider.service.js +0 -50
- package/esm5/lib/components/advanced-table/advanced-table-resolvers.js +0 -48
- package/esm5/lib/components/advanced-table/advanced-table-search-base.js +0 -34
- package/esm5/lib/components/advanced-table/advanced-table-search.component.js +0 -563
- package/esm5/lib/components/advanced-table/advanced-table-settings.component.js +0 -115
- package/esm5/lib/components/advanced-table/advanced-table.component.js +0 -1548
- package/esm5/lib/components/advanced-table/advanced-table.formatters.interface.js +0 -18
- package/esm5/lib/components/advanced-table/advanced-table.formatters.js +0 -480
- package/esm5/lib/components/advanced-table/advanced-table.interfaces.js +0 -2
- package/esm5/lib/components/advanced-table-modal/advanced-table-modal-base.component.js +0 -314
- package/esm5/lib/components/column-selector/column-selector.component.js +0 -270
- package/esm5/lib/components/column-selector/column-selector.service.js +0 -50
- package/esm5/lib/components/table-simple-header/table-simple-header.component.js +0 -58
- package/esm5/lib/directives/advance-search-state.directive.js +0 -116
- package/esm5/lib/directives/advance-table-state.directive.js +0 -65
- package/esm5/lib/directives/advanced-search-router-state.directive.js +0 -71
- package/esm5/lib/directives/advanced-table-editor.directive.js +0 -196
- package/esm5/lib/directives/btnexp.directive.js +0 -257
- package/esm5/lib/i18n/tables.el.js +0 -130
- package/esm5/lib/i18n/tables.en.js +0 -129
- package/esm5/lib/pipes/advanced-aggregator.pipe.js +0 -39
- package/esm5/lib/pipes/advansed-aggregator-list-title-parse.pipe.js +0 -49
- package/esm5/lib/reducers/index.js +0 -34
- package/esm5/lib/services/advanced-aggregator/advanced-aggregator.service.js +0 -134
- package/esm5/lib/tables.activated-table.service.js +0 -57
- package/esm5/lib/tables.module.js +0 -154
- package/esm5/public_api.js +0 -33
- package/esm5/universis-ngx-tables.js +0 -9
- package/fesm2015/universis-ngx-tables.js.map +0 -1
- package/fesm5/universis-ngx-tables.js +0 -5737
- package/fesm5/universis-ngx-tables.js.map +0 -1
- package/universis-ngx-tables.d.ts +0 -8
- package/universis-ngx-tables.metadata.json +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, InjectionToken, Injector, OnDestroy,
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, OnDestroy, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { AngularDataContext } from '@themost/angular';
|
|
3
3
|
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -14,19 +14,20 @@ import 'datatables.net-colreorder';
|
|
|
14
14
|
import 'datatables.net-buttons';
|
|
15
15
|
import { HttpClient } from '@angular/common/http';
|
|
16
16
|
import { ColumnSelectorService } from '../column-selector/column-selector.service';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
17
18
|
export interface AdvancedTableDataResult {
|
|
18
19
|
recordsTotal: number;
|
|
19
20
|
recordsFiltered: number;
|
|
20
21
|
data: Array<any>;
|
|
21
22
|
}
|
|
22
|
-
export declare let COLUMN_FORMATTERS: InjectionToken<
|
|
23
|
+
export declare let COLUMN_FORMATTERS: InjectionToken<unknown>;
|
|
23
24
|
export declare class ExportLimitExceededError extends RangeError {
|
|
24
25
|
constructor(message: string);
|
|
25
26
|
}
|
|
26
27
|
export declare class AdvancedTableConfiguration {
|
|
27
28
|
static cast(input: any, clone?: boolean): TableConfiguration;
|
|
28
29
|
}
|
|
29
|
-
export declare class AdvancedTableComponent implements
|
|
30
|
+
export declare class AdvancedTableComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
30
31
|
private _context;
|
|
31
32
|
private _columnFormatters;
|
|
32
33
|
private _activatedRoute;
|
|
@@ -42,8 +43,9 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
42
43
|
private _exportSpreadsheet;
|
|
43
44
|
private _modalService;
|
|
44
45
|
private _errorService;
|
|
45
|
-
private
|
|
46
|
-
private
|
|
46
|
+
private _changeDetectorRef;
|
|
47
|
+
private _query?;
|
|
48
|
+
private _config?;
|
|
47
49
|
private _firstLoad;
|
|
48
50
|
private _showFooter;
|
|
49
51
|
private _showHeader;
|
|
@@ -51,10 +53,10 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
51
53
|
private _id;
|
|
52
54
|
smartSelect: boolean;
|
|
53
55
|
configChanges: BehaviorSubject<any>;
|
|
54
|
-
table
|
|
55
|
-
emptyTable
|
|
56
|
-
errorTemplate
|
|
57
|
-
loadingTable
|
|
56
|
+
table?: ElementRef;
|
|
57
|
+
emptyTable?: ElementRef;
|
|
58
|
+
errorTemplate?: ElementRef;
|
|
59
|
+
loadingTable?: ElementRef;
|
|
58
60
|
height: number;
|
|
59
61
|
showActions: boolean;
|
|
60
62
|
autoLoad: boolean;
|
|
@@ -80,18 +82,18 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
80
82
|
pageLength: number;
|
|
81
83
|
columnOrdering: boolean;
|
|
82
84
|
stateSave: boolean;
|
|
83
|
-
stateLoadCallback
|
|
84
|
-
stateSaveCallback
|
|
85
|
+
stateLoadCallback?: (settings: any, callback: (state: any) => void) => void;
|
|
86
|
+
stateSaveCallback?: (settings: any, state: any) => void;
|
|
85
87
|
scrollY: number;
|
|
86
88
|
scrollX: boolean;
|
|
87
89
|
/**
|
|
88
90
|
* Enables row selection. The defaulr value is false
|
|
89
91
|
*/
|
|
90
|
-
selectable: boolean;
|
|
92
|
+
selectable: boolean | undefined;
|
|
91
93
|
/**
|
|
92
94
|
* Enables or disable multiple selection. The default values is true.
|
|
93
95
|
*/
|
|
94
|
-
multipleSelect: boolean;
|
|
96
|
+
multipleSelect: boolean | undefined;
|
|
95
97
|
/**
|
|
96
98
|
* Enables custom selection and hides select column. The default value is false
|
|
97
99
|
*/
|
|
@@ -101,36 +103,41 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
101
103
|
/**
|
|
102
104
|
* Gets or sets a URL to load table configuration from
|
|
103
105
|
*/
|
|
104
|
-
configSrc
|
|
106
|
+
configSrc?: string;
|
|
105
107
|
lastError: any;
|
|
106
108
|
/**
|
|
107
109
|
* Gets or sets table configuration
|
|
108
110
|
*/
|
|
109
|
-
config: TableConfiguration;
|
|
110
|
-
|
|
111
|
+
set config(value: TableConfiguration);
|
|
112
|
+
get config(): TableConfiguration;
|
|
113
|
+
get lastQueryTotalItems(): number;
|
|
111
114
|
/**
|
|
112
115
|
* Indicates whether table footer will be visible or not
|
|
113
116
|
*/
|
|
114
|
-
showFooter: boolean;
|
|
117
|
+
set showFooter(value: boolean);
|
|
118
|
+
get showFooter(): boolean;
|
|
115
119
|
/**
|
|
116
120
|
* Indicates whether table footer will be visible or not
|
|
117
121
|
*/
|
|
118
|
-
showHeader: boolean;
|
|
122
|
+
set showHeader(value: boolean);
|
|
123
|
+
get showHeader(): boolean;
|
|
119
124
|
/**
|
|
120
125
|
* Indicates whether paging information will be visible or not
|
|
121
126
|
*/
|
|
122
|
-
showPaging: boolean;
|
|
127
|
+
set showPaging(value: boolean);
|
|
128
|
+
get showPaging(): boolean;
|
|
123
129
|
/**
|
|
124
130
|
* Gets or sets an active query for this table
|
|
125
131
|
*/
|
|
126
|
-
query: ClientDataQueryable;
|
|
132
|
+
set query(value: ClientDataQueryable | undefined);
|
|
133
|
+
get query(): ClientDataQueryable | undefined;
|
|
127
134
|
readonly translator: TranslatePipe;
|
|
128
135
|
dataTable: any;
|
|
129
136
|
dtOptions: any;
|
|
130
|
-
private lastQueryParams
|
|
137
|
+
private lastQueryParams?;
|
|
131
138
|
private _lastQueryTotalItems;
|
|
132
139
|
private reloadSubscription;
|
|
133
|
-
constructor(_context: AngularDataContext, _columnFormatters: IAdvancedTableFormatters, _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);
|
|
140
|
+
constructor(_context: AngularDataContext, _columnFormatters: IAdvancedTableFormatters, _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, _changeDetectorRef: ChangeDetectorRef);
|
|
134
141
|
search(searchText: any): void;
|
|
135
142
|
fetch(clearSelected?: boolean): void;
|
|
136
143
|
destroy(): void;
|
|
@@ -151,13 +158,12 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
151
158
|
* @param type
|
|
152
159
|
* @param row
|
|
153
160
|
* @param meta
|
|
154
|
-
* @private
|
|
155
161
|
*/
|
|
156
162
|
private _renderSelect;
|
|
157
|
-
|
|
163
|
+
ngAfterViewInit(): void;
|
|
158
164
|
scrollTop(value: number): void;
|
|
159
165
|
scrollLeft(value: number): void;
|
|
160
|
-
|
|
166
|
+
get lastQuery(): ClientDataQueryable | undefined;
|
|
161
167
|
/**
|
|
162
168
|
* Fetches and updates a single row
|
|
163
169
|
* @param find - Any object which is being converted to a query
|
|
@@ -190,4 +196,6 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
190
196
|
body: any[];
|
|
191
197
|
header: any[];
|
|
192
198
|
};
|
|
199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableComponent, never>;
|
|
200
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedTableComponent, "app-advanced-table", never, { "height": "height"; "showActions": "showActions"; "autoLoad": "autoLoad"; "reload": "reload"; "scrollable": "scrollable"; "serverSide": "serverSide"; "lengthMenu": "lengthMenu"; "paging": "paging"; "pageLength": "pageLength"; "columnOrdering": "columnOrdering"; "stateSave": "stateSave"; "stateLoadCallback": "stateLoadCallback"; "stateSaveCallback": "stateSaveCallback"; "scrollY": "scrollY"; "scrollX": "scrollX"; "selectable": "selectable"; "multipleSelect": "multipleSelect"; "customSelect": "customSelect"; "selected": "selected"; "configSrc": "configSrc"; "config": "config"; "showFooter": "showFooter"; "showHeader": "showHeader"; "showPaging": "showPaging"; "query": "query"; }, { "load": "load"; "init": "init"; "select": "select"; "draw": "draw"; "page": "page"; "order": "order"; "scroll": "scroll"; "selectedItems": "selectedItems"; "loading": "loading"; }, never, never, false, never>;
|
|
193
201
|
}
|
|
@@ -3,16 +3,16 @@ import { Injector } from '@angular/core';
|
|
|
3
3
|
import { NavigationExtras, UrlTree } from '@angular/router';
|
|
4
4
|
export declare abstract class AdvancedColumnFormatter implements TableColumnConfiguration {
|
|
5
5
|
static templateCache: Map<string, (data: any) => string>;
|
|
6
|
-
protected injector
|
|
7
|
-
className
|
|
8
|
-
defaultContent
|
|
9
|
-
formatString
|
|
10
|
-
formatter
|
|
11
|
-
hidden
|
|
12
|
-
name
|
|
13
|
-
order
|
|
14
|
-
property
|
|
15
|
-
sortable
|
|
6
|
+
protected injector?: Injector;
|
|
7
|
+
className?: string;
|
|
8
|
+
defaultContent?: string;
|
|
9
|
+
formatString?: string;
|
|
10
|
+
formatter?: string;
|
|
11
|
+
hidden?: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
order?: string;
|
|
14
|
+
property?: string;
|
|
15
|
+
sortable?: boolean;
|
|
16
16
|
title: string;
|
|
17
17
|
formatOptions?: any;
|
|
18
18
|
actions?: Array<any>;
|
|
@@ -21,7 +21,7 @@ export declare abstract class AdvancedColumnFormatter implements TableColumnConf
|
|
|
21
21
|
protected createUrlTree(data: any, options: {
|
|
22
22
|
commands: any[];
|
|
23
23
|
navigationExtras?: NavigationExtras;
|
|
24
|
-
}): UrlTree;
|
|
24
|
+
}): UrlTree | undefined;
|
|
25
25
|
}
|
|
26
26
|
export interface OnAdvancedColumnAfterRender {
|
|
27
27
|
afterRender(cell: any, cellData: any, rowData: any, rowIndex: number, colIndex: number): void;
|
|
@@ -7,6 +7,7 @@ import { AdvancedTableComponent, AdvancedTableDataResult } from '../advanced-tab
|
|
|
7
7
|
import { AngularDataContext } from '@themost/angular';
|
|
8
8
|
import { AdvancedFilterValueProvider } from './../advanced-table/advanced-filter-value-provider.service';
|
|
9
9
|
import { DatePipe } from '@angular/common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
10
11
|
export declare interface PageInfo {
|
|
11
12
|
page: number;
|
|
12
13
|
pages: number;
|
|
@@ -24,17 +25,17 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
24
25
|
protected datePipe: DatePipe;
|
|
25
26
|
ngAfterViewInit(): void;
|
|
26
27
|
private static readonly DEFAULT_ALL_FILTER;
|
|
27
|
-
advancedTable
|
|
28
|
-
emptyTable
|
|
29
|
-
dropdownFilter
|
|
30
|
-
dropdownLength
|
|
31
|
-
searchElement
|
|
32
|
-
tableConfig
|
|
33
|
-
tableConfigSrc
|
|
28
|
+
advancedTable?: AdvancedTableComponent;
|
|
29
|
+
emptyTable?: ElementRef;
|
|
30
|
+
dropdownFilter?: ElementRef;
|
|
31
|
+
dropdownLength?: ElementRef;
|
|
32
|
+
searchElement?: any;
|
|
33
|
+
tableConfig?: TableConfiguration;
|
|
34
|
+
tableConfigSrc?: string;
|
|
34
35
|
pageLength: number;
|
|
35
|
-
searchText
|
|
36
|
+
searchText?: string;
|
|
36
37
|
lengthMenu: Array<number>;
|
|
37
|
-
private subscription
|
|
38
|
+
private subscription?;
|
|
38
39
|
recordsTotal: number;
|
|
39
40
|
loading: boolean;
|
|
40
41
|
recordsFiltered: number;
|
|
@@ -45,7 +46,7 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
45
46
|
};
|
|
46
47
|
pageInfo: PageInfo;
|
|
47
48
|
private _template;
|
|
48
|
-
configChangesSubscription
|
|
49
|
+
configChangesSubscription?: Subscription;
|
|
49
50
|
constructor(_router: Router, _activatedRoute: ActivatedRoute, _context: AngularDataContext, advancedFilterValueProvider: AdvancedFilterValueProvider, datePipe: DatePipe);
|
|
50
51
|
private _getInputs;
|
|
51
52
|
hasInputs(): Array<string>;
|
|
@@ -69,7 +70,7 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
69
70
|
*
|
|
70
71
|
* @param tableConfig {object} The table configuration from json file
|
|
71
72
|
* @param defaultFilterValues {object} A list of default filters
|
|
72
|
-
* @param
|
|
73
|
+
* @param searchItem The searchItem to use
|
|
73
74
|
*
|
|
74
75
|
*/
|
|
75
76
|
getFilters(tableConfig: any, defaultFilterValues: {}, searchItem: any): Array<string>;
|
|
@@ -81,8 +82,10 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
81
82
|
*
|
|
82
83
|
* Runs a filter against the modal table
|
|
83
84
|
*
|
|
84
|
-
* @param
|
|
85
|
+
* @param filter The filter to use in the search
|
|
85
86
|
*
|
|
86
87
|
*/
|
|
87
88
|
advancedSearch(filter: any): Promise<any>;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableModalBaseComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedTableModalBaseComponent, "app-advanced-table-modal", never, { "tableConfig": "tableConfig"; "tableConfigSrc": "tableConfigSrc"; "pageLength": "pageLength"; "searchText": "searchText"; "lengthMenu": "lengthMenu"; "defaultFilter": "defaultFilter"; }, {}, never, never, false, never>;
|
|
88
91
|
}
|
|
@@ -3,24 +3,25 @@ import { FormControl } from '@angular/forms';
|
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { RouterModalOkCancel } from '@universis/common/routing';
|
|
5
5
|
import { BsModalRef } from 'ngx-bootstrap/modal';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ColumnSelectorComponent extends RouterModalOkCancel implements OnInit, OnDestroy, OnChanges {
|
|
7
8
|
private _modalRef;
|
|
8
9
|
private _changeDetector;
|
|
9
|
-
columns
|
|
10
|
+
columns?: {
|
|
10
11
|
key: string;
|
|
11
12
|
title: string;
|
|
12
13
|
visible: boolean;
|
|
13
14
|
index: number;
|
|
14
15
|
}[];
|
|
15
16
|
dismiss: EventEmitter<any>;
|
|
16
|
-
selectedColumns
|
|
17
|
+
selectedColumns?: {
|
|
17
18
|
key: string;
|
|
18
19
|
title: string;
|
|
19
20
|
}[];
|
|
20
|
-
moveUpButton
|
|
21
|
-
moveDownButton
|
|
22
|
-
availableColumnsControl: FormControl
|
|
23
|
-
selectedColumnsControl: FormControl
|
|
21
|
+
moveUpButton?: ElementRef;
|
|
22
|
+
moveDownButton?: ElementRef;
|
|
23
|
+
availableColumnsControl: FormControl<any>;
|
|
24
|
+
selectedColumnsControl: FormControl<any>;
|
|
24
25
|
changing: boolean;
|
|
25
26
|
ok(): Promise<any>;
|
|
26
27
|
cancel(): Promise<any>;
|
|
@@ -33,4 +34,6 @@ export declare class ColumnSelectorComponent extends RouterModalOkCancel impleme
|
|
|
33
34
|
addColumns(): void;
|
|
34
35
|
moveUp(): void;
|
|
35
36
|
moveDown(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSelectorComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnSelectorComponent, "app-column-selector", never, { "columns": "columns"; "selectedColumns": "selectedColumns"; }, {}, never, never, false, never>;
|
|
36
39
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ModalService } from '@universis/common';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ColumnSelectorService {
|
|
3
4
|
private _modal;
|
|
4
5
|
constructor(_modal: ModalService);
|
|
@@ -16,4 +17,6 @@ export declare class ColumnSelectorService {
|
|
|
16
17
|
index: number;
|
|
17
18
|
}[];
|
|
18
19
|
}>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSelectorService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ColumnSelectorService>;
|
|
19
22
|
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AdvancedTableComponent } from '../advanced-table/advanced-table.component';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SimpleHeaderToolsComponent {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleHeaderToolsComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleHeaderToolsComponent, "table-simple-header-tools", never, {}, {}, never, ["*"], false, never>;
|
|
5
8
|
}
|
|
6
9
|
export declare class TableSimpleHeaderComponent implements OnInit, OnDestroy, OnChanges {
|
|
7
10
|
ngOnChanges(changes: SimpleChanges): void;
|
|
8
11
|
ngOnDestroy(): void;
|
|
9
|
-
table
|
|
10
|
-
recordsTotal
|
|
11
|
-
dataLoadSubscription
|
|
12
|
+
table?: AdvancedTableComponent;
|
|
13
|
+
recordsTotal?: number;
|
|
14
|
+
dataLoadSubscription?: Subscription;
|
|
12
15
|
constructor();
|
|
13
16
|
ngOnInit(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSimpleHeaderComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSimpleHeaderComponent, "app-table-simple-header", never, { "table": "table"; }, {}, never, ["table-simple-header-tools"], false, never>;
|
|
14
19
|
}
|
|
@@ -2,19 +2,22 @@ import { OnInit, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { AdvancedTableSearchComponent } from '../components/advanced-table/advanced-table-search.component';
|
|
4
4
|
import { NgxTablesState } from '../reducers';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AdvancedTableSearchComponentNotNull extends Error {
|
|
6
7
|
constructor();
|
|
7
8
|
}
|
|
8
9
|
export declare class AdvancedSearchState implements OnInit, OnDestroy {
|
|
9
10
|
protected search: AdvancedTableSearchComponent;
|
|
10
11
|
protected store: Store<NgxTablesState>;
|
|
11
|
-
searchState
|
|
12
|
-
private filterChangeSubscription
|
|
13
|
-
private tableInitSubscription
|
|
12
|
+
searchState?: string;
|
|
13
|
+
private filterChangeSubscription?;
|
|
14
|
+
private tableInitSubscription?;
|
|
14
15
|
constructor(search: AdvancedTableSearchComponent, store: Store<NgxTablesState>);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
protected applyTableState(): void;
|
|
17
18
|
onTableInit(): void;
|
|
18
19
|
private onSearchFilter;
|
|
19
20
|
ngOnDestroy(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchState, [null, { optional: true; }]>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedSearchState, "[searchState]", never, { "searchState": "searchState"; }, {}, never, never, false, never>;
|
|
20
23
|
}
|
|
@@ -2,10 +2,13 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { NgxTablesState } from '../reducers';
|
|
4
4
|
import { AdvancedTableComponent } from '../components/advanced-table/advanced-table.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AdvancedTableState implements OnInit {
|
|
6
7
|
private table;
|
|
7
8
|
private store;
|
|
8
|
-
tableState
|
|
9
|
+
tableState?: string;
|
|
9
10
|
constructor(table: AdvancedTableComponent, store: Store<NgxTablesState>);
|
|
10
11
|
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableState, [null, { optional: true; }]>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedTableState, "[tableState]", never, { "tableState": "tableState"; }, {}, never, never, false, never>;
|
|
11
14
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { Store } from
|
|
4
|
-
import { AdvancedTableSearchComponent } from
|
|
5
|
-
import { NgxTablesState } from
|
|
6
|
-
import { AdvancedSearchState } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import { AdvancedTableSearchComponent } from '../components/advanced-table/advanced-table-search.component';
|
|
5
|
+
import { NgxTablesState } from '../reducers';
|
|
6
|
+
import { AdvancedSearchState } from './advance-search-state.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class AdvancedSearchRouterState extends AdvancedSearchState implements OnDestroy, OnInit {
|
|
8
9
|
protected search: AdvancedTableSearchComponent;
|
|
9
10
|
protected store: Store<NgxTablesState>;
|
|
@@ -13,4 +14,6 @@ export declare class AdvancedSearchRouterState extends AdvancedSearchState imple
|
|
|
13
14
|
private _applyState;
|
|
14
15
|
constructor(search: AdvancedTableSearchComponent, store: Store<NgxTablesState>, _router: Router);
|
|
15
16
|
ngOnDestroy(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchRouterState, [null, { optional: true; }, null]>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedSearchRouterState, "[routerSearchState]", never, {}, {}, never, never, false, never>;
|
|
16
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AdvancedTableComponent } from '../components/advanced-table/advanced-table.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AdvancedTableNotNullError extends Error {
|
|
4
5
|
constructor();
|
|
5
6
|
}
|
|
@@ -21,5 +22,7 @@ export declare class AdvancedTableEditorDirective {
|
|
|
21
22
|
* Undo changes
|
|
22
23
|
*/
|
|
23
24
|
undo(): void;
|
|
24
|
-
rows():
|
|
25
|
+
rows(): unknown[];
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableEditorDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedTableEditorDirective, "[tableEditor]", never, {}, { "dirtyChange": "dirtyChange"; }, never, never, false, never>;
|
|
25
28
|
}
|
|
@@ -4,6 +4,7 @@ import { ConfigurationService, ErrorService, LoadingService } from '@universis/c
|
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { ClientDataQueryable } from '@themost/client';
|
|
6
6
|
import { TableConfiguration } from '../components/advanced-table/advanced-table.interfaces';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare const MAX_EXPORT_ITEMS = 500;
|
|
8
9
|
export declare interface ExportLimitConfiguration {
|
|
9
10
|
tables?: {
|
|
@@ -22,7 +23,7 @@ export declare class BtnExpDirective {
|
|
|
22
23
|
/**
|
|
23
24
|
* Sets the parameters to the query based on
|
|
24
25
|
* the active filters of the activated table
|
|
25
|
-
* @param
|
|
26
|
+
* @param query
|
|
26
27
|
* @param params: The filters of the last query of the activated table
|
|
27
28
|
* @return ClientDataQueryable
|
|
28
29
|
*/
|
|
@@ -32,8 +33,8 @@ export declare class BtnExpDirective {
|
|
|
32
33
|
* the default headers of the DataContext
|
|
33
34
|
* and appending the accept header to get
|
|
34
35
|
* an xlsx file from the API
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
36
|
+
* @param query
|
|
37
|
+
* @param headers: The headers to append to the query
|
|
37
38
|
* @return ClientDataQueryable
|
|
38
39
|
*/
|
|
39
40
|
setHeaders(query: ClientDataQueryable, headers: Headers): ClientDataQueryable;
|
|
@@ -42,14 +43,14 @@ export declare class BtnExpDirective {
|
|
|
42
43
|
* ClientDataQuery by replacing the target name
|
|
43
44
|
* of the field based on the localized translation
|
|
44
45
|
* of that property on the advanced tabled
|
|
45
|
-
* @param
|
|
46
|
+
* @param query
|
|
46
47
|
* @param tableConfig: The configuration of the activated table
|
|
47
48
|
* @return ClientDataQueryable
|
|
48
49
|
*/
|
|
49
50
|
constructQueryParam(query: ClientDataQueryable, tableConfig: TableConfiguration): ClientDataQueryable;
|
|
50
51
|
/**
|
|
51
52
|
* Constructs the fetch URL based the query parameters
|
|
52
|
-
* @param
|
|
53
|
+
* @param query
|
|
53
54
|
* @return String
|
|
54
55
|
*/
|
|
55
56
|
constructURL(query: any): String;
|
|
@@ -57,18 +58,20 @@ export declare class BtnExpDirective {
|
|
|
57
58
|
* Constructs the query by setting the parameters of the
|
|
58
59
|
* advanced table's active filters, sets the necessary headers
|
|
59
60
|
* and build the select parameter of the query
|
|
60
|
-
* @param
|
|
61
|
+
* @param query
|
|
61
62
|
* @param params: The filters of the last query of the activated table
|
|
62
63
|
* @param tableConfig: The configuration of the activated table
|
|
63
|
-
* @param
|
|
64
|
+
* @param headers: The headers to append to the query
|
|
64
65
|
* @return ClientDataQueryable
|
|
65
66
|
*/
|
|
66
67
|
constructQuery(query: any, params: any, tableConfig: any, headers: Headers): ClientDataQueryable;
|
|
67
68
|
/**
|
|
68
69
|
* Fetches and saves the xlsx file
|
|
69
|
-
* @param
|
|
70
|
-
* @param
|
|
70
|
+
* @param url
|
|
71
|
+
* @param serviceHeaders: The headers to append to the query
|
|
71
72
|
* @param modelName: The model name of the advanced table
|
|
72
73
|
*/
|
|
73
74
|
downloadFile(url: any, serviceHeaders: Headers, modelName: any): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BtnExpDirective, never>;
|
|
76
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BtnExpDirective, ".universis-btn-export", never, {}, {}, never, never, false, never>;
|
|
74
77
|
}
|