@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
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.tsx
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { useState, useEffect, Fragment } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
Link,
|
|
5
|
-
Button,
|
|
6
|
-
Popover,
|
|
7
|
-
useOuterEvent,
|
|
8
|
-
useElement,
|
|
9
|
-
Progress,
|
|
10
|
-
FormField,
|
|
11
|
-
useTheme
|
|
12
|
-
} from '@pega/cosmos-react-core';
|
|
13
|
-
import { Glimpse } from '@pega/cosmos-react-work';
|
|
14
|
-
import { EmailDisplay } from '@pega/cosmos-react-core';
|
|
15
|
-
|
|
16
|
-
import type { PConnFieldProps } from './PConnProps';
|
|
17
|
-
|
|
18
|
-
import Avatar from './Avatar';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// interface for props
|
|
22
|
-
interface PegaDxilMyPageCaseWidgetOperatorProps extends PConnFieldProps {
|
|
23
|
-
// If any, enter additional props that only exist on TextInput here
|
|
24
|
-
name: string;
|
|
25
|
-
id: string;
|
|
26
|
-
label: string;
|
|
27
|
-
metaObj: any;
|
|
28
|
-
externalUser: any;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
let pTarget = null;
|
|
32
|
-
|
|
33
|
-
export default function Operator(props: PegaDxilMyPageCaseWidgetOperatorProps) {
|
|
34
|
-
const { id, name, label, testId, helperText, externalUser, metaObj } = props;
|
|
35
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
36
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
37
|
-
const [popoverEl, setPopoverEl] = useElement(null);
|
|
38
|
-
const [popoverContent, setpopoverContent] = useState(null);
|
|
39
|
-
const theme: any = useTheme();
|
|
40
|
-
|
|
41
|
-
/* If the id has changed, we need to reset the popover */
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
pTarget = null;
|
|
44
|
-
}, [id]);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const OperatorPreview = () => {
|
|
49
|
-
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
50
|
-
const localeCategory = 'Operator';
|
|
51
|
-
setpopoverContent(
|
|
52
|
-
<Progress variant='ring' message={localizedVal('Loading operator...', localeCategory)} placement='local' />
|
|
53
|
-
);
|
|
54
|
-
if (externalUser && externalUser.classID !== 'Data-Party-Operator') {
|
|
55
|
-
const fields = [
|
|
56
|
-
{
|
|
57
|
-
id: 'pyFirstName',
|
|
58
|
-
name: localizedVal('Name', localeCategory),
|
|
59
|
-
value: externalUser.name
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: 'pyEmail1',
|
|
63
|
-
name: localizedVal('Email', localeCategory),
|
|
64
|
-
value:
|
|
65
|
-
externalUser.email !== '' ? <Link href={`mailto:${externalUser.email}`}>{externalUser.email}</Link> : ''
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'pyPhoneNumber',
|
|
69
|
-
name: localizedVal('Phone', localeCategory),
|
|
70
|
-
value: externalUser.phone !== '' ? <Link href={`tel:${externalUser.phone}`}>{externalUser.phone}</Link> : ''
|
|
71
|
-
}
|
|
72
|
-
];
|
|
73
|
-
setIsLoading(false);
|
|
74
|
-
setpopoverContent(
|
|
75
|
-
<Glimpse
|
|
76
|
-
visual={
|
|
77
|
-
<Avatar
|
|
78
|
-
metaObj={{
|
|
79
|
-
name: externalUser.name
|
|
80
|
-
}}
|
|
81
|
-
/>
|
|
82
|
-
}
|
|
83
|
-
primary={externalUser.name}
|
|
84
|
-
secondary={[externalUser.position]}
|
|
85
|
-
fields={fields}
|
|
86
|
-
target={pTarget}
|
|
87
|
-
/>
|
|
88
|
-
);
|
|
89
|
-
} else {
|
|
90
|
-
return PCore.getUserApi()
|
|
91
|
-
.getOperatorDetails(id, true)
|
|
92
|
-
.then(res => {
|
|
93
|
-
if (res.data?.data && res.data.data[0].BusinessID && res.data.data[0].Name) {
|
|
94
|
-
const fields = [];
|
|
95
|
-
if (res.data.data[0].Name) {
|
|
96
|
-
fields.push({
|
|
97
|
-
id: 'Name',
|
|
98
|
-
name: localizedVal('Name', localeCategory),
|
|
99
|
-
value: res.data.data[0].Name
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
if (res.data.data[0].BusinessID) {
|
|
103
|
-
fields.push({
|
|
104
|
-
id: 'Email',
|
|
105
|
-
name: localizedVal('Email address', localeCategory),
|
|
106
|
-
value: <EmailDisplay value={res.data.data[0].BusinessID} />
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
const opAvatar = (
|
|
110
|
-
<Avatar
|
|
111
|
-
metaObj={{
|
|
112
|
-
image: '',
|
|
113
|
-
name: res.data.data[0].Name
|
|
114
|
-
}}
|
|
115
|
-
/>
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
setIsLoading(false);
|
|
119
|
-
setpopoverContent(
|
|
120
|
-
<Glimpse
|
|
121
|
-
heading={{
|
|
122
|
-
primary: res.data.data[0].Name,
|
|
123
|
-
secondary: res.data.data[0].BusinessID,
|
|
124
|
-
visual: opAvatar
|
|
125
|
-
}}
|
|
126
|
-
fields={fields}
|
|
127
|
-
target={pTarget}
|
|
128
|
-
onDismiss={() => {pTarget = null;}}
|
|
129
|
-
/>
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
const clickAction = (e: any) => {
|
|
138
|
-
|
|
139
|
-
setIsOpen(!isOpen);
|
|
140
|
-
if (pTarget === null) {
|
|
141
|
-
pTarget = e.currentTarget;
|
|
142
|
-
OperatorPreview();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
const hidePopover = () => {
|
|
147
|
-
if (isOpen) {
|
|
148
|
-
setIsOpen(false);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
useOuterEvent('mousedown', [popoverEl], hidePopover); // Call the method on clicking outside these elements
|
|
153
|
-
|
|
154
|
-
const hideOnEscape = (e: any) => {
|
|
155
|
-
if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
const comp = (
|
|
159
|
-
<Fragment>
|
|
160
|
-
{metaObj ? (
|
|
161
|
-
<Button
|
|
162
|
-
variant='text'
|
|
163
|
-
aria-haspopup
|
|
164
|
-
aria-expanded={isOpen}
|
|
165
|
-
onClick={clickAction}
|
|
166
|
-
onKeyDown={hideOnEscape}
|
|
167
|
-
data-test-id={testId}
|
|
168
|
-
style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
|
|
169
|
-
>
|
|
170
|
-
<Avatar {...props} />
|
|
171
|
-
</Button>
|
|
172
|
-
) : (
|
|
173
|
-
<Button
|
|
174
|
-
variant='link'
|
|
175
|
-
aria-haspopup
|
|
176
|
-
aria-expanded={isOpen}
|
|
177
|
-
onClick={clickAction}
|
|
178
|
-
onKeyDown={hideOnEscape}
|
|
179
|
-
data-test-id={testId}
|
|
180
|
-
style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
|
|
181
|
-
>
|
|
182
|
-
{name}
|
|
183
|
-
</Button>
|
|
184
|
-
)}
|
|
185
|
-
|
|
186
|
-
{isOpen && (
|
|
187
|
-
<Popover
|
|
188
|
-
ref={setPopoverEl}
|
|
189
|
-
groupId='operator'
|
|
190
|
-
target={pTarget}
|
|
191
|
-
placement='bottom-start'
|
|
192
|
-
style={isLoading ? { position: 'relative', width: '10rem', minHeight: '4rem' } : undefined}
|
|
193
|
-
strategy='fixed'
|
|
194
|
-
>
|
|
195
|
-
{popoverContent}
|
|
196
|
-
</Popover>
|
|
197
|
-
)}
|
|
198
|
-
</Fragment>
|
|
199
|
-
);
|
|
200
|
-
|
|
201
|
-
if (label !== null) {
|
|
202
|
-
return (
|
|
203
|
-
<FormField label={label} info={helperText}>
|
|
204
|
-
{comp}
|
|
205
|
-
</FormField>
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
return comp;
|
|
210
|
-
};
|
|
@@ -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_MyPageCaseWidget/config.json
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Pega_DXIL_MyPageCaseWidget",
|
|
3
|
-
"label": "My PageCase Widget",
|
|
4
|
-
"description": "My PageCase Widget",
|
|
5
|
-
"organization": "Pega",
|
|
6
|
-
"version": "0.0.1",
|
|
7
|
-
"library": "DXIL",
|
|
8
|
-
"allowedApplications": [],
|
|
9
|
-
"componentKey": "Pega_DXIL_MyPageCaseWidget",
|
|
10
|
-
"type": "Widget",
|
|
11
|
-
"subtype": ["PAGE","CASE"],
|
|
12
|
-
"icon": "OneColumnPage.svg",
|
|
13
|
-
"properties": [
|
|
14
|
-
{
|
|
15
|
-
"name": "title",
|
|
16
|
-
"label": "Label value",
|
|
17
|
-
"format": "TEXT"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"format": "SELECT",
|
|
21
|
-
"label": "Usage",
|
|
22
|
-
"name": "label",
|
|
23
|
-
"defaultValue": "Create operator",
|
|
24
|
-
"localize": true,
|
|
25
|
-
"source": [
|
|
26
|
-
{
|
|
27
|
-
"key": "Create operator",
|
|
28
|
-
"value": "Create operator"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"key": "Update operator",
|
|
32
|
-
"value": "Update operator"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
"label": "Conditions",
|
|
39
|
-
"format": "GROUP",
|
|
40
|
-
"properties": [
|
|
41
|
-
{
|
|
42
|
-
"name": "visibility",
|
|
43
|
-
"label": "Visibility",
|
|
44
|
-
"format": "VISIBILITY"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"defaultConfig": {
|
|
50
|
-
"label": "Create operator",
|
|
51
|
-
"title": "Create operator",
|
|
52
|
-
"createLabel": "@L Created",
|
|
53
|
-
"updateLabel": "@L Updated"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-no-useless-fragment */
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
import PegaDxilMyPageCaseWidget from './index';
|
|
5
|
-
|
|
6
|
-
import { configProps, operatorDetails } from './mock';
|
|
7
|
-
|
|
8
|
-
const meta: Meta<typeof PegaDxilMyPageCaseWidget> = {
|
|
9
|
-
title: 'PegaDxilMyPageCaseWidget',
|
|
10
|
-
component: PegaDxilMyPageCaseWidget,
|
|
11
|
-
excludeStories: /.*Data$/
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default meta;
|
|
15
|
-
type Story = StoryObj<typeof PegaDxilMyPageCaseWidget>;
|
|
16
|
-
|
|
17
|
-
if (!window.PCore) {
|
|
18
|
-
window.PCore = {};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
window.PCore.getLocaleUtils = () => {
|
|
22
|
-
return {
|
|
23
|
-
getLocaleValue: (value: any) => {
|
|
24
|
-
return value;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
window.PCore.getUserApi = () => {
|
|
30
|
-
return {
|
|
31
|
-
getOperatorDetails: () => {
|
|
32
|
-
return new Promise(resolve => {
|
|
33
|
-
resolve(operatorDetails);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const BasePegaDxilMyPageCaseWidget: Story = (args: any) => {
|
|
40
|
-
|
|
41
|
-
const props = {
|
|
42
|
-
label: configProps.label,
|
|
43
|
-
createLabel: configProps.createLabel,
|
|
44
|
-
updateLabel: configProps.updateLabel,
|
|
45
|
-
createOperator: configProps.createOperator,
|
|
46
|
-
updateOperator: configProps.updateOperator,
|
|
47
|
-
createDateTime: configProps.createDateTime,
|
|
48
|
-
updateDateTime: configProps.updateDateTime,
|
|
49
|
-
hideLabel: configProps.hideLabel,
|
|
50
|
-
|
|
51
|
-
getPConnect: () => {
|
|
52
|
-
return {
|
|
53
|
-
getActionsApi: () => {
|
|
54
|
-
return {
|
|
55
|
-
updateFieldValue: () => {/* nothing */},
|
|
56
|
-
triggerFieldChange: () => {/* nothing */}
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
getCaseSummary: () => {
|
|
60
|
-
return {
|
|
61
|
-
user: configProps.updateOperator.userId,
|
|
62
|
-
dateTimeValue: configProps.updateDateTime
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
ignoreSuggestion: () => {/* nothing */},
|
|
66
|
-
acceptSuggestion: () => {/* nothing */},
|
|
67
|
-
setInheritedProps: () => {/* nothing */},
|
|
68
|
-
resolveConfigProps: () => {/* nothing */}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
<>
|
|
75
|
-
<PegaDxilMyPageCaseWidget {...props} {...args} />
|
|
76
|
-
</>
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
BasePegaDxilMyPageCaseWidget.args = {};
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { DateTimeDisplay, Card, CardHeader, CardContent, Flex, withConfiguration } from '@pega/cosmos-react-core';
|
|
3
|
-
import type { PConnFieldProps } from './PConnProps';
|
|
4
|
-
|
|
5
|
-
// includes in bundle
|
|
6
|
-
import Operator from './Operator';
|
|
7
|
-
|
|
8
|
-
import StyledPegaDxilMyPageCaseWidgetWrapper from './styles';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// interface for props
|
|
12
|
-
interface PegaDxilMyPageCaseWidgetProps extends PConnFieldProps {
|
|
13
|
-
// If any, enter additional props that only exist on TextInput here
|
|
14
|
-
title: string;
|
|
15
|
-
createLabel: string;
|
|
16
|
-
updateLabel: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Created for Launchpad
|
|
20
|
-
|
|
21
|
-
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
22
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
23
|
-
function PegaDxilMyPageCaseWidget(props: PegaDxilMyPageCaseWidgetProps) {
|
|
24
|
-
|
|
25
|
-
const {
|
|
26
|
-
getPConnect,
|
|
27
|
-
title = 'Create operator',
|
|
28
|
-
label = 'Create operator',
|
|
29
|
-
createLabel,
|
|
30
|
-
updateLabel
|
|
31
|
-
} = props;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const { createTime, createdBy, lastUpdateTime, lastUpdatedBy } = getPConnect().getCaseSummary();
|
|
35
|
-
|
|
36
|
-
const [_label, user, dateTimeValue] =
|
|
37
|
-
label === 'Create operator'
|
|
38
|
-
? [createLabel, createdBy, createTime]
|
|
39
|
-
: [updateLabel, lastUpdatedBy, lastUpdateTime];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<StyledPegaDxilMyPageCaseWidgetWrapper>
|
|
45
|
-
<Card>
|
|
46
|
-
<CardHeader>{title}</CardHeader>
|
|
47
|
-
<CardContent>
|
|
48
|
-
<Flex container={{ direction: 'row'}}>
|
|
49
|
-
<Operator
|
|
50
|
-
label={_label}
|
|
51
|
-
name={user}
|
|
52
|
-
id={user}
|
|
53
|
-
getPConnect={getPConnect}
|
|
54
|
-
value={undefined}
|
|
55
|
-
validatemessage=''
|
|
56
|
-
hideLabel={false}
|
|
57
|
-
readOnly={false}
|
|
58
|
-
required={false}
|
|
59
|
-
disabled={false}
|
|
60
|
-
externalUser={undefined}
|
|
61
|
-
testId=''
|
|
62
|
-
helperText=''
|
|
63
|
-
metaObj={undefined}
|
|
64
|
-
/>
|
|
65
|
-
{dateTimeValue && (
|
|
66
|
-
<Fragment>
|
|
67
|
-
{' '}
|
|
68
|
-
<DateTimeDisplay value={dateTimeValue} variant='relative' />
|
|
69
|
-
</Fragment>
|
|
70
|
-
)}
|
|
71
|
-
</Flex>
|
|
72
|
-
</CardContent>
|
|
73
|
-
</Card>
|
|
74
|
-
|
|
75
|
-
</StyledPegaDxilMyPageCaseWidgetWrapper>
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export default withConfiguration(PegaDxilMyPageCaseWidget);
|
|
84
|
-
|
|
85
|
-
// as objects are there in props, shallow comparision fails & re-rendering of comp happens even with
|
|
86
|
-
// same key value pairs in obj. hence using custom comparison function on when to re-render
|
|
87
|
-
// const comparisonFn = (prevProps, nextProps) => {
|
|
88
|
-
// return prevProps.updateDateTime === nextProps.updateDateTime;
|
|
89
|
-
// };
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export const configProps = {
|
|
2
|
-
label: 'Create operator',
|
|
3
|
-
createLabel: 'Created',
|
|
4
|
-
updateLabel: 'Updated',
|
|
5
|
-
updateDateTime: '2023-01-16T14:53:33.280Z',
|
|
6
|
-
createDateTime: '2023-01-16T14:53:33.198Z',
|
|
7
|
-
updateOperator: {
|
|
8
|
-
userId: 'admin@mediaco',
|
|
9
|
-
userName: 'admin'
|
|
10
|
-
},
|
|
11
|
-
createOperator: {
|
|
12
|
-
userId: 'admin@mediaco',
|
|
13
|
-
userName: 'admin'
|
|
14
|
-
},
|
|
15
|
-
hideLabel: true,
|
|
16
|
-
key: '_532zx1dah',
|
|
17
|
-
displayMode: 'LABELS_LEFT'
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const operatorDetails = {
|
|
21
|
-
data: {
|
|
22
|
-
pzLoadTime: 'January 18, 2023 10:33:19 AM EST',
|
|
23
|
-
pzPageNameHash: '_pa1519192551088960pz',
|
|
24
|
-
pyOperatorInfo: {
|
|
25
|
-
pyUserName: 'french DigV2',
|
|
26
|
-
pyPosition: '',
|
|
27
|
-
pyImageInsKey: '',
|
|
28
|
-
pySkills: [
|
|
29
|
-
{
|
|
30
|
-
pySkillName: '',
|
|
31
|
-
pzIndexOwnerKey: 'DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2',
|
|
32
|
-
pySkillRating: 0
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
pyReportToUserName: '',
|
|
36
|
-
pyReportTo: '',
|
|
37
|
-
pyOrganization: 'DXIL',
|
|
38
|
-
pyTitle: '',
|
|
39
|
-
pyLabel: 'frenchTest.DigV2',
|
|
40
|
-
pyEmailAddress: 'User@DigV2',
|
|
41
|
-
pyTelephone: ''
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
status: 200,
|
|
45
|
-
statusText: '',
|
|
46
|
-
headers: {
|
|
47
|
-
'content-length': '435',
|
|
48
|
-
'content-type': 'application/json;charset=UTF-8'
|
|
49
|
-
},
|
|
50
|
-
request: {}
|
|
51
|
-
};
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg
DELETED
|
@@ -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>
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/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_MyPageWidget/config.json
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Pega_DXIL_MyPageWidget",
|
|
3
|
-
"label": "My Page Widget",
|
|
4
|
-
"description": "My Page Widget",
|
|
5
|
-
"organization": "Pega",
|
|
6
|
-
"version": "0.0.1",
|
|
7
|
-
"library": "DXIL",
|
|
8
|
-
"allowedApplications": [],
|
|
9
|
-
"componentKey": "Pega_DXIL_MyPageWidget",
|
|
10
|
-
"type": "Widget",
|
|
11
|
-
"subtype": "PAGE",
|
|
12
|
-
"icon": "OneColumnPage.svg",
|
|
13
|
-
"properties": [
|
|
14
|
-
{
|
|
15
|
-
"name": "description",
|
|
16
|
-
"label": "Description",
|
|
17
|
-
"format": "TEXT",
|
|
18
|
-
"defaultValue": "We've launched a brand new experience to accelerate your workflow. Check out the guides to help you get the most of Cosmos."
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "whatsnewlink",
|
|
22
|
-
"label": "What's new link",
|
|
23
|
-
"format": "TEXT",
|
|
24
|
-
"defaultValue": "https://design.pega.com"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "image",
|
|
28
|
-
"label": "Image link",
|
|
29
|
-
"format": "TEXT",
|
|
30
|
-
"defaultValue": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI+PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR2Mmg0LjI0djEuOWgtNC4yNHpNMjMuMTggMGE1IDUgMCAwIDEgMy41NyAxLjI4TDI1LjYzIDIuOGEzLjc4IDMuNzggMCAwIDAtMS4wNS0uNjNBNC4zMiA0LjMyIDAgMCAwIDIzLjMxIDIgMy4xNyAzLjE3IDAgMCAwIDIwIDUuMjdhMy4xNiAzLjE2IDAgMCAwIDEgMi4zOSAzLjA3IDMuMDcgMCAwIDAgMi4xNy44NCA0LjYgNC42IDAgMCAwIDIuMDktLjVWNi4xOWgtMi4yVjQuMzhoNC4yNXY0LjU2YTUuNDEgNS40MSAwIDAgMS00LjA4IDEuNTdBNS4zNSA1LjM1IDAgMCAxIDE5LjQzIDlhNS4wNSA1LjA1IDAgMCAxLTEuNTYtMy43NCA1LjIxIDUuMjEgMCAwIDEgMS41Ni0zLjc2QTUuMzEgNS4zMSAwIDAgMSAyMy4xOCAwem0xMS4yOS40Mmw0LjEzIDkuNzloLTIuMjVMMzUuNDggOGgtNC4wNmwtLjkgMi4xOGgtMi4yTDMyLjUxLjQyem0uMjUgNS43MkwzMy40NCAzbC0xLjI5IDMuMTR6bTMtNWEuNzEuNzEgMCAwIDEtLjc0Ljc1LjcxLjcxIDAgMCAxLS43My0uNzUuNzMuNzMgMCAwIDEgLjc1LS43Mi43Mi43MiAwIDAgMSAuNzUuNzF6TTM3IC41M2EuNTkuNTkgMCAwIDAtLjYuNi42MS42MSAwIDEgMCAxLjIxIDAgLjYuNiAwIDAgMC0uNjEtLjZ6bS0uMjQgMVYuNzFIMzdjLjEyIDAgLjE4LjA2LjI1LjA2YS4yMS4yMSAwIDAgMSAuMDcuMTguMTkuMTkgMCAwIDEtLjA3LjE4cy0uMDcuMDgtLjEzLjA4bC4yNi4zNmgtLjJMMzcgMS4yOGgtLjF2LjI5em0uMTMtLjQ0aC4yM2EuMjYuMjYgMCAwIDAgLjA3LS4wOWgtLjA2Yy0uMDUtLjE3LS4wNS0uMTctLjEzLS4xN2gtLjF6Ii8+PC9zdmc+"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "datasource",
|
|
34
|
-
"label": "Data source for details",
|
|
35
|
-
"defaultValue": "@DATASOURCE D_pyAnnouncements.pxResults",
|
|
36
|
-
"format": "DATASOURCE",
|
|
37
|
-
"required": true,
|
|
38
|
-
"properties": [
|
|
39
|
-
{
|
|
40
|
-
"name": "name",
|
|
41
|
-
"label": "Label",
|
|
42
|
-
"defaultValue": "@P .pyLabel"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"label": "Conditions",
|
|
48
|
-
"format": "GROUP",
|
|
49
|
-
"properties": [
|
|
50
|
-
{
|
|
51
|
-
"name": "visibility",
|
|
52
|
-
"label": "Visibility",
|
|
53
|
-
"format": "VISIBILITY"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"defaultConfig": {}
|
|
59
|
-
}
|