@universis/ngx-tables 0.8.5 → 6.0.1

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.
Files changed (106) hide show
  1. package/bundles/universis-ngx-tables.umd.js +5816 -3756
  2. package/bundles/universis-ngx-tables.umd.js.map +1 -1
  3. package/bundles/universis-ngx-tables.umd.min.js +1 -1
  4. package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
  5. package/esm2015/lib/actions/table.actions.js +48 -7
  6. package/esm2015/lib/advanced-aggregator.js +5 -1
  7. package/esm2015/lib/components/add-items/add-items.component.js +93 -26
  8. package/esm2015/lib/components/advanced-aggregator/advanced-aggregator.component.js +75 -5
  9. package/esm2015/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +39 -12
  10. package/esm2015/lib/components/advanced-list/advanced-list.component.js +105 -33
  11. package/esm2015/lib/components/advanced-row-action/advanced-row-action.component.js +97 -16
  12. package/esm2015/lib/components/advanced-search-form/advanced-search-form.component.js +87 -16
  13. package/esm2015/lib/components/advanced-select/advanced-select.component.js +33 -1
  14. package/esm2015/lib/components/advanced-select/advanced-select.service.js +20 -3
  15. package/esm2015/lib/components/advanced-table/advanced-filter-value-provider.service.js +23 -2
  16. package/esm2015/lib/components/advanced-table/advanced-table-resolvers.js +37 -9
  17. package/esm2015/lib/components/advanced-table/advanced-table-search-base.js +22 -1
  18. package/esm2015/lib/components/advanced-table/advanced-table-search.component.js +223 -31
  19. package/esm2015/lib/components/advanced-table/advanced-table-settings.component.js +90 -8
  20. package/esm2015/lib/components/advanced-table/advanced-table.component.js +577 -127
  21. package/esm2015/lib/components/advanced-table/advanced-table.formatters.interface.js +36 -1
  22. package/esm2015/lib/components/advanced-table/advanced-table.formatters.js +257 -44
  23. package/esm2015/lib/components/advanced-table/advanced-table.interfaces.js +4 -0
  24. package/esm2015/lib/components/advanced-table-modal/advanced-table-modal-base.component.js +211 -55
  25. package/esm2015/lib/components/column-selector/column-selector.component.js +167 -73
  26. package/esm2015/lib/components/column-selector/column-selector.service.js +19 -2
  27. package/esm2015/lib/components/table-simple-header/table-simple-header.component.js +31 -7
  28. package/esm2015/lib/directives/advance-search-state.directive.js +49 -10
  29. package/esm2015/lib/directives/advance-table-state.directive.js +26 -3
  30. package/esm2015/lib/directives/advanced-search-router-state.directive.js +35 -8
  31. package/esm2015/lib/directives/advanced-table-editor.directive.js +43 -13
  32. package/esm2015/lib/directives/btnexp.directive.js +85 -42
  33. package/esm2015/lib/i18n/tables.el.js +6 -3
  34. package/esm2015/lib/i18n/tables.en.js +6 -3
  35. package/esm2015/lib/pipes/advanced-aggregator.pipe.js +12 -8
  36. package/esm2015/lib/pipes/advansed-aggregator-list-title-parse.pipe.js +19 -7
  37. package/esm2015/lib/reducers/index.js +32 -1
  38. package/esm2015/lib/services/advanced-aggregator/advanced-aggregator.service.js +37 -15
  39. package/esm2015/lib/tables.activated-table.service.js +41 -6
  40. package/esm2015/lib/tables.module.js +18 -4
  41. package/esm2015/public_api.js +33 -29
  42. package/esm2015/universis-ngx-tables.js +6 -2
  43. package/esm5/lib/actions/table.actions.js +37 -7
  44. package/esm5/lib/advanced-aggregator.js +5 -1
  45. package/esm5/lib/components/add-items/add-items.component.js +124 -34
  46. package/esm5/lib/components/advanced-aggregator/advanced-aggregator.component.js +111 -15
  47. package/esm5/lib/components/advanced-aggregator-list/advanced-aggregator-list.component.js +54 -11
  48. package/esm5/lib/components/advanced-list/advanced-list.component.js +125 -37
  49. package/esm5/lib/components/advanced-row-action/advanced-row-action.component.js +124 -24
  50. package/esm5/lib/components/advanced-search-form/advanced-search-form.component.js +109 -22
  51. package/esm5/lib/components/advanced-select/advanced-select.component.js +36 -4
  52. package/esm5/lib/components/advanced-select/advanced-select.service.js +22 -4
  53. package/esm5/lib/components/advanced-table/advanced-filter-value-provider.service.js +37 -5
  54. package/esm5/lib/components/advanced-table/advanced-table-resolvers.js +43 -11
  55. package/esm5/lib/components/advanced-table/advanced-table-search-base.js +29 -4
  56. package/esm5/lib/components/advanced-table/advanced-table-search.component.js +323 -58
  57. package/esm5/lib/components/advanced-table/advanced-table-settings.component.js +112 -15
  58. package/esm5/lib/components/advanced-table/advanced-table.component.js +762 -165
  59. package/esm5/lib/components/advanced-table/advanced-table.formatters.interface.js +36 -1
  60. package/esm5/lib/components/advanced-table/advanced-table.formatters.js +392 -57
  61. package/esm5/lib/components/advanced-table/advanced-table.interfaces.js +4 -0
  62. package/esm5/lib/components/advanced-table-modal/advanced-table-modal-base.component.js +311 -70
  63. package/esm5/lib/components/column-selector/column-selector.component.js +264 -145
  64. package/esm5/lib/components/column-selector/column-selector.service.js +21 -3
  65. package/esm5/lib/components/table-simple-header/table-simple-header.component.js +44 -10
  66. package/esm5/lib/directives/advance-search-state.directive.js +68 -15
  67. package/esm5/lib/directives/advance-table-state.directive.js +26 -4
  68. package/esm5/lib/directives/advanced-search-router-state.directive.js +39 -12
  69. package/esm5/lib/directives/advanced-table-editor.directive.js +66 -18
  70. package/esm5/lib/directives/btnexp.directive.js +171 -39
  71. package/esm5/lib/i18n/tables.el.js +6 -3
  72. package/esm5/lib/i18n/tables.en.js +6 -3
  73. package/esm5/lib/pipes/advanced-aggregator.pipe.js +32 -6
  74. package/esm5/lib/pipes/advansed-aggregator-list-title-parse.pipe.js +34 -8
  75. package/esm5/lib/reducers/index.js +32 -1
  76. package/esm5/lib/services/advanced-aggregator/advanced-aggregator.service.js +75 -13
  77. package/esm5/lib/tables.activated-table.service.js +39 -8
  78. package/esm5/lib/tables.module.js +19 -5
  79. package/esm5/public_api.js +33 -29
  80. package/esm5/universis-ngx-tables.js +6 -2
  81. package/fesm2015/universis-ngx-tables.js +1871 -570
  82. package/fesm2015/universis-ngx-tables.js.map +1 -1
  83. package/fesm5/universis-ngx-tables.js +2903 -803
  84. package/fesm5/universis-ngx-tables.js.map +1 -1
  85. package/lib/components/add-items/add-items.component.d.ts +9 -16
  86. package/lib/components/advanced-aggregator/advanced-aggregator.component.d.ts +5 -5
  87. package/lib/components/advanced-list/advanced-list.component.d.ts +11 -11
  88. package/lib/components/advanced-row-action/advanced-row-action.component.d.ts +11 -16
  89. package/lib/components/advanced-search-form/advanced-search-form.component.d.ts +3 -3
  90. package/lib/components/advanced-table/advanced-table-search.component.d.ts +5 -5
  91. package/lib/components/advanced-table/advanced-table-settings.component.d.ts +5 -6
  92. package/lib/components/advanced-table/advanced-table.component.d.ts +14 -15
  93. package/lib/components/advanced-table/advanced-table.formatters.d.ts +11 -11
  94. package/lib/components/advanced-table-modal/advanced-table-modal-base.component.d.ts +11 -11
  95. package/lib/components/column-selector/column-selector.component.d.ts +4 -4
  96. package/lib/components/table-simple-header/table-simple-header.component.d.ts +3 -3
  97. package/lib/directives/advance-search-state.directive.d.ts +3 -3
  98. package/lib/directives/advance-table-state.directive.d.ts +1 -1
  99. package/lib/directives/advanced-search-router-state.directive.d.ts +6 -6
  100. package/lib/directives/btnexp.directive.d.ts +9 -9
  101. package/lib/pipes/advanced-aggregator.pipe.d.ts +3 -3
  102. package/lib/pipes/advansed-aggregator-list-title-parse.pipe.d.ts +5 -5
  103. package/lib/services/advanced-aggregator/advanced-aggregator.service.d.ts +8 -8
  104. package/lib/tables.activated-table.service.d.ts +6 -6
  105. package/package.json +10 -4
  106. 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 { AppEventService, ErrorService, LoadingService, ModalService, ToastService } from '@universis/common';
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: Observable<any>;
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: AdvancedFormComponent;
27
- selectComponent: AdvancedTableModalBaseComponent;
28
- private formLoadSubscription;
29
- private formChangeSubscription;
30
- private selectedSubscription;
31
- constructor(router: Router, activatedRoute: ActivatedRoute, _errorService: ErrorService, _modalService: ModalService, _appEvent: AppEventService, _toastService: ToastService, _loadingService: LoadingService, _translateService: TranslateService, _context: AngularDataContext);
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
- * @class AdvancedAggregatorComponent
8
- * @classdesc An advanced list with the capability of aggregate data based on configurable filters
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: string;
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 {*} event The event data
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: 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;
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: AdvancedTableComponent;
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 {AdvancedTableDataResult} data
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 { ErrorService, ModalService } from '@universis/common';
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: string;
22
- formTemplate: string;
16
+ description?: string;
17
+ formTemplate?: string;
23
18
  progressType: string;
24
19
  data: any;
25
- additionalMessage: string;
20
+ additionalMessage?: string;
26
21
  errorMessage: string;
27
22
  lastError: any;
28
23
  loading: boolean;
29
- progressComponent: ProgressbarComponent;
30
- progressContainer: ElementRef;
31
- formComponent: AdvancedFormComponent;
24
+ progressComponent?: ProgressbarComponent;
25
+ progressContainer?: ElementRef;
26
+ formComponent?: AdvancedFormComponent;
32
27
  refresh: any;
33
- execute: Observable<any>;
34
- private refreshSubscription;
35
- private executeSubscription;
36
- constructor(router: Router, activatedRoute: ActivatedRoute, _translateService: TranslateService, _context: AngularDataContext, _errorService: ErrorService, _modalService: ModalService, _appEvent: AppEventService);
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: FormioComponent;
13
+ formComponent?: FormioComponent;
14
14
  form: any;
15
- formSrc: string;
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: AdvancedTableComponent;
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: BsModalRef;
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 {*} event
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: AdvancedTableComponent;
18
- modal_settings_template: ElementRef;
19
- modalRef: BsModalRef;
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: FormGroup;
22
+ form?: FormGroup;
24
23
  columns: any[];
25
24
  tableColumns: any;
26
25
  activeTableConfig: any;
27
- constructor(_context: AngularDataContext, _activatedRoute: ActivatedRoute, elRef: ElementRef, modalService: BsModalService, userStorage: UserStorageService, formBuilder: FormBuilder, _activatedTable: ActivatedTableService);
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: ElementRef;
55
- emptyTable: ElementRef;
56
- errorTemplate: ElementRef;
57
- loadingTable: ElementRef;
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: (settings: any, callback: (state: any) => void) => void;
84
- stateSaveCallback: (settings: any, state: any) => void;
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: string;
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: 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;
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: AdvancedTableComponent;
28
- emptyTable: ElementRef;
29
- dropdownFilter: ElementRef;
30
- dropdownLength: ElementRef;
27
+ advancedTable?: AdvancedTableComponent;
28
+ emptyTable?: ElementRef;
29
+ dropdownFilter?: ElementRef;
30
+ dropdownLength?: ElementRef;
31
31
  searchElement: any;
32
- tableConfig: TableConfiguration;
33
- tableConfigSrc: string;
32
+ tableConfig?: TableConfiguration;
33
+ tableConfigSrc?: string;
34
34
  pageLength: number;
35
- searchText: string;
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: Subscription;
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 {object} searchItem The searchItem to use
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 {object} filter The filter to use in the search
84
+ * @param filter The filter to use in the search
85
85
  *
86
86
  */
87
87
  advancedSearch(filter: any): Promise<any>;
@@ -6,19 +6,19 @@ import { BsModalRef } from 'ngx-bootstrap/modal';
6
6
  export declare class ColumnSelectorComponent extends RouterModalOkCancel implements OnInit, OnDestroy, OnChanges {
7
7
  private _modalRef;
8
8
  private _changeDetector;
9
- columns: {
9
+ columns?: {
10
10
  key: string;
11
11
  title: string;
12
12
  visible: boolean;
13
13
  index: number;
14
14
  }[];
15
15
  dismiss: EventEmitter<any>;
16
- selectedColumns: {
16
+ selectedColumns?: {
17
17
  key: string;
18
18
  title: string;
19
19
  }[];
20
- moveUpButton: ElementRef;
21
- moveDownButton: ElementRef;
20
+ moveUpButton?: ElementRef;
21
+ moveDownButton?: ElementRef;
22
22
  availableColumnsControl: FormControl;
23
23
  selectedColumnsControl: FormControl;
24
24
  changing: boolean;
@@ -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: AdvancedTableComponent;
10
- recordsTotal: number;
11
- dataLoadSubscription: Subscription;
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: string;
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: string;
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 "@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";
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 {ClientDataQueryable} query
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 {ClientDataQueryable} query
36
- * @param {Headers} headers: The headers to append to the query
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 {ClientDataQueryable} query
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 {ClientDataQueryable} query
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 {ClientDataQueryable} query
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 {Headers} headers: The headers to append to the query
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 {String} url
70
- * @param {Headers} serviceHeaders: The headers to append to the query
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 "@angular/core";
1
+ import { PipeTransform } from '@angular/core';
2
2
  /**
3
3
  *
4
- * @class AdvancedAggregatorPipe
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 {string} The value to show at the UI
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 "@angular/core";
2
- import { TranslateService } from "@ngx-translate/core";
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
3
  /**
4
4
  *
5
- * @class ParseTitlePipe
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 {string} title The title of the list
17
- * @param {string} key The current list key that is being used
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;
@@ -8,14 +8,14 @@ export declare class AdvancedAggregatorService {
8
8
  *
9
9
  * Formats and executes the data query
10
10
  *
11
- * @param {string} model The target model
12
- * @param {object} fixedParams Pairs of parameters to always be applied
13
- * @param {string} queryStatement The default query to use for fetching the data (e.g. expands etc)
14
- * @param {Array<string>} filters A list of filter expressions to append at the query
15
- * @param {string} searchTemplate The template to use for searching expressions
16
- * @param {string} searchValue The value of the user search
11
+ * @param model The target model
12
+ * @param fixedParams Pairs of parameters to always be applied
13
+ * @param queryStatement The default query to use for fetching the data (e.g. expands etc)
14
+ * @param filters A list of filter expressions to append at the query
15
+ * @param searchTemplate The template to use for searching expressions
16
+ * @param searchValue The value of the user search
17
17
  *
18
- * @returns {Promise<any>} The response of the query execution
18
+ * @returns The response of the query execution
19
19
  */
20
20
  fetchData(model: string, fixedParams: object, queryStatement: string, filters: string[], searchTemplate?: string, searchValue?: string): Promise<any>;
21
21
  /**
@@ -25,7 +25,7 @@ export declare class AdvancedAggregatorService {
25
25
  * @param config The applied configuration
26
26
  * @param data The raw data
27
27
  *
28
- * @returns {Array<any>} The flat-key object list
28
+ * @returns The flat-key object list
29
29
  *
30
30
  */
31
31
  formatData(config: any, data: any): any;