@pega/custom-dx-components 0.23.19 → 0.23.21
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 +35 -35
- package/src/constants.js +14 -3
- package/src/tasks/authenticate/helper.js +44 -32
- package/src/tasks/authenticate/index.js +4 -1
- package/src/tasks/build-all/index.js +1 -1
- package/src/tasks/{build → build-comp}/index.js +1 -1
- package/src/tasks/create/index.js +20 -7
- package/src/tasks/create/templates/Constellation/Field/Boolean/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/{boolean-format.js.mustache → boolean-format.ts.mustache} +2 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/{index.jsx.mustache → index.tsx.mustache} +35 -9
- package/src/tasks/create/templates/Constellation/Field/Boolean/{mock.stories.js.mustache → mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/{DateTime/styles.js.mustache → Boolean/styles.ts.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Date/{index.jsx.mustache → index.tsx.mustache} +82 -37
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.stories.js → src/tasks/create/templates/Constellation/Field/Date/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/{Boolean/styles.js.mustache → Date/styles.ts.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +1 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/DateTime/{index.jsx.mustache → index.tsx.mustache} +64 -21
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js → src/tasks/create/templates/Constellation/Field/DateTime/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/{Decimal-Currency/styles.js.mustache → DateTime/styles.ts.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.ts +10 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/{index.jsx.mustache → index.tsx.mustache} +38 -8
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js → src/tasks/create/templates/Constellation/Field/Decimal/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{index.jsx.mustache → index.tsx.mustache} +50 -13
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js → src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/{Date/styles.js.mustache → Decimal-Currency/styles.ts.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{index.jsx.mustache → index.tsx.mustache} +37 -7
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{mock.stories.js.mustache → mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/{index.jsx.mustache → index.tsx.mustache} +52 -10
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.stories.js → src/tasks/create/templates/Constellation/Field/Integer/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/{index.jsx.mustache → index.tsx.mustache} +54 -14
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.ts +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/component-constants.js +5 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +115 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.jsx.mustache +90 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +310 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/format-constants.js.mustache +41 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1238 -0
- package/src/tasks/create/templates/Constellation/Field/{Picklist/mock.stories.js.mustache → Picklist-Autocomplete/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +88 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +657 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.jsx.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +218 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +113 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.jsx.mustache +85 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +243 -0
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache +161 -0
- package/src/tasks/create/templates/Constellation/Field/Text/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text/{index.jsx.mustache → index.tsx.mustache} +17 -5
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/PConnProps.d.ts +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/{index.jsx.mustache → index.tsx.mustache} +30 -11
- package/src/tasks/create/templates/Constellation/Field/Text-Email/{mock.stories.js.mustache → mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +30 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/{index.jsx.mustache → index.tsx.mustache} +54 -30
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text-Input/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/{index.jsx.mustache → index.tsx.mustache} +30 -12
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/{index.jsx.mustache → index.tsx.mustache} +37 -15
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/{mock.stories.js.mustache → mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.ts.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/{index.jsx.mustache → index.tsx.mustache} +39 -10
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text-URL/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Field/{TimeofDay/index.jsx.mustache → TimeOfDay/index.tsx.mustache} +46 -15
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js → src/tasks/create/templates/Constellation/Field/TimeOfDay/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/suggestions-handler.ts.mustache +9 -0
- package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/time-of-day.js.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/StatusWork.jsx.mustache → DETAILS/StatusWork.tsx.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +9 -7
- package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/index.jsx.mustache → DETAILS/index.tsx.mustache} +22 -4
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js → src/tasks/create/templates/Constellation/Template/DETAILS/mock.js.mustache} +3 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +2 -3
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/{Field/Text-Input/StatusWork.jsx → Template/DETAILS-region/StatusWork.tsx.mustache} +2 -2
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +4 -3
- package/src/tasks/create/templates/Constellation/Template/{DETAILS/index.jsx.mustache → DETAILS-region/index.tsx.mustache} +21 -4
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/{mock.stories.js.mustache → mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +0 -4
- package/src/tasks/create/templates/Constellation/Template/FORM/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +17 -12
- package/src/tasks/create/templates/Constellation/Template/FORM/{index.jsx.mustache → index.tsx.mustache} +11 -6
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js → src/tasks/create/templates/Constellation/Template/FORM/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +8 -7
- package/src/tasks/create/templates/Constellation/Template/FORM-region/{index.jsx.mustache → index.tsx.mustache} +14 -2
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js → src/tasks/create/templates/Constellation/Template/FORM-region/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/{GetNextWork.jsx.mustache → GetNextWork.tsx.mustache} +13 -5
- package/src/tasks/create/templates/Constellation/Template/PAGE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Template/PAGE/{index.jsx.mustache → index.tsx.mustache} +18 -5
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js → src/tasks/create/templates/Constellation/Template/PAGE/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +1 -3
- package/src/tasks/create/templates/Constellation/Widget/CASE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Widget/CASE/{index.jsx.mustache → index.tsx.mustache} +19 -9
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.stories.js → src/tasks/create/templates/Constellation/Widget/CASE/mock.js.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE/{index.jsx.mustache → index.tsx.mustache} +14 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/{mock.stories.js.mustache → mock.js.mustache} +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Avatar.jsx.mustache → Avatar.tsx.mustache} +21 -9
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Operator.jsx.mustache → Operator.tsx.mustache} +30 -8
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +4 -2
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{index.jsx.mustache → index.tsx.mustache} +25 -3
- package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js → src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.ts.mustache +15 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +5 -2
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Widget/CASE/{mock.stories.js.mustache → mock.js.mustache} +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +2 -3
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +1 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +4 -2
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +1 -1
- package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js → src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.js.mustache} +2 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +1 -0
- package/src/tasks/create-all/index.js +9 -1
- package/src/tasks/index.js +1 -1
- package/src/tasks/init/helper.js +0 -1
- package/src/tasks/init/index.js +31 -16
- package/src/tasks/init/template/.eslintrc.json +15 -10
- package/src/tasks/init/template/.storybook/main.js +12 -0
- package/src/tasks/init/template/.storybook/preview.js +14 -0
- package/src/tasks/init/template/package.json.mustache +36 -35
- package/src/tasks/publish/helper.js +34 -14
- package/src/tasks/publish/index.js +1 -1
- package/src/tasks/publish-all/helper.js +42 -16
- package/src/tasks/publish-all/index.js +1 -1
- package/src/tasks/revert-webpack/index.js +5 -7
- package/src/tasks/upgrade/index.js +1 -1
- package/src/util.js +68 -44
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +18 -9
- package/tests/assets/components/create/Pega_DXIL_MyTestText/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/config.json +115 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/utils.js +182 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +9 -5
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +24 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +0 -1
- package/{src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.js} +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +25 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +2 -1
- package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +22 -8
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +1 -2
- package/{src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +22 -8
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +1 -2
- package/{src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +22 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +1 -1
- package/{src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +4 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/{mock.stories.js → mock.js} +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +2 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyEmail/mock.stories.js → Constellation/Pega_DXIL_MyEmail/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +17 -20
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +22 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +2 -2
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyInteger/mock.stories.js → Constellation/Pega_DXIL_MyInteger/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +1 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +22 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +3 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +1 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -3
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +24 -11
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +2 -0
- package/{src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +6 -6
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js → Constellation/Pega_DXIL_MyPageWidget/mock.js} +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyParagraph/mock.stories.js → Constellation/Pega_DXIL_MyParagraph/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +22 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPercentage/mock.stories.js → Constellation/Pega_DXIL_MyPercentage/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +22 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +3 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +113 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.jsx +91 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.js +69 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/Date → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +18 -9
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyText/mock.stories.js → Constellation/Pega_DXIL_MyText/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -15
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +22 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +1 -1
- package/{src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +20 -7
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +1 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +3 -3
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js → Constellation/Pega_DXIL_MyTwoColumnDetails/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +7 -10
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +22 -9
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +1 -1
- package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyURL/mock.stories.js → Constellation/Pega_DXIL_MyURL/mock.js} +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/config.json +115 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/utils.js +182 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +9 -5
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +23 -12
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{mock.stories.js → mock.js} +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +24 -11
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +2 -1
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyCurrency/mock.stories.js → Launchpad/Pega_DXIL_MyCurrency/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +22 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +1 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +22 -8
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +1 -2
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDateTime/mock.stories.js → Launchpad/Pega_DXIL_MyDateTime/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +1 -1
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDecimal/mock.stories.js → Launchpad/Pega_DXIL_MyDecimal/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +6 -4
- package/{src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.js} +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +2 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +1 -1
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyEmail/mock.stories.js → Launchpad/Pega_DXIL_MyEmail/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +24 -22
- package/{src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +2 -2
- package/{src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +1 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +21 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +3 -2
- package/{src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +1 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -3
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +24 -13
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -1
- package/{src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +5 -7
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPageWidget/mock.stories.js → Launchpad/Pega_DXIL_MyPageWidget/mock.js} +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +1 -1
- package/{src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +1 -1
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPercentage/mock.stories.js → Launchpad/Pega_DXIL_MyPercentage/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +21 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +3 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +113 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.jsx +89 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.js +69 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.js +15 -0
- package/{src/tasks/create/templates/Constellation/Field/DateTime → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +18 -9
- package/{src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -15
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +21 -10
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +1 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{mock.stories.js → mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +19 -7
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +1 -1
- package/{src/tasks/create/templates/Constellation/Field/TimeofDay/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +5 -4
- package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTwoColumnDetails/mock.stories.js → Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +14 -12
- package/{src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +21 -9
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +1 -1
- package/{src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.js} +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +0 -18
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.js +0 -10
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +0 -26
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +0 -14
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +0 -14
- package/src/tasks/init/template/.storybook/main.cjs +0 -6
- package/src/tasks/init/template/.storybook/package.json +0 -1
- package/src/tasks/init/template/.storybook/preview.tsx +0 -44
- /package/src/tasks/{build → build-comp}/helper.js +0 -0
- /package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/config.json.mustache +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
- /package/{src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
2
|
import { useState } from 'react';
|
|
2
3
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
3
4
|
|
|
4
|
-
import { stateProps, configProps } from './mock
|
|
5
|
-
|
|
5
|
+
import { stateProps, configProps } from './mock';
|
|
6
6
|
import PegaDxilMyText from './index.jsx';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
@@ -11,8 +11,7 @@ export default {
|
|
|
11
11
|
component: PegaDxilMyText
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14
|
+
export const BasePegaDxilMyText = () => {
|
|
16
15
|
const [value, setValue] = useState(configProps.value);
|
|
17
16
|
|
|
18
17
|
const props = {
|
|
@@ -32,13 +31,23 @@ export const basePegaDxilMyText = () => {
|
|
|
32
31
|
updateFieldValue: (propName, theValue) => {
|
|
33
32
|
setValue(theValue);
|
|
34
33
|
},
|
|
35
|
-
triggerFieldChange: () => {
|
|
34
|
+
triggerFieldChange: () => {
|
|
35
|
+
/* nothing */
|
|
36
|
+
}
|
|
36
37
|
};
|
|
37
38
|
},
|
|
38
|
-
ignoreSuggestion: () => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
ignoreSuggestion: () => {
|
|
40
|
+
/* nothing */
|
|
41
|
+
},
|
|
42
|
+
acceptSuggestion: () => {
|
|
43
|
+
/* nothing */
|
|
44
|
+
},
|
|
45
|
+
setInheritedProps: () => {
|
|
46
|
+
/* nothing */
|
|
47
|
+
},
|
|
48
|
+
resolveConfigProps: () => {
|
|
49
|
+
/* nothing */
|
|
50
|
+
}
|
|
42
51
|
};
|
|
43
52
|
}
|
|
44
53
|
};
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Status } from
|
|
1
|
+
import { Status } from '@pega/cosmos-react-core';
|
|
2
2
|
|
|
3
3
|
export default function StatusWorkRenderer({ value }) {
|
|
4
|
-
let variant =
|
|
4
|
+
let variant = 'info';
|
|
5
5
|
|
|
6
|
-
const warnStrings = [
|
|
7
|
-
const infoStrings = [
|
|
8
|
-
const successStrings = [
|
|
9
|
-
const pendingStrings = [
|
|
6
|
+
const warnStrings = ['fail', 'cancel', 'reject', 'revoke', 'stopped', 'warn'];
|
|
7
|
+
const infoStrings = ['open', 'hold', 'info', 'new'];
|
|
8
|
+
const successStrings = ['resolved', 'completed', 'success'];
|
|
9
|
+
const pendingStrings = ['pending'];
|
|
10
10
|
|
|
11
|
-
if (new RegExp(warnStrings.join(
|
|
12
|
-
variant =
|
|
13
|
-
} else if (new RegExp(infoStrings.join(
|
|
14
|
-
variant =
|
|
15
|
-
} else if (new RegExp(successStrings.join(
|
|
16
|
-
variant =
|
|
17
|
-
} else if (new RegExp(pendingStrings.join(
|
|
18
|
-
variant =
|
|
11
|
+
if (new RegExp(warnStrings.join('|'), 'i').test(value)) {
|
|
12
|
+
variant = 'warn';
|
|
13
|
+
} else if (new RegExp(infoStrings.join('|'), 'i').test(value)) {
|
|
14
|
+
variant = 'info';
|
|
15
|
+
} else if (new RegExp(successStrings.join('|'), 'i').test(value)) {
|
|
16
|
+
variant = 'success';
|
|
17
|
+
} else if (new RegExp(pendingStrings.join('|'), 'i').test(value)) {
|
|
18
|
+
variant = 'pending';
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
|
-
<Status type=
|
|
22
|
+
<Status type='rectangle' variant={variant}>
|
|
23
23
|
{value}
|
|
24
24
|
</Status>
|
|
25
25
|
);
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
2
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
3
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
4
|
|
|
3
5
|
import PegaDxilMyTextInput from './index.jsx';
|
|
4
6
|
|
|
5
|
-
import { stateProps, fieldMetadata, configProps } from './mock
|
|
7
|
+
import { stateProps, fieldMetadata, configProps } from './mock';
|
|
6
8
|
|
|
7
9
|
export default {
|
|
8
10
|
title: 'PegaDxilMyTextInput',
|
|
@@ -10,8 +12,7 @@ export default {
|
|
|
10
12
|
component: PegaDxilMyTextInput
|
|
11
13
|
};
|
|
12
14
|
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
+
export const BasePegaDxilMyTextInput = () => {
|
|
15
16
|
const props = {
|
|
16
17
|
value: configProps.value,
|
|
17
18
|
placeholder: configProps.placeholder,
|
|
@@ -28,14 +29,26 @@ export const basePegaDxilMyTextInput = () => {
|
|
|
28
29
|
},
|
|
29
30
|
getActionsApi: () => {
|
|
30
31
|
return {
|
|
31
|
-
updateFieldValue: () => {
|
|
32
|
-
|
|
32
|
+
updateFieldValue: () => {
|
|
33
|
+
/* nothing */
|
|
34
|
+
},
|
|
35
|
+
triggerFieldChange: () => {
|
|
36
|
+
/* nothing */
|
|
37
|
+
}
|
|
33
38
|
};
|
|
34
39
|
},
|
|
35
|
-
ignoreSuggestion: () => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
ignoreSuggestion: () => {
|
|
41
|
+
/* nothing */
|
|
42
|
+
},
|
|
43
|
+
acceptSuggestion: () => {
|
|
44
|
+
/* nothing */
|
|
45
|
+
},
|
|
46
|
+
setInheritedProps: () => {
|
|
47
|
+
/* nothing */
|
|
48
|
+
},
|
|
49
|
+
resolveConfigProps: () => {
|
|
50
|
+
/* nothing */
|
|
51
|
+
}
|
|
39
52
|
};
|
|
40
53
|
}
|
|
41
54
|
};
|
|
@@ -100,7 +100,7 @@ const PegaDxilMyTextInput = props => {
|
|
|
100
100
|
} else if (!hasSuggestions && status !== 'success') {
|
|
101
101
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
102
102
|
}
|
|
103
|
-
}, [validatemessage, hasSuggestions]);
|
|
103
|
+
}, [validatemessage, hasSuggestions, status]);
|
|
104
104
|
|
|
105
105
|
const onResolveSuggestionHandler = (accepted) => {
|
|
106
106
|
suggestionsHandler(accepted, pConn, setStatus);
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
2
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
3
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
-
|
|
4
|
+
|
|
5
|
+
import { configProps, stateProps } from './mock';
|
|
3
6
|
import PegaDxilMyTimeOfDay from './index.jsx';
|
|
4
7
|
|
|
5
8
|
export default {
|
|
@@ -8,19 +11,25 @@ export default {
|
|
|
8
11
|
component: PegaDxilMyTimeOfDay
|
|
9
12
|
};
|
|
10
13
|
|
|
11
|
-
export const
|
|
14
|
+
export const BasePegaDxilMyTimeOfDay = () => {
|
|
12
15
|
const props = {
|
|
13
16
|
getPConnect: () => {
|
|
14
17
|
return {
|
|
15
18
|
getActionsApi: () => {
|
|
16
19
|
return {
|
|
17
|
-
updateFieldValue: () => {
|
|
18
|
-
|
|
20
|
+
updateFieldValue: () => {
|
|
21
|
+
/* nothing */
|
|
22
|
+
},
|
|
23
|
+
triggerFieldChange: () => {
|
|
24
|
+
/* nothing */
|
|
25
|
+
}
|
|
19
26
|
};
|
|
20
27
|
},
|
|
21
28
|
getValidationApi: () => {
|
|
22
29
|
return {
|
|
23
|
-
validate: () => {
|
|
30
|
+
validate: () => {
|
|
31
|
+
/* nothing */
|
|
32
|
+
}
|
|
24
33
|
};
|
|
25
34
|
},
|
|
26
35
|
getStateProps: () => {
|
|
@@ -29,8 +38,12 @@ export const basePegaDxilMyTimeOfDay = () => {
|
|
|
29
38
|
getConfigProps: () => {
|
|
30
39
|
return configProps;
|
|
31
40
|
},
|
|
32
|
-
ignoreSuggestion: () => {
|
|
33
|
-
|
|
41
|
+
ignoreSuggestion: () => {
|
|
42
|
+
/* nothing */
|
|
43
|
+
},
|
|
44
|
+
clearErrorMessages: () => {
|
|
45
|
+
/* nothing */
|
|
46
|
+
}
|
|
34
47
|
};
|
|
35
48
|
},
|
|
36
49
|
value: configProps.value,
|
|
@@ -58,7 +58,7 @@ const PegaDxilMyTimeOfDay = props => {
|
|
|
58
58
|
} else if (!hasSuggestions && status !== 'success') {
|
|
59
59
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
60
60
|
}
|
|
61
|
-
}, [validatemessage, hasSuggestions]);
|
|
61
|
+
}, [validatemessage, hasSuggestions, status]);
|
|
62
62
|
|
|
63
63
|
const onResolveSuggestionHandler = (accepted) => {
|
|
64
64
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
1
2
|
import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
|
|
2
3
|
import PegaDxilMyTwoColumnDetails from './index';
|
|
3
|
-
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock
|
|
4
|
+
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
|
|
4
5
|
import StatusWorkRenderer from './StatusWork.jsx';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
@@ -74,7 +75,7 @@ const renderField = resolvedProps => {
|
|
|
74
75
|
return <FieldValueList variant={variant} fields={[{ name: label, value: val }]} key={key} />;
|
|
75
76
|
};
|
|
76
77
|
|
|
77
|
-
export const
|
|
78
|
+
export const BasePegaDxilMyTwoColumnDetails = () => {
|
|
78
79
|
const props = {
|
|
79
80
|
template: 'MyCo_MyComponents_NewDetailsTemplate',
|
|
80
81
|
showHighlightedData: true,
|
|
@@ -95,7 +96,6 @@ export const basePegaDxilMyTwoColumnDetails = () => {
|
|
|
95
96
|
return pyReviewRaw.config.inheritedProps;
|
|
96
97
|
},
|
|
97
98
|
createComponent: config => {
|
|
98
|
-
// eslint-disable-next-line default-case
|
|
99
99
|
switch (config.config.value) {
|
|
100
100
|
case '@P .pyStatusWork':
|
|
101
101
|
return renderField(pyReviewResolved.highlightedData[0].config);
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
|
|
3
1
|
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -139,9 +137,7 @@ export function getInstructions(pConnect, instructions = 'casestep') {
|
|
|
139
137
|
|
|
140
138
|
// If the annotation wasn't processed correctly, don't return any instruction text
|
|
141
139
|
if (instructions?.startsWith('@PARAGRAPH')) {
|
|
142
|
-
/* eslint-disable no-console */
|
|
143
140
|
console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
|
|
144
|
-
/* eslint-enable no-console */
|
|
145
141
|
return undefined;
|
|
146
142
|
}
|
|
147
143
|
|
package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
2
3
|
import { useState } from 'react';
|
|
3
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
4
5
|
|
|
5
6
|
import PegaDxilMyTwoColumnForm from './index.jsx';
|
|
6
7
|
import { DateInput, Input, FieldValueList, Text } from '@pega/cosmos-react-core';
|
|
7
8
|
import { PhoneInput as CosmosPhone } from '@pega/cosmos-react-core';
|
|
8
|
-
import { pyReviewRaw, regionChildrenResolved } from './mock
|
|
9
|
+
import { pyReviewRaw, regionChildrenResolved } from './mock';
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
title: 'PegaDxilMyTwoColumnForm',
|
|
@@ -19,7 +20,6 @@ const renderField = resolvedProps => {
|
|
|
19
20
|
const [inputValue, setInputValue] = useState(value);
|
|
20
21
|
const [phoneValue, setPhoneValue] = useState('+16397975093');
|
|
21
22
|
|
|
22
|
-
|
|
23
23
|
const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
|
|
24
24
|
|
|
25
25
|
let val =
|
|
@@ -38,7 +38,6 @@ const renderField = resolvedProps => {
|
|
|
38
38
|
''
|
|
39
39
|
);
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
if (label === 'Service Date')
|
|
43
42
|
val = (
|
|
44
43
|
<DateInput
|
|
@@ -50,7 +49,7 @@ const renderField = resolvedProps => {
|
|
|
50
49
|
const trimmedDate = date ? date.substring(0, date.indexOf('T')) : date;
|
|
51
50
|
setInputValue(trimmedDate);
|
|
52
51
|
}}
|
|
53
|
-
|
|
52
|
+
/>
|
|
54
53
|
);
|
|
55
54
|
|
|
56
55
|
if (label === 'Email')
|
|
@@ -63,7 +62,7 @@ const renderField = resolvedProps => {
|
|
|
63
62
|
onChange={e => {
|
|
64
63
|
setInputValue(e.target.value);
|
|
65
64
|
}}
|
|
66
|
-
|
|
65
|
+
/>
|
|
67
66
|
);
|
|
68
67
|
|
|
69
68
|
if (label === 'First Name' || label === 'Last Name' || label === 'Middle Name')
|
|
@@ -75,7 +74,7 @@ const renderField = resolvedProps => {
|
|
|
75
74
|
onChange={e => {
|
|
76
75
|
setInputValue(e.target.value);
|
|
77
76
|
}}
|
|
78
|
-
|
|
77
|
+
/>
|
|
79
78
|
);
|
|
80
79
|
|
|
81
80
|
if (label === 'Phone Number')
|
|
@@ -88,10 +87,9 @@ const renderField = resolvedProps => {
|
|
|
88
87
|
onChange={phoneVal => {
|
|
89
88
|
setPhoneValue(phoneVal);
|
|
90
89
|
}}
|
|
91
|
-
|
|
90
|
+
/>
|
|
92
91
|
);
|
|
93
92
|
|
|
94
|
-
|
|
95
93
|
if (variant === 'inline') {
|
|
96
94
|
val = value || (
|
|
97
95
|
<span
|
|
@@ -130,7 +128,7 @@ const renderField = resolvedProps => {
|
|
|
130
128
|
);
|
|
131
129
|
};
|
|
132
130
|
|
|
133
|
-
export const
|
|
131
|
+
export const BasePegaDxilMyTwoColumnForm = () => {
|
|
134
132
|
const props = {
|
|
135
133
|
template: 'DefaultForm',
|
|
136
134
|
getPConnect: () => {
|
|
@@ -142,7 +140,6 @@ export const basePegaDxilMyTwoColumnForm = () => {
|
|
|
142
140
|
return pyReviewRaw.config.inheritedProps;
|
|
143
141
|
},
|
|
144
142
|
createComponent: config => {
|
|
145
|
-
// eslint-disable-next-line default-case
|
|
146
143
|
switch (config.config.value) {
|
|
147
144
|
case '@P .FirstName':
|
|
148
145
|
return renderField(regionChildrenResolved[0]);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
2
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
3
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
4
|
|
|
3
5
|
import PegaDxilMyUrl from './index.jsx';
|
|
4
|
-
import { stateProps, configProps } from './mock
|
|
6
|
+
import { stateProps, configProps } from './mock';
|
|
5
7
|
|
|
6
8
|
export default {
|
|
7
9
|
title: 'PegaDxilMyUrl',
|
|
@@ -9,8 +11,7 @@ export default {
|
|
|
9
11
|
component: PegaDxilMyUrl
|
|
10
12
|
};
|
|
11
13
|
|
|
12
|
-
export const
|
|
13
|
-
|
|
14
|
+
export const BasePegaDxilMyUrl = () => {
|
|
14
15
|
const props = {
|
|
15
16
|
value: configProps.value,
|
|
16
17
|
placeholder: configProps.placeholder,
|
|
@@ -26,14 +27,26 @@ export const basePegaDxilMyUrl = () => {
|
|
|
26
27
|
},
|
|
27
28
|
getActionsApi: () => {
|
|
28
29
|
return {
|
|
29
|
-
updateFieldValue: () => {
|
|
30
|
-
|
|
30
|
+
updateFieldValue: () => {
|
|
31
|
+
/* nothing */
|
|
32
|
+
},
|
|
33
|
+
triggerFieldChange: () => {
|
|
34
|
+
/* nothing */
|
|
35
|
+
}
|
|
31
36
|
};
|
|
32
37
|
},
|
|
33
|
-
ignoreSuggestion: () => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
ignoreSuggestion: () => {
|
|
39
|
+
/* nothing */
|
|
40
|
+
},
|
|
41
|
+
acceptSuggestion: () => {
|
|
42
|
+
/* nothing */
|
|
43
|
+
},
|
|
44
|
+
setInheritedProps: () => {
|
|
45
|
+
/* nothing */
|
|
46
|
+
},
|
|
47
|
+
resolveConfigProps: () => {
|
|
48
|
+
/* nothing */
|
|
49
|
+
}
|
|
37
50
|
};
|
|
38
51
|
}
|
|
39
52
|
};
|
|
@@ -66,7 +66,7 @@ const PegaDxilMyUrl = props => {
|
|
|
66
66
|
} else if (!hasSuggestions && status !== 'success') {
|
|
67
67
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
68
68
|
}
|
|
69
|
-
}, [validatemessage, hasSuggestions]);
|
|
69
|
+
}, [validatemessage, hasSuggestions, status]);
|
|
70
70
|
|
|
71
71
|
let displayComp = null;
|
|
72
72
|
if (displayMode) {
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Pega_DXIL_MyAutocomplete",
|
|
3
|
+
"label": "My Autocomplete",
|
|
4
|
+
"description": "My Autocomplete",
|
|
5
|
+
"organization": "Pega",
|
|
6
|
+
"version": "0.0.1",
|
|
7
|
+
"library": "DXIL",
|
|
8
|
+
"allowedApplications": [],
|
|
9
|
+
"componentKey": "Pega_DXIL_MyAutocomplete",
|
|
10
|
+
"type": "Field",
|
|
11
|
+
"subtype": "Picklist",
|
|
12
|
+
"icon": "images/pz-dropdown-active.svg",
|
|
13
|
+
"properties": [
|
|
14
|
+
{
|
|
15
|
+
"name": "label",
|
|
16
|
+
"label": "Field label",
|
|
17
|
+
"format": "TEXT",
|
|
18
|
+
"required": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "readOnly",
|
|
22
|
+
"label": "Edit mode",
|
|
23
|
+
"format": "READONLY"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "Column settings",
|
|
27
|
+
"format": "GROUP",
|
|
28
|
+
"visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
|
|
29
|
+
"properties": [
|
|
30
|
+
{
|
|
31
|
+
"name": "columnWidth",
|
|
32
|
+
"label": "Column width",
|
|
33
|
+
"format": "SELECT",
|
|
34
|
+
"source": [
|
|
35
|
+
{
|
|
36
|
+
"key": "auto",
|
|
37
|
+
"value": "Auto"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "custom",
|
|
41
|
+
"value": "Custom"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "width",
|
|
47
|
+
"label": "Width (px)",
|
|
48
|
+
"format": "NUMBER",
|
|
49
|
+
"visibility": "$this.columnWidth == 'custom'"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "Input settings",
|
|
55
|
+
"format": "GROUP",
|
|
56
|
+
"visibility": "(!readOnly = true)",
|
|
57
|
+
"properties": [
|
|
58
|
+
{
|
|
59
|
+
"name": "placeholder",
|
|
60
|
+
"label": "Placeholder",
|
|
61
|
+
"format": "TEXT"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "helperText",
|
|
65
|
+
"label": "Helper text",
|
|
66
|
+
"format": "TEXT"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "Conditions",
|
|
72
|
+
"format": "GROUP",
|
|
73
|
+
"properties": [
|
|
74
|
+
{
|
|
75
|
+
"name": "required",
|
|
76
|
+
"label": "Required",
|
|
77
|
+
"format": "REQUIRED",
|
|
78
|
+
"visibility": "(!readOnly = true)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "disabled",
|
|
82
|
+
"label": "Disabled",
|
|
83
|
+
"format": "DISABLED",
|
|
84
|
+
"visibility": "(!readOnly = true)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "visibility",
|
|
88
|
+
"label": "Visibility",
|
|
89
|
+
"format": "VISIBILITY"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"label": "Advanced",
|
|
95
|
+
"format": "GROUP",
|
|
96
|
+
"collapsible": true,
|
|
97
|
+
"properties": [
|
|
98
|
+
{
|
|
99
|
+
"name": "testId",
|
|
100
|
+
"label": "Test ID",
|
|
101
|
+
"format": "TEXT",
|
|
102
|
+
"ignorePattern": "[^-_\\p{N}\\p{L}]",
|
|
103
|
+
"includeAnnotations": false
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"defaultConfig": {
|
|
109
|
+
"label": "@L $this.label",
|
|
110
|
+
"placeholder": "@L Select...",
|
|
111
|
+
"listType": "associated",
|
|
112
|
+
"datasource": "@ASSOCIATED .$this.name",
|
|
113
|
+
"deferDatasource": true
|
|
114
|
+
}
|
|
115
|
+
}
|