@pega/custom-dx-components 0.23.33 → 0.23.34

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 (44) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/constants.js +2 -2
  4. package/src/tasks/init/template/package.json.mustache +1 -1
  5. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +4 -4
  6. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.tsx +5 -5
  7. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +7 -7
  8. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyAutocomplete → Constellation/Pega_DXIL_MySearchbox}/config.json +4 -4
  9. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyAutocomplete → Constellation/Pega_DXIL_MySearchbox}/demo.stories.tsx +5 -5
  10. package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/index.tsx +12 -12
  11. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +4 -4
  12. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.tsx +5 -5
  13. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +7 -7
  14. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyAutocomplete → Launchpad/Pega_DXIL_MySearchbox}/config.json +4 -4
  15. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyAutocomplete → Launchpad/Pega_DXIL_MySearchbox}/demo.stories.tsx +5 -5
  16. package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/index.tsx +12 -12
  17. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/PConnProps.d.ts +0 -0
  18. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/component-constants.js +0 -0
  19. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/date.js +0 -0
  20. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/embed-utils.js +0 -0
  21. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/event-utils.ts +0 -0
  22. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/format-constants.js +0 -0
  23. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/mock.ts +0 -0
  24. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/picklist-utils.js +0 -0
  25. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/repeat-constants.js +0 -0
  26. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/repeat-utils.js +0 -0
  27. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/styles.ts +0 -0
  28. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/suggestions-handler.ts +0 -0
  29. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/textformat-utils.jsx +0 -0
  30. /package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/utils.ts +0 -0
  31. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/PConnProps.d.ts +0 -0
  32. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/component-constants.js +0 -0
  33. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/date.js +0 -0
  34. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/embed-utils.js +0 -0
  35. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/event-utils.ts +0 -0
  36. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/format-constants.js +0 -0
  37. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/mock.ts +0 -0
  38. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/picklist-utils.js +0 -0
  39. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/repeat-constants.js +0 -0
  40. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/repeat-utils.js +0 -0
  41. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/styles.ts +0 -0
  42. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/suggestions-handler.ts +0 -0
  43. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/textformat-utils.jsx +0 -0
  44. /package/tests/assets/components/createAll/Launchpad/{Pega_DXIL_MyAutocomplete → Pega_DXIL_MySearchbox}/utils.ts +0 -0
package/README.md CHANGED
@@ -8,7 +8,7 @@ This project provides you with an environment to extend Constellation by giving
8
8
 
9
9
  Ensure you have access to the following in your system:
10
10
 
11
- - Pega Infinity Server version 8.7 or later
11
+ - Pega Infinity Server version 23 or later
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
@@ -18,4 +18,4 @@ Ensure you have access to the following in your system:
18
18
 
19
19
  ## Latest Documentation
20
20
 
21
- Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components-88/page/constellation-dx-components/custom-components/lifecycle-dx-cosmos-components.html)
21
+ Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/lifecycle-dx-cosmos-components.html)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.23.33",
3
+ "version": "0.23.34",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
package/src/constants.js CHANGED
@@ -170,11 +170,11 @@ export const COMPONENT_SCHEMA = {
170
170
  value: 'Picklist'
171
171
  },
172
172
  {
173
- name: 'Autocomplete',
173
+ name: 'Search box',
174
174
  value: 'Picklist-Autocomplete'
175
175
  },
176
176
  {
177
- name: 'Radio Buttons',
177
+ name: 'Radio buttons',
178
178
  value: 'Picklist-RadioButtons'
179
179
  }
180
180
  ],
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@pega/configs": "^0.6.0",
72
- "@pega/custom-dx-components": "0.23.33",
72
+ "@pega/custom-dx-components": "0.23.34",
73
73
  "@pega/pcore-pconnect-typedefs": "2.0.0",
74
74
  "@storybook/addon-actions": "^7.6.7",
75
75
  "@storybook/addon-essentials": "^7.6.7",
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "Pega_DXIL_MyRadioButtons",
3
- "label": "My Radio Buttons",
4
- "description": "My Radio Buttons",
2
+ "name": "Pega_DXIL_MyRadiobuttons",
3
+ "label": "My Radio buttons",
4
+ "description": "My Radio buttons",
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyRadioButtons",
9
+ "componentKey": "Pega_DXIL_MyRadiobuttons",
10
10
  "type": "Field",
11
11
  "subtype": "Picklist",
12
12
  "icon": "images/pz-dropdown-active.svg",
@@ -6,15 +6,15 @@ import { withKnobs } from '@storybook/addon-knobs';
6
6
 
7
7
  import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
8
8
 
9
- import PegaDxilMyRadioButtons from './index';
9
+ import PegaDxilMyRadiobuttons from './index';
10
10
 
11
11
  export default {
12
- title: 'PegaDxilMyRadioButtons',
12
+ title: 'PegaDxilMyRadiobuttons',
13
13
  decorators: [withKnobs],
14
- component: PegaDxilMyRadioButtons
14
+ component: PegaDxilMyRadiobuttons
15
15
  };
16
16
 
17
- export const BasePegaDxilMyRadioButtons = () => {
17
+ export const BasePegaDxilMyRadiobuttons = () => {
18
18
 
19
19
  const [value, setValue] = useState(configProps.value);
20
20
 
@@ -79,7 +79,7 @@ export const BasePegaDxilMyRadioButtons = () => {
79
79
 
80
80
  return (
81
81
  <>
82
- <PegaDxilMyRadioButtons {...props} />
82
+ <PegaDxilMyRadiobuttons {...props} />
83
83
  </>
84
84
  );
85
85
  };
@@ -8,11 +8,11 @@ import type { PConnFieldProps } from './PConnProps';
8
8
  import { formatExists, textFormatter } from './textformat-utils.jsx';
9
9
  import handleEvent from './event-utils';
10
10
 
11
- import StyledPegaDxilMyRadioButtonsWrapper from './styles';
11
+ import StyledPegaDxilMyRadiobuttonsWrapper from './styles';
12
12
 
13
13
 
14
14
  // interface for props
15
- interface PegaDxilMyRadioButtonsProps extends PConnFieldProps {
15
+ interface PegaDxilMyRadiobuttonsProps extends PConnFieldProps {
16
16
  // If any, enter additional props that only exist on TextInput here
17
17
  isTableFormatter?: boolean;
18
18
  hasSuggestions?: boolean;
@@ -53,7 +53,7 @@ const getDisplayValue = (dataSource: any, value: any, isDatapage: boolean) => {
53
53
 
54
54
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
55
55
  // any default values in config.pros should be set in defaultProps at bottom of this file
56
- export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProps) {
56
+ export default function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProps) {
57
57
  const {
58
58
  getPConnect,
59
59
  value,
@@ -165,7 +165,7 @@ export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProp
165
165
  }
166
166
 
167
167
  return (
168
- <StyledPegaDxilMyRadioButtonsWrapper>
168
+ <StyledPegaDxilMyRadiobuttonsWrapper>
169
169
  <RadioButtonGroup
170
170
  {...additionalProps}
171
171
  label={label}
@@ -193,12 +193,12 @@ export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProp
193
193
  >
194
194
  {items}
195
195
  </RadioButtonGroup>
196
- </StyledPegaDxilMyRadioButtonsWrapper>
196
+ </StyledPegaDxilMyRadiobuttonsWrapper>
197
197
  );
198
198
  }
199
199
 
200
200
 
201
- PegaDxilMyRadioButtons.defaultProps = {
201
+ PegaDxilMyRadiobuttons.defaultProps = {
202
202
  value: '',
203
203
  validatemessage: '',
204
204
  helperText: '',
@@ -219,7 +219,7 @@ PegaDxilMyRadioButtons.defaultProps = {
219
219
  isTableFormatter: false
220
220
  };
221
221
 
222
- PegaDxilMyRadioButtons.propTypes = {
222
+ PegaDxilMyRadiobuttons.propTypes = {
223
223
  getPConnect: PropTypes.func.isRequired,
224
224
  value: PropTypes.string,
225
225
  label: PropTypes.string.isRequired,
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "Pega_DXIL_MyAutocomplete",
3
- "label": "My Autocomplete",
4
- "description": "My Autocomplete",
2
+ "name": "Pega_DXIL_MySearchbox",
3
+ "label": "My Search box",
4
+ "description": "My Search box",
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyAutocomplete",
9
+ "componentKey": "Pega_DXIL_MySearchbox",
10
10
  "type": "Field",
11
11
  "subtype": "Picklist",
12
12
  "icon": "images/pz-dropdown-active.svg",
@@ -6,15 +6,15 @@ import { withKnobs } from '@storybook/addon-knobs';
6
6
 
7
7
  import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
8
8
 
9
- import PegaDxilMyAutocomplete from './index';
9
+ import PegaDxilMySearchbox from './index';
10
10
 
11
11
  export default {
12
- title: 'PegaDxilMyAutocomplete',
12
+ title: 'PegaDxilMySearchbox',
13
13
  decorators: [withKnobs],
14
- component: PegaDxilMyAutocomplete
14
+ component: PegaDxilMySearchbox
15
15
  };
16
16
 
17
- export const BasePegaDxilMyAutocomplete = () => {
17
+ export const BasePegaDxilMySearchbox = () => {
18
18
 
19
19
  const [value, setValue] = useState(configProps.value);
20
20
  const datasourceMetadata = fieldMetadata;
@@ -84,7 +84,7 @@ export const BasePegaDxilMyAutocomplete = () => {
84
84
 
85
85
  return (
86
86
  <>
87
- <PegaDxilMyAutocomplete {...props} />
87
+ <PegaDxilMySearchbox {...props} />
88
88
  </>
89
89
  );
90
90
  };
@@ -17,10 +17,10 @@ import { getFieldNameFromEmbeddedFieldName } from './embed-utils.js';
17
17
 
18
18
  import { usePaginate, useDeepMemo, useIsMount, updatePropertiesForNewRecord } from './utils';
19
19
 
20
- import StyledPegaDxilMyAutocompleteWrapper from './styles';
20
+ import StyledPegaDxilMySearchboxWrapper from './styles';
21
21
 
22
22
  // interface for props
23
- interface PegaDxilMyAutocompleteProps extends PConnFieldProps {
23
+ interface PegaDxilMySearchboxProps extends PConnFieldProps {
24
24
  // If any, enter additional props that only exist on TextInput here
25
25
  isTableFormatter?: boolean;
26
26
  hasSuggestions?: boolean;
@@ -47,7 +47,7 @@ interface PegaDxilMyAutocompleteProps extends PConnFieldProps {
47
47
  isSearchableOnKey: boolean;
48
48
  }
49
49
 
50
- interface PegaDxilMyAutocompletePropsSubSet {
50
+ interface PegaDxilMySearchboxPropsSubSet {
51
51
  selected: any;
52
52
  actualValue: any;
53
53
  isTableFormatter?: boolean;
@@ -361,7 +361,7 @@ export const setValueToAssocProp = (
361
361
  return retValue;
362
362
  };
363
363
 
364
- const DisplayComponent = (props: PegaDxilMyAutocompletePropsSubSet) => {
364
+ const DisplayComponent = (props: PegaDxilMySearchboxPropsSubSet) => {
365
365
  const { selected, actualValue, isTableFormatter, formatter } = props;
366
366
 
367
367
  const displayCompValue = selected ? selected.primary : actualValue;
@@ -378,7 +378,7 @@ const DisplayComponent = (props: PegaDxilMyAutocompletePropsSubSet) => {
378
378
 
379
379
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
380
380
  // any default values in config.pros should be set in defaultProps at bottom of this file
381
- export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
381
+ export function PegaDxilMySearchbox(props: PegaDxilMySearchboxProps) {
382
382
  const {
383
383
  getPConnect,
384
384
  value,
@@ -1072,9 +1072,9 @@ export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
1072
1072
  };
1073
1073
 
1074
1074
  const displayComponent = useMemo(() => {
1075
- return <StyledPegaDxilMyAutocompleteWrapper>
1075
+ return <StyledPegaDxilMySearchboxWrapper>
1076
1076
  <DisplayComponent {...{ selected, actualValue, isTableFormatter, formatter }} />
1077
- </StyledPegaDxilMyAutocompleteWrapper>;
1077
+ </StyledPegaDxilMySearchboxWrapper>;
1078
1078
  }, [selected, actualValue, isTableFormatter, formatter]);
1079
1079
 
1080
1080
  if (displayMode) {
@@ -1122,7 +1122,7 @@ export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
1122
1122
 
1123
1123
 
1124
1124
  return (
1125
- <StyledPegaDxilMyAutocompleteWrapper>
1125
+ <StyledPegaDxilMySearchboxWrapper>
1126
1126
  <ComboBox
1127
1127
  {...additionalProps}
1128
1128
  testId={testId ?? label}
@@ -1168,13 +1168,13 @@ export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
1168
1168
  mode={AC_TYPE}
1169
1169
  onResolveSuggestion={onResolveSuggestionHandler}
1170
1170
  />
1171
- </StyledPegaDxilMyAutocompleteWrapper>
1171
+ </StyledPegaDxilMySearchboxWrapper>
1172
1172
  );
1173
1173
  }
1174
1174
 
1175
- export default memo(PegaDxilMyAutocomplete);
1175
+ export default memo(PegaDxilMySearchbox);
1176
1176
 
1177
- PegaDxilMyAutocomplete.defaultProps = {
1177
+ PegaDxilMySearchbox.defaultProps = {
1178
1178
  value: '',
1179
1179
  matchPosition: 'contains',
1180
1180
  maxResultsDisplay: '',
@@ -1203,7 +1203,7 @@ PegaDxilMyAutocomplete.defaultProps = {
1203
1203
  hasSuggestions: false
1204
1204
  };
1205
1205
 
1206
- PegaDxilMyAutocomplete.propTypes = {
1206
+ PegaDxilMySearchbox.propTypes = {
1207
1207
  value: PropTypes.string,
1208
1208
  maxResultsDisplay: PropTypes.string,
1209
1209
  matchPosition: PropTypes.string,
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "Pega_DXIL_MyRadioButtons",
3
- "label": "My Radio Buttons",
4
- "description": "My Radio Buttons",
2
+ "name": "Pega_DXIL_MyRadiobuttons",
3
+ "label": "My Radio buttons",
4
+ "description": "My Radio buttons",
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyRadioButtons",
9
+ "componentKey": "Pega_DXIL_MyRadiobuttons",
10
10
  "type": "Field",
11
11
  "subtype": "Picklist",
12
12
  "icon": "images/pz-dropdown-active.svg",
@@ -6,15 +6,15 @@ import { withKnobs } from '@storybook/addon-knobs';
6
6
 
7
7
  import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
8
8
 
9
- import PegaDxilMyRadioButtons from './index';
9
+ import PegaDxilMyRadiobuttons from './index';
10
10
 
11
11
  export default {
12
- title: 'PegaDxilMyRadioButtons',
12
+ title: 'PegaDxilMyRadiobuttons',
13
13
  decorators: [withKnobs],
14
- component: PegaDxilMyRadioButtons
14
+ component: PegaDxilMyRadiobuttons
15
15
  };
16
16
 
17
- export const BasePegaDxilMyRadioButtons = () => {
17
+ export const BasePegaDxilMyRadiobuttons = () => {
18
18
 
19
19
  const [value, setValue] = useState(configProps.value);
20
20
 
@@ -79,7 +79,7 @@ export const BasePegaDxilMyRadioButtons = () => {
79
79
 
80
80
  return (
81
81
  <>
82
- <PegaDxilMyRadioButtons {...props} />
82
+ <PegaDxilMyRadiobuttons {...props} />
83
83
  </>
84
84
  );
85
85
  };
@@ -8,11 +8,11 @@ import type { PConnFieldProps } from './PConnProps';
8
8
  import { formatExists, textFormatter } from './textformat-utils.jsx';
9
9
  import handleEvent from './event-utils';
10
10
 
11
- import StyledPegaDxilMyRadioButtonsWrapper from './styles';
11
+ import StyledPegaDxilMyRadiobuttonsWrapper from './styles';
12
12
 
13
13
 
14
14
  // interface for props
15
- interface PegaDxilMyRadioButtonsProps extends PConnFieldProps {
15
+ interface PegaDxilMyRadiobuttonsProps extends PConnFieldProps {
16
16
  // If any, enter additional props that only exist on TextInput here
17
17
  isTableFormatter?: boolean;
18
18
  hasSuggestions?: boolean;
@@ -53,7 +53,7 @@ const getDisplayValue = (dataSource: any, value: any, isDatapage: boolean) => {
53
53
 
54
54
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
55
55
  // any default values in config.pros should be set in defaultProps at bottom of this file
56
- export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProps) {
56
+ export default function PegaDxilMyRadiobuttons(props: PegaDxilMyRadiobuttonsProps) {
57
57
  const {
58
58
  getPConnect,
59
59
  value,
@@ -165,7 +165,7 @@ export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProp
165
165
  }
166
166
 
167
167
  return (
168
- <StyledPegaDxilMyRadioButtonsWrapper>
168
+ <StyledPegaDxilMyRadiobuttonsWrapper>
169
169
  <RadioButtonGroup
170
170
  {...additionalProps}
171
171
  label={label}
@@ -193,12 +193,12 @@ export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProp
193
193
  >
194
194
  {items}
195
195
  </RadioButtonGroup>
196
- </StyledPegaDxilMyRadioButtonsWrapper>
196
+ </StyledPegaDxilMyRadiobuttonsWrapper>
197
197
  );
198
198
  }
199
199
 
200
200
 
201
- PegaDxilMyRadioButtons.defaultProps = {
201
+ PegaDxilMyRadiobuttons.defaultProps = {
202
202
  value: '',
203
203
  validatemessage: '',
204
204
  helperText: '',
@@ -219,7 +219,7 @@ PegaDxilMyRadioButtons.defaultProps = {
219
219
  isTableFormatter: false
220
220
  };
221
221
 
222
- PegaDxilMyRadioButtons.propTypes = {
222
+ PegaDxilMyRadiobuttons.propTypes = {
223
223
  getPConnect: PropTypes.func.isRequired,
224
224
  value: PropTypes.string,
225
225
  label: PropTypes.string.isRequired,
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "Pega_DXIL_MyAutocomplete",
3
- "label": "My Autocomplete",
4
- "description": "My Autocomplete",
2
+ "name": "Pega_DXIL_MySearchbox",
3
+ "label": "My Search box",
4
+ "description": "My Search box",
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyAutocomplete",
9
+ "componentKey": "Pega_DXIL_MySearchbox",
10
10
  "type": "Field",
11
11
  "subtype": "Picklist",
12
12
  "icon": "images/pz-dropdown-active.svg",
@@ -6,15 +6,15 @@ import { withKnobs } from '@storybook/addon-knobs';
6
6
 
7
7
  import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
8
8
 
9
- import PegaDxilMyAutocomplete from './index';
9
+ import PegaDxilMySearchbox from './index';
10
10
 
11
11
  export default {
12
- title: 'PegaDxilMyAutocomplete',
12
+ title: 'PegaDxilMySearchbox',
13
13
  decorators: [withKnobs],
14
- component: PegaDxilMyAutocomplete
14
+ component: PegaDxilMySearchbox
15
15
  };
16
16
 
17
- export const BasePegaDxilMyAutocomplete = () => {
17
+ export const BasePegaDxilMySearchbox = () => {
18
18
 
19
19
  const [value, setValue] = useState(configProps.value);
20
20
  const datasourceMetadata = fieldMetadata;
@@ -84,7 +84,7 @@ export const BasePegaDxilMyAutocomplete = () => {
84
84
 
85
85
  return (
86
86
  <>
87
- <PegaDxilMyAutocomplete {...props} />
87
+ <PegaDxilMySearchbox {...props} />
88
88
  </>
89
89
  );
90
90
  };
@@ -17,10 +17,10 @@ import { getFieldNameFromEmbeddedFieldName } from './embed-utils.js';
17
17
 
18
18
  import { usePaginate, useDeepMemo, useIsMount, updatePropertiesForNewRecord } from './utils';
19
19
 
20
- import StyledPegaDxilMyAutocompleteWrapper from './styles';
20
+ import StyledPegaDxilMySearchboxWrapper from './styles';
21
21
 
22
22
  // interface for props
23
- interface PegaDxilMyAutocompleteProps extends PConnFieldProps {
23
+ interface PegaDxilMySearchboxProps extends PConnFieldProps {
24
24
  // If any, enter additional props that only exist on TextInput here
25
25
  isTableFormatter?: boolean;
26
26
  hasSuggestions?: boolean;
@@ -47,7 +47,7 @@ interface PegaDxilMyAutocompleteProps extends PConnFieldProps {
47
47
  isSearchableOnKey: boolean;
48
48
  }
49
49
 
50
- interface PegaDxilMyAutocompletePropsSubSet {
50
+ interface PegaDxilMySearchboxPropsSubSet {
51
51
  selected: any;
52
52
  actualValue: any;
53
53
  isTableFormatter?: boolean;
@@ -361,7 +361,7 @@ export const setValueToAssocProp = (
361
361
  return retValue;
362
362
  };
363
363
 
364
- const DisplayComponent = (props: PegaDxilMyAutocompletePropsSubSet) => {
364
+ const DisplayComponent = (props: PegaDxilMySearchboxPropsSubSet) => {
365
365
  const { selected, actualValue, isTableFormatter, formatter } = props;
366
366
 
367
367
  const displayCompValue = selected ? selected.primary : actualValue;
@@ -378,7 +378,7 @@ const DisplayComponent = (props: PegaDxilMyAutocompletePropsSubSet) => {
378
378
 
379
379
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
380
380
  // any default values in config.pros should be set in defaultProps at bottom of this file
381
- export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
381
+ export function PegaDxilMySearchbox(props: PegaDxilMySearchboxProps) {
382
382
  const {
383
383
  getPConnect,
384
384
  value,
@@ -1072,9 +1072,9 @@ export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
1072
1072
  };
1073
1073
 
1074
1074
  const displayComponent = useMemo(() => {
1075
- return <StyledPegaDxilMyAutocompleteWrapper>
1075
+ return <StyledPegaDxilMySearchboxWrapper>
1076
1076
  <DisplayComponent {...{ selected, actualValue, isTableFormatter, formatter }} />
1077
- </StyledPegaDxilMyAutocompleteWrapper>;
1077
+ </StyledPegaDxilMySearchboxWrapper>;
1078
1078
  }, [selected, actualValue, isTableFormatter, formatter]);
1079
1079
 
1080
1080
  if (displayMode) {
@@ -1122,7 +1122,7 @@ export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
1122
1122
 
1123
1123
 
1124
1124
  return (
1125
- <StyledPegaDxilMyAutocompleteWrapper>
1125
+ <StyledPegaDxilMySearchboxWrapper>
1126
1126
  <ComboBox
1127
1127
  {...additionalProps}
1128
1128
  testId={testId ?? label}
@@ -1168,13 +1168,13 @@ export function PegaDxilMyAutocomplete(props: PegaDxilMyAutocompleteProps) {
1168
1168
  mode={AC_TYPE}
1169
1169
  onResolveSuggestion={onResolveSuggestionHandler}
1170
1170
  />
1171
- </StyledPegaDxilMyAutocompleteWrapper>
1171
+ </StyledPegaDxilMySearchboxWrapper>
1172
1172
  );
1173
1173
  }
1174
1174
 
1175
- export default memo(PegaDxilMyAutocomplete);
1175
+ export default memo(PegaDxilMySearchbox);
1176
1176
 
1177
- PegaDxilMyAutocomplete.defaultProps = {
1177
+ PegaDxilMySearchbox.defaultProps = {
1178
1178
  value: '',
1179
1179
  matchPosition: 'contains',
1180
1180
  maxResultsDisplay: '',
@@ -1203,7 +1203,7 @@ PegaDxilMyAutocomplete.defaultProps = {
1203
1203
  hasSuggestions: false
1204
1204
  };
1205
1205
 
1206
- PegaDxilMyAutocomplete.propTypes = {
1206
+ PegaDxilMySearchbox.propTypes = {
1207
1207
  value: PropTypes.string,
1208
1208
  maxResultsDisplay: PropTypes.string,
1209
1209
  matchPosition: PropTypes.string,