@pega/custom-dx-components 0.23.24 → 0.23.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/tasks/build-all/helper.js +14 -10
- package/src/tasks/build-all/index.js +3 -1
- package/src/tasks/build-comp/helper.js +15 -5
- package/src/tasks/bundle/builder/index.js +3 -3
- package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +9 -3
- package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +5 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +9 -7
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +5 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +6 -4
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.tsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.tsx.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.tsx.mustache +2 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +5 -3
- package/src/tasks/init/template/.eslintrc.json +2 -4
- package/src/tasks/init/template/package.json.mustache +4 -1
- package/src/tasks/publish-all/index.js +9 -3
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +5 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.tsx +9 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.ts +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +9 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +4 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +5 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +4 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +6 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +5 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +4 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +5 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.tsx +9 -7
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +9 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +4 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +5 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +4 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +3 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +6 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +3 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +3 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +3 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +5 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +4 -2
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/PConnProps.d.ts.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/demo.stories.tsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/mock.ts.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/styles.ts.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/suggestions-handler.ts.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/time-of-day.js.mustache +0 -0
package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx
CHANGED
|
@@ -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 { 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
|
-
|
|
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,
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/config.json.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/mock.ts.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/styles.ts.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|