@pega/custom-dx-components 0.242.45 → 0.242.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/Avatar.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/Avatar.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +2 -2
- package/src/tasks/init/template/package.json.mustache +15 -15
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +1 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +1 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/Avatar.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/utils.ts +1 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +2 -2
package/package.json
CHANGED
package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache
CHANGED
|
@@ -187,7 +187,7 @@ export const updatePropertiesForNewRecord = (
|
|
|
187
187
|
dataObj
|
|
188
188
|
.fetchData(newCaseId)
|
|
189
189
|
// @ts-ignore
|
|
190
|
-
.then(displayResponse => {
|
|
190
|
+
.then((displayResponse: any) => {
|
|
191
191
|
let columnsWithSetProperty = [];
|
|
192
192
|
if (dataApiObj.columns) {
|
|
193
193
|
columnsWithSetProperty = dataApiObj.columns
|
|
@@ -16,8 +16,8 @@ interface {{COMPONENT_CLASS_NAME}}AvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
package/src/tasks/create/templates/Constellation/Template/DETAILS-region/Avatar.tsx.mustache
CHANGED
|
@@ -16,8 +16,8 @@ interface {{COMPONENT_CLASS_NAME}}AvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
|
@@ -32,7 +32,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
32
32
|
];
|
|
33
33
|
|
|
34
34
|
useEffect(() => {
|
|
35
|
-
const payload = { dataViewParameters:
|
|
35
|
+
const payload = { dataViewParameters: { CaseInstanceKey: caseID } };
|
|
36
36
|
PCore.getDataApiUtils()
|
|
37
37
|
.getData('D_pyWorkHistory', payload, context)
|
|
38
38
|
.then((response: any) => {
|
|
@@ -16,8 +16,8 @@ interface {{COMPONENT_CLASS_NAME}}AvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
|
@@ -30,7 +30,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
|
30
30
|
];
|
|
31
31
|
|
|
32
32
|
useEffect(() => {
|
|
33
|
-
const payload = { dataViewParameters:
|
|
33
|
+
const payload = { dataViewParameters: { ObjectID: caseID } };
|
|
34
34
|
PCore.getDataApiUtils()
|
|
35
35
|
.getData('ObjectHistory', payload, context)
|
|
36
36
|
.then((response: any) => {
|
|
@@ -16,8 +16,8 @@ interface {{COMPONENT_CLASS_NAME}}AvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@pega/cosmos-react-core": "~7.0.6",
|
|
80
80
|
"@pega/cosmos-react-work": "~7.0.6",
|
|
81
81
|
"@pega/eslint-config": "^0.10.2",
|
|
82
|
-
"@pega/tsconfig": "^0.
|
|
82
|
+
"@pega/tsconfig": "^0.15.1",
|
|
83
83
|
"babel-loader": "^9.1.3",
|
|
84
84
|
"dayjs": "^1.11.11",
|
|
85
85
|
"fast-deep-equal": "3.1.3",
|
|
@@ -99,15 +99,15 @@
|
|
|
99
99
|
"webpack-cli": "^5.1.4"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@pega/configs": "^0.
|
|
103
|
-
"@pega/custom-dx-components": "~0.242.
|
|
104
|
-
"@pega/pcore-pconnect-typedefs": "~3.0.
|
|
105
|
-
"@storybook/addon-actions": "^7.6.
|
|
102
|
+
"@pega/configs": "^0.15.1",
|
|
103
|
+
"@pega/custom-dx-components": "~0.242.46",
|
|
104
|
+
"@pega/pcore-pconnect-typedefs": "~3.2.0-alpha.1",
|
|
105
|
+
"@storybook/addon-actions": "^7.6.19",
|
|
106
106
|
"@storybook/addon-essentials": "^7.6.19",
|
|
107
107
|
"@storybook/addon-knobs": "^7.1.1",
|
|
108
108
|
"@storybook/addon-links": "^7.6.19",
|
|
109
109
|
"@storybook/addon-storysource": "^7.6.19",
|
|
110
|
-
"@storybook/react": "^7.6.
|
|
110
|
+
"@storybook/react": "^7.6.19",
|
|
111
111
|
"@storybook/react-webpack5": "^7.6.19",
|
|
112
112
|
"@types/emoji-mart": "^3.0.14",
|
|
113
113
|
"@types/lodash.get": "^4.4.9",
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
119
119
|
"babel-loader": "^9.1.3",
|
|
120
120
|
"eslint": "^8.57.0",
|
|
121
|
-
"eslint-plugin-import": "^2.
|
|
122
|
-
"eslint-plugin-jest": "^
|
|
123
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
124
|
-
"eslint-plugin-mdx": "^
|
|
125
|
-
"eslint-plugin-prettier": "^5.1
|
|
126
|
-
"eslint-plugin-react": "^7.
|
|
121
|
+
"eslint-plugin-import": "^2.31.0",
|
|
122
|
+
"eslint-plugin-jest": "^28.8.3",
|
|
123
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
124
|
+
"eslint-plugin-mdx": "^3.1.5",
|
|
125
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
126
|
+
"eslint-plugin-react": "^7.37.1",
|
|
127
127
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
128
128
|
"eslint-plugin-sonarjs": "^0.23.0",
|
|
129
129
|
"eslint-plugin-storybook": "^0.6.15",
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
"jest-junit": "^16.0.0",
|
|
133
133
|
"jwt-decode": "^4.0.0",
|
|
134
134
|
"npm-run-all": "^4.1.5",
|
|
135
|
-
"prettier": "3.
|
|
135
|
+
"prettier": "3.3.3",
|
|
136
136
|
"storybook": "^7.6.19",
|
|
137
|
-
"stylelint": "^
|
|
138
|
-
"typescript": "~5.
|
|
137
|
+
"stylelint": "^16.10.0",
|
|
138
|
+
"typescript": "~5.6.3"
|
|
139
139
|
}
|
|
140
140
|
}
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx
CHANGED
|
@@ -32,7 +32,7 @@ function PegaDxilMyCaseWidget(props: PegaDxilMyCaseWidgetProps) {
|
|
|
32
32
|
];
|
|
33
33
|
|
|
34
34
|
useEffect(() => {
|
|
35
|
-
const payload = { dataViewParameters:
|
|
35
|
+
const payload = { dataViewParameters: { CaseInstanceKey: caseID } };
|
|
36
36
|
PCore.getDataApiUtils()
|
|
37
37
|
.getData('D_pyWorkHistory', payload, context)
|
|
38
38
|
.then((response: any) => {
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx
CHANGED
|
@@ -16,8 +16,8 @@ interface PegaDxilMyDetailsAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyDetailsAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
|
@@ -16,8 +16,8 @@ interface PegaDxilMyPageCaseWidgetAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyPageCaseWidgetAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts
CHANGED
|
@@ -187,7 +187,7 @@ export const updatePropertiesForNewRecord = (
|
|
|
187
187
|
dataObj
|
|
188
188
|
.fetchData(newCaseId)
|
|
189
189
|
// @ts-ignore
|
|
190
|
-
.then(displayResponse => {
|
|
190
|
+
.then((displayResponse: any) => {
|
|
191
191
|
let columnsWithSetProperty = [];
|
|
192
192
|
if (dataApiObj.columns) {
|
|
193
193
|
columnsWithSetProperty = dataApiObj.columns
|
|
@@ -16,8 +16,8 @@ interface PegaDxilMyTwoColumnDetailsAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyTwoColumnDetailsAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx
CHANGED
|
@@ -32,7 +32,7 @@ function PegaDxilMyCaseWidget(props: PegaDxilMyCaseWidgetProps) {
|
|
|
32
32
|
];
|
|
33
33
|
|
|
34
34
|
useEffect(() => {
|
|
35
|
-
const payload = { dataViewParameters:
|
|
35
|
+
const payload = { dataViewParameters: { CaseInstanceKey: caseID } };
|
|
36
36
|
PCore.getDataApiUtils()
|
|
37
37
|
.getData('D_pyWorkHistory', payload, context)
|
|
38
38
|
.then((response: any) => {
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx
CHANGED
|
@@ -16,8 +16,8 @@ interface PegaDxilMyDetailsAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyDetailsAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
|
@@ -16,8 +16,8 @@ interface PegaDxilMyPageCaseWidgetAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyPageCaseWidgetAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts
CHANGED
|
@@ -187,7 +187,7 @@ export const updatePropertiesForNewRecord = (
|
|
|
187
187
|
dataObj
|
|
188
188
|
.fetchData(newCaseId)
|
|
189
189
|
// @ts-ignore
|
|
190
|
-
.then(displayResponse => {
|
|
190
|
+
.then((displayResponse: any) => {
|
|
191
191
|
let columnsWithSetProperty = [];
|
|
192
192
|
if (dataApiObj.columns) {
|
|
193
193
|
columnsWithSetProperty = dataApiObj.columns
|
|
@@ -16,8 +16,8 @@ interface PegaDxilMyTwoColumnDetailsAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyTwoColumnDetailsAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx
CHANGED
|
@@ -30,7 +30,7 @@ function PegaDxilMyCaseWidget(props: PegaDxilMyCaseWidgetProps) {
|
|
|
30
30
|
];
|
|
31
31
|
|
|
32
32
|
useEffect(() => {
|
|
33
|
-
const payload = { dataViewParameters:
|
|
33
|
+
const payload = { dataViewParameters: { ObjectID: caseID } };
|
|
34
34
|
PCore.getDataApiUtils()
|
|
35
35
|
.getData('ObjectHistory', payload, context)
|
|
36
36
|
.then((response: any) => {
|
|
@@ -16,8 +16,8 @@ interface PegaDxilMyDetailsAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyDetailsAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx
CHANGED
|
@@ -16,8 +16,8 @@ interface PegaDxilMyPageCaseWidgetAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyPageCaseWidgetAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|
|
@@ -187,7 +187,7 @@ export const updatePropertiesForNewRecord = (
|
|
|
187
187
|
dataObj
|
|
188
188
|
.fetchData(newCaseId)
|
|
189
189
|
// @ts-ignore
|
|
190
|
-
.then(displayResponse => {
|
|
190
|
+
.then((displayResponse: any) => {
|
|
191
191
|
let columnsWithSetProperty = [];
|
|
192
192
|
if (dataApiObj.columns) {
|
|
193
193
|
columnsWithSetProperty = dataApiObj.columns
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx
CHANGED
|
@@ -16,8 +16,8 @@ interface PegaDxilMyTwoColumnDetailsAvatarProps extends PConnFieldProps {
|
|
|
16
16
|
function Avatar(props: PegaDxilMyTwoColumnDetailsAvatarProps) {
|
|
17
17
|
const { metaObj, showStatus = false } = props;
|
|
18
18
|
const [imageBlobUrl, setImageBlobUrl] = useState(null);
|
|
19
|
-
let userName:
|
|
20
|
-
let userIdentifier:
|
|
19
|
+
let userName: any;
|
|
20
|
+
let userIdentifier: any;
|
|
21
21
|
|
|
22
22
|
// TODO Below if conditions can be removed once we have apis to get worklist/mywork info
|
|
23
23
|
// This is non CaseView case (Dashboard, MyWork etc)
|