@pega/custom-dx-components 25.1.10-alpha-0.13 → 25.1.10

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 (66) hide show
  1. package/README.md +9 -2
  2. package/package.json +4 -4
  3. package/src/tasks/build-comp/index.js +1 -1
  4. package/src/tasks/build-jest-assets/index.js +1 -1
  5. package/src/tasks/build-lib/helper.js +1 -1
  6. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/config.json.mustache +146 -0
  7. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/demo.stories.tsx.mustache +61 -0
  8. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/demo.test.tsx.mustache +23 -0
  9. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/event-utils.ts.mustache +18 -0
  10. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/index.tsx.mustache +246 -0
  11. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/mock.ts.mustache +40 -0
  12. package/src/tasks/create/templates/Launchpad/Field/Text-Phone/styles.ts.mustache +8 -0
  13. package/src/tasks/create/templates/Launchpad/Template/FORM/DefaultForm.svg +29 -0
  14. package/src/tasks/create/templates/Launchpad/Template/FORM/DetailsRender.tsx.mustache +59 -0
  15. package/src/tasks/create/templates/Launchpad/Template/FORM/config.json.mustache +45 -0
  16. package/src/tasks/create/templates/Launchpad/Template/FORM/demo.stories.tsx.mustache +255 -0
  17. package/src/tasks/create/templates/Launchpad/Template/FORM/demo.test.tsx.mustache +40 -0
  18. package/src/tasks/create/templates/Launchpad/Template/FORM/index.tsx.mustache +75 -0
  19. package/src/tasks/create/templates/Launchpad/Template/FORM/mock.ts.mustache +135 -0
  20. package/src/tasks/create/templates/Launchpad/Template/FORM/styles.ts.mustache +8 -0
  21. package/src/tasks/create/templates/Launchpad/Template/FORM-region/DetailsRender.tsx.mustache +59 -0
  22. package/src/tasks/create/templates/Launchpad/Template/FORM-region/TwoColumn.svg +38 -0
  23. package/src/tasks/create/templates/Launchpad/Template/FORM-region/config.json.mustache +27 -0
  24. package/src/tasks/create/templates/Launchpad/Template/FORM-region/demo.stories.tsx.mustache +272 -0
  25. package/src/tasks/create/templates/Launchpad/Template/FORM-region/demo.test.tsx.mustache +56 -0
  26. package/src/tasks/create/templates/Launchpad/Template/FORM-region/index.tsx.mustache +80 -0
  27. package/src/tasks/create/templates/Launchpad/Template/FORM-region/mock.ts.mustache +141 -0
  28. package/src/tasks/create/templates/Launchpad/Template/FORM-region/styles.ts.mustache +8 -0
  29. package/src/tasks/create-lib/index.js +3 -3
  30. package/src/tasks/create-version/index.js +1 -1
  31. package/src/tasks/delete/helper.js +1 -1
  32. package/src/tasks/delete-all/helper.js +2 -2
  33. package/src/tasks/delete-pub/helper.js +3 -3
  34. package/src/tasks/delete-pub/index.js +3 -3
  35. package/src/tasks/export-archive/index.js +7 -7
  36. package/src/tasks/import-archive/helper.js +6 -6
  37. package/src/tasks/import-archive/index.js +8 -8
  38. package/src/tasks/import-comp/index.js +1 -1
  39. package/src/tasks/init/template/README.md +9 -2
  40. package/src/tasks/init/template/package.json.mustache +7 -7
  41. package/src/tasks/linter/index.js +1 -1
  42. package/src/tasks/list-lib/index.js +4 -4
  43. package/src/tasks/move/index.js +7 -7
  44. package/src/tasks/publish/index.js +17 -9
  45. package/src/tasks/publish-lib/index.js +11 -4
  46. package/src/tasks/rename/index.js +2 -2
  47. package/src/tasks/rename-lib/index.js +1 -1
  48. package/src/tasks/restore-config/index.js +1 -1
  49. package/src/tasks/show-help/index.js +12 -6
  50. package/src/tasks/switch-lib/index.js +2 -2
  51. package/src/tasks/switch-version/index.js +1 -1
  52. package/src/tasks/validator/index.js +2 -2
  53. package/src/util.js +23 -18
  54. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.ts +0 -4
  55. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +1 -6
  56. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.ts +1 -6
  57. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -4
  58. package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +0 -9
  59. package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +0 -9
  60. /package/{tests/assets/original/components/create/shared/PConnProps.d.ts → src/tasks/create/templates/Launchpad/Field/Text-Phone/PConnProps.d.ts.mustache} +0 -0
  61. /package/{tests/assets/original/components/create/shared/create-nonce.ts → src/tasks/create/templates/Launchpad/Field/Text-Phone/create-nonce.ts.mustache} +0 -0
  62. /package/{tests/assets/original/components/create/shared/suggestions-handler.ts → src/tasks/create/templates/Launchpad/Field/Text-Phone/suggestions-handler.ts.mustache} +0 -0
  63. /package/{tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts → src/tasks/create/templates/Launchpad/Template/FORM/PConnProps.d.ts.mustache} +0 -0
  64. /package/{tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts → src/tasks/create/templates/Launchpad/Template/FORM/create-nonce.ts.mustache} +0 -0
  65. /package/{tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts → src/tasks/create/templates/Launchpad/Template/FORM-region/PConnProps.d.ts.mustache} +0 -0
  66. /package/{tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts → src/tasks/create/templates/Launchpad/Template/FORM-region/create-nonce.ts.mustache} +0 -0
@@ -39,19 +39,23 @@ export const showHelpV1 = () => {
39
39
  console.log(`${chalk.cyan('npm run buildAllComponents')}\tvalidate and build ALL components before publishing, checking for errors`);
40
40
  console.log(`${chalk.cyan('npm run rename ')}\trename a component`);
41
41
  console.log(`${chalk.cyan('npm run importComponent ')}\timport a component from a path`);
42
+ console.log("");
42
43
  console.log(`${chalk.cyan('npm run startStorybook ')}\tstorybook components for testing`);
44
+ console.log(`${chalk.cyan('npm run test')}\t\t\trun component unit tests`);
43
45
 
44
- console.log(`\n${chalk.underline(`Local and Server(needs authentication)`)}`);
46
+ console.log(`\n${chalk.underline(`Local and Server (needs authentication)`)}`);
45
47
  console.log(`${chalk.cyan('npm run list ')}\tget list of components`);
46
48
  console.log(`${chalk.cyan('npm run delete ')}\tdelete a component`);
47
49
  console.log(`${chalk.cyan('npm run deleteAll ')}\tdelete ALL components`);
48
50
 
49
- console.log(`\n${chalk.underline(`Server(needs authentication)`)}`);
51
+ console.log(`\n${chalk.underline(`Server (needs authentication)`)}`);
50
52
  console.log(`${chalk.cyan('npm run publish ')}\tpublish a component to server`);
51
53
  console.log(`${chalk.cyan('npm run publishAll ')}\tpublish ALL components to server`);
52
54
 
53
55
  console.log("");
54
56
  console.log(`\n${chalk.underline(`Notes`)}`);
57
+ console.log(`${chalk.yellow('>> By choosing to create and use custom components, you agree to keep them up-to-date with every release of Pega Infinity,')}`);
58
+ console.log(`${chalk.yellow('>> as well as meeting compliance standards for data privacy and accessibility.')}\n`);
55
59
  console.log(`Cannot publish a component with prefix (Org_Lib) that matches a Rule-UI-ComponentLibrary (libraryModeCL) in same ruleset.`);
56
60
 
57
61
  console.log("");
@@ -68,7 +72,7 @@ export const showHelpV2 = (isCL) => {
68
72
  console.log(`\nUsage:`);
69
73
 
70
74
 
71
- console.log(`\n${chalk.underline(`Authenticate`)}`);
75
+ console.log(`\n${chalk.underline(`Authenticate (for Server commands)`)}`);
72
76
  console.log(`${chalk.cyan('npm run authenticate')}\t\tauthenticate to a server (required for publish commands)`);
73
77
 
74
78
  console.log(`\n${chalk.underline(`Library`)}`);
@@ -98,7 +102,7 @@ export const showHelpV2 = (isCL) => {
98
102
  console.log(`\n${chalk.underline(`Published Versions (needs authentication)`)}`);
99
103
  console.log(`${chalk.cyan('npm run publish ')}\tpublish current library/version to server (creates a local published library as well)`);
100
104
  console.log(`${chalk.cyan('npm run listPublishedLib ')}\tget contents of published library/version (local or server)`);
101
- console.log(`${chalk.cyan('npm run deletePublishedLib')}\tdelete ALL contents of published libary/version (local or server)`);
105
+ console.log(`${chalk.cyan('npm run deletePublishedLib')}\tdelete ALL contents of published library/version (local or server)`);
102
106
 
103
107
  console.log(`\n${chalk.underline(`Components (in current library/version context)`)}`);
104
108
  console.log(`${chalk.cyan('npm run create ')}\t\tcreate a component`);
@@ -122,8 +126,10 @@ export const showHelpV2 = (isCL) => {
122
126
  console.log("");
123
127
 
124
128
  console.log(`\n${chalk.underline(`Notes`)}`);
129
+ console.log(`${chalk.yellow('>> By choosing to create and use custom components, you agree to keep them up-to-date with every release of Pega Infinity,')}`);
130
+ console.log(`${chalk.yellow('>> as well as meeting compliance standards for data privacy and accessibility.')}\n`);
125
131
  console.log(`The following commands will store existing version in storage before executing the command:`);
126
- console.log(`${chalk.cyan(`createLib, switchLib, createLibVersion, switchLibVersion, publishLibVersion, exportLibVersion, storeLibVersion`)}`);
132
+ console.log(`${chalk.cyan(`createLib, switchLib, createLibVersion, switchLibVersion, publish, exportLibVersion, storeLibVersion`)}`);
127
133
  console.log(`\nWhen editing in an IDE, always ${chalk.yellow("SAVE")} changes to components before doing a library/version context switch`);
128
134
  console.log(`or changes will be lost!`);
129
135
  console.log(`\nStoring is to LOCAL storage and is not backed up. You should export your library/versions archives to ${chalk.yellow("git")}`);
@@ -133,7 +139,7 @@ export const showHelpV2 = (isCL) => {
133
139
  else {
134
140
  console.log(`for backup storage.`);
135
141
  }
136
- console.log(`\nIn tasks.config.json, set ${chalk.yellow("libraryModeCL")} to ${chalk.yellow("false")} for original single components or for ${chalk.yellow("Launchpad")} components.`);
142
+ console.log(`\nIn tasks.config.json, set ${chalk.yellow("libraryModeCL")} to ${chalk.yellow("false")} for original stand alone components or for ${chalk.yellow("Launchpad")} components.`);
137
143
  console.log("");
138
144
  }
139
145
 
@@ -58,7 +58,7 @@ addDebugLog("switchLibrary", "", "+");
58
58
  const componentDirectory = join (currentDirectory, "src", "components");
59
59
  const orgLib = getConfigDefaults();
60
60
 
61
- // if we have choosen to use INPUT CONFIG FILE
61
+ // if we have chosen to use INPUT CONFIG FILE
62
62
  // process and no inputs
63
63
  if (useInputConfig) {
64
64
  const inputConfig = await getInputConfigForCommand("switchLib");
@@ -104,7 +104,7 @@ addDebugLog("switchLibrary", "", "+");
104
104
 
105
105
  }
106
106
  else {
107
- // params are in different order then questions, because want of VS Code pluggin
107
+ // params are in different order then questions, because want of VS Code plugin
108
108
  if (options.params.length >= 6) {
109
109
  newOrgLib = options.params[3];
110
110
  version = options.params[4];
@@ -58,7 +58,7 @@ addDebugLog("switchVersion", "", "+");
58
58
  const orgLib = getConfigDefaults();
59
59
 
60
60
 
61
- // if we have choosen to use INPUT CONFIG FILE
61
+ // if we have chosen to use INPUT CONFIG FILE
62
62
  // process and no inputs
63
63
  if (useInputConfig) {
64
64
  const inputConfig = await getInputConfigForCommand("switchLibVersion");
@@ -309,7 +309,7 @@ const overrideSchema = {
309
309
  };
310
310
 
311
311
  const validateSchema = ajv.compile(schema);
312
- const validateOverideSchema = ajv.compile(overrideSchema);
312
+ const validateOverrideSchema = ajv.compile(overrideSchema);
313
313
 
314
314
 
315
315
 
@@ -354,7 +354,7 @@ export default async (option) => {
354
354
  catch (err) {
355
355
 
356
356
  // for now, if now file just end
357
- console.log(`${chalk.bold.yellow('Config file not availabe for: ' + componentToValidate)}`);
357
+ console.log(`${chalk.bold.yellow('Config file not available for: ' + componentToValidate)}`);
358
358
  return;
359
359
 
360
360
  }
package/src/util.js CHANGED
@@ -114,7 +114,7 @@ export const addDebugLog = (sFunctionName, sLogData, sIncDec) => {
114
114
  export const setUpDefaults = async () => {
115
115
 
116
116
  // defaults, start up function will set these up
117
- // so that won't have to continously hit files to get data
117
+ // so that won't have to continuously hit files to get data
118
118
  // thus saving time.
119
119
  let retrievedConfigData = {
120
120
  serverType: "",
@@ -167,7 +167,7 @@ export const setUpDefaults = async () => {
167
167
  if (data[LIBRARY_BASED_CL]) {
168
168
  retrievedConfigData.isLibraryBasedCL = data[LIBRARY_BASED_CL];
169
169
 
170
- // if this is true, then force librarybased to true, so it doesn't have to be set
170
+ // if this is true, then force library based to true, so it doesn't have to be set
171
171
  if (retrievedConfigData.isLibraryBasedCL) {
172
172
  retrievedConfigData.isLibraryBased = retrievedConfigData.isLibraryBasedCL;
173
173
  }
@@ -524,7 +524,7 @@ if (showDebug) addDebugLog("setLibraryBased", "", "");
524
524
  data[LIBRARY_BASED] = isLibraryBased;
525
525
 
526
526
  // update file
527
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
527
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
528
528
  try {
529
529
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(data, null, 4), { encoding: 'utf8',flag:'w' });
530
530
  }
@@ -569,7 +569,7 @@ export const setLibraryBasedCL = async (isLibraryBasedCL) => {
569
569
  }
570
570
 
571
571
  // update file
572
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
572
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
573
573
  try {
574
574
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(data, null, 4), { encoding: 'utf8',flag:'w' });
575
575
  }
@@ -845,7 +845,7 @@ if (showDebug) addDebugLog("restoreTopLevelConfigFilesFromTemplate", ``, "");
845
845
  process.exit(1);
846
846
  }
847
847
 
848
- // copy template dependecies and devDependencies
848
+ // copy template dependencies and devDependencies
849
849
  const tData = JSON.parse(retrievedTemplateData);
850
850
 
851
851
 
@@ -1019,7 +1019,7 @@ if (showDebug) addDebugLog("updateServerConfigRuleSetAndVersion", `rulesetName:
1019
1019
  serverConfig.rulesetVersion = rulesetVersion;
1020
1020
 
1021
1021
  // update file
1022
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
1022
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
1023
1023
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
1024
1024
 
1025
1025
  }
@@ -1035,7 +1035,7 @@ if (showDebug) addDebugLog("updateServerConfigArchiveRuleSetAndVersion", `rulese
1035
1035
  serverConfig.archiveRulesetVersion = rulesetVersion;
1036
1036
 
1037
1037
  // update file
1038
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
1038
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
1039
1039
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
1040
1040
 
1041
1041
  }
@@ -1095,7 +1095,7 @@ if (showDebug) addDebugLog("setConfigDevBuild", `devBuild: ${devBuild}`, "");
1095
1095
  serverConfig.devBuild = devBuild;
1096
1096
 
1097
1097
  // update file
1098
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
1098
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
1099
1099
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
1100
1100
  }
1101
1101
 
@@ -1115,7 +1115,7 @@ if (showDebug) addDebugLog("setConfigImportRelativePath", `importRelativePath: $
1115
1115
  configData[IMPORT_RELATIVE_PATH] = importRelativePath;
1116
1116
 
1117
1117
  // update file
1118
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
1118
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
1119
1119
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
1120
1120
  }
1121
1121
 
@@ -1127,7 +1127,7 @@ if (showDebug) addDebugLog("setConfigExportRelativePath", `exportRelativePath: $
1127
1127
  configData[EXPORT_RELATIVE_PATH] = exportRelativePath;
1128
1128
 
1129
1129
  // update file
1130
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
1130
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
1131
1131
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
1132
1132
  }
1133
1133
 
@@ -1170,7 +1170,7 @@ if (showDebug) addDebugLog("updateConfigVersion", `componentKey: ${componentKey}
1170
1170
 
1171
1171
  // check to see if PegaAboutData exists. If customer decides to put
1172
1172
  // data under PegaAboutData, we won't change the order
1173
- // otherise, will put at bottom
1173
+ // otherwise, will put at bottom
1174
1174
  for (let i in properties) {
1175
1175
  if (properties[i].name && properties[i].name === "PegaAboutData") {
1176
1176
  foundProp = properties[i];
@@ -1238,7 +1238,7 @@ if (showDebug) addDebugLog("setServerType", `serverType: ${serverType}`, "");
1238
1238
  serverConfig.serverType = serverType;
1239
1239
 
1240
1240
  // update file
1241
- // stringify "4", makes the json string look like JSON in the file, formated instead of a single line
1241
+ // stringify "4", makes the json string look like JSON in the file, formatted instead of a single line
1242
1242
  fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
1243
1243
 
1244
1244
  // reset
@@ -1795,8 +1795,8 @@ if (showDebug) addDebugLog("getLocalArchivedLibraryVersions", `libraryName: ${li
1795
1795
  .map(dirent => dirent.name);
1796
1796
  };
1797
1797
 
1798
- export const getLocalArchivedLibrraryVersionData = async(libraryName, libraryVersion) => {
1799
- if (showDebug) addDebugLog("getLocalArchivedLibrraryVersionData", `libraryName: ${libraryName}, libraryVersion: ${libraryVersion}`, "");
1798
+ export const getLocalArchivedLibraryVersionData = async(libraryName, libraryVersion) => {
1799
+ if (showDebug) addDebugLog("getLocalArchivedLibraryVersionData", `libraryName: ${libraryName}, libraryVersion: ${libraryVersion}`, "");
1800
1800
  const currentDirectory = process.cwd();
1801
1801
  const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, `${libraryName}`, `${libraryVersion}`);
1802
1802
 
@@ -1943,10 +1943,10 @@ if (showDebug) addDebugLog("getComponentsConfigs", "", "");
1943
1943
  export const createComponentsConfigFile = async (filePath, compDir) => {
1944
1944
  if (showDebug) addDebugLog("createComponentsConfigFile", `filePath: ${filePath}`, "");
1945
1945
  const componentsConfigJSON = await getComponentsConfigs(compDir);
1946
- const compConfgFile = join(filePath, COMPONENTS_CONFIG_FILE_NAME);
1946
+ const compConfigFile = join(filePath, COMPONENTS_CONFIG_FILE_NAME);
1947
1947
 
1948
1948
  // write out file
1949
- fs.writeFileSync(compConfgFile, JSON.stringify(componentsConfigJSON), { encoding: 'utf8',flag:'w' });
1949
+ fs.writeFileSync(compConfigFile, JSON.stringify(componentsConfigJSON), { encoding: 'utf8',flag:'w' });
1950
1950
 
1951
1951
  };
1952
1952
 
@@ -1962,6 +1962,11 @@ if (showDebug) addDebugLog("zipVersionAndArchive", `orgLibName: ${orgLibName}, v
1962
1962
  const packageJson = join(currentDirectory, PACKAGE_JSON_FILENAME);
1963
1963
  const archiveFileName = `${orgLibName}_${version}.arch.zip`;
1964
1964
 
1965
+ // check if components directory exists and if not, create a blank one
1966
+ const componentsDirectory = join(srcDirectoryPath, "components");
1967
+ if (!fs.existsSync(componentsDirectory)) {
1968
+ fs.mkdirSync(componentsDirectory, { recursive: true });
1969
+ }
1965
1970
 
1966
1971
  // const configContent = Buffer.from(fs.readFileSync(configJson)).toString();
1967
1972
  const mainDirectory = process.cwd();
@@ -2279,9 +2284,9 @@ if (showDebug) addDebugLog("updateComponentTaskConfig", "", "");
2279
2284
  const orgArchiveRulesetVersion = originalContentsData["server-config"].archiveRulesetVersion;
2280
2285
 
2281
2286
  // we keep server-config but we will restore from archive the
2282
- // rulset/version. Other stuff in task.config will come from archive
2287
+ // ruleset/version. Other stuff in task.config will come from archive
2283
2288
  originalContentsData["server-config"] = contentsData["server-config"];
2284
- // restore ruleset and verion
2289
+ // restore ruleset and version
2285
2290
  originalContentsData["server-config"].rulesetName = orgRuleset;
2286
2291
  originalContentsData["server-config"].rulesetVersion = orgRulesetVersion;
2287
2292
 
@@ -52,10 +52,6 @@ export const pyReviewRaw = {
52
52
  value: '@P .PhoneNumber',
53
53
  label: '@L Phone Number',
54
54
  datasource: {
55
- source: '@DATASOURCE D_pyCountryCallingCodeList.pxResults',
56
- fields: {
57
- value: '@P .pyCallingCode'
58
- }
59
55
  },
60
56
  key: 'PhoneNumber'
61
57
  }
@@ -138,12 +138,7 @@
138
138
  ],
139
139
  "defaultConfig": {
140
140
  "label": "@L $this.label",
141
- "datasource": {
142
- "source": "@DATASOURCE D_pyCountryCallingCodeList.pxResults",
143
- "fields": {
144
- "value": "@P .pyCallingCode"
145
- }
146
- },
141
+ "datasource": {},
147
142
  "detailFVLItem": true,
148
143
  "isFormWidth" : false,
149
144
  "isContainerWidth" : false
@@ -35,11 +35,6 @@ export const configProps = {
35
35
 
36
36
  export const stateProps = {
37
37
  value: '.PhoneSample',
38
- datasource: {
39
- source: 'D_pyCountryCallingCodeList.pxResults',
40
- fields: {
41
- value: '.pyCallingCode'
42
- }
43
- },
38
+ datasource: {},
44
39
  hasSuggestions: false
45
40
  };
@@ -58,10 +58,6 @@ export const pyReviewRaw = {
58
58
  value: '@P .PhoneNumber',
59
59
  label: '@L Phone Number',
60
60
  datasource: {
61
- source: '@DATASOURCE D_pyCountryCallingCodeList.pxResults',
62
- fields: {
63
- value: '@P .pyCallingCode'
64
- }
65
61
  },
66
62
  key: 'PhoneNumber'
67
63
  }
@@ -1,9 +0,0 @@
1
- export const suggestionsHandler = (accepted: boolean, pConn: any, setStatus: any) => {
2
- if (accepted) {
3
- pConn.acceptSuggestion();
4
- setStatus('success');
5
- } else {
6
- pConn.ignoreSuggestion();
7
- setStatus(undefined);
8
- }
9
- };
@@ -1,9 +0,0 @@
1
- export const suggestionsHandler = (accepted: boolean, pConn: any, setStatus: any) => {
2
- if (accepted) {
3
- pConn.acceptSuggestion();
4
- setStatus('success');
5
- } else {
6
- pConn.ignoreSuggestion();
7
- setStatus(undefined);
8
- }
9
- };