@pega/dx-component-builder-sdk 0.1.46 → 0.1.48
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 +3 -3
- package/src/cli.js +1 -1
- package/src/constants.js +728 -2
- package/src/tasks/authenticate/index.js +1 -1
- 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 +108 -44
- package/src/tasks/bundle/{builder → builderAngular}/paths.js +2 -2
- package/src/tasks/bundle/builderAngular/webpack.config.js +342 -0
- 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 +50 -0
- package/src/tasks/bundle/{builder → builderReact}/webpack.config.js +5 -4
- package/src/tasks/bundle/index.js +64 -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 +114 -58
- 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/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 +137 -76
- package/src/tasks/override-all/index.js +54 -6
- package/src/tasks/publish/helper.js +93 -50
- package/src/tasks/publish/index.js +87 -34
- package/src/tasks/publish-all/helper.js +96 -57
- package/src/tasks/publish-all/index.js +123 -47
- package/src/tasks/rename/index.js +184 -111
- package/src/tasks/validator/index.js +31 -7
- package/src/util.js +173 -20
- 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
package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/mock.stories.js.mustache
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
const operatorDetails = {
|
|
2
|
+
data: {
|
|
3
|
+
pzLoadTime: "January 18, 2023 10:33:19 AM EST",
|
|
4
|
+
pzPageNameHash: "_pa1519192551088960pz",
|
|
5
|
+
pyOperatorInfo: {
|
|
6
|
+
pyUserName: "french DigV2",
|
|
7
|
+
pyPosition: "",
|
|
8
|
+
pyImageInsKey: "",
|
|
9
|
+
pySkills: [
|
|
10
|
+
{
|
|
11
|
+
pySkillName: "",
|
|
12
|
+
pzIndexOwnerKey: "DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2",
|
|
13
|
+
pySkillRating: 0,
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
pyReportToUserName: "",
|
|
17
|
+
pyReportTo: "",
|
|
18
|
+
pyOrganization: "DXIL",
|
|
19
|
+
pyTitle: "",
|
|
20
|
+
pyLabel: "frenchTest.DigV2",
|
|
21
|
+
pyEmailAddress: "User@DigV2",
|
|
22
|
+
pyTelephone: "",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
status: 200,
|
|
26
|
+
statusText: "",
|
|
27
|
+
headers: {
|
|
28
|
+
"content-length": "435",
|
|
29
|
+
"content-type": "application/json;charset=UTF-8",
|
|
30
|
+
},
|
|
31
|
+
request: {},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default operatorDetails;
|
|
35
|
+
|
|
36
|
+
export const pyReviewRaw = {
|
|
37
|
+
name: "pyReview",
|
|
38
|
+
type: "View",
|
|
39
|
+
config: {
|
|
40
|
+
template: "Details",
|
|
41
|
+
ruleClass: "MyCo-MyCompon-Work-MyComponents",
|
|
42
|
+
showLabel: true,
|
|
43
|
+
label: "@L Details",
|
|
44
|
+
localeReference: "@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW",
|
|
45
|
+
showHighlightedData: true,
|
|
46
|
+
highlightedData: [
|
|
47
|
+
{
|
|
48
|
+
type: "TextInput",
|
|
49
|
+
config: {
|
|
50
|
+
value: "@P .pyStatusWork",
|
|
51
|
+
label: "@L Work Status",
|
|
52
|
+
displayMode: "STACKED_LARGE_VAL",
|
|
53
|
+
displayAsStatus: true,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: "TextInput",
|
|
58
|
+
config: {
|
|
59
|
+
value: "@P .pyID",
|
|
60
|
+
label: "@L Case ID",
|
|
61
|
+
displayMode: "STACKED_LARGE_VAL",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "DateTime",
|
|
66
|
+
config: {
|
|
67
|
+
value: "@P .pxCreateDateTime",
|
|
68
|
+
label: "@L Create date/time",
|
|
69
|
+
displayMode: "STACKED_LARGE_VAL",
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "UserReference",
|
|
74
|
+
config: {
|
|
75
|
+
label: "@L Create Operator",
|
|
76
|
+
value: "@USER .pxCreateOperator",
|
|
77
|
+
placeholder: "Select...",
|
|
78
|
+
displayMode: "STACKED_LARGE_VAL",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
inheritedProps: [
|
|
83
|
+
{
|
|
84
|
+
prop: "label",
|
|
85
|
+
value: "@L Details",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
prop: "showLabel",
|
|
89
|
+
value: true,
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
children: [
|
|
94
|
+
{
|
|
95
|
+
name: "A",
|
|
96
|
+
type: "Region",
|
|
97
|
+
getPConnect: () => {
|
|
98
|
+
return {
|
|
99
|
+
getRawMetadata: () => {
|
|
100
|
+
return pyReviewRaw.children[0];
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
{
|
|
106
|
+
readOnly: undefined,
|
|
107
|
+
placeholder: "First Name",
|
|
108
|
+
value: "John",
|
|
109
|
+
label: "First Name",
|
|
110
|
+
hasSuggestions: false,
|
|
111
|
+
displayMode: "LABELS_LEFT",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
readOnly: undefined,
|
|
115
|
+
placeholder: "Middle Name",
|
|
116
|
+
value: "",
|
|
117
|
+
label: "Middle Name",
|
|
118
|
+
hasSuggestions: false,
|
|
119
|
+
displayMode: "LABELS_LEFT",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
readOnly: undefined,
|
|
123
|
+
placeholder: "Last Name",
|
|
124
|
+
value: "Doe",
|
|
125
|
+
label: "Last Name",
|
|
126
|
+
hasSuggestions: false,
|
|
127
|
+
displayMode: "LABELS_LEFT",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
value: "john@doe.com",
|
|
131
|
+
label: "Email",
|
|
132
|
+
required: true,
|
|
133
|
+
testId: "CE8AE9DA5B7CD6C3DF2929543A9AF92D",
|
|
134
|
+
hasSuggestions: false,
|
|
135
|
+
displayMode: "LABELS_LEFT",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
readOnly: undefined,
|
|
139
|
+
value: "+16397975093",
|
|
140
|
+
label: "Phone",
|
|
141
|
+
displayMode: "LABELS_LEFT",
|
|
142
|
+
hasSuggestions: false,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
readOnly: undefined,
|
|
146
|
+
placeholder: "Price",
|
|
147
|
+
value: "90.99",
|
|
148
|
+
label: "Price",
|
|
149
|
+
hasSuggestions: false,
|
|
150
|
+
displayMode: "LABELS_LEFT",
|
|
151
|
+
getPConnect: () => {
|
|
152
|
+
return {
|
|
153
|
+
getActionsApi: () => {/* nothing */},
|
|
154
|
+
getStateProps: () => {
|
|
155
|
+
return {
|
|
156
|
+
value: "",
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
getComponentName: () => {
|
|
160
|
+
return "currency";
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
readOnly: undefined,
|
|
167
|
+
value: "100 Mbps",
|
|
168
|
+
label: "Internet Plan",
|
|
169
|
+
hasSuggestions: false,
|
|
170
|
+
displayMode: "LABELS_LEFT",
|
|
171
|
+
getPConnect: () => {
|
|
172
|
+
return {
|
|
173
|
+
getActionsApi: () => {/* nothing */},
|
|
174
|
+
getStateProps: () => {
|
|
175
|
+
return {
|
|
176
|
+
value: "",
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
getComponentName: () => {
|
|
180
|
+
return "radio";
|
|
181
|
+
},
|
|
182
|
+
getConfigProps: () => {
|
|
183
|
+
return {};
|
|
184
|
+
},
|
|
185
|
+
getDataObject: () => {
|
|
186
|
+
return {};
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
readOnly: undefined,
|
|
193
|
+
placeholder: "Middle Name",
|
|
194
|
+
value: "",
|
|
195
|
+
label: "Middle Name",
|
|
196
|
+
hasSuggestions: false,
|
|
197
|
+
displayMode: "LABELS_LEFT",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
readOnly: undefined,
|
|
201
|
+
placeholder: "Last Name",
|
|
202
|
+
value: "Doe",
|
|
203
|
+
label: "Last Name",
|
|
204
|
+
hasSuggestions: false,
|
|
205
|
+
displayMode: "LABELS_LEFT",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
value: "john@doe.com",
|
|
209
|
+
label: "Email",
|
|
210
|
+
required: true,
|
|
211
|
+
testId: "CE8AE9DA5B7CD6C3DF2929543A9AF92D",
|
|
212
|
+
hasSuggestions: false,
|
|
213
|
+
displayMode: "LABELS_LEFT",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
readOnly: undefined,
|
|
217
|
+
value: "+16397975093",
|
|
218
|
+
label: "Phone",
|
|
219
|
+
displayMode: "LABELS_LEFT",
|
|
220
|
+
hasSuggestions: false,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
readOnly: undefined,
|
|
224
|
+
placeholder: "Price",
|
|
225
|
+
value: "90.89",
|
|
226
|
+
label: "Price",
|
|
227
|
+
hasSuggestions: false,
|
|
228
|
+
displayMode: "LABELS_LEFT",
|
|
229
|
+
getPConnect: () => {
|
|
230
|
+
return {
|
|
231
|
+
getActionsApi: () => {/* nothing */},
|
|
232
|
+
getStateProps: () => {
|
|
233
|
+
return {
|
|
234
|
+
value: "",
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
getComponentName: () => {
|
|
238
|
+
return "currency";
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
readOnly: undefined,
|
|
245
|
+
value: "100 Mbps",
|
|
246
|
+
label: "Internet Plan",
|
|
247
|
+
hasSuggestions: false,
|
|
248
|
+
displayMode: "LABELS_LEFT",
|
|
249
|
+
getPConnect: () => {
|
|
250
|
+
return {
|
|
251
|
+
getActionsApi: () => {/* nothing */},
|
|
252
|
+
getStateProps: () => {
|
|
253
|
+
return {
|
|
254
|
+
value: "",
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
getComponentName: () => {
|
|
258
|
+
return "radio";
|
|
259
|
+
},
|
|
260
|
+
getConfigProps: () => {
|
|
261
|
+
return {};
|
|
262
|
+
},
|
|
263
|
+
getDataObject: () => {
|
|
264
|
+
return {};
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
caseOpConfig: {
|
|
271
|
+
label: "Create operator",
|
|
272
|
+
createLabel: "Created",
|
|
273
|
+
updateLabel: "Updated",
|
|
274
|
+
updateDateTime: "2023-03-10T15:45:56.919Z",
|
|
275
|
+
createDateTime: "2023-03-10T15:45:40.154Z",
|
|
276
|
+
updateOperator: {
|
|
277
|
+
userId: "rep@mediaco",
|
|
278
|
+
userName: "representative",
|
|
279
|
+
},
|
|
280
|
+
createOperator: {
|
|
281
|
+
userId: "rep@mediaco",
|
|
282
|
+
userName: "representative",
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
classID: "MyCo-MyCompon-Work-MyComponents",
|
|
290
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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 copy</title>
|
|
4
|
+
<g id="Views" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="Template-icons" transform="translate(-320.000000, -925.000000)">
|
|
6
|
+
<g id="2-col--copy" transform="translate(320.000000, 925.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-copy-2" transform="translate(6.000000, 6.000000)" fill="#8084A7">
|
|
12
|
+
<rect id="Rectangle" x="0" y="-2.84217094e-14" width="42" height="11.8"></rect>
|
|
13
|
+
<rect id="Rectangle" x="46" y="-2.84217094e-14" width="42" height="11.8"></rect>
|
|
14
|
+
<rect id="Rectangle-Copy-5" x="0" y="16" width="42" height="11.8"></rect>
|
|
15
|
+
<rect id="Rectangle-Copy-3" x="46" y="16" width="42" height="11.8"></rect>
|
|
16
|
+
<rect id="Rectangle-Copy-15" x="0" y="32" width="42" height="11.8"></rect>
|
|
17
|
+
<rect id="Rectangle-Copy-14" x="46" y="32" width="42" height="11.8"></rect>
|
|
18
|
+
<rect id="Rectangle-Copy-17" x="0" y="48" width="42" height="11.8"></rect>
|
|
19
|
+
<rect id="Rectangle-Copy-16" x="46" y="48" width="42" height="11.8"></rect>
|
|
20
|
+
</g>
|
|
21
|
+
<g id="Group-7" transform="translate(28.000000, 11.000000)">
|
|
22
|
+
<path id="Line-12-Copy" d="M35.1666667,42.75 L47.1666667,48.5 L35.1666667,54.25 L35.166,49.25 L-0.25,49.25 L-0.25,47.75 L35.166,47.75 L35.1666667,42.75 Z" fill="#1E1F27" fill-rule="nonzero"></path>
|
|
23
|
+
<line x1="0.5" y1="48.5" x2="43.5" y2="32.5" id="Line" stroke="#1E1F27" stroke-width="1.5" stroke-linecap="square"></line>
|
|
24
|
+
<line x1="43.5" y1="32.5" x2="1.5" y2="32.5" id="Line-2" stroke="#1E1F27" stroke-width="1.5" stroke-linecap="square"></line>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
@@ -0,0 +1,45 @@
|
|
|
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": "DefaultForm.svg",
|
|
13
|
+
"properties": [
|
|
14
|
+
{
|
|
15
|
+
"format": "SELECT",
|
|
16
|
+
"name": "NumCols",
|
|
17
|
+
"label": "Number of columns",
|
|
18
|
+
"defaultValue": "1",
|
|
19
|
+
"source": [
|
|
20
|
+
{ "key": "1", "value": "One" },
|
|
21
|
+
{ "key": "2", "value": "Two" },
|
|
22
|
+
{ "key": "3", "value": "Three" }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"format": "SELECT",
|
|
27
|
+
"name": "templateOverrideMode",
|
|
28
|
+
"label": "Template for embedded views",
|
|
29
|
+
"defaultValue": "USE_TEMPLATE",
|
|
30
|
+
"source": [
|
|
31
|
+
{ "key": "USE_TEMPLATE", "value": "Use template" },
|
|
32
|
+
{ "key": "IGNORE_TEMPLATE", "value": "Ignore template" }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"format": "INSTRUCTIONS"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Fields",
|
|
40
|
+
"label": "Fields",
|
|
41
|
+
"format": "CONTENTPICKER",
|
|
42
|
+
"allowCreatingGroup": true
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import { withKnobs } from '@storybook/addon-knobs';
|
|
4
|
+
|
|
5
|
+
import {{COMPONENT_CLASS_NAME}} from './index.tsx';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: '{{COMPONENT_CLASS_NAME}}',
|
|
9
|
+
decorators: [withKnobs],
|
|
10
|
+
component: {{COMPONENT_CLASS_NAME}}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
if (!window.PCore) {
|
|
14
|
+
window.PCore = {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
window.PCore.getErrorHandler = () => {
|
|
18
|
+
return {
|
|
19
|
+
getGenericFailedMessage() {
|
|
20
|
+
/* nothing */
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
window.PCore.getConstants = () => {
|
|
26
|
+
return {
|
|
27
|
+
CASE_INFO: {
|
|
28
|
+
INSTRUCTIONS: ""
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
34
|
+
|
|
35
|
+
const [firstName, setFirstName] = useState('John');
|
|
36
|
+
const [middleName, setMiddleName] = useState('');
|
|
37
|
+
const [lastName, setLastName] = useState('Joe');
|
|
38
|
+
const [phone, setPhone] = useState('+16397975093');
|
|
39
|
+
const [suffix, setSuffix] = useState('');
|
|
40
|
+
const [email, setEmail] = useState('john@doe.com');
|
|
41
|
+
|
|
42
|
+
const props = {
|
|
43
|
+
NumCols: "1",
|
|
44
|
+
template: 'DefaultForm',
|
|
45
|
+
|
|
46
|
+
getPConnect: () => {
|
|
47
|
+
return {
|
|
48
|
+
getChildren: () => {
|
|
49
|
+
return [
|
|
50
|
+
{
|
|
51
|
+
getPConnect: () => {
|
|
52
|
+
return {
|
|
53
|
+
getChildren: () => {
|
|
54
|
+
return [
|
|
55
|
+
{
|
|
56
|
+
readOnly: undefined,
|
|
57
|
+
placeholder: 'First Name',
|
|
58
|
+
value: firstName,
|
|
59
|
+
label: 'First Name',
|
|
60
|
+
hasSuggestions: false,
|
|
61
|
+
onChange: val => {
|
|
62
|
+
setFirstName(val.target.value);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
readOnly: undefined,
|
|
67
|
+
placeholder: 'Middle Name',
|
|
68
|
+
value: middleName,
|
|
69
|
+
label: 'Middle Name',
|
|
70
|
+
hasSuggestions: false,
|
|
71
|
+
onChange: val => {
|
|
72
|
+
setMiddleName(val.target.value);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
{
|
|
77
|
+
value: lastName,
|
|
78
|
+
label: 'Last Name',
|
|
79
|
+
required: true,
|
|
80
|
+
placeholder: 'Last Name',
|
|
81
|
+
testId: '77587239BF4C54EA493C7033E1DBF636',
|
|
82
|
+
hasSuggestions: false,
|
|
83
|
+
onChange: val => {
|
|
84
|
+
setLastName(val.target.value);
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
{
|
|
89
|
+
readOnly: undefined,
|
|
90
|
+
value: phone,
|
|
91
|
+
label: 'Phone Number',
|
|
92
|
+
datasource: {
|
|
93
|
+
fields: {
|
|
94
|
+
value: undefined
|
|
95
|
+
},
|
|
96
|
+
source: [
|
|
97
|
+
{
|
|
98
|
+
value: '+1'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
value: '+91'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: '+48'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
value: '+44'
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
hasSuggestions: false,
|
|
112
|
+
onChange: val => {
|
|
113
|
+
setPhone(val.value);
|
|
114
|
+
},
|
|
115
|
+
onBlur: () => {
|
|
116
|
+
/* nothing */
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
{
|
|
121
|
+
value: suffix,
|
|
122
|
+
label: 'Suffix',
|
|
123
|
+
placeholder: 'Select...',
|
|
124
|
+
listType: 'associated',
|
|
125
|
+
datasource: [
|
|
126
|
+
{
|
|
127
|
+
key: 'Sr',
|
|
128
|
+
value: 'Sr'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: 'Jr',
|
|
132
|
+
value: 'Jr'
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: 'III',
|
|
136
|
+
value: 'III'
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
key: 'IV',
|
|
140
|
+
value: 'IV'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: 'V',
|
|
144
|
+
value: 'V'
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
testId: '56E6DDD1CB6CEC596B433440DFB21C17',
|
|
148
|
+
hasSuggestions: false,
|
|
149
|
+
deferDatasource: false,
|
|
150
|
+
getPConnect: () => {
|
|
151
|
+
return {
|
|
152
|
+
getContextName: () => {
|
|
153
|
+
return null;
|
|
154
|
+
},
|
|
155
|
+
getDataObject: () => {
|
|
156
|
+
return null;
|
|
157
|
+
},
|
|
158
|
+
getActionsApi: () => {
|
|
159
|
+
return {
|
|
160
|
+
updateFieldValue: (propName, value) => {
|
|
161
|
+
setSuffix(value);
|
|
162
|
+
},
|
|
163
|
+
triggerFieldChange: () => {
|
|
164
|
+
/* nothing */
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
getStateProps: () => {
|
|
169
|
+
return {
|
|
170
|
+
value: ''
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
onChange: val => {
|
|
176
|
+
setSuffix(val.target.value);
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
{
|
|
181
|
+
value: email,
|
|
182
|
+
label: 'Email',
|
|
183
|
+
required: true,
|
|
184
|
+
testId: 'CE8AE9DA5B7CD6C3DF2929543A9AF92D',
|
|
185
|
+
hasSuggestions: false,
|
|
186
|
+
onChange: val => {
|
|
187
|
+
setEmail(val.target.value);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
];
|
|
196
|
+
},
|
|
197
|
+
getValue: (val) => {
|
|
198
|
+
return val;
|
|
199
|
+
},
|
|
200
|
+
getCurrentView: () => {
|
|
201
|
+
return "";
|
|
202
|
+
},
|
|
203
|
+
getCurrentClassID: () => {
|
|
204
|
+
return "";
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
return (
|
|
211
|
+
<>
|
|
212
|
+
<{{COMPONENT_CLASS_NAME}} {...props}></{{COMPONENT_CLASS_NAME}}>
|
|
213
|
+
</>
|
|
214
|
+
);
|
|
215
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- When adding a component here, add the same component in 'region' template as well -->
|
|
2
|
+
{{! pick new delimiters for mustache }}
|
|
3
|
+
{{=<% %>=}}
|
|
4
|
+
<div *ngIf="!NO_HEADER_TEMPLATES.includes(template) && showLabel">
|
|
5
|
+
<div class="template-title-container">{{label}}</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div *ngIf="instructions" class='psdk-default-form-instruction-text'>
|
|
8
|
+
<div key="instructions" id="instruction-text" [innerHTML]="instructions">
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div [className]="divClass$">
|
|
12
|
+
<div *ngFor="let kid of arChildren$" [ngClass]="{ 'grid-column': kid.getPConnect().getComponentName() === 'View' }">
|
|
13
|
+
<component-mapper
|
|
14
|
+
[name]="kid.getPConnect().getComponentName()"
|
|
15
|
+
[props]="{
|
|
16
|
+
pConn$: kid.getPConnect(),
|
|
17
|
+
formGroup$: formGroup$
|
|
18
|
+
}"
|
|
19
|
+
errorMsg="<%COMPONENT_CLASS_NAME%> wants component not yet available: {{ kid.getPConnect().getComponentName() }}"
|
|
20
|
+
></component-mapper>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '@pega/angular-sdk-library/_shared/styles.scss';
|
|
2
|
+
|
|
3
|
+
.psdk-default-form-one-column {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
6
|
+
gap: calc(1rem);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.psdk-default-form-two-column {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(2, 1fr);
|
|
12
|
+
gap: calc(1rem);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.psdk-default-form-three-column {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: repeat(3, 1fr);
|
|
18
|
+
gap: calc(1rem);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.psdk-default-form-two-column .grid-column {
|
|
22
|
+
grid-column: 1 / span 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.psdk-default-form-three-column .grid-column {
|
|
26
|
+
grid-column: 1 / span 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.template-title-container {
|
|
30
|
+
font-size: calc(0.9375rem);
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
margin: 10px 0px;
|
|
33
|
+
}
|
|
@@ -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
|
+
});
|