@pega/custom-dx-components 0.0.1 → 0.1.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/.vscode/extensions.json +1 -1
- package/README.md +6 -189
- package/babel.config.cjs +13 -0
- package/jest.config.cjs +37 -0
- package/package.json +48 -36
- package/src/cli.js +49 -1
- package/src/constants.js +134 -8
- package/src/currentPath.cjs +1 -0
- package/src/tasks/authenticate/helper.js +167 -8
- package/src/tasks/authenticate/index.js +228 -49
- package/src/tasks/build-all/helper.js +71 -0
- package/src/tasks/build-all/index.js +86 -0
- package/src/tasks/build-comp/helper.js +116 -0
- package/src/tasks/build-comp/index.js +76 -0
- package/src/tasks/{publish/bundle → bundle}/builder/index.js +54 -5
- package/src/tasks/{publish/bundle → bundle}/builder/webpack.config.js +21 -8
- package/src/tasks/{publish/bundle → bundle}/index.js +2 -2
- package/src/tasks/create/index.js +143 -70
- package/src/tasks/create/templates/Constellation/Field/Boolean/Boolean.js.mustache +38 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +27 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +145 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +64 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +169 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/mock.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +62 -0
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +42 -0
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +199 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +439 -0
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +76 -0
- package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +256 -0
- package/src/tasks/create/templates/Constellation/Field/Date/mock.js.mustache +25 -0
- package/src/tasks/create/templates/Constellation/Field/Date/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +256 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +93 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +288 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +331 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +76 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +253 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/mock.js.mustache +25 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +278 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +52 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +273 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +291 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +56 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +300 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.js.mustache +25 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +93 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +52 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +282 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +347 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +52 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +337 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +114 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +81 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +353 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/mock.js.mustache +69 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/component-constants.js +5 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +115 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.jsx.mustache +90 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +310 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/format-constants.js.mustache +41 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.jsx.mustache +1045 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/mock.js.mustache +69 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +88 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +657 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/suggestions-handler.js.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.jsx.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.js.mustache +182 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +113 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.jsx.mustache +85 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.jsx.mustache +218 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.js.mustache +69 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/suggestions-handler.js.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache +161 -0
- package/src/tasks/create/{template → templates/Constellation/Field/Text}/config.json.mustache +14 -5
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +54 -0
- package/src/tasks/create/{template → templates/Constellation/Field/Text}/index.jsx.mustache +10 -4
- package/src/tasks/create/templates/Constellation/Field/Text/mock.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +111 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +51 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +232 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.js.mustache +24 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.jsx +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +111 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +51 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +239 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +111 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +51 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +230 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +123 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +266 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.js.mustache +39 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +237 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +232 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.js.mustache +24 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +175 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/config.json.mustache +185 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/demo.stories.jsx.mustache +60 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/index.jsx.mustache +214 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/mock.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/suggestions-handler.js +9 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/time-of-day.js.mustache +287 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/OneColumnDetails.svg +22 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +35 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +137 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +86 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.js.mustache +192 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +151 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.jsx.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/TwoColumnDetails.svg +28 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +42 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +140 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +86 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.js.mustache +232 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +151 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/DefaultForm.svg +29 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +45 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +177 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +51 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/mock.js.mustache +139 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/TwoColumn.svg +38 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +27 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +182 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +51 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.js.mustache +145 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.jsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +32 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +105 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +71 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/localizations.json.mustache +4 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/mock.js.mustache +96 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +227 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +81 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +75 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/mock.js.mustache +391 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +59 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.jsx.mustache +48 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.js.mustache +24 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.jsx.mustache +74 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.jsx.mustache +240 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +66 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +70 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +112 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.js.mustache +53 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Launchpad/Field/__components.md +3 -0
- package/src/tasks/create/templates/Launchpad/Template/__components.md +3 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +23 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +81 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +75 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.js.mustache +391 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +74 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +282 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +55 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +76 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +82 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.js.mustache +53 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +15 -0
- package/src/tasks/create/templates/Launchpad/Widget/__components.md +3 -0
- package/src/tasks/create-all/index.js +398 -0
- package/src/tasks/delete/helper.js +162 -55
- package/src/tasks/delete/index.js +11 -14
- package/src/tasks/delete-all/helper.js +264 -0
- package/src/tasks/delete-all/index.js +42 -0
- package/src/tasks/index.js +8 -0
- package/src/tasks/init/helper.js +0 -1
- package/src/tasks/init/index.js +24 -5
- package/src/tasks/init/template/.eslintignore +8 -0
- package/src/tasks/init/template/.eslintrc.json +191 -5
- package/src/tasks/init/template/.storybook/main.js +9 -3
- package/src/tasks/init/template/.storybook/preview.js +14 -0
- package/src/tasks/init/template/.vscode/extensions.json +1 -1
- package/src/tasks/init/template/README.md +6 -189
- package/src/tasks/init/template/babel.config.cjs +13 -0
- package/src/tasks/init/template/jest.config.cjs +21 -0
- package/src/tasks/init/template/keys/DX-ComponentDev.zip +0 -0
- package/src/tasks/init/template/keys/dxcb.crt +32 -0
- package/src/tasks/init/template/keys/dxcb.key +51 -0
- package/src/tasks/init/template/package.json.mustache +57 -26
- package/src/tasks/init/template/src/components/_components.md +1 -0
- package/src/tasks/init/template/tasks.config.json +25 -8
- package/src/tasks/init/template/templateNPMRC.txt +8 -0
- package/src/tasks/linter/index.js +46 -0
- package/src/tasks/list/helper.js +196 -57
- package/src/tasks/list/index.js +22 -3
- package/src/tasks/promote-webpack/index.js +126 -0
- package/src/tasks/promote-webpack/webpack.config.js +376 -0
- package/src/tasks/publish/helper.js +123 -54
- package/src/tasks/publish/index.js +44 -13
- package/src/tasks/publish-all/helper.js +213 -0
- package/src/tasks/publish-all/index.js +107 -0
- package/src/tasks/rename/index.js +344 -0
- package/src/tasks/revert-webpack/index.js +69 -0
- package/src/tasks/upgrade/index.js +1 -1
- package/src/tasks/validator/index.js +291 -18
- package/src/util.js +237 -43
- package/tests/assets/components/create/Pega_DXIL_MyTestText/config.json +55 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +60 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.jsx +61 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.js +15 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/config.json +115 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/utils.js +182 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/Boolean.js +38 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +27 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +145 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +65 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +169 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +72 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.js +391 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +291 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +67 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +297 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.js +25 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +62 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +42 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +199 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +439 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +87 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +256 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.js +25 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +256 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +93 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +288 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +331 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +87 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +253 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.js +25 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +278 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +270 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +35 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +136 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.js +192 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +151 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +111 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +232 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.js +24 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +45 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +166 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/mock.js +139 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +344 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +334 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +33 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +32 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +115 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +71 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/localizations.json +4 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.js +96 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +227 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +74 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +237 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +66 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +81 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +110 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.js +53 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +30 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.js +24 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +111 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +230 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.js +22 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +93 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +276 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +123 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +266 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.js +39 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +114 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +353 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +113 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
- package/{src/tasks/init/template/src/components/Organization_Library_VideoPlayer → tests/assets/components/createAll/Constellation/Pega_DXIL_MyText}/config.json +24 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +60 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.jsx +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +111 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +239 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +185 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +70 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +214 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.js +22 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +287 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +139 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.js +232 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +151 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +175 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.js +145 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +237 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +232 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.js +24 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +15 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +175 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/config.json +115 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/utils.js +182 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.js +38 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +27 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +145 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +65 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +169 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +72 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.js +391 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +291 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +66 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +297 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.js +25 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +62 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +42 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +199 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +439 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +87 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +256 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.js +25 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +256 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +93 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +288 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +331 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +87 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +253 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.js +25 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +278 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +60 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +270 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +35 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +137 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.js +192 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +151 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +232 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.js +24 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +45 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +171 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.js +139 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +344 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +60 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +334 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +33 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +32 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +114 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +71 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +4 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.js +96 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +227 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +74 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +279 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +55 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +85 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +80 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.js +53 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +28 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.js +24 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +230 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.js +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +93 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +60 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +276 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +123 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +58 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +266 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.js +39 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +114 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +353 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +113 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +55 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +60 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +61 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +239 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +185 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +214 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.js +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +287 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +140 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.js +232 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +151 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +180 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.js +145 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +237 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +58 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +232 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.js +24 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +15 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +9 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +175 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +163 -0
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +157 -0
- package/tests/functional/localCreateBuildDelete.test.js +84 -0
- package/tests/functional/localCreateListDelete.test.js +108 -0
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +157 -0
- package/tests/functional/localCreatePublishDelete.test.js +85 -0
- package/tests/functional/localCreateRenameDelete.test.js +84 -0
- package/tests/functional/localPromoteRevertWP.test.js +59 -0
- package/tests/unit/util.test.js +544 -0
- package/src/tasks/create/template/demo.stories.jsx.mustache +0 -44
- package/src/tasks/create/template/styles.js.mustache +0 -7
- package/src/tasks/init/template/.storybook/preview.tsx +0 -44
- package/src/tasks/init/template/src/components/MBTAList/MBTAList.stories.tsx +0 -10
- package/src/tasks/init/template/src/components/MBTAList/MBTAList.tsx +0 -122
- package/src/tasks/init/template/src/components/MBTAList/icons/accessible.icon.tsx +0 -14
- package/src/tasks/init/template/src/components/MBTAList/icons/bus.icon.tsx +0 -13
- package/src/tasks/init/template/src/components/MBTAList/icons/mbta.icon.tsx +0 -10
- package/src/tasks/init/template/src/components/MBTAList/icons/subway.icon.tsx +0 -14
- package/src/tasks/init/template/src/components/MBTAList/index.ts +0 -2
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURL.stories.tsx +0 -19
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURL.styles.ts +0 -5
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURL.types.ts +0 -10
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURLDisplay.tsx +0 -25
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURLInput.tsx +0 -24
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/config.json +0 -13
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/index.ts +0 -2
- package/src/tasks/init/template/src/components/Organization_Library_VideoPlayer/demo.stories.jsx +0 -40
- package/src/tasks/init/template/src/components/Organization_Library_VideoPlayer/index.jsx +0 -42
- package/src/tasks/init/template/src/components/Organization_Library_VideoPlayer/styles.js +0 -5
- /package/src/tasks/{publish/bundle → bundle}/builder/modules.js +0 -0
- /package/src/tasks/{publish/bundle → bundle}/builder/paths.js +0 -0
package/.vscode/extensions.json
CHANGED
package/README.md
CHANGED
|
@@ -8,197 +8,14 @@ This project provides you with an environment to extend Constellation by giving
|
|
|
8
8
|
|
|
9
9
|
Ensure you have access to the following in your system:
|
|
10
10
|
|
|
11
|
-
- Pega Infinity Server version 8.7
|
|
11
|
+
- Pega Infinity Server version 8.7 or later
|
|
12
12
|
|
|
13
|
-
- Git version 2.30
|
|
13
|
+
- Git version 2.30 or later
|
|
14
14
|
|
|
15
|
-
- System node version
|
|
15
|
+
- System node version 18
|
|
16
16
|
|
|
17
|
-
- System npm version
|
|
17
|
+
- System npm version 8
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Latest Documentation
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
1. Enter the following command to initialize the project.
|
|
24
|
-
`npx @pega/custom-ui-components init`
|
|
25
|
-
|
|
26
|
-
2. If prompted, enter `y` to install the Custom UI Components package.
|
|
27
|
-
You will then be asked to set up the project by entering the required details.
|
|
28
|
-
|
|
29
|
-
3. Enter the following details:
|
|
30
|
-
- Name of the project (required)
|
|
31
|
-
Example - `mycustomcomponents`
|
|
32
|
-
- Name of the organization (required)
|
|
33
|
-
Example - `customorg`
|
|
34
|
-
- Version (required)
|
|
35
|
-
Example - `1.0.0`
|
|
36
|
-
- Description of the project (optional)
|
|
37
|
-
Example - `This project is intended to create and publish a custom component.`
|
|
38
|
-
- Git repository URL (optional)
|
|
39
|
-
Example - `https://git.custom-components.io/custom-cc.git`
|
|
40
|
-
- Author (optional)
|
|
41
|
-
Example - `Michelle`
|
|
42
|
-
|
|
43
|
-
The workspace is now set up to create custom components and publish them to the server.
|
|
44
|
-
|
|
45
|
-
## Create custom components
|
|
46
|
-
|
|
47
|
-
Create custom components using the following procedure:
|
|
48
|
-
|
|
49
|
-
1. Enter the following command to create a component:
|
|
50
|
-
`npm run create`
|
|
51
|
-
You will then be asked to enter or review the following details of the component:
|
|
52
|
-
- Name of the component (required)
|
|
53
|
-
Example - `customcomp0`
|
|
54
|
-
- Name of component label (required)
|
|
55
|
-
Example - `custom component`
|
|
56
|
-
- Name of the library (required)
|
|
57
|
-
Example - `basic`
|
|
58
|
-
- Component version (required)
|
|
59
|
-
Example - `0.0.1`
|
|
60
|
-
- Type of component (required)
|
|
61
|
-
Example - `Field`
|
|
62
|
-
- Sub-type of component (required)
|
|
63
|
-
Example - `Text`
|
|
64
|
-
- Description of the component (optional)
|
|
65
|
-
Example - `This is a customized searchbox that filters data.`
|
|
66
|
-
The component is created in the following path: _/Users/your_user_name/project_name/src/components/component_name_
|
|
67
|
-
You can also pre-configure the values for the above options in a tasks.config.json file as shown below.
|
|
68
|
-
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"component": {
|
|
72
|
-
"library": "basic",
|
|
73
|
-
"type": "field",
|
|
74
|
-
"subtype": "text",
|
|
75
|
-
"description": "basic field for capturing textual data",
|
|
76
|
-
"icon": "basic-field-text.svg"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
>**Note**:
|
|
81
|
-
Alternatively, you can enter the following command to skip entering the details of the component now and can manually enter the details in the config.json file after the component is created:
|
|
82
|
-
`npm run create <enter_component_name>`
|
|
83
|
-
|
|
84
|
-
A _src/components_ folder is created and the necessary files required to build the component are initialized as seen below.
|
|
85
|
-
|
|
86
|
-
```sh
|
|
87
|
-
├── src
|
|
88
|
-
├── components
|
|
89
|
-
├── <component_name>
|
|
90
|
-
├── index.js
|
|
91
|
-
├── demo.stories.js
|
|
92
|
-
├── config.json
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
The *index.js* file contains the actual component rendering logic.
|
|
97
|
-
The *demo.stories.js* file contains the demo that can be viewed in the storybook.
|
|
98
|
-
The *config.json* file contains the mapping of properties for configuring the auto generated property panel. This property panel appears in AppStudio when an application is being authored to use the custom component.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
2. Enter the following command to start the storybook to view the demo.
|
|
102
|
-
`npm start`
|
|
103
|
-
|
|
104
|
-
3. Modify the source files to build your own component. You can also install and import third-party libraries if required for your component.
|
|
105
|
-
|
|
106
|
-
The custom component is now created. We use the information provided to create uniquely namespaced components in this convention - `<organization>_<library>_<component name>`.
|
|
107
|
-
|
|
108
|
-
## Authenticate the user
|
|
109
|
-
Before we publish the custom component to the Pega Infinity Server, authenticate the user to access the resources in the Pega Infinity Server.
|
|
110
|
-
|
|
111
|
-
>**Note**:
|
|
112
|
-
It is required that you configure a value for clientId, clientSecret, and accessTokenUri.
|
|
113
|
-
1. Login to Pega Infinity Server, navigate to Records / Security / OAuth 2.0 Client Registration landing page and open the *DX-CustomComponents* record.
|
|
114
|
-
2. Click **Regenerate Client Secret**, download the Client Credentials (as the Client ID, Client Secret, and Access token endpoint will be needed), and save the record.
|
|
115
|
-
3. Update the the task.config.json file with these downloaded values:
|
|
116
|
-
```json
|
|
117
|
-
"server-config": {
|
|
118
|
-
"server": "https://127.0.0.1:8080/prweb",
|
|
119
|
-
"user": "customcomponentoperator",
|
|
120
|
-
"password": "pwd",
|
|
121
|
-
"clientId": "<mention client ID here>",
|
|
122
|
-
"clientSecret": "<mention client secret here>",
|
|
123
|
-
"accessTokenUri": "https://127.0.0.1:8080/prweb/PRRestService/oauth2/v1/token"
|
|
124
|
-
},
|
|
125
|
-
```
|
|
126
|
-
4. Enter the following command to initiate authentication.
|
|
127
|
-
`npm run authenticate`
|
|
128
|
-
|
|
129
|
-
The user is now authenticated and can proceed to either publish or list the components.
|
|
130
|
-
|
|
131
|
-
## Publish custom components
|
|
132
|
-
Enter the following command to publish custom components to Pega Infinity Server:
|
|
133
|
-
`npm run publish`
|
|
134
|
-
Publish the finalized custom components changes to Pega Infinity Server so that it can be discoverable in authoring (design palette).
|
|
135
|
-
You will then be asked to enter the following details:
|
|
136
|
-
|
|
137
|
-
- The component to be published to Pega Infinity Server. It will be updated if the component exists.
|
|
138
|
-
- The name of the ruleset where the component must be published.
|
|
139
|
-
- The version of the ruleset where the component must be published.
|
|
140
|
-
- Specify if the development build should be generated for debugging.
|
|
141
|
-
You can also pre-configure the values for the above options in a tasks.config.json file as shown below. The server, user name, and password must be pre-configured.
|
|
142
|
-
|
|
143
|
-
```json
|
|
144
|
-
{
|
|
145
|
-
"components-server-config": {
|
|
146
|
-
"server": "http://127.0.0.1:8080/prweb",
|
|
147
|
-
"user": "customcomponentoperator",
|
|
148
|
-
"password": "pwd"
|
|
149
|
-
"rulesetName": "TestPega-C11nGall",
|
|
150
|
-
"rulesetVersion": "01-01-03",
|
|
151
|
-
"sourceOfComponents": "Server",
|
|
152
|
-
"devBuild": false,
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
```
|
|
156
|
-
When the component is successfully published, you can use the newly published component in App Studio's view authoring.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
>**Note**:
|
|
160
|
-
The Rule-UI-Component instance (with component name) is created on the Pega Infinity Server after publishing the component.
|
|
161
|
-
|
|
162
|
-
## List custom components
|
|
163
|
-
View the available components in the local machine or the server.
|
|
164
|
-
|
|
165
|
-
Enter the following command to list custom components:
|
|
166
|
-
`npm run list`
|
|
167
|
-
|
|
168
|
-
You will then be asked to enter the following details:
|
|
169
|
-
|
|
170
|
-
- List components from Server or Local?
|
|
171
|
-
Example - `Server`
|
|
172
|
-
|
|
173
|
-
The custom components will now be listed in the terminal.
|
|
174
|
-
|
|
175
|
-
## Delete custom components
|
|
176
|
-
Delete the available or published components in the local machine or the server.
|
|
177
|
-
|
|
178
|
-
Enter the following command to delete custom components:
|
|
179
|
-
`npm run delete`
|
|
180
|
-
|
|
181
|
-
You will then be asked to enter the following details:
|
|
182
|
-
|
|
183
|
-
- Delete components from Server or Local?
|
|
184
|
-
Example - `Local`
|
|
185
|
-
|
|
186
|
-
- Select component to delete
|
|
187
|
-
The list of available components in the following path will be displayed: _/Users/your_user_name/project_name/src/components
|
|
188
|
-
Select the component to be deleted from this list.
|
|
189
|
-
|
|
190
|
-
- Are you sure?
|
|
191
|
-
Example - `yes`
|
|
192
|
-
|
|
193
|
-
>**Note**:
|
|
194
|
-
If you choose to delete components from the server, the successfully published components along with their ruleset name and ruleset version from the Pega Infinity Server will be displayed. Select the component to be deleted from this list.
|
|
195
|
-
|
|
196
|
-
## View existing custom components in storybook
|
|
197
|
-
View custom components in a storybook by performing the following procedure:
|
|
198
|
-
1. Enter the following command to open the project.
|
|
199
|
-
`cd <enter your project's name>`
|
|
200
|
-
|
|
201
|
-
2. Enter the following command to start the storybook in development mode.
|
|
202
|
-
`npm start`
|
|
203
|
-
|
|
204
|
-
The storybook is launched in a browser where you can view the components working in isolation.
|
|
21
|
+
Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components-88/page/constellation-dx-components/custom-components/lifecycle-dx-cosmos-components.html)
|
package/babel.config.cjs
ADDED
package/jest.config.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
verbose: true,
|
|
3
|
+
roots: ['./tests'],
|
|
4
|
+
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
|
|
5
|
+
testEnvironment: 'jsdom',
|
|
6
|
+
transform: {
|
|
7
|
+
'^.+\\.[t|j]sx?$': 'babel-jest'
|
|
8
|
+
},
|
|
9
|
+
collectCoverage: true,
|
|
10
|
+
haste: {
|
|
11
|
+
retainAllFiles: true
|
|
12
|
+
},
|
|
13
|
+
testPathIgnorePatterns: [],
|
|
14
|
+
transformIgnorePatterns: [],
|
|
15
|
+
modulePathIgnorePatterns: [],
|
|
16
|
+
coveragePathIgnorePatterns: [],
|
|
17
|
+
collectCoverageFrom: ['./src/*.js'],
|
|
18
|
+
coverageThreshold: {
|
|
19
|
+
global: {
|
|
20
|
+
statements: 79,
|
|
21
|
+
branches: 74,
|
|
22
|
+
functions: 81,
|
|
23
|
+
lines: 80
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
reporters: [
|
|
27
|
+
'default',
|
|
28
|
+
[
|
|
29
|
+
'jest-junit',
|
|
30
|
+
{
|
|
31
|
+
suiteName: 'unit tests',
|
|
32
|
+
outputDirectory: 'build/test-results/test',
|
|
33
|
+
outputName: 'TEST-results-unit.xml'
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
]
|
|
37
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/custom-dx-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Utility for building custom UI components",
|
|
5
5
|
"bin": "./bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,49 +8,54 @@
|
|
|
8
8
|
"lint:format": "prettier -c .",
|
|
9
9
|
"lint:spelling": "cspell **/*",
|
|
10
10
|
"fix:es": "eslint --fix .",
|
|
11
|
-
"fix:format": "prettier -w ."
|
|
11
|
+
"fix:format": "prettier -w .",
|
|
12
|
+
"test:unit:local": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand /tests/unit",
|
|
13
|
+
"test:functional:local": "jest --runInBand /tests/functional --detectOpenHandles --coverage"
|
|
12
14
|
},
|
|
13
15
|
"type": "module",
|
|
14
16
|
"sideEffects": false,
|
|
15
17
|
"dependencies": {
|
|
16
|
-
"@babel/core": "^7.
|
|
17
|
-
"@babel/plugin-
|
|
18
|
-
"@babel/preset-
|
|
19
|
-
"@
|
|
20
|
-
"adm-zip": "^0.5.
|
|
21
|
-
"ajv": "^8.
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
18
|
+
"@babel/core": "^7.23.7",
|
|
19
|
+
"@babel/plugin-transform-class-properties": "^7.23.3",
|
|
20
|
+
"@babel/preset-react": "^7.23.3",
|
|
21
|
+
"@pega/auth": "^0.1.6",
|
|
22
|
+
"adm-zip": "^0.5.10",
|
|
23
|
+
"ajv": "^8.12.0",
|
|
24
|
+
"ajv-keywords": "^5.1.0",
|
|
25
|
+
"arg": "^5.0.2",
|
|
26
|
+
"babel-loader": "^9.1.3",
|
|
27
|
+
"chalk": "^5.3.0",
|
|
28
|
+
"check-git": "^2.0.2",
|
|
29
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
30
|
+
"css-loader": "6.8.1",
|
|
31
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
32
|
+
"eslint": "^8.56.0",
|
|
33
|
+
"execa": "^8.0.1",
|
|
29
34
|
"file-loader": "6.2.0",
|
|
30
|
-
"fs-extra": "^
|
|
35
|
+
"fs-extra": "^11.2.0",
|
|
31
36
|
"gitignore": "^0.7.0",
|
|
32
|
-
"inquirer": "^
|
|
33
|
-
"
|
|
34
|
-
"mini-css-extract-plugin": "2.
|
|
37
|
+
"inquirer": "^9.2.12",
|
|
38
|
+
"listr2": "^8.0.1",
|
|
39
|
+
"mini-css-extract-plugin": "2.7.6",
|
|
35
40
|
"mustache": "^4.2.0",
|
|
36
41
|
"ncp": "^2.0.0",
|
|
37
|
-
"node-fetch": "^3.2
|
|
38
|
-
"ora": "^
|
|
42
|
+
"node-fetch": "^3.3.2",
|
|
43
|
+
"ora": "^8.0.1",
|
|
39
44
|
"pascalcase": "^2.0.0",
|
|
40
|
-
"postcss": "^8.4.
|
|
41
|
-
"postcss-loader": "
|
|
42
|
-
"postcss-preset-env": "
|
|
45
|
+
"postcss": "^8.4.33",
|
|
46
|
+
"postcss-loader": "7.3.4",
|
|
47
|
+
"postcss-preset-env": "9.3.0",
|
|
43
48
|
"prop-types": "^15.8.1",
|
|
44
|
-
"react": "^
|
|
45
|
-
"react-dev-utils": "^12.0.
|
|
46
|
-
"resolve": "1.22.
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"react-dev-utils": "^12.0.1",
|
|
51
|
+
"resolve": "1.22.8",
|
|
47
52
|
"resolve-url-loader": "^5.0.0",
|
|
48
|
-
"sass-loader": "^
|
|
49
|
-
"terser-webpack-plugin": "5.3.
|
|
50
|
-
"ts-loader": "^9.
|
|
51
|
-
"typescript": "^
|
|
53
|
+
"sass-loader": "^13.3.3",
|
|
54
|
+
"terser-webpack-plugin": "5.3.10",
|
|
55
|
+
"ts-loader": "^9.5.1",
|
|
56
|
+
"typescript": "^5.3.3",
|
|
52
57
|
"url-loader": "4.1.1",
|
|
53
|
-
"webpack": "5.
|
|
58
|
+
"webpack": "5.89.0"
|
|
54
59
|
},
|
|
55
60
|
"author": "Custom component dev",
|
|
56
61
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -59,9 +64,16 @@
|
|
|
59
64
|
"custom-components"
|
|
60
65
|
],
|
|
61
66
|
"devDependencies": {
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
67
|
+
"@babel/preset-env": "^7.23.7",
|
|
68
|
+
"@pega/configs": "^0.7.1",
|
|
69
|
+
"@pega/prettier-config": "^0.7.1",
|
|
70
|
+
"@types/jest": "^29.5.11",
|
|
71
|
+
"babel-jest": "^29.7.0",
|
|
72
|
+
"cspell": "^8.3.2",
|
|
73
|
+
"jest": "^29.7.0",
|
|
74
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
75
|
+
"jest-junit": "^16.0.0",
|
|
76
|
+
"prettier": "3.1.1",
|
|
77
|
+
"ts-jest": "^29.1.1"
|
|
66
78
|
}
|
|
67
79
|
}
|
package/src/cli.js
CHANGED
|
@@ -3,11 +3,19 @@ import chalk from 'chalk';
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
authenticate,
|
|
6
|
+
buildComponent,
|
|
7
|
+
buildAllComponents,
|
|
6
8
|
createComponent,
|
|
9
|
+
createAllComponents,
|
|
7
10
|
deleteComponent,
|
|
11
|
+
deleteAllComponents,
|
|
8
12
|
initProject,
|
|
9
13
|
listComponents,
|
|
10
14
|
publishComponent,
|
|
15
|
+
publishAllComponents,
|
|
16
|
+
renameComponent,
|
|
17
|
+
revertWebPack,
|
|
18
|
+
promoteWebPack,
|
|
11
19
|
updateComponent,
|
|
12
20
|
validate,
|
|
13
21
|
upgrade
|
|
@@ -16,11 +24,19 @@ import {
|
|
|
16
24
|
const TASKS = {
|
|
17
25
|
INIT: 'init',
|
|
18
26
|
CREATE: 'create',
|
|
27
|
+
CREATE_ALL: 'createAll',
|
|
28
|
+
BUILD: 'buildComponent',
|
|
29
|
+
BUILD_ALL: 'buildAllComponents',
|
|
30
|
+
PROMOTE_WEBPACK: 'promoteWebPack',
|
|
31
|
+
REVERT_WEBPACK: 'revertWebPack',
|
|
19
32
|
PUBLISH: 'publish',
|
|
33
|
+
PUBLISH_All: 'publishAll',
|
|
34
|
+
RENAME: 'rename',
|
|
20
35
|
LIST: 'list',
|
|
21
36
|
VALIDATE_SCHEMA: 'validateSchema',
|
|
22
37
|
UPDATE: 'update',
|
|
23
38
|
DELETE: 'delete',
|
|
39
|
+
DELETE_ALL: "deleteAll",
|
|
24
40
|
AUTHENTICATE: 'authenticate',
|
|
25
41
|
UPGRADE: 'upgrade'
|
|
26
42
|
};
|
|
@@ -39,7 +55,7 @@ const parseArgumentsIntoOptions = rawArgs => {
|
|
|
39
55
|
task: args._[0],
|
|
40
56
|
git: true, // args['--git'] || false
|
|
41
57
|
runInstall: true, // args['--install'] || false
|
|
42
|
-
skipBundle: false,
|
|
58
|
+
skipBundle: args['--skipBundle'] || false,
|
|
43
59
|
params: rawArgs
|
|
44
60
|
};
|
|
45
61
|
};
|
|
@@ -56,10 +72,38 @@ export default async (args = []) => {
|
|
|
56
72
|
createComponent(options);
|
|
57
73
|
break;
|
|
58
74
|
}
|
|
75
|
+
case TASKS.CREATE_ALL: {
|
|
76
|
+
createAllComponents(options);
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
case TASKS.PROMOTE_WEBPACK: {
|
|
80
|
+
promoteWebPack(options);
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
case TASKS.REVERT_WEBPACK: {
|
|
84
|
+
revertWebPack(options);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
59
87
|
case TASKS.PUBLISH: {
|
|
60
88
|
publishComponent(options);
|
|
61
89
|
break;
|
|
62
90
|
}
|
|
91
|
+
case TASKS.PUBLISH_All: {
|
|
92
|
+
publishAllComponents(options);
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
case TASKS.RENAME: {
|
|
96
|
+
renameComponent(options);
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
case TASKS.BUILD: {
|
|
100
|
+
buildComponent(options);
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
case TASKS.BUILD_ALL: {
|
|
104
|
+
buildAllComponents(options);
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
63
107
|
case TASKS.LIST: {
|
|
64
108
|
listComponents(options);
|
|
65
109
|
break;
|
|
@@ -76,6 +120,10 @@ export default async (args = []) => {
|
|
|
76
120
|
deleteComponent(options);
|
|
77
121
|
break;
|
|
78
122
|
}
|
|
123
|
+
case TASKS.DELETE_ALL: {
|
|
124
|
+
deleteAllComponents(options);
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
79
127
|
case TASKS.AUTHENTICATE: {
|
|
80
128
|
authenticate(options);
|
|
81
129
|
break;
|
package/src/constants.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
// cSpell:ignore words timeofday caseview casepreview objectview
|
|
2
2
|
export const TASKS_CONFIG_JSON_FILENAME = 'tasks.config.json';
|
|
3
|
+
export const PACKAGE_JSON_FILENAME = 'package.json';
|
|
3
4
|
export const BUILD_CONFIG_JSON_FILENAME = 'build.config.json';
|
|
5
|
+
export const WEBPACK_CONFIG_JS_FILENAME = 'webpack.config.js';
|
|
6
|
+
export const WEBPACK_PATHS_JS_FILENAME = 'paths.js';
|
|
4
7
|
export const COMPONENTS_DIRECTORY_PATH = 'components-directory-path';
|
|
8
|
+
export const COMPONENTS_PATH = 'component';
|
|
5
9
|
export const TOKEN_PATH = 'node_modules/@pega/custom-dx-components/.access_token';
|
|
6
10
|
export const OOTB_COMPONENTS = 'node_modules/@pega/custom-dx-components/.ootb_components';
|
|
7
11
|
|
|
@@ -10,9 +14,85 @@ export const PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/pub
|
|
|
10
14
|
export const LIST_COMPONENT_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/list_component';
|
|
11
15
|
export const OOTB_COMPONENT_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/ootb_component';
|
|
12
16
|
export const DELETE_COMPONENT_SERVICE_REST_ENDPOINT = 'PRRestService/dev/v1/delete_component';
|
|
13
|
-
export const
|
|
17
|
+
export const INF_TOKEN_URL_V1 = 'PRRestService/oauth2/v1/token';
|
|
18
|
+
export const INF_AUTHORIZE_URL_V1 = 'PRRestService/oauth2/v1/authorize';
|
|
19
|
+
export const LP_TOKEN_URL = 'uas/oauth/token';
|
|
20
|
+
export const LP_AUTHORIZE_URL = 'uas/oauth/authorize';
|
|
21
|
+
export const LP_LIST_COMPONENT_SERVICE_REST_ENDPOINT =
|
|
22
|
+
'pegalaunchpad/c11n/v103/app/appstudiox/componentslist?field0=type&value0={type}';
|
|
23
|
+
export const LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT =
|
|
24
|
+
'pegalaunchpad/c11n/isolations/{isolationId}/v102/assetsUpdate';
|
|
25
|
+
export const LP_DELETE_COMPONENT_SERVICE_REST_ENDPOINT =
|
|
26
|
+
'pegalaunchpad/c11n/isolations/{isolationId}/v102/assetsUpdate';
|
|
27
|
+
|
|
28
|
+
export const FIELD_PATH = '/field';
|
|
29
|
+
export const TEMPLATE_PATH = '/template';
|
|
30
|
+
export const WIDGET_PATH = '/widget';
|
|
31
|
+
|
|
32
|
+
export const COMPONENT_PREFIX_FIELD_PATH = 'field/';
|
|
33
|
+
export const COMPONENT_PREFIX_TEMPLATE_PATH = 'template/';
|
|
34
|
+
export const COMPONENT_PREFIX_WIDGET_PATH = 'widget/';
|
|
35
|
+
|
|
36
|
+
export const BUILDER_INDEX_FILE_PATH = '../bundle/builder/index.js';
|
|
37
|
+
export const BUILDER_DIR_FILE_PATH = '../bundle/builder';
|
|
38
|
+
|
|
39
|
+
export const CATEGORY_CONSTELLATION = 'constellation';
|
|
40
|
+
|
|
41
|
+
export const AUTHENTICATE_DEFAULTS = {
|
|
42
|
+
serverType: 'infinity',
|
|
43
|
+
server: 'https://localhost:1080/prweb',
|
|
44
|
+
clientId: '10095186356008396159',
|
|
45
|
+
grantType: 'authCode',
|
|
46
|
+
authService: 'pega',
|
|
47
|
+
redirectUri: 'https://localhost:4010/'
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const AUTHENTICATE_SCHEMA = {
|
|
51
|
+
serverType: [
|
|
52
|
+
{
|
|
53
|
+
name: 'Infinity',
|
|
54
|
+
value: 'infinity'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Launchpad',
|
|
58
|
+
value: 'launchpad'
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
grantType: [
|
|
62
|
+
{
|
|
63
|
+
name: 'Authorization code',
|
|
64
|
+
value: 'authCode'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'Password credentials',
|
|
68
|
+
value: 'passwordCreds'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Client credentials',
|
|
72
|
+
value: 'clientCreds'
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
};
|
|
14
76
|
|
|
15
77
|
export const COMPONENT_SCHEMA = {
|
|
78
|
+
framework: [
|
|
79
|
+
{
|
|
80
|
+
name: 'Constellation',
|
|
81
|
+
value: 'Constellation'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'SDK Angular',
|
|
85
|
+
value: 'SDK-Angular'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'SDK React',
|
|
89
|
+
value: 'SDK-React'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'SDK Web Components',
|
|
93
|
+
value: 'SDK-WebComponents'
|
|
94
|
+
}
|
|
95
|
+
],
|
|
16
96
|
type: [
|
|
17
97
|
{
|
|
18
98
|
name: 'Field',
|
|
@@ -33,21 +113,25 @@ export const COMPONENT_SCHEMA = {
|
|
|
33
113
|
name: 'Text',
|
|
34
114
|
value: 'Text'
|
|
35
115
|
},
|
|
116
|
+
{
|
|
117
|
+
name: 'Text Input',
|
|
118
|
+
value: 'Text-Input'
|
|
119
|
+
},
|
|
36
120
|
{
|
|
37
121
|
name: 'Paragraph',
|
|
38
122
|
value: 'Text-Paragraph'
|
|
39
123
|
},
|
|
40
124
|
{
|
|
41
125
|
name: 'Email',
|
|
42
|
-
value: 'Email'
|
|
126
|
+
value: 'Text-Email'
|
|
43
127
|
},
|
|
44
128
|
{
|
|
45
129
|
name: 'Phone',
|
|
46
|
-
value: 'Phone'
|
|
130
|
+
value: 'Text-Phone'
|
|
47
131
|
},
|
|
48
132
|
{
|
|
49
133
|
name: 'URL',
|
|
50
|
-
value: 'URL'
|
|
134
|
+
value: 'Text-URL'
|
|
51
135
|
},
|
|
52
136
|
{
|
|
53
137
|
name: 'Integer',
|
|
@@ -78,15 +162,57 @@ export const COMPONENT_SCHEMA = {
|
|
|
78
162
|
value: 'DateTime'
|
|
79
163
|
},
|
|
80
164
|
{
|
|
81
|
-
name: '
|
|
82
|
-
value: '
|
|
165
|
+
name: 'TimeOfDay',
|
|
166
|
+
value: 'TimeOfDay'
|
|
83
167
|
},
|
|
84
168
|
{
|
|
85
169
|
name: 'Picklist',
|
|
86
170
|
value: 'Picklist'
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'Autocomplete',
|
|
174
|
+
value: 'Picklist-Autocomplete'
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'Radio Buttons',
|
|
178
|
+
value: 'Picklist-RadioButtons'
|
|
87
179
|
}
|
|
88
180
|
],
|
|
89
|
-
template: [
|
|
90
|
-
|
|
181
|
+
template: [
|
|
182
|
+
{
|
|
183
|
+
name: 'DETAILS',
|
|
184
|
+
value: 'DETAILS'
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'DETAILS region',
|
|
188
|
+
value: 'DETAILS-region'
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'FORM',
|
|
192
|
+
value: 'FORM'
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'FORM region',
|
|
196
|
+
value: 'FORM-region'
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'PAGE',
|
|
200
|
+
value: 'PAGE'
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
widget: [
|
|
204
|
+
{
|
|
205
|
+
name: 'CASE',
|
|
206
|
+
value: 'CASE'
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'PAGE',
|
|
210
|
+
value: 'PAGE'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'PAGE & CASE',
|
|
214
|
+
value: ['PAGE', 'CASE']
|
|
215
|
+
}
|
|
216
|
+
]
|
|
91
217
|
}
|
|
92
218
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = __dirname;
|