@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.
- package/package.json +1 -1
- package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/field/Picklist/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/date.ts.mustache +15 -37
- package/src/tasks/create/templates/Constellation/template/DETAILS/HighlightRender.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/HighlightRender.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.html.mustache +19 -18
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +127 -44
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/demo.stories.tsx.mustache +36 -15
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.html.mustache +40 -0
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/{text-url.component.scss.mustache → icon-button-url.component.scss.mustache} +4 -0
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.ts.mustache +195 -0
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/mock.ts.mustache +32 -12
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.html.mustache +1 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.ts.mustache +2 -0
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.html.mustache +1 -0
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.ts.mustache +2 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.scss.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.ts.mustache +2 -2
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.html.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Boolean/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Boolean/mock.ts.mustache +8 -8
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Date/mock.ts.mustache +7 -7
- package/src/tasks/create/templates/SDK-React/field/DateTime/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +2 -3
- package/src/tasks/create/templates/SDK-React/field/DateTime/mock.ts.mustache +6 -6
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +51 -35
- package/src/tasks/create/templates/SDK-React/field/Decimal/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +47 -37
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +36 -21
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/demo.stories.tsx.mustache +58 -25
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +134 -53
- package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/mock.ts.mustache +2 -14
- package/src/tasks/create/templates/SDK-React/field/Integer/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +19 -20
- package/src/tasks/create/templates/SDK-React/field/Integer/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +26 -26
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Email/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Email/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Input/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Input/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +1 -3
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/SDK-React/field/Text-URL/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/demo.stories.tsx.mustache +4 -4
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +0 -2
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/mock.ts.mustache +6 -6
- package/src/tasks/create/templates/SDK-React/template/DETAILS/demo.stories.tsx.mustache +1 -4
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +3 -8
- package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.ts.mustache +181 -165
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/demo.stories.tsx.mustache +1 -3
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +3 -8
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/mock.ts.mustache +207 -163
- package/src/tasks/create/templates/SDK-React/template/FORM/config.json.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/template/FORM/index.tsx.mustache +14 -16
- package/src/tasks/create/templates/SDK-React/template/FORM/utils.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.tsx.mustache +0 -2
- package/src/tasks/create/templates/SDK-React/template/FORM-region/mock.ts.mustache +121 -122
- package/src/tasks/create/templates/SDK-React/template/PAGE/OneColumn.tsx.mustache +12 -13
- package/src/tasks/create/templates/SDK-React/template/PAGE/demo.stories.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/template/PAGE/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/SDK-React/template/PAGE/mock.ts.mustache +8 -9
- package/src/tasks/create/templates/SDK-React/widget/CASE/config.json.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/widget/PAGE/config.json.mustache +43 -43
- package/src/tasks/create/templates/SDK-React/widget/PAGE/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +0 -1
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/text-url.component.html.mustache +0 -29
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/text-url.component.ts.mustache +0 -179
- /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:
|
|
4
|
-
pzPageNameHash:
|
|
3
|
+
pzLoadTime: 'January 18, 2023 10:33:19 AM EST',
|
|
4
|
+
pzPageNameHash: '_pa1519192551088960pz',
|
|
5
5
|
pyOperatorInfo: {
|
|
6
|
-
pyUserName:
|
|
7
|
-
pyPosition:
|
|
8
|
-
pyImageInsKey:
|
|
6
|
+
pyUserName: 'french DigV2',
|
|
7
|
+
pyPosition: '',
|
|
8
|
+
pyImageInsKey: '',
|
|
9
9
|
pySkills: [
|
|
10
10
|
{
|
|
11
|
-
pySkillName:
|
|
12
|
-
pzIndexOwnerKey:
|
|
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:
|
|
19
|
-
pyTitle:
|
|
20
|
-
pyLabel:
|
|
21
|
-
pyEmailAddress:
|
|
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
|
-
|
|
29
|
-
|
|
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:
|
|
38
|
-
type:
|
|
37
|
+
name: 'pyReview',
|
|
38
|
+
type: 'View',
|
|
39
39
|
config: {
|
|
40
|
-
template:
|
|
41
|
-
ruleClass:
|
|
40
|
+
template: 'Details',
|
|
41
|
+
ruleClass: 'MyCo-MyCompon-Work-MyComponents',
|
|
42
42
|
showLabel: true,
|
|
43
|
-
label:
|
|
44
|
-
localeReference:
|
|
43
|
+
label: '@L Details',
|
|
44
|
+
localeReference: '@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
|
|
45
45
|
showHighlightedData: true,
|
|
46
46
|
highlightedData: [
|
|
47
47
|
{
|
|
48
|
-
type:
|
|
48
|
+
type: 'TextInput',
|
|
49
49
|
config: {
|
|
50
|
-
value:
|
|
51
|
-
label:
|
|
52
|
-
displayMode:
|
|
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:
|
|
57
|
+
type: 'TextInput',
|
|
58
58
|
config: {
|
|
59
|
-
value:
|
|
60
|
-
label:
|
|
61
|
-
displayMode:
|
|
62
|
-
}
|
|
59
|
+
value: '@P .pyID',
|
|
60
|
+
label: '@L Case ID',
|
|
61
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
62
|
+
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
type:
|
|
65
|
+
type: 'DateTime',
|
|
66
66
|
config: {
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
displayMode:
|
|
70
|
-
}
|
|
67
|
+
value: '@P .pxCreateDateTime',
|
|
68
|
+
label: '@L Create date/time',
|
|
69
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
70
|
+
}
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
type:
|
|
73
|
+
type: 'UserReference',
|
|
74
74
|
config: {
|
|
75
|
-
label:
|
|
76
|
-
value:
|
|
77
|
-
placeholder:
|
|
78
|
-
displayMode:
|
|
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:
|
|
85
|
-
value:
|
|
84
|
+
prop: 'label',
|
|
85
|
+
value: '@L Details'
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
prop:
|
|
89
|
-
value: true
|
|
90
|
-
}
|
|
91
|
-
]
|
|
88
|
+
prop: 'showLabel',
|
|
89
|
+
value: true
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
92
|
},
|
|
93
93
|
children: [
|
|
94
94
|
{
|
|
95
|
-
name:
|
|
96
|
-
type:
|
|
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:
|
|
108
|
-
value:
|
|
109
|
-
label:
|
|
107
|
+
placeholder: 'First Name',
|
|
108
|
+
value: 'John',
|
|
109
|
+
label: 'First Name',
|
|
110
110
|
hasSuggestions: false,
|
|
111
|
-
displayMode:
|
|
111
|
+
displayMode: 'LABELS_LEFT',
|
|
112
112
|
getPConnect: () => {
|
|
113
113
|
return {
|
|
114
114
|
getActionsApi: () => {
|
|
115
115
|
return {
|
|
116
|
-
updateFieldValue: () => {
|
|
117
|
-
|
|
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:
|
|
129
|
-
value:
|
|
130
|
-
label:
|
|
132
|
+
placeholder: 'Middle Name',
|
|
133
|
+
value: '',
|
|
134
|
+
label: 'Middle Name',
|
|
131
135
|
hasSuggestions: false,
|
|
132
|
-
displayMode:
|
|
136
|
+
displayMode: 'LABELS_LEFT',
|
|
133
137
|
getPConnect: () => {
|
|
134
138
|
return {
|
|
135
139
|
getActionsApi: () => {
|
|
136
140
|
return {
|
|
137
|
-
updateFieldValue: () => {
|
|
138
|
-
|
|
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:
|
|
150
|
-
value:
|
|
151
|
-
label:
|
|
157
|
+
placeholder: 'Last Name',
|
|
158
|
+
value: 'Doe',
|
|
159
|
+
label: 'Last Name',
|
|
152
160
|
hasSuggestions: false,
|
|
153
|
-
displayMode:
|
|
161
|
+
displayMode: 'LABELS_LEFT',
|
|
154
162
|
getPConnect: () => {
|
|
155
163
|
return {
|
|
156
164
|
getActionsApi: () => {
|
|
157
165
|
return {
|
|
158
|
-
updateFieldValue: () => {
|
|
159
|
-
|
|
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:
|
|
170
|
-
label:
|
|
181
|
+
value: 'john@doe.com',
|
|
182
|
+
label: 'Email',
|
|
171
183
|
required: true,
|
|
172
|
-
testId:
|
|
184
|
+
testId: 'CE8AE9DA5B7CD6C3DF2929543A9AF92D',
|
|
173
185
|
hasSuggestions: false,
|
|
174
|
-
displayMode:
|
|
186
|
+
displayMode: 'LABELS_LEFT'
|
|
175
187
|
},
|
|
176
188
|
{
|
|
177
189
|
readOnly: undefined,
|
|
178
|
-
value:
|
|
179
|
-
label:
|
|
180
|
-
displayMode:
|
|
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:
|
|
186
|
-
value:
|
|
187
|
-
label:
|
|
197
|
+
placeholder: 'Price',
|
|
198
|
+
value: '90.99',
|
|
199
|
+
label: 'Price',
|
|
188
200
|
hasSuggestions: false,
|
|
189
|
-
displayMode:
|
|
201
|
+
displayMode: 'LABELS_LEFT',
|
|
190
202
|
getPConnect: () => {
|
|
191
203
|
return {
|
|
192
|
-
getActionsApi: () => {
|
|
204
|
+
getActionsApi: () => {
|
|
205
|
+
/* nothing */
|
|
206
|
+
},
|
|
193
207
|
getStateProps: () => {
|
|
194
208
|
return {
|
|
195
|
-
value:
|
|
209
|
+
value: ''
|
|
196
210
|
};
|
|
197
211
|
},
|
|
198
212
|
getComponentName: () => {
|
|
199
|
-
return
|
|
200
|
-
}
|
|
213
|
+
return 'currency';
|
|
214
|
+
}
|
|
201
215
|
};
|
|
202
|
-
}
|
|
216
|
+
}
|
|
203
217
|
},
|
|
204
218
|
{
|
|
205
219
|
readOnly: undefined,
|
|
206
|
-
value:
|
|
207
|
-
label:
|
|
220
|
+
value: '100 Mbps',
|
|
221
|
+
label: 'Internet Plan',
|
|
208
222
|
hasSuggestions: false,
|
|
209
|
-
displayMode:
|
|
223
|
+
displayMode: 'LABELS_LEFT',
|
|
210
224
|
getPConnect: () => {
|
|
211
225
|
return {
|
|
212
|
-
getActionsApi: () => {
|
|
226
|
+
getActionsApi: () => {
|
|
227
|
+
/* nothing */
|
|
228
|
+
},
|
|
213
229
|
getStateProps: () => {
|
|
214
230
|
return {
|
|
215
|
-
value:
|
|
231
|
+
value: ''
|
|
216
232
|
};
|
|
217
233
|
},
|
|
218
234
|
getComponentName: () => {
|
|
219
|
-
return
|
|
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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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:
|
|
283
|
+
classID: 'MyCo-MyCompon-Work-MyComponents'
|
|
268
284
|
};
|
|
269
285
|
|
|
270
286
|
export const pyReviewResolved = {
|
|
271
287
|
readOnly: true,
|
|
272
|
-
template:
|
|
273
|
-
ruleClass:
|
|
288
|
+
template: 'Details',
|
|
289
|
+
ruleClass: 'MyCo-MyCompon-Work-MyComponents',
|
|
274
290
|
showLabel: true,
|
|
275
|
-
label:
|
|
276
|
-
localeReference:
|
|
291
|
+
label: 'Details',
|
|
292
|
+
localeReference: 'MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
|
|
277
293
|
showHighlightedData: true,
|
|
278
294
|
highlightedData: [
|
|
279
295
|
{
|
|
280
|
-
type:
|
|
296
|
+
type: 'TextInput',
|
|
281
297
|
config: {
|
|
282
|
-
value:
|
|
283
|
-
label:
|
|
284
|
-
displayMode:
|
|
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:
|
|
305
|
+
type: 'TextInput',
|
|
290
306
|
config: {
|
|
291
|
-
value:
|
|
292
|
-
label:
|
|
293
|
-
displayMode:
|
|
294
|
-
}
|
|
307
|
+
value: 'M-1002',
|
|
308
|
+
label: 'Case ID',
|
|
309
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
310
|
+
}
|
|
295
311
|
},
|
|
296
312
|
{
|
|
297
|
-
type:
|
|
313
|
+
type: 'DateTime',
|
|
298
314
|
config: {
|
|
299
|
-
value:
|
|
300
|
-
label:
|
|
301
|
-
displayMode:
|
|
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:
|
|
321
|
+
type: 'UserReference',
|
|
306
322
|
config: {
|
|
307
|
-
label:
|
|
323
|
+
label: 'Create Operator',
|
|
308
324
|
value: {
|
|
309
|
-
userId:
|
|
310
|
-
userName:
|
|
325
|
+
userId: 'conns',
|
|
326
|
+
userName: 'Sara Connor'
|
|
311
327
|
},
|
|
312
|
-
placeholder:
|
|
313
|
-
displayMode:
|
|
314
|
-
}
|
|
315
|
-
}
|
|
328
|
+
placeholder: 'Select...',
|
|
329
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
330
|
+
}
|
|
331
|
+
}
|
|
316
332
|
],
|
|
317
|
-
displayMode:
|
|
333
|
+
displayMode: 'LABELS_LEFT'
|
|
318
334
|
};
|
|
319
335
|
|
|
320
336
|
export const regionChildrenResolved = [
|
|
321
337
|
{
|
|
322
338
|
readOnly: true,
|
|
323
|
-
value:
|
|
324
|
-
label:
|
|
325
|
-
displayMode:
|
|
339
|
+
value: '',
|
|
340
|
+
label: 'SLA Deadline',
|
|
341
|
+
displayMode: 'LABELS_LEFT'
|
|
326
342
|
},
|
|
327
343
|
{
|
|
328
344
|
readOnly: true,
|
|
329
|
-
value:
|
|
330
|
-
label:
|
|
331
|
-
displayMode:
|
|
345
|
+
value: '',
|
|
346
|
+
label: 'SLA Goal',
|
|
347
|
+
displayMode: 'LABELS_LEFT'
|
|
332
348
|
},
|
|
333
349
|
{
|
|
334
350
|
readOnly: true,
|
|
335
|
-
value:
|
|
336
|
-
label:
|
|
337
|
-
listType:
|
|
351
|
+
value: '',
|
|
352
|
+
label: 'SLA Start Time',
|
|
353
|
+
listType: 'associated',
|
|
338
354
|
datasource: [
|
|
339
355
|
{
|
|
340
|
-
key:
|
|
341
|
-
value:
|
|
356
|
+
key: 'AssignmentCreation',
|
|
357
|
+
value: 'The creation time of the Assignment'
|
|
342
358
|
},
|
|
343
359
|
{
|
|
344
|
-
key:
|
|
345
|
-
value:
|
|
346
|
-
}
|
|
360
|
+
key: 'CurrentTime',
|
|
361
|
+
value: 'Current Date Time'
|
|
362
|
+
}
|
|
347
363
|
],
|
|
348
|
-
displayMode:
|
|
349
|
-
}
|
|
350
|
-
];
|
|
364
|
+
displayMode: 'LABELS_LEFT'
|
|
365
|
+
}
|
|
366
|
+
];
|
|
@@ -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
|
|
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 {
|
|
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
|
|
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) => (
|