@pega/custom-dx-components 2.0.24 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -5
  3. package/src/cli.js +0 -18
  4. package/src/constants.js +2 -32
  5. package/src/tasks/authenticate/helper.js +8 -91
  6. package/src/tasks/authenticate/index.js +56 -125
  7. package/src/tasks/create/index.js +63 -59
  8. package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +1 -1
  9. package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +16 -33
  10. package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +2 -1
  11. package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +67 -179
  12. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +17 -46
  13. package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +1 -3
  14. package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +1 -0
  15. package/src/tasks/create/templates/Constellation/Field/DateTime/{date-utils.js.mustache → date-utils.js} +0 -1
  16. package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +0 -1
  17. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +17 -46
  18. package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +0 -2
  19. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +17 -22
  20. package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +1 -2
  21. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +17 -26
  22. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +4 -3
  23. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +17 -22
  24. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +2 -8
  25. package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +17 -22
  26. package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +1 -2
  27. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +16 -50
  28. package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +1 -44
  29. package/src/tasks/create/templates/Constellation/Field/Picklist/picklist.js.mustache +43 -0
  30. package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +16 -23
  31. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +17 -21
  32. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +2 -44
  33. package/src/tasks/create/templates/Constellation/Field/Text-Email/text-email.js.mustache +43 -0
  34. package/src/tasks/create/templates/Constellation/Field/Text-Input/{StatusWork.jsx → StatusWork.js} +1 -0
  35. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +17 -21
  36. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +3 -46
  37. package/src/tasks/create/templates/Constellation/Field/Text-Input/text-input.js.mustache +43 -0
  38. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +17 -21
  39. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +2 -44
  40. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/text-paragraph.js.mustache +43 -0
  41. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +17 -19
  42. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +3 -47
  43. package/src/tasks/create/templates/Constellation/Field/Text-Phone/text-phone.js.mustache +43 -0
  44. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +17 -19
  45. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +1 -1
  46. package/src/tasks/create/templates/Constellation/Field/Text-URL/{text-url.jsx.mustache → text-url.js.mustache} +1 -2
  47. package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.jsx.mustache +17 -30
  48. package/src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache +0 -1
  49. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +29 -14
  50. package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +77 -3
  51. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +29 -14
  52. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +74 -3
  53. package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +10 -6
  54. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +8 -10
  55. package/src/tasks/create/templates/Constellation/Template/PAGE/{GetNextWork.jsx.mustache → GetNextWork.js.mustache} +0 -6
  56. package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +7 -9
  57. package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +1 -4
  58. package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +0 -1
  59. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.jsx.mustache +8 -8
  60. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Avatar.jsx.mustache → Avatar.js.mustache} +0 -2
  61. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Operator.jsx.mustache → Operator.js.mustache} +1 -2
  62. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +9 -9
  63. package/src/tasks/delete/helper.js +0 -4
  64. package/src/tasks/delete/index.js +0 -4
  65. package/src/tasks/index.js +0 -3
  66. package/src/tasks/init/index.js +3 -3
  67. package/src/tasks/init/template/.eslintrc.json +5 -186
  68. package/src/tasks/init/template/README.md +59 -75
  69. package/src/tasks/init/template/package.json.mustache +6 -21
  70. package/src/tasks/init/template/tasks.config.json +4 -16
  71. package/src/tasks/list/index.js +0 -4
  72. package/src/tasks/{bundle → publish/bundle}/builder/webpack.config.js +2 -0
  73. package/src/tasks/{bundle → publish/bundle}/index.js +2 -2
  74. package/src/tasks/publish/index.js +1 -14
  75. package/src/util.js +6 -11
  76. package/src/auth.js +0 -573
  77. package/src/tasks/build/helper.js +0 -123
  78. package/src/tasks/build/index.js +0 -54
  79. package/src/tasks/create/templates/Constellation/Field/Boolean/mock.stories.js.mustache +0 -21
  80. package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +0 -61
  81. package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +0 -41
  82. package/src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache +0 -23
  83. package/src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache +0 -23
  84. package/src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache +0 -21
  85. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache +0 -23
  86. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.stories.js.mustache +0 -21
  87. package/src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache +0 -21
  88. package/src/tasks/create/templates/Constellation/Field/Picklist/mock.stories.js.mustache +0 -67
  89. package/src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache +0 -13
  90. package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.stories.js.mustache +0 -22
  91. package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache +0 -21
  92. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache +0 -20
  93. package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.stories.js.mustache +0 -37
  94. package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache +0 -22
  95. package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.stories.js.mustache +0 -20
  96. package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +0 -26
  97. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +0 -118
  98. package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache +0 -179
  99. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.jsx.mustache +0 -26
  100. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +0 -123
  101. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache +0 -215
  102. package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +0 -93
  103. package/src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache +0 -125
  104. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +0 -100
  105. package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache +0 -131
  106. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +0 -101
  107. package/src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache +0 -94
  108. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +0 -78
  109. package/src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache +0 -390
  110. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +0 -30
  111. package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.stories.js.mustache +0 -23
  112. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +0 -68
  113. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache +0 -51
  114. package/src/tasks/delete-all/helper.js +0 -175
  115. package/src/tasks/delete-all/index.js +0 -49
  116. package/src/tasks/init/template/.eslintignore +0 -8
  117. package/src/tasks/linter/index.js +0 -46
  118. package/src/tasks/publish-all/helper.js +0 -139
  119. package/src/tasks/publish-all/index.js +0 -84
  120. /package/src/tasks/{bundle → publish/bundle}/builder/index.js +0 -0
  121. /package/src/tasks/{bundle → publish/bundle}/builder/modules.js +0 -0
  122. /package/src/tasks/{bundle → publish/bundle}/builder/paths.js +0 -0
@@ -1,78 +0,0 @@
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: () => {/* nothing */},
62
- triggerFieldChange: () => {/* nothing */}
63
- };
64
- },
65
- ignoreSuggestion: () => {/* nothing */},
66
- acceptSuggestion: () => {/* nothing */},
67
- setInheritedProps: () => {/* nothing */},
68
- resolveConfigProps: () => {/* nothing */}
69
- };
70
- }
71
- };
72
-
73
- return (
74
- <>
75
- <{{COMPONENT_CLASS_NAME}} {...props} />
76
- </>
77
- );
78
- };
@@ -1,390 +0,0 @@
1
- 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
- };
390
- export default historyData;
@@ -1,30 +0,0 @@
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
- };
@@ -1,23 +0,0 @@
1
- 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
- };
23
- export default configProps;
@@ -1,68 +0,0 @@
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: () => {/* nothing */},
52
- triggerFieldChange: () => {/* nothing */}
53
- };
54
- },
55
- ignoreSuggestion: () => {/* nothing */},
56
- acceptSuggestion: () => {/* nothing */},
57
- setInheritedProps: () => {/* nothing */},
58
- resolveConfigProps: () => {/* nothing */}
59
- };
60
- }
61
- };
62
-
63
- return (
64
- <>
65
- <{{COMPONENT_CLASS_NAME}} {...props} />
66
- </>
67
- );
68
- };
@@ -1,51 +0,0 @@
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
- };