@pega/dx-component-builder-sdk 0.1.22 → 0.1.24

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 (25) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +8 -2
  3. package/src/tasks/create/templates/Constellation/field/Text/config.json.mustache +14 -0
  4. package/src/tasks/create/templates/SDK-React/field/Boolean/config.json.mustache +14 -0
  5. package/src/tasks/create/templates/SDK-React/field/Date/config.json.mustache +14 -0
  6. package/src/tasks/create/templates/SDK-React/field/DateTime/config.json.mustache +14 -0
  7. package/src/tasks/create/templates/SDK-React/field/Decimal/config.json.mustache +14 -0
  8. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/config.json.mustache +14 -0
  9. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/config.json.mustache +14 -0
  10. package/src/tasks/create/templates/SDK-React/field/Integer/config.json.mustache +14 -0
  11. package/src/tasks/create/templates/SDK-React/field/Picklist/config.json.mustache +14 -0
  12. package/src/tasks/create/templates/SDK-React/field/Text/config.json.mustache +14 -0
  13. package/src/tasks/create/templates/SDK-React/field/Text-Email/config.json.mustache +14 -0
  14. package/src/tasks/create/templates/SDK-React/field/Text-Input/config.json.mustache +14 -0
  15. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/config.json.mustache +14 -0
  16. package/src/tasks/create/templates/SDK-React/field/Text-Phone/config.json.mustache +14 -0
  17. package/src/tasks/create/templates/SDK-React/field/TimeofDay/config.json.mustache +14 -0
  18. package/src/tasks/create/templates/SDK-React/template/DETAILS/demo.stories.jsx.mustache +509 -0
  19. package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.stories.js.mustache +34 -0
  20. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/demo.stories.jsx.mustache +1107 -0
  21. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/mock.stories.js.mustache +34 -0
  22. package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.jsx.mustache +200 -0
  23. package/src/tasks/index.js +1 -0
  24. package/src/tasks/override/index.js +4 -2
  25. package/src/tasks/override-all/index.js +218 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@
50
50
  "ts-loader": "^9.3.1",
51
51
  "typescript": "^4.8.3",
52
52
  "url-loader": "4.1.1",
53
- "webpack": "5.74.0"
53
+ "webpack": "^5.76.1"
54
54
  },
55
55
  "author": "Custom component dev",
56
56
  "license": "SEE LICENSE IN LICENSE",
package/src/cli.js CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  listComponents,
13
13
  mapAllComponents,
14
14
  overrideComponent,
15
+ overrideAllComponents,
15
16
  publishComponent,
16
17
  publishAllComponents,
17
18
  updateComponent,
@@ -22,11 +23,12 @@ import {
22
23
  const TASKS = {
23
24
  CREATE: 'create',
24
25
  OVERRIDE: 'override',
26
+ OVERRIDE_ALL: 'overrideAll',
25
27
  BUILD: 'buildComponent',
26
28
  BUILD_ALL: 'buildAllComponents',
27
29
  MAP_ALL: "mapAll",
28
30
  PUBLISH: 'publish',
29
- PUBLISH_All: 'publishAll',
31
+ PUBLISH_ALL: 'publishAll',
30
32
  LIST: 'list',
31
33
  VALIDATE_SCHEMA: 'validateSchema',
32
34
  UPDATE: 'update',
@@ -68,6 +70,10 @@ export default async (args = []) => {
68
70
  overrideComponent(options);
69
71
  break;
70
72
  }
73
+ case TASKS.OVERRIDE_ALL: {
74
+ overrideAllComponents(options);
75
+ break;
76
+ }
71
77
  case TASKS.MAP_ALL: {
72
78
  mapAllComponents(options);
73
79
  break;
@@ -76,7 +82,7 @@ export default async (args = []) => {
76
82
  publishComponent(options);
77
83
  break;
78
84
  }
79
- case TASKS.PUBLISH_All: {
85
+ case TASKS.PUBLISH_A: {
80
86
  publishAllComponents(options);
81
87
  break;
82
88
  }
@@ -37,6 +37,20 @@
37
37
  "name": "required",
38
38
  "label": "Required",
39
39
  "format": "REQUIRED"
40
+ },
41
+ {
42
+ "label": "Advanced",
43
+ "format": "GROUP",
44
+ "collapsible": true,
45
+ "properties": [
46
+ {
47
+ "name": "testId",
48
+ "label": "Test ID",
49
+ "format": "TEXT",
50
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
51
+ "includeAnnotations": false
52
+ }
53
+ ]
40
54
  }
41
55
  ],
42
56
  "defaultConfig": {
@@ -65,6 +65,20 @@
65
65
  "format": "VISIBILITY"
66
66
  }
67
67
  ]
68
+ },
69
+ {
70
+ "label": "Advanced",
71
+ "format": "GROUP",
72
+ "collapsible": true,
73
+ "properties": [
74
+ {
75
+ "name": "testId",
76
+ "label": "Test ID",
77
+ "format": "TEXT",
78
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
79
+ "includeAnnotations": false
80
+ }
81
+ ]
68
82
  }
69
83
  ],
70
84
  "defaultConfig": {
@@ -125,6 +125,20 @@
125
125
  "format": "VISIBILITY"
126
126
  }
127
127
  ]
128
+ },
129
+ {
130
+ "label": "Advanced",
131
+ "format": "GROUP",
132
+ "collapsible": true,
133
+ "properties": [
134
+ {
135
+ "name": "testId",
136
+ "label": "Test ID",
137
+ "format": "TEXT",
138
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
139
+ "includeAnnotations": false
140
+ }
141
+ ]
128
142
  }
129
143
  ],
130
144
  "defaultConfig": {
@@ -182,6 +182,20 @@
182
182
  "format": "VISIBILITY"
183
183
  }
184
184
  ]
185
+ },
186
+ {
187
+ "label": "Advanced",
188
+ "format": "GROUP",
189
+ "collapsible": true,
190
+ "properties": [
191
+ {
192
+ "name": "testId",
193
+ "label": "Test ID",
194
+ "format": "TEXT",
195
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
196
+ "includeAnnotations": false
197
+ }
198
+ ]
185
199
  }
186
200
  ],
187
201
  "defaultConfig": {
@@ -72,6 +72,20 @@
72
72
  "format": "VISIBILITY"
73
73
  }
74
74
  ]
75
+ },
76
+ {
77
+ "label": "Advanced",
78
+ "format": "GROUP",
79
+ "collapsible": true,
80
+ "properties": [
81
+ {
82
+ "name": "testId",
83
+ "label": "Test ID",
84
+ "format": "TEXT",
85
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
86
+ "includeAnnotations": false
87
+ }
88
+ ]
75
89
  }
76
90
  ],
77
91
  "defaultConfig": {
@@ -103,6 +103,20 @@
103
103
  "format": "VISIBILITY"
104
104
  }
105
105
  ]
106
+ },
107
+ {
108
+ "label": "Advanced",
109
+ "format": "GROUP",
110
+ "collapsible": true,
111
+ "properties": [
112
+ {
113
+ "name": "testId",
114
+ "label": "Test ID",
115
+ "format": "TEXT",
116
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
117
+ "includeAnnotations": false
118
+ }
119
+ ]
106
120
  }
107
121
  ],
108
122
  "defaultConfig": {
@@ -72,6 +72,20 @@
72
72
  "format": "VISIBILITY"
73
73
  }
74
74
  ]
75
+ },
76
+ {
77
+ "label": "Advanced",
78
+ "format": "GROUP",
79
+ "collapsible": true,
80
+ "properties": [
81
+ {
82
+ "name": "testId",
83
+ "label": "Test ID",
84
+ "format": "TEXT",
85
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
86
+ "includeAnnotations": false
87
+ }
88
+ ]
75
89
  }
76
90
  ],
77
91
  "defaultConfig": {
@@ -66,6 +66,20 @@
66
66
  "format": "VISIBILITY"
67
67
  }
68
68
  ]
69
+ },
70
+ {
71
+ "label": "Advanced",
72
+ "format": "GROUP",
73
+ "collapsible": true,
74
+ "properties": [
75
+ {
76
+ "name": "testId",
77
+ "label": "Test ID",
78
+ "format": "TEXT",
79
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
80
+ "includeAnnotations": false
81
+ }
82
+ ]
69
83
  }
70
84
  ],
71
85
  "defaultConfig": {
@@ -61,6 +61,20 @@
61
61
  "format": "VISIBILITY"
62
62
  }
63
63
  ]
64
+ },
65
+ {
66
+ "label": "Advanced",
67
+ "format": "GROUP",
68
+ "collapsible": true,
69
+ "properties": [
70
+ {
71
+ "name": "testId",
72
+ "label": "Test ID",
73
+ "format": "TEXT",
74
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
75
+ "includeAnnotations": false
76
+ }
77
+ ]
64
78
  }
65
79
  ],
66
80
  "defaultConfig": {
@@ -61,6 +61,20 @@
61
61
  "format": "VISIBILITY"
62
62
  }
63
63
  ]
64
+ },
65
+ {
66
+ "label": "Advanced",
67
+ "format": "GROUP",
68
+ "collapsible": true,
69
+ "properties": [
70
+ {
71
+ "name": "testId",
72
+ "label": "Test ID",
73
+ "format": "TEXT",
74
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
75
+ "includeAnnotations": false
76
+ }
77
+ ]
64
78
  }
65
79
  ],
66
80
  "defaultConfig": {
@@ -61,6 +61,20 @@
61
61
  "format": "VISIBILITY"
62
62
  }
63
63
  ]
64
+ },
65
+ {
66
+ "label": "Advanced",
67
+ "format": "GROUP",
68
+ "collapsible": true,
69
+ "properties": [
70
+ {
71
+ "name": "testId",
72
+ "label": "Test ID",
73
+ "format": "TEXT",
74
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
75
+ "includeAnnotations": false
76
+ }
77
+ ]
64
78
  }
65
79
  ],
66
80
  "defaultConfig": {
@@ -61,6 +61,20 @@
61
61
  "format": "VISIBILITY"
62
62
  }
63
63
  ]
64
+ },
65
+ {
66
+ "label": "Advanced",
67
+ "format": "GROUP",
68
+ "collapsible": true,
69
+ "properties": [
70
+ {
71
+ "name": "testId",
72
+ "label": "Test ID",
73
+ "format": "TEXT",
74
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
75
+ "includeAnnotations": false
76
+ }
77
+ ]
64
78
  }
65
79
  ],
66
80
  "defaultConfig": {
@@ -61,6 +61,20 @@
61
61
  "format": "VISIBILITY"
62
62
  }
63
63
  ]
64
+ },
65
+ {
66
+ "label": "Advanced",
67
+ "format": "GROUP",
68
+ "collapsible": true,
69
+ "properties": [
70
+ {
71
+ "name": "testId",
72
+ "label": "Test ID",
73
+ "format": "TEXT",
74
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
75
+ "includeAnnotations": false
76
+ }
77
+ ]
64
78
  }
65
79
  ],
66
80
  "defaultConfig": {
@@ -67,6 +67,20 @@
67
67
  "format": "VISIBILITY"
68
68
  }
69
69
  ]
70
+ },
71
+ {
72
+ "label": "Advanced",
73
+ "format": "GROUP",
74
+ "collapsible": true,
75
+ "properties": [
76
+ {
77
+ "name": "testId",
78
+ "label": "Test ID",
79
+ "format": "TEXT",
80
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
81
+ "includeAnnotations": false
82
+ }
83
+ ]
70
84
  }
71
85
  ],
72
86
  "defaultConfig": {
@@ -113,6 +113,20 @@
113
113
  "format": "VISIBILITY"
114
114
  }
115
115
  ]
116
+ },
117
+ {
118
+ "label": "Advanced",
119
+ "format": "GROUP",
120
+ "collapsible": true,
121
+ "properties": [
122
+ {
123
+ "name": "testId",
124
+ "label": "Test ID",
125
+ "format": "TEXT",
126
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
127
+ "includeAnnotations": false
128
+ }
129
+ ]
116
130
  }
117
131
  ],
118
132
  "defaultConfig": {