@pega/custom-dx-components 0.242.41 → 0.242.43
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/Field/Boolean/config.json.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +6 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +4 -3
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +4 -1
- package/src/tasks/init/template/package.json.mustache +4 -4
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +3 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +5 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +3 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +4 -1
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +3 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +5 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +3 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +5 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +3 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +4 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +4 -1
package/package.json
CHANGED
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
112
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
+
"detailFVLItem": true,
|
|
114
|
+
"isFormWidth" : false,
|
|
115
|
+
"isContainerWidth" : false
|
|
113
116
|
}
|
|
114
117
|
}
|
package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache
CHANGED
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
112
|
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
-
"deferDatasource": true
|
|
113
|
+
"deferDatasource": true,
|
|
114
|
+
"detailFVLItem": true,
|
|
115
|
+
"isFormWidth" : false,
|
|
116
|
+
"isContainerWidth" : false
|
|
114
117
|
}
|
|
115
118
|
}
|
package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache
CHANGED
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
"defaultConfig": {
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"listType": "associated",
|
|
111
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
111
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
112
|
+
"detailFVLItem": true,
|
|
113
|
+
"isFormWidth" : true,
|
|
114
|
+
"isContainerWidth" : false
|
|
112
115
|
}
|
|
113
116
|
}
|
|
@@ -58,19 +58,22 @@
|
|
|
58
58
|
"label": "@L $this.label",
|
|
59
59
|
"placeholder": "@L Select...",
|
|
60
60
|
"listType": "associated",
|
|
61
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
61
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
62
62
|
{{/IS_PICKLIST}}
|
|
63
63
|
{{#IS_BOOLEAN}}
|
|
64
64
|
"trueText": "True",
|
|
65
|
-
"falseText": "False"
|
|
65
|
+
"falseText": "False",
|
|
66
66
|
{{/IS_BOOLEAN}}
|
|
67
67
|
{{#IS_PHONE}}
|
|
68
68
|
"datasource": {
|
|
69
69
|
"source": "@DATASOURCE D_pyCountryCallingCodeList.pxResults",
|
|
70
70
|
"fields": {
|
|
71
71
|
"value": "@P .pyCallingCode"
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
73
|
}
|
|
74
74
|
{{/IS_PHONE}}
|
|
75
|
+
"detailFVLItem": true,
|
|
76
|
+
"isFormWidth" : false,
|
|
77
|
+
"isContainerWidth" : false
|
|
75
78
|
}
|
|
76
79
|
}
|
|
@@ -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.43",
|
|
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
|
};
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json
CHANGED
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
112
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
+
"detailFVLItem": true,
|
|
114
|
+
"isFormWidth" : false,
|
|
115
|
+
"isContainerWidth" : false
|
|
113
116
|
}
|
|
114
117
|
}
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json
CHANGED
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
"defaultConfig": {
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"listType": "associated",
|
|
111
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
111
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
112
|
+
"detailFVLItem": true,
|
|
113
|
+
"isFormWidth" : true,
|
|
114
|
+
"isContainerWidth" : false
|
|
112
115
|
}
|
|
113
116
|
}
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json
CHANGED
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
112
|
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
-
"deferDatasource": true
|
|
113
|
+
"deferDatasource": true,
|
|
114
|
+
"detailFVLItem": true,
|
|
115
|
+
"isFormWidth" : false,
|
|
116
|
+
"isContainerWidth" : false
|
|
114
117
|
}
|
|
115
118
|
}
|
|
@@ -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/Constellation/Pega_DXIL_MyPicklist/config.json
CHANGED
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
112
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
+
"detailFVLItem": true,
|
|
114
|
+
"isFormWidth" : false,
|
|
115
|
+
"isContainerWidth" : false
|
|
113
116
|
}
|
|
114
117
|
}
|
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
"defaultConfig": {
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"listType": "associated",
|
|
111
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
111
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
112
|
+
"detailFVLItem": true,
|
|
113
|
+
"isFormWidth" : true,
|
|
114
|
+
"isContainerWidth" : false
|
|
112
115
|
}
|
|
113
116
|
}
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json
CHANGED
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
112
|
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
-
"deferDatasource": true
|
|
113
|
+
"deferDatasource": true,
|
|
114
|
+
"detailFVLItem": true,
|
|
115
|
+
"isFormWidth" : false,
|
|
116
|
+
"isContainerWidth" : false
|
|
114
117
|
}
|
|
115
118
|
}
|
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
|
};
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json
CHANGED
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
112
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
+
"detailFVLItem": true,
|
|
114
|
+
"isFormWidth" : false,
|
|
115
|
+
"isContainerWidth" : false
|
|
113
116
|
}
|
|
114
117
|
}
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json
CHANGED
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
"defaultConfig": {
|
|
109
109
|
"label": "@L $this.label",
|
|
110
110
|
"listType": "associated",
|
|
111
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
111
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
112
|
+
"detailFVLItem": true,
|
|
113
|
+
"isFormWidth" : true,
|
|
114
|
+
"isContainerWidth" : false
|
|
112
115
|
}
|
|
113
116
|
}
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json
CHANGED
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
"placeholder": "@L Select...",
|
|
111
111
|
"listType": "associated",
|
|
112
112
|
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
-
"deferDatasource": true
|
|
113
|
+
"deferDatasource": true,
|
|
114
|
+
"detailFVLItem": true,
|
|
115
|
+
"isFormWidth" : false,
|
|
116
|
+
"isContainerWidth" : false
|
|
114
117
|
}
|
|
115
118
|
}
|