@pega/dx-component-builder-sdk 0.24.1 → 0.24.2

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 (88) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/demo.stories.tsx.mustache +1 -1
  3. package/src/tasks/create/templates/Constellation/field/Picklist/index.tsx.mustache +0 -1
  4. package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/date.ts.mustache +15 -37
  5. package/src/tasks/create/templates/Constellation/template/DETAILS/HighlightRender.tsx.mustache +2 -2
  6. package/src/tasks/create/templates/Constellation/template/DETAILS-region/HighlightRender.tsx.mustache +2 -2
  7. package/src/tasks/create/templates/Constellation/template/DETAILS-region/index.tsx.mustache +1 -1
  8. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.html.mustache +19 -18
  9. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +127 -44
  10. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/demo.stories.tsx.mustache +36 -15
  11. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.html.mustache +40 -0
  12. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/{text-url.component.scss.mustache → icon-button-url.component.scss.mustache} +4 -0
  13. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.ts.mustache +195 -0
  14. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/mock.ts.mustache +32 -12
  15. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.html.mustache +1 -0
  16. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.ts.mustache +2 -0
  17. package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.html.mustache +1 -0
  18. package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.ts.mustache +2 -0
  19. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.scss.mustache +1 -1
  20. package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.ts.mustache +2 -2
  21. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.html.mustache +1 -1
  22. package/src/tasks/create/templates/SDK-React/field/Boolean/demo.stories.tsx.mustache +1 -1
  23. package/src/tasks/create/templates/SDK-React/field/Boolean/mock.ts.mustache +8 -8
  24. package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +2 -2
  25. package/src/tasks/create/templates/SDK-React/field/Date/mock.ts.mustache +7 -7
  26. package/src/tasks/create/templates/SDK-React/field/DateTime/demo.stories.tsx.mustache +1 -1
  27. package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +2 -3
  28. package/src/tasks/create/templates/SDK-React/field/DateTime/mock.ts.mustache +6 -6
  29. package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +51 -35
  30. package/src/tasks/create/templates/SDK-React/field/Decimal/mock.ts.mustache +1 -1
  31. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/config.json.mustache +1 -1
  32. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/demo.stories.tsx.mustache +1 -1
  33. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +47 -37
  34. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/mock.ts.mustache +1 -1
  35. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/config.json.mustache +1 -1
  36. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +36 -21
  37. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/mock.ts.mustache +1 -1
  38. package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/demo.stories.tsx.mustache +58 -25
  39. package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +134 -53
  40. package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/mock.ts.mustache +2 -14
  41. package/src/tasks/create/templates/SDK-React/field/Integer/config.json.mustache +1 -1
  42. package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +19 -20
  43. package/src/tasks/create/templates/SDK-React/field/Integer/mock.ts.mustache +1 -1
  44. package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +26 -26
  45. package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/mock.ts.mustache +0 -1
  46. package/src/tasks/create/templates/SDK-React/field/Text/config.json.mustache +1 -1
  47. package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +0 -1
  48. package/src/tasks/create/templates/SDK-React/field/Text/mock.ts.mustache +1 -1
  49. package/src/tasks/create/templates/SDK-React/field/Text-Email/config.json.mustache +1 -1
  50. package/src/tasks/create/templates/SDK-React/field/Text-Email/mock.ts.mustache +1 -1
  51. package/src/tasks/create/templates/SDK-React/field/Text-Input/config.json.mustache +1 -1
  52. package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +0 -1
  53. package/src/tasks/create/templates/SDK-React/field/Text-Input/mock.ts.mustache +1 -1
  54. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +1 -3
  55. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/mock.ts.mustache +1 -1
  56. package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +1 -2
  57. package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +1 -2
  58. package/src/tasks/create/templates/SDK-React/field/Text-URL/mock.ts.mustache +1 -1
  59. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/demo.stories.tsx.mustache +4 -4
  60. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +0 -2
  61. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/mock.ts.mustache +6 -6
  62. package/src/tasks/create/templates/SDK-React/template/DETAILS/demo.stories.tsx.mustache +1 -4
  63. package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +3 -8
  64. package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.ts.mustache +181 -165
  65. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/demo.stories.tsx.mustache +1 -3
  66. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +3 -8
  67. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/mock.ts.mustache +207 -163
  68. package/src/tasks/create/templates/SDK-React/template/FORM/config.json.mustache +1 -1
  69. package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +0 -1
  70. package/src/tasks/create/templates/SDK-React/template/FORM/index.tsx.mustache +14 -16
  71. package/src/tasks/create/templates/SDK-React/template/FORM/utils.ts.mustache +1 -1
  72. package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.tsx.mustache +0 -2
  73. package/src/tasks/create/templates/SDK-React/template/FORM-region/mock.ts.mustache +121 -122
  74. package/src/tasks/create/templates/SDK-React/template/PAGE/OneColumn.tsx.mustache +12 -13
  75. package/src/tasks/create/templates/SDK-React/template/PAGE/demo.stories.tsx.mustache +1 -1
  76. package/src/tasks/create/templates/SDK-React/template/PAGE/index.tsx.mustache +3 -5
  77. package/src/tasks/create/templates/SDK-React/template/PAGE/mock.ts.mustache +8 -9
  78. package/src/tasks/create/templates/SDK-React/widget/CASE/config.json.mustache +2 -2
  79. package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +0 -1
  80. package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +3 -3
  81. package/src/tasks/create/templates/SDK-React/widget/PAGE/config.json.mustache +43 -43
  82. package/src/tasks/create/templates/SDK-React/widget/PAGE/mock.ts.mustache +1 -1
  83. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +1 -2
  84. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +0 -1
  85. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/mock.ts.mustache +0 -1
  86. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/text-url.component.html.mustache +0 -29
  87. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/text-url.component.ts.mustache +0 -179
  88. /package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/{text-url.component.spec.ts.mustache → icon-button-url.component.spec.ts.mustache} +0 -0
@@ -1,120 +1,124 @@
1
1
  const operatorDetails = {
2
2
  data: {
3
- pzLoadTime: "January 18, 2023 10:33:19 AM EST",
4
- pzPageNameHash: "_pa1519192551088960pz",
3
+ pzLoadTime: 'January 18, 2023 10:33:19 AM EST',
4
+ pzPageNameHash: '_pa1519192551088960pz',
5
5
  pyOperatorInfo: {
6
- pyUserName: "french DigV2",
7
- pyPosition: "",
8
- pyImageInsKey: "",
6
+ pyUserName: 'french DigV2',
7
+ pyPosition: '',
8
+ pyImageInsKey: '',
9
9
  pySkills: [
10
10
  {
11
- pySkillName: "",
12
- pzIndexOwnerKey: "DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2",
13
- pySkillRating: 0,
14
- },
11
+ pySkillName: '',
12
+ pzIndexOwnerKey: 'DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2',
13
+ pySkillRating: 0
14
+ }
15
15
  ],
16
- pyReportToUserName: "",
17
- pyReportTo: "",
18
- pyOrganization: "DXIL",
19
- pyTitle: "",
20
- pyLabel: "frenchTest.DigV2",
21
- pyEmailAddress: "User@DigV2",
22
- pyTelephone: "",
23
- },
16
+ pyReportToUserName: '',
17
+ pyReportTo: '',
18
+ pyOrganization: 'DXIL',
19
+ pyTitle: '',
20
+ pyLabel: 'frenchTest.DigV2',
21
+ pyEmailAddress: 'User@DigV2',
22
+ pyTelephone: ''
23
+ }
24
24
  },
25
25
  status: 200,
26
- statusText: "",
26
+ statusText: '',
27
27
  headers: {
28
- "content-length": "435",
29
- "content-type": "application/json;charset=UTF-8",
28
+ 'content-length': '435',
29
+ 'content-type': 'application/json;charset=UTF-8'
30
30
  },
31
- request: {},
31
+ request: {}
32
32
  };
33
33
 
34
34
  export default operatorDetails;
35
35
 
36
36
  export const pyReviewRaw = {
37
- name: "pyReview",
38
- type: "View",
37
+ name: 'pyReview',
38
+ type: 'View',
39
39
  config: {
40
- template: "Details",
41
- ruleClass: "MyCo-MyCompon-Work-MyComponents",
40
+ template: 'Details',
41
+ ruleClass: 'MyCo-MyCompon-Work-MyComponents',
42
42
  showLabel: true,
43
- label: "@L Details",
44
- localeReference: "@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW",
43
+ label: '@L Details',
44
+ localeReference: '@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
45
45
  showHighlightedData: true,
46
46
  highlightedData: [
47
47
  {
48
- type: "TextInput",
48
+ type: 'TextInput',
49
49
  config: {
50
- value: "@P .pyStatusWork",
51
- label: "@L Work Status",
52
- displayMode: "STACKED_LARGE_VAL",
53
- displayAsStatus: true,
54
- },
50
+ value: '@P .pyStatusWork',
51
+ label: '@L Work Status',
52
+ displayMode: 'STACKED_LARGE_VAL',
53
+ displayAsStatus: true
54
+ }
55
55
  },
56
56
  {
57
- type: "TextInput",
57
+ type: 'TextInput',
58
58
  config: {
59
- value: "@P .pyID",
60
- label: "@L Case ID",
61
- displayMode: "STACKED_LARGE_VAL",
62
- },
59
+ value: '@P .pyID',
60
+ label: '@L Case ID',
61
+ displayMode: 'STACKED_LARGE_VAL'
62
+ }
63
63
  },
64
64
  {
65
- type: "DateTime",
65
+ type: 'DateTime',
66
66
  config: {
67
- value: "@P .pxCreateDateTime",
68
- label: "@L Create date/time",
69
- displayMode: "STACKED_LARGE_VAL",
70
- },
67
+ value: '@P .pxCreateDateTime',
68
+ label: '@L Create date/time',
69
+ displayMode: 'STACKED_LARGE_VAL'
70
+ }
71
71
  },
72
72
  {
73
- type: "UserReference",
73
+ type: 'UserReference',
74
74
  config: {
75
- label: "@L Create Operator",
76
- value: "@USER .pxCreateOperator",
77
- placeholder: "Select...",
78
- displayMode: "STACKED_LARGE_VAL",
79
- },
80
- },
75
+ label: '@L Create Operator',
76
+ value: '@USER .pxCreateOperator',
77
+ placeholder: 'Select...',
78
+ displayMode: 'STACKED_LARGE_VAL'
79
+ }
80
+ }
81
81
  ],
82
82
  inheritedProps: [
83
83
  {
84
- prop: "label",
85
- value: "@L Details",
84
+ prop: 'label',
85
+ value: '@L Details'
86
86
  },
87
87
  {
88
- prop: "showLabel",
89
- value: true,
90
- },
91
- ],
88
+ prop: 'showLabel',
89
+ value: true
90
+ }
91
+ ]
92
92
  },
93
93
  children: [
94
94
  {
95
- name: "A",
96
- type: "Region",
95
+ name: 'A',
96
+ type: 'Region',
97
97
  getPConnect: () => {
98
98
  return {
99
99
  getRawMetadata: () => {
100
100
  return pyReviewRaw.children[0];
101
- },
101
+ }
102
102
  };
103
103
  },
104
104
  children: [
105
105
  {
106
106
  readOnly: undefined,
107
- placeholder: "First Name",
108
- value: "John",
109
- label: "First Name",
107
+ placeholder: 'First Name',
108
+ value: 'John',
109
+ label: 'First Name',
110
110
  hasSuggestions: false,
111
- displayMode: "LABELS_LEFT",
111
+ displayMode: 'LABELS_LEFT',
112
112
  getPConnect: () => {
113
113
  return {
114
114
  getActionsApi: () => {
115
115
  return {
116
- updateFieldValue: () => {/* nothing */},
117
- triggerFieldChange: () => {/* nothing */}
116
+ updateFieldValue: () => {
117
+ /* nothing */
118
+ },
119
+ triggerFieldChange: () => {
120
+ /* nothing */
121
+ }
118
122
  };
119
123
  },
120
124
  getStateProps: () => {
@@ -125,17 +129,21 @@ export const pyReviewRaw = {
125
129
  },
126
130
  {
127
131
  readOnly: undefined,
128
- placeholder: "Middle Name",
129
- value: "",
130
- label: "Middle Name",
132
+ placeholder: 'Middle Name',
133
+ value: '',
134
+ label: 'Middle Name',
131
135
  hasSuggestions: false,
132
- displayMode: "LABELS_LEFT",
136
+ displayMode: 'LABELS_LEFT',
133
137
  getPConnect: () => {
134
138
  return {
135
139
  getActionsApi: () => {
136
140
  return {
137
- updateFieldValue: () => {/* nothing */},
138
- triggerFieldChange: () => {/* nothing */}
141
+ updateFieldValue: () => {
142
+ /* nothing */
143
+ },
144
+ triggerFieldChange: () => {
145
+ /* nothing */
146
+ }
139
147
  };
140
148
  },
141
149
  getStateProps: () => {
@@ -146,17 +154,21 @@ export const pyReviewRaw = {
146
154
  },
147
155
  {
148
156
  readOnly: undefined,
149
- placeholder: "Last Name",
150
- value: "Doe",
151
- label: "Last Name",
157
+ placeholder: 'Last Name',
158
+ value: 'Doe',
159
+ label: 'Last Name',
152
160
  hasSuggestions: false,
153
- displayMode: "LABELS_LEFT",
161
+ displayMode: 'LABELS_LEFT',
154
162
  getPConnect: () => {
155
163
  return {
156
164
  getActionsApi: () => {
157
165
  return {
158
- updateFieldValue: () => {/* nothing */},
159
- triggerFieldChange: () => {/* nothing */}
166
+ updateFieldValue: () => {
167
+ /* nothing */
168
+ },
169
+ triggerFieldChange: () => {
170
+ /* nothing */
171
+ }
160
172
  };
161
173
  },
162
174
  getStateProps: () => {
@@ -166,57 +178,61 @@ export const pyReviewRaw = {
166
178
  }
167
179
  },
168
180
  {
169
- value: "john@doe.com",
170
- label: "Email",
181
+ value: 'john@doe.com',
182
+ label: 'Email',
171
183
  required: true,
172
- testId: "CE8AE9DA5B7CD6C3DF2929543A9AF92D",
184
+ testId: 'CE8AE9DA5B7CD6C3DF2929543A9AF92D',
173
185
  hasSuggestions: false,
174
- displayMode: "LABELS_LEFT",
186
+ displayMode: 'LABELS_LEFT'
175
187
  },
176
188
  {
177
189
  readOnly: undefined,
178
- value: "+16397975093",
179
- label: "Phone",
180
- displayMode: "LABELS_LEFT",
181
- hasSuggestions: false,
190
+ value: '+16397975093',
191
+ label: 'Phone',
192
+ displayMode: 'LABELS_LEFT',
193
+ hasSuggestions: false
182
194
  },
183
195
  {
184
196
  readOnly: undefined,
185
- placeholder: "Price",
186
- value: "90.99",
187
- label: "Price",
197
+ placeholder: 'Price',
198
+ value: '90.99',
199
+ label: 'Price',
188
200
  hasSuggestions: false,
189
- displayMode: "LABELS_LEFT",
201
+ displayMode: 'LABELS_LEFT',
190
202
  getPConnect: () => {
191
203
  return {
192
- getActionsApi: () => {/* nothing */},
204
+ getActionsApi: () => {
205
+ /* nothing */
206
+ },
193
207
  getStateProps: () => {
194
208
  return {
195
- value: "",
209
+ value: ''
196
210
  };
197
211
  },
198
212
  getComponentName: () => {
199
- return "currency";
200
- },
213
+ return 'currency';
214
+ }
201
215
  };
202
- },
216
+ }
203
217
  },
204
218
  {
205
219
  readOnly: undefined,
206
- value: "100 Mbps",
207
- label: "Internet Plan",
220
+ value: '100 Mbps',
221
+ label: 'Internet Plan',
208
222
  hasSuggestions: false,
209
- displayMode: "LABELS_LEFT",
223
+ displayMode: 'LABELS_LEFT',
210
224
  getPConnect: () => {
211
225
  return {
212
- getActionsApi: () => {/* nothing */},
226
+ getActionsApi: () => {
227
+ /* nothing */
228
+ },
213
229
  getStateProps: () => {
214
230
  return {
215
- value: "",
231
+ value: ''
216
232
  };
217
233
  },
218
234
  getComponentName: () => {
219
- return "radio";
235
+ return 'radio';
220
236
  },
221
237
  getContextName: () => {
222
238
  return 'app/primary_1';
@@ -242,109 +258,109 @@ export const pyReviewRaw = {
242
258
  },
243
259
  getLocalizedValue: val => {
244
260
  return val;
245
- },
261
+ }
246
262
  };
247
- },
263
+ }
248
264
  },
249
265
  {
250
- label: "Update operator",
251
- createLabel: "Created",
252
- updateLabel: "Updated",
253
- updateDateTime: "2023-03-10T12:53:04.670Z",
254
- createDateTime: "2023-03-10T12:52:20.054Z",
255
- updateOperator: {
256
- userId: "User.DigV2",
257
- userName: "User DigV2",
258
- },
259
- createOperator: {
260
- userId: "User.DigV2",
261
- userName: "User DigV2",
262
- },
263
- },
264
- ],
265
- },
266
+ label: 'Update operator',
267
+ createLabel: 'Created',
268
+ updateLabel: 'Updated',
269
+ updateDateTime: '2023-03-10T12:53:04.670Z',
270
+ createDateTime: '2023-03-10T12:52:20.054Z',
271
+ updateOperator: {
272
+ userId: 'User.DigV2',
273
+ userName: 'User DigV2'
274
+ },
275
+ createOperator: {
276
+ userId: 'User.DigV2',
277
+ userName: 'User DigV2'
278
+ }
279
+ }
280
+ ]
281
+ }
266
282
  ],
267
- classID: "MyCo-MyCompon-Work-MyComponents",
283
+ classID: 'MyCo-MyCompon-Work-MyComponents'
268
284
  };
269
285
 
270
286
  export const pyReviewResolved = {
271
287
  readOnly: true,
272
- template: "Details",
273
- ruleClass: "MyCo-MyCompon-Work-MyComponents",
288
+ template: 'Details',
289
+ ruleClass: 'MyCo-MyCompon-Work-MyComponents',
274
290
  showLabel: true,
275
- label: "Details",
276
- localeReference: "MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW",
291
+ label: 'Details',
292
+ localeReference: 'MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
277
293
  showHighlightedData: true,
278
294
  highlightedData: [
279
295
  {
280
- type: "TextInput",
296
+ type: 'TextInput',
281
297
  config: {
282
- value: "New",
283
- label: "Work Status",
284
- displayMode: "STACKED_LARGE_VAL",
285
- displayAsStatus: true,
286
- },
298
+ value: 'New',
299
+ label: 'Work Status',
300
+ displayMode: 'STACKED_LARGE_VAL',
301
+ displayAsStatus: true
302
+ }
287
303
  },
288
304
  {
289
- type: "TextInput",
305
+ type: 'TextInput',
290
306
  config: {
291
- value: "M-1002",
292
- label: "Case ID",
293
- displayMode: "STACKED_LARGE_VAL",
294
- },
307
+ value: 'M-1002',
308
+ label: 'Case ID',
309
+ displayMode: 'STACKED_LARGE_VAL'
310
+ }
295
311
  },
296
312
  {
297
- type: "DateTime",
313
+ type: 'DateTime',
298
314
  config: {
299
- value: "2022-12-11T20:06:27.232Z",
300
- label: "Create date/time",
301
- displayMode: "STACKED_LARGE_VAL",
302
- },
315
+ value: '2022-12-11T20:06:27.232Z',
316
+ label: 'Create date/time',
317
+ displayMode: 'STACKED_LARGE_VAL'
318
+ }
303
319
  },
304
320
  {
305
- type: "UserReference",
321
+ type: 'UserReference',
306
322
  config: {
307
- label: "Create Operator",
323
+ label: 'Create Operator',
308
324
  value: {
309
- userId: "conns",
310
- userName: "Sara Connor",
325
+ userId: 'conns',
326
+ userName: 'Sara Connor'
311
327
  },
312
- placeholder: "Select...",
313
- displayMode: "STACKED_LARGE_VAL",
314
- },
315
- },
328
+ placeholder: 'Select...',
329
+ displayMode: 'STACKED_LARGE_VAL'
330
+ }
331
+ }
316
332
  ],
317
- displayMode: "LABELS_LEFT",
333
+ displayMode: 'LABELS_LEFT'
318
334
  };
319
335
 
320
336
  export const regionChildrenResolved = [
321
337
  {
322
338
  readOnly: true,
323
- value: "",
324
- label: "SLA Deadline",
325
- displayMode: "LABELS_LEFT",
339
+ value: '',
340
+ label: 'SLA Deadline',
341
+ displayMode: 'LABELS_LEFT'
326
342
  },
327
343
  {
328
344
  readOnly: true,
329
- value: "",
330
- label: "SLA Goal",
331
- displayMode: "LABELS_LEFT",
345
+ value: '',
346
+ label: 'SLA Goal',
347
+ displayMode: 'LABELS_LEFT'
332
348
  },
333
349
  {
334
350
  readOnly: true,
335
- value: "",
336
- label: "SLA Start Time",
337
- listType: "associated",
351
+ value: '',
352
+ label: 'SLA Start Time',
353
+ listType: 'associated',
338
354
  datasource: [
339
355
  {
340
- key: "AssignmentCreation",
341
- value: "The creation time of the Assignment",
356
+ key: 'AssignmentCreation',
357
+ value: 'The creation time of the Assignment'
342
358
  },
343
359
  {
344
- key: "CurrentTime",
345
- value: "Current Date Time",
346
- },
360
+ key: 'CurrentTime',
361
+ value: 'Current Date Time'
362
+ }
347
363
  ],
348
- displayMode: "LABELS_LEFT",
349
- },
350
- ];
364
+ displayMode: 'LABELS_LEFT'
365
+ }
366
+ ];
@@ -77,7 +77,5 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
77
77
  };
78
78
 
79
79
  Base{{COMPONENT_CLASS_NAME}}.args = {
80
- showHighlightedData: false,
81
- label: 'Details Region',
82
- showLabel: true
80
+ showHighlightedData: false
83
81
  };
@@ -5,12 +5,10 @@ import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
6
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
 
8
- import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
8
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
9
9
 
10
10
  interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
11
11
  // If any, enter additional props that only exist on this component
12
- showLabel: boolean;
13
- label: string;
14
12
  showHighlightedData: boolean;
15
13
  }
16
14
  // Duplicated runtime code from React SDK
@@ -19,10 +17,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
19
17
  // Get emitted components from map (so we can get any override that may exist)
20
18
  const FieldGroup = getComponentFromMap('FieldGroup');
21
19
 
22
- const { label, showLabel = true, getPConnect, showHighlightedData = false } = props;
23
-
24
- // Get the inherited props from the parent to determine label settings
25
- const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
20
+ const { getPConnect, showHighlightedData = false } = props;
26
21
 
27
22
  // Set display mode prop and re-create the children so this part of the dom tree renders
28
23
  // in a readonly (display) mode instead of a editable
@@ -57,7 +52,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
57
52
  <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
58
53
  {{! pick new delimiters for mustache }}
59
54
  {{=<% %>=}}
60
- <FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
55
+ <FieldGroup>
61
56
  {showHighlightedData && highlightedDataArr.length > 0 && (
62
57
  <Grid container spacing={1} style={{ padding: '0 0 1em' }}>
63
58
  {highlightedDataArr.map((child, i) => (