@rxap/schematic-angular 16.2.0-dev.0 → 16.2.0-dev.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/CHANGELOG.md +44 -0
- package/README.md +1 -1
- package/package.json +12 -11
- package/src/lib/accordion-header.d.ts +27 -0
- package/src/lib/accordion-header.js +48 -0
- package/src/lib/accordion-header.js.map +1 -0
- package/src/lib/accordion-identifier.d.ts +10 -0
- package/src/lib/accordion-identifier.js +15 -0
- package/src/lib/accordion-identifier.js.map +1 -0
- package/src/lib/accordion-item.d.ts +77 -4
- package/src/lib/accordion-item.js +151 -20
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/adapter-options.d.ts +1 -1
- package/src/lib/adapter-options.js +2 -2
- package/src/lib/adapter-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.d.ts +6 -0
- package/src/lib/coerce-accordion-component.js +65 -0
- package/src/lib/coerce-accordion-component.js.map +1 -0
- package/src/lib/coerce-accordion-item-table-component.d.ts +7 -0
- package/src/lib/coerce-accordion-item-table-component.js +41 -0
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -0
- package/src/lib/coerce-form-component.d.ts +6 -0
- package/src/lib/coerce-form-component.js +68 -0
- package/src/lib/coerce-form-component.js.map +1 -0
- package/src/lib/coerce-minimum-table-component.d.ts +6 -0
- package/src/lib/coerce-minimum-table-component.js +95 -0
- package/src/lib/coerce-minimum-table-component.js.map +1 -0
- package/src/lib/coerce-tree-table-component.d.ts +6 -0
- package/src/lib/coerce-tree-table-component.js +12 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +11 -5
- package/src/lib/data-grid-item.js +4 -18
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +1 -1
- package/src/lib/existing-method.d.ts +1 -1
- package/src/lib/existing-method.js +2 -2
- package/src/lib/existing-method.js.map +1 -1
- package/src/lib/form-component-control.d.ts +9 -10
- package/src/lib/form-component-control.js +3 -34
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-definition-control.d.ts +50 -6
- package/src/lib/form-definition-control.js +133 -38
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/mat-form-field-default-options.d.ts +7 -0
- package/src/lib/mat-form-field-default-options.js +10 -0
- package/src/lib/mat-form-field-default-options.js.map +1 -0
- package/src/lib/merge-with-column-list.d.ts +3 -0
- package/src/lib/merge-with-column-list.js +18 -0
- package/src/lib/merge-with-column-list.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +3 -3
- package/src/lib/minimum-table-component-options.js +4 -3
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +11 -6
- package/src/lib/minimum-table-options.js +17 -5
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/persistent.d.ts +30 -0
- package/src/lib/persistent.js +39 -0
- package/src/lib/persistent.js.map +1 -0
- package/src/lib/table-action.d.ts +3 -1
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.d.ts +32 -6
- package/src/lib/table-column.js +131 -45
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +10 -3
- package/src/lib/table-options.js +13 -2
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +9 -3
- package/src/lib/tree-table-options.js +12 -2
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +25 -10
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +6 -1
- package/src/schematics/accordion/accordion-component/index.d.ts +10 -3
- package/src/schematics/accordion/accordion-component/index.js +125 -54
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +8 -2
- package/src/schematics/accordion/accordion-component/schema.json +118 -29
- package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -1
- package/src/schematics/accordion/accordion-item-component/index.js +46 -68
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -4
- package/src/schematics/accordion/accordion-item-component/schema.json +6 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +32 -28
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +2 -5
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +2 -15
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +2 -25
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +2 -17
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +14 -2
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +7 -4
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +2 -5
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +37 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +8 -4
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +2 -5
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +92 -69
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +1 -1
- package/src/schematics/data-grid-component/index.js +54 -24
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +82 -29
- package/src/schematics/form/control/input-form-control/index.js +7 -2
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/form-component/index.d.ts +4 -2
- package/src/schematics/form/form-component/index.js +5 -2
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +3 -1
- package/src/schematics/form/form-component/schema.json +92 -24
- package/src/schematics/form/form-definition/schema.d.ts +1 -1
- package/src/schematics/form/form-definition/schema.json +84 -39
- package/src/schematics/table/table-component/index.d.ts +2 -2
- package/src/schematics/table/table-component/index.js +5 -3
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/index.js +5 -3
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +88 -95
- package/src/lib/table-property.d.ts +0 -14
- package/src/lib/table-property.js +0 -46
- package/src/lib/table-property.js.map +0 -1
- package/src/lib/type-import.d.ts +0 -4
- package/src/lib/type-import.js +0 -38
- package/src/lib/type-import.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +0 -54
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.ts.template +0 -14
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +0 -30
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.ts.template +0 -14
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.ts.template +0 -32
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.ts.template +0 -35
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +0 -34
- package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +0 -43
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template +0 -36
- package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +0 -50
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +0 -112
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +0 -113
package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { FormProviders, FormComponentProviders } from './form.providers';
|
|
3
|
-
<% if (collection) { %>
|
|
4
|
-
import { Input } from '@angular/core';
|
|
5
|
-
<% } else { %>
|
|
6
|
-
import { <%= classify(name) %>DataGridDataSource } from './<%= name %>-data-grid.data-source';
|
|
7
|
-
<% } %>
|
|
8
|
-
import { DataGridModule } from '@rxap/data-grid';
|
|
9
|
-
import { RxapFormsModule } from '@rxap/forms';
|
|
10
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
import { MatCardModule } from '@angular/material/card';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
15
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
16
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
17
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
-
standalone: true,
|
|
19
|
-
imports: [
|
|
20
|
-
DataGridModule,
|
|
21
|
-
RxapFormsModule,
|
|
22
|
-
ReactiveFormsModule,
|
|
23
|
-
MatCardModule,
|
|
24
|
-
],
|
|
25
|
-
providers: [
|
|
26
|
-
<% if (!collection) { %>
|
|
27
|
-
<%= classify(name) %>DataGridDataSource,
|
|
28
|
-
<% } %>
|
|
29
|
-
FormProviders,
|
|
30
|
-
FormComponentProviders,
|
|
31
|
-
],
|
|
32
|
-
})
|
|
33
|
-
export class <%= classify(componentName) %>Component {
|
|
34
|
-
|
|
35
|
-
<% if (collection) { %>
|
|
36
|
-
@Input() data!: any;
|
|
37
|
-
<% } else { %>
|
|
38
|
-
constructor(
|
|
39
|
-
public readonly dataGridDataSource: <%= classify(name) %>DataGridDataSource,
|
|
40
|
-
) {}
|
|
41
|
-
<% } %>
|
|
42
|
-
|
|
43
|
-
}
|
package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
<% if (collection) { %>
|
|
3
|
-
import { Input } from '@angular/core';
|
|
4
|
-
<% } else { %>
|
|
5
|
-
import { <%= classify(name) %>DataGridDataSource } from './<%= name %>-data-grid.data-source';
|
|
6
|
-
<% } %>
|
|
7
|
-
import { DataGridModule } from '@rxap/data-grid';
|
|
8
|
-
import { MatCardModule } from '@angular/material/card';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
12
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
13
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
14
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
-
standalone: true,
|
|
16
|
-
imports: [
|
|
17
|
-
DataGridModule,
|
|
18
|
-
MatCardModule,
|
|
19
|
-
],
|
|
20
|
-
providers: [
|
|
21
|
-
<% if (!collection) { %>
|
|
22
|
-
<%= classify(name) %>DataGridDataSource,
|
|
23
|
-
<% } %>
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
export class <%= classify(componentName) %>Component {
|
|
27
|
-
|
|
28
|
-
<% if (collection) { %>
|
|
29
|
-
@Input() data!: any;
|
|
30
|
-
<% } else { %>
|
|
31
|
-
constructor(
|
|
32
|
-
public readonly dataGridDataSource: <%= classify(name) %>DataGridDataSource,
|
|
33
|
-
) {}
|
|
34
|
-
<% } %>
|
|
35
|
-
|
|
36
|
-
}
|
package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
3
|
-
<% if (window) { %>
|
|
4
|
-
import { RXAP_WINDOW_SETTINGS } from '@rxap/window-system';
|
|
5
|
-
<% } %>
|
|
6
|
-
import { FormComponentProviders, FormProviders } from './form.providers';
|
|
7
|
-
import { FormControlsComponent, MaterialFormSystemModule } from '@rxap/material-form-system';
|
|
8
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
-
import { RxapFormsModule } from '@rxap/forms';
|
|
10
|
-
import { CommonModule } from '@angular/common';
|
|
11
|
-
<% if (window) { %>
|
|
12
|
-
import { FormWindowFooterDirective } from '@rxap/form-window-system';
|
|
13
|
-
<% } %>
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: '<%= prefix%>-<%= name %>-form',
|
|
17
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
18
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
19
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
-
standalone: true,
|
|
21
|
-
imports: [
|
|
22
|
-
CommonModule,
|
|
23
|
-
ReactiveFormsModule,
|
|
24
|
-
MaterialFormSystemModule,
|
|
25
|
-
FormControlsComponent,
|
|
26
|
-
RxapFormsModule,
|
|
27
|
-
<% if (window) { %>
|
|
28
|
-
FormWindowFooterDirective,
|
|
29
|
-
<% } %>
|
|
30
|
-
],
|
|
31
|
-
providers: [
|
|
32
|
-
FormProviders,
|
|
33
|
-
FormComponentProviders,
|
|
34
|
-
{
|
|
35
|
-
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
36
|
-
useValue: {
|
|
37
|
-
appearance: 'fill',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
<% if (window) { %>
|
|
41
|
-
{
|
|
42
|
-
provide: RXAP_WINDOW_SETTINGS,
|
|
43
|
-
useValue: {
|
|
44
|
-
title: $localize`<%= classify(name) %>`,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
<% } %>
|
|
48
|
-
],
|
|
49
|
-
})
|
|
50
|
-
export class <%= classify(componentName) %>Component {}
|
package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, OnInit, INJECTOR, Injector, Inject } from '@angular/core';
|
|
2
|
-
import { Observable, from } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
RowAnimation,
|
|
5
|
-
TableShowArchivedSlideComponent,
|
|
6
|
-
RXAP_TABLE_METHOD,
|
|
7
|
-
} from '@rxap/material-table-system';
|
|
8
|
-
import { GetFromObjectPipe } from '@rxap/pipes';
|
|
9
|
-
import {
|
|
10
|
-
BooleanCellComponent,
|
|
11
|
-
CopyToClipboardCellComponent, DateCellComponent,
|
|
12
|
-
IconCellComponent,
|
|
13
|
-
LinkCellComponent, PersistentPaginatorDirective,
|
|
14
|
-
TableColumnMenuModule, TableHeaderButtonDirective,
|
|
15
|
-
TableDataSourceDirective,
|
|
16
|
-
TableFilterModule, TableRowActionsModule,
|
|
17
|
-
} from '@rxap/material-table-system';
|
|
18
|
-
import { MatCardModule } from '@angular/material/card';
|
|
19
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
20
|
-
import { CardProgressBarDirective } from '@rxap/material-directives/card';
|
|
21
|
-
import { MatTableModule } from '@angular/material/table';
|
|
22
|
-
import { RxapFormsModule } from '@rxap/forms';
|
|
23
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
24
|
-
import { RouterModule } from '@angular/router';
|
|
25
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
26
|
-
<% if (hasNavigationBackHeader) { %>
|
|
27
|
-
import { NavigateBackButtonComponent } from '@rxap/components';
|
|
28
|
-
<% } %>
|
|
29
|
-
import { ConfirmModule } from '@rxap/components';
|
|
30
|
-
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
31
|
-
import { MatSortModule } from '@angular/material/sort';
|
|
32
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
33
|
-
import { MatInputModule } from '@angular/material/input';
|
|
34
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
35
|
-
import { InputClearButtonDirective } from '@rxap/material-form-system';
|
|
36
|
-
import { HasPermissionModule } from '@rxap/authorization';
|
|
37
|
-
import { CommonModule } from '@angular/common';
|
|
38
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
39
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
40
|
-
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
41
|
-
<% for (const column of columnList) { %>
|
|
42
|
-
<% if (column.role === 'component') { %>
|
|
43
|
-
import { <%= classify(column.name) %>CellComponent } from './<%= dasherize(column.name) %>-cell/<%= dasherize(column.name) %>-cell.component';
|
|
44
|
-
<% } %>
|
|
45
|
-
<% for (const pipe of column.pipeList) { %>
|
|
46
|
-
import { <%= pipe.namedImport %> } from '<%= pipe.moduleSpecifier %>';
|
|
47
|
-
<% } %>
|
|
48
|
-
<% } %>
|
|
49
|
-
|
|
50
|
-
@Component({
|
|
51
|
-
selector: '<%= prefix %>-<%= name %>-table',
|
|
52
|
-
templateUrl: './<%= name %>-table.component.html',
|
|
53
|
-
styleUrls: [ './<%= name %>-table.component.scss' ],
|
|
54
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
55
|
-
animations: [ RowAnimation ],
|
|
56
|
-
standalone: true,
|
|
57
|
-
imports: [
|
|
58
|
-
<% for (const column of columnList) { %>
|
|
59
|
-
<% if (column.role === 'component') { %>
|
|
60
|
-
<%= classify(column.name) %>CellComponent,
|
|
61
|
-
<% } %>
|
|
62
|
-
<% for (const pipe of column.pipeList) { %>
|
|
63
|
-
<%= pipe.namedImport %>,
|
|
64
|
-
<% } %>
|
|
65
|
-
<% } %>
|
|
66
|
-
CommonModule,
|
|
67
|
-
MatCardModule,
|
|
68
|
-
MatProgressBarModule,
|
|
69
|
-
CardProgressBarDirective,
|
|
70
|
-
MatTableModule,
|
|
71
|
-
TableDataSourceDirective,
|
|
72
|
-
TableFilterModule,
|
|
73
|
-
RxapFormsModule,
|
|
74
|
-
MatCheckboxModule,
|
|
75
|
-
ReactiveFormsModule,
|
|
76
|
-
RouterModule,
|
|
77
|
-
MatDividerModule,
|
|
78
|
-
<% if (hasNavigationBackHeader) { %>
|
|
79
|
-
NavigateBackButtonComponent,
|
|
80
|
-
<% } %>
|
|
81
|
-
TableColumnMenuModule,
|
|
82
|
-
DateCellComponent,
|
|
83
|
-
|
|
84
|
-
MatPaginatorModule,
|
|
85
|
-
MatSortModule,
|
|
86
|
-
MatIconModule,
|
|
87
|
-
MatInputModule,
|
|
88
|
-
MatButtonModule,
|
|
89
|
-
InputClearButtonDirective,
|
|
90
|
-
TableHeaderButtonDirective,
|
|
91
|
-
TableShowArchivedSlideComponent,
|
|
92
|
-
PersistentPaginatorDirective,
|
|
93
|
-
ConfirmModule,
|
|
94
|
-
HasPermissionModule,
|
|
95
|
-
TableRowActionsModule,
|
|
96
|
-
GetFromObjectPipe,
|
|
97
|
-
CopyToClipboardCellComponent,
|
|
98
|
-
LinkCellComponent,
|
|
99
|
-
IconCellComponent,
|
|
100
|
-
BooleanCellComponent,
|
|
101
|
-
DataSourceErrorComponent,
|
|
102
|
-
MatSnackBarModule,
|
|
103
|
-
],
|
|
104
|
-
})
|
|
105
|
-
export class <%= classify(componentName) %>Component {
|
|
106
|
-
|
|
107
|
-
@Input()
|
|
108
|
-
public parameters?: Observable<Record<string, unknown>>;
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
<% if (exportDefault) { %>export default <%= classify(name) %>TableComponent;<% } %>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable, from } from 'rxjs';
|
|
3
|
-
import { RowAnimation,
|
|
4
|
-
TableShowArchivedSlideComponent,
|
|
5
|
-
TreeControlCellComponent,
|
|
6
|
-
TABLE_DATA_SOURCE,
|
|
7
|
-
} from '@rxap/material-table-system';
|
|
8
|
-
import { GetFromObjectPipe } from '@rxap/pipes';
|
|
9
|
-
import {
|
|
10
|
-
BooleanCellComponent,
|
|
11
|
-
CopyToClipboardCellComponent, DateCellComponent,
|
|
12
|
-
IconCellComponent,
|
|
13
|
-
LinkCellComponent, PersistentPaginatorDirective,
|
|
14
|
-
TableColumnMenuModule, TableCreateButtonDirective,
|
|
15
|
-
TableDataSourceDirective,
|
|
16
|
-
TableFilterModule, TableRowActionsModule,
|
|
17
|
-
} from '@rxap/material-table-system';
|
|
18
|
-
import { MatCardModule } from '@angular/material/card';
|
|
19
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
20
|
-
import { CardProgressBarDirective } from '@rxap/material-directives/card';
|
|
21
|
-
import { MatTableModule } from '@angular/material/table';
|
|
22
|
-
import { RxapFormsModule } from '@rxap/forms';
|
|
23
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
24
|
-
import { RouterModule } from '@angular/router';
|
|
25
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
26
|
-
<% if (hasNavigationBackHeader) { %>
|
|
27
|
-
import { NavigateBackButtonComponent } from '@rxap/components';
|
|
28
|
-
<% } %>
|
|
29
|
-
import { ConfirmModule } from '@rxap/components';
|
|
30
|
-
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
31
|
-
import { MatSortModule } from '@angular/material/sort';
|
|
32
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
33
|
-
import { MatInputModule } from '@angular/material/input';
|
|
34
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
35
|
-
import { InputClearButtonDirective } from '@rxap/material-form-system';
|
|
36
|
-
import { HasPermissionModule } from '@rxap/authorization';
|
|
37
|
-
import { CommonModule } from '@angular/common';
|
|
38
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
39
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
40
|
-
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
41
|
-
<% for (const column of columnList) { %>
|
|
42
|
-
<% if (column.role === 'component') { %>
|
|
43
|
-
import { <%= classify(column.name) %>CellComponent } from './<%= dasherize(column.name) %>-cell/<%= dasherize(column.name) %>-cell.component';
|
|
44
|
-
<% } %>
|
|
45
|
-
<% for (const pipe of column.pipeList) { %>
|
|
46
|
-
import { <%= pipe.namedImport %> } from '<%= pipe.moduleSpecifier %>';
|
|
47
|
-
<% } %>
|
|
48
|
-
<% } %>
|
|
49
|
-
|
|
50
|
-
@Component({
|
|
51
|
-
selector: '<%= prefix %>-<%= name %>-table',
|
|
52
|
-
templateUrl: './<%= name %>-table.component.html',
|
|
53
|
-
styleUrls: [ './<%= name %>-table.component.scss' ],
|
|
54
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
55
|
-
animations: [ RowAnimation ],
|
|
56
|
-
standalone: true,
|
|
57
|
-
imports: [
|
|
58
|
-
<% for (const column of columnList) { %>
|
|
59
|
-
<% if (column.role === 'component') { %>
|
|
60
|
-
<%= classify(column.name) %>CellComponent,
|
|
61
|
-
<% } %>
|
|
62
|
-
<% for (const pipe of column.pipeList) { %>
|
|
63
|
-
<%= pipe.namedImport %>,
|
|
64
|
-
<% } %>
|
|
65
|
-
<% } %>
|
|
66
|
-
CommonModule,
|
|
67
|
-
MatCardModule,
|
|
68
|
-
MatProgressBarModule,
|
|
69
|
-
CardProgressBarDirective,
|
|
70
|
-
MatTableModule,
|
|
71
|
-
TableDataSourceDirective,
|
|
72
|
-
TableFilterModule,
|
|
73
|
-
RxapFormsModule,
|
|
74
|
-
MatCheckboxModule,
|
|
75
|
-
ReactiveFormsModule,
|
|
76
|
-
RouterModule,
|
|
77
|
-
MatDividerModule,
|
|
78
|
-
<% if (hasNavigationBackHeader) { %>
|
|
79
|
-
NavigateBackButtonComponent,
|
|
80
|
-
<% } %>
|
|
81
|
-
TableColumnMenuModule,
|
|
82
|
-
DateCellComponent,
|
|
83
|
-
|
|
84
|
-
MatPaginatorModule,
|
|
85
|
-
MatSortModule,
|
|
86
|
-
MatIconModule,
|
|
87
|
-
MatInputModule,
|
|
88
|
-
MatButtonModule,
|
|
89
|
-
InputClearButtonDirective,
|
|
90
|
-
TableCreateButtonDirective,
|
|
91
|
-
TableShowArchivedSlideComponent,
|
|
92
|
-
PersistentPaginatorDirective,
|
|
93
|
-
ConfirmModule,
|
|
94
|
-
HasPermissionModule,
|
|
95
|
-
TableRowActionsModule,
|
|
96
|
-
GetFromObjectPipe,
|
|
97
|
-
CopyToClipboardCellComponent,
|
|
98
|
-
LinkCellComponent,
|
|
99
|
-
IconCellComponent,
|
|
100
|
-
BooleanCellComponent,
|
|
101
|
-
DataSourceErrorComponent,
|
|
102
|
-
MatSnackBarModule,
|
|
103
|
-
TreeControlCellComponent,
|
|
104
|
-
],
|
|
105
|
-
})
|
|
106
|
-
export class <%= classify(componentName) %>Component {
|
|
107
|
-
|
|
108
|
-
@Input()
|
|
109
|
-
public parameters?: Observable<Record<string, unknown>>;
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
<% if (exportDefault) { %>export default <%= classify(componentName) %>Component;<% } %>
|