@pega/custom-dx-components 0.23.21 → 0.23.23
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/create/templates/Constellation/Field/Boolean/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.js → src/tasks/create/templates/Constellation/Field/Boolean/mock.ts.mustache} +1 -2
- package/src/tasks/create/templates/Constellation/Field/Date/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +5 -2
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.js → src/tasks/create/templates/Constellation/Field/Date/mock.ts.mustache} +1 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +5 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/{mock.js.mustache → mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +3 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.js → src/tasks/create/templates/Constellation/Field/Decimal/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +3 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.js → src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +3 -3
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{mock.js.mustache → mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Integer/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -3
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.js → src/tasks/create/templates/Constellation/Field/Integer/mock.ts.mustache} +1 -2
- package/src/tasks/create/templates/Constellation/Field/Picklist/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +4 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/{Picklist-RadioButtons/mock.js.mustache → Picklist/mock.ts.mustache} +1 -2
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +4 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{mock.js.mustache → mock.ts.mustache} +1 -2
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +4 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/{Picklist/mock.js.mustache → Picklist-RadioButtons/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +3 -3
- package/{tests/assets/components/create/Pega_DXIL_MyTestText/mock.js → src/tasks/create/templates/Constellation/Field/Text/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/{Text-Paragraph/demo.stories.jsx.mustache → Text-Email/demo.stories.tsx.mustache} +3 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.js → src/tasks/create/templates/Constellation/Field/Text-Email/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Input/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Input/{mock.js.mustache → mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/{Text-Email/demo.stories.jsx.mustache → Text-Paragraph/demo.stories.tsx.mustache} +3 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.js → src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/{mock.js.mustache → mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text-URL/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.js → src/tasks/create/templates/Constellation/Field/Text-URL/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.js → src/tasks/create/templates/Constellation/Field/TimeOfDay/mock.ts.mustache} +2 -2
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx → src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache} +4 -4
- package/src/tasks/create/templates/Constellation/Template/DETAILS/{mock.js.mustache → mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +3 -2
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.js → src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Template/FORM/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +4 -3
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/mock.js → src/tasks/create/templates/Constellation/Template/FORM/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Template/FORM-region/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +5 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.js → src/tasks/create/templates/Constellation/Template/FORM-region/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Template/PAGE/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +4 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.js → src/tasks/create/templates/Constellation/Template/PAGE/mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/{Launchpad/Widget/CASE/demo.stories.jsx.mustache → Constellation/Widget/CASE/demo.stories.tsx.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Widget/CASE/{mock.js.mustache → mock.ts.mustache} +1 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.js → src/tasks/create/templates/Constellation/Widget/PAGE/mock.ts.mustache} +2 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{mock.js.mustache → mock.ts.mustache} +2 -2
- package/src/tasks/create/templates/Launchpad/Widget/CASE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/{Constellation/Widget/CASE/demo.stories.jsx.mustache → Launchpad/Widget/CASE/demo.stories.tsx.mustache} +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/CASE/{index.jsx.mustache → index.tsx.mustache} +17 -8
- package/src/tasks/create/templates/Launchpad/Widget/CASE/{mock.js.mustache → mock.ts.mustache} +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{Avatar.jsx.mustache → Avatar.tsx.mustache} +17 -5
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{Operator.jsx.mustache → Operator.tsx.mustache} +29 -7
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{demo.stories.jsx.mustache → demo.stories.tsx.mustache} +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{index.jsx.mustache → index.tsx.mustache} +13 -4
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{mock.js.mustache → mock.ts.mustache} +1 -2
- package/src/tasks/init/template/.eslintrc.json +1 -1
- package/src/tasks/init/template/package.json.mustache +5 -4
- package/tests/assets/components/create/Pega_DXIL_MyTestText/PConnProps.d.ts +46 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/{demo.stories.jsx → demo.stories.tsx} +10 -16
- package/tests/assets/components/create/Pega_DXIL_MyTestText/{index.jsx → index.tsx} +17 -5
- package/tests/assets/components/{createAll/Constellation/Pega_DXIL_MyText/mock.js → create/Pega_DXIL_MyTestText/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/{demo.stories.jsx → demo.stories.tsx} +21 -22
- package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyBoolean/event-utils.js → Pega_DXIL_MyAutocomplete/event-utils.ts} +4 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/{index.jsx → index.tsx} +319 -125
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/{mock.js → mock.ts} +1 -2
- package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyDateTime/suggestions-handler.js → Pega_DXIL_MyAutocomplete/suggestions-handler.ts} +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyAutocomplete/utils.js → Constellation/Pega_DXIL_MyAutocomplete/utils.ts} +66 -30
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{boolean-format.js → boolean-format.ts} +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx → Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx} +5 -6
- package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete/event-utils.js → Pega_DXIL_MyBoolean/event-utils.ts} +4 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{index.jsx → index.tsx} +35 -8
- package/{src/tasks/create/templates/Constellation/Field/Boolean/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.ts} +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/{demo.stories.jsx → demo.stories.tsx} +12 -22
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/{index.jsx → index.tsx} +19 -8
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/{mock.js → mock.ts} +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +56 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{event-utils.js → event-utils.ts} +4 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{index.jsx → index.tsx} +48 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{suggestions-handler.js → suggestions-handler.ts} +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDate/demo.stories.jsx → Constellation/Pega_DXIL_MyDate/demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDate/index.jsx → Constellation/Pega_DXIL_MyDate/index.tsx} +82 -36
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/{mock.js → mock.ts} +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/{suggestions-handler.js → suggestions-handler.ts} +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx → Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDateTime/index.jsx → Constellation/Pega_DXIL_MyDateTime/index.tsx} +64 -20
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.ts +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +52 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/{event-utils.js → event-utils.ts} +4 -4
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDecimal/index.jsx → Constellation/Pega_DXIL_MyDecimal/index.tsx} +37 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MyAutocomplete/suggestions-handler.js → Pega_DXIL_MyDecimal/suggestions-handler.ts} +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx → Constellation/Pega_DXIL_MyDetails/StatusWork.tsx} +2 -2
- package/{src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx} +2 -2
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDetails/index.jsx → Constellation/Pega_DXIL_MyDetails/index.tsx} +22 -4
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDetails/mock.js → Constellation/Pega_DXIL_MyDetails/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/{index.jsx → index.tsx} +29 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/{demo.stories.jsx → demo.stories.tsx} +15 -6
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyForm/index.jsx → Constellation/Pega_DXIL_MyForm/index.tsx} +11 -6
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyForm/mock.js → Constellation/Pega_DXIL_MyForm/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/{index.jsx → index.tsx} +50 -8
- package/{src/tasks/create/templates/Constellation/Field/Integer/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts} +1 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx → Constellation/Pega_DXIL_MyPage/GetNextWork.tsx} +12 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPage/demo.stories.jsx → Constellation/Pega_DXIL_MyPage/demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{index.jsx → index.tsx} +16 -4
- package/{src/tasks/create/templates/Constellation/Template/PAGE/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{Avatar.jsx → Avatar.tsx} +19 -6
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{Operator.jsx → Operator.tsx} +29 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{demo.stories.jsx → demo.stories.tsx} +11 -22
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{index.jsx → index.tsx} +23 -3
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPageCaseWidget/mock.js → Constellation/Pega_DXIL_MyPageCaseWidget/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx → Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx} +8 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/{index.jsx → index.tsx} +14 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPageWidget/mock.js → Constellation/Pega_DXIL_MyPageWidget/mock.ts} +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/{index.jsx → index.tsx} +29 -11
- package/{src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +52 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPercentage/index.jsx → Constellation/Pega_DXIL_MyPercentage/index.tsx} +36 -6
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +49 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPhone/index.jsx → Constellation/Pega_DXIL_MyPhone/index.tsx} +36 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/{demo.stories.jsx → demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPicklist/index.jsx → Constellation/Pega_DXIL_MyPicklist/index.tsx} +52 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.ts +68 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.jsx → Constellation/Pega_DXIL_MyRadioButtons/demo.stories.tsx} +16 -20
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/{index.jsx → index.tsx} +34 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.ts +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyText/demo.stories.jsx → Constellation/Pega_DXIL_MyText/demo.stories.tsx} +10 -16
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyText/index.jsx → Constellation/Pega_DXIL_MyText/index.tsx} +17 -5
- package/{src/tasks/create/templates/Constellation/Field/Text/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx → Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx} +7 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/{index.jsx → index.tsx} +54 -30
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx → Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx} +8 -17
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{index.jsx → index.tsx} +45 -14
- package/{src/tasks/create/templates/Constellation/Field/TimeOfDay/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/{StatusWork.jsx → StatusWork.tsx} +2 -2
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx → Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx} +4 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/{index.jsx → index.tsx} +21 -4
- package/{src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/{demo.stories.jsx → demo.stories.tsx} +9 -3
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx → Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx} +14 -2
- package/{src/tasks/create/templates/Constellation/Template/FORM-region/mock.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +49 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/{index.jsx → index.tsx} +38 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.tsx +90 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/{index.jsx → index.tsx} +319 -125
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.ts +68 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyAutocomplete/utils.js → Launchpad/Pega_DXIL_MyAutocomplete/utils.ts} +66 -30
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{boolean-format.js → boolean-format.ts} +1 -1
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx → Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx} +5 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{index.jsx → index.tsx} +35 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{mock.js → mock.ts} +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{demo.stories.jsx → demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{index.jsx → index.tsx} +17 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{mock.js → mock.ts} +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +56 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/{index.jsx → index.tsx} +48 -12
- package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDate/demo.stories.jsx → Launchpad/Pega_DXIL_MyDate/demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDate/index.jsx → Launchpad/Pega_DXIL_MyDate/index.tsx} +82 -36
- package/{src/tasks/create/templates/Constellation/Field/Date/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.ts} +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx → Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDateTime/index.jsx → Launchpad/Pega_DXIL_MyDateTime/index.tsx} +64 -20
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.ts +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +52 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDecimal/index.jsx → Launchpad/Pega_DXIL_MyDecimal/index.tsx} +37 -7
- package/{src/tasks/create/templates/Constellation/Field/Decimal/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDetails/StatusWork.jsx → Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx} +2 -2
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDetails/demo.stories.jsx → Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx} +3 -2
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDetails/index.jsx → Launchpad/Pega_DXIL_MyDetails/index.tsx} +22 -4
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDetails/mock.js → Launchpad/Pega_DXIL_MyDetails/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/{index.jsx → index.tsx} +29 -10
- package/{src/tasks/create/templates/Constellation/Field/Text-Email/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/{demo.stories.jsx → demo.stories.tsx} +17 -13
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyForm/index.jsx → Launchpad/Pega_DXIL_MyForm/index.tsx} +11 -6
- package/{src/tasks/create/templates/Constellation/Template/FORM/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/{index.jsx → index.tsx} +50 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/{mock.js → mock.ts} +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPage/GetNextWork.jsx → Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx} +12 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPage/demo.stories.jsx → Launchpad/Pega_DXIL_MyPage/demo.stories.tsx} +12 -21
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/{index.jsx → index.tsx} +16 -4
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPage/mock.js → Launchpad/Pega_DXIL_MyPage/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{Avatar.jsx → Avatar.tsx} +17 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{Operator.jsx → Operator.tsx} +29 -7
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{demo.stories.jsx → demo.stories.tsx} +12 -21
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{index.jsx → index.tsx} +13 -4
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPageCaseWidget/mock.js → Launchpad/Pega_DXIL_MyPageCaseWidget/mock.ts} +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx → Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx} +7 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/{index.jsx → index.tsx} +14 -1
- package/{src/tasks/create/templates/Constellation/Widget/PAGE/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.ts} +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/{index.jsx → index.tsx} +29 -11
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyParagraph/mock.js → Launchpad/Pega_DXIL_MyParagraph/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +52 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPercentage/index.jsx → Launchpad/Pega_DXIL_MyPercentage/index.tsx} +36 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPhone/index.jsx → Launchpad/Pega_DXIL_MyPhone/index.tsx} +36 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/{demo.stories.jsx → demo.stories.tsx} +12 -20
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.ts +18 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPicklist/index.jsx → Launchpad/Pega_DXIL_MyPicklist/index.tsx} +52 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.ts +68 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.tsx +85 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/{index.jsx → index.tsx} +34 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.ts +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyText/demo.stories.jsx → Launchpad/Pega_DXIL_MyText/demo.stories.tsx} +10 -16
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyText/index.jsx → Launchpad/Pega_DXIL_MyText/index.tsx} +17 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx → Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx} +7 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{index.jsx → index.tsx} +54 -30
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx → Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx} +8 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/{index.jsx → index.tsx} +45 -14
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTimeOfDay/mock.js → Launchpad/Pega_DXIL_MyTimeOfDay/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/{StatusWork.jsx → StatusWork.tsx} +2 -2
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx → Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx} +4 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/{index.jsx → index.tsx} +21 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/{mock.js → mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/{demo.stories.jsx → demo.stories.tsx} +11 -10
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx → Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx} +14 -2
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTwoColumnForm/mock.js → Launchpad/Pega_DXIL_MyTwoColumnForm/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.ts +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/{index.jsx → index.tsx} +38 -9
- package/{src/tasks/create/templates/Constellation/Field/Text-URL/mock.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.ts +9 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +2 -2
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +4 -4
- package/tests/functional/localCreateBuildDelete.test.js +2 -2
- package/tests/functional/localCreateListDelete.test.js +2 -2
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +4 -4
- package/tests/functional/localCreatePublishDelete.test.js +2 -2
- package/tests/functional/localCreateRenameDelete.test.js +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -67
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -61
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +0 -61
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -61
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.js +0 -69
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.jsx +0 -91
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.js +0 -69
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -61
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/event-utils.js +0 -18
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.jsx +0 -89
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +0 -69
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -66
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +0 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +0 -58
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.js +0 -69
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.js +0 -69
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -59
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +0 -58
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +0 -9
- /package/src/tasks/create/templates/Launchpad/Widget/CASE/{styles.js.mustache → styles.ts.mustache} +0 -0
- /package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{styles.js.mustache → styles.ts.mustache} +0 -0
- /package/tests/assets/components/create/Pega_DXIL_MyTestText/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/{styles.js → styles.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/{styles.js → styles.ts} +0 -0
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
EmailDisplay, URLDisplay
|
|
9
9
|
} from '@pega/cosmos-react-core';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
11
12
|
|
|
12
13
|
// includes in bundle
|
|
13
14
|
import handleEvent from "./event-utils";
|
|
@@ -15,7 +16,25 @@ import { suggestionsHandler } from './suggestions-handler';
|
|
|
15
16
|
|
|
16
17
|
import StyledPegaDxilMyPhoneWrapper from './styles';
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
// interface for props
|
|
20
|
+
interface PegaDxilMyPhoneProps extends PConnFieldProps {
|
|
21
|
+
// If any, enter additional props that only exist on TextInput here
|
|
22
|
+
displayAsStatus?: boolean;
|
|
23
|
+
isTableFormatter?: boolean;
|
|
24
|
+
hasSuggestions?: boolean;
|
|
25
|
+
variant?: any;
|
|
26
|
+
formatter: string;
|
|
27
|
+
datasource: Array<any>;
|
|
28
|
+
showCountryCode: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// interface for StateProps object
|
|
32
|
+
interface StateProps {
|
|
33
|
+
value: string;
|
|
34
|
+
hasSuggestions: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const formatExists = (formatterVal: string) => {
|
|
19
38
|
const formatterValues = [
|
|
20
39
|
"TextInput",
|
|
21
40
|
"WorkStatus",
|
|
@@ -33,7 +52,7 @@ export const formatExists = (formatterVal) => {
|
|
|
33
52
|
};
|
|
34
53
|
|
|
35
54
|
|
|
36
|
-
export const textFormatter = (formatter,value) => {
|
|
55
|
+
export const textFormatter = (formatter: string, value: any) => {
|
|
37
56
|
let displayComponent = null;
|
|
38
57
|
switch(formatter){
|
|
39
58
|
case "TextInput" : {
|
|
@@ -63,7 +82,7 @@ export const textFormatter = (formatter,value) => {
|
|
|
63
82
|
|
|
64
83
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
65
84
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
66
|
-
|
|
85
|
+
export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
67
86
|
const {
|
|
68
87
|
getPConnect,
|
|
69
88
|
value,
|
|
@@ -84,11 +103,14 @@ const PegaDxilMyPhone = props => {
|
|
|
84
103
|
const { formatter } = props;
|
|
85
104
|
const pConn = getPConnect();
|
|
86
105
|
const actions = pConn.getActionsApi();
|
|
87
|
-
const
|
|
106
|
+
const stateProps = pConn.getStateProps() as StateProps;
|
|
107
|
+
let propName: string = stateProps.value;
|
|
88
108
|
const hasValueChange = useRef(false);
|
|
89
109
|
|
|
90
|
-
|
|
110
|
+
let callingCodesList: Array<any> = [];
|
|
111
|
+
// @ts-ignore
|
|
91
112
|
if (datasource?.source?.length > 0) {
|
|
113
|
+
// @ts-ignore
|
|
92
114
|
datasource.source.forEach((element) => {
|
|
93
115
|
callingCodesList.push(element.value);
|
|
94
116
|
});
|
|
@@ -118,12 +140,12 @@ const PegaDxilMyPhone = props => {
|
|
|
118
140
|
}, [validatemessage, hasSuggestions, status]);
|
|
119
141
|
|
|
120
142
|
// funtion to exclude country code from phone number
|
|
121
|
-
function getPhoneNumberAlone(phoneNumber) {
|
|
143
|
+
function getPhoneNumberAlone(phoneNumber: string) {
|
|
122
144
|
const phoneNumberParts = getPhoneNumberParts(phoneNumber, callingCodesList);
|
|
123
145
|
return phoneNumberParts && phoneNumberParts[1];
|
|
124
146
|
}
|
|
125
147
|
|
|
126
|
-
function handleChangeBlur(enteredValue, eventType) {
|
|
148
|
+
function handleChangeBlur(enteredValue: string, eventType: any) {
|
|
127
149
|
if (!getPhoneNumberAlone(enteredValue)) {
|
|
128
150
|
enteredValue = '';
|
|
129
151
|
}
|
|
@@ -176,7 +198,7 @@ const PegaDxilMyPhone = props => {
|
|
|
176
198
|
);
|
|
177
199
|
}
|
|
178
200
|
|
|
179
|
-
const onResolveSuggestionHandler = (accepted) => {
|
|
201
|
+
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
180
202
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
181
203
|
};
|
|
182
204
|
|
|
@@ -196,21 +218,23 @@ const PegaDxilMyPhone = props => {
|
|
|
196
218
|
readOnly={readOnly}
|
|
197
219
|
required={required}
|
|
198
220
|
data-testid={testId}
|
|
199
|
-
onChange={(enteredValue) => {
|
|
221
|
+
onChange={(enteredValue: any) => {
|
|
200
222
|
if (hasSuggestions) {
|
|
201
|
-
setStatus(
|
|
223
|
+
setStatus('');
|
|
202
224
|
}
|
|
203
225
|
setInputValue(enteredValue);
|
|
204
226
|
if (value !== enteredValue) {
|
|
227
|
+
// @ts-ignore
|
|
205
228
|
handleEvent(actions, 'change', propName, enteredValue);
|
|
206
229
|
}
|
|
207
230
|
hasValueChange.current = true;
|
|
208
231
|
}}
|
|
209
|
-
onBlur={(enteredValue) => {
|
|
232
|
+
onBlur={(enteredValue: any) => {
|
|
210
233
|
if (!value || hasValueChange.current) {
|
|
234
|
+
// @ts-ignore
|
|
211
235
|
handleChangeBlur(enteredValue, 'blur');
|
|
212
236
|
if (hasSuggestions) {
|
|
213
|
-
pConn.ignoreSuggestion();
|
|
237
|
+
pConn.ignoreSuggestion('');
|
|
214
238
|
}
|
|
215
239
|
hasValueChange.current = false;
|
|
216
240
|
}
|
|
@@ -262,5 +286,3 @@ PegaDxilMyPhone.propTypes = {
|
|
|
262
286
|
isTableFormatter: PropTypes.bool,
|
|
263
287
|
hasSuggestions: PropTypes.bool
|
|
264
288
|
};
|
|
265
|
-
|
|
266
|
-
export default PegaDxilMyPhone;
|
|
@@ -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,9 +1,12 @@
|
|
|
1
|
+
|
|
1
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
+
// @ts-nocheck
|
|
2
4
|
import { useState } from 'react';
|
|
3
5
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
4
6
|
|
|
5
|
-
import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock
|
|
6
|
-
|
|
7
|
+
import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
|
|
8
|
+
|
|
9
|
+
import PegaDxilMyPicklist from './index';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
title: 'PegaDxilMyPicklist',
|
|
@@ -12,6 +15,7 @@ export default {
|
|
|
12
15
|
};
|
|
13
16
|
|
|
14
17
|
export const BasePegaDxilMyPicklist = () => {
|
|
18
|
+
|
|
15
19
|
const [value, setValue] = useState(configProps.value);
|
|
16
20
|
|
|
17
21
|
const props = {
|
|
@@ -53,30 +57,18 @@ export const BasePegaDxilMyPicklist = () => {
|
|
|
53
57
|
updateFieldValue: (propName, theValue) => {
|
|
54
58
|
setValue(theValue);
|
|
55
59
|
},
|
|
56
|
-
triggerFieldChange: () => {
|
|
57
|
-
/* nothing */
|
|
58
|
-
}
|
|
60
|
+
triggerFieldChange: () => {/* nothing */}
|
|
59
61
|
};
|
|
60
62
|
},
|
|
61
63
|
getValidationApi: () => {
|
|
62
64
|
return {
|
|
63
|
-
validate: () => {
|
|
64
|
-
/* nothing */
|
|
65
|
-
}
|
|
65
|
+
validate: () => {/* nothing */}
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
|
-
ignoreSuggestion: () => {
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
/* nothing */
|
|
73
|
-
},
|
|
74
|
-
setInheritedProps: () => {
|
|
75
|
-
/* nothing */
|
|
76
|
-
},
|
|
77
|
-
resolveConfigProps: () => {
|
|
78
|
-
/* nothing */
|
|
79
|
-
}
|
|
68
|
+
ignoreSuggestion: () => {/* nothing */},
|
|
69
|
+
acceptSuggestion: () => {/* nothing */},
|
|
70
|
+
setInheritedProps: () => {/* nothing */},
|
|
71
|
+
resolveConfigProps: () => {/* nothing */}
|
|
80
72
|
};
|
|
81
73
|
}
|
|
82
74
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const handleEvent = (actions: any, eventType: string, propName: string, value: string) => {
|
|
2
|
+
switch (eventType) {
|
|
3
|
+
case 'change':
|
|
4
|
+
actions.updateFieldValue(propName, value);
|
|
5
|
+
break;
|
|
6
|
+
case 'blur':
|
|
7
|
+
actions.triggerFieldChange(propName, value);
|
|
8
|
+
break;
|
|
9
|
+
case 'changeNblur':
|
|
10
|
+
actions.updateFieldValue(propName, value);
|
|
11
|
+
actions.triggerFieldChange(propName, value);
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default handleEvent;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
|
+
// @ts-nocheck
|
|
2
3
|
import { useState, useEffect, useRef } from 'react';
|
|
3
4
|
import { Select, Option, FieldValueList, Text } from '@pega/cosmos-react-core';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
|
|
7
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
8
|
+
|
|
6
9
|
// includes in bundle
|
|
7
10
|
import handleEvent from "./event-utils";
|
|
8
11
|
import { suggestionsHandler } from './suggestions-handler';
|
|
@@ -10,7 +13,35 @@ import { suggestionsHandler } from './suggestions-handler';
|
|
|
10
13
|
import StyledPegaDxilMyPicklistWrapper from './styles';
|
|
11
14
|
import {EmailDisplay, PhoneDisplay, URLDisplay } from "@pega/cosmos-react-core";
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
|
|
17
|
+
// interface for props
|
|
18
|
+
interface PegaDxilMyPicklistProps extends PConnFieldProps {
|
|
19
|
+
// If any, enter additional props that only exist on TextInput here
|
|
20
|
+
defaultValue: number;
|
|
21
|
+
isTableFormatter?: boolean;
|
|
22
|
+
hasSuggestions?: boolean;
|
|
23
|
+
variant?: any;
|
|
24
|
+
formatter: string;
|
|
25
|
+
decimalPrecision: string;
|
|
26
|
+
allowDecimals: boolean;
|
|
27
|
+
currencyISOCode: string;
|
|
28
|
+
alwaysShowISOCode: boolean;
|
|
29
|
+
isoCodeSelection: string;
|
|
30
|
+
additionalProps: any;
|
|
31
|
+
datasource:Array<any>;
|
|
32
|
+
listType: string;
|
|
33
|
+
fieldMetadata: any;
|
|
34
|
+
onRecordChange: Function;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// interface for StateProps object
|
|
38
|
+
interface StateProps {
|
|
39
|
+
value: string;
|
|
40
|
+
hasSuggestions: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
export const formatExists = (formatterVal: string) => {
|
|
14
45
|
const formatterValues = [
|
|
15
46
|
"TextInput",
|
|
16
47
|
"WorkStatus",
|
|
@@ -28,7 +59,7 @@ export const formatExists = (formatterVal) => {
|
|
|
28
59
|
};
|
|
29
60
|
|
|
30
61
|
|
|
31
|
-
export const textFormatter = (formatter,value) => {
|
|
62
|
+
export const textFormatter = (formatter: string,value: any) => {
|
|
32
63
|
let displayComponent = null;
|
|
33
64
|
switch(formatter){
|
|
34
65
|
case "TextInput" : {
|
|
@@ -53,14 +84,14 @@ export const textFormatter = (formatter,value) => {
|
|
|
53
84
|
};
|
|
54
85
|
|
|
55
86
|
|
|
56
|
-
export const setDefaultValue = (dropdownOptions
|
|
87
|
+
export const setDefaultValue = (dropdownOptions: Array<any>, pConnect: any, propName: string) => {
|
|
57
88
|
// calculate the default option and set it to dropdown
|
|
58
89
|
const option = (dropdownOptions && dropdownOptions[0]) || {};
|
|
59
90
|
const defaultValue = option.key ? option.props.value : '';
|
|
60
91
|
pConnect.setValue(propName, defaultValue, defaultValue);
|
|
61
92
|
};
|
|
62
93
|
|
|
63
|
-
const pushPlaceholderOption = (placeholder, listSourceItems
|
|
94
|
+
const pushPlaceholderOption = (placeholder: string, listSourceItems: Array<any>, items: Array<any>, pConnect: any) => {
|
|
64
95
|
// If we have a placeholder, push that option in the list of items
|
|
65
96
|
if (placeholder) {
|
|
66
97
|
items.push(
|
|
@@ -70,6 +101,7 @@ const pushPlaceholderOption = (placeholder, listSourceItems, items, pConnect) =>
|
|
|
70
101
|
);
|
|
71
102
|
} else if (!listSourceItems) {
|
|
72
103
|
// If we don't have a placeholder and our list source is empty, push a blank row option in the list of items
|
|
104
|
+
// @ts-ignore
|
|
73
105
|
items.push(<Option key='' value='' />);
|
|
74
106
|
}
|
|
75
107
|
};
|
|
@@ -79,7 +111,7 @@ const pushPlaceholderOption = (placeholder, listSourceItems, items, pConnect) =>
|
|
|
79
111
|
|
|
80
112
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
81
113
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
82
|
-
|
|
114
|
+
export default function PegaDxilMyPicklist(props: PegaDxilMyPicklistProps) {
|
|
83
115
|
const {
|
|
84
116
|
getPConnect,
|
|
85
117
|
value,
|
|
@@ -102,7 +134,8 @@ const PegaDxilMyPicklist = props => {
|
|
|
102
134
|
const { formatter } = props;
|
|
103
135
|
const pConnect = getPConnect();
|
|
104
136
|
const actions = pConnect.getActionsApi();
|
|
105
|
-
const
|
|
137
|
+
const stateProps = pConnect.getStateProps() as StateProps;
|
|
138
|
+
const propName: string = stateProps.value;
|
|
106
139
|
const className = pConnect.getCaseInfo().getClassName();
|
|
107
140
|
const refName = propName?.slice(propName.lastIndexOf('.') + 1);
|
|
108
141
|
|
|
@@ -134,11 +167,13 @@ const PegaDxilMyPicklist = props => {
|
|
|
134
167
|
const localePath = localeContext === 'datapage' ? displayName : '';
|
|
135
168
|
|
|
136
169
|
const configProps = pConnect.getConfigProps();
|
|
137
|
-
const items = [];
|
|
170
|
+
const items: Array<any> = [];
|
|
138
171
|
const isDatapage = listType === 'datapage';
|
|
172
|
+
// @ts-ignore
|
|
139
173
|
let listSourceItems = isDatapage ? configProps.listOutput : datasource;
|
|
140
174
|
|
|
141
175
|
if (isDatapage && typeof datasource === 'object' && !Array.isArray(listSourceItems)) {
|
|
176
|
+
// @ts-ignore
|
|
142
177
|
listSourceItems = datasource.source ? datasource.source : [];
|
|
143
178
|
}
|
|
144
179
|
|
|
@@ -153,11 +188,12 @@ const PegaDxilMyPicklist = props => {
|
|
|
153
188
|
}
|
|
154
189
|
}, [validatemessage, hasSuggestions, status]);
|
|
155
190
|
|
|
156
|
-
pushPlaceholderOption(placeholder, listSourceItems, items, pConnect);
|
|
191
|
+
pushPlaceholderOption(placeholder as string, listSourceItems, items, pConnect);
|
|
157
192
|
|
|
158
193
|
// Loop through all of our list source items that make up the values of the dropdown
|
|
159
194
|
|
|
160
195
|
let selectedLabel = '';
|
|
196
|
+
// @ts-ignore
|
|
161
197
|
(listSourceItems || []).forEach((item) => {
|
|
162
198
|
selectedLabel =
|
|
163
199
|
value !== undefined &&
|
|
@@ -173,11 +209,13 @@ const PegaDxilMyPicklist = props => {
|
|
|
173
209
|
? pConnect.getLocalizedValue(
|
|
174
210
|
item.text,
|
|
175
211
|
localePath,
|
|
212
|
+
// @ts-ignore
|
|
176
213
|
pConnect.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
|
|
177
214
|
)
|
|
178
215
|
: pConnect.getLocalizedValue(
|
|
179
216
|
item.value,
|
|
180
217
|
localePath,
|
|
218
|
+
// @ts-ignore
|
|
181
219
|
pConnect.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
|
|
182
220
|
)}
|
|
183
221
|
</Option>
|
|
@@ -259,7 +297,7 @@ const PegaDxilMyPicklist = props => {
|
|
|
259
297
|
);
|
|
260
298
|
}
|
|
261
299
|
|
|
262
|
-
const onResolveSuggestionHandler = (accepted) => {
|
|
300
|
+
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
263
301
|
suggestionsHandler(accepted, pConnect, setStatus);
|
|
264
302
|
};
|
|
265
303
|
|
|
@@ -273,22 +311,26 @@ const PegaDxilMyPicklist = props => {
|
|
|
273
311
|
info={validatemessage || helperText}
|
|
274
312
|
status={status}
|
|
275
313
|
data-testid={testId}
|
|
314
|
+
// @ts-ignore
|
|
276
315
|
key={getPConnect().getRawMetadata().config.value}
|
|
277
316
|
value={value}
|
|
278
317
|
disabled={disabled}
|
|
279
318
|
required={required}
|
|
280
319
|
readOnly={readOnly}
|
|
281
320
|
onChange={(event) => {
|
|
321
|
+
// @ts-ignore
|
|
282
322
|
handleEvent(actions, 'changeNblur', propName, event.target.value);
|
|
283
323
|
if (hasSuggestions) {
|
|
284
|
-
pConnect.ignoreSuggestion();
|
|
324
|
+
pConnect.ignoreSuggestion('');
|
|
285
325
|
setStatus(undefined);
|
|
286
326
|
}
|
|
287
327
|
if (onRecordChange) {
|
|
288
328
|
onRecordChange(event);
|
|
289
329
|
}
|
|
290
330
|
}}
|
|
331
|
+
// @ts-ignore
|
|
291
332
|
onBlur={(event) => {
|
|
333
|
+
// @ts-ignore
|
|
292
334
|
pConnect.getValidationApi().validate(event.target.value);
|
|
293
335
|
}}
|
|
294
336
|
onResolveSuggestion={onResolveSuggestionHandler}
|
|
@@ -349,5 +391,3 @@ PegaDxilMyPicklist.propTypes = {
|
|
|
349
391
|
isTableFormatter: PropTypes.bool,
|
|
350
392
|
hasSuggestions: PropTypes.bool
|
|
351
393
|
};
|
|
352
|
-
|
|
353
|
-
export default PegaDxilMyPicklist;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
export const configProps = {
|
|
3
|
+
value: '',
|
|
4
|
+
label: 'Picklist Sample',
|
|
5
|
+
placeholder: 'Select...',
|
|
6
|
+
listType: 'associated',
|
|
7
|
+
datasource: [
|
|
8
|
+
{
|
|
9
|
+
key: 'Option 1',
|
|
10
|
+
value: 'Option 1'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'Option 2',
|
|
14
|
+
value: 'Option 2'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'Option 3',
|
|
18
|
+
value: 'Option 3'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
helperText: 'Picklist Helper Text',
|
|
22
|
+
testId: 'picklist-12345678',
|
|
23
|
+
hasSuggestions: false
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const stateProps = {
|
|
27
|
+
value: '.PicklistSample',
|
|
28
|
+
placeholder: 'Select...',
|
|
29
|
+
datasource: '.PicklistSample',
|
|
30
|
+
hasSuggestions: false
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const rawMetadata = {
|
|
34
|
+
type: 'Dropdown',
|
|
35
|
+
config: {
|
|
36
|
+
value: '@P .PicklistSample',
|
|
37
|
+
label: '@L Picklist Sample',
|
|
38
|
+
placeholder: '@L Select...',
|
|
39
|
+
listType: 'associated',
|
|
40
|
+
datasource: '@ASSOCIATED .PicklistSample',
|
|
41
|
+
helperText: '@L Picklist Helper Text',
|
|
42
|
+
testId: 'picklist-12345678'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const fieldMetadata = {
|
|
47
|
+
classID: 'DIXL-MediaCo-Work-NewService',
|
|
48
|
+
type: 'Text',
|
|
49
|
+
displayAs: 'pxDropdown',
|
|
50
|
+
label: 'Picklist sample',
|
|
51
|
+
datasource: {
|
|
52
|
+
tableType: 'PromptList',
|
|
53
|
+
records: [
|
|
54
|
+
{
|
|
55
|
+
key: 'Option 1',
|
|
56
|
+
value: 'Option 1'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: 'Option 2',
|
|
60
|
+
value: 'Option 2'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: 'Option 3',
|
|
64
|
+
value: 'Option 3'
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
};
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/PConnProps.d.ts
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,9 +1,12 @@
|
|
|
1
|
+
|
|
1
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
+
// @ts-nocheck
|
|
2
4
|
import { useState } from 'react';
|
|
3
5
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
4
6
|
|
|
5
|
-
import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock
|
|
6
|
-
|
|
7
|
+
import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
|
|
8
|
+
|
|
9
|
+
import PegaDxilMyRadioButtons from './index';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
title: 'PegaDxilMyRadioButtons',
|
|
@@ -12,10 +15,12 @@ export default {
|
|
|
12
15
|
};
|
|
13
16
|
|
|
14
17
|
export const BasePegaDxilMyRadioButtons = () => {
|
|
18
|
+
|
|
15
19
|
const [value, setValue] = useState(configProps.value);
|
|
16
20
|
|
|
17
21
|
const props = {
|
|
18
22
|
value,
|
|
23
|
+
align: 'vertical',
|
|
19
24
|
placeholder: configProps.placeholder,
|
|
20
25
|
label: configProps.label,
|
|
21
26
|
helperText: configProps.helperText,
|
|
@@ -32,6 +37,9 @@ export const BasePegaDxilMyRadioButtons = () => {
|
|
|
32
37
|
getStateProps: () => {
|
|
33
38
|
return stateProps;
|
|
34
39
|
},
|
|
40
|
+
getPageReference: () => {
|
|
41
|
+
return 'caseInfo.content';
|
|
42
|
+
},
|
|
35
43
|
getLocalizedValue: val => {
|
|
36
44
|
return val;
|
|
37
45
|
},
|
|
@@ -53,30 +61,18 @@ export const BasePegaDxilMyRadioButtons = () => {
|
|
|
53
61
|
updateFieldValue: (propName, theValue) => {
|
|
54
62
|
setValue(theValue);
|
|
55
63
|
},
|
|
56
|
-
triggerFieldChange: () => {
|
|
57
|
-
/* nothing */
|
|
58
|
-
}
|
|
64
|
+
triggerFieldChange: () => {/* nothing */}
|
|
59
65
|
};
|
|
60
66
|
},
|
|
61
67
|
getValidationApi: () => {
|
|
62
68
|
return {
|
|
63
|
-
validate: () => {
|
|
64
|
-
/* nothing */
|
|
65
|
-
}
|
|
69
|
+
validate: () => {/* nothing */}
|
|
66
70
|
};
|
|
67
71
|
},
|
|
68
|
-
ignoreSuggestion: () => {
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
/* nothing */
|
|
73
|
-
},
|
|
74
|
-
setInheritedProps: () => {
|
|
75
|
-
/* nothing */
|
|
76
|
-
},
|
|
77
|
-
resolveConfigProps: () => {
|
|
78
|
-
/* nothing */
|
|
79
|
-
}
|
|
72
|
+
ignoreSuggestion: () => {/* nothing */},
|
|
73
|
+
acceptSuggestion: () => {/* nothing */},
|
|
74
|
+
setInheritedProps: () => {/* nothing */},
|
|
75
|
+
resolveConfigProps: () => {/* nothing */}
|
|
80
76
|
};
|
|
81
77
|
}
|
|
82
78
|
};
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const handleEvent = (actions: any, eventType: string, propName: string, value: string) => {
|
|
2
|
+
switch (eventType) {
|
|
3
|
+
case 'change':
|
|
4
|
+
actions.updateFieldValue(propName, value);
|
|
5
|
+
break;
|
|
6
|
+
case 'blur':
|
|
7
|
+
actions.triggerFieldChange(propName, value);
|
|
8
|
+
break;
|
|
9
|
+
case 'changeNblur':
|
|
10
|
+
actions.updateFieldValue(propName, value);
|
|
11
|
+
actions.triggerFieldChange(propName, value);
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default handleEvent;
|