@pega/custom-dx-components 24.2.10 → 24.2.12
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 +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +4 -4
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +3 -3
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +4 -4
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +3 -3
- package/src/tasks/export-archive/helper.js +14 -0
- package/src/tasks/export-archive/index.js +151 -28
- package/src/tasks/init/template/package.json.mustache +4 -4
- package/src/util.js +64 -14
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +4 -4
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +3 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +4 -4
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -3
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +3 -3
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +4 -4
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +3 -3
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +3 -3
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -2
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibExportImportLib.test.js +1 -1
- package/tests/functional/localLibCreateLibExportLib.test.js +1 -1
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +1 -1
package/src/util.js
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
SHOW_DEBUG,
|
|
34
34
|
COMPONENTS_PATH,
|
|
35
35
|
ARCHIVES_PATH,
|
|
36
|
+
BIN_ARCHIVES_PATH,
|
|
36
37
|
TEMP_PATH,
|
|
37
38
|
JEST_TESTS_FUNCTIONAL_PATH,
|
|
38
39
|
IMPORT_RELATIVE_PATH,
|
|
@@ -1633,17 +1634,6 @@ if (showDebug) addDebugLog("zipVersionAndArchive", `orgLibName: ${orgLibName}, v
|
|
|
1633
1634
|
}
|
|
1634
1635
|
}
|
|
1635
1636
|
|
|
1636
|
-
// // Add config.json file
|
|
1637
|
-
// if (fs.existsSync(tasksConfig)) {
|
|
1638
|
-
// archive.file(tasksConfig, { name: path.basename(tasksConfig) });
|
|
1639
|
-
// }
|
|
1640
|
-
|
|
1641
|
-
// // Add package.json file
|
|
1642
|
-
// if (fs.existsSync(packageJson)) {
|
|
1643
|
-
// archive.file(packageJson, { name: path.basename(packageJson) });
|
|
1644
|
-
// }
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
1637
|
// pipe archive data to the file
|
|
1648
1638
|
archive.pipe(output);
|
|
1649
1639
|
|
|
@@ -1669,11 +1659,71 @@ if (showDebug) addDebugLog("zipVersionAndArchive", `orgLibName: ${orgLibName}, v
|
|
|
1669
1659
|
|
|
1670
1660
|
await archive.finalize();
|
|
1671
1661
|
|
|
1662
|
+
return output;
|
|
1663
|
+
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
export const zipVersionAndArchiveCL = async (orgLibName, version, currentDirectory = "") => {
|
|
1667
|
+
if (showDebug) addDebugLog("zipVersionAndArchiveCL", `orgLibName: ${orgLibName}, version: ${version}, currentDirectory: ${currentDirectory}`, "");
|
|
1668
|
+
// const srcDirectoryPath = await getSrcDirectoryPath();
|
|
1669
|
+
if (currentDirectory === "") {
|
|
1670
|
+
currentDirectory = process.cwd();
|
|
1671
|
+
}
|
|
1672
|
+
const libDirectoryPath = join(currentDirectory, orgLibName, version);
|
|
1673
|
+
const tasksConfig = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
1674
|
+
const packageJson = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
1675
|
+
const archiveFileName = `${orgLibName}_${version}.zip`;
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
// const configContent = Buffer.from(fs.readFileSync(configJson)).toString();
|
|
1679
|
+
const mainDirectory = process.cwd();
|
|
1680
|
+
const archiveDirectory = join (mainDirectory, BIN_ARCHIVES_PATH);
|
|
1681
|
+
if (!fs.existsSync(archiveDirectory)) {
|
|
1682
|
+
fs.mkdirSync(archiveDirectory, { recursive: true });
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1672
1685
|
|
|
1686
|
+
const archiveFile = join(archiveDirectory, archiveFileName);
|
|
1687
|
+
if (fs.existsSync(orgLibName)) {
|
|
1688
|
+
|
|
1689
|
+
}
|
|
1673
1690
|
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1691
|
+
const output = fs.createWriteStream(archiveFile);
|
|
1692
|
+
const archive = archiver('zip', {
|
|
1693
|
+
zlib: { level: 9 } // Sets the compression level.
|
|
1694
|
+
});
|
|
1695
|
+
|
|
1696
|
+
const zipChunks = [];
|
|
1697
|
+
archive.on('data', chunk => zipChunks.push(chunk));
|
|
1698
|
+
|
|
1699
|
+
// Add src directory
|
|
1700
|
+
archive.directory(libDirectoryPath, false);
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
// pipe archive data to the file
|
|
1704
|
+
archive.pipe(output);
|
|
1705
|
+
|
|
1706
|
+
output.on('end', function() {
|
|
1707
|
+
console.log('Data has been drained');
|
|
1708
|
+
});
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
// good practice to catch warnings (ie stat failures and other non-blocking errors)
|
|
1712
|
+
archive.on('warning', function(err) {
|
|
1713
|
+
if (err.code === 'ENOENT') {
|
|
1714
|
+
// log warning
|
|
1715
|
+
} else {
|
|
1716
|
+
// throw error
|
|
1717
|
+
throw err;
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
|
|
1721
|
+
// good practice to catch this error explicitly
|
|
1722
|
+
archive.on('error', function(err) {
|
|
1723
|
+
throw err;
|
|
1724
|
+
});
|
|
1725
|
+
|
|
1726
|
+
await archive.finalize();
|
|
1677
1727
|
|
|
1678
1728
|
return output;
|
|
1679
1729
|
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyCaseWidget>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
@@ -25,7 +25,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
25
25
|
CASE_INFO: {
|
|
26
26
|
CASE_INFO_ID: 'caseInfo.ID'
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
} as any;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -33,7 +33,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
33
33
|
getLocaleValue: (value: any) => {
|
|
34
34
|
return value;
|
|
35
35
|
}
|
|
36
|
-
};
|
|
36
|
+
} as any;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
window.PCore.getDataApiUtils = () => {
|
|
@@ -43,7 +43,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
43
43
|
resolve(historyData);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
};
|
|
46
|
+
} as any;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
const props = {
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyDate>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getEnvironmentInfo = () => {
|
|
@@ -26,7 +26,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
26
26
|
getLocale: () => {
|
|
27
27
|
return 'en-GB';
|
|
28
28
|
}
|
|
29
|
-
};
|
|
29
|
+
} as any;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const BasePegaDxilMyDate: Story = args => {
|
|
@@ -14,7 +14,7 @@ type Story = StoryObj<typeof PegaDxilMyDateTime>;
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
if (!window.PCore) {
|
|
17
|
-
window.PCore = {};
|
|
17
|
+
window.PCore = {} as any;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
window.PCore.getEnvironmentInfo = () => {
|
|
@@ -25,7 +25,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
25
25
|
getLocale: () => {
|
|
26
26
|
return 'en-GB';
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
} as any;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const BasePegaDxilMyDateTime: Story = (args: any) => {
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx
CHANGED
|
@@ -21,7 +21,7 @@ export default meta;
|
|
|
21
21
|
type Story = StoryObj<typeof PegaDxilMyDetails>;
|
|
22
22
|
|
|
23
23
|
if (!window.PCore) {
|
|
24
|
-
window.PCore = {};
|
|
24
|
+
window.PCore = {} as any;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -29,7 +29,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
29
29
|
getLocaleValue: (value: any) => {
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
|
-
};
|
|
32
|
+
} as any;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
window.PCore.getUserApi = () => {
|
|
@@ -39,7 +39,7 @@ window.PCore.getUserApi = () => {
|
|
|
39
39
|
resolve(operatorDetails);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
};
|
|
42
|
+
} as any;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
const Region = (props: any) => {
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyIconButtonUrl>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const statelistData = {
|
|
@@ -49,7 +49,7 @@ export const BasePegaDxilMyIconButtonUrl: Story = (args: any) => {
|
|
|
49
49
|
resolve(statelistData);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
};
|
|
52
|
+
} as any;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
const props = {
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx
CHANGED
|
@@ -19,7 +19,7 @@ type Story = StoryObj<typeof PegaDxilMyPage>;
|
|
|
19
19
|
|
|
20
20
|
export const BasePegaDxilMyPage: Story = (args: any) => {
|
|
21
21
|
if (!window.PCore) {
|
|
22
|
-
window.PCore = {};
|
|
22
|
+
window.PCore = {} as any;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -27,7 +27,7 @@ export const BasePegaDxilMyPage: Story = (args: any) => {
|
|
|
27
27
|
getLocaleValue: (val: any) => {
|
|
28
28
|
return val;
|
|
29
29
|
}
|
|
30
|
-
};
|
|
30
|
+
} as any;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
const configProps = pyHome1Resolved.children[0].children[0].config;
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyPageCaseWidget>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -23,7 +23,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
23
23
|
getLocaleValue: (value: any) => {
|
|
24
24
|
return value;
|
|
25
25
|
}
|
|
26
|
-
};
|
|
26
|
+
} as any;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
window.PCore.getUserApi = () => {
|
|
@@ -33,7 +33,7 @@ window.PCore.getUserApi = () => {
|
|
|
33
33
|
resolve(operatorDetails);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
};
|
|
36
|
+
} as any;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export const BasePegaDxilMyPageCaseWidget: Story = (args: any) => {
|
|
@@ -17,7 +17,7 @@ export default meta;
|
|
|
17
17
|
type Story = StoryObj<typeof PegaDxilMyPageWidget>;
|
|
18
18
|
|
|
19
19
|
if (!window.PCore) {
|
|
20
|
-
window.PCore = {};
|
|
20
|
+
window.PCore = {} as any;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const worklistData = {
|
|
@@ -59,7 +59,7 @@ export const BasePegaDxilMyPageWidget: Story = (args: any) => {
|
|
|
59
59
|
resolve(worklistData);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
};
|
|
62
|
+
} as any;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const props = {
|
|
@@ -20,7 +20,7 @@ export default meta;
|
|
|
20
20
|
type Story = StoryObj<typeof PegaDxilMyTwoColumnDetails>;
|
|
21
21
|
|
|
22
22
|
if (!window.PCore) {
|
|
23
|
-
window.PCore = {};
|
|
23
|
+
window.PCore = {} as any;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -28,7 +28,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
28
28
|
getLocaleValue: (value: any) => {
|
|
29
29
|
return value;
|
|
30
30
|
}
|
|
31
|
-
};
|
|
31
|
+
} as any;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
window.PCore.getUserApi = () => {
|
|
@@ -38,7 +38,7 @@ window.PCore.getUserApi = () => {
|
|
|
38
38
|
resolve(operatorDetails);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
};
|
|
41
|
+
} as any;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const Region = (props: any) => {
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyCaseWidget>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
@@ -25,7 +25,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
25
25
|
CASE_INFO: {
|
|
26
26
|
CASE_INFO_ID: 'caseInfo.ID'
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
} as any;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -33,7 +33,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
33
33
|
getLocaleValue: (value: any) => {
|
|
34
34
|
return value;
|
|
35
35
|
}
|
|
36
|
-
};
|
|
36
|
+
} as any;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
window.PCore.getDataApiUtils = () => {
|
|
@@ -43,7 +43,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
43
43
|
resolve(historyData);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
};
|
|
46
|
+
} as any;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
const props = {
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyDate>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getEnvironmentInfo = () => {
|
|
@@ -26,7 +26,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
26
26
|
getLocale: () => {
|
|
27
27
|
return 'en-GB';
|
|
28
28
|
}
|
|
29
|
-
};
|
|
29
|
+
} as any;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const BasePegaDxilMyDate: Story = args => {
|
|
@@ -14,7 +14,7 @@ type Story = StoryObj<typeof PegaDxilMyDateTime>;
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
if (!window.PCore) {
|
|
17
|
-
window.PCore = {};
|
|
17
|
+
window.PCore = {} as any;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
window.PCore.getEnvironmentInfo = () => {
|
|
@@ -25,7 +25,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
25
25
|
getLocale: () => {
|
|
26
26
|
return 'en-GB';
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
} as any;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const BasePegaDxilMyDateTime: Story = (args: any) => {
|
|
@@ -21,7 +21,7 @@ export default meta;
|
|
|
21
21
|
type Story = StoryObj<typeof PegaDxilMyDetails>;
|
|
22
22
|
|
|
23
23
|
if (!window.PCore) {
|
|
24
|
-
window.PCore = {};
|
|
24
|
+
window.PCore = {} as any;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -29,7 +29,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
29
29
|
getLocaleValue: (value: any) => {
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
|
-
};
|
|
32
|
+
} as any;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
window.PCore.getUserApi = () => {
|
|
@@ -39,7 +39,7 @@ window.PCore.getUserApi = () => {
|
|
|
39
39
|
resolve(operatorDetails);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
};
|
|
42
|
+
} as any;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
const Region = (props: any) => {
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyIconButtonUrl>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const statelistData = {
|
|
@@ -49,7 +49,7 @@ export const BasePegaDxilMyIconButtonUrl: Story = (args: any) => {
|
|
|
49
49
|
resolve(statelistData);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
};
|
|
52
|
+
} as any;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
const props = {
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx
CHANGED
|
@@ -19,7 +19,7 @@ type Story = StoryObj<typeof PegaDxilMyPage>;
|
|
|
19
19
|
|
|
20
20
|
export const BasePegaDxilMyPage: Story = (args: any) => {
|
|
21
21
|
if (!window.PCore) {
|
|
22
|
-
window.PCore = {};
|
|
22
|
+
window.PCore = {} as any;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -27,7 +27,7 @@ export const BasePegaDxilMyPage: Story = (args: any) => {
|
|
|
27
27
|
getLocaleValue: (val: any) => {
|
|
28
28
|
return val;
|
|
29
29
|
}
|
|
30
|
-
};
|
|
30
|
+
} as any;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
const configProps = pyHome1Resolved.children[0].children[0].config;
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyPageCaseWidget>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -23,7 +23,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
23
23
|
getLocaleValue: (value: any) => {
|
|
24
24
|
return value;
|
|
25
25
|
}
|
|
26
|
-
};
|
|
26
|
+
} as any;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
window.PCore.getUserApi = () => {
|
|
@@ -33,7 +33,7 @@ window.PCore.getUserApi = () => {
|
|
|
33
33
|
resolve(operatorDetails);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
};
|
|
36
|
+
} as any;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export const BasePegaDxilMyPageCaseWidget: Story = (args: any) => {
|
|
@@ -17,7 +17,7 @@ export default meta;
|
|
|
17
17
|
type Story = StoryObj<typeof PegaDxilMyPageWidget>;
|
|
18
18
|
|
|
19
19
|
if (!window.PCore) {
|
|
20
|
-
window.PCore = {};
|
|
20
|
+
window.PCore = {} as any;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const worklistData = {
|
|
@@ -59,7 +59,7 @@ export const BasePegaDxilMyPageWidget: Story = (args: any) => {
|
|
|
59
59
|
resolve(worklistData);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
};
|
|
62
|
+
} as any;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const props = {
|
|
@@ -20,7 +20,7 @@ export default meta;
|
|
|
20
20
|
type Story = StoryObj<typeof PegaDxilMyTwoColumnDetails>;
|
|
21
21
|
|
|
22
22
|
if (!window.PCore) {
|
|
23
|
-
window.PCore = {};
|
|
23
|
+
window.PCore = {} as any;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -28,7 +28,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
28
28
|
getLocaleValue: (value: any) => {
|
|
29
29
|
return value;
|
|
30
30
|
}
|
|
31
|
-
};
|
|
31
|
+
} as any;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
window.PCore.getUserApi = () => {
|
|
@@ -38,7 +38,7 @@ window.PCore.getUserApi = () => {
|
|
|
38
38
|
resolve(operatorDetails);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
};
|
|
41
|
+
} as any;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const Region = (props: any) => {
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyCaseWidget>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getConstants = () => {
|
|
@@ -23,7 +23,7 @@ window.PCore.getConstants = () => {
|
|
|
23
23
|
CASE_INFO: {
|
|
24
24
|
CASE_INFO_ID: 'caseInfo.ID'
|
|
25
25
|
}
|
|
26
|
-
};
|
|
26
|
+
} as any;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -31,7 +31,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
31
31
|
getLocaleValue: (value: any) => {
|
|
32
32
|
return value;
|
|
33
33
|
}
|
|
34
|
-
};
|
|
34
|
+
} as any;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
window.PCore.getDataApiUtils = () => {
|
|
@@ -41,7 +41,7 @@ window.PCore.getDataApiUtils = () => {
|
|
|
41
41
|
resolve(historyData);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
};
|
|
44
|
+
} as any;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyDate>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getEnvironmentInfo = () => {
|
|
@@ -26,7 +26,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
26
26
|
getLocale: () => {
|
|
27
27
|
return 'en-GB';
|
|
28
28
|
}
|
|
29
|
-
};
|
|
29
|
+
} as any;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const BasePegaDxilMyDate: Story = args => {
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx
CHANGED
|
@@ -14,7 +14,7 @@ type Story = StoryObj<typeof PegaDxilMyDateTime>;
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
if (!window.PCore) {
|
|
17
|
-
window.PCore = {};
|
|
17
|
+
window.PCore = {} as any;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
window.PCore.getEnvironmentInfo = () => {
|
|
@@ -25,7 +25,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
25
25
|
getLocale: () => {
|
|
26
26
|
return 'en-GB';
|
|
27
27
|
}
|
|
28
|
-
};
|
|
28
|
+
} as any;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const BasePegaDxilMyDateTime: Story = (args: any) => {
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx
CHANGED
|
@@ -21,7 +21,7 @@ export default meta;
|
|
|
21
21
|
type Story = StoryObj<typeof PegaDxilMyDetails>;
|
|
22
22
|
|
|
23
23
|
if (!window.PCore) {
|
|
24
|
-
window.PCore = {};
|
|
24
|
+
window.PCore = {} as any;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -29,7 +29,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
29
29
|
getLocaleValue: (value: any) => {
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
|
-
};
|
|
32
|
+
} as any;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
window.PCore.getUserApi = () => {
|
|
@@ -39,7 +39,7 @@ window.PCore.getUserApi = () => {
|
|
|
39
39
|
resolve(operatorDetails);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
};
|
|
42
|
+
} as any;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
const Region = (props: any) => {
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyIconButtonUrl>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const countrylistData = {
|
|
@@ -47,7 +47,7 @@ window.PCore.getDataPageUtils = () => {
|
|
|
47
47
|
resolve(countrylistData);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
};
|
|
50
|
+
} as any;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export const BasePegaDxilMyIconButtonUrl: Story = (args: any) => {
|
package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx
CHANGED
|
@@ -19,7 +19,7 @@ type Story = StoryObj<typeof PegaDxilMyPage>;
|
|
|
19
19
|
|
|
20
20
|
export const BasePegaDxilMyPage: Story = (args: any) => {
|
|
21
21
|
if (!window.PCore) {
|
|
22
|
-
window.PCore = {};
|
|
22
|
+
window.PCore = {} as any;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -27,7 +27,7 @@ export const BasePegaDxilMyPage: Story = (args: any) => {
|
|
|
27
27
|
getLocaleValue: (val: any) => {
|
|
28
28
|
return val;
|
|
29
29
|
}
|
|
30
|
-
};
|
|
30
|
+
} as any;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
const configProps = pyHome1Resolved.children[0].children[0].config;
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof PegaDxilMyPageCaseWidget>;
|
|
16
16
|
|
|
17
17
|
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
18
|
+
window.PCore = {} as any;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
window.PCore.getLocaleUtils = () => {
|
|
@@ -23,7 +23,7 @@ window.PCore.getLocaleUtils = () => {
|
|
|
23
23
|
getLocaleValue: (value: any) => {
|
|
24
24
|
return value;
|
|
25
25
|
}
|
|
26
|
-
};
|
|
26
|
+
} as any;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
window.PCore.getUserApi = () => {
|
|
@@ -33,7 +33,7 @@ window.PCore.getUserApi = () => {
|
|
|
33
33
|
resolve(operatorDetails);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
};
|
|
36
|
+
} as any;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export const BasePegaDxilMyPageCaseWidget: Story = (args: any) => {
|