@pega/dx-component-builder-sdk 0.23.2 → 0.23.3

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.
Files changed (65) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/create/templates/Constellation/field/Boolean/index.jsx.mustache +2 -2
  3. package/src/tasks/create/templates/Constellation/field/Date/index.jsx.mustache +1 -1
  4. package/src/tasks/create/templates/Constellation/field/DateTime/index.jsx.mustache +1 -1
  5. package/src/tasks/create/templates/Constellation/field/Decimal/index.jsx.mustache +1 -1
  6. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.jsx.mustache +1 -1
  7. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.jsx.mustache +1 -1
  8. package/src/tasks/create/templates/Constellation/field/Integer/index.jsx.mustache +1 -1
  9. package/src/tasks/create/templates/Constellation/field/Picklist/index.jsx.mustache +1 -1
  10. package/src/tasks/create/templates/Constellation/field/Text/index.jsx.mustache +1 -1
  11. package/src/tasks/create/templates/Constellation/field/Text-Email/index.jsx.mustache +1 -1
  12. package/src/tasks/create/templates/Constellation/field/Text-Input/index.jsx.mustache +1 -1
  13. package/src/tasks/create/templates/Constellation/field/Text-Paragraph/index.jsx.mustache +1 -1
  14. package/src/tasks/create/templates/Constellation/field/Text-Phone/index.jsx.mustache +1 -1
  15. package/src/tasks/create/templates/Constellation/field/Text-URL/index.jsx.mustache +1 -1
  16. package/src/tasks/create/templates/Constellation/field/TimeOfDay/index.jsx.mustache +1 -1
  17. package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +0 -28
  18. package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +0 -27
  19. package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +0 -27
  20. package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +0 -37
  21. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +0 -29
  22. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +0 -31
  23. package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +0 -33
  24. package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +0 -40
  25. package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +0 -41
  26. package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +0 -38
  27. package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +0 -41
  28. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +0 -41
  29. package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +0 -35
  30. package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +0 -35
  31. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +0 -37
  32. package/src/tasks/create-all/index.js +1 -1
  33. package/src/tasks/map/map.js +23 -5
  34. package/tests/assets/components/SDK-React/create/custom-constellation/field/Pega_DXIL_MyTestText/index.jsx +1 -1
  35. package/tests/assets/components/SDK-React/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +0 -41
  36. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/index.jsx +2 -2
  37. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/index.jsx +1 -1
  38. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyDate/index.jsx +1 -1
  39. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/index.jsx +1 -1
  40. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/index.jsx +1 -1
  41. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyEmail/index.jsx +1 -1
  42. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyInteger/index.jsx +1 -1
  43. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/index.jsx +1 -1
  44. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/index.jsx +1 -1
  45. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyPhone/index.jsx +1 -1
  46. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/index.jsx +1 -1
  47. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyText/index.jsx +1 -1
  48. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/index.jsx +1 -1
  49. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/index.jsx +1 -1
  50. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyURL/index.jsx +1 -1
  51. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +0 -28
  52. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +0 -29
  53. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +0 -27
  54. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +0 -27
  55. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +0 -37
  56. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyEmail/index.tsx +0 -38
  57. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyInteger/index.tsx +0 -33
  58. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/index.tsx +0 -41
  59. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +0 -31
  60. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +0 -35
  61. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +0 -40
  62. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyText/index.tsx +0 -41
  63. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/index.tsx +0 -41
  64. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +0 -37
  65. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyURL/index.tsx +0 -35
@@ -114,38 +114,3 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
114
114
  );
115
115
  }
116
116
 
117
- // {{COMPONENT_CLASS_NAME}}.defaultProps = {
118
- // value: '',
119
- // placeholder: '',
120
- // validatemessage: '',
121
- // helperText: '',
122
- // displayAsStatus: false,
123
- // hideLabel: false,
124
- // disabled: false,
125
- // readOnly: false,
126
- // required: false,
127
- // testId: null,
128
- // displayMode: null,
129
- // variant: 'inline',
130
- // formatter: '',
131
- // hasSuggestions: false
132
- // };
133
-
134
- // {{COMPONENT_CLASS_NAME}}.propTypes = {
135
- // value: PropTypes.string,
136
- // placeholder: PropTypes.string,
137
- // displayMode: PropTypes.string,
138
- // displayAsStatus: PropTypes.bool,
139
- // label: PropTypes.string.isRequired,
140
- // hideLabel: PropTypes.bool,
141
- // getPConnect: PropTypes.func.isRequired,
142
- // validatemessage: PropTypes.string,
143
- // helperText: PropTypes.string,
144
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
145
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
146
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
147
- // testId: PropTypes.string,
148
- // variant: PropTypes.string,
149
- // formatter: PropTypes.string,
150
- // hasSuggestions: PropTypes.bool
151
- // };
@@ -79,38 +79,3 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
79
79
  );
80
80
  }
81
81
 
82
- // {{COMPONENT_CLASS_NAME}}.defaultProps = {
83
- // value: '',
84
- // placeholder: '',
85
- // validatemessage: '',
86
- // helperText: '',
87
- // displayAsStatus: false,
88
- // hideLabel: false,
89
- // disabled: false,
90
- // readOnly: false,
91
- // required: false,
92
- // testId: null,
93
- // displayMode: null,
94
- // variant: 'inline',
95
- // formatter: '',
96
- // hasSuggestions: false
97
- // };
98
-
99
- // {{COMPONENT_CLASS_NAME}}.propTypes = {
100
- // value: PropTypes.string,
101
- // placeholder: PropTypes.string,
102
- // displayMode: PropTypes.string,
103
- // displayAsStatus: PropTypes.bool,
104
- // label: PropTypes.string.isRequired,
105
- // hideLabel: PropTypes.bool,
106
- // getPConnect: PropTypes.func.isRequired,
107
- // validatemessage: PropTypes.string,
108
- // helperText: PropTypes.string,
109
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
110
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
111
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
112
- // testId: PropTypes.string,
113
- // variant: PropTypes.string,
114
- // formatter: PropTypes.string,
115
- // hasSuggestions: PropTypes.bool
116
- // };
@@ -102,40 +102,3 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
102
102
  );
103
103
  }
104
104
 
105
- // {{COMPONENT_CLASS_NAME}}.defaultProps = {
106
- // value: '',
107
- // placeholder: '',
108
- // validatemessage: '',
109
- // helperText: '',
110
- // displayAsStatus: false,
111
- // hideLabel: false,
112
- // disabled: false,
113
- // readOnly: false,
114
- // required: false,
115
- // testId: null,
116
- // displayMode: null,
117
- // variant: 'inline',
118
- // formatter: '',
119
- // isTableFormatter: false,
120
- // hasSuggestions: false
121
- // };
122
-
123
- // {{COMPONENT_CLASS_NAME}}.propTypes = {
124
- // value: PropTypes.string,
125
- // placeholder: PropTypes.string,
126
- // displayMode: PropTypes.string,
127
- // displayAsStatus: PropTypes.bool,
128
- // label: PropTypes.string.isRequired,
129
- // hideLabel: PropTypes.bool,
130
- // getPConnect: PropTypes.func.isRequired,
131
- // validatemessage: PropTypes.string,
132
- // helperText: PropTypes.string,
133
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
134
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
135
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
136
- // testId: PropTypes.string,
137
- // variant: PropTypes.string,
138
- // formatter: PropTypes.string,
139
- // isTableFormatter: PropTypes.bool,
140
- // hasSuggestions: PropTypes.bool
141
- // };
@@ -306,7 +306,7 @@ export const validateCompile = async (
306
306
 
307
307
  const templateDirConstellation = `./templates/Constellation/${typeLC}/${sSubType}`;
308
308
  let templateDirectoryConstellation = fileURLToPath(new URL(templateDirConstellation, import.meta.url));
309
- templateDirectoryConstellation = templateDirectoryConstellation.replace("/create-all", "/create");
309
+ templateDirectoryConstellation = templateDirectoryConstellation.replace( path.sep + "create-all", path.sep + "create");
310
310
 
311
311
  const componentKey = `${organization}_${library}_${componentName}`;
312
312
 
@@ -40,6 +40,9 @@ export const updateComponentMap = async (componentKey, category = CATEGORY_CUSTO
40
40
 
41
41
  const framework = await getFramework();
42
42
 
43
+ // POSIX key
44
+ componentKey = componentKey.split(path.sep).join("/");
45
+
43
46
  switch (framework) {
44
47
  case 'SDK-React' :
45
48
 
@@ -51,7 +54,9 @@ export const updateComponentMap = async (componentKey, category = CATEGORY_CUSTO
51
54
  let mapData = fs.readFileSync(pegaLocalReactComponentMapPath, { encoding: 'utf8' });
52
55
 
53
56
  let importComponent = join(REACT_COMPONENTS_DIRECTORY_PATH, categoryDirectory, componentKey);
54
- importComponent = "./".concat(importComponent);
57
+
58
+ // POSIX path
59
+ importComponent = "./".concat(importComponent).split(path.sep).join("/");
55
60
 
56
61
  let importFull = "import ".concat(componentName).concat(" from '").concat(importComponent).concat("/';");
57
62
  let mapFull = "\"".concat(componentNameNoPrefix).concat("\" : " ).concat(componentName).concat(",");
@@ -94,7 +99,9 @@ export const updateComponentMap = async (componentKey, category = CATEGORY_CUSTO
94
99
 
95
100
  // componentKey twice for directory and file
96
101
  let importComponentAng = join(ANGULAR_COMPONENTS_DIRECTORY_PATH, categoryDirectoryAng, componentKey, componentNameNoPrefixAng);
97
- importComponentAng = "./".concat(importComponentAng);
102
+
103
+ // POSIX path
104
+ importComponentAng = "./".concat(importComponentAng).split(path.sep).join("/");
98
105
 
99
106
  let importFullAng = "import { ".concat(componentComponentNameAng).concat(" } from '").concat(importComponentAng).concat(".component';");
100
107
  let mapFullAng = "\"".concat(originalComponentName).concat("\" : " ).concat(componentComponentNameAng).concat(",");
@@ -135,6 +142,8 @@ export const deleteFromComponentMap = async (componentKey, category = CATEGORY_C
135
142
 
136
143
  const framework = await getFramework();
137
144
 
145
+ // POSIX key
146
+ componentKey = componentKey.split(path.sep).join("/");
138
147
 
139
148
  switch (framework) {
140
149
  case 'SDK-React' :
@@ -146,7 +155,10 @@ export const deleteFromComponentMap = async (componentKey, category = CATEGORY_C
146
155
  let mapData = fs.readFileSync(pegaLocalReactComponentMapPath, { encoding: 'utf8' });
147
156
 
148
157
  let importComponent = join(REACT_COMPONENTS_DIRECTORY_PATH, categoryDirectory, componentKey);
149
- importComponent = "./".concat(importComponent);
158
+
159
+ // POSIX path
160
+ importComponent = "./".concat(importComponent).split(path.sep).join("/");
161
+
150
162
 
151
163
  let importFull = "import ".concat(componentName).concat(" from '").concat(importComponent).concat("/';");
152
164
  let mapFull = "\"".concat(componentNameNoPrefix).concat("\" : " ).concat(componentName).concat(",");
@@ -177,7 +189,9 @@ export const deleteFromComponentMap = async (componentKey, category = CATEGORY_C
177
189
 
178
190
  // componentKey twice for directory and file
179
191
  let importComponentAng = join(ANGULAR_COMPONENTS_DIRECTORY_PATH, categoryDirectoryAng, componentKey, componentNameNoPrefixAng);
180
- importComponentAng = "./".concat(importComponentAng);
192
+
193
+ // POSIX path
194
+ importComponentAng = "./".concat(importComponentAng).split(path.sep).join("/");
181
195
 
182
196
 
183
197
  let importFullAng = "import { ".concat(componentComponentNameAng).concat(" } from '").concat(importComponentAng).concat(".component';");
@@ -211,6 +225,10 @@ export const renameComponentInMap = async (oldComponentKey, newComponentKey) =>
211
225
 
212
226
  const framework = await getFramework();
213
227
 
228
+ // POSIX key
229
+ oldComponentKey = oldComponentKey.split(path.sep).join("/");
230
+ newComponentKey = newComponentKey.split(path.sep).join("/");
231
+
214
232
  switch (framework) {
215
233
  case 'SDK-React' :
216
234
 
@@ -355,7 +373,7 @@ export const isComponentMapEmpty = (framework) => {
355
373
  let mapData;
356
374
 
357
375
  switch (framework) {
358
- case "SDk-React":
376
+ case "SDK-React":
359
377
  blankMap = path.join(path.resolve(), COMPONENT_REACT_LIB_PATH, SDK_LOCAL_REACT_COMPONENT_MAP_FILENAME);
360
378
  blankMapData = fs.readFileSync(blankMap, { encoding: 'utf8' });
361
379
  mapData = fs.readFileSync(pegaLocalAngularComponentMapPath, { encoding: 'utf8' });
@@ -43,7 +43,7 @@ PegaDxilMyTestText.defaultProps = {
43
43
  disabled: false,
44
44
  readOnly: false,
45
45
  required: false,
46
- testId: null
46
+ testId: ''
47
47
  };
48
48
 
49
49
  PegaDxilMyTestText.propTypes = {
@@ -80,44 +80,3 @@ export default function PegaDxilMyTestText(props: PegaDxilMyTestTextProps) {
80
80
  );
81
81
  }
82
82
 
83
- // PegaDxilMyTestText.defaultProps = {
84
- // value: '',
85
- // placeholder: '',
86
- // validatemessage: '',
87
- // helperText: '',
88
- // displayAsStatus: false,
89
- // hideLabel: false,
90
- // disabled: false,
91
- // readOnly: false,
92
- // required: false,
93
- // testId: null,
94
- // fieldMetadata: {},
95
- // additionalProps: {},
96
- // displayMode: null,
97
- // variant: 'inline',
98
- // formatter: '',
99
- // isTableFormatter: false,
100
- // hasSuggestions: false
101
- // };
102
-
103
- // PegaDxilMyTestText.propTypes = {
104
- // value: PropTypes.string,
105
- // placeholder: PropTypes.string,
106
- // displayMode: PropTypes.string,
107
- // displayAsStatus: PropTypes.bool,
108
- // label: PropTypes.string.isRequired,
109
- // hideLabel: PropTypes.bool,
110
- // getPConnect: PropTypes.func.isRequired,
111
- // validatemessage: PropTypes.string,
112
- // helperText: PropTypes.string,
113
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
114
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
115
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
116
- // testId: PropTypes.string,
117
- // fieldMetadata: PropTypes.objectOf(PropTypes.any),
118
- // additionalProps: PropTypes.objectOf(PropTypes.any),
119
- // variant: PropTypes.string,
120
- // formatter: PropTypes.string,
121
- // isTableFormatter: PropTypes.bool,
122
- // hasSuggestions: PropTypes.bool
123
- // };
@@ -65,7 +65,7 @@ const PegaDxilMyBoolean = props => {
65
65
  />
66
66
  );
67
67
 
68
- const parentTestId = testId ? `${testId}-parent` : testId;
68
+ const parentTestId = testId === '' ? `${testId}-parent` : testId;
69
69
 
70
70
  let displayComponent;
71
71
  if (displayMode) {
@@ -138,7 +138,7 @@ PegaDxilMyBoolean.defaultProps = {
138
138
  disabled: false,
139
139
  readOnly: false,
140
140
  required: false,
141
- testId: null,
141
+ testId: '',
142
142
  additionalProps: {},
143
143
  displayMode: null,
144
144
  variant: 'inline',
@@ -248,7 +248,7 @@ PegaDxilMyCurrency.defaultProps = {
248
248
  allowDecimals: true,
249
249
  currencyISOCode: 'USD',
250
250
  isoCodeSelection: 'constant',
251
- testId: null,
251
+ testId: "",
252
252
  displayMode: null,
253
253
  additionalProps: {},
254
254
  variant: 'inline',
@@ -221,7 +221,7 @@ PegaDxilMyDate.defaultProps = {
221
221
  showWeekNumber: false,
222
222
  nextYearRange: "",
223
223
  previousYearRange: "",
224
- testId: null,
224
+ testId: "",
225
225
  showAsFormattedText: false,
226
226
  additionalProps: {},
227
227
  displayMode: null,
@@ -217,7 +217,7 @@ PegaDxilMyDateTime.defaultProps = {
217
217
  showWeekNumber: false,
218
218
  nextYearRange: "",
219
219
  previousYearRange: "",
220
- testId: null,
220
+ testId: "",
221
221
  additionalProps: {},
222
222
  displayMode: null,
223
223
  variant: "inline",
@@ -222,7 +222,7 @@ PegaDxilMyDecimal.defaultProps = {
222
222
  disabled: false,
223
223
  readOnly: false,
224
224
  required: false,
225
- testId: null,
225
+ testId: "",
226
226
  decimalPrecision: '',
227
227
  showGroupSeparators: false,
228
228
  displayMode: null,
@@ -199,7 +199,7 @@ PegaDxilMyEmail.defaultProps = {
199
199
  disabled: false,
200
200
  readOnly: false,
201
201
  required: false,
202
- testId: null,
202
+ testId: '',
203
203
  displayMode: null,
204
204
  additionalProps: {},
205
205
  variant: 'inline',
@@ -272,7 +272,7 @@ PegaDxilMyInteger.defaultProps = {
272
272
  disabled: false,
273
273
  readOnly: false,
274
274
  required: false,
275
- testId: null,
275
+ testId: "",
276
276
  showGroupSeparators: false,
277
277
  displayMode: null,
278
278
  displayAs: 'input',
@@ -197,7 +197,7 @@ PegaDxilMyParagraph.defaultProps = {
197
197
  disabled: false,
198
198
  readOnly: false,
199
199
  required: false,
200
- testId: null,
200
+ testId: '',
201
201
  displayMode: null,
202
202
  fieldMetadata: {},
203
203
  additionalProps: {},
@@ -237,7 +237,7 @@ PegaDxilMyPercentage.defaultProps = {
237
237
  disabled: false,
238
238
  readOnly: false,
239
239
  required: false,
240
- testId: null,
240
+ testId: "",
241
241
  decimalPrecision: '',
242
242
  showGroupSeparators: false,
243
243
  additionalProps: {},
@@ -232,7 +232,7 @@ PegaDxilMyPhone.defaultProps = {
232
232
  readOnly: false,
233
233
  required: false,
234
234
  showCountryCode: true,
235
- testId: null,
235
+ testId: '',
236
236
  displayMode: null,
237
237
  additionalProps: {},
238
238
  variant: 'inline',
@@ -305,7 +305,7 @@ PegaDxilMyPicklist.defaultProps = {
305
305
  disabled: false,
306
306
  readOnly: false,
307
307
  required: false,
308
- testId: null,
308
+ testId: '',
309
309
  helperText: '',
310
310
  datasource: [],
311
311
  listType: '',
@@ -43,7 +43,7 @@ PegaDxilMyText.defaultProps = {
43
43
  disabled: false,
44
44
  readOnly: false,
45
45
  required: false,
46
- testId: null
46
+ testId: ''
47
47
  };
48
48
 
49
49
  PegaDxilMyText.propTypes = {
@@ -204,7 +204,7 @@ PegaDxilMyTextInput.defaultProps = {
204
204
  disabled: false,
205
205
  readOnly: false,
206
206
  required: false,
207
- testId: null,
207
+ testId: '',
208
208
  fieldMetadata: {},
209
209
  additionalProps: {},
210
210
  displayMode: null,
@@ -183,7 +183,7 @@ PegaDxilMyTimeOfDay.defaultProps = {
183
183
  required: false,
184
184
  pickerInterval: "30",
185
185
  clockFormat: 0,
186
- testId: null,
186
+ testId: "",
187
187
  additionalProps: {},
188
188
  displayMode: null,
189
189
  variant: "inline",
@@ -180,7 +180,7 @@ PegaDxilMyUrl.defaultProps = {
180
180
  disabled: false,
181
181
  readOnly: false,
182
182
  required: false,
183
- testId: null,
183
+ testId: '',
184
184
  displayMode: null,
185
185
  additionalProps: {},
186
186
  variant: 'inline',
@@ -116,31 +116,3 @@ export default function PegaDxilMyBoolean(props /* : PegaDxilMyBooleanProps */)
116
116
  );
117
117
  }
118
118
 
119
-
120
- // PegaDxilMyBoolean.defaultProps = {
121
- // validatemessage: "",
122
- // value: false,
123
- // label: "",
124
- // hideLabel: false,
125
- // helperText: "",
126
- // disabled: false,
127
- // readOnly: false,
128
- // required: false,
129
- // testId: null,
130
- // additionalProps: {}
131
- // };
132
-
133
- // PegaDxilMyBoolean.propTypes = {
134
- // getPConnect: PropTypes.func.isRequired,
135
- // validatemessage: PropTypes.string,
136
- // label: PropTypes.string,
137
- // hideLabel: PropTypes.bool,
138
- // helperText: PropTypes.string,
139
- // value: PropTypes.bool,
140
- // caption: PropTypes.string.isRequired,
141
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
142
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
143
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
144
- // testId: PropTypes.string,
145
- // additionalProps: PropTypes.objectOf(PropTypes.any)
146
- // };
@@ -125,32 +125,3 @@ export default function PegaDxilMyCurrency(props: PegaDxilMyCurrencyProps) {
125
125
  );
126
126
  }
127
127
 
128
- // PegaDxilMyCurrency.defaultProps = {
129
- // value: '',
130
- // placeholder: '',
131
- // validatemessage: '',
132
- // helperText: '',
133
- // displayAsStatus: false,
134
- // hideLabel: false,
135
- // disabled: false,
136
- // readOnly: false,
137
- // required: false,
138
- // testId: null,
139
- // displayMode: null
140
- // };
141
-
142
- // PegaDxilMyCurrency.propTypes = {
143
- // value: PropTypes.string,
144
- // placeholder: PropTypes.string,
145
- // displayMode: PropTypes.string,
146
- // displayAsStatus: PropTypes.bool,
147
- // label: PropTypes.string.isRequired,
148
- // hideLabel: PropTypes.bool,
149
- // getPConnect: PropTypes.func.isRequired,
150
- // validatemessage: PropTypes.string,
151
- // helperText: PropTypes.string,
152
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
153
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
154
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
155
- // testId: PropTypes.string
156
- // };
@@ -112,30 +112,3 @@ export default function PegaDxilMyDate(props: PegaDxilMyDateProps) {
112
112
  </StyledPegaDxilMyDateWrapper>
113
113
  );
114
114
  }
115
-
116
- // PegaDxilMyDate.defaultProps = {
117
- // value: undefined,
118
- // validatemessage: "",
119
- // helperText: "",
120
- // hideLabel: false,
121
- // disabled: false,
122
- // readOnly: false,
123
- // required: false,
124
- // testId: null,
125
- // displayMode: null,
126
- // variant: "inline"
127
- // };
128
-
129
- // PegaDxilMyDate.propTypes = {
130
- // value: PropTypes.string,
131
- // label: PropTypes.string.isRequired,
132
- // hideLabel: PropTypes.bool,
133
- // getPConnect: PropTypes.func.isRequired,
134
- // validatemessage: PropTypes.string,
135
- // helperText: PropTypes.string,
136
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
137
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
138
- // testId: PropTypes.string,
139
- // displayMode: PropTypes.string,
140
- // variant: PropTypes.string
141
- // };
@@ -110,30 +110,3 @@ export default function PegaDxilMyDateTime(props: PegaDxilMyDateTimeProps) {
110
110
  );
111
111
  }
112
112
 
113
- // PegaDxilMyDateTime.defaultProps = {
114
- // value: undefined,
115
- // validatemessage: "",
116
- // helperText: "",
117
- // hideLabel: false,
118
- // disabled: false,
119
- // readOnly: false,
120
- // required: false,
121
- // testId: null,
122
- // displayMode: null,
123
- // variant: "inline"
124
- // };
125
-
126
- // PegaDxilMyDateTime.propTypes = {
127
- // value: PropTypes.string,
128
- // label: PropTypes.string.isRequired,
129
- // hideLabel: PropTypes.bool,
130
- // getPConnect: PropTypes.func.isRequired,
131
- // validatemessage: PropTypes.string,
132
- // helperText: PropTypes.string,
133
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
134
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
135
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
136
- // testId: PropTypes.string,
137
- // displayMode: PropTypes.string,
138
- // variant: PropTypes.string
139
- // };
@@ -123,40 +123,3 @@ export default function PegaDxilMyDecimal(props: PegaDxilMyDecimalProps) {
123
123
  );
124
124
  }
125
125
 
126
- // PegaDxilMyDecimal.defaultProps = {
127
- // value: '',
128
- // placeholder: '',
129
- // validatemessage: '',
130
- // helperText: '',
131
- // displayAsStatus: false,
132
- // hideLabel: false,
133
- // disabled: false,
134
- // readOnly: false,
135
- // required: false,
136
- // testId: null,
137
- // fieldMetadata: {},
138
- // additionalProps: {},
139
- // displayMode: null,
140
- // isTableFormatter: false,
141
- // hasSuggestions: false
142
- // };
143
-
144
- // PegaDxilMyDecimal.propTypes = {
145
- // value: PropTypes.string,
146
- // placeholder: PropTypes.string,
147
- // displayMode: PropTypes.string,
148
- // displayAsStatus: PropTypes.bool,
149
- // label: PropTypes.string.isRequired,
150
- // hideLabel: PropTypes.bool,
151
- // getPConnect: PropTypes.func.isRequired,
152
- // validatemessage: PropTypes.string,
153
- // helperText: PropTypes.string,
154
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
155
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
156
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
157
- // testId: PropTypes.string,
158
- // fieldMetadata: PropTypes.objectOf(PropTypes.any),
159
- // additionalProps: PropTypes.objectOf(PropTypes.any),
160
- // isTableFormatter: PropTypes.bool,
161
- // hasSuggestions: PropTypes.bool
162
- // };
@@ -84,41 +84,3 @@ export default function PegaDxilMyEmail(props: PegaDxilMyEmailProps) {
84
84
  </StyledPegaDxilMyEmailWrapper>
85
85
  );
86
86
  }
87
-
88
- // PegaDxilMyEmail.defaultProps = {
89
- // value: '',
90
- // placeholder: '',
91
- // validatemessage: '',
92
- // helperText: '',
93
- // displayAsStatus: false,
94
- // hideLabel: false,
95
- // disabled: false,
96
- // readOnly: false,
97
- // required: false,
98
- // testId: null,
99
- // displayMode: null,
100
- // variant: 'inline',
101
- // formatter: '',
102
- // isTableFormatter: false,
103
- // hasSuggestions: false
104
- // };
105
-
106
- // PegaDxilMyEmail.propTypes = {
107
- // value: PropTypes.string,
108
- // placeholder: PropTypes.string,
109
- // displayMode: PropTypes.string,
110
- // displayAsStatus: PropTypes.bool,
111
- // label: PropTypes.string.isRequired,
112
- // hideLabel: PropTypes.bool,
113
- // getPConnect: PropTypes.func.isRequired,
114
- // validatemessage: PropTypes.string,
115
- // helperText: PropTypes.string,
116
- // disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
117
- // readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
118
- // required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
119
- // testId: PropTypes.string,
120
- // variant: PropTypes.string,
121
- // formatter: PropTypes.string,
122
- // isTableFormatter: PropTypes.bool,
123
- // hasSuggestions: PropTypes.bool
124
- // };