@pega/custom-dx-components 24.2.16 → 25.1.10-alpha-0.1
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 +37 -35
- package/src/cli.js +6 -0
- package/src/constants.js +11 -3
- package/src/tasks/authenticate/index.js +5 -0
- package/src/tasks/build-all/index.js +20 -1
- package/src/tasks/build-jest-assets/index.js +7 -8
- package/src/tasks/build-lib/helper.js +39 -20
- package/src/tasks/build-lib/index.js +40 -18
- package/src/tasks/create/index.js +5 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.test.tsx.mustache +19 -0
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.ts.mustache +0 -24
- package/src/tasks/create/templates/Constellation/Field/Date/demo.test.tsx.mustache +52 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.test.tsx.mustache +72 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.test.tsx.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.test.tsx.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.test.tsx.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/localizations.json.mustache +10 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.test.tsx.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.test.tsx.mustache +25 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.test.tsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +7 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/localizations.json.mustache +5 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.ts.mustache +0 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.test.tsx.mustache +29 -0
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.test.tsx.mustache +19 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.test.tsx.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.test.tsx.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.test.tsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.test.tsx.mustache +47 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.test.tsx.mustache +58 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.test.tsx.mustache +40 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.test.tsx.mustache +56 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +4 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.test.tsx.mustache +24 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.test.tsx.mustache +28 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/localizations.json.mustache +8 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.test.tsx.mustache +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/localizations.json.mustache +10 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.test.tsx.mustache +29 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.test.tsx.mustache +28 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +2 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.test.tsx.mustache +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.test.tsx.mustache +19 -0
- package/src/tasks/create-all/index.js +5 -1
- package/src/tasks/create-lib/helper.js +6 -2
- package/src/tasks/create-lib/index.js +18 -6
- package/src/tasks/create-version/helper.js +30 -0
- package/src/tasks/create-version/index.js +27 -8
- package/src/tasks/delete/helper.js +6 -2
- package/src/tasks/delete/index.js +5 -1
- package/src/tasks/delete-lib/helper.js +0 -1
- package/src/tasks/delete-lib/index.js +10 -11
- package/src/tasks/delete-pub/helper.js +142 -1
- package/src/tasks/delete-pub/index.js +75 -10
- package/src/tasks/delete-version/index.js +8 -2
- package/src/tasks/export-archive/helper.js +47 -3
- package/src/tasks/export-archive/index.js +70 -44
- package/src/tasks/import-archive/helper.js +249 -4
- package/src/tasks/import-archive/index.js +476 -40
- package/src/tasks/import-comp/helper.js +26 -3
- package/src/tasks/import-comp/index.js +78 -117
- package/src/tasks/index.js +1 -0
- package/src/tasks/init/template/.eslintrc.json +1 -1
- package/src/tasks/init/template/.storybook/{main.js → main.ts} +4 -3
- package/src/tasks/init/template/.storybook/manager.ts +6 -0
- package/src/tasks/init/template/.storybook/preview.tsx +4 -1
- package/src/tasks/init/template/.storybook/theme.js +1 -1
- package/src/tasks/init/template/babel.config.cjs +18 -9
- package/src/tasks/init/template/jest.config.cjs +29 -4
- package/src/tasks/init/template/package.json.mustache +54 -35
- package/src/tasks/init/template/setupFiles.ts +5 -0
- package/src/tasks/init/template/setupTests.ts +99 -0
- package/src/tasks/init/template/tasks.config.json +1 -1
- package/src/tasks/init/template/tsconfig.json +4 -1
- package/src/tasks/list/helper.js +21 -2
- package/src/tasks/list-lib/index.js +10 -1
- package/src/tasks/list-pub/helper.js +102 -1
- package/src/tasks/list-pub/index.js +108 -36
- package/src/tasks/move/index.js +1 -1
- package/src/tasks/promote-webpack/index.js +0 -3
- package/src/tasks/publish/helper.js +9 -7
- package/src/tasks/publish/index.js +85 -16
- package/src/tasks/publish-all/index.js +12 -1
- package/src/tasks/publish-archive/helper.js +58 -0
- package/src/tasks/publish-archive/index.js +238 -0
- package/src/tasks/publish-lib/index.js +277 -69
- package/src/tasks/rename/index.js +9 -1
- package/src/tasks/rename-lib/index.js +10 -1
- package/src/tasks/restore/index.js +84 -0
- package/src/tasks/set-perm/index.js +1 -2
- package/src/tasks/show-help/index.js +34 -13
- package/src/tasks/show-status/index.js +34 -11
- package/src/tasks/store/index.js +39 -18
- package/src/tasks/switch-lib/helper.js +0 -1
- package/src/tasks/switch-lib/index.js +13 -9
- package/src/tasks/switch-version/index.js +11 -6
- package/src/tasks/validator/index.js +1 -1
- package/src/util.js +463 -114
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +2 -1
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
- package/tests/assets/library/components/create/shared/create-nonce.ts +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyDetails}/Avatar.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyDetails}/Operator.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyPageCaseWidget}/Avatar.tsx +3 -4
- package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/Operator.tsx +3 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +76 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
- package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/create/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +12 -8
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +12 -8
- package/tests/functional/localCreateBuildDelete.test.js +12 -8
- package/tests/functional/localCreateListDelete.test.js +14 -9
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +13 -9
- package/tests/functional/localCreatePublishDelete.test.js +12 -8
- package/tests/functional/localCreateRenameDelete.test.js +12 -8
- package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +14 -14
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +17 -17
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +20 -20
- package/tests/functional/localLibCreateLibDeleteLib.test.js +17 -17
- package/tests/functional/localLibCreateLibExportImportLib.test.js +27 -27
- package/tests/functional/localLibCreateLibExportLib.test.js +19 -19
- package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +14 -14
- package/tests/functional/localLibCreateLibListDeleteLib.test.js +22 -22
- package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +31 -31
- package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +20 -20
- package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +13 -29
- package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +376 -0
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +18 -18
- package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +27 -27
- package/tests/functional/localPromoteRevertWP.test.js +9 -8
- package/tests/functional/localLibCreateLibPermDeleteLib.test.js +0 -144
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
// import { exec } from 'child_process';
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const util = require('node:util');
|
|
5
|
+
const exec = util.promisify(require('node:child_process').exec);
|
|
6
|
+
|
|
7
|
+
const tasksConfigDir = path.resolve('../../..', 'tasks.config.json');
|
|
8
|
+
const tasksConfigData = fs.readFileSync(tasksConfigDir, { encoding: 'utf8' });
|
|
9
|
+
let tasksConfigJSON = JSON.parse(tasksConfigData);
|
|
10
|
+
|
|
11
|
+
const packageJSONDir = path.resolve('../../..', 'package.json');
|
|
12
|
+
const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
|
|
13
|
+
let packageJSON = JSON.parse(packageJSONData);
|
|
14
|
+
|
|
15
|
+
let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
|
|
16
|
+
const savedLibraryBased = isLibraryBasedCL;
|
|
17
|
+
const savedOrganization = packageJSON.organization;
|
|
18
|
+
|
|
19
|
+
const serverType = tasksConfigJSON['server-config'].serverType;
|
|
20
|
+
const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
|
|
21
|
+
let compType = isLibraryBasedCL ? "library" : "original";
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
describe(`createLib createAll list createLibVersion(with copy) switchLibe list deleteLibVersion(all) : ${serverDir} - ${compType}` , () => {
|
|
25
|
+
|
|
26
|
+
beforeAll( async() => {
|
|
27
|
+
|
|
28
|
+
// make libraryBased
|
|
29
|
+
isLibraryBasedCL = true;
|
|
30
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
31
|
+
compType = isLibraryBasedCL ? "library" : "original";
|
|
32
|
+
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
33
|
+
|
|
34
|
+
const storeDir = path.join(path.resolve('../../..'), 'store');
|
|
35
|
+
if (fs.existsSync(storeDir)) {
|
|
36
|
+
fs.rmSync(storeDir, { recursive: true, force: true, maxRetries: 2 });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// make organzation Pega
|
|
40
|
+
packageJSON.organization = "Pega";
|
|
41
|
+
fs.writeFileSync(packageJSONDir, JSON.stringify(packageJSON, null, 4), { encoding: 'utf8' });
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
const componentsDir = path.join(path.resolve('../../..'), 'src/components');
|
|
45
|
+
if (fs.existsSync(componentsDir)) {
|
|
46
|
+
fs.rmSync(componentsDir, { recursive: true, force: true, maxRetries: 2 });
|
|
47
|
+
fs.mkdirSync(componentsDir, { recursive: true });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
afterAll( async() => {
|
|
56
|
+
|
|
57
|
+
//restore
|
|
58
|
+
isLibraryBasedCL = savedLibraryBased
|
|
59
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
60
|
+
|
|
61
|
+
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
62
|
+
|
|
63
|
+
// return organzation
|
|
64
|
+
packageJSON.organization = savedOrganization;
|
|
65
|
+
fs.writeFileSync(packageJSONDir, JSON.stringify(packageJSON, null, 4), { encoding: 'utf8' });
|
|
66
|
+
|
|
67
|
+
const componentsDir = path.join(path.resolve('../../..'), 'src/components');
|
|
68
|
+
if (fs.existsSync(componentsDir)) {
|
|
69
|
+
fs.rmSync(componentsDir, { recursive: true, force: true, maxRetries: 2 });
|
|
70
|
+
fs.mkdirSync(componentsDir, { recursive: true });
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const storeDir = path.join(path.resolve('../../..'), 'store');
|
|
74
|
+
if (fs.existsSync(storeDir)) {
|
|
75
|
+
fs.rmSync(storeDir, { recursive: true, force: true, maxRetries: 2 });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
79
|
+
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
|
|
84
|
+
|
|
85
|
+
const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
|
|
86
|
+
const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
|
|
87
|
+
|
|
88
|
+
const { stdout, stderr } = await exec(script);
|
|
89
|
+
expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
|
|
90
|
+
|
|
91
|
+
const doesExist = fs.existsSync(path.resolve('../../..', compConf));
|
|
92
|
+
|
|
93
|
+
expect(doesExist).toBeTruthy();
|
|
94
|
+
|
|
95
|
+
}, 30000);
|
|
96
|
+
|
|
97
|
+
it('npm run createAll', async () => {
|
|
98
|
+
const script = `npm run createAll "My" 0.0.1 DXIL "" Pega Jest --prefix ../../..`;
|
|
99
|
+
|
|
100
|
+
const { stdout, stderr } = await exec(script);
|
|
101
|
+
// console.log(stdout);
|
|
102
|
+
expect(stdout).not.toBeNull();
|
|
103
|
+
expect(stderr).not.toBeNull();
|
|
104
|
+
|
|
105
|
+
// want message to contain component name
|
|
106
|
+
expect(stdout).toContain('created Pega_DXIL_My');
|
|
107
|
+
|
|
108
|
+
// don't want message with already exists
|
|
109
|
+
expect(stdout).not.toContain('already exists');
|
|
110
|
+
|
|
111
|
+
// check to see file exists
|
|
112
|
+
|
|
113
|
+
// pick one
|
|
114
|
+
const newFileName = 'Pega_DXIL_MyBoolean';
|
|
115
|
+
|
|
116
|
+
// const fileDir = path.resolve(`src/components/${newFileName}`);
|
|
117
|
+
const createFile = path.resolve(
|
|
118
|
+
'../../..',
|
|
119
|
+
path.join(`src/components/${newFileName}`, 'index.tsx')
|
|
120
|
+
);
|
|
121
|
+
const doesExist = fs.existsSync(createFile);
|
|
122
|
+
expect(doesExist).toBeTruthy();
|
|
123
|
+
|
|
124
|
+
// if (doesExist) {
|
|
125
|
+
// // remove it
|
|
126
|
+
// fs.rmdirSync(fileDir, { recursive: true });
|
|
127
|
+
// }
|
|
128
|
+
}, 90000);
|
|
129
|
+
|
|
130
|
+
it('npm run list', async () => {
|
|
131
|
+
const script = 'npm run list --prefix ../../..';
|
|
132
|
+
const { stdout, stderr } = await exec(script);
|
|
133
|
+
|
|
134
|
+
expect(stderr).not.toBeNull();
|
|
135
|
+
|
|
136
|
+
// console.log(stdout);
|
|
137
|
+
expect(stdout).not.toBeNull();
|
|
138
|
+
expect(stdout).toContain('Pega_DXIL_MyText');
|
|
139
|
+
expect(stdout).toContain('Pega_DXIL_MyTextInput');
|
|
140
|
+
expect(stdout).toContain('Pega_DXIL_MyParagraph');
|
|
141
|
+
expect(stdout).toContain('Pega_DXIL_MyEmail');
|
|
142
|
+
expect(stdout).toContain('Pega_DXIL_MyPhone');
|
|
143
|
+
expect(stdout).toContain('Pega_DXIL_MyURL');
|
|
144
|
+
expect(stdout).toContain('Pega_DXIL_MyInteger');
|
|
145
|
+
expect(stdout).toContain('Pega_DXIL_MyDecimal');
|
|
146
|
+
expect(stdout).toContain('Pega_DXIL_MyCurrency');
|
|
147
|
+
expect(stdout).toContain('Pega_DXIL_MyPercentage');
|
|
148
|
+
expect(stdout).toContain('Pega_DXIL_MyBoolean');
|
|
149
|
+
expect(stdout).toContain('Pega_DXIL_MyDate');
|
|
150
|
+
expect(stdout).toContain('Pega_DXIL_MyDateTime');
|
|
151
|
+
expect(stdout).toContain('Pega_DXIL_MyTimeOfDay');
|
|
152
|
+
expect(stdout).toContain('Pega_DXIL_MyPicklist');
|
|
153
|
+
expect(stdout).toContain('Pega_DXIL_MySearchbox');
|
|
154
|
+
expect(stdout).toContain('Pega_DXIL_MyRadiobuttons');
|
|
155
|
+
expect(stdout).toContain('Pega_DXIL_MyDetails');
|
|
156
|
+
expect(stdout).toContain('Pega_DXIL_MyTwoColumnDetails');
|
|
157
|
+
expect(stdout).toContain('Pega_DXIL_MyForm');
|
|
158
|
+
expect(stdout).toContain('Pega_DXIL_MyTwoColumnForm');
|
|
159
|
+
expect(stdout).toContain('Pega_DXIL_MyPage');
|
|
160
|
+
expect(stdout).toContain('Pega_DXIL_MyCaseWidget');
|
|
161
|
+
expect(stdout).toContain('Pega_DXIL_MyPageWidget');
|
|
162
|
+
expect(stdout).toContain('Pega_DXIL_MyPageCaseWidget');
|
|
163
|
+
// done();
|
|
164
|
+
}, 10000);
|
|
165
|
+
|
|
166
|
+
it('compare created to default', async () => {
|
|
167
|
+
const compList = [
|
|
168
|
+
'Pega_DXIL_MyText',
|
|
169
|
+
'Pega_DXIL_MyTextInput',
|
|
170
|
+
'Pega_DXIL_MyParagraph',
|
|
171
|
+
'Pega_DXIL_MyEmail',
|
|
172
|
+
'Pega_DXIL_MyPhone',
|
|
173
|
+
'Pega_DXIL_MyURL',
|
|
174
|
+
'Pega_DXIL_MyInteger',
|
|
175
|
+
'Pega_DXIL_MyDecimal',
|
|
176
|
+
'Pega_DXIL_MyCurrency',
|
|
177
|
+
'Pega_DXIL_MyPercentage',
|
|
178
|
+
'Pega_DXIL_MyBoolean',
|
|
179
|
+
'Pega_DXIL_MyDate',
|
|
180
|
+
'Pega_DXIL_MyDateTime',
|
|
181
|
+
'Pega_DXIL_MyTimeOfDay',
|
|
182
|
+
'Pega_DXIL_MyPicklist',
|
|
183
|
+
'Pega_DXIL_MySearchbox',
|
|
184
|
+
'Pega_DXIL_MyRadiobuttons',
|
|
185
|
+
'Pega_DXIL_MyDetails',
|
|
186
|
+
'Pega_DXIL_MyTwoColumnDetails',
|
|
187
|
+
'Pega_DXIL_MyForm',
|
|
188
|
+
'Pega_DXIL_MyTwoColumnForm',
|
|
189
|
+
'Pega_DXIL_MyPage',
|
|
190
|
+
'Pega_DXIL_MyCaseWidget',
|
|
191
|
+
'Pega_DXIL_MyPageWidget',
|
|
192
|
+
'Pega_DXIL_MyPageCaseWidget'
|
|
193
|
+
];
|
|
194
|
+
|
|
195
|
+
compList.forEach(component => {
|
|
196
|
+
const componentDir = path.resolve('../../..', `src/components/${component}`);
|
|
197
|
+
const assetDir = path.resolve(`tests/assets/${compType}/components/createAll/${serverDir}/${component}`);
|
|
198
|
+
// get files of directory
|
|
199
|
+
const componentFiles = fs.readdirSync(componentDir);
|
|
200
|
+
|
|
201
|
+
// get files of assets
|
|
202
|
+
// const assetFiles = fs.readdirSync(assetDir);
|
|
203
|
+
|
|
204
|
+
// compare
|
|
205
|
+
componentFiles.forEach(file => {
|
|
206
|
+
const componentFilePath = path.join(componentDir, file);
|
|
207
|
+
const assetFilePath = path.join(assetDir, file);
|
|
208
|
+
|
|
209
|
+
let componentFileData = fs.readFileSync(componentFilePath, { encoding: 'utf8' });
|
|
210
|
+
let assetFileData = fs.readFileSync(assetFilePath, { encoding: 'utf8' });
|
|
211
|
+
|
|
212
|
+
// so that we don't have to generate all new assets, change "version"
|
|
213
|
+
// from 0.0.1 to 0.0.1 for now
|
|
214
|
+
if (file === "config.json") {
|
|
215
|
+
expect(componentFileData).toContain("0.0.1");
|
|
216
|
+
// componentFileData = componentFileData.replace("0.0.1", "0.0.1");
|
|
217
|
+
|
|
218
|
+
// normalize
|
|
219
|
+
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
220
|
+
assetFileData = JSON.stringify(JSON.parse(assetFileData));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
expect(componentFileData).toEqual(assetFileData);
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
}, 10000);
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
it(`npm run store all - ${isLibraryBasedCL}`, async() => {
|
|
233
|
+
|
|
234
|
+
const script = `npm run storeLibVersion Y --prefix ../../..`;
|
|
235
|
+
const { stdout, stderr } = await exec(script);
|
|
236
|
+
|
|
237
|
+
expect(stdout).toContain('Components Stored');
|
|
238
|
+
|
|
239
|
+
}, 30000);
|
|
240
|
+
|
|
241
|
+
it(`npm run delete all - ${isLibraryBasedCL}`, async() => {
|
|
242
|
+
|
|
243
|
+
const script = `npm run deleteAll Local Y --prefix ../../..`;
|
|
244
|
+
const { stdout, stderr } = await exec(script);
|
|
245
|
+
|
|
246
|
+
expect(stdout).toContain('Pega_DXIL_MyText is deleted from Local');
|
|
247
|
+
expect(stdout).toContain('Pega_DXIL_MyPageCaseWidget is deleted from Local');
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
}, 30000);
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
it(`npm run restore all - ${isLibraryBasedCL}`, async() => {
|
|
254
|
+
|
|
255
|
+
const script = `npm run restoreLibVersion Y --prefix ../../..`;
|
|
256
|
+
const { stdout, stderr } = await exec(script);
|
|
257
|
+
|
|
258
|
+
expect(stdout).toContain('Components restored');
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
}, 30000);
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
it('npm run list of restored', async () => {
|
|
265
|
+
const script = 'npm run list --prefix ../../..';
|
|
266
|
+
const { stdout, stderr } = await exec(script);
|
|
267
|
+
|
|
268
|
+
expect(stderr).not.toBeNull();
|
|
269
|
+
|
|
270
|
+
// console.log(stdout);
|
|
271
|
+
expect(stdout).not.toBeNull();
|
|
272
|
+
expect(stdout).toContain('Pega_DXIL_MyText');
|
|
273
|
+
expect(stdout).toContain('Pega_DXIL_MyTextInput');
|
|
274
|
+
expect(stdout).toContain('Pega_DXIL_MyParagraph');
|
|
275
|
+
expect(stdout).toContain('Pega_DXIL_MyEmail');
|
|
276
|
+
expect(stdout).toContain('Pega_DXIL_MyPhone');
|
|
277
|
+
expect(stdout).toContain('Pega_DXIL_MyURL');
|
|
278
|
+
expect(stdout).toContain('Pega_DXIL_MyInteger');
|
|
279
|
+
expect(stdout).toContain('Pega_DXIL_MyDecimal');
|
|
280
|
+
expect(stdout).toContain('Pega_DXIL_MyCurrency');
|
|
281
|
+
expect(stdout).toContain('Pega_DXIL_MyPercentage');
|
|
282
|
+
expect(stdout).toContain('Pega_DXIL_MyBoolean');
|
|
283
|
+
expect(stdout).toContain('Pega_DXIL_MyDate');
|
|
284
|
+
expect(stdout).toContain('Pega_DXIL_MyDateTime');
|
|
285
|
+
expect(stdout).toContain('Pega_DXIL_MyTimeOfDay');
|
|
286
|
+
expect(stdout).toContain('Pega_DXIL_MyPicklist');
|
|
287
|
+
expect(stdout).toContain('Pega_DXIL_MySearchbox');
|
|
288
|
+
expect(stdout).toContain('Pega_DXIL_MyRadiobuttons');
|
|
289
|
+
expect(stdout).toContain('Pega_DXIL_MyDetails');
|
|
290
|
+
expect(stdout).toContain('Pega_DXIL_MyTwoColumnDetails');
|
|
291
|
+
expect(stdout).toContain('Pega_DXIL_MyForm');
|
|
292
|
+
expect(stdout).toContain('Pega_DXIL_MyTwoColumnForm');
|
|
293
|
+
expect(stdout).toContain('Pega_DXIL_MyPage');
|
|
294
|
+
expect(stdout).toContain('Pega_DXIL_MyCaseWidget');
|
|
295
|
+
expect(stdout).toContain('Pega_DXIL_MyPageWidget');
|
|
296
|
+
expect(stdout).toContain('Pega_DXIL_MyPageCaseWidget');
|
|
297
|
+
// done();
|
|
298
|
+
}, 10000);
|
|
299
|
+
|
|
300
|
+
it('compare created to default', async () => {
|
|
301
|
+
const compList = [
|
|
302
|
+
'Pega_DXIL_MyText',
|
|
303
|
+
'Pega_DXIL_MyTextInput',
|
|
304
|
+
'Pega_DXIL_MyParagraph',
|
|
305
|
+
'Pega_DXIL_MyEmail',
|
|
306
|
+
'Pega_DXIL_MyPhone',
|
|
307
|
+
'Pega_DXIL_MyURL',
|
|
308
|
+
'Pega_DXIL_MyInteger',
|
|
309
|
+
'Pega_DXIL_MyDecimal',
|
|
310
|
+
'Pega_DXIL_MyCurrency',
|
|
311
|
+
'Pega_DXIL_MyPercentage',
|
|
312
|
+
'Pega_DXIL_MyBoolean',
|
|
313
|
+
'Pega_DXIL_MyDate',
|
|
314
|
+
'Pega_DXIL_MyDateTime',
|
|
315
|
+
'Pega_DXIL_MyTimeOfDay',
|
|
316
|
+
'Pega_DXIL_MyPicklist',
|
|
317
|
+
'Pega_DXIL_MySearchbox',
|
|
318
|
+
'Pega_DXIL_MyRadiobuttons',
|
|
319
|
+
'Pega_DXIL_MyDetails',
|
|
320
|
+
'Pega_DXIL_MyTwoColumnDetails',
|
|
321
|
+
'Pega_DXIL_MyForm',
|
|
322
|
+
'Pega_DXIL_MyTwoColumnForm',
|
|
323
|
+
'Pega_DXIL_MyPage',
|
|
324
|
+
'Pega_DXIL_MyCaseWidget',
|
|
325
|
+
'Pega_DXIL_MyPageWidget',
|
|
326
|
+
'Pega_DXIL_MyPageCaseWidget'
|
|
327
|
+
];
|
|
328
|
+
|
|
329
|
+
compList.forEach(component => {
|
|
330
|
+
const componentDir = path.resolve('../../..', `src/components/${component}`);
|
|
331
|
+
const assetDir = path.resolve(`tests/assets/${compType}/components/createAll/${serverDir}/${component}`);
|
|
332
|
+
// get files of directory
|
|
333
|
+
const componentFiles = fs.readdirSync(componentDir);
|
|
334
|
+
|
|
335
|
+
// get files of assets
|
|
336
|
+
// const assetFiles = fs.readdirSync(assetDir);
|
|
337
|
+
|
|
338
|
+
// compare
|
|
339
|
+
componentFiles.forEach(file => {
|
|
340
|
+
const componentFilePath = path.join(componentDir, file);
|
|
341
|
+
const assetFilePath = path.join(assetDir, file);
|
|
342
|
+
|
|
343
|
+
let componentFileData = fs.readFileSync(componentFilePath, { encoding: 'utf8' });
|
|
344
|
+
let assetFileData = fs.readFileSync(assetFilePath, { encoding: 'utf8' });
|
|
345
|
+
|
|
346
|
+
// so that we don't have to generate all new assets, change "version"
|
|
347
|
+
// from 0.0.2 to 0.0.1 for now
|
|
348
|
+
if (file === "config.json") {
|
|
349
|
+
expect(componentFileData).toContain("0.0.1");
|
|
350
|
+
|
|
351
|
+
// normalize
|
|
352
|
+
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
353
|
+
assetFileData = JSON.stringify(JSON.parse(assetFileData));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
expect(componentFileData).toEqual(assetFileData);
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
}, 10000);
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
it(`npm run deleteLibVersion ALL - ${isLibraryBasedCL}`, async() => {
|
|
367
|
+
|
|
368
|
+
const script = `npm run deleteLibVersion Pega_DXIL ALL Y --prefix ../../..`;
|
|
369
|
+
const { stdout, stderr } = await exec(script);
|
|
370
|
+
|
|
371
|
+
expect(stdout).toContain('Pega_DXIL is deleted from Local.');
|
|
372
|
+
|
|
373
|
+
}, 30000);
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
});
|
|
@@ -13,13 +13,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
|
|
|
13
13
|
const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
|
|
14
14
|
let packageJSON = JSON.parse(packageJSONData);
|
|
15
15
|
|
|
16
|
-
let
|
|
17
|
-
const savedLibraryBased =
|
|
16
|
+
let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
|
|
17
|
+
const savedLibraryBased = isLibraryBasedCL;
|
|
18
18
|
const savedOrganization = packageJSON.organization;
|
|
19
19
|
|
|
20
20
|
const serverType = tasksConfigJSON['server-config'].serverType;
|
|
21
21
|
const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
|
|
22
|
-
let compType =
|
|
22
|
+
let compType = isLibraryBasedCL ? "library" : "original";
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , () => {
|
|
@@ -27,9 +27,9 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
27
27
|
beforeAll( async() => {
|
|
28
28
|
|
|
29
29
|
// make libraryBased
|
|
30
|
-
|
|
31
|
-
tasksConfigJSON['
|
|
32
|
-
compType =
|
|
30
|
+
isLibraryBasedCL = true;
|
|
31
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
32
|
+
compType = isLibraryBasedCL ? "library" : "original";
|
|
33
33
|
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
34
34
|
|
|
35
35
|
const storeDir = path.join(path.resolve('../../..'), 'store');
|
|
@@ -56,8 +56,8 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
56
56
|
afterAll( async() => {
|
|
57
57
|
|
|
58
58
|
//restore
|
|
59
|
-
|
|
60
|
-
tasksConfigJSON['
|
|
59
|
+
isLibraryBasedCL = savedLibraryBased
|
|
60
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
61
61
|
|
|
62
62
|
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
63
63
|
|
|
@@ -76,13 +76,13 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
it(`npm run createLib - ${
|
|
79
|
+
it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
|
|
80
80
|
|
|
81
81
|
const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
|
|
82
|
-
const compConf = path.join("store", "Pega_DXIL","0.0.1
|
|
82
|
+
const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
|
|
83
83
|
|
|
84
84
|
const { stdout, stderr } = await exec(script);
|
|
85
|
-
expect(stdout).toContain('Library Pega_DXIL/0.0.1
|
|
85
|
+
expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
|
|
86
86
|
|
|
87
87
|
const doesExist = fs.existsSync(path.resolve('../../..', compConf));
|
|
88
88
|
|
|
@@ -152,7 +152,7 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
152
152
|
// // remove it
|
|
153
153
|
// fs.rmdirSync(fileDir, { recursive: true });
|
|
154
154
|
// }
|
|
155
|
-
},
|
|
155
|
+
}, 30000);
|
|
156
156
|
|
|
157
157
|
it('npm run create Local details', async () => {
|
|
158
158
|
const fileName = 'MyTestDetails';
|
|
@@ -184,9 +184,9 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
184
184
|
// // remove it
|
|
185
185
|
// fs.rmdirSync(fileDir, { recursive: true });
|
|
186
186
|
// }
|
|
187
|
-
},
|
|
187
|
+
}, 30000);
|
|
188
188
|
|
|
189
|
-
it(`npm run validate Pega_DXIL_MyTestText - ${
|
|
189
|
+
it(`npm run validate Pega_DXIL_MyTestText - ${isLibraryBasedCL}`, async() => {
|
|
190
190
|
|
|
191
191
|
const script = `npm run validate Pega_DXIL_MyTestText --prefix ../../..`;
|
|
192
192
|
const { stdout, stderr } = await exec(script);
|
|
@@ -196,7 +196,7 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
196
196
|
|
|
197
197
|
}, 200000);
|
|
198
198
|
|
|
199
|
-
it(`npm run validateAll - ${
|
|
199
|
+
it(`npm run validateAll - ${isLibraryBasedCL}`, async() => {
|
|
200
200
|
|
|
201
201
|
const script = `npm run validateAll --prefix ../../..`;
|
|
202
202
|
const { stdout, stderr } = await exec(script);
|
|
@@ -205,15 +205,15 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
|
|
|
205
205
|
expect(stdout).toContain('Pega_DXIL_MyTestPage schema is valid');
|
|
206
206
|
expect(stdout).toContain('Pega_DXIL_MyTestDetails schema is valid');
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
expect(stdout).toContain('Validation via build library...');
|
|
209
209
|
expect(stdout).toContain('Done.');
|
|
210
210
|
|
|
211
211
|
}, 200000);
|
|
212
212
|
|
|
213
213
|
|
|
214
|
-
it(`npm run deleteLib - ${
|
|
214
|
+
it(`npm run deleteLib - ${isLibraryBasedCL}`, async() => {
|
|
215
215
|
|
|
216
|
-
const script = `npm run deleteLib Pega_DXIL 0.0.1
|
|
216
|
+
const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
|
|
217
217
|
const { stdout, stderr } = await exec(script);
|
|
218
218
|
expect(stdout).toContain('Pega_DXIL is deleted from Local.');
|
|
219
219
|
|
|
@@ -12,13 +12,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
|
|
|
12
12
|
const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
|
|
13
13
|
let packageJSON = JSON.parse(packageJSONData);
|
|
14
14
|
|
|
15
|
-
let
|
|
16
|
-
const savedLibraryBased =
|
|
15
|
+
let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
|
|
16
|
+
const savedLibraryBased = isLibraryBasedCL;
|
|
17
17
|
const savedOrganization = packageJSON.organization;
|
|
18
18
|
|
|
19
19
|
const serverType = tasksConfigJSON['server-config'].serverType;
|
|
20
20
|
const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
|
|
21
|
-
let compType =
|
|
21
|
+
let compType = isLibraryBasedCL ? "library" : "original";
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
describe(`createLib createAll list createLibVersion(with copy) switchLibe list deleteLibVersion(all) : ${serverDir} - ${compType}` , () => {
|
|
@@ -26,9 +26,9 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
26
26
|
beforeAll( async() => {
|
|
27
27
|
|
|
28
28
|
// make libraryBased
|
|
29
|
-
|
|
30
|
-
tasksConfigJSON['
|
|
31
|
-
compType =
|
|
29
|
+
isLibraryBasedCL = true;
|
|
30
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
31
|
+
compType = isLibraryBasedCL ? "library" : "original";
|
|
32
32
|
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
33
33
|
|
|
34
34
|
const storeDir = path.join(path.resolve('../../..'), 'store');
|
|
@@ -55,8 +55,8 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
55
55
|
afterAll( async() => {
|
|
56
56
|
|
|
57
57
|
//restore
|
|
58
|
-
|
|
59
|
-
tasksConfigJSON['
|
|
58
|
+
isLibraryBasedCL = savedLibraryBased
|
|
59
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
60
60
|
|
|
61
61
|
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
62
62
|
|
|
@@ -80,13 +80,13 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
it(`npm run createLib - ${
|
|
83
|
+
it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
|
|
84
84
|
|
|
85
85
|
const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
|
|
86
|
-
const compConf = path.join("store", "Pega_DXIL","0.0.1
|
|
86
|
+
const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
|
|
87
87
|
|
|
88
88
|
const { stdout, stderr } = await exec(script);
|
|
89
|
-
expect(stdout).toContain('Library Pega_DXIL/0.0.1
|
|
89
|
+
expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
|
|
90
90
|
|
|
91
91
|
const doesExist = fs.existsSync(path.resolve('../../..', compConf));
|
|
92
92
|
|
|
@@ -210,10 +210,10 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
210
210
|
let assetFileData = fs.readFileSync(assetFilePath, { encoding: 'utf8' });
|
|
211
211
|
|
|
212
212
|
// so that we don't have to generate all new assets, change "version"
|
|
213
|
-
// from 0.0.1
|
|
213
|
+
// from 0.0.1 to 0.0.1 for now
|
|
214
214
|
if (file === "config.json") {
|
|
215
|
-
expect(componentFileData).toContain("0.0.1
|
|
216
|
-
// componentFileData = componentFileData.replace("0.0.1
|
|
215
|
+
expect(componentFileData).toContain("0.0.1");
|
|
216
|
+
// componentFileData = componentFileData.replace("0.0.1", "0.0.1");
|
|
217
217
|
|
|
218
218
|
// normalize
|
|
219
219
|
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
@@ -225,13 +225,13 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
225
225
|
});
|
|
226
226
|
}, 10000);
|
|
227
227
|
|
|
228
|
-
it(`npm run createLibVersion and copy - ${
|
|
228
|
+
it(`npm run createLibVersion and copy - ${isLibraryBasedCL}`, async() => {
|
|
229
229
|
|
|
230
230
|
const script = `npm run createLibVersion 0.0.2 N Y NoAbout --prefix ../../..`;
|
|
231
231
|
const { stdout, stderr } = await exec(script);
|
|
232
232
|
|
|
233
|
-
expect(stdout).toContain('Library Pega_DXIL/0.0.1
|
|
234
|
-
expect(stdout).toContain('Library Pega_DXIL/0.0.2
|
|
233
|
+
expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been stored.');
|
|
234
|
+
expect(stdout).toContain('Library Pega_DXIL/0.0.2 has been created!');
|
|
235
235
|
|
|
236
236
|
}, 30000);
|
|
237
237
|
|
|
@@ -318,10 +318,10 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
318
318
|
let assetFileData = fs.readFileSync(assetFilePath, { encoding: 'utf8' });
|
|
319
319
|
|
|
320
320
|
// so that we don't have to generate all new assets, change "version"
|
|
321
|
-
// from 0.0.2
|
|
321
|
+
// from 0.0.2 to 0.0.1 for now
|
|
322
322
|
if (file === "config.json") {
|
|
323
|
-
expect(componentFileData).toContain("0.0.2
|
|
324
|
-
componentFileData = componentFileData.replace("0.0.2
|
|
323
|
+
expect(componentFileData).toContain("0.0.2");
|
|
324
|
+
componentFileData = componentFileData.replace("0.0.2", "0.0.1");
|
|
325
325
|
|
|
326
326
|
// normalize
|
|
327
327
|
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
@@ -333,12 +333,12 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
333
333
|
});
|
|
334
334
|
}, 10000);
|
|
335
335
|
|
|
336
|
-
it(`npm run switchLibVersion - ${
|
|
336
|
+
it(`npm run switchLibVersion - ${isLibraryBasedCL}`, async() => {
|
|
337
337
|
// we are at version 0.0.2, switch to 0.0.1
|
|
338
|
-
const script = `npm run switchLibVersion Y 0.0.1
|
|
338
|
+
const script = `npm run switchLibVersion Y 0.0.1 NoAbout --prefix ../../..`;
|
|
339
339
|
const { stdout, stderr } = await exec(script);
|
|
340
340
|
|
|
341
|
-
expect(stdout).toContain('Switched to Pega_DXIL/0.0.1
|
|
341
|
+
expect(stdout).toContain('Switched to Pega_DXIL/0.0.1!');
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
}, 30000);
|
|
@@ -426,10 +426,10 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
426
426
|
let assetFileData = fs.readFileSync(assetFilePath, { encoding: 'utf8' });
|
|
427
427
|
|
|
428
428
|
// so that we don't have to generate all new assets, change "version"
|
|
429
|
-
// from 0.0.1
|
|
429
|
+
// from 0.0.1 to 0.0.1 for now
|
|
430
430
|
if (file === "config.json") {
|
|
431
|
-
expect(componentFileData).toContain("0.0.1
|
|
432
|
-
// componentFileData = componentFileData.replace("0.0.1
|
|
431
|
+
expect(componentFileData).toContain("0.0.1");
|
|
432
|
+
// componentFileData = componentFileData.replace("0.0.1", "0.0.1");
|
|
433
433
|
// normalize
|
|
434
434
|
componentFileData = JSON.stringify(JSON.parse(componentFileData));
|
|
435
435
|
assetFileData = JSON.stringify(JSON.parse(assetFileData));
|
|
@@ -440,7 +440,7 @@ describe(`createLib createAll list createLibVersion(with copy) switchLibe list d
|
|
|
440
440
|
});
|
|
441
441
|
}, 10000);
|
|
442
442
|
|
|
443
|
-
it(`npm run deleteLibVersion ALL - ${
|
|
443
|
+
it(`npm run deleteLibVersion ALL - ${isLibraryBasedCL}`, async() => {
|
|
444
444
|
|
|
445
445
|
const script = `npm run deleteLibVersion Pega_DXIL ALL Y --prefix ../../..`;
|
|
446
446
|
const { stdout, stderr } = await exec(script);
|
|
@@ -12,22 +12,23 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
|
|
|
12
12
|
const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
|
|
13
13
|
let packageJSON = JSON.parse(packageJSONData);
|
|
14
14
|
|
|
15
|
-
let
|
|
16
|
-
const
|
|
15
|
+
let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
|
|
16
|
+
const savedLibraryBasedCL = isLibraryBasedCL;
|
|
17
|
+
|
|
17
18
|
const savedOrganization = packageJSON.organization;
|
|
18
19
|
|
|
19
20
|
const serverType = tasksConfigJSON['server-config'].serverType;
|
|
20
21
|
const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
|
|
21
|
-
let compType =
|
|
22
|
+
let compType = isLibraryBasedCL ? "library" : "original";
|
|
22
23
|
|
|
23
24
|
describe(`promote revert webpack: ${serverDir} - ${compType}`, () => {
|
|
24
25
|
|
|
25
26
|
beforeAll( async() => {
|
|
26
27
|
|
|
27
28
|
// make non libraryBased
|
|
28
|
-
|
|
29
|
-
tasksConfigJSON['
|
|
30
|
-
compType =
|
|
29
|
+
isLibraryBasedCL = false;
|
|
30
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
31
|
+
compType = isLibraryBasedCL ? "library" : "original";
|
|
31
32
|
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
32
33
|
|
|
33
34
|
// make organzation Pega
|
|
@@ -48,8 +49,8 @@ describe(`promote revert webpack: ${serverDir} - ${compType}`, () => {
|
|
|
48
49
|
afterAll( async() => {
|
|
49
50
|
|
|
50
51
|
//restore
|
|
51
|
-
|
|
52
|
-
tasksConfigJSON['
|
|
52
|
+
isLibraryBasedCL = savedLibraryBasedCL
|
|
53
|
+
tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
|
|
53
54
|
|
|
54
55
|
fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
|
|
55
56
|
|