@pega/custom-dx-components 0.23.23 → 0.23.25

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 (131) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/build-all/helper.js +14 -10
  3. package/src/tasks/build-all/index.js +3 -1
  4. package/src/tasks/build-comp/helper.js +15 -5
  5. package/src/tasks/bundle/builder/index.js +3 -3
  6. package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +1 -1
  7. package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +9 -3
  8. package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +3 -0
  9. package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +4 -1
  10. package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +2 -0
  11. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +2 -0
  12. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +3 -1
  13. package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +2 -0
  14. package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +3 -1
  15. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +5 -4
  16. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +9 -7
  17. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +1 -2
  18. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +3 -1
  20. package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +3 -1
  21. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +5 -3
  22. package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +2 -0
  23. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +5 -2
  24. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +4 -2
  25. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +6 -4
  26. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +4 -2
  27. package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/index.tsx.mustache +2 -0
  28. package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.tsx.mustache +2 -0
  29. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +1 -0
  30. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +2 -0
  31. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.tsx.mustache +2 -0
  32. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +1 -0
  33. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +2 -0
  34. package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.tsx.mustache +1 -0
  35. package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +2 -0
  36. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache +1 -0
  37. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +2 -0
  38. package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.tsx.mustache +2 -1
  39. package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +2 -0
  40. package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +2 -0
  41. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +2 -0
  42. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +2 -1
  43. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.tsx.mustache +3 -1
  44. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.tsx.mustache +2 -0
  45. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +5 -3
  46. package/src/tasks/init/template/.eslintrc.json +2 -4
  47. package/src/tasks/init/template/babel.config.cjs +4 -4
  48. package/src/tasks/init/template/package.json.mustache +5 -2
  49. package/src/tasks/publish-all/index.js +9 -3
  50. package/tests/assets/components/create/Pega_DXIL_MyTestText/index.tsx +3 -1
  51. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +5 -4
  52. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.tsx +9 -7
  53. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +1 -2
  54. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +1 -0
  55. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.ts +1 -1
  56. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +9 -3
  57. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +2 -0
  58. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +2 -0
  59. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +3 -0
  60. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +4 -1
  61. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +2 -0
  62. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.tsx +2 -0
  63. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
  64. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +2 -0
  65. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +5 -3
  66. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +1 -0
  67. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +2 -0
  68. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +2 -0
  69. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
  70. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +2 -0
  71. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +2 -1
  72. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.tsx +3 -1
  73. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +2 -0
  74. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +2 -0
  75. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +4 -2
  76. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +3 -1
  77. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +6 -4
  78. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +3 -1
  79. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +3 -1
  80. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +3 -1
  81. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx +2 -0
  82. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +5 -2
  83. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +2 -0
  84. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +2 -0
  85. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -0
  86. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +2 -0
  87. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +1 -0
  88. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +2 -0
  89. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +4 -2
  90. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +5 -4
  91. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.tsx +9 -7
  92. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +1 -2
  93. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +1 -0
  94. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts +1 -1
  95. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +9 -3
  96. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +2 -0
  97. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +3 -0
  98. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +4 -1
  99. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +2 -0
  100. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +2 -0
  101. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
  102. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +2 -0
  103. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +5 -3
  104. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +1 -0
  105. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +2 -0
  106. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +2 -0
  107. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
  108. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +2 -0
  109. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +2 -0
  110. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +4 -2
  111. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +3 -1
  112. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +6 -4
  113. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +3 -1
  114. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +3 -1
  115. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +3 -1
  116. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +2 -0
  117. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +5 -2
  118. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +2 -0
  119. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +2 -0
  120. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -0
  121. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +2 -0
  122. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +1 -0
  123. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +2 -0
  124. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +4 -2
  125. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/PConnProps.d.ts.mustache +0 -0
  126. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/config.json.mustache +0 -0
  127. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/demo.stories.tsx.mustache +0 -0
  128. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/mock.ts.mustache +0 -0
  129. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/styles.ts.mustache +0 -0
  130. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/suggestions-handler.ts.mustache +0 -0
  131. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/time-of-day.js.mustache +0 -0
@@ -98,6 +98,7 @@ export const BasePegaDxilMyTwoColumnDetails = () => {
98
98
  return pyReviewRaw.config.inheritedProps;
99
99
  },
100
100
  createComponent: config => {
101
+ // eslint-disable-next-line default-case
101
102
  switch (config.config.value) {
102
103
  case '@P .pyStatusWork':
103
104
  return renderField(pyReviewResolved.highlightedData[0].config);
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import React from 'react';
1
3
  import { Fragment } from 'react';
2
4
  import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
3
5
  import PropTypes from 'prop-types';
@@ -146,6 +146,7 @@ export const BasePegaDxilMyTwoColumnForm = () => {
146
146
  return pyReviewRaw.config.inheritedProps;
147
147
  },
148
148
  createComponent: config => {
149
+ // eslint-disable-next-line default-case
149
150
  switch (config.config.value) {
150
151
  case '@P .FirstName':
151
152
  return renderField(regionChildrenResolved[0]);
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import React from 'react';
1
3
  import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
2
4
  import PropTypes from 'prop-types';
3
5
 
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import React from 'react';
1
3
  import { useState, useEffect, useRef} from "react";
2
4
  import { Input, FieldValueList, Text } from "@pega/cosmos-react-core";
3
5
  import PropTypes from "prop-types";
@@ -71,7 +73,7 @@ export default function PegaDxilMyUrl(props: PegaDxilMyUrlProps) {
71
73
  const pConn = getPConnect();
72
74
  const actions = pConn.getActionsApi();
73
75
  const stateProps = pConn.getStateProps() as StateProps;
74
- let propName: string = stateProps.value;
76
+ const propName: string = stateProps.value;
75
77
  const hasValueChange = useRef(false);
76
78
 
77
79
 
@@ -96,7 +98,7 @@ export default function PegaDxilMyUrl(props: PegaDxilMyUrlProps) {
96
98
  }
97
99
  }, [validatemessage, hasSuggestions, status]);
98
100
 
99
- let displayComp = null;
101
+ let displayComp: any = null;
100
102
  if (displayMode) {
101
103
  displayComp = urlFormatter(value, {
102
104
  displayAs,