@pega/custom-dx-components 2.0.13 → 2.0.15
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/README.md +3 -3
- package/package.json +2 -10
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache +8 -2
- package/src/tasks/init/template/package.json.mustache +1 -1
- package/src/tasks/init/template/tasks.config.json +1 -0
package/README.md
CHANGED
|
@@ -8,13 +8,13 @@ This project provides you with an environment to extend Constellation by giving
|
|
|
8
8
|
|
|
9
9
|
Ensure you have access to the following in your system:
|
|
10
10
|
|
|
11
|
-
- Pega Infinity Server version 8.
|
|
11
|
+
- Pega Infinity Server version 8.8 or later
|
|
12
12
|
|
|
13
13
|
- Git version 2.30 or later
|
|
14
14
|
|
|
15
|
-
- System node version
|
|
15
|
+
- System node version 18
|
|
16
16
|
|
|
17
|
-
- System npm version
|
|
17
|
+
- System npm version 8
|
|
18
18
|
|
|
19
19
|
## Initialize a project
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/custom-dx-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "Utility for building custom UI components",
|
|
5
5
|
"bin": "./bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"css-loader": "6.7.1",
|
|
27
27
|
"css-minimizer-webpack-plugin": "^4.1.0",
|
|
28
28
|
"execa": "^6.1.0",
|
|
29
|
+
"eslint": "^8.4.1",
|
|
29
30
|
"file-loader": "6.2.0",
|
|
30
31
|
"fs-extra": "^10.1.0",
|
|
31
32
|
"gitignore": "^0.7.0",
|
|
@@ -61,15 +62,6 @@
|
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@pega/configs": "^0.3.3",
|
|
63
64
|
"cspell": "^6.9.0",
|
|
64
|
-
"eslint": "^8.4.1",
|
|
65
|
-
"eslint-plugin-import": "^2.25.3",
|
|
66
|
-
"eslint-plugin-jest": "^25.3.0",
|
|
67
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
68
|
-
"eslint-plugin-mdx": "^2.0.5",
|
|
69
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
70
|
-
"eslint-plugin-react": "^7.27.1",
|
|
71
|
-
"eslint-plugin-react-hooks": "^4.3.0",
|
|
72
|
-
"eslint-plugin-sonarjs": "^0.11.0",
|
|
73
65
|
"prettier": "2.7.1"
|
|
74
66
|
}
|
|
75
67
|
}
|
package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache
CHANGED
|
@@ -2,7 +2,7 @@ import { withKnobs } from '@storybook/addon-knobs';
|
|
|
2
2
|
|
|
3
3
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
4
|
|
|
5
|
-
import { stateProps, configProps } from './mock.stories';
|
|
5
|
+
import { stateProps, configProps, fieldMetadata } from './mock.stories';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: '{{COMPONENT_CLASS_NAME}}',
|
|
@@ -135,8 +135,8 @@ export const pyReviewResolved = {
|
|
|
135
135
|
config: {
|
|
136
136
|
label: 'Create Operator',
|
|
137
137
|
value: {
|
|
138
|
-
userId: '
|
|
139
|
-
userName: '
|
|
138
|
+
userId: 'conns',
|
|
139
|
+
userName: 'Sara Connor'
|
|
140
140
|
},
|
|
141
141
|
placeholder: 'Select...',
|
|
142
142
|
displayMode: 'STACKED_LARGE_VAL'
|
package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache
CHANGED
|
@@ -171,8 +171,8 @@ export const pyReviewResolved = {
|
|
|
171
171
|
config: {
|
|
172
172
|
label: 'Create Operator',
|
|
173
173
|
value: {
|
|
174
|
-
userId: '
|
|
175
|
-
userName: '
|
|
174
|
+
userId: 'conns',
|
|
175
|
+
userName: 'Sara Connor'
|
|
176
176
|
},
|
|
177
177
|
placeholder: 'Select...',
|
|
178
178
|
displayMode: 'STACKED_LARGE_VAL'
|
package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache
CHANGED
|
@@ -15,8 +15,16 @@ const Template = args => {
|
|
|
15
15
|
const regionAChildren = pyReviewRaw.children[0].children.map(child => {
|
|
16
16
|
return Primary.args.getPConnect().createComponent(child);
|
|
17
17
|
});
|
|
18
|
+
const regionBChildren = pyReviewRaw.children[1].children.map(child => {
|
|
19
|
+
return Primary.args.getPConnect().createComponent(child);
|
|
20
|
+
});
|
|
18
21
|
|
|
19
|
-
return
|
|
22
|
+
return (
|
|
23
|
+
<{{COMPONENT_CLASS_NAME}} {...args}>
|
|
24
|
+
{regionAChildren}
|
|
25
|
+
{regionBChildren}
|
|
26
|
+
</{{COMPONENT_CLASS_NAME}}>
|
|
27
|
+
);
|
|
20
28
|
};
|
|
21
29
|
|
|
22
30
|
export const Primary = Template.bind({});
|
package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache
CHANGED
|
@@ -9,7 +9,7 @@ export const pyReviewRaw = {
|
|
|
9
9
|
},
|
|
10
10
|
children: [
|
|
11
11
|
{
|
|
12
|
-
name: '
|
|
12
|
+
name: 'A',
|
|
13
13
|
type: 'Region',
|
|
14
14
|
children: [
|
|
15
15
|
{
|
|
@@ -32,7 +32,13 @@ export const pyReviewRaw = {
|
|
|
32
32
|
value: '@P .LastName',
|
|
33
33
|
label: '@L Last Name'
|
|
34
34
|
}
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'B',
|
|
40
|
+
type: 'Region',
|
|
41
|
+
children: [
|
|
36
42
|
{
|
|
37
43
|
type: 'Email',
|
|
38
44
|
config: {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@pega/configs": "^0.3.4",
|
|
58
|
-
"@pega/custom-dx-components": "^2.0.
|
|
58
|
+
"@pega/custom-dx-components": "^2.0.15",
|
|
59
59
|
"@pega/eslint-config": "^0.3.2",
|
|
60
60
|
"@storybook/addon-actions": "^6.5.12",
|
|
61
61
|
"@storybook/addon-essentials": "^6.5.12",
|