@pega/custom-dx-components 0.242.41 → 0.242.42
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/package.json +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +4 -3
- package/src/tasks/init/template/package.json.mustache +4 -4
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import {{COMPONENT_CLASS_NAME}} from './index';
|
|
|
6
6
|
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
|
|
7
7
|
import StatusWorkRenderer from './StatusWork';
|
|
8
8
|
import Operator from './Operator';
|
|
9
|
+
import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof {{COMPONENT_CLASS_NAME}}> = {
|
|
11
12
|
title: '{{COMPONENT_CLASS_NAME}}',
|
|
@@ -74,7 +75,7 @@ const renderField = (resolvedProps: any) => {
|
|
|
74
75
|
value={value}
|
|
75
76
|
variant='datetime'
|
|
76
77
|
format='long'
|
|
77
|
-
clockFormat={
|
|
78
|
+
clockFormat={undefined}
|
|
78
79
|
key={key}
|
|
79
80
|
/>
|
|
80
81
|
);
|
|
@@ -141,7 +142,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = (args: any) => {
|
|
|
141
142
|
getInheritedProps: () => {
|
|
142
143
|
return pyReviewRaw.config.inheritedProps;
|
|
143
144
|
},
|
|
144
|
-
createComponent: config => {
|
|
145
|
+
createComponent: (config: { config: { value: any; }; }) => {
|
|
145
146
|
// eslint-disable-next-line default-case
|
|
146
147
|
switch (config.config.value) {
|
|
147
148
|
case '@P .pyStatusWork':
|
|
@@ -184,7 +185,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = (args: any) => {
|
|
|
184
185
|
getRawMetadata: () => pyReviewRaw.children[0].children[index],
|
|
185
186
|
getConfigProps: () => {},
|
|
186
187
|
resolveConfigProps: () => regionChildrenResolved[index],
|
|
187
|
-
getComponent: config =>
|
|
188
|
+
getComponent: (config: any) =>
|
|
188
189
|
props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
|
|
189
190
|
})
|
|
190
191
|
};
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"author": "",
|
|
76
76
|
"license": "Enter License",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@pega/cosmos-react-condition-builder": "7.0.
|
|
79
|
-
"@pega/cosmos-react-core": "7.0.
|
|
80
|
-
"@pega/cosmos-react-work": "7.0.
|
|
78
|
+
"@pega/cosmos-react-condition-builder": "~7.0.6",
|
|
79
|
+
"@pega/cosmos-react-core": "~7.0.6",
|
|
80
|
+
"@pega/cosmos-react-work": "~7.0.6",
|
|
81
81
|
"@pega/eslint-config": "^0.10.2",
|
|
82
82
|
"@pega/tsconfig": "^0.10.2",
|
|
83
83
|
"babel-loader": "^9.1.3",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@pega/configs": "^0.6.0",
|
|
103
|
-
"@pega/custom-dx-components": "0.242.
|
|
103
|
+
"@pega/custom-dx-components": "0.242.42",
|
|
104
104
|
"@pega/pcore-pconnect-typedefs": "~3.0.0",
|
|
105
105
|
"@storybook/addon-actions": "^7.6.7",
|
|
106
106
|
"@storybook/addon-essentials": "^7.6.19",
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import PegaDxilMyDetails from './index';
|
|
|
6
6
|
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
|
|
7
7
|
import StatusWorkRenderer from './StatusWork';
|
|
8
8
|
import Operator from './Operator';
|
|
9
|
+
import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof PegaDxilMyDetails> = {
|
|
11
12
|
title: 'PegaDxilMyDetails',
|
|
@@ -74,7 +75,7 @@ const renderField = (resolvedProps: any) => {
|
|
|
74
75
|
value={value}
|
|
75
76
|
variant='datetime'
|
|
76
77
|
format='long'
|
|
77
|
-
clockFormat={
|
|
78
|
+
clockFormat={undefined}
|
|
78
79
|
key={key}
|
|
79
80
|
/>
|
|
80
81
|
);
|
|
@@ -141,7 +142,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
141
142
|
getInheritedProps: () => {
|
|
142
143
|
return pyReviewRaw.config.inheritedProps;
|
|
143
144
|
},
|
|
144
|
-
createComponent: config => {
|
|
145
|
+
createComponent: (config: { config: { value: any; }; }) => {
|
|
145
146
|
// eslint-disable-next-line default-case
|
|
146
147
|
switch (config.config.value) {
|
|
147
148
|
case '@P .pyStatusWork':
|
|
@@ -184,7 +185,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
184
185
|
getRawMetadata: () => pyReviewRaw.children[0].children[index],
|
|
185
186
|
getConfigProps: () => {},
|
|
186
187
|
resolveConfigProps: () => regionChildrenResolved[index],
|
|
187
|
-
getComponent: config =>
|
|
188
|
+
getComponent: (config: any) =>
|
|
188
189
|
props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
|
|
189
190
|
})
|
|
190
191
|
};
|
|
@@ -6,6 +6,7 @@ import PegaDxilMyDetails from './index';
|
|
|
6
6
|
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
|
|
7
7
|
import StatusWorkRenderer from './StatusWork';
|
|
8
8
|
import Operator from './Operator';
|
|
9
|
+
import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof PegaDxilMyDetails> = {
|
|
11
12
|
title: 'PegaDxilMyDetails',
|
|
@@ -74,7 +75,7 @@ const renderField = (resolvedProps: any) => {
|
|
|
74
75
|
value={value}
|
|
75
76
|
variant='datetime'
|
|
76
77
|
format='long'
|
|
77
|
-
clockFormat={
|
|
78
|
+
clockFormat={undefined}
|
|
78
79
|
key={key}
|
|
79
80
|
/>
|
|
80
81
|
);
|
|
@@ -141,7 +142,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
141
142
|
getInheritedProps: () => {
|
|
142
143
|
return pyReviewRaw.config.inheritedProps;
|
|
143
144
|
},
|
|
144
|
-
createComponent: config => {
|
|
145
|
+
createComponent: (config: { config: { value: any; }; }) => {
|
|
145
146
|
// eslint-disable-next-line default-case
|
|
146
147
|
switch (config.config.value) {
|
|
147
148
|
case '@P .pyStatusWork':
|
|
@@ -184,7 +185,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
184
185
|
getRawMetadata: () => pyReviewRaw.children[0].children[index],
|
|
185
186
|
getConfigProps: () => {},
|
|
186
187
|
resolveConfigProps: () => regionChildrenResolved[index],
|
|
187
|
-
getComponent: config =>
|
|
188
|
+
getComponent: (config: any) =>
|
|
188
189
|
props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
|
|
189
190
|
})
|
|
190
191
|
};
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import PegaDxilMyDetails from './index';
|
|
|
6
6
|
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
|
|
7
7
|
import StatusWorkRenderer from './StatusWork';
|
|
8
8
|
import Operator from './Operator';
|
|
9
|
+
import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof PegaDxilMyDetails> = {
|
|
11
12
|
title: 'PegaDxilMyDetails',
|
|
@@ -74,7 +75,7 @@ const renderField = (resolvedProps: any) => {
|
|
|
74
75
|
value={value}
|
|
75
76
|
variant='datetime'
|
|
76
77
|
format='long'
|
|
77
|
-
clockFormat={
|
|
78
|
+
clockFormat={undefined}
|
|
78
79
|
key={key}
|
|
79
80
|
/>
|
|
80
81
|
);
|
|
@@ -141,7 +142,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
141
142
|
getInheritedProps: () => {
|
|
142
143
|
return pyReviewRaw.config.inheritedProps;
|
|
143
144
|
},
|
|
144
|
-
createComponent: config => {
|
|
145
|
+
createComponent: (config: { config: { value: any; }; }) => {
|
|
145
146
|
// eslint-disable-next-line default-case
|
|
146
147
|
switch (config.config.value) {
|
|
147
148
|
case '@P .pyStatusWork':
|
|
@@ -184,7 +185,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
184
185
|
getRawMetadata: () => pyReviewRaw.children[0].children[index],
|
|
185
186
|
getConfigProps: () => {},
|
|
186
187
|
resolveConfigProps: () => regionChildrenResolved[index],
|
|
187
|
-
getComponent: config =>
|
|
188
|
+
getComponent: (config: any) =>
|
|
188
189
|
props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
|
|
189
190
|
})
|
|
190
191
|
};
|