@pega/custom-dx-components 8.8.18 → 8.8.20
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/jest.config.cjs +1 -1
- package/package.json +3 -2
- package/src/tasks/create/index.js +29 -2
- package/src/tasks/create/templates/Launchpad/Field/__components.md +3 -0
- package/src/tasks/create/templates/Launchpad/Template/__components.md +3 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +23 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +78 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +76 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.stories.js.mustache +390 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +282 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +55 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +74 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +82 -0
- package/src/tasks/create/templates/Launchpad/Widget/__components.md +3 -0
- package/src/tasks/create-all/index.js +27 -1
- package/src/tasks/delete/helper.js +67 -4
- package/src/tasks/delete-all/helper.js +66 -5
- package/src/tasks/init/template/.storybook/package.json +1 -0
- package/src/tasks/init/template/package.json.mustache +3 -3
- package/src/tasks/list/helper.js +68 -5
- package/src/tasks/list/index.js +18 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.js +38 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +145 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +170 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +78 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +73 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.stories.js +390 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +291 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +53 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +296 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +61 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +41 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +195 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +439 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +73 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +256 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +256 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +92 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +288 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +331 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +73 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +254 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +278 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +270 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +35 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +132 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js +189 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +152 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +231 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.stories.js +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +45 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +166 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +42 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js +137 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +344 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +333 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +35 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +32 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +102 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +70 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +4 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js +94 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +229 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +279 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +55 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +74 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +80 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +30 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +231 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.stories.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +93 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +275 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +123 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +266 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.stories.js +37 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +114 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +78 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +351 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js +67 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +55 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +60 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.stories.js +13 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +239 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +185 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +57 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +213 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +288 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +136 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +230 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +155 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +175 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +45 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js +143 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +237 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +232 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.stories.js +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +173 -0
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateAllListDeleteAll.test.js +13 -7
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateBuildAllDeleteAll.test.js +9 -9
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateBuildDelete.test.js +6 -6
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateListDelete.test.js +8 -8
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreatePublishAllDeleteAll.test.js +9 -9
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreatePublishDelete.test.js +6 -6
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateRenameDelete.test.js +6 -6
- package/{src/tasks/init/template/test/functionTest → tests/functional}/localPromoteRevertWP.test.js +4 -4
- package/{test/unitTest → tests/unit}/util.test.js +3 -3
- package/src/tasks/init/template/jest.config.cjs +0 -21
- /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget → create/templates/Launchpad/Widget/CASE}/OneColumnPage.svg +0 -0
- /package/src/tasks/{init/template/test/assets/components/create/Pega_DXIL_MyTestText/styles.js → create/templates/Launchpad/Widget/CASE/styles.js.mustache} +0 -0
- /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget/Avatar.jsx → create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache} +0 -0
- /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPage → create/templates/Launchpad/Widget/PAGE-CASE}/OneColumnPage.svg +0 -0
- /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget/mock.stories.js → create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache} +0 -0
- /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyBoolean/styles.js → create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache} +0 -0
- /package/src/tasks/init/template/.storybook/{main.js → main.cjs} +0 -0
- /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/config.json +0 -0
- /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/index.jsx +0 -0
- /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget → tests/assets/components/create/Pega_DXIL_MyTestText}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/Boolean.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/boolean-format.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCurrency → tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/OneColumnPage.svg +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDate → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDateTime → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/DateFormatter.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/FormattedText.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/date.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDecimal → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-time.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDetails → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyEmail → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/StatusWork.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyForm → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyInteger → tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/DefaultForm.svg +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPage → tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/GetNextWork.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage}/OneColumnPage.svg +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/localizations.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/Operator.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyParagraph → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPercentage → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPhone → tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPicklist → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyText → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTextInput → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTimeOfDay → tests/assets/components/createAll/Constellation/Pega_DXIL_MyText}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/StatusWork.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnDetails → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnForm → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyURL → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails}/styles.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/config.json +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/demo.stories.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/event-utils.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/index.jsx +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/mock.stories.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/suggestions-handler.js +0 -0
- /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/text-url.jsx +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
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
|
+
import PropTypes from 'prop-types';
|
|
16
|
+
|
|
17
|
+
import Avatar from './Avatar.jsx';
|
|
18
|
+
|
|
19
|
+
const Operator = (props) => {
|
|
20
|
+
const { id, name, label, testId, helperText, externalUser, metaObj } = props;
|
|
21
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
22
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
23
|
+
const [popoverTarget, setPopoverTarget] = useState(null);
|
|
24
|
+
const [popoverEl, setPopoverEl] = useElement(null);
|
|
25
|
+
const [popoverContent, setpopoverContent] = useState(null);
|
|
26
|
+
const theme = useTheme();
|
|
27
|
+
|
|
28
|
+
/* If the id has changed, we need to reset the popover */
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setPopoverTarget(null);
|
|
31
|
+
}, [id]);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
{{! pick new delimiteres for mustache }}
|
|
35
|
+
{{=<% %>=}}
|
|
36
|
+
|
|
37
|
+
const OperatorPreview = () => {
|
|
38
|
+
let localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
39
|
+
let localeCategory = 'Operator';
|
|
40
|
+
setpopoverContent(
|
|
41
|
+
<Progress variant='ring' message={localizedVal('Loading operator...', localeCategory)} placement='local' />
|
|
42
|
+
);
|
|
43
|
+
if (externalUser && externalUser.classID !== 'Data-Party-Operator') {
|
|
44
|
+
const fields = [
|
|
45
|
+
{
|
|
46
|
+
id: 'pyFirstName',
|
|
47
|
+
name: localizedVal('Name', localeCategory),
|
|
48
|
+
value: externalUser.name
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'pyEmail1',
|
|
52
|
+
name: localizedVal('Email', localeCategory),
|
|
53
|
+
value:
|
|
54
|
+
externalUser.email !== '' ? <Link href={`mailto:${externalUser.email}`}>{externalUser.email}</Link> : ''
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'pyPhoneNumber',
|
|
58
|
+
name: localizedVal('Phone', localeCategory),
|
|
59
|
+
value: externalUser.phone !== '' ? <Link href={`tel:${externalUser.phone}`}>{externalUser.phone}</Link> : ''
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
setIsLoading(false);
|
|
63
|
+
setpopoverContent(
|
|
64
|
+
<Glimpse
|
|
65
|
+
visual={
|
|
66
|
+
<Avatar
|
|
67
|
+
metaObj={{
|
|
68
|
+
name: externalUser.name
|
|
69
|
+
}}
|
|
70
|
+
/>
|
|
71
|
+
}
|
|
72
|
+
primary={externalUser.name}
|
|
73
|
+
secondary={[externalUser.position]}
|
|
74
|
+
fields={fields}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
} else {
|
|
78
|
+
localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
79
|
+
localeCategory = 'Operator';
|
|
80
|
+
return PCore.getUserApi()
|
|
81
|
+
.getOperatorDetails(id, true)
|
|
82
|
+
.then(res => {
|
|
83
|
+
if (res.data?.data && res.data.data[0].BusinessID && res.data.data[0].Name) {
|
|
84
|
+
const fields = [];
|
|
85
|
+
if (res.data.data[0].Name)
|
|
86
|
+
fields.push({
|
|
87
|
+
id: 'Name',
|
|
88
|
+
name: localizedVal('Name', localeCategory),
|
|
89
|
+
value: res.data.data[0].Name
|
|
90
|
+
});
|
|
91
|
+
if (res.data.data[0].BusinessID)
|
|
92
|
+
fields.push({
|
|
93
|
+
id: 'Email',
|
|
94
|
+
name: localizedVal('Email address', localeCategory),
|
|
95
|
+
value: <EmailDisplay value={res.data.data[0].BusinessID} />
|
|
96
|
+
});
|
|
97
|
+
return (
|
|
98
|
+
<Glimpse
|
|
99
|
+
heading={{
|
|
100
|
+
primary: res.data.data[0].Name,
|
|
101
|
+
secondary: res.data.data[0].BusinessID,
|
|
102
|
+
visual: (
|
|
103
|
+
<Avatar
|
|
104
|
+
metaObj={{
|
|
105
|
+
image: '',
|
|
106
|
+
name: res.data.data[0].Name
|
|
107
|
+
}}
|
|
108
|
+
/>
|
|
109
|
+
)
|
|
110
|
+
}}
|
|
111
|
+
fields={fields}
|
|
112
|
+
target={popoverTarget}
|
|
113
|
+
onDismiss={() => setPopoverTarget(null)}
|
|
114
|
+
/>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
/*
|
|
119
|
+
const { getOperatorDetails } = PCore.getUserApi();
|
|
120
|
+
getOperatorDetails(id)
|
|
121
|
+
.then((res) => {
|
|
122
|
+
if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {
|
|
123
|
+
const fields = [
|
|
124
|
+
{
|
|
125
|
+
id: 'pyOrganization',
|
|
126
|
+
name: localizedVal('Organization', localeCategory),
|
|
127
|
+
value: res.data.pyOperatorInfo.pyOrganization
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'pyTelephone',
|
|
131
|
+
name: localizedVal('Telephone', localeCategory),
|
|
132
|
+
value:
|
|
133
|
+
res.data.pyOperatorInfo.pyTelephone !== '' ? (
|
|
134
|
+
<Link href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>
|
|
135
|
+
{res.data.pyOperatorInfo.pyTelephone}
|
|
136
|
+
</Link>
|
|
137
|
+
) : (
|
|
138
|
+
''
|
|
139
|
+
)
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: 'pyEmailAddress',
|
|
143
|
+
name: localizedVal('Email address', localeCategory),
|
|
144
|
+
value:
|
|
145
|
+
res.data.pyOperatorInfo.pyEmailAddress !== '' ? (
|
|
146
|
+
<Link href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>
|
|
147
|
+
{res.data.pyOperatorInfo.pyEmailAddress}
|
|
148
|
+
</Link>
|
|
149
|
+
) : (
|
|
150
|
+
''
|
|
151
|
+
)
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 'ReportToUserName',
|
|
155
|
+
name: localizedVal('Reports to', localeCategory),
|
|
156
|
+
value: res.data.pyOperatorInfo.pyReportToUserName
|
|
157
|
+
}
|
|
158
|
+
];
|
|
159
|
+
setIsLoading(false);
|
|
160
|
+
setpopoverContent(
|
|
161
|
+
<Glimpse
|
|
162
|
+
visual={
|
|
163
|
+
<Avatar
|
|
164
|
+
metaObj={{
|
|
165
|
+
image: res.data.pyOperatorInfo.pyImageInsKey || '',
|
|
166
|
+
name: res.data.pyOperatorInfo.pyUserName
|
|
167
|
+
}}
|
|
168
|
+
/>
|
|
169
|
+
}
|
|
170
|
+
primary={res.data.pyOperatorInfo.pyUserName}
|
|
171
|
+
secondary={[res.data.pyOperatorInfo.pyPosition]}
|
|
172
|
+
fields={fields}
|
|
173
|
+
/>
|
|
174
|
+
);
|
|
175
|
+
} else {
|
|
176
|
+
setIsLoading(false);
|
|
177
|
+
setpopoverContent(<Flex container={{ pad: 1 }}>{localizedVal('Operator not found', localeCategory)}</Flex>);
|
|
178
|
+
}
|
|
179
|
+
})
|
|
180
|
+
.catch(() => {
|
|
181
|
+
setIsLoading(false);
|
|
182
|
+
setpopoverContent(
|
|
183
|
+
<Flex container={{ pad: 1 }}>{localizedVal('Error loading the operator profile', localeCategory)}</Flex>
|
|
184
|
+
);
|
|
185
|
+
});
|
|
186
|
+
*/
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
<%={{ }}=%> {{! revert delimiteres for mustache }}
|
|
191
|
+
|
|
192
|
+
const clickAction = (e) => {
|
|
193
|
+
setPopoverTarget(e.currentTarget);
|
|
194
|
+
setIsOpen(!isOpen);
|
|
195
|
+
if (popoverTarget === null) {
|
|
196
|
+
OperatorPreview();
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
const hidePopover = () => {
|
|
201
|
+
if (isOpen) {
|
|
202
|
+
setIsOpen(false);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
useOuterEvent('mousedown', [popoverEl, popoverTarget], hidePopover); // Call the method on clicking outside these elements
|
|
206
|
+
const hideOnEscape = (e) => {
|
|
207
|
+
if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const comp = (
|
|
211
|
+
<Fragment>
|
|
212
|
+
{metaObj ? (
|
|
213
|
+
<Button
|
|
214
|
+
variant='text'
|
|
215
|
+
aria-haspopup
|
|
216
|
+
aria-expanded={isOpen}
|
|
217
|
+
onClick={clickAction}
|
|
218
|
+
onKeyDown={hideOnEscape}
|
|
219
|
+
data-test-id={testId}
|
|
220
|
+
style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
|
|
221
|
+
>
|
|
222
|
+
<Avatar metaObj={metaObj}></Avatar>
|
|
223
|
+
</Button>
|
|
224
|
+
) : (
|
|
225
|
+
<Button
|
|
226
|
+
variant='link'
|
|
227
|
+
aria-haspopup
|
|
228
|
+
aria-expanded={isOpen}
|
|
229
|
+
onClick={clickAction}
|
|
230
|
+
onKeyDown={hideOnEscape}
|
|
231
|
+
data-test-id={testId}
|
|
232
|
+
style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
|
|
233
|
+
>
|
|
234
|
+
{name}
|
|
235
|
+
</Button>
|
|
236
|
+
)}
|
|
237
|
+
|
|
238
|
+
{isOpen && (
|
|
239
|
+
<Popover
|
|
240
|
+
ref={setPopoverEl}
|
|
241
|
+
groupId='operator'
|
|
242
|
+
target={popoverTarget}
|
|
243
|
+
placement='bottom-start'
|
|
244
|
+
style={isLoading ? { position: 'relative', width: '10rem', minHeight: '4rem' } : undefined}
|
|
245
|
+
strategy='fixed'
|
|
246
|
+
>
|
|
247
|
+
{popoverContent}
|
|
248
|
+
</Popover>
|
|
249
|
+
)}
|
|
250
|
+
</Fragment>
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
if (label !== null) {
|
|
254
|
+
return (
|
|
255
|
+
<FormField label={label} info={helperText}>
|
|
256
|
+
{comp}
|
|
257
|
+
</FormField>
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
return comp;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
Operator.propTypes = {
|
|
265
|
+
name: PropTypes.string,
|
|
266
|
+
id: PropTypes.string,
|
|
267
|
+
label: PropTypes.string,
|
|
268
|
+
testId: PropTypes.string,
|
|
269
|
+
helperText: PropTypes.string,
|
|
270
|
+
metaObj: PropTypes.object
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
Operator.defaultProps = {
|
|
274
|
+
name: '',
|
|
275
|
+
id: '',
|
|
276
|
+
label: null,
|
|
277
|
+
testId: null,
|
|
278
|
+
helperText: null,
|
|
279
|
+
metaObj: null
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export default Operator;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{COMPONENT_KEY}}",
|
|
3
|
+
"label": "{{COMPONENT_LABEL}}",
|
|
4
|
+
"description": "{{DESCRIPTION}}",
|
|
5
|
+
"organization": "{{ORGANIZATION}}",
|
|
6
|
+
"version": "{{VERSION}}",
|
|
7
|
+
"library": "{{LIBRARY}}",
|
|
8
|
+
"allowedApplications": {{{ALLOWEDAPPS}}},
|
|
9
|
+
"componentKey": "{{COMPONENT_KEY}}",
|
|
10
|
+
"type": "{{TYPE}}",
|
|
11
|
+
"subtype": {{{SUB_TYPE}}},
|
|
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
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
+
|
|
3
|
+
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
|
+
|
|
5
|
+
import { configProps, operatorDetails } from './mock.stories';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: '{{COMPONENT_CLASS_NAME}}',
|
|
9
|
+
decorators: [withKnobs],
|
|
10
|
+
component: {{COMPONENT_CLASS_NAME}}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
if (!window.PCore) {
|
|
14
|
+
window.PCore = {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
window.PCore.getLocaleUtils = () => {
|
|
18
|
+
return {
|
|
19
|
+
getLocaleValue: value => {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
window.PCore.getUserApi = () => {
|
|
26
|
+
return {
|
|
27
|
+
getOperatorDetails: () => {
|
|
28
|
+
return new Promise(resolve => {
|
|
29
|
+
resolve(operatorDetails);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
36
|
+
|
|
37
|
+
const props = {
|
|
38
|
+
label: configProps.label,
|
|
39
|
+
createLabel: configProps.createLabel,
|
|
40
|
+
updateLabel: configProps.updateLabel,
|
|
41
|
+
createOperator: configProps.createOperator,
|
|
42
|
+
updateOperator: configProps.updateOperator,
|
|
43
|
+
createDateTime: configProps.createDateTime,
|
|
44
|
+
updateDateTime: configProps.updateDateTime,
|
|
45
|
+
hideLabel: configProps.hideLabel,
|
|
46
|
+
|
|
47
|
+
getPConnect: () => {
|
|
48
|
+
return {
|
|
49
|
+
getActionsApi: () => {
|
|
50
|
+
return {
|
|
51
|
+
updateFieldValue: () => {/* nothing */},
|
|
52
|
+
triggerFieldChange: () => {/* nothing */}
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
getCaseSummary: () => {
|
|
56
|
+
return {
|
|
57
|
+
user: configProps.updateOperator.userId,
|
|
58
|
+
dateTimeValue: configProps.updateDateTime
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
ignoreSuggestion: () => {/* nothing */},
|
|
62
|
+
acceptSuggestion: () => {/* nothing */},
|
|
63
|
+
setInheritedProps: () => {/* nothing */},
|
|
64
|
+
resolveConfigProps: () => {/* nothing */}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<>
|
|
71
|
+
<{{COMPONENT_CLASS_NAME}} {...props} />
|
|
72
|
+
</>
|
|
73
|
+
);
|
|
74
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* eslint-disable no-nested-ternary */
|
|
2
|
+
import { Fragment } from 'react';
|
|
3
|
+
import { DateTimeDisplay, Card, CardHeader, CardContent, Flex } from '@pega/cosmos-react-core';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
|
|
6
|
+
// includes in bundle
|
|
7
|
+
import Operator from './Operator.jsx';
|
|
8
|
+
|
|
9
|
+
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// Created for Launchpad
|
|
13
|
+
|
|
14
|
+
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
15
|
+
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
16
|
+
export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
17
|
+
|
|
18
|
+
const {
|
|
19
|
+
getPConnect,
|
|
20
|
+
title,
|
|
21
|
+
label,
|
|
22
|
+
createLabel,
|
|
23
|
+
updateLabel
|
|
24
|
+
} = props;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
const { createTime, createdBy, lastUpdateTime, lastUpdatedBy } = getPConnect().getCaseSummary();
|
|
28
|
+
|
|
29
|
+
const [_label, user, dateTimeValue] =
|
|
30
|
+
label === 'Create operator'
|
|
31
|
+
? [createLabel, createdBy, createTime]
|
|
32
|
+
: [updateLabel, lastUpdatedBy, lastUpdateTime];
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
38
|
+
<Card>
|
|
39
|
+
<CardHeader>{title}</CardHeader>
|
|
40
|
+
<CardContent>
|
|
41
|
+
{{! pick new delimiteres for mustache }} {{=<% %>=}}
|
|
42
|
+
<Flex container={{ direction: 'row'}}>
|
|
43
|
+
<Operator label={_label} name={user} id={user} getPConnect={getPConnect} />
|
|
44
|
+
|
|
45
|
+
<%={{ }}=%> {{! revert delimiteres for mustache }}
|
|
46
|
+
{dateTimeValue && (
|
|
47
|
+
<Fragment>
|
|
48
|
+
{' '}
|
|
49
|
+
<DateTimeDisplay value={dateTimeValue} variant='relative' />
|
|
50
|
+
</Fragment>
|
|
51
|
+
)}
|
|
52
|
+
</Flex>
|
|
53
|
+
</CardContent>
|
|
54
|
+
</Card>
|
|
55
|
+
|
|
56
|
+
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
{{COMPONENT_CLASS_NAME}}.defaultProps = {
|
|
64
|
+
"label": "Create operator",
|
|
65
|
+
"title": "Create operator",
|
|
66
|
+
createLabel: null,
|
|
67
|
+
updateLabel: null
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
71
|
+
getPConnect: PropTypes.func.isRequired,
|
|
72
|
+
label: PropTypes.string,
|
|
73
|
+
title: PropTypes.string,
|
|
74
|
+
createLabel: PropTypes.string,
|
|
75
|
+
updateLabel: PropTypes.string
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// as objects are there in props, shallow comparision fails & re-rendering of comp happens even with
|
|
79
|
+
// same key value pairs in obj. hence using custom comparison function on when to re-render
|
|
80
|
+
// const comparisonFn = (prevProps, nextProps) => {
|
|
81
|
+
// return prevProps.updateDateTime === nextProps.updateDateTime;
|
|
82
|
+
// };
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
convertIntoPascalCase,
|
|
17
17
|
compileMustacheTemplate,
|
|
18
18
|
getComponentDirectoryPath,
|
|
19
|
+
getPegaServerConfig,
|
|
19
20
|
getPegaConfig,
|
|
20
21
|
getComponents,
|
|
21
22
|
getComponentDefaults,
|
|
@@ -220,10 +221,35 @@ export const validateCompile = async (
|
|
|
220
221
|
let pegaConfig = await getPegaConfig();
|
|
221
222
|
let templateParentDir = `./templates/${framework}`;
|
|
222
223
|
|
|
223
|
-
|
|
224
|
+
let templateDir = `${templateParentDir}/${type}/${sSubType}`;
|
|
224
225
|
let templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
|
|
225
226
|
templateDirectory = templateDirectory.replace(path.sep + 'create-all', path.sep + 'create');
|
|
226
227
|
|
|
228
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
229
|
+
const isLaunchpad = defaultPegaServerConfig.serverType === 'launchpad';
|
|
230
|
+
let originalFramework = framework;
|
|
231
|
+
|
|
232
|
+
if (isLaunchpad) {
|
|
233
|
+
framework = "Launchpad";
|
|
234
|
+
|
|
235
|
+
templateDir = `./templates/${framework}/${type}/${sSubType}`;
|
|
236
|
+
templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
|
|
237
|
+
templateDirectory = templateDirectory.replace(path.sep + 'create-all', path.sep + 'create');
|
|
238
|
+
|
|
239
|
+
// if doesn't exist, revert
|
|
240
|
+
if (!fs.existsSync(templateDirectory)) {
|
|
241
|
+
framework = originalFramework;
|
|
242
|
+
|
|
243
|
+
templateDir = `./templates/${framework}/${type}/${sSubType}`;
|
|
244
|
+
templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
|
|
245
|
+
templateDirectory = templateDirectory.replace(path.sep + 'create-all', path.sep + 'create');
|
|
246
|
+
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
227
253
|
const componentKey = `${organization}_${library}_${componentName}`;
|
|
228
254
|
|
|
229
255
|
const targetDirectory = await getComponentDirectoryPath(componentKey);
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
1
2
|
import chalk from 'chalk';
|
|
2
3
|
import inquirer from 'inquirer';
|
|
3
4
|
import ora from 'ora';
|
|
4
5
|
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import { join } from 'path';
|
|
8
|
+
|
|
5
9
|
import {
|
|
6
10
|
deleteLocalComponent,
|
|
7
11
|
deleteInfinityServerComponent,
|
|
8
12
|
deleteLaunchpadServerComponent,
|
|
9
13
|
getComponents,
|
|
10
14
|
getPegaServerConfig,
|
|
11
|
-
standardizeStr
|
|
15
|
+
standardizeStr,
|
|
16
|
+
sanitize
|
|
12
17
|
} from '../../util.js';
|
|
13
18
|
import { getComponentsFromServer } from '../list/helper.js';
|
|
14
19
|
|
|
20
|
+
import { TASKS_CONFIG_JSON_FILENAME, COMPONENTS_DIRECTORY_PATH, COMPONENTS_PATH } from '../../constants.js';
|
|
21
|
+
|
|
15
22
|
export const SOURCE_OF_COMPONENT_TYPES = {
|
|
16
23
|
SERVER: 'Server',
|
|
17
24
|
LOCAL: 'Local'
|
|
18
25
|
};
|
|
19
26
|
|
|
27
|
+
let library;
|
|
28
|
+
let organization;
|
|
29
|
+
|
|
20
30
|
export const getDeleteComponentsQuestions = async (options) => {
|
|
21
31
|
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
22
32
|
|
|
@@ -34,6 +44,51 @@ export const getDeleteComponentsQuestions = async (options) => {
|
|
|
34
44
|
];
|
|
35
45
|
};
|
|
36
46
|
|
|
47
|
+
export const getLaunchPadFilterQuestions = async () => {
|
|
48
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
49
|
+
|
|
50
|
+
const currentDirectory = process.cwd();
|
|
51
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
52
|
+
|
|
53
|
+
let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
54
|
+
data = data && JSON.parse(data);
|
|
55
|
+
|
|
56
|
+
if (!data[COMPONENTS_DIRECTORY_PATH]) {
|
|
57
|
+
console.error(`${chalk.red.bold('ERROR')} Could not able find components directory path in config.json`);
|
|
58
|
+
process.exit(1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const componentData = data[COMPONENTS_PATH];
|
|
62
|
+
|
|
63
|
+
({ library } = componentData);
|
|
64
|
+
({ organization } = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8')));
|
|
65
|
+
|
|
66
|
+
return [
|
|
67
|
+
{
|
|
68
|
+
name: 'organization',
|
|
69
|
+
message: 'Enter component organization (required)',
|
|
70
|
+
default: organization,
|
|
71
|
+
validate: (value) => {
|
|
72
|
+
if (value) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
return 'Please provide value for organization';
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'library',
|
|
80
|
+
message: 'Enter library name (required)',
|
|
81
|
+
default: library,
|
|
82
|
+
validate: (value) => {
|
|
83
|
+
if (value) {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
return 'Please provide value for library';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
];
|
|
90
|
+
};
|
|
91
|
+
|
|
37
92
|
export const deleteLocalComponents = async (sourceOfComponents, options) => {
|
|
38
93
|
const localComponents = await getComponents();
|
|
39
94
|
|
|
@@ -70,10 +125,19 @@ export const deleteLocalComponents = async (sourceOfComponents, options) => {
|
|
|
70
125
|
};
|
|
71
126
|
|
|
72
127
|
export const deleteServerComponents = async (sourceOfComponents, answers) => {
|
|
73
|
-
const spinner = ora('Fetching components from server').start();
|
|
74
128
|
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
75
129
|
const isLaunchpad = defaultPegaServerConfig.serverType === 'launchpad';
|
|
76
|
-
|
|
130
|
+
|
|
131
|
+
if (isLaunchpad) {
|
|
132
|
+
const questions = await getLaunchPadFilterQuestions();
|
|
133
|
+
const lpAnswers = await inquirer.prompt(questions);
|
|
134
|
+
|
|
135
|
+
({ library, organization } = lpAnswers);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const spinner = ora('Fetching components from server').start();
|
|
139
|
+
const data = await getComponentsFromServer(library, organization);
|
|
140
|
+
spinner.stop();
|
|
77
141
|
|
|
78
142
|
let serverComponents;
|
|
79
143
|
if (isLaunchpad) {
|
|
@@ -89,7 +153,6 @@ export const deleteServerComponents = async (sourceOfComponents, answers) => {
|
|
|
89
153
|
/* empty */
|
|
90
154
|
}
|
|
91
155
|
}
|
|
92
|
-
spinner.stop();
|
|
93
156
|
|
|
94
157
|
if (serverComponents && serverComponents?.length > 0) {
|
|
95
158
|
if (isLaunchpad) {
|