@rxap/schematic-angular 16.2.0-dev.2 → 16.2.0-dev.20
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 +146 -0
- package/README.md +1 -1
- package/package.json +11 -9
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +9 -3
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-identifier.d.ts +4 -0
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +25 -17
- package/src/lib/accordion-item.js +72 -33
- 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 +7 -3
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-accordion-item-table-component.js +1 -1
- package/src/lib/coerce-accordion-item-table-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 +9 -3
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +16 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +46 -11
- package/src/lib/data-grid-item.js +80 -5
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-mode.d.ts +4 -0
- package/src/lib/data-grid-mode.js +9 -0
- package/src/lib/data-grid-mode.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +12 -5
- package/src/lib/data-grid-options.js +43 -13
- 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 +136 -0
- package/src/lib/form-control.js +265 -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 +4 -0
- package/src/lib/load-handlebars-template.js +28 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/merge-with-column-list.js +3 -1
- package/src/lib/merge-with-column-list.js.map +1 -1
- package/src/lib/minimum-table-component-options.d.ts +12 -2
- package/src/lib/minimum-table-component-options.js +14 -17
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +1 -1
- package/src/lib/minimum-table-options.js +2 -2
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/pipe-option.d.ts +11 -0
- package/src/lib/pipe-option.js +75 -0
- package/src/lib/pipe-option.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-column.d.ts +19 -9
- package/src/lib/table-column.js +132 -113
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +1 -1
- package/src/lib/tree-table-options.d.ts +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/lib/value-option.d.ts +12 -0
- package/src/lib/value-option.js +66 -0
- package/src/lib/value-option.js.map +1 -0
- package/src/schema.json +2368 -0
- package/src/schematic-input.schema.json +607 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
- package/src/schematics/accordion/accordion-component/index.js +56 -122
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
- package/src/schematics/accordion/accordion-component/schema.json +314 -132
- package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
- package/src/schematics/accordion/accordion-item-component/index.js +112 -86
- 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/schema.json +282 -70
- package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -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 +35 -51
- 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/schema.json +454 -85
- 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 +16 -8
- 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/schema.json +322 -190
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +81 -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 +16 -19
- 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/schema.json +615 -278
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +43 -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 +48 -84
- 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/schema.json +591 -271
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +43 -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-identifier.schema.json +25 -0
- package/src/schematics/accordion-item.schema.json +59 -0
- package/src/schematics/angular.schema.json +11 -11
- 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 +35 -0
- package/src/schematics/data-grid-component/index.d.ts +2 -4
- package/src/schematics/data-grid-component/index.js +83 -52
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +413 -141
- package/src/schematics/data-grid-component/template.schema.json +20 -0
- package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
- package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
- package/src/schematics/data-grid-item.schema.json +50 -0
- package/src/schematics/data-grid.schema.json +66 -0
- package/src/schematics/dialog-component/schema.json +141 -65
- package/src/schematics/dialog-component/template.schema.json +62 -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/schema.json +182 -105
- package/src/schematics/form/control/input-form-control/template.schema.json +20 -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 +194 -86
- package/src/schematics/form/control/select-form-control/template.schema.json +20 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +9 -5
- package/src/schematics/form/control/table-select-form-control/index.js +199 -143
- 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 +245 -100
- package/src/schematics/form/control/table-select-form-control/template.schema.json +83 -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 +2 -0
- package/src/schematics/form/form-component/index.js +22 -7
- 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 +275 -150
- package/src/schematics/form/form-component/template.schema.json +20 -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 +203 -75
- package/src/schematics/form/form-control/template.schema.json +34 -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.json +210 -127
- package/src/schematics/form/form-definition/template.schema.json +30 -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 +45 -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/general.schema.json +1 -4
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +55 -0
- package/src/schematics/minimum-table.schema.json +60 -0
- package/src/schematics/pipe.schema.json +38 -0
- package/src/schematics/property.schema.json +31 -0
- package/src/schematics/select-form-control.schema.json +64 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +209 -125
- package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
- package/src/schematics/table/action/form-table-action/schema.json +383 -153
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +187 -80
- package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +206 -97
- package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
- package/src/schematics/table/action/operation-table-action/schema.json +174 -84
- package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +272 -114
- 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 +167 -71
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
- package/src/schematics/table/table-action/schema.json +165 -78
- 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 -3
- package/src/schematics/table/table-component/index.js +14 -120
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +524 -277
- package/src/schematics/table/table-component/template.schema.json +20 -0
- package/src/schematics/table/table-header-button/schema.json +146 -64
- 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 +255 -0
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +28 -7
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +514 -260
- package/src/schematics/table/tree-table-component/template.schema.json +20 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +75 -0
- package/src/schematics/table.schema.json +57 -0
- package/src/schematics/templates/pipe.hbs +4 -0
- package/src/schematics/tree-component/schema.json +115 -70
- package/src/schematics/tree-component/template.schema.json +36 -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/schematics/value.schema.json +26 -0
- package/src/template.schema.json +173 -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/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/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
|
@@ -1,106 +1,251 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "table-select-form-control",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
"$id": "table-select-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/formControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"columnList": {
|
|
12
|
+
"alias": "column",
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"description": "table column name",
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "table column name"
|
|
21
|
+
},
|
|
22
|
+
"title": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "table column label"
|
|
25
|
+
},
|
|
26
|
+
"hasFilter": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Whether the column has a filter"
|
|
29
|
+
},
|
|
30
|
+
"kind": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The kind of data in the column"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"description": "List of table column names"
|
|
37
|
+
},
|
|
38
|
+
"title": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The title of the table select window"
|
|
41
|
+
},
|
|
42
|
+
"toDisplay": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"property": {
|
|
46
|
+
"$ref": "#/definitions/property"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"toValue": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"property": {
|
|
54
|
+
"$ref": "#/definitions/property"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"upstream": {
|
|
59
|
+
"$ref": "#/definitions/upstream"
|
|
60
|
+
},
|
|
61
|
+
"resolver": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"upstream": {
|
|
65
|
+
"$ref": "#/definitions/upstream"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"definitions": {
|
|
73
|
+
"formControl": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"name": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "The name of the control"
|
|
79
|
+
},
|
|
80
|
+
"type": {
|
|
81
|
+
"$ref": "#/definitions/type"
|
|
82
|
+
},
|
|
83
|
+
"isArray": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "Whether the control value is an array",
|
|
86
|
+
"default": false
|
|
87
|
+
},
|
|
88
|
+
"state": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "The initial state of the control"
|
|
91
|
+
},
|
|
92
|
+
"isRequired": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "Whether the control value is required",
|
|
95
|
+
"default": false
|
|
96
|
+
},
|
|
97
|
+
"isReadonly": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"description": "Whether the control value is readonly",
|
|
100
|
+
"default": false
|
|
101
|
+
},
|
|
102
|
+
"isDisabled": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Whether the control value is disabled",
|
|
105
|
+
"default": false
|
|
106
|
+
},
|
|
107
|
+
"validatorList": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"kind": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "The name of the template",
|
|
116
|
+
"enum": [
|
|
117
|
+
"default",
|
|
118
|
+
"input",
|
|
119
|
+
"select",
|
|
120
|
+
"checkbox",
|
|
121
|
+
"autocomplete-table-select",
|
|
122
|
+
"table-select",
|
|
123
|
+
"textarea",
|
|
124
|
+
"slide-toggle"
|
|
125
|
+
],
|
|
126
|
+
"default": "default"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"name"
|
|
30
131
|
],
|
|
31
|
-
"
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
132
|
+
"additionalProperties": true
|
|
133
|
+
},
|
|
134
|
+
"property": {
|
|
135
|
+
"oneOf": [
|
|
136
|
+
{
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"name": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"type": {
|
|
146
|
+
"$ref": "#/definitions/type"
|
|
147
|
+
},
|
|
148
|
+
"isArray": {
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"name"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"upstream": {
|
|
159
|
+
"oneOf": [
|
|
160
|
+
{
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"kind": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"enum": [
|
|
166
|
+
"open-api"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"operationId": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"scope": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"mapper": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"pageIndex": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"pageSize": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"sortBy": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"sortDirection": {
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"list": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"total": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"filter": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"eq": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
"join": {
|
|
203
|
+
"type": "string"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": [
|
|
211
|
+
"kind",
|
|
212
|
+
"operationId"
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
54
216
|
},
|
|
55
217
|
"type": {
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"alias": "column",
|
|
88
|
-
"type": "array",
|
|
89
|
-
"items": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"description": "table column name"
|
|
92
|
-
},
|
|
93
|
-
"description": "List of table column names"
|
|
94
|
-
},
|
|
95
|
-
"context": {
|
|
96
|
-
"type": "string",
|
|
97
|
-
"description": "The context use to generate proper names for class, files, etc"
|
|
218
|
+
"oneOf": [
|
|
219
|
+
{
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {
|
|
225
|
+
"name": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"isTypeOnly": {
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
|
+
"moduleSpecifier": {
|
|
232
|
+
"type": "string"
|
|
233
|
+
},
|
|
234
|
+
"namedImport": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"namespaceImport": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"defaultImport": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"name"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
]
|
|
98
249
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
"name",
|
|
102
|
-
"formName",
|
|
103
|
-
"project",
|
|
104
|
-
"feature"
|
|
105
|
-
]
|
|
106
|
-
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-select-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/formControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"columnList": {
|
|
12
|
+
"alias": "column",
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"description": "table column name",
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "table column name"
|
|
21
|
+
},
|
|
22
|
+
"title": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "table column label"
|
|
25
|
+
},
|
|
26
|
+
"hasFilter": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Whether the column has a filter"
|
|
29
|
+
},
|
|
30
|
+
"kind": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The kind of data in the column"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"description": "List of table column names"
|
|
37
|
+
},
|
|
38
|
+
"title": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The title of the table select window"
|
|
41
|
+
},
|
|
42
|
+
"toDisplay": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"property": {
|
|
46
|
+
"$ref": "#/definitions/property"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"toValue": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"property": {
|
|
54
|
+
"$ref": "#/definitions/property"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"upstream": {
|
|
59
|
+
"$ref": "#/definitions/upstream"
|
|
60
|
+
},
|
|
61
|
+
"resolver": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"upstream": {
|
|
65
|
+
"$ref": "#/definitions/upstream"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"definitions": {
|
|
73
|
+
"formControl": {
|
|
74
|
+
"$ref": "../../form-control/template.schema.json"
|
|
75
|
+
},
|
|
76
|
+
"property": {
|
|
77
|
+
"$ref": "../../../property.schema.json"
|
|
78
|
+
},
|
|
79
|
+
"upstream": {
|
|
80
|
+
"$ref": "../../../upstream.schema.json"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<form rxapForm>
|
|
2
|
-
|
|
2
|
+
{{#if window}}
|
|
3
3
|
<ng-template rxapFormWindowFooter let-windowRef>
|
|
4
4
|
<rxap-form-controls
|
|
5
5
|
(close)="windowRef.complete()"
|
|
6
6
|
(submitted)="windowRef.next($event)"
|
|
7
7
|
></rxap-form-controls>
|
|
8
8
|
</ng-template>
|
|
9
|
-
|
|
9
|
+
{{else}}
|
|
10
10
|
<rxap-form-controls></rxap-form-controls>
|
|
11
|
-
|
|
11
|
+
{{/if}}
|
|
12
12
|
</form>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
import { DtoClassProperty } from '@rxap/schematics-ts-morph';
|
|
3
3
|
import { Normalized } from '@rxap/utilities';
|
|
4
|
+
import { NormalizedAccordionIdentifier } from '../../../lib/accordion-identifier';
|
|
4
5
|
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
5
6
|
import { NormalizedFormComponentControl } from '../../../lib/form-component-control';
|
|
6
7
|
import { NormalizedMatFormFieldDefaultOptions } from '../../../lib/mat-form-field-default-options';
|
|
@@ -11,6 +12,7 @@ export interface NormalizedFormComponentOptions extends Omit<Readonly<Normalized
|
|
|
11
12
|
controlList: ReadonlyArray<NormalizedFormComponentControl>;
|
|
12
13
|
name: string;
|
|
13
14
|
matFormFieldDefaultOptions: NormalizedMatFormFieldDefaultOptions | null;
|
|
15
|
+
identifier: NormalizedAccordionIdentifier | null;
|
|
14
16
|
}
|
|
15
17
|
export declare function NormalizeFormComponentOptions(options: Readonly<FormComponentOptions>): Readonly<NormalizedFormComponentOptions>;
|
|
16
18
|
export declare function FormComponentControlToDtoClassProperty(control: NormalizedFormComponentControl): DtoClassProperty;
|
|
@@ -7,20 +7,25 @@ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
|
7
7
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
8
8
|
const utilities_1 = require("@rxap/utilities");
|
|
9
9
|
const path_1 = require("path");
|
|
10
|
+
const accordion_identifier_1 = require("../../../lib/accordion-identifier");
|
|
10
11
|
const angular_options_1 = require("../../../lib/angular-options");
|
|
11
12
|
const backend_types_1 = require("../../../lib/backend-types");
|
|
12
13
|
const coerce_form_component_1 = require("../../../lib/coerce-form-component");
|
|
13
14
|
const form_component_control_1 = require("../../../lib/form-component-control");
|
|
15
|
+
const load_handlebars_template_1 = require("../../../lib/load-handlebars-template");
|
|
14
16
|
const mat_form_field_default_options_1 = require("../../../lib/mat-form-field-default-options");
|
|
15
17
|
function NormalizeFormComponentOptions(options) {
|
|
16
18
|
var _a, _b, _c, _d;
|
|
17
19
|
const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
|
|
18
20
|
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
|
|
19
|
-
const { name, } = normalizedAngularOptions;
|
|
21
|
+
const { name, nestModule, } = normalizedAngularOptions;
|
|
20
22
|
const componentName = (0, schematics_utilities_1.CoerceSuffix)(name, '-form');
|
|
21
|
-
const controllerName = (_a = options.controllerName) !== null && _a !== void 0 ? _a :
|
|
23
|
+
const controllerName = (_a = options.controllerName) !== null && _a !== void 0 ? _a : (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
24
|
+
controllerName: componentName,
|
|
25
|
+
nestModule,
|
|
26
|
+
});
|
|
22
27
|
return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { window: (_b = options.window) !== null && _b !== void 0 ? _b : false, directory: (0, path_1.join)((_c = options.directory) !== null && _c !== void 0 ? _c : '', componentName), role: (_d = options.role) !== null && _d !== void 0 ? _d : null, componentName,
|
|
23
|
-
controllerName, controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(options.controlList), context: options.context ? (0, utilities_1.dasherize)(options.context) : null, matFormFieldDefaultOptions: (0, mat_form_field_default_options_1.NormalizeMatFormFieldDefaultOptions)(options.matFormFieldDefaultOptions) }));
|
|
28
|
+
controllerName, controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(options.controlList), context: options.context ? (0, utilities_1.dasherize)(options.context) : null, matFormFieldDefaultOptions: (0, mat_form_field_default_options_1.NormalizeMatFormFieldDefaultOptions)(options.matFormFieldDefaultOptions), identifier: (0, accordion_identifier_1.NormalizeAccordionIdentifier)(options.identifier) }));
|
|
24
29
|
}
|
|
25
30
|
exports.NormalizeFormComponentOptions = NormalizeFormComponentOptions;
|
|
26
31
|
function FormComponentControlToDtoClassProperty(control) {
|
|
@@ -42,6 +47,12 @@ function componentRule(normalizedOptions) {
|
|
|
42
47
|
name: componentName,
|
|
43
48
|
directory,
|
|
44
49
|
overwrite,
|
|
50
|
+
handlebars: {
|
|
51
|
+
partials: {
|
|
52
|
+
matFormField: (0, load_handlebars_template_1.LoadMatFormFieldHandlebarsTemplate)(),
|
|
53
|
+
pipe: (0, load_handlebars_template_1.LoadPipeHandlebarsTemplate)(),
|
|
54
|
+
}
|
|
55
|
+
},
|
|
45
56
|
template: {
|
|
46
57
|
options: Object.assign(Object.assign({}, normalizedOptions), { OperationIdToClassName: schematics_ts_morph_1.OperationIdToClassName,
|
|
47
58
|
OperationIdToClassImportPath: schematics_ts_morph_1.OperationIdToClassImportPath }),
|
|
@@ -50,7 +61,7 @@ function componentRule(normalizedOptions) {
|
|
|
50
61
|
]);
|
|
51
62
|
}
|
|
52
63
|
function formDefinitionRule(normalizedOptions) {
|
|
53
|
-
const { name, project, feature, directory, controlList, overwrite, } = normalizedOptions;
|
|
64
|
+
const { name, project, feature, directory, controlList, overwrite, backend, nestModule, controllerName, } = normalizedOptions;
|
|
54
65
|
return (0, schematics_1.chain)([
|
|
55
66
|
() => console.log(`Coerce form definition files`),
|
|
56
67
|
(0, schematics_utilities_1.ExecuteSchematic)('form-definition', {
|
|
@@ -60,6 +71,9 @@ function formDefinitionRule(normalizedOptions) {
|
|
|
60
71
|
feature,
|
|
61
72
|
controlList,
|
|
62
73
|
overwrite,
|
|
74
|
+
backend,
|
|
75
|
+
nestModule,
|
|
76
|
+
controllerName,
|
|
63
77
|
}),
|
|
64
78
|
]);
|
|
65
79
|
}
|
|
@@ -102,7 +116,7 @@ function formSubmitProviderRule(normalizedOptions) {
|
|
|
102
116
|
]);
|
|
103
117
|
}
|
|
104
118
|
function formSubmitBackendRule(normalizedOptions) {
|
|
105
|
-
const { backend, project, feature, controlList, controllerName, nestModule, shared, } = normalizedOptions;
|
|
119
|
+
const { backend, project, feature, controlList, controllerName, nestModule, shared, identifier, } = normalizedOptions;
|
|
106
120
|
switch (backend) {
|
|
107
121
|
case backend_types_1.BackendTypes.NESTJS:
|
|
108
122
|
return (0, schematics_1.chain)([
|
|
@@ -113,6 +127,7 @@ function formSubmitBackendRule(normalizedOptions) {
|
|
|
113
127
|
feature,
|
|
114
128
|
shared,
|
|
115
129
|
nestModule,
|
|
130
|
+
idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
|
|
116
131
|
propertyList: controlList.map(FormComponentControlToDtoClassProperty),
|
|
117
132
|
bodyDtoName: controllerName,
|
|
118
133
|
}),
|
|
@@ -148,12 +163,12 @@ function windowRule(normalizedOptions) {
|
|
|
148
163
|
return (0, schematics_1.noop)();
|
|
149
164
|
}
|
|
150
165
|
function getSubmitOperationId(normalizedOptions) {
|
|
151
|
-
const { project, feature, shared, controllerName, } = normalizedOptions;
|
|
166
|
+
const { project, feature, shared, controllerName, identifier, } = normalizedOptions;
|
|
152
167
|
return (0, schematics_ts_morph_1.buildOperationId)({
|
|
153
168
|
project,
|
|
154
169
|
feature,
|
|
155
170
|
shared,
|
|
156
|
-
}, 'submit', controllerName);
|
|
171
|
+
}, identifier ? 'submitById' : 'submit', controllerName);
|
|
157
172
|
}
|
|
158
173
|
function printFormComponentOptions(options) {
|
|
159
174
|
(0, angular_options_1.PrintAngularOptions)('form-component', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAUoC;AACpC,mEASmC;AACnC,qEAGoC;AACpC,+CAGyB;AACzB,+BAA4B;AAC5B,kEAKsC;AACtC,8DAA0D;AAC1D,8EAA6E;AAC7E,gFAG6C;AAC7C,gGAGqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAUoC;AACpC,mEASmC;AACnC,qEAGoC;AACpC,+CAGyB;AACzB,+BAA4B;AAC5B,4EAG2C;AAC3C,kEAKsC;AACtC,8DAA0D;AAC1D,8EAA6E;AAC7E,gFAG6C;AAC7C,oFAG+C;AAC/C,gGAGqD;AAcrD,SAAgB,6BAA6B,CAC3C,OAAuC;;IAEvC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EACJ,IAAI,EACJ,UAAU,GACX,GAAG,wBAAwB,CAAC;IAC7B,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,IAAA,6CAAuB,EAAC;QACvE,cAAc,EAAE,aAAa;QAC7B,UAAU;KACX,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MA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ACP,OAAO;QACP,MAAM;KACP,EACD,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EACpC,cAAc,CACf,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAAC,OAAuC;IACxE,IAAA,qCAAmB,EAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC/C,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE;QAC9B,OAAO,CAAC,GAAG,CAAC,iBAAkB,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAE,EAAE,CAAC,CAAC;KACrF;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KACnC;IACD,OAAO,CAAC,GAAG,CAAC,iCAAkC,OAAO,CAAC,MAAO,SAAS,CAAC,CAAC;AAC1E,CAAC;AAED,mBAAyB,OAA6B;IACpD,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACjE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IAC7C,OAAO;QACL,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC;YAC/E,aAAa,CAAC,iBAAiB,CAAC;YAChC,UAAU,CAAC,iBAAiB,CAAC;YAC7B,kBAAkB,CAAC,iBAAiB,CAAC;YACrC,cAAc,CAAC,iBAAiB,CAAC;YACjC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccordionIdentifier } from '../../../lib/accordion-identifier';
|
|
2
2
|
import { AngularOptions } from '../../../lib/angular-options';
|
|
3
|
+
import { FormComponentControl } from '../../../lib/form-component-control';
|
|
3
4
|
import { MatFormFieldDefaultOptions } from '../../../lib/mat-form-field-default-options';
|
|
4
5
|
|
|
5
6
|
export interface FormComponentOptions extends AngularOptions {
|
|
@@ -7,4 +8,5 @@ export interface FormComponentOptions extends AngularOptions {
|
|
|
7
8
|
controlList?: Array<FormComponentControl>;
|
|
8
9
|
role?: string;
|
|
9
10
|
matFormFieldDefaultOptions?: MatFormFieldDefaultOptions;
|
|
11
|
+
identifier?: AccordionIdentifier;
|
|
10
12
|
}
|