@pega/custom-dx-components 0.23.16 → 0.23.18
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 +5 -5
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +2 -14
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +0 -5
- package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +3 -18
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +3 -18
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +5 -20
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +5 -19
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +7 -22
- package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +5 -21
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +3 -24
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +3 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +3 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +3 -16
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +3 -18
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +3 -18
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.jsx.mustache +3 -18
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +2 -2
- package/src/tasks/init/template/package.json.mustache +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +2 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +3 -17
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -5
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +3 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +3 -16
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +3 -24
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +3 -15
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +3 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +2 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +3 -17
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +0 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +3 -19
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +3 -16
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +3 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +3 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +3 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +3 -18
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +13 -4
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +13 -4
|
@@ -73,15 +73,13 @@ const PegaDxilMyTextInput = props => {
|
|
|
73
73
|
displayAsStatus,
|
|
74
74
|
variant,
|
|
75
75
|
hasSuggestions,
|
|
76
|
-
isTableFormatter
|
|
77
|
-
enableAdditionalInformation
|
|
76
|
+
isTableFormatter
|
|
78
77
|
} = props;
|
|
79
78
|
const { formatter } = props;
|
|
80
79
|
const pConn = getPConnect();
|
|
81
80
|
const actions = pConn.getActionsApi();
|
|
82
81
|
const propName = pConn.getStateProps().value;
|
|
83
82
|
const maxLength = fieldMetadata?.maxLength;
|
|
84
|
-
const fieldDescription = fieldMetadata?.description;
|
|
85
83
|
const hasValueChange = useRef(false);
|
|
86
84
|
|
|
87
85
|
let { value, readOnly, required, disabled } = props;
|
|
@@ -191,14 +189,6 @@ const PegaDxilMyTextInput = props => {
|
|
|
191
189
|
}
|
|
192
190
|
}}
|
|
193
191
|
onResolveSuggestion={onResolveSuggestionHandler}
|
|
194
|
-
{...(enableAdditionalInformation && fieldDescription
|
|
195
|
-
? {
|
|
196
|
-
additionalInfo: {
|
|
197
|
-
heading: label,
|
|
198
|
-
content: fieldDescription
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
: {})}
|
|
202
192
|
/>
|
|
203
193
|
</StyledPegaDxilMyTextInputWrapper>
|
|
204
194
|
);
|
|
@@ -221,8 +211,7 @@ PegaDxilMyTextInput.defaultProps = {
|
|
|
221
211
|
variant: 'inline',
|
|
222
212
|
formatter: '',
|
|
223
213
|
isTableFormatter: false,
|
|
224
|
-
hasSuggestions: false
|
|
225
|
-
enableAdditionalInformation: false
|
|
214
|
+
hasSuggestions: false
|
|
226
215
|
};
|
|
227
216
|
|
|
228
217
|
PegaDxilMyTextInput.propTypes = {
|
|
@@ -244,8 +233,7 @@ PegaDxilMyTextInput.propTypes = {
|
|
|
244
233
|
variant: PropTypes.string,
|
|
245
234
|
formatter: PropTypes.string,
|
|
246
235
|
isTableFormatter: PropTypes.bool,
|
|
247
|
-
hasSuggestions: PropTypes.bool
|
|
248
|
-
enableAdditionalInformation: PropTypes.bool
|
|
236
|
+
hasSuggestions: PropTypes.bool
|
|
249
237
|
};
|
|
250
238
|
|
|
251
239
|
export default PegaDxilMyTextInput;
|
|
@@ -31,15 +31,12 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
31
31
|
additionalProps,
|
|
32
32
|
displayMode,
|
|
33
33
|
variant,
|
|
34
|
-
hasSuggestions
|
|
35
|
-
fieldMetadata,
|
|
36
|
-
enableAdditionalInformation
|
|
34
|
+
hasSuggestions
|
|
37
35
|
} = props;
|
|
38
36
|
let { formatter } = props;
|
|
39
37
|
const pConn = getPConnect();
|
|
40
38
|
const actions = pConn.getActionsApi();
|
|
41
39
|
const propName = pConn.getStateProps().value;
|
|
42
|
-
const fieldDescription = fieldMetadata?.description;
|
|
43
40
|
|
|
44
41
|
// BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
|
|
45
42
|
let { readOnly, required, disabled } = props;
|
|
@@ -169,14 +166,6 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
169
166
|
onChange={handleChange}
|
|
170
167
|
onBlur={handleBlur}
|
|
171
168
|
onResolveSuggestion={onResolveSuggestionHandler}
|
|
172
|
-
{...(enableAdditionalInformation && fieldDescription
|
|
173
|
-
? {
|
|
174
|
-
additionalInfo: {
|
|
175
|
-
heading: label,
|
|
176
|
-
content: fieldDescription
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
: {})}
|
|
180
169
|
/>
|
|
181
170
|
</StyledPegaDxilMyTimeOfDayWrapper>
|
|
182
171
|
);
|
|
@@ -198,9 +187,7 @@ PegaDxilMyTimeOfDay.defaultProps = {
|
|
|
198
187
|
displayMode: null,
|
|
199
188
|
variant: "inline",
|
|
200
189
|
formatter:"defaultTime",
|
|
201
|
-
hasSuggestions: false
|
|
202
|
-
fieldMetadata: {},
|
|
203
|
-
enableAdditionalInformation: false
|
|
190
|
+
hasSuggestions: false
|
|
204
191
|
};
|
|
205
192
|
|
|
206
193
|
PegaDxilMyTimeOfDay.propTypes = {
|
|
@@ -221,9 +208,7 @@ PegaDxilMyTimeOfDay.propTypes = {
|
|
|
221
208
|
displayMode: PropTypes.string,
|
|
222
209
|
variant: PropTypes.string,
|
|
223
210
|
formatter : PropTypes.string,
|
|
224
|
-
hasSuggestions: PropTypes.bool
|
|
225
|
-
fieldMetadata: PropTypes.objectOf(PropTypes.any),
|
|
226
|
-
enableAdditionalInformation: PropTypes.bool
|
|
211
|
+
hasSuggestions: PropTypes.bool
|
|
227
212
|
};
|
|
228
213
|
|
|
229
214
|
export default PegaDxilMyTimeOfDay;
|
package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx
CHANGED
|
@@ -138,6 +138,9 @@ export const basePegaDxilMyTwoColumnForm = () => {
|
|
|
138
138
|
getChildren: () => {
|
|
139
139
|
return pyReviewRaw.children;
|
|
140
140
|
},
|
|
141
|
+
getInheritedProps: () => {
|
|
142
|
+
return pyReviewRaw.config.inheritedProps;
|
|
143
|
+
},
|
|
141
144
|
createComponent: config => {
|
|
142
145
|
// eslint-disable-next-line default-case
|
|
143
146
|
switch (config.config.value) {
|
|
@@ -38,15 +38,12 @@ const PegaDxilMyUrl = props => {
|
|
|
38
38
|
propUrlLabel,
|
|
39
39
|
urlLabelSelection,
|
|
40
40
|
tableDisplayAs,
|
|
41
|
-
hasSuggestions
|
|
42
|
-
fieldMetadata,
|
|
43
|
-
enableAdditionalInformation
|
|
41
|
+
hasSuggestions
|
|
44
42
|
} = props;
|
|
45
43
|
const { formatter } = props;
|
|
46
44
|
const pConn = getPConnect();
|
|
47
45
|
const actions = pConn.getActionsApi();
|
|
48
46
|
const propName = pConn.getStateProps().value;
|
|
49
|
-
const fieldDescription = fieldMetadata?.description;
|
|
50
47
|
const hasValueChange = useRef(false);
|
|
51
48
|
|
|
52
49
|
|
|
@@ -169,14 +166,6 @@ const PegaDxilMyUrl = props => {
|
|
|
169
166
|
}}
|
|
170
167
|
onFocus={actions.onFocus}
|
|
171
168
|
onResolveSuggestion={onResolveSuggestionHandler}
|
|
172
|
-
{...(enableAdditionalInformation && fieldDescription
|
|
173
|
-
? {
|
|
174
|
-
additionalInfo: {
|
|
175
|
-
heading: label,
|
|
176
|
-
content: fieldDescription
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
: {})}
|
|
180
169
|
/>
|
|
181
170
|
</StyledPegaDxilMyUrlWrapper>
|
|
182
171
|
);
|
|
@@ -207,9 +196,7 @@ PegaDxilMyUrl.defaultProps = {
|
|
|
207
196
|
propUrlLabel: '',
|
|
208
197
|
urlLabelSelection: 'constant',
|
|
209
198
|
tableDisplayAs: 'link',
|
|
210
|
-
hasSuggestions: false
|
|
211
|
-
fieldMetadata: {},
|
|
212
|
-
enableAdditionalInformation: false
|
|
199
|
+
hasSuggestions: false
|
|
213
200
|
};
|
|
214
201
|
|
|
215
202
|
PegaDxilMyUrl.propTypes = {
|
|
@@ -239,9 +226,7 @@ PegaDxilMyUrl.propTypes = {
|
|
|
239
226
|
propUrlLabel: PropTypes.string,
|
|
240
227
|
urlLabelSelection: PropTypes.string,
|
|
241
228
|
tableDisplayAs: PropTypes.string,
|
|
242
|
-
hasSuggestions: PropTypes.bool
|
|
243
|
-
fieldMetadata: PropTypes.objectOf(PropTypes.any),
|
|
244
|
-
enableAdditionalInformation: PropTypes.bool
|
|
229
|
+
hasSuggestions: PropTypes.bool
|
|
245
230
|
};
|
|
246
231
|
|
|
247
232
|
export default PegaDxilMyUrl;
|
|
@@ -33,7 +33,10 @@ describe('create buildAll and deleteAll local', () => {
|
|
|
33
33
|
// check to see file exists
|
|
34
34
|
|
|
35
35
|
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
36
|
-
const createFile = path.resolve(
|
|
36
|
+
const createFile = path.resolve(
|
|
37
|
+
'../../..',
|
|
38
|
+
path.join(`src/components/${newFileName}`, 'index.jsx')
|
|
39
|
+
);
|
|
37
40
|
const doesExist = fs.existsSync(createFile);
|
|
38
41
|
expect(doesExist).toBeTruthy();
|
|
39
42
|
|
|
@@ -62,7 +65,10 @@ describe('create buildAll and deleteAll local', () => {
|
|
|
62
65
|
// check to see file exists
|
|
63
66
|
|
|
64
67
|
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
65
|
-
const createFile = path.resolve(
|
|
68
|
+
const createFile = path.resolve(
|
|
69
|
+
'../../..',
|
|
70
|
+
path.join(`src/components/${newFileName}`, 'index.jsx')
|
|
71
|
+
);
|
|
66
72
|
const doesExist = fs.existsSync(createFile);
|
|
67
73
|
expect(doesExist).toBeTruthy();
|
|
68
74
|
|
|
@@ -91,7 +97,10 @@ describe('create buildAll and deleteAll local', () => {
|
|
|
91
97
|
// check to see file exists
|
|
92
98
|
|
|
93
99
|
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
94
|
-
const createFile = path.resolve(
|
|
100
|
+
const createFile = path.resolve(
|
|
101
|
+
'../../..',
|
|
102
|
+
path.join(`src/components/${newFileName}`, 'index.jsx')
|
|
103
|
+
);
|
|
95
104
|
const doesExist = fs.existsSync(createFile);
|
|
96
105
|
expect(doesExist).toBeTruthy();
|
|
97
106
|
|
|
@@ -117,7 +126,7 @@ describe('create buildAll and deleteAll local', () => {
|
|
|
117
126
|
expect(stdout).toContain('Pega_DXIL_MyTestPage');
|
|
118
127
|
expect(stdout).toContain('Pega_DXIL_MyTestDetails');
|
|
119
128
|
// done();
|
|
120
|
-
},
|
|
129
|
+
}, 70000);
|
|
121
130
|
|
|
122
131
|
it('npm run deleteAll Local', async () => {
|
|
123
132
|
const script = `npm run deleteAll Local Y --prefix ../../..`;
|
|
@@ -33,7 +33,10 @@ describe('create publish and deleteAll local', () => {
|
|
|
33
33
|
// check to see file exists
|
|
34
34
|
|
|
35
35
|
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
36
|
-
const createFile = path.resolve(
|
|
36
|
+
const createFile = path.resolve(
|
|
37
|
+
'../../..',
|
|
38
|
+
path.join(`src/components/${newFileName}`, 'index.jsx')
|
|
39
|
+
);
|
|
37
40
|
const doesExist = fs.existsSync(createFile);
|
|
38
41
|
expect(doesExist).toBeTruthy();
|
|
39
42
|
|
|
@@ -62,7 +65,10 @@ describe('create publish and deleteAll local', () => {
|
|
|
62
65
|
// check to see file exists
|
|
63
66
|
|
|
64
67
|
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
65
|
-
const createFile = path.resolve(
|
|
68
|
+
const createFile = path.resolve(
|
|
69
|
+
'../../..',
|
|
70
|
+
path.join(`src/components/${newFileName}`, 'index.jsx')
|
|
71
|
+
);
|
|
66
72
|
const doesExist = fs.existsSync(createFile);
|
|
67
73
|
expect(doesExist).toBeTruthy();
|
|
68
74
|
|
|
@@ -91,7 +97,10 @@ describe('create publish and deleteAll local', () => {
|
|
|
91
97
|
// check to see file exists
|
|
92
98
|
|
|
93
99
|
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
94
|
-
const createFile = path.resolve(
|
|
100
|
+
const createFile = path.resolve(
|
|
101
|
+
'../../..',
|
|
102
|
+
path.join(`src/components/${newFileName}`, 'index.jsx')
|
|
103
|
+
);
|
|
95
104
|
const doesExist = fs.existsSync(createFile);
|
|
96
105
|
expect(doesExist).toBeTruthy();
|
|
97
106
|
|
|
@@ -117,7 +126,7 @@ describe('create publish and deleteAll local', () => {
|
|
|
117
126
|
expect(stdout).toContain('Pega_DXIL_MyTestPage');
|
|
118
127
|
expect(stdout).toContain('Pega_DXIL_MyTestDetails');
|
|
119
128
|
// done();
|
|
120
|
-
},
|
|
129
|
+
}, 70000);
|
|
121
130
|
|
|
122
131
|
it('npm run deleteAll Local', async () => {
|
|
123
132
|
const script = `npm run deleteAll Local Y --prefix ../../..`;
|