@pega/dx-component-builder-sdk 0.1.47 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/auth.js +726 -508
- package/src/cli.js +1 -1
- package/src/constants.js +728 -2
- package/src/tasks/authenticate/index.js +12 -2
- package/src/tasks/build/helper.js +10 -6
- package/src/tasks/build/index.js +76 -22
- package/src/tasks/build-all/helper.js +16 -11
- package/src/tasks/build-all/index.js +106 -42
- package/src/tasks/bundle/{builder → builderAngular}/paths.js +3 -2
- package/src/tasks/bundle/builderAngular/webpack.config.js +342 -0
- package/src/tasks/bundle/builderAssociated/index.js +218 -0
- package/src/tasks/bundle/builderAssociated/modules.js +139 -0
- package/src/tasks/bundle/builderAssociated/paths.js +51 -0
- package/src/tasks/bundle/{builder → builderAssociated}/webpack.config.js +5 -4
- package/src/tasks/bundle/builderReact/index.js +218 -0
- package/src/tasks/bundle/builderReact/modules.js +139 -0
- package/src/tasks/bundle/builderReact/paths.js +51 -0
- package/src/tasks/bundle/builderReact/webpack.config.js +337 -0
- package/src/tasks/bundle/index.js +122 -5
- package/src/tasks/create/index.js +54 -12
- package/src/tasks/create/templates/Constellation/field/Boolean/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Date/DateFormatter.js.mustache +7 -7
- package/src/tasks/create/templates/Constellation/field/Date/date.js.mustache +8 -8
- package/src/tasks/create/templates/Constellation/field/Date/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/DateTime/date-time.js.mustache +10 -10
- package/src/tasks/create/templates/Constellation/field/DateTime/date-utils.js.mustache +6 -5
- package/src/tasks/create/templates/Constellation/field/DateTime/date.js.mustache +6 -3
- package/src/tasks/create/templates/Constellation/field/DateTime/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Decimal/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/field/Decimal/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/field/Decimal-Currency/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.jsx.mustache +4 -4
- package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Integer/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/field/Integer/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Picklist/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Text/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Text-Email/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Text-Input/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Text-Paragraph/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Text-Phone/index.jsx.mustache +0 -1
- package/src/tasks/create/templates/Constellation/field/Text-Phone/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/Text-URL/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/field/TimeOfDay/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/time-of-day.js.mustache +6 -5
- package/src/tasks/create/templates/Constellation/template/DETAILS/demo.stories.jsx.mustache +20 -6
- package/src/tasks/create/templates/Constellation/template/DETAILS/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/template/DETAILS/mock.stories.js.mustache +20 -10
- package/src/tasks/create/templates/Constellation/template/DETAILS/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/demo.stories.jsx.mustache +20 -7
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/mock.stories.js.mustache +28 -13
- package/src/tasks/create/templates/Constellation/template/DETAILS-region/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/template/FORM/demo.stories.jsx.mustache +92 -16
- package/src/tasks/create/templates/Constellation/template/FORM/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/template/FORM/mock.stories.js.mustache +24 -12
- package/src/tasks/create/templates/Constellation/template/FORM/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/template/FORM-region/demo.stories.jsx.mustache +91 -13
- package/src/tasks/create/templates/Constellation/template/FORM-region/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/template/FORM-region/mock.stories.js.mustache +24 -12
- package/src/tasks/create/templates/Constellation/template/FORM-region/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/template/PAGE/demo.stories.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/template/PAGE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/widget/CASE/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/widget/CASE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/widget/PAGE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/Operator.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/styles.js.mustache +13 -6
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.html.mustache +42 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.scss.mustache +24 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +165 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/config.json.mustache +87 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/demo.stories.jsx.mustache +56 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/mock.stories.js.mustache +15 -0
- package/src/tasks/create/templates/SDK-Angular/field/Date/config.json.mustache +147 -0
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.html.mustache +35 -0
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.ts.mustache +209 -0
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/config.json.mustache +204 -0
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.html.mustache +31 -0
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.ts.mustache +177 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/config.json.mustache +94 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.html.mustache +32 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.ts.mustache +170 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/config.json.mustache +125 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.html.mustache +33 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.ts.mustache +175 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/config.json.mustache +94 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.html.mustache +33 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.ts.mustache +176 -0
- package/src/tasks/create/templates/SDK-Angular/field/Integer/config.json.mustache +88 -0
- package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.html.mustache +33 -0
- package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.ts.mustache +180 -0
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/config.json.mustache +86 -0
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.html.mustache +30 -0
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.scss.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.ts.mustache +195 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text/config.json.mustache +83 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.html.mustache +17 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.scss.mustache +30 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.ts.mustache +145 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/config.json.mustache +83 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.html.mustache +31 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.ts.mustache +175 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/config.json.mustache +83 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.html.mustache +31 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.ts.mustache +177 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/config.json.mustache +83 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.html.mustache +31 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.ts.mustache +179 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/config.json.mustache +95 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.html.mustache +30 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.scss.mustache +81 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.ts.mustache +194 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/config.json.mustache +111 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.html.mustache +30 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.spec.ts.mustache +26 -0
- package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.ts.mustache +174 -0
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.html.mustache +30 -0
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.scss.mustache +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.ts.mustache +172 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/DefaultForm.svg +29 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/config.json.mustache +21 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/demo.stories.jsx.mustache +71 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.html.mustache +7 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.scss.mustache +7 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.ts.mustache +121 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/mock.stories.js.mustache +294 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/TwoColumnDetails.svg +28 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/config.json.mustache +27 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/demo.stories.jsx.mustache +73 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.html.mustache +6 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.scss.mustache +7 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.ts.mustache +92 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/mock.stories.js.mustache +290 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/DefaultForm.svg +29 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/config.json.mustache +45 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/demo.stories.jsx.mustache +215 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.html.mustache +23 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.scss.mustache +33 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.ts.mustache +71 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/TwoColumn.svg +38 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/config.json.mustache +49 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/demo.stories.jsx.mustache +183 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.html.mustache +16 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.scss.mustache +28 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.ts.mustache +26 -0
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/mock.stories.js.mustache +132 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/OneColumnPage.svg +28 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/config.json.mustache +32 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/demo.stories.jsx.mustache +80 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/mock.stories.js.mustache +115 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.html.mustache +15 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.scss.mustache +3 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.ts.mustache +63 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.html.mustache +15 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.scss.mustache +22 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.ts.mustache +111 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/config.json.mustache +23 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/demo.stories.jsx.mustache +70 -0
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/mock.stories.js.mustache +390 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/config.json.mustache +59 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/demo.stories.jsx.mustache +29 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.html.mustache +17 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.scss.mustache +19 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.ts.mustache +32 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/pagecomponent.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/config.json.mustache +66 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/demo.stories.jsx.mustache +52 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/mock.stories.js.mustache +52 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.html.mustache +28 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.scss.mustache +137 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.spec.ts.mustache +25 -0
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.ts.mustache +115 -0
- package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +6 -7
- package/src/tasks/create/templates/SDK-React/field/Decimal/demo.stories.jsx.mustache +5 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +78 -28
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Picklist/demo.stories.jsx.mustache +13 -0
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +30 -10
- package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +6 -5
- package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +11 -0
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/config.json.mustache +135 -0
- package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/index.tsx.mustache +12 -1
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +7 -3
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +8 -4
- package/src/tasks/create/templates/SDK-React/template/FORM/index.tsx.mustache +30 -20
- package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.jsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/template/PAGE/demo.stories.jsx.mustache +1 -0
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +4 -3
- package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +7 -7
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.jsx.mustache +2 -10
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +138 -36
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/mock.stories.js.mustache +1 -1
- package/src/tasks/create-all/index.js +112 -56
- package/src/tasks/delete/helper.js +88 -24
- package/src/tasks/delete/index.js +17 -8
- package/src/tasks/delete-all/helper.js +88 -25
- package/src/tasks/delete-all/index.js +15 -6
- package/src/tasks/list/helper.js +2 -3
- package/src/tasks/list/index.js +14 -7
- package/src/tasks/map/map.js +212 -20
- package/src/tasks/map-all/index.js +19 -2
- package/src/tasks/override/index.js +140 -79
- package/src/tasks/override-all/index.js +54 -6
- package/src/tasks/publish/helper.js +94 -51
- package/src/tasks/publish/index.js +87 -34
- package/src/tasks/publish-all/helper.js +97 -58
- package/src/tasks/publish-all/index.js +127 -48
- package/src/tasks/rename/index.js +184 -111
- package/src/tasks/validator/index.js +31 -7
- package/src/util.js +187 -39
- package/src/tasks/create/templates/Constellation/field/TimeofDay/styles.js.mustache +0 -7
- /package/src/tasks/bundle/{builder → builderAngular}/index.js +0 -0
- /package/src/tasks/bundle/{builder → builderAngular}/modules.js +0 -0
- /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/{SDK-React/field/TimeofDay → SDK-Angular/field/TimeOfDay}/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/styles.js.mustache +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { ReferenceComponent } from '@pega/angular-sdk-library';
|
|
5
|
+
import { ComponentMapperComponent } from '@pega/angular-sdk-library';
|
|
6
|
+
import { TemplateUtils } from '@pega/angular-sdk-library';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'app-{{COMPONENT_CLASS_NAME_KEBAB}}',
|
|
10
|
+
templateUrl: './{{COMPONENT_CLASS_NAME_KEBAB}}.component.html',
|
|
11
|
+
styleUrls: ['./{{COMPONENT_CLASS_NAME_KEBAB}}.component.scss'],
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
14
|
+
})
|
|
15
|
+
export class {{COMPONENT_CLASS_NAME}}Component implements OnInit {
|
|
16
|
+
@Input() pConn$: any;
|
|
17
|
+
@Input() formGroup$: FormGroup;
|
|
18
|
+
|
|
19
|
+
configProps$: Object;
|
|
20
|
+
arChildren$: Array<any>;
|
|
21
|
+
divClass$: string;
|
|
22
|
+
template: any;
|
|
23
|
+
showLabel: any;
|
|
24
|
+
label: any;
|
|
25
|
+
instructions: string;
|
|
26
|
+
|
|
27
|
+
NO_HEADER_TEMPLATES = [
|
|
28
|
+
'SubTabs',
|
|
29
|
+
'SimpleTable',
|
|
30
|
+
'Details',
|
|
31
|
+
'DetailsTwoColumn',
|
|
32
|
+
'DetailsThreeColumn',
|
|
33
|
+
'NarrowWideDetails',
|
|
34
|
+
'WideNarrowDetails',
|
|
35
|
+
'Confirmation'
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
constructor(private templateUtils: TemplateUtils) {}
|
|
39
|
+
|
|
40
|
+
ngOnInit(): void {
|
|
41
|
+
let configProps = this.pConn$.getConfigProps();
|
|
42
|
+
this.template = configProps?.template;
|
|
43
|
+
const propToUse = { ...this.pConn$.getInheritedProps() };
|
|
44
|
+
this.showLabel = propToUse?.showLabel;
|
|
45
|
+
this.label = propToUse?.label;
|
|
46
|
+
let kids = this.pConn$.getChildren();
|
|
47
|
+
this.instructions = this.templateUtils.getInstructions(this.pConn$, configProps?.instructions);
|
|
48
|
+
console.log("instructions" + this.instructions);
|
|
49
|
+
|
|
50
|
+
let numCols = configProps.NumCols ? configProps.NumCols : '1';
|
|
51
|
+
switch (numCols) {
|
|
52
|
+
case '1':
|
|
53
|
+
this.divClass$ = 'psdk-default-form-one-column';
|
|
54
|
+
break;
|
|
55
|
+
case '2':
|
|
56
|
+
this.divClass$ = 'psdk-default-form-two-column';
|
|
57
|
+
break;
|
|
58
|
+
case '3':
|
|
59
|
+
this.divClass$ = 'psdk-default-form-three-column';
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
this.divClass$ = 'psdk-default-form-one-column';
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// repoint children before getting templateArray
|
|
67
|
+
// Children may contain 'reference' component, so we need to
|
|
68
|
+
// normalize them
|
|
69
|
+
this.arChildren$ = ReferenceComponent.normalizePConnArray(kids[0].getPConnect().getChildren());
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="100px" height="70px" viewBox="0 0 100 70" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>2-col icon</title>
|
|
4
|
+
<g id="Views" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="Artboard-Copy-2" transform="translate(-198.000000, -207.000000)">
|
|
6
|
+
<g id="2-col--icon" transform="translate(198.000000, 207.000000)">
|
|
7
|
+
<rect id="bg" stroke="#A5A8BC" stroke-width="0.5" fill="#E7E9EB" x="0.25" y="0.25" width="99.5" height="69.5"></rect>
|
|
8
|
+
<g id="white" transform="translate(3.000000, 3.000000)" fill="#FFFFFF">
|
|
9
|
+
<rect id="Rectangle" x="0" y="0" width="94" height="66.5"></rect>
|
|
10
|
+
</g>
|
|
11
|
+
<g id="gray" transform="translate(6.000000, 6.000000)" fill="#8084A7">
|
|
12
|
+
<rect id="Rectangle" x="0" y="0" width="42" height="7.8"></rect>
|
|
13
|
+
<rect id="Rectangle-Copy-18" x="0" y="11.7" width="42" height="7.8"></rect>
|
|
14
|
+
<rect id="Rectangle-Copy-19" x="0" y="23.4" width="42" height="7.8"></rect>
|
|
15
|
+
<rect id="Rectangle-Copy-20" x="0" y="35.1" width="42" height="7.8"></rect>
|
|
16
|
+
<rect id="Rectangle-Copy-21" x="0" y="46.8" width="42" height="7.8"></rect>
|
|
17
|
+
<rect id="Rectangle-Copy-22" x="0" y="58.5" width="42" height="5"></rect>
|
|
18
|
+
<rect id="Rectangle-Copy" x="46" y="2.66453526e-15" width="42" height="7.8"></rect>
|
|
19
|
+
<rect id="Rectangle-Copy-27" x="46" y="11.7" width="42" height="7.8"></rect>
|
|
20
|
+
<rect id="Rectangle-Copy-26" x="46" y="23.4" width="42" height="7.8"></rect>
|
|
21
|
+
<rect id="Rectangle-Copy-25" x="46" y="35.1" width="42" height="7.8"></rect>
|
|
22
|
+
<rect id="Rectangle-Copy-24" x="46" y="46.8" width="42" height="7.8"></rect>
|
|
23
|
+
<rect id="Rectangle-Copy-23" x="46" y="58.5" width="42" height="5"></rect>
|
|
24
|
+
</g>
|
|
25
|
+
<g id="labels" transform="translate(16.000000, 11.000000)">
|
|
26
|
+
<circle id="Oval-Copy-3" fill="#FFFFFF" cx="10.5" cy="10.8076923" r="10.5"></circle>
|
|
27
|
+
<text id="A" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500" fill="#56566F">
|
|
28
|
+
<tspan x="6.75" y="14">A</tspan>
|
|
29
|
+
</text>
|
|
30
|
+
<circle id="Oval-Copy-4" fill="#FFFFFF" cx="56.5" cy="10.8076923" r="10.5"></circle>
|
|
31
|
+
<text id="B" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500" fill="#56566F">
|
|
32
|
+
<tspan x="52.75" y="14">B</tspan>
|
|
33
|
+
</text>
|
|
34
|
+
</g>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
</g>
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{COMPONENT_KEY}}",
|
|
3
|
+
"label": "{{COMPONENT_LABEL}}",
|
|
4
|
+
"description": "{{DESCRIPTION}}",
|
|
5
|
+
"organization": "{{ORGANIZATION}}",
|
|
6
|
+
"version": "{{VERSION}}",
|
|
7
|
+
"library": "{{LIBRARY}}",
|
|
8
|
+
"allowedApplications": {{{ALLOWEDAPPS}}},
|
|
9
|
+
"componentKey": "{{COMPONENT_KEY}}",
|
|
10
|
+
"type": "{{TYPE}}",
|
|
11
|
+
"subtype": {{{SUB_TYPE}}},
|
|
12
|
+
"icon": "TwoColumn.svg",
|
|
13
|
+
"properties": [
|
|
14
|
+
{
|
|
15
|
+
"name": "A",
|
|
16
|
+
"label": "Region A",
|
|
17
|
+
"format": "CONTENTPICKER"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "B",
|
|
21
|
+
"label": "Region B",
|
|
22
|
+
"format": "CONTENTPICKER"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"label": "Conditions",
|
|
26
|
+
"format": "GROUP",
|
|
27
|
+
"properties": [
|
|
28
|
+
{
|
|
29
|
+
"name": "required",
|
|
30
|
+
"label": "Required",
|
|
31
|
+
"format": "REQUIRED",
|
|
32
|
+
"saveToReference": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "disabled",
|
|
36
|
+
"label": "Disabled",
|
|
37
|
+
"format": "DISABLED",
|
|
38
|
+
"saveToReference": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "visibility",
|
|
42
|
+
"label": "Visibility",
|
|
43
|
+
"format": "VISIBILITY",
|
|
44
|
+
"saveToReference": true
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import {{COMPONENT_CLASS_NAME}} from './index.tsx';
|
|
3
|
+
import { pyReviewRaw } from './mock.stories';
|
|
4
|
+
import { TextField } from '@material-ui/core';
|
|
5
|
+
import MuiPhoneNumber from 'material-ui-phone-number';
|
|
6
|
+
import { KeyboardDatePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
|
|
7
|
+
import DayjsUtils from '@date-io/dayjs';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: '{{COMPONENT_CLASS_NAME}}',
|
|
11
|
+
component: {{COMPONENT_CLASS_NAME}}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const renderField = resolvedProps => {
|
|
15
|
+
const { displayMode, value = '', label = '', onChange} = resolvedProps;
|
|
16
|
+
|
|
17
|
+
const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
|
|
18
|
+
let val = '';
|
|
19
|
+
if (label === 'Service Date')
|
|
20
|
+
val = <MuiPickersUtilsProvider utils={DayjsUtils}><KeyboardDatePicker
|
|
21
|
+
variant='inline'
|
|
22
|
+
inputVariant='outlined'
|
|
23
|
+
placeholder='mm/dd/yyyy'
|
|
24
|
+
fullWidth
|
|
25
|
+
format='MM/DD/YYYY'
|
|
26
|
+
mask='__/__/____'
|
|
27
|
+
size='small'
|
|
28
|
+
label={label}
|
|
29
|
+
value={value || null}
|
|
30
|
+
onChange={onChange}
|
|
31
|
+
/>
|
|
32
|
+
</MuiPickersUtilsProvider>
|
|
33
|
+
|
|
34
|
+
{{! pick new delimiters for mustache }}
|
|
35
|
+
{{=<% %>=}}
|
|
36
|
+
|
|
37
|
+
if (label === 'Email')
|
|
38
|
+
val = <TextField type='email' value={value} size='small' variant='outlined' style={{ fontSize: '14px' }} label={label} onChange={onChange}></TextField>;
|
|
39
|
+
|
|
40
|
+
if (label === 'First Name' || label === 'Last Name' || label === 'Middle Name')
|
|
41
|
+
val = <TextField value={value} size='small' variant='outlined' style={{ fontSize: '14px' }} label={label} onChange={onChange}></TextField>;
|
|
42
|
+
|
|
43
|
+
if (label === 'Phone Number')
|
|
44
|
+
val = <MuiPhoneNumber value={value} variant='outlined' size='small' style={{ fontSize: '14px' }} defaultCountry='us' label={label} onChange={onChange}></MuiPhoneNumber>;
|
|
45
|
+
|
|
46
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
47
|
+
|
|
48
|
+
if (variant === 'inline') {
|
|
49
|
+
val = value || <span aria-hidden='true'>––</span>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return val;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
56
|
+
const [firstName, setFirstName] = useState('John');
|
|
57
|
+
const [middleName, setMiddleName] = useState('');
|
|
58
|
+
const [lastName, setLastName] = useState('Joe');
|
|
59
|
+
const [phone, setPhone] = useState('+16397975093');
|
|
60
|
+
const [serviceDate, setServiceDate] = useState('2023-01-25');
|
|
61
|
+
const [email, setEmail] = useState('john@doe.com');
|
|
62
|
+
const regionChildrenResolved = [
|
|
63
|
+
{
|
|
64
|
+
readOnly: undefined,
|
|
65
|
+
value: firstName,
|
|
66
|
+
label: 'First Name',
|
|
67
|
+
hasSuggestions: false,
|
|
68
|
+
onChange: val => {
|
|
69
|
+
setFirstName(val.target.value);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
readOnly: undefined,
|
|
74
|
+
value: middleName,
|
|
75
|
+
label: 'Middle Name',
|
|
76
|
+
hasSuggestions: false,
|
|
77
|
+
onChange: val => {
|
|
78
|
+
setMiddleName(val.target.value);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
readOnly: undefined,
|
|
83
|
+
value: lastName,
|
|
84
|
+
label: 'Last Name',
|
|
85
|
+
hasSuggestions: false,
|
|
86
|
+
onChange: val => {
|
|
87
|
+
setLastName(val.target.value);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
readOnly: undefined,
|
|
92
|
+
value: email,
|
|
93
|
+
label: 'Email',
|
|
94
|
+
hasSuggestions: false,
|
|
95
|
+
onChange: val => {
|
|
96
|
+
setEmail(val.target.value);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
readOnly: undefined,
|
|
101
|
+
value: phone,
|
|
102
|
+
label: 'Phone Number',
|
|
103
|
+
datasource: {
|
|
104
|
+
fields: {
|
|
105
|
+
value: undefined
|
|
106
|
+
},
|
|
107
|
+
source: [
|
|
108
|
+
{
|
|
109
|
+
value: '+1'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
value: '+91'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
value: '+48'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
value: '+44'
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
hasSuggestions: false,
|
|
123
|
+
onChange: val => {
|
|
124
|
+
setPhone(val);
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
readOnly: undefined,
|
|
129
|
+
value: serviceDate,
|
|
130
|
+
label: 'Service Date',
|
|
131
|
+
hasSuggestions: false,
|
|
132
|
+
onChange: date => {
|
|
133
|
+
const changeValue = date && date.isValid() ? date.toISOString() : null;
|
|
134
|
+
setServiceDate(changeValue);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
];
|
|
139
|
+
const props = {
|
|
140
|
+
template: 'DefaultForm',
|
|
141
|
+
getPConnect: () => {
|
|
142
|
+
return {
|
|
143
|
+
getChildren: () => {
|
|
144
|
+
return pyReviewRaw.children;
|
|
145
|
+
},
|
|
146
|
+
createComponent: config => {
|
|
147
|
+
switch (config.config.value) {
|
|
148
|
+
case '@P .FirstName':
|
|
149
|
+
return renderField(regionChildrenResolved[0]);
|
|
150
|
+
case '@P .MiddleName':
|
|
151
|
+
return renderField(regionChildrenResolved[1]);
|
|
152
|
+
case '@P .LastName':
|
|
153
|
+
return renderField(regionChildrenResolved[2]);
|
|
154
|
+
case '@P .Email':
|
|
155
|
+
return renderField(regionChildrenResolved[3]);
|
|
156
|
+
case '@P .PhoneNumber':
|
|
157
|
+
return renderField(regionChildrenResolved[4]);
|
|
158
|
+
case '@P .ServiceDate':
|
|
159
|
+
return renderField(regionChildrenResolved[5]);
|
|
160
|
+
default:
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const regionAChildren = pyReviewRaw.children[0].children.map(child => {
|
|
169
|
+
return props.getPConnect().createComponent(child);
|
|
170
|
+
});
|
|
171
|
+
const regionBChildren = pyReviewRaw.children[1].children.map(child => {
|
|
172
|
+
return props.getPConnect().createComponent(child);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
return (
|
|
176
|
+
<>
|
|
177
|
+
<{{COMPONENT_CLASS_NAME}} {...props}>
|
|
178
|
+
{regionAChildren}
|
|
179
|
+
{regionBChildren}
|
|
180
|
+
</{{COMPONENT_CLASS_NAME}}>
|
|
181
|
+
</>
|
|
182
|
+
);
|
|
183
|
+
};
|
package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.html.mustache
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div class="psdk-two-column">
|
|
2
|
+
<div *ngFor="let kid of arChildren$">
|
|
3
|
+
<div class="psdk-two-column-left" *ngIf="kid.getPConnect().getRawMetadata()['name'].toLowerCase() === 'left'">
|
|
4
|
+
<app-region [formGroup$]="formGroup$" [pConn$]="kid.getPConnect()"></app-region>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="psdk-two-column-right" *ngIf="kid.getPConnect().getRawMetadata()['name'].toLowerCase() === 'right'">
|
|
7
|
+
<app-region [formGroup$]="formGroup$" [pConn$]="kid.getPConnect()"></app-region>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="psdk-two-column-column" *ngIf="kid.getPConnect().getRawMetadata()['name'].toLowerCase() === 'a'">
|
|
10
|
+
<app-region [formGroup$]="formGroup$" [pConn$]="kid.getPConnect()"></app-region>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="psdk-two-column-column" *ngIf="kid.getPConnect().getRawMetadata()['name'].toLowerCase() === 'b'">
|
|
13
|
+
<app-region [formGroup$]="formGroup$" [pConn$]="kid.getPConnect()"></app-region>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.scss.mustache
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.psdk-two-column {
|
|
6
|
+
display: flow-root;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Create two equal columns that floats next to each other */
|
|
11
|
+
.psdk-two-column-column {
|
|
12
|
+
width: 50%;
|
|
13
|
+
float: left;
|
|
14
|
+
padding: 0rem 0.3125rem;
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.psdk-two-column-left {
|
|
19
|
+
float: left;
|
|
20
|
+
min-width: 50%;
|
|
21
|
+
padding: 0rem 0.3125rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.psdk-two-column-right {
|
|
25
|
+
float: left;
|
|
26
|
+
width: 50%;
|
|
27
|
+
padding: 0rem 0.3125rem;
|
|
28
|
+
}
|
package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.spec.ts.mustache
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { {{COMPONENT_CLASS_NAME}}Component } from './{{COMPONENT_CLASS_NAME_KEBAB}}.component';
|
|
4
|
+
|
|
5
|
+
describe('{{COMPONENT_CLASS_NAME}}Component', () => {
|
|
6
|
+
let component: {{COMPONENT_CLASS_NAME}}Component;
|
|
7
|
+
let fixture: ComponentFixture<{{COMPONENT_CLASS_NAME}}Component>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ {{COMPONENT_CLASS_NAME}}Component ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent({{COMPONENT_CLASS_NAME}}Component);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.ts.mustache
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, OnInit, Input, forwardRef } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { RegionComponent } from '@pega/angular-sdk-library';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-{{COMPONENT_CLASS_NAME_KEBAB}}',
|
|
8
|
+
templateUrl: './{{COMPONENT_CLASS_NAME_KEBAB}}.component.html',
|
|
9
|
+
styleUrls: ['./{{COMPONENT_CLASS_NAME_KEBAB}}.component.scss'],
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [CommonModule, forwardRef(() => RegionComponent)]
|
|
12
|
+
})
|
|
13
|
+
export class {{COMPONENT_CLASS_NAME}}Component implements OnInit {
|
|
14
|
+
@Input() pConn$: any;
|
|
15
|
+
@Input() formGroup$: FormGroup;
|
|
16
|
+
|
|
17
|
+
configProps$: Object;
|
|
18
|
+
arChildren$: Array<any>;
|
|
19
|
+
|
|
20
|
+
constructor() {}
|
|
21
|
+
|
|
22
|
+
ngOnInit() {
|
|
23
|
+
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
|
|
24
|
+
this.arChildren$ = this.pConn$.getChildren();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
export const pyReviewRaw = {
|
|
2
|
+
name: 'CollectInformation',
|
|
3
|
+
type: 'View',
|
|
4
|
+
config: {
|
|
5
|
+
template: 'DefaultForm',
|
|
6
|
+
ruleClass: 'OM5W9U-SampleApp-Work-Test',
|
|
7
|
+
localeReference: '@LR OM5W9U-SAMPLEAPP-WORK-TEST!VIEW!COLLECTINFORMATION',
|
|
8
|
+
context: '@P .pyViewContext'
|
|
9
|
+
},
|
|
10
|
+
children: [
|
|
11
|
+
{
|
|
12
|
+
name: 'A',
|
|
13
|
+
type: 'Region',
|
|
14
|
+
children: [
|
|
15
|
+
{
|
|
16
|
+
type: 'TextInput',
|
|
17
|
+
config: {
|
|
18
|
+
value: '@P .FirstName',
|
|
19
|
+
label: '@L First Name'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'TextInput',
|
|
24
|
+
config: {
|
|
25
|
+
value: '@P .MiddleName',
|
|
26
|
+
label: '@L Middle Name'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'TextInput',
|
|
31
|
+
config: {
|
|
32
|
+
value: '@P .LastName',
|
|
33
|
+
label: '@L Last Name'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'B',
|
|
40
|
+
type: 'Region',
|
|
41
|
+
children: [
|
|
42
|
+
{
|
|
43
|
+
type: 'Email',
|
|
44
|
+
config: {
|
|
45
|
+
value: '@P .Email',
|
|
46
|
+
label: '@L Email'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'Phone',
|
|
51
|
+
config: {
|
|
52
|
+
value: '@P .PhoneNumber',
|
|
53
|
+
label: '@L Phone Number',
|
|
54
|
+
datasource: {
|
|
55
|
+
source: '@DATASOURCE D_pyCountryCallingCodeList.pxResults',
|
|
56
|
+
fields: {
|
|
57
|
+
value: '@P .pyCallingCode'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'Date',
|
|
64
|
+
config: {
|
|
65
|
+
value: '@P .ServiceDate',
|
|
66
|
+
label: '@L Service Date'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
classID: 'OM5W9U-SampleApp-Work-Test'
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const regionChildrenResolved = [
|
|
76
|
+
{
|
|
77
|
+
readOnly: undefined,
|
|
78
|
+
value: 'John',
|
|
79
|
+
label: 'First Name',
|
|
80
|
+
hasSuggestions: false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
readOnly: undefined,
|
|
84
|
+
value: 'Din',
|
|
85
|
+
label: 'Middle Name',
|
|
86
|
+
hasSuggestions: false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
readOnly: undefined,
|
|
90
|
+
value: 'Doe',
|
|
91
|
+
label: 'Last Name',
|
|
92
|
+
hasSuggestions: false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
readOnly: undefined,
|
|
96
|
+
value: 'John@doe.com',
|
|
97
|
+
label: 'Email',
|
|
98
|
+
hasSuggestions: false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
readOnly: undefined,
|
|
102
|
+
value: '+16397975093',
|
|
103
|
+
label: 'Phone Number',
|
|
104
|
+
datasource: {
|
|
105
|
+
fields: {
|
|
106
|
+
value: undefined
|
|
107
|
+
},
|
|
108
|
+
source: [
|
|
109
|
+
{
|
|
110
|
+
value: '+1'
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: '+91'
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
value: '+48'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
value: '+44'
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
hasSuggestions: false
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
readOnly: undefined,
|
|
127
|
+
value: '2023-01-25',
|
|
128
|
+
label: 'Service Date',
|
|
129
|
+
hasSuggestions: false
|
|
130
|
+
}
|
|
131
|
+
];
|
|
132
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="100px" height="70px" viewBox="0 0 100 70" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>1-col icon</title>
|
|
4
|
+
<g id="Views" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="Artboard-Copy-2" transform="translate(-38.000000, -207.000000)">
|
|
6
|
+
<g id="1-col--icon" transform="translate(38.000000, 207.000000)">
|
|
7
|
+
<rect id="bg" stroke="#A5A8BC" stroke-width="0.5" fill="#E7E9EB" x="0.25" y="0.25" width="99.5" height="69.5"></rect>
|
|
8
|
+
<g id="white" transform="translate(3.000000, 3.000000)" fill="#FFFFFF">
|
|
9
|
+
<rect id="Rectangle" x="0" y="0" width="94" height="66.5"></rect>
|
|
10
|
+
</g>
|
|
11
|
+
<g id="gray" transform="translate(6.000000, 6.000000)" fill="#8084A7">
|
|
12
|
+
<rect id="Rectangle" x="0" y="0" width="88" height="7.8"></rect>
|
|
13
|
+
<rect id="Rectangle-Copy-18" x="0" y="11.7" width="88" height="7.8"></rect>
|
|
14
|
+
<rect id="Rectangle-Copy-19" x="0" y="23.4" width="88" height="7.8"></rect>
|
|
15
|
+
<rect id="Rectangle-Copy-20" x="0" y="35.1" width="88" height="7.8"></rect>
|
|
16
|
+
<rect id="Rectangle-Copy-21" x="0" y="46.8" width="88" height="7.8"></rect>
|
|
17
|
+
<rect id="Rectangle-Copy-22" x="0" y="58.5" width="88" height="5"></rect>
|
|
18
|
+
</g>
|
|
19
|
+
<g id="labels" transform="translate(39.000000, 11.000000)">
|
|
20
|
+
<circle id="Oval-Copy-3" fill="#FFFFFF" cx="10.5" cy="10.8076923" r="10.5"></circle>
|
|
21
|
+
<text id="A" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500" fill="#56566F">
|
|
22
|
+
<tspan x="6.75" y="14">A</tspan>
|
|
23
|
+
</text>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{COMPONENT_KEY}}",
|
|
3
|
+
"label": "{{COMPONENT_LABEL}}",
|
|
4
|
+
"description": "{{DESCRIPTION}}",
|
|
5
|
+
"organization": "{{ORGANIZATION}}",
|
|
6
|
+
"version": "{{VERSION}}",
|
|
7
|
+
"library": "{{LIBRARY}}",
|
|
8
|
+
"allowedApplications": {{{ALLOWEDAPPS}}},
|
|
9
|
+
"componentKey": "{{COMPONENT_KEY}}",
|
|
10
|
+
"type": "{{TYPE}}",
|
|
11
|
+
"subtype": {{{SUB_TYPE}}},
|
|
12
|
+
"icon": "OneColumnPage.svg",
|
|
13
|
+
"properties": [
|
|
14
|
+
{
|
|
15
|
+
"name": "useConfigurableLayout",
|
|
16
|
+
"label": "Use inline layout for insights",
|
|
17
|
+
"format": "BOOLEAN"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "enableGetNextWork",
|
|
21
|
+
"label": "Enable Get next work",
|
|
22
|
+
"format": "BOOLEAN"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "A",
|
|
26
|
+
"label": "Region A",
|
|
27
|
+
"format": "CONTENTPICKER",
|
|
28
|
+
"addTypeList": ["Widgets", "Views", "Insights"]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"defaultConfig": {}
|
|
32
|
+
}
|