@pega/custom-dx-components 0.25.22 → 0.25.24
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/build-jest-assets/index.js +0 -1
- package/src/tasks/build-lib/helper.js +0 -2
- package/src/tasks/build-lib/index.js +3 -3
- package/src/tasks/create/index.js +5 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create-all/index.js +5 -1
- package/src/tasks/delete/helper.js +0 -1
- package/src/tasks/delete/index.js +5 -1
- package/src/tasks/delete-lib/helper.js +0 -1
- package/src/tasks/delete-pub/helper.js +7 -2
- package/src/tasks/delete-version/index.js +0 -1
- package/src/tasks/export-archive/helper.js +7 -1
- package/src/tasks/export-archive/index.js +10 -34
- package/src/tasks/import-archive/helper.js +19 -5
- package/src/tasks/import-archive/index.js +247 -35
- package/src/tasks/import-comp/helper.js +0 -2
- package/src/tasks/init/template/package.json.mustache +1 -1
- package/src/tasks/init/template/tasks.config.json +1 -1
- package/src/tasks/list/helper.js +17 -2
- package/src/tasks/list-lib/index.js +10 -1
- package/src/tasks/list-pub/helper.js +2 -4
- package/src/tasks/list-pub/index.js +15 -2
- package/src/tasks/publish/helper.js +0 -1
- package/src/tasks/publish/index.js +13 -1
- package/src/tasks/publish-all/index.js +10 -1
- package/src/tasks/publish-archive/index.js +53 -83
- package/src/tasks/publish-lib/index.js +0 -23
- package/src/tasks/rename/index.js +9 -1
- package/src/tasks/restore/index.js +19 -13
- package/src/tasks/set-perm/index.js +0 -2
- package/src/tasks/show-help/index.js +1 -5
- package/src/tasks/show-status/index.js +19 -6
- package/src/tasks/store/index.js +39 -18
- package/src/tasks/switch-lib/helper.js +0 -1
- package/src/tasks/validator/index.js +10 -5
- package/src/util.js +21 -77
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +1 -0
- package/tests/assets/library/components/create/shared/create-nonce.ts +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +1 -0
- package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +1 -0
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +8 -8
- package/tests/functional/localCreateBuildDelete.test.js +8 -8
- package/tests/functional/localCreateListDelete.test.js +8 -8
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +8 -8
- package/tests/functional/localCreatePublishDelete.test.js +8 -8
- package/tests/functional/localCreateRenameDelete.test.js +8 -8
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +376 -0
package/src/util.js
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
SHARED_DIRECTORY,
|
|
37
37
|
SHOW_DEBUG,
|
|
38
38
|
COMPONENTS_PATH,
|
|
39
|
+
COMPONENT_SCHEMA,
|
|
39
40
|
ARCHIVES_PATH,
|
|
40
41
|
BIN_ARCHIVES_PATH,
|
|
41
42
|
TEMP_PATH,
|
|
@@ -302,14 +303,6 @@ if (showDebug) addDebugLog("applyPegaData", "", "");
|
|
|
302
303
|
// let currentPackageData;
|
|
303
304
|
let currentPackageLockData;
|
|
304
305
|
|
|
305
|
-
// try {
|
|
306
|
-
// currentPackageData = fs.readFileSync(currentPackagePath);
|
|
307
|
-
// }
|
|
308
|
-
// catch (ex) {
|
|
309
|
-
// console.log(chalk.red(`\nUnable to retrieve current package.json.`));
|
|
310
|
-
// process.exit(1);
|
|
311
|
-
// }
|
|
312
|
-
|
|
313
306
|
try {
|
|
314
307
|
currentPackageLockData = fs.readFileSync(currentPackageLockPath);
|
|
315
308
|
}
|
|
@@ -401,32 +394,6 @@ export const getApplicationAndVersionFromToken = async() => {
|
|
|
401
394
|
|
|
402
395
|
export const getLibraryBased = () => {
|
|
403
396
|
if (showDebug) addDebugLog("getLibraryBased", "", "");
|
|
404
|
-
// const currentDirectory = process.cwd();
|
|
405
|
-
// const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
406
|
-
|
|
407
|
-
// try {
|
|
408
|
-
// // force to throw error and not console log
|
|
409
|
-
// await checkPathAccess(pegaConfigJsonPath, {}, true);
|
|
410
|
-
// }
|
|
411
|
-
// catch (ex) {
|
|
412
|
-
// // when can't find it, always be false, assume no library based.
|
|
413
|
-
// // This is IMPORTANT for init (npx install)
|
|
414
|
-
// return false;
|
|
415
|
-
// }
|
|
416
|
-
|
|
417
|
-
// let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
418
|
-
// data = JSON.parse(data);
|
|
419
|
-
|
|
420
|
-
// if (data[LIBRARY_BASED]) {
|
|
421
|
-
// if (showDebug) addDebugLog("getLibraryBased", `based: ${data[LIBRARY_BASED]}`, "");
|
|
422
|
-
// if (showDebug) addDebugLog("getLibraryBased", "END", "-");
|
|
423
|
-
// return data[LIBRARY_BASED];
|
|
424
|
-
// }
|
|
425
|
-
// else {
|
|
426
|
-
// if (showDebug) addDebugLog("getLibraryBased", "END", "-");
|
|
427
|
-
// return false;
|
|
428
|
-
// }
|
|
429
|
-
|
|
430
397
|
return defaultConfigs.isLibraryBased;
|
|
431
398
|
}
|
|
432
399
|
|
|
@@ -525,26 +492,7 @@ export const setLibraryBasedCL = async (isLibraryBasedCL) => {
|
|
|
525
492
|
}
|
|
526
493
|
|
|
527
494
|
export const getShowDebug = () => {
|
|
528
|
-
|
|
529
|
-
// const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
530
|
-
|
|
531
|
-
// try {
|
|
532
|
-
// // force to throw error and not console log
|
|
533
|
-
// await checkPathAccess(pegaConfigJsonPath, {}, true);
|
|
534
|
-
// }
|
|
535
|
-
// catch (ex) {
|
|
536
|
-
// // when can't find it, always be false, assume no library based.
|
|
537
|
-
// // This is IMPORTANT for init (npx install)
|
|
538
|
-
// return false;
|
|
539
|
-
// }
|
|
540
|
-
|
|
541
|
-
// let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
542
|
-
// data = JSON.parse(data);
|
|
543
|
-
|
|
544
|
-
// if (data[SHOW_DEBUG]) {
|
|
545
|
-
// return data[SHOW_DEBUG];
|
|
546
|
-
// }
|
|
547
|
-
// else return false;
|
|
495
|
+
|
|
548
496
|
return defaultConfigs.showDebug;
|
|
549
497
|
|
|
550
498
|
}
|
|
@@ -924,8 +872,11 @@ if (showDebug) addDebugLog("getPegaServerConfig", "", "+");
|
|
|
924
872
|
|
|
925
873
|
if (OAuthData) {
|
|
926
874
|
const oOAuthData = JSON.parse(OAuthData);
|
|
927
|
-
|
|
928
|
-
|
|
875
|
+
if (oOAuthData["isolation-ids"]) {
|
|
876
|
+
const isolationId = oOAuthData["isolation-ids"].write;
|
|
877
|
+
pegaConfig['server-config'].isolationId = isolationId[0];
|
|
878
|
+
}
|
|
879
|
+
|
|
929
880
|
}
|
|
930
881
|
|
|
931
882
|
}
|
|
@@ -1267,12 +1218,6 @@ export const showVersion = async () => {
|
|
|
1267
1218
|
process.exit(1);
|
|
1268
1219
|
}
|
|
1269
1220
|
|
|
1270
|
-
// const hasGit = checkGit(process.cwd());
|
|
1271
|
-
|
|
1272
|
-
// if (!hasGit) {
|
|
1273
|
-
// console.log(chalk.redBright('DX Component Builder - Git needs to be installed.'));
|
|
1274
|
-
// process.exit(1);
|
|
1275
|
-
// }
|
|
1276
1221
|
};
|
|
1277
1222
|
|
|
1278
1223
|
export const getOOTBComponents = async () => {
|
|
@@ -2534,21 +2479,6 @@ if (showDebug) addDebugLog("checkLibraryAndArchives", ``, "");
|
|
|
2534
2479
|
|
|
2535
2480
|
export const hasLibraryAndVersion = async (libraryName, version, devBuild) => {
|
|
2536
2481
|
if (showDebug) addDebugLog("hasLibraryAndVersion", `libraryName: ${libraryName}, version: ${version}, devBuild: ${devBuild}`, "");
|
|
2537
|
-
// const orgLib = getConfigDefaults();
|
|
2538
|
-
// const currentOrgLib = `${orgLib.organization}_${libraryName}`;
|
|
2539
|
-
// const libFiles = await getLibraryArchivesFiles(currentOrgLib);
|
|
2540
|
-
// let currentVersion = version;
|
|
2541
|
-
// if (devBuild) {
|
|
2542
|
-
// currentVersion = currentVersion.concat("-dev");
|
|
2543
|
-
// }
|
|
2544
|
-
// const fileName = `${currentOrgLib}_${currentVersion}.zip`;
|
|
2545
|
-
// if (libFiles && libFiles.length > 0) {
|
|
2546
|
-
// if (libFiles.includes(fileName)) {
|
|
2547
|
-
// return true;
|
|
2548
|
-
// }
|
|
2549
|
-
// }
|
|
2550
|
-
|
|
2551
|
-
// return false;
|
|
2552
2482
|
|
|
2553
2483
|
const orgLib = getConfigDefaults();
|
|
2554
2484
|
const currentOrgLib = `${orgLib.organization}_${libraryName}`;
|
|
@@ -2683,6 +2613,20 @@ if (showDebug) addDebugLog("getJestFunctionalTestList", ``, "");
|
|
|
2683
2613
|
|
|
2684
2614
|
}
|
|
2685
2615
|
|
|
2616
|
+
export const getSubTypeLabel = (type, subtype) => {
|
|
2617
|
+
const subTypeList = COMPONENT_SCHEMA.subtype;
|
|
2618
|
+
const typeList = subTypeList[type.toLowerCase()];
|
|
2619
|
+
|
|
2620
|
+
for (let i in typeList) {
|
|
2621
|
+
if (typeList[i]['value'] === subtype) {
|
|
2622
|
+
const label = typeList[i]['name'].replace("&", "and");
|
|
2623
|
+
return label;
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
return "";
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2686
2630
|
|
|
2687
2631
|
// init
|
|
2688
2632
|
await forceDefaultsUpdate();
|
|
@@ -381,30 +381,6 @@ export function format(value, type, options) {
|
|
|
381
381
|
let formattedValue;
|
|
382
382
|
|
|
383
383
|
switch (type?.toLowerCase()) {
|
|
384
|
-
case 'currency': {
|
|
385
|
-
const defaultOptions = {
|
|
386
|
-
locale: getLocale(),
|
|
387
|
-
position: 'before',
|
|
388
|
-
decPlaces: 2
|
|
389
|
-
};
|
|
390
|
-
const params = { ...defaultOptions, ...options };
|
|
391
|
-
formattedValue = Currency.Currency(value, params);
|
|
392
|
-
break;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
case 'decimal': {
|
|
396
|
-
const defaultOptions = { locale: getLocale(), decPlaces: 2 };
|
|
397
|
-
const params = { ...defaultOptions, ...options };
|
|
398
|
-
formattedValue = Currency.Decimal(value, params);
|
|
399
|
-
break;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
case 'integer': {
|
|
403
|
-
const defaultOptions = { locale: getLocale() };
|
|
404
|
-
const params = { ...defaultOptions, ...options };
|
|
405
|
-
formattedValue = Currency.Integer(value, params);
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
384
|
|
|
409
385
|
case 'date': {
|
|
410
386
|
const defaultOptions = {
|
|
@@ -165,10 +165,6 @@ export function updateWithTimeZone(stateFromTable, meta) {
|
|
|
165
165
|
return stateFromTable;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export function isHybrid() {
|
|
169
|
-
return typeof pega !== 'undefined' && typeof pega.desktop !== 'undefined';
|
|
170
|
-
}
|
|
171
|
-
|
|
172
168
|
export const isPageListInPath = (propertyName, currentClassID) => {
|
|
173
169
|
if (!propertyName.includes('.')) {
|
|
174
170
|
return false;
|