@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
package/package.json
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@pega/configs": "^0.6.0",
|
|
68
|
-
"@pega/custom-dx-components": "0.23.
|
|
68
|
+
"@pega/custom-dx-components": "0.23.23",
|
|
69
69
|
"@pega/pcore-pconnect-typedefs": "2.0.0",
|
|
70
70
|
"@storybook/addon-actions": "^7.6.7",
|
|
71
71
|
"@storybook/addon-essentials": "^7.6.7",
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
function Boolean(value, { allowEmpty = true, tick = "", cross = "" } = {}) {
|
|
2
|
-
if (
|
|
3
|
-
(!allowEmpty && !value) ||
|
|
4
|
-
value === false ||
|
|
5
|
-
value?.toString()?.toLowerCase() === "false" ||
|
|
6
|
-
value === 0 ||
|
|
7
|
-
value === "0"
|
|
8
|
-
) {
|
|
9
|
-
return cross || "";
|
|
10
|
-
}
|
|
11
|
-
if (
|
|
12
|
-
value === true ||
|
|
13
|
-
value?.toString()?.toLowerCase() === "true" ||
|
|
14
|
-
value === 1 ||
|
|
15
|
-
value === "1"
|
|
16
|
-
) {
|
|
17
|
-
return tick || "";
|
|
18
|
-
}
|
|
19
|
-
if (
|
|
20
|
-
allowEmpty &&
|
|
21
|
-
(value === "null" ||
|
|
22
|
-
value === "" ||
|
|
23
|
-
value === null ||
|
|
24
|
-
typeof value === "undefined")
|
|
25
|
-
) {
|
|
26
|
-
return "––";
|
|
27
|
-
}
|
|
28
|
-
return value;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
TrueFalse: (value, options) =>
|
|
33
|
-
Boolean(value, {
|
|
34
|
-
...options,
|
|
35
|
-
tick: "True",
|
|
36
|
-
cross: "False"
|
|
37
|
-
})
|
|
38
|
-
};
|
|
@@ -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,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import Boolean from "./Boolean";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
...Boolean
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export function format(value: any, type: string) {
|
|
12
|
-
let formattedValue;
|
|
13
|
-
|
|
14
|
-
switch (type?.toLowerCase()) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
case "boolean":
|
|
18
|
-
case "checkbox": {
|
|
19
|
-
formattedValue = Boolean.TrueFalse(value, { allowEmpty: false });
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
default:
|
|
24
|
-
formattedValue = value;
|
|
25
|
-
}
|
|
26
|
-
return formattedValue;
|
|
27
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Pega_DXIL_MyBoolean",
|
|
3
|
-
"label": "My Boolean",
|
|
4
|
-
"description": "My Boolean",
|
|
5
|
-
"organization": "Pega",
|
|
6
|
-
"version": "0.0.1",
|
|
7
|
-
"library": "DXIL",
|
|
8
|
-
"allowedApplications": [],
|
|
9
|
-
"componentKey": "Pega_DXIL_MyBoolean",
|
|
10
|
-
"type": "Field",
|
|
11
|
-
"subtype": "Boolean",
|
|
12
|
-
"icon": "images/pz-checkbox-active.svg",
|
|
13
|
-
"properties": [
|
|
14
|
-
{
|
|
15
|
-
"name": "label",
|
|
16
|
-
"label": "Field label",
|
|
17
|
-
"format": "TEXT"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "hideLabel",
|
|
21
|
-
"label": "Hide Label",
|
|
22
|
-
"format": "BOOLEAN"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "readOnly",
|
|
26
|
-
"label": "Edit mode",
|
|
27
|
-
"format": "READONLY"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"label": "Column settings",
|
|
31
|
-
"format": "GROUP",
|
|
32
|
-
"visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
|
|
33
|
-
"properties": [
|
|
34
|
-
{
|
|
35
|
-
"name": "columnWidth",
|
|
36
|
-
"label": "Column width",
|
|
37
|
-
"format": "SELECT",
|
|
38
|
-
"source": [
|
|
39
|
-
{
|
|
40
|
-
"key": "auto",
|
|
41
|
-
"value": "Auto"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"key": "custom",
|
|
45
|
-
"value": "Custom"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "width",
|
|
51
|
-
"label": "Width (px)",
|
|
52
|
-
"format": "NUMBER",
|
|
53
|
-
"visibility": "$this.columnWidth == 'custom'"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"label": "Input settings",
|
|
59
|
-
"format": "GROUP",
|
|
60
|
-
"visibility": "(!readOnly = true)",
|
|
61
|
-
"properties": [
|
|
62
|
-
{
|
|
63
|
-
"name": "caption",
|
|
64
|
-
"label": "Caption",
|
|
65
|
-
"format": "TEXT",
|
|
66
|
-
"useAsAuthoringLabel": true
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "helperText",
|
|
70
|
-
"label": "Helper text",
|
|
71
|
-
"format": "TEXT"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"label": "Read-only settings",
|
|
77
|
-
"format": "GROUP",
|
|
78
|
-
"properties": [
|
|
79
|
-
{
|
|
80
|
-
"format": "SELECT",
|
|
81
|
-
"name": "displayValue",
|
|
82
|
-
"label": "Display Value",
|
|
83
|
-
"defaultValue": "Yes/No",
|
|
84
|
-
"localize": true,
|
|
85
|
-
"splitValues": {
|
|
86
|
-
"token": "/",
|
|
87
|
-
"propertyNames": ["trueLabel", "falseLabel"]
|
|
88
|
-
},
|
|
89
|
-
"source": [
|
|
90
|
-
{
|
|
91
|
-
"key": "Yes/No",
|
|
92
|
-
"value": "Yes/No"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"key": "True/False",
|
|
96
|
-
"value": "True/False"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"label": "Conditions",
|
|
104
|
-
"format": "GROUP",
|
|
105
|
-
"properties": [
|
|
106
|
-
{
|
|
107
|
-
"name": "required",
|
|
108
|
-
"label": "Required",
|
|
109
|
-
"format": "REQUIRED",
|
|
110
|
-
"visibility": "(!readOnly = true)"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "disabled",
|
|
114
|
-
"label": "Disabled",
|
|
115
|
-
"format": "DISABLED",
|
|
116
|
-
"visibility": "(!readOnly = true)"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "visibility",
|
|
120
|
-
"label": "Visibility",
|
|
121
|
-
"format": "VISIBILITY"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"label": "Advanced",
|
|
127
|
-
"format": "GROUP",
|
|
128
|
-
"collapsible": true,
|
|
129
|
-
"properties": [
|
|
130
|
-
{
|
|
131
|
-
"name": "testId",
|
|
132
|
-
"label": "Test ID",
|
|
133
|
-
"format": "TEXT",
|
|
134
|
-
"ignorePattern": "[^-_\\p{N}\\p{L}]",
|
|
135
|
-
"includeAnnotations": false
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
"defaultConfig": {
|
|
141
|
-
"caption": "@L $this.label",
|
|
142
|
-
"trueLabel": "@L Yes",
|
|
143
|
-
"falseLabel": "@L No"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
@@ -1,64 +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, stateProps } from './mock';
|
|
8
|
-
|
|
9
|
-
import PegaDxilMyBoolean from './index';
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
title: 'PegaDxilMyBoolean',
|
|
13
|
-
decorators: [withKnobs],
|
|
14
|
-
component: PegaDxilMyBoolean
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const BasePegaDxilMyBoolean = () => {
|
|
18
|
-
|
|
19
|
-
const [value, setValue] = useState(configProps.value);
|
|
20
|
-
|
|
21
|
-
const props = {
|
|
22
|
-
value,
|
|
23
|
-
label: configProps.label,
|
|
24
|
-
helperText: configProps.helperText,
|
|
25
|
-
caption: configProps.caption,
|
|
26
|
-
validatemessage: configProps.validatemessage,
|
|
27
|
-
hideLabel: configProps.hideLabel,
|
|
28
|
-
testId: configProps.testId,
|
|
29
|
-
additionalProps: configProps.additionalProps,
|
|
30
|
-
displayMode: configProps.displayMode,
|
|
31
|
-
variant: configProps.variant,
|
|
32
|
-
trueLabel: configProps.trueLabel,
|
|
33
|
-
falseLabel: configProps.falseLabel,
|
|
34
|
-
disabled: configProps.disabled,
|
|
35
|
-
readOnly: configProps.readOnly,
|
|
36
|
-
required: configProps.required,
|
|
37
|
-
getPConnect: () => {
|
|
38
|
-
return {
|
|
39
|
-
getStateProps: () => {
|
|
40
|
-
return stateProps;
|
|
41
|
-
},
|
|
42
|
-
getActionsApi: () => {
|
|
43
|
-
return {
|
|
44
|
-
updateFieldValue: (propName, theValue) => {
|
|
45
|
-
setValue(theValue);
|
|
46
|
-
},
|
|
47
|
-
triggerFieldChange: () => { /* nothing */}
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
getValidationApi: () => {
|
|
51
|
-
return {
|
|
52
|
-
validate: () => { /* nothing */}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return (
|
|
60
|
-
<>
|
|
61
|
-
<PegaDxilMyBoolean {...props} />
|
|
62
|
-
</>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
@@ -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;
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Checkbox as CosmosCheckbox,
|
|
3
|
-
CheckboxGroup,
|
|
4
|
-
FieldValueList,
|
|
5
|
-
Text
|
|
6
|
-
} from "@pega/cosmos-react-core";
|
|
7
|
-
import PropTypes from "prop-types";
|
|
8
|
-
|
|
9
|
-
import type { PConnFieldProps } from './PConnProps';
|
|
10
|
-
|
|
11
|
-
// includes in bundle
|
|
12
|
-
import handleEvent from "./event-utils";
|
|
13
|
-
import StyledPegaDxilMyBooleanWrapper from './styles';
|
|
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
|
-
|
|
38
|
-
// Duplicated runtime code from Constellation Design System Component
|
|
39
|
-
|
|
40
|
-
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
41
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
42
|
-
export default function PegaDxilMyBoolean(props: PegaDxilMyBooleanProps) {
|
|
43
|
-
const {
|
|
44
|
-
getPConnect,
|
|
45
|
-
value,
|
|
46
|
-
label,
|
|
47
|
-
helperText,
|
|
48
|
-
caption,
|
|
49
|
-
validatemessage,
|
|
50
|
-
hideLabel,
|
|
51
|
-
testId,
|
|
52
|
-
additionalProps,
|
|
53
|
-
displayMode,
|
|
54
|
-
variant,
|
|
55
|
-
trueLabel,
|
|
56
|
-
falseLabel
|
|
57
|
-
} = props;
|
|
58
|
-
const pConn = getPConnect();
|
|
59
|
-
const actions = pConn.getActionsApi();
|
|
60
|
-
const actionsProps = pConn.getActionsApi() as unknown as ActionsProps;
|
|
61
|
-
const stateProps = pConn.getStateProps() as StateProps;
|
|
62
|
-
let propName: string = stateProps.value;
|
|
63
|
-
|
|
64
|
-
let { readOnly, required, disabled } = props;
|
|
65
|
-
[readOnly, required, disabled] = [readOnly, required, disabled].map(
|
|
66
|
-
(prop) => prop === true || (typeof prop === 'string' && prop === 'true')
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
let status: "error" | "success" | "warning" | "pending" | undefined;
|
|
70
|
-
if (validatemessage !== "") {
|
|
71
|
-
status = "error";
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const aCosmosCheckbox = (
|
|
75
|
-
<CosmosCheckbox
|
|
76
|
-
{...additionalProps}
|
|
77
|
-
className="standard"
|
|
78
|
-
checked={value}
|
|
79
|
-
label={caption}
|
|
80
|
-
disabled={disabled}
|
|
81
|
-
readOnly={readOnly}
|
|
82
|
-
required={required}
|
|
83
|
-
onClick={actionsProps.onClick}
|
|
84
|
-
onChange={(event) => {
|
|
85
|
-
handleEvent(actions, "changeNblur", propName, (event.target.checked).toString());
|
|
86
|
-
}}
|
|
87
|
-
onBlur={(event: { target: { checked: any; }; }) => {
|
|
88
|
-
// @ts-ignore
|
|
89
|
-
pConn.getValidationApi().validate(event.target.checked);
|
|
90
|
-
}}
|
|
91
|
-
data-testid={testId}
|
|
92
|
-
/>
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
const parentTestId = testId === '' ? `${testId}-parent` : testId;
|
|
96
|
-
|
|
97
|
-
let displayComponent;
|
|
98
|
-
if (displayMode) {
|
|
99
|
-
// @ts-ignore
|
|
100
|
-
displayComponent = <PegaDxilMyBoolean value={value} trueLabel={trueLabel} falseLabel={falseLabel} />;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (displayMode === 'DISPLAY_ONLY') {
|
|
104
|
-
return ( <StyledPegaDxilMyBooleanWrapper> displayComponent </StyledPegaDxilMyBooleanWrapper>);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (displayMode === "LABELS_LEFT") {
|
|
108
|
-
return (
|
|
109
|
-
<StyledPegaDxilMyBooleanWrapper>
|
|
110
|
-
<FieldValueList
|
|
111
|
-
variant={hideLabel ? 'stacked' : variant}
|
|
112
|
-
data-testid={testId}
|
|
113
|
-
fields={[{ id: '1', name: hideLabel ? '' : caption, value: displayComponent }]}
|
|
114
|
-
/>
|
|
115
|
-
</StyledPegaDxilMyBooleanWrapper>
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (displayMode === "STACKED_LARGE_VAL") {
|
|
120
|
-
return (
|
|
121
|
-
<StyledPegaDxilMyBooleanWrapper>
|
|
122
|
-
<FieldValueList
|
|
123
|
-
variant='stacked'
|
|
124
|
-
data-testid={testId}
|
|
125
|
-
fields={[
|
|
126
|
-
{
|
|
127
|
-
id: '2',
|
|
128
|
-
name: hideLabel ? '' : caption,
|
|
129
|
-
value: (
|
|
130
|
-
<Text variant='h1' as='span'>
|
|
131
|
-
{displayComponent}
|
|
132
|
-
</Text>
|
|
133
|
-
)
|
|
134
|
-
}
|
|
135
|
-
]}
|
|
136
|
-
/>
|
|
137
|
-
</StyledPegaDxilMyBooleanWrapper>
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return (
|
|
143
|
-
<StyledPegaDxilMyBooleanWrapper>
|
|
144
|
-
<CheckboxGroup
|
|
145
|
-
label={label}
|
|
146
|
-
labelHidden={hideLabel}
|
|
147
|
-
data-testid={parentTestId}
|
|
148
|
-
info={validatemessage || helperText}
|
|
149
|
-
status={status}
|
|
150
|
-
>
|
|
151
|
-
{aCosmosCheckbox}
|
|
152
|
-
</CheckboxGroup>
|
|
153
|
-
</StyledPegaDxilMyBooleanWrapper>
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
PegaDxilMyBoolean.defaultProps = {
|
|
161
|
-
validatemessage: '',
|
|
162
|
-
value: false,
|
|
163
|
-
label: '',
|
|
164
|
-
hideLabel: false,
|
|
165
|
-
helperText: '',
|
|
166
|
-
disabled: false,
|
|
167
|
-
readOnly: false,
|
|
168
|
-
required: false,
|
|
169
|
-
testId: '',
|
|
170
|
-
additionalProps: {},
|
|
171
|
-
displayMode: null,
|
|
172
|
-
variant: 'inline',
|
|
173
|
-
displayValue: 'Yes/No',
|
|
174
|
-
trueLabel: '',
|
|
175
|
-
falseLabel: ''
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
PegaDxilMyBoolean.propTypes = {
|
|
179
|
-
getPConnect: PropTypes.func.isRequired,
|
|
180
|
-
validatemessage: PropTypes.string,
|
|
181
|
-
label: PropTypes.string,
|
|
182
|
-
hideLabel: PropTypes.bool,
|
|
183
|
-
helperText: PropTypes.string,
|
|
184
|
-
value: PropTypes.bool,
|
|
185
|
-
caption: PropTypes.string.isRequired,
|
|
186
|
-
disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
187
|
-
readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
188
|
-
required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
189
|
-
testId: PropTypes.string,
|
|
190
|
-
additionalProps: PropTypes.objectOf(PropTypes.any),
|
|
191
|
-
displayMode: PropTypes.string,
|
|
192
|
-
variant: PropTypes.string,
|
|
193
|
-
displayValue: PropTypes.string,
|
|
194
|
-
trueLabel: PropTypes.string,
|
|
195
|
-
falseLabel: PropTypes.string
|
|
196
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
export const configProps = {
|
|
3
|
-
value: true,
|
|
4
|
-
label: 'Boolean label',
|
|
5
|
-
helperText: 'Test helper text',
|
|
6
|
-
caption: 'Boolean caption',
|
|
7
|
-
validatemessage: '',
|
|
8
|
-
hideLabel: false,
|
|
9
|
-
testId: '12345678',
|
|
10
|
-
additionalProps: {},
|
|
11
|
-
displayMode: '',
|
|
12
|
-
variant: '',
|
|
13
|
-
trueLabel: 'True',
|
|
14
|
-
falseLabel: 'False',
|
|
15
|
-
disabled: false,
|
|
16
|
-
readOnly: false,
|
|
17
|
-
required: true
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const stateProps = {
|
|
21
|
-
value: '.Test'
|
|
22
|
-
};
|
|
@@ -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,36 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="100px" height="70px" viewBox="0 0 100 70" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>1 col </title>
|
|
4
|
-
<defs>
|
|
5
|
-
<rect id="path-1" x="0" y="0" width="100" height="70"></rect>
|
|
6
|
-
</defs>
|
|
7
|
-
<g id="Concepts" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
<g id="Templates" transform="translate(-98.000000, -108.000000)">
|
|
9
|
-
<g id="Change-template" transform="translate(42.000000, 36.000000)">
|
|
10
|
-
<g id="1-col-" transform="translate(56.000000, 72.000000)">
|
|
11
|
-
<mask id="mask-2" fill="white">
|
|
12
|
-
<use xlink:href="#path-1"></use>
|
|
13
|
-
</mask>
|
|
14
|
-
<rect stroke="#A5A8BC" stroke-width="0.5" x="0.25" y="0.25" width="99.5" height="69.5"></rect>
|
|
15
|
-
<g id="white" mask="url(#mask-2)" fill="#FFFFFF">
|
|
16
|
-
<g transform="translate(3.000000, 3.000000)" id="Rectangle">
|
|
17
|
-
<rect x="0" y="0" width="94" height="66.5"></rect>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
<g id="gray" mask="url(#mask-2)" fill="#8084A7">
|
|
21
|
-
<g transform="translate(6.000000, 6.000000)" id="Rectangle">
|
|
22
|
-
<rect x="0" y="-2.84217094e-14" width="88" height="77.8"></rect>
|
|
23
|
-
</g>
|
|
24
|
-
</g>
|
|
25
|
-
<g id="labels" mask="url(#mask-2)" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500">
|
|
26
|
-
<g transform="translate(44.000000, 17.000000)" id="A">
|
|
27
|
-
<text>
|
|
28
|
-
<tspan x="0.75" y="12" fill="#FFFFFF">A</tspan>
|
|
29
|
-
</text>
|
|
30
|
-
</g>
|
|
31
|
-
</g>
|
|
32
|
-
</g>
|
|
33
|
-
</g>
|
|
34
|
-
</g>
|
|
35
|
-
</g>
|
|
36
|
-
</svg>
|
|
@@ -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
|
-
}
|