@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
|
@@ -4,7 +4,7 @@ import get from 'lodash.get';
|
|
|
4
4
|
|
|
5
5
|
import { getFieldNameFromEmbeddedFieldName } from './embed-utils.js';
|
|
6
6
|
|
|
7
|
-
import { buildColumnForDisplayValue, setValuesToPropertyList } from './index
|
|
7
|
+
import { buildColumnForDisplayValue, setValuesToPropertyList } from './index';
|
|
8
8
|
|
|
9
9
|
export function usePaginate() {
|
|
10
10
|
const paginatationProperties = useRef({
|
|
@@ -17,11 +17,12 @@ export function usePaginate() {
|
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
// clean up on unmount
|
|
19
19
|
return () => {
|
|
20
|
+
// @ts-ignore
|
|
20
21
|
paginatationProperties.current = null;
|
|
21
22
|
};
|
|
22
23
|
}, []);
|
|
23
24
|
|
|
24
|
-
const getInitialPaginatedRecords = (totalRecords, matchPosition) => {
|
|
25
|
+
const getInitialPaginatedRecords = (totalRecords: any, matchPosition: string) => {
|
|
25
26
|
const initialPaginatedRecords = totalRecords.slice(0, 50);
|
|
26
27
|
paginatationProperties.current.startIndex = 0;
|
|
27
28
|
paginatationProperties.current.endIndex = 50;
|
|
@@ -30,7 +31,7 @@ export function usePaginate() {
|
|
|
30
31
|
return initialPaginatedRecords;
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
const positionMatches = (text, searchText) => {
|
|
34
|
+
const positionMatches = (text: string, searchText: string) => {
|
|
34
35
|
switch (paginatationProperties.current.matchPosition) {
|
|
35
36
|
case 'start':
|
|
36
37
|
return text.toLowerCase().startsWith(searchText.toLowerCase());
|
|
@@ -41,7 +42,7 @@ export function usePaginate() {
|
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
|
|
44
|
-
const fetchData = (searchText, onScroll, columns = []) => {
|
|
45
|
+
const fetchData = (searchText: string, onScroll: boolean, columns = []) => {
|
|
45
46
|
let progressivePaginatedRecords;
|
|
46
47
|
paginatationProperties.current.startIndex += 50;
|
|
47
48
|
paginatationProperties.current.endIndex += 50;
|
|
@@ -54,25 +55,32 @@ export function usePaginate() {
|
|
|
54
55
|
);
|
|
55
56
|
} else if (onScroll) {
|
|
56
57
|
// paginate on filtered resultset
|
|
58
|
+
// @ts-ignore
|
|
57
59
|
progressivePaginatedRecords = paginatationProperties.current.filteredRecords.slice(
|
|
58
60
|
paginatationProperties.current.startIndex,
|
|
59
61
|
paginatationProperties.current.endIndex
|
|
60
62
|
);
|
|
61
63
|
} else {
|
|
62
|
-
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
const searchInSecondaryItem = columns.some(e => e.secondary && e.useForSearch);
|
|
63
66
|
// Filter the items and paginate on filtered resultset
|
|
64
67
|
const filteredRecords = paginatationProperties.current.totalRecords.filter(
|
|
65
|
-
|
|
68
|
+
filteritem =>
|
|
69
|
+
// @ts-ignore
|
|
66
70
|
(filteritem.primary && positionMatches(filteritem.primary, searchText)) ||
|
|
67
71
|
(searchInSecondaryItem &&
|
|
72
|
+
// @ts-ignore
|
|
68
73
|
filteritem.secondary &&
|
|
74
|
+
// @ts-ignore
|
|
69
75
|
filteritem.secondary.length > 0 &&
|
|
70
|
-
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
filteritem.secondary.find(item => positionMatches(item, searchText)))
|
|
71
78
|
);
|
|
72
79
|
progressivePaginatedRecords = filteredRecords.slice(
|
|
73
80
|
paginatationProperties.current.startIndex,
|
|
74
81
|
paginatationProperties.current.endIndex
|
|
75
82
|
);
|
|
83
|
+
// @ts-ignore
|
|
76
84
|
paginatationProperties.current.filteredRecords = filteredRecords;
|
|
77
85
|
}
|
|
78
86
|
return progressivePaginatedRecords;
|
|
@@ -83,11 +91,19 @@ export function usePaginate() {
|
|
|
83
91
|
paginatationProperties.current.endIndex = 0;
|
|
84
92
|
};
|
|
85
93
|
|
|
86
|
-
const hasMoreResults = (searchText) => {
|
|
94
|
+
const hasMoreResults = (searchText: string) => {
|
|
87
95
|
if (searchText === '' || searchText === undefined || searchText === null) {
|
|
88
|
-
return
|
|
96
|
+
return (
|
|
97
|
+
paginatationProperties.current.startIndex + 50 <
|
|
98
|
+
paginatationProperties.current.totalRecords.length
|
|
99
|
+
);
|
|
89
100
|
}
|
|
90
|
-
return
|
|
101
|
+
return (
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
paginatationProperties.current.startIndex + 50 <
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
paginatationProperties.current.filteredRecords.length
|
|
106
|
+
);
|
|
91
107
|
};
|
|
92
108
|
|
|
93
109
|
return {
|
|
@@ -98,11 +114,14 @@ export function usePaginate() {
|
|
|
98
114
|
};
|
|
99
115
|
}
|
|
100
116
|
|
|
101
|
-
export function useDeepMemo(memoFn, key) {
|
|
117
|
+
export function useDeepMemo(memoFn: any, key: any) {
|
|
102
118
|
const ref = useRef();
|
|
119
|
+
// @ts-ignore
|
|
103
120
|
if (!ref.current || !equal(key, ref.current.key)) {
|
|
121
|
+
// @ts-ignore
|
|
104
122
|
ref.current = { key, value: memoFn() };
|
|
105
123
|
}
|
|
124
|
+
// @ts-ignore
|
|
106
125
|
return ref.current.value;
|
|
107
126
|
}
|
|
108
127
|
|
|
@@ -114,11 +133,18 @@ export function useIsMount() {
|
|
|
114
133
|
return isMountRef.current;
|
|
115
134
|
}
|
|
116
135
|
|
|
117
|
-
const transformSearchedItem = (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
136
|
+
const transformSearchedItem = (
|
|
137
|
+
displayResponseData: any,
|
|
138
|
+
displayFieldMeta: any,
|
|
139
|
+
columnsWithSetProperty: any,
|
|
140
|
+
dataApiObj: any
|
|
141
|
+
) => {
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
return displayResponseData.map(entry => {
|
|
144
|
+
const secondaryArr: Array<any> = [];
|
|
145
|
+
const secondaryFieldValues: Array<any> = [];
|
|
146
|
+
// @ts-ignore
|
|
147
|
+
displayFieldMeta.current.secondary.forEach(col => {
|
|
122
148
|
if (!displayFieldMeta.hidden?.includes(col)) secondaryArr.push(entry[col]);
|
|
123
149
|
if (columnsWithSetProperty.includes(col)) {
|
|
124
150
|
if (dataApiObj.isQueryable) {
|
|
@@ -137,32 +163,36 @@ const transformSearchedItem = (displayResponseData, displayFieldMeta, columnsWit
|
|
|
137
163
|
});
|
|
138
164
|
};
|
|
139
165
|
|
|
166
|
+
// @ts-ignore
|
|
140
167
|
export const updatePropertiesForNewRecord = (
|
|
141
|
-
dataConfig,
|
|
142
|
-
contextName,
|
|
143
|
-
dataApiObj,
|
|
144
|
-
setDataApiObj,
|
|
145
|
-
displayFieldMeta,
|
|
146
|
-
c11nEnv,
|
|
147
|
-
columns
|
|
148
|
-
actions,
|
|
149
|
-
newCaseId
|
|
168
|
+
dataConfig: any,
|
|
169
|
+
contextName: any,
|
|
170
|
+
dataApiObj: any,
|
|
171
|
+
setDataApiObj: any,
|
|
172
|
+
displayFieldMeta: any,
|
|
173
|
+
c11nEnv: any,
|
|
174
|
+
columns: Array<any>,
|
|
175
|
+
actions: any,
|
|
176
|
+
newCaseId: string
|
|
150
177
|
) => {
|
|
151
178
|
PCore.getDataApi()
|
|
152
179
|
.init(dataConfig, contextName)
|
|
153
|
-
.then(
|
|
180
|
+
.then(dataObj => {
|
|
154
181
|
setDataApiObj(dataObj);
|
|
155
182
|
buildColumnForDisplayValue(dataObj);
|
|
156
183
|
// SET matchPosition to EQUALS to return exact matching record
|
|
157
184
|
dataObj.matchPosition = 'equals';
|
|
158
185
|
dataObj
|
|
159
186
|
.fetchData(newCaseId)
|
|
160
|
-
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
.then(displayResponse => {
|
|
161
189
|
let columnsWithSetProperty = [];
|
|
162
190
|
if (dataApiObj.columns) {
|
|
163
191
|
columnsWithSetProperty = dataApiObj.columns
|
|
164
|
-
|
|
165
|
-
.
|
|
192
|
+
// @ts-ignore
|
|
193
|
+
.filter(col => col.setProperty && col.setProperty !== 'Associated property')
|
|
194
|
+
// @ts-ignore
|
|
195
|
+
.map(col => col.value);
|
|
166
196
|
}
|
|
167
197
|
const displayResponseData = displayResponse.data || [];
|
|
168
198
|
|
|
@@ -172,7 +202,13 @@ export const updatePropertiesForNewRecord = (
|
|
|
172
202
|
columnsWithSetProperty,
|
|
173
203
|
dataApiObj
|
|
174
204
|
);
|
|
175
|
-
setValuesToPropertyList(
|
|
205
|
+
setValuesToPropertyList(
|
|
206
|
+
searchedItem[0],
|
|
207
|
+
c11nEnv.getStateProps().value,
|
|
208
|
+
searchedItem[0],
|
|
209
|
+
columns,
|
|
210
|
+
actions
|
|
211
|
+
);
|
|
176
212
|
})
|
|
177
213
|
.finally(() => {
|
|
178
214
|
// RESET matchPosition
|
|
@@ -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,4 +1,6 @@
|
|
|
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
|
|
|
@@ -13,6 +15,7 @@ export default {
|
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
export const BasePegaDxilMyBoolean = () => {
|
|
18
|
+
|
|
16
19
|
const [value, setValue] = useState(configProps.value);
|
|
17
20
|
|
|
18
21
|
const props = {
|
|
@@ -41,16 +44,12 @@ export const BasePegaDxilMyBoolean = () => {
|
|
|
41
44
|
updateFieldValue: (propName, theValue) => {
|
|
42
45
|
setValue(theValue);
|
|
43
46
|
},
|
|
44
|
-
triggerFieldChange: () => {
|
|
45
|
-
/* nothing */
|
|
46
|
-
}
|
|
47
|
+
triggerFieldChange: () => { /* nothing */}
|
|
47
48
|
};
|
|
48
49
|
},
|
|
49
50
|
getValidationApi: () => {
|
|
50
51
|
return {
|
|
51
|
-
validate: () => {
|
|
52
|
-
/* nothing */
|
|
53
|
-
}
|
|
52
|
+
validate: () => { /* nothing */}
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const handleEvent = (actions, eventType, propName, value) => {
|
|
1
|
+
const handleEvent = (actions: any, eventType: string, propName: string, value: string) => {
|
|
2
2
|
switch (eventType) {
|
|
3
|
-
case
|
|
3
|
+
case 'change':
|
|
4
4
|
actions.updateFieldValue(propName, value);
|
|
5
5
|
break;
|
|
6
|
-
case
|
|
6
|
+
case 'blur':
|
|
7
7
|
actions.triggerFieldChange(propName, value);
|
|
8
8
|
break;
|
|
9
|
-
case
|
|
9
|
+
case 'changeNblur':
|
|
10
10
|
actions.updateFieldValue(propName, value);
|
|
11
11
|
actions.triggerFieldChange(propName, value);
|
|
12
12
|
break;
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{index.jsx → index.tsx}
RENAMED
|
@@ -6,15 +6,40 @@ import {
|
|
|
6
6
|
} from "@pega/cosmos-react-core";
|
|
7
7
|
import PropTypes from "prop-types";
|
|
8
8
|
|
|
9
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
10
|
+
|
|
9
11
|
// includes in bundle
|
|
10
12
|
import handleEvent from "./event-utils";
|
|
11
13
|
import StyledPegaDxilMyBooleanWrapper from './styles';
|
|
12
14
|
|
|
15
|
+
// interface for props
|
|
16
|
+
interface PegaDxilMyBooleanProps extends PConnFieldProps {
|
|
17
|
+
// If any, enter additional props that only exist on TextInput here
|
|
18
|
+
displayAsStatus?: boolean;
|
|
19
|
+
isTableFormatter?: boolean;
|
|
20
|
+
hasSuggestions?: boolean;
|
|
21
|
+
variant?: any;
|
|
22
|
+
formatter: string;
|
|
23
|
+
caption: string;
|
|
24
|
+
trueLabel: string;
|
|
25
|
+
falseLabel: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// interface for StateProps object
|
|
29
|
+
interface StateProps {
|
|
30
|
+
value: string;
|
|
31
|
+
hasSuggestions: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface ActionsProps {
|
|
35
|
+
onClick: any;
|
|
36
|
+
}
|
|
37
|
+
|
|
13
38
|
// Duplicated runtime code from Constellation Design System Component
|
|
14
39
|
|
|
15
40
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
16
41
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
17
|
-
|
|
42
|
+
export default function PegaDxilMyBoolean(props: PegaDxilMyBooleanProps) {
|
|
18
43
|
const {
|
|
19
44
|
getPConnect,
|
|
20
45
|
value,
|
|
@@ -32,14 +57,16 @@ const PegaDxilMyBoolean = props => {
|
|
|
32
57
|
} = props;
|
|
33
58
|
const pConn = getPConnect();
|
|
34
59
|
const actions = pConn.getActionsApi();
|
|
35
|
-
const
|
|
60
|
+
const actionsProps = pConn.getActionsApi() as unknown as ActionsProps;
|
|
61
|
+
const stateProps = pConn.getStateProps() as StateProps;
|
|
62
|
+
let propName: string = stateProps.value;
|
|
36
63
|
|
|
37
64
|
let { readOnly, required, disabled } = props;
|
|
38
65
|
[readOnly, required, disabled] = [readOnly, required, disabled].map(
|
|
39
66
|
(prop) => prop === true || (typeof prop === 'string' && prop === 'true')
|
|
40
67
|
);
|
|
41
68
|
|
|
42
|
-
let status
|
|
69
|
+
let status: "error" | "success" | "warning" | "pending" | undefined;
|
|
43
70
|
if (validatemessage !== "") {
|
|
44
71
|
status = "error";
|
|
45
72
|
}
|
|
@@ -53,11 +80,12 @@ const PegaDxilMyBoolean = props => {
|
|
|
53
80
|
disabled={disabled}
|
|
54
81
|
readOnly={readOnly}
|
|
55
82
|
required={required}
|
|
56
|
-
onClick={
|
|
83
|
+
onClick={actionsProps.onClick}
|
|
57
84
|
onChange={(event) => {
|
|
58
|
-
handleEvent(actions, "changeNblur", propName, event.target.checked);
|
|
85
|
+
handleEvent(actions, "changeNblur", propName, (event.target.checked).toString());
|
|
59
86
|
}}
|
|
60
|
-
onBlur={(event) => {
|
|
87
|
+
onBlur={(event: { target: { checked: any; }; }) => {
|
|
88
|
+
// @ts-ignore
|
|
61
89
|
pConn.getValidationApi().validate(event.target.checked);
|
|
62
90
|
}}
|
|
63
91
|
data-testid={testId}
|
|
@@ -68,6 +96,7 @@ const PegaDxilMyBoolean = props => {
|
|
|
68
96
|
|
|
69
97
|
let displayComponent;
|
|
70
98
|
if (displayMode) {
|
|
99
|
+
// @ts-ignore
|
|
71
100
|
displayComponent = <PegaDxilMyBoolean value={value} trueLabel={trueLabel} falseLabel={falseLabel} />;
|
|
72
101
|
}
|
|
73
102
|
|
|
@@ -165,5 +194,3 @@ PegaDxilMyBoolean.propTypes = {
|
|
|
165
194
|
trueLabel: PropTypes.string,
|
|
166
195
|
falseLabel: PropTypes.string
|
|
167
196
|
};
|
|
168
|
-
|
|
169
|
-
export default PegaDxilMyBoolean;
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/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,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
+
// @ts-nocheck
|
|
3
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
4
5
|
|
|
5
|
-
import PegaDxilMyCaseWidget from './index
|
|
6
|
+
import PegaDxilMyCaseWidget from './index';
|
|
6
7
|
|
|
7
8
|
import historyData from './mock';
|
|
8
9
|
|
|
@@ -43,6 +44,7 @@ window.PCore.getDataApiUtils = () => {
|
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
export const BasePegaDxilMyCaseWidget = () => {
|
|
47
|
+
|
|
46
48
|
const props = {
|
|
47
49
|
label: 'Case history',
|
|
48
50
|
|
|
@@ -59,31 +61,19 @@ export const BasePegaDxilMyCaseWidget = () => {
|
|
|
59
61
|
},
|
|
60
62
|
getActionsApi: () => {
|
|
61
63
|
return {
|
|
62
|
-
updateFieldValue: () => {
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
triggerFieldChange: () => {
|
|
66
|
-
/* nothing */
|
|
67
|
-
}
|
|
64
|
+
updateFieldValue: () => {/* nothing */},
|
|
65
|
+
triggerFieldChange: () => {/* nothing */}
|
|
68
66
|
};
|
|
69
67
|
},
|
|
70
|
-
ignoreSuggestion: () => {
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
/* nothing */
|
|
75
|
-
},
|
|
76
|
-
setInheritedProps: () => {
|
|
77
|
-
/* nothing */
|
|
78
|
-
},
|
|
79
|
-
resolveConfigProps: () => {
|
|
80
|
-
/* nothing */
|
|
81
|
-
}
|
|
68
|
+
ignoreSuggestion: () => {/* nothing */},
|
|
69
|
+
acceptSuggestion: () => {/* nothing */},
|
|
70
|
+
setInheritedProps: () => {/* nothing */},
|
|
71
|
+
resolveConfigProps: () => {/* nothing */}
|
|
82
72
|
};
|
|
83
73
|
}
|
|
84
|
-
|
|
74
|
+
};
|
|
85
75
|
|
|
86
|
-
|
|
76
|
+
return (
|
|
87
77
|
<>
|
|
88
78
|
<PegaDxilMyCaseWidget {...props} />
|
|
89
79
|
</>
|
|
@@ -1,37 +1,48 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Table, Text } from '@pega/cosmos-react-core';
|
|
4
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
4
5
|
|
|
5
6
|
import StyledPegaDxilMyCaseWidgetWrapper from './styles';
|
|
6
7
|
|
|
8
|
+
// interface for props
|
|
9
|
+
interface PegaDxilMyCaseWidgetProps extends PConnFieldProps {
|
|
10
|
+
// If any, enter additional props that only exist on TextInput here
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
|
|
8
15
|
// Duplicated runtime code from Constellation Design System Component
|
|
9
16
|
|
|
10
17
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
11
18
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
12
|
-
export default function PegaDxilMyCaseWidget(props) {
|
|
19
|
+
export default function PegaDxilMyCaseWidget(props: PegaDxilMyCaseWidgetProps) {
|
|
13
20
|
const { getPConnect, label } = props;
|
|
14
21
|
const pConn = getPConnect();
|
|
15
22
|
const [history, setHistory] = useState([]);
|
|
16
23
|
const [isLoading, setIsLoading] = useState(true);
|
|
17
|
-
const
|
|
24
|
+
const caseProp: string = PCore.getConstants().CASE_INFO.CASE_INFO_ID;
|
|
25
|
+
const caseID = pConn.getValue(caseProp, '');
|
|
18
26
|
const context = pConn.getContextName();
|
|
19
27
|
|
|
20
28
|
const columns = [
|
|
21
|
-
{ renderer: 'date', label: pConn.getLocalizedValue('Date') },
|
|
22
|
-
{ renderer: 'description', label: pConn.getLocalizedValue('Description') },
|
|
23
|
-
{ renderer: 'user', label: pConn.getLocalizedValue('Performed by') }
|
|
29
|
+
{ renderer: 'date', label: pConn.getLocalizedValue('Date', '', '') },
|
|
30
|
+
{ renderer: 'description', label: pConn.getLocalizedValue('Description', '', '') },
|
|
31
|
+
{ renderer: 'user', label: pConn.getLocalizedValue('Performed by', '','') }
|
|
24
32
|
];
|
|
25
33
|
|
|
26
34
|
useEffect(() => {
|
|
35
|
+
// @ts-ignore
|
|
27
36
|
const payload = { dataViewParameters: [{ CaseInstanceKey: caseID }] };
|
|
28
37
|
PCore.getDataApiUtils()
|
|
38
|
+
// @ts-ignore
|
|
29
39
|
.getData('D_pyWorkHistory', payload, context)
|
|
40
|
+
// @ts-ignore
|
|
30
41
|
.then((response) => {
|
|
31
42
|
setIsLoading(false);
|
|
32
43
|
if (response.data.data !== null) {
|
|
33
44
|
setHistory(
|
|
34
|
-
response.data.data.map((entry, index) => {
|
|
45
|
+
response.data.data.map((entry: any, index: number) => {
|
|
35
46
|
return {
|
|
36
47
|
date: new Date(entry.pxTimeCreated).toLocaleString(),
|
|
37
48
|
description: <Text style={{ wordBreak: 'break-word' }}>{entry.pyMessageKey}</Text>,
|
|
@@ -52,11 +63,11 @@ export default function PegaDxilMyCaseWidget(props) {
|
|
|
52
63
|
return (
|
|
53
64
|
<StyledPegaDxilMyCaseWidgetWrapper>
|
|
54
65
|
<Table
|
|
55
|
-
title={pConn.getLocalizedValue(label)}
|
|
66
|
+
title={pConn.getLocalizedValue(label, '', '')}
|
|
56
67
|
columns={columns}
|
|
57
68
|
data={history}
|
|
58
69
|
loading={isLoading}
|
|
59
|
-
loadingMessage={pConn.getLocalizedValue('Loading case history')}
|
|
70
|
+
loadingMessage={pConn.getLocalizedValue('Loading case history', '', '')}
|
|
60
71
|
/>
|
|
61
72
|
</StyledPegaDxilMyCaseWidgetWrapper>
|
|
62
73
|
);
|
|
@@ -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
|
+
}
|