You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/schematic/generators/ng-generate/components/table/generators/components/table/files/__name@dasherize__.component.ts.template
+71-65Lines changed: 71 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@ import {
16
16
EventEmitter,
17
17
SimpleChanges,
18
18
HostBinding,
19
-
Inject,
20
19
OnChanges,
21
20
OnInit,
22
21
AfterViewChecked,
@@ -27,26 +26,23 @@ import {
27
26
<% if (options.enableRemoteDataHandling || options.hasSearchBar) { %>OnDestroy,<% } %>
28
27
<% if (options.changeDetection) { %>ChangeDetectionStrategy,<% } %>
29
28
} from '@angular/core';
30
-
import { MatPaginator, MatPaginatorSelectConfig } from '@angular/material/paginator';
29
+
import { MatPaginator } from '@angular/material/paginator';
31
30
import { MatSort, SortDirection } from '@angular/material/sort';
32
31
import { MatTable } from '@angular/material/table';
33
32
34
33
<% if (options.hasFilters || options.hasSearchBar) { %>
35
-
import { FilterEnums, <%= options.filterServiceName %>} from './<%= cmpFileName %>-filter.service';
36
-
import {EsmfChipListComponent} from '@esmf/semantic-ui-schematic';
34
+
import {<%= options.filterServiceName %>} from './<%= cmpFileName %>-filter.service';
35
+
import {EsmfChipListComponent, EsmfTableCellComponent} from '@esmf/semantic-ui-schematic';
37
36
<% } %>
38
37
39
38
<% if (options.addCommandBar) { %>
40
39
import {unparse} from 'papaparse';
41
-
import {Action, ExportTableDialogComponent} from '<% if (options.enableVersionSupport) { %>../<% } %>../export-confirmation-dialog/export-table-dialog.component';
40
+
import {Actions, Action, EsmfExportTableDialogComponent} from '@esmf/semantic-ui-schematic';
42
41
<% } %>
43
42
44
43
import {MatDialog} from '@angular/material/dialog';
45
44
import {
46
45
<%= classify(options.selectedModelTypeName) %>
47
-
<% if (selectedModelElementUrn !== aspectModelElementUrn && !isCollectionAspect) { %>
48
-
, <%= classify(options.aspectModelTypeName) %>
49
-
<% } %>
50
46
<% if (options.isEnumQuickFilter) { %>
51
47
, <%= enumProperties %>
52
48
<% } %>
@@ -57,22 +53,19 @@ import {<%= tableDataSourceName %>} from '@esmf/semantic-ui-schematic';
57
53
import {DateAdapter, MAT_DATE_FORMATS, MatDateFormats} from '@angular/material/core';
58
54
<% } %>
59
55
60
-
<% if ([...options.customRowActions, ...options.customCommandBarActions].findIndex(element => element.includes('.')) !== -1) { %>
61
-
import { MatIconRegistry } from '@angular/material/icon';
56
+
<% if (hasCustomActions) { %>
57
+
import {MatIcon, MatIconRegistry} from '@angular/material/icon';
58
+
<% } else { %>
59
+
import {MatIcon} from '@angular/material/icon';
62
60
<% } %>
63
61
64
-
import {DomSanitizer} from '@angular/platform-browser';
62
+
import {DomSanitizer, SafeStyle} from '@angular/platform-browser';
65
63
import {SelectionModel} from '@angular/cdk/collections';
66
-
import { TranslocoService } from '@jsverse/transloco';
67
-
import {EsmfPaginatorSelectConfigInjector} from "<% if (options.enableVersionSupport) { %>../<% } %>../../services/paginator-select-config.provider";
68
-
import {EsmfLocalStorageService} from "<% if (options.enableVersionSupport) { %>../<% } %>../../services/storage.service";
64
+
import {EsmfPaginatorSelectConfigInjector} from '@esmf/semantic-ui-schematic';
65
+
import {EsmfLocalStorageService} from '@esmf/semantic-ui-schematic';
69
66
import {<%= classify(name) %>CommandBarComponent} from "./<%= cmpFileName %>-command-bar.component";
70
67
import {<%= classify(name) %>ColumnMenuComponent} from './<%= cmpFileName %>-column-menu.component';
71
68
72
-
<% if (options.hasSearchBar) { %>
73
-
import {<%= classify(name) %>ConfigMenuComponent} from './<%= cmpFileName %>-config-menu.component';
74
-
<% } %>
75
-
76
69
<% if (options.hasFilters) { %>
77
70
import {debounceTime, filter, map, takeUntil} from 'rxjs/operators'
0 commit comments