@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
package/index.d.ts
ADDED
|
@@ -6,19 +6,19 @@ export declare enum TableActionTypes {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class LoadFilter implements Action {
|
|
8
8
|
readonly id: string;
|
|
9
|
-
readonly type
|
|
9
|
+
readonly type = TableActionTypes.LoadFilter;
|
|
10
10
|
constructor(id: string);
|
|
11
11
|
}
|
|
12
12
|
export declare class AppendFilter implements Action {
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly filter: any;
|
|
15
|
-
readonly type
|
|
15
|
+
readonly type = TableActionTypes.AppendFilter;
|
|
16
16
|
constructor(id: string, filter: any);
|
|
17
17
|
}
|
|
18
18
|
export declare class AppendState implements Action {
|
|
19
19
|
readonly id: string;
|
|
20
20
|
readonly data: any;
|
|
21
|
-
readonly type
|
|
21
|
+
readonly type = TableActionTypes.AppendState;
|
|
22
22
|
constructor(id: string, data: any);
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type TableActions = LoadFilter | AppendFilter | AppendState;
|
|
@@ -2,43 +2,36 @@ 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';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class AddItemsComponent extends RouterModalOkCancel implements OnInit, OnDestroy {
|
|
11
|
-
private _errorService;
|
|
12
10
|
private _modalService;
|
|
13
|
-
private _appEvent;
|
|
14
|
-
private _toastService;
|
|
15
11
|
private _loadingService;
|
|
16
|
-
private _translateService;
|
|
17
|
-
private _context;
|
|
18
12
|
loading: boolean;
|
|
19
13
|
lastError: any;
|
|
20
|
-
execute
|
|
14
|
+
execute?: Observable<any>;
|
|
21
15
|
items: Array<any>;
|
|
22
16
|
target: any;
|
|
23
17
|
tableConfiguration: any;
|
|
24
18
|
formName: any;
|
|
25
19
|
messages: Array<any>;
|
|
26
|
-
formComponent
|
|
27
|
-
selectComponent
|
|
28
|
-
private formLoadSubscription
|
|
29
|
-
private formChangeSubscription
|
|
30
|
-
private selectedSubscription
|
|
31
|
-
constructor(router: Router, activatedRoute: ActivatedRoute,
|
|
20
|
+
formComponent?: AdvancedFormComponent;
|
|
21
|
+
selectComponent?: AdvancedTableModalBaseComponent;
|
|
22
|
+
private formLoadSubscription?;
|
|
23
|
+
private formChangeSubscription?;
|
|
24
|
+
private selectedSubscription?;
|
|
25
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, _modalService: ModalService, _loadingService: LoadingService);
|
|
32
26
|
ngOnInit(): void;
|
|
33
27
|
cancel(): Promise<any>;
|
|
34
28
|
ngOnDestroy(): void;
|
|
35
|
-
private executeSubscription
|
|
36
|
-
|
|
29
|
+
private executeSubscription?;
|
|
30
|
+
get formData(): any;
|
|
37
31
|
ok(): Promise<any>;
|
|
38
32
|
onChange($event: any): void;
|
|
39
33
|
clearMessages(): void;
|
|
40
|
-
onFilterChange(event:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}): void;
|
|
34
|
+
onFilterChange(event: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddItemsComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddItemsComponent, "app-add-items", never, { "execute": "execute"; "items": "items"; "target": "target"; "tableConfiguration": "tableConfiguration"; "formName": "formName"; "messages": "messages"; }, {}, never, never, false, never>;
|
|
44
37
|
}
|
|
@@ -2,30 +2,34 @@ import { OnInit, EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/cor
|
|
|
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';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
|
+
* @classdesc An advanced list with the capability of aggregate data based on configurable filters
|
|
9
10
|
*
|
|
10
11
|
*/
|
|
11
12
|
export declare class AdvancedAggregatorComponent implements OnInit, OnDestroy {
|
|
12
13
|
private _changeDetector;
|
|
13
14
|
private _advancedAggregatorService;
|
|
14
15
|
private _loadingService;
|
|
15
|
-
private _config
|
|
16
|
+
private _config?;
|
|
16
17
|
private _aggregators;
|
|
17
18
|
private _postProcessors;
|
|
18
19
|
body: any;
|
|
19
20
|
groups: any[];
|
|
20
|
-
config: AdvancedAggregatorConfig;
|
|
21
|
-
aggregators: any;
|
|
22
|
-
postProcessors: any;
|
|
21
|
+
set config(value: AdvancedAggregatorConfig);
|
|
22
|
+
set aggregators(value: any);
|
|
23
|
+
set postProcessors(value: any);
|
|
23
24
|
params: any;
|
|
24
25
|
selectedGroups$: any;
|
|
25
26
|
filters$: any;
|
|
26
|
-
searchExpression
|
|
27
|
-
eventHandler: EventEmitter<
|
|
27
|
+
searchExpression?: string;
|
|
28
|
+
eventHandler: EventEmitter<any>;
|
|
28
29
|
constructor(_changeDetector: ChangeDetectorRef, _advancedAggregatorService: AdvancedAggregatorService, _loadingService: LoadingService);
|
|
30
|
+
get config(): AdvancedAggregatorConfig;
|
|
31
|
+
get aggregators(): any;
|
|
32
|
+
get postProcessors(): any;
|
|
29
33
|
ngOnInit(): Promise<void>;
|
|
30
34
|
ngOnDestroy(): Promise<void>;
|
|
31
35
|
/**
|
|
@@ -38,8 +42,10 @@ export declare class AdvancedAggregatorComponent implements OnInit, OnDestroy {
|
|
|
38
42
|
*
|
|
39
43
|
* Triggers the event handler event
|
|
40
44
|
*
|
|
41
|
-
* @param
|
|
45
|
+
* @param event The event data
|
|
42
46
|
*
|
|
43
47
|
*/
|
|
44
48
|
onActionEvent(event: any): void;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedAggregatorComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedAggregatorComponent, "app-advanced-aggregator", never, { "config": "config"; "aggregators": "aggregators"; "postProcessors": "postProcessors"; "params": "params"; "selectedGroups$": "selectedGroups"; "filters$": "filters"; "searchExpression": "searchExpression"; }, { "eventHandler": "eventHandler"; }, never, never, false, never>;
|
|
45
51
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { TemplatePipe } from '@universis/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AdvancedAggregatorListComponent implements OnInit {
|
|
4
5
|
private _template;
|
|
5
6
|
/**
|
|
@@ -10,7 +11,7 @@ export declare class AdvancedAggregatorListComponent implements OnInit {
|
|
|
10
11
|
* @property {Array<Array<any>>} body The list of data entries to show as the list body
|
|
11
12
|
*/
|
|
12
13
|
body: any;
|
|
13
|
-
clickEvent: EventEmitter<
|
|
14
|
+
clickEvent: EventEmitter<any>;
|
|
14
15
|
constructor(_template: TemplatePipe);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
/**
|
|
@@ -22,4 +23,6 @@ export declare class AdvancedAggregatorListComponent implements OnInit {
|
|
|
22
23
|
* }
|
|
23
24
|
*/
|
|
24
25
|
callCallback(type: string, data: any): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedAggregatorListComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedAggregatorListComponent, "app-advanced-aggregator-list", never, { "config": "config"; "body": "body"; }, { "clickEvent": "clickEvent"; }, never, never, false, never>;
|
|
25
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { AngularDataContext } from '@themost/angular';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -6,7 +6,8 @@ import { AdvancedTableComponent, AdvancedTableDataResult } from '../advanced-tab
|
|
|
6
6
|
import { ErrorService, ModalService, UserActivityService } from '@universis/common';
|
|
7
7
|
import { TableConfiguration } from '../advanced-table/advanced-table.interfaces';
|
|
8
8
|
import { ToastService } from '@universis/common';
|
|
9
|
-
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class AdvancedListComponent implements AfterViewInit, OnDestroy {
|
|
10
11
|
private _context;
|
|
11
12
|
private _translateService;
|
|
12
13
|
private _activatedRoute;
|
|
@@ -14,29 +15,31 @@ export declare class AdvancedListComponent implements OnInit, OnDestroy {
|
|
|
14
15
|
private _toastService;
|
|
15
16
|
private _modalService;
|
|
16
17
|
private _userActivityService;
|
|
17
|
-
recordsTotal
|
|
18
|
-
config
|
|
19
|
-
private subscription
|
|
20
|
-
private dataSubscription
|
|
21
|
-
private reloadSubscription
|
|
22
|
-
entitySet
|
|
23
|
-
category
|
|
24
|
-
description
|
|
25
|
-
longDescription
|
|
18
|
+
recordsTotal?: number;
|
|
19
|
+
config?: TableConfiguration;
|
|
20
|
+
private subscription?;
|
|
21
|
+
private dataSubscription?;
|
|
22
|
+
private reloadSubscription?;
|
|
23
|
+
entitySet?: string;
|
|
24
|
+
category?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
longDescription?: string;
|
|
26
27
|
tableConfiguration: any;
|
|
27
28
|
searchConfiguration: any;
|
|
28
|
-
table
|
|
29
|
+
table?: AdvancedTableComponent;
|
|
29
30
|
allowSaveOption: boolean;
|
|
30
31
|
constructor(_context: AngularDataContext, _translateService: TranslateService, _activatedRoute: ActivatedRoute, _errorService: ErrorService, _toastService: ToastService, _modalService: ModalService, _userActivityService: UserActivityService);
|
|
31
32
|
ngOnDestroy(): void;
|
|
32
|
-
|
|
33
|
+
ngAfterViewInit(): Promise<void>;
|
|
33
34
|
/**
|
|
34
35
|
* Data load event handler of advanced table component
|
|
35
|
-
* @param
|
|
36
|
+
* @param data
|
|
36
37
|
*/
|
|
37
38
|
onDataLoad(data: AdvancedTableDataResult): void;
|
|
38
39
|
/**
|
|
39
40
|
* Remove selected items
|
|
40
41
|
*/
|
|
41
42
|
remove(): Promise<void>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedListComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedListComponent, "app-advanced-list", never, { "entitySet": "entitySet"; "category": "category"; "description": "description"; "longDescription": "longDescription"; "tableConfiguration": "tableConfiguration"; "searchConfiguration": "searchConfiguration"; "allowSaveOption": "allowSaveOption"; }, {}, never, never, false, never>;
|
|
42
45
|
}
|
|
@@ -1,45 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import {
|
|
5
|
-
import 'rxjs/add/observable/combineLatest';
|
|
6
|
-
import { ErrorService, ModalService } from '@universis/common';
|
|
4
|
+
import { ModalService } from '@universis/common';
|
|
7
5
|
import { RouterModalOkCancel } from '@universis/common/routing';
|
|
8
|
-
import { AppEventService } from '@universis/common';
|
|
9
6
|
import { Observable } from 'rxjs';
|
|
10
7
|
import { AdvancedFormComponent } from '@universis/forms';
|
|
11
|
-
import { ProgressbarComponent } from 'ngx-bootstrap/progressbar';
|
|
12
|
-
|
|
8
|
+
import { ProgressbarComponent, ProgressbarType } from 'ngx-bootstrap/progressbar';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class AdvancedRowActionComponent extends RouterModalOkCancel implements 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
|
|
23
|
-
progressType:
|
|
16
|
+
description?: string;
|
|
17
|
+
formTemplate?: string;
|
|
18
|
+
progressType: ProgressbarType | any;
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
execute?: Observable<any>;
|
|
29
|
+
private refreshSubscription?;
|
|
30
|
+
private executeSubscription?;
|
|
31
|
+
progressValue: number;
|
|
32
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, _translateService: TranslateService, _modalService: ModalService);
|
|
33
|
+
get form(): AdvancedFormComponent;
|
|
39
34
|
ngAfterViewInit(): void;
|
|
40
35
|
ngOnDestroy(): void;
|
|
41
36
|
cancel(): Promise<any>;
|
|
42
37
|
ok(): Promise<void>;
|
|
43
38
|
showProgress(): void;
|
|
44
39
|
hideProgress(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedRowActionComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedRowActionComponent, "app-advanced-row-action", never, { "items": "items"; "modalIcon": "modalIcon"; "description": "description"; "formTemplate": "formTemplate"; "progressType": "progressType"; "additionalMessage": "additionalMessage"; "errorMessage": "errorMessage"; "refresh": "refresh"; "execute": "execute"; }, { "data": "data"; }, never, never, false, never>;
|
|
45
42
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormioComponent, FormioForm } from 'angular
|
|
2
|
+
import { FormioComponent, FormioForm } from '@formio/angular';
|
|
3
3
|
import { AngularDataContext } from '@themost/angular';
|
|
4
4
|
import { ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { AdvancedTableSearchBaseComponent } from '../advanced-table/advanced-table-search-base';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class AdvancedSearchFormComponent extends AdvancedTableSearchBaseComponent implements OnInit, OnDestroy, AfterViewInit, OnChanges {
|
|
9
10
|
private _context;
|
|
10
11
|
private _translateService;
|
|
11
12
|
private _activatedRoute;
|
|
12
13
|
private _http;
|
|
13
|
-
formComponent
|
|
14
|
+
formComponent?: FormioComponent;
|
|
14
15
|
form: any;
|
|
15
|
-
formSrc
|
|
16
|
+
formSrc?: string;
|
|
16
17
|
refreshForm: EventEmitter<any>;
|
|
17
18
|
loading: EventEmitter<{
|
|
18
19
|
target: AdvancedSearchFormComponent;
|
|
19
20
|
}>;
|
|
20
21
|
submission: any;
|
|
21
|
-
private filterSubscription
|
|
22
|
+
private filterSubscription?;
|
|
22
23
|
componentLoading: boolean;
|
|
23
24
|
constructor(_context: AngularDataContext, _translateService: TranslateService, _activatedRoute: ActivatedRoute, _http: HttpClient);
|
|
24
25
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -27,4 +28,6 @@ export declare class AdvancedSearchFormComponent extends AdvancedTableSearchBase
|
|
|
27
28
|
onFormLoad(form: FormioForm): void;
|
|
28
29
|
ngAfterViewInit(): void;
|
|
29
30
|
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchFormComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSearchFormComponent, "app-advanced-search-form", never, { "form": "form"; "formSrc": "formSrc"; }, { "refreshForm": "refreshForm"; "loading": "loading"; }, never, never, false, never>;
|
|
30
33
|
}
|
|
@@ -5,13 +5,15 @@ import { AngularDataContext } from '@themost/angular';
|
|
|
5
5
|
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
6
6
|
import { BsModalRef } from 'ngx-bootstrap/modal';
|
|
7
7
|
import { DatePipe } from '@angular/common';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class AdvancedSelectComponent extends AdvancedTableModalBaseComponent implements AfterViewInit {
|
|
9
10
|
private _modalRef;
|
|
10
11
|
private el;
|
|
11
12
|
dismiss: EventEmitter<any>;
|
|
12
|
-
searchElement: any;
|
|
13
13
|
constructor(router: Router, activatedRoute: ActivatedRoute, context: AngularDataContext, advancedFilterValueProvider: AdvancedFilterValueProvider, datePipe: DatePipe, _modalRef: BsModalRef, el: ElementRef);
|
|
14
14
|
ngAfterViewInit(): void;
|
|
15
15
|
ok(): Promise<void>;
|
|
16
16
|
cancel(): Promise<void>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSelectComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSelectComponent, "app-advanced-select", never, {}, {}, never, never, false, never>;
|
|
17
19
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ModalService } from '@universis/common';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class AdvancedSelectService {
|
|
3
4
|
private _modal;
|
|
4
5
|
constructor(_modal: ModalService);
|
|
@@ -6,4 +7,6 @@ export declare class AdvancedSelectService {
|
|
|
6
7
|
result: string;
|
|
7
8
|
items: Array<any>;
|
|
8
9
|
}>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSelectService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedSelectService>;
|
|
9
12
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class AdvancedFilterValueProvider {
|
|
2
3
|
values: {};
|
|
3
4
|
private _template;
|
|
@@ -5,4 +6,6 @@ export declare class AdvancedFilterValueProvider {
|
|
|
5
6
|
buildFilter(filter: any): any;
|
|
6
7
|
asyncBuildFilter(filter: any): Promise<any>;
|
|
7
8
|
getValues(): Promise<{}>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFilterValueProvider, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedFilterValueProvider>;
|
|
8
11
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AdvancedTableConfigurationResolver implements Resolve<string> {
|
|
4
5
|
private _http;
|
|
5
6
|
constructor(_http: HttpClient);
|
|
6
7
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<any> | any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableConfigurationResolver, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedTableConfigurationResolver>;
|
|
7
10
|
}
|
|
8
11
|
export declare class AdvancedSearchConfigurationResolver implements Resolve<string> {
|
|
9
12
|
private _http;
|
|
10
13
|
constructor(_http: HttpClient);
|
|
11
14
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<any> | any;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchConfigurationResolver, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedSearchConfigurationResolver>;
|
|
12
17
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class AdvancedTableSearchBaseComponent {
|
|
3
4
|
private _filter;
|
|
4
|
-
filterChange: EventEmitter<
|
|
5
|
-
filter: any;
|
|
5
|
+
filterChange: EventEmitter<any>;
|
|
6
|
+
get filter(): any;
|
|
7
|
+
set filter(value: any);
|
|
6
8
|
onKeyEnter(event: KeyboardEvent): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableSearchBaseComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedTableSearchBaseComponent, "ng-component", never, { "filter": "filter"; }, { "filterChange": "filterChange"; }, never, never, false, never>;
|
|
7
11
|
}
|
|
@@ -9,6 +9,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
9
9
|
import { AdvancedFilterValueProvider } from './advanced-filter-value-provider.service';
|
|
10
10
|
import { AdvancedTableSearchBaseComponent } from './advanced-table-search-base';
|
|
11
11
|
import { TemplatePipe } from '@universis/common';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
12
13
|
export interface AdvancedSearchViewStatus {
|
|
13
14
|
advancedView: boolean;
|
|
14
15
|
}
|
|
@@ -26,9 +27,9 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
26
27
|
private _template;
|
|
27
28
|
private _router;
|
|
28
29
|
private _modal;
|
|
29
|
-
private queryParamSubscription
|
|
30
|
-
private configChangesSubscription
|
|
31
|
-
table
|
|
30
|
+
private queryParamSubscription?;
|
|
31
|
+
private configChangesSubscription?;
|
|
32
|
+
table?: AdvancedTableComponent;
|
|
32
33
|
collapsed: boolean;
|
|
33
34
|
allowSave: boolean;
|
|
34
35
|
showMore: boolean;
|
|
@@ -36,8 +37,9 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
36
37
|
searchText: any;
|
|
37
38
|
viewChange: EventEmitter<AdvancedSearchViewStatus>;
|
|
38
39
|
listChange: EventEmitter<AdvancedSearchList>;
|
|
39
|
-
text: string;
|
|
40
|
-
|
|
40
|
+
set text(value: string);
|
|
41
|
+
get text(): string;
|
|
42
|
+
modalRef?: BsModalRef;
|
|
41
43
|
storageKey: any;
|
|
42
44
|
storageValue: any;
|
|
43
45
|
userSearchList: any;
|
|
@@ -66,7 +68,7 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
66
68
|
uploadListOnUserStorage(): void;
|
|
67
69
|
/**
|
|
68
70
|
* @deprecated This method is going to be deprecated. Use search() method instead.
|
|
69
|
-
* @param
|
|
71
|
+
* @param event
|
|
70
72
|
*/
|
|
71
73
|
asyncAdvancedSearch(event?: any): Promise<boolean>;
|
|
72
74
|
search(): Promise<void>;
|
|
@@ -76,9 +78,11 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
76
78
|
/**
|
|
77
79
|
* Gets the view state of search control
|
|
78
80
|
*/
|
|
79
|
-
|
|
81
|
+
get viewState(): AdvancedSearchViewStatus;
|
|
80
82
|
/**
|
|
81
83
|
* Switches view between simple and advanced search
|
|
82
84
|
*/
|
|
83
85
|
toggleView(): Promise<void>;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableSearchComponent, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedTableSearchComponent, "app-advanced-table-search", never, { "table": "table"; "collapsed": "collapsed"; "allowSave": "allowSave"; "showMore": "showMore"; "mergeQueryParams": "mergeQueryParams"; }, { "viewChange": "viewChange"; "listChange": "listChange"; }, never, ["advanced-search"], false, never>;
|
|
84
88
|
}
|
|
@@ -6,25 +6,25 @@ import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
|
|
6
6
|
import { ActivatedTableService } from '../../tables.activated-table.service';
|
|
7
7
|
import { UserStorageService } from '@universis/common';
|
|
8
8
|
import { FormBuilder, FormGroup, ValidatorFn } from '@angular/forms';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class AdvancedTableSettingsComponent implements OnInit, AfterViewInit {
|
|
10
11
|
protected _context: AngularDataContext;
|
|
11
12
|
protected _activatedRoute: ActivatedRoute;
|
|
12
|
-
private elRef;
|
|
13
13
|
private modalService;
|
|
14
14
|
private userStorage;
|
|
15
15
|
private formBuilder;
|
|
16
16
|
private _activatedTable;
|
|
17
|
-
table
|
|
18
|
-
modal_settings_template
|
|
19
|
-
modalRef
|
|
17
|
+
table?: AdvancedTableComponent;
|
|
18
|
+
modal_settings_template?: ElementRef;
|
|
19
|
+
modalRef?: BsModalRef;
|
|
20
20
|
storageKey: any;
|
|
21
21
|
params: any;
|
|
22
22
|
private savedTableSettings;
|
|
23
|
-
form
|
|
23
|
+
form?: FormGroup;
|
|
24
24
|
columns: any[];
|
|
25
25
|
tableColumns: any;
|
|
26
26
|
activeTableConfig: any;
|
|
27
|
-
constructor(_context: AngularDataContext, _activatedRoute: ActivatedRoute,
|
|
27
|
+
constructor(_context: AngularDataContext, _activatedRoute: ActivatedRoute, modalService: BsModalService, userStorage: UserStorageService, formBuilder: FormBuilder, _activatedTable: ActivatedTableService);
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
ngAfterViewInit(): void;
|
|
30
30
|
private addCheckboxes;
|
|
@@ -32,4 +32,6 @@ export declare class AdvancedTableSettingsComponent implements OnInit, AfterView
|
|
|
32
32
|
saveTableSettings(): void;
|
|
33
33
|
dismiss(): void;
|
|
34
34
|
minSelectedColumns(min?: number): ValidatorFn;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedTableSettingsComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedTableSettingsComponent, "app-advanced-table-settings", never, { "table": "table"; }, {}, never, never, false, never>;
|
|
35
37
|
}
|