@pega/dx-component-builder-sdk 0.23.18 → 0.23.19

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 (105) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/demo.stories.tsx.mustache +20 -0
  4. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +7 -0
  5. package/src/tasks/map/map.js +1 -1
  6. package/tests/assets/sdk-r/components/create/override-sdk/field/Currency/Currency.tsx +3 -1
  7. package/tests/assets/sdk-r/components/create/override-sdk/field/DateTime/config-ext.json +8 -8
  8. package/tests/assets/sdk-r/components/create/override-sdk/field/Decimal/Decimal.tsx +3 -1
  9. package/tests/assets/sdk-r/components/create/override-sdk/field/Decimal/config-ext.json +8 -8
  10. package/tests/assets/sdk-r/components/create/override-sdk/field/Dropdown/config-ext.json +8 -8
  11. package/tests/assets/sdk-r/components/create/override-sdk/field/Email/config-ext.json +8 -8
  12. package/tests/assets/sdk-r/components/create/override-sdk/field/Group/config-ext.json +7 -7
  13. package/tests/assets/sdk-r/components/create/override-sdk/field/Integer/config-ext.json +8 -8
  14. package/tests/assets/sdk-r/components/create/override-sdk/field/Percentage/Percentage.tsx +3 -0
  15. package/tests/assets/sdk-r/components/create/override-sdk/field/Percentage/config-ext.json +8 -8
  16. package/tests/assets/sdk-r/components/create/override-sdk/field/RadioButtons/config-ext.json +8 -8
  17. package/tests/assets/sdk-r/components/create/override-sdk/field/SemanticLink/config-ext.json +8 -8
  18. package/tests/assets/sdk-r/components/create/override-sdk/field/TextArea/config-ext.json +8 -8
  19. package/tests/assets/sdk-r/components/create/override-sdk/field/TextContent/config-ext.json +8 -8
  20. package/tests/assets/sdk-r/components/create/override-sdk/field/TextInput/config-ext.json +8 -8
  21. package/tests/assets/sdk-r/components/create/override-sdk/field/Time/config-ext.json +8 -8
  22. package/tests/assets/sdk-r/components/create/override-sdk/field/URL/config-ext.json +8 -8
  23. package/tests/assets/sdk-r/components/create/override-sdk/field/UserReference/config-ext.json +8 -8
  24. package/tests/assets/sdk-r/components/create/override-sdk/template/CaseSummary/config-ext.json +8 -8
  25. package/tests/assets/sdk-r/components/create/override-sdk/template/CaseView/config-ext.json +8 -8
  26. package/tests/assets/sdk-r/components/create/override-sdk/template/Confirmation/config-ext.json +11 -11
  27. package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/config-ext.json +9 -9
  28. package/tests/assets/sdk-r/components/create/override-sdk/template/DefaultForm/config-ext.json +8 -8
  29. package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsSubTabs/config-ext.json +8 -8
  30. package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsThreeColumn/config-ext.json +8 -8
  31. package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsTwoColumn/config-ext.json +8 -8
  32. package/tests/assets/sdk-r/components/create/override-sdk/template/ListPage/config-ext.json +7 -7
  33. package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +2 -1
  34. package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/config-ext.json +8 -8
  35. package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWideDetails/config-ext.json +8 -8
  36. package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWideForm/config-ext.json +8 -8
  37. package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWidePage/config-ext.json +8 -8
  38. package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumn/config-ext.json +8 -8
  39. package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumnPage/config-ext.json +8 -8
  40. package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumnTab/config-ext.json +8 -8
  41. package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTable/config-ext.json +8 -8
  42. package/tests/assets/sdk-r/components/create/override-sdk/template/SubTabs/config-ext.json +8 -8
  43. package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumn/config-ext.json +8 -8
  44. package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumnPage/config-ext.json +8 -8
  45. package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumnTab/config-ext.json +8 -8
  46. package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowDetails/config-ext.json +8 -8
  47. package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowForm/config-ext.json +8 -8
  48. package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowPage/config-ext.json +8 -8
  49. package/tests/assets/sdk-r/components/create/override-sdk/widget/AppAnnouncement/config-ext.json +8 -8
  50. package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/Attachment.tsx +1 -5
  51. package/tests/assets/sdk-r/components/create/override-sdk/widget/CaseHistory/config-ext.json +8 -8
  52. package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/config-ext.json +8 -8
  53. package/tests/assets/sdk-r/components/create/override-sdk/widget/Followers/config-ext.json +8 -8
  54. package/tests/assets/sdk-r/components/create/override-sdk/widget/ToDo/config-ext.json +8 -8
  55. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/demo.stories.tsx +20 -0
  56. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +7 -0
  57. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Currency/Currency.tsx +3 -1
  58. package/tests/assets/sdk-r/components/createAll/override-sdk/field/DateTime/config-ext.json +8 -8
  59. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Decimal/Decimal.tsx +3 -1
  60. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Decimal/config-ext.json +8 -8
  61. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Dropdown/config-ext.json +8 -8
  62. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Email/config-ext.json +8 -8
  63. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/config-ext.json +7 -7
  64. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Integer/config-ext.json +8 -8
  65. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Percentage/Percentage.tsx +3 -0
  66. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Percentage/config-ext.json +8 -8
  67. package/tests/assets/sdk-r/components/createAll/override-sdk/field/RadioButtons/config-ext.json +8 -8
  68. package/tests/assets/sdk-r/components/createAll/override-sdk/field/SemanticLink/config-ext.json +8 -8
  69. package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextArea/config-ext.json +8 -8
  70. package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextContent/config-ext.json +8 -8
  71. package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextInput/config-ext.json +8 -8
  72. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Time/config-ext.json +8 -8
  73. package/tests/assets/sdk-r/components/createAll/override-sdk/field/URL/config-ext.json +8 -8
  74. package/tests/assets/sdk-r/components/createAll/override-sdk/field/UserReference/config-ext.json +8 -8
  75. package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseSummary/config-ext.json +8 -8
  76. package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseView/config-ext.json +8 -8
  77. package/tests/assets/sdk-r/components/createAll/override-sdk/template/Confirmation/config-ext.json +11 -11
  78. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/config-ext.json +9 -9
  79. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DefaultForm/config-ext.json +8 -8
  80. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsSubTabs/config-ext.json +8 -8
  81. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsThreeColumn/config-ext.json +8 -8
  82. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsTwoColumn/config-ext.json +8 -8
  83. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListPage/config-ext.json +7 -7
  84. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +2 -1
  85. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/config-ext.json +8 -8
  86. package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWideDetails/config-ext.json +8 -8
  87. package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWideForm/config-ext.json +8 -8
  88. package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWidePage/config-ext.json +8 -8
  89. package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumn/config-ext.json +8 -8
  90. package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumnPage/config-ext.json +8 -8
  91. package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumnTab/config-ext.json +8 -8
  92. package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTable/config-ext.json +8 -8
  93. package/tests/assets/sdk-r/components/createAll/override-sdk/template/SubTabs/config-ext.json +8 -8
  94. package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumn/config-ext.json +8 -8
  95. package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumnPage/config-ext.json +8 -8
  96. package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumnTab/config-ext.json +8 -8
  97. package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowDetails/config-ext.json +8 -8
  98. package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowForm/config-ext.json +8 -8
  99. package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowPage/config-ext.json +8 -8
  100. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/AppAnnouncement/config-ext.json +8 -8
  101. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/Attachment.tsx +1 -5
  102. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/CaseHistory/config-ext.json +8 -8
  103. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/FileUtility/config-ext.json +8 -8
  104. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Followers/config-ext.json +8 -8
  105. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ToDo/config-ext.json +8 -8
package/README.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- This project provides you with an environment to extend SDK-R by giving you tools to create and publish custom components that are not available from the SDK-R release.
5
+ This project provides you with an environment to extend SDK-R/SDK-A by giving you tools to create and publish custom components that are not available from the SDK-R/SDK-A release.
6
6
 
7
7
  ## Prerequisites
8
8
 
9
9
  Ensure you have access to the following in your system:
10
10
 
11
- - Pega Infinity Server version 8.8 or later
11
+ - Pega Infinity Server version 23
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
@@ -16,7 +16,7 @@ Ensure you have access to the following in your system:
16
16
 
17
17
  - System npm version 8
18
18
 
19
- - Installed SDK-R, as the below commands live in the package.json of the SDK-R an NOT in this npm module
19
+ - Installed SDK-R or SDK-A, as the below commands live in the package.json of the SDK-R/SDK-A an NOT in this npm module
20
20
 
21
21
 
22
22
  ## Create custom components
@@ -79,7 +79,7 @@ The *config.json* file contains the mapping of properties for configuring the au
79
79
 
80
80
 
81
81
  2. Enter the following command to start the storybook to view the demo.
82
- `npm start`
82
+ `npm run startStorybook (Angular) npm run storybookSDK (React) or npm run storybookConstellation (React)`
83
83
 
84
84
  3. Modify the source files to build your own component. You can also install and import third-party libraries if required for your component.
85
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.23.18",
3
+ "version": "0.23.19",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -10,6 +10,20 @@ const meta: Meta<typeof {{COMPONENT_CLASS_NAME}}> = {
10
10
  excludeStories: /.*Data$/
11
11
  };
12
12
 
13
+ window.PCore = {
14
+ ...window.PCore,
15
+ getEnvironmentInfo: (): any => {
16
+ return {
17
+ getUseLocale: () => {
18
+ return 'en-GB';
19
+ },
20
+ getLocale: () => {
21
+ return 'en-GB';
22
+ }
23
+ };
24
+ }
25
+ };
26
+
13
27
  export default meta;
14
28
  type Story = StoryObj<typeof {{COMPONENT_CLASS_NAME}}>;
15
29
 
@@ -22,10 +36,16 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = args => {
22
36
  fieldMetadata,
23
37
  getPConnect: () => {
24
38
  return {
39
+ getComponentName: () => {
40
+ return 'Percentage';
41
+ },
25
42
  getActionsApi: () => {
26
43
  return {
27
44
  updateFieldValue: (propName, theValue) => {
28
45
  setValue(theValue);
46
+ },
47
+ triggerFieldChange: (propName, theValue) => {
48
+ setValue(theValue);
29
49
  }
30
50
  };
31
51
  },
@@ -11,6 +11,13 @@ window.PCore = {
11
11
  return new Promise(resolve => {
12
12
  resolve(operatorDetails);
13
13
  });
14
+ },
15
+ };
16
+ },
17
+ getLocaleUtils: (): any => {
18
+ return {
19
+ getLocaleValue: val => {
20
+ return val;
14
21
  }
15
22
  };
16
23
  }
@@ -288,7 +288,7 @@ export const deleteFromComponentMap = async (componentKey, category = CATEGORY_C
288
288
 
289
289
 
290
290
  let importFullAng = "import { ".concat(componentComponentNameAng).concat(" } from '").concat(importComponentAng).concat(".component';");
291
- let mapFullAng = "\"".concat(getSpecialCalse(originalComponentName, framework)).concat("\" : " ).concat(componentComponentNameAng).concat(",");
291
+ let mapFullAng = "\"".concat(getSpecialCase(originalComponentName, framework)).concat("\" : " ).concat(componentComponentNameAng).concat(",");
292
292
 
293
293
  let mapFullAngPretty = getSpecialCase(originalComponentName, framework).concat(": ").concat(componentComponentNameAng);
294
294
 
@@ -6,7 +6,9 @@ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event
6
6
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
7
7
  import { getCurrencyCharacters, getCurrencyOptions } from './currency-utils';
8
8
 
9
- // Using control from: https://github.com/unicef/material-ui-currency-textfield
9
+ /* Using @unicef/material-ui-currency-textfield component here, since it allows formatting decimal values,
10
+ as per the locale.
11
+ */
10
12
 
11
13
  interface CurrrencyProps extends PConnFieldProps {
12
14
  // If any, enter additional props that only exist on Currency here
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "DateTime",
3
- "name": "DateTime",
4
- "label": "Date & time",
5
- "description": "Date & time",
6
- "type": "Field",
7
- "subtype": "DateTime",
8
- "properties": []
9
- }
2
+ "componentKey": "DateTime",
3
+ "name": "DateTime",
4
+ "label": "Date & time",
5
+ "description": "Date & time",
6
+ "type": "Field",
7
+ "subtype": "DateTime",
8
+ "properties": []
9
+ }
@@ -6,7 +6,9 @@ import { format } from '@pega/react-sdk-components/lib/components/helpers/format
6
6
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
7
7
  import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
8
 
9
- // Using control from: https://github.com/unicef/material-ui-currency-textfield
9
+ /* Using @unicef/material-ui-currency-textfield component here, since it allows formatting decimal values,
10
+ as per the locale.
11
+ */
10
12
 
11
13
  interface DecimalProps extends PConnFieldProps {
12
14
  // If any, enter additional props that only exist on Decimal here
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "Decimal",
3
- "name": "Decimal",
4
- "label": "Decimal",
5
- "description": "Decimal",
6
- "type": "Field",
7
- "subtype": "Decimal",
8
- "properties": []
9
- }
2
+ "componentKey": "Decimal",
3
+ "name": "Decimal",
4
+ "label": "Decimal",
5
+ "description": "Decimal",
6
+ "type": "Field",
7
+ "subtype": "Decimal",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "Dropdown",
3
- "name": "Dropdown",
4
- "label": "Dropdown",
5
- "description": "Picklist",
6
- "type": "Field",
7
- "subtype": "Picklist",
8
- "properties": []
9
- }
2
+ "componentKey": "Dropdown",
3
+ "name": "Dropdown",
4
+ "label": "Dropdown",
5
+ "description": "Picklist",
6
+ "type": "Field",
7
+ "subtype": "Picklist",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "Email",
3
- "name": "Email",
4
- "label": "Email",
5
- "description": "Email",
6
- "type": "Field",
7
- "subtype": "Text-Email",
8
- "properties": []
9
- }
2
+ "componentKey": "Email",
3
+ "name": "Email",
4
+ "label": "Email",
5
+ "description": "Email",
6
+ "type": "Field",
7
+ "subtype": "Text-Email",
8
+ "properties": []
9
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
- "componentKey": "Group",
3
- "name": "Group",
4
- "label": "Field Group",
5
- "description": "Field Group",
6
- "type": "Group",
7
- "properties": []
8
- }
2
+ "componentKey": "Group",
3
+ "name": "Group",
4
+ "label": "Field Group",
5
+ "description": "Field Group",
6
+ "type": "Group",
7
+ "properties": []
8
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "Integer",
3
- "name": "Integer",
4
- "label": "Integer",
5
- "description": "Integer",
6
- "type": "Field",
7
- "subtype": "Integer",
8
- "properties": []
9
- }
2
+ "componentKey": "Integer",
3
+ "name": "Integer",
4
+ "label": "Integer",
5
+ "description": "Integer",
6
+ "type": "Field",
7
+ "subtype": "Integer",
8
+ "properties": []
9
+ }
@@ -6,6 +6,9 @@ import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-compo
6
6
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
7
7
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
8
8
 
9
+ /* Using @unicef/material-ui-currency-textfield component here, since it allows formatting decimal values,
10
+ as per the locale.
11
+ */
9
12
  interface PercentageProps extends PConnFieldProps {
10
13
  // If any, enter additional props that only exist on Percentage here
11
14
  currencyISOCode?: string;
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "Percentage",
3
- "name": "Percentage",
4
- "label": "Percentage",
5
- "description": "Percentage",
6
- "type": "Field",
7
- "subtype": "Decimal-Percentage",
8
- "properties": []
9
- }
2
+ "componentKey": "Percentage",
3
+ "name": "Percentage",
4
+ "label": "Percentage",
5
+ "description": "Percentage",
6
+ "type": "Field",
7
+ "subtype": "Decimal-Percentage",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "RadioButtons",
3
- "name": "RadioButtons",
4
- "label": "Radio buttons",
5
- "description": "Picklist",
6
- "type": "Field",
7
- "subtype": "Picklist",
8
- "properties": []
9
- }
2
+ "componentKey": "RadioButtons",
3
+ "name": "RadioButtons",
4
+ "label": "Radio buttons",
5
+ "description": "Picklist",
6
+ "type": "Field",
7
+ "subtype": "Picklist",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "label": "SemanticLink",
3
- "componentKey": "SemanticLink",
4
- "name": "SemanticLink",
5
- "description": "SemanticLink",
6
- "type": "Field",
7
- "subtype": "ACTION",
8
- "properties": []
9
- }
2
+ "label": "SemanticLink",
3
+ "componentKey": "SemanticLink",
4
+ "name": "SemanticLink",
5
+ "description": "SemanticLink",
6
+ "type": "Field",
7
+ "subtype": "ACTION",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "TextArea",
3
- "name": "TextArea",
4
- "label": "Text area",
5
- "description": "Text (paragraph)",
6
- "type": "Field",
7
- "subtype": "Text-Paragraph",
8
- "properties": []
9
- }
2
+ "componentKey": "TextArea",
3
+ "name": "TextArea",
4
+ "label": "Text area",
5
+ "description": "Text (paragraph)",
6
+ "type": "Field",
7
+ "subtype": "Text-Paragraph",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "label": "TextContent",
3
- "componentKey": "TextContent",
4
- "name": "TextContent",
5
- "description": "Text",
6
- "type": "Field",
7
- "subtype": "DATA_CAPTURE",
8
- "properties": []
9
- }
2
+ "label": "TextContent",
3
+ "componentKey": "TextContent",
4
+ "name": "TextContent",
5
+ "description": "Text",
6
+ "type": "Field",
7
+ "subtype": "DATA_CAPTURE",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "TextInput",
3
- "name": "TextInput",
4
- "label": "Text input",
5
- "description": "Text (single line)",
6
- "type": "Field",
7
- "subtype": "Text",
8
- "properties": []
9
- }
2
+ "componentKey": "TextInput",
3
+ "name": "TextInput",
4
+ "label": "Text input",
5
+ "description": "Text (single line)",
6
+ "type": "Field",
7
+ "subtype": "Text",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "Time",
3
- "name": "Time",
4
- "label": "Time only",
5
- "description": "Time only",
6
- "type": "Field",
7
- "subtype": "TimeOfDay",
8
- "properties": []
9
- }
2
+ "componentKey": "Time",
3
+ "name": "Time",
4
+ "label": "Time only",
5
+ "description": "Time only",
6
+ "type": "Field",
7
+ "subtype": "TimeOfDay",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "URL",
3
- "name": "URL",
4
- "label": "URL",
5
- "description": "URL",
6
- "type": "Field",
7
- "subtype": "Text-URL",
8
- "properties": []
9
- }
2
+ "componentKey": "URL",
3
+ "name": "URL",
4
+ "label": "URL",
5
+ "description": "URL",
6
+ "type": "Field",
7
+ "subtype": "Text-URL",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "label": "UserReference",
3
- "componentKey": "UserReference",
4
- "name": "UserReference",
5
- "description": "User reference",
6
- "type": "Field",
7
- "subtype": "DATA_CAPTURE",
8
- "properties": []
9
- }
2
+ "label": "UserReference",
3
+ "componentKey": "UserReference",
4
+ "name": "UserReference",
5
+ "description": "User reference",
6
+ "type": "Field",
7
+ "subtype": "DATA_CAPTURE",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "CaseSummary",
3
- "name": "CaseSummary",
4
- "label": "Summary data",
5
- "description": "Case summary template",
6
- "type": "Template",
7
- "subtype": "SUMMARY",
8
- "properties": []
9
- }
2
+ "componentKey": "CaseSummary",
3
+ "name": "CaseSummary",
4
+ "label": "Summary data",
5
+ "description": "Case summary template",
6
+ "type": "Template",
7
+ "subtype": "SUMMARY",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "CaseView",
3
- "name": "CaseView",
4
- "label": "Object page",
5
- "description": "Standard case page",
6
- "type": "Template",
7
- "subtype": "CASEVIEW",
8
- "properties": []
9
- }
2
+ "componentKey": "CaseView",
3
+ "name": "CaseView",
4
+ "label": "Object page",
5
+ "description": "Standard case page",
6
+ "type": "Template",
7
+ "subtype": "CASEVIEW",
8
+ "properties": []
9
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
- "componentKey": "Confirmation",
3
- "name": "Confirmation",
4
- "label": "Confirmation",
5
- "description": "Confirmation template",
6
- "type": "Template",
7
- "subtype": "CASE",
8
- "icon": "confirm-view.svg",
9
- "hideTemplateEdit": true,
10
- "hideViewName": true,
11
- "properties": []
12
- }
2
+ "componentKey": "Confirmation",
3
+ "name": "Confirmation",
4
+ "label": "Confirmation",
5
+ "description": "Confirmation template",
6
+ "type": "Template",
7
+ "subtype": "CASE",
8
+ "icon": "confirm-view.svg",
9
+ "hideTemplateEdit": true,
10
+ "hideViewName": true,
11
+ "properties": []
12
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
- "label": "DataReference",
3
- "componentKey": "DataReference",
4
- "name": "DataReference",
5
- "description": "Data Reference Template",
6
- "type": "Template",
7
- "icon": "DataReference.svg",
8
- "subtype": "DATAVIEW",
9
- "properties": []
10
- }
2
+ "label": "DataReference",
3
+ "componentKey": "DataReference",
4
+ "name": "DataReference",
5
+ "description": "Data Reference Template",
6
+ "type": "Template",
7
+ "icon": "DataReference.svg",
8
+ "subtype": "DATAVIEW",
9
+ "properties": []
10
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "DefaultForm",
3
- "name": "DefaultForm",
4
- "label": "Default form",
5
- "description": "DefaultForm Template",
6
- "type": "Template",
7
- "subtype": "FORM",
8
- "properties": []
9
- }
2
+ "componentKey": "DefaultForm",
3
+ "name": "DefaultForm",
4
+ "label": "Default form",
5
+ "description": "DefaultForm Template",
6
+ "type": "Template",
7
+ "subtype": "FORM",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "DetailsSubTabs",
3
- "name": "DetailsSubTabs",
4
- "label": "Details (Sub tabs)",
5
- "description": "Details (Sub tabs)",
6
- "type": "Template",
7
- "subtype": "DETAILS",
8
- "properties": []
9
- }
2
+ "componentKey": "DetailsSubTabs",
3
+ "name": "DetailsSubTabs",
4
+ "label": "Details (Sub tabs)",
5
+ "description": "Details (Sub tabs)",
6
+ "type": "Template",
7
+ "subtype": "DETAILS",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "DetailsThreeColumn",
3
- "name": "DetailsThreeColumn",
4
- "label": "Details (Three column)",
5
- "description": "Details (Three column)",
6
- "type": "Template",
7
- "subtype": "DETAILS",
8
- "properties": []
9
- }
2
+ "componentKey": "DetailsThreeColumn",
3
+ "name": "DetailsThreeColumn",
4
+ "label": "Details (Three column)",
5
+ "description": "Details (Three column)",
6
+ "type": "Template",
7
+ "subtype": "DETAILS",
8
+ "properties": []
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "DetailsTwoColumn",
3
- "name": "DetailsTwoColumn",
4
- "label": "Details (Two column)",
5
- "description": "Details (Two column)",
6
- "type": "Template",
7
- "subtype": "DETAILS",
8
- "properties": []
9
- }
2
+ "componentKey": "DetailsTwoColumn",
3
+ "name": "DetailsTwoColumn",
4
+ "label": "Details (Two column)",
5
+ "description": "Details (Two column)",
6
+ "type": "Template",
7
+ "subtype": "DETAILS",
8
+ "properties": []
9
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
- "componentKey": "ListPage",
3
- "name": "ListPage",
4
- "type": "Template",
5
- "subtype": "PAGE",
6
- "label": "List page",
7
- "properties": []
8
- }
2
+ "componentKey": "ListPage",
3
+ "name": "ListPage",
4
+ "type": "Template",
5
+ "subtype": "PAGE",
6
+ "label": "List page",
7
+ "properties": []
8
+ }
@@ -154,7 +154,8 @@ export default function ListView(props: ListViewProps) {
154
154
  paper: {
155
155
  width: '100%',
156
156
  marginTop: theme.spacing(2),
157
- marginBottom: theme.spacing(2)
157
+ marginBottom: theme.spacing(2),
158
+ display: 'grid'
158
159
  },
159
160
  search: {
160
161
  padding: '5px 5px'
@@ -1,9 +1,9 @@
1
1
  {
2
- "componentKey": "ListView",
3
- "name": "ListView",
4
- "label": "Table",
5
- "description": "Table Template",
6
- "type": "Template",
7
- "subtype": "LIST",
8
- "properties": []
9
- }
2
+ "componentKey": "ListView",
3
+ "name": "ListView",
4
+ "label": "Table",
5
+ "description": "Table Template",
6
+ "type": "Template",
7
+ "subtype": "LIST",
8
+ "properties": []
9
+ }