@pega/custom-dx-components 0.23.48 → 0.24.1
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 +1 -1
- package/package.json +1 -1
- package/src/cli.js +8 -2
- package/src/tasks/build-jest-assets/index.js +171 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.tsx.mustache +4 -13
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +8 -5
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.tsx.mustache +9 -19
- package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +9 -18
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.tsx.mustache +3 -7
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.tsx.mustache +6 -9
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.ts.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.tsx.mustache +3 -6
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.tsx.mustache +3 -6
- package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.tsx.mustache +3 -6
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.tsx.mustache +4 -8
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.tsx.mustache +3 -7
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +0 -3
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.tsx.mustache +1 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.tsx.mustache +2 -5
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +3 -9
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.tsx.mustache +2 -5
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.tsx.mustache +2 -5
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.tsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.tsx.mustache +2 -5
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.tsx.mustache +6 -15
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.tsx.mustache +17 -19
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +3 -6
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.tsx.mustache +17 -19
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +3 -7
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.tsx.mustache +5 -3
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +4 -3
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +3 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +5 -8
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +5 -4
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -5
- package/src/tasks/index.js +1 -0
- package/src/tasks/init/template/.storybook/preview.js +3 -0
- package/src/tasks/init/template/package.json.mustache +7 -6
- package/src/util.js +18 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.tsx +1 -0
- package/tests/assets/components/create/_components.md +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +4 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +4 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.ts +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.ts +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +0 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.ts +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.stories.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx +3 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -5
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/_components.md +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +4 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +4 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.ts +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.ts +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.tsx +3 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +0 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.ts +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.stories.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +3 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/_components.md +1 -0
|
@@ -23,14 +23,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
23
23
|
|
|
24
24
|
const props = {
|
|
25
25
|
value,
|
|
26
|
-
placeholder: configProps.placeholder,
|
|
27
|
-
label: configProps.label,
|
|
28
|
-
helperText: configProps.helperText,
|
|
29
|
-
datasource: configProps.datasource,
|
|
30
|
-
testId: configProps.testId,
|
|
31
26
|
hasSuggestions: configProps.hasSuggestions,
|
|
32
27
|
fieldMetadata,
|
|
33
|
-
validatemessage: '',
|
|
34
28
|
getPConnect: () => {
|
|
35
29
|
return {
|
|
36
30
|
getConfigProps: () => {
|
|
@@ -84,8 +78,10 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
84
78
|
};
|
|
85
79
|
|
|
86
80
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
81
|
+
datasource: configProps.datasource,
|
|
87
82
|
label: configProps.label,
|
|
88
83
|
helperText: configProps.helperText,
|
|
84
|
+
placeholder: configProps.placeholder,
|
|
89
85
|
testId: configProps.testId,
|
|
90
86
|
readOnly: configProps.readOnly,
|
|
91
87
|
disabled: configProps.disabled,
|
|
@@ -93,5 +89,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
93
89
|
status: configProps.status,
|
|
94
90
|
hideLabel: configProps.hideLabel,
|
|
95
91
|
displayMode: configProps.displayMode,
|
|
92
|
+
variant: configProps.variant,
|
|
96
93
|
validatemessage: configProps.validatemessage
|
|
97
94
|
};
|
|
@@ -256,7 +256,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
256
256
|
|
|
257
257
|
return displayMode === 'DISPLAY_ONLY' ? (
|
|
258
258
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
259
|
-
displayComp
|
|
259
|
+
{displayComp}
|
|
260
260
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
261
261
|
) : (
|
|
262
262
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
@@ -24,19 +24,11 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
24
24
|
|
|
25
25
|
const props = {
|
|
26
26
|
value,
|
|
27
|
-
placeholder: configProps.placeholder,
|
|
28
|
-
label: configProps.label,
|
|
29
|
-
helperText: configProps.helperText,
|
|
30
|
-
datasource: configProps.datasource,
|
|
31
|
-
testId: configProps.testId,
|
|
32
27
|
hasSuggestions: configProps.hasSuggestions,
|
|
33
28
|
columns: [],
|
|
34
|
-
isTableFormatter: false,
|
|
35
29
|
listType: 'associated',
|
|
36
|
-
parameters: {},
|
|
37
30
|
datasourceMetadata,
|
|
38
31
|
fieldMetadata,
|
|
39
|
-
validatemessage: '',
|
|
40
32
|
getPConnect: () => {
|
|
41
33
|
return {
|
|
42
34
|
getConfigProps: () => {
|
|
@@ -93,8 +85,12 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
93
85
|
};
|
|
94
86
|
|
|
95
87
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
88
|
+
datasource: configProps.datasource,
|
|
96
89
|
label: configProps.label,
|
|
97
90
|
helperText: configProps.helperText,
|
|
91
|
+
placeholder: configProps.placeholder,
|
|
92
|
+
parameters: {},
|
|
93
|
+
isTableFormatter: false,
|
|
98
94
|
testId: configProps.testId,
|
|
99
95
|
readOnly: configProps.readOnly,
|
|
100
96
|
disabled: configProps.disabled,
|
|
@@ -23,15 +23,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
23
23
|
|
|
24
24
|
const props = {
|
|
25
25
|
value,
|
|
26
|
-
align: 'vertical',
|
|
27
|
-
placeholder: configProps.placeholder,
|
|
28
|
-
label: configProps.label,
|
|
29
|
-
helperText: configProps.helperText,
|
|
30
|
-
datasource: configProps.datasource,
|
|
31
|
-
testId: configProps.testId,
|
|
32
26
|
hasSuggestions: configProps.hasSuggestions,
|
|
33
27
|
fieldMetadata,
|
|
34
|
-
validatemessage: '',
|
|
35
28
|
getPConnect: () => {
|
|
36
29
|
return {
|
|
37
30
|
getConfigProps: () => {
|
|
@@ -88,8 +81,11 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
88
81
|
};
|
|
89
82
|
|
|
90
83
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
84
|
+
datasource: configProps.datasource,
|
|
91
85
|
label: configProps.label,
|
|
92
86
|
helperText: configProps.helperText,
|
|
87
|
+
placeholder: configProps.placeholder,
|
|
88
|
+
inline: configProps.inline,
|
|
93
89
|
testId: configProps.testId,
|
|
94
90
|
readOnly: configProps.readOnly,
|
|
95
91
|
disabled: configProps.disabled,
|
package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache
CHANGED
|
@@ -19,7 +19,6 @@ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
|
19
19
|
listType: string;
|
|
20
20
|
datasource: Array<any>;
|
|
21
21
|
inline: boolean;
|
|
22
|
-
align: string;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
|
|
@@ -62,7 +61,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
62
61
|
datasource = [],
|
|
63
62
|
listType,
|
|
64
63
|
validatemessage,
|
|
65
|
-
align = 'vertical',
|
|
66
64
|
testId,
|
|
67
65
|
additionalProps = {},
|
|
68
66
|
displayMode,
|
|
@@ -185,7 +183,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
185
183
|
// @ts-ignore
|
|
186
184
|
pConn.getValidationApi().validate(event.target.value);
|
|
187
185
|
}}
|
|
188
|
-
align={align}
|
|
189
186
|
disabled={disabled}
|
|
190
187
|
className='standard'
|
|
191
188
|
name={fullReference}
|
|
@@ -23,9 +23,6 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
23
23
|
|
|
24
24
|
const props = {
|
|
25
25
|
value,
|
|
26
|
-
placeholder: configProps.placeholder,
|
|
27
|
-
label: configProps.label,
|
|
28
|
-
testId: configProps.testId,
|
|
29
26
|
hasSuggestions: configProps.hasSuggestions,
|
|
30
27
|
|
|
31
28
|
getPConnect: () => {
|
|
@@ -59,6 +56,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
59
56
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
60
57
|
label: configProps.label,
|
|
61
58
|
helperText: configProps.helperText,
|
|
59
|
+
placeholder: configProps.placeholder,
|
|
62
60
|
testId: configProps.testId,
|
|
63
61
|
readOnly: configProps.readOnly,
|
|
64
62
|
disabled: configProps.disabled,
|
|
@@ -20,13 +20,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
20
20
|
|
|
21
21
|
const props = {
|
|
22
22
|
value: configProps.value,
|
|
23
|
-
label: configProps.label,
|
|
24
|
-
placeholder: configProps.placeholder,
|
|
25
|
-
helperText: configProps.helperText,
|
|
26
|
-
testId: configProps.testId,
|
|
27
23
|
hasSuggestions: configProps.hasSuggestions,
|
|
28
24
|
fieldMetadata,
|
|
29
|
-
validatemessage: '',
|
|
30
25
|
getPConnect: () => {
|
|
31
26
|
return {
|
|
32
27
|
getStateProps: () => {
|
|
@@ -56,6 +51,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
56
51
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
57
52
|
label: configProps.label,
|
|
58
53
|
helperText: configProps.helperText,
|
|
54
|
+
placeholder: configProps.placeholder,
|
|
59
55
|
testId: configProps.testId,
|
|
60
56
|
readOnly: configProps.readOnly,
|
|
61
57
|
disabled: configProps.disabled,
|
|
@@ -63,5 +59,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
63
59
|
status: configProps.status,
|
|
64
60
|
hideLabel: configProps.hideLabel,
|
|
65
61
|
displayMode: configProps.displayMode,
|
|
62
|
+
variant: configProps.variant,
|
|
66
63
|
validatemessage: configProps.validatemessage
|
|
67
64
|
};
|
|
@@ -128,7 +128,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
128
128
|
}
|
|
129
129
|
return displayMode === 'DISPLAY_ONLY' ? (
|
|
130
130
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
131
|
-
displayComp
|
|
131
|
+
{displayComp}
|
|
132
132
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
133
133
|
) : (
|
|
134
134
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Status } from '@pega/cosmos-react-core';
|
|
4
4
|
|
|
5
|
-
export default function StatusWorkRenderer({ value }
|
|
5
|
+
export default function StatusWorkRenderer({ value }: any) {
|
|
6
6
|
// need to cast variant
|
|
7
|
-
let variant
|
|
7
|
+
let variant: 'success' | 'urgent' | 'warn' | 'pending' | 'info';
|
|
8
8
|
variant = 'info';
|
|
9
9
|
|
|
10
10
|
const warnStrings = ['fail', 'cancel', 'reject', 'revoke', 'stopped', 'warn'];
|
|
@@ -22,11 +22,5 @@ export default function StatusWorkRenderer({ value } : any) {
|
|
|
22
22
|
variant = 'pending';
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<Status type='rectangle' variant={variant} >
|
|
29
|
-
{value}
|
|
30
|
-
</Status>
|
|
31
|
-
);
|
|
25
|
+
return <Status variant={variant}>{value}</Status>;
|
|
32
26
|
}
|
|
@@ -20,13 +20,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
20
20
|
|
|
21
21
|
const props = {
|
|
22
22
|
value: configProps.value,
|
|
23
|
-
placeholder: configProps.placeholder,
|
|
24
|
-
label: configProps.label,
|
|
25
|
-
helperText: configProps.helperText,
|
|
26
|
-
testId: configProps.testId,
|
|
27
23
|
hasSuggestions: configProps.hasSuggestions,
|
|
28
24
|
fieldMetadata,
|
|
29
|
-
validatemessage: '',
|
|
30
25
|
getPConnect: () => {
|
|
31
26
|
return {
|
|
32
27
|
getStateProps: () => {
|
|
@@ -56,6 +51,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
56
51
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
57
52
|
label: configProps.label,
|
|
58
53
|
helperText: configProps.helperText,
|
|
54
|
+
placeholder: configProps.placeholder,
|
|
59
55
|
testId: configProps.testId,
|
|
60
56
|
readOnly: configProps.readOnly,
|
|
61
57
|
disabled: configProps.disabled,
|
|
@@ -63,5 +59,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
63
59
|
status: configProps.status,
|
|
64
60
|
hideLabel: configProps.hideLabel,
|
|
65
61
|
displayMode: configProps.displayMode,
|
|
62
|
+
variant: configProps.variant,
|
|
66
63
|
validatemessage: configProps.validatemessage
|
|
67
64
|
};
|
|
@@ -143,7 +143,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
143
143
|
displayComp = textFormatter(formatter, value);
|
|
144
144
|
}
|
|
145
145
|
return displayMode === 'DISPLAY_ONLY' ? (
|
|
146
|
-
<Styled{{COMPONENT_CLASS_NAME}}Wrapper> displayComp </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
146
|
+
<Styled{{COMPONENT_CLASS_NAME}}Wrapper> {displayComp} </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
147
147
|
) : (
|
|
148
148
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
149
149
|
<FieldValueList
|
package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.tsx.mustache
CHANGED
|
@@ -20,13 +20,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
20
20
|
|
|
21
21
|
const props = {
|
|
22
22
|
value: configProps.value,
|
|
23
|
-
placeholder: configProps.placeholder,
|
|
24
|
-
label: configProps.label,
|
|
25
|
-
helperText: configProps.helperText,
|
|
26
|
-
testId: configProps.testId,
|
|
27
23
|
hasSuggestions: configProps.hasSuggestions,
|
|
28
24
|
fieldMetadata,
|
|
29
|
-
validatemessage: '',
|
|
30
25
|
getPConnect: () => {
|
|
31
26
|
return {
|
|
32
27
|
getStateProps: () => {
|
|
@@ -56,6 +51,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
56
51
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
57
52
|
label: configProps.label,
|
|
58
53
|
helperText: configProps.helperText,
|
|
54
|
+
placeholder: configProps.placeholder,
|
|
59
55
|
testId: configProps.testId,
|
|
60
56
|
readOnly: configProps.readOnly,
|
|
61
57
|
disabled: configProps.disabled,
|
|
@@ -63,5 +59,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
63
59
|
status: configProps.status,
|
|
64
60
|
hideLabel: configProps.hideLabel,
|
|
65
61
|
displayMode: configProps.displayMode,
|
|
62
|
+
variant: configProps.variant,
|
|
66
63
|
validatemessage: configProps.validatemessage
|
|
67
64
|
};
|
|
@@ -126,7 +126,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
126
126
|
}
|
|
127
127
|
return displayMode === 'DISPLAY_ONLY' ? (
|
|
128
128
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
129
|
-
displayComp
|
|
129
|
+
{displayComp}
|
|
130
130
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
131
131
|
) : (
|
|
132
132
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
@@ -19,12 +19,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
19
19
|
|
|
20
20
|
const props = {
|
|
21
21
|
value: configProps.value,
|
|
22
|
-
placeholder: configProps.placeholder,
|
|
23
|
-
label: configProps.label,
|
|
24
|
-
testId: configProps.testId,
|
|
25
22
|
hasSuggestions: configProps.hasSuggestions,
|
|
26
|
-
datasource: configProps.datasource,
|
|
27
|
-
validatemessage: '',
|
|
28
23
|
getPConnect: () => {
|
|
29
24
|
return {
|
|
30
25
|
getStateProps: () => {
|
|
@@ -52,8 +47,10 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
52
47
|
};
|
|
53
48
|
|
|
54
49
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
50
|
+
datasource: configProps.datasource,
|
|
55
51
|
label: configProps.label,
|
|
56
52
|
helperText: configProps.helperText,
|
|
53
|
+
placeholder: configProps.placeholder,
|
|
57
54
|
testId: configProps.testId,
|
|
58
55
|
readOnly: configProps.readOnly,
|
|
59
56
|
disabled: configProps.disabled,
|
|
@@ -61,5 +58,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
61
58
|
status: configProps.status,
|
|
62
59
|
hideLabel: configProps.hideLabel,
|
|
63
60
|
displayMode: configProps.displayMode,
|
|
61
|
+
variant: configProps.variant,
|
|
64
62
|
validatemessage: configProps.validatemessage
|
|
65
63
|
};
|
|
@@ -164,7 +164,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
164
164
|
}
|
|
165
165
|
return displayMode === 'DISPLAY_ONLY' ? (
|
|
166
166
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
167
|
-
displayComp
|
|
167
|
+
{displayComp}
|
|
168
168
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
169
169
|
) : (
|
|
170
170
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
@@ -19,12 +19,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
19
19
|
|
|
20
20
|
const props = {
|
|
21
21
|
value: configProps.value,
|
|
22
|
-
placeholder: configProps.placeholder,
|
|
23
|
-
label: configProps.label,
|
|
24
|
-
helperText: configProps.helperText,
|
|
25
|
-
testId: configProps.testId,
|
|
26
22
|
hasSuggestions: configProps.hasSuggestions,
|
|
27
|
-
validatemessage: '',
|
|
28
23
|
getPConnect: () => {
|
|
29
24
|
return {
|
|
30
25
|
getStateProps: () => {
|
|
@@ -54,6 +49,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
54
49
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
55
50
|
label: configProps.label,
|
|
56
51
|
helperText: configProps.helperText,
|
|
52
|
+
placeholder: configProps.placeholder,
|
|
57
53
|
testId: configProps.testId,
|
|
58
54
|
readOnly: configProps.readOnly,
|
|
59
55
|
disabled: configProps.disabled,
|
|
@@ -61,5 +57,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
61
57
|
status: configProps.status,
|
|
62
58
|
hideLabel: configProps.hideLabel,
|
|
63
59
|
displayMode: configProps.displayMode,
|
|
60
|
+
variant: configProps.variant,
|
|
64
61
|
validatemessage: configProps.validatemessage
|
|
65
62
|
};
|
|
@@ -15,6 +15,9 @@ type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
|
|
|
15
15
|
|
|
16
16
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
17
17
|
const props = {
|
|
18
|
+
value: configProps.value,
|
|
19
|
+
additionalProps: configProps.additionalProps,
|
|
20
|
+
hasSuggestions: configProps.hasSuggestions,
|
|
18
21
|
getPConnect: () => {
|
|
19
22
|
return {
|
|
20
23
|
getActionsApi: () => {
|
|
@@ -37,21 +40,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
37
40
|
ignoreSuggestion: () => {/* nothing */},
|
|
38
41
|
clearErrorMessages: () => {/* nothing */}
|
|
39
42
|
};
|
|
40
|
-
}
|
|
41
|
-
value: configProps.value,
|
|
42
|
-
validatemessage: configProps.validatemessage,
|
|
43
|
-
label: configProps.label,
|
|
44
|
-
hideLabel: configProps.hideLabel,
|
|
45
|
-
helperText: configProps.helperText,
|
|
46
|
-
withSeconds: configProps.withSeconds,
|
|
47
|
-
testId: configProps.testId,
|
|
48
|
-
additionalProps: configProps.additionalProps,
|
|
49
|
-
displayMode: configProps.displayMode,
|
|
50
|
-
variant: configProps.variant,
|
|
51
|
-
hasSuggestions: configProps.hasSuggestions,
|
|
52
|
-
disabled: configProps.disabled,
|
|
53
|
-
readOnly: configProps.readOnly,
|
|
54
|
-
required: configProps.required
|
|
43
|
+
}
|
|
55
44
|
};
|
|
56
45
|
|
|
57
46
|
return (
|
|
@@ -64,6 +53,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
64
53
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
65
54
|
label: configProps.label,
|
|
66
55
|
helperText: configProps.helperText,
|
|
56
|
+
withSeconds: configProps.withSeconds,
|
|
67
57
|
testId: configProps.testId,
|
|
68
58
|
readOnly: configProps.readOnly,
|
|
69
59
|
disabled: configProps.disabled,
|
|
@@ -71,5 +61,6 @@ Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
|
71
61
|
status: configProps.status,
|
|
72
62
|
hideLabel: configProps.hideLabel,
|
|
73
63
|
displayMode: configProps.displayMode,
|
|
64
|
+
variant: configProps.variant,
|
|
74
65
|
validatemessage: configProps.validatemessage
|
|
75
66
|
};
|
|
@@ -140,7 +140,7 @@ function {{COMPONENT_CLASS_NAME}} (props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
140
140
|
);
|
|
141
141
|
switch (displayMode) {
|
|
142
142
|
case 'DISPLAY_ONLY': {
|
|
143
|
-
return ( <Styled{{COMPONENT_CLASS_NAME}}Wrapper> displayComp </Styled{{COMPONENT_CLASS_NAME}}Wrapper>);
|
|
143
|
+
return ( <Styled{{COMPONENT_CLASS_NAME}}Wrapper> {displayComp} </Styled{{COMPONENT_CLASS_NAME}}Wrapper>);
|
|
144
144
|
}
|
|
145
145
|
case 'LABELS_LEFT': {
|
|
146
146
|
return (
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Status } from
|
|
3
|
+
import { Status } from '@pega/cosmos-react-core';
|
|
4
4
|
|
|
5
5
|
export default function StatusWorkRenderer({ value }: any) {
|
|
6
|
-
|
|
6
|
+
// need to cast variant
|
|
7
|
+
let variant: 'success' | 'urgent' | 'warn' | 'pending' | 'info';
|
|
8
|
+
variant = 'info';
|
|
7
9
|
|
|
8
|
-
const warnStrings = [
|
|
9
|
-
const infoStrings = [
|
|
10
|
-
const successStrings = [
|
|
11
|
-
const pendingStrings = [
|
|
10
|
+
const warnStrings = ['fail', 'cancel', 'reject', 'revoke', 'stopped', 'warn'];
|
|
11
|
+
const infoStrings = ['open', 'hold', 'info', 'new'];
|
|
12
|
+
const successStrings = ['resolved', 'completed', 'success'];
|
|
13
|
+
const pendingStrings = ['pending'];
|
|
12
14
|
|
|
13
|
-
if (new RegExp(warnStrings.join(
|
|
14
|
-
variant =
|
|
15
|
-
} else if (new RegExp(infoStrings.join(
|
|
16
|
-
variant =
|
|
17
|
-
} else if (new RegExp(successStrings.join(
|
|
18
|
-
variant =
|
|
19
|
-
} else if (new RegExp(pendingStrings.join(
|
|
20
|
-
variant =
|
|
15
|
+
if (new RegExp(warnStrings.join('|'), 'i').test(value)) {
|
|
16
|
+
variant = 'warn';
|
|
17
|
+
} else if (new RegExp(infoStrings.join('|'), 'i').test(value)) {
|
|
18
|
+
variant = 'info';
|
|
19
|
+
} else if (new RegExp(successStrings.join('|'), 'i').test(value)) {
|
|
20
|
+
variant = 'success';
|
|
21
|
+
} else if (new RegExp(pendingStrings.join('|'), 'i').test(value)) {
|
|
22
|
+
variant = 'pending';
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
return
|
|
24
|
-
<Status type="rectangle" variant={variant}>
|
|
25
|
-
{value}
|
|
26
|
-
</Status>
|
|
27
|
-
);
|
|
25
|
+
return <Status variant={variant}>{value}</Status>;
|
|
28
26
|
}
|
|
@@ -88,10 +88,6 @@ const renderField = resolvedProps => {
|
|
|
88
88
|
|
|
89
89
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
90
90
|
const props = {
|
|
91
|
-
template: 'MyCo_MyComponents_NewDetailsTemplate',
|
|
92
|
-
showHighlightedData: true,
|
|
93
|
-
label: 'Test Details',
|
|
94
|
-
showLabel: true,
|
|
95
91
|
getPConnect: () => {
|
|
96
92
|
return {
|
|
97
93
|
getChildren: () => {
|
|
@@ -147,6 +143,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
147
143
|
};
|
|
148
144
|
|
|
149
145
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
showLabel: true,
|
|
147
|
+
label: 'Details template',
|
|
148
|
+
showHighlightedData: true
|
|
152
149
|
};
|
package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.tsx.mustache
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Status } from
|
|
3
|
+
import { Status } from '@pega/cosmos-react-core';
|
|
4
4
|
|
|
5
5
|
export default function StatusWorkRenderer({ value }: any) {
|
|
6
|
-
|
|
6
|
+
// need to cast variant
|
|
7
|
+
let variant: 'success' | 'urgent' | 'warn' | 'pending' | 'info';
|
|
8
|
+
variant = 'info';
|
|
7
9
|
|
|
8
|
-
const warnStrings = [
|
|
9
|
-
const infoStrings = [
|
|
10
|
-
const successStrings = [
|
|
11
|
-
const pendingStrings = [
|
|
10
|
+
const warnStrings = ['fail', 'cancel', 'reject', 'revoke', 'stopped', 'warn'];
|
|
11
|
+
const infoStrings = ['open', 'hold', 'info', 'new'];
|
|
12
|
+
const successStrings = ['resolved', 'completed', 'success'];
|
|
13
|
+
const pendingStrings = ['pending'];
|
|
12
14
|
|
|
13
|
-
if (new RegExp(warnStrings.join(
|
|
14
|
-
variant =
|
|
15
|
-
} else if (new RegExp(infoStrings.join(
|
|
16
|
-
variant =
|
|
17
|
-
} else if (new RegExp(successStrings.join(
|
|
18
|
-
variant =
|
|
19
|
-
} else if (new RegExp(pendingStrings.join(
|
|
20
|
-
variant =
|
|
15
|
+
if (new RegExp(warnStrings.join('|'), 'i').test(value)) {
|
|
16
|
+
variant = 'warn';
|
|
17
|
+
} else if (new RegExp(infoStrings.join('|'), 'i').test(value)) {
|
|
18
|
+
variant = 'info';
|
|
19
|
+
} else if (new RegExp(successStrings.join('|'), 'i').test(value)) {
|
|
20
|
+
variant = 'success';
|
|
21
|
+
} else if (new RegExp(pendingStrings.join('|'), 'i').test(value)) {
|
|
22
|
+
variant = 'pending';
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
return
|
|
24
|
-
<Status type="rectangle" variant={variant}>
|
|
25
|
-
{value}
|
|
26
|
-
</Status>
|
|
27
|
-
);
|
|
25
|
+
return <Status variant={variant}>{value}</Status>;
|
|
28
26
|
}
|
package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache
CHANGED
|
@@ -86,10 +86,6 @@ const renderField = resolvedProps => {
|
|
|
86
86
|
|
|
87
87
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
88
88
|
const props = {
|
|
89
|
-
template: 'MyCo_MyComponents_NewDetailsTemplate',
|
|
90
|
-
showHighlightedData: true,
|
|
91
|
-
label: 'Test Details',
|
|
92
|
-
showLabel: true,
|
|
93
89
|
getPConnect: () => {
|
|
94
90
|
return {
|
|
95
91
|
getChildren: () => {
|
|
@@ -149,7 +145,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
149
145
|
};
|
|
150
146
|
|
|
151
147
|
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
152
|
-
|
|
153
|
-
label: 'Details Region',
|
|
154
|
-
|
|
148
|
+
showLabel: true,
|
|
149
|
+
label: 'Details Region template',
|
|
150
|
+
showHighlightedData: true
|
|
155
151
|
};
|
|
@@ -142,8 +142,6 @@ const renderField = resolvedProps => {
|
|
|
142
142
|
|
|
143
143
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
144
144
|
const props = {
|
|
145
|
-
NumCols: 1,
|
|
146
|
-
template: 'DefaultForm',
|
|
147
145
|
getPConnect: () => {
|
|
148
146
|
return {
|
|
149
147
|
getChildren: () => {
|
|
@@ -184,4 +182,8 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
184
182
|
);
|
|
185
183
|
};
|
|
186
184
|
|
|
187
|
-
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
185
|
+
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
186
|
+
showLabel: true,
|
|
187
|
+
label: 'Form template',
|
|
188
|
+
NumCols: 1,
|
|
189
|
+
};
|
package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache
CHANGED
|
@@ -145,7 +145,6 @@ const renderField = resolvedProps => {
|
|
|
145
145
|
|
|
146
146
|
export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
147
147
|
const props = {
|
|
148
|
-
template: 'DefaultForm',
|
|
149
148
|
getPConnect: () => {
|
|
150
149
|
return {
|
|
151
150
|
getChildren: () => {
|
|
@@ -190,4 +189,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
|
|
|
190
189
|
);
|
|
191
190
|
};
|
|
192
191
|
|
|
193
|
-
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
192
|
+
Base{{COMPONENT_CLASS_NAME}}.args = {
|
|
193
|
+
showLabel: true,
|
|
194
|
+
label: 'Form Region template',
|
|
195
|
+
};
|