@pega/custom-dx-components 24.2.16 → 25.1.10-alpha-0.2
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 +12 -4
- 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 +12 -2
- 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 +22 -2
- package/src/tasks/create-lib/helper.js +6 -3
- 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 +477 -41
- 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 +6 -1
- package/src/util.js +493 -116
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/custom-dx-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.1.10-alpha-0.2",
|
|
4
4
|
"description": "Utility for building custom UI components",
|
|
5
5
|
"bin": "./bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,51 +15,53 @@
|
|
|
15
15
|
"type": "module",
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/core": "^7.
|
|
19
|
-
"@babel/plugin-transform-class-properties": "^7.
|
|
20
|
-
"@babel/preset-react": "^7.
|
|
21
|
-
"@pega/auth": "^0.2.
|
|
22
|
-
"@pega/constellation-dx-components-build-utils": "^
|
|
23
|
-
"
|
|
18
|
+
"@babel/core": "^7.27.1",
|
|
19
|
+
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
20
|
+
"@babel/preset-react": "^7.27.1",
|
|
21
|
+
"@pega/auth": "^0.2.24",
|
|
22
|
+
"@pega/constellation-dx-components-build-utils": "^2.0.4",
|
|
23
|
+
"@pega/inquirer-fuzzy-path": "^3.0.0",
|
|
24
|
+
"ajv": "^8.17.1",
|
|
24
25
|
"ajv-keywords": "^5.1.0",
|
|
25
26
|
"archiver": "^7.0.1",
|
|
26
27
|
"arg": "^5.0.2",
|
|
27
|
-
"babel-loader": "^
|
|
28
|
-
"chalk": "^5.
|
|
28
|
+
"babel-loader": "^10.0.0",
|
|
29
|
+
"chalk": "^5.4.1",
|
|
29
30
|
"check-git": "^2.0.2",
|
|
30
|
-
"compression-webpack-plugin": "^
|
|
31
|
-
"css-loader": "
|
|
32
|
-
"css-minimizer-webpack-plugin": "^
|
|
31
|
+
"compression-webpack-plugin": "^11.1.0",
|
|
32
|
+
"css-loader": "7.1.2",
|
|
33
|
+
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
33
34
|
"eslint": "^8.56.0",
|
|
34
|
-
"execa": "^
|
|
35
|
+
"execa": "^9.5.2",
|
|
35
36
|
"file-loader": "6.2.0",
|
|
36
|
-
"fs-extra": "^11.
|
|
37
|
+
"fs-extra": "^11.3.0",
|
|
37
38
|
"gitignore": "^0.7.0",
|
|
38
|
-
"inquirer": "^9.
|
|
39
|
+
"inquirer": "^9.3.7",
|
|
39
40
|
"jwt-decode": "^4.0.0",
|
|
40
|
-
"listr2": "^8.
|
|
41
|
-
"mini-css-extract-plugin": "2.
|
|
41
|
+
"listr2": "^8.3.3",
|
|
42
|
+
"mini-css-extract-plugin": "2.9.2",
|
|
42
43
|
"mustache": "^4.2.0",
|
|
43
44
|
"ncp": "^2.0.0",
|
|
44
45
|
"node-fetch": "^3.3.2",
|
|
45
|
-
"
|
|
46
|
+
"node-stream-zip": "^1.15.0",
|
|
47
|
+
"ora": "^8.2.0",
|
|
46
48
|
"pascalcase": "^2.0.0",
|
|
47
|
-
"postcss": "^8.
|
|
48
|
-
"postcss-loader": "
|
|
49
|
-
"postcss-preset-env": "
|
|
49
|
+
"postcss": "^8.5.3",
|
|
50
|
+
"postcss-loader": "8.1.1",
|
|
51
|
+
"postcss-preset-env": "10.1.6",
|
|
50
52
|
"prop-types": "^15.8.1",
|
|
51
53
|
"react": "^18.2.0",
|
|
52
54
|
"react-dev-utils": "^12.0.1",
|
|
53
|
-
"resolve": "1.22.
|
|
55
|
+
"resolve": "1.22.10",
|
|
54
56
|
"resolve-url-loader": "^5.0.0",
|
|
55
|
-
"sass-loader": "^
|
|
56
|
-
"terser-webpack-plugin": "5.3.
|
|
57
|
-
"ts-loader": "^9.5.
|
|
58
|
-
"typescript": "~5.
|
|
57
|
+
"sass-loader": "^16.0.5",
|
|
58
|
+
"terser-webpack-plugin": "5.3.14",
|
|
59
|
+
"ts-loader": "^9.5.2",
|
|
60
|
+
"typescript": "~5.8.3",
|
|
59
61
|
"unarchive": "^1.1.3",
|
|
60
62
|
"url-loader": "4.1.1",
|
|
61
|
-
"webpack": "5.
|
|
62
|
-
"webpack-cli": "^
|
|
63
|
+
"webpack": "5.99.8",
|
|
64
|
+
"webpack-cli": "^6.0.1"
|
|
63
65
|
},
|
|
64
66
|
"author": "Custom component dev",
|
|
65
67
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -68,16 +70,16 @@
|
|
|
68
70
|
"custom-components"
|
|
69
71
|
],
|
|
70
72
|
"devDependencies": {
|
|
71
|
-
"@babel/preset-env": "^7.
|
|
72
|
-
"@pega/configs": "^0.
|
|
73
|
-
"@pega/prettier-config": "^0.
|
|
74
|
-
"@types/jest": "^29.5.
|
|
73
|
+
"@babel/preset-env": "^7.27.2",
|
|
74
|
+
"@pega/configs": "^0.16.3",
|
|
75
|
+
"@pega/prettier-config": "^0.16.3",
|
|
76
|
+
"@types/jest": "^29.5.14",
|
|
75
77
|
"babel-jest": "^29.7.0",
|
|
76
|
-
"cspell": "^8.
|
|
78
|
+
"cspell": "^8.19.4",
|
|
77
79
|
"jest": "^29.7.0",
|
|
78
80
|
"jest-environment-jsdom": "^29.7.0",
|
|
79
81
|
"jest-junit": "^16.0.0",
|
|
80
|
-
"prettier": "3.
|
|
81
|
-
"ts-jest": "^29.
|
|
82
|
+
"prettier": "3.5.3",
|
|
83
|
+
"ts-jest": "^29.3.2"
|
|
82
84
|
}
|
|
83
85
|
}
|
package/src/cli.js
CHANGED
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
moveComponent,
|
|
33
33
|
renameLibrary,
|
|
34
34
|
restoreConfig,
|
|
35
|
+
restore,
|
|
35
36
|
revertWebPack,
|
|
36
37
|
promoteWebPack,
|
|
37
38
|
showStatus,
|
|
@@ -63,6 +64,7 @@ const TASKS = {
|
|
|
63
64
|
RENAME: 'rename',
|
|
64
65
|
RENAME_LIB: 'renameLibrary',
|
|
65
66
|
RESTORE_CONFIG: 'restoreConfig',
|
|
67
|
+
RESTORE_LIB: 'restore',
|
|
66
68
|
QUARANTINE: 'quarantine',
|
|
67
69
|
MOVE: 'moveComponent',
|
|
68
70
|
LIST: 'list',
|
|
@@ -170,6 +172,10 @@ export default async (args = []) => {
|
|
|
170
172
|
restoreConfig(options);
|
|
171
173
|
break;
|
|
172
174
|
}
|
|
175
|
+
case TASKS.RESTORE_LIB: {
|
|
176
|
+
restore(options);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
173
179
|
case TASKS.QUARANTINE: {
|
|
174
180
|
quarantine(options);
|
|
175
181
|
break;
|
package/src/constants.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export const TASKS_CONFIG_JSON_FILENAME = 'tasks.config.json';
|
|
3
3
|
export const INPUT_CONFIG_JSON_FILENAME = 'input.config.json';
|
|
4
4
|
export const PACKAGE_JSON_FILENAME = 'package.json';
|
|
5
|
+
export const PACKAGE_LOCK_JSON_FILENAME = 'package-lock.json';
|
|
5
6
|
export const BUILD_CONFIG_JSON_FILENAME = 'build.config.json';
|
|
6
7
|
export const WEBPACK_CONFIG_JS_FILENAME = 'webpack.config.js';
|
|
7
8
|
export const WEBPACK_PATHS_JS_FILENAME = 'paths.js';
|
|
@@ -13,6 +14,7 @@ export const COMPONENTS_PATH = 'component';
|
|
|
13
14
|
export const TOKEN_PATH = 'node_modules/@pega/custom-dx-components/.access_token';
|
|
14
15
|
export const OOTB_COMPONENTS = 'node_modules/@pega/custom-dx-components/.ootb_components';
|
|
15
16
|
export const LIBRARY_BASED = 'libraryMode';
|
|
17
|
+
export const LIBRARY_BASED_CL = 'libraryModeCL';
|
|
16
18
|
export const USE_INPUT_CONFIG = 'useInputConfig';
|
|
17
19
|
export const SHARED_DIRECTORY = 'shared';
|
|
18
20
|
export const SHOW_DEBUG = 'showDebug';
|
|
@@ -20,7 +22,7 @@ export const ARCHIVES_PATH = 'store';
|
|
|
20
22
|
export const BIN_ARCHIVES_PATH = 'bin-arch';
|
|
21
23
|
export const TEMP_PATH = 'store/temp';
|
|
22
24
|
export const COMPONENTS_CONFIG_FILE_NAME = 'componentsconfig.json';
|
|
23
|
-
|
|
25
|
+
export const MAX_RFT_CHARS = 64;
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
/* REST end points */
|
|
@@ -39,6 +41,14 @@ export const LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT =
|
|
|
39
41
|
export const LP_DELETE_COMPONENT_SERVICE_REST_ENDPOINT =
|
|
40
42
|
'pegalaunchpad/c11n/isolations/{isolationId}/v102/assetsUpdate';
|
|
41
43
|
|
|
44
|
+
export const PUBLISH_COMPONENT_LIBRARY_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/publish_component_library';
|
|
45
|
+
export const PUBLISH_COMPONENT_LIBRARY_ARCHIVE_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/publish_component_library_archive';
|
|
46
|
+
export const LIST_COMPONENT_LIBRARIES_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/list_component_libraries';
|
|
47
|
+
export const LIST_COMPONENT_LIBRARY_ARCHIVES_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/list_component_library_archives';
|
|
48
|
+
export const DELETE_COMPONENT_LIBRARY_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/delete_component_library';
|
|
49
|
+
export const COMPONENT_LIBRARY_ARCHIVE_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/component_library_archive';
|
|
50
|
+
|
|
51
|
+
|
|
42
52
|
export const FIELD_PATH = '/field';
|
|
43
53
|
export const TEMPLATE_PATH = '/template';
|
|
44
54
|
export const WIDGET_PATH = '/widget';
|
|
@@ -73,9 +83,7 @@ export const AUTHENTICATE_DEFAULTS = {
|
|
|
73
83
|
export const SHARED_FILE_NAMES = [
|
|
74
84
|
"suggestions-handler.ts",
|
|
75
85
|
"PConnProps.d.ts",
|
|
76
|
-
"create-nonce.ts"
|
|
77
|
-
"Operator.tsx",
|
|
78
|
-
"Avatar.tsx"
|
|
86
|
+
"create-nonce.ts"
|
|
79
87
|
];
|
|
80
88
|
|
|
81
89
|
export const AUTHENTICATE_SCHEMA = {
|
|
@@ -174,6 +174,11 @@ export default async options => {
|
|
|
174
174
|
const serverConfig = data['server-config'];
|
|
175
175
|
const isPwdNonEmpty = !!serverConfig.password;
|
|
176
176
|
|
|
177
|
+
|
|
178
|
+
console.log(`\nAuthenticating to server: ${chalk.green.bold(`${serverConfig.server}`)}\n`);
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
177
182
|
// console.log(`serverConfig: ${JSON.stringify(serverConfig)}`);
|
|
178
183
|
const questions = await getAuthQuestions(serverConfig);
|
|
179
184
|
// console.log(`questions: ${JSON.stringify(questions)}`);
|
|
@@ -12,12 +12,15 @@ import {
|
|
|
12
12
|
addDebugLog,
|
|
13
13
|
cleanUp,
|
|
14
14
|
getLibraryBased,
|
|
15
|
+
getLibraryBasedCL,
|
|
15
16
|
checkLibraryAndArchives,
|
|
16
17
|
getConfigDefaults,
|
|
17
18
|
zipVersionAndArchive } from '../../util.js';
|
|
18
19
|
|
|
19
20
|
import { getBuildComponentQuestions } from './helper.js';
|
|
20
21
|
|
|
22
|
+
import { buildLibV3 } from '@pega/constellation-dx-components-build-utils/index.js';
|
|
23
|
+
|
|
21
24
|
|
|
22
25
|
export function getCustomTasks(componentKey, sourceMap, devBuild, options, showStats, skipBuild) {
|
|
23
26
|
addDebugLog("getCustomTasks", `componentKey: ${componentKey}, sourceMap: ${sourceMap}, devBuild: ${devBuild}, skipBuild: ${skipBuild}`, "");
|
|
@@ -54,6 +57,7 @@ export default async options => {
|
|
|
54
57
|
await checkLibraryAndArchives();
|
|
55
58
|
|
|
56
59
|
const isLibraryBased = getLibraryBased();
|
|
60
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
57
61
|
|
|
58
62
|
addDebugLog("buildAllComponents", "", "+");
|
|
59
63
|
const components = await getComponents();
|
|
@@ -99,7 +103,7 @@ addDebugLog("buildAllComponents", "", "+");
|
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
// if skipBuild, then do a build here as opposed to every step (v1 is every step, v2, just once)
|
|
102
|
-
if (skipBuild && firstComponent) {
|
|
106
|
+
if (skipBuild && firstComponent && !isLibraryBasedCL) {
|
|
103
107
|
console.log();
|
|
104
108
|
console.log(chalk.bold.green("Validation compile..."));
|
|
105
109
|
await bundleComponent(firstComponent, sourceMap, devBuild, showStats);
|
|
@@ -107,6 +111,21 @@ addDebugLog("buildAllComponents", "", "+");
|
|
|
107
111
|
await zipVersionAndArchive(confDef.currentOrgLib, confDef.buildVersion);
|
|
108
112
|
}
|
|
109
113
|
|
|
114
|
+
if (isLibraryBasedCL) {
|
|
115
|
+
console.log();
|
|
116
|
+
console.log(chalk.bold.green("Validation via build library..."));
|
|
117
|
+
const confDef = getConfigDefaults();
|
|
118
|
+
const organization = confDef.organization;
|
|
119
|
+
const library = confDef.library;
|
|
120
|
+
|
|
121
|
+
const buildLibName = organization.concat('_').concat(library);
|
|
122
|
+
|
|
123
|
+
buildLibV3(
|
|
124
|
+
buildLibName,
|
|
125
|
+
confDef.buildVersion
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
110
129
|
|
|
111
130
|
|
|
112
131
|
// once done, remove leftover directories
|
|
@@ -2,10 +2,9 @@ import fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { join } from 'path';
|
|
4
4
|
import inquirer from 'inquirer';
|
|
5
|
-
import { Listr } from 'listr2';
|
|
6
5
|
import chalk from 'chalk';
|
|
7
6
|
|
|
8
|
-
import { showVersion, getServerType, setServerType, getSubComponents, deleteLocalComponent, checkPathAccess, getComponents,
|
|
7
|
+
import { showVersion, getServerType, setServerType, getSubComponents, deleteLocalComponent, checkPathAccess, getComponents, getLibraryBasedCL, setLibraryBasedCL, forceDefaultsUpdate } from '../../util.js';
|
|
9
8
|
import createAll from '../create-all/index.js';
|
|
10
9
|
import create from '../create/index.js';
|
|
11
10
|
import createLib from '../create-lib/index.js';
|
|
@@ -151,7 +150,7 @@ const createJestLibraryAssets = async(isLaunchPad = false) => {
|
|
|
151
150
|
// initially delete local assets
|
|
152
151
|
await deleteAssets();
|
|
153
152
|
|
|
154
|
-
let args = ['', '', '', 'DXIL', '0.0.1', 'N'];
|
|
153
|
+
let args = ['', '', '', 'DXIL', '0.0.1', 'N', 'Original'];
|
|
155
154
|
let myOptions = {};
|
|
156
155
|
myOptions["params"] = args;
|
|
157
156
|
|
|
@@ -200,7 +199,7 @@ const createJestLibraryAssets = async(isLaunchPad = false) => {
|
|
|
200
199
|
await copyAssets(createPath);
|
|
201
200
|
await deleteAssets();
|
|
202
201
|
|
|
203
|
-
args = [ '','', '', 'Pega_DXIL', '0.0.1-dev'];
|
|
202
|
+
args = [ '','', '', 'Pega_DXIL', '0.0.1-dev', 'Y'];
|
|
204
203
|
myOptions = {};
|
|
205
204
|
myOptions["params"] = args;
|
|
206
205
|
|
|
@@ -220,9 +219,9 @@ export default async options => {
|
|
|
220
219
|
if (buildAssets) {
|
|
221
220
|
// get current server type
|
|
222
221
|
const savedServerType = await getServerType();
|
|
223
|
-
const
|
|
222
|
+
const savedLibraryBasedCL = getLibraryBasedCL();
|
|
224
223
|
|
|
225
|
-
await
|
|
224
|
+
await setLibraryBasedCL(false);
|
|
226
225
|
|
|
227
226
|
// Constellation
|
|
228
227
|
await setServerType("infinity");
|
|
@@ -233,7 +232,7 @@ export default async options => {
|
|
|
233
232
|
await createJestOriginalAssets(true);
|
|
234
233
|
|
|
235
234
|
// Constellation Library
|
|
236
|
-
await
|
|
235
|
+
await setLibraryBasedCL(true);
|
|
237
236
|
await setServerType("infinity");
|
|
238
237
|
|
|
239
238
|
await createJestLibraryAssets(false);
|
|
@@ -246,7 +245,7 @@ export default async options => {
|
|
|
246
245
|
|
|
247
246
|
// restore serverType
|
|
248
247
|
await setServerType(savedServerType);
|
|
249
|
-
await
|
|
248
|
+
await setLibraryBasedCL(savedLibraryBasedCL);
|
|
250
249
|
|
|
251
250
|
}
|
|
252
251
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
1
|
import chalk from 'chalk';
|
|
4
2
|
|
|
5
3
|
import {
|
|
@@ -7,7 +5,8 @@ import {
|
|
|
7
5
|
getPegaServerConfig,
|
|
8
6
|
validateSemver,
|
|
9
7
|
addDebugLog,
|
|
10
|
-
getLibraryBased
|
|
8
|
+
getLibraryBased,
|
|
9
|
+
getLibraryBasedCL
|
|
11
10
|
} from '../../util.js';
|
|
12
11
|
|
|
13
12
|
|
|
@@ -17,6 +16,7 @@ addDebugLog("getBuildComoponentQuestions", `defaultVerion: ${defaultVersion}`, "
|
|
|
17
16
|
const defaultPegaConfig = await getPegaServerConfig();
|
|
18
17
|
|
|
19
18
|
const isLibraryBased = getLibraryBased();
|
|
19
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
if (components.length == 0) {
|
|
@@ -24,23 +24,42 @@ addDebugLog("getBuildComoponentQuestions", `defaultVerion: ${defaultVersion}`, "
|
|
|
24
24
|
process.exit(1);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
if (isLibraryBasedCL) {
|
|
28
|
+
return [
|
|
29
|
+
{
|
|
30
|
+
name: 'version',
|
|
31
|
+
message: 'Enter library version',
|
|
32
|
+
default: defaultVersion,
|
|
33
|
+
validate: (value) => {
|
|
34
|
+
if (validateSemver(value)) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
return 'Please provide semver compatible version e.g 0.0.1';
|
|
35
38
|
}
|
|
36
|
-
return 'Please provide semver compatible version e.g 0.0.1';
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return [
|
|
44
|
+
{
|
|
45
|
+
name: 'version',
|
|
46
|
+
message: 'Enter library version',
|
|
47
|
+
default: defaultVersion,
|
|
48
|
+
validate: (value) => {
|
|
49
|
+
if (validateSemver(value)) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
return 'Please provide semver compatible version e.g 0.0.1';
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'devBuild',
|
|
57
|
+
type: 'confirm',
|
|
58
|
+
message: 'When publish, make deletable ?',
|
|
59
|
+
default: defaultPegaConfig.devBuild
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
46
65
|
};
|
|
@@ -3,7 +3,7 @@ import inquirer from 'inquirer';
|
|
|
3
3
|
import { Listr } from 'listr2';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
5
|
|
|
6
|
-
import { buildLib } from '@pega/constellation-dx-components-build-utils/index.js';
|
|
6
|
+
import { buildLib, buildLibV3 } from '@pega/constellation-dx-components-build-utils/index.js';
|
|
7
7
|
|
|
8
8
|
import validate from '../validator/index.js';
|
|
9
9
|
import { lintComponent } from '../linter/index.js';
|
|
@@ -20,7 +20,8 @@ import {
|
|
|
20
20
|
getConfigDevBuild,
|
|
21
21
|
checkJWTExpiration,
|
|
22
22
|
getConfigDefaults,
|
|
23
|
-
getLibraryBased
|
|
23
|
+
getLibraryBased,
|
|
24
|
+
getLibraryBasedCL
|
|
24
25
|
} from '../../util.js';
|
|
25
26
|
import bundleComponent from '../bundle/index.js';
|
|
26
27
|
|
|
@@ -56,6 +57,7 @@ addDebugLog("localBuildLibrary", `organization: ${organization}, library: ${libr
|
|
|
56
57
|
const components = await getComponents();
|
|
57
58
|
const tokenAndStaticServer = await getC11NB2STokenAndStaticServer();
|
|
58
59
|
const currentOrgLib = organization.concat('_').concat(library);
|
|
60
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
59
61
|
|
|
60
62
|
if (tokenAndStaticServer.C11NB2S === undefined) {
|
|
61
63
|
console.log(
|
|
@@ -102,9 +104,11 @@ addDebugLog("localBuildLibrary", `organization: ${organization}, library: ${libr
|
|
|
102
104
|
// compile to see if any errors, as buildLib doesn't catch all errors.
|
|
103
105
|
// Turning off stats (last param), so won't show warnings, as
|
|
104
106
|
// warnings are part of buildLib
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
console.log('');
|
|
107
|
+
|
|
108
|
+
// for now
|
|
109
|
+
// console.log(chalk.green.bold('Compile check...'));
|
|
110
|
+
// await bundleComponent(components[0], null, devBuild, false);
|
|
111
|
+
// console.log('');
|
|
108
112
|
|
|
109
113
|
// remove dist/lib stuff
|
|
110
114
|
await cleanUp();
|
|
@@ -115,12 +119,30 @@ addDebugLog("localBuildLibrary", `organization: ${organization}, library: ${libr
|
|
|
115
119
|
// with subdirectories for each version.
|
|
116
120
|
// If "buildDev", we append to version "-dev". Currently, only "-dev" versions, when published, can be deleted.
|
|
117
121
|
addDebugLog("buildLib", "services call", "");
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
);
|
|
122
|
+
// buildLibV3(
|
|
123
|
+
// buildLibName,
|
|
124
|
+
// buildVersion,
|
|
125
|
+
// tokenAndStaticServer.C11NB2S,
|
|
126
|
+
// tokenAndStaticServer.appStaticContentServer
|
|
127
|
+
// );
|
|
128
|
+
|
|
129
|
+
if (isLibraryBasedCL) {
|
|
130
|
+
buildLibV3(
|
|
131
|
+
buildLibName,
|
|
132
|
+
buildVersion
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
buildLib(
|
|
137
|
+
buildLibName,
|
|
138
|
+
buildVersion,
|
|
139
|
+
tokenAndStaticServer.C11NB2S,
|
|
140
|
+
tokenAndStaticServer.appStaticContentServer
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
124
146
|
addDebugLog("buildLib", "services end", "");
|
|
125
147
|
|
|
126
148
|
}
|
|
@@ -132,7 +154,7 @@ export default async options => {
|
|
|
132
154
|
process.exit();
|
|
133
155
|
}
|
|
134
156
|
|
|
135
|
-
if (options.params.length !=
|
|
157
|
+
if (options.params.length != 7) {
|
|
136
158
|
// internal so already called
|
|
137
159
|
await showVersion();
|
|
138
160
|
await checkLibraryAndArchives();
|
|
@@ -150,17 +172,17 @@ addDebugLog("buildLibrary", "", "+");
|
|
|
150
172
|
let version;
|
|
151
173
|
let devBuild;
|
|
152
174
|
|
|
153
|
-
if (options.params.length
|
|
154
|
-
version = options.params[3];
|
|
155
|
-
const dBuild = options.params[4];
|
|
156
|
-
devBuild = !!(dBuild === 'Y' || dBuild === 'y' || dBuild === true || dBuild === 'true');
|
|
157
|
-
}
|
|
158
|
-
else if (options.params.length === 4) {
|
|
175
|
+
if (options.params.length === 6) {
|
|
159
176
|
// internally called from publish
|
|
160
177
|
const orgLib = getConfigDefaults();
|
|
161
178
|
version = orgLib.version;
|
|
162
179
|
devBuild = await getConfigDevBuild();
|
|
163
180
|
}
|
|
181
|
+
else if (options.params.length >= 5) {
|
|
182
|
+
version = options.params[3];
|
|
183
|
+
const dBuild = options.params[4];
|
|
184
|
+
devBuild = !!(dBuild === 'Y' || dBuild === 'y' || dBuild === true || dBuild === 'true');
|
|
185
|
+
}
|
|
164
186
|
else {
|
|
165
187
|
console.log(`\nLibrary ${chalk.bold.green(currentOrgLib)} `);
|
|
166
188
|
const questions = await getBuildComponentQuestions(compDef.version);
|
|
@@ -22,7 +22,9 @@ import {
|
|
|
22
22
|
getLibraryBased,
|
|
23
23
|
addDebugLog,
|
|
24
24
|
checkLibraryAndArchives,
|
|
25
|
-
getConfigDefaults
|
|
25
|
+
getConfigDefaults,
|
|
26
|
+
getSubTypeLabel,
|
|
27
|
+
getMaxComponentNameCount
|
|
26
28
|
} from '../../util.js';
|
|
27
29
|
import { COMPONENT_SCHEMA, SHARED_FILE_NAMES } from '../../constants.js';
|
|
28
30
|
|
|
@@ -103,6 +105,8 @@ const compileMustacheTemplates = async (
|
|
|
103
105
|
files.forEach(file => {
|
|
104
106
|
const filePath = path.join(componentDirectory, file);
|
|
105
107
|
|
|
108
|
+
const subTypeLabel = getSubTypeLabel(type, subtype);
|
|
109
|
+
|
|
106
110
|
const output = compileMustacheTemplate(filePath, {
|
|
107
111
|
COMPONENT_KEY: componentKey,
|
|
108
112
|
COMPONENT_NAME: componentName,
|
|
@@ -114,6 +118,7 @@ const compileMustacheTemplates = async (
|
|
|
114
118
|
ALLOWEDAPPS: JSON.stringify(allowedApplications),
|
|
115
119
|
TYPE: type,
|
|
116
120
|
SUB_TYPE: JSON.stringify(mustacheSubType),
|
|
121
|
+
SUB_TYPE_LABEL: subTypeLabel,
|
|
117
122
|
DESCRIPTION: description,
|
|
118
123
|
IS_TEMPLATE: isTemplate,
|
|
119
124
|
IS_PICKLIST: isPicklist,
|
|
@@ -305,6 +310,7 @@ addDebugLog("create", "", "+");
|
|
|
305
310
|
);
|
|
306
311
|
} else {
|
|
307
312
|
const componentDefaults = getConfigDefaults();
|
|
313
|
+
const maxChars = getMaxComponentNameCount();
|
|
308
314
|
const questions = [
|
|
309
315
|
{
|
|
310
316
|
name: 'type',
|
|
@@ -352,7 +358,7 @@ addDebugLog("create", "", "+");
|
|
|
352
358
|
},
|
|
353
359
|
{
|
|
354
360
|
name: 'componentName',
|
|
355
|
-
message:
|
|
361
|
+
message: `Enter component name (required) (${maxChars} max chars)`,
|
|
356
362
|
validate: value => {
|
|
357
363
|
/* value should not be empty
|
|
358
364
|
It should not have spaces
|
|
@@ -360,8 +366,12 @@ addDebugLog("create", "", "+");
|
|
|
360
366
|
Only case-insensitive alphanumeric values are allowed
|
|
361
367
|
*/
|
|
362
368
|
if (value && !/^\d/.test(value) && value === sanitize(value)) {
|
|
369
|
+
if (value.length > maxChars) {
|
|
370
|
+
return `${value.length - maxChars} too many characters.`
|
|
371
|
+
}
|
|
363
372
|
return true;
|
|
364
373
|
}
|
|
374
|
+
|
|
365
375
|
return 'Only alphanumeric values are allowed, starting with alphabets, no spaces.';
|
|
366
376
|
}
|
|
367
377
|
},
|
|
@@ -9,12 +9,38 @@
|
|
|
9
9
|
"componentKey": "{{COMPONENT_KEY}}",
|
|
10
10
|
"type": "{{TYPE}}",
|
|
11
11
|
"subtype": {{{SUB_TYPE}}},
|
|
12
|
+
"subtypeLabel": "{{SUB_TYPE_LABEL}}",
|
|
12
13
|
"icon": "images/pz-checkbox-active.svg",
|
|
13
14
|
"properties": [
|
|
14
15
|
{
|
|
15
16
|
"name": "label",
|
|
16
17
|
"label": "Field label",
|
|
17
18
|
"format": "TEXT"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "labelOption",
|
|
22
|
+
"label": "Field label",
|
|
23
|
+
"format": "SELECT",
|
|
24
|
+
"defaultValue": "custom",
|
|
25
|
+
"visibility": "@PLATFORMNAME != 'launchpad'",
|
|
26
|
+
"source": [
|
|
27
|
+
{
|
|
28
|
+
"key": "default",
|
|
29
|
+
"value": "Default"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"key": "custom",
|
|
33
|
+
"value": "Custom"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "label",
|
|
39
|
+
"label": "Custom field label",
|
|
40
|
+
"format": "VALUEINPUT",
|
|
41
|
+
"required": true,
|
|
42
|
+
"ruleType": "Paragraph",
|
|
43
|
+
"visibility": "@PLATFORMNAME != 'launchpad'"
|
|
18
44
|
},
|
|
19
45
|
{
|
|
20
46
|
"name": "hideLabel",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { Base{{COMPONENT_CLASS_NAME}} } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders {{COMPONENT_CLASS_NAME}}', async () => {
|
|
11
|
+
render(<Base{{COMPONENT_CLASS_NAME}} />);
|
|
12
|
+
expect(await screen.findByText('Boolean caption')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('Boolean label')).toBeVisible();
|
|
14
|
+
expect(await screen.findByText('Test helper text')).toBeVisible();
|
|
15
|
+
const checkboxElement = screen.getByRole('checkbox');
|
|
16
|
+
expect(checkboxElement).toBeChecked();
|
|
17
|
+
fireEvent.click(checkboxElement);
|
|
18
|
+
expect(checkboxElement).not.toBeChecked();
|
|
19
|
+
});
|