@pega/custom-dx-components 0.242.37 → 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 +1 -1
- 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 +1 -1
- 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/localLibCreateLibListDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +11 -1
- 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
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
import { DateTimeInput, FieldValueList, DateTimeDisplay, Text, withConfiguration } from "@pega/cosmos-react-core";
|
|
3
|
-
import type { PConnFieldProps } from './PConnProps';
|
|
4
|
-
|
|
5
|
-
// includes in bundle
|
|
6
|
-
import DateTimeFormatter from "./date-time";
|
|
7
|
-
import {datetimedisplayformatter,formatExists} from "./date";
|
|
8
|
-
import {
|
|
9
|
-
getFullYear,
|
|
10
|
-
getMaxDate,
|
|
11
|
-
getMinDate,
|
|
12
|
-
parseClockFormat,
|
|
13
|
-
correctDateTimeToSeconds,
|
|
14
|
-
datetimeFireChangeBlurEvents
|
|
15
|
-
} from "./date-utils";
|
|
16
|
-
import { suggestionsHandler } from './suggestions-handler';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import StyledPegaDxilMyDateTimeWrapper from './styles';
|
|
20
|
-
import type { DateTimeFormat, DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types';
|
|
21
|
-
import type { ClockFormat } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// interface for props
|
|
25
|
-
interface PegaDxilMyDateTimeProps extends PConnFieldProps {
|
|
26
|
-
// If any, enter additional props that only exist on TextInput here
|
|
27
|
-
displayAsStatus?: boolean;
|
|
28
|
-
isTableFormatter?: boolean;
|
|
29
|
-
hasSuggestions?: boolean;
|
|
30
|
-
variant?: any;
|
|
31
|
-
formatter?: string;
|
|
32
|
-
withSeconds: boolean;
|
|
33
|
-
nextYearRange: string;
|
|
34
|
-
previousYearRange: string;
|
|
35
|
-
showWeekNumber: boolean;
|
|
36
|
-
pickerInterval: string;
|
|
37
|
-
clockFormat: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// interface for StateProps object
|
|
41
|
-
interface StateProps {
|
|
42
|
-
value: string;
|
|
43
|
-
hasSuggestions: boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface ConfigProps {
|
|
47
|
-
formatter?: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface ActionsProps {
|
|
51
|
-
onFocus: any;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Duplicated runtime code from Constellation Design System Component
|
|
55
|
-
|
|
56
|
-
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
57
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
58
|
-
function PegaDxilMyDateTime (props: PegaDxilMyDateTimeProps) {
|
|
59
|
-
const {
|
|
60
|
-
getPConnect,
|
|
61
|
-
value,
|
|
62
|
-
validatemessage,
|
|
63
|
-
label,
|
|
64
|
-
hideLabel = false,
|
|
65
|
-
helperText,
|
|
66
|
-
withSeconds,
|
|
67
|
-
nextYearRange,
|
|
68
|
-
previousYearRange,
|
|
69
|
-
showWeekNumber = false,
|
|
70
|
-
pickerInterval = '30',
|
|
71
|
-
testId,
|
|
72
|
-
additionalProps = {},
|
|
73
|
-
displayMode,
|
|
74
|
-
variant = 'inline',
|
|
75
|
-
hasSuggestions = false
|
|
76
|
-
} = props;
|
|
77
|
-
let { formatter } = props;
|
|
78
|
-
const pConn = getPConnect();
|
|
79
|
-
const actions = pConn.getActionsApi();
|
|
80
|
-
const actionsProps = pConn.getActionsApi() as unknown as ActionsProps;
|
|
81
|
-
const stateProps = pConn.getStateProps() as StateProps;
|
|
82
|
-
const propName: string = stateProps.value;
|
|
83
|
-
|
|
84
|
-
const environmentInfo = PCore.getEnvironmentInfo();
|
|
85
|
-
const timezone = environmentInfo && environmentInfo.getTimeZone();
|
|
86
|
-
|
|
87
|
-
let { readOnly = false, required = false, disabled = false } = props;
|
|
88
|
-
[readOnly, required, disabled] = [readOnly, required, disabled].map(
|
|
89
|
-
(prop) => prop === true || (typeof prop === 'string' && prop === 'true')
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
const [status, setStatus] = useState(hasSuggestions ? 'pending' : undefined);
|
|
93
|
-
|
|
94
|
-
// cast status
|
|
95
|
-
let myStatus: 'success' | 'warning' | 'error' | 'pending';
|
|
96
|
-
// eslint-disable-next-line prefer-const
|
|
97
|
-
myStatus = status as 'success' | 'warning' | 'error' | 'pending';
|
|
98
|
-
|
|
99
|
-
useEffect(() => {
|
|
100
|
-
if (validatemessage !== '') {
|
|
101
|
-
setStatus('error');
|
|
102
|
-
}
|
|
103
|
-
if (hasSuggestions) {
|
|
104
|
-
setStatus('pending');
|
|
105
|
-
} else if (!hasSuggestions && myStatus !== 'success') {
|
|
106
|
-
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
107
|
-
}
|
|
108
|
-
}, [validatemessage, hasSuggestions, myStatus]);
|
|
109
|
-
|
|
110
|
-
let { clockFormat = 0 } = props;
|
|
111
|
-
clockFormat = parseClockFormat(clockFormat);
|
|
112
|
-
|
|
113
|
-
// calculate min and max range of calendar
|
|
114
|
-
const currentYear = getFullYear("");
|
|
115
|
-
const yearFromValue = getFullYear(value);
|
|
116
|
-
const maxDate = getMaxDate(parseInt(nextYearRange, 10), currentYear, yearFromValue);
|
|
117
|
-
const minDate = getMinDate(parseInt(previousYearRange, 10), currentYear, yearFromValue);
|
|
118
|
-
|
|
119
|
-
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
120
|
-
suggestionsHandler(accepted, pConn, setStatus);
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
function handleBlur(onBlurValue: any) {
|
|
124
|
-
const { valueAsISOString: datetimeTZ, state: errorState } = onBlurValue;
|
|
125
|
-
const datetimeGMT = DateTimeFormatter.convertFromTimezone(datetimeTZ, timezone);
|
|
126
|
-
|
|
127
|
-
const datetimeGMTCorrectedToSeconds = datetimeGMT
|
|
128
|
-
? correctDateTimeToSeconds(datetimeGMT, withSeconds)
|
|
129
|
-
: datetimeGMT;
|
|
130
|
-
|
|
131
|
-
datetimeFireChangeBlurEvents(errorState, value, datetimeGMTCorrectedToSeconds, actions, propName, pConn);
|
|
132
|
-
const isValueChanged =
|
|
133
|
-
!(value === undefined && datetimeGMTCorrectedToSeconds === '') && value !== datetimeGMTCorrectedToSeconds;
|
|
134
|
-
if (hasSuggestions && isValueChanged) {
|
|
135
|
-
pConn.ignoreSuggestion("");
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function handleChange(onChangeValue: any) {
|
|
140
|
-
const { valueAsISOString: datetimeTZ } = onChangeValue;
|
|
141
|
-
const datetimeGMT = DateTimeFormatter.convertFromTimezone(datetimeTZ, timezone);
|
|
142
|
-
const datetimeGMTCorrectedToSeconds = datetimeGMT
|
|
143
|
-
? correctDateTimeToSeconds(datetimeGMT, withSeconds)
|
|
144
|
-
: datetimeGMT;
|
|
145
|
-
if (hasSuggestions && value !== datetimeGMTCorrectedToSeconds) {
|
|
146
|
-
setStatus(undefined);
|
|
147
|
-
}
|
|
148
|
-
pConn.clearErrorMessages({
|
|
149
|
-
category: "",
|
|
150
|
-
property: propName,
|
|
151
|
-
context: ""
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (displayMode === 'LABELS_LEFT' || displayMode === 'STACKED_LARGE_VAL' || displayMode === 'DISPLAY_ONLY') {
|
|
156
|
-
let variantValue = 'datetime' as DateTimeVariant;
|
|
157
|
-
let formatValue = withSeconds ? 'long' : 'short' as DateTimeFormat;
|
|
158
|
-
|
|
159
|
-
const configProps = pConn.getConfigProps() as ConfigProps;
|
|
160
|
-
|
|
161
|
-
const runtimeformatter = configProps?.formatter;
|
|
162
|
-
|
|
163
|
-
if (formatter !== runtimeformatter) {
|
|
164
|
-
formatter = runtimeformatter;
|
|
165
|
-
}
|
|
166
|
-
if (formatExists(formatter)) {
|
|
167
|
-
// @ts-ignore
|
|
168
|
-
const { variantVal, formatVal } = datetimedisplayformatter(formatter);
|
|
169
|
-
variantValue = variantVal as DateTimeVariant;
|
|
170
|
-
formatValue = withSeconds && formatter === 'Time-Only' ? 'long' : formatVal as DateTimeFormat;
|
|
171
|
-
}
|
|
172
|
-
const displayComp = (
|
|
173
|
-
<DateTimeDisplay
|
|
174
|
-
variant={variantValue}
|
|
175
|
-
format={formatValue}
|
|
176
|
-
value={
|
|
177
|
-
formatter === 'DateTime-Since' ? value : DateTimeFormatter.convertToTimezone(value, { timezone }) || undefined
|
|
178
|
-
}
|
|
179
|
-
clockFormat={clockFormat as ClockFormat || undefined}
|
|
180
|
-
/>
|
|
181
|
-
);
|
|
182
|
-
switch (displayMode) {
|
|
183
|
-
case 'DISPLAY_ONLY': {
|
|
184
|
-
return ( <StyledPegaDxilMyDateTimeWrapper> {displayComp} </StyledPegaDxilMyDateTimeWrapper>);
|
|
185
|
-
}
|
|
186
|
-
case 'LABELS_LEFT': {
|
|
187
|
-
return (
|
|
188
|
-
<StyledPegaDxilMyDateTimeWrapper>
|
|
189
|
-
<FieldValueList
|
|
190
|
-
variant={hideLabel ? 'stacked' : variant}
|
|
191
|
-
data-testid={testId}
|
|
192
|
-
fields={[{ id: '1', name: hideLabel ? '' : label, value: displayComp }]}
|
|
193
|
-
/>
|
|
194
|
-
</StyledPegaDxilMyDateTimeWrapper>
|
|
195
|
-
);
|
|
196
|
-
}
|
|
197
|
-
case 'STACKED_LARGE_VAL': {
|
|
198
|
-
return (
|
|
199
|
-
<StyledPegaDxilMyDateTimeWrapper>
|
|
200
|
-
<FieldValueList
|
|
201
|
-
variant='stacked'
|
|
202
|
-
data-testid={testId}
|
|
203
|
-
fields={[
|
|
204
|
-
{
|
|
205
|
-
id: '2',
|
|
206
|
-
name: hideLabel ? '' : label,
|
|
207
|
-
value: (
|
|
208
|
-
<Text variant='h1' as='span'>
|
|
209
|
-
{displayComp}
|
|
210
|
-
</Text>
|
|
211
|
-
)
|
|
212
|
-
}
|
|
213
|
-
]}
|
|
214
|
-
/>
|
|
215
|
-
</StyledPegaDxilMyDateTimeWrapper>
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
// no default
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
return (
|
|
224
|
-
<StyledPegaDxilMyDateTimeWrapper>
|
|
225
|
-
<DateTimeInput
|
|
226
|
-
{...additionalProps}
|
|
227
|
-
label={label}
|
|
228
|
-
labelHidden={hideLabel}
|
|
229
|
-
info={validatemessage || helperText}
|
|
230
|
-
status={status}
|
|
231
|
-
value={DateTimeFormatter.convertToTimezone(value, { timezone }) || undefined}
|
|
232
|
-
withSeconds={withSeconds}
|
|
233
|
-
disabled={disabled}
|
|
234
|
-
readOnly={readOnly}
|
|
235
|
-
required={required}
|
|
236
|
-
pickerInterval={pickerInterval}
|
|
237
|
-
clockFormat={clockFormat || undefined}
|
|
238
|
-
showWeekNumber={showWeekNumber}
|
|
239
|
-
min={minDate}
|
|
240
|
-
max={maxDate}
|
|
241
|
-
data-testid={testId}
|
|
242
|
-
onFocus={actionsProps.onFocus}
|
|
243
|
-
onChange={handleChange}
|
|
244
|
-
onBlur={handleBlur}
|
|
245
|
-
onResolveSuggestion={onResolveSuggestionHandler}
|
|
246
|
-
/>
|
|
247
|
-
</StyledPegaDxilMyDateTimeWrapper>
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export default withConfiguration(PegaDxilMyDateTime);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
export const configProps = {
|
|
4
|
-
value: '2023-01-24T16:45:00.000Z',
|
|
5
|
-
placeholder: 'DateTime Placeholder',
|
|
6
|
-
validatemessage: '',
|
|
7
|
-
label: 'DateTime Label',
|
|
8
|
-
hideLabel: false,
|
|
9
|
-
helperText: 'DateTime helper text',
|
|
10
|
-
withSeconds: false,
|
|
11
|
-
nextYearRange: '10',
|
|
12
|
-
previousYearRange: '5',
|
|
13
|
-
showWeekNumber: false,
|
|
14
|
-
testId: '12345678',
|
|
15
|
-
additionalProps: {},
|
|
16
|
-
displayMode: '',
|
|
17
|
-
variant: '',
|
|
18
|
-
hasSuggestions: false,
|
|
19
|
-
readOnly: false,
|
|
20
|
-
required: false,
|
|
21
|
-
disabled: false,
|
|
22
|
-
status: ''
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const stateProps = {
|
|
26
|
-
value: '.DateTimeLabel'
|
|
27
|
-
};
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/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
|
-
}
|
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Pega_DXIL_MyDecimal",
|
|
3
|
-
"label": "My Decimal",
|
|
4
|
-
"description": "My Decimal",
|
|
5
|
-
"organization": "Pega",
|
|
6
|
-
"version": "0.0.1",
|
|
7
|
-
"library": "DXIL",
|
|
8
|
-
"allowedApplications": [],
|
|
9
|
-
"componentKey": "Pega_DXIL_MyDecimal",
|
|
10
|
-
"type": "Field",
|
|
11
|
-
"subtype": "Decimal",
|
|
12
|
-
"icon": "images/pz-decimal-active.svg",
|
|
13
|
-
"properties": [
|
|
14
|
-
{
|
|
15
|
-
"name": "label",
|
|
16
|
-
"label": "Field label",
|
|
17
|
-
"format": "TEXT",
|
|
18
|
-
"required": true
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "readOnly",
|
|
22
|
-
"label": "Edit mode",
|
|
23
|
-
"format": "READONLY"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "decimalPrecision",
|
|
27
|
-
"label": "Decimal places",
|
|
28
|
-
"format": "NUMBER",
|
|
29
|
-
"min": 0,
|
|
30
|
-
"max": 20
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "showGroupSeparators",
|
|
34
|
-
"label": "Show thousands separator",
|
|
35
|
-
"format": "BOOLEAN"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"label": "Column settings",
|
|
39
|
-
"format": "GROUP",
|
|
40
|
-
"visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
|
|
41
|
-
"properties": [
|
|
42
|
-
{
|
|
43
|
-
"name": "columnWidth",
|
|
44
|
-
"label": "Column width",
|
|
45
|
-
"format": "SELECT",
|
|
46
|
-
"source": [
|
|
47
|
-
{
|
|
48
|
-
"key": "auto",
|
|
49
|
-
"value": "Auto"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"key": "custom",
|
|
53
|
-
"value": "Custom"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "width",
|
|
59
|
-
"label": "Width (px)",
|
|
60
|
-
"format": "NUMBER",
|
|
61
|
-
"visibility": "$this.columnWidth == 'custom'"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"label": "Input settings",
|
|
67
|
-
"format": "GROUP",
|
|
68
|
-
"visibility": "(!readOnly = true)",
|
|
69
|
-
"properties": [
|
|
70
|
-
{
|
|
71
|
-
"name": "placeholder",
|
|
72
|
-
"label": "Placeholder",
|
|
73
|
-
"format": "TEXT"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "helperText",
|
|
77
|
-
"label": "Helper text",
|
|
78
|
-
"format": "TEXT"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"label": "Read-only settings",
|
|
84
|
-
"format": "GROUP",
|
|
85
|
-
"properties": [
|
|
86
|
-
{
|
|
87
|
-
"format": "SELECT",
|
|
88
|
-
"name": "formatter",
|
|
89
|
-
"label": "Format",
|
|
90
|
-
"defaultValue": "defaultDecimal",
|
|
91
|
-
"source": [
|
|
92
|
-
{
|
|
93
|
-
"key": "defaultDecimal",
|
|
94
|
-
"value": "Default"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"key": "Integer",
|
|
98
|
-
"value": "Integer"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"key": "Currency",
|
|
102
|
-
"value": "Currency"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"key": "Percentage",
|
|
106
|
-
"value": "Percentage"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"format": "CASCADE",
|
|
114
|
-
"visibility": "(formatter = Currency)",
|
|
115
|
-
"source": {
|
|
116
|
-
"format": "SELECT",
|
|
117
|
-
"label": "ISO Code Selection",
|
|
118
|
-
"name": "isoCodeSelection",
|
|
119
|
-
"defaultValue": "constant",
|
|
120
|
-
"source": [
|
|
121
|
-
{
|
|
122
|
-
"key": "constant",
|
|
123
|
-
"value": "Constant"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"key": "propertyRef",
|
|
127
|
-
"value": "Property Reference"
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
"cascadeElements": [
|
|
132
|
-
{
|
|
133
|
-
"key": "currencyISOCode",
|
|
134
|
-
"format": "TEXT",
|
|
135
|
-
"name": "currencyISOCode",
|
|
136
|
-
"label": "Currency ISO Code",
|
|
137
|
-
"defaultValue": "USD",
|
|
138
|
-
"match": "constant"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"key": "currencyISOCode",
|
|
142
|
-
"format": "PROPERTY",
|
|
143
|
-
"name": "currencyISOCode",
|
|
144
|
-
"label": "Currency ISO Code",
|
|
145
|
-
"match": "propertyRef"
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"format": "SELECT",
|
|
151
|
-
"name": "currencyDisplay",
|
|
152
|
-
"label": "Currency display",
|
|
153
|
-
"visibility": "(formatter = Currency)",
|
|
154
|
-
"defaultValue": "symbol",
|
|
155
|
-
"source": [
|
|
156
|
-
{
|
|
157
|
-
"key": "symbol",
|
|
158
|
-
"value": "Auto"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"key": "code",
|
|
162
|
-
"value": "Code"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"key": "name",
|
|
166
|
-
"value": "Name"
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"format": "SELECT",
|
|
172
|
-
"name": "negative",
|
|
173
|
-
"label": "Negative number display",
|
|
174
|
-
"visibility": "(formatter = Currency)",
|
|
175
|
-
"defaultValue": "minus-sign",
|
|
176
|
-
"source": [
|
|
177
|
-
{
|
|
178
|
-
"key": "minus-sign",
|
|
179
|
-
"value": "Standard"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"key": "parentheses",
|
|
183
|
-
"value": "Accounting"
|
|
184
|
-
}
|
|
185
|
-
]
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"format": "SELECT",
|
|
189
|
-
"name": "notation",
|
|
190
|
-
"label": "Notation",
|
|
191
|
-
"visibility": "(!negative = parentheses)&&(!formatter = Percentage)",
|
|
192
|
-
"defaultValue": "standard",
|
|
193
|
-
"source": [
|
|
194
|
-
{
|
|
195
|
-
"key": "standard",
|
|
196
|
-
"value": "Standard"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"key": "compact",
|
|
200
|
-
"value": "Compact"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"format": "SELECT",
|
|
206
|
-
"name": "currencyDecimalPrecision",
|
|
207
|
-
"label": "Decimal places shown",
|
|
208
|
-
"visibility": "(formatter = Currency)",
|
|
209
|
-
"defaultValue": "auto",
|
|
210
|
-
"source": [
|
|
211
|
-
{
|
|
212
|
-
"key": "auto",
|
|
213
|
-
"value": "Auto"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"key": "0",
|
|
217
|
-
"value": "None"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"key": "1",
|
|
221
|
-
"value": "1"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"key": "2",
|
|
225
|
-
"value": "2"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"key": "3",
|
|
229
|
-
"value": "3"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"key": "4",
|
|
233
|
-
"value": "4"
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"label": "Conditions",
|
|
239
|
-
"format": "GROUP",
|
|
240
|
-
"properties": [
|
|
241
|
-
{
|
|
242
|
-
"name": "required",
|
|
243
|
-
"label": "Required",
|
|
244
|
-
"format": "REQUIRED",
|
|
245
|
-
"visibility": "(!readOnly = true)"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "disabled",
|
|
249
|
-
"label": "Disabled",
|
|
250
|
-
"format": "DISABLED",
|
|
251
|
-
"visibility": "(!readOnly = true)"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"name": "visibility",
|
|
255
|
-
"label": "Visibility",
|
|
256
|
-
"format": "VISIBILITY"
|
|
257
|
-
}
|
|
258
|
-
]
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"label": "Advanced",
|
|
262
|
-
"format": "GROUP",
|
|
263
|
-
"collapsible": true,
|
|
264
|
-
"properties": [
|
|
265
|
-
{
|
|
266
|
-
"name": "testId",
|
|
267
|
-
"label": "Test ID",
|
|
268
|
-
"format": "TEXT",
|
|
269
|
-
"ignorePattern": "[^-_\\p{N}\\p{L}]",
|
|
270
|
-
"includeAnnotations": false
|
|
271
|
-
}
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"defaultConfig": {
|
|
276
|
-
"label": "@L $this.label"
|
|
277
|
-
}
|
|
278
|
-
}
|
package/tests/assets/library/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* eslint-disable react/jsx-no-useless-fragment */
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
-
|
|
5
|
-
import { configProps, fieldMetadata, stateProps } from './mock';
|
|
6
|
-
|
|
7
|
-
import PegaDxilMyDecimal from './index';
|
|
8
|
-
|
|
9
|
-
const meta: Meta<typeof PegaDxilMyDecimal> = {
|
|
10
|
-
title: 'PegaDxilMyDecimal',
|
|
11
|
-
component: PegaDxilMyDecimal,
|
|
12
|
-
excludeStories: /.*Data$/
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<typeof PegaDxilMyDecimal>;
|
|
17
|
-
|
|
18
|
-
export const BasePegaDxilMyDecimal: Story = (args: any) => {
|
|
19
|
-
|
|
20
|
-
const props = {
|
|
21
|
-
value: configProps.value,
|
|
22
|
-
fieldMetadata,
|
|
23
|
-
getPConnect: () => {
|
|
24
|
-
return {
|
|
25
|
-
getStateProps: () => {
|
|
26
|
-
return stateProps;
|
|
27
|
-
},
|
|
28
|
-
getActionsApi: () => {
|
|
29
|
-
return {
|
|
30
|
-
updateFieldValue: () => {/* nothing */},
|
|
31
|
-
triggerFieldChange: () => {/* nothing */}
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
ignoreSuggestion: () => {/* nothing */},
|
|
35
|
-
acceptSuggestion: () => {/* nothing */},
|
|
36
|
-
setInheritedProps: () => {/* nothing */},
|
|
37
|
-
resolveConfigProps: () => {/* nothing */}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<>
|
|
44
|
-
<PegaDxilMyDecimal {...props} {...args} />
|
|
45
|
-
</>
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
BasePegaDxilMyDecimal.args = {
|
|
50
|
-
label: configProps.label,
|
|
51
|
-
helperText: configProps.helperText,
|
|
52
|
-
placeholder: configProps.placeholder,
|
|
53
|
-
showGroupSeparators: configProps.showGroupSeparators,
|
|
54
|
-
testId: configProps.testId,
|
|
55
|
-
readOnly: configProps.readOnly,
|
|
56
|
-
disabled: configProps.disabled,
|
|
57
|
-
required: configProps.required,
|
|
58
|
-
status: configProps.status,
|
|
59
|
-
hideLabel: configProps.hideLabel,
|
|
60
|
-
displayMode: configProps.displayMode,
|
|
61
|
-
variant: configProps.variant,
|
|
62
|
-
validatemessage: configProps.validatemessage
|
|
63
|
-
};
|