@meshmakers/octo-ui 2.0.2304-14001 → 2.1.3-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.
@@ -5,166 +5,176 @@ import { fromEvent, merge, of } from 'rxjs';
5
5
  import { debounceTime, distinctUntilChanged, tap, catchError } from 'rxjs/operators';
6
6
  import { DataSourceBase, PagedResultDto } from '@meshmakers/shared-services';
7
7
 
8
- class ListElementModule {
9
- }
10
- ListElementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ListElementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- ListElementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: ListElementModule, imports: [CommonModule] });
12
- ListElementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ListElementModule, imports: [CommonModule] });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ListElementModule, decorators: [{
14
- type: NgModule,
15
- args: [{
16
- declarations: [],
17
- imports: [
18
- CommonModule
19
- ]
20
- }]
8
+ class ListElementModule {
9
+ }
10
+ ListElementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListElementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ ListElementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: ListElementModule, imports: [CommonModule] });
12
+ ListElementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListElementModule, imports: [CommonModule] });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListElementModule, decorators: [{
14
+ type: NgModule,
15
+ args: [{
16
+ declarations: [],
17
+ imports: [
18
+ CommonModule
19
+ ]
20
+ }]
21
21
  }] });
22
22
 
23
- /* tslint:disable */
24
- /* eslint-disable */
25
- // @generated
26
- // This file was automatically generated and should not be edited.
27
- /** Defines the operator of field compare */
28
- var FieldFilterOperatorsDto;
29
- (function (FieldFilterOperatorsDto) {
30
- FieldFilterOperatorsDto["EqualsDto"] = "EQUALS";
31
- FieldFilterOperatorsDto["GreaterEqualThanDto"] = "GREATER_EQUAL_THAN";
32
- FieldFilterOperatorsDto["GreaterThanDto"] = "GREATER_THAN";
33
- FieldFilterOperatorsDto["InDto"] = "IN";
34
- FieldFilterOperatorsDto["LessEqualThanDto"] = "LESS_EQUAL_THAN";
35
- FieldFilterOperatorsDto["LessThanDto"] = "LESS_THAN";
36
- FieldFilterOperatorsDto["LikeDto"] = "LIKE";
37
- FieldFilterOperatorsDto["MatchRegExDto"] = "MATCH_REG_EX";
38
- FieldFilterOperatorsDto["NotEqualsDto"] = "NOT_EQUALS";
39
- FieldFilterOperatorsDto["NotInDto"] = "NOT_IN";
40
- FieldFilterOperatorsDto["NotMatchRegExDto"] = "NOT_MATCH_REG_EX";
41
- })(FieldFilterOperatorsDto || (FieldFilterOperatorsDto = {}));
42
- /** The scope of the construction kit model */
43
- var ScopesDto;
44
- (function (ScopesDto) {
45
- ScopesDto["ApplicationDto"] = "APPLICATION";
46
- ScopesDto["Layer_2Dto"] = "LAYER_2";
47
- ScopesDto["Layer_3Dto"] = "LAYER_3";
48
- ScopesDto["Layer_4Dto"] = "LAYER_4";
49
- ScopesDto["SystemDto"] = "SYSTEM";
50
- })(ScopesDto || (ScopesDto = {}));
51
- /** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */
52
- var SearchFilterTypesDto;
53
- (function (SearchFilterTypesDto) {
54
- SearchFilterTypesDto["AttributeFilterDto"] = "ATTRIBUTE_FILTER";
55
- SearchFilterTypesDto["TextSearchDto"] = "TEXT_SEARCH";
56
- })(SearchFilterTypesDto || (SearchFilterTypesDto = {}));
57
- /** Defines the sort order */
58
- var SortOrdersDto;
59
- (function (SortOrdersDto) {
60
- SortOrdersDto["AscendingDto"] = "ASCENDING";
61
- SortOrdersDto["DefaultDto"] = "DEFAULT";
62
- SortOrdersDto["DescendingDto"] = "DESCENDING";
63
- })(SortOrdersDto || (SortOrdersDto = {}));
64
- //==============================================================
65
- // END Enums and Input Objects
23
+ /* tslint:disable */
24
+ /* eslint-disable */
25
+ // @generated
26
+ // This file was automatically generated and should not be edited.
27
+ /** Defines the operator of field compare */
28
+ var FieldFilterOperatorsDto;
29
+ (function (FieldFilterOperatorsDto) {
30
+ FieldFilterOperatorsDto["EqualsDto"] = "EQUALS";
31
+ FieldFilterOperatorsDto["GreaterEqualThanDto"] = "GREATER_EQUAL_THAN";
32
+ FieldFilterOperatorsDto["GreaterThanDto"] = "GREATER_THAN";
33
+ FieldFilterOperatorsDto["InDto"] = "IN";
34
+ FieldFilterOperatorsDto["LessEqualThanDto"] = "LESS_EQUAL_THAN";
35
+ FieldFilterOperatorsDto["LessThanDto"] = "LESS_THAN";
36
+ FieldFilterOperatorsDto["LikeDto"] = "LIKE";
37
+ FieldFilterOperatorsDto["MatchRegExDto"] = "MATCH_REG_EX";
38
+ FieldFilterOperatorsDto["NotEqualsDto"] = "NOT_EQUALS";
39
+ FieldFilterOperatorsDto["NotInDto"] = "NOT_IN";
40
+ FieldFilterOperatorsDto["NotMatchRegExDto"] = "NOT_MATCH_REG_EX";
41
+ })(FieldFilterOperatorsDto || (FieldFilterOperatorsDto = {}));
42
+ /** The scope of the construction kit model */
43
+ var ScopesDto;
44
+ (function (ScopesDto) {
45
+ ScopesDto["ApplicationDto"] = "APPLICATION";
46
+ ScopesDto["Layer_2Dto"] = "LAYER_2";
47
+ ScopesDto["Layer_3Dto"] = "LAYER_3";
48
+ ScopesDto["Layer_4Dto"] = "LAYER_4";
49
+ ScopesDto["SystemDto"] = "SYSTEM";
50
+ })(ScopesDto || (ScopesDto = {}));
51
+ /** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */
52
+ var SearchFilterTypesDto;
53
+ (function (SearchFilterTypesDto) {
54
+ SearchFilterTypesDto["AttributeFilterDto"] = "ATTRIBUTE_FILTER";
55
+ SearchFilterTypesDto["TextSearchDto"] = "TEXT_SEARCH";
56
+ })(SearchFilterTypesDto || (SearchFilterTypesDto = {}));
57
+ /** Defines the sort order */
58
+ var SortOrdersDto;
59
+ (function (SortOrdersDto) {
60
+ SortOrdersDto["AscendingDto"] = "ASCENDING";
61
+ SortOrdersDto["DefaultDto"] = "DEFAULT";
62
+ SortOrdersDto["DescendingDto"] = "DESCENDING";
63
+ })(SortOrdersDto || (SortOrdersDto = {}));
64
+ //==============================================================
65
+ // END Enums and Input Objects
66
66
  //==============================================================
67
67
 
68
- class OctoListNavigationDataInfo {
69
- }
70
- class OctoListNavigationOptions {
71
- }
72
- class OctoListNavigation {
73
- constructor(paginator, sort, searchBox, octoOptions) {
74
- this.paginator = paginator;
75
- this.sort = sort;
76
- this.searchBox = searchBox;
77
- this.octoOptions = octoOptions;
78
- this.loadDataRequest = new EventEmitter();
79
- }
80
- get loadDataInfo() {
81
- const filterString = this.searchBox.nativeElement.value;
82
- const sortField = this.sort.active;
83
- const sortDirection = this.sort.direction;
84
- let filter = null;
85
- if (filterString) {
86
- filter = {
87
- language: this.octoOptions.language,
88
- searchTerm: filterString,
89
- type: this.octoOptions.searchFilterType,
90
- attributeNames: this.octoOptions.searchFilterAttributeNames
91
- };
92
- }
93
- let sort = [];
94
- if (sortField && sortDirection) {
95
- sort.push({
96
- attributeName: sortField,
97
- sortOrder: sortDirection === "asc" ? SortOrdersDto.AscendingDto : SortOrdersDto.DescendingDto
98
- });
99
- }
100
- return {
101
- skip: this.paginator.pageIndex * this.paginator.pageSize,
102
- take: this.paginator.pageSize,
103
- searchFilter: filter,
104
- sort: sort
105
- };
106
- }
107
- init() {
108
- // server-side search
109
- fromEvent(this.searchBox.nativeElement, 'keyup')
110
- .pipe(debounceTime(500), distinctUntilChanged(), tap(() => {
111
- this.paginator.pageIndex = 0;
112
- const searchText = this.searchBox.nativeElement.value;
113
- if (!this.lastSearchText && searchText) {
114
- this.lastSortDirection = this.sort.direction;
115
- this.lastSortField = this.sort.active;
116
- // Reset sorting to see the score rating (default sorting returned from server)
117
- this.sort.sort({ id: '', start: 'asc', disableClear: false });
118
- }
119
- this.lastSearchText = searchText;
120
- if (!searchText && this.lastSortField) {
121
- if (this.lastSortDirection == "asc") {
122
- this.sort.sort({ id: this.lastSortField, start: 'asc', disableClear: true });
123
- }
124
- else if (this.lastSortDirection == "desc") {
125
- this.sort.sort({ id: this.lastSortField, start: 'desc', disableClear: true });
126
- }
127
- }
128
- this.loadData();
129
- }))
130
- .subscribe();
131
- // reset the paginator after sorting
132
- this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);
133
- merge(this.sort.sortChange, this.paginator.page)
134
- .pipe(tap(() => this.loadData()))
135
- .subscribe();
136
- }
137
- loadData() {
138
- this.loadDataRequest.emit(this.loadDataInfo);
139
- }
68
+ class OctoListNavigationDataInfo {
69
+ constructor() {
70
+ this.skip = 0;
71
+ this.take = 10;
72
+ }
73
+ }
74
+ class OctoListNavigationOptions {
75
+ constructor() {
76
+ this.language = null;
77
+ }
78
+ }
79
+ class OctoListNavigation {
80
+ constructor(paginator, sort, searchBox, octoOptions) {
81
+ this.paginator = paginator;
82
+ this.sort = sort;
83
+ this.searchBox = searchBox;
84
+ this.octoOptions = octoOptions;
85
+ this.loadDataRequest = new EventEmitter();
86
+ this.lastSortDirection = null;
87
+ this.lastSortField = null;
88
+ this.lastSearchText = null;
89
+ }
90
+ get loadDataInfo() {
91
+ const filterString = this.searchBox.nativeElement.value;
92
+ const sortField = this.sort.active;
93
+ const sortDirection = this.sort.direction;
94
+ let filter = null;
95
+ if (filterString) {
96
+ filter = {
97
+ language: this.octoOptions.language,
98
+ searchTerm: filterString,
99
+ type: this.octoOptions.searchFilterType,
100
+ attributeNames: this.octoOptions.searchFilterAttributeNames
101
+ };
102
+ }
103
+ let sort = [];
104
+ if (sortField && sortDirection) {
105
+ sort.push({
106
+ attributeName: sortField,
107
+ sortOrder: sortDirection === "asc" ? SortOrdersDto.AscendingDto : SortOrdersDto.DescendingDto
108
+ });
109
+ }
110
+ return {
111
+ skip: this.paginator.pageIndex * this.paginator.pageSize,
112
+ take: this.paginator.pageSize,
113
+ searchFilter: filter,
114
+ sort: sort
115
+ };
116
+ }
117
+ init() {
118
+ // server-side search
119
+ fromEvent(this.searchBox.nativeElement, 'keyup')
120
+ .pipe(debounceTime(500), distinctUntilChanged(), tap(() => {
121
+ this.paginator.pageIndex = 0;
122
+ const searchText = this.searchBox.nativeElement.value;
123
+ if (!this.lastSearchText && searchText) {
124
+ this.lastSortDirection = this.sort.direction;
125
+ this.lastSortField = this.sort.active;
126
+ // Reset sorting to see the score rating (default sorting returned from server)
127
+ this.sort.sort({ id: '', start: 'asc', disableClear: false });
128
+ }
129
+ this.lastSearchText = searchText;
130
+ if (!searchText && this.lastSortField) {
131
+ if (this.lastSortDirection == "asc") {
132
+ this.sort.sort({ id: this.lastSortField, start: 'asc', disableClear: true });
133
+ }
134
+ else if (this.lastSortDirection == "desc") {
135
+ this.sort.sort({ id: this.lastSortField, start: 'desc', disableClear: true });
136
+ }
137
+ }
138
+ this.loadData();
139
+ }))
140
+ .subscribe();
141
+ // reset the paginator after sorting
142
+ this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);
143
+ merge(this.sort.sortChange, this.paginator.page)
144
+ .pipe(tap(() => this.loadData()))
145
+ .subscribe();
146
+ }
147
+ loadData() {
148
+ this.loadDataRequest.emit(this.loadDataInfo);
149
+ }
140
150
  }
141
151
 
142
- class GraphQLDataSource extends DataSourceBase {
143
- constructor(messageService) {
144
- super();
145
- this.messageService = messageService;
146
- }
147
- loadData(tenantId, skip = 0, take = 10, searchFilter = null, fieldFilter = null, sort = null) {
148
- super.onBeginLoad();
149
- this.executeLoad(tenantId, skip, take, searchFilter, fieldFilter, sort).pipe(catchError((error) => {
150
- this.messageService.showError(error, "Error during load of data");
151
- return of(new PagedResultDto());
152
- }))
153
- .subscribe(pagedResult => {
154
- super.onCompleteLoad(pagedResult);
155
- });
156
- }
157
- executeLoad(tenantId, skip = 0, take = 10, searchFilter = null, fieldFilter = null, sort = null) {
158
- return of(new PagedResultDto());
159
- }
152
+ class GraphQLDataSource extends DataSourceBase {
153
+ constructor(messageService) {
154
+ super();
155
+ this.messageService = messageService;
156
+ }
157
+ loadData(tenantId, skip = 0, take = 10, searchFilter = null, fieldFilter = null, sort = null) {
158
+ super.onBeginLoad();
159
+ this.executeLoad(tenantId, skip, take, searchFilter, fieldFilter, sort).pipe(catchError((error) => {
160
+ this.messageService.showError(error, "Error during load of data");
161
+ return of(new PagedResultDto());
162
+ }))
163
+ .subscribe(pagedResult => {
164
+ super.onCompleteLoad(pagedResult);
165
+ });
166
+ }
167
+ executeLoad(tenantId, skip = 0, take = 10, searchFilter = null, fieldFilter = null, sort = null) {
168
+ return of(new PagedResultDto());
169
+ }
160
170
  }
161
171
 
162
- /*
163
- * Public API Surface of osp-ui
172
+ /*
173
+ * Public API Surface of octo-ui
164
174
  */
165
175
 
166
- /**
167
- * Generated bundle index. Do not edit.
176
+ /**
177
+ * Generated bundle index. Do not edit.
168
178
  */
169
179
 
170
180
  export { FieldFilterOperatorsDto, GraphQLDataSource, ListElementModule, OctoListNavigation, OctoListNavigationDataInfo, OctoListNavigationOptions, ScopesDto, SearchFilterTypesDto, SortOrdersDto };
@@ -1 +1 @@
1
- {"version":3,"file":"meshmakers-octo-ui.mjs","sources":["../../../../projects/meshmakers/octo-ui/src/lib/list-element/list-element.module.ts","../../../../projects/meshmakers/octo-ui/src/lib/list-element/globalTypes.ts","../../../../projects/meshmakers/octo-ui/src/lib/list-element/octoListNavigation.ts","../../../../projects/meshmakers/octo-ui/src/lib/list-element/graphQLDataSource.ts","../../../../projects/meshmakers/octo-ui/src/public-api.ts","../../../../projects/meshmakers/octo-ui/src/meshmakers-octo-ui.ts"],"sourcesContent":["import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\n\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule\r\n ]\r\n})\r\nexport class ListElementModule {\r\n}\r\n","/* tslint:disable */\r\n/* eslint-disable */\r\n// @generated\r\n// This file was automatically generated and should not be edited.\r\n\r\n//==============================================================\r\n// START Enums and Input Objects\r\n//==============================================================\r\nexport type Maybe<T> = T | null;\r\nexport type InputMaybe<T> = Maybe<T>;\r\n\r\n/** All built-in and custom scalars, mapped to their actual values */\r\nexport type Scalars = {\r\n ID: string;\r\n String: string;\r\n Boolean: boolean;\r\n Int: number;\r\n Float: number;\r\n /** The `DateTime` scalar type represents a date and time. `DateTime` expects timestamps to be formatted in accordance with the [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) standard. */\r\n DateTime: any;\r\n Decimal: any;\r\n OspObjectIdType: any;\r\n SimpleScalarType: any;\r\n};\r\n\r\nexport type FieldFilterDto = {\r\n attributeName: Scalars['String'];\r\n comparisonValue?: InputMaybe<Scalars['SimpleScalarType']>;\r\n operator?: InputMaybe<FieldFilterOperatorsDto>;\r\n};\r\n\r\n/** Defines the operator of field compare */\r\nexport enum FieldFilterOperatorsDto {\r\n EqualsDto = 'EQUALS',\r\n GreaterEqualThanDto = 'GREATER_EQUAL_THAN',\r\n GreaterThanDto = 'GREATER_THAN',\r\n InDto = 'IN',\r\n LessEqualThanDto = 'LESS_EQUAL_THAN',\r\n LessThanDto = 'LESS_THAN',\r\n LikeDto = 'LIKE',\r\n MatchRegExDto = 'MATCH_REG_EX',\r\n NotEqualsDto = 'NOT_EQUALS',\r\n NotInDto = 'NOT_IN',\r\n NotMatchRegExDto = 'NOT_MATCH_REG_EX'\r\n}\r\n\r\n/** The scope of the construction kit model */\r\nexport enum ScopesDto {\r\n ApplicationDto = 'APPLICATION',\r\n Layer_2Dto = 'LAYER_2',\r\n Layer_3Dto = 'LAYER_3',\r\n Layer_4Dto = 'LAYER_4',\r\n SystemDto = 'SYSTEM'\r\n}\r\n\r\nexport type SearchFilterDto = {\r\n attributeNames?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;\r\n language?: InputMaybe<Scalars['String']>;\r\n searchTerm: Scalars['String'];\r\n type?: InputMaybe<SearchFilterTypesDto>;\r\n};\r\n\r\n/** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */\r\nexport enum SearchFilterTypesDto {\r\n AttributeFilterDto = 'ATTRIBUTE_FILTER',\r\n TextSearchDto = 'TEXT_SEARCH'\r\n}\r\n\r\nexport type SortDto = {\r\n attributeName: Scalars['String'];\r\n sortOrder?: InputMaybe<SortOrdersDto>;\r\n};\r\n\r\n/** Defines the sort order */\r\nexport enum SortOrdersDto {\r\n AscendingDto = 'ASCENDING',\r\n DefaultDto = 'DEFAULT',\r\n DescendingDto = 'DESCENDING'\r\n}\r\n\r\n//==============================================================\r\n// END Enums and Input Objects\r\n//==============================================================\r\n","import {MatPaginator} from \"@angular/material/paginator\";\r\nimport {MatSort, SortDirection} from \"@angular/material/sort\";\r\nimport {ElementRef, EventEmitter} from \"@angular/core\";\r\nimport {fromEvent, merge} from \"rxjs\";\r\nimport {debounceTime, distinctUntilChanged, tap} from \"rxjs/operators\";\r\nimport {SearchFilterDto, SearchFilterTypesDto, SortDto, SortOrdersDto} from \"./globalTypes\";\r\n\r\n\r\nexport class OctoListNavigationDataInfo {\r\n skip: number;\r\n take: number;\r\n searchFilter?: SearchFilterDto;\r\n sort?: SortDto[];\r\n}\r\n\r\nexport class OctoListNavigationOptions {\r\n language: string;\r\n searchFilterType?: SearchFilterTypesDto;\r\n searchFilterAttributeNames?: string[];\r\n}\r\n\r\nexport class OctoListNavigation {\r\n\r\n public loadDataRequest = new EventEmitter<OctoListNavigationDataInfo>();\r\n\r\n lastSortDirection: SortDirection;\r\n lastSortField: string;\r\n lastSearchText: string;\r\n\r\n constructor(private paginator: MatPaginator, private sort: MatSort, private searchBox: ElementRef, private octoOptions: OctoListNavigationOptions) {\r\n\r\n }\r\n\r\n public get loadDataInfo() {\r\n const filterString = this.searchBox.nativeElement.value;\r\n const sortField = this.sort.active;\r\n const sortDirection = this.sort.direction;\r\n\r\n let filter = null;\r\n if (filterString) {\r\n filter = <SearchFilterDto>{\r\n language: this.octoOptions.language,\r\n searchTerm: filterString,\r\n type: this.octoOptions.searchFilterType,\r\n attributeNames: this.octoOptions.searchFilterAttributeNames\r\n };\r\n }\r\n\r\n let sort = [];\r\n if (sortField && sortDirection) {\r\n sort.push(<SortDto>{\r\n attributeName: sortField,\r\n sortOrder: sortDirection === \"asc\" ? SortOrdersDto.AscendingDto : SortOrdersDto.DescendingDto\r\n });\r\n }\r\n\r\n return <OctoListNavigationDataInfo>{\r\n skip: this.paginator.pageIndex * this.paginator.pageSize,\r\n take: this.paginator.pageSize,\r\n searchFilter: filter,\r\n sort: sort\r\n };\r\n }\r\n\r\n init() {\r\n // server-side search\r\n fromEvent(this.searchBox.nativeElement, 'keyup')\r\n .pipe(\r\n debounceTime(500),\r\n distinctUntilChanged(),\r\n tap(() => {\r\n\r\n this.paginator.pageIndex = 0;\r\n\r\n const searchText = this.searchBox.nativeElement.value;\r\n\r\n if (!this.lastSearchText && searchText) {\r\n this.lastSortDirection = this.sort.direction;\r\n this.lastSortField = this.sort.active;\r\n\r\n // Reset sorting to see the score rating (default sorting returned from server)\r\n this.sort.sort({id: '', start: 'asc', disableClear: false});\r\n }\r\n\r\n this.lastSearchText = searchText;\r\n\r\n if (!searchText && this.lastSortField) {\r\n if (this.lastSortDirection == \"asc\") {\r\n this.sort.sort({id: this.lastSortField, start: 'asc', disableClear: true});\r\n } else if (this.lastSortDirection == \"desc\") {\r\n this.sort.sort({id: this.lastSortField, start: 'desc', disableClear: true});\r\n }\r\n }\r\n\r\n\r\n this.loadData();\r\n })\r\n )\r\n .subscribe();\r\n\r\n // reset the paginator after sorting\r\n this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);\r\n\r\n merge(this.sort.sortChange, this.paginator.page)\r\n .pipe(\r\n tap(() => this.loadData())\r\n )\r\n .subscribe()\r\n }\r\n\r\n private loadData() {\r\n\r\n this.loadDataRequest.emit(this.loadDataInfo);\r\n }\r\n}\r\n","import {Observable, of} from \"rxjs\";\r\nimport {catchError} from \"rxjs/operators\";\r\nimport {DataSourceBase, MessageService, PagedResultDto} from \"@meshmakers/shared-services\";\r\nimport {FieldFilterDto, SearchFilterDto, SortDto} from \"./globalTypes\";\r\n\r\nexport class GraphQLDataSource<TDto> extends DataSourceBase<TDto> {\r\n\r\n constructor(protected messageService: MessageService) {\r\n super();\r\n }\r\n\r\n public loadData(tenantId: string, skip: number = 0, take: number = 10, searchFilter: SearchFilterDto = null, fieldFilter: FieldFilterDto[] = null, sort: SortDto[] = null) {\r\n\r\n super.onBeginLoad();\r\n\r\n this.executeLoad(tenantId, skip, take, searchFilter, fieldFilter, sort).pipe(\r\n catchError((error) => {\r\n\r\n this.messageService.showError(error, \"Error during load of data\");\r\n\r\n return of(new PagedResultDto<TDto>())\r\n }))\r\n .subscribe(pagedResult => {\r\n\r\n super.onCompleteLoad(pagedResult);\r\n });\r\n }\r\n\r\n protected executeLoad(tenantId: string, skip: number = 0, take: number = 10, searchFilter: SearchFilterDto = null, fieldFilter: FieldFilterDto[] = null, sort: SortDto[] = null): Observable<PagedResultDto<TDto>> {\r\n return of(new PagedResultDto<TDto>())\r\n }\r\n}\r\n","/*\r\n * Public API Surface of osp-ui\r\n */\r\n\r\nexport * from './lib/list-element/list-element.module'\r\nexport * from './lib/list-element/octoListNavigation'\r\nexport * from './lib/list-element/graphQLDataSource'\r\nexport * from './lib/list-element/globalTypes'\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAUa,iBAAiB,CAAA;;8GAAjB,iBA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ElE,YAAA,OAAO,EAAE,CAAC,IAAI,cAAc,EAAQ,CAAC,CAAA;AACvC,SAAC,CAAC,CAAC;aACF,SAAS,CAAC,WAAW,IAAG;AAEvB,YAAA,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AACpC,SAAC,CAAC,CAAC;KACN;AAES,IAAA,WAAW,CAAC,QAAgB,EAAE,IAAe,GAAA,CAAC,EAAE,IAAe,GAAA,EAAE,EAAE,YAAA,GAAgC,IAAI,EAAE,WAAA,GAAgC,IAAI,EAAE,OAAkB,IAAI,EAAA;AAC7K,QAAA,OAAO,EAAE,CAAC,IAAI,cAAc,EAAQ,CAAC,CAAA;KACtC;AACF;;AC/BD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"meshmakers-octo-ui.mjs","sources":["../../../../projects/meshmakers/octo-ui/src/lib/list-element/list-element.module.ts","../../../../projects/meshmakers/octo-ui/src/lib/list-element/globalTypes.ts","../../../../projects/meshmakers/octo-ui/src/lib/list-element/octoListNavigation.ts","../../../../projects/meshmakers/octo-ui/src/lib/list-element/graphQLDataSource.ts","../../../../projects/meshmakers/octo-ui/src/public-api.ts","../../../../projects/meshmakers/octo-ui/src/meshmakers-octo-ui.ts"],"sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule\n ]\n})\nexport class ListElementModule {\n}\n","/* tslint:disable */\n/* eslint-disable */\n// @generated\n// This file was automatically generated and should not be edited.\n\n//==============================================================\n// START Enums and Input Objects\n//==============================================================\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\n\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: string;\n String: string;\n Boolean: boolean;\n Int: number;\n Float: number;\n /** The `DateTime` scalar type represents a date and time. `DateTime` expects timestamps to be formatted in accordance with the [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) standard. */\n DateTime: any;\n Decimal: any;\n OspObjectIdType: any;\n SimpleScalarType: any;\n};\n\nexport type FieldFilterDto = {\n attributeName: Scalars['String'];\n comparisonValue?: InputMaybe<Scalars['SimpleScalarType']>;\n operator?: InputMaybe<FieldFilterOperatorsDto>;\n};\n\n/** Defines the operator of field compare */\nexport enum FieldFilterOperatorsDto {\n EqualsDto = 'EQUALS',\n GreaterEqualThanDto = 'GREATER_EQUAL_THAN',\n GreaterThanDto = 'GREATER_THAN',\n InDto = 'IN',\n LessEqualThanDto = 'LESS_EQUAL_THAN',\n LessThanDto = 'LESS_THAN',\n LikeDto = 'LIKE',\n MatchRegExDto = 'MATCH_REG_EX',\n NotEqualsDto = 'NOT_EQUALS',\n NotInDto = 'NOT_IN',\n NotMatchRegExDto = 'NOT_MATCH_REG_EX'\n}\n\n/** The scope of the construction kit model */\nexport enum ScopesDto {\n ApplicationDto = 'APPLICATION',\n Layer_2Dto = 'LAYER_2',\n Layer_3Dto = 'LAYER_3',\n Layer_4Dto = 'LAYER_4',\n SystemDto = 'SYSTEM'\n}\n\nexport type SearchFilterDto = {\n attributeNames?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;\n language?: InputMaybe<Scalars['String']>;\n searchTerm: Scalars['String'];\n type?: InputMaybe<SearchFilterTypesDto>;\n};\n\n/** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */\nexport enum SearchFilterTypesDto {\n AttributeFilterDto = 'ATTRIBUTE_FILTER',\n TextSearchDto = 'TEXT_SEARCH'\n}\n\nexport type SortDto = {\n attributeName: Scalars['String'];\n sortOrder?: InputMaybe<SortOrdersDto>;\n};\n\n/** Defines the sort order */\nexport enum SortOrdersDto {\n AscendingDto = 'ASCENDING',\n DefaultDto = 'DEFAULT',\n DescendingDto = 'DESCENDING'\n}\n\n//==============================================================\n// END Enums and Input Objects\n//==============================================================\n","import {MatPaginator} from \"@angular/material/paginator\";\nimport {MatSort, SortDirection} from \"@angular/material/sort\";\nimport {ElementRef, EventEmitter} from \"@angular/core\";\nimport {fromEvent, merge} from \"rxjs\";\nimport {debounceTime, distinctUntilChanged, tap} from \"rxjs/operators\";\nimport {SearchFilterDto, SearchFilterTypesDto, SortDto, SortOrdersDto} from \"./globalTypes\";\n\n\nexport class OctoListNavigationDataInfo {\n skip: number;\n take: number;\n searchFilter?: SearchFilterDto;\n sort?: SortDto[];\n\n constructor() {\n this.skip = 0;\n this.take = 10;\n }\n}\n\nexport class OctoListNavigationOptions {\n language: string | null;\n searchFilterType?: SearchFilterTypesDto;\n searchFilterAttributeNames?: string[];\n\n constructor() {\n this.language = null;\n }\n}\n\nexport class OctoListNavigation {\n\n public loadDataRequest = new EventEmitter<OctoListNavigationDataInfo>();\n\n lastSortDirection: SortDirection | null;\n lastSortField: string | null;\n lastSearchText: string | null;\n\n constructor(private paginator: MatPaginator, private sort: MatSort, private searchBox: ElementRef, private octoOptions: OctoListNavigationOptions) {\n this.lastSortDirection = null;\n this.lastSortField = null;\n this.lastSearchText = null;\n }\n\n public get loadDataInfo() {\n const filterString = this.searchBox.nativeElement.value;\n const sortField = this.sort.active;\n const sortDirection = this.sort.direction;\n\n let filter = null;\n if (filterString) {\n filter = <SearchFilterDto>{\n language: this.octoOptions.language,\n searchTerm: filterString,\n type: this.octoOptions.searchFilterType,\n attributeNames: this.octoOptions.searchFilterAttributeNames\n };\n }\n\n let sort = [];\n if (sortField && sortDirection) {\n sort.push(<SortDto>{\n attributeName: sortField,\n sortOrder: sortDirection === \"asc\" ? SortOrdersDto.AscendingDto : SortOrdersDto.DescendingDto\n });\n }\n\n return <OctoListNavigationDataInfo>{\n skip: this.paginator.pageIndex * this.paginator.pageSize,\n take: this.paginator.pageSize,\n searchFilter: filter,\n sort: sort\n };\n }\n\n init() {\n // server-side search\n fromEvent(this.searchBox.nativeElement, 'keyup')\n .pipe(\n debounceTime(500),\n distinctUntilChanged(),\n tap(() => {\n\n this.paginator.pageIndex = 0;\n\n const searchText = this.searchBox.nativeElement.value;\n\n if (!this.lastSearchText && searchText) {\n this.lastSortDirection = this.sort.direction;\n this.lastSortField = this.sort.active;\n\n // Reset sorting to see the score rating (default sorting returned from server)\n this.sort.sort({id: '', start: 'asc', disableClear: false});\n }\n\n this.lastSearchText = searchText;\n\n if (!searchText && this.lastSortField) {\n if (this.lastSortDirection == \"asc\") {\n this.sort.sort({id: this.lastSortField, start: 'asc', disableClear: true});\n } else if (this.lastSortDirection == \"desc\") {\n this.sort.sort({id: this.lastSortField, start: 'desc', disableClear: true});\n }\n }\n\n\n this.loadData();\n })\n )\n .subscribe();\n\n // reset the paginator after sorting\n this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);\n\n merge(this.sort.sortChange, this.paginator.page)\n .pipe(\n tap(() => this.loadData())\n )\n .subscribe()\n }\n\n private loadData() {\n\n this.loadDataRequest.emit(this.loadDataInfo);\n }\n}\n","import {Observable, of} from \"rxjs\";\nimport {catchError} from \"rxjs/operators\";\nimport {DataSourceBase, MessageService, PagedResultDto} from \"@meshmakers/shared-services\";\nimport {FieldFilterDto, SearchFilterDto, SortDto} from \"./globalTypes\";\nexport class GraphQLDataSource<TDto> extends DataSourceBase<TDto> {\n\n constructor(protected messageService: MessageService) {\n super();\n }\n public loadData(tenantId: string, skip: number = 0, take: number = 10, searchFilter: SearchFilterDto | null = null,\n fieldFilter: FieldFilterDto[] | null = null, sort: SortDto[] | null = null) {\n\n super.onBeginLoad();\n\n this.executeLoad(tenantId, skip, take, searchFilter, fieldFilter, sort).pipe(\n catchError((error) => {\n\n this.messageService.showError(error, \"Error during load of data\");\n\n return of(new PagedResultDto<TDto>())\n }))\n .subscribe(pagedResult => {\n\n super.onCompleteLoad(pagedResult);\n });\n }\n\n protected executeLoad(tenantId: string, skip: number = 0, take: number = 10, searchFilter: SearchFilterDto | null = null,\n fieldFilter: FieldFilterDto[] | null = null, sort: SortDto[] | null = null): Observable<PagedResultDto<TDto>> {\n return of(new PagedResultDto<TDto>())\n }\n}\n","/*\n * Public API Surface of octo-ui\n */\n\nexport * from './lib/list-element/list-element.module'\nexport * from './lib/list-element/octoListNavigation'\nexport * from './lib/list-element/graphQLDataSource'\nexport * from './lib/list-element/globalTypes'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAUa,iBAAiB,CAAA;;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAH1B,YAAY,CAAA,EAAA,CAAA,CAAA;AAGH,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAH1B,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGH,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACF,iBAAA,CAAA;;;ACTD;AACA;AACA;AACA;AA4BA;IACY,wBAYX;AAZD,CAAA,UAAY,uBAAuB,EAAA;AACjC,IAAA,uBAAA,CAAA,WAAA,CAAA,GAAA,QAAoB,CAAA;AACpB,IAAA,uBAAA,CAAA,qBAAA,CAAA,GAAA,oBAA0C,CAAA;AAC1C,IAAA,uBAAA,CAAA,gBAAA,CAAA,GAAA,cAA+B,CAAA;AAC/B,IAAA,uBAAA,CAAA,OAAA,CAAA,GAAA,IAAY,CAAA;AACZ,IAAA,uBAAA,CAAA,kBAAA,CAAA,GAAA,iBAAoC,C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cAAoB,CAAA;AAE/D,IAAA,WAAA,CAAsB,cAA8B,EAAA;AAClD,QAAA,KAAK,EAAE,CAAC;QADY,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;KAEnD;AACM,IAAA,QAAQ,CAAC,QAAgB,EAAE,IAAe,GAAA,CAAC,EAAE,IAAe,GAAA,EAAE,EAAE,YAAA,GAAuC,IAAI,EAClG,WAAA,GAAuC,IAAI,EAAE,OAAyB,IAAI,EAAA;QAExF,KAAK,CAAC,WAAW,EAAE,CAAC;QAEpB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,IAAI,CAC1E,UAAU,CAAC,CAAC,KAAK,KAAI;YAEnB,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,2BAA2B,CAAC,CAAC;AAElE,YAAA,OAAO,EAAE,CAAC,IAAI,cAAc,EAAQ,CAAC,CAAA;AACvC,SAAC,CAAC,CAAC;aACF,SAAS,CAAC,WAAW,IAAG;AAEvB,YAAA,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AACpC,SAAC,CAAC,CAAC;KACN;AAES,IAAA,WAAW,CAAC,QAAgB,EAAE,IAAe,GAAA,CAAC,EAAE,IAAe,GAAA,EAAE,EAAE,YAAA,GAAuC,IAAI,EAClG,WAAA,GAAuC,IAAI,EAAE,OAAyB,IAAI,EAAA;AAC9F,QAAA,OAAO,EAAE,CAAC,IAAI,cAAc,EAAQ,CAAC,CAAA;KACtC;AACF;;AC/BD;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@meshmakers/octo-ui" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@meshmakers/octo-ui" />
5
+ export * from './public-api';
@@ -1,63 +1,63 @@
1
- export type Maybe<T> = T | null;
2
- export type InputMaybe<T> = Maybe<T>;
3
- /** All built-in and custom scalars, mapped to their actual values */
4
- export type Scalars = {
5
- ID: string;
6
- String: string;
7
- Boolean: boolean;
8
- Int: number;
9
- Float: number;
10
- /** The `DateTime` scalar type represents a date and time. `DateTime` expects timestamps to be formatted in accordance with the [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) standard. */
11
- DateTime: any;
12
- Decimal: any;
13
- OspObjectIdType: any;
14
- SimpleScalarType: any;
15
- };
16
- export type FieldFilterDto = {
17
- attributeName: Scalars['String'];
18
- comparisonValue?: InputMaybe<Scalars['SimpleScalarType']>;
19
- operator?: InputMaybe<FieldFilterOperatorsDto>;
20
- };
21
- /** Defines the operator of field compare */
22
- export declare enum FieldFilterOperatorsDto {
23
- EqualsDto = "EQUALS",
24
- GreaterEqualThanDto = "GREATER_EQUAL_THAN",
25
- GreaterThanDto = "GREATER_THAN",
26
- InDto = "IN",
27
- LessEqualThanDto = "LESS_EQUAL_THAN",
28
- LessThanDto = "LESS_THAN",
29
- LikeDto = "LIKE",
30
- MatchRegExDto = "MATCH_REG_EX",
31
- NotEqualsDto = "NOT_EQUALS",
32
- NotInDto = "NOT_IN",
33
- NotMatchRegExDto = "NOT_MATCH_REG_EX"
34
- }
35
- /** The scope of the construction kit model */
36
- export declare enum ScopesDto {
37
- ApplicationDto = "APPLICATION",
38
- Layer_2Dto = "LAYER_2",
39
- Layer_3Dto = "LAYER_3",
40
- Layer_4Dto = "LAYER_4",
41
- SystemDto = "SYSTEM"
42
- }
43
- export type SearchFilterDto = {
44
- attributeNames?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
45
- language?: InputMaybe<Scalars['String']>;
46
- searchTerm: Scalars['String'];
47
- type?: InputMaybe<SearchFilterTypesDto>;
48
- };
49
- /** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */
50
- export declare enum SearchFilterTypesDto {
51
- AttributeFilterDto = "ATTRIBUTE_FILTER",
52
- TextSearchDto = "TEXT_SEARCH"
53
- }
54
- export type SortDto = {
55
- attributeName: Scalars['String'];
56
- sortOrder?: InputMaybe<SortOrdersDto>;
57
- };
58
- /** Defines the sort order */
59
- export declare enum SortOrdersDto {
60
- AscendingDto = "ASCENDING",
61
- DefaultDto = "DEFAULT",
62
- DescendingDto = "DESCENDING"
63
- }
1
+ export type Maybe<T> = T | null;
2
+ export type InputMaybe<T> = Maybe<T>;
3
+ /** All built-in and custom scalars, mapped to their actual values */
4
+ export type Scalars = {
5
+ ID: string;
6
+ String: string;
7
+ Boolean: boolean;
8
+ Int: number;
9
+ Float: number;
10
+ /** The `DateTime` scalar type represents a date and time. `DateTime` expects timestamps to be formatted in accordance with the [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) standard. */
11
+ DateTime: any;
12
+ Decimal: any;
13
+ OspObjectIdType: any;
14
+ SimpleScalarType: any;
15
+ };
16
+ export type FieldFilterDto = {
17
+ attributeName: Scalars['String'];
18
+ comparisonValue?: InputMaybe<Scalars['SimpleScalarType']>;
19
+ operator?: InputMaybe<FieldFilterOperatorsDto>;
20
+ };
21
+ /** Defines the operator of field compare */
22
+ export declare enum FieldFilterOperatorsDto {
23
+ EqualsDto = "EQUALS",
24
+ GreaterEqualThanDto = "GREATER_EQUAL_THAN",
25
+ GreaterThanDto = "GREATER_THAN",
26
+ InDto = "IN",
27
+ LessEqualThanDto = "LESS_EQUAL_THAN",
28
+ LessThanDto = "LESS_THAN",
29
+ LikeDto = "LIKE",
30
+ MatchRegExDto = "MATCH_REG_EX",
31
+ NotEqualsDto = "NOT_EQUALS",
32
+ NotInDto = "NOT_IN",
33
+ NotMatchRegExDto = "NOT_MATCH_REG_EX"
34
+ }
35
+ /** The scope of the construction kit model */
36
+ export declare enum ScopesDto {
37
+ ApplicationDto = "APPLICATION",
38
+ Layer_2Dto = "LAYER_2",
39
+ Layer_3Dto = "LAYER_3",
40
+ Layer_4Dto = "LAYER_4",
41
+ SystemDto = "SYSTEM"
42
+ }
43
+ export type SearchFilterDto = {
44
+ attributeNames?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
45
+ language?: InputMaybe<Scalars['String']>;
46
+ searchTerm: Scalars['String'];
47
+ type?: InputMaybe<SearchFilterTypesDto>;
48
+ };
49
+ /** The type of search that is used (a text based search using text analysis (high performance, scoring, maybe more false positives) or filtering of attributes (lower performance, more exact results) */
50
+ export declare enum SearchFilterTypesDto {
51
+ AttributeFilterDto = "ATTRIBUTE_FILTER",
52
+ TextSearchDto = "TEXT_SEARCH"
53
+ }
54
+ export type SortDto = {
55
+ attributeName: Scalars['String'];
56
+ sortOrder?: InputMaybe<SortOrdersDto>;
57
+ };
58
+ /** Defines the sort order */
59
+ export declare enum SortOrdersDto {
60
+ AscendingDto = "ASCENDING",
61
+ DefaultDto = "DEFAULT",
62
+ DescendingDto = "DESCENDING"
63
+ }
@@ -1,9 +1,9 @@
1
- import { Observable } from "rxjs";
2
- import { DataSourceBase, MessageService, PagedResultDto } from "@meshmakers/shared-services";
3
- import { FieldFilterDto, SearchFilterDto, SortDto } from "./globalTypes";
4
- export declare class GraphQLDataSource<TDto> extends DataSourceBase<TDto> {
5
- protected messageService: MessageService;
6
- constructor(messageService: MessageService);
7
- loadData(tenantId: string, skip?: number, take?: number, searchFilter?: SearchFilterDto, fieldFilter?: FieldFilterDto[], sort?: SortDto[]): void;
8
- protected executeLoad(tenantId: string, skip?: number, take?: number, searchFilter?: SearchFilterDto, fieldFilter?: FieldFilterDto[], sort?: SortDto[]): Observable<PagedResultDto<TDto>>;
9
- }
1
+ import { Observable } from "rxjs";
2
+ import { DataSourceBase, MessageService, PagedResultDto } from "@meshmakers/shared-services";
3
+ import { FieldFilterDto, SearchFilterDto, SortDto } from "./globalTypes";
4
+ export declare class GraphQLDataSource<TDto> extends DataSourceBase<TDto> {
5
+ protected messageService: MessageService;
6
+ constructor(messageService: MessageService);
7
+ loadData(tenantId: string, skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): void;
8
+ protected executeLoad(tenantId: string, skip?: number, take?: number, searchFilter?: SearchFilterDto | null, fieldFilter?: FieldFilterDto[] | null, sort?: SortDto[] | null): Observable<PagedResultDto<TDto>>;
9
+ }
@@ -1,7 +1,7 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- export declare class ListElementModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ListElementModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<ListElementModule, never, [typeof i1.CommonModule], never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<ListElementModule>;
7
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ export declare class ListElementModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListElementModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ListElementModule, never, [typeof i1.CommonModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<ListElementModule>;
7
+ }