@pega/custom-dx-components 0.23.22 → 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 +1 -1
- package/src/tasks/init/template/.eslintrc.json +1 -1
- package/src/tasks/init/template/package.json.mustache +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/Boolean.js +0 -38
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/boolean-format.ts +0 -27
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/config.json +0 -145
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/index.tsx +0 -196
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/mock.ts +0 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +0 -36
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/config.json +0 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/demo.stories.tsx +0 -81
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/index.tsx +0 -81
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/mock.ts +0 -391
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/config.json +0 -291
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -56
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/index.tsx +0 -333
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/mock.ts +0 -25
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/DateFormatter.js +0 -62
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/FormattedText.jsx +0 -42
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/config.json +0 -199
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/date.js +0 -439
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/demo.stories.tsx +0 -79
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/index.tsx +0 -302
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/mock.ts +0 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/config.json +0 -256
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date-time.js +0 -93
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date-utils.js +0 -288
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date.js +0 -331
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -79
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/index.tsx +0 -297
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/mock.ts +0 -25
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/suggestions-handler.ts +0 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/config.json +0 -278
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/index.tsx +0 -300
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/mock.ts +0 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/StatusWork.tsx +0 -26
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/config.json +0 -35
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/demo.stories.tsx +0 -137
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/index.tsx +0 -101
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/mock.ts +0 -192
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/utils.js +0 -151
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/config.json +0 -111
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/demo.stories.tsx +0 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/index.tsx +0 -251
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/mock.ts +0 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/DefaultForm.svg +0 -29
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/config.json +0 -45
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/demo.stories.tsx +0 -175
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/index.tsx +0 -53
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/mock.ts +0 -139
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/config.json +0 -344
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/demo.stories.tsx +0 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/index.tsx +0 -376
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/mock.ts +0 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/GetNextWork.tsx +0 -43
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/OneColumnPage.svg +0 -36
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/config.json +0 -32
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/demo.stories.tsx +0 -106
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/index.tsx +0 -83
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/localizations.json +0 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/mock.ts +0 -96
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/utils.js +0 -227
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -86
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +0 -36
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/Operator.tsx +0 -301
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/config.json +0 -55
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +0 -76
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -89
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/mock.ts +0 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/OneColumnPage.svg +0 -36
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/config.json +0 -59
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/demo.stories.tsx +0 -33
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/index.tsx +0 -61
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/mock.ts +0 -25
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/config.json +0 -111
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/index.tsx +0 -248
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/mock.ts +0 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/config.json +0 -93
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/index.tsx +0 -306
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/mock.ts +0 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/config.json +0 -123
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/demo.stories.tsx +0 -49
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/index.tsx +0 -288
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/mock.ts +0 -39
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/config.json +0 -114
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -81
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/index.tsx +0 -393
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/config.json +0 -113
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/demo.stories.tsx +0 -85
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/index.tsx +0 -243
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/mock.ts +0 -69
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +0 -161
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/config.json +0 -55
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/demo.stories.tsx +0 -54
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/index.tsx +0 -73
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/mock.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -30
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/config.json +0 -111
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/index.tsx +0 -263
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/mock.ts +0 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/config.json +0 -185
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/index.tsx +0 -245
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/mock.ts +0 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -287
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -26
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -28
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/config.json +0 -42
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +0 -141
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/index.tsx +0 -100
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -232
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -151
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -38
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/config.json +0 -27
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +0 -181
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/index.tsx +0 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -145
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/PConnProps.d.ts +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/config.json +0 -237
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/demo.stories.tsx +0 -49
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/index.tsx +0 -261
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/mock.ts +0 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/styles.ts +0 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/suggestions-handler.ts +0 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/text-url.jsx +0 -175
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +0 -68
- /package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{mock.js.mustache → mock.ts.mustache} +0 -0
- /package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist → Constellation/Pega_DXIL_MyAutocomplete}/mock.ts +0 -0
- /package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyAutocomplete/mock.js → Launchpad/Pega_DXIL_MyAutocomplete/mock.ts} +0 -0
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect, useRef } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
PhoneInput as CosmosPhone,
|
|
4
|
-
getPhoneNumberParts,
|
|
5
|
-
PhoneDisplay,
|
|
6
|
-
FieldValueList,
|
|
7
|
-
Text,
|
|
8
|
-
EmailDisplay, URLDisplay
|
|
9
|
-
} from '@pega/cosmos-react-core';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
import type { PConnFieldProps } from './PConnProps';
|
|
12
|
-
|
|
13
|
-
// includes in bundle
|
|
14
|
-
import handleEvent from "./event-utils";
|
|
15
|
-
import { suggestionsHandler } from './suggestions-handler';
|
|
16
|
-
|
|
17
|
-
import StyledPegaDxilMyPhoneWrapper from './styles';
|
|
18
|
-
|
|
19
|
-
// interface for props
|
|
20
|
-
interface PegaDxilMyPhoneProps extends PConnFieldProps {
|
|
21
|
-
// If any, enter additional props that only exist on TextInput here
|
|
22
|
-
displayAsStatus?: boolean;
|
|
23
|
-
isTableFormatter?: boolean;
|
|
24
|
-
hasSuggestions?: boolean;
|
|
25
|
-
variant?: any;
|
|
26
|
-
formatter: string;
|
|
27
|
-
datasource: Array<any>;
|
|
28
|
-
showCountryCode: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// interface for StateProps object
|
|
32
|
-
interface StateProps {
|
|
33
|
-
value: string;
|
|
34
|
-
hasSuggestions: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const formatExists = (formatterVal: string) => {
|
|
38
|
-
const formatterValues = [
|
|
39
|
-
"TextInput",
|
|
40
|
-
"WorkStatus",
|
|
41
|
-
"RichText",
|
|
42
|
-
"Email",
|
|
43
|
-
"Phone",
|
|
44
|
-
"URL",
|
|
45
|
-
"Operator"
|
|
46
|
-
];
|
|
47
|
-
let isformatter = false;
|
|
48
|
-
if (formatterValues.includes(formatterVal)) {
|
|
49
|
-
isformatter = true;
|
|
50
|
-
}
|
|
51
|
-
return isformatter;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export const textFormatter = (formatter: string, value: any) => {
|
|
56
|
-
let displayComponent = null;
|
|
57
|
-
switch(formatter){
|
|
58
|
-
case "TextInput" : {
|
|
59
|
-
displayComponent = value;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
case "Email" : {
|
|
63
|
-
displayComponent = (<EmailDisplay value={value} displayText={value} variant="link" />);
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
case "Phone" : {
|
|
67
|
-
displayComponent = (<PhoneDisplay value={value} variant="link" />);
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
case "URL" : {
|
|
71
|
-
displayComponent = (<URLDisplay target="_blank" value={value} displayText={value} variant="link" />);
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
// no default
|
|
75
|
-
}
|
|
76
|
-
return displayComponent;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
// Duplicated runtime code from Constellation Design System Component
|
|
82
|
-
|
|
83
|
-
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
84
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
85
|
-
export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
|
|
86
|
-
const {
|
|
87
|
-
getPConnect,
|
|
88
|
-
value,
|
|
89
|
-
showCountryCode,
|
|
90
|
-
placeholder,
|
|
91
|
-
validatemessage,
|
|
92
|
-
label,
|
|
93
|
-
hideLabel,
|
|
94
|
-
helperText,
|
|
95
|
-
datasource,
|
|
96
|
-
testId,
|
|
97
|
-
displayMode,
|
|
98
|
-
additionalProps,
|
|
99
|
-
variant,
|
|
100
|
-
isTableFormatter,
|
|
101
|
-
hasSuggestions
|
|
102
|
-
} = props;
|
|
103
|
-
const { formatter } = props;
|
|
104
|
-
const pConn = getPConnect();
|
|
105
|
-
const actions = pConn.getActionsApi();
|
|
106
|
-
const stateProps = pConn.getStateProps() as StateProps;
|
|
107
|
-
let propName: string = stateProps.value;
|
|
108
|
-
const hasValueChange = useRef(false);
|
|
109
|
-
|
|
110
|
-
let callingCodesList: Array<any> = [];
|
|
111
|
-
// @ts-ignore
|
|
112
|
-
if (datasource?.source?.length > 0) {
|
|
113
|
-
// @ts-ignore
|
|
114
|
-
datasource.source.forEach((element) => {
|
|
115
|
-
callingCodesList.push(element.value);
|
|
116
|
-
});
|
|
117
|
-
} else {
|
|
118
|
-
callingCodesList = ['+1']; // if no datasource is present we default to show only US country code
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
|
|
122
|
-
let { readOnly, required, disabled } = props;
|
|
123
|
-
[readOnly, required, disabled] = [readOnly, required, disabled].map(
|
|
124
|
-
(prop) => prop === true || (typeof prop === 'string' && prop === 'true')
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
const [inputValue, setInputValue] = useState(value);
|
|
128
|
-
useEffect(() => setInputValue(value), [value]);
|
|
129
|
-
|
|
130
|
-
const [status, setStatus] = useState(hasSuggestions ? 'pending' : undefined);
|
|
131
|
-
useEffect(() => {
|
|
132
|
-
if (validatemessage !== '') {
|
|
133
|
-
setStatus('error');
|
|
134
|
-
}
|
|
135
|
-
if (hasSuggestions) {
|
|
136
|
-
setStatus('pending');
|
|
137
|
-
} else if (!hasSuggestions && status !== 'success') {
|
|
138
|
-
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
139
|
-
}
|
|
140
|
-
}, [validatemessage, hasSuggestions, status]);
|
|
141
|
-
|
|
142
|
-
// funtion to exclude country code from phone number
|
|
143
|
-
function getPhoneNumberAlone(phoneNumber: string) {
|
|
144
|
-
const phoneNumberParts = getPhoneNumberParts(phoneNumber, callingCodesList);
|
|
145
|
-
return phoneNumberParts && phoneNumberParts[1];
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function handleChangeBlur(enteredValue: string, eventType: any) {
|
|
149
|
-
if (!getPhoneNumberAlone(enteredValue)) {
|
|
150
|
-
enteredValue = '';
|
|
151
|
-
}
|
|
152
|
-
handleEvent(actions, eventType, propName, enteredValue);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
let displayComp = null;
|
|
156
|
-
if (displayMode) {
|
|
157
|
-
displayComp = <PhoneDisplay value={value} variant='link' />;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
if (displayMode === 'LABELS_LEFT' || displayMode === 'DISPLAY_ONLY') {
|
|
161
|
-
if (isTableFormatter && formatExists(formatter)) {
|
|
162
|
-
displayComp = textFormatter(formatter, value);
|
|
163
|
-
}
|
|
164
|
-
return displayMode === 'DISPLAY_ONLY' ? (
|
|
165
|
-
<StyledPegaDxilMyPhoneWrapper>
|
|
166
|
-
displayComp
|
|
167
|
-
</StyledPegaDxilMyPhoneWrapper>
|
|
168
|
-
) : (
|
|
169
|
-
<StyledPegaDxilMyPhoneWrapper>
|
|
170
|
-
<FieldValueList
|
|
171
|
-
variant={hideLabel ? 'stacked' : variant}
|
|
172
|
-
data-testid={testId}
|
|
173
|
-
fields={[{ id: '1', name: hideLabel ? '' : label, value: displayComp }]}
|
|
174
|
-
/>
|
|
175
|
-
</StyledPegaDxilMyPhoneWrapper>
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (displayMode === 'STACKED_LARGE_VAL') {
|
|
180
|
-
return (
|
|
181
|
-
<StyledPegaDxilMyPhoneWrapper>
|
|
182
|
-
<FieldValueList
|
|
183
|
-
variant='stacked'
|
|
184
|
-
data-testid={testId}
|
|
185
|
-
fields={[
|
|
186
|
-
{
|
|
187
|
-
id: '2',
|
|
188
|
-
name: hideLabel ? '' : label,
|
|
189
|
-
value: (
|
|
190
|
-
<Text variant='h1' as='span'>
|
|
191
|
-
{displayComp}
|
|
192
|
-
</Text>
|
|
193
|
-
)
|
|
194
|
-
}
|
|
195
|
-
]}
|
|
196
|
-
/>
|
|
197
|
-
</StyledPegaDxilMyPhoneWrapper>
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
202
|
-
suggestionsHandler(accepted, pConn, setStatus);
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
return (
|
|
206
|
-
<StyledPegaDxilMyPhoneWrapper>
|
|
207
|
-
<CosmosPhone
|
|
208
|
-
{...additionalProps}
|
|
209
|
-
label={label}
|
|
210
|
-
info={validatemessage || helperText}
|
|
211
|
-
value={inputValue}
|
|
212
|
-
labelHidden={hideLabel}
|
|
213
|
-
status={status}
|
|
214
|
-
showCountryCode={showCountryCode}
|
|
215
|
-
callingCodesList={callingCodesList}
|
|
216
|
-
placeholder={placeholder}
|
|
217
|
-
disabled={disabled}
|
|
218
|
-
readOnly={readOnly}
|
|
219
|
-
required={required}
|
|
220
|
-
data-testid={testId}
|
|
221
|
-
onChange={(enteredValue: any) => {
|
|
222
|
-
if (hasSuggestions) {
|
|
223
|
-
setStatus('');
|
|
224
|
-
}
|
|
225
|
-
setInputValue(enteredValue);
|
|
226
|
-
if (value !== enteredValue) {
|
|
227
|
-
// @ts-ignore
|
|
228
|
-
handleEvent(actions, 'change', propName, enteredValue);
|
|
229
|
-
}
|
|
230
|
-
hasValueChange.current = true;
|
|
231
|
-
}}
|
|
232
|
-
onBlur={(enteredValue: any) => {
|
|
233
|
-
if (!value || hasValueChange.current) {
|
|
234
|
-
// @ts-ignore
|
|
235
|
-
handleChangeBlur(enteredValue, 'blur');
|
|
236
|
-
if (hasSuggestions) {
|
|
237
|
-
pConn.ignoreSuggestion('');
|
|
238
|
-
}
|
|
239
|
-
hasValueChange.current = false;
|
|
240
|
-
}
|
|
241
|
-
}}
|
|
242
|
-
onResolveSuggestion={onResolveSuggestionHandler}
|
|
243
|
-
/>
|
|
244
|
-
</StyledPegaDxilMyPhoneWrapper>
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
PegaDxilMyPhone.defaultProps = {
|
|
249
|
-
value: '',
|
|
250
|
-
placeholder: '',
|
|
251
|
-
validatemessage: '',
|
|
252
|
-
helperText: '',
|
|
253
|
-
datasource: undefined,
|
|
254
|
-
hideLabel: false,
|
|
255
|
-
disabled: false,
|
|
256
|
-
readOnly: false,
|
|
257
|
-
required: false,
|
|
258
|
-
showCountryCode: true,
|
|
259
|
-
testId: '',
|
|
260
|
-
displayMode: null,
|
|
261
|
-
additionalProps: {},
|
|
262
|
-
variant: 'inline',
|
|
263
|
-
formatter: '',
|
|
264
|
-
isTableFormatter: false,
|
|
265
|
-
hasSuggestions: false
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
PegaDxilMyPhone.propTypes = {
|
|
269
|
-
value: PropTypes.string,
|
|
270
|
-
placeholder: PropTypes.string,
|
|
271
|
-
datasource: PropTypes.objectOf(PropTypes.any),
|
|
272
|
-
label: PropTypes.string.isRequired,
|
|
273
|
-
hideLabel: PropTypes.bool,
|
|
274
|
-
getPConnect: PropTypes.func.isRequired,
|
|
275
|
-
validatemessage: PropTypes.string,
|
|
276
|
-
helperText: PropTypes.string,
|
|
277
|
-
showCountryCode: PropTypes.bool,
|
|
278
|
-
disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
279
|
-
readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
280
|
-
required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
281
|
-
testId: PropTypes.string,
|
|
282
|
-
displayMode: PropTypes.string,
|
|
283
|
-
additionalProps: PropTypes.objectOf(PropTypes.any),
|
|
284
|
-
variant: PropTypes.string,
|
|
285
|
-
formatter: PropTypes.string,
|
|
286
|
-
isTableFormatter: PropTypes.bool,
|
|
287
|
-
hasSuggestions: PropTypes.bool
|
|
288
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
export const configProps = {
|
|
4
|
-
value: '',
|
|
5
|
-
label: 'Phone Sample',
|
|
6
|
-
datasource: {
|
|
7
|
-
source: [
|
|
8
|
-
{
|
|
9
|
-
value: '+1'
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
value: '+91'
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
value: '+48'
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
value: '+44'
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
fields: {}
|
|
22
|
-
},
|
|
23
|
-
showCountryCode: true,
|
|
24
|
-
placeholder: 'Phone Placeholder',
|
|
25
|
-
helperText: 'Phone Helper Text',
|
|
26
|
-
testId: 'phone-12345678',
|
|
27
|
-
hasSuggestions: false
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const stateProps = {
|
|
31
|
-
value: '.PhoneSample',
|
|
32
|
-
datasource: {
|
|
33
|
-
source: 'D_pyCountryCallingCodeList.pxResults',
|
|
34
|
-
fields: {
|
|
35
|
-
value: '.pyCallingCode'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
hasSuggestions: false
|
|
39
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// utilizing theming, comment out, if want individual style
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { Configuration } from '@pega/cosmos-react-core';
|
|
5
|
-
|
|
6
|
-
export default styled(Configuration)``;
|
|
7
|
-
|
|
8
|
-
// individual style, comment out above, and uncomment here and add styles
|
|
9
|
-
// import styled, { css } from 'styled-components';
|
|
10
|
-
//
|
|
11
|
-
// export default styled.div(() => {
|
|
12
|
-
// return css`
|
|
13
|
-
// margin: 0px 0;
|
|
14
|
-
// `;
|
|
15
|
-
// });
|
|
@@ -1,46 +0,0 @@
|
|
|
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,114 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Pega_DXIL_MyPicklist",
|
|
3
|
-
"label": "My Picklist",
|
|
4
|
-
"description": "My Picklist",
|
|
5
|
-
"organization": "Pega",
|
|
6
|
-
"version": "0.0.1",
|
|
7
|
-
"library": "DXIL",
|
|
8
|
-
"allowedApplications": [],
|
|
9
|
-
"componentKey": "Pega_DXIL_MyPicklist",
|
|
10
|
-
"type": "Field",
|
|
11
|
-
"subtype": "Picklist",
|
|
12
|
-
"icon": "images/pz-dropdown-active.svg",
|
|
13
|
-
"properties": [
|
|
14
|
-
{
|
|
15
|
-
"name": "label",
|
|
16
|
-
"label": "Field label",
|
|
17
|
-
"format": "TEXT",
|
|
18
|
-
"required": true
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "readOnly",
|
|
22
|
-
"label": "Edit mode",
|
|
23
|
-
"format": "READONLY"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"label": "Column settings",
|
|
27
|
-
"format": "GROUP",
|
|
28
|
-
"visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
|
|
29
|
-
"properties": [
|
|
30
|
-
{
|
|
31
|
-
"name": "columnWidth",
|
|
32
|
-
"label": "Column width",
|
|
33
|
-
"format": "SELECT",
|
|
34
|
-
"source": [
|
|
35
|
-
{
|
|
36
|
-
"key": "auto",
|
|
37
|
-
"value": "Auto"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"key": "custom",
|
|
41
|
-
"value": "Custom"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "width",
|
|
47
|
-
"label": "Width (px)",
|
|
48
|
-
"format": "NUMBER",
|
|
49
|
-
"visibility": "$this.columnWidth == 'custom'"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"label": "Input settings",
|
|
55
|
-
"format": "GROUP",
|
|
56
|
-
"visibility": "(!readOnly = true)",
|
|
57
|
-
"properties": [
|
|
58
|
-
{
|
|
59
|
-
"name": "placeholder",
|
|
60
|
-
"label": "Placeholder",
|
|
61
|
-
"format": "TEXT"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "helperText",
|
|
65
|
-
"label": "Helper text",
|
|
66
|
-
"format": "TEXT"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"label": "Conditions",
|
|
72
|
-
"format": "GROUP",
|
|
73
|
-
"properties": [
|
|
74
|
-
{
|
|
75
|
-
"name": "required",
|
|
76
|
-
"label": "Required",
|
|
77
|
-
"format": "REQUIRED",
|
|
78
|
-
"visibility": "(!readOnly = true)"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "disabled",
|
|
82
|
-
"label": "Disabled",
|
|
83
|
-
"format": "DISABLED",
|
|
84
|
-
"visibility": "(!readOnly = true)"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"name": "visibility",
|
|
88
|
-
"label": "Visibility",
|
|
89
|
-
"format": "VISIBILITY"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"label": "Advanced",
|
|
95
|
-
"format": "GROUP",
|
|
96
|
-
"collapsible": true,
|
|
97
|
-
"properties": [
|
|
98
|
-
{
|
|
99
|
-
"name": "testId",
|
|
100
|
-
"label": "Test ID",
|
|
101
|
-
"format": "TEXT",
|
|
102
|
-
"ignorePattern": "[^-_\\p{N}\\p{L}]",
|
|
103
|
-
"includeAnnotations": false
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
"defaultConfig": {
|
|
109
|
-
"label": "@L $this.label",
|
|
110
|
-
"placeholder": "@L Select...",
|
|
111
|
-
"listType": "associated",
|
|
112
|
-
"datasource": "@ASSOCIATED .$this.name"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
import { useState } from 'react';
|
|
5
|
-
import { withKnobs } from '@storybook/addon-knobs';
|
|
6
|
-
|
|
7
|
-
import { configProps, rawMetadata, fieldMetadata, stateProps } from './mock';
|
|
8
|
-
|
|
9
|
-
import PegaDxilMyPicklist from './index';
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
title: 'PegaDxilMyPicklist',
|
|
13
|
-
decorators: [withKnobs],
|
|
14
|
-
component: PegaDxilMyPicklist
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const BasePegaDxilMyPicklist = () => {
|
|
18
|
-
|
|
19
|
-
const [value, setValue] = useState(configProps.value);
|
|
20
|
-
|
|
21
|
-
const props = {
|
|
22
|
-
value,
|
|
23
|
-
placeholder: configProps.placeholder,
|
|
24
|
-
label: configProps.label,
|
|
25
|
-
helperText: configProps.helperText,
|
|
26
|
-
datasource: configProps.datasource,
|
|
27
|
-
testId: configProps.testId,
|
|
28
|
-
hasSuggestions: configProps.hasSuggestions,
|
|
29
|
-
fieldMetadata,
|
|
30
|
-
|
|
31
|
-
getPConnect: () => {
|
|
32
|
-
return {
|
|
33
|
-
getConfigProps: () => {
|
|
34
|
-
return configProps;
|
|
35
|
-
},
|
|
36
|
-
getStateProps: () => {
|
|
37
|
-
return stateProps;
|
|
38
|
-
},
|
|
39
|
-
getLocalizedValue: val => {
|
|
40
|
-
return val;
|
|
41
|
-
},
|
|
42
|
-
getLocaleRuleNameFromKeys: (localeClass, localeContext, localeName) => {
|
|
43
|
-
return `${localeClass}!${localeContext}!${localeName}`;
|
|
44
|
-
},
|
|
45
|
-
getCaseInfo: () => {
|
|
46
|
-
return {
|
|
47
|
-
getClassName: () => {
|
|
48
|
-
return 'DIXL-MediaCo-Work-NewService';
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
getRawMetadata: () => {
|
|
53
|
-
return rawMetadata;
|
|
54
|
-
},
|
|
55
|
-
getActionsApi: () => {
|
|
56
|
-
return {
|
|
57
|
-
updateFieldValue: (propName, theValue) => {
|
|
58
|
-
setValue(theValue);
|
|
59
|
-
},
|
|
60
|
-
triggerFieldChange: () => {/* nothing */}
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
getValidationApi: () => {
|
|
64
|
-
return {
|
|
65
|
-
validate: () => {/* nothing */}
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
ignoreSuggestion: () => {/* nothing */},
|
|
69
|
-
acceptSuggestion: () => {/* nothing */},
|
|
70
|
-
setInheritedProps: () => {/* nothing */},
|
|
71
|
-
resolveConfigProps: () => {/* nothing */}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<>
|
|
78
|
-
<PegaDxilMyPicklist {...props} />
|
|
79
|
-
</>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const handleEvent = (actions: any, eventType: string, propName: string, value: string) => {
|
|
2
|
-
switch (eventType) {
|
|
3
|
-
case 'change':
|
|
4
|
-
actions.updateFieldValue(propName, value);
|
|
5
|
-
break;
|
|
6
|
-
case 'blur':
|
|
7
|
-
actions.triggerFieldChange(propName, value);
|
|
8
|
-
break;
|
|
9
|
-
case 'changeNblur':
|
|
10
|
-
actions.updateFieldValue(propName, value);
|
|
11
|
-
actions.triggerFieldChange(propName, value);
|
|
12
|
-
break;
|
|
13
|
-
default:
|
|
14
|
-
break;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default handleEvent;
|