@rxap/schematic-angular 16.2.0-dev.14 → 16.2.0-dev.16

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +1 -1
  3. package/package.json +8 -8
  4. package/src/lib/accordion-identifier.d.ts +4 -0
  5. package/src/lib/accordion-identifier.js.map +1 -1
  6. package/src/lib/accordion-item.d.ts +13 -6
  7. package/src/lib/accordion-item.js +19 -4
  8. package/src/lib/accordion-item.js.map +1 -1
  9. package/src/lib/coerce-accordion-component.js +1 -1
  10. package/src/lib/coerce-accordion-component.js.map +1 -1
  11. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  12. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  13. package/src/lib/data-grid-options.d.ts +9 -1
  14. package/src/lib/data-grid-options.js +36 -6
  15. package/src/lib/data-grid-options.js.map +1 -1
  16. package/src/lib/form-control.d.ts +9 -3
  17. package/src/lib/form-control.js +19 -54
  18. package/src/lib/form-control.js.map +1 -1
  19. package/src/lib/merge-with-column-list.js +3 -1
  20. package/src/lib/merge-with-column-list.js.map +1 -1
  21. package/src/lib/minimum-table-component-options.js +2 -2
  22. package/src/lib/minimum-table-component-options.js.map +1 -1
  23. package/src/lib/pipe-option.js +0 -2
  24. package/src/lib/pipe-option.js.map +1 -1
  25. package/src/lib/table-column.d.ts +9 -5
  26. package/src/lib/table-column.js +36 -60
  27. package/src/lib/table-column.js.map +1 -1
  28. package/src/schema.json +2368 -0
  29. package/src/schematic-input.schema.json +607 -0
  30. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  31. package/src/schematics/accordion/accordion-component/index.js +51 -25
  32. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  33. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  34. package/src/schematics/accordion/accordion-component/schema.json +183 -360
  35. package/src/schematics/accordion/accordion-component/template.schema.json +22 -25
  36. package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
  37. package/src/schematics/accordion/accordion-item-component/index.js +70 -49
  38. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  39. package/src/schematics/accordion/accordion-item-component/schema.json +167 -336
  40. package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -15
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  42. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +21 -25
  43. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  44. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +331 -429
  45. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +9 -15
  46. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  47. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +14 -6
  48. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  49. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +174 -346
  50. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -15
  51. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  52. package/src/schematics/accordion/item/accordion-item-table-component/index.js +11 -13
  53. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  54. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +453 -614
  55. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +9 -18
  56. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  57. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +37 -61
  58. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  59. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +431 -592
  60. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +10 -19
  61. package/src/schematics/accordion-identifier.schema.json +25 -0
  62. package/src/schematics/accordion-item.schema.json +24 -0
  63. package/src/schematics/angular.schema.json +11 -3
  64. package/src/schematics/button.schema.json +1 -1
  65. package/src/schematics/data-grid-component/index.d.ts +2 -3
  66. package/src/schematics/data-grid-component/index.js +42 -45
  67. package/src/schematics/data-grid-component/index.js.map +1 -1
  68. package/src/schematics/data-grid-component/schema.json +261 -375
  69. package/src/schematics/data-grid-component/template.schema.json +6 -15
  70. package/src/schematics/data-grid-item.schema.json +4 -1
  71. package/src/schematics/data-grid.schema.json +26 -4
  72. package/src/schematics/dialog-component/schema.json +72 -158
  73. package/src/schematics/dialog-component/template.schema.json +3 -6
  74. package/src/schematics/form/control/input-form-control/schema.json +108 -306
  75. package/src/schematics/form/control/input-form-control/template.schema.json +6 -9
  76. package/src/schematics/form/control/select-form-control/schema.json +120 -307
  77. package/src/schematics/form/control/select-form-control/template.schema.json +6 -9
  78. package/src/schematics/form/control/table-select-form-control/index.d.ts +7 -1
  79. package/src/schematics/form/control/table-select-form-control/index.js +195 -149
  80. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  81. package/src/schematics/form/control/table-select-form-control/schema.json +101 -296
  82. package/src/schematics/form/control/table-select-form-control/template.schema.json +11 -6
  83. package/src/schematics/form/form-component/index.d.ts +2 -0
  84. package/src/schematics/form/form-component/index.js +6 -4
  85. package/src/schematics/form/form-component/index.js.map +1 -1
  86. package/src/schematics/form/form-component/schema.d.ts +3 -1
  87. package/src/schematics/form/form-component/schema.json +176 -233
  88. package/src/schematics/form/form-component/template.schema.json +6 -9
  89. package/src/schematics/form/form-control/schema.json +68 -176
  90. package/src/schematics/form/form-control/template.schema.json +6 -9
  91. package/src/schematics/form/form-definition/schema.json +125 -230
  92. package/src/schematics/form/form-definition/template.schema.json +6 -9
  93. package/src/schematics/form-component.schema.json +9 -3
  94. package/src/schematics/form-definition.schema.json +3 -3
  95. package/src/schematics/general.schema.json +1 -4
  96. package/src/schematics/input-form-control.schema.json +11 -3
  97. package/src/schematics/minimum-table.schema.json +11 -5
  98. package/src/schematics/pipe.schema.json +1 -1
  99. package/src/schematics/select-form-control.schema.json +15 -4
  100. package/src/schematics/table/action/dialog-table-action/schema.json +150 -230
  101. package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
  102. package/src/schematics/table/action/form-table-action/schema.json +317 -310
  103. package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
  104. package/src/schematics/table/action/navigation-table-action/schema.json +150 -230
  105. package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
  106. package/src/schematics/table/action/open-api-table-action/schema.json +150 -230
  107. package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
  108. package/src/schematics/table/action/operation-table-action/schema.json +138 -218
  109. package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
  110. package/src/schematics/table/header-button/form-table-header-button/schema.json +217 -261
  111. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -6
  112. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +131 -211
  113. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
  114. package/src/schematics/table/table-action/schema.json +56 -139
  115. package/src/schematics/table/table-action/template.schema.json +6 -6
  116. package/src/schematics/table/table-component/index.d.ts +10 -2
  117. package/src/schematics/table/table-component/index.js +13 -1
  118. package/src/schematics/table/table-component/index.js.map +1 -1
  119. package/src/schematics/table/table-component/schema.json +352 -547
  120. package/src/schematics/table/table-component/template.schema.json +6 -18
  121. package/src/schematics/table/table-header-button/schema.json +56 -139
  122. package/src/schematics/table/table-header-button/template.schema.json +6 -6
  123. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -0
  124. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  125. package/src/schematics/table/tree-table-component/index.js +11 -3
  126. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  127. package/src/schematics/table/tree-table-component/schema.json +352 -547
  128. package/src/schematics/table/tree-table-component/template.schema.json +6 -18
  129. package/src/schematics/table-column.schema.json +4 -1
  130. package/src/schematics/table.schema.json +4 -1
  131. package/src/schematics/tree-component/schema.json +70 -62
  132. package/src/schematics/tree-component/template.schema.json +7 -2
  133. package/src/schematics/tree-table.schema.json +3 -3
  134. package/src/schematics/value.schema.json +1 -1
  135. package/src/template.schema.json +173 -0
@@ -3,30 +3,18 @@
3
3
  "$id": "tree-table-component-schematic",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "../../angular.schema.json"
6
+ "$ref": "#/definitions/angular"
7
7
  },
8
8
  {
9
- "$ref": "../../tree-table.schema.json"
9
+ "$ref": "#/definitions/treeTable"
10
10
  }
11
11
  ],
12
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
- "pipe": {
26
- "$ref": "../../pipe.schema.json"
13
+ "angular": {
14
+ "$ref": "../../angular.schema.json"
27
15
  },
28
- "value": {
29
- "$ref": "../../value.schema.json"
16
+ "treeTable": {
17
+ "$ref": "../../tree-table.schema.json"
30
18
  }
31
19
  }
32
20
  }
@@ -55,13 +55,16 @@
55
55
  "type": "boolean"
56
56
  },
57
57
  "filterControl": {
58
- "$ref": "./form-control.schema.json"
58
+ "$ref": "#/definitions/formControl"
59
59
  }
60
60
  },
61
61
  "required": [
62
62
  "name"
63
63
  ],
64
64
  "definitions": {
65
+ "formControl": {
66
+ "$ref": "./form-control.schema.json"
67
+ },
65
68
  "type": {
66
69
  "$ref": "./type.schema.json"
67
70
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "table",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "./minimum-table.schema.json"
6
+ "$ref": "#/definitions/minimumTable"
7
7
  },
8
8
  {
9
9
  "type": "object",
@@ -49,6 +49,9 @@
49
49
  "definitions": {
50
50
  "type": {
51
51
  "$ref": "./type.schema.json"
52
+ },
53
+ "minimumTable": {
54
+ "$ref": "./minimum-table.schema.json"
52
55
  }
53
56
  }
54
57
  }
@@ -3,45 +3,36 @@
3
3
  "$id": "tree-component-schematic",
4
4
  "allOf": [
5
5
  {
6
+ "$ref": "#/definitions/angular"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "modifiers": {
12
+ "alias": "modifier",
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "navigation-back-header",
18
+ "without-title"
19
+ ]
20
+ },
21
+ "description": "The tree modifiers"
22
+ },
23
+ "fullTree": {
24
+ "type": "boolean",
25
+ "description": "Whether the tree should be a full tree",
26
+ "default": true
27
+ }
28
+ }
29
+ }
30
+ ],
31
+ "definitions": {
32
+ "angular": {
6
33
  "allOf": [
7
34
  {
8
- "type": "object",
9
- "properties": {
10
- "project": {
11
- "type": "string",
12
- "description": "Project name where the files should be generated"
13
- },
14
- "feature": {
15
- "type": "string",
16
- "description": "Feature name where the files should be generated"
17
- },
18
- "overwrite": {
19
- "anyOf": [
20
- {
21
- "type": "boolean"
22
- },
23
- {
24
- "type": "array",
25
- "items": {
26
- "type": "string"
27
- }
28
- }
29
- ],
30
- "description": "Overwrite existing files",
31
- "default": false
32
- },
33
- "overwriteHtml": {
34
- "type": "boolean",
35
- "default": false
36
- },
37
- "replace": {
38
- "type": "boolean",
39
- "default": false
40
- }
41
- },
42
- "required": [
43
- "project"
44
- ]
35
+ "$ref": "#/definitions/general"
45
36
  },
46
37
  {
47
38
  "type": "object",
@@ -64,15 +55,7 @@
64
55
  "type": "string"
65
56
  },
66
57
  "backend": {
67
- "type": "string",
68
- "description": "The backend that should be used to handel data",
69
- "enum": [
70
- "none",
71
- "nestjs",
72
- "open-api",
73
- "local"
74
- ],
75
- "default": "none"
58
+ "$ref": "#/definitions/backend"
76
59
  },
77
60
  "directory": {
78
61
  "type": "string",
@@ -97,27 +80,52 @@
97
80
  }
98
81
  ]
99
82
  },
100
- {
83
+ "backend": {
84
+ "type": "string",
85
+ "description": "The backend that should be used to handel data",
86
+ "enum": [
87
+ "none",
88
+ "nestjs",
89
+ "open-api",
90
+ "local"
91
+ ],
92
+ "default": "none"
93
+ },
94
+ "general": {
101
95
  "type": "object",
102
96
  "properties": {
103
- "modifiers": {
104
- "alias": "modifier",
105
- "type": "array",
106
- "items": {
107
- "type": "string",
108
- "enum": [
109
- "navigation-back-header",
110
- "without-title"
111
- ]
112
- },
113
- "description": "The tree modifiers"
97
+ "project": {
98
+ "type": "string",
99
+ "description": "Project name where the files should be generated"
114
100
  },
115
- "fullTree": {
101
+ "feature": {
102
+ "type": "string",
103
+ "description": "Feature name where the files should be generated"
104
+ },
105
+ "overwrite": {
106
+ "anyOf": [
107
+ {
108
+ "type": "boolean"
109
+ },
110
+ {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ }
115
+ }
116
+ ],
117
+ "description": "Overwrite existing files",
118
+ "default": false
119
+ },
120
+ "overwriteHtml": {
116
121
  "type": "boolean",
117
- "description": "Whether the tree should be a full tree",
118
- "default": true
122
+ "default": false
123
+ },
124
+ "replace": {
125
+ "type": "boolean",
126
+ "default": false
119
127
  }
120
128
  }
121
129
  }
122
- ]
130
+ }
123
131
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "tree-component-schematic",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "../angular.schema.json"
6
+ "$ref": "#/definitions/angular"
7
7
  },
8
8
  {
9
9
  "type": "object",
@@ -27,5 +27,10 @@
27
27
  }
28
28
  }
29
29
  }
30
- ]
30
+ ],
31
+ "definitions": {
32
+ "angular": {
33
+ "$ref": "../angular.schema.json"
34
+ }
35
+ }
31
36
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "tree-table",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "./minimum-table.schema.json"
6
+ "$ref": "#/definitions/minimumTable"
7
7
  },
8
8
  {
9
9
  "type": "object",
@@ -33,8 +33,8 @@
33
33
  "type": {
34
34
  "$ref": "./type.schema.json"
35
35
  },
36
- "property": {
37
- "$ref": "./property.schema.json"
36
+ "minimumTable": {
37
+ "ref": "./minimum-table.schema.json"
38
38
  }
39
39
  }
40
40
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "property",
3
+ "$id": "value",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "string"
@@ -0,0 +1,173 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "schematic-angular",
4
+ "oneOf": [
5
+ {
6
+ "type": "array",
7
+ "items": {
8
+ "$ref": "#/definitions/schematicInput"
9
+ }
10
+ },
11
+ {
12
+ "$ref": "#/definitions/schematicInput"
13
+ }
14
+ ],
15
+ "definitions": {
16
+ "tableComponentSchematic": {
17
+ "$ref": "schematics/table/table-component/template.schema.json"
18
+ },
19
+ "treeTableComponentSchematic": {
20
+ "$ref": "schematics/table/tree-table-component/template.schema.json"
21
+ },
22
+ "formComponentSchematic": {
23
+ "$ref": "schematics/form/form-component/template.schema.json"
24
+ },
25
+ "formDefinitionSchematic": {
26
+ "$ref": "schematics/form/form-definition/template.schema.json"
27
+ },
28
+ "tableActionSchematic": {
29
+ "$ref": "schematics/table/table-action/template.schema.json"
30
+ },
31
+ "tableHeaderButtonSchematic": {
32
+ "$ref": "schematics/table/table-header-button/template.schema.json"
33
+ },
34
+ "formTableHeaderButtonSchematic": {
35
+ "$ref": "schematics/table/header-button/form-table-header-button/template.schema.json"
36
+ },
37
+ "navigationTableHeaderButtonSchematic": {
38
+ "$ref": "schematics/table/header-button/navigation-table-header-button/template.schema.json"
39
+ },
40
+ "accordionComponentSchematic": {
41
+ "$ref": "schematics/accordion/accordion-component/template.schema.json"
42
+ },
43
+ "accordionItemComponentSchematic": {
44
+ "$ref": "schematics/accordion/accordion-item-component/template.schema.json"
45
+ },
46
+ "accordionItemTableComponentSchematic": {
47
+ "$ref": "schematics/accordion/item/accordion-item-table-component/template.schema.json"
48
+ },
49
+ "accordionItemSwitchComponentSchematic": {
50
+ "$ref": "schematics/accordion/item/accordion-item-switch-component/template.schema.json"
51
+ },
52
+ "dataGridComponentSchematic": {
53
+ "$ref": "schematics/data-grid-component/template.schema.json"
54
+ },
55
+ "dialogComponentSchematic": {
56
+ "$ref": "schematics/dialog-component/template.schema.json"
57
+ },
58
+ "inputFormControlSchematic": {
59
+ "$ref": "schematics/form/control/input-form-control/template.schema.json"
60
+ },
61
+ "selectFormControlSchematic": {
62
+ "$ref": "schematics/form/control/select-form-control/template.schema.json"
63
+ },
64
+ "tableSelectFormControlSchematic": {
65
+ "$ref": "schematics/form/control/table-select-form-control/template.schema.json"
66
+ },
67
+ "formControlSchematic": {
68
+ "$ref": "schematics/form/form-control/template.schema.json"
69
+ },
70
+ "dialogTableActionSchematic": {
71
+ "$ref": "schematics/table/action/dialog-table-action/template.schema.json"
72
+ },
73
+ "formTableActionSchematic": {
74
+ "$ref": "schematics/table/action/form-table-action/template.schema.json"
75
+ },
76
+ "navigationTableActionSchematic": {
77
+ "$ref": "schematics/table/action/navigation-table-action/template.schema.json"
78
+ },
79
+ "operationTableActionSchematic": {
80
+ "$ref": "schematics/table/action/operation-table-action/template.schema.json"
81
+ },
82
+ "openApiTableActionSchematic": {
83
+ "$ref": "schematics/table/action/open-api-table-action/template.schema.json"
84
+ },
85
+ "treeComponentSchematic": {
86
+ "$ref": "schematics/tree-component/template.schema.json"
87
+ },
88
+ "accordionItemDataGridComponentSchematic": {
89
+ "$ref": "schematics/accordion/item/accordion-item-data-grid-component/template.schema.json"
90
+ },
91
+ "accordionItemTreeTableComponentSchematic": {
92
+ "$ref": "schematics/accordion/item/accordion-item-tree-table-component/template.schema.json"
93
+ },
94
+ "accordionIdentifier": {
95
+ "$ref": "schematics/accordion-identifier.schema.json"
96
+ },
97
+ "accordionItem": {
98
+ "$ref": "schematics/accordion-item.schema.json"
99
+ },
100
+ "angular": {
101
+ "$ref": "schematics/angular.schema.json"
102
+ },
103
+ "backend": {
104
+ "$ref": "schematics/backend.schema.json"
105
+ },
106
+ "button": {
107
+ "$ref": "schematics/button.schema.json"
108
+ },
109
+ "dataGridItem": {
110
+ "$ref": "schematics/data-grid-item.schema.json"
111
+ },
112
+ "dataGrid": {
113
+ "$ref": "schematics/data-grid.schema.json"
114
+ },
115
+ "formComponent": {
116
+ "$ref": "schematics/form-component.schema.json"
117
+ },
118
+ "formControl": {
119
+ "$ref": "schematics/form-control.schema.json"
120
+ },
121
+ "formDefinition": {
122
+ "$ref": "schematics/form-definition.schema.json"
123
+ },
124
+ "formField": {
125
+ "$ref": "schematics/form-field.schema.json"
126
+ },
127
+ "general": {
128
+ "$ref": "schematics/general.schema.json"
129
+ },
130
+ "headerButton": {
131
+ "$ref": "schematics/header-button.schema.json"
132
+ },
133
+ "inputFormControl": {
134
+ "$ref": "schematics/input-form-control.schema.json"
135
+ },
136
+ "minimumTable": {
137
+ "$ref": "schematics/minimum-table.schema.json"
138
+ },
139
+ "pipe": {
140
+ "$ref": "schematics/pipe.schema.json"
141
+ },
142
+ "property": {
143
+ "$ref": "schematics/property.schema.json"
144
+ },
145
+ "selectFormControl": {
146
+ "$ref": "schematics/select-form-control.schema.json"
147
+ },
148
+ "tableAction": {
149
+ "$ref": "schematics/table-action.schema.json"
150
+ },
151
+ "tableColumn": {
152
+ "$ref": "schematics/table-column.schema.json"
153
+ },
154
+ "table": {
155
+ "$ref": "schematics/table.schema.json"
156
+ },
157
+ "treeTable": {
158
+ "$ref": "schematics/tree-table.schema.json"
159
+ },
160
+ "type": {
161
+ "$ref": "schematics/type.schema.json"
162
+ },
163
+ "upstream": {
164
+ "$ref": "schematics/upstream.schema.json"
165
+ },
166
+ "value": {
167
+ "$ref": "schematics/value.schema.json"
168
+ },
169
+ "schematicInput": {
170
+ "$ref": "./schematic-input.schema.json"
171
+ }
172
+ }
173
+ }