@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
|
@@ -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,9 @@
|
|
|
1
|
+
|
|
1
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
+
// @ts-nocheck
|
|
2
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
3
|
-
|
|
4
5
|
import { configProps, stateProps } from './mock';
|
|
5
|
-
import PegaDxilMyTimeOfDay from './index
|
|
6
|
+
import PegaDxilMyTimeOfDay from './index';
|
|
6
7
|
|
|
7
8
|
export default {
|
|
8
9
|
title: 'PegaDxilMyTimeOfDay',
|
|
@@ -16,19 +17,13 @@ export const BasePegaDxilMyTimeOfDay = () => {
|
|
|
16
17
|
return {
|
|
17
18
|
getActionsApi: () => {
|
|
18
19
|
return {
|
|
19
|
-
updateFieldValue: () => {
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
triggerFieldChange: () => {
|
|
23
|
-
/* nothing */
|
|
24
|
-
}
|
|
20
|
+
updateFieldValue: () => {/* nothing */},
|
|
21
|
+
triggerFieldChange: () => {/* nothing */}
|
|
25
22
|
};
|
|
26
23
|
},
|
|
27
24
|
getValidationApi: () => {
|
|
28
25
|
return {
|
|
29
|
-
validate: () => {
|
|
30
|
-
/* nothing */
|
|
31
|
-
}
|
|
26
|
+
validate: () => {/* nothing */}
|
|
32
27
|
};
|
|
33
28
|
},
|
|
34
29
|
getStateProps: () => {
|
|
@@ -37,12 +32,8 @@ export const BasePegaDxilMyTimeOfDay = () => {
|
|
|
37
32
|
getConfigProps: () => {
|
|
38
33
|
return configProps;
|
|
39
34
|
},
|
|
40
|
-
ignoreSuggestion: () => {
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
clearErrorMessages: () => {
|
|
44
|
-
/* nothing */
|
|
45
|
-
}
|
|
35
|
+
ignoreSuggestion: () => {/* nothing */},
|
|
36
|
+
clearErrorMessages: () => {/* nothing */}
|
|
46
37
|
};
|
|
47
38
|
},
|
|
48
39
|
value: configProps.value,
|
|
@@ -1,23 +1,51 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { TimeInput, FieldValueList, DateTimeDisplay, Text } from '@pega/cosmos-react-core';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
5
|
+
|
|
4
6
|
|
|
5
7
|
// includes in bundle
|
|
6
8
|
import {
|
|
7
9
|
parseClockFormat,
|
|
10
|
+
|
|
8
11
|
timeCorrectedToSeconds,
|
|
9
12
|
datetimeFireChangeBlurEvents
|
|
10
13
|
} from "./time-of-day";
|
|
11
14
|
import { suggestionsHandler } from './suggestions-handler';
|
|
12
15
|
|
|
13
16
|
import StyledPegaDxilMyTimeOfDayWrapper 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 PegaDxilMyTimeOfDayProps 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
|
+
}
|
|
14
42
|
|
|
15
43
|
|
|
16
44
|
// Duplicated runtime code from Constellation Design System Component
|
|
17
45
|
|
|
18
46
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
19
47
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
20
|
-
|
|
48
|
+
export default function PegaDxilMyTimeOfDay (props: PegaDxilMyTimeOfDayProps) {
|
|
21
49
|
const {
|
|
22
50
|
getPConnect,
|
|
23
51
|
value,
|
|
@@ -36,7 +64,8 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
36
64
|
let { formatter } = props;
|
|
37
65
|
const pConn = getPConnect();
|
|
38
66
|
const actions = pConn.getActionsApi();
|
|
39
|
-
const
|
|
67
|
+
const stateProps = pConn.getStateProps() as StateProps;
|
|
68
|
+
const propName: string = stateProps.value;
|
|
40
69
|
|
|
41
70
|
// BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
|
|
42
71
|
let { readOnly, required, disabled } = props;
|
|
@@ -60,28 +89,30 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
60
89
|
}
|
|
61
90
|
}, [validatemessage, hasSuggestions, status]);
|
|
62
91
|
|
|
63
|
-
const onResolveSuggestionHandler = (accepted) => {
|
|
92
|
+
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
64
93
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
65
94
|
};
|
|
66
95
|
|
|
67
|
-
function handleBlur(onBlurValue) {
|
|
96
|
+
function handleBlur(onBlurValue: any) {
|
|
68
97
|
const { valueAsISOString: time, state: errorState } = onBlurValue;
|
|
69
98
|
const trimmedTime = time ? timeCorrectedToSeconds(time, withSeconds) : time;
|
|
70
99
|
datetimeFireChangeBlurEvents(errorState, value, trimmedTime, actions, propName, pConn);
|
|
71
100
|
const isValueChanged = !(value === undefined && trimmedTime === '') && value !== trimmedTime;
|
|
72
101
|
if (hasSuggestions && isValueChanged) {
|
|
73
|
-
pConn.ignoreSuggestion();
|
|
102
|
+
pConn.ignoreSuggestion('');
|
|
74
103
|
}
|
|
75
104
|
}
|
|
76
105
|
|
|
77
|
-
function handleChange(onChangeValue) {
|
|
106
|
+
function handleChange(onChangeValue: any) {
|
|
78
107
|
const { valueAsISOString: time } = onChangeValue;
|
|
79
108
|
const trimmedTime = time ? timeCorrectedToSeconds(time, withSeconds) : time;
|
|
80
109
|
if (hasSuggestions && value !== trimmedTime) {
|
|
81
|
-
setStatus(
|
|
110
|
+
setStatus('');
|
|
82
111
|
}
|
|
83
112
|
pConn.clearErrorMessages({
|
|
84
|
-
|
|
113
|
+
category: "",
|
|
114
|
+
property: propName,
|
|
115
|
+
context: ""
|
|
85
116
|
});
|
|
86
117
|
}
|
|
87
118
|
|
|
@@ -89,7 +120,8 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
89
120
|
let variantValue = 'time';
|
|
90
121
|
let formatValue = withSeconds ? 'long' : 'short';
|
|
91
122
|
if (pConn && pConn.getConfigProps()) {
|
|
92
|
-
const
|
|
123
|
+
const configProps = pConn.getConfigProps() as ConfigProps;
|
|
124
|
+
const runtimeformatter = configProps?.formatter;
|
|
93
125
|
if (formatter !== runtimeformatter) {
|
|
94
126
|
formatter = runtimeformatter;
|
|
95
127
|
}
|
|
@@ -100,10 +132,10 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
100
132
|
}
|
|
101
133
|
const displayComp = (
|
|
102
134
|
<DateTimeDisplay
|
|
103
|
-
variant={variantValue}
|
|
104
|
-
format={formatValue}
|
|
135
|
+
variant={variantValue as DateTimeVariant}
|
|
136
|
+
format={formatValue as DateTimeFormat}
|
|
105
137
|
value={value}
|
|
106
|
-
clockFormat={clockFormat || undefined}
|
|
138
|
+
clockFormat={clockFormat as ClockFormat || undefined}
|
|
107
139
|
/>
|
|
108
140
|
);
|
|
109
141
|
switch (displayMode) {
|
|
@@ -162,6 +194,7 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
162
194
|
pickerInterval={pickerInterval}
|
|
163
195
|
clockFormat={clockFormat || undefined}
|
|
164
196
|
data-testid={testId}
|
|
197
|
+
// @ts-ignore
|
|
165
198
|
onFocus={actions.onFocus}
|
|
166
199
|
onChange={handleChange}
|
|
167
200
|
onBlur={handleBlur}
|
|
@@ -210,5 +243,3 @@ PegaDxilMyTimeOfDay.propTypes = {
|
|
|
210
243
|
formatter : PropTypes.string,
|
|
211
244
|
hasSuggestions: PropTypes.bool
|
|
212
245
|
};
|
|
213
|
-
|
|
214
|
-
export default PegaDxilMyTimeOfDay;
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/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,7 +1,7 @@
|
|
|
1
1
|
import { Status } from "@pega/cosmos-react-core";
|
|
2
2
|
|
|
3
|
-
export default function StatusWorkRenderer({ value }) {
|
|
4
|
-
let variant = "info";
|
|
3
|
+
export default function StatusWorkRenderer({ value }: any) {
|
|
4
|
+
let variant: "pending" | "success" | "info" | "warn" | "urgent" = "info";
|
|
5
5
|
|
|
6
6
|
const warnStrings = ["fail", "cancel", "reject", "revoke", "stopped", "warn"];
|
|
7
7
|
const infoStrings = ["open", "hold", "info", "new"];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
|
|
2
1
|
|
|
3
|
-
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
|
|
4
|
-
import StatusWorkRenderer from './StatusWork.jsx';
|
|
5
2
|
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
|
|
6
5
|
import PegaDxilMyTwoColumnDetails from './index';
|
|
6
|
+
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
|
|
7
|
+
import StatusWorkRenderer from './StatusWork';
|
|
7
8
|
|
|
8
9
|
export default {
|
|
9
10
|
title: 'PegaDxilMyTwoColumnDetails',
|
|
@@ -2,16 +2,26 @@ import { Fragment } from 'react';
|
|
|
2
2
|
import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
6
|
+
|
|
5
7
|
import StyledPegaDxilMyTwoColumnDetailsWrapper from './styles';
|
|
6
8
|
|
|
7
9
|
// includes in bundle
|
|
8
10
|
import { getAllFields } from './utils';
|
|
9
11
|
|
|
12
|
+
// interface for props
|
|
13
|
+
interface PegaDxilMyTwoColumnDetailsProps 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
|
+
|
|
10
20
|
// Duplicated runtime code from Constellation Design System Component
|
|
11
21
|
|
|
12
22
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
13
23
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
14
|
-
export default function PegaDxilMyTwoColumnDetails(props) {
|
|
24
|
+
export default function PegaDxilMyTwoColumnDetails(props: PegaDxilMyTwoColumnDetailsProps) {
|
|
15
25
|
|
|
16
26
|
const { getPConnect, children, label, showLabel, showHighlightedData } = props;
|
|
17
27
|
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
@@ -19,18 +29,25 @@ export default function PegaDxilMyTwoColumnDetails(props) {
|
|
|
19
29
|
const numRegions = getAllFields(getPConnect)?.length;
|
|
20
30
|
const gridRepeat = "repeat(".concat(numRegions).concat(", 1fr)");
|
|
21
31
|
const gridContainer = { "colGap": 1};
|
|
32
|
+
// @ts-ignore
|
|
22
33
|
gridContainer.cols = gridRepeat;
|
|
34
|
+
// @ts-ignore
|
|
23
35
|
gridContainer.alignItems = 'start';
|
|
24
36
|
|
|
25
37
|
const gridHighlightContainer = { "gap": 2};
|
|
38
|
+
// @ts-ignore
|
|
26
39
|
gridHighlightContainer.cols = gridRepeat;
|
|
40
|
+
// @ts-ignore
|
|
27
41
|
gridHighlightContainer.alignItems = 'start';
|
|
42
|
+
// @ts-ignore
|
|
28
43
|
gridHighlightContainer.pad = [0, 0, 2, 0];
|
|
29
44
|
|
|
30
45
|
// Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent
|
|
31
46
|
let highlightedDataArr = [];
|
|
32
47
|
if (showHighlightedData) {
|
|
48
|
+
// @ts-ignore
|
|
33
49
|
const { highlightedData = [] } = getPConnect().getRawMetadata().config;
|
|
50
|
+
// @ts-ignore
|
|
34
51
|
highlightedDataArr = highlightedData.map((field) => {
|
|
35
52
|
field.config.displayMode = 'STACKED_LARGE_VAL';
|
|
36
53
|
|
|
@@ -39,7 +56,7 @@ export default function PegaDxilMyTwoColumnDetails(props) {
|
|
|
39
56
|
field.type = 'TextInput';
|
|
40
57
|
field.config.displayAsStatus = true;
|
|
41
58
|
}
|
|
42
|
-
|
|
59
|
+
// @ts-ignore
|
|
43
60
|
return getPConnect().createComponent(field);
|
|
44
61
|
});
|
|
45
62
|
}
|
|
@@ -50,13 +67,13 @@ export default function PegaDxilMyTwoColumnDetails(props) {
|
|
|
50
67
|
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
51
68
|
<Grid container={gridHighlightContainer}
|
|
52
69
|
data-testid={`highlighted-column-count-${numRegions}`}>
|
|
53
|
-
{highlightedDataArr.map((child, i) => (
|
|
70
|
+
{highlightedDataArr.map((child: any, i: number) => (
|
|
54
71
|
<Fragment key={`hf-${i + 1}`}>{child}</Fragment>
|
|
55
72
|
))}
|
|
56
73
|
</Grid>
|
|
57
74
|
)}
|
|
58
75
|
<Grid container={gridContainer} data-testid={`column-count-${numRegions}`} >
|
|
59
|
-
{children.map((child, i) => (
|
|
76
|
+
{children.map((child: any, i: number) => (
|
|
60
77
|
<Flex container={{ direction: 'column'}} key={`r-${i + 1}`}>
|
|
61
78
|
{child}
|
|
62
79
|
</Flex>
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/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,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
3
4
|
import { useState } from 'react';
|
|
4
5
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
5
6
|
|
|
6
|
-
import PegaDxilMyTwoColumnForm from './index
|
|
7
|
+
import PegaDxilMyTwoColumnForm from './index';
|
|
7
8
|
import { DateInput, Input, FieldValueList, Text } from '@pega/cosmos-react-core';
|
|
8
9
|
import { PhoneInput as CosmosPhone } from '@pega/cosmos-react-core';
|
|
9
10
|
import { pyReviewRaw, regionChildrenResolved } from './mock';
|
|
@@ -17,9 +18,12 @@ export default {
|
|
|
17
18
|
const renderField = resolvedProps => {
|
|
18
19
|
const { displayMode, value = '', label = '', key } = resolvedProps;
|
|
19
20
|
|
|
21
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
20
22
|
const [inputValue, setInputValue] = useState(value);
|
|
23
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
21
24
|
const [phoneValue, setPhoneValue] = useState('+16397975093');
|
|
22
25
|
|
|
26
|
+
|
|
23
27
|
const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
|
|
24
28
|
|
|
25
29
|
let val =
|
|
@@ -38,6 +42,7 @@ const renderField = resolvedProps => {
|
|
|
38
42
|
''
|
|
39
43
|
);
|
|
40
44
|
|
|
45
|
+
|
|
41
46
|
if (label === 'Service Date')
|
|
42
47
|
val = (
|
|
43
48
|
<DateInput
|
|
@@ -90,6 +95,7 @@ const renderField = resolvedProps => {
|
|
|
90
95
|
/>
|
|
91
96
|
);
|
|
92
97
|
|
|
98
|
+
|
|
93
99
|
if (variant === 'inline') {
|
|
94
100
|
val = value || (
|
|
95
101
|
<span
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
5
|
+
|
|
4
6
|
import StyledPegaDxilMyTwoColumnFormWrapper from './styles';
|
|
5
7
|
|
|
8
|
+
// interface for props
|
|
9
|
+
interface PegaDxilMyTwoColumnFormProps extends PConnFieldProps {
|
|
10
|
+
// If any, enter additional props that only exist on TextInput here
|
|
11
|
+
showLabel: boolean;
|
|
12
|
+
children: any;
|
|
13
|
+
}
|
|
6
14
|
|
|
7
15
|
// Duplicated runtime code from Constellation Design System Component
|
|
8
16
|
|
|
9
17
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
10
18
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
11
|
-
export default function PegaDxilMyTwoColumnForm(props) {
|
|
19
|
+
export default function PegaDxilMyTwoColumnForm(props: PegaDxilMyTwoColumnFormProps) {
|
|
12
20
|
|
|
13
21
|
|
|
14
22
|
const { children, label, showLabel, getPConnect } = props;
|
|
@@ -17,17 +25,21 @@ export default function PegaDxilMyTwoColumnForm(props) {
|
|
|
17
25
|
const numRegions = children?.length;
|
|
18
26
|
const gridRepeat = "repeat(".concat(numRegions).concat(", 1fr)");
|
|
19
27
|
const gridContainer = {"colGap" : 1};
|
|
28
|
+
// @ts-ignore
|
|
20
29
|
gridContainer.cols = gridRepeat;
|
|
30
|
+
// @ts-ignore
|
|
21
31
|
gridContainer.alignItems = 'start';
|
|
22
32
|
|
|
23
33
|
const flexContainer = {direction: 'column'};
|
|
34
|
+
// @ts-ignore
|
|
24
35
|
flexContainer.gap = 2;
|
|
25
36
|
|
|
26
37
|
return (
|
|
27
38
|
<StyledPegaDxilMyTwoColumnFormWrapper>
|
|
28
39
|
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
|
29
40
|
<Grid container={gridContainer}>
|
|
30
|
-
{children.map((child, i) => (
|
|
41
|
+
{children.map((child: any, i: number) => (
|
|
42
|
+
// @ts-ignore
|
|
31
43
|
<Flex container={flexContainer} key={`r-${i + 1}`}>
|
|
32
44
|
{child}
|
|
33
45
|
</Flex>
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
5
|
+
|
|
6
|
+
import PegaDxilMyUrl from './index';
|
|
7
|
+
import { stateProps, configProps } from './mock';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'PegaDxilMyUrl',
|
|
11
|
+
decorators: [withKnobs],
|
|
12
|
+
component: PegaDxilMyUrl
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const BasePegaDxilMyUrl = () => {
|
|
16
|
+
|
|
17
|
+
const props = {
|
|
18
|
+
value: configProps.value,
|
|
19
|
+
placeholder: configProps.placeholder,
|
|
20
|
+
label: configProps.label,
|
|
21
|
+
helperText: configProps.helperText,
|
|
22
|
+
testId: configProps.testId,
|
|
23
|
+
hasSuggestions: configProps.hasSuggestions,
|
|
24
|
+
|
|
25
|
+
getPConnect: () => {
|
|
26
|
+
return {
|
|
27
|
+
getStateProps: () => {
|
|
28
|
+
return stateProps;
|
|
29
|
+
},
|
|
30
|
+
getActionsApi: () => {
|
|
31
|
+
return {
|
|
32
|
+
updateFieldValue: () => {/* nothing */},
|
|
33
|
+
triggerFieldChange: () => {/* nothing */}
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
ignoreSuggestion: () => {/* nothing */},
|
|
37
|
+
acceptSuggestion: () => {/* nothing */},
|
|
38
|
+
setInheritedProps: () => {/* nothing */},
|
|
39
|
+
resolveConfigProps: () => {/* nothing */}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<>
|
|
46
|
+
<PegaDxilMyUrl {...props} />
|
|
47
|
+
</>
|
|
48
|
+
);
|
|
49
|
+
};
|