@pega/custom-dx-components 23.1.11 → 24.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/README.md +4 -4
- package/SECURITY.md +10 -0
- package/package.json +1 -1
- package/src/cli.js +8 -2
- package/src/constants.js +10 -0
- package/src/tasks/build-all/helper.js +6 -0
- package/src/tasks/build-all/index.js +10 -25
- package/src/tasks/build-comp/helper.js +8 -0
- package/src/tasks/build-comp/index.js +1 -0
- package/src/tasks/build-jest-assets/index.js +171 -0
- package/src/tasks/bundle/builder/index.js +6 -3
- package/src/tasks/bundle/builder/webpack.config.js +15 -1
- package/src/tasks/create/index.js +3 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/Boolean.ts.mustache +35 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.tsx.mustache +26 -19
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +17 -51
- package/src/tasks/create/templates/Constellation/Field/Boolean/mock.ts.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/styles.ts.mustache +7 -14
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js → src/tasks/create/templates/Constellation/Field/Date/DateFormatter.ts.mustache} +6 -6
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.tsx.mustache +20 -0
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js → src/tasks/create/templates/Constellation/Field/Date/date.ts.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.tsx.mustache +31 -24
- package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +19 -60
- package/src/tasks/create/templates/Constellation/Field/Date/mock.ts.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/Date/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/DateTime/{date-time.js.mustache → date-time.ts.mustache} +12 -12
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js → src/tasks/create/templates/Constellation/Field/DateTime/date-utils.ts.mustache} +27 -26
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js → src/tasks/create/templates/Constellation/Field/DateTime/date.ts.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +32 -25
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +13 -60
- package/src/tasks/create/templates/Constellation/Field/DateTime/mock.ts.mustache +3 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.tsx.mustache +25 -13
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +15 -68
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.tsx.mustache +28 -15
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +24 -76
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.ts.mustache +11 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.tsx.mustache +25 -12
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +14 -55
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.ts.mustache +9 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +64 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.stories.tsx.mustache +104 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/index.tsx.mustache +218 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/mock.ts.mustache +5 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/styles.ts.mustache +8 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.tsx.mustache +25 -12
- package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +24 -88
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.ts.mustache +8 -2
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.tsx.mustache +25 -12
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +13 -61
- package/src/tasks/create/templates/Constellation/Field/Picklist/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.ts.mustache +7 -14
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/date.js → src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.ts.mustache} +2 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.tsx.mustache +26 -14
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/embed-utils.js → src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.ts.mustache} +2 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +26 -76
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/mock.ts.mustache +8 -1
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/picklist-utils.js → src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.ts.mustache} +1 -0
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-constants.js → src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.ts.mustache} +1 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{repeat-utils.js.mustache → repeat-utils.ts.mustache} +6 -12
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.ts.mustache +7 -14
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx → src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.tsx.mustache} +30 -10
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.tsx.mustache +25 -13
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +11 -58
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/{Picklist-Autocomplete/textformat-utils.jsx.mustache → Picklist-RadioButtons/textformat-utils.tsx.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.tsx.mustache +23 -9
- package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +96 -24
- package/src/tasks/create/templates/Constellation/Field/Text/mock.ts.mustache +8 -1
- package/src/tasks/create/templates/Constellation/Field/Text/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.tsx.mustache +24 -11
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +10 -47
- package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.ts.mustache +8 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +3 -9
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.tsx.mustache +24 -11
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +11 -51
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.tsx.mustache +24 -11
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +13 -49
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.tsx.mustache +25 -11
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +14 -53
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.tsx.mustache +24 -11
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +15 -71
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.ts.mustache +9 -1
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/Text-URL/{text-url.jsx.mustache → text-url.tsx.mustache} +4 -3
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.tsx.mustache +28 -22
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.tsx.mustache +17 -53
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.ts.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Field/{DateTime/date-utils.js.mustache → TimeofDay/time-of-day.ts.mustache} +24 -23
- package/src/tasks/create/templates/Constellation/Template/DETAILS/Avatar.tsx.mustache +78 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/DetailsRender.tsx.mustache +55 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/HighlightRender.tsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/Operator.tsx.mustache +218 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.tsx.mustache +17 -19
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +93 -28
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +53 -55
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.ts.mustache +78 -20
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.ts.mustache +21 -12
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/Avatar.tsx.mustache +78 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/DetailsRender.tsx.mustache +55 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/HighlightRender.tsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/Operator.tsx.mustache +218 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.tsx.mustache +17 -19
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +108 -30
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +44 -55
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.ts.mustache +68 -10
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.ts.mustache +20 -12
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js → src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.ts.mustache} +15 -13
- package/src/tasks/create/templates/Constellation/Template/FORM/DetailsRender.tsx +59 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.tsx.mustache +18 -8
- package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +34 -16
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Template/FORM-region/DetailsRender.tsx +59 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache +17 -7
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +32 -16
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.tsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +14 -8
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +5 -16
- package/src/tasks/create/templates/Constellation/Template/PAGE/localizations.json.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.ts.mustache +7 -14
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js → src/tasks/create/templates/Constellation/Template/PAGE/utils.ts.mustache} +28 -14
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +13 -7
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +3 -10
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +102 -16
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +69 -21
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +3 -13
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.tsx.mustache +4 -19
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +15 -9
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.tsx.mustache +24 -39
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +32 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +103 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/index.tsx.mustache +216 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/mock.ts.mustache +5 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/styles.ts.mustache +8 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +11 -6
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.tsx.mustache +3 -9
- package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.ts.mustache +7 -14
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +59 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +120 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/index.tsx.mustache +109 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/mock.ts.mustache +25 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/styles.ts.mustache +8 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +1 -11
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.tsx.mustache +33 -51
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +11 -6
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.tsx.mustache +22 -21
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.ts.mustache +7 -14
- package/src/tasks/create-all/index.js +3 -0
- package/src/tasks/delete-all/helper.js +37 -5
- package/src/tasks/index.js +1 -0
- package/src/tasks/init/template/.eslintignore +6 -0
- package/src/tasks/init/template/.storybook/preview.js +3 -0
- package/src/tasks/init/template/README.md +4 -4
- package/src/tasks/init/template/SECURITY.md +10 -0
- package/src/tasks/init/template/package.json.mustache +17 -18
- package/src/tasks/init/template/tasks.config.json +2 -1
- package/src/tasks/init/template/tsconfig.build.json +3 -1
- package/src/tasks/linter/index.js +7 -4
- package/src/tasks/list/helper.js +10 -0
- package/src/tasks/list/index.js +20 -3
- package/src/tasks/promote-webpack/index.js +6 -32
- package/src/tasks/publish/helper.js +7 -1
- package/src/tasks/publish/index.js +6 -4
- package/src/tasks/publish-all/helper.js +58 -40
- package/src/tasks/publish-all/index.js +16 -17
- package/src/tasks/revert-webpack/index.js +4 -23
- package/src/tasks/validator/index.js +7 -1
- package/src/util.js +189 -66
- package/tests/assets/components/create/Pega_DXIL_MyDetails.zip +0 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.tsx +23 -9
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.tsx +96 -24
- package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.ts +8 -1
- package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.ts +7 -14
- package/tests/assets/components/create/_components.md +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/Boolean.ts +35 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx +26 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +17 -51
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.ts +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +13 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +3 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +28 -15
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +24 -76
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.ts +11 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.ts +7 -14
- package/{src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.ts} +6 -6
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.tsx +20 -0
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDate/date.js → Constellation/Pega_DXIL_MyDate/date.ts} +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +31 -24
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +19 -60
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.ts +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.ts +7 -14
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyDateTime/date-time.js → Constellation/Pega_DXIL_MyDateTime/date-time.ts} +12 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.ts +288 -0
- package/{src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.ts} +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +32 -25
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +13 -60
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.ts +3 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +25 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +15 -68
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/Avatar.tsx +78 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/Operator.tsx +215 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +91 -26
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +50 -52
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.ts +78 -20
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.ts +21 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails.zip +0 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +10 -47
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.ts +8 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +18 -8
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +31 -16
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +64 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +104 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +215 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/mock.ts +5 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/styles.ts +8 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +25 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +24 -88
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts +8 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +14 -8
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +5 -16
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/localizations.json +4 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{utils.js → utils.ts} +28 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +3 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.tsx +4 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +15 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +24 -39
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +102 -16
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +69 -21
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +13 -49
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +25 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +14 -55
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.ts +9 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +25 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +14 -53
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.tsx +25 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +13 -61
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.tsx +25 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +11 -58
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/{Pega_DXIL_MySearchbox/textformat-utils.jsx → Pega_DXIL_MyRadioButtons/textformat-utils.tsx} +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/{date.js → date.ts} +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.stories.tsx +26 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/{embed-utils.js → embed-utils.ts} +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +26 -76
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/mock.ts +8 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MySearchbox/picklist-utils.js → Constellation/Pega_DXIL_MySearchbox/picklist-utils.ts} +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/{repeat-constants.js → repeat-constants.ts} +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MySearchbox/repeat-utils.js → Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts} +6 -12
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/textformat-utils.tsx +181 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +4 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.tsx +23 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +96 -24
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.ts +8 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx +3 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +11 -51
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +28 -22
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +17 -53
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.ts +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{time-of-day.js → time-of-day.ts} +24 -23
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +78 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +108 -30
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +41 -52
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.ts +68 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.ts +20 -12
- package/{src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.ts} +15 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +17 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +26 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +15 -71
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.ts +9 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.ts +7 -14
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/{text-url.jsx → text-url.tsx} +4 -3
- package/tests/assets/components/createAll/Constellation/_components.md +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.ts +35 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx +26 -19
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +17 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.ts +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +11 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +3 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +28 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +24 -76
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts +11 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.ts +7 -14
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDate/DateFormatter.js → Launchpad/Pega_DXIL_MyDate/DateFormatter.ts} +6 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.tsx +20 -0
- package/{src/tasks/create/templates/Constellation/Field/Date/date.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts} +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +31 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +19 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.ts +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.ts +7 -14
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDateTime/date-time.js → Launchpad/Pega_DXIL_MyDateTime/date-time.ts} +12 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.ts +288 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/{date.js → date.ts} +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +32 -25
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +13 -60
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.ts +3 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +25 -13
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +15 -68
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/Avatar.tsx +78 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/Operator.tsx +215 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +91 -26
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +50 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.ts +78 -20
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.ts +21 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails.zip +0 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +10 -47
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.ts +8 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +18 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +31 -16
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/PConnProps.d.ts +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +32 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +103 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/index.tsx +213 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/mock.ts +5 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/styles.ts +8 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +25 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +24 -88
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.ts +8 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +14 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +5 -16
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +4 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.ts +7 -14
- package/{src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.ts} +28 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +1 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.tsx +33 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +11 -6
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +22 -20
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +101 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +69 -21
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +13 -49
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +25 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +14 -55
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.ts +9 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +25 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +14 -53
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.tsx +25 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +13 -61
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.tsx +25 -13
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +11 -58
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.ts +7 -14
- package/{src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.tsx} +1 -0
- package/{src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/date.ts} +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.stories.tsx +26 -14
- package/{src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/embed-utils.ts} +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +26 -76
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/mock.ts +8 -1
- package/{src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/picklist-utils.ts} +1 -0
- package/{src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-constants.ts} +1 -1
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MySearchbox/repeat-utils.js → Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts} +6 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/textformat-utils.tsx +181 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/utils.ts +4 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.tsx +23 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +96 -24
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.ts +8 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +3 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +11 -51
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +28 -22
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +17 -53
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.ts +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.ts +7 -14
- package/{src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.ts} +24 -23
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +78 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +17 -19
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +108 -30
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +41 -52
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.ts +68 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.ts +20 -12
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js → Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.ts} +15 -13
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +17 -7
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +26 -13
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +24 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +15 -71
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.ts +9 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.ts +7 -14
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/{text-url.jsx → text-url.tsx} +4 -3
- package/tests/assets/components/createAll/Launchpad/_components.md +1 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +10 -3
- package/src/tasks/create/templates/Constellation/Field/Boolean/Boolean.js.mustache +0 -38
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +0 -41
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/Boolean.js +0 -38
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +0 -41
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.js +0 -38
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +0 -41
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +0 -287
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +0 -161
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/textformat-utils.jsx +0 -161
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -287
- /package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{component-constants.js → component-constants.ts} +0 -0
- /package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{format-constants.js.mustache → format-constants.ts.mustache} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/{component-constants.js → component-constants.ts} +0 -0
- /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/{format-constants.js → format-constants.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/{component-constants.js → component-constants.ts} +0 -0
- /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/{format-constants.js → format-constants.ts} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"startStorybook": "storybook dev --port 6040 --quiet",
|
|
10
|
-
"lint": "
|
|
10
|
+
"lint": "eslint .",
|
|
11
11
|
"authenticate": "custom-dx-components authenticate",
|
|
12
12
|
"buildComponent": "custom-dx-components buildComponent",
|
|
13
13
|
"buildAllComponents": "custom-dx-components buildAllComponents",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"deleteAll": "custom-dx-components deleteAll",
|
|
24
24
|
"promoteWebPack": "custom-dx-components promoteWebPack",
|
|
25
25
|
"revertWebPack": "custom-dx-components revertWebPack",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
26
|
+
"_internal-test-coverage": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand node_modules/@pega/custom-dx-component --ci --testResultsProcessor='jest-junit' --coverage",
|
|
27
|
+
"_internal-test": "echo 'Running functional and unit tests will DELETE existing local components, proceed (y/n)?' && read proceed && if test \"$proceed\" = \"y\"; then npm run _internal-test-full; fi ",
|
|
28
|
+
"_internal-test-full": "npm run _internal-test-functional && npm run _internal-test-unit",
|
|
29
|
+
"_internal-test-functional": "npm run test:functional:local --prefix node_modules/@pega/custom-dx-components",
|
|
30
|
+
"_internal-test-unit": "npm run test:unit:local --prefix node_modules/@pega/custom-dx-components",
|
|
31
|
+
"_internal-build-jest-assets": "custom-dx-components buildJestAssets",
|
|
32
|
+
"_lint:styles": "stylelint \"./**/*.@(js|jsx|ts|tsx)\"",
|
|
33
|
+
"_lint:format": "prettier -c .",
|
|
34
|
+
"_lint:spelling": "cspell --no-progress **/*",
|
|
35
|
+
"_lint:types": "tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"scriptsComments": {
|
|
38
38
|
"build": "tsc -b tsconfig.build.json",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"license": "Enter License",
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@pega/cosmos-react-condition-builder": "^
|
|
55
|
-
"@pega/cosmos-react-core": "^
|
|
56
|
-
"@pega/cosmos-react-work": "^
|
|
54
|
+
"@pega/cosmos-react-condition-builder": "^6.0.3",
|
|
55
|
+
"@pega/cosmos-react-core": "^6.0.3",
|
|
56
|
+
"@pega/cosmos-react-work": "^6.0.3",
|
|
57
57
|
"dayjs": "^1.11.10",
|
|
58
58
|
"lodash.get": "^4.4.2",
|
|
59
59
|
"polished": "^4.2.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react": "^17.0.2",
|
|
62
62
|
"react-autosuggest": "^10.1.0",
|
|
63
63
|
"react-dom": "^17.0.2",
|
|
64
|
-
"react-is": "^
|
|
64
|
+
"react-is": "^17.0.2",
|
|
65
65
|
"react-player": "^2.10.1",
|
|
66
66
|
"react-redux": "^7.2.6",
|
|
67
67
|
"styled-components": "^5.3.5",
|
|
@@ -69,11 +69,10 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@pega/configs": "^0.6.0",
|
|
72
|
-
"@pega/custom-dx-components": "
|
|
73
|
-
"@pega/pcore-pconnect-typedefs": "
|
|
72
|
+
"@pega/custom-dx-components": "24.1.10",
|
|
73
|
+
"@pega/pcore-pconnect-typedefs": "~3.0.0",
|
|
74
74
|
"@storybook/addon-actions": "^7.6.7",
|
|
75
75
|
"@storybook/addon-essentials": "^7.6.7",
|
|
76
|
-
"@storybook/addon-knobs": "^7.0.2",
|
|
77
76
|
"@storybook/addon-links": "^7.6.7",
|
|
78
77
|
"@storybook/addon-storysource": "^7.6.7",
|
|
79
78
|
"@storybook/react": "^7.6.7",
|
|
@@ -15,12 +15,15 @@ export const lintComponent = async (dirToLint) => {
|
|
|
15
15
|
const formatter = await eslint.loadFormatter("stylish");
|
|
16
16
|
const resultText = formatter.format(results);
|
|
17
17
|
|
|
18
|
-
// 4. Output it.
|
|
19
|
-
// console.log(`lint resultText: ${resultText}`);
|
|
20
|
-
console.log(resultText);
|
|
21
|
-
|
|
22
18
|
// Indicate linting is complete
|
|
23
19
|
console.log(chalk.green(` linting complete...`));
|
|
20
|
+
|
|
21
|
+
if (resultText.length > 0 && resultText.indexOf("error") >= 0) {
|
|
22
|
+
throw new Error( "Lint:\n" + resultText );
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
console.log(resultText);
|
|
26
|
+
}
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
// inpsired by https://eslint.org/docs/latest/developer-guide/nodejs-api
|
package/src/tasks/list/helper.js
CHANGED
|
@@ -102,6 +102,15 @@ async function fetchComponentsFromInfinity(apiUrl, headers) {
|
|
|
102
102
|
})
|
|
103
103
|
.then((response) => {
|
|
104
104
|
status = response.status;
|
|
105
|
+
if (status === 404){
|
|
106
|
+
throw new Error('404: Server resource not found');
|
|
107
|
+
}
|
|
108
|
+
else if (status === 405){
|
|
109
|
+
throw new Error('405: Server method not allowed');
|
|
110
|
+
}
|
|
111
|
+
else if (status === 408){
|
|
112
|
+
throw new Error('408: Server timed out');
|
|
113
|
+
}
|
|
105
114
|
return response.json();
|
|
106
115
|
})
|
|
107
116
|
.then((resp) => {
|
|
@@ -122,6 +131,7 @@ async function fetchComponentsFromInfinity(apiUrl, headers) {
|
|
|
122
131
|
}
|
|
123
132
|
|
|
124
133
|
async function fetchComponentsFromLaunchpad(apiUrl, headers) {
|
|
134
|
+
|
|
125
135
|
const serverConfig = await getPegaServerConfig();
|
|
126
136
|
// constructing urls for all type of components
|
|
127
137
|
const urls = COMPONENT_SCHEMA.type.map((type) => apiUrl.replace('{type}', type.value));
|
package/src/tasks/list/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import inquirer from 'inquirer';
|
|
2
2
|
import ora from 'ora';
|
|
3
|
+
import chalk from 'chalk';
|
|
3
4
|
|
|
4
5
|
import { showVersion, getPegaServerConfig } from '../../util.js';
|
|
5
6
|
|
|
@@ -35,9 +36,25 @@ const getList = async (sourceOfComponents, answers) => {
|
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
const spinner = ora('Fetching components from server\n').start();
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const data = await getComponentsFromServer(library, organization);
|
|
42
|
+
spinner.stop();
|
|
43
|
+
await displayServerComponents(data, answers);
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
|
|
47
|
+
if (error.indexOf("ECONNREFUSED") >= 0) {
|
|
48
|
+
console.log(`\n${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
console.log(`${chalk.bold.red(error)}`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// spinner.stop();
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
57
|
+
|
|
41
58
|
|
|
42
59
|
break;
|
|
43
60
|
}
|
|
@@ -9,7 +9,8 @@ import inquirer from 'inquirer';
|
|
|
9
9
|
import {
|
|
10
10
|
convertIntoPascalCase,
|
|
11
11
|
checkPathAccess,
|
|
12
|
-
showVersion
|
|
12
|
+
showVersion,
|
|
13
|
+
updateUseWebPackPromotion
|
|
13
14
|
} from '../../util.js';
|
|
14
15
|
|
|
15
16
|
import {
|
|
@@ -22,8 +23,6 @@ import {
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
25
|
-
let redirectFile = "";
|
|
26
|
-
|
|
27
26
|
export const copyWebPack = async () => {
|
|
28
27
|
|
|
29
28
|
// first check to see if already have the file
|
|
@@ -79,48 +78,23 @@ export const copyWebPack = async () => {
|
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
console.log(chalk.bold.green(`Bundler now using ${newWebPackConfigDir}.`));
|
|
82
|
+
console.log(chalk.bold.green(`Utilize this file for webpack modifications.`));
|
|
85
83
|
|
|
86
84
|
}
|
|
87
85
|
|
|
88
|
-
redirectFile = newWebPackConfigDir;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export const updateBuilder = async () => {
|
|
95
|
-
|
|
96
|
-
const builderIndexDir = fileURLToPath(new URL(BUILDER_INDEX_FILE_PATH, import.meta.url));
|
|
97
|
-
|
|
98
|
-
let indexFileJS = fs.readFileSync(builderIndexDir, { encoding: 'utf8' });
|
|
99
86
|
|
|
100
|
-
if (indexFileJS.length > 0) {
|
|
101
|
-
// comment out original webpack reference
|
|
102
|
-
|
|
103
|
-
// if not commented out, comment out
|
|
104
|
-
if (indexFileJS.indexOf("// import configFactory from './webpack.config.js';") < 0) {
|
|
105
|
-
indexFileJS = indexFileJS.replaceAll("import configFactory from './webpack.config.js';", "// import configFactory from './webpack.config.js';");
|
|
106
|
-
}
|
|
107
87
|
|
|
108
|
-
// uncomment out promoted webpack reference
|
|
109
|
-
indexFileJS = indexFileJS.replaceAll("// import configFactory from '../../../../../../../webpack.config.js';", "import configFactory from '../../../../../../../webpack.config.js';");
|
|
110
88
|
|
|
111
|
-
fs.writeFileSync(builderIndexDir, indexFileJS, { encoding: 'utf8' });
|
|
112
89
|
|
|
113
|
-
|
|
114
|
-
console.log(chalk.bold.green(`Utilize this file for webpack modifications.`));
|
|
115
|
-
}
|
|
90
|
+
}
|
|
116
91
|
|
|
117
92
|
|
|
118
|
-
}
|
|
119
93
|
|
|
120
94
|
export default async options => {
|
|
121
95
|
showVersion();
|
|
122
96
|
|
|
123
97
|
await copyWebPack();
|
|
124
|
-
await
|
|
98
|
+
await updateUseWebPackPromotion(true);
|
|
125
99
|
|
|
126
100
|
};
|
|
@@ -84,17 +84,23 @@ export const zipComponent = async componentKey => {
|
|
|
84
84
|
const srcDirectory = await getComponentDirectoryPath(componentKey);
|
|
85
85
|
const buildDirectory = await path.join(path.resolve(), 'dist/components', componentKey);
|
|
86
86
|
const configJson = `${srcDirectory}/config.json`;
|
|
87
|
+
const localizationJson = `${srcDirectory}/localizations.json`;
|
|
87
88
|
|
|
88
89
|
const zip = new AdmZip();
|
|
89
90
|
|
|
90
91
|
zip.addLocalFolder(srcDirectory, 'src/');
|
|
91
92
|
zip.addLocalFile(configJson);
|
|
93
|
+
|
|
94
|
+
if (fs.existsSync(localizationJson)) {
|
|
95
|
+
zip.addLocalFile(localizationJson);
|
|
96
|
+
}
|
|
97
|
+
|
|
92
98
|
zip.addLocalFolder(buildDirectory);
|
|
93
99
|
const zipContent = zip.toBuffer().toString('base64');
|
|
94
100
|
|
|
95
101
|
const configContent = Buffer.from(fs.readFileSync(`${srcDirectory}/config.json`)).toString();
|
|
96
102
|
|
|
97
|
-
fs.
|
|
103
|
+
fs.rm('dist', { recursive: true }, err => {
|
|
98
104
|
if (err) {
|
|
99
105
|
throw err;
|
|
100
106
|
}
|
|
@@ -9,7 +9,7 @@ import { getComponentDirectoryPath, showVersion } from '../../util.js';
|
|
|
9
9
|
|
|
10
10
|
import { getPublishComponentQuestions, publishComponentToServer, zipComponent } from './helper.js';
|
|
11
11
|
|
|
12
|
-
export default async
|
|
12
|
+
export default async options => {
|
|
13
13
|
showVersion();
|
|
14
14
|
|
|
15
15
|
let componentKey;
|
|
@@ -19,13 +19,15 @@ export default async (options) => {
|
|
|
19
19
|
|
|
20
20
|
let doFetch = true;
|
|
21
21
|
|
|
22
|
-
if (options.params.length >=
|
|
22
|
+
if (options.params.length >= 7) {
|
|
23
23
|
componentKey = options.params[3];
|
|
24
24
|
const rulesetName = options.params[4];
|
|
25
25
|
const rulesetVersion = options.params[5];
|
|
26
26
|
const dBuild = options.params[6];
|
|
27
27
|
devBuild = dBuild === 'Y' || dBuild === 'y' || dBuild === true || dBuild === 'true';
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line no-unneeded-ternary,no-nested-ternary
|
|
30
|
+
doFetch = options.params.length >= 7 ? (options.params[7] === 'noFetch' ? false : true) : true;
|
|
29
31
|
|
|
30
32
|
content = { componentKey, rulesetName, rulesetVersion, devBuild };
|
|
31
33
|
} else {
|
|
@@ -79,7 +81,7 @@ export default async (options) => {
|
|
|
79
81
|
}
|
|
80
82
|
);
|
|
81
83
|
|
|
82
|
-
await tasks.run().catch(
|
|
84
|
+
await tasks.run().catch(err => {
|
|
83
85
|
console.log(chalk.bold.red(err.toString()));
|
|
84
86
|
});
|
|
85
87
|
return true;
|
|
@@ -70,11 +70,17 @@ export const zipComponent = async componentKey => {
|
|
|
70
70
|
const srcDirectory = await getComponentDirectoryPath(componentKey);
|
|
71
71
|
const buildDirectory = await path.join(path.resolve(), 'dist/components', componentKey);
|
|
72
72
|
const configJson = `${srcDirectory}/config.json`;
|
|
73
|
+
const localizationJson = `${srcDirectory}/localizations.json`;
|
|
73
74
|
|
|
74
75
|
const zip = new AdmZip();
|
|
75
76
|
|
|
76
77
|
zip.addLocalFolder(srcDirectory, 'src/');
|
|
77
78
|
zip.addLocalFile(configJson);
|
|
79
|
+
|
|
80
|
+
if (fs.existsSync(localizationJson)) {
|
|
81
|
+
zip.addLocalFile(localizationJson);
|
|
82
|
+
}
|
|
83
|
+
|
|
78
84
|
zip.addLocalFolder(buildDirectory);
|
|
79
85
|
const zipContent = zip.toBuffer().toString('base64');
|
|
80
86
|
|
|
@@ -159,55 +165,67 @@ export const publishComponentToServer = async (data, doFetch) => {
|
|
|
159
165
|
headers.Authorization = `${tokenType} ${accessToken}`;
|
|
160
166
|
}
|
|
161
167
|
|
|
162
|
-
|
|
168
|
+
|
|
169
|
+
const response = await fetch(url, {
|
|
163
170
|
method: 'POST',
|
|
164
171
|
agent: getHttpsAgent(defaultPegaConfig),
|
|
165
|
-
headers,
|
|
172
|
+
headers: headers,
|
|
166
173
|
body: JSON.stringify(apiBody)
|
|
167
|
-
})
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
status = response.status;
|
|
177
|
+
if (!response.ok) {
|
|
178
|
+
if (status === 401) {
|
|
179
|
+
throw new Error(
|
|
180
|
+
'Error occurred in authentication. Please regenerate using authenticate'
|
|
181
|
+
);
|
|
182
|
+
// console.log(accessTokenUri, refreshToken);
|
|
183
|
+
/* TODO - Handle refresh_token */
|
|
184
|
+
}
|
|
185
|
+
else if (status === 404){
|
|
186
|
+
throw new Error('404: Server resource not found');
|
|
187
|
+
}
|
|
188
|
+
else if (status === 405){
|
|
189
|
+
throw new Error('405: Server method not allowed');
|
|
190
|
+
}
|
|
191
|
+
else if (status === 408){
|
|
192
|
+
throw new Error('408: Server timed out');
|
|
193
|
+
}
|
|
194
|
+
else if (response.status === 403) {
|
|
195
|
+
throw new Error(
|
|
196
|
+
'Error forbidden: User does not have privileges to Publish.'
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
try {
|
|
202
|
+
const respData = isLaunchpad ? await response.text() : await response.json();
|
|
203
|
+
console.log(
|
|
182
204
|
chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`)
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
if (status === 500) {
|
|
208
|
+
status = 999;
|
|
209
|
+
throw new Error(respData.message);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
catch (err) {
|
|
213
|
+
if (status === 500) {
|
|
214
|
+
throw new Error(
|
|
215
|
+
`Error occurred in authentication. Please regenerate using authenticate`
|
|
183
216
|
);
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// eslint-disable-next-line prefer-promise-reject-errors
|
|
191
|
-
Promise.reject(
|
|
192
|
-
`${chalk.bold.red(
|
|
193
|
-
'Error occurred in authentication. Please regenerate using authenticate'
|
|
194
|
-
)}`
|
|
195
|
-
);
|
|
196
|
-
} else if (status === 403) {
|
|
197
|
-
// eslint-disable-next-line prefer-promise-reject-errors
|
|
198
|
-
Promise.reject(
|
|
199
|
-
`${chalk.bold.red('Error forbidden: User does not have privileges to Publish.')}`
|
|
200
|
-
);
|
|
201
|
-
} else {
|
|
202
|
-
// eslint-disable-next-line prefer-promise-reject-errors
|
|
203
|
-
Promise.reject(`${chalk.bold.red(e)}`);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
217
|
+
}
|
|
218
|
+
else if (status === 999) {
|
|
219
|
+
throw new Error (err);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
206
223
|
} else {
|
|
207
224
|
throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
208
225
|
}
|
|
209
226
|
} catch (err) {
|
|
210
|
-
throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
227
|
+
// throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
228
|
+
throw new Error(err);
|
|
211
229
|
}
|
|
212
230
|
}
|
|
213
231
|
};
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
|
|
17
17
|
export function getCustomTasks(componentKey, sourceMap, devBuild, content, options) {
|
|
18
18
|
const sDevBuild = devBuild ? '(dev build)' : '';
|
|
19
|
-
// eslint-disable
|
|
20
|
-
const doFetch = options.params.length >= 7 ? false : true;
|
|
19
|
+
// eslint-disable no-unneeded-ternary,no-nested-ternary
|
|
20
|
+
const doFetch = options.params.length >= 7 ? (options.params[6] === 'noFetch' ? false : true) : true;
|
|
21
21
|
return new Listr(
|
|
22
22
|
[
|
|
23
23
|
{
|
|
@@ -26,13 +26,6 @@ export function getCustomTasks(componentKey, sourceMap, devBuild, content, optio
|
|
|
26
26
|
await validate(componentKey);
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
{
|
|
30
|
-
title: `Bundle Component ${sDevBuild}`,
|
|
31
|
-
task: async () => {
|
|
32
|
-
await bundleComponent(componentKey, sourceMap, devBuild);
|
|
33
|
-
},
|
|
34
|
-
skip: () => (options.skipBundle ? 'Skipped bundling component' : undefined)
|
|
35
|
-
},
|
|
36
29
|
{
|
|
37
30
|
title: 'Lint component',
|
|
38
31
|
task: async () => {
|
|
@@ -41,6 +34,13 @@ export function getCustomTasks(componentKey, sourceMap, devBuild, content, optio
|
|
|
41
34
|
await lintComponent(targetDirectory);
|
|
42
35
|
}
|
|
43
36
|
},
|
|
37
|
+
{
|
|
38
|
+
title: `Bundle Component ${sDevBuild}`,
|
|
39
|
+
task: async () => {
|
|
40
|
+
await bundleComponent(componentKey, sourceMap, devBuild);
|
|
41
|
+
},
|
|
42
|
+
skip: () => (options.skipBundle ? 'Skipped bundling component' : undefined)
|
|
43
|
+
},
|
|
44
44
|
{
|
|
45
45
|
title: 'Zip Component',
|
|
46
46
|
task: async () => {
|
|
@@ -55,9 +55,7 @@ export function getCustomTasks(componentKey, sourceMap, devBuild, content, optio
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
],
|
|
58
|
-
{
|
|
59
|
-
exitOnError: true
|
|
60
|
-
}
|
|
58
|
+
{ concurrent: false, exitOnError: true }
|
|
61
59
|
);
|
|
62
60
|
}
|
|
63
61
|
|
|
@@ -76,7 +74,7 @@ export default async options => {
|
|
|
76
74
|
let devBuild;
|
|
77
75
|
let content;
|
|
78
76
|
|
|
79
|
-
if (options.params.length >=
|
|
77
|
+
if (options.params.length >= 6) {
|
|
80
78
|
const rulesetName = options.params[3];
|
|
81
79
|
const rulesetVersion = options.params[4];
|
|
82
80
|
const dBuild = options.params[5];
|
|
@@ -94,16 +92,17 @@ export default async options => {
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
// eslint-disable-next-line no-shadow
|
|
97
|
-
for (const componentKey of components) {
|
|
95
|
+
for await (const componentKey of components) {
|
|
98
96
|
console.log(chalk.bold.green(`Publishing: ${componentKey}`));
|
|
99
97
|
|
|
100
98
|
const myCustomTasks = getCustomTasks(componentKey, sourceMap, devBuild, content, options);
|
|
101
99
|
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
try {
|
|
101
|
+
await myCustomTasks.run();
|
|
102
|
+
} catch (err) {
|
|
104
103
|
console.log(chalk.bold.red(err.toString()));
|
|
105
104
|
process.exit(1);
|
|
106
|
-
}
|
|
105
|
+
}
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
// once done, remove leftover directories
|
|
@@ -8,7 +8,8 @@ import { up } from 'inquirer/lib/utils/readline.js';
|
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
convertIntoPascalCase,
|
|
11
|
-
showVersion
|
|
11
|
+
showVersion,
|
|
12
|
+
updateUseWebPackPromotion
|
|
12
13
|
} from '../../util.js';
|
|
13
14
|
import {
|
|
14
15
|
WEBPACK_CONFIG_JS_FILENAME,
|
|
@@ -33,37 +34,17 @@ export const renamePromotedWebPack = async () => {
|
|
|
33
34
|
process.exit();
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
console.log(chalk.bold.green("Bundler reverted to using internal webpack.config.js."));
|
|
36
38
|
console.log(chalk.bold.green(`File ${promoteWebPackDir} marked as not used.`));
|
|
37
39
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
export const revertBuilder = async () => {
|
|
41
42
|
|
|
42
|
-
const builderIndexDir = fileURLToPath(new URL(BUILDER_INDEX_FILE_PATH, import.meta.url));
|
|
43
|
-
|
|
44
|
-
let indexFileJS = fs.readFileSync(builderIndexDir, { encoding: 'utf8' });
|
|
45
|
-
|
|
46
|
-
if (indexFileJS.length > 0) {
|
|
47
|
-
// uncomment out original webpack reference
|
|
48
|
-
indexFileJS = indexFileJS.replaceAll("// import configFactory from './webpack.config.js';", "import configFactory from './webpack.config.js';");
|
|
49
|
-
|
|
50
|
-
// comment out promoted webpack reference
|
|
51
|
-
if (indexFileJS.indexOf("// import configFactory from '../../../../../../../webpack.config.js';") < 0) {
|
|
52
|
-
indexFileJS = indexFileJS.replaceAll("import configFactory from '../../../../../../../webpack.config.js';", "// import configFactory from '../../../../../../../webpack.config.js';");
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
fs.writeFileSync(builderIndexDir, indexFileJS, { encoding: 'utf8' });
|
|
56
|
-
|
|
57
|
-
console.log(chalk.bold.green(`Bundler reverted to using internal webpack.config.js.`));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
43
|
|
|
63
44
|
export default async options => {
|
|
64
45
|
showVersion();
|
|
65
46
|
|
|
66
47
|
await renamePromotedWebPack();
|
|
67
|
-
await
|
|
48
|
+
await updateUseWebPackPromotion(false);
|
|
68
49
|
|
|
69
50
|
};
|
|
@@ -350,7 +350,13 @@ export default async (option) => {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
//const data = JSON.parse(fs.readFileSync(path.resolve(configFile), 'utf8'));
|
|
353
|
-
|
|
353
|
+
let data;
|
|
354
|
+
try {
|
|
355
|
+
data = JSON.parse(configData);
|
|
356
|
+
}
|
|
357
|
+
catch (er) {
|
|
358
|
+
throw new Error(`Invalid schema json in config.json: ${er}`);
|
|
359
|
+
}
|
|
354
360
|
|
|
355
361
|
const valid = validateSchema(data);
|
|
356
362
|
|