@pega/custom-dx-components 0.23.20 → 0.23.21
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 +35 -35
- package/src/constants.js +14 -3
- package/src/tasks/authenticate/helper.js +44 -32
- package/src/tasks/authenticate/index.js +3 -1
- package/src/tasks/build-all/index.js +1 -1
- package/src/tasks/{build → build-comp}/index.js +1 -1
- package/src/tasks/create/index.js +20 -7
- package/src/tasks/create/templates/Constellation/Field/Boolean/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/{boolean-format.js.mustache → boolean-format.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/{index.jsx.mustache → index.tsx.mustache} +35 -10
- package/src/tasks/create/templates/Constellation/Field/{Date/styles.js.mustache → Boolean/styles.ts.mustache} +1 -1
- package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Date/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Date/{index.jsx.mustache → index.tsx.mustache} +82 -38
- package/src/tasks/create/templates/Constellation/Field/{Boolean/styles.js.mustache → Date/styles.ts.mustache} +1 -1
- package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/DateTime/{index.jsx.mustache → index.tsx.mustache} +64 -22
- package/src/tasks/create/templates/Constellation/Field/{Decimal-Currency/styles.js.mustache → DateTime/styles.ts.mustache} +1 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.ts +10 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/{index.jsx.mustache → index.tsx.mustache} +38 -9
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{index.jsx.mustache → index.tsx.mustache} +50 -14
- package/src/tasks/create/templates/Constellation/Field/{DateTime/styles.js.mustache → Decimal-Currency/styles.ts.mustache} +1 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{index.jsx.mustache → index.tsx.mustache} +37 -8
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/{index.jsx.mustache → index.tsx.mustache} +52 -11
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/{index.jsx.mustache → index.tsx.mustache} +54 -15
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/component-constants.js +5 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +115 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.jsx.mustache +90 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +310 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/format-constants.js.mustache +41 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1238 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +88 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +657 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.jsx.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +218 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +113 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.jsx.mustache +85 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +243 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Text/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Text/{index.jsx.mustache → index.tsx.mustache} +17 -6
- package/src/tasks/create/templates/Constellation/Field/Text/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/{index.jsx.mustache → index.tsx.mustache} +30 -12
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +30 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/{index.jsx.mustache → index.tsx.mustache} +54 -31
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/{index.jsx.mustache → index.tsx.mustache} +30 -13
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/{index.jsx.mustache → index.tsx.mustache} +37 -16
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/{index.jsx.mustache → index.tsx.mustache} +39 -11
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Field/{TimeofDay/index.jsx.mustache → TimeOfDay/index.tsx.mustache} +46 -16
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/time-of-day.js.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/StatusWork.jsx.mustache → DETAILS/StatusWork.tsx.mustache} +2 -3
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +3 -4
- package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/index.jsx.mustache → DETAILS/index.tsx.mustache} +22 -5
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/{Field/Text-Input/StatusWork.jsx → Template/DETAILS-region/StatusWork.tsx.mustache} +2 -3
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +3 -4
- package/src/tasks/create/templates/Constellation/Template/{DETAILS/index.jsx.mustache → DETAILS-region/index.tsx.mustache} +21 -5
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +0 -4
- package/src/tasks/create/templates/Constellation/Template/FORM/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +15 -13
- package/src/tasks/create/templates/Constellation/Template/FORM/{index.jsx.mustache → index.tsx.mustache} +11 -7
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +7 -8
- package/src/tasks/create/templates/Constellation/Template/FORM-region/{index.jsx.mustache → index.tsx.mustache} +14 -3
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/{GetNextWork.jsx.mustache → GetNextWork.tsx.mustache} +13 -6
- package/src/tasks/create/templates/Constellation/Template/PAGE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Template/PAGE/{index.jsx.mustache → index.tsx.mustache} +18 -6
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +1 -4
- package/src/tasks/create/templates/Constellation/Widget/CASE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Widget/CASE/{index.jsx.mustache → index.tsx.mustache} +19 -10
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Constellation/Widget/PAGE/{index.jsx.mustache → index.tsx.mustache} +14 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Avatar.jsx.mustache → Avatar.tsx.mustache} +21 -10
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Operator.jsx.mustache → Operator.tsx.mustache} +30 -9
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{index.jsx.mustache → index.tsx.mustache} +25 -4
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +3 -3
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +0 -2
- package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +2 -4
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +1 -2
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +2 -3
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +1 -2
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +1 -1
- package/src/tasks/create-all/index.js +9 -1
- package/src/tasks/index.js +1 -1
- package/src/tasks/init/helper.js +0 -1
- package/src/tasks/init/index.js +31 -16
- package/src/tasks/init/template/.eslintrc.json +15 -10
- package/src/tasks/init/template/.storybook/main.js +12 -0
- package/src/tasks/init/template/.storybook/preview.js +14 -0
- package/src/tasks/init/template/package.json.mustache +36 -35
- package/src/tasks/publish/helper.js +34 -14
- package/src/tasks/publish/index.js +1 -1
- package/src/tasks/publish-all/helper.js +42 -16
- package/src/tasks/publish-all/index.js +1 -1
- package/src/tasks/revert-webpack/index.js +5 -7
- package/src/tasks/upgrade/index.js +1 -1
- package/src/util.js +68 -44
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +17 -11
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.jsx +0 -1
- package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/config.json +115 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/Date → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/utils.js +182 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +8 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +0 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +22 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +0 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +23 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +0 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +20 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +1 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +20 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +1 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +20 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +2 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +2 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +15 -21
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +20 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +2 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +1 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +20 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +3 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +1 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +2 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +22 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +4 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +20 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +20 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +3 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +113 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/DateTime → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +17 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -16
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +20 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +18 -8
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +2 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +6 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +20 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/config.json +115 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/utils.js +182 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +8 -7
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +0 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +22 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +0 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +23 -13
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +0 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +1 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +1 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +5 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +2 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +23 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +2 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +1 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +20 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +3 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +1 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +23 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +4 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +20 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +3 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +113 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +17 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -16
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +20 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +18 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +5 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +14 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +20 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +2 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +0 -27
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +0 -15
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +0 -15
- package/src/tasks/init/template/.storybook/main.cjs +0 -6
- package/src/tasks/init/template/.storybook/package.json +0 -1
- package/src/tasks/init/template/.storybook/preview.tsx +0 -44
- /package/src/tasks/{build → build-comp}/helper.js +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Boolean/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Date/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/DateTime/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Decimal/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Integer/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist/mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{Picklist/mock.stories.js.mustache → Picklist-Autocomplete/mock.js.mustache} +0 -0
- /package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Text/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Text-Email/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Text-Input/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Text-Phone/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Text-URL/{mock.stories.js.mustache → mock.js.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/mock.stories.js.mustache → TimeOfDay/mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Template/DETAILS/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Template/DETAILS-region/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Template/FORM/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Template/FORM-region/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Template/PAGE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Widget/CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Widget/PAGE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Launchpad/Widget/CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
- /package/tests/assets/components/create/Pega_DXIL_MyTestText/{mock.stories.js → mock.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/{mock.stories.js → mock.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/{mock.stories.js → mock.js} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/{mock.stories.js → mock.js} +0 -0
|
@@ -1,24 +1,51 @@
|
|
|
1
|
-
/* eslint-disable import/no-relative-packages */
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
3
2
|
import { TimeInput, FieldValueList, DateTimeDisplay, Text } from '@pega/cosmos-react-core';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
5
|
+
|
|
5
6
|
|
|
6
7
|
// includes in bundle
|
|
7
8
|
import {
|
|
8
9
|
parseClockFormat,
|
|
10
|
+
|
|
9
11
|
timeCorrectedToSeconds,
|
|
10
12
|
datetimeFireChangeBlurEvents
|
|
11
13
|
} from "./time-of-day";
|
|
12
14
|
import { suggestionsHandler } from './suggestions-handler';
|
|
13
15
|
|
|
14
16
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
17
|
+
import type { DateTimeFormat, DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types';
|
|
18
|
+
import type { ClockFormat } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';
|
|
19
|
+
|
|
20
|
+
// interface for props
|
|
21
|
+
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
22
|
+
// If any, enter additional props that only exist on TextInput here
|
|
23
|
+
displayAsStatus?: boolean;
|
|
24
|
+
isTableFormatter?: boolean;
|
|
25
|
+
hasSuggestions?: boolean;
|
|
26
|
+
variant?: any;
|
|
27
|
+
formatter?: string;
|
|
28
|
+
withSeconds: boolean;
|
|
29
|
+
pickerInterval: string;
|
|
30
|
+
clockFormat: number | string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// interface for StateProps object
|
|
34
|
+
interface StateProps {
|
|
35
|
+
value: string;
|
|
36
|
+
hasSuggestions: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface ConfigProps {
|
|
40
|
+
formatter?: string;
|
|
41
|
+
}
|
|
15
42
|
|
|
16
43
|
|
|
17
44
|
// Duplicated runtime code from Constellation Design System Component
|
|
18
45
|
|
|
19
46
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
20
47
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
21
|
-
|
|
48
|
+
export default function {{COMPONENT_CLASS_NAME}} (props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
22
49
|
const {
|
|
23
50
|
getPConnect,
|
|
24
51
|
value,
|
|
@@ -37,7 +64,8 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
37
64
|
let { formatter } = props;
|
|
38
65
|
const pConn = getPConnect();
|
|
39
66
|
const actions = pConn.getActionsApi();
|
|
40
|
-
const
|
|
67
|
+
const stateProps = pConn.getStateProps() as StateProps;
|
|
68
|
+
const propName: string = stateProps.value;
|
|
41
69
|
|
|
42
70
|
// BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
|
|
43
71
|
let { readOnly, required, disabled } = props;
|
|
@@ -59,30 +87,32 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
59
87
|
} else if (!hasSuggestions && status !== 'success') {
|
|
60
88
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
61
89
|
}
|
|
62
|
-
}, [validatemessage, hasSuggestions]);
|
|
90
|
+
}, [validatemessage, hasSuggestions, status]);
|
|
63
91
|
|
|
64
|
-
const onResolveSuggestionHandler = (accepted) => {
|
|
92
|
+
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
65
93
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
66
94
|
};
|
|
67
95
|
|
|
68
|
-
function handleBlur(onBlurValue) {
|
|
96
|
+
function handleBlur(onBlurValue: any) {
|
|
69
97
|
const { valueAsISOString: time, state: errorState } = onBlurValue;
|
|
70
98
|
const trimmedTime = time ? timeCorrectedToSeconds(time, withSeconds) : time;
|
|
71
99
|
datetimeFireChangeBlurEvents(errorState, value, trimmedTime, actions, propName, pConn);
|
|
72
100
|
const isValueChanged = !(value === undefined && trimmedTime === '') && value !== trimmedTime;
|
|
73
101
|
if (hasSuggestions && isValueChanged) {
|
|
74
|
-
pConn.ignoreSuggestion();
|
|
102
|
+
pConn.ignoreSuggestion('');
|
|
75
103
|
}
|
|
76
104
|
}
|
|
77
105
|
|
|
78
|
-
function handleChange(onChangeValue) {
|
|
106
|
+
function handleChange(onChangeValue: any) {
|
|
79
107
|
const { valueAsISOString: time } = onChangeValue;
|
|
80
108
|
const trimmedTime = time ? timeCorrectedToSeconds(time, withSeconds) : time;
|
|
81
109
|
if (hasSuggestions && value !== trimmedTime) {
|
|
82
|
-
setStatus(
|
|
110
|
+
setStatus('');
|
|
83
111
|
}
|
|
84
112
|
pConn.clearErrorMessages({
|
|
85
|
-
|
|
113
|
+
category: "",
|
|
114
|
+
property: propName,
|
|
115
|
+
context: ""
|
|
86
116
|
});
|
|
87
117
|
}
|
|
88
118
|
|
|
@@ -90,7 +120,8 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
90
120
|
let variantValue = 'time';
|
|
91
121
|
let formatValue = withSeconds ? 'long' : 'short';
|
|
92
122
|
if (pConn && pConn.getConfigProps()) {
|
|
93
|
-
const
|
|
123
|
+
const configProps = pConn.getConfigProps() as ConfigProps;
|
|
124
|
+
const runtimeformatter = configProps?.formatter;
|
|
94
125
|
if (formatter !== runtimeformatter) {
|
|
95
126
|
formatter = runtimeformatter;
|
|
96
127
|
}
|
|
@@ -101,10 +132,10 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
101
132
|
}
|
|
102
133
|
const displayComp = (
|
|
103
134
|
<DateTimeDisplay
|
|
104
|
-
variant={variantValue}
|
|
105
|
-
format={formatValue}
|
|
135
|
+
variant={variantValue as DateTimeVariant}
|
|
136
|
+
format={formatValue as DateTimeFormat}
|
|
106
137
|
value={value}
|
|
107
|
-
clockFormat={clockFormat || undefined}
|
|
138
|
+
clockFormat={clockFormat as ClockFormat || undefined}
|
|
108
139
|
/>
|
|
109
140
|
);
|
|
110
141
|
switch (displayMode) {
|
|
@@ -163,6 +194,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
163
194
|
pickerInterval={pickerInterval}
|
|
164
195
|
clockFormat={clockFormat || undefined}
|
|
165
196
|
data-testid={testId}
|
|
197
|
+
// @ts-ignore
|
|
166
198
|
onFocus={actions.onFocus}
|
|
167
199
|
onChange={handleChange}
|
|
168
200
|
onBlur={handleBlur}
|
|
@@ -211,5 +243,3 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
211
243
|
formatter : PropTypes.string,
|
|
212
244
|
hasSuggestions: PropTypes.bool
|
|
213
245
|
};
|
|
214
|
-
|
|
215
|
-
export default {{COMPONENT_CLASS_NAME}};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// utilizing theming, comment out, if want individual style
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
5
|
+
|
|
6
|
+
export default styled(Configuration)``;
|
|
7
|
+
|
|
8
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
9
|
+
// import styled, { css } from 'styled-components';
|
|
10
|
+
//
|
|
11
|
+
// export default styled.div(() => {
|
|
12
|
+
// return css`
|
|
13
|
+
// margin: 0px 0;
|
|
14
|
+
// `;
|
|
15
|
+
// });
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {PConnect } from '@pega/pcore-pconnect-typedefs';
|
|
2
|
+
|
|
3
|
+
// PConnProps.d.ts
|
|
4
|
+
// This gives us a place to have each component (which is most DX Components) that is
|
|
5
|
+
// expected to have a getPConnect extend its props (from BaseProps)
|
|
6
|
+
// such that every component will be expected to have a getPConnect() function
|
|
7
|
+
// that returns a PConnect object. (new/better way of doing .propTypes).
|
|
8
|
+
// This PConnProps can be extended to include other props that we know are in every component
|
|
9
|
+
export interface PConnProps {
|
|
10
|
+
// getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
|
|
11
|
+
getPConnect: () => typeof PConnect;
|
|
12
|
+
|
|
13
|
+
// Allow any/all other key/value pairs in the BaseProps for now
|
|
14
|
+
// TODO: refine which other props are always expected for various component
|
|
15
|
+
// types and consider further interface "subclassing". For example, we may
|
|
16
|
+
// want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
|
|
17
|
+
// and any other props that every Form component expects.
|
|
18
|
+
// For example, see the PConnFieldProps below.
|
|
19
|
+
// NOTE: if you uncomment the line below, the PConnProps type will allow
|
|
20
|
+
// otherwise undefined types to appear. This can be helpful for debugging
|
|
21
|
+
// or when adding new components whose types aren't yet known.
|
|
22
|
+
// [key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// PConnFieldProps extends PConnProps to bring in the common properties that are
|
|
27
|
+
// associated with most field components (ex: Dropdown, TextInput, etc.) in the
|
|
28
|
+
// components/field directory
|
|
29
|
+
export interface PConnFieldProps extends PConnProps {
|
|
30
|
+
label: string,
|
|
31
|
+
required: boolean,
|
|
32
|
+
disabled: boolean,
|
|
33
|
+
value: any,
|
|
34
|
+
validatemessage: string,
|
|
35
|
+
status?: string,
|
|
36
|
+
onChange?: any,
|
|
37
|
+
onBlur?: any,
|
|
38
|
+
readOnly: boolean,
|
|
39
|
+
testId: string,
|
|
40
|
+
helperText: string,
|
|
41
|
+
displayMode?: string,
|
|
42
|
+
hideLabel: boolean,
|
|
43
|
+
placeholder?: string,
|
|
44
|
+
fieldMetadata?: any,
|
|
45
|
+
additionalProps?: any
|
|
46
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* eslint-disable import/no-relative-packages */
|
|
2
1
|
import { Status } from "@pega/cosmos-react-core";
|
|
3
2
|
|
|
4
|
-
export default function StatusWorkRenderer({ value }) {
|
|
5
|
-
let variant = "info";
|
|
3
|
+
export default function StatusWorkRenderer({ value }: any) {
|
|
4
|
+
let variant: "pending" | "success" | "info" | "warn" | "urgent" = "info";
|
|
6
5
|
|
|
7
6
|
const warnStrings = ["fail", "cancel", "reject", "revoke", "stopped", "warn"];
|
|
8
7
|
const infoStrings = ["open", "hold", "info", "new"];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
3
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
4
4
|
import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
|
|
5
5
|
import PegaDxilMyDetails from './index';
|
|
6
|
-
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock
|
|
6
|
+
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
|
|
7
7
|
import StatusWorkRenderer from './StatusWork.jsx';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
@@ -77,7 +77,7 @@ const renderField = resolvedProps => {
|
|
|
77
77
|
return <FieldValueList variant={variant} fields={[{ name: label, value: val }]} key={key} />;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
export const
|
|
80
|
+
export const BasePegaDxilMyDetails = () => {
|
|
81
81
|
const props = {
|
|
82
82
|
template: 'MyCo_MyComponents_NewDetailsTemplate',
|
|
83
83
|
showHighlightedData: true,
|
|
@@ -98,7 +98,6 @@ export const basePegaDxilMyDetails = () => {
|
|
|
98
98
|
return pyReviewRaw.config.inheritedProps;
|
|
99
99
|
},
|
|
100
100
|
createComponent: config => {
|
|
101
|
-
// eslint-disable-next-line default-case
|
|
102
101
|
switch (config.config.value) {
|
|
103
102
|
case '@P .pyStatusWork':
|
|
104
103
|
return renderField(pyReviewResolved.highlightedData[0].config);
|
|
@@ -1,18 +1,28 @@
|
|
|
1
|
-
/* eslint-disable import/no-relative-packages */
|
|
2
1
|
import { Fragment } from 'react';
|
|
3
2
|
import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
|
|
5
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
6
|
+
|
|
6
7
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
7
8
|
|
|
8
9
|
// includes in bundle
|
|
9
10
|
import { getAllFields } from './utils';
|
|
10
11
|
|
|
12
|
+
|
|
13
|
+
// interface for props
|
|
14
|
+
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
15
|
+
// If any, enter additional props that only exist on TextInput here
|
|
16
|
+
showLabel: boolean;
|
|
17
|
+
showHighlightedData: boolean;
|
|
18
|
+
children: any;
|
|
19
|
+
}
|
|
20
|
+
|
|
11
21
|
// Duplicated runtime code from Constellation Design System Component
|
|
12
22
|
|
|
13
23
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
14
24
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
15
|
-
export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
25
|
+
export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
16
26
|
|
|
17
27
|
const { getPConnect, children, label, showLabel, showHighlightedData } = props;
|
|
18
28
|
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
@@ -20,18 +30,25 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
20
30
|
const numRegions = getAllFields(getPConnect)?.length;
|
|
21
31
|
const gridRepeat = "repeat(".concat(numRegions).concat(", 1fr)");
|
|
22
32
|
const gridContainer = { "colGap": 1};
|
|
33
|
+
// @ts-ignore
|
|
23
34
|
gridContainer.cols = gridRepeat;
|
|
35
|
+
// @ts-ignore
|
|
24
36
|
gridContainer.alignItems = 'start';
|
|
25
37
|
|
|
26
38
|
const gridHighlightContainer = { "gap": 2};
|
|
39
|
+
// @ts-ignore
|
|
27
40
|
gridHighlightContainer.cols = gridRepeat;
|
|
41
|
+
// @ts-ignore
|
|
28
42
|
gridHighlightContainer.alignItems = 'start';
|
|
43
|
+
// @ts-ignore
|
|
29
44
|
gridHighlightContainer.pad = [0, 0, 2, 0];
|
|
30
45
|
|
|
31
46
|
// Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent
|
|
32
47
|
let highlightedDataArr = [];
|
|
33
48
|
if (showHighlightedData) {
|
|
49
|
+
// @ts-ignore
|
|
34
50
|
const { highlightedData = [] } = getPConnect().getRawMetadata().config;
|
|
51
|
+
// @ts-ignore
|
|
35
52
|
highlightedDataArr = highlightedData.map((field) => {
|
|
36
53
|
field.config.displayMode = 'STACKED_LARGE_VAL';
|
|
37
54
|
|
|
@@ -40,7 +57,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
40
57
|
field.type = 'TextInput';
|
|
41
58
|
field.config.displayAsStatus = true;
|
|
42
59
|
}
|
|
43
|
-
|
|
60
|
+
// @ts-ignore
|
|
44
61
|
return getPConnect().createComponent(field);
|
|
45
62
|
});
|
|
46
63
|
}
|
|
@@ -53,13 +70,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
53
70
|
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
54
71
|
<Grid container={gridHighlightContainer}
|
|
55
72
|
data-testid={`highlighted-column-count-${numRegions}`}>
|
|
56
|
-
{highlightedDataArr.map((child, i) => (
|
|
73
|
+
{highlightedDataArr.map((child: any, i: number) => (
|
|
57
74
|
<Fragment key={`hf-${i + 1}`}>{child}</Fragment>
|
|
58
75
|
))}
|
|
59
76
|
</Grid>
|
|
60
77
|
)}
|
|
61
78
|
<Grid container={gridContainer} data-testid={`column-count-${numRegions}`} >
|
|
62
|
-
{children.map((child, i) => (
|
|
79
|
+
{children.map((child: any, i: number) => (
|
|
63
80
|
<Flex container={{ direction: 'column'}} key={`r-${i + 1}`}>
|
|
64
81
|
{child}
|
|
65
82
|
</Flex>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// utilizing theming, comment out, if want individual style
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
5
|
+
|
|
6
|
+
export default styled(Configuration)``;
|
|
7
|
+
|
|
8
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
9
|
+
// import styled, { css } from 'styled-components';
|
|
10
|
+
//
|
|
11
|
+
// export default styled.div(() => {
|
|
12
|
+
// return css`
|
|
13
|
+
// margin: 0px 0;
|
|
14
|
+
// `;
|
|
15
|
+
// });
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
1
|
|
|
3
2
|
/**
|
|
4
3
|
* Given the PConnect object of a Template component, retrieve the children
|
|
@@ -137,9 +136,9 @@ export function getInstructions(pConnect, instructions = 'casestep') {
|
|
|
137
136
|
|
|
138
137
|
// If the annotation wasn't processed correctly, don't return any instruction text
|
|
139
138
|
if (instructions?.startsWith('@PARAGRAPH')) {
|
|
140
|
-
|
|
139
|
+
|
|
141
140
|
console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
|
|
142
|
-
|
|
141
|
+
return undefined;
|
|
143
142
|
}
|
|
144
143
|
|
|
145
144
|
// Custom instructions from the view
|
package/src/tasks/create/templates/Constellation/Template/DETAILS-region/PConnProps.d.ts.mustache
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {PConnect } from '@pega/pcore-pconnect-typedefs';
|
|
2
|
+
|
|
3
|
+
// PConnProps.d.ts
|
|
4
|
+
// This gives us a place to have each component (which is most DX Components) that is
|
|
5
|
+
// expected to have a getPConnect extend its props (from BaseProps)
|
|
6
|
+
// such that every component will be expected to have a getPConnect() function
|
|
7
|
+
// that returns a PConnect object. (new/better way of doing .propTypes).
|
|
8
|
+
// This PConnProps can be extended to include other props that we know are in every component
|
|
9
|
+
export interface PConnProps {
|
|
10
|
+
// getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
|
|
11
|
+
getPConnect: () => typeof PConnect;
|
|
12
|
+
|
|
13
|
+
// Allow any/all other key/value pairs in the BaseProps for now
|
|
14
|
+
// TODO: refine which other props are always expected for various component
|
|
15
|
+
// types and consider further interface "subclassing". For example, we may
|
|
16
|
+
// want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
|
|
17
|
+
// and any other props that every Form component expects.
|
|
18
|
+
// For example, see the PConnFieldProps below.
|
|
19
|
+
// NOTE: if you uncomment the line below, the PConnProps type will allow
|
|
20
|
+
// otherwise undefined types to appear. This can be helpful for debugging
|
|
21
|
+
// or when adding new components whose types aren't yet known.
|
|
22
|
+
// [key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// PConnFieldProps extends PConnProps to bring in the common properties that are
|
|
27
|
+
// associated with most field components (ex: Dropdown, TextInput, etc.) in the
|
|
28
|
+
// components/field directory
|
|
29
|
+
export interface PConnFieldProps extends PConnProps {
|
|
30
|
+
label: string,
|
|
31
|
+
required: boolean,
|
|
32
|
+
disabled: boolean,
|
|
33
|
+
value: any,
|
|
34
|
+
validatemessage: string,
|
|
35
|
+
status?: string,
|
|
36
|
+
onChange?: any,
|
|
37
|
+
onBlur?: any,
|
|
38
|
+
readOnly: boolean,
|
|
39
|
+
testId: string,
|
|
40
|
+
helperText: string,
|
|
41
|
+
displayMode?: string,
|
|
42
|
+
hideLabel: boolean,
|
|
43
|
+
placeholder?: string,
|
|
44
|
+
fieldMetadata?: any,
|
|
45
|
+
additionalProps?: any
|
|
46
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* eslint-disable import/no-relative-packages */
|
|
2
1
|
import { Status } from "@pega/cosmos-react-core";
|
|
3
2
|
|
|
4
|
-
export default function StatusWorkRenderer({ value }) {
|
|
5
|
-
let variant = "info";
|
|
3
|
+
export default function StatusWorkRenderer({ value }: any) {
|
|
4
|
+
let variant: "pending" | "success" | "info" | "warn" | "urgent" = "info";
|
|
6
5
|
|
|
7
6
|
const warnStrings = ["fail", "cancel", "reject", "revoke", "stopped", "warn"];
|
|
8
7
|
const infoStrings = ["open", "hold", "info", "new"];
|
package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
3
|
import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
|
|
4
4
|
import {{COMPONENT_CLASS_NAME}} from './index';
|
|
5
|
-
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock
|
|
5
|
+
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
|
|
6
6
|
import StatusWorkRenderer from './StatusWork.jsx';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
@@ -76,7 +76,7 @@ const renderField = resolvedProps => {
|
|
|
76
76
|
return <FieldValueList variant={variant} fields={[{ name: label, value: val }]} key={key} />;
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
export const
|
|
79
|
+
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
80
80
|
const props = {
|
|
81
81
|
template: 'MyCo_MyComponents_NewDetailsTemplate',
|
|
82
82
|
showHighlightedData: true,
|
|
@@ -97,7 +97,6 @@ export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
|
97
97
|
return pyReviewRaw.config.inheritedProps;
|
|
98
98
|
},
|
|
99
99
|
createComponent: config => {
|
|
100
|
-
// eslint-disable-next-line default-case
|
|
101
100
|
switch (config.config.value) {
|
|
102
101
|
case '@P .pyStatusWork':
|
|
103
102
|
return renderField(pyReviewResolved.highlightedData[0].config);
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
/* eslint-disable import/no-relative-packages */
|
|
2
1
|
import { Fragment } from 'react';
|
|
3
2
|
import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
|
|
5
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
6
|
+
|
|
6
7
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
7
8
|
|
|
8
9
|
// includes in bundle
|
|
9
10
|
import { getAllFields } from './utils';
|
|
10
11
|
|
|
12
|
+
// interface for props
|
|
13
|
+
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
14
|
+
// If any, enter additional props that only exist on TextInput here
|
|
15
|
+
showLabel: boolean;
|
|
16
|
+
showHighlightedData: boolean;
|
|
17
|
+
children: any;
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
// Duplicated runtime code from Constellation Design System Component
|
|
12
21
|
|
|
13
22
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
14
23
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
15
|
-
export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
24
|
+
export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
16
25
|
|
|
17
26
|
const { getPConnect, children, label, showLabel, showHighlightedData } = props;
|
|
18
27
|
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
@@ -20,18 +29,25 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
20
29
|
const numRegions = getAllFields(getPConnect)?.length;
|
|
21
30
|
const gridRepeat = "repeat(".concat(numRegions).concat(", 1fr)");
|
|
22
31
|
const gridContainer = { "colGap": 1};
|
|
32
|
+
// @ts-ignore
|
|
23
33
|
gridContainer.cols = gridRepeat;
|
|
34
|
+
// @ts-ignore
|
|
24
35
|
gridContainer.alignItems = 'start';
|
|
25
36
|
|
|
26
37
|
const gridHighlightContainer = { "gap": 2};
|
|
38
|
+
// @ts-ignore
|
|
27
39
|
gridHighlightContainer.cols = gridRepeat;
|
|
40
|
+
// @ts-ignore
|
|
28
41
|
gridHighlightContainer.alignItems = 'start';
|
|
42
|
+
// @ts-ignore
|
|
29
43
|
gridHighlightContainer.pad = [0, 0, 2, 0];
|
|
30
44
|
|
|
31
45
|
// Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent
|
|
32
46
|
let highlightedDataArr = [];
|
|
33
47
|
if (showHighlightedData) {
|
|
48
|
+
// @ts-ignore
|
|
34
49
|
const { highlightedData = [] } = getPConnect().getRawMetadata().config;
|
|
50
|
+
// @ts-ignore
|
|
35
51
|
highlightedDataArr = highlightedData.map((field) => {
|
|
36
52
|
field.config.displayMode = 'STACKED_LARGE_VAL';
|
|
37
53
|
|
|
@@ -40,7 +56,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
40
56
|
field.type = 'TextInput';
|
|
41
57
|
field.config.displayAsStatus = true;
|
|
42
58
|
}
|
|
43
|
-
|
|
59
|
+
// @ts-ignore
|
|
44
60
|
return getPConnect().createComponent(field);
|
|
45
61
|
});
|
|
46
62
|
}
|
|
@@ -53,13 +69,13 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
53
69
|
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
54
70
|
<Grid container={gridHighlightContainer}
|
|
55
71
|
data-testid={`highlighted-column-count-${numRegions}`}>
|
|
56
|
-
{highlightedDataArr.map((child, i) => (
|
|
72
|
+
{highlightedDataArr.map((child: any, i: number) => (
|
|
57
73
|
<Fragment key={`hf-${i + 1}`}>{child}</Fragment>
|
|
58
74
|
))}
|
|
59
75
|
</Grid>
|
|
60
76
|
)}
|
|
61
77
|
<Grid container={gridContainer} data-testid={`column-count-${numRegions}`} >
|
|
62
|
-
{children.map((child, i) => (
|
|
78
|
+
{children.map((child: any, i: number) => (
|
|
63
79
|
<Flex container={{ direction: 'column'}} key={`r-${i + 1}`}>
|
|
64
80
|
{child}
|
|
65
81
|
</Flex>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// utilizing theming, comment out, if want individual style
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
5
|
+
|
|
6
|
+
export default styled(Configuration)``;
|
|
7
|
+
|
|
8
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
9
|
+
// import styled, { css } from 'styled-components';
|
|
10
|
+
//
|
|
11
|
+
// export default styled.div(() => {
|
|
12
|
+
// return css`
|
|
13
|
+
// margin: 0px 0;
|
|
14
|
+
// `;
|
|
15
|
+
// });
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
|
|
3
1
|
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -139,9 +137,7 @@ export function getInstructions(pConnect, instructions = 'casestep') {
|
|
|
139
137
|
|
|
140
138
|
// If the annotation wasn't processed correctly, don't return any instruction text
|
|
141
139
|
if (instructions?.startsWith('@PARAGRAPH')) {
|
|
142
|
-
/* eslint-disable no-console */
|
|
143
140
|
console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
|
|
144
|
-
/* eslint-enable no-console */
|
|
145
141
|
return undefined;
|
|
146
142
|
}
|
|
147
143
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {PConnect } from '@pega/pcore-pconnect-typedefs';
|
|
2
|
+
|
|
3
|
+
// PConnProps.d.ts
|
|
4
|
+
// This gives us a place to have each component (which is most DX Components) that is
|
|
5
|
+
// expected to have a getPConnect extend its props (from BaseProps)
|
|
6
|
+
// such that every component will be expected to have a getPConnect() function
|
|
7
|
+
// that returns a PConnect object. (new/better way of doing .propTypes).
|
|
8
|
+
// This PConnProps can be extended to include other props that we know are in every component
|
|
9
|
+
export interface PConnProps {
|
|
10
|
+
// getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
|
|
11
|
+
getPConnect: () => typeof PConnect;
|
|
12
|
+
|
|
13
|
+
// Allow any/all other key/value pairs in the BaseProps for now
|
|
14
|
+
// TODO: refine which other props are always expected for various component
|
|
15
|
+
// types and consider further interface "subclassing". For example, we may
|
|
16
|
+
// want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
|
|
17
|
+
// and any other props that every Form component expects.
|
|
18
|
+
// For example, see the PConnFieldProps below.
|
|
19
|
+
// NOTE: if you uncomment the line below, the PConnProps type will allow
|
|
20
|
+
// otherwise undefined types to appear. This can be helpful for debugging
|
|
21
|
+
// or when adding new components whose types aren't yet known.
|
|
22
|
+
// [key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// PConnFieldProps extends PConnProps to bring in the common properties that are
|
|
27
|
+
// associated with most field components (ex: Dropdown, TextInput, etc.) in the
|
|
28
|
+
// components/field directory
|
|
29
|
+
export interface PConnFieldProps extends PConnProps {
|
|
30
|
+
label: string,
|
|
31
|
+
required: boolean,
|
|
32
|
+
disabled: boolean,
|
|
33
|
+
value: any,
|
|
34
|
+
validatemessage: string,
|
|
35
|
+
status?: string,
|
|
36
|
+
onChange?: any,
|
|
37
|
+
onBlur?: any,
|
|
38
|
+
readOnly: boolean,
|
|
39
|
+
testId: string,
|
|
40
|
+
helperText: string,
|
|
41
|
+
displayMode?: string,
|
|
42
|
+
hideLabel: boolean,
|
|
43
|
+
placeholder?: string,
|
|
44
|
+
fieldMetadata?: any,
|
|
45
|
+
additionalProps?: any
|
|
46
|
+
}
|