ng-alain 12.4.1 → 12.4.2

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainShell",
4
4
  "title": "Ng Alain Shell Options Schema",
5
5
  "type": "object",
package/curd/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainCURDComponent",
4
4
  "title": "Ng Alain CURD Component Options Schema",
5
5
  "type": "object",
@@ -7,7 +7,7 @@
7
7
  "path": {
8
8
  "type": "string",
9
9
  "format": "path",
10
- "description": "The path to create the component.",
10
+ "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
11
11
  "visible": false
12
12
  },
13
13
  "project": {
@@ -24,27 +24,37 @@
24
24
  "$source": "argv",
25
25
  "index": 0
26
26
  },
27
- "x-prompt": "What name would you like to use for the component:"
27
+ "x-prompt": "What name would you like to use for the component?"
28
+ },
29
+ "displayBlock": {
30
+ "description": "Specifies if the style will contain `:host { display: block; }`.",
31
+ "type": "boolean",
32
+ "default": false,
33
+ "alias": "b"
28
34
  },
29
35
  "inlineStyle": {
30
- "description": "Specifies if the style will be in the ts file.",
36
+ "description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
31
37
  "type": "boolean",
32
38
  "default": false,
33
- "alias": "s"
39
+ "alias": "s",
40
+ "x-user-analytics": 9
34
41
  },
35
42
  "inlineTemplate": {
36
- "description": "Specifies if the template will be in the ts file.",
43
+ "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
37
44
  "type": "boolean",
38
- "default": false
45
+ "default": false,
46
+ "alias": "t",
47
+ "x-user-analytics": 10
39
48
  },
40
49
  "viewEncapsulation": {
41
- "description": "Specifies the view encapsulation strategy.",
42
- "enum": ["Emulated", "Native", "None", "ShadowDom"],
50
+ "description": "The view encapsulation strategy to use in the new component.",
51
+ "enum": ["Emulated", "None", "ShadowDom"],
43
52
  "type": "string",
44
- "alias": "v"
53
+ "alias": "v",
54
+ "x-user-analytics": 11
45
55
  },
46
56
  "changeDetection": {
47
- "description": "Specifies the change detection strategy.",
57
+ "description": "The change detection strategy to use in the new component.",
48
58
  "enum": ["Default", "OnPush"],
49
59
  "type": "string",
50
60
  "default": "Default",
@@ -52,7 +62,7 @@
52
62
  },
53
63
  "prefix": {
54
64
  "type": "string",
55
- "description": "The prefix to apply to generated selectors.",
65
+ "description": "The prefix to apply to the generated component selector.",
56
66
  "alias": "p",
57
67
  "oneOf": [
58
68
  {
@@ -65,10 +75,10 @@
65
75
  ]
66
76
  },
67
77
  "style": {
68
- "description": "The file extension or preprocessor to use for style files.",
78
+ "description": "The file extension or preprocessor to use for style files, or 'none' to skip generating the style file.",
69
79
  "type": "string",
70
80
  "default": "css",
71
- "enum": ["css", "scss", "sass", "less", "styl"],
81
+ "enum": ["css", "scss", "sass", "less", "none"],
72
82
  "x-user-analytics": 5
73
83
  },
74
84
  "type": {
@@ -84,33 +94,30 @@
84
94
  },
85
95
  "flat": {
86
96
  "type": "boolean",
87
- "description": "Flag to indicate if a directory is created.",
97
+ "description": "Create the new files at the top level of the current project.",
88
98
  "default": false
89
99
  },
90
100
  "skipImport": {
91
101
  "type": "boolean",
92
- "description": "Flag to skip the module import.",
93
- "default": false
102
+ "description": "Do not import this component into the owning NgModule.",
103
+ "default": false,
104
+ "x-user-analytics": 18
94
105
  },
95
106
  "selector": {
96
107
  "type": "string",
97
108
  "format": "html-selector",
98
- "description": "The selector to use for the component."
99
- },
100
- "export": {
101
- "type": "boolean",
102
- "default": false,
103
- "description": "Specifies if declaring module exports the component."
109
+ "description": "The HTML selector to use for this component."
104
110
  },
105
- "entryComponent": {
111
+ "skipSelector": {
106
112
  "type": "boolean",
107
113
  "default": false,
108
- "description": "Specifies if the component is an entry component of declaring module."
114
+ "description": "Specifies if the component should have a selector or not."
109
115
  },
110
- "lintFix": {
116
+ "export": {
111
117
  "type": "boolean",
112
118
  "default": false,
113
- "description": "Specifies whether to apply lint fixes after generating the component."
119
+ "description": "The declaring NgModule exports this component.",
120
+ "x-user-analytics": 19
114
121
  },
115
122
  "withoutPrefix": {
116
123
  "type": "boolean",
@@ -21,11 +21,11 @@ Examples:
21
21
 
22
22
  ```bash
23
23
  # Generate a trade module
24
- ng g ng-alain:trade
24
+ ng g ng-alain:module trade
25
25
  # Generate a TradeListComponent List component under the trade module
26
26
  ng g ng-alain:list list -m=trade
27
27
  # Generate a ListComponent List component under the trade module
28
- ng g ng-alain:list list -m=trade -withoutModulePrefixInComponentName=true
28
+ ng g ng-alain:list list -m=trade --withoutModulePrefixInComponentName=true
29
29
  # Generate a TradeEditComponent Edit component under the trade module
30
30
  ng g ng-alain:edit edit -m=trade
31
31
  ```
@@ -34,11 +34,11 @@ ng g ng-alain:edit edit -m=trade
34
34
 
35
35
  | Option | Description |
36
36
  | ---- | --- |
37
- | `-m` | Allows specification of the declaring module. |
38
- | `-target` | Specifies relative path, could be set like `bus/list` |
39
- | `-modal` | Specifies using modal mode |
40
- | `-withoutPrefix` | Without prefix to selectors |
41
- | `-withoutModulePrefixInComponentName` | Without prefix to component name |
37
+ | `-m` or `--module` | Allows specification of the declaring module. |
38
+ | `-t` or `--target` | Specifies relative path, could be set like `bus/list` |
39
+ | `--modal` | Specifies using modal mode |
40
+ | `--withoutPrefix` | Without prefix to selectors |
41
+ | `--withoutModulePrefixInComponentName` | Without prefix to component name |
42
42
 
43
43
  ## Module
44
44
 
@@ -35,11 +35,11 @@ ng g ng-alain:[command name] [name] [options]
35
35
 
36
36
  ```bash
37
37
  # 生成一个 trade 模块
38
- ng g ng-alain:trade
38
+ ng g ng-alain:module trade
39
39
  # trade 模块下生成一个 TradeListComponent List组件
40
40
  ng g ng-alain:list list -m=trade
41
41
  # trade 模块下生成一个 ListComponent List组件
42
- ng g ng-alain:list list -m=trade -withoutModulePrefixInComponentName=true
42
+ ng g ng-alain:list list -m=trade --withoutModulePrefixInComponentName=true
43
43
  # trade 模块下生成一个 TradeEditComponent Edit组件
44
44
  ng g ng-alain:edit edit -m=trade
45
45
  ```
@@ -48,11 +48,11 @@ ng g ng-alain:edit edit -m=trade
48
48
 
49
49
  | 参数 | 描述 |
50
50
  | ---- | --- |
51
- | `-m` | 指定目标模块 |
52
- | `-target` | 指定目标路径,支持 `bus/list` 写法 |
53
- | `-modal` | 指定是否使用模态框 |
54
- | `-withoutPrefix` | 指定选择器名不加前缀 |
55
- | `-withoutModulePrefixInComponentName` | 组件名不加模块名前缀 |
51
+ | `-m` 或 `--module` | 指定目标模块 |
52
+ | `-t` 或 `--target` | 指定目标路径,支持 `bus/list` 写法 |
53
+ | `--modal` | 指定是否使用模态框 |
54
+ | `--withoutPrefix` | 指定选择器名不加前缀 |
55
+ | `--withoutModulePrefixInComponentName` | 组件名不加模块名前缀 |
56
56
 
57
57
  ## Module 模块
58
58
 
package/edit/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainEditComponent",
4
4
  "title": "Ng Alain Edit Component Options Schema",
5
5
  "type": "object",
@@ -44,6 +44,7 @@
44
44
  "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
45
45
  "type": "boolean",
46
46
  "default": false,
47
+ "alias": "t",
47
48
  "x-user-analytics": 10
48
49
  },
49
50
  "viewEncapsulation": {
@@ -119,12 +120,6 @@
119
120
  "description": "The declaring NgModule exports this component.",
120
121
  "x-user-analytics": 19
121
122
  },
122
- "lintFix": {
123
- "type": "boolean",
124
- "description": "Apply lint fixes after generating the component.",
125
- "x-user-analytics": 15,
126
- "x-deprecated": "Use \"ng lint --fix\" directly instead."
127
- },
128
123
  "withoutPrefix": {
129
124
  "type": "boolean",
130
125
  "description": "指定选择器名不加前缀 (Without prefix to selectors)",
package/empty/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainEmptyComponent",
4
4
  "title": "Ng Alain Empty Component Options Schema",
5
5
  "type": "object",
@@ -44,6 +44,7 @@
44
44
  "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
45
45
  "type": "boolean",
46
46
  "default": false,
47
+ "alias": "t",
47
48
  "x-user-analytics": 10
48
49
  },
49
50
  "viewEncapsulation": {
@@ -119,12 +120,6 @@
119
120
  "description": "The declaring NgModule exports this component.",
120
121
  "x-user-analytics": 19
121
122
  },
122
- "lintFix": {
123
- "type": "boolean",
124
- "description": "Apply lint fixes after generating the component.",
125
- "x-user-analytics": 15,
126
- "x-deprecated": "Use \"ng lint --fix\" directly instead."
127
- },
128
123
  "withoutPrefix": {
129
124
  "type": "boolean",
130
125
  "description": "指定选择器名不加前缀 (Without prefix to selectors)",
package/list/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainListComponent",
4
4
  "title": "Ng Alain List Component Options Schema",
5
5
  "type": "object",
@@ -44,6 +44,7 @@
44
44
  "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
45
45
  "type": "boolean",
46
46
  "default": false,
47
+ "alias": "t",
47
48
  "x-user-analytics": 10
48
49
  },
49
50
  "viewEncapsulation": {
@@ -119,12 +120,6 @@
119
120
  "description": "The declaring NgModule exports this component.",
120
121
  "x-user-analytics": 19
121
122
  },
122
- "lintFix": {
123
- "type": "boolean",
124
- "description": "Apply lint fixes after generating the component.",
125
- "x-user-analytics": 15,
126
- "x-deprecated": "Use \"ng lint --fix\" directly instead."
127
- },
128
123
  "withoutPrefix": {
129
124
  "type": "boolean",
130
125
  "description": "指定选择器名不加前缀 (Without prefix to selectors)",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainModule",
4
4
  "title": "Ng Alain Module Options Schema",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainAdd",
4
4
  "title": "NgAlain Add Options Schema",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgUpdateV12",
4
4
  "title": "Ng Alain Update V12",
5
5
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-alain",
3
- "version": "12.4.1",
3
+ "version": "12.4.2",
4
4
  "description": "Schematics specific to ng-alain",
5
5
  "author": "cipchk<cipchk@qq.com>",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainPlugin",
4
4
  "title": "NgAlain Plugin Options Schema",
5
5
  "type": "object",
package/sta/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainSTAComponent",
4
4
  "title": "Ng Alain Swagger To API Options Schema",
5
5
  "type": "object",
package/tpl/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainTplComponent",
4
4
  "title": "Ng Alain Tpl Options Schema",
5
5
  "type": "object",
@@ -23,7 +23,7 @@
23
23
  "description": "The name of the component.",
24
24
  "$default": {
25
25
  "$source": "argv",
26
- "index": 1
26
+ "index": 0
27
27
  },
28
28
  "x-prompt": "What name would you like to use for the component?"
29
29
  },
@@ -44,6 +44,7 @@
44
44
  "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
45
45
  "type": "boolean",
46
46
  "default": false,
47
+ "alias": "t",
47
48
  "x-user-analytics": 10
48
49
  },
49
50
  "viewEncapsulation": {
@@ -119,12 +120,6 @@
119
120
  "description": "The declaring NgModule exports this component.",
120
121
  "x-user-analytics": 19
121
122
  },
122
- "lintFix": {
123
- "type": "boolean",
124
- "description": "Apply lint fixes after generating the component.",
125
- "x-user-analytics": 15,
126
- "x-deprecated": "Use \"ng lint --fix\" directly instead."
127
- },
128
123
  "withoutPrefix": {
129
124
  "type": "boolean",
130
125
  "description": "指定选择器名不加前缀 (Without prefix to selectors)",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ZORROVERSION = exports.VERSION = void 0;
4
- exports.VERSION = '^12.4.1';
4
+ exports.VERSION = '^12.4.2';
5
5
  exports.ZORROVERSION = '^12.0.1';
6
6
  //# sourceMappingURL=lib-versions.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = '^12.4.1';
1
+ export const VERSION = '^12.4.2';
2
2
  export const ZORROVERSION = '^12.0.1';
package/view/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsNgAlainViewComponent",
4
4
  "title": "Ng Alain View Component Options Schema",
5
5
  "type": "object",
@@ -44,6 +44,7 @@
44
44
  "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
45
45
  "type": "boolean",
46
46
  "default": false,
47
+ "alias": "t",
47
48
  "x-user-analytics": 10
48
49
  },
49
50
  "viewEncapsulation": {
@@ -119,12 +120,6 @@
119
120
  "description": "The declaring NgModule exports this component.",
120
121
  "x-user-analytics": 19
121
122
  },
122
- "lintFix": {
123
- "type": "boolean",
124
- "description": "Apply lint fixes after generating the component.",
125
- "x-user-analytics": 15,
126
- "x-deprecated": "Use \"ng lint --fix\" directly instead."
127
- },
128
123
  "withoutPrefix": {
129
124
  "type": "boolean",
130
125
  "description": "组件名不加前缀 (Without prefix to selectors)",