@pega/custom-dx-components 0.242.36 → 0.242.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/tasks/build-jest-assets/index.js +26 -5
- package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +0 -3
- package/src/tasks/create-all/index.js +1 -0
- package/src/tasks/init/template/package.json.mustache +4 -4
- package/src/tasks/list/helper.js +8 -0
- package/src/tasks/list-lib/index.js +24 -10
- package/src/util.js +19 -4
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +0 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +1 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +0 -3
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +0 -3
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +1 -1
- package/tests/functional/localLibCreateLibDeleteLib.test.js +53 -1
- package/tests/functional/localLibCreateLibListDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +227 -0
- package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +4 -4
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.ts +0 -35
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.ts +0 -25
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +0 -145
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx +0 -70
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +0 -165
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.ts +0 -22
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +0 -36
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +0 -23
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +0 -84
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +0 -72
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.ts +0 -391
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +0 -291
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -68
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +0 -279
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts +0 -33
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.ts +0 -61
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.tsx +0 -20
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +0 -199
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +0 -439
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +0 -86
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +0 -260
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.ts +0 -25
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +0 -256
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.ts +0 -92
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.ts +0 -288
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.ts +0 -331
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -85
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +0 -251
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.ts +0 -27
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.ts +0 -10
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +0 -278
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -63
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +0 -244
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.ts +0 -30
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/Avatar.tsx +0 -76
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/DetailsRender.tsx +0 -52
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/HighlightRender.tsx +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -22
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/Operator.tsx +0 -215
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +0 -26
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +0 -35
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +0 -204
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +0 -99
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.ts +0 -248
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.ts +0 -24
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +0 -151
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +0 -111
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +0 -63
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +0 -212
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.ts +0 -31
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +0 -29
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/DetailsRender.tsx +0 -59
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +0 -45
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +0 -246
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +0 -68
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.ts +0 -139
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +0 -32
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +0 -102
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/index.tsx +0 -212
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/mock.ts +0 -4
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +0 -344
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +0 -63
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +0 -305
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.ts +0 -29
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx +0 -45
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +0 -36
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +0 -32
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +0 -111
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +0 -71
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +0 -6
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.ts +0 -94
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.ts +0 -229
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -76
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +0 -36
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.tsx +0 -210
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +0 -55
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +0 -80
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -89
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.ts +0 -51
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +0 -36
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +0 -59
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +0 -118
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +0 -106
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.ts +0 -24
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +0 -111
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -63
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +0 -210
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.ts +0 -28
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +0 -93
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -64
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +0 -262
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.ts +0 -29
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +0 -123
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +0 -61
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +0 -245
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.ts +0 -45
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +0 -114
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -92
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +0 -338
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.ts +0 -76
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +0 -113
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.stories.tsx +0 -95
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/index.tsx +0 -191
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/mock.ts +0 -75
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/textformat-utils.tsx +0 -162
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/component-constants.ts +0 -5
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +0 -115
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/date.ts +0 -163
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.stories.tsx +0 -100
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/embed-utils.ts +0 -314
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/format-constants.ts +0 -41
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +0 -1144
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/mock.ts +0 -74
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/picklist-utils.ts +0 -88
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-constants.ts +0 -20
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -658
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/textformat-utils.tsx +0 -181
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MySearchbox/utils.ts +0 -221
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyText/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +0 -55
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.tsx +0 -67
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +0 -145
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyText/mock.ts +0 -21
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyText/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -26
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +0 -111
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -63
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +0 -224
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.ts +0 -30
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +0 -185
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -65
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +0 -209
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.ts +0 -21
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.ts +0 -288
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +0 -76
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +0 -52
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +0 -215
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -26
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -28
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +0 -42
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +0 -221
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +0 -86
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -288
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.ts +0 -23
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.ts +0 -149
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +0 -59
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -38
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +0 -27
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +0 -192
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +0 -73
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -145
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +0 -237
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +0 -60
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.ts +0 -18
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +0 -203
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.ts +0 -30
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.ts +0 -8
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.ts +0 -9
- package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.tsx +0 -179
- package/tests/assets/library/components/createAll/Launchpad/shared/PConnProps.d.ts +0 -46
- package/tests/assets/library/components/createAll/Launchpad/shared/suggestions-handler.ts +0 -9
- package/tests/assets/original/components/create/shared/PConnProps.d.ts +0 -46
- package/tests/assets/original/components/create/shared/create-nonce.ts +0 -6
- package/tests/assets/original/components/create/shared/suggestions-handler.ts +0 -9
- package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +0 -46
- package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +0 -6
- package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +0 -9
- package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +0 -46
- package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +0 -6
- package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +0 -9
|
@@ -79,6 +79,19 @@ describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
|
|
|
79
79
|
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
+
it('npm run list (need create lib)', async () => {
|
|
83
|
+
const script = 'npm run list --prefix ../../..';
|
|
84
|
+
const { stdout, stderr } = await exec(script);
|
|
85
|
+
|
|
86
|
+
expect(stderr).not.toBeNull();
|
|
87
|
+
|
|
88
|
+
// console.log(stdout);
|
|
89
|
+
expect(stdout).not.toBeNull();
|
|
90
|
+
expect(stdout).toContain('Please create a library before proceeding.');
|
|
91
|
+
|
|
92
|
+
// done();
|
|
93
|
+
}, 10000);
|
|
94
|
+
|
|
82
95
|
|
|
83
96
|
it(`npm run createLib - ${isLibraryBased}`, async() => {
|
|
84
97
|
|
|
@@ -94,8 +107,47 @@ describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
|
|
|
94
107
|
|
|
95
108
|
}, 30000);
|
|
96
109
|
|
|
110
|
+
it('npm run list (nothing)', async () => {
|
|
111
|
+
const script = 'npm run list --prefix ../../..';
|
|
112
|
+
const { stdout, stderr } = await exec(script);
|
|
113
|
+
|
|
114
|
+
expect(stderr).not.toBeNull();
|
|
115
|
+
|
|
116
|
+
// console.log(stdout);
|
|
117
|
+
expect(stdout).not.toBeNull();
|
|
118
|
+
expect(stdout).toContain('No custom components in Local');
|
|
119
|
+
|
|
120
|
+
// done();
|
|
121
|
+
}, 10000);
|
|
122
|
+
|
|
123
|
+
it('npm run listLib (nothing current)', async () => {
|
|
124
|
+
const script = 'npm run listLib Pega_DXIL 0.0.1-dev Current --prefix ../../..';
|
|
125
|
+
const { stdout, stderr } = await exec(script);
|
|
126
|
+
|
|
127
|
+
expect(stderr).not.toBeNull();
|
|
128
|
+
|
|
129
|
+
// console.log(stdout);
|
|
130
|
+
expect(stdout).not.toBeNull();
|
|
131
|
+
expect(stdout).toContain('No custom components in Pega_DXIL/0.0.1-dev');
|
|
132
|
+
|
|
133
|
+
// done();
|
|
134
|
+
}, 10000);
|
|
135
|
+
|
|
136
|
+
it('npm run listLib (nothing store)', async () => {
|
|
137
|
+
const script = 'npm run listLib Pega_DXIL 0.0.1-dev Store --prefix ../../..';
|
|
138
|
+
const { stdout, stderr } = await exec(script);
|
|
139
|
+
|
|
140
|
+
expect(stderr).not.toBeNull();
|
|
141
|
+
|
|
142
|
+
// console.log(stdout);
|
|
143
|
+
expect(stdout).not.toBeNull();
|
|
144
|
+
expect(stdout).toContain('No custom components in Pega_DXIL/0.0.1-dev');
|
|
145
|
+
|
|
146
|
+
// done();
|
|
147
|
+
}, 10000);
|
|
148
|
+
|
|
97
149
|
|
|
98
|
-
it(`npm run deleteLib- ${isLibraryBased}`, async() => {
|
|
150
|
+
it(`npm run deleteLib - ${isLibraryBased}`, async() => {
|
|
99
151
|
|
|
100
152
|
const script = `npm run deleteLib Pega_DXIL 0.0.1-dev --prefix ../../..`;
|
|
101
153
|
const { stdout, stderr } = await exec(script);
|
|
@@ -226,7 +226,7 @@ describe(`createLib createAll list deleteVersion deleteLib: ${serverDir} - ${com
|
|
|
226
226
|
// from 0.0.1-dev to 0.0.1 for now
|
|
227
227
|
if (file === "config.json") {
|
|
228
228
|
expect(componentFileData).toContain("0.0.1-dev");
|
|
229
|
-
componentFileData = componentFileData.replace("0.0.1-dev", "0.0.1");
|
|
229
|
+
// componentFileData = componentFileData.replace("0.0.1-dev", "0.0.1");
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
expect(componentFileData).toEqual(assetFileData);
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// import { exec } from 'child_process';
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const util = require('node:util');
|
|
5
|
+
const error = require('console');
|
|
6
|
+
const exec = util.promisify(require('node:child_process').exec);
|
|
7
|
+
|
|
8
|
+
const tasksConfigDir = path.resolve('../../..', 'tasks.config.json');
|
|
9
|
+
const tasksConfigData = fs.readFileSync(tasksConfigDir, { encoding: 'utf8' });
|
|
10
|
+
let tasksConfigJSON = JSON.parse(tasksConfigData);
|
|
11
|
+
|
|
12
|
+
const packageJSONDir = path.resolve('../../..', 'package.json');
|
|
13
|
+
const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
|
|
14
|
+
let packageJSON = JSON.parse(packageJSONData);
|
|
15
|
+
|
|
16
|
+
let isLibraryBased = tasksConfigJSON['libraryMode'];
|
|
17
|
+
const savedLibraryBased = isLibraryBased;
|
|
18
|
+
const savedOrganization = packageJSON.organization;
|
|
19
|
+
|
|
20
|
+
const serverType = tasksConfigJSON['server-config'].serverType;
|
|
21
|
+
const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
|
|
22
|
+
let compType = isLibraryBased ? "library" : "original";
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , () => {
|
|
26
|
+
|
|
27
|
+
beforeAll( async() => {
|
|
28
|
+
|
|
29
|
+
// make libraryBased
|
|
30
|
+
isLibraryBased = true;
|
|
31
|
+
tasksConfigJSON['libraryMode'] = isLibraryBased;
|
|
32
|
+
compType = isLibraryBased ? "library" : "original";
|
|
33
|
+
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
34
|
+
|
|
35
|
+
const storeDir = path.join(path.resolve('../../..'), 'store');
|
|
36
|
+
if (fs.existsSync(storeDir)) {
|
|
37
|
+
fs.rmSync(storeDir, { recursive: true, force: true, maxRetries: 2 });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// make organzation Pega
|
|
41
|
+
packageJSON.organization = "Pega";
|
|
42
|
+
fs.writeFileSync(packageJSONDir, JSON.stringify(packageJSON, null, 4), { encoding: 'utf8' });
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
const componentsDir = path.join(path.resolve('../../..'), 'src/components');
|
|
46
|
+
if (fs.existsSync(componentsDir)) {
|
|
47
|
+
fs.rmSync(componentsDir, { recursive: true, force: true, maxRetries: 2 });
|
|
48
|
+
fs.mkdirSync(componentsDir, { recursive: true });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
afterAll( async() => {
|
|
57
|
+
|
|
58
|
+
//restore
|
|
59
|
+
isLibraryBased = savedLibraryBased
|
|
60
|
+
tasksConfigJSON['libraryMode'] = isLibraryBased;
|
|
61
|
+
|
|
62
|
+
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
63
|
+
|
|
64
|
+
// return organzation
|
|
65
|
+
packageJSON.organization = savedOrganization;
|
|
66
|
+
fs.writeFileSync(packageJSONDir, JSON.stringify(packageJSON, null, 4), { encoding: 'utf8' });
|
|
67
|
+
|
|
68
|
+
const componentsDir = path.join(path.resolve('../../..'), 'src/components');
|
|
69
|
+
if (fs.existsSync(componentsDir)) {
|
|
70
|
+
fs.rmSync(componentsDir, { recursive: true, force: true, maxRetries: 2 });
|
|
71
|
+
fs.mkdirSync(componentsDir, { recursive: true });
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
75
|
+
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
it(`npm run createLib - ${isLibraryBased}`, async() => {
|
|
80
|
+
|
|
81
|
+
const script = `npm run createLib DXIL 0.0.1 N --prefix ../../..`;
|
|
82
|
+
const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
|
|
83
|
+
|
|
84
|
+
const { stdout, stderr } = await exec(script);
|
|
85
|
+
expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
|
|
86
|
+
|
|
87
|
+
const doesExist = fs.existsSync(path.resolve('../../..', compConf));
|
|
88
|
+
|
|
89
|
+
expect(doesExist).toBeTruthy();
|
|
90
|
+
|
|
91
|
+
}, 30000);
|
|
92
|
+
|
|
93
|
+
it('npm run create Local text', async () => {
|
|
94
|
+
const fileName = 'MyTestText';
|
|
95
|
+
const newFileName = `Pega_DXIL_${fileName}`;
|
|
96
|
+
const script = `npm run create Field Text ${fileName} "My Test Text" 0.0.1 DXIL "" "My Test Text Description" Pega --prefix ../../..`;
|
|
97
|
+
|
|
98
|
+
const { stdout, stderr } = await exec(script);
|
|
99
|
+
// console.log(stdout);
|
|
100
|
+
expect(stdout).not.toBeNull();
|
|
101
|
+
expect(stderr).not.toBeNull();
|
|
102
|
+
|
|
103
|
+
// want message to contain component name
|
|
104
|
+
expect(stdout).toContain(newFileName);
|
|
105
|
+
|
|
106
|
+
// don't want message with already exists
|
|
107
|
+
expect(stdout).not.toContain('already exists');
|
|
108
|
+
|
|
109
|
+
// check to see file exists
|
|
110
|
+
|
|
111
|
+
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
112
|
+
const createFile = path.resolve(
|
|
113
|
+
'../../..',
|
|
114
|
+
path.join(`src/components/${newFileName}`, 'index.tsx')
|
|
115
|
+
);
|
|
116
|
+
const doesExist = fs.existsSync(createFile);
|
|
117
|
+
expect(doesExist).toBeTruthy();
|
|
118
|
+
|
|
119
|
+
// if (doesExist) {
|
|
120
|
+
// // remove it
|
|
121
|
+
// fs.rmdirSync(fileDir, { recursive: true });
|
|
122
|
+
// }
|
|
123
|
+
}, 10000);
|
|
124
|
+
|
|
125
|
+
it('npm run create Local page', async () => {
|
|
126
|
+
const fileName = 'MyTestPage';
|
|
127
|
+
const newFileName = `Pega_DXIL_${fileName}`;
|
|
128
|
+
const script = `npm run create Widget PAGE ${fileName} "My Test Page" 0.0.1 DXIL "" "My Test Page Description" Pega --prefix ../../..`;
|
|
129
|
+
|
|
130
|
+
const { stdout, stderr } = await exec(script);
|
|
131
|
+
// console.log(stdout);
|
|
132
|
+
expect(stdout).not.toBeNull();
|
|
133
|
+
expect(stderr).not.toBeNull();
|
|
134
|
+
|
|
135
|
+
// want message to contain component name
|
|
136
|
+
expect(stdout).toContain(newFileName);
|
|
137
|
+
|
|
138
|
+
// don't want message with already exists
|
|
139
|
+
expect(stdout).not.toContain('already exists');
|
|
140
|
+
|
|
141
|
+
// check to see file exists
|
|
142
|
+
|
|
143
|
+
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
144
|
+
const createFile = path.resolve(
|
|
145
|
+
'../../..',
|
|
146
|
+
path.join(`src/components/${newFileName}`, 'index.tsx')
|
|
147
|
+
);
|
|
148
|
+
const doesExist = fs.existsSync(createFile);
|
|
149
|
+
expect(doesExist).toBeTruthy();
|
|
150
|
+
|
|
151
|
+
// if (doesExist) {
|
|
152
|
+
// // remove it
|
|
153
|
+
// fs.rmdirSync(fileDir, { recursive: true });
|
|
154
|
+
// }
|
|
155
|
+
}, 10000);
|
|
156
|
+
|
|
157
|
+
it('npm run create Local details', async () => {
|
|
158
|
+
const fileName = 'MyTestDetails';
|
|
159
|
+
const newFileName = `Pega_DXIL_${fileName}`;
|
|
160
|
+
const script = `npm run create Template DETAILS ${fileName} "My Test Details" 0.0.1 DXIL "" "My Test Details Description" Pega --prefix ../../..`;
|
|
161
|
+
|
|
162
|
+
const { stdout, stderr } = await exec(script);
|
|
163
|
+
// console.log(stdout);
|
|
164
|
+
expect(stdout).not.toBeNull();
|
|
165
|
+
expect(stderr).not.toBeNull();
|
|
166
|
+
|
|
167
|
+
// want message to contain component name
|
|
168
|
+
expect(stdout).toContain(newFileName);
|
|
169
|
+
|
|
170
|
+
// don't want message with already exists
|
|
171
|
+
expect(stdout).not.toContain('already exists');
|
|
172
|
+
|
|
173
|
+
// check to see file exists
|
|
174
|
+
|
|
175
|
+
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
176
|
+
const createFile = path.resolve(
|
|
177
|
+
'../../..',
|
|
178
|
+
path.join(`src/components/${newFileName}`, 'index.tsx')
|
|
179
|
+
);
|
|
180
|
+
const doesExist = fs.existsSync(createFile);
|
|
181
|
+
expect(doesExist).toBeTruthy();
|
|
182
|
+
|
|
183
|
+
// if (doesExist) {
|
|
184
|
+
// // remove it
|
|
185
|
+
// fs.rmdirSync(fileDir, { recursive: true });
|
|
186
|
+
// }
|
|
187
|
+
}, 10000);
|
|
188
|
+
|
|
189
|
+
it(`npm run validate Pega_DXIL_MyTestText - ${isLibraryBased}`, async() => {
|
|
190
|
+
|
|
191
|
+
const script = `npm run validate Pega_DXIL_MyTestText --prefix ../../..`;
|
|
192
|
+
const { stdout, stderr } = await exec(script);
|
|
193
|
+
|
|
194
|
+
expect(stdout).toContain('Pega_DXIL_MyTestText schema is valid');
|
|
195
|
+
expect(stdout).not.toContain("ERROR");
|
|
196
|
+
|
|
197
|
+
}, 200000);
|
|
198
|
+
|
|
199
|
+
it(`npm run validateAll - ${isLibraryBased}`, async() => {
|
|
200
|
+
|
|
201
|
+
const script = `npm run validateAll --prefix ../../..`;
|
|
202
|
+
const { stdout, stderr } = await exec(script);
|
|
203
|
+
|
|
204
|
+
expect(stdout).toContain('Pega_DXIL_MyTestText schema is valid');
|
|
205
|
+
expect(stdout).toContain('Pega_DXIL_MyTestPage schema is valid');
|
|
206
|
+
expect(stdout).toContain('Pega_DXIL_MyTestDetails schema is valid');
|
|
207
|
+
|
|
208
|
+
expect(stdout).toContain('Validation compile...');
|
|
209
|
+
expect(stdout).toContain('Done.');
|
|
210
|
+
|
|
211
|
+
}, 200000);
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
it(`npm run deleteLib - ${isLibraryBased}`, async() => {
|
|
215
|
+
|
|
216
|
+
const script = `npm run deleteLib Pega_DXIL 0.0.1-dev --prefix ../../..`;
|
|
217
|
+
const { stdout, stderr } = await exec(script);
|
|
218
|
+
expect(stdout).toContain('Pega_DXIL is deleted from Local.');
|
|
219
|
+
|
|
220
|
+
}, 30000);
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
});
|
|
@@ -125,7 +125,7 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
125
125
|
// // remove it
|
|
126
126
|
// fs.rmdirSync(fileDir, { recursive: true });
|
|
127
127
|
// }
|
|
128
|
-
},
|
|
128
|
+
}, 90000);
|
|
129
129
|
|
|
130
130
|
it('npm run list', async () => {
|
|
131
131
|
const script = 'npm run list --prefix ../../..';
|
|
@@ -213,7 +213,7 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
213
213
|
// from 0.0.1-dev to 0.0.1 for now
|
|
214
214
|
if (file === "config.json") {
|
|
215
215
|
expect(componentFileData).toContain("0.0.1-dev");
|
|
216
|
-
componentFileData = componentFileData.replace("0.0.1-dev", "0.0.1");
|
|
216
|
+
// componentFileData = componentFileData.replace("0.0.1-dev", "0.0.1");
|
|
217
217
|
|
|
218
218
|
// normalize
|
|
219
219
|
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
@@ -321,7 +321,7 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
321
321
|
// from 0.0.2-dev to 0.0.1 for now
|
|
322
322
|
if (file === "config.json") {
|
|
323
323
|
expect(componentFileData).toContain("0.0.2-dev");
|
|
324
|
-
componentFileData = componentFileData.replace("0.0.2-dev", "0.0.1");
|
|
324
|
+
componentFileData = componentFileData.replace("0.0.2-dev", "0.0.1-dev");
|
|
325
325
|
|
|
326
326
|
// normalize
|
|
327
327
|
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
@@ -429,7 +429,7 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
429
429
|
// from 0.0.1-dev to 0.0.1 for now
|
|
430
430
|
if (file === "config.json") {
|
|
431
431
|
expect(componentFileData).toContain("0.0.1-dev");
|
|
432
|
-
componentFileData = componentFileData.replace("0.0.1-dev", "0.0.1");
|
|
432
|
+
// componentFileData = componentFileData.replace("0.0.1-dev", "0.0.1");
|
|
433
433
|
// normalize
|
|
434
434
|
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
435
435
|
assetFileData = JSON.stringify(JSON.parse(assetFileData));
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
function Boolean(value: any, { 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' || value === '' || value === null || typeof value === 'undefined')
|
|
22
|
-
) {
|
|
23
|
-
return '––';
|
|
24
|
-
}
|
|
25
|
-
return value;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
TrueFalse: (value: any, options: Object) =>
|
|
30
|
-
Boolean(value, {
|
|
31
|
-
...options,
|
|
32
|
-
tick: 'True',
|
|
33
|
-
cross: 'False'
|
|
34
|
-
})
|
|
35
|
-
};
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/PConnProps.d.ts
DELETED
|
@@ -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
|
-
}
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Boolean from "./Boolean";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
...Boolean
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export function format(value: any, type: string) {
|
|
10
|
-
let formattedValue;
|
|
11
|
-
|
|
12
|
-
switch (type?.toLowerCase()) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case "boolean":
|
|
16
|
-
case "checkbox": {
|
|
17
|
-
formattedValue = Boolean.TrueFalse(value, { allowEmpty: false });
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
default:
|
|
22
|
-
formattedValue = value;
|
|
23
|
-
}
|
|
24
|
-
return formattedValue;
|
|
25
|
-
}
|
|
@@ -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
|
-
}
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
|
-
|
|
6
|
-
import { configProps, stateProps } from './mock';
|
|
7
|
-
|
|
8
|
-
import PegaDxilMyBoolean from './index';
|
|
9
|
-
|
|
10
|
-
const meta: Meta<typeof PegaDxilMyBoolean> = {
|
|
11
|
-
title: 'PegaDxilMyBoolean',
|
|
12
|
-
component: PegaDxilMyBoolean,
|
|
13
|
-
excludeStories: /.*Data$/
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default meta;
|
|
17
|
-
type Story = StoryObj<typeof PegaDxilMyBoolean>;
|
|
18
|
-
|
|
19
|
-
export const BasePegaDxilMyBoolean: Story = (args: any) => {
|
|
20
|
-
|
|
21
|
-
const [value, setValue] = useState(configProps.value);
|
|
22
|
-
|
|
23
|
-
const props = {
|
|
24
|
-
value,
|
|
25
|
-
additionalProps: configProps.additionalProps,
|
|
26
|
-
getPConnect: () => {
|
|
27
|
-
return {
|
|
28
|
-
getStateProps: () => {
|
|
29
|
-
return stateProps;
|
|
30
|
-
},
|
|
31
|
-
getActionsApi: () => {
|
|
32
|
-
return {
|
|
33
|
-
updateFieldValue: (propName: string, theValue: any) => {
|
|
34
|
-
setValue(theValue);
|
|
35
|
-
},
|
|
36
|
-
triggerFieldChange: () => { /* nothing */}
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
getValidationApi: () => {
|
|
40
|
-
return {
|
|
41
|
-
validate: () => { /* nothing */}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<>
|
|
50
|
-
<PegaDxilMyBoolean {...props} {...args} />
|
|
51
|
-
</>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
BasePegaDxilMyBoolean.args = {
|
|
56
|
-
label: configProps.label,
|
|
57
|
-
helperText: configProps.helperText,
|
|
58
|
-
caption: configProps.caption,
|
|
59
|
-
testId: configProps.testId,
|
|
60
|
-
readOnly: configProps.readOnly,
|
|
61
|
-
disabled: configProps.disabled,
|
|
62
|
-
required: configProps.required,
|
|
63
|
-
status: configProps.status,
|
|
64
|
-
hideLabel: configProps.hideLabel,
|
|
65
|
-
trueLabel: configProps.trueLabel,
|
|
66
|
-
falseLabel: configProps.falseLabel,
|
|
67
|
-
displayMode: configProps.displayMode,
|
|
68
|
-
variant: configProps.variant,
|
|
69
|
-
validatemessage: configProps.validatemessage
|
|
70
|
-
};
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const handleEvent = (actions: any, eventType: string, propName: string, value: any) => {
|
|
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;
|