@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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* eslint-disable react/no-
|
|
2
|
-
import React, { createElement } from
|
|
3
|
-
import PropTypes from
|
|
1
|
+
/* eslint-disable react/no-danger */
|
|
2
|
+
import React, { createElement } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
|
-
import { getInstructions } from
|
|
6
|
-
import createPConnectComponent from
|
|
7
|
-
import
|
|
5
|
+
import { getInstructions } from './utils';
|
|
6
|
+
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
7
|
+
import './DefaultForm.css';
|
|
8
8
|
|
|
9
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
|
|
10
10
|
|
|
@@ -15,23 +15,22 @@ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
|
|
|
15
15
|
export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
16
16
|
const { getPConnect, NumCols } = props;
|
|
17
17
|
const instructions = getInstructions(getPConnect(), props.instructions);
|
|
18
|
-
const instructionText = instructions?.replace(/<\/?[^>]+(>|$)/g, "");
|
|
19
18
|
|
|
20
19
|
let divClass: string;
|
|
21
20
|
|
|
22
|
-
const numCols = NumCols ||
|
|
21
|
+
const numCols = NumCols || '1';
|
|
23
22
|
switch (numCols) {
|
|
24
|
-
case
|
|
25
|
-
divClass =
|
|
23
|
+
case '1':
|
|
24
|
+
divClass = 'psdk-default-form-one-column';
|
|
26
25
|
break;
|
|
27
|
-
case
|
|
28
|
-
divClass =
|
|
26
|
+
case '2':
|
|
27
|
+
divClass = 'psdk-default-form-two-column';
|
|
29
28
|
break;
|
|
30
|
-
case
|
|
31
|
-
divClass =
|
|
29
|
+
case '3':
|
|
30
|
+
divClass = 'psdk-default-form-three-column';
|
|
32
31
|
break;
|
|
33
32
|
default:
|
|
34
|
-
divClass =
|
|
33
|
+
divClass = 'psdk-default-form-one-column';
|
|
35
34
|
break;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -40,21 +39,32 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
40
39
|
// defaultForm kids
|
|
41
40
|
const arChildren = getPConnect().getChildren()[0].getPConnect().getChildren();
|
|
42
41
|
const dfChildren = arChildren.map((kid, idx) =>
|
|
42
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
43
43
|
createElement(createPConnectComponent(), { ...kid, key: idx })
|
|
44
44
|
);
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
47
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
<>
|
|
49
|
+
{instructions && (
|
|
50
|
+
<div className='psdk-default-form-instruction-text'>
|
|
51
|
+
{/* server performs sanitization method for instructions html content */}
|
|
52
|
+
<div key="instructions"
|
|
53
|
+
{{! pick new delimiters for mustache }}
|
|
54
|
+
{{=<% %>=}}
|
|
55
|
+
dangerouslySetInnerHTML={{ __html: instructions }}
|
|
56
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
)}
|
|
60
|
+
<div className={divClass}>{dfChildren}</div>
|
|
61
|
+
</>
|
|
52
62
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
53
63
|
);
|
|
54
64
|
}
|
|
55
65
|
|
|
56
66
|
{{COMPONENT_CLASS_NAME}}.defaultProps = {
|
|
57
|
-
NumCols:
|
|
67
|
+
NumCols: '1',
|
|
58
68
|
};
|
|
59
69
|
|
|
60
70
|
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
@@ -31,7 +31,7 @@ const renderField = resolvedProps => {
|
|
|
31
31
|
/>
|
|
32
32
|
</MuiPickersUtilsProvider>
|
|
33
33
|
|
|
34
|
-
{{! pick new
|
|
34
|
+
{{! pick new delimiters for mustache }}
|
|
35
35
|
{{=<% %>=}}
|
|
36
36
|
|
|
37
37
|
if (label === 'Email')
|
|
@@ -43,7 +43,7 @@ const renderField = resolvedProps => {
|
|
|
43
43
|
if (label === 'Phone Number')
|
|
44
44
|
val = <MuiPhoneNumber value={value} variant='outlined' size='small' style={{ fontSize: '14px' }} defaultCountry='us' label={label} onChange={onChange}></MuiPhoneNumber>;
|
|
45
45
|
|
|
46
|
-
<%={{ }}=%> {{! revert
|
|
46
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
47
47
|
|
|
48
48
|
if (variant === 'inline') {
|
|
49
49
|
val = value || <span aria-hidden='true'>––</span>;
|
|
@@ -49,6 +49,7 @@ export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
|
49
49
|
if(config.type === 'AppAnnouncement') {
|
|
50
50
|
return (
|
|
51
51
|
<AppAnnouncement
|
|
52
|
+
key='announcement'
|
|
52
53
|
header='Announcements'
|
|
53
54
|
description={configProps.description}
|
|
54
55
|
image={configProps.image.replace(/ /g, '+')}
|
|
@@ -45,9 +45,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
45
45
|
// let waitingForData = true;
|
|
46
46
|
|
|
47
47
|
const displayedColumns = [
|
|
48
|
-
{ label:
|
|
49
|
-
{ label:
|
|
50
|
-
{ label:
|
|
48
|
+
{ label: thePConn.getLocalizedValue('Date'), type: "DateTime", fieldName: "pxTimeCreated" },
|
|
49
|
+
{ label: thePConn.getLocalizedValue('Description'), type: "TextInput", fieldName: "pyMessageKey" },
|
|
50
|
+
{ label: thePConn.getLocalizedValue('Performed by'), type: "TextInput", fieldName: "pyPerformer" }
|
|
51
51
|
];
|
|
52
52
|
|
|
53
53
|
const rowData: any = useRef([]);
|
|
@@ -59,6 +59,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
59
59
|
const dataViewName = "D_pyWorkHistory";
|
|
60
60
|
const context = thePConn.getContextName();
|
|
61
61
|
|
|
62
|
+
|
|
62
63
|
function computeRowData(rows: Array<Object>): void {
|
|
63
64
|
const theRowData: Array<Object> = [];
|
|
64
65
|
|
|
@@ -62,16 +62,16 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
{{COMPONENT_CLASS_NAME}}.defaultProps = {
|
|
65
|
-
header: PropTypes.string,
|
|
66
|
-
description: PropTypes.string,
|
|
67
|
-
datasource: PropTypes.instanceOf(Object),
|
|
68
|
-
whatsnewlink: PropTypes.string
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
72
65
|
header: "",
|
|
73
66
|
description: "",
|
|
74
67
|
// image: "",
|
|
75
68
|
datasource: [],
|
|
76
69
|
whatsnewlink: ""
|
|
77
70
|
};
|
|
71
|
+
|
|
72
|
+
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
73
|
+
header: PropTypes.string,
|
|
74
|
+
description: PropTypes.string,
|
|
75
|
+
datasource: PropTypes.instanceOf(Object),
|
|
76
|
+
whatsnewlink: PropTypes.string
|
|
77
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { caseOpConfig, operatorDetails } from './mock.stories';
|
|
4
4
|
|
|
5
5
|
import {{COMPONENT_CLASS_NAME}} from './index.tsx';
|
|
6
6
|
|
|
@@ -27,15 +27,7 @@ window.PCore.getUserApi = () => {
|
|
|
27
27
|
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
28
28
|
|
|
29
29
|
const props = {
|
|
30
|
-
|
|
31
|
-
createLabel: configProps.createLabel,
|
|
32
|
-
updateLabel: configProps.updateLabel,
|
|
33
|
-
createOperator: configProps.createOperator,
|
|
34
|
-
updateOperator: configProps.updateOperator,
|
|
35
|
-
createDateTime: configProps.createDateTime,
|
|
36
|
-
updateDateTime: configProps.updateDateTime,
|
|
37
|
-
hideLabel: configProps.hideLabel,
|
|
38
|
-
|
|
30
|
+
caseOpConfig,
|
|
39
31
|
getPConnect: () => {
|
|
40
32
|
return {
|
|
41
33
|
getActionsApi: () => {
|
|
@@ -32,34 +32,33 @@ const useStyles = makeStyles((theme) => ({
|
|
|
32
32
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
33
33
|
export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
34
34
|
// const componentName = "Operator";
|
|
35
|
-
const {
|
|
36
|
-
label,
|
|
37
|
-
createLabel,
|
|
38
|
-
updateLabel,
|
|
39
|
-
createOperator,
|
|
40
|
-
updateOperator,
|
|
41
|
-
createDateTime,
|
|
42
|
-
updateDateTime
|
|
43
|
-
} = props;
|
|
44
35
|
const classes = useStyles();
|
|
45
36
|
|
|
46
|
-
const
|
|
37
|
+
// const versionAr = pCoreVersion.split(".");
|
|
38
|
+
// let fieldLabel;
|
|
47
39
|
let caseOpLabel = "---";
|
|
48
40
|
let caseOpName = "---";
|
|
49
41
|
let caseOpId = "";
|
|
50
42
|
let caseTime = null;
|
|
51
43
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
44
|
+
let updateOpLabel = "---";
|
|
45
|
+
let updateOpName = "---";
|
|
46
|
+
let updateOpId = "";
|
|
47
|
+
let updateTime = null;
|
|
48
|
+
|
|
49
|
+
// fieldLabel = props.fieldLabel;
|
|
50
|
+
caseOpLabel = props.createLabel;
|
|
51
|
+
caseOpName = props.createOperator.userName;
|
|
52
|
+
caseTime = props.createDateTime;
|
|
53
|
+
caseOpId = props.createOperator.userId;
|
|
54
|
+
|
|
55
|
+
updateOpLabel = props.updateLabel;
|
|
56
|
+
updateOpName = props.updateOperator.userName;
|
|
57
|
+
updateTime = props.updateDateTimeDateTime;
|
|
58
|
+
updateOpId = props.updateOperator.userId;
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
63
62
|
|
|
64
63
|
// Popover-related
|
|
65
64
|
const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);
|
|
@@ -75,6 +74,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
75
74
|
function showOperatorDetails(event) {
|
|
76
75
|
|
|
77
76
|
const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);
|
|
77
|
+
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
78
|
+
const localeCategory = 'Operator';
|
|
78
79
|
|
|
79
80
|
operatorPreviewPromise.then((res) => {
|
|
80
81
|
const fillerString = "---";
|
|
@@ -87,27 +88,27 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
87
88
|
fields = [
|
|
88
89
|
{
|
|
89
90
|
id: "pyPosition",
|
|
90
|
-
name: "Position",
|
|
91
|
+
name: localizedVal("Position", localeCategory),
|
|
91
92
|
value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString
|
|
92
93
|
},
|
|
93
94
|
{
|
|
94
95
|
id: "pyOrganization",
|
|
95
|
-
name: "Organization",
|
|
96
|
+
name: localizedVal("Organization", localeCategory),
|
|
96
97
|
value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString
|
|
97
98
|
},
|
|
98
99
|
{
|
|
99
100
|
id: "ReportToUserName",
|
|
100
|
-
name:
|
|
101
|
+
name: localizedVal('Reports to', localeCategory),
|
|
101
102
|
value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
105
|
id: "pyTelephone",
|
|
105
|
-
name:
|
|
106
|
+
name: localizedVal('Telephone', localeCategory),
|
|
106
107
|
value: res.data.pyOperatorInfo.pyTelephone ? <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a> : fillerString
|
|
107
108
|
},
|
|
108
109
|
{
|
|
109
110
|
id: "pyEmailAddress",
|
|
110
|
-
name:
|
|
111
|
+
name: localizedVal('Email address', localeCategory),
|
|
111
112
|
value: res.data.pyOperatorInfo.pyEmailAddress ? <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a> : fillerString
|
|
112
113
|
}
|
|
113
114
|
];
|
|
@@ -117,27 +118,106 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
117
118
|
fields = [
|
|
118
119
|
{
|
|
119
120
|
id: "pyPosition",
|
|
120
|
-
name: "Position",
|
|
121
|
+
name: localizedVal("Position", localeCategory),
|
|
121
122
|
value: fillerString
|
|
122
123
|
},
|
|
123
124
|
{
|
|
124
125
|
id: "pyOrganization",
|
|
125
|
-
name: "Organization",
|
|
126
|
+
name: localizedVal("Organization", localeCategory),
|
|
126
127
|
value: fillerString
|
|
127
128
|
},
|
|
128
129
|
{
|
|
129
130
|
id: "ReportToUserName",
|
|
130
|
-
name:
|
|
131
|
+
name: localizedVal('Reports to', localeCategory),
|
|
131
132
|
value: fillerString
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
id: "pyTelephone",
|
|
135
|
-
name:
|
|
136
|
+
name: localizedVal('Telephone', localeCategory),
|
|
136
137
|
value: fillerString
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
id: "pyEmailAddress",
|
|
140
|
-
name:
|
|
141
|
+
name: localizedVal('Email address', localeCategory),
|
|
142
|
+
value: fillerString
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
}
|
|
146
|
+
// Whatever the fields are, update the component's popoverFields
|
|
147
|
+
setPopoverFields(fields);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
setPopoverAnchorEl(event.currentTarget);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function showUpdateOperatorDetails(event) {
|
|
154
|
+
|
|
155
|
+
const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(updateOpId);
|
|
156
|
+
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
157
|
+
const localeCategory = 'Operator';
|
|
158
|
+
|
|
159
|
+
operatorPreviewPromise.then((res) => {
|
|
160
|
+
const fillerString = "---";
|
|
161
|
+
let fields: any = [];
|
|
162
|
+
if (
|
|
163
|
+
res.data &&
|
|
164
|
+
res.data.pyOperatorInfo &&
|
|
165
|
+
res.data.pyOperatorInfo.pyUserName
|
|
166
|
+
) {
|
|
167
|
+
fields = [
|
|
168
|
+
{
|
|
169
|
+
id: "pyPosition",
|
|
170
|
+
name: localizedVal("Position", localeCategory),
|
|
171
|
+
value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "pyOrganization",
|
|
175
|
+
name: localizedVal("Organization", localeCategory),
|
|
176
|
+
value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "ReportToUserName",
|
|
180
|
+
name: localizedVal('Reports to', localeCategory),
|
|
181
|
+
value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: "pyTelephone",
|
|
185
|
+
name: localizedVal('Telephone', localeCategory),
|
|
186
|
+
value: res.data.pyOperatorInfo.pyTelephone ? <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a> : fillerString
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: "pyEmailAddress",
|
|
190
|
+
name: localizedVal('Email address', localeCategory),
|
|
191
|
+
value: res.data.pyOperatorInfo.pyEmailAddress ? <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a> : fillerString
|
|
192
|
+
}
|
|
193
|
+
];
|
|
194
|
+
} else {
|
|
195
|
+
// eslint-disable-next-line no-console
|
|
196
|
+
console.log(`Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`);
|
|
197
|
+
fields = [
|
|
198
|
+
{
|
|
199
|
+
id: "pyPosition",
|
|
200
|
+
name: localizedVal("Position", localeCategory),
|
|
201
|
+
value: fillerString
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: "pyOrganization",
|
|
205
|
+
name: localizedVal("Organization", localeCategory),
|
|
206
|
+
value: fillerString
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: "ReportToUserName",
|
|
210
|
+
name: localizedVal('Reports to', localeCategory),
|
|
211
|
+
value: fillerString
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: "pyTelephone",
|
|
215
|
+
name: localizedVal('Telephone', localeCategory),
|
|
216
|
+
value: fillerString
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: "pyEmailAddress",
|
|
220
|
+
name: localizedVal('Email address', localeCategory),
|
|
141
221
|
value: fillerString
|
|
142
222
|
}
|
|
143
223
|
];
|
|
@@ -177,33 +257,55 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
|
|
|
177
257
|
|
|
178
258
|
|
|
179
259
|
return <Styled{{COMPONENT_CLASS_NAME}}Wrapper><React.Fragment>
|
|
260
|
+
{{! pick new delimiters for mustache }}
|
|
261
|
+
{{=<% %>=}}
|
|
262
|
+
<Grid container spacing={2}>
|
|
263
|
+
<Grid item>
|
|
180
264
|
<TextField
|
|
181
265
|
defaultValue={caseOpName}
|
|
182
266
|
label={caseOpLabel}
|
|
183
267
|
onClick={showOperatorDetails}
|
|
184
|
-
|
|
185
|
-
{{=<% %>=}}
|
|
268
|
+
|
|
186
269
|
InputProps={{
|
|
187
270
|
readOnly: true,
|
|
188
271
|
disableUnderline: true,
|
|
189
272
|
inputProps: {style: {cursor: 'pointer'}}
|
|
190
273
|
}}
|
|
191
|
-
|
|
274
|
+
|
|
192
275
|
/>
|
|
193
276
|
<br />
|
|
194
277
|
{Utils.generateDateTime(caseTime, "DateTime-Since")}
|
|
278
|
+
</Grid>
|
|
279
|
+
<Grid item>
|
|
280
|
+
<TextField
|
|
281
|
+
defaultValue={updateOpName}
|
|
282
|
+
label={updateOpLabel}
|
|
283
|
+
onClick={showUpdateOperatorDetails}
|
|
284
|
+
|
|
285
|
+
InputProps={{
|
|
286
|
+
readOnly: true,
|
|
287
|
+
disableUnderline: true,
|
|
288
|
+
inputProps: {style: {cursor: 'pointer'}}
|
|
289
|
+
}}
|
|
290
|
+
|
|
291
|
+
/>
|
|
292
|
+
<br />
|
|
293
|
+
{Utils.generateDateTime(updateTime, "DateTime-Since")}
|
|
294
|
+
</Grid>
|
|
295
|
+
</Grid>
|
|
296
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
195
297
|
|
|
196
298
|
<Popover
|
|
197
299
|
id={popoverId}
|
|
198
300
|
open={popoverOpen}
|
|
199
301
|
anchorEl={popoverAnchorEl}
|
|
200
302
|
onClose={handlePopoverClose}
|
|
201
|
-
{{! pick new
|
|
303
|
+
{{! pick new delimiters for mustache }}
|
|
202
304
|
{{=<% %>=}}
|
|
203
305
|
anchorOrigin={{ vertical: 'bottom', horizontal: 'center'}}
|
|
204
306
|
transformOrigin={{ vertical: 'top', horizontal: 'center'}}
|
|
205
307
|
PaperProps={{ style: {maxWidth: '45ch'}}}
|
|
206
|
-
<%={{ }}=%> {{! revert
|
|
308
|
+
<%={{ }}=%> {{! revert delimiters for mustache }}
|
|
207
309
|
>
|
|
208
310
|
{getPopoverGrid()}
|
|
209
311
|
</Popover>
|