@rxap/schematic-angular 16.2.0-dev.0 → 16.2.0-dev.10
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 +111 -0
- package/README.md +1 -1
- package/package.json +15 -12
- package/src/lib/accordion-header.d.ts +32 -0
- package/src/lib/accordion-header.js +54 -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 +80 -6
- package/src/lib/accordion-item.js +164 -21
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- 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 +67 -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 +71 -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 +101 -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 +28 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +9 -6
- 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 +3 -1
- package/src/lib/data-grid-options.js +7 -3
- package/src/lib/data-grid-options.js.map +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/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form-component-control.d.ts +5 -10
- package/src/lib/form-component-control.js +3 -34
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-control.d.ts +125 -0
- package/src/lib/form-control.js +304 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +5 -15
- package/src/lib/form-definition-control.js +18 -49
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +3 -0
- package/src/lib/load-handlebars-template.js +24 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- 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 +14 -4
- package/src/lib/minimum-table-component-options.js +18 -20
- 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/table-filter-column-rule.d.ts +13 -0
- package/src/lib/table/table-filter-column-rule.js +88 -0
- package/src/lib/table/table-filter-column-rule.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 +38 -6
- package/src/lib/table-column.js +220 -67
- 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/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +10 -3
- package/src/schematics/accordion/accordion-component/index.js +106 -127
- 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 +354 -84
- package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +4 -3
- package/src/schematics/accordion/accordion-item-component/index.js +91 -108
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +3 -5
- package/src/schematics/accordion/accordion-item-component/schema.json +281 -72
- package/src/schematics/accordion/accordion-item-component/template.schema.json +33 -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 +44 -52
- 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-data-grid-component/schema.json +366 -103
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
- 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 +4 -27
- 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 +317 -179
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +84 -0
- 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 +13 -10
- 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 +598 -242
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +46 -0
- 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 +17 -12
- 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 +573 -247
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-item.schema.json +35 -0
- package/src/schematics/angular.schema.json +2 -10
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +34 -0
- package/src/schematics/data-grid-component/index.d.ts +0 -1
- package/src/schematics/data-grid-component/index.js +83 -47
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +336 -101
- package/src/schematics/data-grid-component/template.schema.json +23 -0
- package/src/schematics/data-grid-item.schema.json +23 -0
- package/src/schematics/data-grid.schema.json +44 -0
- package/src/schematics/dialog-component/schema.json +225 -66
- package/src/schematics/dialog-component/template.schema.json +65 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -22
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/schema.json +380 -108
- package/src/schematics/form/control/input-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +132 -96
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/select-form-control/schema.json +386 -94
- package/src/schematics/form/control/select-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +4 -6
- package/src/schematics/form/control/table-select-form-control/index.js +80 -69
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
- package/src/schematics/form/control/table-select-form-control/schema.json +434 -97
- package/src/schematics/form/control/table-select-form-control/template.schema.json +78 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
- package/src/schematics/form/form-component/index.d.ts +4 -2
- package/src/schematics/form/form-component/index.js +14 -5
- 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 +342 -95
- package/src/schematics/form/form-component/template.schema.json +23 -0
- package/src/schematics/form/form-control/index.d.ts +3 -1
- package/src/schematics/form/form-control/index.js +19 -8
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.json +316 -83
- package/src/schematics/form/form-control/template.schema.json +37 -0
- package/src/schematics/form/form-definition/index.js +14 -1
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.d.ts +1 -1
- package/src/schematics/form/form-definition/schema.json +289 -59
- package/src/schematics/form/form-definition/template.schema.json +33 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-component.schema.json +39 -0
- package/src/schematics/form-control.schema.json +68 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +47 -0
- package/src/schematics/minimum-table.schema.json +54 -0
- package/src/schematics/property.schema.json +28 -0
- package/src/schematics/select-form-control.schema.json +53 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +294 -133
- package/src/schematics/table/action/dialog-table-action/template.schema.json +61 -0
- package/src/schematics/table/action/form-table-action/schema.json +392 -172
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +272 -88
- package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +288 -102
- package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
- package/src/schematics/table/action/operation-table-action/schema.json +259 -92
- package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +325 -126
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +254 -81
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +31 -0
- package/src/schematics/table/table-action/schema.json +254 -87
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
- package/src/schematics/table/table-component/index.d.ts +2 -2
- package/src/schematics/table/table-component/index.js +15 -105
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +461 -197
- package/src/schematics/table/table-component/template.schema.json +26 -0
- package/src/schematics/table/table-header-button/schema.json +235 -73
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
- package/src/schematics/table/templates/component-table-column.hbs +12 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
- package/src/schematics/table/templates/date-table-column.hbs +11 -0
- package/src/schematics/table/templates/default-table-column.hbs +8 -0
- package/src/schematics/table/templates/icon-table-column.hbs +10 -0
- package/src/schematics/table/templates/link-table-column.hbs +10 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +249 -0
- package/src/schematics/table/tree-table-component/index.js +16 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +524 -260
- package/src/schematics/table/tree-table-component/template.schema.json +26 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +69 -0
- package/src/schematics/table.schema.json +54 -0
- package/src/schematics/tree-component/schema.json +113 -76
- package/src/schematics/tree-component/template.schema.json +31 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- 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.html.template +0 -79
- 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.html.template +0 -5
- 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.html.template +0 -42
- package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +0 -43
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- 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.html.template +0 -299
- 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.html.template +0 -213
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +0 -113
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
<div class="flex flex-col gap-y-4 m-4">
|
|
2
|
-
<% if (hasNavigationBackHeader) { %>
|
|
3
|
-
<rxap-navigate-back-button>
|
|
4
|
-
<h1 i18n><%= title %></h1>
|
|
5
|
-
</rxap-navigate-back-button>
|
|
6
|
-
<mat-divider></mat-divider>
|
|
7
|
-
<% } %>
|
|
8
|
-
|
|
9
|
-
<div class="table-card-container flex flex-col">
|
|
10
|
-
<mat-card>
|
|
11
|
-
<mat-progress-bar
|
|
12
|
-
rxapCardProgressBar
|
|
13
|
-
[loading$]="tableDataSourceDirective.loading$"
|
|
14
|
-
></mat-progress-bar>
|
|
15
|
-
<mat-card-header class="min-h-full h-12<% if (!headerButton && hasWithoutTitle) { %> justify-end<% } %>">
|
|
16
|
-
<% if (!hasWithoutTitle) { %>
|
|
17
|
-
<mat-card-title i18n><%= title %></mat-card-title>
|
|
18
|
-
<% } %>
|
|
19
|
-
<% if (headerButton) { %>
|
|
20
|
-
<button
|
|
21
|
-
mat-card-avatar
|
|
22
|
-
mat-mini-fab
|
|
23
|
-
color="primary"
|
|
24
|
-
matTooltip
|
|
25
|
-
[disabled]="tableDataSourceDirective.hasError$ | async"
|
|
26
|
-
[rxapTableHeaderButton]="tableDataSourceDirective"
|
|
27
|
-
<% if (headerButton.permission) { %>rxapHasEnablePermission="<%= headerButton.permission %>"<% } %>
|
|
28
|
-
>
|
|
29
|
-
<% if (headerButton.icon) { %><mat-icon><%= headerButton.icon %></mat-icon><% } else if (headerButton.svgIcon) { %><mat-icon svgIcon="<%= headerButton.svgIcon %>"></mat-icon><% } else { %><mat-icon>add</mat-icon><% } %>
|
|
30
|
-
</button>
|
|
31
|
-
<mat-card-subtitle i18n><%= headerButton.label %></mat-card-subtitle>
|
|
32
|
-
<% } %>
|
|
33
|
-
<rxap-table-column-menu matCard #rxapTableColumns="rxapTableColumns" <% if (!headerButton && hasWithoutTitle) { %>inline<% } %>>
|
|
34
|
-
<% if (selectColumn) { %>
|
|
35
|
-
<rxap-table-column-option hidden name="select">
|
|
36
|
-
<ng-container i18n>Select</ng-container>
|
|
37
|
-
</rxap-table-column-option>
|
|
38
|
-
<% } %>
|
|
39
|
-
<% for (const column of columnList) { %>
|
|
40
|
-
<rxap-table-column-option
|
|
41
|
-
name="<%= column.name %>"<% if (column.active) { %><%= ' active' %><% } %><% if (column.hidden) { %><%= ' hidden' %><% } %><% if (column.inactive) { %><%= ' inactive' %><% } %><% if (column.show) { %><%= ' show' %><% } %>>
|
|
42
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
43
|
-
</rxap-table-column-option>
|
|
44
|
-
<% } %>
|
|
45
|
-
<% if (actionList.length) { %>
|
|
46
|
-
<rxap-table-column-option hidden name="actions">
|
|
47
|
-
<ng-container i18n>Actions</ng-container>
|
|
48
|
-
</rxap-table-column-option>
|
|
49
|
-
<% } %>
|
|
50
|
-
<% if (hasShowArchivedSlide) { %>
|
|
51
|
-
<mat-divider></mat-divider>
|
|
52
|
-
<span mat-menu-item>
|
|
53
|
-
<rxap-table-show-archived-slide
|
|
54
|
-
[paginator]="paginator"
|
|
55
|
-
></rxap-table-show-archived-slide>
|
|
56
|
-
</span>
|
|
57
|
-
<% } %>
|
|
58
|
-
</rxap-table-column-menu>
|
|
59
|
-
</mat-card-header>
|
|
60
|
-
|
|
61
|
-
<mat-card-content>
|
|
62
|
-
<rxap-data-source-error
|
|
63
|
-
[loading]="tableDataSourceDirective.loading$"
|
|
64
|
-
[error]="tableDataSourceDirective.dataSource?.error$"
|
|
65
|
-
*ngIf="tableDataSourceDirective.hasError$ | async"
|
|
66
|
-
[refresh]="tableDataSourceDirective.retry">
|
|
67
|
-
</rxap-data-source-error>
|
|
68
|
-
<div class="table-scroll-container mt-4 overflow-x-auto overscroll-auto">
|
|
69
|
-
<table
|
|
70
|
-
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
71
|
-
[paginator]="paginator"
|
|
72
|
-
matSort
|
|
73
|
-
mat-table
|
|
74
|
-
#tableDataSourceDirective="rxapTableDataSource"
|
|
75
|
-
rxapTableDataSource
|
|
76
|
-
[parameters]="parameters"
|
|
77
|
-
id="<%= name %>"
|
|
78
|
-
<% if (hasColumnWithFilter) { %>rxap-filter-header-row<% } %>
|
|
79
|
-
>
|
|
80
|
-
<!-- region columns -->
|
|
81
|
-
|
|
82
|
-
<% if (selectColumn) { %>
|
|
83
|
-
<ng-container matColumnDef="select" sticky>
|
|
84
|
-
<th mat-header-cell rxap-checkbox-header-cell *matHeaderCellDef></th>
|
|
85
|
-
<td
|
|
86
|
-
mat-cell
|
|
87
|
-
rxap-checkbox-cell
|
|
88
|
-
[element]="element"
|
|
89
|
-
*matCellDef="let element"
|
|
90
|
-
></td>
|
|
91
|
-
</ng-container>
|
|
92
|
-
<% } %>
|
|
93
|
-
<% if (actionList.length) { %>
|
|
94
|
-
<ng-container matColumnDef="actions" stickyEnd>
|
|
95
|
-
<th mat-header-cell *matHeaderCellDef>
|
|
96
|
-
<% if (selectColumn) { %>
|
|
97
|
-
<div class="flex flex-row" *rxapSelectedRows="let selected">
|
|
98
|
-
<% for (const action of actionList) { %>
|
|
99
|
-
<% if (action.inHeader) { %>
|
|
100
|
-
<button
|
|
101
|
-
rxapTableRowHeaderAction="<%= action.type %>"
|
|
102
|
-
mat-icon-button
|
|
103
|
-
<% if (action.color) { %>color="<%= action.color %>"<% } %>
|
|
104
|
-
<% if (action.cssClass) { %>class="<%= action.cssClass %>"<% } %>
|
|
105
|
-
*ngIf="selected | rxapRowActionCheck:'<%= action.type %>'"
|
|
106
|
-
<% if (action.permission) { %>rxapHasEnablePermission="<%= action.permission %>"<% } %>
|
|
107
|
-
matTooltip
|
|
108
|
-
>
|
|
109
|
-
<% if (action.icon) { %><mat-icon><%= action.icon %></mat-icon><% } else if (action.svgIcon) { %><mat-icon svgIcon="<%= action.svgIcon %>"></mat-icon><% } else { %><mat-icon><%= action.type %></mat-icon><% } %>
|
|
110
|
-
<mat-progress-bar
|
|
111
|
-
*rxapTableRowActionExecuting
|
|
112
|
-
mode="indeterminate"
|
|
113
|
-
></mat-progress-bar>
|
|
114
|
-
</button>
|
|
115
|
-
<% } %>
|
|
116
|
-
<% } %>
|
|
117
|
-
</div>
|
|
118
|
-
<% } %>
|
|
119
|
-
</th>
|
|
120
|
-
|
|
121
|
-
<td mat-cell *matCellDef="let element">
|
|
122
|
-
<div class="flex flex-row">
|
|
123
|
-
<% for (const action of actionList) { %>
|
|
124
|
-
<button
|
|
125
|
-
rxapTableRowAction="<%= action.type %>"
|
|
126
|
-
[element]="element"
|
|
127
|
-
<% if (action.color) { %>color="<%= action.color %>"<% } %>
|
|
128
|
-
<% if (action.cssClass) { %>class="<%= action.cssClass %>"<% } %>
|
|
129
|
-
mat-icon-button
|
|
130
|
-
*ngIf="element | rxapRowActionCheck:'<%= action.type %>'"
|
|
131
|
-
<% if (action.permission) { %>rxapHasEnablePermission="<%= action.permission %>"<% } %>
|
|
132
|
-
matTooltip
|
|
133
|
-
>
|
|
134
|
-
<% if (action.icon) { %><mat-icon><%= action.icon %></mat-icon><% } else if (action.svgIcon) { %><mat-icon svgIcon="<%= action.svgIcon %>"></mat-icon><% } else { %><mat-icon><%= action.type %></mat-icon><% } %>
|
|
135
|
-
<mat-progress-bar
|
|
136
|
-
*rxapTableRowActionExecuting
|
|
137
|
-
mode="indeterminate"
|
|
138
|
-
></mat-progress-bar>
|
|
139
|
-
</button>
|
|
140
|
-
<% } %>
|
|
141
|
-
</div>
|
|
142
|
-
</td>
|
|
143
|
-
</ng-container>
|
|
144
|
-
<% } %>
|
|
145
|
-
<% for (const column of columnList) { %>
|
|
146
|
-
<% if (column.role === 'copy-to-clipboard') { %>
|
|
147
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
148
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
149
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
150
|
-
</th>
|
|
151
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-copy-to-clipboard-cell]="element?.<%= column.propertyPath %>"></td>
|
|
152
|
-
</ng-container>
|
|
153
|
-
<% } else if (column.role === 'link') { %>
|
|
154
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
155
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
156
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
157
|
-
</th>
|
|
158
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-link-cell]="element?.<%= column.propertyPath %>"></td>
|
|
159
|
-
</ng-container>
|
|
160
|
-
<% } else if (column.role === 'date') { %>
|
|
161
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
162
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
163
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
164
|
-
</th>
|
|
165
|
-
|
|
166
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-date-cell]="element?.<%= column.propertyPath %>" format="dd.MM.yyyy HH:mm:ss"></td>
|
|
167
|
-
</ng-container>
|
|
168
|
-
<% } else if (column.role === 'boolean') { %>
|
|
169
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
170
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
171
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
172
|
-
</th>
|
|
173
|
-
|
|
174
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-boolean-cell]="element?.<%= column.propertyPath %>"></td>
|
|
175
|
-
</ng-container>
|
|
176
|
-
<% } else if (column.role === 'icon') { %>
|
|
177
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
178
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
179
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
180
|
-
</th>
|
|
181
|
-
|
|
182
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-icon-cell]="element?.<%= column.propertyPath %>"></td>
|
|
183
|
-
</ng-container>
|
|
184
|
-
<% } else if (column.role === 'component') { %>
|
|
185
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
186
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
187
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
188
|
-
</th>
|
|
189
|
-
|
|
190
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> <%= prefix %>-<%= column.name %>-cell [element]="element" [value]="element?.<%= column.propertyPath %>"></td>
|
|
191
|
-
</ng-container>
|
|
192
|
-
<% } else { %>
|
|
193
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
194
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
195
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
196
|
-
</th>
|
|
197
|
-
|
|
198
|
-
<td mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> *matCellDef="let element">
|
|
199
|
-
<% if (column.template) { %>
|
|
200
|
-
<%= column.template %>
|
|
201
|
-
<% } else if (column.pipeList.length) { %>
|
|
202
|
-
{{ element?.<%= column.propertyPath %><% for (const pipe of column.pipeList) { %> | <%= pipe.name %><% } %> }}
|
|
203
|
-
<% } else { %>
|
|
204
|
-
{{ element?.<%= column.propertyPath %> }}
|
|
205
|
-
<% } %>
|
|
206
|
-
</td>
|
|
207
|
-
</ng-container>
|
|
208
|
-
<% } %>
|
|
209
|
-
<% } %>
|
|
210
|
-
|
|
211
|
-
<!-- endregion -->
|
|
212
|
-
<% if (hasColumnWithFilter) { %>
|
|
213
|
-
<!-- region filter columns -->
|
|
214
|
-
<% if (selectColumn) { %>
|
|
215
|
-
<ng-container matColumnDef="filter_select" sticky>
|
|
216
|
-
<th mat-header-cell *matHeaderCellDef></th>
|
|
217
|
-
</ng-container>
|
|
218
|
-
<% } %>
|
|
219
|
-
<% if (actionList.length) { %>
|
|
220
|
-
<ng-container matColumnDef="filter_actions" stickyEnd>
|
|
221
|
-
<th mat-header-cell *matHeaderCellDef></th>
|
|
222
|
-
</ng-container>
|
|
223
|
-
<% } %>
|
|
224
|
-
|
|
225
|
-
<% for (const column of columnList) { %>
|
|
226
|
-
<ng-container matColumnDef="filter_<%= column.name %>">
|
|
227
|
-
<th mat-header-cell *matHeaderCellDef>
|
|
228
|
-
<% if (column.hasFilter) { %>
|
|
229
|
-
<% if (column.type === 'boolean') { %>
|
|
230
|
-
<mat-checkbox
|
|
231
|
-
indeterminate
|
|
232
|
-
parentControlContainer
|
|
233
|
-
formControlName="<%= camelize(column.name) %>"
|
|
234
|
-
>
|
|
235
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
236
|
-
</mat-checkbox>
|
|
237
|
-
<% } else { %>
|
|
238
|
-
<mat-form-field class="w-full pt-3">
|
|
239
|
-
<mat-label i18n><%= column.title %></mat-label>
|
|
240
|
-
<input
|
|
241
|
-
matInput
|
|
242
|
-
i18n-placeholder
|
|
243
|
-
placeholder="Enter Filter"
|
|
244
|
-
parentControlContainer
|
|
245
|
-
formControlName="<%= camelize(column.name) %>"
|
|
246
|
-
/>
|
|
247
|
-
<button matSuffix rxapInputClearButton mat-icon-button>
|
|
248
|
-
<mat-icon>clear</mat-icon>
|
|
249
|
-
</button>
|
|
250
|
-
</mat-form-field>
|
|
251
|
-
<% } %>
|
|
252
|
-
<% } %>
|
|
253
|
-
</th>
|
|
254
|
-
</ng-container>
|
|
255
|
-
<% } %>
|
|
256
|
-
|
|
257
|
-
<!-- endregion -->
|
|
258
|
-
<tr
|
|
259
|
-
class="rxap-filter-header"
|
|
260
|
-
mat-header-row
|
|
261
|
-
*matHeaderRowDef="
|
|
262
|
-
rxapTableColumns.displayColumns | toFilterColumnNames
|
|
263
|
-
"
|
|
264
|
-
></tr>
|
|
265
|
-
<% } %>
|
|
266
|
-
|
|
267
|
-
<tr
|
|
268
|
-
mat-header-row
|
|
269
|
-
*matHeaderRowDef="rxapTableColumns.displayColumns"
|
|
270
|
-
></tr>
|
|
271
|
-
|
|
272
|
-
<tr
|
|
273
|
-
[@rowsAnimation]=""
|
|
274
|
-
mat-row
|
|
275
|
-
[ngClass]="{ 'rxap-row-odd !bg-neutral-200 dark:!bg-neutral-600': odd, 'rxap-row-even': even }"
|
|
276
|
-
class="hover:!bg-neutral-400 dark:hover:!bg-neutral-800"
|
|
277
|
-
*matRowDef="
|
|
278
|
-
let element;
|
|
279
|
-
columns: rxapTableColumns.displayColumns;
|
|
280
|
-
let odd = odd;
|
|
281
|
-
let even = even
|
|
282
|
-
"
|
|
283
|
-
></tr>
|
|
284
|
-
</table>
|
|
285
|
-
</div>
|
|
286
|
-
</mat-card-content>
|
|
287
|
-
|
|
288
|
-
<mat-card-footer
|
|
289
|
-
><mat-paginator
|
|
290
|
-
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
291
|
-
rxapPersistent
|
|
292
|
-
[pageSizeOptions]="[5,10,25,50,100]"
|
|
293
|
-
[pageSize]="10"
|
|
294
|
-
#paginator="matPaginator"
|
|
295
|
-
></mat-paginator
|
|
296
|
-
></mat-card-footer>
|
|
297
|
-
</mat-card>
|
|
298
|
-
</div>
|
|
299
|
-
</div>
|
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,213 +0,0 @@
|
|
|
1
|
-
<div class="flex flex-col gap-y-4 m-4">
|
|
2
|
-
<% if (hasNavigationBackHeader) { %>
|
|
3
|
-
<rxap-navigate-back-button>
|
|
4
|
-
<h1 i18n><%= title %></h1>
|
|
5
|
-
</rxap-navigate-back-button>
|
|
6
|
-
<mat-divider></mat-divider>
|
|
7
|
-
<% } %>
|
|
8
|
-
|
|
9
|
-
<div class="table-card-container flex flex-col">
|
|
10
|
-
<mat-card>
|
|
11
|
-
<mat-progress-bar
|
|
12
|
-
rxapCardProgressBar
|
|
13
|
-
[loading$]="tableDataSourceDirective.loading$"
|
|
14
|
-
></mat-progress-bar>
|
|
15
|
-
<mat-card-header class="min-h-full h-12<% if (!headerButton && hasWithoutTitle) { %> justify-end<% } %>">
|
|
16
|
-
<% if (!hasWithoutTitle) { %>
|
|
17
|
-
<mat-card-title i18n><%= title %></mat-card-title>
|
|
18
|
-
<% } %>
|
|
19
|
-
<% if (headerButton) { %>
|
|
20
|
-
<button
|
|
21
|
-
mat-card-avatar
|
|
22
|
-
mat-mini-fab
|
|
23
|
-
color="primary"
|
|
24
|
-
matTooltip
|
|
25
|
-
[disabled]="tableDataSourceDirective.hasError$ | async"
|
|
26
|
-
[rxapTableHeaderButton]="tableDataSourceDirective"
|
|
27
|
-
<% if (headerButton.permission) { %>rxapHasEnablePermission="<%= headerButton.permission %>"<% } %>
|
|
28
|
-
>
|
|
29
|
-
<% if (headerButton.icon) { %><mat-icon><%= headerButton.icon %></mat-icon><% } else if (headerButton.svgIcon) { %><mat-icon svgIcon="<%= headerButton.svgIcon %>"></mat-icon><% } else { %><mat-icon>add</mat-icon><% } %>
|
|
30
|
-
</button>
|
|
31
|
-
<mat-card-subtitle i18n><%= headerButton.label %></mat-card-subtitle>
|
|
32
|
-
<% } %>
|
|
33
|
-
<rxap-table-column-menu matCard #rxapTableColumns="rxapTableColumns" <% if (!headerButton && hasWithoutTitle) { %>inline<% } %>>
|
|
34
|
-
<% for (const column of columnList) { %>
|
|
35
|
-
<rxap-table-column-option
|
|
36
|
-
name="<%= column.name %>"<% if (column.active) { %><%= ' active' %><% } %><% if (column.hidden) { %><%= ' hidden' %><% } %><% if (column.inactive) { %><%= ' inactive' %><% } %><% if (column.show) { %><%= ' show' %><% } %>>
|
|
37
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
38
|
-
</rxap-table-column-option>
|
|
39
|
-
<% } %>
|
|
40
|
-
<% if (actionList.length) { %>
|
|
41
|
-
<rxap-table-column-option hidden name="actions">
|
|
42
|
-
<ng-container i18n>Actions</ng-container>
|
|
43
|
-
</rxap-table-column-option>
|
|
44
|
-
<% } %>
|
|
45
|
-
<mat-divider></mat-divider>
|
|
46
|
-
<span mat-menu-item>
|
|
47
|
-
<rxap-table-show-archived-slide></rxap-table-show-archived-slide>
|
|
48
|
-
</span>
|
|
49
|
-
</rxap-table-column-menu>
|
|
50
|
-
</mat-card-header>
|
|
51
|
-
|
|
52
|
-
<mat-card-content>
|
|
53
|
-
<rxap-data-source-error
|
|
54
|
-
[loading]="tableDataSourceDirective.loading$"
|
|
55
|
-
[error]="tableDataSourceDirective.dataSource?.error$"
|
|
56
|
-
*ngIf="tableDataSourceDirective.hasError$ | async"
|
|
57
|
-
[refresh]="tableDataSourceDirective.retry">
|
|
58
|
-
</rxap-data-source-error>
|
|
59
|
-
<div class="table-scroll-container mt-4 overflow-x-auto overscroll-auto">
|
|
60
|
-
<table
|
|
61
|
-
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
62
|
-
matSort
|
|
63
|
-
mat-table
|
|
64
|
-
#tableDataSourceDirective="rxapTableDataSource"
|
|
65
|
-
rxapTableDataSource
|
|
66
|
-
[parameters]="parameters"
|
|
67
|
-
id="<%= name %>"
|
|
68
|
-
>
|
|
69
|
-
<!-- region columns -->
|
|
70
|
-
|
|
71
|
-
<% if (actionList.length) { %>
|
|
72
|
-
<ng-container matColumnDef="actions" stickyEnd>
|
|
73
|
-
<th mat-header-cell *matHeaderCellDef>
|
|
74
|
-
<% if (selectColumn) { %>
|
|
75
|
-
<div class="flex flex-row" *rxapSelectedRows="let selected">
|
|
76
|
-
<% for (const action of actionList) { %>
|
|
77
|
-
<% if (action.inHeader) { %>
|
|
78
|
-
<button
|
|
79
|
-
rxapTableRowHeaderAction="<%= action.type %>"
|
|
80
|
-
mat-icon-button
|
|
81
|
-
<% if (action.color) { %>color="<%= action.color %>"<% } %>
|
|
82
|
-
<% if (action.cssClass) { %>class="<%= action.cssClass %>"<% } %>
|
|
83
|
-
*ngIf="selected | rxapRowActionCheck:'<%= action.type %>'"
|
|
84
|
-
<% if (action.permission) { %>rxapHasEnablePermission="<%= action.permission %>"<% } %>
|
|
85
|
-
matTooltip
|
|
86
|
-
>
|
|
87
|
-
<% if (action.icon) { %><mat-icon><%= action.icon %></mat-icon><% } else if (action.svgIcon) { %><mat-icon svgIcon="<%= action.svgIcon %>"></mat-icon><% } else { %><mat-icon><%= action.type %></mat-icon><% } %>
|
|
88
|
-
<mat-progress-bar
|
|
89
|
-
*rxapTableRowActionExecuting
|
|
90
|
-
mode="indeterminate"
|
|
91
|
-
></mat-progress-bar>
|
|
92
|
-
</button>
|
|
93
|
-
<% } %>
|
|
94
|
-
<% } %>
|
|
95
|
-
</div>
|
|
96
|
-
<% } %>
|
|
97
|
-
</th>
|
|
98
|
-
|
|
99
|
-
<td mat-cell *matCellDef="let element">
|
|
100
|
-
<div class="flex flex-row">
|
|
101
|
-
<% for (const action of actionList) { %>
|
|
102
|
-
<button
|
|
103
|
-
rxapTableRowAction="<%= action.type %>"
|
|
104
|
-
[element]="element"
|
|
105
|
-
<% if (action.color) { %>color="<%= action.color %>"<% } %>
|
|
106
|
-
<% if (action.cssClass) { %>class="<%= action.cssClass %>"<% } %>
|
|
107
|
-
mat-icon-button
|
|
108
|
-
*ngIf="element | rxapRowActionCheck:'<%= action.type %>'"
|
|
109
|
-
<% if (action.permission) { %>rxapHasEnablePermission="<%= action.permission %>"<% } %>
|
|
110
|
-
matTooltip
|
|
111
|
-
>
|
|
112
|
-
<% if (action.icon) { %><mat-icon><%= action.icon %></mat-icon><% } else if (action.svgIcon) { %><mat-icon svgIcon="<%= action.svgIcon %>"></mat-icon><% } else { %><mat-icon><%= action.type %></mat-icon><% } %>
|
|
113
|
-
<mat-progress-bar
|
|
114
|
-
*rxapTableRowActionExecuting
|
|
115
|
-
mode="indeterminate"
|
|
116
|
-
></mat-progress-bar>
|
|
117
|
-
</button>
|
|
118
|
-
<% } %>
|
|
119
|
-
</div>
|
|
120
|
-
</td>
|
|
121
|
-
</ng-container>
|
|
122
|
-
<% } %>
|
|
123
|
-
<% for (const column of columnList) { %>
|
|
124
|
-
<% if (column.role === 'copy-to-clipboard') { %>
|
|
125
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
126
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
127
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
128
|
-
</th>
|
|
129
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-copy-to-clipboard-cell]="element?.<%= column.propertyPath %>"></td>
|
|
130
|
-
</ng-container>
|
|
131
|
-
<% } else if (column.role === 'link') { %>
|
|
132
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
133
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
134
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
135
|
-
</th>
|
|
136
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-link-cell]="element?.<%= column.propertyPath %>"></td>
|
|
137
|
-
</ng-container>
|
|
138
|
-
<% } else if (column.role === 'date') { %>
|
|
139
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
140
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
141
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
142
|
-
</th>
|
|
143
|
-
|
|
144
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-date-cell]="element?.<%= column.propertyPath %>" format="dd.MM.yyyy HH:mm:ss"></td>
|
|
145
|
-
</ng-container>
|
|
146
|
-
<% } else if (column.role === 'boolean') { %>
|
|
147
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
148
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
149
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
150
|
-
</th>
|
|
151
|
-
|
|
152
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-boolean-cell]="element?.<%= column.propertyPath %>"></td>
|
|
153
|
-
</ng-container>
|
|
154
|
-
<% } else if (column.role === 'icon') { %>
|
|
155
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
156
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
157
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
158
|
-
</th>
|
|
159
|
-
|
|
160
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> [rxap-icon-cell]="element?.<%= column.propertyPath %>"></td>
|
|
161
|
-
</ng-container>
|
|
162
|
-
<% } else if (column.role === 'component') { %>
|
|
163
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
164
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
165
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
166
|
-
</th>
|
|
167
|
-
|
|
168
|
-
<td *matCellDef="let element" mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> <%= prefix %>-<%= column.name %>-cell [element]="element" [value]="element?.<%= column.propertyPath %>"></td>
|
|
169
|
-
</ng-container>
|
|
170
|
-
<% } else { %>
|
|
171
|
-
<ng-container matColumnDef="<%= column.name %>">
|
|
172
|
-
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
173
|
-
<ng-container i18n><%= column.title %></ng-container>
|
|
174
|
-
</th>
|
|
175
|
-
|
|
176
|
-
<td mat-cell <% if (column.cssClass) { %>class="<%= column.cssClass %>"<% } %> *matCellDef="let element">
|
|
177
|
-
<% if (column.template) { %>
|
|
178
|
-
<%= column.template %>
|
|
179
|
-
<% } else if (column.pipeList.length) { %>
|
|
180
|
-
{{ element?.<%= column.propertyPath %><% for (const pipe of column.pipeList) { %> | <%= pipe.name %><% } %> }}
|
|
181
|
-
<% } else { %>
|
|
182
|
-
{{ element?.<%= column.propertyPath %> }}
|
|
183
|
-
<% } %>
|
|
184
|
-
</td>
|
|
185
|
-
</ng-container>
|
|
186
|
-
<% } %>
|
|
187
|
-
<% } %>
|
|
188
|
-
|
|
189
|
-
<!-- endregion -->
|
|
190
|
-
|
|
191
|
-
<tr
|
|
192
|
-
mat-header-row
|
|
193
|
-
*matHeaderRowDef="rxapTableColumns.displayColumns"
|
|
194
|
-
></tr>
|
|
195
|
-
|
|
196
|
-
<tr
|
|
197
|
-
[@rowsAnimation]=""
|
|
198
|
-
mat-row
|
|
199
|
-
[ngClass]="{ 'rxap-row-odd !bg-neutral-200 dark:!bg-neutral-600': odd, 'rxap-row-even': even }"
|
|
200
|
-
class="hover:!bg-neutral-400 dark:hover:!bg-neutral-800"
|
|
201
|
-
*matRowDef="
|
|
202
|
-
let element;
|
|
203
|
-
columns: rxapTableColumns.displayColumns;
|
|
204
|
-
let odd = odd;
|
|
205
|
-
let even = even
|
|
206
|
-
"
|
|
207
|
-
></tr>
|
|
208
|
-
</table>
|
|
209
|
-
</div>
|
|
210
|
-
</mat-card-content>
|
|
211
|
-
</mat-card>
|
|
212
|
-
</div>
|
|
213
|
-
</div>
|