@pega/dx-component-builder-sdk 0.1.7 → 0.1.9
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/constants.js +14 -2
- package/src/tasks/build/helper.js +1 -1
- package/src/tasks/bundle/index.js +6 -0
- package/src/tasks/create/index.js +8 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +60 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Boolean/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +61 -0
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +41 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +179 -67
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +40 -16
- package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/{date-utils.js → date-utils.js.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +40 -15
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +22 -17
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +25 -17
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +3 -4
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +22 -17
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +8 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +22 -17
- package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +42 -14
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +44 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/mock.stories.js.mustache +67 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +21 -16
- package/src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache +13 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +20 -16
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +44 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.stories.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/{StatusWork.js → StatusWork.jsx} +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +21 -17
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +46 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +21 -17
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +44 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +19 -17
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +46 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.stories.js.mustache +37 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +19 -17
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.jsx.mustache +24 -16
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.stories.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +110 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache +179 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +3 -6
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.jsx.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +118 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache +215 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +89 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +6 -10
- package/src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache +125 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +100 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +5 -11
- package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache +131 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/{GetNextWork.js.mustache → GetNextWork.jsx.mustache} +6 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +102 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +9 -7
- package/src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache +94 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +78 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache +389 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +30 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.stories.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Avatar.js.mustache → Avatar.jsx.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Operator.js.mustache → Operator.jsx.mustache} +2 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +68 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +9 -9
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache +51 -0
- package/src/tasks/linter/index.js +2 -2
- package/src/tasks/map/map.js +0 -7
- package/src/tasks/override/index.js +38 -9
- package/src/tasks/publish/helper.js +16 -1
- package/src/tasks/publish-all/helper.js +7 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/picklist.js.mustache +0 -43
- package/src/tasks/create/templates/Constellation/Field/Text-Email/text-email.js.mustache +0 -43
- package/src/tasks/create/templates/Constellation/Field/Text-Input/text-input.js.mustache +0 -43
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/text-paragraph.js.mustache +0 -43
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/text-phone.js.mustache +0 -43
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
export const historyData = {
|
|
2
|
+
data: {
|
|
3
|
+
fetchDateTime: '2023-01-18T12:04:56.517Z',
|
|
4
|
+
pxObjClass: 'Pega-API-DataExploration-Data',
|
|
5
|
+
resultCount: 31,
|
|
6
|
+
data: [
|
|
7
|
+
{
|
|
8
|
+
pxTimeCreated: '2023-01-13T21:46:33.339Z',
|
|
9
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
10
|
+
pyPerformer: 'User DigV2',
|
|
11
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214633.339 GMT',
|
|
12
|
+
pxLongitude: null,
|
|
13
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214633.339 GMT',
|
|
14
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
15
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
16
|
+
pyMemo: null,
|
|
17
|
+
pxLatitude: null
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
pxTimeCreated: '2023-01-13T21:46:33.332Z',
|
|
21
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
22
|
+
pyPerformer: 'User DigV2',
|
|
23
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214633.332 GMT',
|
|
24
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214633.332 GMT',
|
|
25
|
+
pxLongitude: null,
|
|
26
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
27
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
28
|
+
pyMemo: null,
|
|
29
|
+
pxLatitude: null
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
pxTimeCreated: '2023-01-13T21:46:32.005Z',
|
|
33
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
34
|
+
pyPerformer: 'User DigV2',
|
|
35
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214632.005 GMT',
|
|
36
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214632.005 GMT',
|
|
37
|
+
pxLongitude: null,
|
|
38
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
39
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
40
|
+
pyMemo: null,
|
|
41
|
+
pxLatitude: null
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
pxTimeCreated: '2023-01-13T21:46:31.998Z',
|
|
45
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
46
|
+
pyPerformer: 'User DigV2',
|
|
47
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214631.998 GMT',
|
|
48
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214631.998 GMT',
|
|
49
|
+
pxLongitude: null,
|
|
50
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
51
|
+
pyMessageKey: "Assignment to 'complete task' removed via ticket.",
|
|
52
|
+
pxLatitude: null,
|
|
53
|
+
pyMemo: null
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
pxTimeCreated: '2023-01-13T21:46:31.175Z',
|
|
57
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
58
|
+
pyPerformer: 'User DigV2',
|
|
59
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214631.175 GMT',
|
|
60
|
+
pxLongitude: null,
|
|
61
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214631.175 GMT',
|
|
62
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
63
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
64
|
+
pxLatitude: null,
|
|
65
|
+
pyMemo: null
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
pxTimeCreated: '2023-01-13T21:46:31.168Z',
|
|
69
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
70
|
+
pyPerformer: 'User DigV2',
|
|
71
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214631.168 GMT',
|
|
72
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214631.168 GMT',
|
|
73
|
+
pxLongitude: null,
|
|
74
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
75
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
76
|
+
pyMemo: null,
|
|
77
|
+
pxLatitude: null
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
81
|
+
pxTimeCreated: '2023-01-13T21:46:29.893Z',
|
|
82
|
+
pyPerformer: 'User DigV2',
|
|
83
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214629.893 GMT',
|
|
84
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214629.893 GMT',
|
|
85
|
+
pxLongitude: null,
|
|
86
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
87
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
88
|
+
pyMemo: null,
|
|
89
|
+
pxLatitude: null
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
93
|
+
pxTimeCreated: '2023-01-13T21:46:29.887Z',
|
|
94
|
+
pyPerformer: 'User DigV2',
|
|
95
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214629.887 GMT',
|
|
96
|
+
pxLongitude: null,
|
|
97
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214629.887 GMT',
|
|
98
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
99
|
+
pyMessageKey: "Assignment to 'complete task' removed via ticket.",
|
|
100
|
+
pxLatitude: null,
|
|
101
|
+
pyMemo: null
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
pxTimeCreated: '2023-01-13T21:46:28.248Z',
|
|
105
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
106
|
+
pyPerformer: 'User DigV2',
|
|
107
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214628.248 GMT',
|
|
108
|
+
pxLongitude: null,
|
|
109
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214628.248 GMT',
|
|
110
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
111
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
112
|
+
pxLatitude: null,
|
|
113
|
+
pyMemo: null
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
117
|
+
pxTimeCreated: '2023-01-13T21:46:28.242Z',
|
|
118
|
+
pyPerformer: 'User DigV2',
|
|
119
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214628.242 GMT',
|
|
120
|
+
pxLongitude: null,
|
|
121
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214628.242 GMT',
|
|
122
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
123
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
124
|
+
pyMemo: null,
|
|
125
|
+
pxLatitude: null
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
129
|
+
pxTimeCreated: '2023-01-13T21:46:08.399Z',
|
|
130
|
+
pyPerformer: 'User DigV2',
|
|
131
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214608.399 GMT',
|
|
132
|
+
pxLongitude: null,
|
|
133
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214608.399 GMT',
|
|
134
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
135
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
136
|
+
pxLatitude: null,
|
|
137
|
+
pyMemo: null
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
pxTimeCreated: '2023-01-13T21:46:08.393Z',
|
|
141
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
142
|
+
pyPerformer: 'User DigV2',
|
|
143
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214608.393 GMT',
|
|
144
|
+
pxLongitude: null,
|
|
145
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214608.393 GMT',
|
|
146
|
+
pyMessageKey: "Assignment to 'complete task' removed via ticket.",
|
|
147
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
148
|
+
pxLatitude: null,
|
|
149
|
+
pyMemo: null
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
153
|
+
pxTimeCreated: '2023-01-13T21:46:07.584Z',
|
|
154
|
+
pyPerformer: 'User DigV2',
|
|
155
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214607.584 GMT',
|
|
156
|
+
pxLongitude: null,
|
|
157
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214607.584 GMT',
|
|
158
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
159
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
160
|
+
pyMemo: null,
|
|
161
|
+
pxLatitude: null
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
165
|
+
pxTimeCreated: '2023-01-13T21:46:07.579Z',
|
|
166
|
+
pyPerformer: 'User DigV2',
|
|
167
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214607.579 GMT',
|
|
168
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214607.579 GMT',
|
|
169
|
+
pxLongitude: null,
|
|
170
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
171
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
172
|
+
pxLatitude: null,
|
|
173
|
+
pyMemo: null
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
177
|
+
pxTimeCreated: '2023-01-13T21:46:06.262Z',
|
|
178
|
+
pyPerformer: 'User DigV2',
|
|
179
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214606.262 GMT',
|
|
180
|
+
pxLongitude: null,
|
|
181
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214606.262 GMT',
|
|
182
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
183
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
184
|
+
pyMemo: null,
|
|
185
|
+
pxLatitude: null
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
189
|
+
pxTimeCreated: '2023-01-13T21:46:06.256Z',
|
|
190
|
+
pyPerformer: 'User DigV2',
|
|
191
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214606.256 GMT',
|
|
192
|
+
pxLongitude: null,
|
|
193
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214606.256 GMT',
|
|
194
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
195
|
+
pyMessageKey: "Assignment to 'complete task' removed via ticket.",
|
|
196
|
+
pxLatitude: null,
|
|
197
|
+
pyMemo: null
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
201
|
+
pxTimeCreated: '2023-01-13T21:45:57.503Z',
|
|
202
|
+
pyPerformer: 'User DigV2',
|
|
203
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214557.503 GMT',
|
|
204
|
+
pxLongitude: null,
|
|
205
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214557.503 GMT',
|
|
206
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
207
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
208
|
+
pxLatitude: null,
|
|
209
|
+
pyMemo: null
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
213
|
+
pxTimeCreated: '2023-01-13T21:45:57.496Z',
|
|
214
|
+
pyPerformer: 'User DigV2',
|
|
215
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214557.496 GMT',
|
|
216
|
+
pxLongitude: null,
|
|
217
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214557.496 GMT',
|
|
218
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
219
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
220
|
+
pyMemo: null,
|
|
221
|
+
pxLatitude: null
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
225
|
+
pxTimeCreated: '2023-01-13T21:45:36.250Z',
|
|
226
|
+
pyPerformer: 'User DigV2',
|
|
227
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214536.250 GMT',
|
|
228
|
+
pxLongitude: null,
|
|
229
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214536.250 GMT',
|
|
230
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
231
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
232
|
+
pxLatitude: null,
|
|
233
|
+
pyMemo: null
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
237
|
+
pxTimeCreated: '2023-01-13T21:45:36.244Z',
|
|
238
|
+
pyPerformer: 'User DigV2',
|
|
239
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214536.244 GMT',
|
|
240
|
+
pxLongitude: null,
|
|
241
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214536.244 GMT',
|
|
242
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
243
|
+
pyMessageKey: "Assignment to 'complete task' removed via ticket.",
|
|
244
|
+
pxLatitude: null,
|
|
245
|
+
pyMemo: null
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
pxTimeCreated: '2023-01-13T21:45:35.364Z',
|
|
249
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
250
|
+
pyPerformer: 'User DigV2',
|
|
251
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214535.364 GMT',
|
|
252
|
+
pxLongitude: null,
|
|
253
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214535.364 GMT',
|
|
254
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
255
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
256
|
+
pxLatitude: null,
|
|
257
|
+
pyMemo: null
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
pxTimeCreated: '2023-01-13T21:45:35.356Z',
|
|
261
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
262
|
+
pyPerformer: 'User DigV2',
|
|
263
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214535.356 GMT',
|
|
264
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214535.356 GMT',
|
|
265
|
+
pxLongitude: null,
|
|
266
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
267
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
268
|
+
pyMemo: null,
|
|
269
|
+
pxLatitude: null
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
273
|
+
pxTimeCreated: '2023-01-13T21:45:33.224Z',
|
|
274
|
+
pyPerformer: 'User DigV2',
|
|
275
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214533.224 GMT',
|
|
276
|
+
pxLongitude: null,
|
|
277
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214533.224 GMT',
|
|
278
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
279
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
280
|
+
pxLatitude: null,
|
|
281
|
+
pyMemo: null
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
pxTimeCreated: '2023-01-13T21:45:33.218Z',
|
|
285
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
286
|
+
pyPerformer: 'User DigV2',
|
|
287
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214533.218 GMT',
|
|
288
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214533.218 GMT',
|
|
289
|
+
pxLongitude: null,
|
|
290
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
291
|
+
pyMessageKey: "Assignment to 'complete task' removed via ticket.",
|
|
292
|
+
pxLatitude: null,
|
|
293
|
+
pyMemo: null
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
pxTimeCreated: '2023-01-13T21:45:32.436Z',
|
|
297
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
298
|
+
pyPerformer: 'User DigV2',
|
|
299
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214532.436 GMT',
|
|
300
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214532.436 GMT',
|
|
301
|
+
pxLongitude: null,
|
|
302
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
303
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
304
|
+
pxLatitude: null,
|
|
305
|
+
pyMemo: null
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
pxTimeCreated: '2023-01-13T21:45:32.430Z',
|
|
309
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
310
|
+
pyPerformer: 'User DigV2',
|
|
311
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214532.430 GMT',
|
|
312
|
+
pxLongitude: null,
|
|
313
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214532.430 GMT',
|
|
314
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'EmbeddedData'.",
|
|
315
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
316
|
+
pxLatitude: null,
|
|
317
|
+
pyMemo: null
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
pxTimeCreated: '2023-01-13T21:45:25.003Z',
|
|
321
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
322
|
+
pyPerformer: 'User DigV2',
|
|
323
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214525.003 GMT',
|
|
324
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214525.003 GMT',
|
|
325
|
+
pxLongitude: null,
|
|
326
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
327
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
328
|
+
pxLatitude: null,
|
|
329
|
+
pyMemo: null
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
333
|
+
pxTimeCreated: '2023-01-13T21:45:24.994Z',
|
|
334
|
+
pyPerformer: 'User DigV2',
|
|
335
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214524.994 GMT',
|
|
336
|
+
pxLongitude: null,
|
|
337
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214524.994 GMT',
|
|
338
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
339
|
+
pyMessageKey: "Assignment to 'complete task' completed by performing a 'Select Test'.",
|
|
340
|
+
pyMemo: null,
|
|
341
|
+
pxLatitude: null
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
345
|
+
pxTimeCreated: '2023-01-13T21:45:23.570Z',
|
|
346
|
+
pyPerformer: 'User DigV2',
|
|
347
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214523.570 GMT',
|
|
348
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214523.570 GMT',
|
|
349
|
+
pxLongitude: null,
|
|
350
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
351
|
+
pyMessageKey: "Assigned to User DigV2 to 'complete task' ",
|
|
352
|
+
pyMemo: null,
|
|
353
|
+
pxLatitude: null
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
357
|
+
pxTimeCreated: '2023-01-13T21:45:23.563Z',
|
|
358
|
+
pyPerformer: 'User DigV2',
|
|
359
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214523.563 GMT',
|
|
360
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214523.563 GMT',
|
|
361
|
+
pxLongitude: null,
|
|
362
|
+
pyMessageKey: 'ChangeStageAutomatic\tCreate\tPick Test',
|
|
363
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
364
|
+
pxLatitude: null,
|
|
365
|
+
pyMemo: 'ChangeStageAutomatic\tCreate\tPick Test'
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
pxObjClass: 'History-DXIL-DigV2-Work',
|
|
369
|
+
pxTimeCreated: '2023-01-13T21:45:23.550Z',
|
|
370
|
+
pyPerformer: 'User DigV2',
|
|
371
|
+
pxInsName: 'DXIL-DIGV2-WORK C-7430!20230113T214523.550 GMT',
|
|
372
|
+
pzInsKey: 'HISTORY-DXIL-DIGV2-WORK DXIL-DIGV2-WORK C-7430!20230113T214523.550 GMT',
|
|
373
|
+
pxLongitude: null,
|
|
374
|
+
pyMessageKey: 'Item created.',
|
|
375
|
+
pxHistoryForReference: 'DXIL-DIGV2-WORK C-7430',
|
|
376
|
+
pyMemo: null,
|
|
377
|
+
pxLatitude: null
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
hasMoreResults: false
|
|
381
|
+
},
|
|
382
|
+
status: 200,
|
|
383
|
+
statusText: '',
|
|
384
|
+
headers: {
|
|
385
|
+
'content-length': '1328',
|
|
386
|
+
'content-type': 'application/json;charset=UTF-8'
|
|
387
|
+
},
|
|
388
|
+
request: {}
|
|
389
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
+
|
|
3
|
+
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
import { configProps } from './mock.stories';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: '{{COMPONENT_CLASS_NAME}}',
|
|
10
|
+
decorators: [withKnobs],
|
|
11
|
+
component: {{COMPONENT_CLASS_NAME}}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
15
|
+
|
|
16
|
+
const props = {
|
|
17
|
+
label: configProps.label,
|
|
18
|
+
header: configProps.header,
|
|
19
|
+
description: configProps.description,
|
|
20
|
+
image: configProps.image,
|
|
21
|
+
datasource: configProps.datasource,
|
|
22
|
+
whatsnewlink: configProps.whatsnewlink
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<>
|
|
27
|
+
<{{COMPONENT_CLASS_NAME}} {...props} />
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const configProps = {
|
|
2
|
+
label: 'App announcement',
|
|
3
|
+
header: 'Announcements',
|
|
4
|
+
description: 'Welcome to MediaCo Application for testing SDK frameworks.',
|
|
5
|
+
whatsnewlink: 'https://design.pega.com',
|
|
6
|
+
image:
|
|
7
|
+
'data:image/svg xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR2Mmg0LjI0djEuOWgtNC4yNHpNMjMuMTggMGE1IDUgMCAwIDEgMy41NyAxLjI4TDI1LjYzIDIuOGEzLjc4IDMuNzggMCAwIDAtMS4wNS0uNjNBNC4zMiA0LjMyIDAgMCAwIDIzLjMxIDIgMy4xNyAzLjE3IDAgMCAwIDIwIDUuMjdhMy4xNiAzLjE2IDAgMCAwIDEgMi4zOSAzLjA3IDMuMDcgMCAwIDAgMi4xNy44NCA0LjYgNC42IDAgMCAwIDIuMDktLjVWNi4xOWgtMi4yVjQuMzhoNC4yNXY0LjU2YTUuNDEgNS40MSAwIDAgMS00LjA4IDEuNTdBNS4zNSA1LjM1IDAgMCAxIDE5LjQzIDlhNS4wNSA1LjA1IDAgMCAxLTEuNTYtMy43NCA1LjIxIDUuMjEgMCAwIDEgMS41Ni0zLjc2QTUuMzEgNS4zMSAwIDAgMSAyMy4xOCAwem0xMS4yOS40Mmw0LjEzIDkuNzloLTIuMjVMMzUuNDggOGgtNC4wNmwtLjkgMi4xOGgtMi4yTDMyLjUxLjQyem0uMjUgNS43MkwzMy40NCAzbC0xLjI5IDMuMTR6bTMtNWEuNzEuNzEgMCAwIDEtLjc0Ljc1LjcxLjcxIDAgMCAxLS43My0uNzUuNzMuNzMgMCAwIDEgLjc1LS43Mi43Mi43MiAwIDAgMSAuNzUuNzF6TTM3IC41M2EuNTkuNTkgMCAwIDAtLjYuNi42MS42MSAwIDEgMCAxLjIxIDAgLjYuNiAwIDAgMC0uNjEtLjZ6bS0uMjQgMVYuNzFIMzdjLjEyIDAgLjE4LjA2LjI1LjA2YS4yMS4yMSAwIDAgMSAuMDcuMTguMTkuMTkgMCAwIDEtLjA3LjE4cy0uMDcuMDgtLjEzLjA4bC4yNi4zNmgtLjJMMzcgMS4yOGgtLjF2LjI5em0uMTMtLjQ0aC4yM2EuMjYuMjYgMCAwIDAgLjA3LS4wOWgtLjA2Yy0uMDUtLjE3LS4wNS0uMTctLjEzLS4xN2gtLjF6Ii8 PC9zdmc ',
|
|
8
|
+
datasource: {
|
|
9
|
+
source: [
|
|
10
|
+
{
|
|
11
|
+
name: 'New React based UI rendering'
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'Support for followers and recents'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'New authoring experience'
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
fields: {}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
1
2
|
import { useState, useEffect, Fragment } from 'react';
|
|
2
3
|
import {
|
|
3
4
|
Link,
|
|
@@ -13,7 +14,7 @@ import {
|
|
|
13
14
|
import { Glimpse } from '@pega/cosmos-react-work';
|
|
14
15
|
import PropTypes from 'prop-types';
|
|
15
16
|
|
|
16
|
-
import Avatar from './Avatar';
|
|
17
|
+
import Avatar from './Avatar.jsx';
|
|
17
18
|
|
|
18
19
|
const Operator = (props) => {
|
|
19
20
|
const { id, name, label, testId, helperText, externalUser, metaObj } = props;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
+
|
|
3
|
+
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
|
+
|
|
5
|
+
import { configProps, operatorDetails } from './mock.stories';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: '{{COMPONENT_CLASS_NAME}}',
|
|
9
|
+
decorators: [withKnobs],
|
|
10
|
+
component: {{COMPONENT_CLASS_NAME}}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
if (!window.PCore) {
|
|
14
|
+
window.PCore = {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
window.PCore.getLocaleUtils = () => {
|
|
18
|
+
return {
|
|
19
|
+
getLocaleValue: value => {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
window.PCore.getUserApi = () => {
|
|
26
|
+
return {
|
|
27
|
+
getOperatorDetails: () => {
|
|
28
|
+
return new Promise(resolve => {
|
|
29
|
+
resolve(operatorDetails);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
36
|
+
|
|
37
|
+
const props = {
|
|
38
|
+
label: configProps.label,
|
|
39
|
+
createLabel: configProps.createLabel,
|
|
40
|
+
updateLabel: configProps.updateLabel,
|
|
41
|
+
createOperator: configProps.createOperator,
|
|
42
|
+
updateOperator: configProps.updateOperator,
|
|
43
|
+
createDateTime: configProps.createDateTime,
|
|
44
|
+
updateDateTime: configProps.updateDateTime,
|
|
45
|
+
hideLabel: configProps.hideLabel,
|
|
46
|
+
|
|
47
|
+
getPConnect: () => {
|
|
48
|
+
return {
|
|
49
|
+
getActionsApi: () => {
|
|
50
|
+
return {
|
|
51
|
+
updateFieldValue: () => {},
|
|
52
|
+
triggerFieldChange: () => {}
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
ignoreSuggestion: () => {},
|
|
56
|
+
acceptSuggestion: () => {},
|
|
57
|
+
setInheritedProps: () => {},
|
|
58
|
+
resolveConfigProps: () => {}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<>
|
|
65
|
+
<{{COMPONENT_CLASS_NAME}} {...props} />
|
|
66
|
+
</>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable no-nested-ternary */
|
|
2
|
+
import { Fragment } from 'react';
|
|
2
3
|
import { DateTimeDisplay, Card, CardHeader, CardContent, Flex } from '@pega/cosmos-react-core';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
|
|
5
6
|
// includes in bundle
|
|
6
|
-
import Operator from './Operator';
|
|
7
|
+
import Operator from './Operator.jsx';
|
|
7
8
|
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
9
10
|
|
|
@@ -27,8 +28,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
27
28
|
resolveLabel,
|
|
28
29
|
resolveOperator,
|
|
29
30
|
resolveDateTime,
|
|
30
|
-
hideLabel
|
|
31
|
-
defVal
|
|
31
|
+
hideLabel
|
|
32
32
|
} = props;
|
|
33
33
|
|
|
34
34
|
|
|
@@ -84,13 +84,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
84
84
|
resolveLabel: null,
|
|
85
85
|
resolveOperator: null,
|
|
86
86
|
resolveDateTime: null,
|
|
87
|
-
hideLabel: false
|
|
88
|
-
defVal: '––'
|
|
87
|
+
hideLabel: false
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
92
91
|
getPConnect: PropTypes.func.isRequired,
|
|
93
92
|
label: PropTypes.string,
|
|
93
|
+
title: PropTypes.string,
|
|
94
94
|
createLabel: PropTypes.string,
|
|
95
95
|
updateLabel: PropTypes.string,
|
|
96
96
|
resolveLabel: PropTypes.string,
|
|
@@ -105,6 +105,6 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
105
105
|
|
|
106
106
|
// as objects are there in props, shallow comparision fails & re-rendering of comp happens even with
|
|
107
107
|
// same key value pairs in obj. hence using custom comparison function on when to re-render
|
|
108
|
-
//const comparisonFn = (prevProps, nextProps) => {
|
|
109
|
-
//
|
|
110
|
-
//};
|
|
108
|
+
// const comparisonFn = (prevProps, nextProps) => {
|
|
109
|
+
// return prevProps.updateDateTime === nextProps.updateDateTime;
|
|
110
|
+
// };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const configProps = {
|
|
2
|
+
label: 'Create operator',
|
|
3
|
+
createLabel: 'Created',
|
|
4
|
+
updateLabel: 'Updated',
|
|
5
|
+
updateDateTime: '2023-01-16T14:53:33.280Z',
|
|
6
|
+
createDateTime: '2023-01-16T14:53:33.198Z',
|
|
7
|
+
updateOperator: {
|
|
8
|
+
userId: 'admin@mediaco',
|
|
9
|
+
userName: 'admin'
|
|
10
|
+
},
|
|
11
|
+
createOperator: {
|
|
12
|
+
userId: 'admin@mediaco',
|
|
13
|
+
userName: 'admin'
|
|
14
|
+
},
|
|
15
|
+
hideLabel: true,
|
|
16
|
+
key: '_532zx1dah',
|
|
17
|
+
displayMode: 'LABELS_LEFT'
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const operatorDetails = {
|
|
21
|
+
data: {
|
|
22
|
+
pzLoadTime: 'January 18, 2023 10:33:19 AM EST',
|
|
23
|
+
pzPageNameHash: '_pa1519192551088960pz',
|
|
24
|
+
pyOperatorInfo: {
|
|
25
|
+
pyUserName: 'french DigV2',
|
|
26
|
+
pyPosition: '',
|
|
27
|
+
pyImageInsKey: '',
|
|
28
|
+
pySkills: [
|
|
29
|
+
{
|
|
30
|
+
pySkillName: '',
|
|
31
|
+
pzIndexOwnerKey: 'DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2',
|
|
32
|
+
pySkillRating: 0
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
pyReportToUserName: '',
|
|
36
|
+
pyReportTo: '',
|
|
37
|
+
pyOrganization: 'DXIL',
|
|
38
|
+
pyTitle: '',
|
|
39
|
+
pyLabel: 'frenchTest.DigV2',
|
|
40
|
+
pyEmailAddress: 'User@DigV2',
|
|
41
|
+
pyTelephone: ''
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
status: 200,
|
|
45
|
+
statusText: '',
|
|
46
|
+
headers: {
|
|
47
|
+
'content-length': '435',
|
|
48
|
+
'content-type': 'application/json;charset=UTF-8'
|
|
49
|
+
},
|
|
50
|
+
request: {}
|
|
51
|
+
};
|
|
@@ -3,7 +3,7 @@ import chalk from 'chalk';
|
|
|
3
3
|
|
|
4
4
|
export const lintComponent = async (dirToLint) => {
|
|
5
5
|
// console.log("in dx-component-builder-sdk: lintComponent - dirToLint: " + dirToLint);
|
|
6
|
-
console.log(chalk.green(` linting ${dirToLint}`));
|
|
6
|
+
//console.log(chalk.green(` linting ${dirToLint}`));
|
|
7
7
|
|
|
8
8
|
// 1. Create an instance.
|
|
9
9
|
const eslint = new ESLint();
|
|
@@ -20,7 +20,7 @@ export const lintComponent = async (dirToLint) => {
|
|
|
20
20
|
console.log(resultText);
|
|
21
21
|
|
|
22
22
|
// Indicate linting is complete
|
|
23
|
-
console.log(chalk.green(` linting complete...`));
|
|
23
|
+
//console.log(chalk.green(` linting complete...`));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// inpsired by https://eslint.org/docs/latest/developer-guide/nodejs-api
|
package/src/tasks/map/map.js
CHANGED
|
@@ -56,8 +56,6 @@ export const updateComponentMap = async (componentKey, category = CATEGORY_CUSTO
|
|
|
56
56
|
|
|
57
57
|
mapData = mapDataStart.concat(importFull).concat("\n").concat(mapDataEnd);
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
59
|
// add map
|
|
62
60
|
let endMapIndex = mapData.indexOf(MAP_END_TAG);
|
|
63
61
|
mapDataStart = mapData.substring(0, endMapIndex);
|
|
@@ -65,11 +63,6 @@ export const updateComponentMap = async (componentKey, category = CATEGORY_CUSTO
|
|
|
65
63
|
|
|
66
64
|
mapData = mapDataStart.concat(" ").concat(mapFull).concat("\n").concat(mapDataEnd);
|
|
67
65
|
|
|
68
|
-
|
|
69
|
-
//console.log(mapData);
|
|
70
|
-
|
|
71
|
-
//console.log("update");
|
|
72
|
-
|
|
73
66
|
fs.writeFileSync(pegaLocalComponentMapPath, mapData, { encoding: 'utf8' });
|
|
74
67
|
|
|
75
68
|
|