@rxap/schematic-angular 16.1.0-dev.21 → 16.1.0-dev.23

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 CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [16.1.0-dev.23](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.1.0-dev.22...@rxap/schematic-angular@16.1.0-dev.23) (2023-10-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - schema ref urls ([dd1f3a0](https://gitlab.com/rxap/packages/commit/dd1f3a012bbba3f1725e2b41eda139fc18bd5f13))
11
+
12
+ # [16.1.0-dev.22](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.1.0-dev.21...@rxap/schematic-angular@16.1.0-dev.22) (2023-10-09)
13
+
14
+ ### Bug Fixes
15
+
16
+ - only set to unknown type if type property is empty or object ([44cd819](https://gitlab.com/rxap/packages/commit/44cd81935248d5941e55e6fbb4a983ccdbbd590c))
17
+
18
+ ### Features
19
+
20
+ - support overwrite array ([e528c87](https://gitlab.com/rxap/packages/commit/e528c87fd5fb49898583e0c08c191942e7e2f8e4))
21
+
6
22
  # [16.1.0-dev.21](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.1.0-dev.20...@rxap/schematic-angular@16.1.0-dev.21) (2023-10-08)
7
23
 
8
24
  ### Features
package/README.md CHANGED
@@ -17,5 +17,5 @@ yarn add @rxap/schematic-angular
17
17
  ```
18
18
  **Install peer dependencies:**
19
19
  ```bash
20
- yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.0.0-dev.25 @rxap/schematics-utilities@^16.0.0-dev.18 @rxap/utilities@^16.0.0-dev.19 ts-morph@^18.0.0 tslib@2.6.2
20
+ yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.0.0-dev.26 @rxap/schematics-utilities@^16.0.0-dev.19 @rxap/utilities@^16.0.0-dev.20 ts-morph@^18.0.0 tslib@2.6.2
21
21
  ```
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.1.0-dev.21",
2
+ "version": "16.1.0-dev.23",
3
3
  "name": "@rxap/schematic-angular",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "dependencies": {
@@ -11,9 +11,9 @@
11
11
  "peerDependencies": {
12
12
  "@angular-devkit/core": "^16.1.4",
13
13
  "@angular-devkit/schematics": "^16.1.4",
14
- "@rxap/schematics-ts-morph": "^16.0.0-dev.25",
15
- "@rxap/schematics-utilities": "^16.0.0-dev.18",
16
- "@rxap/utilities": "^16.0.0-dev.19",
14
+ "@rxap/schematics-ts-morph": "^16.0.0-dev.26",
15
+ "@rxap/schematics-utilities": "^16.0.0-dev.19",
16
+ "@rxap/utilities": "^16.0.0-dev.20",
17
17
  "ts-morph": "^18.0.0",
18
18
  "tslib": "2.6.2",
19
19
  "@rxap/node-utilities": "1.1.0-dev.13",
@@ -40,15 +40,15 @@
40
40
  "packageGroup": [
41
41
  {
42
42
  "package": "@rxap/schematics-ts-morph",
43
- "version": "16.0.0-dev.25"
43
+ "version": "16.0.0-dev.26"
44
44
  },
45
45
  {
46
46
  "package": "@rxap/schematics-utilities",
47
- "version": "16.0.0-dev.18"
47
+ "version": "16.0.0-dev.19"
48
48
  },
49
49
  {
50
50
  "package": "@rxap/utilities",
51
- "version": "16.0.0-dev.19"
51
+ "version": "16.0.0-dev.20"
52
52
  },
53
53
  {
54
54
  "package": "@rxap/workspace-utilities",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "schematics": "./collection.json",
69
69
  "type": "commonjs",
70
- "gitHead": "15fe3ac69ad4aaef7660cfeda6742975f5361221",
70
+ "gitHead": "d7f8090f3bee7b39568075dc787d0ade6916c5b6",
71
71
  "main": "./src/index.js",
72
72
  "types": "./src/index.d.ts"
73
73
  }
@@ -18,7 +18,9 @@ function NormalizeFormControlType(control) {
18
18
  case 'uuid':
19
19
  type = 'string';
20
20
  break;
21
- default:
21
+ case 'object':
22
+ case 'Object':
23
+ case '':
22
24
  type = 'unknown';
23
25
  break;
24
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"form-definition-control.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/form-definition-control.ts"],"names":[],"mappings":";;;AAIA,qEAAyE;AAezE,SAAgB,wBAAwB,CAAC,OAAgE;;IACvG,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACxB,IAAI,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAI,CAAC;IAClC,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACpC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3D,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,CAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAChE,QAAQ,IAAI,EAAE;gBACZ,KAAK,MAAM;oBACT,IAAI,GAAG,QAAQ,CAAC;oBAChB,MAAM;gBACR,KAAK,MAAM;oBACT,IAAI,GAAG,QAAQ,CAAC;oBAChB,MAAM;gBACR;oBACE,IAAI,GAAG,SAAS,CAAC;oBACjB,MAAM;aACT;SACF;KACF;IACD,IAAI,OAAO,EAAE;QACX,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,CAAC,SAAS,CAAC,CAAA,EAAE;YACzD,OAAO,CAAC,IAAI,CACV,+DAA+D,CAChE,CAAC;YACF,KAAK,GAAG,IAAI,CAAC;SACd;KACF;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,SAAS;QACvB,OAAO;QACP,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAlCD,4DAkCC;AAED,SAAgB,8BAA8B,CAC5C,OAAuC;IAEvC,MAAM,QAAQ,GAAG,IAAA,sDAA6B,EAAC,OAAO,CAAC,CAAC;IACxD,MAAM,EACJ,IAAI,EACJ,UAAU,EACV,aAAa,GACd,GAAG,QAAQ,CAAC;IACb,MAAM,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,GACR,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI;QACJ,IAAI;QACJ,OAAO;QACP,UAAU;QACV,KAAK;QACL,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAtBD,wEAsBC;AAED,SAAgB,kCAAkC,CAChD,WAAmD;;IAEnD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,GAAG,CAAC,8BAA8B,CAAC,mCAAI,EAAE,CAAC,CAAC;AAC7E,CAAC;AAJD,gFAIC"}
1
+ {"version":3,"file":"form-definition-control.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/form-definition-control.ts"],"names":[],"mappings":";;;AAIA,qEAAyE;AAezE,SAAgB,wBAAwB,CAAC,OAAgE;;IACvG,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACxB,IAAI,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAI,CAAC;IAClC,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACpC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G,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI;QACJ,IAAI;QACJ,OAAO;QACP,UAAU;QACV,KAAK;QACL,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAtBD,wEAsBC;AAED,SAAgB,kCAAkC,CAChD,WAAmD;;IAEnD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,GAAG,CAAC,8BAA8B,CAAC,mCAAI,EAAE,CAAC,CAAC;AAC7E,CAAC;AAJD,gFAIC"}
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "angular",
4
+ "allOf": [
5
+ {
6
+ "$ref": "https://unpkg.com/@rxap/schematic-angular@16.1.0-dev.23/src/schematics/general.schema.json"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "componentName": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "context": {
18
+ "type": "string",
19
+ "description": "The context use to generate proper names for class, files, etc"
20
+ },
21
+ "nestModule": {
22
+ "type": "string",
23
+ "description": "The module name for the table nest operations"
24
+ },
25
+ "controllerName": {
26
+ "type": "string"
27
+ },
28
+ "backend": {
29
+ "type": "string",
30
+ "description": "The backend that should be used to handel data",
31
+ "enum": [
32
+ "none",
33
+ "nestjs",
34
+ "open-api",
35
+ "local"
36
+ ],
37
+ "default": "none"
38
+ },
39
+ "directory": {
40
+ "type": "string",
41
+ "description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
42
+ },
43
+ "shared": {
44
+ "type": "boolean",
45
+ "description": "Whether the generated code is used across the project",
46
+ "default": false
47
+ },
48
+ "scope": {
49
+ "type": "string"
50
+ },
51
+ "prefix": {
52
+ "type": "string"
53
+ },
54
+ "openApi": {
55
+ "type": "object",
56
+ "additionalProperties": true
57
+ }
58
+ }
59
+ }
60
+ ]
61
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "general",
4
+ "type": "object",
5
+ "properties": {
6
+ "project": {
7
+ "type": "string",
8
+ "description": "Project name where the files should be generated"
9
+ },
10
+ "feature": {
11
+ "type": "string",
12
+ "description": "Feature name where the files should be generated"
13
+ },
14
+ "overwrite": {
15
+ "anyOf": [
16
+ {
17
+ "type": "boolean"
18
+ },
19
+ {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string"
23
+ }
24
+ }
25
+ ],
26
+ "description": "Overwrite existing files",
27
+ "default": false
28
+ },
29
+ "overwriteHtml": {
30
+ "type": "boolean",
31
+ "default": false
32
+ },
33
+ "replace": {
34
+ "type": "boolean",
35
+ "default": false
36
+ }
37
+ },
38
+ "required": [
39
+ "project"
40
+ ]
41
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/dialog-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAQmC;AACnC,+CAGyB;AACzB,+BAA4B;AAC5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA0E;AAC1E,uDAAmD;AACnD,sEAGmC;AAQnC,SAAgB,iCAAiC,CAC/C,OAAiC;;IAEjC,MAAM,UAAU,GAAG,MAAA,MAAA,OAAO,CAAC,UAAU,0CAAE,KAAK,EAAE,mCAAI,EAAE,CAAC;IACrD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3B,UAAU,CAAC,IAAI,CAAC;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;QACH,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;KACrC;IACD,OAAO,MAAM,CAAC,IAAI,iCACb,IAAA,6DAAoC,EAAC,OAAO,CAAC,KAChD,WAAW,EAAE,MAAA,OAAO,CAAC,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EAAE,iBAAkB,IAAK,EAAE;wBAC/B,SAAS,EAAE,CAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAE;qBACjC,CAAC;gBACJ,CAAC;aACF,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA7GD,4BA6GC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/dialog-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAQmC;AACnC,+CAGyB;AACzB,+BAA4B;AAC5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA0E;AAC1E,uDAAmD;AACnD,sEAGmC;AAQnC,SAAgB,iCAAiC,CAC/C,OAAiC;;IAEjC,MAAM,UAAU,GAAG,MAAA,MAAA,OAAO,CAAC,UAAU,0CAAE,KAAK,EAAE,mCAAI,EAAE,CAAC;IACrD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3B,UAAU,CAAC,IAAI,CAAC;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;QACH,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;KACrC;IACD,OAAO,MAAM,CAAC,IAAI,iCACb,IAAA,6DAAoC,EAAC,OAAO,CAAC,KAChD,WAAW,EAAE,MAAA,OAAO,CAAC,WAAW,mCAAI,KAAK,EACzC,UAAU,EAAE,IAAA,yCAAyB,EAAC,UAAU,CAAC,EACjD,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAA,kBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,EAC7C,SAAS,EAAE,MAAA,OAAO,CAAC,SAAS,mCAAI,KAAY,IAC5C,CAAC;AACL,CAAC;AAlBD,8EAkBC;AAED,SAAS,YAAY,CAAC,OAA2C;IAC/D,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
3
3
  "$id": "template-table-module",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "type": "string",
8
- "description": "The name of the table",
9
- "x-prompt": "Which name should the table module have?"
4
+ "allOf": [
5
+ {
6
+ "$ref": "https://unpkg.com/@rxap/schematic-angular@16.1.0-dev.23/src/schematics/angular.schema.json"
10
7
  },
11
- "project": {
12
- "type": "string",
13
- "description": "The target project where the table module should be added."
14
- },
15
- "feature": {
16
- "type": "string",
17
- "description": "The feature name where the table module should be added.",
18
- "x-prompt": "To which feature should the table module be added?"
19
- },
20
- "shared": {
21
- "type": "boolean",
22
- "description": "Whether the table is shared across applications",
23
- "default": false
24
- },
25
- "backend": {
26
- "type": "string",
27
- "description": "The backend that should be used to handel data",
28
- "enum": [
29
- "none",
30
- "local",
31
- "nestjs",
32
- "open-api"
33
- ],
34
- "default": "none"
35
- },
36
- "tableMethod": {
37
- "type": "object",
38
- "properties": {
39
- "className": {
40
- "type": "string",
41
- "description": "The name of the table method class"
42
- },
43
- "importPath": {
44
- "type": "string",
45
- "description": "The import path for the table method class"
46
- }
47
- }
48
- },
49
- "openApi": {
8
+ {
50
9
  "type": "object",
51
10
  "properties": {
52
- "operationId": {
11
+ "name": {
53
12
  "type": "string",
54
- "description": "The operationId for the open api operation"
13
+ "description": "The name of the table",
14
+ "x-prompt": "Which name should the table module have?"
55
15
  },
56
- "adapter": {
16
+ "tableMethod": {
57
17
  "type": "object",
58
18
  "properties": {
59
19
  "className": {
60
20
  "type": "string",
61
- "description": "The name of the open api adapter class"
21
+ "description": "The name of the table method class"
62
22
  },
63
23
  "importPath": {
64
24
  "type": "string",
65
- "description": "The import path for the open api adapter class"
25
+ "description": "The import path for the table method class"
66
26
  }
67
- },
68
- "required": [
69
- "className",
70
- "importPath"
71
- ]
72
- }
73
- },
74
- "required": [
75
- "operationId"
76
- ]
77
- },
78
- "modifiers": {
79
- "alias": "modifier",
80
- "type": "array",
81
- "items": {
82
- "type": "string",
83
- "enum": [
84
- "navigation-back-header",
85
- "without-title"
86
- ]
87
- },
88
- "description": "The table modifiers"
89
- },
90
- "headerButton": {
91
- "oneOf": [
92
- {
93
- "type": "string"
27
+ }
94
28
  },
95
- {
29
+ "openApi": {
96
30
  "type": "object",
97
31
  "properties": {
98
- "role": {
32
+ "operationId": {
99
33
  "type": "string",
100
- "enum": [
101
- "form",
102
- "navigation",
103
- "method"
104
- ]
105
- },
106
- "permission": {
107
- "type": "string"
108
- },
109
- "icon": {
110
- "type": "string"
34
+ "description": "The operationId for the open api operation"
111
35
  },
112
- "svgIcon": {
113
- "type": "string"
114
- },
115
- "options": {
36
+ "adapter": {
116
37
  "type": "object",
117
- "additionalProperties": true
38
+ "properties": {
39
+ "className": {
40
+ "type": "string",
41
+ "description": "The name of the open api adapter class"
42
+ },
43
+ "importPath": {
44
+ "type": "string",
45
+ "description": "The import path for the open api adapter class"
46
+ }
47
+ },
48
+ "required": [
49
+ "className",
50
+ "importPath"
51
+ ]
118
52
  }
119
53
  },
120
- "additionalProperties": true
121
- }
122
- ],
123
- "description": "The header button configuration"
124
- },
125
- "directory": {
126
- "type": "string",
127
- "description": "A directory name or absolute path for the table module. relative to the feature base path"
128
- },
129
- "nestModule": {
130
- "type": "string",
131
- "description": "The module name for the table nest operations"
132
- },
133
- "columnList": {
134
- "alias": "column",
135
- "type": "array",
136
- "items": {
137
- "oneOf": [
138
- {
139
- "type": "string"
54
+ "required": [
55
+ "operationId"
56
+ ]
57
+ },
58
+ "modifiers": {
59
+ "alias": "modifier",
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string",
63
+ "enum": [
64
+ "navigation-back-header",
65
+ "without-title"
66
+ ]
140
67
  },
141
- {
142
- "type": "object",
143
- "properties": {
144
- "name": {
145
- "type": "string"
146
- },
147
- "type": {
148
- "type": "string"
149
- },
150
- "modifiers": {
151
- "type": "array",
152
- "items": {
68
+ "description": "The table modifiers"
69
+ },
70
+ "headerButton": {
71
+ "oneOf": [
72
+ {
73
+ "type": "string"
74
+ },
75
+ {
76
+ "type": "object",
77
+ "properties": {
78
+ "role": {
79
+ "type": "string",
80
+ "enum": [
81
+ "form",
82
+ "navigation",
83
+ "method"
84
+ ]
85
+ },
86
+ "permission": {
87
+ "type": "string"
88
+ },
89
+ "icon": {
90
+ "type": "string"
91
+ },
92
+ "svgIcon": {
153
93
  "type": "string"
94
+ },
95
+ "options": {
96
+ "type": "object",
97
+ "additionalProperties": true
154
98
  }
155
99
  },
156
- "hasFilter": {
157
- "type": "boolean"
158
- },
159
- "title": {
160
- "type": "string"
161
- },
162
- "propertyPath": {
100
+ "additionalProperties": true
101
+ }
102
+ ],
103
+ "description": "The header button configuration"
104
+ },
105
+ "columnList": {
106
+ "alias": "column",
107
+ "type": "array",
108
+ "items": {
109
+ "oneOf": [
110
+ {
163
111
  "type": "string"
164
112
  },
165
- "hidden": {
166
- "type": "boolean"
167
- },
168
- "active": {
169
- "type": "boolean"
170
- },
171
- "inactive": {
172
- "type": "boolean"
173
- },
174
- "show": {
175
- "type": "boolean"
113
+ {
114
+ "type": "object",
115
+ "properties": {
116
+ "name": {
117
+ "type": "string"
118
+ },
119
+ "type": {
120
+ "type": "string"
121
+ },
122
+ "modifiers": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ "hasFilter": {
129
+ "type": "boolean"
130
+ },
131
+ "title": {
132
+ "type": "string"
133
+ },
134
+ "propertyPath": {
135
+ "type": "string"
136
+ },
137
+ "hidden": {
138
+ "type": "boolean"
139
+ },
140
+ "active": {
141
+ "type": "boolean"
142
+ },
143
+ "inactive": {
144
+ "type": "boolean"
145
+ },
146
+ "show": {
147
+ "type": "boolean"
148
+ }
149
+ },
150
+ "required": [
151
+ "name"
152
+ ]
176
153
  }
177
- },
178
- "required": [
179
- "name"
180
- ]
181
- }
182
- ],
183
- "description": "table column name"
184
- },
185
- "description": "List of table column names"
186
- },
187
- "actionList": {
188
- "alias": "action",
189
- "type": "array",
190
- "items": {
191
- "oneOf": [
192
- {
193
- "type": "string"
154
+ ],
155
+ "description": "table column name"
194
156
  },
195
- {
196
- "type": "object",
197
- "properties": {
198
- "type": {
199
- "type": "string"
200
- },
201
- "refresh": {
202
- "type": "boolean"
203
- },
204
- "confirm": {
205
- "type": "boolean"
206
- },
207
- "tooltip": {
208
- "type": "string"
209
- },
210
- "errorMessage": {
211
- "type": "string"
212
- },
213
- "successMessage": {
214
- "type": "string"
215
- },
216
- "priority": {
217
- "type": "number"
218
- },
219
- "checkFunction": {
220
- "type": "string"
221
- },
222
- "inHeader": {
223
- "type": "boolean"
224
- },
225
- "role": {
226
- "type": "string"
227
- },
228
- "icon": {
229
- "type": "string"
230
- },
231
- "svgIcon": {
232
- "type": "string"
233
- },
234
- "permission": {
157
+ "description": "List of table column names"
158
+ },
159
+ "actionList": {
160
+ "alias": "action",
161
+ "type": "array",
162
+ "items": {
163
+ "oneOf": [
164
+ {
235
165
  "type": "string"
236
166
  },
237
- "options": {
167
+ {
238
168
  "type": "object",
239
- "additionalProperties": true
169
+ "properties": {
170
+ "type": {
171
+ "type": "string"
172
+ },
173
+ "refresh": {
174
+ "type": "boolean"
175
+ },
176
+ "confirm": {
177
+ "type": "boolean"
178
+ },
179
+ "tooltip": {
180
+ "type": "string"
181
+ },
182
+ "errorMessage": {
183
+ "type": "string"
184
+ },
185
+ "successMessage": {
186
+ "type": "string"
187
+ },
188
+ "priority": {
189
+ "type": "number"
190
+ },
191
+ "checkFunction": {
192
+ "type": "string"
193
+ },
194
+ "inHeader": {
195
+ "type": "boolean"
196
+ },
197
+ "role": {
198
+ "type": "string"
199
+ },
200
+ "icon": {
201
+ "type": "string"
202
+ },
203
+ "svgIcon": {
204
+ "type": "string"
205
+ },
206
+ "permission": {
207
+ "type": "string"
208
+ },
209
+ "options": {
210
+ "type": "object",
211
+ "additionalProperties": true
212
+ }
213
+ },
214
+ "required": [
215
+ "type"
216
+ ]
240
217
  }
241
- },
242
- "required": [
243
- "type"
244
218
  ]
245
219
  }
246
- ]
247
- }
248
- },
249
- "overwrite": {
250
- "type": "boolean",
251
- "description": "Overwrite existing files",
252
- "default": false
253
- },
254
- "selectColumn": {
255
- "type": "boolean",
256
- "description": "Whether to add a select column to the table"
257
- },
258
- "context": {
259
- "type": "string",
260
- "description": "The context use to generate proper names for class, files, etc"
220
+ },
221
+ "selectColumn": {
222
+ "type": "boolean",
223
+ "description": "Whether to add a select column to the table"
224
+ }
225
+ },
226
+ "required": [
227
+ "name"
228
+ ]
261
229
  }
262
- },
263
- "required": [
264
- "name",
265
- "feature"
266
230
  ]
267
231
  }