@rxap/schematic-angular 16.2.0-dev.6 → 16.2.0-dev.8
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 +29 -0
- package/README.md +1 -1
- package/package.json +10 -8
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +8 -2
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-item.d.ts +17 -16
- package/src/lib/accordion-item.js +44 -32
- 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/coerce-accordion-component.js +2 -2
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +5 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +6 -3
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +2 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +4 -7
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +2 -0
- package/src/lib/data-grid-options.js +7 -3
- package/src/lib/data-grid-options.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 +2 -6
- 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 +303 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +3 -57
- package/src/lib/form-definition-control.js +18 -144
- 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/minimum-table-component-options.d.ts +1 -1
- package/src/lib/minimum-table-component-options.js +3 -3
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/table-column.d.ts +8 -2
- package/src/lib/table-column.js +63 -44
- package/src/lib/table-column.js.map +1 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.js +6 -98
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/index.js +42 -42
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +17 -29
- 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 +1 -1
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +4 -4
- 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 +1 -1
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +8 -8
- 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 +1 -1
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +10 -10
- 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 +1 -1
- 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 +21 -7
- package/src/schematics/data-grid-component/index.js.map +1 -1
- 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/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 -27
- 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/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/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 -68
- 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/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.js +4 -1
- package/src/schematics/form/form-component/index.js.map +1 -1
- 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/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/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/template.schema.json +61 -0
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
- package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
- package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
- 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/template.schema.json +31 -0
- 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 +1 -1
- package/src/schematics/table/table-component/index.js +2 -2
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/template.schema.json +26 -0
- 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/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/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/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/accordion/accordion-component/schema.json +0 -191
- package/src/schematics/accordion/accordion-item-component/schema.json +0 -92
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +0 -133
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +0 -226
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +0 -334
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +0 -334
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/data-grid-component/schema.json +0 -176
- package/src/schematics/dialog-component/schema.json +0 -81
- package/src/schematics/form/control/input-form-control/schema.json +0 -116
- package/src/schematics/form/control/select-form-control/schema.json +0 -102
- package/src/schematics/form/control/table-select-form-control/schema.json +0 -106
- package/src/schematics/form/form-component/schema.json +0 -173
- package/src/schematics/form/form-control/schema.json +0 -92
- package/src/schematics/form/form-definition/schema.json +0 -148
- package/src/schematics/table/action/dialog-table-action/schema.json +0 -148
- package/src/schematics/table/action/form-table-action/schema.json +0 -202
- package/src/schematics/table/action/navigation-table-action/schema.json +0 -95
- package/src/schematics/table/action/open-api-table-action/schema.json +0 -121
- package/src/schematics/table/action/operation-table-action/schema.json +0 -98
- package/src/schematics/table/header-button/form-table-header-button/schema.json +0 -139
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +0 -87
- package/src/schematics/table/table-action/schema.json +0 -94
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/table-component/schema.json +0 -340
- package/src/schematics/table/table-header-button/schema.json +0 -80
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
- package/src/schematics/table/tree-table-component/schema.json +0 -316
- package/src/schematics/tree-component/schema.json +0 -86
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "open-api-table-action-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../table-action/template.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"operationId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The open api operationId for the table action"
|
|
14
|
+
},
|
|
15
|
+
"scope": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The scope of package for the openapi classes"
|
|
18
|
+
},
|
|
19
|
+
"body": {
|
|
20
|
+
"oneOf": [
|
|
21
|
+
{
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Pass the full row as body for the operation request"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "object",
|
|
27
|
+
"description": "Mapping of table columns to body properties - [request property]: [table column]",
|
|
28
|
+
"additionalProperties": true
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"parameters": {
|
|
33
|
+
"oneOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "Pass the full row as parameters for the operation request"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "Mapping of table columns to parameters properties - [request property]: [table column]",
|
|
41
|
+
"additionalProperties": true
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": [
|
|
47
|
+
"operationId"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"definitions": {
|
|
52
|
+
"type": {
|
|
53
|
+
"$ref": "../../../type.schema.json"
|
|
54
|
+
},
|
|
55
|
+
"property": {
|
|
56
|
+
"$ref": "../../../property.schema.json"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "operation-table-action-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../table-action/template.schema.json"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"definitions": {
|
|
10
|
+
"type": {
|
|
11
|
+
"$ref": "../../../type.schema.json"
|
|
12
|
+
},
|
|
13
|
+
"property": {
|
|
14
|
+
"$ref": "../../../property.schema.json"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-table-header-button-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../table-header-button/template.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"formComponent": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"customComponent": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "If true the schematic will not coerce the form component"
|
|
18
|
+
},
|
|
19
|
+
"formOptions": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"role": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Define the role of the form"
|
|
25
|
+
},
|
|
26
|
+
"window": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Whether the form can be opened in a window"
|
|
29
|
+
},
|
|
30
|
+
"controlList": {
|
|
31
|
+
"alias": "control",
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"$ref": "../../../form-control.schema.json"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"definitions": {
|
|
44
|
+
"type": {
|
|
45
|
+
"$ref": "../../../type.schema.json"
|
|
46
|
+
},
|
|
47
|
+
"property": {
|
|
48
|
+
"$ref": "../../../property.schema.json"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "navigation-table-header-button-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../table-header-button/template.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"route": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The route path for the table action"
|
|
14
|
+
},
|
|
15
|
+
"relativeTo": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"description": "Indicates if the route path should be relative to the current activated route",
|
|
18
|
+
"default": false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"definitions": {
|
|
24
|
+
"type": {
|
|
25
|
+
"$ref": "../../../type.schema.json"
|
|
26
|
+
},
|
|
27
|
+
"property": {
|
|
28
|
+
"$ref": "../../../property.schema.json"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-action-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../angular.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../table-action.schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"tableName": {
|
|
15
|
+
"alias": "table",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the table action"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"definitions": {
|
|
23
|
+
"type": {
|
|
24
|
+
"$ref": "../../type.schema.json"
|
|
25
|
+
},
|
|
26
|
+
"property": {
|
|
27
|
+
"$ref": "../../property.schema.json"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
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
|
+
{{/if}}
|
|
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{{#unless headerButton}}{{#if hasWithoutTitle}} justify-end {{/if}}{{/unless}}">
|
|
16
|
+
{{#unless hasWithoutTitle}}
|
|
17
|
+
<mat-card-title i18n>{{title}}</mat-card-title>
|
|
18
|
+
{{/unless}}
|
|
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}}"{{/if~}}
|
|
28
|
+
>
|
|
29
|
+
{{#if headerButton.icon}}
|
|
30
|
+
<mat-icon>{{headerButton.icon}}</mat-icon>
|
|
31
|
+
{{else if headerButton.svgIcon}}
|
|
32
|
+
<mat-icon svgIcon="{{headerButton.svgIcon}}"></mat-icon>
|
|
33
|
+
{{else}}
|
|
34
|
+
<mat-icon>add</mat-icon>
|
|
35
|
+
{{/if}}
|
|
36
|
+
</button>
|
|
37
|
+
<mat-card-subtitle i18n>{{headerButton.label}}</mat-card-subtitle>
|
|
38
|
+
{{/if}}
|
|
39
|
+
<rxap-table-column-menu
|
|
40
|
+
matCard
|
|
41
|
+
#rxapTableColumns="rxapTableColumns"
|
|
42
|
+
{{#unless headerButton}}{{#if hasWithoutTitle}}inline{{/if}}{{/unless~}}
|
|
43
|
+
>
|
|
44
|
+
{{#if selectColumn}}
|
|
45
|
+
<rxap-table-column-option hidden name="select">
|
|
46
|
+
<ng-container i18n>Select</ng-container>
|
|
47
|
+
</rxap-table-column-option>
|
|
48
|
+
{{/if}}
|
|
49
|
+
{{#each columnList}}
|
|
50
|
+
<rxap-table-column-option name="{{this.name}}"
|
|
51
|
+
{{~#if this.active}} active{{/if~}}
|
|
52
|
+
{{~#if this.hidden}} hidden{{/if~}}
|
|
53
|
+
{{~#if this.inactive}} inactive{{/if~}}
|
|
54
|
+
{{~#if this.show}} show{{/if~}}>
|
|
55
|
+
<ng-container i18n>{{this.title}}</ng-container>
|
|
56
|
+
</rxap-table-column-option>
|
|
57
|
+
{{/each}}
|
|
58
|
+
{{#if actionList.length}}
|
|
59
|
+
<rxap-table-column-option hidden name="actions">
|
|
60
|
+
<ng-container i18n>Actions</ng-container>
|
|
61
|
+
</rxap-table-column-option>
|
|
62
|
+
{{/if}}
|
|
63
|
+
{{#if hasShowArchivedSlide}}
|
|
64
|
+
<mat-divider></mat-divider>
|
|
65
|
+
<span mat-menu-item>
|
|
66
|
+
<rxap-table-show-archived-slide [paginator]="paginator"></rxap-table-show-archived-slide>
|
|
67
|
+
</span>
|
|
68
|
+
{{/if}}
|
|
69
|
+
</rxap-table-column-menu>
|
|
70
|
+
</mat-card-header>
|
|
71
|
+
|
|
72
|
+
<mat-card-content>
|
|
73
|
+
<rxap-data-source-error
|
|
74
|
+
[loading]="tableDataSourceDirective.loading$"
|
|
75
|
+
[error]="tableDataSourceDirective.dataSource?.error$"
|
|
76
|
+
*ngIf="tableDataSourceDirective.hasError$ | async"
|
|
77
|
+
[refresh]="tableDataSourceDirective.retry">
|
|
78
|
+
</rxap-data-source-error>
|
|
79
|
+
<div class="table-scroll-container mt-4 overflow-x-auto overscroll-auto">
|
|
80
|
+
<table
|
|
81
|
+
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
82
|
+
[paginator]="paginator"
|
|
83
|
+
matSort
|
|
84
|
+
mat-table
|
|
85
|
+
#tableDataSourceDirective="rxapTableDataSource"
|
|
86
|
+
rxapTableDataSource
|
|
87
|
+
[parameters]="parameters"
|
|
88
|
+
id="{{name}}"
|
|
89
|
+
{{#if hasColumnWithFilter}}rxap-filter-header-row{{/if~}}
|
|
90
|
+
>
|
|
91
|
+
<!-- region columns -->
|
|
92
|
+
{{#if selectColumn}}
|
|
93
|
+
<!-- region select column -->
|
|
94
|
+
<ng-container matColumnDef="select" sticky>
|
|
95
|
+
<th mat-header-cell rxap-checkbox-header-cell *matHeaderCellDef></th>
|
|
96
|
+
<td
|
|
97
|
+
mat-cell
|
|
98
|
+
rxap-checkbox-cell
|
|
99
|
+
[element]="element"
|
|
100
|
+
*matCellDef="let element"
|
|
101
|
+
></td>
|
|
102
|
+
</ng-container>
|
|
103
|
+
<!-- endregion -->
|
|
104
|
+
{{/if}}
|
|
105
|
+
{{#if actionList.length}}
|
|
106
|
+
<!-- region actions column -->
|
|
107
|
+
<ng-container matColumnDef="actions" stickyEnd>
|
|
108
|
+
<th mat-header-cell *matHeaderCellDef>
|
|
109
|
+
{{#if selectColumn}}
|
|
110
|
+
<!-- region header actions -->
|
|
111
|
+
<div class="flex flex-row" *rxapSelectedRows="let selected">
|
|
112
|
+
{{#each actionList}}
|
|
113
|
+
{{#if this.inHeader}}
|
|
114
|
+
<button
|
|
115
|
+
rxapTableRowHeaderAction="{{this.type}}"
|
|
116
|
+
mat-icon-button
|
|
117
|
+
{{#if this.color}}color="{{this.color}}"{{/if~}}
|
|
118
|
+
{{#if this.cssClass}}class="{{this.cssClass}}"{{/if~}}
|
|
119
|
+
*ngIf="selected | rxapRowActionCheck:'{{this.type}}'"
|
|
120
|
+
{{#if this.permission}}rxapHasEnablePermission="{{this.permission}}"{{/if~}}
|
|
121
|
+
matTooltip
|
|
122
|
+
>
|
|
123
|
+
{{#if this.icon}}
|
|
124
|
+
<mat-icon>{{this.icon}}</mat-icon>
|
|
125
|
+
{{else if this.svgIcon}}
|
|
126
|
+
<mat-icon svgIcon="{{this.svgIcon}}"></mat-icon>
|
|
127
|
+
{{else}}
|
|
128
|
+
<mat-icon>{{this.type}}</mat-icon>
|
|
129
|
+
{{/if}}
|
|
130
|
+
<mat-progress-bar
|
|
131
|
+
*rxapTableRowActionExecuting
|
|
132
|
+
mode="indeterminate"
|
|
133
|
+
></mat-progress-bar>
|
|
134
|
+
</button>
|
|
135
|
+
{{/if}}
|
|
136
|
+
{{/each}}
|
|
137
|
+
</div>
|
|
138
|
+
<!-- endregion -->
|
|
139
|
+
{{/if}}
|
|
140
|
+
</th>
|
|
141
|
+
|
|
142
|
+
<td mat-cell *matCellDef="let element">
|
|
143
|
+
<div class="flex flex-row">
|
|
144
|
+
{{#each actionList}}
|
|
145
|
+
<button
|
|
146
|
+
rxapTableRowAction="{{this.type}}"
|
|
147
|
+
[element]="element"
|
|
148
|
+
{{#if this.color}}color="{{this.color}}"{{/if~}}
|
|
149
|
+
{{#if this.cssClass}}class="{{this.cssClass}}"{{/if~}}
|
|
150
|
+
mat-icon-button
|
|
151
|
+
*ngIf="element | rxapRowActionCheck:'{{this.type}}'"
|
|
152
|
+
{{#if this.permission}}rxapHasEnablePermission="{{this.permission}}"{{/if~}}
|
|
153
|
+
matTooltip
|
|
154
|
+
>
|
|
155
|
+
{{#if this.icon}}
|
|
156
|
+
<mat-icon>{{this.icon}}</mat-icon>
|
|
157
|
+
{{else if this.svgIcon}}
|
|
158
|
+
<mat-icon svgIcon="{{this.svgIcon}}"></mat-icon>
|
|
159
|
+
{{else}}
|
|
160
|
+
<mat-icon>{{this.type}}</mat-icon>
|
|
161
|
+
{{/if}}
|
|
162
|
+
<mat-progress-bar
|
|
163
|
+
*rxapTableRowActionExecuting
|
|
164
|
+
mode="indeterminate"
|
|
165
|
+
></mat-progress-bar>
|
|
166
|
+
</button>
|
|
167
|
+
{{/each}}
|
|
168
|
+
</div>
|
|
169
|
+
</td>
|
|
170
|
+
</ng-container>
|
|
171
|
+
<!-- endregion -->
|
|
172
|
+
|
|
173
|
+
{{/if}}
|
|
174
|
+
{{#each columnList}}
|
|
175
|
+
{{ indent (compile this.handlebars column=this) 10 }}
|
|
176
|
+
{{/each}}
|
|
177
|
+
|
|
178
|
+
<!-- endregion -->
|
|
179
|
+
{{#if hasColumnWithFilter}}
|
|
180
|
+
<!-- region filter columns -->
|
|
181
|
+
{{#if selectColumn}}
|
|
182
|
+
<ng-container matColumnDef="filter_select" sticky>
|
|
183
|
+
<th mat-header-cell *matHeaderCellDef></th>
|
|
184
|
+
</ng-container>
|
|
185
|
+
{{/if}}
|
|
186
|
+
{{#if actionList.length}}
|
|
187
|
+
<ng-container matColumnDef="filter_actions" stickyEnd>
|
|
188
|
+
<th mat-header-cell *matHeaderCellDef></th>
|
|
189
|
+
</ng-container>
|
|
190
|
+
{{/if}}
|
|
191
|
+
{{#each columnList}}
|
|
192
|
+
<ng-container matColumnDef="filter_{{this.name}}">
|
|
193
|
+
<th mat-header-cell *matHeaderCellDef>
|
|
194
|
+
{{#if this.hasFilter}}
|
|
195
|
+
{{ indent (compile this.filterControl.handlebars column=this control=this.filterControl parentControlContainer=true) 14 }}
|
|
196
|
+
{{/if}}
|
|
197
|
+
</th>
|
|
198
|
+
</ng-container>
|
|
199
|
+
{{/each}}
|
|
200
|
+
|
|
201
|
+
<!-- endregion -->
|
|
202
|
+
<tr
|
|
203
|
+
class="rxap-filter-header"
|
|
204
|
+
mat-header-row
|
|
205
|
+
*matHeaderRowDef="rxapTableColumns.displayColumns | toFilterColumnNames"
|
|
206
|
+
></tr>
|
|
207
|
+
{{/if}}
|
|
208
|
+
|
|
209
|
+
<tr
|
|
210
|
+
mat-header-row
|
|
211
|
+
*matHeaderRowDef="rxapTableColumns.displayColumns"
|
|
212
|
+
></tr>
|
|
213
|
+
|
|
214
|
+
<tr
|
|
215
|
+
[@rowsAnimation]=""
|
|
216
|
+
mat-row
|
|
217
|
+
[ngClass]="{ 'rxap-row-odd !bg-neutral-200 dark:!bg-neutral-600': odd, 'rxap-row-even': even }"
|
|
218
|
+
class="hover:!bg-neutral-400 dark:hover:!bg-neutral-800"
|
|
219
|
+
*matRowDef="
|
|
220
|
+
let element;
|
|
221
|
+
columns: rxapTableColumns.displayColumns;
|
|
222
|
+
let odd = odd;
|
|
223
|
+
let even = even
|
|
224
|
+
"
|
|
225
|
+
></tr>
|
|
226
|
+
</table>
|
|
227
|
+
</div>
|
|
228
|
+
</mat-card-content>
|
|
229
|
+
|
|
230
|
+
<mat-card-footer>
|
|
231
|
+
<mat-paginator
|
|
232
|
+
[ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
|
|
233
|
+
rxapPersistent
|
|
234
|
+
[pageSizeOptions]="[5,10,25,50,100]"
|
|
235
|
+
[pageSize]="10"
|
|
236
|
+
#paginator="matPaginator"
|
|
237
|
+
></mat-paginator>
|
|
238
|
+
</mat-card-footer>
|
|
239
|
+
</mat-card>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
@@ -11,6 +11,6 @@ export interface NormalizedTableComponentOptions extends Readonly<Normalized<Omi
|
|
|
11
11
|
readonly controllerName: string;
|
|
12
12
|
}
|
|
13
13
|
export declare function NormalizeTableComponentOptions(options: Readonly<TableComponentOptions>): NormalizedTableComponentOptions;
|
|
14
|
-
export declare function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList: ReadonlyArray<NormalizedTableColumn
|
|
14
|
+
export declare function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList: ReadonlyArray<Pick<NormalizedTableColumn, 'name' | 'type' | 'propertyPath'>>, propertyList?: ReadonlyArray<NormalizedDataProperty>): GetPageOperationProperty[];
|
|
15
15
|
export declare function TableColumnToFormControl(column: NormalizedTableColumn): FormDefinitionControl;
|
|
16
16
|
export default function (options: TableComponentOptions): () => Rule;
|
|
@@ -27,7 +27,7 @@ function NormalizeTableComponentOptions(options) {
|
|
|
27
27
|
return Object.freeze(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTableOptions));
|
|
28
28
|
}
|
|
29
29
|
exports.NormalizeTableComponentOptions = NormalizeTableComponentOptions;
|
|
30
|
-
function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList, propertyList) {
|
|
30
|
+
function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList, propertyList = []) {
|
|
31
31
|
const list = [];
|
|
32
32
|
for (const column of columnList) {
|
|
33
33
|
list.push({
|
|
@@ -37,7 +37,7 @@ function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
for (const property of propertyList) {
|
|
40
|
-
if (!list.find((p) => p.source === property.name)) {
|
|
40
|
+
if (!list.find((p) => p.source === property.name) && !list.find(p => p.name === property.name)) {
|
|
41
41
|
list.push({
|
|
42
42
|
name: property.name,
|
|
43
43
|
type: property.type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAcmC;AACnC,qEAIoC;AACpC,6CAGwB;AACxB,+CAIyB;AACzB,uCAIkB;AAClB,kEAIsC;AACtC,8DAA0D;AAC1D,gGAA8F;AAC9F,kGAMsD;AAEtD,8DAKoC;AACpC,0FAAoF;AAWpF,SAAgB,8BAA8B,CAC5C,OAAwC;IAExC,MAAM,sCAAsC,GAAG,IAAA,uEAAqC,EAAC,OAAO,EAAE,gCAAgB,CAAC,CAAC;IAChH,IAAA,kDAAgC,EAAC,sCAAsC,CAAC,CAAC;IACzE,MAAM,EACJ,IAAI,EACJ,OAAO,GACR,GAAG,sCAAsC,CAAC;IAC3C,MAAM,sBAAsB,GAAG,IAAA,qCAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,MAAM,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC;IAC3C,IAAI,OAAO,KAAK,4BAAY,CAAC,QAAQ,EAAE;QACrC,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;SAC7E;KACF;IACD,OAAO,MAAM,CAAC,MAAM,iCACf,sCAAsC,GACtC,sBAAsB,EACzB,CAAC;AACL,CAAC;AApBD,wEAoBC;AAED,SAAgB,4DAA4D,CAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-component/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAcmC;AACnC,qEAIoC;AACpC,6CAGwB;AACxB,+CAIyB;AACzB,uCAIkB;AAClB,kEAIsC;AACtC,8DAA0D;AAC1D,gGAA8F;AAC9F,kGAMsD;AAEtD,8DAKoC;AACpC,0FAAoF;AAWpF,SAAgB,8BAA8B,CAC5C,OAAwC;IAExC,MAAM,sCAAsC,GAAG,IAAA,uEAAqC,EAAC,OAAO,EAAE,gCAAgB,CAAC,CAAC;IAChH,IAAA,kDAAgC,EAAC,sCAAsC,CAAC,CAAC;IACzE,MAAM,EACJ,IAAI,EACJ,OAAO,GACR,GAAG,sCAAsC,CAAC;IAC3C,MAAM,sBAAsB,GAAG,IAAA,qCAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,MAAM,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC;IAC3C,IAAI,OAAO,KAAK,4BAAY,CAAC,QAAQ,EAAE;QACrC,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;SAC7E;KACF;IACD,OAA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CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAvBD,4BAuBC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-component-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../angular.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../table.schema.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"definitions": {
|
|
13
|
+
"type": {
|
|
14
|
+
"$ref": "../../type.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"property": {
|
|
17
|
+
"$ref": "../../property.schema.json"
|
|
18
|
+
},
|
|
19
|
+
"button": {
|
|
20
|
+
"$ref": "../../button.schema.json"
|
|
21
|
+
},
|
|
22
|
+
"upstream": {
|
|
23
|
+
"$ref": "../../upstream.schema.json"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-header-button-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../angular.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../header-button.schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"tableName": {
|
|
15
|
+
"alias": "table",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the table action"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"definitions": {
|
|
23
|
+
"type": {
|
|
24
|
+
"$ref": "../../type.schema.json"
|
|
25
|
+
},
|
|
26
|
+
"property": {
|
|
27
|
+
"$ref": "../../property.schema.json"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element"
|
|
6
|
+
mat-cell
|
|
7
|
+
{{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
|
|
8
|
+
[rxap-boolean-cell]="element?.{{column.propertyPath}}">
|
|
9
|
+
</td>
|
|
10
|
+
</ng-container>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element"
|
|
6
|
+
mat-cell
|
|
7
|
+
{{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
|
|
8
|
+
{{prefix}}-{{column.name}}-cell
|
|
9
|
+
[element]="element"
|
|
10
|
+
[value]="element?.{{column.propertyPath}}">
|
|
11
|
+
</td>
|
|
12
|
+
</ng-container>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element"
|
|
6
|
+
mat-cell
|
|
7
|
+
{{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
|
|
8
|
+
[rxap-copy-to-clipboard-cell]="element?.{{column.propertyPath}}">
|
|
9
|
+
</td>
|
|
10
|
+
</ng-container>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element"
|
|
6
|
+
mat-cell
|
|
7
|
+
{{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
|
|
8
|
+
format="{{column.format}}"
|
|
9
|
+
[rxap-date-cell]="element?.{{column.propertyPath}}">
|
|
10
|
+
</td>
|
|
11
|
+
</ng-container>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element" mat-cell{{#if column.cssClass}} class="{{column.cssClass}}"{{/if}}>
|
|
6
|
+
\{{ element?.{{column.propertyPath}}{{#each column.pipeList}} | {{this.name}}{{/each}} }}
|
|
7
|
+
</td>
|
|
8
|
+
</ng-container>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element"
|
|
6
|
+
mat-cell
|
|
7
|
+
{{#if column.cssClass}}class="{{column.cssClass}}"{{/if~}}
|
|
8
|
+
[rxap-icon-cell]="element?.{{column.propertyPath}}">
|
|
9
|
+
</td>
|
|
10
|
+
</ng-container>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<ng-container matColumnDef="{{column.name}}">
|
|
2
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
3
|
+
<ng-container i18n>{{column.title}}</ng-container>
|
|
4
|
+
</th>
|
|
5
|
+
<td *matCellDef="let element"
|
|
6
|
+
mat-cell
|
|
7
|
+
{{#if column.cssClass}}class="{{column.cssClass}}"{{/if}}
|
|
8
|
+
[rxap-link-cell]="element?.{{column.propertyPath}}">
|
|
9
|
+
</td>
|
|
10
|
+
</ng-container>
|