@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
|
@@ -15,7 +15,8 @@ export const pyReviewRaw = {
|
|
|
15
15
|
value: '@P .pyStatusWork',
|
|
16
16
|
label: '@L Work Status',
|
|
17
17
|
displayMode: 'STACKED_LARGE_VAL',
|
|
18
|
-
displayAsStatus: true
|
|
18
|
+
displayAsStatus: true,
|
|
19
|
+
key: 'pyStatusWork'
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
{
|
|
@@ -23,7 +24,8 @@ export const pyReviewRaw = {
|
|
|
23
24
|
config: {
|
|
24
25
|
value: '@P .pyID',
|
|
25
26
|
label: '@L Case ID',
|
|
26
|
-
displayMode: 'STACKED_LARGE_VAL'
|
|
27
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
28
|
+
key: 'pyID'
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
{
|
|
@@ -31,7 +33,8 @@ export const pyReviewRaw = {
|
|
|
31
33
|
config: {
|
|
32
34
|
value: '@P .pxCreateDateTime',
|
|
33
35
|
label: '@L Create date/time',
|
|
34
|
-
displayMode: 'STACKED_LARGE_VAL'
|
|
36
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
37
|
+
key: 'pxCreateDateTime'
|
|
35
38
|
}
|
|
36
39
|
},
|
|
37
40
|
{
|
|
@@ -40,7 +43,8 @@ export const pyReviewRaw = {
|
|
|
40
43
|
label: '@L Create Operator',
|
|
41
44
|
value: '@USER .pxCreateOperator',
|
|
42
45
|
placeholder: 'Select...',
|
|
43
|
-
displayMode: 'STACKED_LARGE_VAL'
|
|
46
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
47
|
+
key: 'pxCreateOperator'
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
],
|
|
@@ -72,14 +76,16 @@ export const pyReviewRaw = {
|
|
|
72
76
|
config: {
|
|
73
77
|
value: '@P .pySLADeadline',
|
|
74
78
|
label: '@L SLA Deadline'
|
|
75
|
-
}
|
|
79
|
+
},
|
|
80
|
+
key: '1'
|
|
76
81
|
},
|
|
77
82
|
{
|
|
78
83
|
type: 'DateTime',
|
|
79
84
|
config: {
|
|
80
85
|
value: '@P .pySLAGoal',
|
|
81
86
|
label: '@L SLA Goal'
|
|
82
|
-
}
|
|
87
|
+
},
|
|
88
|
+
key: '2'
|
|
83
89
|
},
|
|
84
90
|
{
|
|
85
91
|
type: 'RadioButtons',
|
|
@@ -88,7 +94,8 @@ export const pyReviewRaw = {
|
|
|
88
94
|
label: '@L SLA Start Time',
|
|
89
95
|
listType: 'associated',
|
|
90
96
|
datasource: '@ASSOCIATED .pySLAStartTime'
|
|
91
|
-
}
|
|
97
|
+
},
|
|
98
|
+
key: '3'
|
|
92
99
|
}
|
|
93
100
|
]
|
|
94
101
|
}
|
|
@@ -151,13 +158,15 @@ export const regionChildrenResolved = [
|
|
|
151
158
|
readOnly: true,
|
|
152
159
|
value: '',
|
|
153
160
|
label: 'SLA Deadline',
|
|
154
|
-
displayMode: 'LABELS_LEFT'
|
|
161
|
+
displayMode: 'LABELS_LEFT',
|
|
162
|
+
key: 'SLA Deadline'
|
|
155
163
|
},
|
|
156
164
|
{
|
|
157
165
|
readOnly: true,
|
|
158
166
|
value: '',
|
|
159
167
|
label: 'SLA Goal',
|
|
160
|
-
displayMode: 'LABELS_LEFT'
|
|
168
|
+
displayMode: 'LABELS_LEFT',
|
|
169
|
+
key: 'SLA Goal'
|
|
161
170
|
},
|
|
162
171
|
{
|
|
163
172
|
readOnly: true,
|
|
@@ -174,6 +183,7 @@ export const regionChildrenResolved = [
|
|
|
174
183
|
value: 'Current Date Time'
|
|
175
184
|
}
|
|
176
185
|
],
|
|
177
|
-
displayMode: 'LABELS_LEFT'
|
|
186
|
+
displayMode: 'LABELS_LEFT',
|
|
187
|
+
key: 'SLA Start Time'
|
|
178
188
|
}
|
|
179
189
|
];
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
package/src/tasks/create/templates/Constellation/template/DETAILS-region/demo.stories.jsx.mustache
CHANGED
|
@@ -14,6 +14,7 @@ const renderField = resolvedProps => {
|
|
|
14
14
|
displayMode,
|
|
15
15
|
value = '',
|
|
16
16
|
label = '',
|
|
17
|
+
key,
|
|
17
18
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
18
19
|
theme = useTheme()
|
|
19
20
|
} = resolvedProps;
|
|
@@ -22,7 +23,7 @@ const renderField = resolvedProps => {
|
|
|
22
23
|
|
|
23
24
|
let val =
|
|
24
25
|
value !== '' ? (
|
|
25
|
-
<Text variant='h1' as='span'>
|
|
26
|
+
<Text variant='h1' as='span' key={key}>
|
|
26
27
|
{value}
|
|
27
28
|
</Text>
|
|
28
29
|
) : (
|
|
@@ -30,9 +31,17 @@ const renderField = resolvedProps => {
|
|
|
30
31
|
);
|
|
31
32
|
|
|
32
33
|
if (label === 'Create date/time')
|
|
33
|
-
val =
|
|
34
|
+
val = (
|
|
35
|
+
<DateTimeDisplay
|
|
36
|
+
value={value}
|
|
37
|
+
variant='datetime'
|
|
38
|
+
format='long'
|
|
39
|
+
clockFormat={null}
|
|
40
|
+
key={key}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
34
43
|
|
|
35
|
-
if (displayAsStatus === true) val = <StatusWorkRenderer value={value} />;
|
|
44
|
+
if (displayAsStatus === true) val = <StatusWorkRenderer value={value} key={key} />;
|
|
36
45
|
|
|
37
46
|
if (label === 'Create Operator')
|
|
38
47
|
val = (
|
|
@@ -43,24 +52,28 @@ const renderField = resolvedProps => {
|
|
|
43
52
|
? { width: 'max-content', height: theme.components.input.height }
|
|
44
53
|
: undefined
|
|
45
54
|
}
|
|
55
|
+
key={key}
|
|
46
56
|
>
|
|
47
57
|
{value.userName}
|
|
48
58
|
</Button>
|
|
49
59
|
);
|
|
50
60
|
|
|
51
61
|
if (variant === 'inline') {
|
|
52
|
-
val = value ||
|
|
62
|
+
val = value || (
|
|
63
|
+
<span aria-hidden='true' key={key}>
|
|
64
|
+
––
|
|
65
|
+
</span>
|
|
66
|
+
);
|
|
53
67
|
} else {
|
|
54
68
|
val = (
|
|
55
|
-
<Text variant='h1' as='span'>
|
|
69
|
+
<Text variant='h1' as='span' key={key}>
|
|
56
70
|
{val}
|
|
57
71
|
</Text>
|
|
58
72
|
);
|
|
59
73
|
}
|
|
60
|
-
return <FieldValueList variant={variant} fields={[{ name: label, value: val }]} />;
|
|
74
|
+
return <FieldValueList variant={variant} fields={[{ name: label, value: val }]} key={key} />;
|
|
61
75
|
};
|
|
62
76
|
|
|
63
|
-
|
|
64
77
|
export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
65
78
|
const props = {
|
|
66
79
|
template: 'MyCo_MyComponents_NewDetailsTemplate',
|
|
@@ -46,7 +46,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
48
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
49
|
-
{{! pick new
|
|
49
|
+
{{! pick new delimiters for mustache }}
|
|
50
50
|
{{=<% %>=}}
|
|
51
51
|
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
|
52
52
|
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
@@ -65,7 +65,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
65
65
|
))}
|
|
66
66
|
</Grid>
|
|
67
67
|
</FieldGroup>
|
|
68
|
-
<%={{ }}=%> {{! revert
|
|
68
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
69
69
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
70
70
|
);
|
|
71
71
|
|
package/src/tasks/create/templates/Constellation/template/DETAILS-region/mock.stories.js.mustache
CHANGED
|
@@ -15,7 +15,8 @@ export const pyReviewRaw = {
|
|
|
15
15
|
value: '@P .pyStatusWork',
|
|
16
16
|
label: '@L Work Status',
|
|
17
17
|
displayMode: 'STACKED_LARGE_VAL',
|
|
18
|
-
displayAsStatus: true
|
|
18
|
+
displayAsStatus: true,
|
|
19
|
+
key: 'pyStatusWork'
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
{
|
|
@@ -23,7 +24,8 @@ export const pyReviewRaw = {
|
|
|
23
24
|
config: {
|
|
24
25
|
value: '@P .pyID',
|
|
25
26
|
label: '@L Case ID',
|
|
26
|
-
displayMode: 'STACKED_LARGE_VAL'
|
|
27
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
28
|
+
key: 'pyID'
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
{
|
|
@@ -31,7 +33,8 @@ export const pyReviewRaw = {
|
|
|
31
33
|
config: {
|
|
32
34
|
value: '@P .pxCreateDateTime',
|
|
33
35
|
label: '@L Create date/time',
|
|
34
|
-
displayMode: 'STACKED_LARGE_VAL'
|
|
36
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
37
|
+
key: 'pxCreateDateTime'
|
|
35
38
|
}
|
|
36
39
|
},
|
|
37
40
|
{
|
|
@@ -40,7 +43,8 @@ export const pyReviewRaw = {
|
|
|
40
43
|
label: '@L Create Operator',
|
|
41
44
|
value: '@USER .pxCreateOperator',
|
|
42
45
|
placeholder: 'Select...',
|
|
43
|
-
displayMode: 'STACKED_LARGE_VAL'
|
|
46
|
+
displayMode: 'STACKED_LARGE_VAL',
|
|
47
|
+
key: 'pxCreateOperator'
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
],
|
|
@@ -59,6 +63,7 @@ export const pyReviewRaw = {
|
|
|
59
63
|
{
|
|
60
64
|
name: 'A',
|
|
61
65
|
type: 'Region',
|
|
66
|
+
key: 'A',
|
|
62
67
|
getPConnect: () => {
|
|
63
68
|
return {
|
|
64
69
|
getRawMetadata: () => {
|
|
@@ -71,14 +76,16 @@ export const pyReviewRaw = {
|
|
|
71
76
|
type: 'DateTime',
|
|
72
77
|
config: {
|
|
73
78
|
value: '@P .pySLADeadline',
|
|
74
|
-
label: '@L SLA Deadline'
|
|
79
|
+
label: '@L SLA Deadline',
|
|
80
|
+
key: 'pySLADeadline'
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
83
|
{
|
|
78
84
|
type: 'DateTime',
|
|
79
85
|
config: {
|
|
80
86
|
value: '@P .pySLAGoal',
|
|
81
|
-
label: '@L SLA Goal'
|
|
87
|
+
label: '@L SLA Goal',
|
|
88
|
+
key: 'pySLAGoal'
|
|
82
89
|
}
|
|
83
90
|
},
|
|
84
91
|
{
|
|
@@ -87,7 +94,8 @@ export const pyReviewRaw = {
|
|
|
87
94
|
value: '@P .pySLAStartTime',
|
|
88
95
|
label: '@L SLA Start Time',
|
|
89
96
|
listType: 'associated',
|
|
90
|
-
datasource: '@ASSOCIATED .pySLAStartTime'
|
|
97
|
+
datasource: '@ASSOCIATED .pySLAStartTime',
|
|
98
|
+
key: 'pySLAStartTime'
|
|
91
99
|
}
|
|
92
100
|
}
|
|
93
101
|
]
|
|
@@ -95,6 +103,7 @@ export const pyReviewRaw = {
|
|
|
95
103
|
{
|
|
96
104
|
name: 'B',
|
|
97
105
|
type: 'Region',
|
|
106
|
+
key: 'B',
|
|
98
107
|
getPConnect: () => {
|
|
99
108
|
return {
|
|
100
109
|
getRawMetadata: () => {
|
|
@@ -107,14 +116,16 @@ export const pyReviewRaw = {
|
|
|
107
116
|
type: 'DateTime',
|
|
108
117
|
config: {
|
|
109
118
|
value: '@P .pySLADeadline',
|
|
110
|
-
label: '@L SLA Deadline'
|
|
119
|
+
label: '@L SLA Deadline',
|
|
120
|
+
key: 'pySLADeadline'
|
|
111
121
|
}
|
|
112
122
|
},
|
|
113
123
|
{
|
|
114
124
|
type: 'DateTime',
|
|
115
125
|
config: {
|
|
116
126
|
value: '@P .pySLAGoal',
|
|
117
|
-
label: '@L SLA Goal'
|
|
127
|
+
label: '@L SLA Goal',
|
|
128
|
+
key: 'pySLAGoal'
|
|
118
129
|
}
|
|
119
130
|
},
|
|
120
131
|
{
|
|
@@ -123,7 +134,8 @@ export const pyReviewRaw = {
|
|
|
123
134
|
value: '@P .pySLAStartTime',
|
|
124
135
|
label: '@L SLA Start Time',
|
|
125
136
|
listType: 'associated',
|
|
126
|
-
datasource: '@ASSOCIATED .pySLAStartTime'
|
|
137
|
+
datasource: '@ASSOCIATED .pySLAStartTime',
|
|
138
|
+
key: 'pySLAStartTime'
|
|
127
139
|
}
|
|
128
140
|
}
|
|
129
141
|
]
|
|
@@ -187,13 +199,15 @@ export const regionChildrenResolved = [
|
|
|
187
199
|
readOnly: true,
|
|
188
200
|
value: '',
|
|
189
201
|
label: 'SLA Deadline',
|
|
190
|
-
displayMode: 'LABELS_LEFT'
|
|
202
|
+
displayMode: 'LABELS_LEFT',
|
|
203
|
+
key: 'SLA Deadline'
|
|
191
204
|
},
|
|
192
205
|
{
|
|
193
206
|
readOnly: true,
|
|
194
207
|
value: '',
|
|
195
208
|
label: 'SLA Goal',
|
|
196
|
-
displayMode: 'LABELS_LEFT'
|
|
209
|
+
displayMode: 'LABELS_LEFT',
|
|
210
|
+
key: 'SLA Goal'
|
|
197
211
|
},
|
|
198
212
|
{
|
|
199
213
|
readOnly: true,
|
|
@@ -210,6 +224,7 @@ export const regionChildrenResolved = [
|
|
|
210
224
|
value: 'Current Date Time'
|
|
211
225
|
}
|
|
212
226
|
],
|
|
213
|
-
displayMode: 'LABELS_LEFT'
|
|
227
|
+
displayMode: 'LABELS_LEFT',
|
|
228
|
+
key: 'SLA Start Time'
|
|
214
229
|
}
|
|
215
230
|
];
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
|
+
import { useState } from 'react';
|
|
1
3
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
4
|
|
|
3
5
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
@@ -12,45 +14,119 @@ export default {
|
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
const renderField = resolvedProps => {
|
|
15
|
-
const { displayMode, value = '', label = '' } = resolvedProps;
|
|
17
|
+
const { displayMode, value = '', label = '', key } = resolvedProps;
|
|
18
|
+
|
|
19
|
+
const [inputValue, setInputValue] = useState(value);
|
|
20
|
+
const [phoneValue, setPhoneValue] = useState('+16397975093');
|
|
16
21
|
|
|
17
22
|
const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
|
|
18
23
|
|
|
19
24
|
let val =
|
|
20
25
|
value !== '' ? (
|
|
21
|
-
<Text
|
|
22
|
-
|
|
26
|
+
<Text
|
|
27
|
+
variant='h1'
|
|
28
|
+
as='span'
|
|
29
|
+
key={key}
|
|
30
|
+
onChange={e => {
|
|
31
|
+
setInputValue(e.target.value);
|
|
32
|
+
}}
|
|
33
|
+
>
|
|
34
|
+
{inputValue}
|
|
23
35
|
</Text>
|
|
24
36
|
) : (
|
|
25
37
|
''
|
|
26
38
|
);
|
|
27
39
|
|
|
28
|
-
{{! pick new
|
|
40
|
+
{{! pick new delimiters for mustache }}
|
|
29
41
|
{{=<% %>=}}
|
|
30
42
|
|
|
31
|
-
if (label === 'Service Date')
|
|
43
|
+
if (label === 'Service Date')
|
|
44
|
+
val = (
|
|
45
|
+
<DateInput
|
|
46
|
+
value={inputValue}
|
|
47
|
+
style={{ fontSize: '14px' }}
|
|
48
|
+
key={key}
|
|
49
|
+
onChange={dateValue => {
|
|
50
|
+
const { valueAsISOString: date } = dateValue;
|
|
51
|
+
const trimmedDate = date ? date.substring(0, date.indexOf('T')) : date;
|
|
52
|
+
setInputValue(trimmedDate);
|
|
53
|
+
}}
|
|
54
|
+
></DateInput>
|
|
55
|
+
);
|
|
32
56
|
|
|
33
|
-
if (label === 'Email')
|
|
57
|
+
if (label === 'Email')
|
|
58
|
+
val = (
|
|
59
|
+
<Input
|
|
60
|
+
type='email'
|
|
61
|
+
value={inputValue}
|
|
62
|
+
style={{ fontSize: '14px' }}
|
|
63
|
+
key={key}
|
|
64
|
+
onChange={e => {
|
|
65
|
+
setInputValue(e.target.value);
|
|
66
|
+
}}
|
|
67
|
+
></Input>
|
|
68
|
+
);
|
|
34
69
|
|
|
35
70
|
if (label === 'First Name' || label === 'Last Name' || label === 'Middle Name')
|
|
36
|
-
val =
|
|
71
|
+
val = (
|
|
72
|
+
<Input
|
|
73
|
+
value={inputValue}
|
|
74
|
+
style={{ fontSize: '14px' }}
|
|
75
|
+
key={key}
|
|
76
|
+
onChange={e => {
|
|
77
|
+
setInputValue(e.target.value);
|
|
78
|
+
}}
|
|
79
|
+
></Input>
|
|
80
|
+
);
|
|
37
81
|
|
|
38
|
-
if (label === 'Phone Number')
|
|
39
|
-
|
|
82
|
+
if (label === 'Phone Number')
|
|
83
|
+
val = (
|
|
84
|
+
<CosmosPhone
|
|
85
|
+
value={phoneValue}
|
|
86
|
+
style={{ fontSize: '14px' }}
|
|
87
|
+
key={key}
|
|
88
|
+
onChange={phoneVal => {
|
|
89
|
+
setPhoneValue(phoneVal);
|
|
90
|
+
}}
|
|
91
|
+
></CosmosPhone>
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
40
95
|
|
|
41
96
|
if (variant === 'inline') {
|
|
42
|
-
val = value ||
|
|
97
|
+
val = value || (
|
|
98
|
+
<span
|
|
99
|
+
aria-hidden='true'
|
|
100
|
+
onChange={e => {
|
|
101
|
+
setInputValue(e.target.value);
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
––
|
|
105
|
+
</span>
|
|
106
|
+
);
|
|
43
107
|
} else {
|
|
44
108
|
val = (
|
|
45
|
-
<Text
|
|
109
|
+
<Text
|
|
110
|
+
variant='h1'
|
|
111
|
+
as='span'
|
|
112
|
+
key={key}
|
|
113
|
+
onChange={e => {
|
|
114
|
+
setInputValue(e.target.value);
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
46
117
|
{val}
|
|
47
118
|
</Text>
|
|
48
119
|
);
|
|
49
120
|
}
|
|
50
|
-
return
|
|
121
|
+
return (
|
|
122
|
+
<FieldValueList
|
|
123
|
+
variant={variant}
|
|
124
|
+
fields={[{ name: label, value: val }]}
|
|
125
|
+
key={key}
|
|
126
|
+
/>
|
|
127
|
+
);
|
|
51
128
|
};
|
|
52
129
|
|
|
53
|
-
|
|
54
130
|
export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
55
131
|
const props = {
|
|
56
132
|
NumCols: 1,
|
|
@@ -86,8 +162,8 @@ export const base{{COMPONENT_CLASS_NAME}} = () => {
|
|
|
86
162
|
});
|
|
87
163
|
|
|
88
164
|
return (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
165
|
+
<>
|
|
166
|
+
<{{COMPONENT_CLASS_NAME}} {...props}>{regionAChildren}</{{COMPONENT_CLASS_NAME}}>
|
|
167
|
+
</>
|
|
92
168
|
);
|
|
93
169
|
};
|
|
@@ -19,7 +19,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
22
|
-
{{! pick new
|
|
22
|
+
{{! pick new delimiters for mustache }}
|
|
23
23
|
{{=<% %>=}}
|
|
24
24
|
<Grid container={{
|
|
25
25
|
cols: `repeat(${nCols}, minmax(0, 1fr))`,
|
|
@@ -28,7 +28,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
28
28
|
}}>
|
|
29
29
|
{children}
|
|
30
30
|
</Grid>
|
|
31
|
-
<%={{ }}=%> {{! revert
|
|
31
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
32
32
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
33
33
|
);
|
|
34
34
|
|
|
@@ -16,28 +16,32 @@ export const pyReviewRaw = {
|
|
|
16
16
|
type: 'TextInput',
|
|
17
17
|
config: {
|
|
18
18
|
value: '@P .FirstName',
|
|
19
|
-
label: '@L First Name'
|
|
19
|
+
label: '@L First Name',
|
|
20
|
+
key: 'FirstName'
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
type: 'TextInput',
|
|
24
25
|
config: {
|
|
25
26
|
value: '@P .MiddleName',
|
|
26
|
-
label: '@L Middle Name'
|
|
27
|
+
label: '@L Middle Name',
|
|
28
|
+
key: 'MiddleName'
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
{
|
|
30
32
|
type: 'TextInput',
|
|
31
33
|
config: {
|
|
32
34
|
value: '@P .LastName',
|
|
33
|
-
label: '@L Last Name'
|
|
35
|
+
label: '@L Last Name',
|
|
36
|
+
key: 'LastName'
|
|
34
37
|
}
|
|
35
38
|
},
|
|
36
39
|
{
|
|
37
40
|
type: 'Email',
|
|
38
41
|
config: {
|
|
39
42
|
value: '@P .Email',
|
|
40
|
-
label: '@L Email'
|
|
43
|
+
label: '@L Email',
|
|
44
|
+
key: 'Email'
|
|
41
45
|
}
|
|
42
46
|
},
|
|
43
47
|
{
|
|
@@ -50,14 +54,16 @@ export const pyReviewRaw = {
|
|
|
50
54
|
fields: {
|
|
51
55
|
value: '@P .pyCallingCode'
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
},
|
|
58
|
+
key: 'PhoneNumber'
|
|
54
59
|
}
|
|
55
60
|
},
|
|
56
61
|
{
|
|
57
62
|
type: 'Date',
|
|
58
63
|
config: {
|
|
59
64
|
value: '@P .ServiceDate',
|
|
60
|
-
label: '@L Service Date'
|
|
65
|
+
label: '@L Service Date',
|
|
66
|
+
key: 'ServiceDate'
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
69
|
]
|
|
@@ -71,25 +77,29 @@ export const regionChildrenResolved = [
|
|
|
71
77
|
readOnly: undefined,
|
|
72
78
|
value: 'John',
|
|
73
79
|
label: 'First Name',
|
|
74
|
-
hasSuggestions: false
|
|
80
|
+
hasSuggestions: false,
|
|
81
|
+
key: 'firstName'
|
|
75
82
|
},
|
|
76
83
|
{
|
|
77
84
|
readOnly: undefined,
|
|
78
85
|
value: '',
|
|
79
86
|
label: 'Middle Name',
|
|
80
|
-
hasSuggestions: false
|
|
87
|
+
hasSuggestions: false,
|
|
88
|
+
key: 'middleName'
|
|
81
89
|
},
|
|
82
90
|
{
|
|
83
91
|
readOnly: undefined,
|
|
84
92
|
value: 'Doe',
|
|
85
93
|
label: 'Last Name',
|
|
86
|
-
hasSuggestions: false
|
|
94
|
+
hasSuggestions: false,
|
|
95
|
+
key: 'lastName'
|
|
87
96
|
},
|
|
88
97
|
{
|
|
89
98
|
readOnly: undefined,
|
|
90
99
|
value: 'John@doe.com',
|
|
91
100
|
label: 'Email',
|
|
92
|
-
hasSuggestions: false
|
|
101
|
+
hasSuggestions: false,
|
|
102
|
+
key: 'email'
|
|
93
103
|
},
|
|
94
104
|
{
|
|
95
105
|
readOnly: undefined,
|
|
@@ -114,12 +124,14 @@ export const regionChildrenResolved = [
|
|
|
114
124
|
}
|
|
115
125
|
]
|
|
116
126
|
},
|
|
117
|
-
hasSuggestions: false
|
|
127
|
+
hasSuggestions: false,
|
|
128
|
+
key: 'phoneNumber'
|
|
118
129
|
},
|
|
119
130
|
{
|
|
120
131
|
readOnly: undefined,
|
|
121
132
|
value: '2023-01-25',
|
|
122
133
|
label: 'Service Date',
|
|
123
|
-
hasSuggestions: false
|
|
134
|
+
hasSuggestions: false,
|
|
135
|
+
key: 'serviceDate'
|
|
124
136
|
}
|
|
125
137
|
];
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// utilizing theming, comment out, if want individual style
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Configuration } from '@pega/cosmos-react-core';
|
|
2
4
|
|
|
3
|
-
export default styled
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export default styled(Configuration)``;
|
|
6
|
+
|
|
7
|
+
// individual style, comment out above, and uncomment here and add styles
|
|
8
|
+
// import styled, { css } from 'styled-components';
|
|
9
|
+
//
|
|
10
|
+
// export default styled.div(() => {
|
|
11
|
+
// return css`
|
|
12
|
+
// margin: 0px 0;
|
|
13
|
+
// `;
|
|
14
|
+
// });
|