@universis/ngx-tables 0.8.4 → 6.0.0
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 +5806 -3707
- 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/actions/table.actions.js +48 -7
- package/esm2015/lib/advanced-aggregator.js +5 -1
- package/esm2015/lib/components/add-items/add-items.component.js +93 -26
- package/esm2015/lib/components/advanced-aggregator/advanced-aggregator.component.js +75 -5
- package/esm2015/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +39 -12
- package/esm2015/lib/components/advanced-list/advanced-list.component.js +105 -33
- package/esm2015/lib/components/advanced-row-action/advanced-row-action.component.js +97 -16
- package/esm2015/lib/components/advanced-search-form/advanced-search-form.component.js +87 -16
- package/esm2015/lib/components/advanced-select/advanced-select.component.js +33 -1
- package/esm2015/lib/components/advanced-select/advanced-select.service.js +20 -3
- package/esm2015/lib/components/advanced-table/advanced-filter-value-provider.service.js +23 -2
- package/esm2015/lib/components/advanced-table/advanced-table-resolvers.js +37 -9
- package/esm2015/lib/components/advanced-table/advanced-table-search-base.js +22 -1
- package/esm2015/lib/components/advanced-table/advanced-table-search.component.js +223 -31
- package/esm2015/lib/components/advanced-table/advanced-table-settings.component.js +90 -8
- package/esm2015/lib/components/advanced-table/advanced-table.component.js +687 -213
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.interface.js +36 -1
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.js +260 -45
- package/esm2015/lib/components/advanced-table/advanced-table.interfaces.js +5 -1
- package/esm2015/lib/components/advanced-table-modal/advanced-table-modal-base.component.js +211 -55
- package/esm2015/lib/components/column-selector/column-selector.component.js +188 -82
- package/esm2015/lib/components/column-selector/column-selector.service.js +19 -2
- package/esm2015/lib/components/table-simple-header/table-simple-header.component.js +31 -7
- package/esm2015/lib/directives/advance-search-state.directive.js +49 -10
- package/esm2015/lib/directives/advance-table-state.directive.js +27 -3
- package/esm2015/lib/directives/advanced-search-router-state.directive.js +35 -8
- package/esm2015/lib/directives/advanced-table-editor.directive.js +43 -13
- package/esm2015/lib/directives/btnexp.directive.js +85 -42
- package/esm2015/lib/i18n/tables.el.js +6 -3
- package/esm2015/lib/i18n/tables.en.js +6 -3
- package/esm2015/lib/pipes/advanced-aggregator.pipe.js +12 -8
- package/esm2015/lib/pipes/advansed-aggregator-list-title-parse.pipe.js +19 -7
- package/esm2015/lib/reducers/index.js +32 -1
- package/esm2015/lib/services/advanced-aggregator/advanced-aggregator.service.js +37 -15
- package/esm2015/lib/tables.activated-table.service.js +41 -6
- package/esm2015/lib/tables.module.js +18 -4
- package/esm2015/public_api.js +33 -29
- package/esm2015/universis-ngx-tables.js +6 -2
- package/esm5/lib/actions/table.actions.js +37 -7
- package/esm5/lib/advanced-aggregator.js +5 -1
- package/esm5/lib/components/add-items/add-items.component.js +124 -34
- package/esm5/lib/components/advanced-aggregator/advanced-aggregator.component.js +111 -15
- package/esm5/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +54 -11
- package/esm5/lib/components/advanced-list/advanced-list.component.js +125 -37
- package/esm5/lib/components/advanced-row-action/advanced-row-action.component.js +124 -24
- package/esm5/lib/components/advanced-search-form/advanced-search-form.component.js +109 -22
- package/esm5/lib/components/advanced-select/advanced-select.component.js +36 -4
- package/esm5/lib/components/advanced-select/advanced-select.service.js +22 -4
- package/esm5/lib/components/advanced-table/advanced-filter-value-provider.service.js +37 -5
- package/esm5/lib/components/advanced-table/advanced-table-resolvers.js +43 -11
- package/esm5/lib/components/advanced-table/advanced-table-search-base.js +29 -4
- package/esm5/lib/components/advanced-table/advanced-table-search.component.js +323 -58
- package/esm5/lib/components/advanced-table/advanced-table-settings.component.js +112 -15
- package/esm5/lib/components/advanced-table/advanced-table.component.js +872 -251
- package/esm5/lib/components/advanced-table/advanced-table.formatters.interface.js +36 -1
- package/esm5/lib/components/advanced-table/advanced-table.formatters.js +394 -57
- package/esm5/lib/components/advanced-table/advanced-table.interfaces.js +5 -1
- package/esm5/lib/components/advanced-table-modal/advanced-table-modal-base.component.js +311 -70
- package/esm5/lib/components/column-selector/column-selector.component.js +286 -154
- package/esm5/lib/components/column-selector/column-selector.service.js +21 -3
- package/esm5/lib/components/table-simple-header/table-simple-header.component.js +44 -10
- package/esm5/lib/directives/advance-search-state.directive.js +68 -15
- package/esm5/lib/directives/advance-table-state.directive.js +26 -4
- package/esm5/lib/directives/advanced-search-router-state.directive.js +39 -12
- package/esm5/lib/directives/advanced-table-editor.directive.js +66 -18
- package/esm5/lib/directives/btnexp.directive.js +171 -39
- package/esm5/lib/i18n/tables.el.js +6 -3
- package/esm5/lib/i18n/tables.en.js +6 -3
- package/esm5/lib/pipes/advanced-aggregator.pipe.js +32 -6
- package/esm5/lib/pipes/advansed-aggregator-list-title-parse.pipe.js +34 -8
- package/esm5/lib/reducers/index.js +32 -1
- package/esm5/lib/services/advanced-aggregator/advanced-aggregator.service.js +75 -13
- package/esm5/lib/tables.activated-table.service.js +39 -8
- package/esm5/lib/tables.module.js +19 -5
- package/esm5/public_api.js +33 -29
- package/esm5/universis-ngx-tables.js +6 -2
- package/fesm2015/universis-ngx-tables.js +2004 -663
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +3035 -896
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/add-items/add-items.component.d.ts +9 -16
- package/lib/components/advanced-aggregator/advanced-aggregator.component.d.ts +5 -5
- package/lib/components/advanced-list/advanced-list.component.d.ts +11 -11
- package/lib/components/advanced-row-action/advanced-row-action.component.d.ts +11 -16
- package/lib/components/advanced-search-form/advanced-search-form.component.d.ts +3 -3
- package/lib/components/advanced-table/advanced-table-search.component.d.ts +5 -5
- package/lib/components/advanced-table/advanced-table-settings.component.d.ts +5 -6
- package/lib/components/advanced-table/advanced-table.component.d.ts +14 -15
- package/lib/components/advanced-table/advanced-table.formatters.d.ts +11 -11
- package/lib/components/advanced-table/advanced-table.interfaces.d.ts +1 -0
- package/lib/components/advanced-table-modal/advanced-table-modal-base.component.d.ts +11 -11
- package/lib/components/column-selector/column-selector.component.d.ts +8 -9
- package/lib/components/table-simple-header/table-simple-header.component.d.ts +3 -3
- package/lib/directives/advance-search-state.directive.d.ts +3 -3
- package/lib/directives/advance-table-state.directive.d.ts +1 -1
- package/lib/directives/advanced-search-router-state.directive.d.ts +6 -6
- package/lib/directives/btnexp.directive.d.ts +9 -9
- package/lib/pipes/advanced-aggregator.pipe.d.ts +3 -3
- package/lib/pipes/advansed-aggregator-list-title-parse.pipe.d.ts +5 -5
- package/lib/services/advanced-aggregator/advanced-aggregator.service.d.ts +8 -8
- package/lib/tables.activated-table.service.d.ts +6 -6
- package/package.json +10 -4
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -2,37 +2,30 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { RouterModalOkCancel } from '@universis/common/routing';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
import { AngularDataContext } from '@themost/angular';
|
|
7
5
|
import { AdvancedTableModalBaseComponent } from '../advanced-table-modal/advanced-table-modal-base.component';
|
|
8
6
|
import { AdvancedFormComponent } from '@universis/forms';
|
|
9
|
-
import {
|
|
7
|
+
import { LoadingService, ModalService } from '@universis/common';
|
|
10
8
|
export declare class AddItemsComponent extends RouterModalOkCancel implements OnInit, OnDestroy {
|
|
11
|
-
private _errorService;
|
|
12
9
|
private _modalService;
|
|
13
|
-
private _appEvent;
|
|
14
|
-
private _toastService;
|
|
15
10
|
private _loadingService;
|
|
16
|
-
private _translateService;
|
|
17
|
-
private _context;
|
|
18
11
|
loading: boolean;
|
|
19
12
|
lastError: any;
|
|
20
|
-
execute
|
|
13
|
+
execute?: Observable<any>;
|
|
21
14
|
items: Array<any>;
|
|
22
15
|
target: any;
|
|
23
16
|
tableConfiguration: any;
|
|
24
17
|
formName: any;
|
|
25
18
|
messages: Array<any>;
|
|
26
|
-
formComponent
|
|
27
|
-
selectComponent
|
|
28
|
-
private formLoadSubscription
|
|
29
|
-
private formChangeSubscription
|
|
30
|
-
private selectedSubscription
|
|
31
|
-
constructor(router: Router, activatedRoute: ActivatedRoute,
|
|
19
|
+
formComponent?: AdvancedFormComponent;
|
|
20
|
+
selectComponent?: AdvancedTableModalBaseComponent;
|
|
21
|
+
private formLoadSubscription?;
|
|
22
|
+
private formChangeSubscription?;
|
|
23
|
+
private selectedSubscription?;
|
|
24
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, _modalService: ModalService, _loadingService: LoadingService);
|
|
32
25
|
ngOnInit(): void;
|
|
33
26
|
cancel(): Promise<any>;
|
|
34
27
|
ngOnDestroy(): void;
|
|
35
|
-
private executeSubscription
|
|
28
|
+
private executeSubscription?;
|
|
36
29
|
readonly formData: any;
|
|
37
30
|
ok(): Promise<any>;
|
|
38
31
|
onChange($event: any): void;
|
|
@@ -4,15 +4,15 @@ import { AdvancedAggregatorConfig, AdvancedAggregatorFilters } from '../../advan
|
|
|
4
4
|
import { LoadingService } from '@universis/common';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
*
|
|
8
|
+
* @classdesc An advanced list with the capability of aggregate data based on configurable filters
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
export declare class AdvancedAggregatorComponent implements OnInit, OnDestroy {
|
|
12
12
|
private _changeDetector;
|
|
13
13
|
private _advancedAggregatorService;
|
|
14
14
|
private _loadingService;
|
|
15
|
-
private _config
|
|
15
|
+
private _config?;
|
|
16
16
|
private _aggregators;
|
|
17
17
|
private _postProcessors;
|
|
18
18
|
body: any;
|
|
@@ -23,7 +23,7 @@ export declare class AdvancedAggregatorComponent implements OnInit, OnDestroy {
|
|
|
23
23
|
params: any;
|
|
24
24
|
selectedGroups$: any;
|
|
25
25
|
filters$: any;
|
|
26
|
-
searchExpression
|
|
26
|
+
searchExpression?: string;
|
|
27
27
|
eventHandler: EventEmitter<{}>;
|
|
28
28
|
constructor(_changeDetector: ChangeDetectorRef, _advancedAggregatorService: AdvancedAggregatorService, _loadingService: LoadingService);
|
|
29
29
|
ngOnInit(): Promise<void>;
|
|
@@ -38,7 +38,7 @@ export declare class AdvancedAggregatorComponent implements OnInit, OnDestroy {
|
|
|
38
38
|
*
|
|
39
39
|
* Triggers the event handler event
|
|
40
40
|
*
|
|
41
|
-
* @param
|
|
41
|
+
* @param event The event data
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
onActionEvent(event: any): void;
|
|
@@ -14,25 +14,25 @@ export declare class AdvancedListComponent implements OnInit, OnDestroy {
|
|
|
14
14
|
private _toastService;
|
|
15
15
|
private _modalService;
|
|
16
16
|
private _userActivityService;
|
|
17
|
-
recordsTotal
|
|
18
|
-
config
|
|
19
|
-
private subscription
|
|
20
|
-
private dataSubscription
|
|
21
|
-
private reloadSubscription
|
|
22
|
-
entitySet
|
|
23
|
-
category
|
|
24
|
-
description
|
|
25
|
-
longDescription
|
|
17
|
+
recordsTotal?: number;
|
|
18
|
+
config?: TableConfiguration;
|
|
19
|
+
private subscription?;
|
|
20
|
+
private dataSubscription?;
|
|
21
|
+
private reloadSubscription?;
|
|
22
|
+
entitySet?: string;
|
|
23
|
+
category?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
longDescription?: string;
|
|
26
26
|
tableConfiguration: any;
|
|
27
27
|
searchConfiguration: any;
|
|
28
|
-
table
|
|
28
|
+
table?: AdvancedTableComponent;
|
|
29
29
|
allowSaveOption: boolean;
|
|
30
30
|
constructor(_context: AngularDataContext, _translateService: TranslateService, _activatedRoute: ActivatedRoute, _errorService: ErrorService, _toastService: ToastService, _modalService: ModalService, _userActivityService: UserActivityService);
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
ngOnInit(): Promise<void>;
|
|
33
33
|
/**
|
|
34
34
|
* Data load event handler of advanced table component
|
|
35
|
-
* @param
|
|
35
|
+
* @param data
|
|
36
36
|
*/
|
|
37
37
|
onDataLoad(data: AdvancedTableDataResult): void;
|
|
38
38
|
/**
|
|
@@ -1,39 +1,34 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { AngularDataContext } from '@themost/angular';
|
|
5
4
|
import 'rxjs/add/observable/combineLatest';
|
|
6
|
-
import {
|
|
5
|
+
import { ModalService } from '@universis/common';
|
|
7
6
|
import { RouterModalOkCancel } from '@universis/common/routing';
|
|
8
|
-
import { AppEventService } from '@universis/common';
|
|
9
7
|
import { Observable } from 'rxjs';
|
|
10
8
|
import { AdvancedFormComponent } from '@universis/forms';
|
|
11
9
|
import { ProgressbarComponent } from 'ngx-bootstrap/progressbar';
|
|
12
10
|
export declare class AdvancedRowActionComponent extends RouterModalOkCancel implements OnInit, AfterViewInit, OnDestroy {
|
|
13
11
|
private _translateService;
|
|
14
|
-
private _context;
|
|
15
|
-
private _errorService;
|
|
16
12
|
private _modalService;
|
|
17
|
-
private _appEvent;
|
|
18
13
|
invalidSubscription: any;
|
|
19
14
|
items: any;
|
|
20
15
|
modalIcon: string;
|
|
21
|
-
description
|
|
22
|
-
formTemplate
|
|
16
|
+
description?: string;
|
|
17
|
+
formTemplate?: string;
|
|
23
18
|
progressType: string;
|
|
24
19
|
data: any;
|
|
25
|
-
additionalMessage
|
|
20
|
+
additionalMessage?: string;
|
|
26
21
|
errorMessage: string;
|
|
27
22
|
lastError: any;
|
|
28
23
|
loading: boolean;
|
|
29
|
-
progressComponent
|
|
30
|
-
progressContainer
|
|
31
|
-
formComponent
|
|
24
|
+
progressComponent?: ProgressbarComponent;
|
|
25
|
+
progressContainer?: ElementRef;
|
|
26
|
+
formComponent?: AdvancedFormComponent;
|
|
32
27
|
refresh: any;
|
|
33
|
-
execute
|
|
34
|
-
private refreshSubscription
|
|
35
|
-
private executeSubscription
|
|
36
|
-
constructor(router: Router, activatedRoute: ActivatedRoute, _translateService: TranslateService,
|
|
28
|
+
execute?: Observable<any>;
|
|
29
|
+
private refreshSubscription?;
|
|
30
|
+
private executeSubscription?;
|
|
31
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, _translateService: TranslateService, _modalService: ModalService);
|
|
37
32
|
readonly form: AdvancedFormComponent;
|
|
38
33
|
ngOnInit(): void;
|
|
39
34
|
ngAfterViewInit(): void;
|
|
@@ -10,15 +10,15 @@ export declare class AdvancedSearchFormComponent extends AdvancedTableSearchBase
|
|
|
10
10
|
private _translateService;
|
|
11
11
|
private _activatedRoute;
|
|
12
12
|
private _http;
|
|
13
|
-
formComponent
|
|
13
|
+
formComponent?: FormioComponent;
|
|
14
14
|
form: any;
|
|
15
|
-
formSrc
|
|
15
|
+
formSrc?: string;
|
|
16
16
|
refreshForm: EventEmitter<any>;
|
|
17
17
|
loading: EventEmitter<{
|
|
18
18
|
target: AdvancedSearchFormComponent;
|
|
19
19
|
}>;
|
|
20
20
|
submission: any;
|
|
21
|
-
private filterSubscription
|
|
21
|
+
private filterSubscription?;
|
|
22
22
|
componentLoading: boolean;
|
|
23
23
|
constructor(_context: AngularDataContext, _translateService: TranslateService, _activatedRoute: ActivatedRoute, _http: HttpClient);
|
|
24
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -26,9 +26,9 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
26
26
|
private _template;
|
|
27
27
|
private _router;
|
|
28
28
|
private _modal;
|
|
29
|
-
private queryParamSubscription
|
|
30
|
-
private configChangesSubscription
|
|
31
|
-
table
|
|
29
|
+
private queryParamSubscription?;
|
|
30
|
+
private configChangesSubscription?;
|
|
31
|
+
table?: AdvancedTableComponent;
|
|
32
32
|
collapsed: boolean;
|
|
33
33
|
allowSave: boolean;
|
|
34
34
|
showMore: boolean;
|
|
@@ -37,7 +37,7 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
37
37
|
viewChange: EventEmitter<AdvancedSearchViewStatus>;
|
|
38
38
|
listChange: EventEmitter<AdvancedSearchList>;
|
|
39
39
|
text: string;
|
|
40
|
-
modalRef
|
|
40
|
+
modalRef?: BsModalRef;
|
|
41
41
|
storageKey: any;
|
|
42
42
|
storageValue: any;
|
|
43
43
|
userSearchList: any;
|
|
@@ -66,7 +66,7 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
66
66
|
uploadListOnUserStorage(): void;
|
|
67
67
|
/**
|
|
68
68
|
* @deprecated This method is going to be deprecated. Use search() method instead.
|
|
69
|
-
* @param
|
|
69
|
+
* @param event
|
|
70
70
|
*/
|
|
71
71
|
asyncAdvancedSearch(event?: any): Promise<boolean>;
|
|
72
72
|
search(): Promise<void>;
|
|
@@ -9,22 +9,21 @@ import { FormBuilder, FormGroup, ValidatorFn } from '@angular/forms';
|
|
|
9
9
|
export declare class AdvancedTableSettingsComponent implements OnInit, AfterViewInit {
|
|
10
10
|
protected _context: AngularDataContext;
|
|
11
11
|
protected _activatedRoute: ActivatedRoute;
|
|
12
|
-
private elRef;
|
|
13
12
|
private modalService;
|
|
14
13
|
private userStorage;
|
|
15
14
|
private formBuilder;
|
|
16
15
|
private _activatedTable;
|
|
17
|
-
table
|
|
18
|
-
modal_settings_template
|
|
19
|
-
modalRef
|
|
16
|
+
table?: AdvancedTableComponent;
|
|
17
|
+
modal_settings_template?: ElementRef;
|
|
18
|
+
modalRef?: BsModalRef;
|
|
20
19
|
storageKey: any;
|
|
21
20
|
params: any;
|
|
22
21
|
private savedTableSettings;
|
|
23
|
-
form
|
|
22
|
+
form?: FormGroup;
|
|
24
23
|
columns: any[];
|
|
25
24
|
tableColumns: any;
|
|
26
25
|
activeTableConfig: any;
|
|
27
|
-
constructor(_context: AngularDataContext, _activatedRoute: ActivatedRoute,
|
|
26
|
+
constructor(_context: AngularDataContext, _activatedRoute: ActivatedRoute, modalService: BsModalService, userStorage: UserStorageService, formBuilder: FormBuilder, _activatedTable: ActivatedTableService);
|
|
28
27
|
ngOnInit(): void;
|
|
29
28
|
ngAfterViewInit(): void;
|
|
30
29
|
private addCheckboxes;
|
|
@@ -42,8 +42,8 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
42
42
|
private _exportSpreadsheet;
|
|
43
43
|
private _modalService;
|
|
44
44
|
private _errorService;
|
|
45
|
-
private _query
|
|
46
|
-
private _config
|
|
45
|
+
private _query?;
|
|
46
|
+
private _config?;
|
|
47
47
|
private _firstLoad;
|
|
48
48
|
private _showFooter;
|
|
49
49
|
private _showHeader;
|
|
@@ -51,10 +51,10 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
51
51
|
private _id;
|
|
52
52
|
smartSelect: boolean;
|
|
53
53
|
configChanges: BehaviorSubject<any>;
|
|
54
|
-
table
|
|
55
|
-
emptyTable
|
|
56
|
-
errorTemplate
|
|
57
|
-
loadingTable
|
|
54
|
+
table?: ElementRef;
|
|
55
|
+
emptyTable?: ElementRef;
|
|
56
|
+
errorTemplate?: ElementRef;
|
|
57
|
+
loadingTable?: ElementRef;
|
|
58
58
|
height: number;
|
|
59
59
|
showActions: boolean;
|
|
60
60
|
autoLoad: boolean;
|
|
@@ -80,18 +80,18 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
80
80
|
pageLength: number;
|
|
81
81
|
columnOrdering: boolean;
|
|
82
82
|
stateSave: boolean;
|
|
83
|
-
stateLoadCallback
|
|
84
|
-
stateSaveCallback
|
|
83
|
+
stateLoadCallback?: (settings: any, callback: (state: any) => void) => void;
|
|
84
|
+
stateSaveCallback?: (settings: any, state: any) => void;
|
|
85
85
|
scrollY: number;
|
|
86
86
|
scrollX: boolean;
|
|
87
87
|
/**
|
|
88
88
|
* Enables row selection. The defaulr value is false
|
|
89
89
|
*/
|
|
90
|
-
selectable: boolean;
|
|
90
|
+
selectable: boolean | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Enables or disable multiple selection. The default values is true.
|
|
93
93
|
*/
|
|
94
|
-
multipleSelect: boolean;
|
|
94
|
+
multipleSelect: boolean | undefined;
|
|
95
95
|
/**
|
|
96
96
|
* Enables custom selection and hides select column. The default value is false
|
|
97
97
|
*/
|
|
@@ -101,7 +101,7 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
101
101
|
/**
|
|
102
102
|
* Gets or sets a URL to load table configuration from
|
|
103
103
|
*/
|
|
104
|
-
configSrc
|
|
104
|
+
configSrc?: string;
|
|
105
105
|
lastError: any;
|
|
106
106
|
/**
|
|
107
107
|
* Gets or sets table configuration
|
|
@@ -123,11 +123,11 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
123
123
|
/**
|
|
124
124
|
* Gets or sets an active query for this table
|
|
125
125
|
*/
|
|
126
|
-
query: ClientDataQueryable;
|
|
126
|
+
query: ClientDataQueryable | undefined;
|
|
127
127
|
readonly translator: TranslatePipe;
|
|
128
128
|
dataTable: any;
|
|
129
129
|
dtOptions: any;
|
|
130
|
-
private lastQueryParams
|
|
130
|
+
private lastQueryParams?;
|
|
131
131
|
private _lastQueryTotalItems;
|
|
132
132
|
private reloadSubscription;
|
|
133
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);
|
|
@@ -151,13 +151,12 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
151
151
|
* @param type
|
|
152
152
|
* @param row
|
|
153
153
|
* @param meta
|
|
154
|
-
* @private
|
|
155
154
|
*/
|
|
156
155
|
private _renderSelect;
|
|
157
156
|
ngOnInit(): void;
|
|
158
157
|
scrollTop(value: number): void;
|
|
159
158
|
scrollLeft(value: number): void;
|
|
160
|
-
readonly lastQuery: ClientDataQueryable;
|
|
159
|
+
readonly lastQuery: ClientDataQueryable | undefined;
|
|
161
160
|
/**
|
|
162
161
|
* Fetches and updates a single row
|
|
163
162
|
* @param find - Any object which is being converted to a query
|
|
@@ -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;
|
|
@@ -24,17 +24,17 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
24
24
|
protected datePipe: DatePipe;
|
|
25
25
|
ngAfterViewInit(): void;
|
|
26
26
|
private static readonly DEFAULT_ALL_FILTER;
|
|
27
|
-
advancedTable
|
|
28
|
-
emptyTable
|
|
29
|
-
dropdownFilter
|
|
30
|
-
dropdownLength
|
|
27
|
+
advancedTable?: AdvancedTableComponent;
|
|
28
|
+
emptyTable?: ElementRef;
|
|
29
|
+
dropdownFilter?: ElementRef;
|
|
30
|
+
dropdownLength?: ElementRef;
|
|
31
31
|
searchElement: any;
|
|
32
|
-
tableConfig
|
|
33
|
-
tableConfigSrc
|
|
32
|
+
tableConfig?: TableConfiguration;
|
|
33
|
+
tableConfigSrc?: string;
|
|
34
34
|
pageLength: number;
|
|
35
|
-
searchText
|
|
35
|
+
searchText?: string;
|
|
36
36
|
lengthMenu: Array<number>;
|
|
37
|
-
private subscription
|
|
37
|
+
private subscription?;
|
|
38
38
|
recordsTotal: number;
|
|
39
39
|
loading: boolean;
|
|
40
40
|
recordsFiltered: number;
|
|
@@ -45,7 +45,7 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
45
45
|
};
|
|
46
46
|
pageInfo: PageInfo;
|
|
47
47
|
private _template;
|
|
48
|
-
configChangesSubscription
|
|
48
|
+
configChangesSubscription?: Subscription;
|
|
49
49
|
constructor(_router: Router, _activatedRoute: ActivatedRoute, _context: AngularDataContext, advancedFilterValueProvider: AdvancedFilterValueProvider, datePipe: DatePipe);
|
|
50
50
|
private _getInputs;
|
|
51
51
|
hasInputs(): Array<string>;
|
|
@@ -69,7 +69,7 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
69
69
|
*
|
|
70
70
|
* @param tableConfig {object} The table configuration from json file
|
|
71
71
|
* @param defaultFilterValues {object} A list of default filters
|
|
72
|
-
* @param
|
|
72
|
+
* @param searchItem The searchItem to use
|
|
73
73
|
*
|
|
74
74
|
*/
|
|
75
75
|
getFilters(tableConfig: any, defaultFilterValues: {}, searchItem: any): Array<string>;
|
|
@@ -81,7 +81,7 @@ export declare class AdvancedTableModalBaseComponent extends RouterModalOkCancel
|
|
|
81
81
|
*
|
|
82
82
|
* Runs a filter against the modal table
|
|
83
83
|
*
|
|
84
|
-
* @param
|
|
84
|
+
* @param filter The filter to use in the search
|
|
85
85
|
*
|
|
86
86
|
*/
|
|
87
87
|
advancedSearch(filter: any): Promise<any>;
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges,
|
|
1
|
+
import { OnInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
4
|
import { RouterModalOkCancel } from '@universis/common/routing';
|
|
6
5
|
import { BsModalRef } from 'ngx-bootstrap/modal';
|
|
7
6
|
export declare class ColumnSelectorComponent extends RouterModalOkCancel implements OnInit, OnDestroy, OnChanges {
|
|
8
7
|
private _modalRef;
|
|
9
|
-
private
|
|
10
|
-
|
|
11
|
-
columns: {
|
|
8
|
+
private _changeDetector;
|
|
9
|
+
columns?: {
|
|
12
10
|
key: string;
|
|
13
11
|
title: string;
|
|
14
12
|
visible: boolean;
|
|
15
13
|
index: number;
|
|
16
14
|
}[];
|
|
17
15
|
dismiss: EventEmitter<any>;
|
|
18
|
-
selectedColumns
|
|
16
|
+
selectedColumns?: {
|
|
19
17
|
key: string;
|
|
20
18
|
title: string;
|
|
21
19
|
}[];
|
|
22
|
-
moveUpButton
|
|
23
|
-
moveDownButton
|
|
20
|
+
moveUpButton?: ElementRef;
|
|
21
|
+
moveDownButton?: ElementRef;
|
|
24
22
|
availableColumnsControl: FormControl;
|
|
25
23
|
selectedColumnsControl: FormControl;
|
|
24
|
+
changing: boolean;
|
|
26
25
|
ok(): Promise<any>;
|
|
27
26
|
cancel(): Promise<any>;
|
|
28
|
-
constructor(router: Router, activatedRoute: ActivatedRoute, _modalRef: BsModalRef,
|
|
27
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, _modalRef: BsModalRef, _changeDetector: ChangeDetectorRef);
|
|
29
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
29
|
ngOnDestroy(): void;
|
|
31
30
|
ngOnInit(): void;
|
|
@@ -6,9 +6,9 @@ export declare class SimpleHeaderToolsComponent {
|
|
|
6
6
|
export declare class TableSimpleHeaderComponent implements OnInit, OnDestroy, OnChanges {
|
|
7
7
|
ngOnChanges(changes: SimpleChanges): void;
|
|
8
8
|
ngOnDestroy(): void;
|
|
9
|
-
table
|
|
10
|
-
recordsTotal
|
|
11
|
-
dataLoadSubscription
|
|
9
|
+
table?: AdvancedTableComponent;
|
|
10
|
+
recordsTotal?: number;
|
|
11
|
+
dataLoadSubscription?: Subscription;
|
|
12
12
|
constructor();
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
}
|
|
@@ -8,9 +8,9 @@ export declare class AdvancedTableSearchComponentNotNull extends Error {
|
|
|
8
8
|
export declare class AdvancedSearchState implements OnInit, OnDestroy {
|
|
9
9
|
protected search: AdvancedTableSearchComponent;
|
|
10
10
|
protected store: Store<NgxTablesState>;
|
|
11
|
-
searchState
|
|
12
|
-
private filterChangeSubscription
|
|
13
|
-
private tableInitSubscription
|
|
11
|
+
searchState?: string;
|
|
12
|
+
private filterChangeSubscription?;
|
|
13
|
+
private tableInitSubscription?;
|
|
14
14
|
constructor(search: AdvancedTableSearchComponent, store: Store<NgxTablesState>);
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
protected applyTableState(): void;
|
|
@@ -5,7 +5,7 @@ import { AdvancedTableComponent } from '../components/advanced-table/advanced-ta
|
|
|
5
5
|
export declare class AdvancedTableState implements OnInit {
|
|
6
6
|
private table;
|
|
7
7
|
private store;
|
|
8
|
-
tableState
|
|
8
|
+
tableState?: string;
|
|
9
9
|
constructor(table: AdvancedTableComponent, store: Store<NgxTablesState>);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
7
|
export declare class AdvancedSearchRouterState extends AdvancedSearchState implements OnDestroy, OnInit {
|
|
8
8
|
protected search: AdvancedTableSearchComponent;
|
|
9
9
|
protected store: Store<NgxTablesState>;
|
|
@@ -22,7 +22,7 @@ export declare class BtnExpDirective {
|
|
|
22
22
|
/**
|
|
23
23
|
* Sets the parameters to the query based on
|
|
24
24
|
* the active filters of the activated table
|
|
25
|
-
* @param
|
|
25
|
+
* @param query
|
|
26
26
|
* @param params: The filters of the last query of the activated table
|
|
27
27
|
* @return ClientDataQueryable
|
|
28
28
|
*/
|
|
@@ -32,8 +32,8 @@ export declare class BtnExpDirective {
|
|
|
32
32
|
* the default headers of the DataContext
|
|
33
33
|
* and appending the accept header to get
|
|
34
34
|
* an xlsx file from the API
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
35
|
+
* @param query
|
|
36
|
+
* @param headers: The headers to append to the query
|
|
37
37
|
* @return ClientDataQueryable
|
|
38
38
|
*/
|
|
39
39
|
setHeaders(query: ClientDataQueryable, headers: Headers): ClientDataQueryable;
|
|
@@ -42,14 +42,14 @@ export declare class BtnExpDirective {
|
|
|
42
42
|
* ClientDataQuery by replacing the target name
|
|
43
43
|
* of the field based on the localized translation
|
|
44
44
|
* of that property on the advanced tabled
|
|
45
|
-
* @param
|
|
45
|
+
* @param query
|
|
46
46
|
* @param tableConfig: The configuration of the activated table
|
|
47
47
|
* @return ClientDataQueryable
|
|
48
48
|
*/
|
|
49
49
|
constructQueryParam(query: ClientDataQueryable, tableConfig: TableConfiguration): ClientDataQueryable;
|
|
50
50
|
/**
|
|
51
51
|
* Constructs the fetch URL based the query parameters
|
|
52
|
-
* @param
|
|
52
|
+
* @param query
|
|
53
53
|
* @return String
|
|
54
54
|
*/
|
|
55
55
|
constructURL(query: any): String;
|
|
@@ -57,17 +57,17 @@ export declare class BtnExpDirective {
|
|
|
57
57
|
* Constructs the query by setting the parameters of the
|
|
58
58
|
* advanced table's active filters, sets the necessary headers
|
|
59
59
|
* and build the select parameter of the query
|
|
60
|
-
* @param
|
|
60
|
+
* @param query
|
|
61
61
|
* @param params: The filters of the last query of the activated table
|
|
62
62
|
* @param tableConfig: The configuration of the activated table
|
|
63
|
-
* @param
|
|
63
|
+
* @param headers: The headers to append to the query
|
|
64
64
|
* @return ClientDataQueryable
|
|
65
65
|
*/
|
|
66
66
|
constructQuery(query: any, params: any, tableConfig: any, headers: Headers): ClientDataQueryable;
|
|
67
67
|
/**
|
|
68
68
|
* Fetches and saves the xlsx file
|
|
69
|
-
* @param
|
|
70
|
-
* @param
|
|
69
|
+
* @param url
|
|
70
|
+
* @param serviceHeaders: The headers to append to the query
|
|
71
71
|
* @param modelName: The model name of the advanced table
|
|
72
72
|
*/
|
|
73
73
|
downloadFile(url: any, serviceHeaders: Headers, modelName: any): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PipeTransform } from
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
5
|
* @classdesc Given a list of items runs a user defined function against that list
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
@@ -14,7 +14,7 @@ export declare class AdvancedAggregatorPipe implements PipeTransform {
|
|
|
14
14
|
* @param functionPool The functions that are available from the list caller
|
|
15
15
|
* @param functionName The name of the function to be called
|
|
16
16
|
*
|
|
17
|
-
* @returns
|
|
17
|
+
* @returns The value to show at the UI
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
transform(items: any[], functionPool: any, functionName: string): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PipeTransform } from
|
|
2
|
-
import { TranslateService } from
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
* @classdesc Given a title of an aggregator list, translates and evaluates the parameter if any
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
@@ -13,8 +13,8 @@ export declare class ParseTitlePipe implements PipeTransform {
|
|
|
13
13
|
*
|
|
14
14
|
* @override
|
|
15
15
|
*
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
16
|
+
* @param title The title of the list
|
|
17
|
+
* @param key The current list key that is being used
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
transform(title: string, key: string): any;
|