@pega/custom-dx-components 2.0.16 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/cli.js +18 -0
- package/src/tasks/authenticate/index.js +3 -1
- package/src/tasks/build/helper.js +123 -0
- package/src/tasks/build/index.js +54 -0
- package/src/tasks/{publish/bundle → bundle}/builder/index.js +0 -0
- package/src/tasks/{publish/bundle → bundle}/builder/modules.js +0 -0
- package/src/tasks/{publish/bundle → bundle}/builder/paths.js +0 -0
- package/src/tasks/{publish/bundle → bundle}/builder/webpack.config.js +0 -2
- package/src/tasks/{publish/bundle → bundle}/index.js +2 -2
- package/src/tasks/create/index.js +6 -3
- 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 +32 -16
- 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/index.jsx.mustache +174 -3
- 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 +14 -29
- 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 -77
- 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 +14 -29
- 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 -74
- 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 +10 -8
- 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/index.jsx.mustache +8 -8
- 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/delete/helper.js +4 -0
- package/src/tasks/delete/index.js +4 -0
- package/src/tasks/delete-all/helper.js +175 -0
- package/src/tasks/delete-all/index.js +49 -0
- package/src/tasks/index.js +3 -0
- package/src/tasks/init/index.js +1 -1
- package/src/tasks/init/template/.eslintignore +8 -0
- package/src/tasks/init/template/.eslintrc.json +186 -5
- package/src/tasks/init/template/README.md +75 -59
- package/src/tasks/init/template/package.json.mustache +20 -5
- package/src/tasks/init/template/tasks.config.json +1 -0
- package/src/tasks/linter/index.js +46 -0
- package/src/tasks/list/index.js +4 -0
- package/src/tasks/publish/index.js +14 -1
- package/src/tasks/publish-all/helper.js +139 -0
- package/src/tasks/publish-all/index.js +84 -0
- package/src/util.js +10 -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
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.js.mustache +0 -172
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export const pyHome1Raw = {
|
|
2
|
+
name: 'pyHome1',
|
|
3
|
+
type: 'View',
|
|
4
|
+
config: {
|
|
5
|
+
type: 'landingpage',
|
|
6
|
+
template: 'OneColumnPage',
|
|
7
|
+
icon: 'home-solid',
|
|
8
|
+
title: '@ENV APPLICATION_DESC',
|
|
9
|
+
ruleClass: 'DIXL-MediaCo-UIPages',
|
|
10
|
+
localeReference: '@LR DIXL-MEDIACO-UIPAGES!PAGE!PYHOME1',
|
|
11
|
+
enableGetNextWork: true,
|
|
12
|
+
context: 'pyPortal'
|
|
13
|
+
},
|
|
14
|
+
children: [
|
|
15
|
+
{
|
|
16
|
+
name: 'A',
|
|
17
|
+
type: 'Region',
|
|
18
|
+
children: [
|
|
19
|
+
{
|
|
20
|
+
type: 'AppAnnouncement',
|
|
21
|
+
config: {
|
|
22
|
+
label: '@L App announcement',
|
|
23
|
+
description:
|
|
24
|
+
"We've launched a brand new experience to accelerate your workflow. Check out the guides to help you get the most of Cosmos.",
|
|
25
|
+
whatsnewlink: 'https://design.pega.com',
|
|
26
|
+
image:
|
|
27
|
+
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI+PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR2Mmg0LjI0djEuOWgtNC4yNHpNMjMuMTggMGE1IDUgMCAwIDEgMy41NyAxLjI4TDI1LjYzIDIuOGEzLjc4IDMuNzggMCAwIDAtMS4wNS0uNjNBNC4zMiA0LjMyIDAgMCAwIDIzLjMxIDIgMy4xNyAzLjE3IDAgMCAwIDIwIDUuMjdhMy4xNiAzLjE2IDAgMCAwIDEgMi4zOSAzLjA3IDMuMDcgMCAwIDAgMi4xNy44NCA0LjYgNC42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export const pyHome1Resolved = {
|
|
43
|
+
name: 'pyHome1',
|
|
44
|
+
type: 'View',
|
|
45
|
+
config: {
|
|
46
|
+
type: 'landingpage',
|
|
47
|
+
template: 'OneColumnPage',
|
|
48
|
+
icon: 'home-solid',
|
|
49
|
+
title: '@ENV APPLICATION_DESC',
|
|
50
|
+
ruleClass: 'DIXL-MediaCo-UIPages',
|
|
51
|
+
localeReference: '@LR DIXL-MEDIACO-UIPAGES!PAGE!PYHOME1',
|
|
52
|
+
enableGetNextWork: true,
|
|
53
|
+
context: 'pyPortal'
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
{
|
|
57
|
+
name: 'A',
|
|
58
|
+
type: 'Region',
|
|
59
|
+
getPConnect: () => {
|
|
60
|
+
return {
|
|
61
|
+
getComponentName: () => {
|
|
62
|
+
return '';
|
|
63
|
+
},
|
|
64
|
+
getComponent: () => {
|
|
65
|
+
return pyHome1Resolved.children[0];
|
|
66
|
+
},
|
|
67
|
+
getConfigProps: () => {
|
|
68
|
+
return {};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
{
|
|
74
|
+
type: 'AppAnnouncement',
|
|
75
|
+
config: {
|
|
76
|
+
label: '@L App announcement',
|
|
77
|
+
description:
|
|
78
|
+
"We've launched a brand new experience to accelerate your workflow. Check out the guides to help you get the most of Cosmos.",
|
|
79
|
+
whatsnewlink: 'https://design.pega.com',
|
|
80
|
+
image:
|
|
81
|
+
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI+PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSD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MTkuMTkgMCAwIDEtLjA3LjE4cy0uMDcuMDgtLjEzLjA4bC4yNi4zNmgtLjJMMzcgMS4yOGgtLjF2LjI5em0uMTMtLjQ0aC4yM2EuMjYuMjYgMCAwIDAgLjA3LS4wOWgtLjA2Yy0uMDUtLjE3LS4wNS0uMTctLjEzLS4xN2gtLjF6Ii8+PC9zdmc+',
|
|
82
|
+
datasource: {
|
|
83
|
+
source: '@DATASOURCE D_pyAnnouncements.pxResults',
|
|
84
|
+
fields: {
|
|
85
|
+
name: '@P .pyLabel'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
classID: 'DIXL-MediaCo-UIPages'
|
|
94
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
1
2
|
import { createUID } from '@pega/cosmos-react-core';
|
|
2
3
|
|
|
3
|
-
//import { LazyMap as LazyComponentMap } from '../../components_map';
|
|
4
|
+
// import { LazyMap as LazyComponentMap } from '../../components_map';
|
|
4
5
|
|
|
5
6
|
const LazyComponentMap = {};
|
|
6
7
|
|
|
@@ -212,7 +213,9 @@ export function getInstructions(pConnect, instructions = 'casestep') {
|
|
|
212
213
|
|
|
213
214
|
// If the annotation wasn't processed correctly, don't return any instruction text
|
|
214
215
|
if (instructions?.startsWith('@PARAGRAPH')) {
|
|
216
|
+
/* eslint-disable no-console */
|
|
215
217
|
console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
|
|
218
|
+
/* eslint-enable no-console */
|
|
216
219
|
return undefined;
|
|
217
220
|
}
|
|
218
221
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
+
|
|
3
|
+
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
|
+
|
|
5
|
+
import { historyData } 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.getConstants = () => {
|
|
18
|
+
return {
|
|
19
|
+
CASE_INFO: {
|
|
20
|
+
CASE_INFO_ID: 'caseInfo.ID'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
window.PCore.getLocaleUtils = () => {
|
|
26
|
+
return {
|
|
27
|
+
getLocaleValue: value => {
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
window.PCore.getDataApiUtils = () => {
|
|
34
|
+
return {
|
|
35
|
+
getData: () => {
|
|
36
|
+
return new Promise(resolve => {
|
|
37
|
+
resolve(historyData);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
44
|
+
|
|
45
|
+
const props = {
|
|
46
|
+
label: 'Case history',
|
|
47
|
+
|
|
48
|
+
getPConnect: () => {
|
|
49
|
+
return {
|
|
50
|
+
getValue: value => {
|
|
51
|
+
return value;
|
|
52
|
+
},
|
|
53
|
+
getContextName: () => {
|
|
54
|
+
return 'app/primary_1';
|
|
55
|
+
},
|
|
56
|
+
getLocalizedValue: value => {
|
|
57
|
+
return value;
|
|
58
|
+
},
|
|
59
|
+
getActionsApi: () => {
|
|
60
|
+
return {
|
|
61
|
+
updateFieldValue: () => {},
|
|
62
|
+
triggerFieldChange: () => {}
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
ignoreSuggestion: () => {},
|
|
66
|
+
acceptSuggestion: () => {},
|
|
67
|
+
setInheritedProps: () => {},
|
|
68
|
+
resolveConfigProps: () => {}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<>
|
|
75
|
+
<{{COMPONENT_CLASS_NAME}} {...props} />
|
|
76
|
+
</>
|
|
77
|
+
);
|
|
78
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -32,17 +32,17 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
{{COMPONENT_CLASS_NAME}}.defaultProps = {
|
|
35
|
-
header: PropTypes.string,
|
|
36
|
-
description: PropTypes.string,
|
|
37
|
-
datasource: PropTypes.instanceOf(Object),
|
|
38
|
-
whatsnewlink: PropTypes.string,
|
|
39
|
-
image: PropTypes.string
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
43
35
|
header: '',
|
|
44
36
|
description: '',
|
|
45
37
|
image: '',
|
|
46
38
|
datasource: [],
|
|
47
39
|
whatsnewlink: ''
|
|
48
40
|
};
|
|
41
|
+
|
|
42
|
+
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
43
|
+
header: PropTypes.string,
|
|
44
|
+
description: PropTypes.string,
|
|
45
|
+
datasource: PropTypes.instanceOf(Object),
|
|
46
|
+
whatsnewlink: PropTypes.string,
|
|
47
|
+
image: PropTypes.string
|
|
48
|
+
};
|
|
@@ -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 PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR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|
|
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
|
+
};
|