@pega/custom-dx-components 24.1.11 → 24.2.10
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/README.md +4 -2
- package/package.json +9 -5
- package/src/cli.js +135 -3
- package/src/constants.js +23 -1
- package/src/tasks/authenticate/index.js +13 -2
- package/src/tasks/build-all/helper.js +30 -43
- package/src/tasks/build-all/index.js +57 -10
- package/src/tasks/build-comp/helper.js +58 -21
- package/src/tasks/build-comp/index.js +41 -5
- package/src/tasks/build-jest-assets/index.js +94 -10
- package/src/tasks/build-lib/helper.js +46 -0
- package/src/tasks/build-lib/index.js +177 -0
- package/src/tasks/bundle/builder/index.js +45 -28
- package/src/tasks/bundle/builder/webpack.config.js +3 -1
- package/src/tasks/bundle/index.js +6 -3
- package/src/tasks/create/index.js +91 -20
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.tsx.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +4 -5
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +2 -4
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +2 -4
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.ts.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.stories.tsx.mustache +18 -19
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +3 -12
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.ts.mustache +3 -2
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.tsx.mustache +4 -6
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +8 -14
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.tsx.mustache +4 -6
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.ts.mustache +26 -23
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +11 -52
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.tsx.mustache +4 -6
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +2 -6
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +6 -3
- package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.tsx.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.ts.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.tsx.mustache +1 -3
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.ts.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +3 -6
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.tsx.mustache +1 -3
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.tsx.mustache +13 -8
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.tsx.mustache +1 -2
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS/Avatar.tsx.mustache +5 -7
- package/src/tasks/create/templates/Constellation/Template/DETAILS/DetailsRender.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/HighlightRender.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +12 -10
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/Avatar.tsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/DetailsRender.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/HighlightRender.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +15 -14
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +5 -7
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.ts.mustache +1 -3
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.ts.mustache +4 -8
- package/src/tasks/create/templates/Constellation/Template/FORM/DetailsRender.tsx.mustache +59 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.tsx.mustache +76 -10
- package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +4 -3
- package/src/tasks/create/templates/Constellation/Template/FORM-region/DetailsRender.tsx.mustache +59 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache +95 -18
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +4 -5
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Template/PAGE/mock.ts.mustache +0 -2
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.ts.mustache +6 -19
- package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +25 -28
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/Widget/CASE/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +17 -20
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +4 -7
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +4 -1
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +4 -5
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +4 -6
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.ts.mustache +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +3 -5
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/index.tsx.mustache +3 -5
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/mock.ts.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +3 -5
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +6 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +2 -3
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.ts.mustache +0 -1
- package/src/tasks/create-all/index.js +93 -18
- package/src/tasks/create-lib/helper.js +112 -0
- package/src/tasks/create-lib/index.js +157 -0
- package/src/tasks/create-version/helper.js +82 -0
- package/src/tasks/create-version/index.js +123 -0
- package/src/tasks/delete/helper.js +26 -5
- package/src/tasks/delete/index.js +18 -5
- package/src/tasks/delete-all/helper.js +6 -2
- package/src/tasks/delete-all/index.js +21 -5
- package/src/tasks/delete-lib/helper.js +54 -0
- package/src/tasks/delete-lib/index.js +264 -0
- package/src/tasks/delete-pub/helper.js +35 -0
- package/src/tasks/delete-pub/index.js +106 -0
- package/src/tasks/delete-version/index.js +56 -0
- package/src/tasks/export-archive/helper.js +132 -0
- package/src/tasks/export-archive/index.js +266 -0
- package/src/tasks/import-archive/helper.js +318 -0
- package/src/tasks/import-archive/index.js +447 -0
- package/src/tasks/import-comp/helper.js +93 -0
- package/src/tasks/import-comp/index.js +366 -0
- package/src/tasks/index.js +22 -0
- package/src/tasks/init/helper.js +16 -16
- package/src/tasks/init/index.js +24 -0
- package/src/tasks/init/template/.storybook/preview.tsx +47 -0
- package/src/tasks/init/template/README.md +4 -2
- package/src/tasks/init/template/package.json.mustache +76 -41
- package/src/tasks/init/template/tasks.config.json +6 -2
- package/src/tasks/init/template/tsconfig.json +6 -1
- package/src/tasks/linter/index.js +4 -0
- package/src/tasks/list/helper.js +47 -14
- package/src/tasks/list/index.js +15 -6
- package/src/tasks/list-lib/helper.js +43 -0
- package/src/tasks/list-lib/index.js +148 -0
- package/src/tasks/list-pub/helper.js +74 -0
- package/src/tasks/list-pub/index.js +205 -0
- package/src/tasks/move/helper.js +59 -0
- package/src/tasks/move/index.js +477 -0
- package/src/tasks/promote-webpack/index.js +14 -5
- package/src/tasks/promote-webpack/webpack.config.js +3 -1
- package/src/tasks/publish/helper.js +83 -60
- package/src/tasks/publish/index.js +103 -4
- package/src/tasks/publish-all/helper.js +60 -50
- package/src/tasks/publish-all/index.js +23 -2
- package/src/tasks/publish-lib/helper.js +17 -0
- package/src/tasks/publish-lib/index.js +270 -0
- package/src/tasks/quarantine/index.js +84 -0
- package/src/tasks/rename/index.js +44 -14
- package/src/tasks/rename-lib/index.js +332 -0
- package/src/tasks/restore-config/index.js +56 -0
- package/src/tasks/revert-webpack/index.js +17 -24
- package/src/tasks/set-perm/index.js +150 -0
- package/src/tasks/show-help/index.js +130 -0
- package/src/tasks/show-status/index.js +45 -0
- package/src/tasks/store/index.js +56 -0
- package/src/tasks/switch-lib/helper.js +79 -0
- package/src/tasks/switch-lib/index.js +151 -0
- package/src/tasks/switch-version/helper.js +92 -0
- package/src/tasks/switch-version/index.js +127 -0
- package/src/tasks/validator/index.js +4 -1
- package/src/util.js +1695 -72
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +58 -0
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/demo.stories.tsx +67 -0
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/index.tsx +146 -0
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/mock.ts +21 -0
- package/tests/assets/library/components/create/shared/Avatar.tsx +76 -0
- package/tests/assets/library/components/create/shared/create-nonce.ts +6 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +148 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx +70 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +166 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.ts +22 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +84 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +74 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.ts +390 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +294 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +68 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/event-utils.ts +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +280 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.ts +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +202 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +261 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +259 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +85 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +252 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +281 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +63 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/event-utils.ts +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +245 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.ts +30 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +35 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +205 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +101 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.ts +248 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +114 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +63 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +213 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.ts +31 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +45 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +252 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +69 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +67 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +103 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +215 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/mock.ts +4 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +347 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +63 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.ts +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +303 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.tsx +45 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +32 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +111 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +72 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/mock.ts +94 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/utils.ts +229 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +66 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +75 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +114 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.ts +52 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +59 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +116 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +107 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +114 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +63 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +211 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.ts +28 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +96 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +64 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +263 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.ts +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +126 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +61 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.ts +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +246 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.ts +45 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +117 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.tsx +92 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +339 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +116 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.stories.tsx +95 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/index.tsx +192 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/mock.ts +75 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +118 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.stories.tsx +100 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/embed-utils.ts +314 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1145 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/mock.ts +74 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +221 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +58 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.tsx +67 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +146 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/mock.ts +21 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +114 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +63 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +225 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.ts +30 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +188 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +65 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +210 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.ts +21 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +221 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +87 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.ts +288 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.ts +149 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +269 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +74 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +240 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +60 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +204 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/mock.ts +30 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.tsx +179 -0
- package/tests/assets/library/components/createAll/Constellation/shared/Avatar.tsx +76 -0
- package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +6 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +58 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +6 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/demo.stories.tsx +67 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/index.tsx +146 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/mock.ts +21 -0
- package/tests/assets/original/components/create/_components.md +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +148 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx +70 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +166 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.ts +22 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +84 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +74 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.ts +390 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +294 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +68 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +280 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.ts +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +202 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +261 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +259 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +85 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +252 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +281 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +245 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.ts +30 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx +76 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/Operator.tsx +215 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +205 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +101 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.ts +248 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +114 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +213 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.ts +31 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +252 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +69 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +67 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +103 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +215 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/mock.ts +4 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +347 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +303 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +111 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +72 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/mock.ts +94 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/utils.ts +229 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +75 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +75 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.ts +52 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +116 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +107 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +114 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +211 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.ts +28 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +96 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +64 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +263 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.ts +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +126 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +61 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +246 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.ts +45 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +117 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.tsx +92 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +339 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +116 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.stories.tsx +95 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/index.tsx +192 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/mock.ts +75 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +118 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.stories.tsx +100 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/embed-utils.ts +314 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1145 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/mock.ts +74 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +221 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +58 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.tsx +67 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +146 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/mock.ts +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +114 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +225 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.ts +30 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +188 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +65 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +210 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.ts +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +76 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +221 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +87 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.ts +288 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.ts +149 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +269 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +74 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +240 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +60 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +204 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/mock.ts +30 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.tsx +179 -0
- package/tests/assets/original/components/createAll/Constellation/_components.md +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.ts +35 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.ts +25 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +148 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx +70 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +166 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.ts +22 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +84 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +73 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.ts +391 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +294 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +68 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +280 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.ts +61 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +202 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +439 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +86 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +261 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.ts +25 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +259 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.ts +92 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.ts +288 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.ts +331 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +85 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +252 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.ts +27 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +281 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +245 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.ts +30 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/Avatar.tsx +76 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/Operator.tsx +215 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +205 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +101 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.ts +248 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.ts +24 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +151 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +114 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +213 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.ts +31 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +252 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +69 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.ts +139 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +35 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +102 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/index.tsx +213 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/mock.ts +4 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +347 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +303 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.ts +29 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +111 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +72 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.ts +94 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.ts +229 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +76 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +80 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +90 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.ts +51 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +118 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +107 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.ts +24 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +114 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +211 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.ts +28 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +96 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +64 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +263 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.ts +29 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +126 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +61 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +246 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.ts +45 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +117 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.tsx +92 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +339 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.ts +76 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +116 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.stories.tsx +95 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/index.tsx +192 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/mock.ts +75 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/textformat-utils.tsx +162 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/component-constants.ts +5 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +118 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/date.ts +163 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.stories.tsx +100 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/embed-utils.ts +314 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/format-constants.ts +41 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +1145 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/mock.ts +74 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/picklist-utils.ts +88 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-constants.ts +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +658 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/textformat-utils.tsx +181 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/utils.ts +221 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +58 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.tsx +67 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +146 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/mock.ts +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +114 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +63 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.ts +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +225 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.ts +30 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +188 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +65 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +210 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.ts +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.ts +288 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +76 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +221 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +87 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.ts +288 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.ts +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.ts +149 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +269 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +74 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.ts +145 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +240 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +60 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +204 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.ts +30 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.ts +8 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.tsx +179 -0
- package/tests/assets/original/components/createAll/Launchpad/_components.md +1 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +65 -15
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +65 -7
- package/tests/functional/localCreateBuildDelete.test.js +63 -8
- package/tests/functional/localCreateListDelete.test.js +65 -8
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +68 -9
- package/tests/functional/localCreatePublishDelete.test.js +65 -8
- package/tests/functional/localCreateRenameDelete.test.js +63 -7
- package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +118 -0
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +241 -0
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +246 -0
- package/tests/functional/localLibCreateLibDeleteLib.test.js +161 -0
- package/tests/functional/localLibCreateLibExportImportLib.test.js +242 -0
- package/tests/functional/localLibCreateLibExportLib.test.js +219 -0
- package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +131 -0
- package/tests/functional/localLibCreateLibListDeleteLib.test.js +261 -0
- package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +236 -0
- package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +237 -0
- package/tests/functional/localLibCreateLibPermDeleteLib.test.js +144 -0
- package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +194 -0
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +227 -0
- package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +453 -0
- package/tests/functional/localPromoteRevertWP.test.js +66 -1
- package/src/tasks/create/templates/Constellation/Template/FORM/DetailsRender.tsx +0 -59
- package/src/tasks/create/templates/Constellation/Template/FORM-region/DetailsRender.tsx +0 -59
- package/src/tasks/init/template/.storybook/preview.js +0 -17
- package/tests/assets/components/create/Pega_DXIL_MyDetails.zip +0 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/config.json +0 -55
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.tsx +0 -68
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.tsx +0 -145
- package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.ts +0 -22
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -145
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx +0 -71
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +0 -166
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.ts +0 -23
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +0 -87
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +0 -76
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.ts +0 -391
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -291
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -69
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +0 -281
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.ts +0 -35
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -199
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +0 -262
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -256
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -86
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +0 -251
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -278
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +0 -247
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.ts +0 -31
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx +0 -78
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/DetailsRender.tsx +0 -52
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/HighlightRender.tsx +0 -46
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +0 -203
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +0 -99
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.ts +0 -250
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails.zip +0 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -111
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +0 -214
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.ts +0 -31
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/DetailsRender.tsx +0 -59
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +0 -186
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +0 -68
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -64
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +0 -104
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +0 -215
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/mock.ts +0 -5
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -344
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +0 -312
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts +0 -28
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +0 -112
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +0 -72
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.ts +0 -96
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.ts +0 -242
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -78
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +0 -76
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.ts +0 -53
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +0 -119
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +0 -109
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -111
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +0 -212
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.ts +0 -30
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -93
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -65
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +0 -265
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.ts +0 -30
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -123
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +0 -63
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +0 -249
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.ts +0 -47
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -114
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -94
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +0 -345
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +0 -113
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.tsx +0 -97
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +0 -196
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.ts +0 -77
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -115
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.stories.tsx +0 -102
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/embed-utils.ts +0 -311
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +0 -1186
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/mock.ts +0 -75
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +0 -221
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -55
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.tsx +0 -68
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +0 -145
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.ts +0 -22
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -111
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +0 -224
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.ts +0 -31
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -185
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -66
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +0 -209
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.ts +0 -23
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +0 -78
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +0 -52
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +0 -46
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +0 -220
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +0 -89
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -290
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.ts +0 -153
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +0 -59
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +0 -192
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +0 -73
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -237
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +0 -62
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +0 -205
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.ts +0 -32
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.tsx +0 -174
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +0 -145
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx +0 -71
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +0 -166
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.ts +0 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +0 -86
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +0 -75
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.ts +0 -391
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +0 -291
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -69
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +0 -281
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts +0 -35
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +0 -199
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +0 -262
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +0 -256
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -86
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +0 -251
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +0 -278
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +0 -247
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.ts +0 -31
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/Avatar.tsx +0 -78
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/DetailsRender.tsx +0 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/HighlightRender.tsx +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +0 -203
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +0 -99
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.ts +0 -250
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails.zip +0 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +0 -111
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +0 -214
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.ts +0 -31
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DetailsRender.tsx +0 -59
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +0 -186
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +0 -68
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +0 -32
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +0 -103
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/index.tsx +0 -213
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/mock.ts +0 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +0 -344
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +0 -312
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.ts +0 -28
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +0 -112
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +0 -72
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.ts +0 -96
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.ts +0 -242
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -78
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +0 -81
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -89
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.ts +0 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +0 -120
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +0 -109
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +0 -111
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +0 -212
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.ts +0 -30
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +0 -93
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -65
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +0 -265
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.ts +0 -30
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +0 -123
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +0 -63
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +0 -249
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.ts +0 -47
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +0 -114
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -94
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +0 -345
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +0 -113
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.tsx +0 -97
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +0 -196
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.ts +0 -77
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +0 -115
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.stories.tsx +0 -102
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/embed-utils.ts +0 -311
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +0 -1186
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/mock.ts +0 -75
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/utils.ts +0 -221
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +0 -55
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.tsx +0 -68
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +0 -145
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.ts +0 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +0 -111
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -64
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +0 -224
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.ts +0 -31
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +0 -185
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -66
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +0 -209
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.ts +0 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +0 -78
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +0 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +0 -46
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +0 -220
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +0 -89
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -290
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.ts +0 -153
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +0 -59
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +0 -192
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +0 -73
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +0 -237
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +0 -62
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.ts +0 -18
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +0 -205
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.ts +0 -32
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.tsx +0 -174
- /package/tests/assets/{components → library/components}/create/Pega_DXIL_MyTestText/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/create/_components.md +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDetails → library/components/create/shared}/Operator.tsx +0 -0
- /package/tests/assets/{components/create/Pega_DXIL_MyTestText → library/components/create/shared}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyCurrency → library/components/create/shared}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyBoolean/Boolean.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyBoolean/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyCurrency/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDate/mock.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDate/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDateTime/date.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDateTime/mock.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDateTime/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDecimal/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDetails/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyCurrency → library/components/createAll/Constellation/Pega_DXIL_MyEmail}/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyEmail/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyForm/DefaultForm.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyForm/mock.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyForm/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyIconButtonURL/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyInteger/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPage/OneColumnPage.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPage/localizations.json +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPage/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPageWidget/OneColumnPage.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDecimal → library/components/createAll/Constellation/Pega_DXIL_MyParagraph}/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyParagraph/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPercentage/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPhone/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyEmail → library/components/createAll/Constellation/Pega_DXIL_MyPicklist}/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPicklist/mock.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyPicklist/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyInteger → library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyRadioButtons → library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyRadioButtons → library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/textformat-utils.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/component-constants.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/date.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyParagraph → library/components/createAll/Constellation/Pega_DXIL_MySearchbox}/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/format-constants.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/picklist-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-constants.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MySearchbox/textformat-utils.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyText/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTextInput/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPercentage → library/components/createAll/Constellation/Pega_DXIL_MyURL}/event-utils.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/Pega_DXIL_MyURL/styles.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Constellation/_components.md +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDetails → library/components/createAll/Constellation/shared}/Operator.tsx +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyBoolean → library/components/createAll/Constellation/shared}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDate → library/components/createAll/Constellation/shared}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components → library/components}/createAll/Launchpad/_components.md +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyCaseWidget → original/components/create/Pega_DXIL_MyTestText}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyBoolean → original/components/create/Pega_DXIL_MyTestText}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyBoolean/Boolean.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyCurrency → original/components/createAll/Constellation/Pega_DXIL_MyBoolean}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyBoolean/boolean-format.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyBoolean/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyCaseWidget → original/components/createAll/Constellation/Pega_DXIL_MyBoolean}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDate → original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyCurrency → original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDateTime → original/components/createAll/Constellation/Pega_DXIL_MyCurrency}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDate → original/components/createAll/Constellation/Pega_DXIL_MyCurrency}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDecimal → original/components/createAll/Constellation/Pega_DXIL_MyCurrency}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDate/DateFormatter.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDate/FormattedText.tsx +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDecimal → original/components/createAll/Constellation/Pega_DXIL_MyDate}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDate/date.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDate/demo.stories.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDate/mock.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDateTime → original/components/createAll/Constellation/Pega_DXIL_MyDate}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyEmail → original/components/createAll/Constellation/Pega_DXIL_MyDate}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyDetails → original/components/createAll/Constellation/Pega_DXIL_MyDateTime}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-time.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDateTime/mock.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDecimal → original/components/createAll/Constellation/Pega_DXIL_MyDateTime}/styles.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyEmail → original/components/createAll/Constellation/Pega_DXIL_MyDecimal}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyEmail → original/components/createAll/Constellation/Pega_DXIL_MyDecimal}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyInteger → original/components/createAll/Constellation/Pega_DXIL_MyDecimal}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyForm → original/components/createAll/Constellation/Pega_DXIL_MyDetails}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDetails/StatusWork.tsx +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDetails/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyDetails/utils.js +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyIconButtonURL → original/components/createAll/Constellation/Pega_DXIL_MyEmail}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPhone → original/components/createAll/Constellation/Pega_DXIL_MyEmail}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyForm → original/components/createAll/Constellation/Pega_DXIL_MyEmail}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyParagraph → original/components/createAll/Constellation/Pega_DXIL_MyEmail}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyForm/DefaultForm.svg +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyInteger → original/components/createAll/Constellation/Pega_DXIL_MyForm}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyForm/mock.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL → original/components/createAll/Constellation/Pega_DXIL_MyForm}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPage → original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyInteger → original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget → original/components/createAll/Constellation/Pega_DXIL_MyInteger}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPage → original/components/createAll/Constellation/Pega_DXIL_MyInteger}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPercentage → original/components/createAll/Constellation/Pega_DXIL_MyInteger}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyPage/OneColumnPage.svg +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPageWidget → original/components/createAll/Constellation/Pega_DXIL_MyPage}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyPage/localizations.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget → original/components/createAll/Constellation/Pega_DXIL_MyPage}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.tsx +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyParagraph → original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPageWidget → original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/OneColumnPage.svg +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPercentage → original/components/createAll/Constellation/Pega_DXIL_MyPageWidget}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/mock.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyParagraph → original/components/createAll/Constellation/Pega_DXIL_MyPageWidget}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPhone → original/components/createAll/Constellation/Pega_DXIL_MyParagraph}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPicklist → original/components/createAll/Constellation/Pega_DXIL_MyParagraph}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPercentage → original/components/createAll/Constellation/Pega_DXIL_MyParagraph}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPhone → original/components/createAll/Constellation/Pega_DXIL_MyParagraph}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPicklist → original/components/createAll/Constellation/Pega_DXIL_MyPercentage}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPhone → original/components/createAll/Constellation/Pega_DXIL_MyPercentage}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyPicklist → original/components/createAll/Constellation/Pega_DXIL_MyPercentage}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyRadioButtons → original/components/createAll/Constellation/Pega_DXIL_MyPhone}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPicklist → original/components/createAll/Constellation/Pega_DXIL_MyPhone}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyRadioButtons → original/components/createAll/Constellation/Pega_DXIL_MyPhone}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MySearchbox → original/components/createAll/Constellation/Pega_DXIL_MyPicklist}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyRadioButtons → original/components/createAll/Constellation/Pega_DXIL_MyPicklist}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyPicklist/mock.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyRadioButtons → original/components/createAll/Constellation/Pega_DXIL_MyPicklist}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MySearchbox → original/components/createAll/Constellation/Pega_DXIL_MyPicklist}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyText → original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MySearchbox → original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MySearchbox → original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyTextInput → original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyRadioButtons → original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons}/textformat-utils.tsx +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyTextInput → original/components/createAll/Constellation/Pega_DXIL_MySearchbox}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/component-constants.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/date.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyURL → original/components/createAll/Constellation/Pega_DXIL_MySearchbox}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/format-constants.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/picklist-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/repeat-constants.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyText → original/components/createAll/Constellation/Pega_DXIL_MySearchbox}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyTimeOfDay → original/components/createAll/Constellation/Pega_DXIL_MySearchbox}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MySearchbox/textformat-utils.tsx +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyTimeOfDay → original/components/createAll/Constellation/Pega_DXIL_MyText}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTextInput → original/components/createAll/Constellation/Pega_DXIL_MyText}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails → original/components/createAll/Constellation/Pega_DXIL_MyTextInput}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTextInput/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay → original/components/createAll/Constellation/Pega_DXIL_MyTextInput}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyURL → original/components/createAll/Constellation/Pega_DXIL_MyTextInput}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm → original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm → original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyCurrency → original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/time-of-day.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +0 -0
- /package/tests/assets/{components/createAll/Constellation/Pega_DXIL_MyURL → original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyBoolean → original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -0
- /package/tests/assets/{components → original/components}/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad → original/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyURL → original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm}/styles.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyCaseWidget → original/components/createAll/Constellation/Pega_DXIL_MyURL}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyCurrency → original/components/createAll/Constellation/Pega_DXIL_MyURL}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDate → original/components/createAll/Constellation/Pega_DXIL_MyURL}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyCurrency → original/components/createAll/Launchpad/Pega_DXIL_MyBoolean}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDate → original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDateTime → original/components/createAll/Launchpad/Pega_DXIL_MyCurrency}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDecimal → original/components/createAll/Launchpad/Pega_DXIL_MyCurrency}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDecimal → original/components/createAll/Launchpad/Pega_DXIL_MyDate}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyEmail → original/components/createAll/Launchpad/Pega_DXIL_MyDate}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDetails → original/components/createAll/Launchpad/Pega_DXIL_MyDateTime}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyEmail → original/components/createAll/Launchpad/Pega_DXIL_MyDecimal}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyInteger → original/components/createAll/Launchpad/Pega_DXIL_MyDecimal}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyForm → original/components/createAll/Launchpad/Pega_DXIL_MyDetails}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL → original/components/createAll/Launchpad/Pega_DXIL_MyEmail}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyDecimal → original/components/createAll/Launchpad/Pega_DXIL_MyEmail}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyParagraph → original/components/createAll/Launchpad/Pega_DXIL_MyEmail}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyInteger → original/components/createAll/Launchpad/Pega_DXIL_MyForm}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyForm/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPage → original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget → original/components/createAll/Launchpad/Pega_DXIL_MyInteger}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPercentage → original/components/createAll/Launchpad/Pega_DXIL_MyInteger}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPageWidget → original/components/createAll/Launchpad/Pega_DXIL_MyPage}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyPage/config.json +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyParagraph → original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPercentage → original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPhone → original/components/createAll/Launchpad/Pega_DXIL_MyParagraph}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyEmail → original/components/createAll/Launchpad/Pega_DXIL_MyParagraph}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPhone → original/components/createAll/Launchpad/Pega_DXIL_MyParagraph}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPicklist → original/components/createAll/Launchpad/Pega_DXIL_MyPercentage}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPicklist → original/components/createAll/Launchpad/Pega_DXIL_MyPercentage}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyRadioButtons → original/components/createAll/Launchpad/Pega_DXIL_MyPhone}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyRadioButtons → original/components/createAll/Launchpad/Pega_DXIL_MyPhone}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MySearchbox → original/components/createAll/Launchpad/Pega_DXIL_MyPicklist}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyInteger → original/components/createAll/Launchpad/Pega_DXIL_MyPicklist}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MySearchbox → original/components/createAll/Launchpad/Pega_DXIL_MyPicklist}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyText → original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyParagraph → original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTextInput → original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTextInput → original/components/createAll/Launchpad/Pega_DXIL_MySearchbox}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPercentage → original/components/createAll/Launchpad/Pega_DXIL_MySearchbox}/event-utils.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay → original/components/createAll/Launchpad/Pega_DXIL_MySearchbox}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay → original/components/createAll/Launchpad/Pega_DXIL_MyText}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails → original/components/createAll/Launchpad/Pega_DXIL_MyTextInput}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyURL → original/components/createAll/Launchpad/Pega_DXIL_MyTextInput}/suggestions-handler.ts +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm → original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyURL → original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails}/PConnProps.d.ts +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +0 -0
- /package/tests/assets/{components → original/components}/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +0 -0
- /package/tests/assets/{components/createAll/Launchpad/Pega_DXIL_MyPhone → original/components/createAll/Launchpad/Pega_DXIL_MyURL}/event-utils.ts +0 -0
package/src/util.js
CHANGED
|
@@ -1,43 +1,200 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
2
3
|
import { join } from 'path';
|
|
3
4
|
import { promisify } from 'util';
|
|
4
5
|
import https from 'https';
|
|
5
6
|
import crypto from 'node:crypto';
|
|
6
7
|
import { createRequire } from 'module';
|
|
8
|
+
import {jwtDecode} from 'jwt-decode';
|
|
9
|
+
import archiver from 'archiver';
|
|
10
|
+
import {unarchive} from 'unarchive';
|
|
7
11
|
|
|
8
12
|
import chalk from 'chalk';
|
|
9
13
|
import mustache from 'mustache';
|
|
10
14
|
import pascalCase from 'pascalcase';
|
|
11
15
|
import fetch from 'node-fetch';
|
|
12
|
-
import checkGit from 'check-git';
|
|
16
|
+
// import checkGit from 'check-git';
|
|
13
17
|
|
|
14
18
|
import * as currentPath from './currentPath.cjs';
|
|
15
19
|
import {
|
|
16
20
|
COMPONENTS_DIRECTORY_PATH,
|
|
21
|
+
COMPONENTS_CONFIG_FILE_NAME,
|
|
17
22
|
TASKS_CONFIG_JSON_FILENAME,
|
|
23
|
+
PACKAGE_JSON_FILENAME,
|
|
18
24
|
TOKEN_PATH,
|
|
19
25
|
OOTB_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
20
26
|
DELETE_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
21
27
|
LP_DELETE_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
22
28
|
OOTB_COMPONENTS,
|
|
23
|
-
USE_PROMOTED_WEB_PACK
|
|
29
|
+
USE_PROMOTED_WEB_PACK,
|
|
30
|
+
BOOTSTRAP_CONFIG,
|
|
31
|
+
LIBRARY_BASED,
|
|
32
|
+
SHARED_DIRECTORY,
|
|
33
|
+
SHOW_DEBUG,
|
|
34
|
+
COMPONENTS_PATH,
|
|
35
|
+
ARCHIVES_PATH,
|
|
36
|
+
TEMP_PATH,
|
|
37
|
+
JEST_TESTS_FUNCTIONAL_PATH,
|
|
38
|
+
IMPORT_RELATIVE_PATH,
|
|
39
|
+
EXPORT_RELATIVE_PATH
|
|
24
40
|
} from './constants.js';
|
|
25
41
|
|
|
42
|
+
|
|
26
43
|
const access = promisify(fs.access);
|
|
27
44
|
|
|
45
|
+
let showDebug = false;
|
|
46
|
+
let debugLevel = 1;
|
|
47
|
+
let haveDependencyDifference = false;
|
|
48
|
+
let addAboutData = true;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
// updated upon start
|
|
52
|
+
let defaultConfigs = {
|
|
53
|
+
serverType: "",
|
|
54
|
+
isLibraryBased: false,
|
|
55
|
+
devBuild: true,
|
|
56
|
+
library: "",
|
|
57
|
+
organization: "",
|
|
58
|
+
currentOrgLib: "",
|
|
59
|
+
version: "",
|
|
60
|
+
buildVersion: "",
|
|
61
|
+
displayLibVersion: "",
|
|
62
|
+
showDebug: false,
|
|
63
|
+
importRelativePath: "",
|
|
64
|
+
exportRelativePath: ""
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
let pegaConfig = null;
|
|
68
|
+
let pegaData = null;
|
|
69
|
+
let sPegaData;
|
|
70
|
+
let sPegaServerConfig;
|
|
71
|
+
|
|
72
|
+
export const modAddAboutData = (addInAboutData) => {
|
|
73
|
+
// used by jest to not put in to match assets without aboutData
|
|
74
|
+
addAboutData = addInAboutData;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const addDebugLog = (sFunctionName, sLogData, sIncDec) => {
|
|
78
|
+
|
|
79
|
+
let sLog;
|
|
80
|
+
if (showDebug) {
|
|
81
|
+
if (sIncDec === "-") {
|
|
82
|
+
debugLevel--;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
sLog = `>> log ${debugLevel} `;
|
|
86
|
+
|
|
87
|
+
for (let i =0; i < debugLevel; i++) {
|
|
88
|
+
sLog = sLog.concat("-");
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
sLog = sLog.concat(sFunctionName).concat(": ").concat(sLogData);
|
|
92
|
+
|
|
93
|
+
console.log(`${chalk.hex('#A0522D')(sLog)}`);
|
|
94
|
+
|
|
95
|
+
if (sIncDec === "+") {
|
|
96
|
+
debugLevel++;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const setUpDefaults = async () => {
|
|
103
|
+
|
|
104
|
+
// defaults, start up function will set these up
|
|
105
|
+
// so that won't have to continously hit files to get data
|
|
106
|
+
// thus saving time.
|
|
107
|
+
let retrievedConfigData = {
|
|
108
|
+
serverType: "",
|
|
109
|
+
isLibraryBased: false,
|
|
110
|
+
devBuild: true,
|
|
111
|
+
library: "",
|
|
112
|
+
organization: "",
|
|
113
|
+
currentOrgLib: "",
|
|
114
|
+
version: "",
|
|
115
|
+
buildVersion: "",
|
|
116
|
+
displayLibVersion: "",
|
|
117
|
+
showDebug: false,
|
|
118
|
+
importRelativePath: "",
|
|
119
|
+
exportRelativePath: ""
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
// retrievedConfigData
|
|
123
|
+
const currentDirectory = process.cwd();
|
|
124
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
125
|
+
|
|
126
|
+
try {
|
|
127
|
+
// force to throw error and not console log
|
|
128
|
+
await checkPathAccess(pegaConfigJsonPath, {}, true);
|
|
129
|
+
|
|
130
|
+
let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
131
|
+
data = JSON.parse(data);
|
|
132
|
+
|
|
133
|
+
if (data[IMPORT_RELATIVE_PATH]) {
|
|
134
|
+
retrievedConfigData.importRelativePath = data[IMPORT_RELATIVE_PATH];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
if (data[EXPORT_RELATIVE_PATH]) {
|
|
139
|
+
retrievedConfigData.exportRelativePath = data[EXPORT_RELATIVE_PATH];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (data[LIBRARY_BASED]) {
|
|
143
|
+
retrievedConfigData.isLibraryBased = data[LIBRARY_BASED];
|
|
144
|
+
}
|
|
145
|
+
retrievedConfigData.library = data.component.library;
|
|
146
|
+
retrievedConfigData.version = data.component.version;
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
const { organization } = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8'));
|
|
150
|
+
retrievedConfigData.organization = organization;
|
|
151
|
+
|
|
152
|
+
if (data["showDebug"]) {
|
|
153
|
+
retrievedConfigData.showDebug = data.showDebug;
|
|
154
|
+
showDebug = data.showDebug;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
retrievedConfigData.serverType = data["server-config"].serverType;
|
|
158
|
+
retrievedConfigData.devBuild = data["server-config"].devBuild;
|
|
159
|
+
|
|
160
|
+
retrievedConfigData.buildVersion = retrievedConfigData.devBuild ? `${retrievedConfigData.version}-dev` : retrievedConfigData.version;
|
|
161
|
+
retrievedConfigData.currentOrgLib = `${retrievedConfigData.organization}_${retrievedConfigData.library}`;
|
|
162
|
+
retrievedConfigData.displayLibVersion = `${retrievedConfigData.currentOrgLib }/${retrievedConfigData.buildVersion}`;
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
catch (ex) {
|
|
166
|
+
// when can't find it, always be false, assume no library based.
|
|
167
|
+
// This is IMPORTANT for init (npx install)
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return JSON.parse(JSON.stringify(retrievedConfigData));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// initialize
|
|
175
|
+
// await setUpDefaults();
|
|
176
|
+
|
|
28
177
|
export const checkPathAccess = async (path, options = {}, throwError = false) => {
|
|
178
|
+
|
|
179
|
+
|
|
29
180
|
const { errorMessage } = options;
|
|
30
181
|
|
|
31
182
|
try {
|
|
32
183
|
await access(path, fs.constants.R_OK);
|
|
33
184
|
} catch (err) {
|
|
34
185
|
if (throwError) {
|
|
186
|
+
if (showDebug) addDebugLog("checkPathAccess", "path: ".concat(path), "+");
|
|
187
|
+
if (showDebug) addDebugLog("checkPathAccess", "Error: ".concat(err), "");
|
|
188
|
+
if (showDebug) addDebugLog("checkPathAccess", "END", "-");
|
|
35
189
|
throw new Error(err);
|
|
190
|
+
|
|
36
191
|
}
|
|
37
192
|
else {
|
|
193
|
+
if (showDebug) addDebugLog("checkPathAccess", "path: ".concat(path), "+");
|
|
38
194
|
const message =
|
|
39
195
|
errorMessage || `${chalk.red.bold('ERROR')} Could not able to access path - ${path}`;
|
|
40
196
|
console.error(message);
|
|
197
|
+
if (showDebug) addDebugLog("checkPathAccess", "END", "-");
|
|
41
198
|
process.exit(1);
|
|
42
199
|
}
|
|
43
200
|
|
|
@@ -45,6 +202,7 @@ export const checkPathAccess = async (path, options = {}, throwError = false) =>
|
|
|
45
202
|
};
|
|
46
203
|
|
|
47
204
|
export const getUseWebPackPromotion = async () => {
|
|
205
|
+
if (showDebug) addDebugLog("getUseWebPackPromotion", "", "");
|
|
48
206
|
const currentDirectory = process.cwd();
|
|
49
207
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
50
208
|
|
|
@@ -79,6 +237,8 @@ export const getUseWebPackPromotion = async () => {
|
|
|
79
237
|
}
|
|
80
238
|
|
|
81
239
|
export const updateUseWebPackPromotion = async ( useValue = false ) => {
|
|
240
|
+
if (showDebug) addDebugLog("updateUseWebPackPromotion", "", "");
|
|
241
|
+
|
|
82
242
|
const currentDirectory = process.cwd();
|
|
83
243
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
84
244
|
|
|
@@ -96,11 +256,149 @@ export const updateUseWebPackPromotion = async ( useValue = false ) => {
|
|
|
96
256
|
|
|
97
257
|
data["usePromotedWebPack"] = useValue;
|
|
98
258
|
|
|
99
|
-
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(data, null, 4), { encoding: 'utf8' });
|
|
259
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(data, null, 4), { encoding: 'utf8',flag:'w' });
|
|
260
|
+
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export const getAboutData = async (currentOrgLib, buildVersion, dateStamp) => {
|
|
264
|
+
if (showDebug) addDebugLog("getAboutData", `currentOrgLib: ${currentOrgLib}, buildVersion: ${buildVersion}, dateStamp: ${dateStamp}`)
|
|
265
|
+
const tokenAndStaticServer = await getC11NB2STokenAndStaticServer();
|
|
266
|
+
|
|
267
|
+
if (tokenAndStaticServer.C11NB2S === undefined) {
|
|
268
|
+
// console.log(chalk.yellowBright("Need to authenticate, missing services token.\nLibrary requires authentication to acquire a token to build."));
|
|
269
|
+
return `${currentOrgLib} ${buildVersion}, ${dateStamp}`;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const jwt = jwtDecode(tokenAndStaticServer.C11NB2S);
|
|
273
|
+
let infinityVersion= jwt.infinity_version;
|
|
274
|
+
infinityVersion = infinityVersion.replace("8.", "");
|
|
275
|
+
|
|
276
|
+
return `${currentOrgLib} ${buildVersion}, ${dateStamp}, ${infinityVersion}`;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export const checkJWTExpiration = async () => {
|
|
280
|
+
const tokenAndStaticServer = await getC11NB2STokenAndStaticServer();
|
|
281
|
+
|
|
282
|
+
if (tokenAndStaticServer.C11NB2S === undefined) {
|
|
283
|
+
console.log(chalk.redBright("Need to authenticate, missing services token.\nBuilding a library requires authentication to acquire a token to build."));
|
|
284
|
+
process.exit(1);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
const jwt = jwtDecode(tokenAndStaticServer.C11NB2S);
|
|
288
|
+
const { exp, customer_org } = jwt;
|
|
289
|
+
if (exp < (new Date().getTime() + 1) / 1000) {
|
|
290
|
+
console.log(chalk.redBright("JWT token has expired, please reauthenticate."));
|
|
291
|
+
process.exit(1);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// check that there is customer_org
|
|
295
|
+
if (!customer_org || customer_org === "") {
|
|
296
|
+
console.log(chalk.red(`PegaInfinity server DSS setting ${chalk.redBright.bold(`C11nCCv2CustomerOrg`)} is NOT set.`));
|
|
297
|
+
console.log(chalk.red("Please update DSS setting, save and then reauthenticate."));
|
|
298
|
+
process.exit(1);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export const getLibraryBased = () => {
|
|
304
|
+
if (showDebug) addDebugLog("getLibraryBased", "", "");
|
|
305
|
+
// const currentDirectory = process.cwd();
|
|
306
|
+
// const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
307
|
+
|
|
308
|
+
// try {
|
|
309
|
+
// // force to throw error and not console log
|
|
310
|
+
// await checkPathAccess(pegaConfigJsonPath, {}, true);
|
|
311
|
+
// }
|
|
312
|
+
// catch (ex) {
|
|
313
|
+
// // when can't find it, always be false, assume no library based.
|
|
314
|
+
// // This is IMPORTANT for init (npx install)
|
|
315
|
+
// return false;
|
|
316
|
+
// }
|
|
317
|
+
|
|
318
|
+
// let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
319
|
+
// data = JSON.parse(data);
|
|
320
|
+
|
|
321
|
+
// if (data[LIBRARY_BASED]) {
|
|
322
|
+
// if (showDebug) addDebugLog("getLibraryBased", `based: ${data[LIBRARY_BASED]}`, "");
|
|
323
|
+
// if (showDebug) addDebugLog("getLibraryBased", "END", "-");
|
|
324
|
+
// return data[LIBRARY_BASED];
|
|
325
|
+
// }
|
|
326
|
+
// else {
|
|
327
|
+
// if (showDebug) addDebugLog("getLibraryBased", "END", "-");
|
|
328
|
+
// return false;
|
|
329
|
+
// }
|
|
330
|
+
|
|
331
|
+
return defaultConfigs.isLibraryBased;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export const setLibraryBased = async (isLibraryBased) => {
|
|
335
|
+
if (showDebug) addDebugLog("setLibraryBased", "", "");
|
|
336
|
+
const currentDirectory = process.cwd();
|
|
337
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
338
|
+
|
|
339
|
+
try {
|
|
340
|
+
// force to throw error and not console log
|
|
341
|
+
await checkPathAccess(pegaConfigJsonPath, {}, true);
|
|
342
|
+
}
|
|
343
|
+
catch (ex) {
|
|
344
|
+
// when can't find it, always be false, assume no library based.
|
|
345
|
+
// This is IMPORTANT for init (npx install)
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
350
|
+
data = JSON.parse(data);
|
|
351
|
+
|
|
352
|
+
if (data[LIBRARY_BASED] != undefined) {
|
|
353
|
+
data[LIBRARY_BASED] = isLibraryBased;
|
|
354
|
+
|
|
355
|
+
// update file
|
|
356
|
+
// stringify "4", makes the json string look like JSON in the file, formated instead of a single line
|
|
357
|
+
try {
|
|
358
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(data, null, 4), { encoding: 'utf8',flag:'w' });
|
|
359
|
+
}
|
|
360
|
+
catch (err) {
|
|
361
|
+
console.error(err);
|
|
362
|
+
}
|
|
363
|
+
//await forceDefaultsUpdate();
|
|
364
|
+
defaultConfigs.isLibraryBased = isLibraryBased;
|
|
365
|
+
|
|
366
|
+
// reset
|
|
367
|
+
pegaData = null;
|
|
368
|
+
pegaConfig = null;
|
|
369
|
+
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export const getShowDebug = () => {
|
|
375
|
+
// const currentDirectory = process.cwd();
|
|
376
|
+
// const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
377
|
+
|
|
378
|
+
// try {
|
|
379
|
+
// // force to throw error and not console log
|
|
380
|
+
// await checkPathAccess(pegaConfigJsonPath, {}, true);
|
|
381
|
+
// }
|
|
382
|
+
// catch (ex) {
|
|
383
|
+
// // when can't find it, always be false, assume no library based.
|
|
384
|
+
// // This is IMPORTANT for init (npx install)
|
|
385
|
+
// return false;
|
|
386
|
+
// }
|
|
387
|
+
|
|
388
|
+
// let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
389
|
+
// data = JSON.parse(data);
|
|
390
|
+
|
|
391
|
+
// if (data[SHOW_DEBUG]) {
|
|
392
|
+
// return data[SHOW_DEBUG];
|
|
393
|
+
// }
|
|
394
|
+
// else return false;
|
|
395
|
+
return defaultConfigs.showDebug;
|
|
100
396
|
|
|
101
397
|
}
|
|
102
398
|
|
|
399
|
+
|
|
103
400
|
export const deleteLocalComponent = async componentKey => {
|
|
401
|
+
if (showDebug) addDebugLog("deleteLocalComponent", `componentKey: ${componentKey}`, "");
|
|
104
402
|
const currentDirectory = process.cwd();
|
|
105
403
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
106
404
|
|
|
@@ -136,6 +434,7 @@ export const getHttpsAgent = serverConfig => {
|
|
|
136
434
|
};
|
|
137
435
|
|
|
138
436
|
export const deleteServerComponent = async componentKey => {
|
|
437
|
+
if (showDebug) addDebugLog("deleteServerComponent", `componentKey: ${componentKey}`, "");
|
|
139
438
|
const serverConfig = await getPegaServerConfig();
|
|
140
439
|
const { server, user, password } = serverConfig;
|
|
141
440
|
const url = constructCompleteUrl(server, DELETE_COMPONENT_SERVICE_REST_ENDPOINT);
|
|
@@ -180,7 +479,8 @@ export const deleteServerComponent = async componentKey => {
|
|
|
180
479
|
}
|
|
181
480
|
};
|
|
182
481
|
|
|
183
|
-
export const
|
|
482
|
+
export const copyFileToShared = async ( fileName, fileContents) => {
|
|
483
|
+
if (showDebug) addDebugLog("copyFileToShared", `fileName: ${fileName}`, "");
|
|
184
484
|
const currentDirectory = process.cwd();
|
|
185
485
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
186
486
|
|
|
@@ -198,13 +498,201 @@ export const getComponents = async () => {
|
|
|
198
498
|
}
|
|
199
499
|
|
|
200
500
|
const directory = join(currentDirectory, data[COMPONENTS_DIRECTORY_PATH]);
|
|
501
|
+
const sharedDirectory = join(directory, SHARED_DIRECTORY);
|
|
502
|
+
|
|
503
|
+
// if shared doesn't exist, create it
|
|
504
|
+
if (!fs.existsSync(sharedDirectory)) {
|
|
505
|
+
fs.mkdirSync(sharedDirectory, { recursive: true });
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
const filePath = join(sharedDirectory, fileName);
|
|
509
|
+
if (!fs.existsSync(filePath)) {
|
|
510
|
+
fs.writeFileSync(filePath, fileContents);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
export const getComponents = async (overrideDirectory = null) => {
|
|
517
|
+
if (showDebug) addDebugLog("getComponents", "", "");
|
|
518
|
+
const currentDirectory = process.cwd();
|
|
519
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
520
|
+
|
|
521
|
+
await checkPathAccess(pegaConfigJsonPath);
|
|
522
|
+
|
|
523
|
+
let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
524
|
+
|
|
525
|
+
data = JSON.parse(data);
|
|
526
|
+
|
|
527
|
+
if (!data[COMPONENTS_DIRECTORY_PATH]) {
|
|
528
|
+
console.error(
|
|
529
|
+
`${chalk.red.bold('ERROR')} Could not find components directory path in config.json`
|
|
530
|
+
);
|
|
531
|
+
process.exit(1);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
const directory = overrideDirectory || join(currentDirectory, data[COMPONENTS_DIRECTORY_PATH]);
|
|
535
|
+
|
|
201
536
|
return fs
|
|
202
537
|
.readdirSync(directory, { withFileTypes: true })
|
|
203
|
-
.filter(dirent => dirent.isDirectory())
|
|
538
|
+
.filter(dirent => dirent.isDirectory() && dirent.name !== SHARED_DIRECTORY)
|
|
204
539
|
.map(dirent => dirent.name);
|
|
205
540
|
};
|
|
206
541
|
|
|
542
|
+
export const getTopLevelConfigFiles = async (directory) => {
|
|
543
|
+
if (showDebug) addDebugLog("getTopLevelConfigFiles", `directory: ${directory}`, "");
|
|
544
|
+
if (fs.existsSync(directory)) {
|
|
545
|
+
return fs
|
|
546
|
+
.readdirSync(directory, { withFileTypes: true })
|
|
547
|
+
.filter(dirent => !dirent.isDirectory())
|
|
548
|
+
.map(dirent => dirent.name);
|
|
549
|
+
}
|
|
550
|
+
else {
|
|
551
|
+
return [];
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export const removeTopLevelConfigFiles = async (directory) => {
|
|
556
|
+
if (showDebug) addDebugLog("removeTopLevelConfigFiles", `directory: ${directory}`, "");
|
|
557
|
+
const configFiles = await getTopLevelConfigFiles(directory);
|
|
558
|
+
|
|
559
|
+
if (configFiles && configFiles.length > 0) {
|
|
560
|
+
for (const configF of configFiles) {
|
|
561
|
+
// don't remove these files, otherwise, remove it
|
|
562
|
+
if (configF !== "package-lock.json" &&
|
|
563
|
+
configF !== "package.json" &&
|
|
564
|
+
configF !== "tasks.config.json" &&
|
|
565
|
+
configF !== ".gitignore" &&
|
|
566
|
+
configF !== ".npmrc" &&
|
|
567
|
+
configF !== ".prettierignore") {
|
|
568
|
+
fs.rmSync( join(directory, configF), { recursive: true, force: true, maxRetries: 2 });
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export const restoreTopLevelConfigFiles = async(directory) => {
|
|
575
|
+
if (showDebug) addDebugLog("restoreTopLevelConfigFiles", `directory: ${directory}`, "");
|
|
576
|
+
const currentDirectory = process.cwd();
|
|
577
|
+
const tempDirectory = join(currentDirectory, TEMP_PATH);
|
|
578
|
+
const configFiles = await getTopLevelConfigFiles(tempDirectory);
|
|
579
|
+
|
|
580
|
+
if (configFiles && configFiles.length > 0) {
|
|
581
|
+
for (const configF of configFiles) {
|
|
582
|
+
if (configF !== "package-lock.json" && configF !== "package.json") {
|
|
583
|
+
fs.copyFileSync(join(tempDirectory, configF), join(directory, configF));
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export const getTemplateConfigFiles = async () => {
|
|
590
|
+
if (showDebug) addDebugLog("getTemplateConfigFiles", ``, "");
|
|
591
|
+
const currentDirectory = process.cwd();
|
|
592
|
+
const initDir = join(currentDirectory, "node_modules", "@pega", "custom-dx-components", "src", "tasks", "init");
|
|
593
|
+
const templateDir = join(initDir, "template");
|
|
594
|
+
|
|
595
|
+
if (fs.existsSync(templateDir)) {
|
|
596
|
+
return fs
|
|
597
|
+
.readdirSync(templateDir, { withFileTypes: true })
|
|
598
|
+
.filter(dirent => !dirent.isDirectory())
|
|
599
|
+
.map(dirent => dirent.name);
|
|
600
|
+
}
|
|
601
|
+
else {
|
|
602
|
+
return [];
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export const restoreTopLevelConfigFilesFromTemplate = async(clearDep = true) => {
|
|
608
|
+
if (showDebug) addDebugLog("restoreTopLevelConfigFilesFromTemplate", ``, "");
|
|
609
|
+
// we can't loose devDep that is part of install, so go get the template mustache and push
|
|
610
|
+
// those in, replacing any changes there, but allowing additional, an keeping it updated
|
|
611
|
+
// so won't loose new function if an old archive
|
|
612
|
+
const currentDirectory = process.cwd();
|
|
613
|
+
const initDir = join(currentDirectory, "node_modules", "@pega", "custom-dx-components", "src", "tasks", "init");
|
|
614
|
+
const templateDir = join(initDir, "template");
|
|
615
|
+
const packageTemplateJsonPath = path.join(templateDir, 'package.json.mustache');
|
|
616
|
+
|
|
617
|
+
const currentPackagePath = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
618
|
+
let currentPackageData;
|
|
619
|
+
|
|
620
|
+
// reset
|
|
621
|
+
haveDependencyDifference = false;
|
|
622
|
+
|
|
623
|
+
try {
|
|
624
|
+
currentPackageData = fs.readFileSync(currentPackagePath);
|
|
625
|
+
}
|
|
626
|
+
catch (ex) {
|
|
627
|
+
console.log($chalk.red(`\nUnable to retrieve current package.json.`))
|
|
628
|
+
process.exit(1);
|
|
629
|
+
}
|
|
630
|
+
let cData = JSON.parse(currentPackageData);
|
|
631
|
+
|
|
632
|
+
let retrievedTemplateData;
|
|
633
|
+
try {
|
|
634
|
+
retrievedTemplateData = fs.readFileSync(packageTemplateJsonPath);
|
|
635
|
+
}
|
|
636
|
+
catch (ex) {
|
|
637
|
+
console.log($chalk.red(`\nUnable to retrieve package.json.mustache from code.`))
|
|
638
|
+
process.exit(1);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// copy template dependecies and devDependencies
|
|
642
|
+
const tData = JSON.parse(retrievedTemplateData);
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
// check to see if any dependency changes
|
|
646
|
+
const sDep = JSON.stringify(tData.dependencies);
|
|
647
|
+
const sDevDep = JSON.stringify(tData.devDependencies);
|
|
648
|
+
|
|
649
|
+
const sCurDep = JSON.stringify(cData.dependencies);
|
|
650
|
+
const sCurDevDep = JSON.stringify(cData.devDependencies);
|
|
651
|
+
|
|
652
|
+
// any changes, update haveDependencyDifference variable
|
|
653
|
+
if (sDep != sCurDep) {
|
|
654
|
+
haveDependencyDifference = true;
|
|
655
|
+
}
|
|
656
|
+
else if (sDevDep != sCurDevDep) {
|
|
657
|
+
haveDependencyDifference = true;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
await removeTopLevelConfigFiles(currentDirectory);
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
// clear out
|
|
664
|
+
if (clearDep) {
|
|
665
|
+
cData.dependencies = {};
|
|
666
|
+
cData.devDependencies = {};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
const tDep = tData.dependencies;
|
|
671
|
+
for (const [key, value] of Object.entries(tDep)) {
|
|
672
|
+
cData.dependencies[key] = value;
|
|
673
|
+
}
|
|
674
|
+
const tDevDep = tData.devDependencies;
|
|
675
|
+
for (const [key, value] of Object.entries(tDevDep)) {
|
|
676
|
+
cData.devDependencies[key] = value;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
// update current package json file
|
|
680
|
+
fs.writeFileSync(currentPackagePath, JSON.stringify(cData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
681
|
+
|
|
682
|
+
// restore from template
|
|
683
|
+
const templateFiles = await getTemplateConfigFiles();
|
|
684
|
+
if (templateFiles && templateFiles.length > 0) {
|
|
685
|
+
for (const tFile of templateFiles) {
|
|
686
|
+
if (tFile !== "package.json.mustache" && tFile !== "templateNPMRC.txt" && tFile !== "tasks.config.json") {
|
|
687
|
+
fs.copyFileSync(join(templateDir, tFile), join(currentDirectory, tFile));
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
}
|
|
693
|
+
|
|
207
694
|
export const getSubComponents = async (directory, type) => {
|
|
695
|
+
if (showDebug) addDebugLog("getDirectoryFiles", `directory: ${directory}, type: ${type}`, "");
|
|
208
696
|
const subDirectory = join(directory, type);
|
|
209
697
|
return fs
|
|
210
698
|
.readdirSync(subDirectory, { withFileTypes: true })
|
|
@@ -213,6 +701,7 @@ export const getSubComponents = async (directory, type) => {
|
|
|
213
701
|
};
|
|
214
702
|
|
|
215
703
|
export const getDirectoryFiles = async directory => {
|
|
704
|
+
if (showDebug) addDebugLog("getDirectoryFiles", `directory: ${directory}`, "");
|
|
216
705
|
return fs
|
|
217
706
|
.readdirSync(directory, { withFileTypes: true })
|
|
218
707
|
.filter(dirent => !dirent.isDirectory())
|
|
@@ -220,6 +709,7 @@ export const getDirectoryFiles = async directory => {
|
|
|
220
709
|
};
|
|
221
710
|
|
|
222
711
|
export const getComponentsObj = async () => {
|
|
712
|
+
if (showDebug) addDebugLog("getComponentsObj", "", "+");
|
|
223
713
|
const compList = [];
|
|
224
714
|
|
|
225
715
|
// const componentList = await getDirectoryFiles(directory);
|
|
@@ -232,109 +722,338 @@ export const getComponentsObj = async () => {
|
|
|
232
722
|
container.name = name;
|
|
233
723
|
container.value = name;
|
|
234
724
|
|
|
725
|
+
if (showDebug) addDebugLog("getComponentsObj", "container: " + JSON.stringify(container), "");
|
|
235
726
|
return container;
|
|
236
727
|
})
|
|
237
728
|
);
|
|
238
729
|
}
|
|
239
730
|
|
|
731
|
+
if (showDebug) addDebugLog("getComponentsObj", "END", "-");
|
|
240
732
|
return compList;
|
|
241
733
|
};
|
|
242
734
|
|
|
243
|
-
export const getPegaConfig = async () => {
|
|
244
|
-
|
|
245
|
-
|
|
735
|
+
export const getPegaConfig = async (force = false) => {
|
|
736
|
+
if (showDebug) { addDebugLog("getPegaConfig", "", "+"); }
|
|
737
|
+
if (!pegaData || force) {
|
|
246
738
|
|
|
247
|
-
|
|
739
|
+
if (showDebug) { addDebugLog("getPegaConfig", "retrieveData", ""); }
|
|
740
|
+
const currentDirectory = process.cwd();
|
|
741
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
248
742
|
|
|
249
|
-
|
|
250
|
-
data = JSON.parse(data);
|
|
743
|
+
await checkPathAccess(pegaConfigJsonPath);
|
|
251
744
|
|
|
252
|
-
|
|
745
|
+
sPegaData = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
746
|
+
pegaData = JSON.parse(sPegaData);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
if (showDebug) { addDebugLog("getPegaConfig", "pegaData: " + sPegaData, ""); }
|
|
751
|
+
if (showDebug) { addDebugLog("getPegaConfig", "END", "-"); }
|
|
752
|
+
|
|
753
|
+
return pegaData;
|
|
253
754
|
};
|
|
254
755
|
|
|
255
756
|
export const getPegaServerConfig = async () => {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
757
|
+
if (showDebug) addDebugLog("getPegaServerConfig", "", "+");
|
|
758
|
+
if (!pegaConfig) {
|
|
759
|
+
pegaConfig = await getPegaConfig();
|
|
760
|
+
sPegaServerConfig = JSON.stringify(pegaConfig['server-config']);
|
|
761
|
+
}
|
|
259
762
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
return config
|
|
763
|
+
if (showDebug) addDebugLog("getPegaServerConfig", "server config:" + sPegaServerConfig, "");
|
|
764
|
+
if (showDebug) addDebugLog("getPegaServerConfig", "END", "-");
|
|
765
|
+
return pegaConfig['server-config'];
|
|
263
766
|
};
|
|
264
767
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
768
|
+
|
|
769
|
+
// contains all the config, task config, etc. created upon start
|
|
770
|
+
export const getConfigDefaults = () => {
|
|
771
|
+
if (showDebug) addDebugLog("getConfigDefaults", `defaults: ${JSON.stringify(defaultConfigs)}`, "");
|
|
772
|
+
|
|
773
|
+
return defaultConfigs;
|
|
774
|
+
|
|
268
775
|
}
|
|
269
776
|
|
|
270
|
-
export const
|
|
777
|
+
export const forceDefaultsUpdate = async () => {
|
|
778
|
+
defaultConfigs = await setUpDefaults();
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export const updateServerConfigRuleSetAndVersion = async (rulesetName, rulesetVersion) => {
|
|
782
|
+
if (showDebug) addDebugLog("updateServerConfigRuleSetAndVersion", `rulesetName: ${rulesetName}, rulesetVersion: ${rulesetVersion}`, "");
|
|
271
783
|
const currentDirectory = process.cwd();
|
|
272
784
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
273
|
-
let configData = await getPegaConfig();
|
|
785
|
+
let configData = await getPegaConfig(true);
|
|
274
786
|
let serverConfig = configData['server-config'];
|
|
275
|
-
|
|
787
|
+
|
|
788
|
+
serverConfig.rulesetName = rulesetName;
|
|
789
|
+
serverConfig.rulesetVersion = rulesetVersion;
|
|
276
790
|
|
|
277
791
|
// update file
|
|
278
792
|
// stringify "4", makes the json string look like JSON in the file, formated instead of a single line
|
|
279
|
-
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8' });
|
|
793
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
280
794
|
|
|
281
795
|
}
|
|
282
796
|
|
|
283
|
-
export const
|
|
797
|
+
export const updateComponentDefaultLibrary = async (library) => {
|
|
798
|
+
if (showDebug) addDebugLog("updateComponentDefaultLibrary", `library: ${library}`, "");
|
|
284
799
|
const currentDirectory = process.cwd();
|
|
285
800
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
286
801
|
|
|
287
802
|
await checkPathAccess(pegaConfigJsonPath);
|
|
288
803
|
|
|
289
|
-
let
|
|
290
|
-
|
|
804
|
+
let config = await getPegaConfig(true);
|
|
805
|
+
let componentsDefault = config.component;
|
|
806
|
+
componentsDefault.library = library;
|
|
291
807
|
|
|
292
|
-
if (!data[COMPONENTS_DIRECTORY_PATH]) {
|
|
293
|
-
console.error(
|
|
294
|
-
`${chalk.red.bold('ERROR')} Could not able find components directory path in config.json`
|
|
295
|
-
);
|
|
296
|
-
process.exit(1);
|
|
297
|
-
}
|
|
298
808
|
|
|
299
|
-
|
|
300
|
-
};
|
|
809
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(config, null, 4), { encoding: 'utf8',flag:'w' });
|
|
301
810
|
|
|
302
|
-
|
|
303
|
-
const content = fs.readFileSync(file, 'utf8');
|
|
304
|
-
return mustache.render(content, data);
|
|
305
|
-
};
|
|
811
|
+
}
|
|
306
812
|
|
|
307
|
-
export const
|
|
308
|
-
|
|
309
|
-
|
|
813
|
+
export const updateComponentDefaultVersion = async (version) => {
|
|
814
|
+
if (showDebug) addDebugLog("updateComponentDefaultVersion", `version: ${version}`, "");
|
|
815
|
+
const currentDirectory = process.cwd();
|
|
816
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
310
817
|
|
|
311
|
-
|
|
312
|
-
return pascalCase(string);
|
|
313
|
-
};
|
|
818
|
+
await checkPathAccess(pegaConfigJsonPath);
|
|
314
819
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
820
|
+
let config = await getPegaConfig(true);
|
|
821
|
+
let componentsDefault = config.component;
|
|
822
|
+
componentsDefault.version = version;
|
|
318
823
|
|
|
319
|
-
export const sanitize = str => {
|
|
320
|
-
/* Allow only numbers and case insensitive alphabets */
|
|
321
|
-
str = str.replace(/[^a-zA-Z0-9 ]/g, '');
|
|
322
|
-
/* spaces will be replaced by - */
|
|
323
|
-
str = str.replace(/\s+/g, '-');
|
|
324
|
-
return str;
|
|
325
|
-
};
|
|
326
824
|
|
|
327
|
-
|
|
328
|
-
/* basic semver version validation - 0.0.1-dev */
|
|
329
|
-
const regex = /^[0-9]\d*\.\d+\.\d+(?:-[a-zA-Z0-9]+)?$/g;
|
|
330
|
-
return regex.test(str);
|
|
331
|
-
};
|
|
825
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(config, null, 4), { encoding: 'utf8',flag:'w' });
|
|
332
826
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export const getConfigDevBuild = async() => {
|
|
830
|
+
if (showDebug) addDebugLog("getConfigDevBuild", "", "");
|
|
831
|
+
// const serverConfig = await getPegaServerConfig();
|
|
832
|
+
|
|
833
|
+
// return serverConfig.devBuild;
|
|
834
|
+
return defaultConfigs.devBuild;
|
|
835
|
+
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export const setConfigDevBuild = async (devBuild) => {
|
|
839
|
+
if (showDebug) addDebugLog("setConfigDevBuild", `devBuild: ${devBuild}`, "");
|
|
840
|
+
const currentDirectory = process.cwd();
|
|
841
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
842
|
+
let configData = await getPegaConfig(true);
|
|
843
|
+
let serverConfig = configData['server-config'];
|
|
844
|
+
serverConfig.devBuild = devBuild;
|
|
845
|
+
|
|
846
|
+
// update file
|
|
847
|
+
// stringify "4", makes the json string look like JSON in the file, formated instead of a single line
|
|
848
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
export const setConfigImportRelativePath = async (importRelativePath) => {
|
|
852
|
+
if (showDebug) addDebugLog("setConfigImportRelativePath", `importRelativePath: ${importRelativePath}`, "");
|
|
853
|
+
const currentDirectory = process.cwd();
|
|
854
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
855
|
+
let configData = await getPegaConfig(true);
|
|
856
|
+
configData[IMPORT_RELATIVE_PATH] = importRelativePath;
|
|
857
|
+
|
|
858
|
+
// update file
|
|
859
|
+
// stringify "4", makes the json string look like JSON in the file, formated instead of a single line
|
|
860
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export const setConfigExportRelativePath = async (exportRelativePath) => {
|
|
864
|
+
if (showDebug) addDebugLog("setConfigExportRelativePath", `exportRelativePath: ${exportRelativePath}`, "");
|
|
865
|
+
const currentDirectory = process.cwd();
|
|
866
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
867
|
+
let configData = await getPegaConfig(true);
|
|
868
|
+
configData[EXPORT_RELATIVE_PATH] = exportRelativePath;
|
|
869
|
+
|
|
870
|
+
// update file
|
|
871
|
+
// stringify "4", makes the json string look like JSON in the file, formated instead of a single line
|
|
872
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
export const updateDefaultOrganization = async (organization) => {
|
|
876
|
+
if (showDebug) addDebugLog("updateDefaultOrganization", `organization: ${organization}`, "");
|
|
877
|
+
let packageData = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf-8'));
|
|
878
|
+
|
|
879
|
+
packageData.organization = organization;
|
|
880
|
+
|
|
881
|
+
fs.writeFileSync(path.resolve('package.json'), JSON.stringify(packageData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
882
|
+
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export const updateConfigVersion = async (componentKey, buildVersion, currentOrgLib) => {
|
|
886
|
+
if (showDebug) addDebugLog("updateConfigVersion", `componentKey: ${componentKey}, buildVersion: ${buildVersion}, currentOrgLib: ${currentOrgLib}`, "");
|
|
887
|
+
const componentDirectory = await getComponentDirectoryPath(componentKey);
|
|
888
|
+
const configFileName = 'config.json';
|
|
889
|
+
|
|
890
|
+
const configFile = path.join(componentDirectory, configFileName);
|
|
891
|
+
let configData;
|
|
892
|
+
try {
|
|
893
|
+
configData = fs.readFileSync(path.resolve(configFile), 'utf8');
|
|
894
|
+
} catch (err) {
|
|
895
|
+
// for now, if now file just end
|
|
896
|
+
console.log(`${chalk.bold.yellow(`Config file not available for: ${componentKey}`)}`);
|
|
897
|
+
return;
|
|
898
|
+
}
|
|
899
|
+
const currentDate = new Date(Date.now());
|
|
900
|
+
const dateStamp = currentDate.toDateString();
|
|
901
|
+
const aboutData = await getAboutData(currentOrgLib, buildVersion, dateStamp);
|
|
902
|
+
|
|
903
|
+
let data;
|
|
904
|
+
try {
|
|
905
|
+
data = JSON.parse(configData);
|
|
906
|
+
|
|
907
|
+
//find "About" and create or update
|
|
908
|
+
const properties = data.properties;
|
|
909
|
+
if (properties) {
|
|
910
|
+
let foundProp = null;
|
|
911
|
+
|
|
912
|
+
// check to see if PegaAboutData exists. If customer decides to put
|
|
913
|
+
// data under PegaAboutData, we won't change the order
|
|
914
|
+
// otherise, will put at bottom
|
|
915
|
+
for (let i in properties) {
|
|
916
|
+
if (properties[i].name && properties[i].name === "PegaAboutData") {
|
|
917
|
+
foundProp = properties[i];
|
|
918
|
+
break;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
if (addAboutData) {
|
|
923
|
+
if (foundProp) {
|
|
924
|
+
foundProp.label = aboutData;
|
|
925
|
+
}
|
|
926
|
+
else {
|
|
927
|
+
// don't have "About"
|
|
928
|
+
const aboutLabelJSON = {
|
|
929
|
+
"format": "LABEL",
|
|
930
|
+
"label": "About",
|
|
931
|
+
"name": "PegaAboutLabel",
|
|
932
|
+
"variant": "h3"
|
|
933
|
+
};
|
|
934
|
+
const aboutDataJSON = {
|
|
935
|
+
"format": "LABEL",
|
|
936
|
+
"label": aboutData,
|
|
937
|
+
"name": "PegaAboutData",
|
|
938
|
+
"variant": "primary"
|
|
939
|
+
}
|
|
940
|
+
properties.push(aboutLabelJSON);
|
|
941
|
+
properties.push(aboutDataJSON);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
}
|
|
947
|
+
} catch (er) {
|
|
948
|
+
throw new Error(`Invalid schema json in config.json: ${er}`);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
data.version = buildVersion;
|
|
952
|
+
|
|
953
|
+
if (addAboutData) {
|
|
954
|
+
data.buildDate = dateStamp;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
// write back file
|
|
960
|
+
fs.writeFileSync(configFile, JSON.stringify(data, null, 4), { encoding: 'utf8',flag:'w' });
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
export const getServerType = () => {
|
|
964
|
+
if (showDebug) addDebugLog("getServerType", "", "+");
|
|
965
|
+
// const defaultPegaServerConfig = await getPegaServerConfig();
|
|
966
|
+
// if (showDebug) addDebugLog("getServerType", "serverType:" + defaultPegaServerConfig.serverType, "");
|
|
967
|
+
if (showDebug) addDebugLog("getServerType", "END", "-");
|
|
968
|
+
// return defaultPegaServerConfig.serverType;
|
|
969
|
+
return defaultConfigs.serverType;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export const setServerType = async(serverType) => {
|
|
973
|
+
if (showDebug) addDebugLog("setServerType", `serverType: ${serverType}`, "");
|
|
974
|
+
const currentDirectory = process.cwd();
|
|
975
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
976
|
+
let configData = await getPegaConfig(true);
|
|
977
|
+
let serverConfig = configData['server-config'];
|
|
978
|
+
serverConfig.serverType = serverType;
|
|
979
|
+
|
|
980
|
+
// update file
|
|
981
|
+
// stringify "4", makes the json string look like JSON in the file, formated instead of a single line
|
|
982
|
+
fs.writeFileSync(pegaConfigJsonPath, JSON.stringify(configData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
983
|
+
|
|
984
|
+
// reset
|
|
985
|
+
pegaData = null;
|
|
986
|
+
pegaConfig = null;
|
|
987
|
+
|
|
988
|
+
await forceDefaultsUpdate();
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export const getSrcDirectoryPath = async () => {
|
|
992
|
+
const currentDirectory = process.cwd();
|
|
993
|
+
|
|
994
|
+
return join(currentDirectory, "src");
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export const getComponentDirectoryPath = async (componentKey, overrideDir = null) => {
|
|
998
|
+
if (showDebug) addDebugLog("getComponentDirectoryPath", "", "+");
|
|
999
|
+
const currentDirectory = process.cwd();
|
|
1000
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
1001
|
+
|
|
1002
|
+
await checkPathAccess(pegaConfigJsonPath);
|
|
1003
|
+
|
|
1004
|
+
let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
1005
|
+
data = JSON.parse(data);
|
|
1006
|
+
|
|
1007
|
+
if (!data[COMPONENTS_DIRECTORY_PATH]) {
|
|
1008
|
+
console.error(
|
|
1009
|
+
`${chalk.red.bold('ERROR')} Could not able find components directory path in config.json`
|
|
1010
|
+
);
|
|
1011
|
+
process.exit(1);
|
|
1012
|
+
}
|
|
1013
|
+
if (showDebug) addDebugLog("getComponentDirectoryPath", "path: " + join(currentDirectory, data[COMPONENTS_DIRECTORY_PATH], componentKey), "");
|
|
1014
|
+
if (showDebug) addDebugLog("getComponentDirectoryPath", "END", "-");
|
|
1015
|
+
return overrideDir ? join(overrideDir, componentKey) : join(currentDirectory, data[COMPONENTS_DIRECTORY_PATH], componentKey);
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
export const compileMustacheTemplate = (file, data) => {
|
|
1020
|
+
if (showDebug) addDebugLog("compileMustacheTemplate", `file: ${file}`, "");
|
|
1021
|
+
const content = fs.readFileSync(file, 'utf8');
|
|
1022
|
+
return mustache.render(content, data);
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
export const isPascalCase = string => {
|
|
1026
|
+
return string === pascalCase(string);
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
export const convertIntoPascalCase = string => {
|
|
1030
|
+
return pascalCase(string);
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
export const constructCompleteUrl = (baseServer, endPoint) => {
|
|
1034
|
+
if (showDebug) addDebugLog("constructCompleteUrl", "url: " + baseServer.endsWith('/') ? `${baseServer}${endPoint}` : `${baseServer}/${endPoint}`, "");
|
|
1035
|
+
return baseServer.endsWith('/') ? `${baseServer}${endPoint}` : `${baseServer}/${endPoint}`;
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
export const sanitize = str => {
|
|
1039
|
+
/* Allow only numbers and case insensitive alphabets */
|
|
1040
|
+
str = str.replace(/[^a-zA-Z0-9 ]/g, '');
|
|
1041
|
+
/* spaces will be replaced by - */
|
|
1042
|
+
str = str.replace(/\s+/g, '-');
|
|
1043
|
+
return str;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
export const validateSemver = str => {
|
|
1047
|
+
/* basic semver version validation - 0.0.1-dev */
|
|
1048
|
+
const regex = /^[0-9]\d*\.\d+\.\d+(?:-[a-zA-Z0-9]+)?$/g;
|
|
1049
|
+
return regex.test(str);
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
export const validateRulesetVersion = str => {
|
|
1053
|
+
/* Ruleset version range - 01-99 */
|
|
1054
|
+
if (str.indexOf('00') !== -1) {
|
|
1055
|
+
return false;
|
|
1056
|
+
}
|
|
338
1057
|
/* basic ruleset version validation - 01-01-01 */
|
|
339
1058
|
const regex = /^\d\d-\d\d-\d\d$/g;
|
|
340
1059
|
return regex.test(str);
|
|
@@ -344,7 +1063,7 @@ export const standardizeStr = (str, length) => {
|
|
|
344
1063
|
return str.padEnd(length);
|
|
345
1064
|
};
|
|
346
1065
|
|
|
347
|
-
export const showVersion = () => {
|
|
1066
|
+
export const showVersion = async () => {
|
|
348
1067
|
// get package version, so can display at start
|
|
349
1068
|
// const require = createRequire(import.meta.url);
|
|
350
1069
|
const require = createRequire(currentPath.default);
|
|
@@ -352,6 +1071,12 @@ export const showVersion = () => {
|
|
|
352
1071
|
const pData = require('@pega/custom-dx-components/package.json');
|
|
353
1072
|
|
|
354
1073
|
console.log(chalk.green(`DX Component Builder v${pData.version}`));
|
|
1074
|
+
showDebug = getShowDebug();
|
|
1075
|
+
|
|
1076
|
+
if (getLibraryBased() && getServerType() === "launchpad") {
|
|
1077
|
+
console.log(`\nLaunchpad commands only supported for ${chalk.bold.green('non library mode')} components.\n`);
|
|
1078
|
+
process.exit();
|
|
1079
|
+
}
|
|
355
1080
|
|
|
356
1081
|
// do a check of node version, it should be 18 or greater
|
|
357
1082
|
const arNodeVersion = process.versions.node.split('.');
|
|
@@ -368,15 +1093,16 @@ export const showVersion = () => {
|
|
|
368
1093
|
process.exit(1);
|
|
369
1094
|
}
|
|
370
1095
|
|
|
371
|
-
const hasGit = checkGit(process.cwd());
|
|
1096
|
+
// const hasGit = checkGit(process.cwd());
|
|
372
1097
|
|
|
373
|
-
if (!hasGit) {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
1098
|
+
// if (!hasGit) {
|
|
1099
|
+
// console.log(chalk.redBright('DX Component Builder - Git needs to be installed.'));
|
|
1100
|
+
// process.exit(1);
|
|
1101
|
+
// }
|
|
377
1102
|
};
|
|
378
1103
|
|
|
379
1104
|
export const getOOTBComponents = async () => {
|
|
1105
|
+
if (showDebug) addDebugLog("getOOTBComponents", "", "");
|
|
380
1106
|
return new Promise(resolve => {
|
|
381
1107
|
fs.readFile(OOTB_COMPONENTS, 'utf-8', async (error, ootbComponentsData) => {
|
|
382
1108
|
if (error) {
|
|
@@ -429,6 +1155,7 @@ export const getOOTBComponents = async () => {
|
|
|
429
1155
|
};
|
|
430
1156
|
|
|
431
1157
|
export const deleteInfinityServerComponent = async componentKey => {
|
|
1158
|
+
if (showDebug) addDebugLog("deleteInfinityServerComponent", `componentKey: ${componentKey}`, "");
|
|
432
1159
|
const serverConfig = await getPegaServerConfig();
|
|
433
1160
|
const { server } = serverConfig;
|
|
434
1161
|
const url = constructCompleteUrl(server, DELETE_COMPONENT_SERVICE_REST_ENDPOINT);
|
|
@@ -507,6 +1234,7 @@ export const deleteInfinityServerComponent = async componentKey => {
|
|
|
507
1234
|
};
|
|
508
1235
|
|
|
509
1236
|
export const deleteLaunchpadServerComponent = async componentKey => {
|
|
1237
|
+
if (showDebug) addDebugLog("deleteLaunchpadServerComponent", `componentKey: ${componentKey}`, "");
|
|
510
1238
|
const { server, isolationId } = await getPegaServerConfig();
|
|
511
1239
|
const deleteUrl = constructCompleteUrl(
|
|
512
1240
|
server,
|
|
@@ -592,3 +1320,898 @@ export const deleteLaunchpadServerComponent = async componentKey => {
|
|
|
592
1320
|
throw new Error(error);
|
|
593
1321
|
}
|
|
594
1322
|
};
|
|
1323
|
+
|
|
1324
|
+
export const getBootstrapConfig = async (restServerUrl, authorizationHeader) => {
|
|
1325
|
+
if (showDebug) addDebugLog("getBootstrapConfig", `restServerUrl: ${restServerUrl}`, "");
|
|
1326
|
+
const serverConfig = await getPegaServerConfig();
|
|
1327
|
+
|
|
1328
|
+
return fetch(`${restServerUrl}/${BOOTSTRAP_CONFIG}`, {
|
|
1329
|
+
method: 'GET',
|
|
1330
|
+
agent: getHttpsAgent(serverConfig),
|
|
1331
|
+
headers: new Headers({
|
|
1332
|
+
Authorization: authorizationHeader
|
|
1333
|
+
})
|
|
1334
|
+
}).then((response) => {
|
|
1335
|
+
if (response.ok) {
|
|
1336
|
+
return response.json();
|
|
1337
|
+
}
|
|
1338
|
+
throw Error('D_pxBootstrapConfig load failed.', { cause: response.status });
|
|
1339
|
+
});
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
export const updateC11NB2SForInfinity = async () => {
|
|
1343
|
+
if (showDebug) addDebugLog("updateC11NB2SForInfinity", "", "");
|
|
1344
|
+
const serverConfig = await getPegaServerConfig();
|
|
1345
|
+
const { server } = serverConfig;
|
|
1346
|
+
const OAuthData = fs.readFileSync(TOKEN_PATH, 'utf8');
|
|
1347
|
+
|
|
1348
|
+
if (OAuthData) {
|
|
1349
|
+
const { access_token: accessToken, token_type: tokenType } = JSON.parse(OAuthData);
|
|
1350
|
+
|
|
1351
|
+
const bootstrapJSON = await getBootstrapConfig(server, `${tokenType} ${accessToken}`);
|
|
1352
|
+
|
|
1353
|
+
if (bootstrapJSON) {
|
|
1354
|
+
const bootstrap = JSON.parse(bootstrapJSON.pyConfigJSON);
|
|
1355
|
+
|
|
1356
|
+
const objOauthData = JSON.parse(OAuthData);
|
|
1357
|
+
objOauthData["C11NB2S"] = bootstrap.tokens.C11NB2S;
|
|
1358
|
+
objOauthData["appStaticContentServer"] = bootstrap.serviceConfig.appStaticContentServer;
|
|
1359
|
+
|
|
1360
|
+
// write out file
|
|
1361
|
+
fs.writeFileSync(TOKEN_PATH, JSON.stringify(objOauthData), { encoding: 'utf8',flag:'w' });
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
export const updateC11NB2SForLaunchpad = async () => {
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
export const getC11NB2STokenAndStaticServer = async () => {
|
|
1374
|
+
if (showDebug) addDebugLog("getC11NB2STokenAndStaticServer", "", "");
|
|
1375
|
+
const serverConfig = await getPegaServerConfig();
|
|
1376
|
+
const { server } = serverConfig;
|
|
1377
|
+
let OAuthData;
|
|
1378
|
+
try {
|
|
1379
|
+
OAuthData = fs.readFileSync(TOKEN_PATH, 'utf8');
|
|
1380
|
+
}
|
|
1381
|
+
catch (ex) {
|
|
1382
|
+
return ({});
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
if (OAuthData) {
|
|
1386
|
+
const { C11NB2S, appStaticContentServer } = JSON.parse(OAuthData)
|
|
1387
|
+
|
|
1388
|
+
if (C11NB2S) {
|
|
1389
|
+
return ({ C11NB2S, appStaticContentServer});
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
}
|
|
1393
|
+
return ({});
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
export const getLocalLibraries = async () => {
|
|
1397
|
+
if (showDebug) addDebugLog("getLocalLibraries", "" , "");
|
|
1398
|
+
const currentDirectory = process.cwd();
|
|
1399
|
+
const configDef = getConfigDefaults();
|
|
1400
|
+
const libFilter = configDef.organization.concat("_");
|
|
1401
|
+
|
|
1402
|
+
return fs
|
|
1403
|
+
.readdirSync(currentDirectory, { withFileTypes: true })
|
|
1404
|
+
.filter(dirent => dirent.isDirectory() && dirent.name.startsWith(libFilter))
|
|
1405
|
+
.map(dirent => dirent.name);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export const getLocalLibraryVersions = async (libraryName, currentVersion = "0.0.0") => {
|
|
1409
|
+
if (showDebug) addDebugLog("getLocalLibraryVersions", `libraryName: ${libraryName}` , "");
|
|
1410
|
+
const currentDirectory = process.cwd();
|
|
1411
|
+
|
|
1412
|
+
const directory = join(currentDirectory, libraryName);
|
|
1413
|
+
return fs
|
|
1414
|
+
.readdirSync(directory, { withFileTypes: true })
|
|
1415
|
+
.filter(dirent => dirent.isDirectory() && dirent.name != currentVersion)
|
|
1416
|
+
.map(dirent => dirent.name);
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
export const getLocalArchivedLibraryVersions = async (libraryName, currentVersion = "0.0.0") => {
|
|
1420
|
+
if (showDebug) addDebugLog("getLocalArchivedLibraryVersions", `libraryName: ${libraryName}` , "");
|
|
1421
|
+
const currentDirectory = process.cwd();
|
|
1422
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, `${libraryName}`);
|
|
1423
|
+
|
|
1424
|
+
return fs
|
|
1425
|
+
.readdirSync(archiveDirectory, { withFileTypes: true })
|
|
1426
|
+
.filter(dirent => dirent.isDirectory() && dirent.name != currentVersion)
|
|
1427
|
+
.map(dirent => dirent.name);
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
export const getLocalArchivedLibrraryVersionData = async(libraryName, libraryVersion) => {
|
|
1431
|
+
if (showDebug) addDebugLog("getLocalArchivedLibrraryVersionData", `libraryName: ${libraryName}, libraryVersion: ${libraryVersion}`, "");
|
|
1432
|
+
const currentDirectory = process.cwd();
|
|
1433
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, `${libraryName}`, `${libraryVersion}`);
|
|
1434
|
+
|
|
1435
|
+
const componentConfigFile = join (archiveDirectory, COMPONENTS_CONFIG_FILE_NAME);
|
|
1436
|
+
|
|
1437
|
+
let data = fs.readFileSync(componentConfigFile, { encoding: 'utf8' })
|
|
1438
|
+
|
|
1439
|
+
return data;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
export const getLocalLibraryVersionData = async (libraryName, libraryVersion) => {
|
|
1443
|
+
if (showDebug) addDebugLog("getLocalLibraryVersionDate", `libraryName: ${libraryName}, libraryVersion: ${libraryVersion}` , "");
|
|
1444
|
+
const currentDirectory = process.cwd();
|
|
1445
|
+
const libDir = join(currentDirectory, libraryName, libraryVersion);
|
|
1446
|
+
const libDataFile = join(libDir, COMPONENTS_CONFIG_FILE_NAME);
|
|
1447
|
+
|
|
1448
|
+
let data = fs.readFileSync(libDataFile, { encoding: 'utf8' })
|
|
1449
|
+
|
|
1450
|
+
return data;
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
export const deleteLocalLibrary = async (libraryName) => {
|
|
1454
|
+
if (showDebug) addDebugLog("deleteLocalLibrary", `libraryName: ${libraryName}` , "");
|
|
1455
|
+
const currentDirectory = process.cwd();
|
|
1456
|
+
|
|
1457
|
+
const directory = join(currentDirectory, libraryName);
|
|
1458
|
+
|
|
1459
|
+
// for some odd reason, it errors out with an error in "err", but it does delete
|
|
1460
|
+
// all the contents. The try/catch then calls again to delete the top level
|
|
1461
|
+
try {
|
|
1462
|
+
if (fs.existsSync(directory)) {
|
|
1463
|
+
fs.rmSync(directory, { recursive: true, force: true, maxRetries: 2 });
|
|
1464
|
+
console.log(`Library: ${chalk.green.bold(libraryName)} is deleted from Local`);
|
|
1465
|
+
}
|
|
1466
|
+
else {
|
|
1467
|
+
console.log(`Library: ${chalk.red.bold(libraryName)} does not exist.`);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
catch (ex) {
|
|
1471
|
+
if (fs.existsSync(directory)) {
|
|
1472
|
+
fs.rmSync(directory, { recursive: true, force: true, maxRetries: 2 });
|
|
1473
|
+
console.log(`Library: ${chalk.green.bold(libraryName)} is deleted from Local`);
|
|
1474
|
+
}
|
|
1475
|
+
else {
|
|
1476
|
+
console.log(`Library: ${chalk.red.bold(libraryName)} does not exist.`);
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
export const deleteLocalLibraryVersion = async (libraryName, libraryVersion) => {
|
|
1483
|
+
if (showDebug) addDebugLog("getLocalLibraryVersions", `libraryName: ${libraryName}, libraryVersion: ${libraryVersion}` , "");
|
|
1484
|
+
const currentDirectory = process.cwd();
|
|
1485
|
+
|
|
1486
|
+
const directory = join(currentDirectory, libraryName, libraryVersion);
|
|
1487
|
+
|
|
1488
|
+
try {
|
|
1489
|
+
if (fs.existsSync(directory)) {
|
|
1490
|
+
console.log(`Deleting library version: ${chalk.green.bold(libraryName)}:${chalk.green.bold(libraryVersion)}`);
|
|
1491
|
+
fs.rmSync(directory, { recursive: true, force: true, maxRetries: 2 });
|
|
1492
|
+
console.log(`Library version: ${chalk.green.bold(libraryName)}:${chalk.green.bold(libraryVersion)} is deleted from Local`);
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
console.log(`Library version: ${chalk.red.bold(libraryName)}:${chalk.red.bold(libraryVersion)} does not exist.`);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
}
|
|
1499
|
+
catch (error) {
|
|
1500
|
+
throw error;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
export const deletePublishExtras = async (libraryName, libraryVersion) => {
|
|
1506
|
+
if (showDebug) addDebugLog("deletePublishExtras", `libraryName: ${libraryName}, libraryVersion: ${libraryVersion}` , "");
|
|
1507
|
+
// this function will delete LibraryName.zip file, so new one created by publish
|
|
1508
|
+
// check if .DS_store file exists in Library, if so delete it because causes issue with services
|
|
1509
|
+
|
|
1510
|
+
const currentDirectory = process.cwd();
|
|
1511
|
+
const zipFile = libraryName.concat(".zip");
|
|
1512
|
+
|
|
1513
|
+
// delete zip file
|
|
1514
|
+
const zipPath = join(currentDirectory, zipFile);
|
|
1515
|
+
if (fs.existsSync(zipPath)) {
|
|
1516
|
+
fs.rmSync(zipPath, { force: true });
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
// mac issue
|
|
1520
|
+
const libVersion = join(currentDirectory, libraryName);
|
|
1521
|
+
const dsStore = join(libVersion, ".DS_Store");
|
|
1522
|
+
if (fs.existsSync(dsStore)) {
|
|
1523
|
+
fs.rmSync(dsStore, { force: true });
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
export const cleanUp = async () => {
|
|
1530
|
+
if (showDebug) addDebugLog("cleanUp", "", "");
|
|
1531
|
+
if (fs.existsSync('dist/components')) {
|
|
1532
|
+
fs.rm('dist/components', { recursive: true }, err => {
|
|
1533
|
+
if (err) {
|
|
1534
|
+
throw err;
|
|
1535
|
+
}
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
if (fs.existsSync('lib')) {
|
|
1540
|
+
fs.rm('lib', { recursive: true, force: true }, err => {
|
|
1541
|
+
if (err) {
|
|
1542
|
+
throw err;
|
|
1543
|
+
}
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
export const getComponentsConfigs = async (compDir = null) => {
|
|
1550
|
+
if (showDebug) addDebugLog("getComponentsConfigs", "", "");
|
|
1551
|
+
const componentsList = await getComponents(compDir);
|
|
1552
|
+
|
|
1553
|
+
let componentsConfigJSON = [];
|
|
1554
|
+
if (componentsList && componentsList.length > 0) {
|
|
1555
|
+
// open each config.json and copy into componentsConfigJSON
|
|
1556
|
+
for (let i in componentsList) {
|
|
1557
|
+
const componentKey = componentsList[i];
|
|
1558
|
+
const componentDirectory = await getComponentDirectoryPath(componentKey, compDir);
|
|
1559
|
+
const configPath = join(componentDirectory, 'config.json');
|
|
1560
|
+
|
|
1561
|
+
if (fs.existsSync(configPath)) {
|
|
1562
|
+
let data = fs.readFileSync(configPath, { encoding: 'utf8' });
|
|
1563
|
+
|
|
1564
|
+
data = JSON.parse(data);
|
|
1565
|
+
componentsConfigJSON.push(data);
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
return componentsConfigJSON;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
export const createComponentsConfigFile = async (filePath, compDir) => {
|
|
1576
|
+
if (showDebug) addDebugLog("createComponentsConfigFile", `filePath: ${filePath}`, "");
|
|
1577
|
+
const componentsConfigJSON = await getComponentsConfigs(compDir);
|
|
1578
|
+
const compConfgFile = join(filePath, COMPONENTS_CONFIG_FILE_NAME);
|
|
1579
|
+
|
|
1580
|
+
// write out file
|
|
1581
|
+
fs.writeFileSync(compConfgFile, JSON.stringify(componentsConfigJSON), { encoding: 'utf8',flag:'w' });
|
|
1582
|
+
|
|
1583
|
+
};
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
export const zipVersionAndArchive = async (orgLibName, version, currentDirectory = "") => {
|
|
1587
|
+
if (showDebug) addDebugLog("zipVersionAndArchive", `orgLibName: ${orgLibName}, version: ${version}`, "");
|
|
1588
|
+
// const srcDirectoryPath = await getSrcDirectoryPath();
|
|
1589
|
+
if (currentDirectory === "") {
|
|
1590
|
+
currentDirectory = process.cwd();
|
|
1591
|
+
}
|
|
1592
|
+
const srcDirectoryPath = join(currentDirectory, "src");
|
|
1593
|
+
const tasksConfig = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
1594
|
+
const packageJson = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
1595
|
+
const archiveFileName = `${orgLibName}_${version}.zip`;
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
// const configContent = Buffer.from(fs.readFileSync(configJson)).toString();
|
|
1599
|
+
const mainDirectory = process.cwd();
|
|
1600
|
+
const archiveDirectory = join (mainDirectory, ARCHIVES_PATH, `${orgLibName}`, `${version}`);
|
|
1601
|
+
if (!fs.existsSync(archiveDirectory)) {
|
|
1602
|
+
fs.mkdirSync(archiveDirectory, { recursive: true });
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
// create componentsconfig.json
|
|
1606
|
+
await createComponentsConfigFile(archiveDirectory, join(srcDirectoryPath, "components"));
|
|
1607
|
+
|
|
1608
|
+
const archiveFile = join(archiveDirectory, archiveFileName);
|
|
1609
|
+
if (fs.existsSync(orgLibName)) {
|
|
1610
|
+
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
const output = fs.createWriteStream(archiveFile);
|
|
1614
|
+
const archive = archiver('zip', {
|
|
1615
|
+
zlib: { level: 9 } // Sets the compression level.
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
const zipChunks = [];
|
|
1619
|
+
archive.on('data', chunk => zipChunks.push(chunk));
|
|
1620
|
+
|
|
1621
|
+
// Add src directory
|
|
1622
|
+
archive.directory(srcDirectoryPath, 'src');
|
|
1623
|
+
|
|
1624
|
+
// grab all files (not directories and archive)
|
|
1625
|
+
const configFiles = await getTopLevelConfigFiles(currentDirectory);
|
|
1626
|
+
if (configFiles && configFiles.length > 0) {
|
|
1627
|
+
for (const configF of configFiles) {
|
|
1628
|
+
if (configF !== "package-lock.json") {
|
|
1629
|
+
archive.file(
|
|
1630
|
+
join(currentDirectory, configF), { name: configF });
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
// // Add config.json file
|
|
1637
|
+
// if (fs.existsSync(tasksConfig)) {
|
|
1638
|
+
// archive.file(tasksConfig, { name: path.basename(tasksConfig) });
|
|
1639
|
+
// }
|
|
1640
|
+
|
|
1641
|
+
// // Add package.json file
|
|
1642
|
+
// if (fs.existsSync(packageJson)) {
|
|
1643
|
+
// archive.file(packageJson, { name: path.basename(packageJson) });
|
|
1644
|
+
// }
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
// pipe archive data to the file
|
|
1648
|
+
archive.pipe(output);
|
|
1649
|
+
|
|
1650
|
+
output.on('end', function() {
|
|
1651
|
+
console.log('Data has been drained');
|
|
1652
|
+
});
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
// good practice to catch warnings (ie stat failures and other non-blocking errors)
|
|
1656
|
+
archive.on('warning', function(err) {
|
|
1657
|
+
if (err.code === 'ENOENT') {
|
|
1658
|
+
// log warning
|
|
1659
|
+
} else {
|
|
1660
|
+
// throw error
|
|
1661
|
+
throw err;
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
|
|
1665
|
+
// good practice to catch this error explicitly
|
|
1666
|
+
archive.on('error', function(err) {
|
|
1667
|
+
throw err;
|
|
1668
|
+
});
|
|
1669
|
+
|
|
1670
|
+
await archive.finalize();
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
// const zipBuffer = Buffer.concat(zipChunks);
|
|
1675
|
+
// console.log(chalk.green(`component zipped with size: ${Math.ceil(zipBuffer.length / 1024)} KB`));
|
|
1676
|
+
// const zipContent = zipBuffer.toString('base64');
|
|
1677
|
+
|
|
1678
|
+
return output;
|
|
1679
|
+
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
export const unZipFromArchive = async (fileName) => {
|
|
1683
|
+
if (showDebug) addDebugLog("unZipFromArchive", `fileName: ${fileName}`, "");
|
|
1684
|
+
await unarchive(fileName, TEMP_PATH);
|
|
1685
|
+
};
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
export const updateComponentTaskConfig = async () => {
|
|
1690
|
+
if (showDebug) addDebugLog("updateComponentTaskConfig", "", "");
|
|
1691
|
+
const currentDirectory = process.cwd();
|
|
1692
|
+
const tempDirectory = join(currentDirectory, TEMP_PATH);
|
|
1693
|
+
|
|
1694
|
+
const tempConfigPath = join(tempDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
1695
|
+
const currentConfigPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
1696
|
+
|
|
1697
|
+
const contents = fs.readFileSync(tempConfigPath);
|
|
1698
|
+
const originalContents = fs.readFileSync(currentConfigPath);
|
|
1699
|
+
|
|
1700
|
+
let contentsData = JSON.parse(contents);
|
|
1701
|
+
let originalContentsData = JSON.parse(originalContents);
|
|
1702
|
+
|
|
1703
|
+
// only copy "components" from archived task.config and "devBuild"
|
|
1704
|
+
// that way, your current tasks.config isn't messed up
|
|
1705
|
+
originalContentsData["server-config"].devBuild = contentsData["server-config"].devBuild;
|
|
1706
|
+
originalContentsData["component"] = contentsData["component"];
|
|
1707
|
+
|
|
1708
|
+
fs.writeFileSync(currentConfigPath, JSON.stringify(originalContentsData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
1709
|
+
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
export const restoreDependenciesFromPackage = async () => {
|
|
1713
|
+
if (showDebug) addDebugLog("restoreDependenciesFromPackage", "", "");
|
|
1714
|
+
const currentDirectory = process.cwd();
|
|
1715
|
+
const tempDirectory = join(currentDirectory, TEMP_PATH);
|
|
1716
|
+
const tempPackagePath = join (tempDirectory, PACKAGE_JSON_FILENAME);
|
|
1717
|
+
const currentPackagePath = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
1718
|
+
|
|
1719
|
+
let retrievedPackageData;
|
|
1720
|
+
let currentPackageData;
|
|
1721
|
+
|
|
1722
|
+
// reset
|
|
1723
|
+
haveDependencyDifference = false;
|
|
1724
|
+
|
|
1725
|
+
try {
|
|
1726
|
+
retrievedPackageData = fs.readFileSync(tempPackagePath);
|
|
1727
|
+
}
|
|
1728
|
+
catch (ex) {
|
|
1729
|
+
console.log(chalk.red(`\nUnable to retrieve package.json from store.`))
|
|
1730
|
+
process.exit(1);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
try {
|
|
1734
|
+
currentPackageData = fs.readFileSync(currentPackagePath);
|
|
1735
|
+
}
|
|
1736
|
+
catch (ex) {
|
|
1737
|
+
console.log(chalk.red(`\nUnable to retrieve current package.json.`))
|
|
1738
|
+
process.exit(1);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
let rData = JSON.parse(retrievedPackageData);
|
|
1743
|
+
let cData = JSON.parse(currentPackageData);
|
|
1744
|
+
|
|
1745
|
+
// now keep current package.json, but replace devDependencies and dependencies.
|
|
1746
|
+
const sDep = JSON.stringify(rData.dependencies);
|
|
1747
|
+
const sDevDep = JSON.stringify(rData.devDependencies);
|
|
1748
|
+
|
|
1749
|
+
const sCurDep = JSON.stringify(cData.dependencies);
|
|
1750
|
+
const sCurDevDep = JSON.stringify(cData.devDependencies);
|
|
1751
|
+
|
|
1752
|
+
// any changes, update haveDependencyDifference variable
|
|
1753
|
+
if (sDep != sCurDep) {
|
|
1754
|
+
haveDependencyDifference = true;
|
|
1755
|
+
}
|
|
1756
|
+
else if (sDevDep != sCurDevDep) {
|
|
1757
|
+
haveDependencyDifference = true;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
cData.dependencies = JSON.parse(sDep);
|
|
1762
|
+
cData.devDependencies = JSON.parse(sDevDep);
|
|
1763
|
+
|
|
1764
|
+
// we can't loose devDep that is part of install, so go get the template mustache and push
|
|
1765
|
+
// those in, replacing any changes there, but allowing additional, an keeping it updated
|
|
1766
|
+
// so won't loose new function if an old archive
|
|
1767
|
+
const initDir = join(currentDirectory, "node_modules", "@pega", "custom-dx-components", "src", "tasks", "init");
|
|
1768
|
+
const templateDir = join(initDir, "template");
|
|
1769
|
+
const packageTemplateJsonPath = path.join(templateDir, 'package.json.mustache');
|
|
1770
|
+
let retrievedTemplateData;
|
|
1771
|
+
try {
|
|
1772
|
+
retrievedTemplateData = fs.readFileSync(packageTemplateJsonPath);
|
|
1773
|
+
}
|
|
1774
|
+
catch (ex) {
|
|
1775
|
+
console.log($chalk.red(`\nUnable to retrieve package.json.mustache from code.`))
|
|
1776
|
+
process.exit(1);
|
|
1777
|
+
}
|
|
1778
|
+
const tData = JSON.parse(retrievedTemplateData);
|
|
1779
|
+
const tDevDep = tData.devDependencies;
|
|
1780
|
+
for (const [key, value] of Object.entries(tDevDep)) {
|
|
1781
|
+
rData.devDependencies[key] = value;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
// overwrite cData specifics
|
|
1785
|
+
rData.name = cData.name;
|
|
1786
|
+
rData.description = cData.description;
|
|
1787
|
+
rData.organization = cData.organization;
|
|
1788
|
+
rData.main = cData.main;
|
|
1789
|
+
rData.type = cData.type;
|
|
1790
|
+
rData.scripts = cData.scripts;
|
|
1791
|
+
rData.scriptsComments = cData.scriptsComments;
|
|
1792
|
+
rData.repository = cData.repository;
|
|
1793
|
+
rData.keywords = cData.keywords;
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
// update current package json file
|
|
1797
|
+
fs.writeFileSync(currentPackagePath, JSON.stringify(rData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
export const restoreDependenciesFromTemplate = async () => {
|
|
1804
|
+
if (showDebug) addDebugLog("restoreDependenciesFromTemplate", "", "");
|
|
1805
|
+
const currentDirectory = process.cwd();
|
|
1806
|
+
const currentPackagePath = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
1807
|
+
|
|
1808
|
+
let currentPackageData;
|
|
1809
|
+
|
|
1810
|
+
// reset
|
|
1811
|
+
haveDependencyDifference = true;
|
|
1812
|
+
|
|
1813
|
+
try {
|
|
1814
|
+
currentPackageData = fs.readFileSync(currentPackagePath);
|
|
1815
|
+
}
|
|
1816
|
+
catch (ex) {
|
|
1817
|
+
console.log(chalk.red(`\nUnable to retrieve current package.json.`))
|
|
1818
|
+
process.exit(1);
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
let cData = JSON.parse(currentPackageData);
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
// we can't loose devDep that is part of install, so go get the template mustache and push
|
|
1826
|
+
// those in, replacing any changes there, but allowing additional, an keeping it updated
|
|
1827
|
+
// so won't loose new function if an old archive
|
|
1828
|
+
const initDir = join(currentDirectory, "node_modules", "@pega", "custom-dx-components", "src", "tasks", "init");
|
|
1829
|
+
const templateDir = join(initDir, "template");
|
|
1830
|
+
const packageTemplateJsonPath = path.join(templateDir, 'package.json.mustache');
|
|
1831
|
+
let retrievedTemplateData;
|
|
1832
|
+
try {
|
|
1833
|
+
retrievedTemplateData = fs.readFileSync(packageTemplateJsonPath);
|
|
1834
|
+
}
|
|
1835
|
+
catch (ex) {
|
|
1836
|
+
console.log($chalk.red(`\nUnable to retrieve package.json.mustache from code.`))
|
|
1837
|
+
process.exit(1);
|
|
1838
|
+
}
|
|
1839
|
+
const tData = JSON.parse(retrievedTemplateData);
|
|
1840
|
+
const tDevDep = tData.devDependencies;
|
|
1841
|
+
const tDep = tData.dependencies;
|
|
1842
|
+
|
|
1843
|
+
for (const [key, value] of Object.entries(tDevDep)) {
|
|
1844
|
+
cData.devDependencies[key] = value;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
for (const [key, value] of Object.entries(tDep)) {
|
|
1848
|
+
cData.dependencies[key] = value;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
// update current package json file
|
|
1853
|
+
fs.writeFileSync(currentPackagePath, JSON.stringify(cData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
export const restoreDependenciesFromPackage_old = async () => {
|
|
1860
|
+
if (showDebug) addDebugLog("restoreDependenciesFromPackage", "", "");
|
|
1861
|
+
const currentDirectory = process.cwd();
|
|
1862
|
+
const tempDirectory = join(currentDirectory, TEMP_PATH);
|
|
1863
|
+
const tempPackagePath = join (tempDirectory, PACKAGE_JSON_FILENAME);
|
|
1864
|
+
const currentPackagePath = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
1865
|
+
|
|
1866
|
+
let retrievedPackageData;
|
|
1867
|
+
let currentPackageData;
|
|
1868
|
+
|
|
1869
|
+
// reset
|
|
1870
|
+
haveDependencyDifference = false;
|
|
1871
|
+
|
|
1872
|
+
try {
|
|
1873
|
+
retrievedPackageData = fs.readFileSync(tempPackagePath);
|
|
1874
|
+
}
|
|
1875
|
+
catch (ex) {
|
|
1876
|
+
console.log($chalk.red(`\nUnable to retrieve package.json from store.`))
|
|
1877
|
+
process.exit(1);
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
try {
|
|
1881
|
+
currentPackageData = fs.readFileSync(currentPackagePath);
|
|
1882
|
+
}
|
|
1883
|
+
catch (ex) {
|
|
1884
|
+
console.log($chalk.red(`\nUnable to retrieve current package.json.`))
|
|
1885
|
+
process.exit(1);
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
const rData = JSON.parse(retrievedPackageData);
|
|
1890
|
+
let cData = JSON.parse(currentPackageData);
|
|
1891
|
+
|
|
1892
|
+
// now keep current package.json, but replace devDependencies and dependencies.
|
|
1893
|
+
const sDep = JSON.stringify(rData.dependencies);
|
|
1894
|
+
const sDevDep = JSON.stringify(rData.devDependencies);
|
|
1895
|
+
|
|
1896
|
+
const sCurDep = JSON.stringify(cData.dependencies);
|
|
1897
|
+
const sCurDevDep = JSON.stringify(cData.devDependencies);
|
|
1898
|
+
|
|
1899
|
+
// any changes, update haveDependencyDifference variable
|
|
1900
|
+
if (sDep != sCurDep) {
|
|
1901
|
+
haveDependencyDifference = true;
|
|
1902
|
+
}
|
|
1903
|
+
else if (sDevDep != sCurDevDep) {
|
|
1904
|
+
haveDependencyDifference = true;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
cData.dependencies = JSON.parse(sDep);
|
|
1909
|
+
cData.devDependencies = JSON.parse(sDevDep);
|
|
1910
|
+
|
|
1911
|
+
// we can't loose devDep that is part of install, so go get the template mustache and push
|
|
1912
|
+
// those in, replacing any changes there, but allowing additional, an keeping it updated
|
|
1913
|
+
// so won't loose new function if an old archive
|
|
1914
|
+
const initDir = join(currentDirectory, "node_modules", "@pega", "custom-dx-components", "src", "tasks", "init");
|
|
1915
|
+
const templateDir = join(initDir, "template");
|
|
1916
|
+
const packageTemplateJsonPath = path.join(templateDir, 'package.json.mustache');
|
|
1917
|
+
let retrievedTemplateData;
|
|
1918
|
+
try {
|
|
1919
|
+
retrievedTemplateData = fs.readFileSync(packageTemplateJsonPath);
|
|
1920
|
+
}
|
|
1921
|
+
catch (ex) {
|
|
1922
|
+
console.log($chalk.red(`\nUnable to retrieve package.json.mustache from code.`))
|
|
1923
|
+
process.exit(1);
|
|
1924
|
+
}
|
|
1925
|
+
const tData = JSON.parse(retrievedTemplateData);
|
|
1926
|
+
const tDevDep = tData.devDependencies;
|
|
1927
|
+
for (const [key, value] of Object.entries(tDevDep)) {
|
|
1928
|
+
cData.devDependencies[key] = value;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
// update current package json file
|
|
1933
|
+
fs.writeFileSync(currentPackagePath, JSON.stringify(cData, null, 4), { encoding: 'utf8',flag:'w' });
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export const getHaveDependencyDifference = () => {
|
|
1939
|
+
if (showDebug) addDebugLog("getHaveDependencyDifference", ``, "");
|
|
1940
|
+
return haveDependencyDifference;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
export const restoreFromArchive = async (fileName, orgLibName, version) => {
|
|
1944
|
+
if (showDebug) addDebugLog("restoreFromArchive", `fileName: ${fileName}, orgLibName: ${orgLibName}, version: ${version}`, "");
|
|
1945
|
+
const currentDirectory = process.cwd();
|
|
1946
|
+
const tempDirectory = join(currentDirectory, TEMP_PATH);
|
|
1947
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, `${orgLibName}`, `${version}`);
|
|
1948
|
+
const archFileName = join(archiveDirectory, fileName);
|
|
1949
|
+
|
|
1950
|
+
await unZipFromArchive(archFileName);
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
const tempPackagePath = join (tempDirectory, PACKAGE_JSON_FILENAME);
|
|
1954
|
+
const currentPackagePath = join(currentDirectory, PACKAGE_JSON_FILENAME);
|
|
1955
|
+
const tempDirectoryComponents = join(tempDirectory, "src");
|
|
1956
|
+
const currentComponentsPath = join(currentDirectory, "src");
|
|
1957
|
+
|
|
1958
|
+
// remove all config files
|
|
1959
|
+
await removeTopLevelConfigFiles(currentDirectory);
|
|
1960
|
+
|
|
1961
|
+
await restoreTopLevelConfigFiles(currentDirectory);
|
|
1962
|
+
|
|
1963
|
+
// take your current tasks.config and update with component and devBuild from saved tasks.config
|
|
1964
|
+
await updateComponentTaskConfig();
|
|
1965
|
+
|
|
1966
|
+
// restore package json dependencies
|
|
1967
|
+
await restoreDependenciesFromPackage();
|
|
1968
|
+
|
|
1969
|
+
// remove current components
|
|
1970
|
+
fs.rmSync(currentComponentsPath, { recursive: true, force: true, maxRetries: 2 });
|
|
1971
|
+
|
|
1972
|
+
if (fs.existsSync(currentComponentsPath)) {
|
|
1973
|
+
// try another round of rm
|
|
1974
|
+
fs.rmSync(currentComponentsPath, { recursive: true, force: true, maxRetries: 2 });
|
|
1975
|
+
|
|
1976
|
+
if (fs.existsSync(currentComponentsPath)) {
|
|
1977
|
+
// still an issue
|
|
1978
|
+
console.log(chalk.red('\nUnable to complete clear out src/components directory.\n'));
|
|
1979
|
+
console.log(chalk.red('\nUnstored components are in /temp directory.\n'));
|
|
1980
|
+
console.log(chalk.red('\nYou can migrate /store/temp/components to src/components manually.\n'));
|
|
1981
|
+
console.log(chalk.red('\nYou can replace /store/temp/tasks.config.json with tasks.config.json.\n'));
|
|
1982
|
+
process.exit();
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
// copy temp src/components
|
|
1988
|
+
if (fs.existsSync(tempDirectoryComponents)) {
|
|
1989
|
+
|
|
1990
|
+
fs.cpSync(tempDirectoryComponents, currentComponentsPath, { recursive: true, force: true });
|
|
1991
|
+
}
|
|
1992
|
+
else {
|
|
1993
|
+
// nothing was archived (no src/components)
|
|
1994
|
+
// so make a src/components if doesn't exist
|
|
1995
|
+
if (!fs.existsSync(currentComponentsPath)) {
|
|
1996
|
+
fs.mkdirSync(currentComponentsPath, { "recursive" : true});
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
// remove temp (windows not working well with "sync", can be async, since as long as deleted, fine)
|
|
2002
|
+
fs.rm(tempDirectory, { recursive: true, force: true, maxRetries: 5 }, () => {});
|
|
2003
|
+
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
export const clearSrcComponentsDirectory = async () => {
|
|
2007
|
+
if (showDebug) addDebugLog("clearSrcComponentsDirectory", ``, "");
|
|
2008
|
+
const currentDirectory = process.cwd();
|
|
2009
|
+
const currentComponentsPath = join(currentDirectory, "src", "components");
|
|
2010
|
+
|
|
2011
|
+
// remove current components
|
|
2012
|
+
fs.rmSync(currentComponentsPath, { recursive: true, force: true, maxRetries: 2 });
|
|
2013
|
+
|
|
2014
|
+
// create blank src
|
|
2015
|
+
fs.mkdirSync(currentComponentsPath, { recursive: true });
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
export const isHiddenFile = (fileName) => {
|
|
2019
|
+
if (fileName.indexOf(".") == 0) {
|
|
2020
|
+
return true;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
return false;
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
export const getCurrentOrgLib = () =>{
|
|
2027
|
+
return defaultConfigs.currentOrgLib;
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
export const hasArchives = async () => {
|
|
2031
|
+
if (showDebug) addDebugLog("hasArchives", "call", "");
|
|
2032
|
+
const currentDirectory = process.cwd();
|
|
2033
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH);
|
|
2034
|
+
const hasArc = fs.existsSync(archiveDirectory);
|
|
2035
|
+
if (showDebug) addDebugLog("hasArchives", `${hasArc}`, "");
|
|
2036
|
+
return hasArc;
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
export const deleteArchives = async () => {
|
|
2040
|
+
if (showDebug) addDebugLog("deleteArchives", ``, "");
|
|
2041
|
+
const currentDirectory = process.cwd();
|
|
2042
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH);
|
|
2043
|
+
const hasArc = fs.existsSync(archiveDirectory);
|
|
2044
|
+
|
|
2045
|
+
if (hasArc) {
|
|
2046
|
+
try {
|
|
2047
|
+
fs.rmSync(archiveDirectory, { recursive: true });
|
|
2048
|
+
} catch (err) {
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
export const checkLibraryAndArchives = async () => {
|
|
2054
|
+
if (showDebug) addDebugLog("checkLibraryAndArchives", ``, "");
|
|
2055
|
+
const isLibraryBased = getLibraryBased();
|
|
2056
|
+
const hasArch = await hasArchives();
|
|
2057
|
+
|
|
2058
|
+
if (isLibraryBased && !hasArch) {
|
|
2059
|
+
console.log(chalk.yellow('\nPlease create a library before proceeding.\n'));
|
|
2060
|
+
process.exit();
|
|
2061
|
+
}
|
|
2062
|
+
};
|
|
2063
|
+
|
|
2064
|
+
export const hasLibraryAndVersion = async (libraryName, version, devBuild) => {
|
|
2065
|
+
if (showDebug) addDebugLog("hasLibraryAndVersion", `libraryName: ${libraryName}, version: ${version}, devBuild: ${devBuild}`, "");
|
|
2066
|
+
// const orgLib = getConfigDefaults();
|
|
2067
|
+
// const currentOrgLib = `${orgLib.organization}_${libraryName}`;
|
|
2068
|
+
// const libFiles = await getLibraryArchivesFiles(currentOrgLib);
|
|
2069
|
+
// let currentVersion = version;
|
|
2070
|
+
// if (devBuild) {
|
|
2071
|
+
// currentVersion = currentVersion.concat("-dev");
|
|
2072
|
+
// }
|
|
2073
|
+
// const fileName = `${currentOrgLib}_${currentVersion}.zip`;
|
|
2074
|
+
// if (libFiles && libFiles.length > 0) {
|
|
2075
|
+
// if (libFiles.includes(fileName)) {
|
|
2076
|
+
// return true;
|
|
2077
|
+
// }
|
|
2078
|
+
// }
|
|
2079
|
+
|
|
2080
|
+
// return false;
|
|
2081
|
+
|
|
2082
|
+
const orgLib = getConfigDefaults();
|
|
2083
|
+
const currentOrgLib = `${orgLib.organization}_${libraryName}`;
|
|
2084
|
+
const libVersions = await getLibraryArchivesVersions(currentOrgLib);
|
|
2085
|
+
let currentVersion = version;
|
|
2086
|
+
if (devBuild) {
|
|
2087
|
+
currentVersion = currentVersion.concat("-dev");
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
if (libVersions.includes(currentVersion)) {
|
|
2091
|
+
return true;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
return false;
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
export const getLibraryArchiveDirectories = async (currentOrgLib = "") => {
|
|
2100
|
+
if (showDebug) addDebugLog("getLibraryArchiveDirectories", "", "");
|
|
2101
|
+
const currentDirectory = process.cwd();
|
|
2102
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH);
|
|
2103
|
+
|
|
2104
|
+
|
|
2105
|
+
if (!fs.existsSync(archiveDirectory)) {
|
|
2106
|
+
return [];
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
return fs
|
|
2110
|
+
.readdirSync(archiveDirectory, { withFileTypes: true })
|
|
2111
|
+
.filter(dirent => dirent.isDirectory() && (dirent.name != currentOrgLib) )
|
|
2112
|
+
.map(dirent => dirent.name);
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
export const getLibraryArchivesVersions = async (orgLibName, currentVersion) => {
|
|
2118
|
+
if (showDebug) addDebugLog("getLibraryArchivesVersions", `orgLibName: ${orgLibName}`, "");
|
|
2119
|
+
|
|
2120
|
+
const currentDirectory = process.cwd();
|
|
2121
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, `${orgLibName}`);
|
|
2122
|
+
|
|
2123
|
+
if (!fs.existsSync(archiveDirectory)) {
|
|
2124
|
+
return [];
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
return fs
|
|
2128
|
+
.readdirSync(archiveDirectory, { withFileTypes: true })
|
|
2129
|
+
.filter(dirent => dirent.isDirectory() && dirent.name != currentVersion )
|
|
2130
|
+
.map(dirent => dirent.name);
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
};
|
|
2135
|
+
|
|
2136
|
+
export const deleteLocalArchiveLibrary = async(libraryName) => {
|
|
2137
|
+
if (showDebug) addDebugLog("deleteLocalArchiveLibrary", `libraryName: ${libraryName}`, "");
|
|
2138
|
+
const currentDirectory = process.cwd();
|
|
2139
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, libraryName);
|
|
2140
|
+
|
|
2141
|
+
try {
|
|
2142
|
+
fs.rmSync(archiveDirectory, { recursive: true });
|
|
2143
|
+
console.log(`${chalk.green.bold(libraryName)} is deleted from Local.`);
|
|
2144
|
+
} catch (err) {
|
|
2145
|
+
console.log(`${chalk.green.red(`No such file ${libraryName}`)}`);
|
|
2146
|
+
// throw new Error(`No such file ${libraryName}`);
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
// check if no other libraries, the remove /store
|
|
2150
|
+
const archList = getLibraryArchiveDirectories();
|
|
2151
|
+
if (archList.length === 0) {
|
|
2152
|
+
const archPath = join (currentDirectory, ARCHIVES_PATH);
|
|
2153
|
+
|
|
2154
|
+
fs.rmSync(archPath, { recursive : true});
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
export const deleteLocalArchiveLibraryVersion = async(libraryName, version) => {
|
|
2160
|
+
if (showDebug) addDebugLog("deleteLocalArchiveLibraryVersion", `libraryName: ${libraryName}, version: ${version}`, "");
|
|
2161
|
+
const currentDirectory = process.cwd();
|
|
2162
|
+
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, libraryName, version);
|
|
2163
|
+
|
|
2164
|
+
try {
|
|
2165
|
+
fs.rmSync(archiveDirectory, { recursive: true });
|
|
2166
|
+
console.log(`${chalk.green.bold(`${libraryName}/${version}`)} is deleted from Local.`);
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
} catch (err) {
|
|
2171
|
+
console.log(`${chalk.green.red(`No such file ${libraryName}/${version}`)}`);
|
|
2172
|
+
// throw new Error(`No such file ${libraryName}/${version}`);
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
export const cleanUpTemp = async() => {
|
|
2178
|
+
if (showDebug) addDebugLog("cleanUpTemp", ``, "");
|
|
2179
|
+
const currentDirectory = process.cwd();
|
|
2180
|
+
const tempDirectory = join (currentDirectory, TEMP_PATH);
|
|
2181
|
+
|
|
2182
|
+
if (fs.existsSync(tempDirectory)) {
|
|
2183
|
+
fs.rmSync(tempDirectory, { recursive: true });
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
|
|
2189
|
+
export const getJestFunctionalTestList = async(whichTests) => {
|
|
2190
|
+
if (showDebug) addDebugLog("getJestFunctionalTestList", ``, "");
|
|
2191
|
+
const functionalDir = path.join(path.resolve(), JEST_TESTS_FUNCTIONAL_PATH);
|
|
2192
|
+
const libFilter = "localLib";
|
|
2193
|
+
|
|
2194
|
+
switch (whichTests) {
|
|
2195
|
+
case "ALL" :
|
|
2196
|
+
return fs
|
|
2197
|
+
.readdirSync(functionalDir, { withFileTypes: true })
|
|
2198
|
+
.filter(dirent => !dirent.isDirectory() )
|
|
2199
|
+
.map(dirent => dirent.name);
|
|
2200
|
+
case "Original":
|
|
2201
|
+
return fs
|
|
2202
|
+
.readdirSync(functionalDir, { withFileTypes: true })
|
|
2203
|
+
.filter(dirent => !dirent.isDirectory() && !dirent.name.startsWith(libFilter))
|
|
2204
|
+
.map(dirent => dirent.name);
|
|
2205
|
+
case "Library" :
|
|
2206
|
+
return fs
|
|
2207
|
+
.readdirSync(functionalDir, { withFileTypes: true })
|
|
2208
|
+
.filter(dirent => !dirent.isDirectory() && dirent.name.startsWith(libFilter))
|
|
2209
|
+
.map(dirent => dirent.name);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
// init
|
|
2217
|
+
await forceDefaultsUpdate();
|