@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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Fragment } from 'react';
|
|
2
|
+
import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
|
|
5
|
+
import StyledPegaDxilMyDetailsWrapper from './styles';
|
|
6
|
+
|
|
7
|
+
// includes in bundle
|
|
8
|
+
import { getAllFields } from './utils';
|
|
9
|
+
|
|
10
|
+
// Duplicated runtime code from Constellation Design System Component
|
|
11
|
+
|
|
12
|
+
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
13
|
+
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
14
|
+
export default function PegaDxilMyDetails(props) {
|
|
15
|
+
|
|
16
|
+
const { getPConnect, children, label, showLabel, showHighlightedData } = props;
|
|
17
|
+
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
18
|
+
|
|
19
|
+
const numRegions = getAllFields(getPConnect)?.length;
|
|
20
|
+
const gridRepeat = "repeat(".concat(numRegions).concat(", 1fr)");
|
|
21
|
+
const gridContainer = { "colGap": 1};
|
|
22
|
+
gridContainer.cols = gridRepeat;
|
|
23
|
+
gridContainer.alignItems = 'start';
|
|
24
|
+
|
|
25
|
+
const gridHighlightContainer = { "gap": 2};
|
|
26
|
+
gridHighlightContainer.cols = gridRepeat;
|
|
27
|
+
gridHighlightContainer.alignItems = 'start';
|
|
28
|
+
gridHighlightContainer.pad = [0, 0, 2, 0];
|
|
29
|
+
|
|
30
|
+
// Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent
|
|
31
|
+
let highlightedDataArr = [];
|
|
32
|
+
if (showHighlightedData) {
|
|
33
|
+
const { highlightedData = [] } = getPConnect().getRawMetadata().config;
|
|
34
|
+
highlightedDataArr = highlightedData.map((field) => {
|
|
35
|
+
field.config.displayMode = 'STACKED_LARGE_VAL';
|
|
36
|
+
|
|
37
|
+
// Mark as status display when using pyStatusWork
|
|
38
|
+
if (field.config.value === '@P .pyStatusWork') {
|
|
39
|
+
field.type = 'TextInput';
|
|
40
|
+
field.config.displayAsStatus = true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return getPConnect().createComponent(field);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<StyledPegaDxilMyDetailsWrapper>
|
|
49
|
+
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
|
50
|
+
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
51
|
+
<Grid container={gridHighlightContainer}
|
|
52
|
+
data-testid={`highlighted-column-count-${numRegions}`}>
|
|
53
|
+
{highlightedDataArr.map((child, i) => (
|
|
54
|
+
<Fragment key={`hf-${i + 1}`}>{child}</Fragment>
|
|
55
|
+
))}
|
|
56
|
+
</Grid>
|
|
57
|
+
)}
|
|
58
|
+
<Grid container={gridContainer} data-testid={`column-count-${numRegions}`} >
|
|
59
|
+
{children.map((child, i) => (
|
|
60
|
+
<Flex container={{ direction: 'column'}} key={`r-${i + 1}`}>
|
|
61
|
+
{child}
|
|
62
|
+
</Flex>
|
|
63
|
+
))}
|
|
64
|
+
</Grid>
|
|
65
|
+
</FieldGroup>
|
|
66
|
+
</StyledPegaDxilMyDetailsWrapper>
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
PegaDxilMyDetails.defaultProps = {
|
|
72
|
+
label: undefined,
|
|
73
|
+
showLabel: true,
|
|
74
|
+
showHighlightedData: false
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
PegaDxilMyDetails.propTypes = {
|
|
79
|
+
showLabel: PropTypes.bool,
|
|
80
|
+
label: PropTypes.string,
|
|
81
|
+
getPConnect: PropTypes.func.isRequired,
|
|
82
|
+
showHighlightedData: PropTypes.bool
|
|
83
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable storybook/default-exports */
|
|
3
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
4
|
+
export const pyReviewRaw = {
|
|
5
|
+
name: 'pyReview',
|
|
6
|
+
type: 'View',
|
|
7
|
+
config: {
|
|
8
|
+
template: 'Details',
|
|
9
|
+
ruleClass: 'MyCo-MyCompon-Work-MyComponents',
|
|
10
|
+
showLabel: true,
|
|
11
|
+
label: '@L Details',
|
|
12
|
+
localeReference: '@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
|
|
13
|
+
showHighlightedData: true,
|
|
14
|
+
highlightedData: [
|
|
15
|
+
{
|
|
16
|
+
type: 'TextInput',
|
|
17
|
+
config: {
|
|
18
|
+
value: '@P .pyStatusWork',
|
|
19
|
+
label: '@L Work Status',
|
|
20
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
21
|
+
displayAsStatus: true,
|
|
22
|
+
key: 'pyStatusWork'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 'TextInput',
|
|
27
|
+
config: {
|
|
28
|
+
value: '@P .pyID',
|
|
29
|
+
label: '@L Case ID',
|
|
30
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
31
|
+
key: 'pyID'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'DateTime',
|
|
36
|
+
config: {
|
|
37
|
+
value: '@P .pxCreateDateTime',
|
|
38
|
+
label: '@L Create date/time',
|
|
39
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
40
|
+
key: 'pxCreateDateTime'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'UserReference',
|
|
45
|
+
config: {
|
|
46
|
+
label: '@L Create Operator',
|
|
47
|
+
value: '@USER .pxCreateOperator',
|
|
48
|
+
placeholder: 'Select...',
|
|
49
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
50
|
+
key: 'pxCreateOperator'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
inheritedProps: [
|
|
55
|
+
{
|
|
56
|
+
prop: 'label',
|
|
57
|
+
value: '@L Details'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
prop: 'showLabel',
|
|
61
|
+
value: true
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
children: [
|
|
66
|
+
{
|
|
67
|
+
name: 'A',
|
|
68
|
+
type: 'Region',
|
|
69
|
+
getPConnect: () => {
|
|
70
|
+
return {
|
|
71
|
+
getRawMetadata: () => {
|
|
72
|
+
return pyReviewRaw.children[0];
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
type: 'DateTime',
|
|
79
|
+
config: {
|
|
80
|
+
value: '@P .pySLADeadline',
|
|
81
|
+
label: '@L SLA Deadline'
|
|
82
|
+
},
|
|
83
|
+
key: '1'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: 'DateTime',
|
|
87
|
+
config: {
|
|
88
|
+
value: '@P .pySLAGoal',
|
|
89
|
+
label: '@L SLA Goal'
|
|
90
|
+
},
|
|
91
|
+
key: '2'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'RadioButtons',
|
|
95
|
+
config: {
|
|
96
|
+
value: '@P .pySLAStartTime',
|
|
97
|
+
label: '@L SLA Start Time',
|
|
98
|
+
listType: 'associated',
|
|
99
|
+
datasource: '@ASSOCIATED .pySLAStartTime'
|
|
100
|
+
},
|
|
101
|
+
key: '3'
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
classID: 'MyCo-MyCompon-Work-MyComponents'
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const pyReviewResolved = {
|
|
110
|
+
readOnly: true,
|
|
111
|
+
template: 'Details',
|
|
112
|
+
ruleClass: 'MyCo-MyCompon-Work-MyComponents',
|
|
113
|
+
showLabel: true,
|
|
114
|
+
label: 'Details',
|
|
115
|
+
localeReference: 'MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
|
|
116
|
+
showHighlightedData: true,
|
|
117
|
+
highlightedData: [
|
|
118
|
+
{
|
|
119
|
+
type: 'TextInput',
|
|
120
|
+
config: {
|
|
121
|
+
value: 'New',
|
|
122
|
+
label: 'Work Status',
|
|
123
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
124
|
+
displayAsStatus: true
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: 'TextInput',
|
|
129
|
+
config: {
|
|
130
|
+
value: 'M-1002',
|
|
131
|
+
label: 'Case ID',
|
|
132
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: 'DateTime',
|
|
137
|
+
config: {
|
|
138
|
+
value: '2022-12-11T20:06:27.232Z',
|
|
139
|
+
label: 'Create date/time',
|
|
140
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: 'UserReference',
|
|
145
|
+
config: {
|
|
146
|
+
label: 'Create Operator',
|
|
147
|
+
value: {
|
|
148
|
+
userId: 'conns',
|
|
149
|
+
userName: 'Sara Connor'
|
|
150
|
+
},
|
|
151
|
+
placeholder: 'Select...',
|
|
152
|
+
displayMode: 'STACKED_LARGE_VAL'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
displayMode: 'LABELS_LEFT'
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export const regionChildrenResolved = [
|
|
160
|
+
{
|
|
161
|
+
readOnly: true,
|
|
162
|
+
value: '',
|
|
163
|
+
label: 'SLA Deadline',
|
|
164
|
+
displayMode: 'LABELS_LEFT',
|
|
165
|
+
key: 'SLA Deadline'
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
readOnly: true,
|
|
169
|
+
value: '',
|
|
170
|
+
label: 'SLA Goal',
|
|
171
|
+
displayMode: 'LABELS_LEFT',
|
|
172
|
+
key: 'SLA Goal'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
readOnly: true,
|
|
176
|
+
value: '',
|
|
177
|
+
label: 'SLA Start Time',
|
|
178
|
+
listType: 'associated',
|
|
179
|
+
datasource: [
|
|
180
|
+
{
|
|
181
|
+
key: 'AssignmentCreation',
|
|
182
|
+
value: 'The creation time of the Assignment'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
key: 'CurrentTime',
|
|
186
|
+
value: 'Current Date Time'
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
displayMode: 'LABELS_LEFT',
|
|
190
|
+
key: 'SLA Start Time'
|
|
191
|
+
}
|
|
192
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// utilizing theming, comment out, if want individual style
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
5
|
+
|
|
6
|
+
export default styled(Configuration)``;
|
|
7
|
+
|
|
8
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
9
|
+
// import styled, { css } from 'styled-components';
|
|
10
|
+
//
|
|
11
|
+
// export default styled.div(() => {
|
|
12
|
+
// return css`
|
|
13
|
+
// margin: 0px 0;
|
|
14
|
+
// `;
|
|
15
|
+
// });
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Given the PConnect object of a Template component, retrieve the children
|
|
4
|
+
* metadata of all regions.
|
|
5
|
+
* @param {Function} pConnect PConnect of a Template component.
|
|
6
|
+
*/
|
|
7
|
+
export function getAllFields(pConnect) {
|
|
8
|
+
const metadata = pConnect().getRawMetadata();
|
|
9
|
+
if (!metadata.children) {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let allFields = [];
|
|
14
|
+
|
|
15
|
+
const makeField = (f) => ({
|
|
16
|
+
...pConnect().resolveConfigProps(f.config),
|
|
17
|
+
type: f.type
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const hasRegions = !!metadata.children[0]?.children;
|
|
21
|
+
if (hasRegions) {
|
|
22
|
+
allFields = metadata.children.map((region) =>
|
|
23
|
+
region.children.map((field) => {
|
|
24
|
+
// Do not resolve the config props if is status work, instead create component here as status badge and mark as status display
|
|
25
|
+
if (field.config?.value === '@P .pyStatusWork') {
|
|
26
|
+
field.type = 'TextInput';
|
|
27
|
+
field.config.displayAsStatus = true;
|
|
28
|
+
return pConnect().createComponent(field);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return makeField(field);
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
} else {
|
|
35
|
+
allFields = metadata.children.map(makeField);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return allFields;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
export function getFilteredFields(getPConnect) {
|
|
44
|
+
let primaryFieldsRaw;
|
|
45
|
+
let secondaryFieldsRaw;
|
|
46
|
+
const metadata = getPConnect().getRawMetadata();
|
|
47
|
+
const hasRegions = !!metadata.children[0]?.children;
|
|
48
|
+
if (hasRegions) {
|
|
49
|
+
primaryFieldsRaw = metadata.children[0].children;
|
|
50
|
+
secondaryFieldsRaw = metadata.children[1].children;
|
|
51
|
+
} else {
|
|
52
|
+
[primaryFieldsRaw, secondaryFieldsRaw] = metadata.children;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Filter out fields that are not visible and unsupported types for primary fields (for CaseSummary)
|
|
56
|
+
primaryFieldsRaw = primaryFieldsRaw.filter((item) => {
|
|
57
|
+
const resolvedItem = getPConnect().resolveConfigProps(item.config);
|
|
58
|
+
return resolvedItem.visibility !== false && item.type !== 'TextContent';
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
secondaryFieldsRaw = secondaryFieldsRaw.filter((item) => {
|
|
62
|
+
const resolvedItem = getPConnect().resolveConfigProps(item.config);
|
|
63
|
+
return resolvedItem.visibility !== false && item.type !== 'TextContent';
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return [primaryFieldsRaw, secondaryFieldsRaw];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Returns ConfigurableLayout mapped content. With pre-populated default layout configs.
|
|
71
|
+
* @param {object[]} regionData template children item.
|
|
72
|
+
* @returns {object[]} ConfigurableLayout content.
|
|
73
|
+
*/
|
|
74
|
+
export function getLayoutDataFromRegion(regionData) {
|
|
75
|
+
const defaultLayoutConfig = {
|
|
76
|
+
width: 'full',
|
|
77
|
+
fillAvailable: true,
|
|
78
|
+
minWidth: [300, 'px']
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return regionData.props
|
|
82
|
+
?.getPConnect()
|
|
83
|
+
?.getChildren()
|
|
84
|
+
?.map((item, index) => {
|
|
85
|
+
const itemPConnect = item?.getPConnect();
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
id: itemPConnect?.getComponentName() ? `${itemPConnect.getComponentName()}--${index}` : `item--${index}`,
|
|
89
|
+
content: itemPConnect?.getComponent(),
|
|
90
|
+
layoutConfig: {
|
|
91
|
+
...defaultLayoutConfig,
|
|
92
|
+
...itemPConnect?.getConfigProps().layoutConfig
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Determine if the current view is the view of the case step/assignment.
|
|
100
|
+
* @param {Function} pConnect PConnect object for the component
|
|
101
|
+
*/
|
|
102
|
+
export function getIsAssignmentView(pConnect) {
|
|
103
|
+
// Get caseInfo content from the store which contains the view info about the current assignment/step
|
|
104
|
+
// TODO To be replaced with pConnect.getCaseInfo().getCurrentAssignmentView when it's available
|
|
105
|
+
const assignmentViewClass = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_CLASSID);
|
|
106
|
+
const assignmentViewName = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENTACTION_ID);
|
|
107
|
+
|
|
108
|
+
const assignmentViewId = `${assignmentViewName}!${assignmentViewClass}`;
|
|
109
|
+
|
|
110
|
+
// Get the info about the current view from pConnect
|
|
111
|
+
const currentViewId = `${pConnect.getCurrentView()}!${pConnect.getCurrentClassID()}`;
|
|
112
|
+
|
|
113
|
+
return assignmentViewId === currentViewId;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A hook that gets the instructions content for a view.
|
|
118
|
+
* @param {Function} pConnect PConnect object for the component
|
|
119
|
+
* @param {string} [instructions="casestep"] 'casestep', 'none', or the html content of a Rule-UI-Paragraph rule (processed via core's paragraph annotation handler)
|
|
120
|
+
*/
|
|
121
|
+
export function getInstructions(pConnect, instructions = 'casestep') {
|
|
122
|
+
const caseStepInstructions = pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);
|
|
123
|
+
|
|
124
|
+
// Determine if this view is the current assignment/step view
|
|
125
|
+
const isCurrentAssignmentView = getIsAssignmentView(pConnect);
|
|
126
|
+
|
|
127
|
+
// Case step instructions
|
|
128
|
+
if (instructions === 'casestep' && isCurrentAssignmentView && caseStepInstructions?.length) {
|
|
129
|
+
return caseStepInstructions;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// No instructions
|
|
133
|
+
if (instructions === 'none') {
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// If the annotation wasn't processed correctly, don't return any instruction text
|
|
138
|
+
if (instructions?.startsWith('@PARAGRAPH')) {
|
|
139
|
+
|
|
140
|
+
console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Custom instructions from the view
|
|
145
|
+
// The raw metadata for `instructions` will be something like '@PARAGRAPH .SomeParagraphRule' but
|
|
146
|
+
// it is evaluated by core logic to the content
|
|
147
|
+
if (instructions !== 'casestep' && instructions !== 'none') {
|
|
148
|
+
return instructions;
|
|
149
|
+
}
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Pega_DXIL_MyEmail",
|
|
3
|
+
"label": "My Email",
|
|
4
|
+
"description": "My Email",
|
|
5
|
+
"organization": "Pega",
|
|
6
|
+
"version": "0.0.1",
|
|
7
|
+
"library": "DXIL",
|
|
8
|
+
"allowedApplications": [],
|
|
9
|
+
"componentKey": "Pega_DXIL_MyEmail",
|
|
10
|
+
"type": "Field",
|
|
11
|
+
"subtype": "Text-Email",
|
|
12
|
+
"icon": "images/pz-email-active.svg",
|
|
13
|
+
"properties": [
|
|
14
|
+
{
|
|
15
|
+
"name": "label",
|
|
16
|
+
"label": "Field label",
|
|
17
|
+
"format": "TEXT",
|
|
18
|
+
"required": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "readOnly",
|
|
22
|
+
"label": "Edit mode",
|
|
23
|
+
"format": "READONLY"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "Column settings",
|
|
27
|
+
"format": "GROUP",
|
|
28
|
+
"visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
|
|
29
|
+
"properties": [
|
|
30
|
+
{
|
|
31
|
+
"name": "columnWidth",
|
|
32
|
+
"label": "Column width",
|
|
33
|
+
"format": "SELECT",
|
|
34
|
+
"source": [
|
|
35
|
+
{
|
|
36
|
+
"key": "auto",
|
|
37
|
+
"value": "Auto"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "custom",
|
|
41
|
+
"value": "Custom"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "width",
|
|
47
|
+
"label": "Width (px)",
|
|
48
|
+
"format": "NUMBER",
|
|
49
|
+
"visibility": "$this.columnWidth == 'custom'"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "Input settings",
|
|
55
|
+
"format": "GROUP",
|
|
56
|
+
"visibility": "(!readOnly = true)",
|
|
57
|
+
"properties": [
|
|
58
|
+
{
|
|
59
|
+
"name": "placeholder",
|
|
60
|
+
"label": "Placeholder",
|
|
61
|
+
"format": "TEXT"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "helperText",
|
|
65
|
+
"label": "Helper text",
|
|
66
|
+
"format": "TEXT"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "Conditions",
|
|
72
|
+
"format": "GROUP",
|
|
73
|
+
"properties": [
|
|
74
|
+
{
|
|
75
|
+
"name": "required",
|
|
76
|
+
"label": "Required",
|
|
77
|
+
"format": "REQUIRED",
|
|
78
|
+
"visibility": "(!readOnly = true)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "disabled",
|
|
82
|
+
"label": "Disabled",
|
|
83
|
+
"format": "DISABLED",
|
|
84
|
+
"visibility": "(!readOnly = true)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "visibility",
|
|
88
|
+
"label": "Visibility",
|
|
89
|
+
"format": "VISIBILITY"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"label": "Advanced",
|
|
95
|
+
"format": "GROUP",
|
|
96
|
+
"collapsible": true,
|
|
97
|
+
"properties": [
|
|
98
|
+
{
|
|
99
|
+
"name": "testId",
|
|
100
|
+
"label": "Test ID",
|
|
101
|
+
"format": "TEXT",
|
|
102
|
+
"ignorePattern": "[^-_\\p{N}\\p{L}]",
|
|
103
|
+
"includeAnnotations": false
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"defaultConfig": {
|
|
109
|
+
"label": "@L $this.label"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
2
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
3
|
+
|
|
4
|
+
import PegaDxilMyEmail from './index.jsx';
|
|
5
|
+
import { stateProps, configProps, fieldMetadata } from './mock';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'PegaDxilMyEmail',
|
|
9
|
+
decorators: [withKnobs],
|
|
10
|
+
component: PegaDxilMyEmail
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const BasePegaDxilMyEmail = () => {
|
|
14
|
+
const props = {
|
|
15
|
+
value: configProps.value,
|
|
16
|
+
label: configProps.label,
|
|
17
|
+
placeholder: configProps.placeholder,
|
|
18
|
+
helperText: configProps.helperText,
|
|
19
|
+
testId: configProps.testId,
|
|
20
|
+
hasSuggestions: configProps.hasSuggestions,
|
|
21
|
+
fieldMetadata,
|
|
22
|
+
|
|
23
|
+
getPConnect: () => {
|
|
24
|
+
return {
|
|
25
|
+
getStateProps: () => {
|
|
26
|
+
return stateProps;
|
|
27
|
+
},
|
|
28
|
+
getActionsApi: () => {
|
|
29
|
+
return {
|
|
30
|
+
updateFieldValue: () => {
|
|
31
|
+
/* nothing */
|
|
32
|
+
},
|
|
33
|
+
triggerFieldChange: () => {
|
|
34
|
+
/* nothing */
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
ignoreSuggestion: () => {
|
|
39
|
+
/* nothing */
|
|
40
|
+
},
|
|
41
|
+
acceptSuggestion: () => {
|
|
42
|
+
/* nothing */
|
|
43
|
+
},
|
|
44
|
+
setInheritedProps: () => {
|
|
45
|
+
/* nothing */
|
|
46
|
+
},
|
|
47
|
+
resolveConfigProps: () => {
|
|
48
|
+
/* nothing */
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<>
|
|
56
|
+
<PegaDxilMyEmail {...props} />
|
|
57
|
+
</>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const handleEvent = (actions, eventType, propName, value) => {
|
|
2
|
+
switch (eventType) {
|
|
3
|
+
case "change":
|
|
4
|
+
actions.updateFieldValue(propName, value);
|
|
5
|
+
break;
|
|
6
|
+
case "blur":
|
|
7
|
+
actions.triggerFieldChange(propName, value);
|
|
8
|
+
break;
|
|
9
|
+
case "changeNblur":
|
|
10
|
+
actions.updateFieldValue(propName, value);
|
|
11
|
+
actions.triggerFieldChange(propName, value);
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default handleEvent;
|